@nokecy/qc-ui 0.1.9 → 0.1.11
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/dist/cjs/ag-grid-plus/interface.d.ts +0 -1
- package/dist/cjs/ag-grid-plus/utils.d.ts +2 -1
- package/dist/cjs/ag-grid-plus/utils.js +18 -2
- package/dist/cjs/index.d.ts +2 -1
- package/dist/cjs/index.js +6 -0
- package/dist/esm/ag-grid-plus/interface.d.ts +0 -1
- package/dist/esm/ag-grid-plus/utils.d.ts +2 -1
- package/dist/esm/ag-grid-plus/utils.js +15 -1
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +3 -2
- package/dist/umd/qc-ui.min.js +1 -1
- package/package.json +1 -1
|
@@ -5,4 +5,5 @@ declare const dateValueFormatter: (params: ValueFormatterParams) => string;
|
|
|
5
5
|
declare const dateTimeValueFormatter: (params: ValueFormatterParams) => string;
|
|
6
6
|
declare const flatten: (arr: any[], parentref?: any[]) => any;
|
|
7
7
|
declare const toTree: (data: any[]) => any[];
|
|
8
|
-
|
|
8
|
+
declare const flattenTreeDeep: (treeData: any[]) => any[];
|
|
9
|
+
export { dateValueFormatter, dateTimeValueFormatter, convertFilterModel, convertSortModel, flattenTreeDeep, toTree, flatten };
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.toTree = exports.flatten = exports.dateValueFormatter = exports.dateTimeValueFormatter = exports.convertSortModel = exports.convertFilterModel = void 0;
|
|
6
|
+
exports.toTree = exports.flattenTreeDeep = exports.flatten = exports.dateValueFormatter = exports.dateTimeValueFormatter = exports.convertSortModel = exports.convertFilterModel = void 0;
|
|
7
|
+
|
|
8
|
+
var _flattenDeep2 = _interopRequireDefault(require("lodash/flattenDeep"));
|
|
7
9
|
|
|
8
10
|
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
9
11
|
|
|
@@ -144,4 +146,18 @@ var toTree = function toTree(data) {
|
|
|
144
146
|
return val;
|
|
145
147
|
};
|
|
146
148
|
|
|
147
|
-
exports.toTree = toTree;
|
|
149
|
+
exports.toTree = toTree;
|
|
150
|
+
|
|
151
|
+
var flattenTreeDeep = function flattenTreeDeep(treeData) {
|
|
152
|
+
var getTail = function getTail(item) {
|
|
153
|
+
return item.children && item.children.length > 0 ? item.children.map(function (m) {
|
|
154
|
+
return getTail(m);
|
|
155
|
+
}) : [item];
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
return (0, _flattenDeep2.default)(treeData.map(function (m) {
|
|
159
|
+
return getTail(m);
|
|
160
|
+
}));
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
exports.flattenTreeDeep = flattenTreeDeep;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import ArrayTable from "./array-table";
|
|
2
2
|
import ArrayTableIndex from "./array-table-index";
|
|
3
|
-
import { AgGridColumn, AgGridPlus } from "./ag-grid-plus";
|
|
3
|
+
import { AgGridColumn, AgGridPlus, flattenTreeDeep } from "./ag-grid-plus";
|
|
4
4
|
import ExtensibleGrid from "./extensible-grid";
|
|
5
5
|
import Dashboard from "./dashboard";
|
|
6
6
|
import Elsa from "./elsa";
|
|
7
7
|
export { ArrayTable, ArrayTableIndex, AgGridColumn, AgGridPlus, ExtensibleGrid, Dashboard, Elsa };
|
|
8
|
+
export { flattenTreeDeep };
|
package/dist/cjs/index.js
CHANGED
|
@@ -45,6 +45,12 @@ Object.defineProperty(exports, "ExtensibleGrid", {
|
|
|
45
45
|
return _extensibleGrid.default;
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
+
Object.defineProperty(exports, "flattenTreeDeep", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _agGridPlus.flattenTreeDeep;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
48
54
|
|
|
49
55
|
var _arrayTable = _interopRequireDefault(require("./array-table"));
|
|
50
56
|
|
|
@@ -5,4 +5,5 @@ declare const dateValueFormatter: (params: ValueFormatterParams) => string;
|
|
|
5
5
|
declare const dateTimeValueFormatter: (params: ValueFormatterParams) => string;
|
|
6
6
|
declare const flatten: (arr: any[], parentref?: any[]) => any;
|
|
7
7
|
declare const toTree: (data: any[]) => any[];
|
|
8
|
-
|
|
8
|
+
declare const flattenTreeDeep: (treeData: any[]) => any[];
|
|
9
|
+
export { dateValueFormatter, dateTimeValueFormatter, convertFilterModel, convertSortModel, flattenTreeDeep, toTree, flatten };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import _flattenDeep from "lodash/flattenDeep";
|
|
2
|
+
|
|
1
3
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2
4
|
|
|
3
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -125,4 +127,16 @@ var toTree = function toTree(data) {
|
|
|
125
127
|
return val;
|
|
126
128
|
};
|
|
127
129
|
|
|
128
|
-
|
|
130
|
+
var flattenTreeDeep = function flattenTreeDeep(treeData) {
|
|
131
|
+
var getTail = function getTail(item) {
|
|
132
|
+
return item.children && item.children.length > 0 ? item.children.map(function (m) {
|
|
133
|
+
return getTail(m);
|
|
134
|
+
}) : [item];
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
return _flattenDeep(treeData.map(function (m) {
|
|
138
|
+
return getTail(m);
|
|
139
|
+
}));
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export { dateValueFormatter, dateTimeValueFormatter, convertFilterModel, convertSortModel, flattenTreeDeep, toTree, flatten };
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import ArrayTable from "./array-table";
|
|
2
2
|
import ArrayTableIndex from "./array-table-index";
|
|
3
|
-
import { AgGridColumn, AgGridPlus } from "./ag-grid-plus";
|
|
3
|
+
import { AgGridColumn, AgGridPlus, flattenTreeDeep } from "./ag-grid-plus";
|
|
4
4
|
import ExtensibleGrid from "./extensible-grid";
|
|
5
5
|
import Dashboard from "./dashboard";
|
|
6
6
|
import Elsa from "./elsa";
|
|
7
7
|
export { ArrayTable, ArrayTableIndex, AgGridColumn, AgGridPlus, ExtensibleGrid, Dashboard, Elsa };
|
|
8
|
+
export { flattenTreeDeep };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import ArrayTable from "./array-table";
|
|
2
2
|
import ArrayTableIndex from "./array-table-index";
|
|
3
|
-
import { AgGridColumn, AgGridPlus } from "./ag-grid-plus";
|
|
3
|
+
import { AgGridColumn, AgGridPlus, flattenTreeDeep } from "./ag-grid-plus";
|
|
4
4
|
import ExtensibleGrid from "./extensible-grid";
|
|
5
5
|
import Dashboard from "./dashboard";
|
|
6
6
|
import Elsa from "./elsa";
|
|
7
|
-
export { ArrayTable, ArrayTableIndex, AgGridColumn, AgGridPlus, ExtensibleGrid, Dashboard, Elsa };
|
|
7
|
+
export { ArrayTable, ArrayTableIndex, AgGridColumn, AgGridPlus, ExtensibleGrid, Dashboard, Elsa };
|
|
8
|
+
export { flattenTreeDeep };
|