@sankhyalabs/ezui 1.1.124 → 1.1.127
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-8fbdf2e0.js → CSSVarsUtils-1034b7b6.js} +2 -0
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +22 -9
- package/dist/cjs/ez-combo-box.cjs.entry.js +7 -3
- 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-filter-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +7 -4
- package/dist/cjs/ez-grid.cjs.entry.js +112 -22
- package/dist/cjs/ez-list.cjs.entry.js +6 -0
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +13 -3
- 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/ezui.cjs.js +1 -1
- package/dist/cjs/grid-config.cjs.entry.js +167 -31
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/select-box.cjs.entry.js +1 -1
- package/dist/collection/components/ez-check/ez-check.js +1 -1
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +91 -83
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +49 -18
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +6 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +23 -1
- package/dist/collection/components/ez-form/ez-form.css +5 -0
- package/dist/collection/components/ez-form/structure/FormItem.js +1 -1
- package/dist/collection/components/ez-form/structure/FormSheet.js +1 -1
- package/dist/collection/components/ez-form/structure/FormSheetMetadata.js +4 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +38 -18
- package/dist/collection/components/ez-grid/ez-grid.js +117 -7
- package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.js +190 -37
- package/dist/collection/components/ez-grid/subcomponents/select-box/select-box.js +3 -3
- package/dist/collection/components/ez-list/ez-list.js +23 -1
- package/dist/collection/components/ez-text-area/ez-text-area.js +15 -4
- package/dist/collection/components/ez-text-input/ez-text-input.css +4 -0
- package/dist/collection/utils/CSSVarsUtils.js +2 -0
- package/dist/custom-elements/index.js +341 -77
- package/dist/esm/{CSSVarsUtils-667e0016.js → CSSVarsUtils-eb4c5af6.js} +2 -0
- package/dist/esm/ez-collapsible-box.entry.js +23 -10
- package/dist/esm/ez-combo-box.entry.js +7 -3
- 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-filter-input.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +7 -4
- package/dist/esm/ez-grid.entry.js +112 -22
- package/dist/esm/ez-list.entry.js +6 -0
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +13 -3
- package/dist/esm/ez-text-input.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/grid-config.entry.js +167 -31
- package/dist/esm/loader.js +1 -1
- package/dist/esm/select-box.entry.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-4262a462.entry.js → p-248d8511.entry.js} +1 -1
- package/dist/ezui/p-35edc488.entry.js +1 -0
- package/dist/ezui/{p-2d894fed.entry.js → p-5821c335.entry.js} +1 -1
- package/dist/ezui/p-5a9ab4f7.entry.js +1 -0
- package/dist/ezui/{p-e62f5c77.entry.js → p-5f725a93.entry.js} +1 -1
- package/dist/ezui/p-7d5657c7.entry.js +1 -0
- package/dist/ezui/p-7d5b2ebf.entry.js +1 -0
- package/dist/ezui/p-7f87f762.entry.js +1 -0
- package/dist/ezui/p-933a7475.js +1 -0
- package/dist/ezui/p-b59ab2d5.entry.js +1 -0
- package/dist/ezui/{p-1db59c89.entry.js → p-c6b2b2e5.entry.js} +1 -1
- package/dist/ezui/{p-0927092b.entry.js → p-cbfb94cb.entry.js} +1 -1
- package/dist/ezui/p-cf8309fc.entry.js +1 -0
- package/dist/ezui/{p-5e989ecf.entry.js → p-ec205792.entry.js} +1 -1
- package/dist/ezui/{p-8543a1b3.entry.js → p-ed1e0331.entry.js} +1 -1
- package/dist/ezui/{p-28ce145e.entry.js → p-f65302bb.entry.js} +1 -1
- package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +12 -3
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +4 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +35 -1
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +3 -3
- package/dist/types/components/ez-grid/ez-grid.d.ts +14 -3
- package/dist/types/components/ez-grid/subcomponents/gridconfig/grid-config.d.ts +10 -4
- package/dist/types/components/ez-list/ez-list.d.ts +5 -0
- package/dist/types/components.d.ts +44 -10
- package/package.json +3 -3
- package/dist/ezui/p-0965bcae.entry.js +0 -1
- package/dist/ezui/p-46d1340b.entry.js +0 -1
- package/dist/ezui/p-6745931a.entry.js +0 -1
- package/dist/ezui/p-91e51dc9.entry.js +0 -1
- package/dist/ezui/p-9a9b2936.entry.js +0 -1
- package/dist/ezui/p-a44dcc62.entry.js +0 -1
- package/dist/ezui/p-c621cab9.entry.js +0 -1
- package/dist/ezui/p-d54c157f.js +0 -1
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0e284e03.js');
|
|
6
|
-
const AssetsUtils = require('./AssetsUtils-78164781.js');
|
|
7
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
+
const AssetsUtils = require('./AssetsUtils-78164781.js');
|
|
8
8
|
|
|
9
9
|
const gridConfigCss = ".sc-grid-config-h{--ez-grid-config__footer--padding-top:var(--space--medium, 12px);--ez-grid-config__main--padding-right:var(--space--medium, 12px);--ez-grid-config__tabselector-container--padding:var(--space--medium, 12px);--ez-grid-config__button-close--padding-left:var(--space--medium, 12px);--ez-grid-config__subtitle--font-family:var(--font-pattern, \"Sora\");--ez-grid-config__title--font-family:var(--font-pattern, \"Sora\");--ez-grid-config__title--font-weight:var(--text-weight--large, 700);--ez-grid-config__subtitle--font-size:var(--text--medium, 14px);--ez-grid-config__scrollbar--width:var(--space--medium, 12px);--ez-grid-config__main__scrollbar--background-color:var(--text--primary, #626e82);--ez-grid-config__main__scrollbar--border-radius:var(--border--radius-medium, 12px);--ez-grid__group--font-family:var(--font-pattern, \"Sora\");--ez-grid__group--font-size:var(--text--medium, 14px);--ez-grid__group--font-weight:var(--text-weight--large, 600);--ez-grid__group--padding-bottom:var(--space-small, 6px);display:grid;grid-template-rows:auto 1fr auto;max-height:100%;width:100%}.padding-right--medium.sc-grid-config{padding-right:var(--space--medium)}ez-list.sc-grid-config{height:100%}.heigth-calc.sc-grid-config{max-height:calc(100% - 24px)}.grid-config__footer.sc-grid-config{padding-top:var(--ez-grid-config__footer--padding-top);display:flex;justify-content:flex-end;width:100%}.hidden.sc-grid-config{display:none}.grid-config__main.sc-grid-config{padding-right:var(--ez-grid-config__main--padding-right);overflow-y:auto}.tabselector-container.sc-grid-config{padding:var(--ez-grid-config__tabselector-container--padding) 0}.button-close.sc-grid-config{padding-left:var(--ez-grid-config__button-close--padding-left)}.title-container.sc-grid-config{display:flex;justify-content:space-between;align-items:center;width:359px}.subtitle.sc-grid-config{font-family:var(--ez-grid-config__subtitle--font-family);font-size:var(--ez-grid-config__subtitle--font-size);color:var(--text--primary)}.title.sc-grid-config{display:flex;margin:0;font-family:var(--ez-grid-config__title--font-family);font-size:var(--title--large);font-weight:var(--ez-grid-config__title--font-weight);line-height:normal;letter-spacing:0em;text-align:left;color:var(--title--primary)}.grid-config__main.sc-grid-config::-webkit-scrollbar-track{background-color:#f0f2f5}.grid-config__main.sc-grid-config::-webkit-scrollbar-thumb{background-color:var(--ez-grid-config__main__scrollbar--background-color);border-radius:var(--ez-grid-config__main__scrollbar--border-radius)}.grid-config__main.sc-grid-config::-webkit-scrollbar{background-color:#f0f2f5;width:var(--ez-grid-config__scrollbar--width);max-width:var(--ez-grid-config__scrollbar--width);min-width:var(--ez-grid-config__scrollbar--width)}.group-name.sc-grid-config{font-family:var(--ez-grid__group--font-family);font-size:var(--ez-grid__group--font-size);font-weight:var(--ez-grid__group--font-weight);padding-bottom:var(--ez-grid__group--padding-bottom)}";
|
|
10
10
|
|
|
@@ -13,30 +13,50 @@ let GridConfig = class {
|
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
14
|
this.configFinish = index.createEvent(this, "configFinish", 7);
|
|
15
15
|
this.configCancel = index.createEvent(this, "configCancel", 7);
|
|
16
|
-
this._columnListHistory = [];
|
|
17
16
|
this._orderListItems = [];
|
|
17
|
+
this._orderPriorityList = [];
|
|
18
18
|
this._columListItems = [];
|
|
19
|
-
this.selectedTab = "Colunas";
|
|
20
19
|
this._selectedIndex = -1;
|
|
20
|
+
this.selectedTab = "Colunas";
|
|
21
21
|
}
|
|
22
22
|
/* Creation Methods */
|
|
23
23
|
createOrderList() {
|
|
24
|
-
var _a;
|
|
25
24
|
let newList = [];
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
this.columns.forEach(column => {
|
|
26
|
+
var _a;
|
|
27
|
+
let configItem = (_a = this.config) === null || _a === void 0 ? void 0 : _a.columns.find(item => item.name === column.name);
|
|
28
|
+
let item = { name: column.name, label: column.label };
|
|
29
|
+
if (configItem) {
|
|
30
|
+
item['orderIndex'] = configItem.orderIndex;
|
|
31
|
+
item['ascending'] = configItem.ascending;
|
|
32
|
+
}
|
|
33
|
+
if (!column.hidden) {
|
|
29
34
|
newList.push(item);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
if (
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
newList.sort((a, b) => {
|
|
38
|
+
//OS dois tem order index 0 e pelo menos um deles tem orientação de ordenação.
|
|
39
|
+
if (a.orderIndex == 0 && b.orderIndex == 0 && (a.ascending != undefined || b.ascending != undefined)) {
|
|
40
|
+
if (a.ascending != undefined)
|
|
41
|
+
return -1;
|
|
42
|
+
if (b.ascending != undefined)
|
|
43
|
+
return 1;
|
|
44
|
+
return 0;
|
|
45
|
+
//Pelo menos um deles tem order index diferente de 0 e os dois tem orientação de ordenação.
|
|
46
|
+
}
|
|
47
|
+
else if (a.ascending != undefined && b.ascending != undefined) {
|
|
48
|
+
return (a.orderIndex - b.orderIndex);
|
|
49
|
+
//Pelo menos um deles tem order index diferente de 0 e pelo menos um deles tem orientação de ordenação.
|
|
50
|
+
}
|
|
51
|
+
else if (a.ascending != undefined || b.ascending != undefined) {
|
|
52
|
+
if (a.ascending != undefined)
|
|
53
|
+
return -1;
|
|
54
|
+
if (b.ascending != undefined)
|
|
55
|
+
return 1;
|
|
56
|
+
return 0;
|
|
57
|
+
}
|
|
58
|
+
return (a.orderIndex - b.orderIndex);
|
|
59
|
+
});
|
|
40
60
|
this._orderListItems = newList;
|
|
41
61
|
}
|
|
42
62
|
createColumnList() {
|
|
@@ -58,22 +78,41 @@ let GridConfig = class {
|
|
|
58
78
|
visibleGroup.items.push(item);
|
|
59
79
|
}
|
|
60
80
|
});
|
|
61
|
-
|
|
62
|
-
this._columListItems = [visibleGroup, hiddenGroup];
|
|
63
|
-
}
|
|
81
|
+
this._columListItems = [visibleGroup, hiddenGroup];
|
|
64
82
|
}
|
|
65
83
|
buildColumnListSlot(item, group) {
|
|
66
84
|
return (index.h("div", null, index.h("ez-check", { mode: 'switch', id: 'switch' + item + group, value: group.group === "Visíveis", onEzChange: (ev) => { this.switchColumnGroup(ev, item); } })));
|
|
67
85
|
}
|
|
68
86
|
buildOrderListSlot(item) {
|
|
69
|
-
let
|
|
70
|
-
|
|
87
|
+
let selectedOption = "na";
|
|
88
|
+
if ((item === null || item === void 0 ? void 0 : item.ascending) != undefined) {
|
|
89
|
+
selectedOption = item.ascending == true ? 'asc' : 'desc';
|
|
90
|
+
}
|
|
91
|
+
return (index.h("div", null, index.h("select-box", { selectedOption: selectedOption, key: 'select-box' + item, onEzChange: (ev) => { ev.stopPropagation(); this.updateOrder(ev.detail, item.label); } })));
|
|
71
92
|
}
|
|
72
|
-
updateOrder(sortOrder,
|
|
93
|
+
updateOrder(sortOrder, updatedItemLabel) {
|
|
94
|
+
var _a;
|
|
73
95
|
let newList = [...this.columns];
|
|
74
|
-
let newItem = newList.find(item => item.label ===
|
|
96
|
+
let newItem = newList.find(item => item.label === updatedItemLabel);
|
|
75
97
|
if (newItem) {
|
|
76
|
-
newItem.sort = sortOrder.value;
|
|
98
|
+
newItem.sort = sortOrder.value === "na" ? undefined : sortOrder.value;
|
|
99
|
+
}
|
|
100
|
+
let orderArray;
|
|
101
|
+
if (((_a = this._orderPriorityList) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
102
|
+
this._orderPriorityList.find(item => item.label === newItem.label).sort = sortOrder;
|
|
103
|
+
this._orderPriorityList.filter(item => item.sort).map((item, index) => {
|
|
104
|
+
if (item.label === newItem.label) {
|
|
105
|
+
newItem.sortIndex = index;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
orderArray = newList.filter(item => item.sort && item.hidden !== true).map((item, index) => {
|
|
111
|
+
return { label: item.label, orderIndex: index };
|
|
112
|
+
});
|
|
113
|
+
orderArray.forEach(element => {
|
|
114
|
+
newList.find(item => item.label === element.label).sortIndex = element.orderIndex;
|
|
115
|
+
});
|
|
77
116
|
}
|
|
78
117
|
this.columns = newList;
|
|
79
118
|
}
|
|
@@ -119,9 +158,100 @@ let GridConfig = class {
|
|
|
119
158
|
newColumnList.push(newColumnItem);
|
|
120
159
|
});
|
|
121
160
|
});
|
|
122
|
-
this._columnListHistory = [];
|
|
123
161
|
this.columns = newColumnList;
|
|
124
|
-
this.
|
|
162
|
+
this.save();
|
|
163
|
+
}
|
|
164
|
+
save() {
|
|
165
|
+
var _a;
|
|
166
|
+
let _newConfig;
|
|
167
|
+
if (this.config) {
|
|
168
|
+
_newConfig = this.config;
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
_newConfig = this.createConfigFromState(this.columns);
|
|
172
|
+
}
|
|
173
|
+
let _newColumnConfigList = [];
|
|
174
|
+
let orderArray;
|
|
175
|
+
if (((_a = this._orderPriorityList) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
176
|
+
orderArray = this.columns.filter(item => item.sort && item.hidden !== true).map((item) => {
|
|
177
|
+
return { label: item.label, orderIndex: 0 };
|
|
178
|
+
});
|
|
179
|
+
let indexCount = 0;
|
|
180
|
+
let newOrderArray = [];
|
|
181
|
+
this._orderPriorityList.forEach((orderPriorityItem) => {
|
|
182
|
+
let item = orderArray.find(column => column.label === orderPriorityItem.label);
|
|
183
|
+
if (item) {
|
|
184
|
+
item.orderIndex = indexCount;
|
|
185
|
+
newOrderArray.push(item);
|
|
186
|
+
indexCount++;
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
if (newOrderArray.length > 0) {
|
|
190
|
+
orderArray = newOrderArray;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
for (let i = 0; i < this.columns.length; i++) {
|
|
194
|
+
const column = this.columns[i];
|
|
195
|
+
let _newColumnConfig = _newConfig.columns.find(_newColumnConfig => column.name === _newColumnConfig.name);
|
|
196
|
+
if (column.hidden === true && _newColumnConfig) {
|
|
197
|
+
continue;
|
|
198
|
+
}
|
|
199
|
+
if (_newColumnConfig) {
|
|
200
|
+
_newColumnConfig.width = column.width;
|
|
201
|
+
}
|
|
202
|
+
else if (column.hidden === false) {
|
|
203
|
+
_newColumnConfig = { name: column.name, width: column.width, orderIndex: 0 };
|
|
204
|
+
}
|
|
205
|
+
if (_newColumnConfig) {
|
|
206
|
+
if (column.sort) {
|
|
207
|
+
_newColumnConfig.ascending = column.sort.toUpperCase() === "ASC" ? true : false;
|
|
208
|
+
if (orderArray) {
|
|
209
|
+
adjustPriorityOrder(column, _newColumnConfig);
|
|
210
|
+
}
|
|
211
|
+
else {
|
|
212
|
+
_newColumnConfig.orderIndex = column.sortIndex;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
delete _newColumnConfig.ascending;
|
|
217
|
+
_newColumnConfig.orderIndex = 0;
|
|
218
|
+
}
|
|
219
|
+
_newColumnConfigList.push(_newColumnConfig);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
_newConfig.columns = _newColumnConfigList;
|
|
223
|
+
this.configFinish.emit(_newConfig);
|
|
224
|
+
this._orderList.clearHistory();
|
|
225
|
+
function adjustPriorityOrder(column, _newColumnConfig) {
|
|
226
|
+
if (orderArray) {
|
|
227
|
+
let orderItem = orderArray.find(item => item.label === column.label);
|
|
228
|
+
if (orderItem) {
|
|
229
|
+
_newColumnConfig.orderIndex = orderItem.orderIndex;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
createConfigFromState(state) {
|
|
235
|
+
let newConfig = { columns: [] };
|
|
236
|
+
state.forEach(columnState => {
|
|
237
|
+
if (!columnState.hidden) {
|
|
238
|
+
let newConfigColumn = { name: columnState.name };
|
|
239
|
+
if (columnState.width) {
|
|
240
|
+
newConfigColumn['width'] = columnState.width;
|
|
241
|
+
}
|
|
242
|
+
if (columnState.sort) {
|
|
243
|
+
newConfigColumn['ascending'] = (columnState.sort.toUpperCase() === 'ASC');
|
|
244
|
+
newConfigColumn['orderIndex'] = columnState.sortIndex;
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
newConfigColumn['orderIndex'] = 0;
|
|
248
|
+
}
|
|
249
|
+
if (newConfigColumn) {
|
|
250
|
+
newConfig.columns.push(newConfigColumn);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
return newConfig;
|
|
125
255
|
}
|
|
126
256
|
async locateColumn(evt, searchingText) {
|
|
127
257
|
var _a;
|
|
@@ -211,15 +341,14 @@ let GridConfig = class {
|
|
|
211
341
|
return false;
|
|
212
342
|
}
|
|
213
343
|
closeConfig() {
|
|
214
|
-
this._columnListHistory = [];
|
|
215
344
|
this.configCancel.emit();
|
|
345
|
+
this._orderList.clearHistory();
|
|
216
346
|
}
|
|
217
347
|
/* Handlers */
|
|
218
348
|
handleTabChange(ev) {
|
|
219
349
|
var _a;
|
|
220
350
|
if ((_a = ev === null || ev === void 0 ? void 0 : ev.target) === null || _a === void 0 ? void 0 : _a.selectedTab) {
|
|
221
351
|
if (ev.target.selectedTab === "Ordenação das linhas") {
|
|
222
|
-
this._columnListHistory = this._columnList.dataSource;
|
|
223
352
|
this.createOrderList();
|
|
224
353
|
}
|
|
225
354
|
this.selectedTab = ev.target.selectedTab;
|
|
@@ -234,11 +363,18 @@ let GridConfig = class {
|
|
|
234
363
|
}
|
|
235
364
|
}
|
|
236
365
|
}
|
|
366
|
+
handleOrderListChange(ev) {
|
|
367
|
+
if (ev.detail) {
|
|
368
|
+
let orderPriorityList = ev.detail;
|
|
369
|
+
if (orderPriorityList) {
|
|
370
|
+
this._orderPriorityList = orderPriorityList;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
237
374
|
componentWillRender() {
|
|
238
375
|
var _a;
|
|
239
376
|
if (((_a = this.columns) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
240
377
|
this.createColumnList();
|
|
241
|
-
this.createOrderList();
|
|
242
378
|
}
|
|
243
379
|
}
|
|
244
380
|
componentDidRender() {
|
|
@@ -248,7 +384,7 @@ let GridConfig = class {
|
|
|
248
384
|
}
|
|
249
385
|
}
|
|
250
386
|
render() {
|
|
251
|
-
return (index.h(index.Host, null, index.h("div", { class: "grid-config__header" }, index.h("div", { class: "title-container" }, index.h("div", { class: "" }, index.h("label", { class: "title" }, "Configura\u00E7\u00E3o da Grade"), index.h("label", { class: "subtitle" }, "Defina visibilidade e ordem das colunas.")), index.h("div", { class: "button-close" }, index.h("ez-button", { mode: 'icon', image: AssetsUtils.getSpritePath("close"), size: 'medium', onClick: () => this.closeConfig() }))), index.h("div", { class: "tabselector-container" }, index.h("ez-tabselector", { selectedTab: this.selectedTab, selectedIndex: 0, onEzChange: (ev) => { this.handleTabChange(ev); }, tabs: 'Colunas, Ordena\u00E7\u00E3o das linhas' })), index.h("div", null, index.h("ez-text-input", { ref: (el) => this._searchElement = el, label: "Localizar coluna", onKeyUp: evt => this.locateColumn(evt) }, index.h("ez-icon", { slot: "leftIcon", size: "medium", href: AssetsUtils.getSpritePath("search") })))), index.h("div", { class: "grid-config__main" }, index.h("ez-list", { ref: (el) => this._columnList = el, class: this.selectedTab === "Colunas" ? "" : "hidden", dataSource: this._columListItems, onEzChange: ev => this.handleColumnListChange(ev), ezDraggable: true, ezSelectable: true, itemSlotBuilder: (item, group) => this.buildColumnListSlot(item, group), useGroups: true }), index.h("div", { class: this.selectedTab === "Ordenação das linhas" ? "group-name" : "hidden" }, "Sequ\u00EAncia da ordena\u00E7\u00E3o"), index.h("ez-list", { ref: (el) => this._orderList = el, class: this.selectedTab === "Ordenação das linhas" ? "heigth-calc" : "hidden", dataSource: this._orderListItems, ezSelectable: true, ezDraggable: true, itemSlotBuilder: (item) => this.buildOrderListSlot(item) })), index.h("div", { class: "grid-config__footer" }, index.h("ez-button", { class: "padding-right--medium", label: "Cancelar", onClick: () => this.closeConfig() }), index.h("ez-button", { label: "Concluir", class: "button--primary", onClick: () => this.finish() }))));
|
|
387
|
+
return (index.h(index.Host, null, index.h("div", { class: "grid-config__header" }, index.h("div", { class: "title-container" }, index.h("div", { class: "" }, index.h("label", { class: "title" }, "Configura\u00E7\u00E3o da Grade"), index.h("label", { class: "subtitle" }, "Defina visibilidade e ordem das colunas.")), index.h("div", { class: "button-close" }, index.h("ez-button", { mode: 'icon', image: AssetsUtils.getSpritePath("close"), size: 'medium', onClick: () => this.closeConfig() }))), index.h("div", { class: "tabselector-container" }, index.h("ez-tabselector", { selectedTab: this.selectedTab, selectedIndex: 0, onEzChange: (ev) => { this.handleTabChange(ev); }, tabs: 'Colunas, Ordena\u00E7\u00E3o das linhas' })), index.h("div", null, index.h("ez-text-input", { ref: (el) => this._searchElement = el, label: "Localizar coluna", onKeyUp: evt => this.locateColumn(evt) }, index.h("ez-icon", { slot: "leftIcon", size: "medium", href: AssetsUtils.getSpritePath("search") })))), index.h("div", { class: "grid-config__main" }, index.h("ez-list", { ref: (el) => this._columnList = el, class: this.selectedTab === "Colunas" ? "" : "hidden", dataSource: this._columListItems, onEzChange: ev => this.handleColumnListChange(ev), ezDraggable: true, ezSelectable: true, itemSlotBuilder: (item, group) => this.buildColumnListSlot(item, group), useGroups: true }), index.h("div", { class: this.selectedTab === "Ordenação das linhas" ? "group-name" : "hidden" }, "Sequ\u00EAncia da ordena\u00E7\u00E3o"), index.h("ez-list", { ref: (el) => this._orderList = el, class: this.selectedTab === "Ordenação das linhas" ? "heigth-calc" : "hidden", dataSource: this._orderListItems, ezSelectable: true, onEzChange: ev => this.handleOrderListChange(ev), ezDraggable: true, itemSlotBuilder: (item) => this.buildOrderListSlot(item) })), index.h("div", { class: "grid-config__footer" }, index.h("ez-button", { class: "padding-right--medium", label: "Cancelar", onClick: () => this.closeConfig() }), index.h("ez-button", { label: "Concluir", class: "button--primary", onClick: () => this.finish() }))));
|
|
252
388
|
}
|
|
253
389
|
static get assetsDirs() { return ["../assets"]; }
|
|
254
390
|
};
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["ez-grid.cjs",[[6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"pageSize":[2,"page-size"],"serverUrl":[1,"server-url"],"dataUnit":[16],"_navigationHasPrevious":[32],"_navigationHasNext":[32],"_navigationFirstRow":[32],"_navigationLastRow":[32],"_navigationTotalRows":[32],"_popUpVisible":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64],"refresh":[64],"quickFilter":[64]}]]],["ez-dialog.cjs",[[1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"handleButtonClick":[64],"show":[64]}]]],["ez-filter-input.cjs",[[1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"loading":[516],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-action-chip.cjs",[[1,"ez-action-chip",{"label":[513],"enabled":[516]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-label-chip.cjs",[[1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-popover.cjs",[[1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540],"innerElement":[1537,"inner-element"],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-toast.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["grid-config.cjs",[[2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040]}]]],["ez-modal.cjs",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-text-input.cjs",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-date-input.cjs",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-date-time-input.cjs",[[1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-search.cjs",[[1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressEmptyOption":[4,"suppress-empty-option"],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-time-input.cjs",[[1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-number-input.cjs",[[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-
|
|
17
|
+
return index.bootstrapLazy([["ez-grid.cjs",[[6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"pageSize":[2,"page-size"],"serverUrl":[1,"server-url"],"dataUnit":[16],"_navigationHasPrevious":[32],"_navigationHasNext":[32],"_navigationFirstRow":[32],"_navigationLastRow":[32],"_navigationTotalRows":[32],"_popUpVisible":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64],"refresh":[64],"quickFilter":[64]}]]],["ez-dialog.cjs",[[1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"handleButtonClick":[64],"show":[64]}]]],["ez-filter-input.cjs",[[1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"loading":[516],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-action-chip.cjs",[[1,"ez-action-chip",{"label":[513],"enabled":[516]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-label-chip.cjs",[[1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-popover.cjs",[[1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540],"innerElement":[1537,"inner-element"],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-toast.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["grid-config.cjs",[[2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040],"config":[1040]}]]],["ez-modal.cjs",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-text-input.cjs",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-date-input.cjs",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-date-time-input.cjs",[[1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-search.cjs",[[1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressEmptyOption":[4,"suppress-empty-option"],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-time-input.cjs",[[1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["select-box.cjs",[[1,"select-box",{"selectedOption":[1,"selected-option"]}]]],["ez-number-input.cjs",[[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-list.cjs",[[1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"_listItems":[32],"_listGroupItems":[32],"clearHistory":[64],"setSelection":[64],"getSelection":[64],"getList":[64]}]]],["ez-text-area.cjs",[[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"canShowError":[516,"can-show-error"],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-icon.cjs",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["ez-collapsible-box.cjs",[[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"stretchTitle":[516,"stretch-title"],"showHide":[64]}]]],["ez-upload.cjs",[[1,"ez-upload",{"label":[1],"enabled":[4],"maxFileSize":[2,"max-file-size"],"maxFiles":[2,"max-files"],"requestHeaders":[8,"request-headers"],"urlUpload":[1,"url-upload"],"urlDelete":[1,"url-delete"],"value":[1040],"addFiles":[64],"setFocus":[64],"setBlur":[64]}]]],["ez-button.cjs",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-calendar.cjs",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-check.cjs",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-tabselector.cjs",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}]]],["ez-combo-box.cjs",[[1,"ez-combo-box",{"value":[1537],"label":[513],"enabled":[516],"options":[1040],"errorMessage":[1537,"error-message"],"searchMode":[4,"search-mode"],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressSearch":[4,"suppress-search"],"optionLoader":[16],"suppressEmptyOption":[4,"suppress-empty-option"],"canShowError":[516,"can-show-error"],"mode":[513],"_preSelection":[32],"_visibleOptions":[32],"setFocus":[64],"setBlur":[64]}]]],["ez-form.cjs",[[0,"ez-form",{"dataUnit":[1040],"config":[16],"submit":[64],"cancel":[64],"validate":[64]}]]],["test-du.cjs",[[0,"test-du",{"isDirty":[32]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -13,7 +13,7 @@ let SelectBox = class {
|
|
|
13
13
|
this.selectedOption = { value: "na", label: "N/A" };
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (index.h("ez-combo-box", { class: "grid-config-combo inverted", label: "", value: this.selectedOption, enabled: true, canShowError: false, suppressEmptyOption: true }, index.h("option", { value: "na" }, "N/A"), index.h("option", { value: "asc" }, "A-Z"), index.h("option", { value: "desc" }, "Z-A")));
|
|
16
|
+
return (index.h("ez-combo-box", { class: "grid-config-combo inverted", label: "", suppressSearch: true, value: this.selectedOption, enabled: true, canShowError: false, suppressEmptyOption: true }, index.h("option", { value: "na" }, "N/A"), index.h("option", { value: "asc" }, "A-Z"), index.h("option", { value: "desc" }, "Z-A")));
|
|
17
17
|
}
|
|
18
18
|
static get assetsDirs() { return ["../assets"]; }
|
|
19
19
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
/*@doc Define a altura do componente quando colapsado.*/
|
|
3
|
-
--ez-collapsible-box--height: 42px;
|
|
4
|
-
|
|
5
2
|
/*@doc Define o tamanho da fonte do header.*/
|
|
6
3
|
--ez-collapsible-box--font-size: var(--title--medium, 14px);
|
|
7
4
|
/*@doc Define a família da fonte do header.*/
|
|
@@ -10,30 +7,16 @@
|
|
|
10
7
|
--ez-collapsible-box--font-weight: var(--text-weight--large, 600);
|
|
11
8
|
/*@doc Define a cor da fonte do header.*/
|
|
12
9
|
--ez-collapsible-box--color: var(--title--primary);
|
|
13
|
-
|
|
14
|
-
/*@doc Contém a imagem do chevron no tamanho xsmall.*/
|
|
15
|
-
--ez-collapsible-box__btn--image--xsmall: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="12px" width="7.5px"><path d="M 0,10.56 4.5967752,6.0000006 0,1.3800006 1.4516132,0 7.5,6.0000006 1.4516132,12 Z"/></svg>');
|
|
16
|
-
|
|
17
|
-
/*@doc Contém a imagem do chevron no tamanho small.*/
|
|
18
|
-
--ez-collapsible-box__btn--image--small: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="14px" width="8.68px"><path d="M 0,12.32 5.3200012,7.0000007 0,1.6100007 1.6800004,0 8.68,7.0000007 1.6800004,14 Z"/></svg>');
|
|
19
|
-
|
|
20
|
-
/*@doc Contém a imagem do chevron no tamanho medium.*/
|
|
21
|
-
--ez-collapsible-box__btn--image--medium: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="10px"><path d="M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z"/></svg>');
|
|
22
|
-
|
|
23
|
-
/*@doc Contém a imagem do chevron no tamanho large.*/
|
|
24
|
-
--ez-collapsible-box__btn--image--large: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="18px" width="11.25px"><path d="M 0,15.84 6.8951628,9.0000009 0,2.0700009 2.1774198,0 11.25,9.0000009 2.1774198,18 Z"/></svg>');
|
|
25
|
-
|
|
26
|
-
/*@doc Contém a imagem do chevron no tamanho xlarge.*/
|
|
27
|
-
--ez-collapsible-box__btn--image--xlarge: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="20px" width="12.5px"><path d="M 0,17.6 7.661292,10.000001 0,2.300001 2.4193553,0 12.5,10.000001 2.4193553,20 Z"/></svg>');
|
|
28
|
-
|
|
29
10
|
/*@doc Define a cor do chevron.*/
|
|
30
|
-
--ez-collapsible-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
/*@doc Define
|
|
36
|
-
--ez-collapsible-
|
|
11
|
+
--ez-collapsible-box__icon--color: var(--ez-collapsible-box--color);
|
|
12
|
+
/*@doc Define o espaçamento superior ao header.*/
|
|
13
|
+
--ez-collapsible-box__header--padding-top: 0px;
|
|
14
|
+
/*@doc Define o espaçamento inferior ao header.*/
|
|
15
|
+
--ez-collapsible-box__header--padding-bottom: 0px;
|
|
16
|
+
/*@doc Define o espaçamento à direita do header.*/
|
|
17
|
+
--ez-collapsible-box__header--padding-right: 0px;
|
|
18
|
+
/*@doc Define o espaçamento à esquerda do header.*/
|
|
19
|
+
--ez-collapsible-box__header--padding-left: 0px;
|
|
37
20
|
|
|
38
21
|
/***************
|
|
39
22
|
host style
|
|
@@ -44,33 +27,51 @@
|
|
|
44
27
|
width: 100%;
|
|
45
28
|
}
|
|
46
29
|
|
|
47
|
-
.collapsible-
|
|
30
|
+
.collapsible-box {
|
|
48
31
|
/*private*/
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
49
34
|
width: 100%;
|
|
50
|
-
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.collapsible-box__header {
|
|
38
|
+
/*private*/
|
|
51
39
|
display: flex;
|
|
52
40
|
box-sizing: border-box;
|
|
41
|
+
|
|
42
|
+
/*public*/
|
|
43
|
+
padding-top: var(--ez-collapsible-box__header--padding-top);
|
|
44
|
+
padding-bottom: var(--ez-collapsible-box__header--padding-bottom);
|
|
45
|
+
padding-right: var(--ez-collapsible-box__header--padding-right);
|
|
46
|
+
padding-left: var(--ez-collapsible-box__header--padding-left);
|
|
53
47
|
}
|
|
54
48
|
|
|
55
|
-
.collapsible-
|
|
56
|
-
|
|
57
|
-
|
|
49
|
+
.collapsible-box__title {
|
|
50
|
+
/*private*/
|
|
51
|
+
position: relative;
|
|
52
|
+
width: auto;
|
|
53
|
+
display: flex;
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
align-items: center;
|
|
56
|
+
outline: none;
|
|
57
|
+
border: none;
|
|
58
|
+
background-color: unset;
|
|
58
59
|
cursor: pointer;
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
padding: 0px;
|
|
61
|
+
text-align: left;
|
|
61
62
|
|
|
62
63
|
/*public*/
|
|
63
|
-
|
|
64
|
-
font-size: var(--ez-collapsible-box--font-size);
|
|
65
|
-
font-weight: var(--ez-collapsible-box--font-weight);
|
|
66
|
-
color: var(--ez-collapsible-box--color);
|
|
64
|
+
margin-bottom: var(--space--medium, 12px);
|
|
67
65
|
}
|
|
68
66
|
|
|
69
|
-
.collapsible-box__label
|
|
67
|
+
.collapsible-box__label {
|
|
68
|
+
/*private*/
|
|
70
69
|
white-space: nowrap;
|
|
71
70
|
overflow: hidden;
|
|
72
71
|
cursor: pointer;
|
|
73
72
|
text-overflow: ellipsis;
|
|
73
|
+
box-sizing: border-box;
|
|
74
|
+
margin-left: 6px;
|
|
74
75
|
|
|
75
76
|
/*public*/
|
|
76
77
|
font-family: var(--ez-collapsible-box--font-family);
|
|
@@ -79,84 +80,91 @@
|
|
|
79
80
|
color: var(--ez-collapsible-box--color);
|
|
80
81
|
}
|
|
81
82
|
|
|
82
|
-
.collapsible-
|
|
83
|
+
.collapsible-box__icon {
|
|
83
84
|
/*private*/
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
transform: rotate(90deg) translate(0px, 14%);
|
|
86
|
+
|
|
87
|
+
/*public*/
|
|
88
|
+
transition: transform var(--transition);
|
|
89
|
+
--ez-icon--color: var(--ez-collapsible-box__icon--color, --ez-collapsible-box--color);
|
|
89
90
|
}
|
|
90
91
|
|
|
91
|
-
.collapsible-
|
|
92
|
+
.collapsible-box__icon--collapsed {
|
|
92
93
|
/*private*/
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
transform: rotate(0deg) translate(-14%, 0px);
|
|
95
|
+
}
|
|
95
96
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
width: var(--ez-collapsible-box__btn--width);
|
|
100
|
-
height: var(--ez-collapsible-box__btn--height);
|
|
101
|
-
transition: transform var(--transition);
|
|
102
|
-
transform: rotate(90deg);
|
|
97
|
+
.collapsible-box__title--icon-right {
|
|
98
|
+
/*private*/
|
|
99
|
+
flex-direction: row-reverse;
|
|
103
100
|
}
|
|
104
101
|
|
|
105
|
-
.collapsible-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
-webkit-mask-image: var(--ez-collapsible-box__btn--image--xsmall);
|
|
109
|
-
mask-image: var(--ez-collapsible-box__btn--image--xsmall);
|
|
102
|
+
.collapsible-box__title--icon-right .collapsible-box__icon {
|
|
103
|
+
/*private*/
|
|
104
|
+
transform: rotate(90deg) translate(0px, -14%);
|
|
110
105
|
}
|
|
111
106
|
|
|
112
|
-
.collapsible-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
-webkit-mask-image: var(--ez-collapsible-box__btn--image--small);
|
|
116
|
-
mask-image: var(--ez-collapsible-box__btn--image--small);
|
|
107
|
+
.collapsible-box__title--icon-right .collapsible-box__icon--collapsed {
|
|
108
|
+
/*private*/
|
|
109
|
+
transform: rotate(0deg) translate(14%, 0px);
|
|
117
110
|
}
|
|
118
111
|
|
|
119
|
-
.collapsible-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
-
|
|
123
|
-
mask-image: var(--ez-collapsible-box__btn--image--medium);
|
|
112
|
+
.collapsible-box__title--icon-right .collapsible-box__label {
|
|
113
|
+
/*private*/
|
|
114
|
+
margin-left: 0px;
|
|
115
|
+
margin-right: 6px;
|
|
124
116
|
}
|
|
125
117
|
|
|
126
|
-
.collapsible-
|
|
127
|
-
width:
|
|
128
|
-
|
|
129
|
-
-webkit-mask-image: var(--ez-collapsible-box__btn--image--large);
|
|
130
|
-
mask-image: var(--ez-collapsible-box__btn--image--large);
|
|
118
|
+
.collapsible-box__title--stretched {
|
|
119
|
+
width: 100%;
|
|
120
|
+
justify-content: space-between;
|
|
131
121
|
}
|
|
132
122
|
|
|
133
|
-
.collapsible-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
-
|
|
137
|
-
|
|
123
|
+
.collapsible-box__content {
|
|
124
|
+
/*private*/
|
|
125
|
+
display: flex;
|
|
126
|
+
flex-wrap: wrap;
|
|
127
|
+
overflow: hidden;
|
|
128
|
+
width: 100%;
|
|
129
|
+
height: 0px;
|
|
130
|
+
max-height: 0px;
|
|
131
|
+
opacity: 0;
|
|
132
|
+
|
|
133
|
+
/*public*/
|
|
134
|
+
transition: all var(--transition, 0.5s);
|
|
138
135
|
}
|
|
139
136
|
|
|
140
|
-
.collapsible-
|
|
141
|
-
|
|
137
|
+
.collapsible-box__content--show {
|
|
138
|
+
/*private*/
|
|
139
|
+
height: 100%;
|
|
140
|
+
max-height: none;
|
|
141
|
+
opacity: 1;
|
|
142
|
+
|
|
143
|
+
/*public*/
|
|
144
|
+
transition: all var(--transition, 0.5s);
|
|
142
145
|
}
|
|
143
146
|
|
|
144
|
-
.font--
|
|
147
|
+
.font--x-small {
|
|
148
|
+
/*private*/
|
|
145
149
|
font-size: 10px;
|
|
146
150
|
}
|
|
147
151
|
|
|
148
152
|
.font--small {
|
|
153
|
+
/*private*/
|
|
149
154
|
font-size: 12px;
|
|
150
155
|
}
|
|
151
156
|
|
|
152
157
|
.font--medium {
|
|
158
|
+
/*private*/
|
|
153
159
|
font-size: 14px;
|
|
154
160
|
}
|
|
155
161
|
|
|
156
162
|
.font--large {
|
|
163
|
+
/*private*/
|
|
157
164
|
font-size: 16px;
|
|
158
165
|
}
|
|
159
166
|
|
|
160
|
-
.font--
|
|
167
|
+
.font--x-large {
|
|
168
|
+
/*private*/
|
|
161
169
|
font-size: 20px;
|
|
162
170
|
}
|