ywana-core8 0.1.53 → 0.1.55
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 +49 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +49 -12
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +49 -12
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +22 -0
- package/src/site/site.js +3 -0
package/dist/index.umd.js
CHANGED
@@ -3627,6 +3627,7 @@
|
|
3627
3627
|
};
|
3628
3628
|
var sections = React.useMemo(function () {
|
3629
3629
|
return children.reduce(function (acc, child) {
|
3630
|
+
if (!child || !child.props) return acc;
|
3630
3631
|
var section = child.props.section || "";
|
3631
3632
|
if (!acc[section]) acc[section] = [];
|
3632
3633
|
var title = child.props.title;
|
@@ -9932,15 +9933,15 @@
|
|
9932
9933
|
return Promise.reject(e);
|
9933
9934
|
}
|
9934
9935
|
},
|
9935
|
-
|
9936
|
-
this.filters = filters;
|
9937
|
-
},
|
9938
|
-
loadQueries: function loadQueries(user) {
|
9936
|
+
removeChecked: function removeChecked() {
|
9939
9937
|
try {
|
9940
9938
|
var _this6 = this;
|
9941
9939
|
var _temp8 = _catch$3(function () {
|
9942
|
-
|
9943
|
-
|
9940
|
+
var promises = _this6.checked.map(function (id) {
|
9941
|
+
return API.remove(id);
|
9942
|
+
});
|
9943
|
+
return Promise.resolve(Promise.all(promises)).then(function () {
|
9944
|
+
return Promise.resolve(_this6.load()).then(function () {});
|
9944
9945
|
});
|
9945
9946
|
}, function (error) {
|
9946
9947
|
console.log(error);
|
@@ -9950,12 +9951,15 @@
|
|
9950
9951
|
return Promise.reject(e);
|
9951
9952
|
}
|
9952
9953
|
},
|
9953
|
-
|
9954
|
+
removeAll: function removeAll() {
|
9954
9955
|
try {
|
9955
9956
|
var _this7 = this;
|
9956
9957
|
var _temp9 = _catch$3(function () {
|
9957
|
-
|
9958
|
-
return
|
9958
|
+
var promises = _this7.all.map(function (item) {
|
9959
|
+
return API.remove(item.id);
|
9960
|
+
});
|
9961
|
+
return Promise.resolve(Promise.all(promises)).then(function () {
|
9962
|
+
return Promise.resolve(_this7.load()).then(function () {});
|
9959
9963
|
});
|
9960
9964
|
}, function (error) {
|
9961
9965
|
console.log(error);
|
@@ -9965,12 +9969,15 @@
|
|
9965
9969
|
return Promise.reject(e);
|
9966
9970
|
}
|
9967
9971
|
},
|
9968
|
-
|
9972
|
+
changeFilters: function changeFilters(filters) {
|
9973
|
+
this.filters = filters;
|
9974
|
+
},
|
9975
|
+
loadQueries: function loadQueries(user) {
|
9969
9976
|
try {
|
9970
9977
|
var _this8 = this;
|
9971
9978
|
var _temp10 = _catch$3(function () {
|
9972
|
-
return Promise.resolve(API.
|
9973
|
-
|
9979
|
+
return Promise.resolve(API.queries(user, urlQuery)).then(function (_API$queries) {
|
9980
|
+
_this8.queries = _API$queries;
|
9974
9981
|
});
|
9975
9982
|
}, function (error) {
|
9976
9983
|
console.log(error);
|
@@ -9979,6 +9986,36 @@
|
|
9979
9986
|
} catch (e) {
|
9980
9987
|
return Promise.reject(e);
|
9981
9988
|
}
|
9989
|
+
},
|
9990
|
+
createQuery: function createQuery(query, user) {
|
9991
|
+
try {
|
9992
|
+
var _this9 = this;
|
9993
|
+
var _temp11 = _catch$3(function () {
|
9994
|
+
return Promise.resolve(API.createQuery(query, urlQuery)).then(function () {
|
9995
|
+
return Promise.resolve(_this9.loadQueries(user)).then(function () {});
|
9996
|
+
});
|
9997
|
+
}, function (error) {
|
9998
|
+
console.log(error);
|
9999
|
+
});
|
10000
|
+
return Promise.resolve(_temp11 && _temp11.then ? _temp11.then(function () {}) : void 0);
|
10001
|
+
} catch (e) {
|
10002
|
+
return Promise.reject(e);
|
10003
|
+
}
|
10004
|
+
},
|
10005
|
+
removeQuery: function removeQuery(id, user) {
|
10006
|
+
try {
|
10007
|
+
var _this10 = this;
|
10008
|
+
var _temp12 = _catch$3(function () {
|
10009
|
+
return Promise.resolve(API.removeQuery(id, urlQuery)).then(function () {
|
10010
|
+
return Promise.resolve(_this10.loadQueries(user)).then(function () {});
|
10011
|
+
});
|
10012
|
+
}, function (error) {
|
10013
|
+
console.log(error);
|
10014
|
+
});
|
10015
|
+
return Promise.resolve(_temp12 && _temp12.then ? _temp12.then(function () {}) : void 0);
|
10016
|
+
} catch (e) {
|
10017
|
+
return Promise.reject(e);
|
10018
|
+
}
|
9982
10019
|
}
|
9983
10020
|
};
|
9984
10021
|
};
|