vue-laravel-crud 1.6.22 → 1.6.23
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-7a09dc1e]:last-child,\ntr td[data-v-7a09dc1e]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-7a09dc1e] {\n display: flex;\n align-items: center;\n width: 100%;\n justify-content: center;\n margin-top: 1rem; }\n\n.crud-header[data-v-7a09dc1e] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-7a09dc1e] .crud-title[data-v-7a09dc1e] {\n margin: 0; }\n .crud-header[data-v-7a09dc1e] .crud-search[data-v-7a09dc1e] {\n max-width: 15rem; }\n .crud-header[data-v-7a09dc1e] .crud-search[data-v-7a09dc1e] .btn[data-v-7a09dc1e] {\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-7a09dc1e] .crud-search[data-v-7a09dc1e] .btn[data-v-7a09dc1e].open[data-v-7a09dc1e] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-7a09dc1e] .table-options[data-v-7a09dc1e] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-7a09dc1e] {\n position: relative; }\n\n@media (min-width: 992px) {\n .table[data-v-7a09dc1e] {\n table-layout: auto; }\n .table[data-v-7a09dc1e] tbody[data-v-7a09dc1e] td[data-v-7a09dc1e] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-7a09dc1e] tbody[data-v-7a09dc1e] td[data-v-7a09dc1e]::-webkit-scrollbar {\n display: none; } }\n";
|
|
12119
12119
|
n(css, {});
|
|
12120
12120
|
|
|
12121
12121
|
function normalizeComponent (
|
|
@@ -13487,6 +13487,25 @@ const _sfc_main = {
|
|
|
13487
13487
|
appendToast: true
|
|
13488
13488
|
});
|
|
13489
13489
|
},
|
|
13490
|
+
downloadBlobResponse(response, extension = null) {
|
|
13491
|
+
const url = window.URL.createObjectURL(new Blob([response.data]));
|
|
13492
|
+
const link = document.createElement("a");
|
|
13493
|
+
link.href = url;
|
|
13494
|
+
let contentdisposition = response.headers['content-disposition'];
|
|
13495
|
+
let filename = "Export";
|
|
13496
|
+
if (contentdisposition) {
|
|
13497
|
+
filename = contentdisposition.split('filename=')[1].split('.')[0];
|
|
13498
|
+
filename = filename.replace('_', '');
|
|
13499
|
+
filename = filename.replace('"', '');
|
|
13500
|
+
extension = contentdisposition.split('.')[1].split(';')[0];
|
|
13501
|
+
extension = extension.replace('_', '');
|
|
13502
|
+
extension = extension.replace('"', '');
|
|
13503
|
+
}
|
|
13504
|
+
console.debug("DOWNLOAD ", filename, extension);
|
|
13505
|
+
link.setAttribute("download", filename + '.' + extension);
|
|
13506
|
+
document.body.appendChild(link);
|
|
13507
|
+
link.click();
|
|
13508
|
+
},
|
|
13490
13509
|
onChangeFilter(event) {
|
|
13491
13510
|
this.forceRecomputeCounter++;
|
|
13492
13511
|
console.debug("Filters debug ", this.finalFilters, this.internalFilter, this.internalFilters, this.filter, this.filters);
|
|
@@ -14553,7 +14572,7 @@ var _sfc_render = function render() {
|
|
|
14553
14572
|
}) : _vm._e()], 2) : _vm._e()], 1);
|
|
14554
14573
|
};
|
|
14555
14574
|
var _sfc_staticRenderFns = [];
|
|
14556
|
-
var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "
|
|
14575
|
+
var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "7a09dc1e", null, null);
|
|
14557
14576
|
var component = __component__.exports;
|
|
14558
14577
|
|
|
14559
14578
|
// Import vue component
|