vue-laravel-crud 1.4.13 → 1.4.15

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.
@@ -17305,7 +17305,7 @@ var moment$1 = {
17305
17305
  })));
17306
17306
  } (moment$1));
17307
17307
 
17308
- var moment = momentExports;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-cc7b4474]:last-child,\ntr td[data-v-cc7b4474]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-cc7b4474] {\n display: flex;\n justify-content: center; }\n\n.crud-header[data-v-cc7b4474] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-cc7b4474] .crud-title[data-v-cc7b4474] {\n margin: 0; }\n .crud-header[data-v-cc7b4474] .crud-search[data-v-cc7b4474] {\n max-width: 15rem; }\n .crud-header[data-v-cc7b4474] .crud-search[data-v-cc7b4474] .btn[data-v-cc7b4474] {\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-cc7b4474] .crud-search[data-v-cc7b4474] .btn[data-v-cc7b4474].open[data-v-cc7b4474] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-cc7b4474] .table-options[data-v-cc7b4474] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-cc7b4474] {\n position: relative;\n top: -15px; }\n\n@media (min-width: 992px) {\n .table[data-v-cc7b4474] {\n table-layout: auto; }\n .table[data-v-cc7b4474] tbody[data-v-cc7b4474] td[data-v-cc7b4474] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-cc7b4474] tbody[data-v-cc7b4474] td[data-v-cc7b4474]::-webkit-scrollbar {\n display: none; } }\n";
17308
+ var moment = momentExports;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-1f4fa85d]:last-child,\ntr td[data-v-1f4fa85d]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-1f4fa85d] {\n display: flex;\n justify-content: center; }\n\n.crud-header[data-v-1f4fa85d] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-1f4fa85d] .crud-title[data-v-1f4fa85d] {\n margin: 0; }\n .crud-header[data-v-1f4fa85d] .crud-search[data-v-1f4fa85d] {\n max-width: 15rem; }\n .crud-header[data-v-1f4fa85d] .crud-search[data-v-1f4fa85d] .btn[data-v-1f4fa85d] {\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-1f4fa85d] .crud-search[data-v-1f4fa85d] .btn[data-v-1f4fa85d].open[data-v-1f4fa85d] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-1f4fa85d] .table-options[data-v-1f4fa85d] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-1f4fa85d] {\n position: relative;\n top: -15px; }\n\n@media (min-width: 992px) {\n .table[data-v-1f4fa85d] {\n table-layout: auto; }\n .table[data-v-1f4fa85d] tbody[data-v-1f4fa85d] td[data-v-1f4fa85d] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-1f4fa85d] tbody[data-v-1f4fa85d] td[data-v-1f4fa85d]::-webkit-scrollbar {\n display: none; } }\n";
17309
17309
  n(css, {});function normalizeComponent (
17310
17310
  scriptExports,
17311
17311
  render,
@@ -17656,7 +17656,10 @@ n(css, {});function normalizeComponent (
17656
17656
  }
17657
17657
  },
17658
17658
  mounted: function mounted() {
17659
- if (this.useVuexORM) ; else {
17659
+ if (this.useVuexORM) {
17660
+ //this.useVuexORM = true;
17661
+ this.item = new this.model();
17662
+ } else {
17660
17663
  this.item = this.model;
17661
17664
  this.itemDefault = JSON.parse(JSON.stringify(this.item));
17662
17665
  }
@@ -17692,9 +17695,6 @@ n(css, {});function normalizeComponent (
17692
17695
  paginationIndexEnd: function paginationIndexEnd() {
17693
17696
  return this.paginationIndexStart + this.pagination.per_page;
17694
17697
  },
17695
- /* filteredItems() {
17696
- return this.items;
17697
- },*/
17698
17698
  finalFilters: function finalFilters() {
17699
17699
  return [].concat(_toConsumableArray$1(this.filters), _toConsumableArray$1(this.filter), _toConsumableArray$1(this.internalFilter));
17700
17700
  },
@@ -17926,8 +17926,8 @@ n(css, {});function normalizeComponent (
17926
17926
  });
17927
17927
  case 5:
17928
17928
  result = _context.sent;
17929
- _this8.collection = result.entities[_this8.model.entity];
17930
- console.debug("fetch page vuex ", page, _this8.collection);
17929
+ _this8.items = result.entities[_this8.model.entity];
17930
+ console.debug("fetch page vuex ", page, _this8.items);
17931
17931
  _this8.loading = false;
17932
17932
  case 9:
17933
17933
  case "end":
@@ -18005,43 +18005,80 @@ n(css, {});function normalizeComponent (
18005
18005
  centered: true
18006
18006
  }).then(function (value) {
18007
18007
  if (value) {
18008
- _this10.loading = true;
18009
- axios.delete(_this10.apiUrl + "/" + _this10.modelName + "/" + id).then(function (response) {
18010
- _this10.items.splice(index, 1);
18011
- _this10.toastSuccess("Elemento eliminado.");
18012
- _this10.loading = false;
18013
- }).catch(function (error) {
18014
- _this10.toastError(error);
18015
- _this10.loading = false;
18016
- });
18008
+ _this10.deleteItem(id, index);
18017
18009
  }
18018
18010
  }).catch(function (error) {
18019
18011
  _this10.toastError(error);
18020
18012
  _this10.loading = false;
18021
18013
  });
18022
18014
  },
