isobit-ui 0.0.564 → 0.0.567
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 +14 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.0.
|
|
2
|
+
* isobit-ui v0.0.567
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -3458,18 +3458,27 @@ var script$8 = {
|
|
|
3458
3458
|
if (!me.data2) me.data2 = [];
|
|
3459
3459
|
return _invoke(function () {
|
|
3460
3460
|
if (me.store) {
|
|
3461
|
-
|
|
3461
|
+
console.log(JSON.stringify(me.data2));
|
|
3462
|
+
return _await$1(window._.getStoredList(me.store), function (storedList) {
|
|
3462
3463
|
var _ref = p ? Object.keys(p) : [],
|
|
3463
3464
|
_ref2 = _slicedToArray(_ref, 1),
|
|
3464
3465
|
key = _ref2[0];
|
|
3465
3466
|
|
|
3466
|
-
if (key)
|
|
3467
|
-
|
|
3468
|
-
|
|
3467
|
+
if (key) {
|
|
3468
|
+
me.data2 = me.data2.concat(storedList.filter(function (item) {
|
|
3469
|
+
return item[key].startsWith(p[key]);
|
|
3470
|
+
}));
|
|
3471
|
+
console.log('data filtrada');
|
|
3472
|
+
} else {
|
|
3473
|
+
me.data2 = me.data2.concat(storedList);
|
|
3474
|
+
console.log('data no filtrada');
|
|
3475
|
+
}
|
|
3476
|
+
|
|
3469
3477
|
var displayField = me.displayField;
|
|
3470
3478
|
me.data2 = me.data2.sort(function (a, b) {
|
|
3471
3479
|
if (a[displayField] > b[displayField]) return 1;else if (a[displayField] < b[displayField]) return -1;else 0;
|
|
3472
3480
|
});
|
|
3481
|
+
console.log(JSON.stringify(me.data2));
|
|
3473
3482
|
});
|
|
3474
3483
|
}
|
|
3475
3484
|
}, function () {
|