isobit-ui 0.0.352 → 0.0.353

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 +56 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.352
2
+ * isobit-ui v0.0.353
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -36,6 +36,10 @@ function _typeof(obj) {
36
36
  return _typeof(obj);
37
37
  }
38
38
 
39
+ function _slicedToArray(arr, i) {
40
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
41
+ }
42
+
39
43
  function _toConsumableArray(arr) {
40
44
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
41
45
  }
@@ -44,10 +48,44 @@ function _arrayWithoutHoles(arr) {
44
48
  if (Array.isArray(arr)) return _arrayLikeToArray(arr);
45
49
  }
46
50
 
51
+ function _arrayWithHoles(arr) {
52
+ if (Array.isArray(arr)) return arr;
53
+ }
54
+
47
55
  function _iterableToArray(iter) {
48
56
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
49
57
  }
50
58
 
59
+ function _iterableToArrayLimit(arr, i) {
60
+ var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
61
+
62
+ if (_i == null) return;
63
+ var _arr = [];
64
+ var _n = true;
65
+ var _d = false;
66
+
67
+ var _s, _e;
68
+
69
+ try {
70
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
71
+ _arr.push(_s.value);
72
+
73
+ if (i && _arr.length === i) break;
74
+ }
75
+ } catch (err) {
76
+ _d = true;
77
+ _e = err;
78
+ } finally {
79
+ try {
80
+ if (!_n && _i["return"] != null) _i["return"]();
81
+ } finally {
82
+ if (_d) throw _e;
83
+ }
84
+ }
85
+
86
+ return _arr;
87
+ }
88
+
51
89
  function _unsupportedIterableToArray(o, minLen) {
52
90
  if (!o) return;
53
91
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -69,6 +107,10 @@ function _nonIterableSpread() {
69
107
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
70
108
  }
71
109
 
110
+ function _nonIterableRest() {
111
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
112
+ }
113
+
72
114
  function _createForOfIteratorHelper(o, allowArrayLike) {
73
115
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
74
116
 
@@ -2982,12 +3024,18 @@ var script$8 = {
2982
3024
  var pa = me.$el.parentElement;
2983
3025
  console.log(p);
2984
3026
  return _invoke$1(function () {
2985
- if (me.store) return _await$1(window._.getStoredList(me.store), function (_window$_$getStoredLi) {
2986
- me.data2 = _window$_$getStoredLi;
2987
- });
3027
+ if (me.store) {
3028
+ return _await$1(window._.getStoredList(me.store), function (dd) {
3029
+ var _Object$keys = Object.keys(p),
3030
+ _Object$keys2 = _slicedToArray(_Object$keys, 1),
3031
+ key = _Object$keys2[0];
3032
+
3033
+ if (key) me.data2 = dd.filter(function (item) {
3034
+ return item[key] == p[key];
3035
+ });else me.data2 = dd;
3036
+ });
3037
+ }
2988
3038
  }, function () {
2989
- console.log(me.data2); //console.log(pa.name+'.antes de preguntar disabled options.load '+JSON.stringify(p));
2990
-
2991
3039
  if (me.url && !pa.disabled) {
2992
3040
  if (!me.data2) me.data2 = [];
2993
3041
  if (me.filters) p = Vue.mergeDeep(p ? p : {}, me.filters); //console.log(pa.name+'.options.load '+JSON.stringify(p));
@@ -3013,7 +3061,8 @@ var script$8 = {
3013
3061
  e.parentNode.insertBefore(error, e);*/
3014
3062
  });
3015
3063
  }
3016
- });
3064
+ }); //console.log(pa.name+'.antes de preguntar disabled options.load '+JSON.stringify(p));
3065
+
3017
3066
  /*else{
3018
3067
  console.log('no se cargara aun '+pa.name);
3019
3068
  }*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.352",
3
+ "version": "0.0.353",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",