vue-laravel-crud 1.6.12 → 1.6.14
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-0e3c8dc0]:last-child,\ntr td[data-v-0e3c8dc0]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-0e3c8dc0] {\n display: flex;\n align-items: center;\n width: 100%;\n justify-content: center;\n margin-top: 1rem; }\n\n.crud-header[data-v-0e3c8dc0] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-0e3c8dc0] .crud-title[data-v-0e3c8dc0] {\n margin: 0; }\n .crud-header[data-v-0e3c8dc0] .crud-search[data-v-0e3c8dc0] {\n max-width: 15rem; }\n .crud-header[data-v-0e3c8dc0] .crud-search[data-v-0e3c8dc0] .btn[data-v-0e3c8dc0] {\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-0e3c8dc0] .crud-search[data-v-0e3c8dc0] .btn[data-v-0e3c8dc0].open[data-v-0e3c8dc0] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-0e3c8dc0] .table-options[data-v-0e3c8dc0] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-0e3c8dc0] {\n position: relative; }\n\n@media (min-width: 992px) {\n .table[data-v-0e3c8dc0] {\n table-layout: auto; }\n .table[data-v-0e3c8dc0] tbody[data-v-0e3c8dc0] td[data-v-0e3c8dc0] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-0e3c8dc0] tbody[data-v-0e3c8dc0] td[data-v-0e3c8dc0]::-webkit-scrollbar {\n display: none; } }\n";
|
|
12119
12119
|
n(css, {});
|
|
12120
12120
|
|
|
12121
12121
|
function normalizeComponent (
|
|
@@ -12820,6 +12820,7 @@ const _sfc_main = {
|
|
|
12820
12820
|
},
|
|
12821
12821
|
onSelect() {
|
|
12822
12822
|
this.$emit("select", this.item);
|
|
12823
|
+
this.$emit("selectItems", this.selectedItems);
|
|
12823
12824
|
},
|
|
12824
12825
|
showItem(id, itemIndex = null) {
|
|
12825
12826
|
if (itemIndex == null) {
|
|
@@ -13017,7 +13018,9 @@ const _sfc_main = {
|
|
|
13017
13018
|
let ids = this.selectedItems.map(it => it.id);
|
|
13018
13019
|
this.loading = true;
|
|
13019
13020
|
axios.delete(this.apiUrl + "/" + this.modelName + "/bulk-destroy", {
|
|
13020
|
-
|
|
13021
|
+
params: {
|
|
13022
|
+
ids: ids
|
|
13023
|
+
}
|
|
13021
13024
|
}).then(response => {
|
|
13022
13025
|
this.items = this.items.filter(it => !ids.includes(it.id));
|
|
13023
13026
|
this.toastSuccess("Elemento/s eliminado.");
|
|
@@ -14384,7 +14387,7 @@ var _sfc_render = function render() {
|
|
|
14384
14387
|
}) : _vm._e()], 2)], 1);
|
|
14385
14388
|
};
|
|
14386
14389
|
var _sfc_staticRenderFns = [];
|
|
14387
|
-
var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "
|
|
14390
|
+
var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "0e3c8dc0", null, null);
|
|
14388
14391
|
var component = __component__.exports;
|
|
14389
14392
|
|
|
14390
14393
|
// Import vue component
|