isobit-ui 0.0.355 → 0.0.358

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 +16 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.355
2
+ * isobit-ui v0.0.358
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -3032,6 +3032,10 @@ var script$8 = {
3032
3032
  if (key) me.data2 = dd.filter(function (item) {
3033
3033
  return item[key].startsWith(p[key]);
3034
3034
  });else me.data2 = dd;
3035
+ var displayField = me.displayField;
3036
+ me.data2 = me.data2.sort(function (a, b) {
3037
+ if (a[displayField] > b[displayField]) return 1;else if (a[displayField] < b[displayField]) return -1;else 0;
3038
+ });
3035
3039
  });
3036
3040
  }
3037
3041
  }, function () {
@@ -5771,7 +5775,7 @@ window.ui = _$1.ui = function (cfg) {
5771
5775
 
5772
5776
  var f = function f(e) {
5773
5777
  if (callback) callback();
5774
- me.o(e);
5778
+ me.open(e);
5775
5779
  };
5776
5780
 
5777
5781
  for (var i = 0; i < a.length; i++) {
@@ -6243,7 +6247,8 @@ window.ui = _$1.ui = function (cfg) {
6243
6247
 
6244
6248
  storedList.unshift(o);
6245
6249
  objectStore.add(o);
6246
- me.$emit('storage', o, storedList);
6250
+ me.$emit('stored', o, storedList);
6251
+ if (me.app && me.app.toast) me.app.toast('El rgistro fue grabado correctamente!');
6247
6252
  me.close({
6248
6253
  success: true,
6249
6254
  data: o
@@ -6262,7 +6267,8 @@ window.ui = _$1.ui = function (cfg) {
6262
6267
  });
6263
6268
  }
6264
6269
 
6265
- me.$emit('storage', o, storedList);
6270
+ me.$emit('stored', o, storedList);
6271
+ if (me.app && me.app.toast) me.app.toast('El rgistro fue grabado correctamente!');
6266
6272
  me.close({
6267
6273
  success: true,
6268
6274
  data: o
@@ -6306,7 +6312,12 @@ window.ui = _$1.ui = function (cfg) {
6306
6312
  };
6307
6313
  }
6308
6314
 
6309
- me.MsgBox('El registro fue grabado exitosamente!', function () {
6315
+ if (me.app && me.app.toast) me.app.toast('El rgistro fue grabado correectamente!', function () {
6316
+ me.close({
6317
+ success: true,
6318
+ data: data
6319
+ });
6320
+ });else me.MsgBox('El registro fue grabado exitosamente!', function () {
6310
6321
  me.close({
6311
6322
  success: true,
6312
6323
  data: data
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.355",
3
+ "version": "0.0.358",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",