@nokecy/qc-ui 0.1.13 → 0.1.14

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.
@@ -1,4 +1,4 @@
1
1
  import AgGridPlus from "./ag-gridPlus";
2
2
  import { AgGridColumn } from "./interface";
3
- export * from "./utils";
4
3
  export { AgGridPlus, AgGridColumn };
4
+ export { dateValueFormatter, dateTimeValueFormatter, convertFilterModel, convertSortModel, flattenTreeDeep, toTree, flatten } from "./utils";
@@ -3,10 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- var _exportNames = {
7
- AgGridPlus: true,
8
- AgGridColumn: true
9
- };
10
6
  Object.defineProperty(exports, "AgGridColumn", {
11
7
  enumerable: true,
12
8
  get: function get() {
@@ -19,6 +15,48 @@ Object.defineProperty(exports, "AgGridPlus", {
19
15
  return _agGridPlus.default;
20
16
  }
21
17
  });
18
+ Object.defineProperty(exports, "convertFilterModel", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _utils.convertFilterModel;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "convertSortModel", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _utils.convertSortModel;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "dateTimeValueFormatter", {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _utils.dateTimeValueFormatter;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "dateValueFormatter", {
37
+ enumerable: true,
38
+ get: function get() {
39
+ return _utils.dateValueFormatter;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "flatten", {
43
+ enumerable: true,
44
+ get: function get() {
45
+ return _utils.flatten;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "flattenTreeDeep", {
49
+ enumerable: true,
50
+ get: function get() {
51
+ return _utils.flattenTreeDeep;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "toTree", {
55
+ enumerable: true,
56
+ get: function get() {
57
+ return _utils.toTree;
58
+ }
59
+ });
22
60
 
23
61
  var _agGridPlus = _interopRequireDefault(require("./ag-gridPlus"));
24
62
 
@@ -26,16 +64,4 @@ var _interface = require("./interface");
26
64
 
27
65
  var _utils = require("./utils");
28
66
 
29
- Object.keys(_utils).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
32
- if (key in exports && exports[key] === _utils[key]) return;
33
- Object.defineProperty(exports, key, {
34
- enumerable: true,
35
- get: function get() {
36
- return _utils[key];
37
- }
38
- });
39
- });
40
-
41
67
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -114,7 +114,7 @@ exports.dateTimeValueFormatter = dateTimeValueFormatter;
114
114
  var flatten = function flatten(arr, parentPropName, parentref) {
115
115
  return arr ? arr.reduce(function (result, item) {
116
116
  return [].concat(_toConsumableArray(result), [_objectSpread(_objectSpread({}, item), {}, {
117
- hierarchya: parentref ? [].concat(_toConsumableArray(parentref), [item[parentPropName]]) : [item[parentPropName]]
117
+ hierarchy: parentref ? [].concat(_toConsumableArray(parentref), [item[parentPropName]]) : [item[parentPropName]]
118
118
  })], _toConsumableArray(flatten(item.children, parentref ? [].concat(_toConsumableArray(parentref), [item[parentPropName]]) : [item[parentPropName]])));
119
119
  }, []) : [];
120
120
  };
@@ -1,4 +1,4 @@
1
1
  import AgGridPlus from "./ag-gridPlus";
2
2
  import { AgGridColumn } from "./interface";
3
- export * from "./utils";
4
3
  export { AgGridPlus, AgGridColumn };
4
+ export { dateValueFormatter, dateTimeValueFormatter, convertFilterModel, convertSortModel, flattenTreeDeep, toTree, flatten } from "./utils";
@@ -1,4 +1,4 @@
1
1
  import AgGridPlus from "./ag-gridPlus";
2
2
  import { AgGridColumn } from "./interface";
3
- export * from "./utils";
4
- export { AgGridPlus, AgGridColumn };
3
+ export { AgGridPlus, AgGridColumn };
4
+ export { dateValueFormatter, dateTimeValueFormatter, convertFilterModel, convertSortModel, flattenTreeDeep, toTree, flatten } from "./utils";
@@ -97,7 +97,7 @@ var dateTimeValueFormatter = function dateTimeValueFormatter(params) {
97
97
  var flatten = function flatten(arr, parentPropName, parentref) {
98
98
  return arr ? arr.reduce(function (result, item) {
99
99
  return [].concat(_toConsumableArray(result), [_objectSpread(_objectSpread({}, item), {}, {
100
- hierarchya: parentref ? [].concat(_toConsumableArray(parentref), [item[parentPropName]]) : [item[parentPropName]]
100
+ hierarchy: parentref ? [].concat(_toConsumableArray(parentref), [item[parentPropName]]) : [item[parentPropName]]
101
101
  })], _toConsumableArray(flatten(item.children, parentref ? [].concat(_toConsumableArray(parentref), [item[parentPropName]]) : [item[parentPropName]])));
102
102
  }, []) : [];
103
103
  };