vue-laravel-crud 1.6.8 → 1.6.10
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-
|
|
12118
|
+
var css = "tr td[data-v-ed7ab1fe]:last-child,\ntr td[data-v-ed7ab1fe]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-ed7ab1fe] {\n display: flex;\n align-items: center;\n width: 100%;\n justify-content: center;\n margin-top: 1rem; }\n\n.crud-header[data-v-ed7ab1fe] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-ed7ab1fe] .crud-title[data-v-ed7ab1fe] {\n margin: 0; }\n .crud-header[data-v-ed7ab1fe] .crud-search[data-v-ed7ab1fe] {\n max-width: 15rem; }\n .crud-header[data-v-ed7ab1fe] .crud-search[data-v-ed7ab1fe] .btn[data-v-ed7ab1fe] {\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-ed7ab1fe] .crud-search[data-v-ed7ab1fe] .btn[data-v-ed7ab1fe].open[data-v-ed7ab1fe] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-ed7ab1fe] .table-options[data-v-ed7ab1fe] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-ed7ab1fe] {\n position: relative; }\n\n@media (min-width: 992px) {\n .table[data-v-ed7ab1fe] {\n table-layout: auto; }\n .table[data-v-ed7ab1fe] tbody[data-v-ed7ab1fe] td[data-v-ed7ab1fe] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-ed7ab1fe] tbody[data-v-ed7ab1fe] td[data-v-ed7ab1fe]::-webkit-scrollbar {\n display: none; } }\n";
|
|
12119
12119
|
n(css, {});
|
|
12120
12120
|
|
|
12121
12121
|
function normalizeComponent (
|
|
@@ -13015,7 +13015,7 @@ const _sfc_main = {
|
|
|
13015
13015
|
axios.delete(this.apiUrl + "/" + this.modelName + "/bulk-destroy", {
|
|
13016
13016
|
ids: ids
|
|
13017
13017
|
}).then(response => {
|
|
13018
|
-
this.items = this.items.filter(it => ids.includes(it.id));
|
|
13018
|
+
this.items = this.items.filter(it => !ids.includes(it.id));
|
|
13019
13019
|
this.toastSuccess("Elemento/s eliminado.");
|
|
13020
13020
|
this.$emit("itemDeleted", {});
|
|
13021
13021
|
this.loading = false;
|
|
@@ -13026,7 +13026,7 @@ const _sfc_main = {
|
|
|
13026
13026
|
},
|
|
13027
13027
|
async deleteItemBulkLocal() {
|
|
13028
13028
|
let ids = this.selectedItems.map(it => it.id);
|
|
13029
|
-
this.items = this.items.filter(it => ids.includes(it.id));
|
|
13029
|
+
this.items = this.items.filter(it => !ids.includes(it.id));
|
|
13030
13030
|
this.item = null;
|
|
13031
13031
|
this.toastSuccess("Elemento Eliminado");
|
|
13032
13032
|
this.$emit("itemDeleted", {});
|
|
@@ -13929,7 +13929,16 @@ var _sfc_render = function render() {
|
|
|
13929
13929
|
"column": column,
|
|
13930
13930
|
"filter": _vm.filter,
|
|
13931
13931
|
"internalFilterByProp": _vm.internalFilterByProp
|
|
13932
|
-
}) :
|
|
13932
|
+
}) : column.type == 'select' ? _c('span', [_c('b-form-checkbox', {
|
|
13933
|
+
attrs: {
|
|
13934
|
+
"name": "select-all"
|
|
13935
|
+
},
|
|
13936
|
+
on: {
|
|
13937
|
+
"change": function ($event) {
|
|
13938
|
+
return _vm.toggleAll();
|
|
13939
|
+
}
|
|
13940
|
+
}
|
|
13941
|
+
})], 1) : _c('span', [_vm._v(_vm._s(column.label))]), _vm.sortable && _vm.internalFilterByProp(column.prop + '_sort') ? _c('span', {
|
|
13933
13942
|
staticClass: "sort-filter",
|
|
13934
13943
|
on: {
|
|
13935
13944
|
"click": function ($event) {
|
|
@@ -14371,7 +14380,7 @@ var _sfc_render = function render() {
|
|
|
14371
14380
|
}) : _vm._e()], 2)], 1);
|
|
14372
14381
|
};
|
|
14373
14382
|
var _sfc_staticRenderFns = [];
|
|
14374
|
-
var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "
|
|
14383
|
+
var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "ed7ab1fe", null, null);
|
|
14375
14384
|
var component = __component__.exports;
|
|
14376
14385
|
|
|
14377
14386
|
// Import vue component
|