@monoui/vuejs 1.1.18 → 1.1.19

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.18",
3
+ "version": "1.1.19",
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",
@@ -828,13 +828,15 @@ export default {
828
828
 
829
829
  if (filter && !value) {
830
830
  this.filters.splice(this.filters.indexOf(filter), 1);
831
- } else if (filter) {
832
- filter.Value = value;
833
- } else {
834
- this.filters.push({
835
- Column: column,
836
- Value: value
837
- });
831
+ } else if (value) {
832
+ if (filter) {
833
+ filter.Value = value;
834
+ } else {
835
+ this.filters.push({
836
+ Column: column,
837
+ Value: value
838
+ });
839
+ }
838
840
  }
839
841
  }
840
842
  },
@@ -843,15 +845,20 @@ export default {
843
845
  const trimName = this.getHistoryName("s-");
844
846
  const names = Object.keys(parameters);
845
847
  for (const paramName of names) {
846
- const value = parameters[paramName] ? true : false;
848
+ var paramValue = parameters[paramName];
849
+ let value = undefined;
850
+ if (paramValue && paramValue === "1") value = true;
851
+ else if (paramValue && paramValue === "0") value = false;
847
852
  const column = paramName.replace(trimName, "");
848
853
 
849
854
  let sort = this.sorting.find(x => x.Column === column);
850
855
 
851
- if (sort) {
852
- sort.Value = value;
853
- } else {
854
- this.sorting.push({ Column: column, Asc: value });
856
+ if (value !== undefined) {
857
+ if (sort) {
858
+ sort.Value = value;
859
+ } else {
860
+ this.sorting.push({ Column: column, Asc: value });
861
+ }
855
862
  }
856
863
  }
857
864
  },