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.
|
@@ -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-
|
|
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-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";
|
|
12536
12536
|
n(css, {});function normalizeComponent (
|
|
12537
12537
|
scriptExports,
|
|
12538
12538
|
render,
|
|
@@ -13261,6 +13261,7 @@ n(css, {});function normalizeComponent (
|
|
|
13261
13261
|
},
|
|
13262
13262
|
onSelect: function onSelect() {
|
|
13263
13263
|
this.$emit("select", this.item);
|
|
13264
|
+
this.$emit("selectItems", this.selectedItems);
|
|
13264
13265
|
},
|
|
13265
13266
|
showItem: function showItem(id) {
|
|
13266
13267
|
var itemIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
@@ -13491,7 +13492,9 @@ n(css, {});function normalizeComponent (
|
|
|
13491
13492
|
});
|
|
13492
13493
|
this.loading = true;
|
|
13493
13494
|
axios.delete(this.apiUrl + "/" + this.modelName + "/bulk-destroy", {
|
|
13494
|
-
|
|
13495
|
+
params: {
|
|
13496
|
+
ids: ids
|
|
13497
|
+
}
|
|
13495
13498
|
}).then(function (response) {
|
|
13496
13499
|
_this14.items = _this14.items.filter(function (it) {
|
|
13497
13500
|
return !ids.includes(it.id);
|
|
@@ -15020,7 +15023,7 @@ var _sfc_render = function render() {
|
|
|
15020
15023
|
}) : _vm._e()], 2)], 1);
|
|
15021
15024
|
};
|
|
15022
15025
|
var _sfc_staticRenderFns = [];
|
|
15023
|
-
var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "
|
|
15026
|
+
var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "0e3c8dc0", null, null);
|
|
15024
15027
|
var component$1 = __component__.exports;// Import vue component
|
|
15025
15028
|
|
|
15026
15029
|
// Default export is installable instance of component.
|
package/package.json
CHANGED
package/src/vue-laravel-crud.vue
CHANGED
|
@@ -682,6 +682,7 @@ export default /*#__PURE__*/ {
|
|
|
682
682
|
},
|
|
683
683
|
onSelect() {
|
|
684
684
|
this.$emit("select", this.item);
|
|
685
|
+
this.$emit("selectItems", this.selectedItems);
|
|
685
686
|
},
|
|
686
687
|
showItem(id, itemIndex = null) {
|
|
687
688
|
if (itemIndex == null) {
|
|
@@ -902,7 +903,7 @@ export default /*#__PURE__*/ {
|
|
|
902
903
|
|
|
903
904
|
this.loading = true;
|
|
904
905
|
axios
|
|
905
|
-
.delete(this.apiUrl + "/" + this.modelName + "/bulk-destroy", {ids: ids} )
|
|
906
|
+
.delete(this.apiUrl + "/" + this.modelName + "/bulk-destroy", { params: {ids: ids },} )
|
|
906
907
|
.then((response) => {
|
|
907
908
|
this.items = this.items.filter(it => !ids.includes(it.id));
|
|
908
909
|
this.toastSuccess("Elemento/s eliminado.");
|