@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-37979.0 → 0.0.0-bugfix-dev-KB-43388.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-b136a156.js → CSSVarsUtils-10c9d5b4.js} +13 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_3.cjs.entry.js +6 -5
- package/dist/cjs/ez-combo-box.cjs.entry.js +7 -6
- 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 +30 -13
- package/dist/cjs/ez-grid.cjs.entry.js +65 -10
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/ez-split-item.cjs.entry.js +10 -2
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-card-item/ez-card-item.css +19 -5
- package/dist/collection/components/ez-card-item/ez-card-item.js +22 -3
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +6 -5
- package/dist/collection/components/ez-form-view/ez-form-view.css +17 -1
- package/dist/collection/components/ez-form-view/ez-form-view.js +22 -5
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +3 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/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 -1
- package/dist/collection/components/ez-grid/ez-grid.css +25 -2
- package/dist/collection/components/ez-grid/ez-grid.js +65 -8
- package/dist/collection/components/ez-icon/ez-icon.css +118 -116
- package/dist/collection/components/ez-popup/ez-popup.css +2 -4
- package/dist/collection/components/ez-search/ez-search.js +1 -1
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +8 -1
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +5 -1
- package/dist/collection/utils/CSSVarsUtils.js +13 -0
- package/dist/custom-elements/index.js +127 -37
- package/dist/esm/{CSSVarsUtils-a97cfa29.js → CSSVarsUtils-71ce76be.js} +13 -0
- package/dist/esm/ez-actions-button.entry.js +1 -1
- package/dist/esm/ez-card-item_3.entry.js +6 -5
- package/dist/esm/ez-combo-box.entry.js +7 -6
- 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 +31 -14
- package/dist/esm/ez-grid.entry.js +66 -11
- package/dist/esm/ez-icon.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/ez-split-item.entry.js +10 -2
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-661f6820.entry.js → p-22a04c1d.entry.js} +2 -2
- package/dist/ezui/{p-055fd02c.entry.js → p-2eb8f73b.entry.js} +1 -1
- package/dist/ezui/p-7af81663.entry.js +1 -0
- package/dist/ezui/p-7bc07c31.entry.js +1 -0
- package/dist/ezui/p-801fd0f8.entry.js +1 -0
- package/dist/ezui/p-807560f0.entry.js +1 -0
- package/dist/ezui/{p-eb36f072.entry.js → p-99ead599.entry.js} +1 -1
- package/dist/ezui/{p-7eb3e1a5.js → p-9e11fc7b.js} +1 -1
- package/dist/ezui/{p-672dd122.entry.js → p-9f1e89c9.entry.js} +1 -1
- package/dist/ezui/{p-02c8831a.entry.js → p-abc23d6f.entry.js} +1 -1
- package/dist/ezui/{p-50186acb.entry.js → p-af95cd16.entry.js} +1 -1
- package/dist/ezui/{p-18e7870d.entry.js → p-b567fa8c.entry.js} +1 -1
- package/dist/ezui/p-db77a984.entry.js +1 -0
- package/dist/ezui/{p-9cad9b6e.entry.js → p-e85c48d7.entry.js} +1 -1
- package/dist/types/components/ez-card-item/ez-card-item.d.ts +4 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +1 -0
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +3 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +15 -2
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +5 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/types/utils/CSSVarsUtils.d.ts +1 -0
- package/package.json +2 -2
- package/dist/ezui/p-13dbad96.entry.js +0 -1
- package/dist/ezui/p-25ed09c6.entry.js +0 -1
- package/dist/ezui/p-60848ef6.entry.js +0 -1
- package/dist/ezui/p-e52cbcc7.entry.js +0 -1
- package/dist/ezui/p-e562d05e.entry.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ElementIDUtils, JSUtils, StringUtils, } from '@sankhyalabs/core';
|
|
1
|
+
import { ElementIDUtils, JSUtils, OverflowWatcher, OVERFLOWED_CLASS_NAME, StringUtils, } from '@sankhyalabs/core';
|
|
2
2
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
3
|
-
import {
|
|
3
|
+
import { Host, h } from '@stencil/core';
|
|
4
|
+
import { ApplicationUtils } from '../../utils';
|
|
4
5
|
import AgGridController from './controller/ag-grid/AgGridController';
|
|
5
6
|
import { SelectionCounter } from './subcomponents/selection-counter';
|
|
6
|
-
import { ApplicationUtils } from '../../utils';
|
|
7
7
|
import InMemoryFilterColumnDataSource from './utils/InMemoryFilterColumnDataSource';
|
|
8
8
|
const windowInstace = window;
|
|
9
9
|
const matches = (text, filter) => {
|
|
@@ -96,6 +96,14 @@ export class EzGrid {
|
|
|
96
96
|
observeConfig(config) {
|
|
97
97
|
this._gridController.setColumnsState(config.columns);
|
|
98
98
|
}
|
|
99
|
+
updatePaginationTooltip() {
|
|
100
|
+
if (this._refPaginationLabelTooltip) {
|
|
101
|
+
const tooltip = this._getPaginationTooltip();
|
|
102
|
+
if (tooltip) {
|
|
103
|
+
this._refPaginationLabelTooltip.setAttribute('data-tooltip', tooltip);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
99
107
|
onSelectionChange(evt) {
|
|
100
108
|
this._currentPageSelected = evt.detail.selectionHeaderStatus === true;
|
|
101
109
|
if (this.dataUnit) {
|
|
@@ -251,11 +259,10 @@ export class EzGrid {
|
|
|
251
259
|
}
|
|
252
260
|
getPaginationControl() {
|
|
253
261
|
if (this._paginationInfo) {
|
|
254
|
-
const {
|
|
262
|
+
const { currentPage, hasMore } = this._paginationInfo;
|
|
255
263
|
return [
|
|
256
|
-
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" },
|
|
257
|
-
h("
|
|
258
|
-
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" }),
|
|
264
|
+
h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium", ref: (element) => (this._refPaginationLabel = element) }, h("span", { class: "grid-header__pagination-label" }, h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, this._getActualPageLabel()), this._getRemainingPageLabel())),
|
|
265
|
+
h("div", { id: "grid-pagination-tooltip", ref: (element) => (this._refPaginationLabelTooltip = element), class: "ez-flex ez-margin-right--medium" }, h("ez-button", { size: "small", class: "ez-margin-right--medium", iconName: "chevron-left", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: "P\u00E1gina anterior" }), h("ez-button", { size: "small", iconName: "chevron-right", mode: "icon", enabled: hasMore, onClick: () => this.nextPage(), label: "Pr\u00F3xima P\u00E1gina" })),
|
|
259
266
|
];
|
|
260
267
|
}
|
|
261
268
|
return null;
|
|
@@ -299,6 +306,53 @@ export class EzGrid {
|
|
|
299
306
|
this.setEvents();
|
|
300
307
|
this.componentReady.emit();
|
|
301
308
|
this._gridController.configFilterColumn(this._filterColumn);
|
|
309
|
+
this._initHeaderOverflowWatcher();
|
|
310
|
+
}
|
|
311
|
+
_getActualPageLabel() {
|
|
312
|
+
const { firstRecord, lastRecord } = this._paginationInfo;
|
|
313
|
+
return `${firstRecord}-${lastRecord}`;
|
|
314
|
+
}
|
|
315
|
+
_getRemainingPageLabel() {
|
|
316
|
+
const { total, count } = this._paginationInfo;
|
|
317
|
+
return `${total == undefined ? ` de ${count + 1} ou mais` : ` de ${total}`}`;
|
|
318
|
+
}
|
|
319
|
+
_getPaginationTooltip() {
|
|
320
|
+
return this._getActualPageLabel() + this._getRemainingPageLabel();
|
|
321
|
+
}
|
|
322
|
+
_initHeaderOverflowWatcher() {
|
|
323
|
+
this._headerOverflowWatcher = new OverflowWatcher(this.buildOverFlowWatcherParams());
|
|
324
|
+
}
|
|
325
|
+
buildOverFlowWatcherParams() {
|
|
326
|
+
return {
|
|
327
|
+
element: this._refPaginationControl,
|
|
328
|
+
callback: this.handleOverFlow.bind(this),
|
|
329
|
+
notOverFlow: ["grid-pagination-tooltip"]
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
handleOverFlow(elementsOverflow) {
|
|
333
|
+
if (!this._refPaginationLabel)
|
|
334
|
+
return;
|
|
335
|
+
if (elementsOverflow.length > 0) {
|
|
336
|
+
this._hidePaginationDescription();
|
|
337
|
+
}
|
|
338
|
+
else {
|
|
339
|
+
this._showPaginationDescription();
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
_hidePaginationDescription() {
|
|
343
|
+
this._refPaginationLabel.classList.add(OVERFLOWED_CLASS_NAME);
|
|
344
|
+
this._refPaginationLabelTooltip.setAttribute('data-flow', 'bottom');
|
|
345
|
+
this._refPaginationLabelTooltip.setAttribute('data-tooltip', this._getPaginationTooltip());
|
|
346
|
+
}
|
|
347
|
+
;
|
|
348
|
+
_showPaginationDescription() {
|
|
349
|
+
this._refPaginationLabel.classList.remove(OVERFLOWED_CLASS_NAME);
|
|
350
|
+
this._refPaginationLabelTooltip.removeAttribute('data-flow');
|
|
351
|
+
this._refPaginationLabelTooltip.removeAttribute('data-tooltip');
|
|
352
|
+
}
|
|
353
|
+
disconnectedCallback() {
|
|
354
|
+
var _a;
|
|
355
|
+
(_a = this._headerOverflowWatcher) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
302
356
|
}
|
|
303
357
|
componentWillRender() {
|
|
304
358
|
this.configSelectionCounter();
|
|
@@ -322,7 +376,7 @@ export class EzGrid {
|
|
|
322
376
|
}
|
|
323
377
|
render() {
|
|
324
378
|
var _a;
|
|
325
|
-
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
|
|
379
|
+
return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: "grid__container ez-grid", ref: elem => (this._container = elem) }), h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: "grid-header__container grid-header__left-container" }, h("slot", { name: "leftButtons" })), h("div", { class: "grid-header__container grid-header__pagination", ref: ref => (this._refPaginationControl = ref) }, this.getPaginationControl()))), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
|
|
326
380
|
${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
|
|
327
381
|
` }, 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" }))));
|
|
328
382
|
}
|
|
@@ -887,6 +941,9 @@ export class EzGrid {
|
|
|
887
941
|
return [{
|
|
888
942
|
"propName": "config",
|
|
889
943
|
"methodName": "observeConfig"
|
|
944
|
+
}, {
|
|
945
|
+
"propName": "_paginationInfo",
|
|
946
|
+
"methodName": "updatePaginationTooltip"
|
|
890
947
|
}];
|
|
891
948
|
}
|
|
892
949
|
static get listeners() {
|
|
@@ -54,6 +54,7 @@ svg {
|
|
|
54
54
|
-moz-osx-font-smoothing: grayscale;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
|
|
57
58
|
.ez-icon-2chevron-down:before { content: "\ea01"; }
|
|
58
59
|
.ez-icon-2chevron-up:before { content: "\ea02"; }
|
|
59
60
|
.ez-icon-acao:before { content: "\ea03"; }
|
|
@@ -91,122 +92,123 @@ svg {
|
|
|
91
92
|
.ez-icon-circle:before { content: "\ea23"; }
|
|
92
93
|
.ez-icon-cleaning:before { content: "\ea24"; }
|
|
93
94
|
.ez-icon-clipboard:before { content: "\ea25"; }
|
|
94
|
-
.ez-icon-
|
|
95
|
-
.ez-icon-
|
|
96
|
-
.ez-icon-
|
|
97
|
-
.ez-icon-
|
|
98
|
-
.ez-icon-
|
|
99
|
-
.ez-icon-
|
|
100
|
-
.ez-icon-
|
|
101
|
-
.ez-icon-
|
|
102
|
-
.ez-icon-
|
|
103
|
-
.ez-icon-
|
|
104
|
-
.ez-icon-delete:before { content: "\ea30"; }
|
|
105
|
-
.ez-icon-
|
|
106
|
-
.ez-icon-
|
|
107
|
-
.ez-icon-
|
|
108
|
-
.ez-icon-
|
|
109
|
-
.ez-icon-
|
|
110
|
-
.ez-icon-dots-
|
|
111
|
-
.ez-icon-
|
|
112
|
-
.ez-icon-
|
|
113
|
-
.ez-icon-dual-chevron-
|
|
114
|
-
.ez-icon-dual-chevron-
|
|
115
|
-
.ez-icon-dual-chevron-
|
|
116
|
-
.ez-icon-
|
|
117
|
-
.ez-icon-edit-
|
|
118
|
-
.ez-icon-edit-
|
|
119
|
-
.ez-icon-edit-
|
|
120
|
-
.ez-icon-edit:before { content: "\ea40"; }
|
|
121
|
-
.ez-icon-
|
|
122
|
-
.ez-icon-
|
|
123
|
-
.ez-icon-
|
|
124
|
-
.ez-icon-
|
|
125
|
-
.ez-icon-
|
|
126
|
-
.ez-icon-
|
|
127
|
-
.ez-icon-
|
|
128
|
-
.ez-icon-eye:before { content: "\ea48"; }
|
|
129
|
-
.ez-icon-
|
|
130
|
-
.ez-icon-
|
|
131
|
-
.ez-icon-
|
|
132
|
-
.ez-icon-file-
|
|
133
|
-
.ez-icon-
|
|
134
|
-
.ez-icon-
|
|
135
|
-
.ez-icon-find-
|
|
136
|
-
.ez-icon-
|
|
137
|
-
.ez-icon-
|
|
138
|
-
.ez-icon-
|
|
139
|
-
.ez-icon-
|
|
140
|
-
.ez-icon-
|
|
141
|
-
.ez-icon-
|
|
142
|
-
.ez-icon-help:before { content: "\ea56"; }
|
|
143
|
-
.ez-icon-
|
|
144
|
-
.ez-icon-
|
|
145
|
-
.ez-icon-
|
|
146
|
-
.ez-icon-
|
|
147
|
-
.ez-icon-
|
|
148
|
-
.ez-icon-
|
|
149
|
-
.ez-icon-
|
|
150
|
-
.ez-icon-
|
|
151
|
-
.ez-icon-
|
|
152
|
-
.ez-icon-lock:before { content: "\ea60"; }
|
|
153
|
-
.ez-icon-
|
|
154
|
-
.ez-icon-
|
|
155
|
-
.ez-icon-
|
|
156
|
-
.ez-icon-
|
|
157
|
-
.ez-icon-money:before { content: "\ea65"; }
|
|
158
|
-
.ez-icon-
|
|
159
|
-
.ez-icon-
|
|
160
|
-
.ez-icon-
|
|
161
|
-
.ez-icon-
|
|
162
|
-
.ez-icon-
|
|
163
|
-
.ez-icon-
|
|
164
|
-
.ez-icon-
|
|
165
|
-
.ez-icon-ordem-
|
|
166
|
-
.ez-icon-
|
|
167
|
-
.ez-icon-
|
|
168
|
-
.ez-icon-
|
|
169
|
-
.ez-icon-
|
|
170
|
-
.ez-icon-
|
|
171
|
-
.ez-icon-
|
|
172
|
-
.ez-icon-
|
|
173
|
-
.ez-icon-
|
|
174
|
-
.ez-icon-
|
|
175
|
-
.ez-icon-
|
|
176
|
-
.ez-icon-
|
|
177
|
-
.ez-icon-
|
|
178
|
-
.ez-icon-
|
|
179
|
-
.ez-icon-
|
|
180
|
-
.ez-icon-
|
|
181
|
-
.ez-icon-
|
|
182
|
-
.ez-icon-
|
|
183
|
-
.ez-icon-
|
|
184
|
-
.ez-icon-
|
|
185
|
-
.ez-icon-
|
|
186
|
-
.ez-icon-
|
|
187
|
-
.ez-icon-settings:before { content: "\ea83"; }
|
|
188
|
-
.ez-icon-
|
|
189
|
-
.ez-icon-
|
|
190
|
-
.ez-icon-
|
|
191
|
-
.ez-icon-
|
|
192
|
-
.ez-icon-
|
|
193
|
-
.ez-icon-
|
|
194
|
-
.ez-icon-
|
|
195
|
-
.ez-icon-
|
|
196
|
-
.ez-icon-
|
|
197
|
-
.ez-icon-
|
|
198
|
-
.ez-icon-
|
|
199
|
-
.ez-icon-
|
|
200
|
-
.ez-icon-
|
|
201
|
-
.ez-icon-
|
|
202
|
-
.ez-icon-
|
|
203
|
-
.ez-icon-
|
|
204
|
-
.ez-icon-
|
|
205
|
-
.ez-icon-
|
|
206
|
-
.ez-icon-
|
|
207
|
-
.ez-icon-
|
|
208
|
-
.ez-icon-
|
|
209
|
-
.ez-icon-
|
|
95
|
+
.ez-icon-clock-rotate-left:before { content: "\ea26"; }
|
|
96
|
+
.ez-icon-close:before { content: "\ea27"; }
|
|
97
|
+
.ez-icon-cobrar:before { content: "\ea28"; }
|
|
98
|
+
.ez-icon-code:before { content: "\ea29"; }
|
|
99
|
+
.ez-icon-configuration:before { content: "\ea2a"; }
|
|
100
|
+
.ez-icon-content-cut:before { content: "\ea2b"; }
|
|
101
|
+
.ez-icon-copy:before { content: "\ea2c"; }
|
|
102
|
+
.ez-icon-credit_card:before { content: "\ea2d"; }
|
|
103
|
+
.ez-icon-crop:before { content: "\ea2e"; }
|
|
104
|
+
.ez-icon-custom:before { content: "\ea2f"; }
|
|
105
|
+
.ez-icon-delete-file:before { content: "\ea30"; }
|
|
106
|
+
.ez-icon-delete:before { content: "\ea31"; }
|
|
107
|
+
.ez-icon-description:before { content: "\ea32"; }
|
|
108
|
+
.ez-icon-dividir:before { content: "\ea33"; }
|
|
109
|
+
.ez-icon-docx:before { content: "\ea34"; }
|
|
110
|
+
.ez-icon-dot-notification:before { content: "\ea35"; }
|
|
111
|
+
.ez-icon-dots-horizontal:before { content: "\ea36"; }
|
|
112
|
+
.ez-icon-dots-vertical:before { content: "\ea37"; }
|
|
113
|
+
.ez-icon-drag-indicator:before { content: "\ea38"; }
|
|
114
|
+
.ez-icon-dual-chevron-down:before { content: "\ea39"; }
|
|
115
|
+
.ez-icon-dual-chevron-left:before { content: "\ea3a"; }
|
|
116
|
+
.ez-icon-dual-chevron-right:before { content: "\ea3b"; }
|
|
117
|
+
.ez-icon-dual-chevron-up:before { content: "\ea3c"; }
|
|
118
|
+
.ez-icon-edit-file:before { content: "\ea3d"; }
|
|
119
|
+
.ez-icon-edit-table:before { content: "\ea3e"; }
|
|
120
|
+
.ez-icon-edit-time:before { content: "\ea3f"; }
|
|
121
|
+
.ez-icon-edit-value:before { content: "\ea40"; }
|
|
122
|
+
.ez-icon-edit:before { content: "\ea41"; }
|
|
123
|
+
.ez-icon-email:before { content: "\ea42"; }
|
|
124
|
+
.ez-icon-estorno:before { content: "\ea43"; }
|
|
125
|
+
.ez-icon-exe:before { content: "\ea44"; }
|
|
126
|
+
.ez-icon-expand:before { content: "\ea45"; }
|
|
127
|
+
.ez-icon-expandir_card:before { content: "\ea46"; }
|
|
128
|
+
.ez-icon-extrato:before { content: "\ea47"; }
|
|
129
|
+
.ez-icon-eye-off:before { content: "\ea48"; }
|
|
130
|
+
.ez-icon-eye:before { content: "\ea49"; }
|
|
131
|
+
.ez-icon-favorite:before { content: "\ea4a"; }
|
|
132
|
+
.ez-icon-figma:before { content: "\ea4b"; }
|
|
133
|
+
.ez-icon-file-download:before { content: "\ea4c"; }
|
|
134
|
+
.ez-icon-file-upload:before { content: "\ea4d"; }
|
|
135
|
+
.ez-icon-filter:before { content: "\ea4e"; }
|
|
136
|
+
.ez-icon-find-file:before { content: "\ea4f"; }
|
|
137
|
+
.ez-icon-find-page:before { content: "\ea50"; }
|
|
138
|
+
.ez-icon-format-color-fill:before { content: "\ea51"; }
|
|
139
|
+
.ez-icon-generic:before { content: "\ea52"; }
|
|
140
|
+
.ez-icon-gif:before { content: "\ea53"; }
|
|
141
|
+
.ez-icon-graph_bar:before { content: "\ea54"; }
|
|
142
|
+
.ez-icon-handshake:before { content: "\ea55"; }
|
|
143
|
+
.ez-icon-help-inverted:before { content: "\ea56"; }
|
|
144
|
+
.ez-icon-help:before { content: "\ea57"; }
|
|
145
|
+
.ez-icon-hide_menu:before { content: "\ea58"; }
|
|
146
|
+
.ez-icon-home:before { content: "\ea59"; }
|
|
147
|
+
.ez-icon-icons104:before { content: "\ea5a"; }
|
|
148
|
+
.ez-icon-language:before { content: "\ea5b"; }
|
|
149
|
+
.ez-icon-launch:before { content: "\ea5c"; }
|
|
150
|
+
.ez-icon-lightbulb:before { content: "\ea5d"; }
|
|
151
|
+
.ez-icon-list:before { content: "\ea5e"; }
|
|
152
|
+
.ez-icon-location:before { content: "\ea5f"; }
|
|
153
|
+
.ez-icon-lock-outline:before { content: "\ea60"; }
|
|
154
|
+
.ez-icon-lock:before { content: "\ea61"; }
|
|
155
|
+
.ez-icon-menu:before { content: "\ea62"; }
|
|
156
|
+
.ez-icon-mid:before { content: "\ea63"; }
|
|
157
|
+
.ez-icon-minus:before { content: "\ea64"; }
|
|
158
|
+
.ez-icon-money-off:before { content: "\ea65"; }
|
|
159
|
+
.ez-icon-money:before { content: "\ea66"; }
|
|
160
|
+
.ez-icon-more:before { content: "\ea67"; }
|
|
161
|
+
.ez-icon-mp3:before { content: "\ea68"; }
|
|
162
|
+
.ez-icon-mp4:before { content: "\ea69"; }
|
|
163
|
+
.ez-icon-multiple-files:before { content: "\ea6a"; }
|
|
164
|
+
.ez-icon-north-west:before { content: "\ea6b"; }
|
|
165
|
+
.ez-icon-number:before { content: "\ea6c"; }
|
|
166
|
+
.ez-icon-ordem-ascendente:before { content: "\ea6d"; }
|
|
167
|
+
.ez-icon-ordem-descendente:before { content: "\ea6e"; }
|
|
168
|
+
.ez-icon-parcelar:before { content: "\ea6f"; }
|
|
169
|
+
.ez-icon-pause:before { content: "\ea70"; }
|
|
170
|
+
.ez-icon-payments:before { content: "\ea71"; }
|
|
171
|
+
.ez-icon-pdf:before { content: "\ea72"; }
|
|
172
|
+
.ez-icon-play:before { content: "\ea73"; }
|
|
173
|
+
.ez-icon-plus:before { content: "\ea74"; }
|
|
174
|
+
.ez-icon-png:before { content: "\ea75"; }
|
|
175
|
+
.ez-icon-power:before { content: "\ea76"; }
|
|
176
|
+
.ez-icon-pptx:before { content: "\ea77"; }
|
|
177
|
+
.ez-icon-preview:before { content: "\ea78"; }
|
|
178
|
+
.ez-icon-print:before { content: "\ea79"; }
|
|
179
|
+
.ez-icon-push-pin:before { content: "\ea7a"; }
|
|
180
|
+
.ez-icon-rateio:before { content: "\ea7b"; }
|
|
181
|
+
.ez-icon-receipt:before { content: "\ea7c"; }
|
|
182
|
+
.ez-icon-recolher_card:before { content: "\ea7d"; }
|
|
183
|
+
.ez-icon-restore:before { content: "\ea7e"; }
|
|
184
|
+
.ez-icon-return:before { content: "\ea7f"; }
|
|
185
|
+
.ez-icon-sankhya-place:before { content: "\ea80"; }
|
|
186
|
+
.ez-icon-save:before { content: "\ea81"; }
|
|
187
|
+
.ez-icon-search:before { content: "\ea82"; }
|
|
188
|
+
.ez-icon-settings-inverted:before { content: "\ea83"; }
|
|
189
|
+
.ez-icon-settings:before { content: "\ea84"; }
|
|
190
|
+
.ez-icon-share:before { content: "\ea85"; }
|
|
191
|
+
.ez-icon-shield:before { content: "\ea86"; }
|
|
192
|
+
.ez-icon-show_menu:before { content: "\ea87"; }
|
|
193
|
+
.ez-icon-south-east:before { content: "\ea88"; }
|
|
194
|
+
.ez-icon-sync:before { content: "\ea89"; }
|
|
195
|
+
.ez-icon-table:before { content: "\ea8a"; }
|
|
196
|
+
.ez-icon-tag_code:before { content: "\ea8b"; }
|
|
197
|
+
.ez-icon-text:before { content: "\ea8c"; }
|
|
198
|
+
.ez-icon-timeline:before { content: "\ea8d"; }
|
|
199
|
+
.ez-icon-timer-outline:before { content: "\ea8e"; }
|
|
200
|
+
.ez-icon-trending-up:before { content: "\ea8f"; }
|
|
201
|
+
.ez-icon-tune:before { content: "\ea90"; }
|
|
202
|
+
.ez-icon-txt:before { content: "\ea91"; }
|
|
203
|
+
.ez-icon-un-pin:before { content: "\ea92"; }
|
|
204
|
+
.ez-icon-unfold_less:before { content: "\ea93"; }
|
|
205
|
+
.ez-icon-unfold_more:before { content: "\ea94"; }
|
|
206
|
+
.ez-icon-user-circle:before { content: "\ea95"; }
|
|
207
|
+
.ez-icon-warning-outline:before { content: "\ea96"; }
|
|
208
|
+
.ez-icon-warning_triangle:before { content: "\ea97"; }
|
|
209
|
+
.ez-icon-whatshot:before { content: "\ea98"; }
|
|
210
|
+
.ez-icon-xlsx:before { content: "\ea99"; }
|
|
211
|
+
.ez-icon-zip:before { content: "\ea9a"; }
|
|
210
212
|
/*
|
|
211
213
|
END CSS GENERATED BY EZ-DESIGN ICONS
|
|
212
214
|
*/
|
|
@@ -77,16 +77,14 @@
|
|
|
77
77
|
|
|
78
78
|
.popup__content {
|
|
79
79
|
box-sizing: border-box;
|
|
80
|
-
|
|
80
|
+
height: 100%;
|
|
81
81
|
width: 100%;
|
|
82
|
-
display: grid;
|
|
83
|
-
grid-template-rows: auto 1fr;
|
|
84
82
|
}
|
|
85
83
|
|
|
86
84
|
.popup__expandable-content {
|
|
87
85
|
box-sizing: border-box;
|
|
88
86
|
width: 100%;
|
|
89
|
-
height: 100
|
|
87
|
+
height: calc(100% - 44px);
|
|
90
88
|
}
|
|
91
89
|
|
|
92
90
|
.popup__header {
|
|
@@ -187,7 +187,7 @@ export class EzSearch {
|
|
|
187
187
|
if (currentValue == undefined) {
|
|
188
188
|
return;
|
|
189
189
|
}
|
|
190
|
-
let text = !this.showSelectedValue || currentValue.value == undefined ? currentValue.label : `${currentValue.value} - ${currentValue.label}`;
|
|
190
|
+
let text = (!this.showSelectedValue || currentValue.value == undefined) ? currentValue.label : `${currentValue.value} - ${currentValue.label}`;
|
|
191
191
|
text = text.replace(new RegExp(this._startHighlightTag, 'g'), '').replace(new RegExp(this._endHighlightTag, 'g'), '');
|
|
192
192
|
return text;
|
|
193
193
|
}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
ez-split-item {
|
|
2
|
+
/*@doc Define altura mínima da snk-grid */
|
|
3
|
+
--snk-grid-min-height: 0;
|
|
4
|
+
/*@doc Define altura mínima da grid */
|
|
5
|
+
--ez-grid--min-height: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
1
8
|
.box_split-item {
|
|
2
9
|
background-color: var(--background--xlight);
|
|
3
10
|
width: 100%;
|
|
@@ -37,4 +44,4 @@
|
|
|
37
44
|
.ez-split-item--content {
|
|
38
45
|
display: block;
|
|
39
46
|
height: 100%;
|
|
40
|
-
}
|
|
47
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
|
+
import { CSSVarsUtils } from '../../../../utils';
|
|
2
3
|
export class SplitItem {
|
|
3
4
|
constructor() {
|
|
4
5
|
this.label = undefined;
|
|
@@ -12,8 +13,11 @@ export class SplitItem {
|
|
|
12
13
|
toggleExpandItem() {
|
|
13
14
|
this._expanded = !this._expanded;
|
|
14
15
|
}
|
|
16
|
+
componentDidLoad() {
|
|
17
|
+
CSSVarsUtils.applyVarsGrid(this._element, this._slot.children[0]);
|
|
18
|
+
}
|
|
15
19
|
render() {
|
|
16
|
-
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))));
|
|
20
|
+
return (h(Host, { class: `box_split-item ${this._expanded ? 'expanded__item' : ''}`, ref: el => (this._element = el) }, h("div", { class: "ez-split-item--header" }, h("div", null, this.label && (h("div", { class: "ez-margin--small" }, h("h3", { class: " ez-title ez-title--small" }, this.label)))), h("div", { class: "ez-split-item--header-buttons" }, this.enableExpand && (h("ez-button", { size: "medium", mode: "icon", iconName: "expand", class: 'ez-button--tertiary', onClick: () => this.toggleExpandItem(), title: this._expanded ? 'Resumir' : 'Expandir' })), h("slot", { name: "rightButtons" }))), h("div", { class: "ez-split-item--content", ref: el => (this._slot = el) }, h("slot", null))));
|
|
17
21
|
}
|
|
18
22
|
static get is() { return "ez-split-item"; }
|
|
19
23
|
static get originalStyleUrls() {
|
|
@@ -64,6 +64,19 @@ export default class CSSVarsUtils {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
+
static applyVarsGrid(host, child) {
|
|
68
|
+
if (child) {
|
|
69
|
+
[
|
|
70
|
+
"--ez-grid--min-height",
|
|
71
|
+
"--snk-grid-min-height",
|
|
72
|
+
].forEach(prop => {
|
|
73
|
+
const propValue = getComputedStyle(host).getPropertyValue(prop);
|
|
74
|
+
if (propValue !== null && propValue !== undefined) {
|
|
75
|
+
child.style.setProperty(prop, propValue);
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
67
80
|
static applyIfExists(host, element, varName) {
|
|
68
81
|
const prop = getComputedStyle(host).getPropertyValue(varName);
|
|
69
82
|
if (prop) {
|