vue-laravel-crud 1.4.6 → 1.4.7

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-laravel-crud",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/clonixdev/vue-laravel-crud",
6
6
  "main": "dist/vue-laravel-crud.ssr.js",
@@ -23,7 +23,6 @@
23
23
  "axios": "^1.3.5",
24
24
  "bootstrap-vue": "^2.21.2",
25
25
  "moment": "^2.29.1",
26
- "vue-mc": "^0.6.0",
27
26
  "vuedraggable": "^2.24.3"
28
27
  },
29
28
  "devDependencies": {
@@ -2,7 +2,7 @@
2
2
  import draggable from "vuedraggable";
3
3
  import axios from "axios";
4
4
  import moment from "moment";
5
- import { Model, Collection } from 'vue-mc';
5
+ //import { Model, Collection } from 'vue-mc';
6
6
 
7
7
  export default /*#__PURE__*/ {
8
8
  name: "VueLaravelCrud",
@@ -262,13 +262,13 @@ export default /*#__PURE__*/ {
262
262
 
263
263
  mounted() {
264
264
 
265
- if (this.model instanceof Model) {
265
+ /*if (this.model instanceof Model) {
266
266
  this.useMc = true;
267
267
  this.collection = new Collection();
268
- } else {
268
+ } else {*/
269
269
  this.item = this.model;
270
270
  this.itemDefault = JSON.parse(JSON.stringify(this.item));
271
- }
271
+ //}
272
272
 
273
273
  this.internalFilters = [];
274
274
  this.setupFilters();
@@ -524,7 +524,7 @@ export default /*#__PURE__*/ {
524
524
  }, 1);
525
525
  },
526
526
 
527
- fetchItemsMc(page = 1) {
527
+ /*fetchItemsMc(page = 1) {
528
528
  this.loading = true;
529
529
  this.$emit("beforeFetch", {});
530
530
  this.collection.page(page).fetch().then((response) => {
@@ -535,14 +535,14 @@ export default /*#__PURE__*/ {
535
535
  this.toastError(error);
536
536
  this.loading = false;
537
537
  });
538
- },
538
+ },*/
539
539
  fetchItems(page = 1) {
540
540
  if (!this.ajax) {
541
541
  return;
542
542
  }
543
543
  this.$emit("beforeFetch", {});
544
544
  if (this.useMc) {
545
- return this.fetchItemsMc(page);
545
+ // return this.fetchItemsMc(page);
546
546
  }
547
547
  this.loading = true;
548
548
  axios