isobit-ui 0.2.4 → 0.2.6

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.
Files changed (2) hide show
  1. package/dist/index.js +17 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.2.3
2
+ * isobit-ui v0.2.5
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,21 @@ var script$d = {
2648
2649
  }
2649
2650
 
2650
2651
  if (_.networkStatus.connected) {
2651
- axios.get(s, {
2652
- params: _.clean(me.filters)
2653
- }).then(function (r) {
2652
+ var request;
2653
+
2654
+ if (me.gql) {
2655
+ var gql = this.gql;
2656
+ var query = 'query{' + Object.keys(gql)[0] + '(offset:' + (me.page - 1) * pagination + ' limit:' + me.pagination + '){\ndata{' + gql[Object.keys(gql)[0]] + '}\nsize\n}\n}';
2657
+ request = axios.post(me.src, {
2658
+ query: query
2659
+ });
2660
+ } else {
2661
+ request = axios.get(s, {
2662
+ params: _.clean(me.filters)
2663
+ });
2664
+ }
2665
+
2666
+ request.then(function (r) {
2654
2667
  if (r.data && r.data.error) {
2655
2668
  MsgBox(r.data.error);
2656
2669
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [