@monoui/vuejs 1.1.32 → 1.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monoui/vuejs",
3
- "version": "1.1.32",
3
+ "version": "1.1.34",
4
4
  "description": "This project will contain MonoFor UI Framework",
5
5
  "main": "./dist/main.js",
6
6
  "repository": "git@gitlab.com:monoui/vuejs.git",
@@ -495,9 +495,6 @@ export default {
495
495
  this.addPopStateListener();
496
496
  },
497
497
  async mounted() {
498
- console.log(
499
- "mui-table mounted filtes => " + JSON.stringify(this.filters)
500
- );
501
498
  var filterPrefix = this.getHistoryName("f-");
502
499
  var sortingPrefix = this.getHistoryName("s-");
503
500
  let url = new URL(window.location).toString();
@@ -723,7 +720,7 @@ export default {
723
720
  let filter = this.filters.find(x => x.Column === column);
724
721
 
725
722
  if (filter && (!value || value.length < limit)) {
726
- //this.filters.splice(this.filters.indexOf(filter), 1);
723
+ this.filters.splice(this.filters.indexOf(filter), 1);
727
724
  this.getValues();
728
725
  return;
729
726
  }
@@ -886,23 +883,27 @@ export default {
886
883
  }
887
884
  },
888
885
  loadHistoryFilters() {
889
- // const parameters = this.getHistoryParameters("f-");
890
- // const trimName = this.getHistoryName("f-");
891
- // const names = Object.keys(parameters);
892
- // this.filters.splice(0, this.filters.length);
893
- // for (const paramName of names) {
894
- // const value = parameters[paramName];
895
- // const column = paramName.replace(trimName, "");
896
- // if (value) {
897
- // this.filters.push({
898
- // Column: column,
899
- // Value: value
900
- // });
901
- // }
902
- // }
886
+ const parameters = this.getHistoryParameters("f-");
887
+ if (!parameters) return;
888
+
889
+ const trimName = this.getHistoryName("f-");
890
+ const names = Object.keys(parameters);
891
+ this.filters.splice(0, this.filters.length);
892
+ for (const paramName of names) {
893
+ const value = parameters[paramName];
894
+ const column = paramName.replace(trimName, "");
895
+ if (value) {
896
+ this.filters.push({
897
+ Column: column,
898
+ Value: value
899
+ });
900
+ }
901
+ }
903
902
  },
904
903
  loadHistorySorting() {
905
904
  const parameters = this.getHistoryParameters("s-");
905
+ if (!parameters) return;
906
+
906
907
  const trimName = this.getHistoryName("s-");
907
908
  const names = Object.keys(parameters);
908
909
  this.sorting.splice(0, this.sorting.length);
@@ -5,6 +5,7 @@ export function install(Vue) {
5
5
  install.installed = true;
6
6
 
7
7
  Vue.directive("no-autocomplete", {
8
+ // eslint-disable-next-line no-unused-vars
8
9
  bind(el, { value }) {
9
10
  const isDisabled = el.disabled;
10
11
  el.disabled = true;
@@ -26,6 +27,7 @@ let globalVue = null;
26
27
  if (typeof window !== "undefined") {
27
28
  globalVue = window.Vue;
28
29
  } else if (typeof global !== "undefined") {
30
+ // eslint-disable-next-line no-undef
29
31
  globalVue = global.Vue;
30
32
  }
31
33
  if (globalVue) {