vue-laravel-crud 1.4.37 → 1.4.39

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-80e5e66e]:last-child,\ntr td[data-v-80e5e66e]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-80e5e66e] {\n display: flex;\n justify-content: center; }\n\n.crud-header[data-v-80e5e66e] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-80e5e66e] .crud-title[data-v-80e5e66e] {\n margin: 0; }\n .crud-header[data-v-80e5e66e] .crud-search[data-v-80e5e66e] {\n max-width: 15rem; }\n .crud-header[data-v-80e5e66e] .crud-search[data-v-80e5e66e] .btn[data-v-80e5e66e] {\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-80e5e66e] .crud-search[data-v-80e5e66e] .btn[data-v-80e5e66e].open[data-v-80e5e66e] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-80e5e66e] .table-options[data-v-80e5e66e] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-80e5e66e] {\n position: relative;\n top: -15px; }\n\n@media (min-width: 992px) {\n .table[data-v-80e5e66e] {\n table-layout: auto; }\n .table[data-v-80e5e66e] tbody[data-v-80e5e66e] td[data-v-80e5e66e] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-80e5e66e] tbody[data-v-80e5e66e] td[data-v-80e5e66e]::-webkit-scrollbar {\n display: none; } }\n";
17038
+ var css = "tr td[data-v-6bec1b4d]:last-child,\ntr td[data-v-6bec1b4d]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-6bec1b4d] {\n display: flex;\n justify-content: center; }\n\n.crud-header[data-v-6bec1b4d] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-6bec1b4d] .crud-title[data-v-6bec1b4d] {\n margin: 0; }\n .crud-header[data-v-6bec1b4d] .crud-search[data-v-6bec1b4d] {\n max-width: 15rem; }\n .crud-header[data-v-6bec1b4d] .crud-search[data-v-6bec1b4d] .btn[data-v-6bec1b4d] {\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-6bec1b4d] .crud-search[data-v-6bec1b4d] .btn[data-v-6bec1b4d].open[data-v-6bec1b4d] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-6bec1b4d] .table-options[data-v-6bec1b4d] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-6bec1b4d] {\n position: relative;\n top: -15px; }\n\n@media (min-width: 992px) {\n .table[data-v-6bec1b4d] {\n table-layout: auto; }\n .table[data-v-6bec1b4d] tbody[data-v-6bec1b4d] td[data-v-6bec1b4d] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-6bec1b4d] tbody[data-v-6bec1b4d] td[data-v-6bec1b4d]::-webkit-scrollbar {\n display: none; } }\n";
17039
17039
  n(css, {});
17040
17040
 
