ywana-core8 0.0.42 → 0.0.46
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/index.cjs +32 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4 -1
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +32 -35
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +32 -35
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +12 -4
- package/src/html/button.css +1 -1
- package/src/html/textfield.css +3 -0
package/dist/index.cjs
CHANGED
@@ -4155,9 +4155,12 @@ var TableFilters = function TableFilters(props) {
|
|
4155
4155
|
|
4156
4156
|
var filterSchema = React.useMemo(function () {
|
4157
4157
|
var filterSchema = Object.assign({}, schema);
|
4158
|
-
|
4159
|
-
|
4160
|
-
|
4158
|
+
|
4159
|
+
for (var key in filterSchema) {
|
4160
|
+
if (filterSchema[key].filter === false) delete filterSchema[key];
|
4161
|
+
}
|
4162
|
+
|
4163
|
+
Object.values(filterSchema).forEach(function (field) {
|
4161
4164
|
return field.section = null;
|
4162
4165
|
});
|
4163
4166
|
delete filterSchema.flows;
|
@@ -4169,6 +4172,7 @@ var TableFilters = function TableFilters(props) {
|
|
4169
4172
|
}
|
4170
4173
|
|
4171
4174
|
var content = new Content(filterSchema, form);
|
4175
|
+
console.log(filterSchema, content);
|
4172
4176
|
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, null, /*#__PURE__*/React__default["default"].createElement(Header, {
|
4173
4177
|
title: /*#__PURE__*/React__default["default"].createElement(Text, null, "Filtros")
|
4174
4178
|
}, /*#__PURE__*/React__default["default"].createElement(Button$1, {
|
@@ -4296,40 +4300,33 @@ var TableEditor = function TableEditor(props) {
|
|
4296
4300
|
})));
|
4297
4301
|
});
|
4298
4302
|
}
|
4299
|
-
|
4300
|
-
|
4301
|
-
|
4302
|
-
|
4303
|
-
|
4304
|
-
|
4305
|
-
|
4306
|
-
|
4307
|
-
|
4303
|
+
/* DUPLIDCADO
|
4304
|
+
const table = {
|
4305
|
+
columns: Object.values(schema)
|
4306
|
+
.filter(field => field.column === true)
|
4307
|
+
.map(field => {
|
4308
|
+
let options = field.options;
|
4309
|
+
if (options && typeof (options) == 'function') {
|
4310
|
+
options = options()
|
4311
|
+
}
|
4312
|
+
return {
|
4313
|
+
id: field.id,
|
4314
|
+
label: field.label,
|
4315
|
+
type: field.type,
|
4316
|
+
onChange: field.editable ? change : null,
|
4317
|
+
options
|
4318
|
+
}
|
4319
|
+
}),
|
4320
|
+
rows: all
|
4321
|
+
.map(item => {
|
4322
|
+
item.actions = [<Icon icon="delete" size="small" clickable action={() => remove(item.id)} />]
|
4323
|
+
return item
|
4324
|
+
})
|
4308
4325
|
}
|
4326
|
+
|
4327
|
+
table.columns.push({ id: "actions" })
|
4328
|
+
*/
|
4309
4329
|
|
4310
|
-
return {
|
4311
|
-
id: field.id,
|
4312
|
-
label: field.label,
|
4313
|
-
type: field.type,
|
4314
|
-
onChange: field.editable ? change : null,
|
4315
|
-
options: options
|
4316
|
-
};
|
4317
|
-
}),
|
4318
|
-
rows: all.map(function (item) {
|
4319
|
-
item.actions = [/*#__PURE__*/React__default["default"].createElement(Icon, {
|
4320
|
-
icon: "delete",
|
4321
|
-
size: "small",
|
4322
|
-
clickable: true,
|
4323
|
-
action: function action() {
|
4324
|
-
return remove(item.id);
|
4325
|
-
}
|
4326
|
-
})];
|
4327
|
-
return item;
|
4328
|
-
})
|
4329
|
-
};
|
4330
|
-
table.columns.push({
|
4331
|
-
id: "actions"
|
4332
|
-
});
|
4333
4330
|
|
4334
4331
|
function buildGroupOptions(schema) {
|
4335
4332
|
return Object.values(schema).filter(function (field) {
|