vue-laravel-crud 1.6.5 → 1.6.6

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-a4bec9a9]:last-child,\ntr td[data-v-a4bec9a9]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-a4bec9a9] {\n display: flex;\n align-items: center;\n width: 100%;\n justify-content: center;\n margin-top: 1rem; }\n\n.crud-header[data-v-a4bec9a9] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-a4bec9a9] .crud-title[data-v-a4bec9a9] {\n margin: 0; }\n .crud-header[data-v-a4bec9a9] .crud-search[data-v-a4bec9a9] {\n max-width: 15rem; }\n .crud-header[data-v-a4bec9a9] .crud-search[data-v-a4bec9a9] .btn[data-v-a4bec9a9] {\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-a4bec9a9] .crud-search[data-v-a4bec9a9] .btn[data-v-a4bec9a9].open[data-v-a4bec9a9] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-a4bec9a9] .table-options[data-v-a4bec9a9] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-a4bec9a9] {\n position: relative;\n top: -15px; }\n\n@media (min-width: 992px) {\n .table[data-v-a4bec9a9] {\n table-layout: auto; }\n .table[data-v-a4bec9a9] tbody[data-v-a4bec9a9] td[data-v-a4bec9a9] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-a4bec9a9] tbody[data-v-a4bec9a9] td[data-v-a4bec9a9]::-webkit-scrollbar {\n display: none; } }\n";
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-6dad4180]:last-child,\ntr td[data-v-6dad4180]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-6dad4180] {\n display: flex;\n align-items: center;\n width: 100%;\n justify-content: center;\n margin-top: 1rem; }\n\n.crud-header[data-v-6dad4180] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-6dad4180] .crud-title[data-v-6dad4180] {\n margin: 0; }\n .crud-header[data-v-6dad4180] .crud-search[data-v-6dad4180] {\n max-width: 15rem; }\n .crud-header[data-v-6dad4180] .crud-search[data-v-6dad4180] .btn[data-v-6dad4180] {\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-6dad4180] .crud-search[data-v-6dad4180] .btn[data-v-6dad4180].open[data-v-6dad4180] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-6dad4180] .table-options[data-v-6dad4180] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-6dad4180] {\n position: relative;\n top: -15px; }\n\n@media (min-width: 992px) {\n .table[data-v-6dad4180] {\n table-layout: auto; }\n .table[data-v-6dad4180] tbody[data-v-6dad4180] td[data-v-6dad4180] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-6dad4180] tbody[data-v-6dad4180] td[data-v-6dad4180]::-webkit-scrollbar {\n display: none; } }\n";
12536
12536
  n(css, {});function normalizeComponent (
12537
12537
  scriptExports,
12538
12538
  render,
@@ -12665,7 +12665,8 @@ n(css, {});function normalizeComponent (
12665
12665
  optionsLoaded: false,
12666
12666
  isMobile: false,
12667
12667
  refreshing: false,
12668
- fetchError: false
12668
+ fetchError: false,
12669
+ principalSort: false
12669
12670
  };
12670
12671
  },
12671
12672
  watch: {
@@ -14177,7 +14178,7 @@ var _sfc_render = function render() {
14177
14178
  "loading": _vm.loading
14178
14179
  }), _vm.showPrincipalSortBtn ? _c('b-button', {
14179
14180
  attrs: {
14180
- "variant": "success",
14181
+ "variant": "info",
14181
14182
  "disabled": _vm.loading
14182
14183
  },
14183
14184
  on: {
@@ -14196,12 +14197,18 @@ var _sfc_render = function render() {
14196
14197
  }
14197
14198
  }
14198
14199
  }, [_c('b-icon-plus'), _vm._v(_vm._s(_vm.messageNew) + " ")], 1) : _vm._e(), _vm.enableFilters ? _c('b-button', {
14200
+ attrs: {
14201
+ "variant": "info"
14202
+ },
14199
14203
  on: {
14200
14204
  "click": function click($event) {
14201
14205
  return _vm.toggleFilters();
14202
14206
  }
14203
14207
  }
14204
14208
  }, [_vm._v("Filtros")]) : _vm._e(), _c('b-button', {
14209
+ attrs: {
14210
+ "variant": "info"
14211
+ },
14205
14212
  on: {
14206
14213
  "click": function click($event) {
14207
14214
  return _vm.refresh();
@@ -14890,7 +14897,7 @@ var _sfc_render = function render() {
14890
14897
  }) : _vm._e()], 2)], 1);
