vue-laravel-crud 1.7.3 → 1.7.4

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.
@@ -12532,7 +12532,7 @@ Plugin.install = function (Vue, options) {
12532
12532
 
12533
12533
  if (typeof window !== 'undefined' && window.Vue) {
12534
12534
  window.Vue.use(Plugin);
12535
- }var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}var css = "tr td[data-v-51199a53]:last-child,\ntr td[data-v-51199a53]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-51199a53] {\n display: flex;\n align-items: center;\n width: 100%;\n justify-content: center;\n margin-top: 1rem; }\n\n.crud-header[data-v-51199a53] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-51199a53] .crud-title[data-v-51199a53] {\n margin: 0; }\n .crud-header[data-v-51199a53] .crud-search[data-v-51199a53] {\n max-width: 15rem; }\n .crud-header[data-v-51199a53] .crud-search[data-v-51199a53] .btn[data-v-51199a53] {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem; }\n .crud-header[data-v-51199a53] .crud-search[data-v-51199a53] .btn[data-v-51199a53].open[data-v-51199a53] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-51199a53] .table-options[data-v-51199a53] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-51199a53] {\n position: relative; }\n\n@media (min-width: 992px) {\n .table[data-v-51199a53] {\n table-layout: auto; }\n .table[data-v-51199a53] tbody[data-v-51199a53] td[data-v-51199a53] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-51199a53] tbody[data-v-51199a53] td[data-v-51199a53]::-webkit-scrollbar {\n display: none; } }\n";
12535
+ }var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}var css = "tr td[data-v-4e32274c]:last-child,\ntr td[data-v-4e32274c]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-4e32274c] {\n display: flex;\n align-items: center;\n width: 100%;\n justify-content: center;\n margin-top: 1rem; }\n\n.crud-header[data-v-4e32274c] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-4e32274c] .crud-title[data-v-4e32274c] {\n margin: 0; }\n .crud-header[data-v-4e32274c] .crud-search[data-v-4e32274c] {\n max-width: 15rem; }\n .crud-header[data-v-4e32274c] .crud-search[data-v-4e32274c] .btn[data-v-4e32274c] {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem; }\n .crud-header[data-v-4e32274c] .crud-search[data-v-4e32274c] .btn[data-v-4e32274c].open[data-v-4e32274c] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-4e32274c] .table-options[data-v-4e32274c] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-4e32274c] {\n position: relative; }\n\n@media (min-width: 992px) {\n .table[data-v-4e32274c] {\n table-layout: auto; }\n .table[data-v-4e32274c] tbody[data-v-4e32274c] td[data-v-4e32274c] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-4e32274c] tbody[data-v-4e32274c] td[data-v-4e32274c]::-webkit-scrollbar {\n display: none; } }\n";
12536
12536
  n(css, {});function normalizeComponent (
12537
12537
  scriptExports,
12538
12538
  render,
@@ -13312,6 +13312,29 @@ n(css, {});function normalizeComponent (
13312
13312
  this.$emit("select", this.item);
13313
13313
  this.$emit("selectItems", this.selectedItems);
13314
13314
  },
13315
+ updateData: function updateData(data) {
13316
+ var _this8 = this;
13317
+ var allowCreate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
13318
+ // Convertir this.items a un mapa para acceso rápido por id
13319
+ var itemsMap = new Map(this.items.map(function (item) {
13320
+ return [item.id, item];
13321
+ }));
13322
+
13323
+ // Recorrer cada elemento de data
13324
+ data.forEach(function (newItem) {
13325
+ if (itemsMap.has(newItem.id)) {
13326
+ // Actualizar el item existente
13327
+ var existingItem = itemsMap.get(newItem.id);
13328
+ Object.assign(existingItem, newItem);
13329
+ } else if (allowCreate) {
13330
+ // Agregar el nuevo item si allowCreate es true
13331
+ _this8.items.push(newItem);
13332
+ }
13333
+ });
13334
+
13335
+ // Convertir el mapa de vuelta a un array, si es necesario
13336
+ this.items = Array.from(itemsMap.values());
13337
+ },
13315
13338
  showItem: function showItem(id) {
13316
13339
  var itemIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
13317
13340
  if (itemIndex == null) {
@@ -13353,7 +13376,7 @@ n(css, {});function normalizeComponent (
13353
13376
  this.$bvModal.show("modal-form-item-" + this.modelName);
13354
13377
  },
13355
13378
  refresh: function refresh() {
13356
- var _this8 = this;
13379
+ var _this9 = this;
13357
13380
  this.$emit("refresh", {});
13358
13381
  if (!this.ajax) {
13359
13382
  return;
@@ -13366,13 +13389,13 @@ n(css, {});function normalizeComponent (
13366
13389
  if (this.infiniteScroll && fetchPromise) {
13367
13390
  this.refreshing = true;
13368
13391
  fetchPromise.then(function () {
13369
- var infiniteLoadingRef = _this8.$refs.infiniteLoading;
13392
+ var infiniteLoadingRef = _this9.$refs.infiniteLoading;
13370
13393
  if (infiniteLoadingRef) {
13371
13394
  infiniteLoadingRef.stateChanger.reset();
13372
13395
  } else {
13373
13396
  console.debug("infiniteLoadingRef not set");
13374
13397
  }
13375
- _this8.refreshing = false;
13398
+ _this9.refreshing = false;
13376
13399
  });
13377
13400
  }
13378
13401
  },
@@ -13380,56 +13403,56 @@ n(css, {});function normalizeComponent (
13380
13403
  return column && !column.hideFilter && column.type != "actions";
13381
13404
  },
13382
13405
  setFilter: function setFilter(column, value) {
13383
- var _this9 = this;
13406
+ var _this10 = this;
13384
13407
  var filter = this.filter.find(function (f) {
13385
13408
  return f.column == column;
13386
13409
  });
13387
13410
  filter.value = value;
13388
13411
  this.forceRecomputeCounter++;
13389
13412
  setTimeout(function () {
13390
- _this9.refresh();
13413
+ _this10.refresh();
13391
13414
  }, 1);
13392
13415
  },
13393
13416
  fetchItemsVuex: function fetchItemsVuex() {
13394
13417
  var _arguments = arguments,
13395
- _this10 = this;
13418
+ _this11 = this;
13396
13419
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
13397
13420
  var page, result, itemsResult;
13398
13421
  return _regeneratorRuntime().wrap(function _callee$(_context) {
13399
13422
  while (1) switch (_context.prev = _context.next) {
13400
13423
  case 0:
13401
13424
  page = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : 1;
13402
- _this10.loading = true;
13403
- _this10.$emit("beforeFetch", {});
13404
- if (!_this10.vuexLocalforage) {
13425
+ _this11.loading = true;
13426
+ _this11.$emit("beforeFetch", {});
13427
+ if (!_this11.vuexLocalforage) {
13405
13428
  _context.next = 9;
13406
13429
  break;
13407
13430
  }
13408
13431
  _context.next = 7;
13409
- return _this10.model.$fetch();
13432
+ return _this11.model.$fetch();
13410
13433
  case 7:
13411
13434
  _context.next = 13;
13412
13435
  break;
13413
13436
  case 9:
13414
- _this10.model.deleteAll();
13437
+ _this11.model.deleteAll();
13415
13438
  _context.next = 12;
13416
- return _this10.model.api().get('', {
13439
+ return _this11.model.api().get('', {
13417
13440
  params: {
13418
13441
  page: page,
13419
- limit: _this10.pagination.perPage,
13420
- filters: JSON.stringify(_this10.finalFilters)
13442
+ limit: _this11.pagination.perPage,
13443
+ filters: JSON.stringify(_this11.finalFilters)
13421
13444
  }
13422
13445
  });
13423
13446
  case 12:
13424
13447
  result = _context.sent;
13425
13448
  case 13:
13426
- itemsResult = _this10.model.query().withAll().get(); //let itemsResult = result.entities[this.model.entity];
13449
+ itemsResult = _this11.model.query().withAll().get(); //let itemsResult = result.entities[this.model.entity];
13427
13450
  if (itemsResult) {
13428
- _this10.items = itemsResult;
13451
+ _this11.items = itemsResult;
13429
13452
  }
13430
- console.debug("fetch page vuex ", itemsResult, page, _this10.items, result);
13431
- _this10.loading = false;
13432
- _this10.firstLoad = true;
13453
+ console.debug("fetch page vuex ", itemsResult, page, _this11.items, result);
13454
+ _this11.loading = false;
13455
+ _this11.firstLoad = true;
13433
13456
  case 18:
13434
13457
  case "end":
13435
13458
  return _context.stop();
@@ -13438,7 +13461,7 @@ n(css, {});function normalizeComponent (
13438
13461
  }))();
13439
13462
  },
13440
13463
  fetchItems: function fetchItems() {
13441
- var _this11 = this;
13464
+ var _this12 = this;
13442
13465
  var page = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
13443
13466
  var concat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
13444
13467
  if (!this.ajax) {
@@ -13456,26 +13479,26 @@ n(css, {});function normalizeComponent (
13456
13479
  filters: JSON.stringify(this.finalFilters)
13457
13480
  }
13458
13481
  }).then(function (response) {
13459
- _this11.makePagination(response.data);
13482
+ _this12.makePagination(response.data);
13460
13483
  var items = response.data.data;
13461
- if (_this11.grouped) {
13462
- _this11.groupItems(items, concat);
13484
+ if (_this12.grouped) {
13485
+ _this12.groupItems(items, concat);
13463
13486
  } else {
13464
13487
  if (concat) {
13465
- _this11.items = _this11.items.concat(items);
13488
+ _this12.items = _this12.items.concat(items);
13466
13489
  } else {
13467
- _this11.items = items;
13490
+ _this12.items = items;
13468
13491
  }
13469
13492
  }
13470
- _this11.loading = false;
13471
- _this11.firstLoad = true;
13472
- _this11.$emit("afterFetch", {});
13493
+ _this12.loading = false;
13494
+ _this12.firstLoad = true;
13495
+ _this12.$emit("afterFetch", {});
13473
13496
  }).catch(function (error) {
13474
13497
  //console.debug(error);
13475
- _this11.toastError(error);
13476
- _this11.loading = false;
13477
- _this11.firstLoad = true;
13478
- _this11.fetchError = true;
13498
+ _this12.toastError(error);
13499
+ _this12.loading = false;
13500
+ _this12.firstLoad = true;
13501
+ _this12.fetchError = true;
13479
13502
  });
13480
13503
  },
13481
13504
  groupItems: function groupItems(items) {
@@ -13512,7 +13535,7 @@ n(css, {});function normalizeComponent (
13512
13535
  }
13513
13536
  },
13514
13537
  removeItem: function removeItem(id, index) {
13515
- var _this12 = this;
13538
+ var _this13 = this;
13516
13539
  this.$bvModal.msgBoxConfirm(this.messageRemoveConfirm, {
13517
13540
  size: "sm",
13518
13541
  buttonSize: "sm",
@@ -13522,15 +13545,15 @@ n(css, {});function normalizeComponent (
13522
13545
  centered: true
13523
13546
  }).then(function (value) {
13524
13547
  if (value) {
13525
- _this12.deleteItem(id, index);
13548
+ _this13.deleteItem(id, index);
13526
13549
  }
13527
13550
  }).catch(function (error) {
13528
- _this12.toastError(error);
13529
- _this12.loading = false;
13551
+ _this13.toastError(error);
13552
+ _this13.loading = false;
13530
13553
  });
13531
13554
  },
13532
13555
  confirmBulkDelete: function confirmBulkDelete() {
13533
- var _this13 = this;
13556
+ var _this14 = this;
13534
13557
  this.$bvModal.msgBoxConfirm(this.messageRemoveBulkConfirm, {
13535
13558
  size: "sm",
13536
13559
  buttonSize: "sm",
@@ -13540,15 +13563,15 @@ n(css, {});function normalizeComponent (
13540
13563
  centered: true
13541
13564
  }).then(function (value) {
13542
13565
  if (value) {
13543
- _this13.deleteItemBulk();
13566
+ _this14.deleteItemBulk();
13544
13567
  }
13545
13568
  }).catch(function (error) {
13546
- _this13.toastError(error);
13547
- _this13.loading = false;
13569
+ _this14.toastError(error);
13570
+ _this14.loading = false;
13548
13571
  });
13549
13572
  },
13550
13573
  deleteItemBulk: function deleteItemBulk() {
13551
- var _this14 = this;
13574
+ var _this15 = this;
13552
13575
  if (this.useVuexORM) {
13553
13576
  return this.deleteItemBulkVuex();
13554
13577
  }
@@ -13564,34 +13587,34 @@ n(css, {});function normalizeComponent (
13564
13587
  ids: ids
13565
13588
  }
13566
13589
  }).then(function (response) {
13567
- _this14.items = _this14.items.filter(function (it) {
13590
+ _this15.items = _this15.items.filter(function (it) {
13568
13591
  return !ids.includes(it.id);
13569
13592
  });
13570
- _this14.toastSuccess("Elemento/s eliminado.");
13571
- _this14.$emit("itemDeleted", {});
13572
- _this14.loading = false;
13593
+ _this15.toastSuccess("Elemento/s eliminado.");
13594
+ _this15.$emit("itemDeleted", {});
13595
+ _this15.loading = false;
13573
13596
  }).catch(function (error) {
13574
- _this14.toastError(error);
13575
- _this14.loading = false;
13597
+ _this15.toastError(error);
13598
+ _this15.loading = false;
13576
13599
  });
13577
13600
  },
13578
13601
  deleteItemBulkLocal: function deleteItemBulkLocal() {
13579
- var _this15 = this;
13602
+ var _this16 = this;
13580
13603
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
13581
13604
  var ids;
13582
13605
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
13583
13606
  while (1) switch (_context2.prev = _context2.next) {
13584
13607
  case 0:
13585
- ids = _this15.selectedItems.map(function (it) {
13608
+ ids = _this16.selectedItems.map(function (it) {
13586
13609
  return it.id;
13587
13610
  });
13588
- _this15.items = _this15.items.filter(function (it) {
13611
+ _this16.items = _this16.items.filter(function (it) {
13589
13612
  return !ids.includes(it.id);
13590
13613
  });
13591
- _this15.item = null;
13592
- _this15.toastSuccess("Elemento Eliminado");
13593
- _this15.$emit("itemDeleted", {});
13594
- _this15.loading = false;
13614
+ _this16.item = null;
13615
+ _this16.toastSuccess("Elemento Eliminado");
13616
+ _this16.$emit("itemDeleted", {});
13617
+ _this16.loading = false;
13595
13618
  case 6:
13596
13619
  case "end":
13597
13620
  return _context2.stop();
@@ -13600,32 +13623,54 @@ n(css, {});function normalizeComponent (
13600
13623
  }))();
13601
13624
  },
13602
13625
  deleteItemBulkVuex: function deleteItemBulkVuex() {
13626
+ var _this17 = this;
13603
13627
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
13628
+ var ids, result;
13604
13629
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
13605
13630
  while (1) switch (_context3.prev = _context3.next) {
13606
13631
  case 0:
13632
+ ids = _this17.selectedItems.map(function (it) {
13633
+ return it.id;
13634
+ });
13635
+ if (!_this17.vuexLocalforage) {
13636
+ _context3.next = 6;
13637
+ break;
13638
+ }
13639
+ _context3.next = 4;
13640
+ return _this17.model.$delete(ids);
13641
+ case 4:
13642
+ _context3.next = 15;
13643
+ break;
13644
+ case 6:
13645
+ _context3.next = 8;
13646
+ return _this17.model.api().delete('/bulk-destroy', {
13647
+ params: {
13648
+ ids: ids
13649
+ },
13650
+ delete: ids
13651
+ });
13652
+ case 8:
13653
+ result = _context3.sent;
13654
+ console.debug("delete item vuex", result);
13655
+ result.response.status;
13656
+ if (!result.response.data.error) {
13657
+ _context3.next = 15;
13658
+ break;
13659
+ }
13660
+ _this17.toastError(result.response.data.error);
13661
+ _this17.loading = false;
13662
+ return _context3.abrupt("return");
13663
+ case 15:
13664
+ _this17.toastSuccess("Elemento eliminados.");
13665
+ case 16:
13607
13666
  case "end":
13608
13667
  return _context3.stop();
13609
13668
  }
13610
13669
  }, _callee3);
13611
13670
  }))();
13612
- } /*
13613
- let result = await this.model.api().delete('/' + id, {
13614
- delete: 1
13615
- });
13616
-
13617
- console.debug("delete item vuex", result);
13618
- let responseStatus = result.response.status;
13619
-
13620
- if (result.response.data.error) {
13621
- this.toastError(result.response.data.error);
13622
- this.loading = false;
13623
- return;
13624
- }
13625
-
13626
- this.toastSuccess("Elemento eliminado.");*/,
13671
+ },
13627
13672
  deleteItem: function deleteItem(id, index) {
13628
- var _this16 = this;
13673
+ var _this18 = this;
13629
13674
  if (this.useVuexORM) {
13630
13675
  return this.deleteItemVuex(id, index);
13631
13676
  }
@@ -13634,17 +13679,17 @@ n(css, {});function normalizeComponent (
13634
13679
  }
13635
13680
  this.loading = true;
13636
13681
  axios.delete(this.apiUrl + "/" + this.modelName + "/" + id).then(function (response) {
13637
- _this16.items.splice(index, 1);
13638
- _this16.toastSuccess("Elemento eliminado.");
13639
- _this16.$emit("itemDeleted", {});
13640
- _this16.loading = false;
13682
+ _this18.items.splice(index, 1);
13683
+ _this18.toastSuccess("Elemento eliminado.");
13684
+ _this18.$emit("itemDeleted", {});
13685
+ _this18.loading = false;
13641
13686
  }).catch(function (error) {
13642
- _this16.toastError(error);
13643
- _this16.loading = false;
13687
+ _this18.toastError(error);
13688
+ _this18.loading = false;
13644
13689
  });
13645
13690
  },
13646
13691
  deleteItemLocal: function deleteItemLocal(id, index) {
13647
- var _this17 = this;
13692
+ var _this19 = this;
13648
13693
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
13649
13694
  var itemIndex;
13650
13695
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
@@ -13652,24 +13697,24 @@ n(css, {});function normalizeComponent (
13652
13697
  case 0:
13653
13698
  if (id || index) {
13654
13699
  if (id) {
13655
- itemIndex = _this17.items.findIndex(function (item) {
13656
- return item.id == _this17.item.id;
13700
+ itemIndex = _this19.items.findIndex(function (item) {
13701
+ return item.id == _this19.item.id;
13657
13702
  });
13658
13703
  } else {
13659
13704
  itemIndex = index;
13660
13705
  }
13661
13706
 
13662
13707
  // Assuming this.items is an array
13663
- _this17.items.splice(itemIndex, 1);
13664
- _this17.item = null;
13665
- _this17.toastSuccess("Elemento Eliminado");
13666
- _this17.$emit("itemDeleted", {});
13708
+ _this19.items.splice(itemIndex, 1);
13709
+ _this19.item = null;
13710
+ _this19.toastSuccess("Elemento Eliminado");
13711
+ _this19.$emit("itemDeleted", {});
13667
13712
  } else {
13668
13713
  // Handle the case where there's no item.id or item.index
13669
13714
  console.error("Cannot delete item without ID or index");
13670
13715
  // You might want to show an error message or handle it in a way that fits your application.
13671
13716
  }
13672
- _this17.loading = false;
13717
+ _this19.loading = false;
13673
13718
  case 2:
13674
13719
  case "end":
13675
13720
  return _context4.stop();
@@ -13678,24 +13723,24 @@ n(css, {});function normalizeComponent (
13678
13723
  }))();
13679
13724
  },
13680
13725
  deleteItemVuex: function deleteItemVuex(id, index) {
13681
- var _this18 = this;
13726
+ var _this20 = this;
13682
13727
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
13683
13728
  var result;
13684
13729
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
13685
13730
  while (1) switch (_context5.prev = _context5.next) {
13686
13731
  case 0:
13687
- if (!_this18.vuexLocalforage) {
13732
+ if (!_this20.vuexLocalforage) {
13688
13733
  _context5.next = 5;
13689
13734
  break;
13690
13735
  }
13691
13736
  _context5.next = 3;
13692
- return _this18.model.$delete(id);
13737
+ return _this20.model.$delete(id);
13693
13738
  case 3:
13694
13739
  _context5.next = 14;
13695
13740
  break;
13696
13741
  case 5:
13697
13742
  _context5.next = 7;
13698
- return _this18.model.api().delete('/' + id, {
13743
+ return _this20.model.api().delete('/' + id, {
13699
13744
  delete: 1
13700
13745
  });
13701
13746
  case 7:
@@ -13706,11 +13751,11 @@ n(css, {});function normalizeComponent (
13706
13751
  _context5.next = 14;
13707
13752
  break;
13708
13753
  }
13709
- _this18.toastError(result.response.data.error);
13710
- _this18.loading = false;
13754
+ _this20.toastError(result.response.data.error);
13755
+ _this20.loading = false;
13711
13756
  return _context5.abrupt("return");
13712
13757
  case 14:
13713
- _this18.toastSuccess("Elemento eliminado.");
13758
+ _this20.toastSuccess("Elemento eliminado.");
13714
13759
  case 15:
13715
13760
  case "end":
13716
13761
  return _context5.stop();
@@ -13719,14 +13764,14 @@ n(css, {});function normalizeComponent (
13719
13764
  }))();
13720
13765
  },
13721
13766
  saveSort: function saveSort() {
13722
- var _this19 = this;
13767
+ var _this21 = this;
13723
13768
  if (this.orderable) {
13724
13769
  this.loading = true;
13725
13770
  var order = [];
13726
13771
  this.items.forEach(function (v, k) {
13727
13772
  order.push({
13728
13773
  id: v.id,
13729
- order: v[_this19.orderProp]
13774
+ order: v[_this21.orderProp]
13730
13775
  });
13731
13776
  });
13732
13777
  if (!this.ajax) {
@@ -13736,18 +13781,18 @@ n(css, {});function normalizeComponent (
13736
13781
  order: order
13737
13782
  }).then(function (response) {
13738
13783
  response.data;
13739
- _this19.toastSuccess("Orden Actualizado");
13740
- if (_this19.refreshAfterSave) _this19.refresh();
13741
- _this19.loading = false;
13784
+ _this21.toastSuccess("Orden Actualizado");
13785
+ if (_this21.refreshAfterSave) _this21.refresh();
13786
+ _this21.loading = false;
13742
13787
  }).catch(function (error) {
13743
13788
  //console.debug(error);
13744
- _this19.toastError(error);
13745
- _this19.loading = false;
13789
+ _this21.toastError(error);
13790
+ _this21.loading = false;
13746
13791
  });
13747
13792
  }
13748
13793
  },
13749
13794
  exportItems: function exportItems() {
13750
- var _this20 = this;
13795
+ var _this22 = this;
13751
13796
  if (this.useVuexORM) {
13752
13797
  return;
13753
13798
  }
@@ -13776,15 +13821,15 @@ n(css, {});function normalizeComponent (
13776
13821
  params: params,
13777
13822
  responseType: "blob"
13778
13823
  }).then(function (response) {
13779
- _this20.downloadBlobResponse(response);
13780
- _this20.loading = false;
13824
+ _this22.downloadBlobResponse(response);
13825
+ _this22.loading = false;
13781
13826
  }).catch(function (error) {
13782
- _this20.toastError(error);
13783
- _this20.loading = false;
13827
+ _this22.toastError(error);
13828
+ _this22.loading = false;
13784
13829
  });
13785
13830
  },
13786
13831
  importItems: function importItems() {
13787
- var _this21 = this;
13832
+ var _this23 = this;
13788
13833
  var formData = new FormData();
13789
13834
  formData.append("file", this.fileImport);
13790
13835
  axios.post(this.apiUrl + "/" + this.modelName + "/import", formData, {
@@ -13793,19 +13838,19 @@ n(css, {});function normalizeComponent (
13793
13838
  }
13794
13839
  }).then(function (response) {
13795
13840
  if (response && response.data && response.data.success == true) {
13796
- _this21.$refs["modal-import"].hide();
13797
- _this21.toastSuccess("Datos Importados con Éxito");
13798
- _this21.$refs["crud"].refresh();
13841
+ _this23.$refs["modal-import"].hide();
13842
+ _this23.toastSuccess("Datos Importados con Éxito");
13843
+ _this23.$refs["crud"].refresh();
13799
13844
  } else {
13800
- _this21.toastError("No se pudo importar los datos.");
13845
+ _this23.toastError("No se pudo importar los datos.");
13801
13846
  }
13802
13847
  }).catch(function (error) {
13803
13848
  console.error(error);
13804
- _this21.toastError(error);
13849
+ _this23.toastError(error);
13805
13850
  });
13806
13851
  },
13807
13852
  getArrayValue: function getArrayValue(value, displayProp) {
13808
- var _this22 = this;
13853
+ var _this24 = this;
13809
13854
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
13810
13855
  if (!Array.isArray(value)) return "N/A";
13811
13856
  var values = [];
@@ -13822,7 +13867,7 @@ n(css, {});function normalizeComponent (
13822
13867
  return "";
13823
13868
  }
13824
13869
  values.forEach(function (val) {
13825
- valuesFinal.push(_this22.getStateValue(val, options));
13870
+ valuesFinal.push(_this24.getStateValue(val, options));
13826
13871
  });
13827
13872
  return values.join(",");
13828
13873
  },
@@ -13844,47 +13889,47 @@ n(css, {});function normalizeComponent (
13844
13889
  return ops.join(", ");
13845
13890
  },
13846
13891
  saveItemVuex: function saveItemVuex() {
13847
- var _this23 = this;
13892
+ var _this25 = this;
13848
13893
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
13849
- var jsondata, result, create;
13894
+ var result, create, jsondata;
13850
13895
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
13851
13896
  while (1) switch (_context6.prev = _context6.next) {
13852
13897
  case 0:
13853
- console.debug("save item 1", _this23.item);
13854
- jsondata = _this23.item.$toJson();
13855
- console.debug("save item 2", _this23.item, jsondata);
13898
+ console.debug("save item 1", _this25.item);
13856
13899
  create = false;
13857
- if (!_this23.vuexLocalforage) {
13858
- _context6.next = 19;
13900
+ if (!_this25.vuexLocalforage) {
13901
+ _context6.next = 17;
13859
13902
  break;
13860
13903
  }
13861
- if (!_this23.item.id) {
13862
- _context6.next = 13;
13904
+ if (!_this25.item.id) {
13905
+ _context6.next = 11;
13863
13906
  break;
13864
13907
  }
13865
- _context6.next = 9;
13866
- return _this23.model.$update(_this23.item.id, jsondata);
13867
- case 9:
13908
+ _context6.next = 7;
13909
+ return _this25.model.$update(_this25.item.id, _this25.item);
13910
+ case 7:
13868
13911
  result = _context6.sent;
13869
13912
  create = false;
13870
- _context6.next = 17;
13913
+ _context6.next = 15;
13871
13914
  break;
13915
+ case 11:
13916
+ _context6.next = 13;
13917
+ return _this25.model.$create(_this25.item);
13872
13918
  case 13:
13873
- _context6.next = 15;
13874
- return _this23.model.$create(jsondata);
13875
- case 15:
13876
13919
  result = _context6.sent;
13877
13920
  create = true;
13878
- case 17:
13921
+ case 15:
13879
13922
  _context6.next = 36;
13880
13923
  break;
13881
- case 19:
13882
- if (!_this23.item.id) {
13924
+ case 17:
13925
+ jsondata = _this25.item.$toJson();
13926
+ console.debug("save item 2", _this25.item, jsondata);
13927
+ if (!_this25.item.id) {
13883
13928
  _context6.next = 26;
13884
13929
  break;
13885
13930
  }
13886
13931
  _context6.next = 22;
13887
- return _this23.model.api().put('/' + _this23.item.id, jsondata);
13932
+ return _this25.model.api().put('/' + _this25.item.id, jsondata);
13888
13933
  case 22:
13889
13934
  result = _context6.sent;
13890
13935
  create = false;
@@ -13892,7 +13937,7 @@ n(css, {});function normalizeComponent (
13892
13937
  break;
13893
13938
  case 26:
13894
13939
  _context6.next = 28;
13895
- return _this23.model.api().post('', jsondata);
13940
+ return _this25.model.api().post('', jsondata);
13896
13941
  case 28:
13897
13942
  result = _context6.sent;
13898
13943
  create = true;
@@ -13902,17 +13947,17 @@ n(css, {});function normalizeComponent (
13902
13947
  _context6.next = 35;
13903
13948
  break;
13904
13949
  }
13905
- _this23.toastError(result.response.data.error);
13906
- _this23.loading = false;
13950
+ _this25.toastError(result.response.data.error);
13951
+ _this25.loading = false;
13907
13952
  return _context6.abrupt("return");
13908
13953
  case 35:
13909
13954
  result.save();
13910
13955
  case 36:
13911
- if (_this23.refreshAfterSave) _this23.refresh();
13912
- _this23.loading = false;
13913
- _this23.toastSuccess("Elemento Modificado");
13914
- if (_this23.hideModalAfterSave || create && _this23.hideModalAfterCreate || !create && _this23.hideModalAfterUpdate) {
13915
- _this23.$bvModal.hide("modal-form-item-" + _this23.modelName);
13956
+ if (_this25.refreshAfterSave) _this25.refresh();
13957
+ _this25.loading = false;
13958
+ _this25.toastSuccess("Elemento Modificado");
13959
+ if (_this25.hideModalAfterSave || create && _this25.hideModalAfterCreate || !create && _this25.hideModalAfterUpdate) {
13960
+ _this25.$bvModal.hide("modal-form-item-" + _this25.modelName);
13916
13961
  }
13917
13962
  case 40:
13918
13963
  case "end":
@@ -13922,36 +13967,36 @@ n(css, {});function normalizeComponent (
13922
13967
  }))();
13923
13968
  },
13924
13969
  saveItemLocal: function saveItemLocal() {
13925
- var _this24 = this;
13970
+ var _this26 = this;
13926
13971
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
13927
13972
  var itemSave, itemIndex;
13928
13973
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
13929
13974
  while (1) switch (_context7.prev = _context7.next) {
13930
13975
  case 0:
13931
- itemSave = JSON.parse(JSON.stringify(_this24.item));
13932
- if (_this24.item.id || _this24.item.index) {
13933
- if (_this24.item.id) {
13934
- itemIndex = _this24.items.findIndex(function (item) {
13935
- return item.id == _this24.item.id;
13976
+ itemSave = JSON.parse(JSON.stringify(_this26.item));
13977
+ if (_this26.item.id || _this26.item.index) {
13978
+ if (_this26.item.id) {
13979
+ itemIndex = _this26.items.findIndex(function (item) {
13980
+ return item.id == _this26.item.id;
13936
13981
  });
13937
13982
  } else {
13938
- itemIndex = _this24.items.findIndex(function (item) {
13939
- return item.index == _this24.item.index;
13983
+ itemIndex = _this26.items.findIndex(function (item) {
13984
+ return item.index == _this26.item.index;
13940
13985
  });
13941
13986
  }
13942
- _this24.items[itemIndex] = itemSave;
13943
- if (_this24.hideModalAfterSave || _this24.hideModalAfterUpdate) {
13944
- _this24.$bvModal.hide("modal-form-item-" + _this24.modelName);
13987
+ _this26.items[itemIndex] = itemSave;
13988
+ if (_this26.hideModalAfterSave || _this26.hideModalAfterUpdate) {
13989
+ _this26.$bvModal.hide("modal-form-item-" + _this26.modelName);
13945
13990
  }
13946
13991
  } else {
13947
- itemSave.index = _this24.items.length + 1;
13948
- _this24.items.push(itemSave);
13949
- if (_this24.hideModalAfterSave || _this24.hideModalAfterCreate) {
13950
- _this24.$bvModal.hide("modal-form-item-" + _this24.modelName);
13992
+ itemSave.index = _this26.items.length + 1;
13993
+ _this26.items.push(itemSave);
13994
+ if (_this26.hideModalAfterSave || _this26.hideModalAfterCreate) {
13995
+ _this26.$bvModal.hide("modal-form-item-" + _this26.modelName);
13951
13996
  }
13952
13997
  }
13953
- _this24.toastSuccess("Elemento Modificado");
13954
- _this24.loading = false;
13998
+ _this26.toastSuccess("Elemento Modificado");
13999
+ _this26.loading = false;
13955
14000
  case 5:
13956
14001
  case "end":
13957
14002
  return _context7.stop();
@@ -13960,7 +14005,7 @@ n(css, {});function normalizeComponent (
13960
14005
  }))();
13961
14006
  },
13962
14007
  loadOptions: function loadOptions() {
13963
- var _this25 = this;
14008
+ var _this27 = this;
13964
14009
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
13965
14010
  var i, column, options;
13966
14011
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
@@ -13968,11 +14013,11 @@ n(css, {});function normalizeComponent (
13968
14013
  case 0:
13969
14014
  i = 0;
13970
14015
  case 1:
13971
- if (!(i < _this25.columns.length)) {
14016
+ if (!(i < _this27.columns.length)) {
13972
14017
  _context8.next = 12;
13973
14018
  break;
13974
14019
  }
13975
- column = _this25.columns[i];
14020
+ column = _this27.columns[i];
13976
14021
  if (!(column.options instanceof Promise)) {
13977
14022
  _context8.next = 9;
13978
14023
  break;
@@ -13981,16 +14026,16 @@ n(css, {});function normalizeComponent (
13981
14026
  return column.options;
13982
14027
  case 6:
13983
14028
  options = _context8.sent;
13984
- _this25.$set(_this25.columns, i, _objectSpread2(_objectSpread2({}, column), {}, {
14029
+ _this27.$set(_this27.columns, i, _objectSpread2(_objectSpread2({}, column), {}, {
13985
14030
  options: options
13986
14031
  }));
13987
- console.debug("Options promise", _this25.columns);
14032
+ console.debug("Options promise", _this27.columns);
13988
14033
  case 9:
13989
14034
  i++;
13990
14035
  _context8.next = 1;
13991
14036
  break;
13992
14037
  case 12:
13993
- _this25.optionsLoaded = true;
14038
+ _this27.optionsLoaded = true;
13994
14039
  case 13:
13995
14040
  case "end":
13996
14041
  return _context8.stop();
@@ -14000,25 +14045,25 @@ n(css, {});function normalizeComponent (
14000
14045
  },
14001
14046
  saveItem: function saveItem() {
14002
14047
  var _arguments4 = arguments,
14003
- _this26 = this;
14048
+ _this28 = this;
14004
14049
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
14005
14050
  var event, validation_result, validation_error_message, formData;
14006
14051
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
14007
14052
  while (1) switch (_context9.prev = _context9.next) {
14008
14053
  case 0:
14009
14054
  event = _arguments4.length > 0 && _arguments4[0] !== undefined ? _arguments4[0] : null;
14010
- _this26.loading = true;
14011
- if (!_this26.validate) {
14055
+ _this28.loading = true;
14056
+ if (!_this28.validate) {
14012
14057
  _context9.next = 10;
14013
14058
  break;
14014
14059
  }
14015
14060
  validation_result = true;
14016
- validation_error_message = _this26.messageDefaultValidationError;
14061
+ validation_error_message = _this28.messageDefaultValidationError;
14017
14062
  if (validation_result) {
14018
14063
  _context9.next = 8;
14019
14064
  break;
14020
14065
  }
14021
- _this26.toastError(validation_error_message);
14066
+ _this28.toastError(validation_error_message);
14022
14067
  return _context9.abrupt("return");
14023
14068
  case 8:
14024
14069
  _context9.next = 11;
@@ -14026,105 +14071,105 @@ n(css, {});function normalizeComponent (
14026
14071
  case 10:
14027
14072
  if (event) event.preventDefault();
14028
14073
  case 11:
14029
- if (!_this26.useVuexORM) {
14074
+ if (!_this28.useVuexORM) {
14030
14075
  _context9.next = 13;
14031
14076
  break;
14032
14077
  }
14033
- return _context9.abrupt("return", _this26.saveItemVuex(event));
14078
+ return _context9.abrupt("return", _this28.saveItemVuex(event));
14034
14079
  case 13:
14035
- if (_this26.ajax) {
14080
+ if (_this28.ajax) {
14036
14081
  _context9.next = 15;
14037
14082
  break;
14038
14083
  }
14039
- return _context9.abrupt("return", _this26.saveItemLocal(event));
14084
+ return _context9.abrupt("return", _this28.saveItemLocal(event));
14040
14085
  case 15:
14041
- if (_this26.item.id) {
14042
- axios.put(_this26.apiUrl + "/" + _this26.modelName + "/" + _this26.item.id, _this26.item).then(function (response) {
14043
- if (_this26.hideModalAfterSave || _this26.hideModalAfterUpdate) {
14044
- _this26.$bvModal.hide("modal-form-item-" + _this26.modelName);
14086
+ if (_this28.item.id) {
14087
+ axios.put(_this28.apiUrl + "/" + _this28.modelName + "/" + _this28.item.id, _this28.item).then(function (response) {
14088
+ if (_this28.hideModalAfterSave || _this28.hideModalAfterUpdate) {
14089
+ _this28.$bvModal.hide("modal-form-item-" + _this28.modelName);
14045
14090
  }
14046
14091
  var itemSv = response.data;
14047
- var itemIndex = _this26.items.findIndex(function (item) {
14048
- return item.id == _this26.item.id;
14092
+ var itemIndex = _this28.items.findIndex(function (item) {
14093
+ return item.id == _this28.item.id;
14049
14094
  });
14050
- _this26.items[itemIndex] = itemSv;
14051
- _this26.item = itemSv;
14052
- _this26.loading = false;
14053
- if (_this26.refreshAfterSave) _this26.refresh();
14054
- _this26.toastSuccess("Elemento Modificado");
14055
- _this26.$emit("itemSaved", {
14056
- item: _this26.item
14095
+ _this28.items[itemIndex] = itemSv;
14096
+ _this28.item = itemSv;
14097
+ _this28.loading = false;
14098
+ if (_this28.refreshAfterSave) _this28.refresh();
14099
+ _this28.toastSuccess("Elemento Modificado");
14100
+ _this28.$emit("itemSaved", {
14101
+ item: _this28.item
14057
14102
  });
14058
- _this26.$emit("itemUpdated", {
14059
- item: _this26.item
14103
+ _this28.$emit("itemUpdated", {
14104
+ item: _this28.item
14060
14105
  });
14061
14106
  }).catch(function (error) {
14062
- _this26.toastError(error);
14063
- _this26.loading = false;
14107
+ _this28.toastError(error);
14108
+ _this28.loading = false;
14064
14109
  });
14065
14110
  } else {
14066
- if (_this26.createMultipart) {
14111
+ if (_this28.createMultipart) {
14067
14112
  formData = new FormData();
14068
- Object.keys(_this26.item).forEach(function (key) {
14069
- if (_this26.item[key][0] && _this26.item[key][0].name) {
14070
- var files = _this26.item[key];
14113
+ Object.keys(_this28.item).forEach(function (key) {
14114
+ if (_this28.item[key][0] && _this28.item[key][0].name) {
14115
+ var files = _this28.item[key];
14071
14116
  for (var x = 0; x < files.length; x++) {
14072
- formData.append(key + "[]", _this26.item[key][x], _this26.item[key][x].name);
14117
+ formData.append(key + "[]", _this28.item[key][x], _this28.item[key][x].name);
14073
14118
  }
14074
- } else formData.append(key, _this26.item[key]);
14119
+ } else formData.append(key, _this28.item[key]);
14075
14120
  });
14076
- axios.post(_this26.apiUrl + "/" + _this26.modelName, formData).then(function (response) {
14077
- _this26.loading = false;
14078
- if (_this26.hideModalAfterSave || _this26.hideModalAfterCreate) {
14079
- _this26.$bvModal.hide("modal-form-item-" + _this26.modelName);
14121
+ axios.post(_this28.apiUrl + "/" + _this28.modelName, formData).then(function (response) {
14122
+ _this28.loading = false;
14123
+ if (_this28.hideModalAfterSave || _this28.hideModalAfterCreate) {
14124
+ _this28.$bvModal.hide("modal-form-item-" + _this28.modelName);
14080
14125
  }
14081
14126
  if (response.data.success) {
14082
14127
  if (response.data.message) {
14083
- _this26.toastSuccess(response.data.message);
14128
+ _this28.toastSuccess(response.data.message);
14084
14129
  }
14085
14130
  return;
14086
14131
  }
14087
14132
  var itemSv = response.data;
14088
- _this26.items.push(itemSv);
14089
- _this26.item = itemSv;
14090
- if (_this26.refreshAfterSave) _this26.refresh();
14091
- _this26.toastSuccess("Elemento Creado");
14092
- _this26.$emit("itemSaved", {
14093
- item: _this26.item
14133
+ _this28.items.push(itemSv);
14134
+ _this28.item = itemSv;
14135
+ if (_this28.refreshAfterSave) _this28.refresh();
14136
+ _this28.toastSuccess("Elemento Creado");
14137
+ _this28.$emit("itemSaved", {
14138
+ item: _this28.item
14094
14139
  });
14095
- _this26.$emit("itemCreated", {
14096
- item: _this26.item
14140
+ _this28.$emit("itemCreated", {
14141
+ item: _this28.item
14097
14142
  });
14098
14143
  }).catch(function (error) {
14099
- _this26.toastError(error);
14100
- _this26.loading = false;
14144
+ _this28.toastError(error);
14145
+ _this28.loading = false;
14101
14146
  });
14102
14147
  } else {
14103
- axios.post(_this26.apiUrl + "/" + _this26.modelName, _this26.item).then(function (response) {
14104
- _this26.loading = false;
14105
- if (_this26.hideModalAfterSave || _this26.hideModalAfterUpdate) {
14106
- _this26.$bvModal.hide("modal-form-item-" + _this26.modelName);
14148
+ axios.post(_this28.apiUrl + "/" + _this28.modelName, _this28.item).then(function (response) {
14149
+ _this28.loading = false;
14150
+ if (_this28.hideModalAfterSave || _this28.hideModalAfterUpdate) {
14151
+ _this28.$bvModal.hide("modal-form-item-" + _this28.modelName);
14107
14152
  }
14108
14153
  if (response.data.success) {
14109
14154
  if (response.data.message) {
14110
- _this26.toastSuccess(response.data.message);
14155
+ _this28.toastSuccess(response.data.message);
14111
14156
  }
14112
14157
  return;
14113
14158
  }
14114
14159
  var itemSv = response.data;
14115
- _this26.items.push(itemSv);
14116
- _this26.item = itemSv;
14117
- if (_this26.refreshAfterSave) _this26.refresh();
14118
- _this26.toastSuccess("Elemento Creado");
14119
- _this26.$emit("itemSaved", {
14120
- item: _this26.item
14160
+ _this28.items.push(itemSv);
14161
+ _this28.item = itemSv;
14162
+ if (_this28.refreshAfterSave) _this28.refresh();
14163
+ _this28.toastSuccess("Elemento Creado");
14164
+ _this28.$emit("itemSaved", {
14165
+ item: _this28.item
14121
14166
  });
14122
- _this26.$emit("itemCreated", {
14123
- item: _this26.item
14167
+ _this28.$emit("itemCreated", {
14168
+ item: _this28.item
14124
14169
  });
14125
14170
  }).catch(function (error) {
14126
- _this26.toastError(error);
14127
- _this26.loading = false;
14171
+ _this28.toastError(error);
14172
+ _this28.loading = false;
14128
14173
  });
14129
14174
  }
14130
14175
  }
@@ -14212,11 +14257,11 @@ n(css, {});function normalizeComponent (
14212
14257
  link.click();
14213
14258
  },
14214
14259
  onChangeFilter: function onChangeFilter(event) {
14215
- var _this27 = this;
14260
+ var _this29 = this;
14216
14261
  this.forceRecomputeCounter++;
14217
14262
  console.debug("Filters debug ", this.finalFilters, this.internalFilter, this.internalFilters, this.filter, this.filters);
14218
14263
  setTimeout(function () {
14219
- _this27.refresh();
14264
+ _this29.refresh();
14220
14265
  }, 1);
14221
14266
  },
14222
14267
  onPaginationChange: function onPaginationChange(page) {
@@ -15278,7 +15323,7 @@ var _sfc_render = function render() {
15278
15323
  }) : _vm._e()], 2) : _vm._e()], 1);
15279
15324
  };
15280
15325
  var _sfc_staticRenderFns = [];
15281
- var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "51199a53", null, null);
15326
+ var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "4e32274c", null, null);
15282
15327
  var component$1 = __component__.exports;// Import vue component
15283
15328
 
15284
15329
  // Default export is installable instance of component.