datastake-daf 0.6.704 → 0.6.706
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
CHANGED
|
@@ -9735,8 +9735,9 @@ const determineHasChildren = ({
|
|
|
9735
9735
|
|
|
9736
9736
|
const sortByPosition = (items, getConfig) => {
|
|
9737
9737
|
return items.sort((a, b) => {
|
|
9738
|
-
|
|
9739
|
-
const
|
|
9738
|
+
var _getConfig, _getConfig2;
|
|
9739
|
+
const positionA = ((_getConfig = getConfig(a)) === null || _getConfig === void 0 ? void 0 : _getConfig.position) || 0;
|
|
9740
|
+
const positionB = ((_getConfig2 = getConfig(b)) === null || _getConfig2 === void 0 ? void 0 : _getConfig2.position) || 0;
|
|
9740
9741
|
return positionA - positionB;
|
|
9741
9742
|
});
|
|
9742
9743
|
};
|
|
@@ -9753,7 +9754,7 @@ const resolveDynamicLabel = (labelConfig, item, defaultLabel) => {
|
|
|
9753
9754
|
const parts = labelKey.split(' is ');
|
|
9754
9755
|
if (parts.length === 2) {
|
|
9755
9756
|
const [conditionKey, conditionValue] = parts;
|
|
9756
|
-
if (item
|
|
9757
|
+
if ((item === null || item === void 0 ? void 0 : item[conditionKey]) === conditionValue) {
|
|
9757
9758
|
return labelConfig[labelKey];
|
|
9758
9759
|
}
|
|
9759
9760
|
}
|
package/dist/services/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datastake-daf",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.706",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@ant-design/icons": "^5.2.5",
|
|
6
6
|
"@antv/g2": "^5.1.1",
|
|
@@ -15,6 +15,7 @@
|
|
|
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",
|
|
18
19
|
"dayjs": "^1.11.12",
|
|
19
20
|
"deepmerge": "^4.3.1",
|
|
20
21
|
"docx": "^9.5.1",
|
package/src/utils.js
CHANGED
|
@@ -9,7 +9,7 @@ export { renderTooltip, renderTooltipJsx } from './@daf/utils/tooltip'
|
|
|
9
9
|
export { getRangeOfTicks } from './helpers/chart'
|
|
10
10
|
|
|
11
11
|
export { propHasValue } from './helpers/deepFind'
|
|
12
|
-
export { isEmptyOrSpaces, capitalizeAll, capitalize, camelCaseToTitle, snakeCaseToTitleCase, titleToCamelCase, findOptions, getOptionAsObject, nowToIso, renderTemplateString, renderTemplateStringInObject, truncateString, splitStringInMultipleLines, safeJsonParse, cleanJSON } from './helpers/StringHelper'
|
|
12
|
+
export { isEmptyOrSpaces, capitalizeAll, capitalize, camelCaseToTitle, snakeCaseToTitleCase, titleToCamelCase, findOptions, getOptionAsObject, nowToIso, renderTemplateString, renderTemplateStringInObject, truncateString, splitStringInMultipleLines, safeJsonParse, cleanJSON } from './helpers/StringHelper.js'
|
|
13
13
|
export { getNkey, groupSubsections, getImageUploadViewValue } from './@daf/core/components/ViewForm/helper'
|
|
14
14
|
export { renderRows } from './@daf/core/components/Table/helper'
|
|
15
15
|
export { filterOptions, filterString, hasNotChanged, filterSelectOptions, mapSubGroupsInSubmit, mapSubGroupsInGet, filterCreateData, changeInputMeta, renderDateFormatted } from './helpers/Forms'
|