@monoui/vuejs 1.1.32 → 1.1.33

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.33",
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,37 +883,41 @@ 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
+ const trimName = this.getHistoryName("f-");
888
+ const names = Object.keys(parameters);
889
+ if (parameters && parameters.length > 0) {
890
+ this.filters.splice(0, this.filters.length);
891
+ for (const paramName of names) {
892
+ const value = parameters[paramName];
893
+ const column = paramName.replace(trimName, "");
894
+ if (value) {
895
+ this.filters.push({
896
+ Column: column,
897
+ Value: value
898
+ });
899
+ }
900
+ }
901
+ }
903
902
  },
904
903
  loadHistorySorting() {
905
904
  const parameters = this.getHistoryParameters("s-");
906
905
  const trimName = this.getHistoryName("s-");
907
906
  const names = Object.keys(parameters);
908
- this.sorting.splice(0, this.sorting.length);
909
- for (const paramName of names) {
910
- var paramValue = parameters[paramName];
911
- let value = undefined;
912
- if (paramValue && paramValue === "1") value = true;
913
- else if (paramValue && paramValue === "0") value = false;
914
- const column = paramName.replace(trimName, "");
907
+ if (parameters && parameters.length > 0) {
908
+ this.sorting.splice(0, this.sorting.length);
909
+ for (const paramName of names) {
910
+ var paramValue = parameters[paramName];
911
+ let value = undefined;
912
+ if (paramValue && paramValue === "1") value = true;
913
+ else if (paramValue && paramValue === "0") value = false;
914
+ const column = paramName.replace(trimName, "");
915
915
 
916
- this.sorting.push({
917
- Column: column,
918
- Asc: value
919
- });
916
+ this.sorting.push({
917
+ Column: column,
918
+ Asc: value
919
+ });
920
+ }
920
921
  }
921
922
  },
922
923
  replaceHistory(state, storage = this.historyStorage) {
@@ -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) {