blixify-ui-web 0.2.63 → 0.2.65
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 +31 -23
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/data/updateModule.d.ts.map +1 -1
- package/lib/components/data/updateModule.js +12 -3
- package/lib/components/data/updateModule.js.map +1 -1
- package/lib/components/display/mapView/index.d.ts +1 -1
- package/lib/components/display/mapView/index.d.ts.map +1 -1
- package/lib/components/display/mapView/index.js +30 -11
- package/lib/components/display/mapView/index.js.map +1 -1
- package/lib/components/input/uploadInput/index.d.ts +7 -1
- package/lib/components/input/uploadInput/index.d.ts.map +1 -1
- package/lib/components/input/uploadInput/index.js +77 -25
- 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,mFAkmKvB,CAAC"}
|
|
@@ -413,7 +413,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
413
413
|
return sort;
|
|
414
414
|
};
|
|
415
415
|
var handleReadQueryHocCond = function () {
|
|
416
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
416
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
417
417
|
var query = (_a = renderImpSearchFilterConditions()) !== null && _a !== void 0 ? _a : [];
|
|
418
418
|
if ((_b = props.bareSettings) === null || _b === void 0 ? void 0 : _b.bareListFilterQuery) {
|
|
419
419
|
// INFO - To Replace bareListFilterQuery when they have same queryId
|
|
@@ -491,11 +491,18 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
491
491
|
orQuery: true,
|
|
492
492
|
orQueryGroupId: "3",
|
|
493
493
|
});
|
|
494
|
+
query.push({
|
|
495
|
+
type: "=",
|
|
496
|
+
queryId: (_l = selectedTab.calendarSettings) === null || _l === void 0 ? void 0 : _l.endDate,
|
|
497
|
+
value: null,
|
|
498
|
+
orQuery: true,
|
|
499
|
+
orQueryGroupId: "4",
|
|
500
|
+
});
|
|
494
501
|
}
|
|
495
502
|
else {
|
|
496
503
|
query.push({
|
|
497
504
|
type: "><",
|
|
498
|
-
queryId: (
|
|
505
|
+
queryId: (_m = selectedTab.calendarSettings) === null || _m === void 0 ? void 0 : _m.startDate,
|
|
499
506
|
value: [
|
|
500
507
|
(0, moment_1.default)(startDate).toISOString(),
|
|
501
508
|
(0, moment_1.default)(endDate).toISOString(),
|
|
@@ -1626,24 +1633,17 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
1626
1633
|
});
|
|
1627
1634
|
}); };
|
|
1628
1635
|
var handleBatchUpdateData = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
1629
|
-
var model_1, columnId_1, dataToSubmit_1, isFile, res, res, err_9;
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
switch (_c.label) {
|
|
1636
|
+
var model_1, columnId_1, dataToSubmit_1, isFile, res, batchUpdateConfig, res, err_9;
|
|
1637
|
+
return __generator(this, function (_a) {
|
|
1638
|
+
switch (_a.label) {
|
|
1633
1639
|
case 0:
|
|
1634
|
-
|
|
1640
|
+
_a.trys.push([0, 7, , 8]);
|
|
1635
1641
|
setLoading(true);
|
|
1636
1642
|
setModalVisible(true);
|
|
1637
1643
|
model_1 = props.model.find(function (eachModel) { return eachModel.id === batchUpdateData.columnId; });
|
|
1638
1644
|
columnId_1 = batchUpdateData.columnId;
|
|
1639
1645
|
dataToSubmit_1 = batchUpdateData.columnData;
|
|
1640
1646
|
isFile = (model_1 === null || model_1 === void 0 ? void 0 : model_1.type) === "image" || (model_1 === null || model_1 === void 0 ? void 0 : model_1.type) === "file";
|
|
1641
|
-
if ((model_1 === null || model_1 === void 0 ? void 0 : model_1.optional) && dataToSubmit_1[columnId_1] === undefined) {
|
|
1642
|
-
if (model_1.type === "address")
|
|
1643
|
-
dataToSubmit_1 = (_a = {}, _a[columnId_1] = { name: "", lat: 0, lng: 0 }, _a);
|
|
1644
|
-
else
|
|
1645
|
-
dataToSubmit_1 = (_b = {}, _b[columnId_1] = "", _b);
|
|
1646
|
-
}
|
|
1647
1647
|
if (!(isFile && dataToSubmit_1[columnId_1])) return [3 /*break*/, 2];
|
|
1648
1648
|
return [4 /*yield*/, Promise.all(selectedIds.map(function (eachId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1649
1649
|
return __generator(this, function (_a) {
|
|
@@ -1654,7 +1654,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
1654
1654
|
});
|
|
1655
1655
|
}); }))];
|
|
1656
1656
|
case 1:
|
|
1657
|
-
res =
|
|
1657
|
+
res = _a.sent();
|
|
1658
1658
|
if (res) {
|
|
1659
1659
|
setLoading(false);
|
|
1660
1660
|
setSelectedIds([]);
|
|
@@ -1679,10 +1679,10 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
1679
1679
|
});
|
|
1680
1680
|
}); }))];
|
|
1681
1681
|
case 3:
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
case 4:
|
|
1685
|
-
|
|
1682
|
+
_a.sent();
|
|
1683
|
+
_a.label = 4;
|
|
1684
|
+
case 4:
|
|
1685
|
+
batchUpdateConfig = {
|
|
1686
1686
|
query: selectAll
|
|
1687
1687
|
? [
|
|
1688
1688
|
{
|
|
@@ -1698,19 +1698,27 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
1698
1698
|
value: selectedIds,
|
|
1699
1699
|
},
|
|
1700
1700
|
],
|
|
1701
|
-
}
|
|
1701
|
+
};
|
|
1702
|
+
if ((model_1 === null || model_1 === void 0 ? void 0 : model_1.optional) && dataToSubmit_1[columnId_1] === undefined) {
|
|
1703
|
+
batchUpdateConfig["unsetData"] = [columnId_1];
|
|
1704
|
+
batchUpdateConfig["data"] = {};
|
|
1705
|
+
}
|
|
1706
|
+
else {
|
|
1707
|
+
batchUpdateConfig["data"] = dataToSubmit_1;
|
|
1708
|
+
}
|
|
1709
|
+
return [4 /*yield*/, writeServerQuery.call("batchUpdate", batchUpdateConfig)];
|
|
1702
1710
|
case 5:
|
|
1703
|
-
res =
|
|
1711
|
+
res = _a.sent();
|
|
1704
1712
|
if (res) {
|
|
1705
1713
|
handleRefresh(false);
|
|
1706
1714
|
if (selectedTab.viewType === "map" && mapViewRef.current) {
|
|
1707
1715
|
mapViewRef.current.handleClearPolygons();
|
|
1708
1716
|
}
|
|
1709
1717
|
}
|
|
1710
|
-
|
|
1718
|
+
_a.label = 6;
|
|
1711
1719
|
case 6: return [3 /*break*/, 8];
|
|
1712
1720
|
case 7:
|
|
1713
|
-
err_9 =
|
|
1721
|
+
err_9 = _a.sent();
|
|
1714
1722
|
if (err_9.response && err_9.response.status === 400) {
|
|
1715
1723
|
setNotification({
|
|
1716
1724
|
type: false,
|
|
@@ -3730,7 +3738,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3730
3738
|
};
|
|
3731
3739
|
spaceTableData.map(function (eachData) {
|
|
3732
3740
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3733
|
-
var eachMarkerColor = "
|
|
3741
|
+
var eachMarkerColor = "white";
|
|
3734
3742
|
if (mapSettings_1.group) {
|
|
3735
3743
|
if (eachData[mapSettings_1.group]) {
|
|
3736
3744
|
eachMarkerColor = markerColorMap_1[eachData[mapSettings_1.group]];
|