datastake-daf 0.6.703 → 0.6.704
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/components/index.js +3 -4
- package/package.json +1 -2
package/dist/components/index.js
CHANGED
|
@@ -9735,9 +9735,8 @@ const determineHasChildren = ({
|
|
|
9735
9735
|
|
|
9736
9736
|
const sortByPosition = (items, getConfig) => {
|
|
9737
9737
|
return items.sort((a, b) => {
|
|
9738
|
-
|
|
9739
|
-
const
|
|
9740
|
-
const positionB = ((_getConfig2 = getConfig(b)) === null || _getConfig2 === void 0 ? void 0 : _getConfig2.position) || 0;
|
|
9738
|
+
const positionA = getConfig(a)?.position || 0;
|
|
9739
|
+
const positionB = getConfig(b)?.position || 0;
|
|
9741
9740
|
return positionA - positionB;
|
|
9742
9741
|
});
|
|
9743
9742
|
};
|
|
@@ -9754,7 +9753,7 @@ const resolveDynamicLabel = (labelConfig, item, defaultLabel) => {
|
|
|
9754
9753
|
const parts = labelKey.split(' is ');
|
|
9755
9754
|
if (parts.length === 2) {
|
|
9756
9755
|
const [conditionKey, conditionValue] = parts;
|
|
9757
|
-
if (
|
|
9756
|
+
if (item?.[conditionKey] === conditionValue) {
|
|
9758
9757
|
return labelConfig[labelKey];
|
|
9759
9758
|
}
|
|
9760
9759
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datastake-daf",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.704",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@ant-design/icons": "^5.2.5",
|
|
6
6
|
"@antv/g2": "^5.1.1",
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"buffer": "^6.0.3",
|
|
16
16
|
"countries-list": "^2.6.1",
|
|
17
17
|
"country-city-location": "^1.0.13",
|
|
18
|
-
"datastake-daf": "^0.6.378",
|
|
19
18
|
"dayjs": "^1.11.12",
|
|
20
19
|
"deepmerge": "^4.3.1",
|
|
21
20
|
"docx": "^9.5.1",
|