18023
- saveSort: function saveSort() {
18015
+ deleteItem: function deleteItem(id, index) {
18024
18016
  var _this11 = this;
18017
+ if (this.useVuexORM) {
18018
+ return this.deleteItemVuex(id, index);
18019
+ }
18020
+ this.loading = true;
18021
+ axios.delete(this.apiUrl + "/" + this.modelName + "/" + id).then(function (response) {
18022
+ _this11.items.splice(index, 1);
18023
+ _this11.toastSuccess("Elemento eliminado.");
18024
+ _this11.loading = false;
18025
+ }).catch(function (error) {
18026
+ _this11.toastError(error);
18027
+ _this11.loading = false;
18028
+ });
18029
+ },
18030
+ deleteItemVuex: function deleteItemVuex(id, index) {
18031
+ var _this12 = this;
18032
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
18033
+ var result;
18034
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
18035
+ while (1) switch (_context2.prev = _context2.next) {
18036
+ case 0:
18037
+ _context2.next = 2;
18038
+ return _this12.model.api().delete('/' + id, {
18039
+ delete: 1
18040
+ });
18041
+ case 2:
18042
+ result = _context2.sent;
18043
+ console.debug("delete item vuex", result);
18044
+ result.response.status;
18045
+ if (!result.response.data.error) {
18046
+ _context2.next = 8;
18047
+ break;
18048
+ }
18049
+ _this12.toastError(result.response.data.error);
18050
+ return _context2.abrupt("return");
18051
+ case 8:
18052
+ _this12.toastSuccess("Elemento eliminado.");
18053
+ case 9:
18054
+ case "end":
18055
+ return _context2.stop();
18056
+ }
18057
+ }, _callee2);
18058
+ }))();
18059
+ },
18060
+ saveSort: function saveSort() {
18061
+ var _this13 = this;
18025
18062
  if (this.orderable) {
18026
18063
  this.loading = true;
18027
18064
  var order = [];
18028
18065
  this.items.forEach(function (v, k) {
18029
18066
  order.push({
18030
18067
  id: v.id,
18031
- order: v[_this11.orderProp]
18068
+ order: v[_this13.orderProp]
18032
18069
  });
18033
18070
  });
18034
18071
  axios.post(this.apiUrl + "/" + this.modelName + "/sort", {
18035
18072
  order: order
18036
18073
  }).then(function (response) {
18037
18074
  response.data;
18038
- _this11.toastSuccess("Orden Actualizado");
18039
- if (_this11.refreshAfterSave) _this11.refresh();
18040
- _this11.loading = false;
18075
+ _this13.toastSuccess("Orden Actualizado");
18076
+ if (_this13.refreshAfterSave) _this13.refresh();
18077
+ _this13.loading = false;
18041
18078
  }).catch(function (error) {
18042
18079
  //console.debug(error);
18043
- _this11.toastError(error);
18044
- _this11.loading = false;
18080
+ _this13.toastError(error);
18081
+ _this13.loading = false;
18045
18082
  });
18046
18083
  }
18047
18084
  },
@@ -18076,112 +18113,161 @@ n(css, {});function normalizeComponent (
18076
18113
  });
