isobit-ui 0.0.357 → 0.0.360

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 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.357
2
+ * isobit-ui v0.0.360
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -3283,7 +3283,7 @@ var __vue_component__$7 = /*#__PURE__*/__vue_normalize____default['default']({
3283
3283
  //
3284
3284
  //
3285
3285
  var script$6 = {
3286
- props: ['header', 'storage', 'action'],
3286
+ props: ['header', 'store', 'action'],
3287
3287
  watch: {
3288
3288
  header: function header(v) {
3289
3289
  this.setTitle(v);
@@ -6224,8 +6224,8 @@ window.ui = _$1.ui = function (cfg) {
6224
6224
  if (!(_typeof(o) === 'object' && !Array.isArray(o) && o !== null)) return;
6225
6225
  return _invoke(function () {
6226
6226
  if (!action || !_this4.app.networkStatus.connected) {
6227
- var storage = me.$children[0].storage;
6228
- return _await(me.getStoredList(storage), function (storedList) {
6227
+ var store = me.$children[0].store;
6228
+ return _await(me.getStoredList(store), function (storedList) {
6229
6229
  if (!storedList) storedList = [];
6230
6230
 
6231
6231
  if (o.id) {
@@ -6239,7 +6239,7 @@ window.ui = _$1.ui = function (cfg) {
6239
6239
  }
6240
6240
 
6241
6241
  var db = window._.db;
6242
- var objectStore = db.transaction([storage], "readwrite").objectStore(storage);
6242
+ var objectStore = db.transaction([store], "readwrite").objectStore(store);
6243
6243
 
6244
6244
  if (!o.id) {
6245
6245
  o.id = -new Date();
@@ -6247,7 +6247,8 @@ window.ui = _$1.ui = function (cfg) {
6247
6247
 
6248
6248
  storedList.unshift(o);
6249
6249
  objectStore.add(o);
6250
- 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!');
6251
6252
  me.close({
6252
6253
  success: true,
6253
6254
  data: o
@@ -6266,7 +6267,8 @@ window.ui = _$1.ui = function (cfg) {
6266
6267
  });
6267
6268
  }
6268
6269
 
6269
- 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!');
6270
6272
  me.close({
6271
6273
  success: true,
6272
6274
  data: o
@@ -6287,9 +6289,9 @@ window.ui = _$1.ui = function (cfg) {
6287
6289
  var data = result.data;
6288
6290
 
6289
6291
  if (o.tmpId) {
6290
- var storage = me.$children[0].storage;
6292
+ var store = me.$children[0].store;
6291
6293
 
6292
- var objectStore = window._.db.transaction([storage], "readwrite").objectStore(storage);
6294
+ var objectStore = window._.db.transaction([store], "readwrite").objectStore(store);
6293
6295
 
6294
6296
  var item = objectStore.get(o.tmpId);
6295
6297
  o.tmpSynchronized = 1;
@@ -6310,7 +6312,12 @@ window.ui = _$1.ui = function (cfg) {
6310
6312
  };
6311
6313
  }
6312
6314
 
6313
- 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 () {
6314
6321
  me.close({
6315
6322
  success: true,
6316
6323
  data: data
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.357",
3
+ "version": "0.0.360",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",