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