14891
14898
  };
14892
14899
  var _sfc_staticRenderFns = [];
14893
- var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "a4bec9a9", null, null);
14900
+ var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "6dad4180", null, null);
14894
14901
  var component$1 = __component__.exports;// Import vue component
14895
14902
 
14896
14903
  // Default export is installable instance of component.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-laravel-crud",
3
- "version": "1.6.5",
3
+ "version": "1.6.6",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/clonixdev/vue-laravel-crud",
6
6
  "main": "dist/vue-laravel-crud.ssr.js",
@@ -50,6 +50,7 @@ export default /*#__PURE__*/ {
50
50
  isMobile: false,
51
51
  refreshing: false,
52
52
  fetchError: false,
53
+ principalSort: false,
53
54
 
54
55
  };
55
56
  },
@@ -456,10 +457,10 @@ export default /*#__PURE__*/ {
456
457
  sortFilter(){
457
458
  if(this.showPrincipalSortBtn){
458
459
  if(this.principalSort){
459
- return [[this.principalSortColumn,'SORTASC','']];
460
- }else{
461
- return [[this.principalSortColumn,'SORTDESC','']];
462
- }
460
+ return [[this.principalSortColumn,'SORTASC','']];
461
+ }else{
462
+ return [[this.principalSortColumn,'SORTDESC','']];
463
+ }
463
464
  }else{
464
465
  return [];
465
466
  }
@@ -1384,15 +1385,16 @@ export default /*#__PURE__*/ {
1384
1385
  <slot name="tableActions" v-bind:createItem="createItem" v-bind:toggleDisplayMode="toggleDisplayMode"
1385
1386
  v-bind:loading="loading">
1386
1387
  <slot name="tableActionsPrepend" v-bind:loading="loading"> </slot>
1387
- <b-button variant="success" v-if="showPrincipalSortBtn" @click="togglePrincipalSort()" :disabled="loading">
1388
+ <b-button variant="info" v-if="showPrincipalSortBtn" @click="togglePrincipalSort()" :disabled="loading">
1388
1389
  <b-icon-sort-numeric-down v-if="principalSort"></b-icon-sort-numeric-down>
1389
1390
  <b-icon-sort-numeric-up v-else></b-icon-sort-numeric-up>
1390
1391
  </b-button>
1392
+
1391
1393
  <b-button variant="success" v-if="showCreateBtn" @click="createItem()" :disabled="loading">
1392
1394
  <b-icon-plus></b-icon-plus>{{ messageNew }}
1393
1395
  </b-button>
1394
- <b-button v-if="enableFilters" @click="toggleFilters()">Filtros</b-button>
1395
- <b-button @click="refresh()"><b-icon-arrow-clockwise></b-icon-arrow-clockwise></b-button>
1396
+ <b-button variant="info" v-if="enableFilters" @click="toggleFilters()">Filtros</b-button>
1397
+ <b-button variant="info" @click="refresh()"><b-icon-arrow-clockwise></b-icon-arrow-clockwise></b-button>
1396
1398
  <b-button variant="info" @click="toggleDisplayMode()" :disabled="loading" v-if="displayModeToggler">
1397
1399
  <b-icon-card-list v-if="displayMode == displayModes.MODE_TABLE"></b-icon-card-list>
1398
1400
  <b-icon-table v-if="displayMode == displayModes.MODE_CARDS"></b-icon-table>