@qrvey/utils 1.17.0 → 1.17.1

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.17.0*
1
+ # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.17.1*
2
2
 
3
3
  > Helper, Utils for all Qrvey Projects
4
4
 
@@ -106,14 +106,14 @@ class UChartApi {
106
106
  : 1000;
107
107
  static _getSortOption = (column) => {
108
108
  let sortBy = "CATEGORY";
109
- let sortDirection = (0, isNumericalColumn_1.isNumericalColumn)(column) ? "DESC" : "ASC";
109
+ let sortDirection = "ASC";
110
110
  if (!(0, isEmpty_1.isEmpty)(column.sorting)) {
111
111
  sortBy = (0, get_1._get)(column.sorting, "sortBy");
112
112
  sortDirection = (0, get_1._get)(column.sorting, "order");
113
113
  if (sortBy == null)
114
114
  sortBy = "VALUE";
115
115
  if (sortDirection == null)
116
- sortDirection = "DESC";
116
+ sortDirection = "ASC";
117
117
  }
118
118
  return { by: sortBy, direction: sortDirection };
119
119
  };
@@ -123,14 +123,14 @@ class UChartPaginationApi {
123
123
  : 1000;
124
124
  static _getSortOption = (column) => {
125
125
  let by = "CATEGORY";
126
- let direction = (0, isNumericalColumn_1.isNumericalColumn)(column) ? "DESC" : "ASC";
126
+ let direction = "ASC";
127
127
  if (!(0, isEmpty_1.isEmpty)(column.sorting)) {
128
128
  by = (0, get_1._get)(column.sorting, "sortBy");
129
129
  direction = (0, get_1._get)(column.sorting, "order");
130
130
  if (by == null)
131
131
  by = "VALUE";
132
132
  if (direction == null)
133
- direction = "DESC";
133
+ direction = "ASC";
134
134
  }
135
135
  return { by, direction };
136
136
  };
@@ -102,14 +102,14 @@ export class UChartApi {
102
102
  : 1000;
103
103
  static _getSortOption = (column) => {
104
104
  let sortBy = "CATEGORY";
105
- let sortDirection = isNumericalColumn(column) ? "DESC" : "ASC";
105
+ let sortDirection = "ASC";
106
106
  if (!isEmpty(column.sorting)) {
107
107
  sortBy = _get(column.sorting, "sortBy");
108
108
  sortDirection = _get(column.sorting, "order");
109
109
  if (sortBy == null)
110
110
  sortBy = "VALUE";
111
111
  if (sortDirection == null)
112
- sortDirection = "DESC";
112
+ sortDirection = "ASC";
113
113
  }
114
114
  return { by: sortBy, direction: sortDirection };
115
115
  };
@@ -119,14 +119,14 @@ export class UChartPaginationApi {
119
119
  : 1000;
120
120
  static _getSortOption = (column) => {
121
121
  let by = "CATEGORY";
122
- let direction = isNumericalColumn(column) ? "DESC" : "ASC";
122
+ let direction = "ASC";
123
123
  if (!isEmpty(column.sorting)) {
124
124
  by = _get(column.sorting, "sortBy");
125
125
  direction = _get(column.sorting, "order");
126
126
  if (by == null)
127
127
  by = "VALUE";
128
128
  if (direction == null)
129
- direction = "DESC";
129
+ direction = "ASC";
130
130
  }
131
131
  return { by, direction };
132
132
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrvey/utils",
3
- "version": "1.17.0",
3
+ "version": "1.17.1",
4
4
  "description": "Helper, Utils for all Qrvey Projects",
5
5
  "homepage": "https://bitbucket.org/qrvey/qrvey_utils/wiki/Home",
6
6
  "main": "dist/cjs/index.js",