vue-laravel-crud 1.4.33 → 1.4.34
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.
|
@@ -17035,7 +17035,7 @@ var InfiniteLoading = /*@__PURE__*/getDefaultExportFromCjs(vueInfiniteLoadingExp
|
|
|
17035
17035
|
|
|
17036
17036
|
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}}
|
|
17037
17037
|
|
|
17038
|
-
var css = "tr td[data-v-
|
|
17038
|
+
var css = "tr td[data-v-b157fcc6]:last-child,\ntr td[data-v-b157fcc6]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-b157fcc6] {\n display: flex;\n justify-content: center; }\n\n.crud-header[data-v-b157fcc6] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-b157fcc6] .crud-title[data-v-b157fcc6] {\n margin: 0; }\n .crud-header[data-v-b157fcc6] .crud-search[data-v-b157fcc6] {\n max-width: 15rem; }\n .crud-header[data-v-b157fcc6] .crud-search[data-v-b157fcc6] .btn[data-v-b157fcc6] {\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-b157fcc6] .crud-search[data-v-b157fcc6] .btn[data-v-b157fcc6].open[data-v-b157fcc6] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-b157fcc6] .table-options[data-v-b157fcc6] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-b157fcc6] {\n position: relative;\n top: -15px; }\n\n@media (min-width: 992px) {\n .table[data-v-b157fcc6] {\n table-layout: auto; }\n .table[data-v-b157fcc6] tbody[data-v-b157fcc6] td[data-v-b157fcc6] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-b157fcc6] tbody[data-v-b157fcc6] td[data-v-b157fcc6]::-webkit-scrollbar {\n display: none; } }\n";
|
|
17039
17039
|
n(css, {});
|
|
17040
17040
|
|
|
17041
17041
|
function normalizeComponent (
|
|
@@ -17460,11 +17460,15 @@ const _sfc_main = {
|
|
|
17460
17460
|
}
|
|
17461
17461
|
},
|
|
17462
17462
|
methods: {
|
|
17463
|
-
|
|
17463
|
+
infiniteHandler($state) {
|
|
17464
17464
|
const hasNextPage = this.pagination.current_page * this.pagination.per_page < this.pagination.total;
|
|
17465
17465
|
if (hasNextPage) {
|
|
17466
17466
|
const page = this.pagination.current_page + 1;
|
|
17467
|
-
this.fetchItems(page, true)
|
|
17467
|
+
this.fetchItems(page, true).then(() => {
|
|
17468
|
+
$state.loaded();
|
|
17469
|
+
});
|
|
17470
|
+
} else {
|
|
17471
|
+
$state.complete();
|
|
17468
17472
|
}
|
|
17469
17473
|
},
|
|
17470
17474
|
onDraggableAdded(event) {
|
|
@@ -18650,12 +18654,9 @@ var _sfc_render = function render() {
|
|
|
18650
18654
|
"item": item
|
|
18651
18655
|
})], 2);
|
|
18652
18656
|
}), _vm.infiniteScroll ? _c('infinite-loading', {
|
|
18653
|
-
|
|
18654
|
-
|
|
18655
|
-
|
|
18656
|
-
value: _vm.loadMore,
|
|
18657
|
-
expression: "loadMore"
|
|
18658
|
-
}]
|
|
18657
|
+
on: {
|
|
18658
|
+
"infinite": _vm.infiniteHandler
|
|
18659
|
+
}
|
|
18659
18660
|
}) : _vm._e()], 2)], 1), _vm.items.length == 0 ? _c('p', {
|
|
18660
18661
|
staticClass: "p-3"
|
|
18661
18662
|
}, [_vm._v(" " + _vm._s(_vm.messageEmptyResults) + " ")]) : _vm._e()]) : _vm._e(), _vm.displayMode == _vm.displayModes.MODE_CARDS ? _c('div', [_vm.items.length == 0 ? _c('p', {
|
|
@@ -18777,12 +18778,9 @@ var _sfc_render = function render() {
|
|
|
18777
18778
|
"item": item
|
|
18778
18779
|
})], 2)], 1);
|
|
18779
18780
|
}), _vm.infiniteScroll ? _c('infinite-loading', {
|
|
18780
|
-
|
|
18781
|
-
|
|
18782
|
-
|
|
18783
|
-
value: _vm.loadMore,
|
|
18784
|
-
expression: "loadMore"
|
|
18785
|
-
}]
|
|
18781
|
+
on: {
|
|
18782
|
+
"infinite": _vm.infiniteHandler
|
|
18783
|
+
}
|
|
18786
18784
|
}) : _vm._e()], 2)], 1) : _vm._e(), _vm.displayMode == _vm.displayModes.MODE_CUSTOM ? _c('div', [_c('div', {
|
|
18787
18785
|
class: _vm.listContainerClass
|
|
18788
18786
|
}, [_vm.items.length == 0 ? _c('p', {
|
|
@@ -18930,7 +18928,7 @@ var _sfc_render = function render() {
|
|
|
18930
18928
|
}) : _vm._e()], 2)], 1);
|
|
18931
18929
|
};
|
|
18932
18930
|
var _sfc_staticRenderFns = [];
|
|
18933
|
-
var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "
|
|
18931
|
+
var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "b157fcc6", null, null);
|
|
18934
18932
|
var component = __component__.exports;
|
|
18935
18933
|
|
|
18936
18934
|
// Import vue component
|