ywana-core8 0.0.457 → 0.0.460
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 +21 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +21 -12
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +21 -12
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +2 -2
- package/src/domain/TablePage.js +13 -4
package/dist/index.modern.js
CHANGED
@@ -4676,9 +4676,7 @@ var CollectionPage = function CollectionPage(props) {
|
|
4676
4676
|
};
|
4677
4677
|
|
4678
4678
|
var site = useContext(SiteContext);
|
4679
|
-
var _props$
|
4680
|
-
version = _props$version === void 0 ? 0 : _props$version,
|
4681
|
-
_props$id = props.id,
|
4679
|
+
var _props$id = props.id,
|
4682
4680
|
id = _props$id === void 0 ? "collection" : _props$id,
|
4683
4681
|
icon = props.icon,
|
4684
4682
|
title = props.title,
|
@@ -4713,7 +4711,7 @@ var CollectionPage = function CollectionPage(props) {
|
|
4713
4711
|
} catch (e) {
|
4714
4712
|
return Promise.reject(e);
|
4715
4713
|
}
|
4716
|
-
}, [
|
4714
|
+
}, []);
|
4717
4715
|
|
4718
4716
|
function add() {
|
4719
4717
|
var onOK = function onOK(form) {
|
@@ -5666,7 +5664,8 @@ var TableRowEditor = function TableRowEditor(props) {
|
|
5666
5664
|
|
5667
5665
|
|
5668
5666
|
var TableSelector = function TableSelector(props) {
|
5669
|
-
var
|
5667
|
+
var schema = props.schema,
|
5668
|
+
_props$actions2 = props.actions,
|
5670
5669
|
actions = _props$actions2 === void 0 ? [] : _props$actions2;
|
5671
5670
|
|
5672
5671
|
var _useContext2 = useContext(PageContext),
|
@@ -5676,17 +5675,27 @@ var TableSelector = function TableSelector(props) {
|
|
5676
5675
|
var all = pageContext.all,
|
5677
5676
|
checked = pageContext.checked;
|
5678
5677
|
var count = checked.size + "/" + all.length;
|
5678
|
+
var columns = Object.keys(schema).filter(function (key) {
|
5679
|
+
return schema[key].selectorColumn === true;
|
5680
|
+
}).map(function (field) {
|
5681
|
+
return {
|
5682
|
+
id: field.id,
|
5683
|
+
label: field.label
|
5684
|
+
};
|
5685
|
+
});
|
5679
5686
|
var rows = all.filter(function (item) {
|
5680
5687
|
return checked.has(item.id);
|
5681
5688
|
});
|
5682
5689
|
var table = {
|
5683
|
-
columns:
|
5684
|
-
|
5685
|
-
|
5686
|
-
|
5687
|
-
|
5688
|
-
|
5689
|
-
|
5690
|
+
columns: columns,
|
5691
|
+
|
5692
|
+
/*
|
5693
|
+
columns: [
|
5694
|
+
{ id: "id", label: "ID" },
|
5695
|
+
{ id: "idMatricula", label: "ID Matricula" },
|
5696
|
+
{ id: "flow", "Circuito"},
|
5697
|
+
],
|
5698
|
+
*/
|
5690
5699
|
rows: rows || []
|
5691
5700
|
};
|
5692
5701
|
var buttons = actions.map(function (_ref) {
|