@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-43388.0 → 0.0.0-bugfix-dev-KB-9999.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-b136a156.js} +0 -13
- package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_3.cjs.entry.js +5 -6
- package/dist/cjs/ez-combo-box.cjs.entry.js +6 -7
- package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +13 -30
- package/dist/cjs/ez-grid.cjs.entry.js +10 -72
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +10 -2
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +5 -4
- package/dist/cjs/ez-split-item.cjs.entry.js +2 -11
- package/dist/cjs/ez-split-panel.cjs.entry.js +5 -6
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/index-a7b0c73d.js +4 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/ez-card-item/ez-card-item.css +5 -19
- package/dist/collection/components/ez-card-item/ez-card-item.js +3 -22
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +0 -1
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +5 -6
- package/dist/collection/components/ez-form-view/ez-form-view.css +1 -17
- package/dist/collection/components/ez-form-view/ez-form-view.js +5 -22
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +3 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +1 -5
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +0 -3
- package/dist/collection/components/ez-grid/ez-grid.css +2 -25
- package/dist/collection/components/ez-grid/ez-grid.js +8 -65
- package/dist/collection/components/ez-icon/ez-icon.css +116 -118
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +10 -2
- package/dist/collection/components/ez-popup/ez-popup.css +4 -2
- package/dist/collection/components/ez-search/ez-search.js +4 -3
- package/dist/collection/components/ez-split-panel/ez-split-panel.css +1 -0
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +4 -5
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +4 -15
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +2 -27
- package/dist/collection/utils/CSSVarsUtils.js +0 -13
- package/dist/custom-elements/index.d.ts +0 -6
- package/dist/custom-elements/index.js +57 -290
- package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-a97cfa29.js} +0 -13
- package/dist/esm/ez-actions-button.entry.js +1 -1
- package/dist/esm/ez-card-item_3.entry.js +5 -6
- package/dist/esm/ez-combo-box.entry.js +6 -7
- package/dist/esm/ez-date-input.entry.js +1 -1
- package/dist/esm/ez-date-time-input.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +14 -31
- package/dist/esm/ez-grid.entry.js +11 -73
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-multi-selection-list.entry.js +10 -2
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +5 -4
- package/dist/esm/ez-split-item.entry.js +3 -12
- package/dist/esm/ez-split-panel.entry.js +5 -6
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/index-baa5e267.js +4 -8
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-abc23d6f.entry.js → p-02c8831a.entry.js} +1 -1
- package/dist/ezui/p-13dbad96.entry.js +1 -0
- package/dist/ezui/{p-b567fa8c.entry.js → p-18e7870d.entry.js} +1 -1
- package/dist/ezui/{p-07cbffce.entry.js → p-300bf244.entry.js} +1 -1
- package/dist/ezui/{p-784fe207.entry.js → p-40f72de4.entry.js} +1 -1
- package/dist/ezui/p-428a05fe.entry.js +1 -0
- package/dist/ezui/{p-af95cd16.entry.js → p-50186acb.entry.js} +1 -1
- package/dist/ezui/p-60848ef6.entry.js +1 -0
- package/dist/ezui/{p-9f1e89c9.entry.js → p-672dd122.entry.js} +1 -1
- package/dist/ezui/{p-9e11fc7b.js → p-7eb3e1a5.js} +1 -1
- package/dist/ezui/{p-e85c48d7.entry.js → p-9cad9b6e.entry.js} +1 -1
- package/dist/ezui/{p-22a04c1d.entry.js → p-ab629244.entry.js} +2 -2
- package/dist/ezui/p-cd0499a2.entry.js +1 -0
- package/dist/ezui/p-e52cbcc7.entry.js +1 -0
- package/dist/ezui/p-e562d05e.entry.js +1 -0
- package/dist/ezui/{p-99ead599.entry.js → p-eb36f072.entry.js} +1 -1
- package/dist/types/components/ez-card-item/ez-card-item.d.ts +0 -4
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +0 -1
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +0 -3
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +0 -1
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +0 -1
- package/dist/types/components/ez-grid/ez-grid.d.ts +2 -15
- package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +1 -0
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +0 -10
- package/dist/types/components.d.ts +0 -131
- package/dist/types/utils/CSSVarsUtils.d.ts +0 -1
- package/package.json +2 -3
- package/react/components.d.ts +0 -1
- package/react/components.js +0 -1
- package/react/components.js.map +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +0 -147
- package/dist/collection/components/ez-split-button/ez-split-button.css +0 -229
- package/dist/collection/components/ez-split-button/ez-split-button.js +0 -436
- package/dist/collection/components/ez-split-button/test/dropdownItems.js +0 -42
- package/dist/esm/ez-split-button.entry.js +0 -143
- package/dist/ezui/p-2eb8f73b.entry.js +0 -1
- package/dist/ezui/p-7af81663.entry.js +0 -1
- package/dist/ezui/p-7bc07c31.entry.js +0 -1
- package/dist/ezui/p-801fd0f8.entry.js +0 -1
- package/dist/ezui/p-807560f0.entry.js +0 -1
- package/dist/ezui/p-b9fbf4e7.entry.js +0 -1
- package/dist/ezui/p-db77a984.entry.js +0 -1
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +0 -89
- package/dist/types/components/ez-split-button/test/dropdownItems.d.ts +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ElementIDUtils, JSUtils,
|
|
1
|
+
import { ElementIDUtils, JSUtils, StringUtils, } from '@sankhyalabs/core';
|
|
2
2
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
3
|
-
import {
|
|
4
|
-
import { ApplicationUtils } from '../../utils';
|
|
3
|
+
import { h, Host } from '@stencil/core';
|
|
5
4
|
import AgGridController from './controller/ag-grid/AgGridController';
|
|
6
5
|
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,14 +96,6 @@ 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
|
-
}
|
|
107
99
|
onSelectionChange(evt) {
|
|
108
100
|
this._currentPageSelected = evt.detail.selectionHeaderStatus === true;
|
|
109
101
|
if (this.dataUnit) {
|
|
@@ -259,10 +251,11 @@ export class EzGrid {
|
|
|
259
251
|
}
|
|
260
252
|
getPaginationControl() {
|
|
261
253
|
if (this._paginationInfo) {
|
|
262
|
-
const { currentPage, hasMore } = this._paginationInfo;
|
|
254
|
+
const { firstRecord, lastRecord, total, count, currentPage, hasMore } = this._paginationInfo;
|
|
263
255
|
return [
|
|
264
|
-
h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium"
|
|
265
|
-
h("
|
|
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" }, `${firstRecord}-${lastRecord}`), total == undefined ? ` de ${count + 1} ou mais` : ` de ${total}`),
|
|
257
|
+
h("ez-button", { size: "small", iconName: "chevron-left", class: "ez-margin-right--medium", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: "P\u00E1gina anterior" }),
|
|
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" }),
|
|
266
259
|
];
|
|
267
260
|
}
|
|
268
261
|
return null;
|
|
@@ -306,53 +299,6 @@ export class EzGrid {
|
|
|
306
299
|
this.setEvents();
|
|
307
300
|
this.componentReady.emit();
|
|
308
301
|
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();
|
|
356
302
|
}
|
|
357
303
|
componentWillRender() {
|
|
358
304
|
this.configSelectionCounter();
|
|
@@ -376,7 +322,7 @@ export class EzGrid {
|
|
|
376
322
|
}
|
|
377
323
|
render() {
|
|
378
324
|
var _a;
|
|
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
|
|
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
|
|
380
326
|
${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
|
|
381
327
|
` }, 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" }))));
|
|
382
328
|
}
|
|
@@ -941,9 +887,6 @@ export class EzGrid {
|
|
|
941
887
|
return [{
|
|
942
888
|
"propName": "config",
|
|
943
889
|
"methodName": "observeConfig"
|
|
944
|
-
}, {
|
|
945
|
-
"propName": "_paginationInfo",
|
|
946
|
-
"methodName": "updatePaginationTooltip"
|
|
947
890
|
}];
|
|
948
891
|
}
|
|
949
892
|
static get listeners() {
|
|
@@ -54,7 +54,6 @@ svg {
|
|
|
54
54
|
-moz-osx-font-smoothing: grayscale;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
|
|
58
57
|
.ez-icon-2chevron-down:before { content: "\ea01"; }
|
|
59
58
|
.ez-icon-2chevron-up:before { content: "\ea02"; }
|
|
60
59
|
.ez-icon-acao:before { content: "\ea03"; }
|
|
@@ -92,123 +91,122 @@ svg {
|
|
|
92
91
|
.ez-icon-circle:before { content: "\ea23"; }
|
|
93
92
|
.ez-icon-cleaning:before { content: "\ea24"; }
|
|
94
93
|
.ez-icon-clipboard:before { content: "\ea25"; }
|
|
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-
|
|
105
|
-
.ez-icon-delete
|
|
106
|
-
.ez-icon-
|
|
107
|
-
.ez-icon-
|
|
108
|
-
.ez-icon-
|
|
109
|
-
.ez-icon-
|
|
110
|
-
.ez-icon-
|
|
111
|
-
.ez-icon-dots-
|
|
112
|
-
.ez-icon-
|
|
113
|
-
.ez-icon-
|
|
114
|
-
.ez-icon-dual-chevron-
|
|
115
|
-
.ez-icon-dual-chevron-
|
|
116
|
-
.ez-icon-dual-chevron-
|
|
117
|
-
.ez-icon-
|
|
118
|
-
.ez-icon-edit-
|
|
119
|
-
.ez-icon-edit-
|
|
120
|
-
.ez-icon-edit-
|
|
121
|
-
.ez-icon-edit
|
|
122
|
-
.ez-icon-
|
|
123
|
-
.ez-icon-
|
|
124
|
-
.ez-icon-
|
|
125
|
-
.ez-icon-
|
|
126
|
-
.ez-icon-
|
|
127
|
-
.ez-icon-
|
|
128
|
-
.ez-icon-
|
|
129
|
-
.ez-icon-eye
|
|
130
|
-
.ez-icon-
|
|
131
|
-
.ez-icon-
|
|
132
|
-
.ez-icon-
|
|
133
|
-
.ez-icon-file-
|
|
134
|
-
.ez-icon-
|
|
135
|
-
.ez-icon-
|
|
136
|
-
.ez-icon-find-
|
|
137
|
-
.ez-icon-
|
|
138
|
-
.ez-icon-
|
|
139
|
-
.ez-icon-
|
|
140
|
-
.ez-icon-
|
|
141
|
-
.ez-icon-
|
|
142
|
-
.ez-icon-
|
|
143
|
-
.ez-icon-help
|
|
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-
|
|
153
|
-
.ez-icon-lock
|
|
154
|
-
.ez-icon-
|
|
155
|
-
.ez-icon-
|
|
156
|
-
.ez-icon-
|
|
157
|
-
.ez-icon-
|
|
158
|
-
.ez-icon-money
|
|
159
|
-
.ez-icon-
|
|
160
|
-
.ez-icon-
|
|
161
|
-
.ez-icon-
|
|
162
|
-
.ez-icon-
|
|
163
|
-
.ez-icon-
|
|
164
|
-
.ez-icon-
|
|
165
|
-
.ez-icon-
|
|
166
|
-
.ez-icon-ordem-
|
|
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-
|
|
188
|
-
.ez-icon-settings
|
|
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-
|
|
210
|
-
.ez-icon-
|
|
211
|
-
.ez-icon-zip:before { content: "\ea9a"; }
|
|
94
|
+
.ez-icon-close:before { content: "\ea26"; }
|
|
95
|
+
.ez-icon-cobrar:before { content: "\ea27"; }
|
|
96
|
+
.ez-icon-code:before { content: "\ea28"; }
|
|
97
|
+
.ez-icon-configuration:before { content: "\ea29"; }
|
|
98
|
+
.ez-icon-content-cut:before { content: "\ea2a"; }
|
|
99
|
+
.ez-icon-copy:before { content: "\ea2b"; }
|
|
100
|
+
.ez-icon-credit_card:before { content: "\ea2c"; }
|
|
101
|
+
.ez-icon-crop:before { content: "\ea2d"; }
|
|
102
|
+
.ez-icon-custom:before { content: "\ea2e"; }
|
|
103
|
+
.ez-icon-delete-file:before { content: "\ea2f"; }
|
|
104
|
+
.ez-icon-delete:before { content: "\ea30"; }
|
|
105
|
+
.ez-icon-description:before { content: "\ea31"; }
|
|
106
|
+
.ez-icon-dividir:before { content: "\ea32"; }
|
|
107
|
+
.ez-icon-docx:before { content: "\ea33"; }
|
|
108
|
+
.ez-icon-dot-notification:before { content: "\ea34"; }
|
|
109
|
+
.ez-icon-dots-horizontal:before { content: "\ea35"; }
|
|
110
|
+
.ez-icon-dots-vertical:before { content: "\ea36"; }
|
|
111
|
+
.ez-icon-drag-indicator:before { content: "\ea37"; }
|
|
112
|
+
.ez-icon-dual-chevron-down:before { content: "\ea38"; }
|
|
113
|
+
.ez-icon-dual-chevron-left:before { content: "\ea39"; }
|
|
114
|
+
.ez-icon-dual-chevron-right:before { content: "\ea3a"; }
|
|
115
|
+
.ez-icon-dual-chevron-up:before { content: "\ea3b"; }
|
|
116
|
+
.ez-icon-edit-file:before { content: "\ea3c"; }
|
|
117
|
+
.ez-icon-edit-table:before { content: "\ea3d"; }
|
|
118
|
+
.ez-icon-edit-time:before { content: "\ea3e"; }
|
|
119
|
+
.ez-icon-edit-value:before { content: "\ea3f"; }
|
|
120
|
+
.ez-icon-edit:before { content: "\ea40"; }
|
|
121
|
+
.ez-icon-email:before { content: "\ea41"; }
|
|
122
|
+
.ez-icon-estorno:before { content: "\ea42"; }
|
|
123
|
+
.ez-icon-exe:before { content: "\ea43"; }
|
|
124
|
+
.ez-icon-expand:before { content: "\ea44"; }
|
|
125
|
+
.ez-icon-expandir_card:before { content: "\ea45"; }
|
|
126
|
+
.ez-icon-extrato:before { content: "\ea46"; }
|
|
127
|
+
.ez-icon-eye-off:before { content: "\ea47"; }
|
|
128
|
+
.ez-icon-eye:before { content: "\ea48"; }
|
|
129
|
+
.ez-icon-favorite:before { content: "\ea49"; }
|
|
130
|
+
.ez-icon-figma:before { content: "\ea4a"; }
|
|
131
|
+
.ez-icon-file-download:before { content: "\ea4b"; }
|
|
132
|
+
.ez-icon-file-upload:before { content: "\ea4c"; }
|
|
133
|
+
.ez-icon-filter:before { content: "\ea4d"; }
|
|
134
|
+
.ez-icon-find-file:before { content: "\ea4e"; }
|
|
135
|
+
.ez-icon-find-page:before { content: "\ea4f"; }
|
|
136
|
+
.ez-icon-format-color-fill:before { content: "\ea50"; }
|
|
137
|
+
.ez-icon-generic:before { content: "\ea51"; }
|
|
138
|
+
.ez-icon-gif:before { content: "\ea52"; }
|
|
139
|
+
.ez-icon-graph_bar:before { content: "\ea53"; }
|
|
140
|
+
.ez-icon-handshake:before { content: "\ea54"; }
|
|
141
|
+
.ez-icon-help-inverted:before { content: "\ea55"; }
|
|
142
|
+
.ez-icon-help:before { content: "\ea56"; }
|
|
143
|
+
.ez-icon-hide_menu:before { content: "\ea57"; }
|
|
144
|
+
.ez-icon-home:before { content: "\ea58"; }
|
|
145
|
+
.ez-icon-icons104:before { content: "\ea59"; }
|
|
146
|
+
.ez-icon-language:before { content: "\ea5a"; }
|
|
147
|
+
.ez-icon-launch:before { content: "\ea5b"; }
|
|
148
|
+
.ez-icon-lightbulb:before { content: "\ea5c"; }
|
|
149
|
+
.ez-icon-list:before { content: "\ea5d"; }
|
|
150
|
+
.ez-icon-location:before { content: "\ea5e"; }
|
|
151
|
+
.ez-icon-lock-outline:before { content: "\ea5f"; }
|
|
152
|
+
.ez-icon-lock:before { content: "\ea60"; }
|
|
153
|
+
.ez-icon-menu:before { content: "\ea61"; }
|
|
154
|
+
.ez-icon-mid:before { content: "\ea62"; }
|
|
155
|
+
.ez-icon-minus:before { content: "\ea63"; }
|
|
156
|
+
.ez-icon-money-off:before { content: "\ea64"; }
|
|
157
|
+
.ez-icon-money:before { content: "\ea65"; }
|
|
158
|
+
.ez-icon-more:before { content: "\ea66"; }
|
|
159
|
+
.ez-icon-mp3:before { content: "\ea67"; }
|
|
160
|
+
.ez-icon-mp4:before { content: "\ea68"; }
|
|
161
|
+
.ez-icon-multiple-files:before { content: "\ea69"; }
|
|
162
|
+
.ez-icon-north-west:before { content: "\ea6a"; }
|
|
163
|
+
.ez-icon-number:before { content: "\ea6b"; }
|
|
164
|
+
.ez-icon-ordem-ascendente:before { content: "\ea6c"; }
|
|
165
|
+
.ez-icon-ordem-descendente:before { content: "\ea6d"; }
|
|
166
|
+
.ez-icon-parcelar:before { content: "\ea6e"; }
|
|
167
|
+
.ez-icon-pause:before { content: "\ea6f"; }
|
|
168
|
+
.ez-icon-payments:before { content: "\ea70"; }
|
|
169
|
+
.ez-icon-pdf:before { content: "\ea71"; }
|
|
170
|
+
.ez-icon-play:before { content: "\ea72"; }
|
|
171
|
+
.ez-icon-plus:before { content: "\ea73"; }
|
|
172
|
+
.ez-icon-png:before { content: "\ea74"; }
|
|
173
|
+
.ez-icon-power:before { content: "\ea75"; }
|
|
174
|
+
.ez-icon-pptx:before { content: "\ea76"; }
|
|
175
|
+
.ez-icon-preview:before { content: "\ea77"; }
|
|
176
|
+
.ez-icon-print:before { content: "\ea78"; }
|
|
177
|
+
.ez-icon-push-pin:before { content: "\ea79"; }
|
|
178
|
+
.ez-icon-rateio:before { content: "\ea7a"; }
|
|
179
|
+
.ez-icon-receipt:before { content: "\ea7b"; }
|
|
180
|
+
.ez-icon-recolher_card:before { content: "\ea7c"; }
|
|
181
|
+
.ez-icon-restore:before { content: "\ea7d"; }
|
|
182
|
+
.ez-icon-return:before { content: "\ea7e"; }
|
|
183
|
+
.ez-icon-sankhya-place:before { content: "\ea7f"; }
|
|
184
|
+
.ez-icon-save:before { content: "\ea80"; }
|
|
185
|
+
.ez-icon-search:before { content: "\ea81"; }
|
|
186
|
+
.ez-icon-settings-inverted:before { content: "\ea82"; }
|
|
187
|
+
.ez-icon-settings:before { content: "\ea83"; }
|
|
188
|
+
.ez-icon-share:before { content: "\ea84"; }
|
|
189
|
+
.ez-icon-shield:before { content: "\ea85"; }
|
|
190
|
+
.ez-icon-show_menu:before { content: "\ea86"; }
|
|
191
|
+
.ez-icon-south-east:before { content: "\ea87"; }
|
|
192
|
+
.ez-icon-sync:before { content: "\ea88"; }
|
|
193
|
+
.ez-icon-table:before { content: "\ea89"; }
|
|
194
|
+
.ez-icon-tag_code:before { content: "\ea8a"; }
|
|
195
|
+
.ez-icon-text:before { content: "\ea8b"; }
|
|
196
|
+
.ez-icon-timeline:before { content: "\ea8c"; }
|
|
197
|
+
.ez-icon-timer-outline:before { content: "\ea8d"; }
|
|
198
|
+
.ez-icon-trending-up:before { content: "\ea8e"; }
|
|
199
|
+
.ez-icon-tune:before { content: "\ea8f"; }
|
|
200
|
+
.ez-icon-txt:before { content: "\ea90"; }
|
|
201
|
+
.ez-icon-un-pin:before { content: "\ea91"; }
|
|
202
|
+
.ez-icon-unfold_less:before { content: "\ea92"; }
|
|
203
|
+
.ez-icon-unfold_more:before { content: "\ea93"; }
|
|
204
|
+
.ez-icon-user-circle:before { content: "\ea94"; }
|
|
205
|
+
.ez-icon-warning-outline:before { content: "\ea95"; }
|
|
206
|
+
.ez-icon-warning_triangle:before { content: "\ea96"; }
|
|
207
|
+
.ez-icon-whatshot:before { content: "\ea97"; }
|
|
208
|
+
.ez-icon-xlsx:before { content: "\ea98"; }
|
|
209
|
+
.ez-icon-zip:before { content: "\ea99"; }
|
|
212
210
|
/*
|
|
213
211
|
END CSS GENERATED BY EZ-DESIGN ICONS
|
|
214
212
|
*/
|
|
@@ -137,8 +137,16 @@ export class EzMuiltiSelectionList {
|
|
|
137
137
|
}
|
|
138
138
|
handleChangeSelectedItem(event) {
|
|
139
139
|
const { detail: itemCheckSelected } = event;
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
this.filteredOptions = this.filteredOptions.map(item => {
|
|
141
|
+
if (item.label === itemCheckSelected.label) {
|
|
142
|
+
return Object.assign(Object.assign({}, item), { check: itemCheckSelected.check });
|
|
143
|
+
}
|
|
144
|
+
return item;
|
|
145
|
+
});
|
|
146
|
+
this.clearInputs();
|
|
147
|
+
}
|
|
148
|
+
clearInputs() {
|
|
149
|
+
this.filterInput ? (this.filterInput.value = '') : (this.searchInput.value = '');
|
|
142
150
|
}
|
|
143
151
|
buildViewList(hasDelete) {
|
|
144
152
|
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 })));
|
|
@@ -77,14 +77,16 @@
|
|
|
77
77
|
|
|
78
78
|
.popup__content {
|
|
79
79
|
box-sizing: border-box;
|
|
80
|
-
height: 100%;
|
|
80
|
+
max-height: 100%;
|
|
81
81
|
width: 100%;
|
|
82
|
+
display: grid;
|
|
83
|
+
grid-template-rows: auto 1fr;
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
.popup__expandable-content {
|
|
85
87
|
box-sizing: border-box;
|
|
86
88
|
width: 100%;
|
|
87
|
-
height:
|
|
89
|
+
height: 100%;
|
|
88
90
|
}
|
|
89
91
|
|
|
90
92
|
.popup__header {
|
|
@@ -187,9 +187,10 @@ export class EzSearch {
|
|
|
187
187
|
if (currentValue == undefined) {
|
|
188
188
|
return;
|
|
189
189
|
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
190
|
+
if (!this.showSelectedValue || currentValue.value == undefined) {
|
|
191
|
+
return currentValue.label;
|
|
192
|
+
}
|
|
193
|
+
return currentValue.label ? `${currentValue.value} - ${currentValue.label}` : currentValue.value;
|
|
193
194
|
}
|
|
194
195
|
getText() {
|
|
195
196
|
const currentValue = this.getSelectedOption(this.value);
|
|
@@ -71,17 +71,16 @@ export class SplitPanel {
|
|
|
71
71
|
}
|
|
72
72
|
getGridTemplate() {
|
|
73
73
|
let template = '';
|
|
74
|
-
this._items.forEach((
|
|
75
|
-
const size = col.size || '1fr';
|
|
74
|
+
this._items.forEach((_col, index) => {
|
|
76
75
|
if (index === this._items.length - 1) {
|
|
77
|
-
template += `
|
|
76
|
+
template += ` 1fr`;
|
|
78
77
|
return;
|
|
79
78
|
}
|
|
80
79
|
if (index === 0) {
|
|
81
|
-
template +=
|
|
80
|
+
template += `1fr 5px`;
|
|
82
81
|
return;
|
|
83
82
|
}
|
|
84
|
-
template += `
|
|
83
|
+
template += ` 1fr 5px`;
|
|
85
84
|
});
|
|
86
85
|
return template;
|
|
87
86
|
}
|
|
@@ -1,23 +1,12 @@
|
|
|
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
|
-
|
|
8
1
|
.box_split-item {
|
|
9
2
|
background-color: var(--background--xlight);
|
|
3
|
+
padding: var(--space--nano);
|
|
10
4
|
width: 100%;
|
|
11
5
|
height: 100%;
|
|
12
6
|
border-radius: var(--border--radius-medium);
|
|
13
7
|
box-shadow: var(--shadow);
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
overflow: hidden;
|
|
16
8
|
display: flex;
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.box_split-item > .ez-split-item--content {
|
|
9
|
+
flex-direction: column;
|
|
21
10
|
overflow: auto;
|
|
22
11
|
}
|
|
23
12
|
|
|
@@ -43,5 +32,5 @@ ez-split-item {
|
|
|
43
32
|
|
|
44
33
|
.ez-split-item--content {
|
|
45
34
|
display: block;
|
|
46
|
-
height:
|
|
47
|
-
}
|
|
35
|
+
height: -webkit-fill-available;
|
|
36
|
+
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CSSVarsUtils } from '../../../../utils';
|
|
1
|
+
import { h } from '@stencil/core';
|
|
3
2
|
export class SplitItem {
|
|
4
3
|
constructor() {
|
|
5
4
|
this.label = undefined;
|
|
6
5
|
this.enableExpand = true;
|
|
7
6
|
this._expanded = false;
|
|
8
|
-
this.size = undefined;
|
|
9
7
|
}
|
|
10
8
|
/**
|
|
11
9
|
* Alterna a visibilidade do painel.
|
|
@@ -13,11 +11,8 @@ export class SplitItem {
|
|
|
13
11
|
toggleExpandItem() {
|
|
14
12
|
this._expanded = !this._expanded;
|
|
15
13
|
}
|
|
16
|
-
componentDidLoad() {
|
|
17
|
-
CSSVarsUtils.applyVarsGrid(this._element, this._slot.children[0]);
|
|
18
|
-
}
|
|
19
14
|
render() {
|
|
20
|
-
return (h(
|
|
15
|
+
return (h("div", { class: `box_split-item ${this._expanded ? 'expanded__item' : ''}`, ref: el => (this._element = el) }, h("div", { class: "ez-split-item--header" }, h("div", null, this.label && (h("div", { class: "ez-margin--small" }, h("h3", { class: " ez-title ez-title--small" }, this.label)))), h("div", { class: "ez-split-item--header-buttons" }, this.enableExpand && (h("ez-button", { size: "medium", mode: "icon", iconName: "expand", class: 'ez-button--tertiary', onClick: () => this.toggleExpandItem(), title: this._expanded ? 'Resumir' : 'Expandir' })), h("slot", { name: "rightButtons" }))), h("div", { class: "ez-split-item--content" }, h("slot", null))));
|
|
21
16
|
}
|
|
22
17
|
static get is() { return "ez-split-item"; }
|
|
23
18
|
static get originalStyleUrls() {
|
|
@@ -66,26 +61,6 @@ export class SplitItem {
|
|
|
66
61
|
"attribute": "enable-expand",
|
|
67
62
|
"reflect": true,
|
|
68
63
|
"defaultValue": "true"
|
|
69
|
-
},
|
|
70
|
-
"size": {
|
|
71
|
-
"type": "string",
|
|
72
|
-
"mutable": false,
|
|
73
|
-
"complexType": {
|
|
74
|
-
"original": "string",
|
|
75
|
-
"resolved": "string",
|
|
76
|
-
"references": {}
|
|
77
|
-
},
|
|
78
|
-
"required": false,
|
|
79
|
-
"optional": true,
|
|
80
|
-
"docs": {
|
|
81
|
-
"tags": [{
|
|
82
|
-
"name": "values",
|
|
83
|
-
"text": "'%', 'fr'"
|
|
84
|
-
}],
|
|
85
|
-
"text": "Define o tamanho inicial do painel."
|
|
86
|
-
},
|
|
87
|
-
"attribute": "size",
|
|
88
|
-
"reflect": false
|
|
89
64
|
}
|
|
90
65
|
};
|
|
91
66
|
}
|
|
@@ -64,19 +64,6 @@ 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
|
-
}
|
|
80
67
|
static applyIfExists(host, element, varName) {
|
|
81
68
|
const prop = getComputedStyle(host).getPropertyValue(varName);
|
|
82
69
|
if (prop) {
|
|
@@ -224,12 +224,6 @@ export const EzSkeleton: {
|
|
|
224
224
|
new (): EzSkeleton;
|
|
225
225
|
};
|
|
226
226
|
|
|
227
|
-
interface EzSplitButton extends Components.EzSplitButton, HTMLElement {}
|
|
228
|
-
export const EzSplitButton: {
|
|
229
|
-
prototype: EzSplitButton;
|
|
230
|
-
new (): EzSplitButton;
|
|
231
|
-
};
|
|
232
|
-
|
|
233
227
|
interface EzSplitItem extends Components.EzSplitItem, HTMLElement {}
|
|
234
228
|
export const EzSplitItem: {
|
|
235
229
|
prototype: EzSplitItem;
|