@monoui/vuejs 1.1.35 → 1.1.37

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.35",
3
+ "version": "1.1.37",
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",
@@ -1,5 +1,9 @@
1
1
  <template>
2
- <font-awesome-icon fw :icon="iconList" :class="iconClass" />
2
+ <font-awesome-icon
3
+ :fixed-width="fixedWidth"
4
+ :icon="iconList"
5
+ :class="iconClass"
6
+ />
3
7
  </template>
4
8
 
5
9
  <script>
@@ -30,6 +34,10 @@ export default {
30
34
  iconClass: {
31
35
  type: String,
32
36
  default: ""
37
+ },
38
+ fixedWidth: {
39
+ type: Boolean,
40
+ default: false
33
41
  }
34
42
  },
35
43
  computed: {
@@ -495,11 +495,7 @@ export default {
495
495
  this.addPopStateListener();
496
496
  },
497
497
  async mounted() {
498
- const filterParams = this.getHistoryParameters("f-");
499
- const sortingParams = this.getHistoryParameters("s-");
500
- if (filterParams || sortingParams) {
501
- this.loadHistory(filterParams, sortingParams);
502
- }
498
+ this.loadHistory();
503
499
  if (this.autoLoad) {
504
500
  await this.getValues();
505
501
  }
@@ -516,7 +512,7 @@ export default {
516
512
  this.loadHistory();
517
513
  this.getValues(false);
518
514
  },
519
- loadHistory(filterParams, sortingParams) {
515
+ loadHistory() {
520
516
  this.settings.currentPage = this.getHistoryParameter("page", 1);
521
517
  this.settings.itemPerPage = this.getHistoryParameter(
522
518
  "limit",
@@ -528,8 +524,8 @@ export default {
528
524
  ""
529
525
  );
530
526
  }
531
- this.loadHistoryFilters(filterParams);
532
- this.loadHistorySorting(sortingParams);
527
+ this.loadHistoryFilters();
528
+ this.loadHistorySorting();
533
529
  },
534
530
  sortableIcon(column) {
535
531
  const currentSort = this.sorting.find(x => x.Column === column);
@@ -727,10 +723,12 @@ export default {
727
723
  if (filter) {
728
724
  filter.Value = value;
729
725
  } else {
730
- this.filters.push({
731
- Column: column,
732
- Value: value
733
- });
726
+ if (value) {
727
+ this.filters.push({
728
+ Column: column,
729
+ Value: value
730
+ });
731
+ }
734
732
  }
735
733
  this.getValues();
736
734
  },
@@ -881,12 +879,14 @@ export default {
881
879
  console.error(error);
882
880
  }
883
881
  },
884
- loadHistoryFilters(filterParams) {
885
- if (!filterParams) filterParams = this.getHistoryParameters("f-");
882
+ loadHistoryFilters() {
883
+ const filterParams = this.getHistoryParameters("f-");
886
884
  if (!filterParams) return;
887
885
 
888
886
  const trimName = this.getHistoryName("f-");
889
887
  const names = Object.keys(filterParams);
888
+ if (!names || names.length == 0) return;
889
+
890
890
  this.filters.splice(0, this.filters.length);
891
891
  for (const paramName of names) {
892
892
  const value = filterParams[paramName];
@@ -899,12 +899,14 @@ export default {
899
899
  }
900
900
  }
901
901
  },
902
- loadHistorySorting(sortingParams) {
903
- if (!sortingParams) sortingParams = this.getHistoryParameters("s-");
902
+ loadHistorySorting() {
903
+ const sortingParams = this.getHistoryParameters("s-");
904
904
  if (!sortingParams) return;
905
905
 
906
906
  const trimName = this.getHistoryName("s-");
907
907
  const names = Object.keys(sortingParams);
908
+ if (!names || names.length == 0) return;
909
+
908
910
  this.sorting.splice(0, this.sorting.length);
909
911
  for (const paramName of names) {
910
912
  var paramValue = sortingParams[paramName];
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <b-tabs v-on="$listeners" v-bind="$props" v-model="tabIndex">
2
+ <b-tabs v-on="$listeners" v-bind="$props">
3
3
  <slot></slot>
4
4
  </b-tabs>
5
5
  </template>
@@ -10,11 +10,6 @@
10
10
  */
11
11
  export default {
12
12
  name: "mui-tabs",
13
- watch: {
14
- tabIndex(val) {
15
- this.$emit("input", val);
16
- }
17
- },
18
13
  props: {
19
14
  /**
20
15
  * Tabs change state value.
@@ -31,14 +26,6 @@ export default {
31
26
  "active-nav-item-class": {},
32
27
  "active-tab-class": {},
33
28
  "no-fade": {}
34
- },
35
- data() {
36
- return {
37
- tabIndex: 0
38
- };
39
- },
40
- mounted() {
41
- this.tabIndex = this.value;
42
29
  }
43
30
  };
44
31
  </script>