17041
17041
  function normalizeComponent (
@@ -17357,6 +17357,14 @@ const _sfc_main = {
17357
17357
  type: String,
17358
17358
  default: "No se han encontrado resultados"
17359
17359
  },
17360
+ messageNoMore: {
17361
+ type: String,
17362
+ default: "No hay mas elementos para mostrar."
17363
+ },
17364
+ messageLoading: {
17365
+ type: String,
17366
+ default: "Cargando..."
17367
+ },
17360
17368
  messageSave: {
17361
17369
  type: String,
17362
17370
  default: "Guardar"
@@ -18328,12 +18336,7 @@ var _sfc_render = function render() {
18328
18336
  "createItem": _vm.createItem,
18329
18337
  "toggleDisplayMode": _vm.toggleDisplayMode,
18330
18338
  "loading": _vm.loading
18331
- })], 2)], 1)], 1) : _vm._e(), _c('b-overlay', {
18332
- attrs: {
18333
- "show": _vm.loading,
18334
- "rounded": "sm"
18335
- }
18336
- }, [_vm.displayMode == _vm.displayModes.MODE_TABLE ? _c('div', {
18339
+ })], 2)], 1)], 1) : _vm._e(), _vm.displayMode == _vm.displayModes.MODE_TABLE ? _c('div', {
18337
18340
  class: ['table-responsive', _vm.tableContainerClass]
18338
18341
  }, [_c('table', {
18339
18342
  class: ['table table-hover table-striped w-100', _vm.tableClass]
@@ -18562,7 +18565,7 @@ var _sfc_render = function render() {
18562
18565
  },
18563
18566
  expression: "items"
18564
18567
  }
18565
- }, [_vm._l(_vm.itemsList, function (item, index) {
18568
+ }, _vm._l(_vm.itemsList, function (item, index) {
18566
18569
  return _c('tr', {
18567
18570
  key: index,
18568
18571
  staticClass: "item",
@@ -18653,13 +18656,34 @@ var _sfc_render = function render() {
18653
18656
  }, {
18654
18657
  "item": item
18655
18658
  })], 2);
18656
- }), _vm.infiniteScroll ? _c('infinite-loading', {
18659
+ }), 0), _vm.infiniteScroll ? _c('infinite-loading', {
18657
18660
  on: {
18658
18661
  "infinite": _vm.infiniteHandler
18659
18662
  }
18660
- }) : _vm._e()], 2)], 1), _vm.items.length == 0 ? _c('p', {
18663
+ }, [_c('div', {
18664
+ attrs: {
18665
+ "slot": "spinner"
18666
+ },
18667
+ slot: "spinner"
18668
+ }, [_c('div', {
18669
+ staticClass: "text-center"
18670
+ }, [_vm._v(_vm._s(_vm.messageLoading))])]), _c('div', {
18671
+ attrs: {
18672
+ "slot": "no-more"
18673
+ },
18674
+ slot: "no-more"
18675
+ }, [_c('div', {
18676
+ staticClass: "text-center"
18677
+ }, [_vm._v(_vm._s(_vm.messageNoMore))])]), _c('div', {
18678
+ attrs: {
18679
+ "slot": "no-results"
18680
+ },
18681
+ slot: "no-results"
18682
+ }, [_c('div', {
18683
+ staticClass: "text-center"
18684
+ }, [_vm._v(_vm._s(_vm.messageEmptyResults))])])]) : _vm._e()], 1), !_vm.loading && _vm.items.length == 0 && !_vm.infiniteScroll ? _c('p', {
18661
18685
  staticClass: "p-3"
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', {
18686
+ }, [_vm._v(" " + _vm._s(_vm.messageEmptyResults) + " ")]) : _vm._e()]) : _vm._e(), _vm.displayMode == _vm.displayModes.MODE_CARDS ? _c('div', [!_vm.loading && _vm.items.length == 0 && !_vm.infiniteScroll ? _c('p', {
18663
18687
  staticClass: "p-3"
18664
18688
  }, [_vm._v(" " + _vm._s(_vm.messageEmptyResults) + " ")]) : _vm._e(), _c('draggable', {
18665
18689
  staticClass: "row",
@@ -18692,7 +18716,7 @@ var _sfc_render = function render() {
18692
18716
  },
18693
18717
  expression: "items"
18694
18718
  }
18695
- }, [_vm._l(_vm.itemsList, function (item, index) {
18719
+ }, _vm._l(_vm.itemsList, function (item, index) {
18696
18720
  return _c('b-col', {
18697
18721
  key: index,
18698
18722
  staticClass: "item",
@@ -18777,11 +18801,32 @@ var _sfc_render = function render() {
18777
18801
  }, {
18778
18802
  "item": item
18779
18803
  })], 2)], 1);
18780
- }), _vm.infiniteScroll ? _c('infinite-loading', {
18804
+ }), 1), _vm.infiniteScroll ? _c('infinite-loading', {
18781
18805
  on: {
18782
18806
  "infinite": _vm.infiniteHandler
18783
18807
  }
18784
- }) : _vm._e()], 2)], 1) : _vm._e(), _vm.displayMode == _vm.displayModes.MODE_CUSTOM ? _c('div', [_c('div', {
18808
+ }, [_c('div', {
18809
+ attrs: {
18810
+ "slot": "spinner"
18811
+ },
18812
+ slot: "spinner"
18813
+ }, [_c('div', {
18814
+ staticClass: "text-center"
18815
+ }, [_vm._v(_vm._s(_vm.messageLoading))])]), _c('div', {
18816
+ attrs: {
18817
+ "slot": "no-more"
18818
+ },
18819
+ slot: "no-more"
18820
+ }, [_c('div', {
18821
+ staticClass: "text-center"
18822
+ }, [_vm._v(_vm._s(_vm.messageNoMore))])]), _c('div', {
18823
+ attrs: {
18824
+ "slot": "no-results"
18825
+ },
18826
+ slot: "no-results"
18827
+ }, [_c('div', {
18828
+ staticClass: "text-center"
18829
+ }, [_vm._v(_vm._s(_vm.messageEmptyResults))])])]) : _vm._e()], 1) : _vm._e(), _vm.displayMode == _vm.displayModes.MODE_CUSTOM ? _c('div', [_c('div', {
18785
18830
  class: _vm.listContainerClass
18786
18831
  }, [_vm.items.length == 0 ? _c('p', {
18787
18832
  staticClass: "p-3"
@@ -18792,7 +18837,12 @@ var _sfc_render = function render() {
18792
18837
  }, [_vm._t("card", null, {
18793
18838
  "item": item
18794
18839
  })], 2);
18795
- })], 2)]) : _vm._e()]), !_vm.infiniteScroll ? _c('div', {
18840
+ })], 2)]) : _vm._e(), _c('b-overlay', {
18841
+ attrs: {
18842
+ "show": _vm.loading,
18843
+ "rounded": "sm"
18844
+ }
18845
+ }), !_vm.infiniteScroll ? _c('div', {
18796
18846
  staticClass: "crud-paginator"
18797
18847
  }, [_vm.showPaginator ? _c('b-pagination', {
18798
18848
  attrs: {
@@ -18928,7 +18978,7 @@ var _sfc_render = function render() {
18928
18978
  }) : _vm._e()], 2)], 1);
18929
18979
  };
18930
18980
  var _sfc_staticRenderFns = [];
18931
- var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "80e5e66e", null, null);
18981
+ var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "6bec1b4d", null, null);
18932
18982
  var component = __component__.exports;
18933
18983
 
18934
18984
  // Import vue component