@sankhyalabs/ezui 1.1.125 → 1.1.128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +22 -9
- package/dist/cjs/ez-form.cjs.entry.js +18 -15
- package/dist/cjs/ez-grid.cjs.entry.js +115 -25
- package/dist/cjs/ez-list.cjs.entry.js +6 -0
- package/dist/cjs/ez-tabselector.cjs.entry.js +2 -2
- package/dist/cjs/ez-text-area.cjs.entry.js +13 -3
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/grid-config.cjs.entry.js +164 -32
- 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 +92 -83
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +52 -21
- package/dist/collection/components/ez-form/ez-form.css +5 -0
- package/dist/collection/components/ez-form/fieldbuilder/tpl/CheckBox.tpl.js +1 -1
- package/dist/collection/components/ez-form/fieldbuilder/tpl/ComboBox.tpl.js +1 -1
- package/dist/collection/components/ez-form/fieldbuilder/tpl/DateInput.tpl.js +3 -3
- package/dist/collection/components/ez-form/fieldbuilder/tpl/FileInput.tpl.js +1 -1
- package/dist/collection/components/ez-form/fieldbuilder/tpl/NumberInput.tpl.js +1 -1
- package/dist/collection/components/ez-form/fieldbuilder/tpl/SearchInput.tpl.js +1 -1
- package/dist/collection/components/ez-form/fieldbuilder/tpl/TextArea.tpl.js +1 -1
- package/dist/collection/components/ez-form/fieldbuilder/tpl/TextInput.tpl.js +1 -1
- package/dist/collection/components/ez-form/structure/FormItem.js +1 -1
- package/dist/collection/components/ez-form/structure/FormSheet.js +2 -2
- 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 +124 -14
- package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.js +188 -39
- package/dist/collection/components/ez-grid/subcomponents/select-box/select-box.js +1 -1
- package/dist/collection/components/ez-list/ez-list.js +23 -1
- package/dist/collection/components/ez-tabselector/ez-tabselector.css +1 -1
- package/dist/collection/components/ez-tabselector/ez-tabselector.js +1 -1
- package/dist/collection/components/ez-text-area/ez-text-area.js +15 -4
- package/dist/custom-elements/index.js +344 -90
- package/dist/esm/ez-collapsible-box.entry.js +23 -10
- package/dist/esm/ez-form.entry.js +18 -15
- package/dist/esm/ez-grid.entry.js +115 -25
- package/dist/esm/ez-list.entry.js +6 -0
- package/dist/esm/ez-tabselector.entry.js +2 -2
- package/dist/esm/ez-text-area.entry.js +13 -3
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/grid-config.entry.js +164 -32
- 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-2d165ca8.entry.js} +1 -1
- package/dist/ezui/p-47fe4273.entry.js +1 -0
- package/dist/ezui/p-5a9ab4f7.entry.js +1 -0
- package/dist/ezui/p-5b7405e8.entry.js +1 -0
- package/dist/ezui/p-66adbed5.entry.js +1 -0
- package/dist/ezui/p-6d39b7ea.entry.js +1 -0
- package/dist/ezui/p-7d5b2ebf.entry.js +1 -0
- package/dist/ezui/p-ef17f443.entry.js +1 -0
- package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +13 -5
- 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 +36 -10
- package/package.json +2 -2
- package/dist/ezui/p-1c28d99b.entry.js +0 -1
- package/dist/ezui/p-35edc488.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-7ee0ff27.entry.js +0 -1
- package/dist/ezui/p-91e51dc9.entry.js +0 -1
- package/dist/ezui/p-c621cab9.entry.js +0 -1
|
@@ -407,7 +407,7 @@ let EzCheck$1 = class extends HTMLElement$1 {
|
|
|
407
407
|
static get style() { return ezCheckCss; }
|
|
408
408
|
};
|
|
409
409
|
|
|
410
|
-
const ezCollapsibleBoxCss = ":host{--ez-collapsible-box--
|
|
410
|
+
const ezCollapsibleBoxCss = ":host{--ez-collapsible-box--font-size:var(--title--medium, 14px);--ez-collapsible-box--font-family:var(--font-pattern, Arial);--ez-collapsible-box--font-weight:var(--text-weight--large, 600);--ez-collapsible-box--color:var(--title--primary);--ez-collapsible-box__icon--color:var(--ez-collapsible-box--color);--ez-collapsible-box__header--padding-top:0px;--ez-collapsible-box__header--padding-bottom:0px;--ez-collapsible-box__header--padding-right:0px;--ez-collapsible-box__header--padding-left:0px;display:flex;flex-wrap:wrap;width:100%}.collapsible-box{display:flex;flex-direction:column;width:100%}.collapsible-box__header{display:flex;box-sizing:border-box;padding-top:var(--ez-collapsible-box__header--padding-top);padding-bottom:var(--ez-collapsible-box__header--padding-bottom);padding-right:var(--ez-collapsible-box__header--padding-right);padding-left:var(--ez-collapsible-box__header--padding-left)}.collapsible-box__title{position:relative;width:auto;display:flex;box-sizing:border-box;align-items:center;outline:none;border:none;background-color:unset;cursor:pointer;padding:0px;text-align:left;margin-bottom:var(--space--medium, 12px)}.collapsible-box__label{white-space:nowrap;overflow:hidden;cursor:pointer;text-overflow:ellipsis;box-sizing:border-box;margin-left:6px;font-family:var(--ez-collapsible-box--font-family);font-size:var(--ez-collapsible-box--font-size);font-weight:var(--ez-collapsible-box--font-weight);color:var(--ez-collapsible-box--color)}.collapsible-box__icon{transform:rotate(90deg) translate(0px, 14%);transition:transform var(--transition);--ez-icon--color:var(--ez-collapsible-box__icon--color, --ez-collapsible-box--color)}.collapsible-box__icon--collapsed{transform:rotate(0deg) translate(-14%, 0px)}.collapsible-box__title--icon-right{flex-direction:row-reverse}.collapsible-box__title--icon-right .collapsible-box__icon{transform:rotate(90deg) translate(0px, -14%)}.collapsible-box__title--icon-right .collapsible-box__icon--collapsed{transform:rotate(0deg) translate(14%, 0px)}.collapsible-box__title--icon-right .collapsible-box__label{margin-left:0px;margin-right:6px}.collapsible-box__title--stretched{width:100%;justify-content:space-between}.collapsible-box__content{display:flex;flex-wrap:wrap;width:100%;height:0px;max-height:0px;opacity:0;overflow:hidden;transition:all var(--transition, 0.5s)}.collapsible-box__content--show{height:100%;max-height:none;opacity:1;overflow:visible;transition:all var(--transition, 0.5s)}.font--x-small{font-size:10px}.font--small{font-size:12px}.font--medium{font-size:14px}.font--large{font-size:16px}.font--x-large{font-size:20px}";
|
|
411
411
|
|
|
412
412
|
let EzCollapsibleBox$1 = class extends HTMLElement$1 {
|
|
413
413
|
constructor() {
|
|
@@ -416,7 +416,7 @@ let EzCollapsibleBox$1 = class extends HTMLElement$1 {
|
|
|
416
416
|
this.__attachShadow();
|
|
417
417
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
418
418
|
/**
|
|
419
|
-
* Valor externalizado que garante a exibição ou não do componente
|
|
419
|
+
* Valor externalizado que garante a exibição ou não do componente.
|
|
420
420
|
*/
|
|
421
421
|
this.value = false;
|
|
422
422
|
/**
|
|
@@ -427,24 +427,37 @@ let EzCollapsibleBox$1 = class extends HTMLElement$1 {
|
|
|
427
427
|
* Define o local onde o ícone será renderizado.
|
|
428
428
|
*/
|
|
429
429
|
this.iconPlacement = "left";
|
|
430
|
+
/**
|
|
431
|
+
* Define se o titulo irá ocupar toda a largura do componente.
|
|
432
|
+
*/
|
|
433
|
+
this.stretchTitle = false;
|
|
430
434
|
}
|
|
431
|
-
|
|
435
|
+
observeCollapsedValue() {
|
|
432
436
|
this.ezChange.emit(this.value);
|
|
433
437
|
}
|
|
434
438
|
/**
|
|
435
|
-
* Esconde ou revela o conteúdo do componente
|
|
439
|
+
* Esconde ou revela o conteúdo do componente.
|
|
436
440
|
*/
|
|
437
441
|
async showHide() {
|
|
438
442
|
this.value = !this.value;
|
|
439
443
|
}
|
|
444
|
+
/**
|
|
445
|
+
* Retorna o tamanho configurado do texto e do ícone.
|
|
446
|
+
*/
|
|
447
|
+
getHeaderSize() {
|
|
448
|
+
const sizeAlias = ["xsmall", "xlarge"];
|
|
449
|
+
const sizeList = ["x-small", "small", "medium", "large", "x-large"];
|
|
450
|
+
const sizeLowerCase = this.headerSize && this.headerSize.toLowerCase();
|
|
451
|
+
const sizeCustom = sizeAlias.includes(sizeLowerCase) ? sizeLowerCase.replace('x', 'x-') : sizeLowerCase;
|
|
452
|
+
return sizeList.includes(sizeCustom) ? sizeCustom : "small";
|
|
453
|
+
}
|
|
440
454
|
render() {
|
|
441
|
-
return (h(
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
h("div", { class: "collapsible-box__title" }, h("button", { class: this.value ? "collapsible-box__btn collapsible-box__btn--collapsed " + "collapsible-box__btn--" + this.headerSize : "collapsible-box__btn " + "collapsible-box__btn--" + this.headerSize, onClick: () => this.showHide() }), h("label", { class: (this.iconPlacement == "right" ? "collapsible-box__label--icon-right " : "collapsible-box__label ") + (this.headerSize ? "font--" + this.headerSize : ""), onClick: () => this.showHide(), title: this.label }, this.label)), !this.value ? h("slot", null) : null));
|
|
455
|
+
return (h("div", { class: "collapsible-box" }, h("div", { class: "collapsible-box__header" }, h("button", { onClick: () => this.showHide(), class: "collapsible-box__title" +
|
|
456
|
+
(this.iconPlacement === "right" ? " collapsible-box__title--icon-right" : "") +
|
|
457
|
+
(this.stretchTitle ? " collapsible-box__title--stretched" : "") }, h("ez-icon", { slot: "icon", "icon-name": "chevron-right", size: this.getHeaderSize(), class: "collapsible-box__icon collapsible-box__icon--" + this.getHeaderSize() + (this.value ? " collapsible-box__icon--collapsed" : "") }), h("label", { class: "collapsible-box__label font--" + this.getHeaderSize(), title: this.label }, this.label))), h("div", { class: "collapsible-box__content" + (this.value ? "" : " collapsible-box__content--show") }, h("slot", null))));
|
|
445
458
|
}
|
|
446
459
|
static get watchers() { return {
|
|
447
|
-
"value": ["
|
|
460
|
+
"value": ["observeCollapsedValue"]
|
|
448
461
|
}; }
|
|
449
462
|
static get style() { return ezCollapsibleBoxCss; }
|
|
450
463
|
};
|
|
@@ -1148,12 +1161,12 @@ let EzFilterInput$1 = class extends HTMLElement$1 {
|
|
|
1148
1161
|
};
|
|
1149
1162
|
|
|
1150
1163
|
const buildTextArea = ({ name, label, readOnly }) => {
|
|
1151
|
-
return (h("div", { class: "col col--sd-12 padding-horizontal--small", key: name },
|
|
1164
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small", key: name },
|
|
1152
1165
|
h("ez-text-area", { enabled: !readOnly, label: label, "data-field-name": name })));
|
|
1153
1166
|
};
|
|
1154
1167
|
|
|
1155
1168
|
const buildTextInput = ({ name, label }) => {
|
|
1156
|
-
return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
1169
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
1157
1170
|
h("ez-text-input", { label: label, "data-field-name": name, key: name })));
|
|
1158
1171
|
};
|
|
1159
1172
|
|
|
@@ -1164,7 +1177,7 @@ const buildCheckBox = (fieldConfig) => {
|
|
|
1164
1177
|
return buildField$1(fieldConfig.name, fieldConfig.label, fieldConfig.readOnly, false);
|
|
1165
1178
|
};
|
|
1166
1179
|
function buildField$1(fieldName, fieldLabel, readOnly, switchMode = false) {
|
|
1167
|
-
return (h("div", { class: "col col--sd-12 col--tb-3 align--middle padding-horizontal--small padding-bottom--large" },
|
|
1180
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-align--middle ez-padding-horizontal--small ez-padding-bottom--large" },
|
|
1168
1181
|
h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? "switch" : "regular", "data-field-name": fieldName, key: fieldName })));
|
|
1169
1182
|
}
|
|
1170
1183
|
|
|
@@ -1178,30 +1191,30 @@ const buildComboBox = ({ name, label, readOnly, required }, properties) => {
|
|
|
1178
1191
|
else {
|
|
1179
1192
|
options = prop;
|
|
1180
1193
|
}
|
|
1181
|
-
return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
1194
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
1182
1195
|
h("ez-combo-box", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, key: name, options: options })));
|
|
1183
1196
|
};
|
|
1184
1197
|
|
|
1185
1198
|
const buildSearch = ({ name, label, readOnly, required }) => {
|
|
1186
|
-
return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
1199
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
1187
1200
|
h("ez-search", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, key: name })));
|
|
1188
1201
|
};
|
|
1189
1202
|
|
|
1190
1203
|
const buildFile = ({ name, label, readOnly }) => {
|
|
1191
|
-
return (h("div", { class: "col col--sd-12 padding-horizontal--small" },
|
|
1204
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
1192
1205
|
h("ez-upload", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
|
|
1193
1206
|
};
|
|
1194
1207
|
|
|
1195
1208
|
const buildDate = ({ name, label, readOnly }) => {
|
|
1196
|
-
return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
1209
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
1197
1210
|
h("ez-date-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
|
|
1198
1211
|
};
|
|
1199
1212
|
const buildTime = ({ name, label }) => {
|
|
1200
|
-
return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
1213
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
1201
1214
|
h("ez-time-input", { label: label, "data-field-name": name, key: name })));
|
|
1202
1215
|
};
|
|
1203
1216
|
const buildTimeDate = ({ name, label }) => {
|
|
1204
|
-
return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
1217
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
1205
1218
|
h("ez-date-time-input", { label: label, "data-field-name": name, key: name })));
|
|
1206
1219
|
};
|
|
1207
1220
|
|
|
@@ -1214,7 +1227,7 @@ const buildInteger = ({ name, label, readOnly }) => {
|
|
|
1214
1227
|
return buildNumeric(name, label, readOnly, 0, 0);
|
|
1215
1228
|
};
|
|
1216
1229
|
function buildNumeric(fieldName, fieldLabel, readOnly, precision, prettyPrecision) {
|
|
1217
|
-
return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
|
|
1230
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
1218
1231
|
h("ez-number-input", { enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, key: fieldName })));
|
|
1219
1232
|
}
|
|
1220
1233
|
|
|
@@ -1263,7 +1276,7 @@ const buildField = (field) => {
|
|
|
1263
1276
|
const FormItem = ({ source }) => {
|
|
1264
1277
|
if ("items" in source) {
|
|
1265
1278
|
const fieldSet = source;
|
|
1266
|
-
return h("ez-collapsible-box", { label: source.label }, fieldSet.items.map(fi => buildField(fi)));
|
|
1279
|
+
return h("ez-collapsible-box", { label: source.label, "header-size": "large" }, fieldSet.items.map(fi => buildField(fi)));
|
|
1267
1280
|
}
|
|
1268
1281
|
else {
|
|
1269
1282
|
return buildField(source);
|
|
@@ -1271,8 +1284,8 @@ const FormItem = ({ source }) => {
|
|
|
1271
1284
|
};
|
|
1272
1285
|
|
|
1273
1286
|
const FormSheet = ({ store, source }) => {
|
|
1274
|
-
return (h("div", { class: "box__container" },
|
|
1275
|
-
h("div", { class: "row padding-vertical--small" }, source.items.map(item => h(FormItem, { store: store, source: item })))));
|
|
1287
|
+
return (h("div", { class: "dynamic-content ez-box__container" },
|
|
1288
|
+
h("div", { class: "ez-row ez-padding-vertical--small" }, source.items.map(item => h(FormItem, { store: store, source: item })))));
|
|
1276
1289
|
};
|
|
1277
1290
|
|
|
1278
1291
|
class FormMetadata {
|
|
@@ -1323,6 +1336,9 @@ function getTabConfig(tab, sheets) {
|
|
|
1323
1336
|
const tabConfig = (typeof tab === "string" ? Array.from(sheets.keys()).find(t => t.label === tab) : tab);
|
|
1324
1337
|
return tabConfig || { label: tab, visible: true };
|
|
1325
1338
|
}
|
|
1339
|
+
function sortTabs(a, b) {
|
|
1340
|
+
return a[0].label == 'Geral' ? -1 : (a[0].order || 10000) - (b[0].order || 10000);
|
|
1341
|
+
}
|
|
1326
1342
|
const buildFromConfig = (fields, dataUnit) => {
|
|
1327
1343
|
const sheets = new Map();
|
|
1328
1344
|
const requiredFields = [];
|
|
@@ -1364,7 +1380,7 @@ const buildFromConfig = (fields, dataUnit) => {
|
|
|
1364
1380
|
});
|
|
1365
1381
|
const metadata = new FormMetadata();
|
|
1366
1382
|
Array.from(sheets.entries())
|
|
1367
|
-
.sort(
|
|
1383
|
+
.sort(sortTabs)
|
|
1368
1384
|
.forEach(([key, value]) => {
|
|
1369
1385
|
metadata.addSheet({
|
|
1370
1386
|
label: key.label,
|
|
@@ -1888,7 +1904,7 @@ ApplicationUtils.defaultMessageOptions = {
|
|
|
1888
1904
|
btnConfirmDanger: false
|
|
1889
1905
|
};
|
|
1890
1906
|
|
|
1891
|
-
const ezFormCss = "ez-form{display:flex;flex-direction:column;width:100%}";
|
|
1907
|
+
const ezFormCss = "ez-form{display:flex;flex-direction:column;width:100%}.dynamic-content ez-collapsible-box{--ez-collapsible-box__header--padding-right:var(--space-small, 6px);--ez-collapsible-box__header--padding-left:var(--space-small, 6px)}";
|
|
1892
1908
|
|
|
1893
1909
|
let EzForm$1 = class extends HTMLElement$1 {
|
|
1894
1910
|
constructor() {
|
|
@@ -112113,6 +112129,7 @@ class AgGridController {
|
|
|
112113
112129
|
serverSideStoreType: "partial",
|
|
112114
112130
|
rowSelection: this._multipleSelection ? "multiple" : "single",
|
|
112115
112131
|
serverSideDatasource: this._dataSource,
|
|
112132
|
+
sortingOrder: ['desc', 'asc', null],
|
|
112116
112133
|
getRowNodeId: (params) => typeof params === "string" ? params : params[this._idAttribName],
|
|
112117
112134
|
getMainMenuItems: (params) => {
|
|
112118
112135
|
const column = params.column;
|
|
@@ -112152,6 +112169,7 @@ class AgGridController {
|
|
|
112152
112169
|
opt.onSelectionChanged = e => this.onSelectionChange(e);
|
|
112153
112170
|
opt.onPaginationChanged = () => this.onPaginationChange();
|
|
112154
112171
|
opt.onRowDoubleClicked = evt => this.onRowDoubleClick(evt);
|
|
112172
|
+
opt.onDragStopped = evt => this.onCallStateChange("columnMovedEnd", evt);
|
|
112155
112173
|
opt.onViewportChanged = () => {
|
|
112156
112174
|
if (this._dataUnit) {
|
|
112157
112175
|
this.selectRows(this._dataUnit.getSelection());
|
|
@@ -112239,6 +112257,7 @@ class AgGridController {
|
|
|
112239
112257
|
const colDefs = [];
|
|
112240
112258
|
if (showCheckSelection) {
|
|
112241
112259
|
colDefs.push({
|
|
112260
|
+
colId: "checkBoxColumn",
|
|
112242
112261
|
headerName: "",
|
|
112243
112262
|
checkboxSelection: true,
|
|
112244
112263
|
headerCheckboxSelection: false,
|
|
@@ -112276,13 +112295,24 @@ class AgGridController {
|
|
|
112276
112295
|
if (this._grid === undefined) {
|
|
112277
112296
|
throw new Error("Erro interno: Grid ainda não inicializado.");
|
|
112278
112297
|
}
|
|
112279
|
-
|
|
112280
|
-
|
|
112281
|
-
|
|
112282
|
-
|
|
112283
|
-
|
|
112284
|
-
|
|
112285
|
-
|
|
112298
|
+
let columns = this.getColumnsDef();
|
|
112299
|
+
let visibleColumns = [];
|
|
112300
|
+
let sort = [];
|
|
112301
|
+
state.forEach((cfgColumn, index) => {
|
|
112302
|
+
this._gridOptions.columnApi.moveColumn(cfgColumn.name, index + 1);
|
|
112303
|
+
this._gridOptions.columnApi.setColumnWidth(cfgColumn.name, cfgColumn.width);
|
|
112304
|
+
visibleColumns.push(cfgColumn.name);
|
|
112305
|
+
if (cfgColumn.ascending !== undefined) {
|
|
112306
|
+
sort.push({ colId: cfgColumn.name, sort: cfgColumn.ascending !== true ? 'desc' : 'asc', sortIndex: cfgColumn.orderIndex });
|
|
112307
|
+
}
|
|
112308
|
+
});
|
|
112309
|
+
let invisibleColumns = columns.filter(column => !visibleColumns.includes(column.name)).map(column => column.name);
|
|
112310
|
+
this._gridOptions.columnApi.setColumnsVisible(visibleColumns, true);
|
|
112311
|
+
this._gridOptions.columnApi.setColumnsVisible(invisibleColumns, false);
|
|
112312
|
+
this._gridOptions.columnApi.applyColumnState({
|
|
112313
|
+
state: sort,
|
|
112314
|
+
defaultState: { sort: null },
|
|
112315
|
+
});
|
|
112286
112316
|
}
|
|
112287
112317
|
getColumnsState() {
|
|
112288
112318
|
if (this._grid === undefined) {
|
|
@@ -112375,21 +112405,27 @@ class AgGridController {
|
|
|
112375
112405
|
}
|
|
112376
112406
|
}
|
|
112377
112407
|
}
|
|
112378
|
-
buildColState(source) {
|
|
112379
|
-
return {
|
|
112380
|
-
colId: source.name,
|
|
112381
|
-
sort: source.sort,
|
|
112382
|
-
sortIndex: source.sortIndex,
|
|
112383
|
-
width: source.width,
|
|
112384
|
-
pinned: source.pinned ? "left" : null,
|
|
112385
|
-
hide: source.hidden
|
|
112386
|
-
};
|
|
112387
|
-
}
|
|
112388
112408
|
onCallStateChange(type, e) {
|
|
112389
112409
|
const finished = !("finished" in e) || e["finished"];
|
|
112390
112410
|
if (finished && this._columnStateChangeCallback) {
|
|
112391
|
-
|
|
112411
|
+
let info = {};
|
|
112412
|
+
let isUserChange = this.isUIEvent(e['source'], e['type']);
|
|
112413
|
+
if (type === 'columnResize') {
|
|
112414
|
+
info['column'] = { colId: e['column'].colId, actualWidth: e['column'].actualWidth };
|
|
112415
|
+
}
|
|
112416
|
+
info['isUserChange'] = isUserChange;
|
|
112417
|
+
this._columnStateChangeCallback(type, this.getColumnsState(), info);
|
|
112418
|
+
}
|
|
112419
|
+
}
|
|
112420
|
+
isUIEvent(source, type) {
|
|
112421
|
+
let optionsArr = ["uiColumnMoved", "uiColumnResized", "uiColumnDragged", "uiColumnExpanded", "uiColumnSorted"];
|
|
112422
|
+
if (type === 'dragStopped') {
|
|
112423
|
+
return true;
|
|
112392
112424
|
}
|
|
112425
|
+
if (source) {
|
|
112426
|
+
return optionsArr.includes(source);
|
|
112427
|
+
}
|
|
112428
|
+
return false;
|
|
112393
112429
|
}
|
|
112394
112430
|
onSelectionChange(e) {
|
|
112395
112431
|
if (this._selectionChangeCallback) {
|
|
@@ -112488,6 +112524,7 @@ let EzGrid$1 = class extends HTMLElement$1 {
|
|
|
112488
112524
|
this.ezColumnStateChange = createEvent(this, "ezColumnStateChange", 7);
|
|
112489
112525
|
this.ezSelectionChange = createEvent(this, "ezSelectionChange", 7);
|
|
112490
112526
|
this.ezDoubleClick = createEvent(this, "ezDoubleClick", 7);
|
|
112527
|
+
this.configChange = createEvent(this, "configChange", 7);
|
|
112491
112528
|
this._gridController = new AgGridController(false);
|
|
112492
112529
|
this._popUpVisible = false;
|
|
112493
112530
|
/**
|
|
@@ -112557,9 +112594,72 @@ let EzGrid$1 = class extends HTMLElement$1 {
|
|
|
112557
112594
|
addEventListener("ezSelectionChange", (evt) => this.dataUnit.setSelection(evt.detail.map((r) => r.__record__id__)));
|
|
112558
112595
|
}
|
|
112559
112596
|
}
|
|
112597
|
+
onColumnStateChange(type, state, info) {
|
|
112598
|
+
var _a;
|
|
112599
|
+
this.ezColumnStateChange.emit({ type, state, isUserChange: info.isUserChange });
|
|
112600
|
+
if (info.isUserChange) {
|
|
112601
|
+
if (type === 'columnMovedEnd') {
|
|
112602
|
+
let newConfig;
|
|
112603
|
+
if (this.config) {
|
|
112604
|
+
newConfig = { columns: [] };
|
|
112605
|
+
state.forEach(columnState => {
|
|
112606
|
+
let newConfigColumn = this.config.columns.find(column => column.name === columnState.name);
|
|
112607
|
+
if (newConfigColumn) {
|
|
112608
|
+
newConfigColumn.width = columnState.width;
|
|
112609
|
+
newConfig.columns.push(newConfigColumn);
|
|
112610
|
+
}
|
|
112611
|
+
});
|
|
112612
|
+
}
|
|
112613
|
+
else {
|
|
112614
|
+
newConfig = this.createConfigFromState(state);
|
|
112615
|
+
}
|
|
112616
|
+
if (newConfig.columns.length > 0) {
|
|
112617
|
+
this.configChange.emit(newConfig);
|
|
112618
|
+
}
|
|
112619
|
+
}
|
|
112620
|
+
else if (type === 'columnResize') {
|
|
112621
|
+
if ((_a = info.column) === null || _a === void 0 ? void 0 : _a.colId) {
|
|
112622
|
+
let newConfig;
|
|
112623
|
+
if (this.config) {
|
|
112624
|
+
newConfig = Object.assign({}, this.config);
|
|
112625
|
+
}
|
|
112626
|
+
else {
|
|
112627
|
+
newConfig = this.createConfigFromState(state);
|
|
112628
|
+
}
|
|
112629
|
+
let newColumn = newConfig.columns.find(column => column.name === info.column.colId);
|
|
112630
|
+
if (newColumn) {
|
|
112631
|
+
newColumn.width = info.column.actualWidth;
|
|
112632
|
+
this.configChange.emit(newConfig);
|
|
112633
|
+
}
|
|
112634
|
+
}
|
|
112635
|
+
}
|
|
112636
|
+
}
|
|
112637
|
+
}
|
|
112638
|
+
createConfigFromState(state) {
|
|
112639
|
+
let newConfig = { columns: [] };
|
|
112640
|
+
state.forEach(columnState => {
|
|
112641
|
+
if (!columnState.hidden) {
|
|
112642
|
+
let newConfigColumn = { name: columnState.name };
|
|
112643
|
+
if (columnState.width) {
|
|
112644
|
+
newConfigColumn['width'] = columnState.width;
|
|
112645
|
+
}
|
|
112646
|
+
if (columnState.sort) {
|
|
112647
|
+
newConfigColumn['ascending'] = (columnState.sort.toUpperCase() === 'ASC');
|
|
112648
|
+
newConfigColumn['orderIndex'] = columnState.sortIndex;
|
|
112649
|
+
}
|
|
112650
|
+
else {
|
|
112651
|
+
newConfigColumn['orderIndex'] = 0;
|
|
112652
|
+
}
|
|
112653
|
+
if (newConfigColumn) {
|
|
112654
|
+
newConfig.columns.push(newConfigColumn);
|
|
112655
|
+
}
|
|
112656
|
+
}
|
|
112657
|
+
});
|
|
112658
|
+
return newConfig;
|
|
112659
|
+
}
|
|
112560
112660
|
componentDidLoad() {
|
|
112561
112661
|
this._gridController.initDatagrid(this._container, {
|
|
112562
|
-
onColumnStateChange: (type, state) => this.
|
|
112662
|
+
onColumnStateChange: (type, state, info) => this.onColumnStateChange(type, state, info),
|
|
112563
112663
|
onSelectionChange: (selection) => this.ezSelectionChange.emit(selection),
|
|
112564
112664
|
onPaginationChange: (status) => {
|
|
112565
112665
|
this._navigationHasPrevious = status.hasPrevious;
|
|
@@ -112579,6 +112679,9 @@ let EzGrid$1 = class extends HTMLElement$1 {
|
|
|
112579
112679
|
if (this._dataUnitBridge) {
|
|
112580
112680
|
this._gridController.setColumnsDef(this._dataUnitBridge.buildColumnDefs(), true);
|
|
112581
112681
|
}
|
|
112682
|
+
if (this.config) {
|
|
112683
|
+
this.applyConfig(this.config);
|
|
112684
|
+
}
|
|
112582
112685
|
}
|
|
112583
112686
|
disconnectedCallback() {
|
|
112584
112687
|
if (this._dataUnitBridge) {
|
|
@@ -112590,13 +112693,13 @@ let EzGrid$1 = class extends HTMLElement$1 {
|
|
|
112590
112693
|
return null;
|
|
112591
112694
|
}
|
|
112592
112695
|
return [
|
|
112593
|
-
h("div", { class: "text text--primary text--medium margin-right--medium" }, h("strong", { class: "text text--primary text--medium" }, `${this._navigationFirstRow}-${this._navigationLastRow}`), ` de ${this._navigationTotalRows}`),
|
|
112594
|
-
h("ez-button", { size: "small", iconName: "chevron-left", class: "margin-right--medium", mode: "icon", enabled: this._navigationHasPrevious, onClick: () => this._gridController.previousPage(), label: "P\u00E1gina anterior" }),
|
|
112595
|
-
h("ez-button", { size: "small", iconName: "chevron-right", class: "margin-right--medium", mode: "icon", enabled: this._navigationHasNext, onClick: () => this._gridController.nextPage(), label: "Pr\u00F3xima P\u00E1gina" })
|
|
112696
|
+
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" }, `${this._navigationFirstRow}-${this._navigationLastRow}`), ` de ${this._navigationTotalRows}`),
|
|
112697
|
+
h("ez-button", { size: "small", iconName: "chevron-left", class: "ez-margin-right--medium", mode: "icon", enabled: this._navigationHasPrevious, onClick: () => this._gridController.previousPage(), label: "P\u00E1gina anterior" }),
|
|
112698
|
+
h("ez-button", { size: "small", iconName: "chevron-right", class: "ez-margin-right--medium", mode: "icon", enabled: this._navigationHasNext, onClick: () => this._gridController.nextPage(), label: "Pr\u00F3xima P\u00E1gina" })
|
|
112596
112699
|
];
|
|
112597
112700
|
}
|
|
112598
|
-
applyConfig(
|
|
112599
|
-
this._gridController.setColumnsState(
|
|
112701
|
+
applyConfig(config) {
|
|
112702
|
+
this._gridController.setColumnsState(config.columns);
|
|
112600
112703
|
this.closeConfig();
|
|
112601
112704
|
}
|
|
112602
112705
|
closeConfig() {
|
|
@@ -112608,9 +112711,12 @@ let EzGrid$1 = class extends HTMLElement$1 {
|
|
|
112608
112711
|
this._popUpVisible = true;
|
|
112609
112712
|
}
|
|
112610
112713
|
render() {
|
|
112611
|
-
return (h(Host, null, h("div", { class: "box box--shadow padding--medium grid-header" }, h("div", { class: "grid-header__container" }, h("slot", { name: "leftButtons" })), h("div", { class: "grid-header__container" }, this.getPaginationControl(), h("ez-button", { size: "small", iconName: "settings", class: "button--secondary", mode: "icon", onClick: () => { this.openConfig(); } }))), h("div", { class: "grid__container
|
|
112714
|
+
return (h(Host, null, h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" }, h("div", { class: "grid-header__container" }, h("slot", { name: "leftButtons" })), h("div", { class: "grid-header__container" }, this.getPaginationControl(), h("ez-button", { size: "small", iconName: "settings", class: "ez-button--secondary", mode: "icon", onClick: () => { this.openConfig(); } }))), h("div", { class: "grid__container ez-grid", ref: elem => this._container = elem }), h("div", { class: "grid__footer" }), h("ez-modal", { modalSize: "small", closeEsc: true, closeOutsideClick: true, opened: this._popUpVisible, onEzCloseModal: () => this._popUpVisible = false }, h("grid-config", { ref: ref => this._gridConfig = ref, config: this.config, selectedTab: "Colunas", onConfigFinish: evt => { this.applyConfig(evt.detail); this.configChange.emit(evt.detail); }, onConfigCancel: _evt => this.closeConfig() }))));
|
|
112612
112715
|
}
|
|
112613
112716
|
static get assetsDirs() { return ["../assets"]; }
|
|
112717
|
+
static get watchers() { return {
|
|
112718
|
+
"config": ["applyConfig"]
|
|
112719
|
+
}; }
|
|
112614
112720
|
static get style() { return ezGridCss; }
|
|
112615
112721
|
};
|
|
112616
112722
|
|
|
@@ -112799,6 +112905,12 @@ let EzList$1 = class extends HTMLElement$1 {
|
|
|
112799
112905
|
}
|
|
112800
112906
|
}
|
|
112801
112907
|
/**
|
|
112908
|
+
* Responsável por limpar a lista de histórico do componente.
|
|
112909
|
+
*/
|
|
112910
|
+
async clearHistory() {
|
|
112911
|
+
this._listItemsHistory = [];
|
|
112912
|
+
}
|
|
112913
|
+
/**
|
|
112802
112914
|
* Recebe como argumento um ListItem {label: string} e um booleano que define se o componente deve fazer scroll para exibir o item específico (opcional).
|
|
112803
112915
|
*/
|
|
112804
112916
|
async setSelection(selectedItem, scrollToOption) {
|
|
@@ -113629,7 +113741,7 @@ let EzSearch$1 = class extends HTMLElement$1 {
|
|
|
113629
113741
|
static get style() { return ezSearchCss; }
|
|
113630
113742
|
};
|
|
113631
113743
|
|
|
113632
|
-
const ezTabselectorCss = "@keyframes activate{0%{clip-path:inset(calc(100% - 3px) 50% 0px 50%)}100%{clip-path:inset(calc(100% - 3px) 0px 0px 0px)}}:host{display:flex;position:relative;width:100%;overflow:hidden;--tabselector--backward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--tabselector--forward-icon: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>')}.scroll{display:flex;width:100%;scroll-behavior:smooth;overflow-x:auto;scrollbar-width:none}.scroll.startHidden{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px)}.scroll.
|
|
113744
|
+
const ezTabselectorCss = "@keyframes activate{0%{clip-path:inset(calc(100% - 3px) 50% 0px 50%)}100%{clip-path:inset(calc(100% - 3px) 0px 0px 0px)}}:host{display:flex;position:relative;width:100%;overflow:hidden;--tabselector--backward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--tabselector--forward-icon: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>')}.scroll{display:flex;width:100%;scroll-behavior:smooth;overflow-x:auto;scrollbar-width:none}.scroll.startHidden{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px)}.scroll.middle{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px, #000 calc(100% - 48px), transparent calc(100% - 20px))}.scroll.endHidden{-webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 48px), transparent calc(100% - 20px))}.tab{display:flex;border:none;min-width:100px;background-color:unset;cursor:pointer;padding:6px 12px;align-items:center;justify-content:center;color:var(--text--primary, #626e82);font-family:var(--font-pattern, \"Sora, Algerian\");font-size:var(--title--small, 14px)}.tab:focus,.forward-button,.backward-button{outline:none}.is-active{position:relative;color:var(--color--primary, #008561)}.is-active::after{content:\"\";position:absolute;width:100%;height:100%;background-color:var(--color--primary, #008561);clip-path:inset(calc(100% - 3px) 0px 0px 0px);animation:activate 0.25s ease-in-out}.is-focused{border:1px dashed var(--color--primary, #000000c5)}.tab-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-shadow:var(--text-shadow);margin-bottom:var(--space--extra-small, 3px)}.forward-button,.backward-button{position:absolute;z-index:1;display:flex;box-sizing:border-box;padding:0px;top:0px;right:0px;width:16px;height:100%;border:none;background-color:unset;cursor:pointer;justify-content:center;align-items:center}.backward-button{left:0px}.forward-button::after,.backward-button::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:10px;height:16px}.forward-button::after{-webkit-mask-image:var(--tabselector--forward-icon);mask-image:var(--tabselector--forward-icon)}.backward-button::after{-webkit-mask-image:var(--tabselector--backward-icon);mask-image:var(--tabselector--backward-icon)}.forward-button:hover::after,.backward-button:hover::after{background-color:var(--color--primary, #4e4e4e)}.hidden{display:none}.scroll::-webkit-scrollbar{display:none}";
|
|
113633
113745
|
|
|
113634
113746
|
let EzTabselector$1 = class extends HTMLElement$1 {
|
|
113635
113747
|
constructor() {
|
|
@@ -113765,7 +113877,7 @@ let EzTabselector$1 = class extends HTMLElement$1 {
|
|
|
113765
113877
|
else {
|
|
113766
113878
|
this._forwardButton.classList.add("hidden");
|
|
113767
113879
|
}
|
|
113768
|
-
const classNames = ["", "startHidden", "endHidden", "
|
|
113880
|
+
const classNames = ["", "startHidden", "endHidden", "middle"];
|
|
113769
113881
|
const currentClass = classNames[Number(this._startHidden) | Number(this._endHidden) << 1];
|
|
113770
113882
|
classNames.forEach((name) => {
|
|
113771
113883
|
if (name !== currentClass && container.classList.contains(name)) {
|
|
@@ -113834,6 +113946,10 @@ let EzTextArea$1 = class extends HTMLElement$1 {
|
|
|
113834
113946
|
* Deixa o campo disponível ou não para digitação.
|
|
113835
113947
|
*/
|
|
113836
113948
|
this.enabled = true;
|
|
113949
|
+
/**
|
|
113950
|
+
* Ajusta o número de linhas e consequentemente o height do textarea. Valor default: 4
|
|
113951
|
+
*/
|
|
113952
|
+
this.rows = 4;
|
|
113837
113953
|
/**
|
|
113838
113954
|
* Permite exibir a mensagem de erro.
|
|
113839
113955
|
*/
|
|
@@ -113865,11 +113981,17 @@ let EzTextArea$1 = class extends HTMLElement$1 {
|
|
|
113865
113981
|
if (this._initialRows == undefined) {
|
|
113866
113982
|
this._initialRows = this.rows > 0 ? this.rows : undefined;
|
|
113867
113983
|
}
|
|
113868
|
-
|
|
113984
|
+
const rows = this._initialRows > 0 ? this._initialRows : this.mode != "slim" ? 4 : 2;
|
|
113985
|
+
if (rows !== this.rows) {
|
|
113986
|
+
this.rows = rows;
|
|
113987
|
+
}
|
|
113869
113988
|
}
|
|
113870
113989
|
adjustRowsValue() {
|
|
113871
|
-
|
|
113872
|
-
|
|
113990
|
+
const rows = this.rows > 0 ? this.rows : this.mode != "slim" ? 4 : 2;
|
|
113991
|
+
if (rows !== this.rows) {
|
|
113992
|
+
this.rows = rows;
|
|
113993
|
+
this._initialRows = rows;
|
|
113994
|
+
}
|
|
113873
113995
|
}
|
|
113874
113996
|
adjustFloatingLabel() {
|
|
113875
113997
|
if (this.label && this._labelElem) {
|
|
@@ -114732,30 +114854,50 @@ let GridConfig$1 = class extends HTMLElement$1 {
|
|
|
114732
114854
|
this.__registerHost();
|
|
114733
114855
|
this.configFinish = createEvent(this, "configFinish", 7);
|
|
114734
114856
|
this.configCancel = createEvent(this, "configCancel", 7);
|
|
114735
|
-
this._columnListHistory = [];
|
|
114736
114857
|
this._orderListItems = [];
|
|
114858
|
+
this._orderPriorityList = [];
|
|
114737
114859
|
this._columListItems = [];
|
|
114738
|
-
this.selectedTab = "Colunas";
|
|
114739
114860
|
this._selectedIndex = -1;
|
|
114861
|
+
this.selectedTab = "Colunas";
|
|
114740
114862
|
}
|
|
114741
114863
|
/* Creation Methods */
|
|
114742
114864
|
createOrderList() {
|
|
114743
|
-
var _a;
|
|
114744
114865
|
let newList = [];
|
|
114745
|
-
|
|
114746
|
-
|
|
114747
|
-
|
|
114866
|
+
this.columns.forEach(column => {
|
|
114867
|
+
var _a;
|
|
114868
|
+
let configItem = (_a = this.config) === null || _a === void 0 ? void 0 : _a.columns.find(item => item.name === column.name);
|
|
114869
|
+
let item = { name: column.name, label: column.label };
|
|
114870
|
+
if (configItem) {
|
|
114871
|
+
item['orderIndex'] = configItem.orderIndex;
|
|
114872
|
+
item['ascending'] = configItem.ascending;
|
|
114873
|
+
}
|
|
114874
|
+
if (!column.hidden) {
|
|
114748
114875
|
newList.push(item);
|
|
114749
|
-
}
|
|
114750
|
-
}
|
|
114751
|
-
|
|
114752
|
-
|
|
114753
|
-
|
|
114754
|
-
if (
|
|
114755
|
-
|
|
114756
|
-
|
|
114757
|
-
|
|
114758
|
-
|
|
114876
|
+
}
|
|
114877
|
+
});
|
|
114878
|
+
newList.sort((a, b) => {
|
|
114879
|
+
//OS dois tem order index 0 e pelo menos um deles tem orientação de ordenação.
|
|
114880
|
+
if (a.orderIndex == 0 && b.orderIndex == 0 && (a.ascending != undefined || b.ascending != undefined)) {
|
|
114881
|
+
if (a.ascending != undefined)
|
|
114882
|
+
return -1;
|
|
114883
|
+
if (b.ascending != undefined)
|
|
114884
|
+
return 1;
|
|
114885
|
+
return 0;
|
|
114886
|
+
//Pelo menos um deles tem order index diferente de 0 e os dois tem orientação de ordenação.
|
|
114887
|
+
}
|
|
114888
|
+
else if (a.ascending != undefined && b.ascending != undefined) {
|
|
114889
|
+
return (a.orderIndex - b.orderIndex);
|
|
114890
|
+
//Pelo menos um deles tem order index diferente de 0 e pelo menos um deles tem orientação de ordenação.
|
|
114891
|
+
}
|
|
114892
|
+
else if (a.ascending != undefined || b.ascending != undefined) {
|
|
114893
|
+
if (a.ascending != undefined)
|
|
114894
|
+
return -1;
|
|
114895
|
+
if (b.ascending != undefined)
|
|
114896
|
+
return 1;
|
|
114897
|
+
return 0;
|
|
114898
|
+
}
|
|
114899
|
+
return (a.orderIndex - b.orderIndex);
|
|
114900
|
+
});
|
|
114759
114901
|
this._orderListItems = newList;
|
|
114760
114902
|
}
|
|
114761
114903
|
createColumnList() {
|
|
@@ -114777,27 +114919,42 @@ let GridConfig$1 = class extends HTMLElement$1 {
|
|
|
114777
114919
|
visibleGroup.items.push(item);
|
|
114778
114920
|
}
|
|
114779
114921
|
});
|
|
114780
|
-
|
|
114781
|
-
this._columListItems = [visibleGroup, hiddenGroup];
|
|
114782
|
-
}
|
|
114922
|
+
this._columListItems = [visibleGroup, hiddenGroup];
|
|
114783
114923
|
}
|
|
114784
114924
|
buildColumnListSlot(item, group) {
|
|
114785
114925
|
return (h("div", null, h("ez-check", { mode: 'switch', id: 'switch' + item + group, value: group.group === "Visíveis", onEzChange: (ev) => { this.switchColumnGroup(ev, item); } })));
|
|
114786
114926
|
}
|
|
114787
114927
|
buildOrderListSlot(item) {
|
|
114788
|
-
let existingItem = this.columns.find(columnItem => columnItem.label === item.label);
|
|
114789
114928
|
let selectedOption = "na";
|
|
114790
|
-
if (
|
|
114791
|
-
selectedOption =
|
|
114929
|
+
if ((item === null || item === void 0 ? void 0 : item.ascending) != undefined) {
|
|
114930
|
+
selectedOption = item.ascending == true ? 'asc' : 'desc';
|
|
114792
114931
|
}
|
|
114793
|
-
return (h("div", null, h("select-box", { selectedOption: selectedOption, key: 'select-box' + item, onEzChange: (ev) => { ev.stopPropagation(); this.updateOrder(ev.detail, item); } })));
|
|
114932
|
+
return (h("div", null, h("select-box", { selectedOption: selectedOption, key: 'select-box' + item, onEzChange: (ev) => { ev.stopPropagation(); this.updateOrder(ev.detail, item.label); } })));
|
|
114794
114933
|
}
|
|
114795
|
-
updateOrder(sortOrder,
|
|
114934
|
+
updateOrder(sortOrder, updatedItemLabel) {
|
|
114935
|
+
var _a;
|
|
114796
114936
|
let newList = [...this.columns];
|
|
114797
|
-
let newItem = newList.find(item => item.label ===
|
|
114937
|
+
let newItem = newList.find(item => item.label === updatedItemLabel);
|
|
114798
114938
|
if (newItem) {
|
|
114799
114939
|
newItem.sort = sortOrder.value === "na" ? undefined : sortOrder.value;
|
|
114800
114940
|
}
|
|
114941
|
+
let orderArray;
|
|
114942
|
+
if (((_a = this._orderPriorityList) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
114943
|
+
this._orderPriorityList.find(item => item.label === newItem.label).sort = sortOrder;
|
|
114944
|
+
this._orderPriorityList.filter(item => item.sort).map((item, index) => {
|
|
114945
|
+
if (item.label === newItem.label) {
|
|
114946
|
+
newItem.sortIndex = index;
|
|
114947
|
+
}
|
|
114948
|
+
});
|
|
114949
|
+
}
|
|
114950
|
+
else {
|
|
114951
|
+
orderArray = newList.filter(item => item.sort && item.hidden !== true).map((item, index) => {
|
|
114952
|
+
return { label: item.label, orderIndex: index };
|
|
114953
|
+
});
|
|
114954
|
+
orderArray.forEach(element => {
|
|
114955
|
+
newList.find(item => item.label === element.label).sortIndex = element.orderIndex;
|
|
114956
|
+
});
|
|
114957
|
+
}
|
|
114801
114958
|
this.columns = newList;
|
|
114802
114959
|
}
|
|
114803
114960
|
/* Actions Methods */
|
|
@@ -114842,9 +114999,100 @@ let GridConfig$1 = class extends HTMLElement$1 {
|
|
|
114842
114999
|
newColumnList.push(newColumnItem);
|
|
114843
115000
|
});
|
|
114844
115001
|
});
|
|
114845
|
-
this._columnListHistory = [];
|
|
114846
115002
|
this.columns = newColumnList;
|
|
114847
|
-
this.
|
|
115003
|
+
this.save();
|
|
115004
|
+
}
|
|
115005
|
+
save() {
|
|
115006
|
+
var _a;
|
|
115007
|
+
let _newConfig;
|
|
115008
|
+
if (this.config) {
|
|
115009
|
+
_newConfig = this.config;
|
|
115010
|
+
}
|
|
115011
|
+
else {
|
|
115012
|
+
_newConfig = this.createConfigFromState(this.columns);
|
|
115013
|
+
}
|
|
115014
|
+
let _newColumnConfigList = [];
|
|
115015
|
+
let orderArray;
|
|
115016
|
+
if (((_a = this._orderPriorityList) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
115017
|
+
orderArray = this.columns.filter(item => item.sort && item.hidden !== true).map((item) => {
|
|
115018
|
+
return { label: item.label, orderIndex: 0 };
|
|
115019
|
+
});
|
|
115020
|
+
let indexCount = 0;
|
|
115021
|
+
let newOrderArray = [];
|
|
115022
|
+
this._orderPriorityList.forEach((orderPriorityItem) => {
|
|
115023
|
+
let item = orderArray.find(column => column.label === orderPriorityItem.label);
|
|
115024
|
+
if (item) {
|
|
115025
|
+
item.orderIndex = indexCount;
|
|
115026
|
+
newOrderArray.push(item);
|
|
115027
|
+
indexCount++;
|
|
115028
|
+
}
|
|
115029
|
+
});
|
|
115030
|
+
if (newOrderArray.length > 0) {
|
|
115031
|
+
orderArray = newOrderArray;
|
|
115032
|
+
}
|
|
115033
|
+
}
|
|
115034
|
+
for (let i = 0; i < this.columns.length; i++) {
|
|
115035
|
+
const column = this.columns[i];
|
|
115036
|
+
let _newColumnConfig = _newConfig.columns.find(_newColumnConfig => column.name === _newColumnConfig.name);
|
|
115037
|
+
if (column.hidden === true && _newColumnConfig) {
|
|
115038
|
+
continue;
|
|
115039
|
+
}
|
|
115040
|
+
if (_newColumnConfig) {
|
|
115041
|
+
_newColumnConfig.width = column.width;
|
|
115042
|
+
}
|
|
115043
|
+
else if (column.hidden === false) {
|
|
115044
|
+
_newColumnConfig = { name: column.name, width: column.width, orderIndex: 0 };
|
|
115045
|
+
}
|
|
115046
|
+
if (_newColumnConfig) {
|
|
115047
|
+
if (column.sort) {
|
|
115048
|
+
_newColumnConfig.ascending = column.sort.toUpperCase() === "ASC" ? true : false;
|
|
115049
|
+
if (orderArray) {
|
|
115050
|
+
adjustPriorityOrder(column, _newColumnConfig);
|
|
115051
|
+
}
|
|
115052
|
+
else {
|
|
115053
|
+
_newColumnConfig.orderIndex = column.sortIndex;
|
|
115054
|
+
}
|
|
115055
|
+
}
|
|
115056
|
+
else {
|
|
115057
|
+
delete _newColumnConfig.ascending;
|
|
115058
|
+
_newColumnConfig.orderIndex = 0;
|
|
115059
|
+
}
|
|
115060
|
+
_newColumnConfigList.push(_newColumnConfig);
|
|
115061
|
+
}
|
|
115062
|
+
}
|
|
115063
|
+
_newConfig.columns = _newColumnConfigList;
|
|
115064
|
+
this.configFinish.emit(_newConfig);
|
|
115065
|
+
this._orderList.clearHistory();
|
|
115066
|
+
function adjustPriorityOrder(column, _newColumnConfig) {
|
|
115067
|
+
if (orderArray) {
|
|
115068
|
+
let orderItem = orderArray.find(item => item.label === column.label);
|
|
115069
|
+
if (orderItem) {
|
|
115070
|
+
_newColumnConfig.orderIndex = orderItem.orderIndex;
|
|
115071
|
+
}
|
|
115072
|
+
}
|
|
115073
|
+
}
|
|
115074
|
+
}
|
|
115075
|
+
createConfigFromState(state) {
|
|
115076
|
+
let newConfig = { columns: [] };
|
|
115077
|
+
state.forEach(columnState => {
|
|
115078
|
+
if (!columnState.hidden) {
|
|
115079
|
+
let newConfigColumn = { name: columnState.name };
|
|
115080
|
+
if (columnState.width) {
|
|
115081
|
+
newConfigColumn['width'] = columnState.width;
|
|
115082
|
+
}
|
|
115083
|
+
if (columnState.sort) {
|
|
115084
|
+
newConfigColumn['ascending'] = (columnState.sort.toUpperCase() === 'ASC');
|
|
115085
|
+
newConfigColumn['orderIndex'] = columnState.sortIndex;
|
|
115086
|
+
}
|
|
115087
|
+
else {
|
|
115088
|
+
newConfigColumn['orderIndex'] = 0;
|
|
115089
|
+
}
|
|
115090
|
+
if (newConfigColumn) {
|
|
115091
|
+
newConfig.columns.push(newConfigColumn);
|
|
115092
|
+
}
|
|
115093
|
+
}
|
|
115094
|
+
});
|
|
115095
|
+
return newConfig;
|
|
114848
115096
|
}
|
|
114849
115097
|
async locateColumn(evt, searchingText) {
|
|
114850
115098
|
var _a;
|
|
@@ -114934,15 +115182,14 @@ let GridConfig$1 = class extends HTMLElement$1 {
|
|
|
114934
115182
|
return false;
|
|
114935
115183
|
}
|
|
114936
115184
|
closeConfig() {
|
|
114937
|
-
this._columnListHistory = [];
|
|
114938
115185
|
this.configCancel.emit();
|
|
115186
|
+
this._orderList.clearHistory();
|
|
114939
115187
|
}
|
|
114940
115188
|
/* Handlers */
|
|
114941
115189
|
handleTabChange(ev) {
|
|
114942
115190
|
var _a;
|
|
114943
115191
|
if ((_a = ev === null || ev === void 0 ? void 0 : ev.target) === null || _a === void 0 ? void 0 : _a.selectedTab) {
|
|
114944
115192
|
if (ev.target.selectedTab === "Ordenação das linhas") {
|
|
114945
|
-
this._columnListHistory = this._columnList.dataSource;
|
|
114946
115193
|
this.createOrderList();
|
|
114947
115194
|
}
|
|
114948
115195
|
this.selectedTab = ev.target.selectedTab;
|
|
@@ -114957,11 +115204,18 @@ let GridConfig$1 = class extends HTMLElement$1 {
|
|
|
114957
115204
|
}
|
|
114958
115205
|
}
|
|
114959
115206
|
}
|
|
115207
|
+
handleOrderListChange(ev) {
|
|
115208
|
+
if (ev.detail) {
|
|
115209
|
+
let orderPriorityList = ev.detail;
|
|
115210
|
+
if (orderPriorityList) {
|
|
115211
|
+
this._orderPriorityList = orderPriorityList;
|
|
115212
|
+
}
|
|
115213
|
+
}
|
|
115214
|
+
}
|
|
114960
115215
|
componentWillRender() {
|
|
114961
115216
|
var _a;
|
|
114962
115217
|
if (((_a = this.columns) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
114963
115218
|
this.createColumnList();
|
|
114964
|
-
this.createOrderList();
|
|
114965
115219
|
}
|
|
114966
115220
|
}
|
|
114967
115221
|
componentDidRender() {
|
|
@@ -114971,7 +115225,7 @@ let GridConfig$1 = class extends HTMLElement$1 {
|
|
|
114971
115225
|
}
|
|
114972
115226
|
}
|
|
114973
115227
|
render() {
|
|
114974
|
-
return (h(Host, null, h("div", { class: "grid-config__header" }, h("div", { class: "title-container" }, h("div", { class: "" }, h("label", { class: "title" }, "Configura\u00E7\u00E3o da Grade"), h("label", { class: "subtitle" }, "Defina visibilidade e ordem das colunas.")), h("div", { class: "button-close" }, h("ez-button", { mode: 'icon', image: getSpritePath("close"), size: 'medium', onClick: () => this.closeConfig() }))), h("div", { class: "tabselector-container" }, h("ez-tabselector", { selectedTab: this.selectedTab, selectedIndex: 0, onEzChange: (ev) => { this.handleTabChange(ev); }, tabs: 'Colunas, Ordena\u00E7\u00E3o das linhas' })), h("div", null, h("ez-text-input", { ref: (el) => this._searchElement = el, label: "Localizar coluna", onKeyUp: evt => this.locateColumn(evt) }, h("ez-icon", { slot: "leftIcon", size: "medium", href: getSpritePath("search") })))), h("div", { class: "grid-config__main" }, 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 }), h("div", { class: this.selectedTab === "Ordenação das linhas" ? "group-name" : "hidden" }, "Sequ\u00EAncia da ordena\u00E7\u00E3o"), 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) })), h("div", { class: "grid-config__footer" }, h("ez-button", { class: "padding-right--medium", label: "Cancelar", onClick: () => this.closeConfig() }), h("ez-button", { label: "Concluir", class: "button--primary", onClick: () => this.finish() }))));
|
|
115228
|
+
return (h(Host, null, h("div", { class: "grid-config__header" }, h("div", { class: "title-container" }, h("div", { class: "" }, h("label", { class: "title" }, "Configura\u00E7\u00E3o da Grade"), h("label", { class: "subtitle" }, "Defina visibilidade e ordem das colunas.")), h("div", { class: "button-close" }, h("ez-button", { mode: 'icon', image: getSpritePath("close"), size: 'medium', onClick: () => this.closeConfig() }))), h("div", { class: "tabselector-container" }, h("ez-tabselector", { selectedTab: this.selectedTab, selectedIndex: 0, onEzChange: (ev) => { this.handleTabChange(ev); }, tabs: 'Colunas, Ordena\u00E7\u00E3o das linhas' })), h("div", null, h("ez-text-input", { ref: (el) => this._searchElement = el, label: "Localizar coluna", onKeyUp: evt => this.locateColumn(evt) }, h("ez-icon", { slot: "leftIcon", size: "medium", href: getSpritePath("search") })))), h("div", { class: "grid-config__main" }, 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 }), h("div", { class: this.selectedTab === "Ordenação das linhas" ? "group-name" : "hidden" }, "Sequ\u00EAncia da ordena\u00E7\u00E3o"), 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) })), h("div", { class: "grid-config__footer" }, h("ez-button", { class: "padding-right--medium", label: "Cancelar", onClick: () => this.closeConfig() }), h("ez-button", { label: "Concluir", class: "ez-button--primary", onClick: () => this.finish() }))));
|
|
114975
115229
|
}
|
|
114976
115230
|
static get assetsDirs() { return ["../assets"]; }
|
|
114977
115231
|
static get style() { return gridConfigCss; }
|
|
@@ -114988,7 +115242,7 @@ let SelectBox$1 = class extends HTMLElement$1 {
|
|
|
114988
115242
|
this.selectedOption = { value: "na", label: "N/A" };
|
|
114989
115243
|
}
|
|
114990
115244
|
render() {
|
|
114991
|
-
return (h("ez-combo-box", { class: "grid-config-combo inverted", label: "", suppressSearch: true, value: this.selectedOption, enabled: true, canShowError: false, suppressEmptyOption: true }, h("option", { value: "na" }, "N/A"), h("option", { value: "asc" }, "A-Z"), h("option", { value: "desc" }, "Z-A")));
|
|
115245
|
+
return (h("ez-combo-box", { class: "grid-config-combo ez-input--inverted", label: "", suppressSearch: true, value: this.selectedOption, enabled: true, canShowError: false, suppressEmptyOption: true }, h("option", { value: "na" }, "N/A"), h("option", { value: "asc" }, "A-Z"), h("option", { value: "desc" }, "Z-A")));
|
|
114992
115246
|
}
|
|
114993
115247
|
static get assetsDirs() { return ["../assets"]; }
|
|
114994
115248
|
static get style() { return selectBoxCss; }
|
|
@@ -115060,15 +115314,15 @@ const EzActionChip = /*@__PURE__*/proxyCustomElement(EzLabelChip$2, [1,"ez-actio
|
|
|
115060
115314
|
const EzApplication = /*@__PURE__*/proxyCustomElement(EzApplication$1, [0,"ez-application"]);
|
|
115061
115315
|
const EzButton = /*@__PURE__*/proxyCustomElement(EzButton$1, [1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513]}]);
|
|
115062
115316
|
const EzCalendar = /*@__PURE__*/proxyCustomElement(EzCalendar$1, [1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"]}]);
|
|
115063
|
-
const EzCheck = /*@__PURE__*/proxyCustomElement(EzCheck$1, [1,"ez-check",{"label":[513],"value":[1540],"enabled":[
|
|
115064
|
-
const EzCollapsibleBox = /*@__PURE__*/proxyCustomElement(EzCollapsibleBox$1, [1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"]}]);
|
|
115317
|
+
const EzCheck = /*@__PURE__*/proxyCustomElement(EzCheck$1, [1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"mode":[513]}]);
|
|
115318
|
+
const EzCollapsibleBox = /*@__PURE__*/proxyCustomElement(EzCollapsibleBox$1, [1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"stretchTitle":[516,"stretch-title"]}]);
|
|
115065
115319
|
const EzComboBox = /*@__PURE__*/proxyCustomElement(EzComboBox$1, [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]}]);
|
|
115066
115320
|
const EzDateInput = /*@__PURE__*/proxyCustomElement(EzDateInput$1, [1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"mode":[513]}]);
|
|
115067
115321
|
const EzDateTimeInput = /*@__PURE__*/proxyCustomElement(EzDateTimeInput$1, [1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513]}]);
|
|
115068
115322
|
const EzDialog = /*@__PURE__*/proxyCustomElement(EzDialog$1, [1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"]}]);
|
|
115069
115323
|
const EzFilterInput = /*@__PURE__*/proxyCustomElement(EzFilterInput$1, [1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"loading":[516],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513]}]);
|
|
115070
115324
|
const EzForm = /*@__PURE__*/proxyCustomElement(EzForm$1, [0,"ez-form",{"dataUnit":[1040],"config":[16]}]);
|
|
115071
|
-
const EzGrid = /*@__PURE__*/proxyCustomElement(EzGrid$1, [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]}]);
|
|
115325
|
+
const EzGrid = /*@__PURE__*/proxyCustomElement(EzGrid$1, [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]}]);
|
|
115072
115326
|
const EzIcon = /*@__PURE__*/proxyCustomElement(EzIcon$1, [1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]);
|
|
115073
115327
|
const EzLabelChip = /*@__PURE__*/proxyCustomElement(EzLabelChip$1, [1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540]}]);
|
|
115074
115328
|
const EzList = /*@__PURE__*/proxyCustomElement(EzList$1, [1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"_listItems":[32],"_listGroupItems":[32]}]);
|
|
@@ -115083,7 +115337,7 @@ const EzTextInput = /*@__PURE__*/proxyCustomElement(EzTextInput$1, [1,"ez-text-i
|
|
|
115083
115337
|
const EzTimeInput = /*@__PURE__*/proxyCustomElement(EzTimeInput$1, [1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513]}]);
|
|
115084
115338
|
const EzToast = /*@__PURE__*/proxyCustomElement(EzToast$1, [1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"]}]);
|
|
115085
115339
|
const EzUpload = /*@__PURE__*/proxyCustomElement(EzUpload$1, [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]}]);
|
|
115086
|
-
const GridConfig = /*@__PURE__*/proxyCustomElement(GridConfig$1, [2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040]}]);
|
|
115340
|
+
const GridConfig = /*@__PURE__*/proxyCustomElement(GridConfig$1, [2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040],"config":[1040]}]);
|
|
115087
115341
|
const SelectBox = /*@__PURE__*/proxyCustomElement(SelectBox$1, [1,"select-box",{"selectedOption":[1,"selected-option"]}]);
|
|
115088
115342
|
const TestDu = /*@__PURE__*/proxyCustomElement(TestDu$1, [0,"test-du",{"isDirty":[32]}]);
|
|
115089
115343
|
const defineCustomElements = (opts) => {
|