ywana-core8 0.0.44 → 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 +25 -32
- 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 +25 -32
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +25 -32
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +3 -1
- package/src/html/textfield.css +2 -0
package/dist/index.umd.js
CHANGED
@@ -4300,40 +4300,33 @@
|
|
4300
4300
|
})));
|
4301
4301
|
});
|
4302
4302
|
}
|
4303
|
-
|
4304
|
-
|
4305
|
-
|
4306
|
-
|
4307
|
-
|
4308
|
-
|
4309
|
-
|
4310
|
-
|
4311
|
-
|
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
|
+
})
|
4312
4325
|
}
|
4326
|
+
|
4327
|
+
table.columns.push({ id: "actions" })
|
4328
|
+
*/
|
4313
4329
|
|
4314
|
-
return {
|
4315
|
-
id: field.id,
|
4316
|
-
label: field.label,
|
4317
|
-
type: field.type,
|
4318
|
-
onChange: field.editable ? change : null,
|
4319
|
-
options: options
|
4320
|
-
};
|
4321
|
-
}),
|
4322
|
-
rows: all.map(function (item) {
|
4323
|
-
item.actions = [/*#__PURE__*/React__default["default"].createElement(Icon, {
|
4324
|
-
icon: "delete",
|
4325
|
-
size: "small",
|
4326
|
-
clickable: true,
|
4327
|
-
action: function action() {
|
4328
|
-
return remove(item.id);
|
4329
|
-
}
|
4330
|
-
})];
|
4331
|
-
return item;
|
4332
|
-
})
|
4333
|
-
};
|
4334
|
-
table.columns.push({
|
4335
|
-
id: "actions"
|
4336
|
-
});
|
4337
4330
|
|
4338
4331
|
function buildGroupOptions(schema) {
|
4339
4332
|
return Object.values(schema).filter(function (field) {
|