@monoui/vuejs 1.1.31 → 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.31",
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",
@@ -886,16 +886,17 @@ export default {
886
886
  const parameters = this.getHistoryParameters("f-");
887
887
  const trimName = this.getHistoryName("f-");
888
888
  const names = Object.keys(parameters);
889
- this.filters.splice(0, this.filters.length);
890
- for (const paramName of names) {
891
- const value = parameters[paramName];
892
- const column = paramName.replace(trimName, "");
893
-
894
- if (value) {
895
- this.filters.push({
896
- Column: column,
897
- Value: value
898
- });
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
+ }
899
900
  }
900
901
  }
901
902
  },
@@ -903,18 +904,20 @@ export default {
903
904
  const parameters = this.getHistoryParameters("s-");
904
905
  const trimName = this.getHistoryName("s-");
905
906
  const names = Object.keys(parameters);
906
- this.sorting.splice(0, this.sorting.length);
907
- for (const paramName of names) {
908
- var paramValue = parameters[paramName];
909
- let value = undefined;
910
- if (paramValue && paramValue === "1") value = true;
911
- else if (paramValue && paramValue === "0") value = false;
912
- 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, "");
913
915
 
914
- this.sorting.push({
915
- Column: column,
916
- Asc: value
917
- });
916
+ this.sorting.push({
917
+ Column: column,
918
+ Asc: value
919
+ });
920
+ }
918
921
  }
919
922
  },
920
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) {