isobit-ui 0.2.4 → 0.2.5
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.js +16 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.2.
|
|
2
|
+
* isobit-ui v0.2.4
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -2041,6 +2041,7 @@ var script$d = {
|
|
|
2041
2041
|
reflow: null,
|
|
2042
2042
|
summary: null,
|
|
2043
2043
|
src: String,
|
|
2044
|
+
gql: null,
|
|
2044
2045
|
filters: Object,
|
|
2045
2046
|
store: null,
|
|
2046
2047
|
width: null,
|
|
@@ -2648,9 +2649,20 @@ var script$d = {
|
|
|
2648
2649
|
}
|
|
2649
2650
|
|
|
2650
2651
|
if (_.networkStatus.connected) {
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2652
|
+
var request;
|
|
2653
|
+
|
|
2654
|
+
if (me.gql) {
|
|
2655
|
+
var query = 'query{' + Object.keys(gql)[0] + '(offset:' + (me.page - 1) * pagination + ' limit:' + me.pagination + '){\ndata{' + gql[Object.keys(gql)[0]] + '}\nsize\n}\n}';
|
|
2656
|
+
request = axios.post(me.src, {
|
|
2657
|
+
query: query
|
|
2658
|
+
});
|
|
2659
|
+
} else {
|
|
2660
|
+
request = axios.get(s, {
|
|
2661
|
+
params: _.clean(me.filters)
|
|
2662
|
+
});
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
request.then(function (r) {
|
|
2654
2666
|
if (r.data && r.data.error) {
|
|
2655
2667
|
MsgBox(r.data.error);
|
|
2656
2668
|
} else {
|