blixify-ui-web 0.2.65 → 0.2.67
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/lib/components/data/dataTemplate/index.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/index.js +5 -12
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/data/dataTemplate/model.d.ts +2 -0
- package/lib/components/data/dataTemplate/model.d.ts.map +1 -1
- package/lib/components/data/listModule.d.ts.map +1 -1
- package/lib/components/data/listModule.js +17 -7
- package/lib/components/data/listModule.js.map +1 -1
- package/lib/components/data/updateModule.d.ts.map +1 -1
- package/lib/components/data/updateModule.js +6 -1
- package/lib/components/data/updateModule.js.map +1 -1
- package/lib/components/data/utils.d.ts.map +1 -1
- package/lib/components/data/utils.js +5 -2
- package/lib/components/data/utils.js.map +1 -1
- package/lib/components/input/uploadInput/index.js +3 -3
- package/lib/components/input/uploadInput/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAQN,MAAM,OAAO,CAAC;AAwDf,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAO1B,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAQN,MAAM,OAAO,CAAC;AAwDf,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAO1B,eAAO,MAAM,YAAY,mFAwlKvB,CAAC"}
|
|
@@ -677,10 +677,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
677
677
|
}
|
|
678
678
|
});
|
|
679
679
|
}); };
|
|
680
|
-
var handleRefresh = function (open) {
|
|
680
|
+
var handleRefresh = function (open, retainSelectedId) {
|
|
681
681
|
setTimeout(function () {
|
|
682
682
|
handleClearDataByFilter();
|
|
683
|
-
|
|
683
|
+
if (!retainSelectedId)
|
|
684
|
+
setSelectedIds([]);
|
|
684
685
|
}, 250);
|
|
685
686
|
setTimeout(function () {
|
|
686
687
|
setLoading(false);
|
|
@@ -1657,12 +1658,8 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
1657
1658
|
res = _a.sent();
|
|
1658
1659
|
if (res) {
|
|
1659
1660
|
setLoading(false);
|
|
1660
|
-
setSelectedIds([]);
|
|
1661
1661
|
setModalVisible(false);
|
|
1662
1662
|
setBatchUpdateModal(false);
|
|
1663
|
-
if (selectedTab.viewType === "map" && mapViewRef.current) {
|
|
1664
|
-
mapViewRef.current.handleClearPolygons();
|
|
1665
|
-
}
|
|
1666
1663
|
}
|
|
1667
1664
|
return [3 /*break*/, 6];
|
|
1668
1665
|
case 2:
|
|
@@ -1710,10 +1707,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
1710
1707
|
case 5:
|
|
1711
1708
|
res = _a.sent();
|
|
1712
1709
|
if (res) {
|
|
1713
|
-
handleRefresh(false);
|
|
1714
|
-
if (selectedTab.viewType === "map" && mapViewRef.current) {
|
|
1715
|
-
mapViewRef.current.handleClearPolygons();
|
|
1716
|
-
}
|
|
1710
|
+
handleRefresh(false, true);
|
|
1717
1711
|
}
|
|
1718
1712
|
_a.label = 6;
|
|
1719
1713
|
case 6: return [3 /*break*/, 8];
|
|
@@ -4099,8 +4093,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
4099
4093
|
var columnDataValue = undefined;
|
|
4100
4094
|
var selectedModel = props.model.find(function (eachAttribute) { return eachAttribute.id === value; });
|
|
4101
4095
|
if (selectedModel) {
|
|
4102
|
-
if (selectedModel.type === "list"
|
|
4103
|
-
selectedModel.type === "reference") {
|
|
4096
|
+
if (selectedModel.type === "list") {
|
|
4104
4097
|
var isOptional = (_b = selectedModel.optional) !== null && _b !== void 0 ? _b : false;
|
|
4105
4098
|
if (!isOptional &&
|
|
4106
4099
|
selectedModel.listSelection &&
|