blixify-ui-web 1.3.9 → 1.3.10
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 +23 -7
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/data/dataTemplate/spaceModel.d.ts +5 -0
- package/lib/components/data/dataTemplate/spaceModel.d.ts.map +1 -1
- package/lib/components/display/mapView/index.d.ts +9 -1
- package/lib/components/display/mapView/index.d.ts.map +1 -1
- package/lib/components/display/mapView/index.js +117 -18
- package/lib/components/display/mapView/index.js.map +1 -1
- package/lib/components/display/mapView/routes.d.ts +42 -0
- package/lib/components/display/mapView/routes.d.ts.map +1 -0
- package/lib/components/display/mapView/routes.js +109 -0
- package/lib/components/display/mapView/routes.js.map +1 -0
- package/lib/components/display/newKanban/index.d.ts +20 -0
- package/lib/components/display/newKanban/index.d.ts.map +1 -1
- package/lib/components/display/newKanban/index.js +84 -3
- package/lib/components/display/newKanban/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":"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;AAoHf,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,mFAoqhBvB,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");
|
|
@@ -10077,7 +10078,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10077
10078
|
return true;
|
|
10078
10079
|
});
|
|
10079
10080
|
spaceTableData.forEach(function (eachData, index) {
|
|
10080
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
10081
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
10081
10082
|
var clonedEachData = JSON.parse(JSON.stringify(eachData));
|
|
10082
10083
|
var allValues = Object.values(clonedEachData);
|
|
10083
10084
|
var title = "";
|
|
@@ -10188,10 +10189,20 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10188
10189
|
if (type === "grid" || type === "kanban") {
|
|
10189
10190
|
if (kanbanGroupId)
|
|
10190
10191
|
data[kanbanGroupId] = selectedTData[kanbanGroupId];
|
|
10191
|
-
|
|
10192
|
+
// INFO: the lane's sort and sub-group read the record's own values;
|
|
10193
|
+
// a group's header shows the value as the table would
|
|
10194
|
+
var laneSettings = selectedTab === null || selectedTab === void 0 ? void 0 : selectedTab.kanbanSettings;
|
|
10195
|
+
if (type === "kanban" && (laneSettings === null || laneSettings === void 0 ? void 0 : laneSettings.sortBy))
|
|
10196
|
+
data[laneSettings.sortBy] = selectedTData[laneSettings.sortBy];
|
|
10197
|
+
if (type === "kanban" && (laneSettings === null || laneSettings === void 0 ? void 0 : laneSettings.subGroupBy)) {
|
|
10198
|
+
data[laneSettings.subGroupBy] =
|
|
10199
|
+
selectedTData[laneSettings.subGroupBy];
|
|
10200
|
+
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);
|
|
10201
|
+
}
|
|
10202
|
+
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
10203
|
if (gridComponent)
|
|
10193
10204
|
data[type === "grid" ? "extra" : "action"] = gridComponent;
|
|
10194
|
-
var eachDataTags = (
|
|
10205
|
+
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
10206
|
if (eachDataTags) {
|
|
10196
10207
|
if (Array.isArray(eachDataTags)) {
|
|
10197
10208
|
var gridTagList_1 = [];
|
|
@@ -10204,11 +10215,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10204
10215
|
data["tags"] = gridTagList_1;
|
|
10205
10216
|
}
|
|
10206
10217
|
}
|
|
10207
|
-
var ribbonText = (
|
|
10218
|
+
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
10219
|
if (ribbonText)
|
|
10209
10220
|
data["ribbonText"] = ribbonText;
|
|
10210
10221
|
var eachDataGridImage = "";
|
|
10211
|
-
var gridFallbackImg = (
|
|
10222
|
+
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
10223
|
var cellImageSrc = (0, utils_1.handleGetRenderedImageSrc)(clonedEachData[imageTag]);
|
|
10213
10224
|
if (cellImageSrc) {
|
|
10214
10225
|
eachDataGridImage = cellImageSrc;
|
|
@@ -12398,7 +12409,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
12398
12409
|
return null;
|
|
12399
12410
|
});
|
|
12400
12411
|
return (react_1.default.createElement("div", { className: "w-full h-[700px]" },
|
|
12401
|
-
react_1.default.createElement(mapView_1.MapView, { ref: mapViewRef, markerList: mapMarkerList_1, enableMapControl: true, enablePolygonSelect: canBatchUpdate || canDeleteRecord, infoWindowComponent: infoWindowContent, infoWindowHeaderComponent: infoWindowHeaderComponent, handleSelectPolygon: canBatchUpdate || canDeleteRecord
|
|
12412
|
+
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), enableMapControl: true, enablePolygonSelect: canBatchUpdate || canDeleteRecord, infoWindowComponent: infoWindowContent, infoWindowHeaderComponent: infoWindowHeaderComponent, handleSelectPolygon: canBatchUpdate || canDeleteRecord
|
|
12402
12413
|
? function (ids) { return setSelectedIds(ids); }
|
|
12403
12414
|
: undefined, handleUpdateOnClick: canBatchUpdate ? function () { return setBatchUpdateModal(true); } : undefined, handleDeleteOnClick: canDeleteRecord
|
|
12404
12415
|
? function () {
|
|
@@ -12439,7 +12450,12 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
12439
12450
|
react_1.default.createElement("div", { className: "mt-5" },
|
|
12440
12451
|
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
12452
|
? "Data has exceeded limit, please apply filters"
|
|
12442
|
-
: "", groupCluster: kanbanSettings === null || kanbanSettings === void 0 ? void 0 : kanbanSettings.groupCluster,
|
|
12453
|
+
: "", groupCluster: kanbanSettings === null || kanbanSettings === void 0 ? void 0 : kanbanSettings.groupCluster, sortBy: (kanbanSettings === null || kanbanSettings === void 0 ? void 0 : kanbanSettings.sortBy)
|
|
12454
|
+
? {
|
|
12455
|
+
id: kanbanSettings.sortBy,
|
|
12456
|
+
type: kanbanSettings.sortType,
|
|
12457
|
+
}
|
|
12458
|
+
: 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, mobileView: (_58 = props.bareSettings) === null || _58 === void 0 ? void 0 : _58.bareListMobileView, onUpdateData: canUpdateRecord
|
|
12443
12459
|
? function (cardId, _fromCol, toCol) { return __awaiter(void 0, void 0, void 0, function () {
|
|
12444
12460
|
var _a;
|
|
12445
12461
|
return __generator(this, function (_b) {
|