vue-laravel-crud 1.7.20 → 1.7.21

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.
@@ -12115,7 +12115,7 @@ if (typeof window !== 'undefined' && window.Vue) {
12115
12115
 
12116
12116
  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}}
12117
12117
 
12118
- var css = "tr td[data-v-3083d6fc]:last-child,\ntr td[data-v-3083d6fc]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-3083d6fc] {\n display: flex;\n align-items: center;\n width: 100%;\n justify-content: center;\n margin-top: 1rem; }\n\n.crud-header[data-v-3083d6fc] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-3083d6fc] .crud-title[data-v-3083d6fc] {\n margin: 0; }\n .crud-header[data-v-3083d6fc] .crud-search[data-v-3083d6fc] {\n max-width: 15rem; }\n .crud-header[data-v-3083d6fc] .crud-search[data-v-3083d6fc] .btn[data-v-3083d6fc] {\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-3083d6fc] .crud-search[data-v-3083d6fc] .btn[data-v-3083d6fc].open[data-v-3083d6fc] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-3083d6fc] .table-options[data-v-3083d6fc] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-3083d6fc] {\n position: relative; }\n\n@media (min-width: 992px) {\n .table[data-v-3083d6fc] {\n table-layout: auto; }\n .table[data-v-3083d6fc] tbody[data-v-3083d6fc] td[data-v-3083d6fc] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-3083d6fc] tbody[data-v-3083d6fc] td[data-v-3083d6fc]::-webkit-scrollbar {\n display: none; } }\n";
12118
+ var css = "tr td[data-v-4d8afc06]:last-child,\ntr td[data-v-4d8afc06]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-4d8afc06] {\n display: flex;\n align-items: center;\n width: 100%;\n justify-content: center;\n margin-top: 1rem; }\n\n.crud-header[data-v-4d8afc06] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-4d8afc06] .crud-title[data-v-4d8afc06] {\n margin: 0; }\n .crud-header[data-v-4d8afc06] .crud-search[data-v-4d8afc06] {\n max-width: 15rem; }\n .crud-header[data-v-4d8afc06] .crud-search[data-v-4d8afc06] .btn[data-v-4d8afc06] {\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-4d8afc06] .crud-search[data-v-4d8afc06] .btn[data-v-4d8afc06].open[data-v-4d8afc06] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-4d8afc06] .table-options[data-v-4d8afc06] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-4d8afc06] {\n position: relative; }\n\n@media (min-width: 992px) {\n .table[data-v-4d8afc06] {\n table-layout: auto; }\n .table[data-v-4d8afc06] tbody[data-v-4d8afc06] td[data-v-4d8afc06] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-4d8afc06] tbody[data-v-4d8afc06] td[data-v-4d8afc06]::-webkit-scrollbar {\n display: none; } }\n";
12119
12119
  n(css, {});
12120
12120
 
12121
12121
  function normalizeComponent (
@@ -12968,7 +12968,7 @@ const _sfc_main = {
12968
12968
  await this.model.$fetch();
12969
12969
  } else {
12970
12970
  this.model.deleteAll();
12971
- result = await this.model.api().get('', {
12971
+ result = await this.model.api().get(this.apiUrl + "/" + this.modelName, {
12972
12972
  params: {
12973
12973
  page: page,
12974
12974
  limit: this.pagination.perPage,
@@ -13135,7 +13135,7 @@ const _sfc_main = {
13135
13135
  if (this.vuexLocalforage) {
13136
13136
  await this.model.$delete(ids);
13137
13137
  } else {
13138
- let result = await this.model.api().delete('/bulk-destroy', {
13138
+ let result = await this.model.api().delete(this.apiUrl + "/" + this.modelName + '/bulk-destroy', {
13139
13139
  params: {
13140
13140
  ids: ids
13141
13141
  },
@@ -13194,7 +13194,7 @@ const _sfc_main = {
13194
13194
  if (this.vuexLocalforage) {
13195
13195
  await this.model.$delete(id);
13196
13196
  } else {
13197
- let result = await this.model.api().delete('/' + id, {
13197
+ let result = await this.model.api().delete(this.apiUrl + "/" + this.modelName + '/' + id, {
13198
13198
  delete: 1
13199
13199
  });
13200
13200
  console.debug("delete item vuex", result);
@@ -13354,10 +13354,10 @@ const _sfc_main = {
13354
13354
  let jsondata = this.item.$toJson();
13355
13355
  console.debug("save item 2", this.item, jsondata);
13356
13356
  if (this.item.id) {
13357
- result = await this.model.api().put('/' + this.item.id, jsondata);
13357
+ result = await this.model.api().put(this.apiUrl + "/" + this.modelName + '/' + this.item.id, jsondata);
13358
13358
  create = false;
13359
13359
  } else {
13360
- result = await this.model.api().post('', jsondata);
13360
+ result = await this.model.api().post(this.apiUrl + "/" + this.modelName, jsondata);
13361
13361
  create = true;
13362
13362
  }
13363
13363
  result.response.status;
@@ -14708,7 +14708,7 @@ var _sfc_render = function render() {
14708
14708
  }) : _vm._e()], 2) : _vm._e()], 1);
14709
14709
  };
14710
14710
  var _sfc_staticRenderFns = [];
14711
- var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "3083d6fc", null, null);
14711
+ var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "4d8afc06", null, null);
14712
14712
  var component = __component__.exports;
14713
14713
 
14714
14714
  // Import vue component