vue-laravel-crud 1.4.16 → 1.4.17

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.
@@ -17017,7 +17017,7 @@ var moment = momentExports;
17017
17017
 
17018
17018
  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}}
17019
17019
 
17020
- var css = "tr td[data-v-09914f57]:last-child,\ntr td[data-v-09914f57]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-09914f57] {\n display: flex;\n justify-content: center; }\n\n.crud-header[data-v-09914f57] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-09914f57] .crud-title[data-v-09914f57] {\n margin: 0; }\n .crud-header[data-v-09914f57] .crud-search[data-v-09914f57] {\n max-width: 15rem; }\n .crud-header[data-v-09914f57] .crud-search[data-v-09914f57] .btn[data-v-09914f57] {\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-09914f57] .crud-search[data-v-09914f57] .btn[data-v-09914f57].open[data-v-09914f57] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-09914f57] .table-options[data-v-09914f57] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-09914f57] {\n position: relative;\n top: -15px; }\n\n@media (min-width: 992px) {\n .table[data-v-09914f57] {\n table-layout: auto; }\n .table[data-v-09914f57] tbody[data-v-09914f57] td[data-v-09914f57] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-09914f57] tbody[data-v-09914f57] td[data-v-09914f57]::-webkit-scrollbar {\n display: none; } }\n";
17020
+ var css = "tr td[data-v-818372ed]:last-child,\ntr td[data-v-818372ed]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-818372ed] {\n display: flex;\n justify-content: center; }\n\n.crud-header[data-v-818372ed] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-818372ed] .crud-title[data-v-818372ed] {\n margin: 0; }\n .crud-header[data-v-818372ed] .crud-search[data-v-818372ed] {\n max-width: 15rem; }\n .crud-header[data-v-818372ed] .crud-search[data-v-818372ed] .btn[data-v-818372ed] {\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-818372ed] .crud-search[data-v-818372ed] .btn[data-v-818372ed].open[data-v-818372ed] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-818372ed] .table-options[data-v-818372ed] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-818372ed] {\n position: relative;\n top: -15px; }\n\n@media (min-width: 992px) {\n .table[data-v-818372ed] {\n table-layout: auto; }\n .table[data-v-818372ed] tbody[data-v-818372ed] td[data-v-818372ed] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-818372ed] tbody[data-v-818372ed] td[data-v-818372ed]::-webkit-scrollbar {\n display: none; } }\n";
17021
17021
  n(css, {});
17022
17022
 
17023
17023
  function normalizeComponent (
@@ -18712,7 +18712,7 @@ var _sfc_render = function render() {
18712
18712
  on: {
18713
18713
  "submit": _vm.saveItem
18714
18714
  }
18715
- }, [_vm._t("form", function () {
18715
+ }, [_vm.item ? _vm._t("form", function () {
18716
18716
  return [_c('b-form-group', {
18717
18717
  attrs: {
18718
18718
  "label": "Nombre:",
@@ -18734,7 +18734,7 @@ var _sfc_render = function render() {
18734
18734
  })], 1)];
18735
18735
  }, {
18736
18736
  "item": _vm.item
18737
- }), _c('b-button', {
18737
+ }) : _vm._e(), _c('b-button', {
18738
18738
  attrs: {
18739
18739
  "block": "",
18740
18740
  "type": "submit",
@@ -18745,29 +18745,30 @@ var _sfc_render = function render() {
18745
18745
  attrs: {
18746
18746
  "small": ""
18747
18747
  }
18748
- }) : _vm._e(), _vm._v(_vm._s(_vm.messageSave) + " ")], 1)], 2)] : _vm._e(), !_vm.validate ? [_vm._t("form", function () {
18749
- return [_c('b-form-group', {
18750
- attrs: {
18751
- "label": "Nombre:",
18752
- "description": "Nombre "
18753
- }
18754
- }, [_c('b-form-input', {
18755
- attrs: {
18756
- "type": "text",
18757
- "required": "",
18758
- "placeholder": "Nombre"
18759
- },
18760
- model: {
18761
- value: _vm.item.title,
18762
- callback: function ($$v) {
18763
- _vm.$set(_vm.item, "title", $$v);
18748
+ }) : _vm._e(), _vm._v(_vm._s(_vm.messageSave) + " ")], 1)], 2)] : _vm._e(), !_vm.validate ? [_vm.item ? _vm._t("form", function () {
18749
+ return _vm._l(_vm.item, function (value, key) {
18750
+ return _c('b-form-group', {
18751
+ key: key,
18752
+ attrs: {
18753
+ "label": key
18754
+ }
18755
+ }, [_c('b-form-input', {
18756
+ attrs: {
18757
+ "type": "text",
18758
+ "required": ""
18764
18759
  },
18765
- expression: "item.title"
18766
- }
18767
- })], 1)];
18760
+ model: {
18761
+ value: _vm.item[key],
18762
+ callback: function ($$v) {
18763
+ _vm.$set(_vm.item, key, $$v);
18764
+ },
18765
+ expression: "item[key]"
18766
+ }
18767
+ })], 1);
18768
+ });
18768
18769
  }, {
18769
18770
  "item": _vm.item
18770
- }), _c('b-button', {
18771
+ }) : _vm._e(), _c('b-button', {
18771
18772
  attrs: {
18772
18773
  "block": "",
18773
18774
  "type": "submit",
@@ -18791,16 +18792,27 @@ var _sfc_render = function render() {
18791
18792
  "title": _vm.title,
18792
18793
  "no-close-on-backdrop": ""
18793
18794
  }
18794
- }, [_vm._t("show", function () {
18795
- return [_c('p', {
18796
- staticClass: "my-4"
18797
- }, [_vm._v("Show")])];
18795
+ }, [_vm.item ? _vm._t("show", function () {
18796
+ return [_c('b-list-group', _vm._l(_vm.item, function (value, key) {
18797
+ return _c('b-list-group-item', {
18798
+ key: key
18799
+ }, [_c('b-row', [_c('b-col', {
18800
+ staticClass: "font-weight-bold",
18801
+ attrs: {
18802
+ "cols": "4"
18803
+ }
18804
+ }, [_vm._v(_vm._s(key))]), _c('b-col', {
18805
+ attrs: {
18806
+ "cols": "8"
18807
+ }
18808
+ }, [_vm._v(_vm._s(JSON.stringify(value)))])], 1)], 1);
18809
+ }), 1)];
18798
18810
  }, {
18799
18811
  "item": _vm.item
18800
- })], 2)], 1);
18812
+ }) : _vm._e()], 2)], 1);
18801
18813
  };
18802
18814
  var _sfc_staticRenderFns = [];
18803
- var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "09914f57", null, null);
18815
+ var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "818372ed", null, null);
18804
18816
  var component = __component__.exports;
18805
18817
 
18806
18818
  // Import vue component