18077
18114
  return ops.join(", ");
18078
18115
  },
18116
+ saveItemVuex: function saveItemVuex() {
18117
+ var _this14 = this;
18118
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
18119
+ var jsondata, result;
18120
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
18121
+ while (1) switch (_context3.prev = _context3.next) {
18122
+ case 0:
18123
+ jsondata = _this14.item.$toJson();
18124
+ console.debug("save item ", _this14.item, jsondata);
18125
+ if (!_this14.item.id) {
18126
+ _context3.next = 9;
18127
+ break;
18128
+ }
18129
+ _context3.next = 6;
18130
+ return _this14.model.api().put('/' + _this14.item.id, jsondata);
18131
+ case 6:
18132
+ result = _context3.sent;
18133
+ _context3.next = 12;
18134
+ break;
18135
+ case 9:
18136
+ _context3.next = 11;
18137
+ return _this14.model.api().post('', jsondata);
18138
+ case 11:
18139
+ result = _context3.sent;
18140
+ case 12:
18141
+ result.response.status;
18142
+ if (!result.response.data.error) {
18143
+ _context3.next = 16;
18144
+ break;
18145
+ }
18146
+ _this14.toastError(result.response.data.error);
18147
+ return _context3.abrupt("return");
18148
+ case 16:
18149
+ result.save();
18150
+ if (_this14.refreshAfterSave) _this14.refresh();
18151
+ _this14.toastSuccess("Elemento Modificado");
18152
+ case 19:
18153
+ case "end":
18154
+ return _context3.stop();
18155
+ }
18156
+ }, _callee3);
18157
+ }))();
18158
+ },
18079
18159
  saveItem: function saveItem() {
18080
- var _arguments2 = arguments,
18081
- _this12 = this;
18082
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
18160
+ var _arguments3 = arguments,
18161
+ _this15 = this;
18162
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
18083
18163
  var event, validation_result, validation_error_message, formData;
18084
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
18085
- while (1) switch (_context2.prev = _context2.next) {
18164
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
18165
+ while (1) switch (_context4.prev = _context4.next) {
18086
18166
  case 0:
18087
- event = _arguments2.length > 0 && _arguments2[0] !== undefined ? _arguments2[0] : null;
18088
- _this12.loading = true;
18089
- if (!_this12.validate) {
18090
- _context2.next = 10;
18167
+ event = _arguments3.length > 0 && _arguments3[0] !== undefined ? _arguments3[0] : null;
18168
+ _this15.loading = true;
18169
+ if (!_this15.validate) {
18170
+ _context4.next = 10;
18091
18171
  break;
18092
18172
  }
18093
18173
  validation_result = true;
18094
- validation_error_message = _this12.messageDefaultValidationError;
18174
+ validation_error_message = _this15.messageDefaultValidationError;
18095
18175
  if (validation_result) {
18096
- _context2.next = 8;
18176
+ _context4.next = 8;
18097
18177
  break;
18098
18178
  }
18099
- _this12.toastError(validation_error_message);
18100
- return _context2.abrupt("return");
18179
+ _this15.toastError(validation_error_message);
18180
+ return _context4.abrupt("return");
18101
18181
  case 8:
18102
- _context2.next = 11;
18182
+ _context4.next = 11;
18103
18183
  break;
18104
18184
  case 10:
18105
18185
  if (event) event.preventDefault();
18106
18186
  case 11:
18107
- if (_this12.item.id) {
18108
- axios.put(_this12.apiUrl + "/" + _this12.modelName + "/" + _this12.item.id, _this12.item).then(function (response) {
18109
- if (_this12.hideModalAfterSave) {
18110
- _this12.$bvModal.hide("modal-form-item-" + _this12.modelName);
18187
+ if (!_this15.useVuexORM) {
18188
+ _context4.next = 13;
18189
+ break;
18190
+ }
18191
+ return _context4.abrupt("return", _this15.saveItemVuex());
18192
+ case 13:
18193
+ if (_this15.item.id) {
18194
+ axios.put(_this15.apiUrl + "/" + _this15.modelName + "/" + _this15.item.id, _this15.item).then(function (response) {
18195
+ if (_this15.hideModalAfterSave) {
18196
+ _this15.$bvModal.hide("modal-form-item-" + _this15.modelName);
18111
18197
  }
18112
18198
  var itemSv = response.data;
18113
- var itemIndex = _this12.items.findIndex(function (item) {
18114
- return item.id == _this12.item.id;
18199
+ var itemIndex = _this15.items.findIndex(function (item) {
18200
+ return item.id == _this15.item.id;
18115
18201
  });
18116
- _this12.items[itemIndex] = itemSv;
18117
- _this12.item = itemSv;
18118
- _this12.loading = false;
18119
- if (_this12.refreshAfterSave) _this12.refresh();
18120
- _this12.toastSuccess("Elemento Modificado");
18202
+ _this15.items[itemIndex] = itemSv;
18203
+ _this15.item = itemSv;
18204
+ _this15.loading = false;
18205
+ if (_this15.refreshAfterSave) _this15.refresh();
18206
+ _this15.toastSuccess("Elemento Modificado");
18121
18207
  }).catch(function (error) {
18122
- _this12.toastError(error);
18123
- _this12.loading = false;
18208
+ _this15.toastError(error);
18209
+ _this15.loading = false;
18124
18210
  });
18125
18211
  } else {
18126
- if (_this12.createMultipart) {
18212
+ if (_this15.createMultipart) {
18127
18213
  formData = new FormData();
18128
- Object.keys(_this12.item).forEach(function (key) {
18129
- if (_this12.item[key][0] && _this12.item[key][0].name) {
18130
- var files = _this12.item[key];
18214
+ Object.keys(_this15.item).forEach(function (key) {
18215
+ if (_this15.item[key][0] && _this15.item[key][0].name) {
18216
+ var files = _this15.item[key];
18131
18217
  for (var x = 0; x < files.length; x++) {
18132
- formData.append(key + "[]", _this12.item[key][x], _this12.item[key][x].name);
18218
+ formData.append(key + "[]", _this15.item[key][x], _this15.item[key][x].name);
18133
18219
  }
18134
- } else formData.append(key, _this12.item[key]);
18220
+ } else formData.append(key, _this15.item[key]);
18135
18221
  });
18136
- axios.post(_this12.apiUrl + "/" + _this12.modelName, formData).then(function (response) {
18137
- _this12.loading = false;
18138
- if (_this12.hideModalAfterSave) {
18139
- _this12.$bvModal.hide("modal-form-item-" + _this12.modelName);
18222
+ axios.post(_this15.apiUrl + "/" + _this15.modelName, formData).then(function (response) {
18223
+ _this15.loading = false;
18224
+ if (_this15.hideModalAfterSave) {
18225
+ _this15.$bvModal.hide("modal-form-item-" + _this15.modelName);
18140
18226
  }
18141
18227
  if (response.data.success) {
18142
18228
  if (response.data.message) {
18143
- _this12.toastSuccess(response.data.message);
18229
+ _this15.toastSuccess(response.data.message);
18144
18230
  }
18145
18231
  return;
18146
18232
  }
18147
18233
  var itemSv = response.data;
18148
- _this12.items.push(itemSv);
18149
- _this12.item = itemSv;
18150
- if (_this12.refreshAfterSave) _this12.refresh();
18151
- _this12.toastSuccess("Elemento Creado");
18234
+ _this15.items.push(itemSv);
18235
+ _this15.item = itemSv;
18236
+ if (_this15.refreshAfterSave) _this15.refresh();
18237
+ _this15.toastSuccess("Elemento Creado");
18152
18238
  }).catch(function (error) {
18153
- _this12.toastError(error);
18154
- _this12.loading = false;
18239
+ _this15.toastError(error);
18240
+ _this15.loading = false;
18155
18241
  });
18156
18242
  } else {
18157
- axios.post(_this12.apiUrl + "/" + _this12.modelName, _this12.item).then(function (response) {
18158
- _this12.loading = false;
18159
- if (_this12.hideModalAfterSave) {
18160
- _this12.$bvModal.hide("modal-form-item-" + _this12.modelName);
18243
+ axios.post(_this15.apiUrl + "/" + _this15.modelName, _this15.item).then(function (response) {
18244
+ _this15.loading = false;
18245
+ if (_this15.hideModalAfterSave) {
18246
+ _this15.$bvModal.hide("modal-form-item-" + _this15.modelName);
18161
18247
  }
18162
18248
  if (response.data.success) {
18163
18249
  if (response.data.message) {
18164
- _this12.toastSuccess(response.data.message);
18250
+ _this15.toastSuccess(response.data.message);
18165
18251
  }
18166
18252
  return;
18167
18253
  }
18168
18254
  var itemSv = response.data;
18169
- _this12.items.push(itemSv);
18170
- _this12.item = itemSv;
18171
- if (_this12.refreshAfterSave) _this12.refresh();
18172
- _this12.toastSuccess("Elemento Creado");
18255
+ _this15.items.push(itemSv);
18256
+ _this15.item = itemSv;
18257
+ if (_this15.refreshAfterSave) _this15.refresh();
18258
+ _this15.toastSuccess("Elemento Creado");
18173
18259
  }).catch(function (error) {
18174
- _this12.toastError(error);
18175
- _this12.loading = false;
18260
+ _this15.toastError(error);
18261
+ _this15.loading = false;
18176
18262
  });
18177
18263
  }
18178
18264
  }
18179
18265
  if (event) event.preventDefault();
18180
- case 13:
18266
+ case 15:
18181
18267
  case "end":
18182
- return _context2.stop();
18268
+ return _context4.stop();
18183
18269
  }
18184
- }, _callee2);
18270
+ }, _callee4);
18185
18271
  }))();
18186
18272
  },
18187
18273
  toastError: function toastError(error) {
@@ -18226,10 +18312,10 @@ n(css, {});function normalizeComponent (
18226
18312
  });
18227
18313
  },
18228
18314
  onChangeFilter: function onChangeFilter(event) {
18229
- var _this13 = this;
18315
+ var _this16 = this;
18230
18316
  this.forceRecomputeCounter++;
18231
18317
  setTimeout(function () {
18232
- _this13.refresh();
18318
+ _this16.refresh();
18233
18319
  }, 1);
18234
18320
  },
18235
18321
  onPaginationChange: function onPaginationChange(page) {
@@ -18330,7 +18416,7 @@ var _sfc_render = function render() {
18330
18416
  callback: function callback($$v) {
18331
18417
  _vm.$set(_vm.internalFilterByProp(column.prop + '_from'), "value", $$v);
18332
18418
  },
18333
- expression: "\n internalFilterByProp(column.prop + '_from').value\n "
18419
+ expression: "\n internalFilterByProp(column.prop + '_from').value\n "
18334
18420
  }
18335
18421
  })], 1), _c('div', {
18336
18422
  staticClass: "col-6"
@@ -18346,7 +18432,7 @@ var _sfc_render = function render() {
18346
18432
  callback: function callback($$v) {
18347
18433
  _vm.$set(_vm.internalFilterByProp(column.prop + '_to'), "value", $$v);
18348
18434
  },
18349
- expression: "\n internalFilterByProp(column.prop + '_to').value\n "
18435
+ expression: "\n internalFilterByProp(column.prop + '_to').value\n "
18350
18436
  }
18351
18437
  })], 1)])]) : column.type == 'state' ? _c('div', {
18352
18438
  staticClass: "form-group"
@@ -18618,7 +18704,7 @@ var _sfc_render = function render() {
18618
18704
  callback: function callback($$v) {
18619
18705
  _vm.$set(_vm.internalFilterByProp(column.prop + '_from'), "value", $$v);
18620
18706
  },
18621
- expression: "\n internalFilterByProp(column.prop + '_from').value\n "
18707
+ expression: "\n internalFilterByProp(column.prop + '_from').value\n "
18622
18708
  }
18623
18709
  })], 1), _c('div', {
18624
18710
  staticClass: "col-6"
@@ -18634,7 +18720,7 @@ var _sfc_render = function render() {
18634
18720
  callback: function callback($$v) {
18635
18721
  _vm.$set(_vm.internalFilterByProp(column.prop + '_to'), "value", $$v);
18636
18722
  },
18637
- expression: "\n internalFilterByProp(column.prop + '_to').value\n "
18723
+ expression: "\n internalFilterByProp(column.prop + '_to').value\n "
18638
18724
  }
18639
18725
  })], 1)]) : column.type == 'state' ? _c('select', {
18640
18726
  directives: [{
@@ -18764,13 +18850,13 @@ var _sfc_render = function render() {
18764
18850
  }
18765
18851
  },
18766
18852
  model: {
18767
- value: _vm.items,
18853
+ value: _vm.itemsList,
18768
18854
  callback: function callback($$v) {
18769
- _vm.items = $$v;
18855
+ _vm.itemsList = $$v;
18770
18856
  },
18771
- expression: "items"
18857
+ expression: "itemsList"
18772
18858
  }
18773
- }, _vm._l(_vm.items, function (item, index) {
18859
+ }, _vm._l(_vm.itemsList, function (item, index) {
18774
18860
  return _c('tr', {
18775
18861
  key: index,
18776
18862
  staticClass: "item",
@@ -18861,9 +18947,9 @@ var _sfc_render = function render() {
18861
18947
  }, {
18862
18948
  "item": item
18863
18949
  })]], 2);
18864
- }), 0)], 1), _vm.items.length == 0 ? _c('p', {
18950
+ }), 0)], 1), _vm.itemsList.length == 0 ? _c('p', {
18865
18951
  staticClass: "p-3"
18866
- }, [_vm._v(" " + _vm._s(_vm.messageEmptyResults) + " ")]) : _vm._e()]) : _vm._e(), _vm.displayMode == _vm.displayModes.MODE_CARDS ? _c('div', [_vm.items.length == 0 ? _c('p', {
18952
+ }, [_vm._v(" " + _vm._s(_vm.messageEmptyResults) + " ")]) : _vm._e()]) : _vm._e(), _vm.displayMode == _vm.displayModes.MODE_CARDS ? _c('div', [_vm.itemsList.length == 0 ? _c('p', {
18867
18953
  staticClass: "p-3"
18868
18954
  }, [_vm._v(" " + _vm._s(_vm.messageEmptyResults) + " ")]) : _vm._e(), _c('draggable', {
18869
18955
  staticClass: "row",
@@ -18883,13 +18969,13 @@ var _sfc_render = function render() {
18883
18969
  }
18884
18970
  },
18885
18971
  model: {
18886
- value: _vm.items,
18972
+ value: _vm.itemsList,
18887
18973
  callback: function callback($$v) {
18888
- _vm.items = $$v;
18974
+ _vm.itemsList = $$v;
18889
18975
  },
18890
- expression: "items"
18976
+ expression: "itemsList"
18891
18977
  }
18892
- }, _vm._l(_vm.items, function (item, index) {
18978
+ }, _vm._l(_vm.itemsList, function (item, index) {
18893
18979
  return _c('b-col', {
18894
18980
  key: index,
18895
18981
  staticClass: "item",
@@ -18976,9 +19062,9 @@ var _sfc_render = function render() {
18976
19062
  })], 2)], 1);
18977
19063
  }), 1)], 1) : _vm._e(), _vm.displayMode == _vm.displayModes.MODE_CUSTOM ? _c('div', [_c('div', {
18978
19064
  class: _vm.listContainerClass
18979
- }, [_vm.items.length == 0 ? _c('p', {
19065
+ }, [_vm.itemsList.length == 0 ? _c('p', {
18980
19066
  staticClass: "p-3"
18981
- }, [_vm._v(" " + _vm._s(_vm.messageEmptyResults) + " ")]) : _vm._e(), _vm._l(_vm.items, function (item, index) {
19067
+ }, [_vm._v(" " + _vm._s(_vm.messageEmptyResults) + " ")]) : _vm._e(), _vm._l(_vm.itemsList, function (item, index) {
18982
19068
  return _c('div', {
18983
19069
  key: index,
18984
19070
  class: _vm.listItemClass
@@ -19109,7 +19195,7 @@ var _sfc_render = function render() {
19109
19195
  })], 2)], 1);
19110
19196
  };
19111
19197
  var _sfc_staticRenderFns = [];
19112
- var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "cc7b4474", null, null);
19198
+ var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "1f4fa85d", null, null);
19113
19199
  var component$1 = __component__.exports;// Import vue component
19114
19200
 
19115
19201
  // Default export is installable instance of component.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-laravel-crud",
3
- "version": "1.4.13",
3
+ "version": "1.4.15",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/clonixdev/vue-laravel-crud",
6
6
  "main": "dist/vue-laravel-crud.ssr.js",