blixify-ui-web 1.3.9 → 1.3.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/lib/components/data/dataTemplate/index.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/index.js +156 -35
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/data/dataTemplate/settingsModal.d.ts +16 -0
- package/lib/components/data/dataTemplate/settingsModal.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/settingsModal.js +129 -23
- package/lib/components/data/dataTemplate/settingsModal.js.map +1 -1
- package/lib/components/data/dataTemplate/spaceModel.d.ts +7 -0
- package/lib/components/data/dataTemplate/spaceModel.d.ts.map +1 -1
- package/lib/components/display/mapView/index.d.ts +26 -1
- package/lib/components/display/mapView/index.d.ts.map +1 -1
- package/lib/components/display/mapView/index.js +352 -21
- package/lib/components/display/mapView/index.js.map +1 -1
- package/lib/components/display/mapView/routes.d.ts +72 -0
- package/lib/components/display/mapView/routes.d.ts.map +1 -0
- package/lib/components/display/mapView/routes.js +310 -0
- package/lib/components/display/mapView/routes.js.map +1 -0
- package/lib/components/display/newKanban/index.d.ts +47 -0
- package/lib/components/display/newKanban/index.d.ts.map +1 -1
- package/lib/components/display/newKanban/index.js +371 -16
- package/lib/components/display/newKanban/index.js.map +1 -1
- package/lib/tail.css +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":"AAqCA,OAAO,KASN,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAqCA,OAAO,KASN,MAAM,OAAO,CAAC;AAwHf,OAAO,EACL,iBAAiB,EAIlB,MAAM,kBAAkB,CAAC;AAwI1B,eAAO,MAAM,qBAAqB,OAAO,CAAC;AA6C1C,eAAO,MAAM,yBAAyB,UAAW,GAAG,YAYnD,CAAC;AAEF,eAAO,MAAM,YAAY,mFAoxhBvB,CAAC"}
|
|
@@ -123,6 +123,7 @@ var kanban_1 = require("../../display/kanban");
|
|
|
123
123
|
var list_1 = require("../../display/list");
|
|
124
124
|
var loading_1 = require("../../display/loading");
|
|
125
125
|
var mapView_1 = require("../../display/mapView");
|
|
126
|
+
var routes_1 = require("../../display/mapView/routes");
|
|
126
127
|
var drawer_1 = require("../../display/drawer");
|
|
127
128
|
var modal_1 = require("../../display/modal");
|
|
128
129
|
var notification_1 = require("../../display/notification");
|
|
@@ -2298,7 +2299,9 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
2298
2299
|
var rowIndex = recordId
|
|
2299
2300
|
? tableData.findIndex(function (row) { return (row === null || row === void 0 ? void 0 : row.id) === recordId || (row === null || row === void 0 ? void 0 : row.recordId) === recordId; })
|
|
2300
2301
|
: -1;
|
|
2301
|
-
return rowIndex >= 0 && limit > 0
|
|
2302
|
+
return rowIndex >= 0 && limit > 0
|
|
2303
|
+
? Math.floor(rowIndex / limit)
|
|
2304
|
+
: pageIndex;
|
|
2302
2305
|
};
|
|
2303
2306
|
// INFO: called in the row click, while the list is still mounted and scrolled
|
|
2304
2307
|
var handleCaptureListScroll = function (recordId) {
|
|
@@ -10077,7 +10080,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10077
10080
|
return true;
|
|
10078
10081
|
});
|
|
10079
10082
|
spaceTableData.forEach(function (eachData, index) {
|
|
10080
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
10083
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
10081
10084
|
var clonedEachData = JSON.parse(JSON.stringify(eachData));
|
|
10082
10085
|
var allValues = Object.values(clonedEachData);
|
|
10083
10086
|
var title = "";
|
|
@@ -10188,10 +10191,20 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10188
10191
|
if (type === "grid" || type === "kanban") {
|
|
10189
10192
|
if (kanbanGroupId)
|
|
10190
10193
|
data[kanbanGroupId] = selectedTData[kanbanGroupId];
|
|
10191
|
-
|
|
10194
|
+
// INFO: the lane's sort and sub-group read the record's own values;
|
|
10195
|
+
// a group's header shows the value as the table would
|
|
10196
|
+
var laneSettings = selectedTab === null || selectedTab === void 0 ? void 0 : selectedTab.kanbanSettings;
|
|
10197
|
+
if (type === "kanban" && (laneSettings === null || laneSettings === void 0 ? void 0 : laneSettings.sortBy))
|
|
10198
|
+
data[laneSettings.sortBy] = selectedTData[laneSettings.sortBy];
|
|
10199
|
+
if (type === "kanban" && (laneSettings === null || laneSettings === void 0 ? void 0 : laneSettings.subGroupBy)) {
|
|
10200
|
+
data[laneSettings.subGroupBy] =
|
|
10201
|
+
selectedTData[laneSettings.subGroupBy];
|
|
10202
|
+
data.subGroupLabel = (0, readModule_1.renderEachRowDataBasedOnDataType)(laneSettings.subGroupBy, eachData[laneSettings.subGroupBy], props.bareSettings, true, (_e = props.organise) === null || _e === void 0 ? void 0 : _e.disableEllipsisOnLongWord);
|
|
10203
|
+
}
|
|
10204
|
+
var gridComponent = (_g = (_f = props.bareSettings) === null || _f === void 0 ? void 0 : _f.bareListGridComponent) === null || _g === void 0 ? void 0 : _g.call(_f, eachData, selectedTData);
|
|
10192
10205
|
if (gridComponent)
|
|
10193
10206
|
data[type === "grid" ? "extra" : "action"] = gridComponent;
|
|
10194
|
-
var eachDataTags = (
|
|
10207
|
+
var eachDataTags = (_j = (_h = props.bareSettings) === null || _h === void 0 ? void 0 : _h.bareListGridTags) === null || _j === void 0 ? void 0 : _j.call(_h, eachData, selectedTData);
|
|
10195
10208
|
if (eachDataTags) {
|
|
10196
10209
|
if (Array.isArray(eachDataTags)) {
|
|
10197
10210
|
var gridTagList_1 = [];
|
|
@@ -10204,11 +10217,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10204
10217
|
data["tags"] = gridTagList_1;
|
|
10205
10218
|
}
|
|
10206
10219
|
}
|
|
10207
|
-
var ribbonText = (
|
|
10220
|
+
var ribbonText = (_l = (_k = props.bareSettings) === null || _k === void 0 ? void 0 : _k.bareListGridRibbonText) === null || _l === void 0 ? void 0 : _l.call(_k, eachData, selectedTData);
|
|
10208
10221
|
if (ribbonText)
|
|
10209
10222
|
data["ribbonText"] = ribbonText;
|
|
10210
10223
|
var eachDataGridImage = "";
|
|
10211
|
-
var gridFallbackImg = (
|
|
10224
|
+
var gridFallbackImg = (_o = (_m = props.bareSettings) === null || _m === void 0 ? void 0 : _m.bareListGridFallbackImg) === null || _o === void 0 ? void 0 : _o.call(_m, eachData, selectedTData);
|
|
10212
10225
|
var cellImageSrc = (0, utils_1.handleGetRenderedImageSrc)(clonedEachData[imageTag]);
|
|
10213
10226
|
if (cellImageSrc) {
|
|
10214
10227
|
eachDataGridImage = cellImageSrc;
|
|
@@ -10487,6 +10500,76 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10487
10500
|
var nextTabs = ((_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.extendedTabs) !== null && _b !== void 0 ? _b : []).map(function (eachTab) { return (__assign(__assign({}, eachTab), { defaultTab: eachTab.name === name ? !eachTab.defaultTab : false })); });
|
|
10488
10501
|
(_d = (_c = props.organise) === null || _c === void 0 ? void 0 : _c.onChangeTabs) === null || _d === void 0 ? void 0 : _d.call(_c, nextTabs);
|
|
10489
10502
|
};
|
|
10503
|
+
// INFO: a Kanban drop or a route planned on the map can change a few
|
|
10504
|
+
// records at once — a stop's lane or trip, and the sequence of the stops
|
|
10505
|
+
// around it. Each is saved with only its changed fields, then patched into
|
|
10506
|
+
// the list in place
|
|
10507
|
+
var handleSaveRecordChanges = function (changes) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10508
|
+
var _loop_3, _i, changes_1, eachChange, err_29;
|
|
10509
|
+
var _a;
|
|
10510
|
+
return __generator(this, function (_b) {
|
|
10511
|
+
switch (_b.label) {
|
|
10512
|
+
case 0:
|
|
10513
|
+
setKanbanDroppable(false);
|
|
10514
|
+
_b.label = 1;
|
|
10515
|
+
case 1:
|
|
10516
|
+
_b.trys.push([1, 6, 7, 8]);
|
|
10517
|
+
_loop_3 = function (eachChange) {
|
|
10518
|
+
var currentRow;
|
|
10519
|
+
return __generator(this, function (_c) {
|
|
10520
|
+
switch (_c.label) {
|
|
10521
|
+
case 0: return [4 /*yield*/, writeServerQuery.call("update", {
|
|
10522
|
+
id: eachChange.id,
|
|
10523
|
+
data: eachChange.values,
|
|
10524
|
+
})];
|
|
10525
|
+
case 1:
|
|
10526
|
+
_c.sent();
|
|
10527
|
+
currentRow = tableDataRef.current.find(function (eachData) {
|
|
10528
|
+
return eachData.id === eachChange.id || eachData._id === eachChange.id;
|
|
10529
|
+
});
|
|
10530
|
+
if (!currentRow) return [3 /*break*/, 3];
|
|
10531
|
+
return [4 /*yield*/, handleGetListData({
|
|
10532
|
+
data: [
|
|
10533
|
+
__assign(__assign(__assign({}, currentRow), { _id: (_a = currentRow._id) !== null && _a !== void 0 ? _a : currentRow.id }), eachChange.values),
|
|
10534
|
+
],
|
|
10535
|
+
}, "update", eachChange.id)];
|
|
10536
|
+
case 2:
|
|
10537
|
+
_c.sent();
|
|
10538
|
+
_c.label = 3;
|
|
10539
|
+
case 3: return [2 /*return*/];
|
|
10540
|
+
}
|
|
10541
|
+
});
|
|
10542
|
+
};
|
|
10543
|
+
_i = 0, changes_1 = changes;
|
|
10544
|
+
_b.label = 2;
|
|
10545
|
+
case 2:
|
|
10546
|
+
if (!(_i < changes_1.length)) return [3 /*break*/, 5];
|
|
10547
|
+
eachChange = changes_1[_i];
|
|
10548
|
+
return [5 /*yield**/, _loop_3(eachChange)];
|
|
10549
|
+
case 3:
|
|
10550
|
+
_b.sent();
|
|
10551
|
+
_b.label = 4;
|
|
10552
|
+
case 4:
|
|
10553
|
+
_i++;
|
|
10554
|
+
return [3 /*break*/, 2];
|
|
10555
|
+
case 5: return [3 /*break*/, 8];
|
|
10556
|
+
case 6:
|
|
10557
|
+
err_29 = _b.sent();
|
|
10558
|
+
setNotification({
|
|
10559
|
+
type: false,
|
|
10560
|
+
title: "Error",
|
|
10561
|
+
msg: (err_29 === null || err_29 === void 0 ? void 0 : err_29.response)
|
|
10562
|
+
? handleGetWriteErrorMessage(err_29.response)
|
|
10563
|
+
: "The changes could not be saved",
|
|
10564
|
+
});
|
|
10565
|
+
return [3 /*break*/, 8];
|
|
10566
|
+
case 7:
|
|
10567
|
+
setKanbanDroppable(true);
|
|
10568
|
+
return [7 /*endfinally*/];
|
|
10569
|
+
case 8: return [2 /*return*/];
|
|
10570
|
+
}
|
|
10571
|
+
});
|
|
10572
|
+
}); };
|
|
10490
10573
|
// INFO: opens the add tab modal on an existing tab, which it saves in place
|
|
10491
10574
|
var handleEditTab = function (name) {
|
|
10492
10575
|
var _a, _b;
|
|
@@ -10880,7 +10963,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10880
10963
|
// tableData / spaceTableData, so handleBuildNewTableGroups() keeps building
|
|
10881
10964
|
// bands from one source; each group advances its own cursor
|
|
10882
10965
|
var handleFetchGroupNextPage = function (groupKey) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10883
|
-
var current, groupSize, cursor, generation, page_1, existingIds_1, appendRaw_1, appendPretty_1, nextCursor,
|
|
10966
|
+
var current, groupSize, cursor, generation, page_1, existingIds_1, appendRaw_1, appendPretty_1, nextCursor, err_30, nextKey;
|
|
10884
10967
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
10885
10968
|
return __generator(this, function (_h) {
|
|
10886
10969
|
switch (_h.label) {
|
|
@@ -10944,7 +11027,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10944
11027
|
});
|
|
10945
11028
|
return [3 /*break*/, 5];
|
|
10946
11029
|
case 3:
|
|
10947
|
-
|
|
11030
|
+
err_30 = _h.sent();
|
|
10948
11031
|
if (generation !== groupPagingGenRef.current)
|
|
10949
11032
|
return [2 /*return*/];
|
|
10950
11033
|
// INFO: clear the in-flight flag so a failed page can be retried on the
|
|
@@ -10969,7 +11052,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10969
11052
|
// INFO: page mode — swaps ONE group's rows for its page `page`; every other
|
|
10970
11053
|
// group keeps the page it is on
|
|
10971
11054
|
var handleFetchGroupPage = function (groupKey, page) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10972
|
-
var generation, result, keptRaw_1, keptPretty_1, loaded,
|
|
11055
|
+
var generation, result, keptRaw_1, keptPretty_1, loaded, err_31;
|
|
10973
11056
|
return __generator(this, function (_a) {
|
|
10974
11057
|
switch (_a.label) {
|
|
10975
11058
|
case 0:
|
|
@@ -11005,7 +11088,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
11005
11088
|
});
|
|
11006
11089
|
return [3 /*break*/, 4];
|
|
11007
11090
|
case 3:
|
|
11008
|
-
|
|
11091
|
+
err_31 = _a.sent();
|
|
11009
11092
|
if (generation !== groupPagingGenRef.current)
|
|
11010
11093
|
return [2 /*return*/];
|
|
11011
11094
|
handleSetGroupPageState(groupKey, { loadingMore: false });
|
|
@@ -12314,6 +12397,9 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
12314
12397
|
else if (selectedTabData.viewType === "map") {
|
|
12315
12398
|
var mapSettings_1 = selectedTabData.mapSettings;
|
|
12316
12399
|
if (mapSettings_1) {
|
|
12400
|
+
// INFO: pins take the route column's colour unless another column is
|
|
12401
|
+
// picked, so a trip's pins match its line with one setting
|
|
12402
|
+
var pinGroup_1 = mapSettings_1.group || mapSettings_1.routeBy || "";
|
|
12317
12403
|
var mapMarkerList_1 = [];
|
|
12318
12404
|
var uniqueGroupList_1 = [];
|
|
12319
12405
|
var markerColorMap_1 = {};
|
|
@@ -12324,11 +12410,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
12324
12410
|
"orange",
|
|
12325
12411
|
"purple",
|
|
12326
12412
|
];
|
|
12327
|
-
if (
|
|
12413
|
+
if (pinGroup_1) {
|
|
12328
12414
|
spaceTableData.map(function (eachData) {
|
|
12329
|
-
if (eachData[
|
|
12330
|
-
!uniqueGroupList_1.includes(eachData[
|
|
12331
|
-
uniqueGroupList_1.push(eachData[
|
|
12415
|
+
if (eachData[pinGroup_1] &&
|
|
12416
|
+
!uniqueGroupList_1.includes(eachData[pinGroup_1])) {
|
|
12417
|
+
uniqueGroupList_1.push(eachData[pinGroup_1]);
|
|
12332
12418
|
}
|
|
12333
12419
|
return null;
|
|
12334
12420
|
});
|
|
@@ -12337,21 +12423,47 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
12337
12423
|
markerColorMap_1[group] = markerColorList_1[colorIndex];
|
|
12338
12424
|
});
|
|
12339
12425
|
}
|
|
12426
|
+
// INFO: a value the popup can show — a linked record or an
|
|
12427
|
+
// address by its name, other objects left out
|
|
12428
|
+
var handleGetPopupValue_1 = function (value) {
|
|
12429
|
+
var _a;
|
|
12430
|
+
if (value === undefined || value === null || value === "")
|
|
12431
|
+
return null;
|
|
12432
|
+
if (react_1.default.isValidElement(value))
|
|
12433
|
+
return value;
|
|
12434
|
+
if (typeof value === "object")
|
|
12435
|
+
return Array.isArray(value)
|
|
12436
|
+
? value
|
|
12437
|
+
.map(function (each) { var _a; return typeof each === "object" ? ((_a = each === null || each === void 0 ? void 0 : each.name) !== null && _a !== void 0 ? _a : "") : each; })
|
|
12438
|
+
.join(", ") || null
|
|
12439
|
+
: ((_a = value.name) !== null && _a !== void 0 ? _a : null);
|
|
12440
|
+
return String(value);
|
|
12441
|
+
};
|
|
12442
|
+
// INFO: the stop's columns by name in the table's order, and the
|
|
12443
|
+
// same Edit as a Kanban card's pencil for those who can update
|
|
12340
12444
|
var infoWindowContent = function (id, data) {
|
|
12341
|
-
|
|
12342
|
-
|
|
12445
|
+
var rows = structure
|
|
12446
|
+
.filter(function (eachModel) {
|
|
12447
|
+
return eachModel.id !== mapSettings_1.title &&
|
|
12448
|
+
eachModel.id !== mapSettings_1.address &&
|
|
12449
|
+
eachModel.id !== pinGroup_1;
|
|
12450
|
+
})
|
|
12451
|
+
.map(function (eachModel) { return ({
|
|
12452
|
+
id: eachModel.id,
|
|
12453
|
+
name: eachModel.name,
|
|
12454
|
+
value: handleGetPopupValue_1(data[eachModel.id]),
|
|
12455
|
+
}); })
|
|
12456
|
+
.filter(function (eachRow) { return eachRow.value !== null; });
|
|
12457
|
+
return (react_1.default.createElement("div", { key: id, "data-testid": "map-info-window", className: "w-72 break-words font-normal" },
|
|
12458
|
+
data.group && (react_1.default.createElement("p", { className: "text-primary-500 font-semibold text-sm" }, handleGetPopupValue_1(data.group))),
|
|
12343
12459
|
react_1.default.createElement("p", { className: "text-sm" }, data.address),
|
|
12344
|
-
react_1.default.createElement("hr", { className: "my-
|
|
12345
|
-
|
|
12346
|
-
.
|
|
12347
|
-
|
|
12348
|
-
|
|
12349
|
-
|
|
12350
|
-
})
|
|
12351
|
-
.map(function (eachKey) { return (react_1.default.createElement("p", { key: eachKey, className: "text-sm" },
|
|
12352
|
-
eachKey,
|
|
12353
|
-
": ",
|
|
12354
|
-
data[eachKey])); })));
|
|
12460
|
+
rows.length > 0 && react_1.default.createElement("hr", { className: "my-3" }),
|
|
12461
|
+
rows.map(function (eachRow) { return (react_1.default.createElement("p", { key: eachRow.id, className: "text-sm" },
|
|
12462
|
+
react_1.default.createElement("span", { className: "text-gray-500" },
|
|
12463
|
+
eachRow.name,
|
|
12464
|
+
": "),
|
|
12465
|
+
eachRow.value)); }),
|
|
12466
|
+
recordEditAction && (react_1.default.createElement("button", { type: "button", "data-testid": "map-info-edit", className: "mt-3 w-full rounded-md bg-primary-500 px-3 py-1.5 text-sm font-medium text-white hover:bg-primary-600", onClick: function () { return recordEditAction(id); } }, "Edit"))));
|
|
12355
12467
|
};
|
|
12356
12468
|
var infoWindowHeaderComponent = function (_, data) {
|
|
12357
12469
|
return (react_1.default.createElement("p", { className: "text-primary-500 font-semibold text-base" }, data.title));
|
|
@@ -12359,9 +12471,9 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
12359
12471
|
spaceTableData.map(function (eachData) {
|
|
12360
12472
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
12361
12473
|
var eachMarkerColor = "white";
|
|
12362
|
-
if (
|
|
12363
|
-
if (eachData[
|
|
12364
|
-
eachMarkerColor = markerColorMap_1[eachData[
|
|
12474
|
+
if (pinGroup_1) {
|
|
12475
|
+
if (eachData[pinGroup_1]) {
|
|
12476
|
+
eachMarkerColor = markerColorMap_1[eachData[pinGroup_1]];
|
|
12365
12477
|
}
|
|
12366
12478
|
}
|
|
12367
12479
|
if (eachData[mapSettings_1.address]) {
|
|
@@ -12377,8 +12489,8 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
12377
12489
|
? ((_e = eachData[mapSettings_1.title]) !== null && _e !== void 0 ? _e : "")
|
|
12378
12490
|
: "",
|
|
12379
12491
|
address: (_g = (_f = eachData[mapSettings_1.address]) === null || _f === void 0 ? void 0 : _f.name) !== null && _g !== void 0 ? _g : "",
|
|
12380
|
-
group:
|
|
12381
|
-
? ((_h = eachData[
|
|
12492
|
+
group: pinGroup_1
|
|
12493
|
+
? ((_h = eachData[pinGroup_1]) !== null && _h !== void 0 ? _h : "")
|
|
12382
12494
|
: "",
|
|
12383
12495
|
},
|
|
12384
12496
|
};
|
|
@@ -12389,7 +12501,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
12389
12501
|
eachKey !== "update" &&
|
|
12390
12502
|
eachKey !== mapSettings_1.title &&
|
|
12391
12503
|
eachKey !== mapSettings_1.address &&
|
|
12392
|
-
eachKey !==
|
|
12504
|
+
eachKey !== pinGroup_1) {
|
|
12393
12505
|
markerData_1["data"][eachKey] = eachData[eachKey];
|
|
12394
12506
|
}
|
|
12395
12507
|
});
|
|
@@ -12398,7 +12510,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
12398
12510
|
return null;
|
|
12399
12511
|
});
|
|
12400
12512
|
return (react_1.default.createElement("div", { className: "w-full h-[700px]" },
|
|
12401
|
-
react_1.default.createElement(mapView_1.MapView, { ref: mapViewRef, markerList: mapMarkerList_1,
|
|
12513
|
+
react_1.default.createElement(mapView_1.MapView, { ref: mapViewRef, markerList: mapMarkerList_1, routeList: (0, routes_1.handleBuildRoutesFromRows)(spaceTableData, mapMarkerList_1, mapSettings_1.routeBy, mapSettings_1.routeOrder, mapSettings_1.routeStart, mapSettings_1.routeEnd), onChangeRoute: canUpdateRecord && mapSettings_1.routeBy
|
|
12514
|
+
? function (change) {
|
|
12515
|
+
return handleSaveRecordChanges((0, routes_1.handleBuildRouteChanges)(spaceTableData, mapSettings_1.routeBy, mapSettings_1.routeOrder, change, [mapSettings_1.routeStart, mapSettings_1.routeEnd]));
|
|
12516
|
+
}
|
|
12517
|
+
: undefined, enableMapControl: true, enablePolygonSelect: canBatchUpdate || canDeleteRecord, infoWindowComponent: infoWindowContent, infoWindowHeaderComponent: infoWindowHeaderComponent, handleSelectPolygon: canBatchUpdate || canDeleteRecord
|
|
12402
12518
|
? function (ids) { return setSelectedIds(ids); }
|
|
12403
12519
|
: undefined, handleUpdateOnClick: canBatchUpdate ? function () { return setBatchUpdateModal(true); } : undefined, handleDeleteOnClick: canDeleteRecord
|
|
12404
12520
|
? function () {
|
|
@@ -12439,7 +12555,12 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
12439
12555
|
react_1.default.createElement("div", { className: "mt-5" },
|
|
12440
12556
|
react_1.default.createElement(newKanban_1.NewKanban, { className: "inline-flex", data: kanbanData, loading: tableLoading, groupBy: groupBy_1, groupId: kanbanTitle_2 !== null && kanbanTitle_2 !== void 0 ? kanbanTitle_2 : "", groupLabel: groupLabel_1.length > 0 ? groupLabel_1 : undefined, nullColumn: nullColumn_1, alertMessage: kanbanData.length === limit
|
|
12441
12557
|
? "Data has exceeded limit, please apply filters"
|
|
12442
|
-
: "", groupCluster: kanbanSettings === null || kanbanSettings === void 0 ? void 0 : kanbanSettings.groupCluster,
|
|
12558
|
+
: "", groupCluster: kanbanSettings === null || kanbanSettings === void 0 ? void 0 : kanbanSettings.groupCluster, sortBy: (kanbanSettings === null || kanbanSettings === void 0 ? void 0 : kanbanSettings.sortBy)
|
|
12559
|
+
? {
|
|
12560
|
+
id: kanbanSettings.sortBy,
|
|
12561
|
+
type: kanbanSettings.sortType,
|
|
12562
|
+
}
|
|
12563
|
+
: undefined, subGroupBy: (kanbanSettings === null || kanbanSettings === void 0 ? void 0 : kanbanSettings.subGroupBy) || undefined, renderSubGroupLabel: function (value, cards) { var _a, _b; return (_b = (_a = cards[0]) === null || _a === void 0 ? void 0 : _a.subGroupLabel) !== null && _b !== void 0 ? _b : value; }, draggable: canUpdateRecord, droppable: canUpdateRecord && kanbanDroppable, onArrangeData: canUpdateRecord ? handleSaveRecordChanges : undefined, mobileView: (_58 = props.bareSettings) === null || _58 === void 0 ? void 0 : _58.bareListMobileView, onUpdateData: canUpdateRecord
|
|
12443
12564
|
? function (cardId, _fromCol, toCol) { return __awaiter(void 0, void 0, void 0, function () {
|
|
12444
12565
|
var _a;
|
|
12445
12566
|
return __generator(this, function (_b) {
|