blixify-ui-web 0.1.159 → 0.1.161
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 +1 -1
- package/lib/components/data/dataTemplate/index.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/index.js +65 -19
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/data/display.d.ts +2 -1
- package/lib/components/data/display.d.ts.map +1 -1
- package/lib/components/data/display.js +86 -79
- package/lib/components/data/display.js.map +1 -1
- package/lib/components/data/testData.d.ts +4 -2
- package/lib/components/data/testData.d.ts.map +1 -1
- package/lib/components/data/testData.js +5 -3
- package/lib/components/data/testData.js.map +1 -1
- package/lib/components/display/table/index.d.ts.map +1 -1
- package/lib/components/display/table/index.js +0 -1
- package/lib/components/display/table/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ interface Organise {
|
|
|
16
16
|
onChangeSort?: (value: Sort) => void;
|
|
17
17
|
onChangeFilter?: (value: any) => void;
|
|
18
18
|
onChangeTabs?: (value: ExtendedTabs[]) => void;
|
|
19
|
-
debugOnChangeType?: (
|
|
19
|
+
debugOnChangeType?: (type: string, selectedId?: string) => void;
|
|
20
20
|
renderReferenceLabelOptions?: (spaceId?: string, includeReference?: boolean, type?: string) => Option[];
|
|
21
21
|
renderReferenceSpaceOptions?: () => Option[];
|
|
22
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAMN,MAAM,OAAO,CAAC;AAkBf,OAAO,EAAE,MAAM,EAAU,MAAM,oBAAoB,CAAC;AAKpD,OAAO,EAAQ,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAMN,MAAM,OAAO,CAAC;AAkBf,OAAO,EAAE,MAAM,EAAU,MAAM,oBAAoB,CAAC;AAKpD,OAAO,EAAQ,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAavD,OAAO,EAAS,IAAI,EAAE,MAAM,cAAc,CAAC;AAI3C,OAAO,EAAmB,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAEpE,UAAU,QAAQ;IAChB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;IAC9B,eAAe,CAAC,EAAE,eAAe,EAAE,CAAC;IACpC,YAAY,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,EAAE,CAAC;IACvD,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,IAAI,CAAC;IACrC,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;IAC/C,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAChE,2BAA2B,CAAC,EAAE,CAC5B,OAAO,CAAC,EAAE,MAAM,EAChB,gBAAgB,CAAC,EAAE,OAAO,EAC1B,IAAI,CAAC,EAAE,MAAM,KACV,MAAM,EAAE,CAAC;IACd,2BAA2B,CAAC,EAAE,MAAM,MAAM,EAAE,CAAC;CAC9C;AAED,UAAU,IAAI;IACZ,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,UAAU,KAAM,SAAQ,SAAS;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IAC1C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,GAAG,CAAC,EAAE;QACJ,KAAK,CAAC,EAAE,GAAG,CAAC;QACZ,QAAQ,CAAC,EAAE,GAAG,CAAC;QACf,QAAQ,CAAC,EAAE,GAAG,CAAC;QACf,YAAY,CAAC,EAAE,GAAG,CAAC;QACnB,IAAI,EAAE,GAAG,CAAC;QACV,MAAM,EAAE,GAAG,CAAC;QACZ,UAAU,EAAE,GAAG,CAAC;QAChB,UAAU,CAAC,EAAE,GAAG,CAAC;KAClB,CAAC;IACF,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAoCD,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,qBAywGxC"}
|
|
@@ -397,11 +397,15 @@ function DataTemplate(props) {
|
|
|
397
397
|
setFilterReferenceDate(clonedRageFilter);
|
|
398
398
|
};
|
|
399
399
|
var handleGetItemError = function (err) {
|
|
400
|
+
var _a;
|
|
400
401
|
setTableLoading(false);
|
|
401
402
|
setModalVisible(false);
|
|
402
403
|
setLoading(false);
|
|
403
404
|
if (props.type === "update" || props.type === "read") {
|
|
404
|
-
|
|
405
|
+
if ((_a = props.organise) === null || _a === void 0 ? void 0 : _a.debugOnChangeType)
|
|
406
|
+
props.organise.debugOnChangeType("list", "");
|
|
407
|
+
else
|
|
408
|
+
handleNavigate();
|
|
405
409
|
}
|
|
406
410
|
else {
|
|
407
411
|
console.log("Data Retrieval Error - " + err.message);
|
|
@@ -496,7 +500,7 @@ function DataTemplate(props) {
|
|
|
496
500
|
dataForm.append("data[assetParentId]", assetParentId);
|
|
497
501
|
dataForm.append("data[assetFileName]", assetFileName);
|
|
498
502
|
if (bucketName)
|
|
499
|
-
dataForm.append("bucketName", bucketName);
|
|
503
|
+
dataForm.append("data[bucketName]", bucketName);
|
|
500
504
|
_b.label = 1;
|
|
501
505
|
case 1:
|
|
502
506
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -1138,7 +1142,7 @@ function DataTemplate(props) {
|
|
|
1138
1142
|
}
|
|
1139
1143
|
else {
|
|
1140
1144
|
if (((_a = props.organise) === null || _a === void 0 ? void 0 : _a.debugOnChangeType) && props.id !== "new") {
|
|
1141
|
-
props.organise.debugOnChangeType("list");
|
|
1145
|
+
props.organise.debugOnChangeType("list", "");
|
|
1142
1146
|
}
|
|
1143
1147
|
else
|
|
1144
1148
|
handleNavigate("".concat(props.localURLEndpoint, "?type=list&collection=").concat(props.collectionId) +
|
|
@@ -1209,11 +1213,22 @@ function DataTemplate(props) {
|
|
|
1209
1213
|
}
|
|
1210
1214
|
};
|
|
1211
1215
|
var handleUpdateChangeData = function (data) {
|
|
1216
|
+
var _a;
|
|
1212
1217
|
if (modalVisible && selectedObjectStructureId) {
|
|
1213
1218
|
setSelectedObjectData(data);
|
|
1214
1219
|
}
|
|
1215
1220
|
else if (batchUpdateModal && batchUpdateData.columnId) {
|
|
1216
|
-
|
|
1221
|
+
var selectedModel = props.model.find(function (eachModel) { return eachModel.id === batchUpdateData.columnId; });
|
|
1222
|
+
if (selectedModel) {
|
|
1223
|
+
var clonedData = JSON.parse(JSON.stringify(data));
|
|
1224
|
+
(0, display_1.handleCastDataAttribute)(selectedModel, data, clonedData, true);
|
|
1225
|
+
setBatchUpdateData({
|
|
1226
|
+
columnId: batchUpdateData.columnId,
|
|
1227
|
+
columnData: (_a = {},
|
|
1228
|
+
_a[batchUpdateData.columnId] = clonedData[selectedModel.id],
|
|
1229
|
+
_a),
|
|
1230
|
+
});
|
|
1231
|
+
}
|
|
1217
1232
|
}
|
|
1218
1233
|
else {
|
|
1219
1234
|
setSelectedData(data);
|
|
@@ -1591,6 +1606,7 @@ function DataTemplate(props) {
|
|
|
1591
1606
|
setModalVisible(modalVisible);
|
|
1592
1607
|
if (!modalVisible) {
|
|
1593
1608
|
setExcelModal(false);
|
|
1609
|
+
setQueryList([]);
|
|
1594
1610
|
setExportExcel(false);
|
|
1595
1611
|
setExportLink("");
|
|
1596
1612
|
setSelectedObjectId("");
|
|
@@ -1621,6 +1637,13 @@ function DataTemplate(props) {
|
|
|
1621
1637
|
window.location.replace(href);
|
|
1622
1638
|
}
|
|
1623
1639
|
};
|
|
1640
|
+
var handleBreadcrumbNavigate = function () {
|
|
1641
|
+
var _a;
|
|
1642
|
+
if ((_a = props.organise) === null || _a === void 0 ? void 0 : _a.debugOnChangeType)
|
|
1643
|
+
props.organise.debugOnChangeType("list", "");
|
|
1644
|
+
else
|
|
1645
|
+
handleNavigate();
|
|
1646
|
+
};
|
|
1624
1647
|
//=====================================================================================
|
|
1625
1648
|
//SECTION: Render CSV
|
|
1626
1649
|
//=====================================================================================
|
|
@@ -1901,7 +1924,7 @@ function DataTemplate(props) {
|
|
|
1901
1924
|
});
|
|
1902
1925
|
};
|
|
1903
1926
|
var renderContent = function () {
|
|
1904
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1927
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1905
1928
|
var viewType = (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.viewId) !== null && _b !== void 0 ? _b : "general";
|
|
1906
1929
|
var tabs = [
|
|
1907
1930
|
{
|
|
@@ -1971,7 +1994,7 @@ function DataTemplate(props) {
|
|
|
1971
1994
|
id: props.id,
|
|
1972
1995
|
}, onChangeData: handleRetrieveSelectedData, onError: handleGetItemError }),
|
|
1973
1996
|
!loading && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
1974
|
-
props.breadcrumb && (react_1.default.createElement(breadcrumb_1.Breadcrumb, { pages: pages, linkType: props.linkType, custom: props.custom, className: "mb-5" })),
|
|
1997
|
+
props.breadcrumb && (react_1.default.createElement(breadcrumb_1.Breadcrumb, { pages: pages, linkType: props.linkType, custom: props.custom, className: "mb-5", onClick: handleBreadcrumbNavigate })),
|
|
1975
1998
|
react_1.default.createElement("div", null,
|
|
1976
1999
|
react_1.default.createElement("div", { className: "flex flex-col justify-between py-2 sm:items-center sm:flex-row" },
|
|
1977
2000
|
react_1.default.createElement("div", { className: "flex flex-col" },
|
|
@@ -1980,7 +2003,7 @@ function DataTemplate(props) {
|
|
|
1980
2003
|
((_g = props.edit) === null || _g === void 0 ? void 0 : _g.deleteBtn) && isEditor && (react_1.default.createElement("div", { className: "flex flex-col sm:flex-row" },
|
|
1981
2004
|
react_1.default.createElement("div", { className: "w-full mt-5 ml-0 sm:mt-0 sm:ml-3" }, debug ? (react_1.default.createElement(button_1.Button, { text: "Update", className: "w-full", type: "normal", onClick: function () {
|
|
1982
2005
|
var _a, _b;
|
|
1983
|
-
(_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.debugOnChangeType) === null || _b === void 0 ? void 0 : _b.call(_a, "update");
|
|
2006
|
+
(_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.debugOnChangeType) === null || _b === void 0 ? void 0 : _b.call(_a, "update", props.id);
|
|
1984
2007
|
} })) : (react_1.default.createElement(link_1.Link, { className: "w-full", href: "".concat(props.localURLEndpoint, "?data=").concat(props.id, "&type=update&collection=").concat(props.collectionId, "&view=general"), linkType: props.linkType, custom: props.custom },
|
|
1985
2008
|
react_1.default.createElement(button_1.Button, { text: "Update", className: "w-full", type: "normal" })))),
|
|
1986
2009
|
react_1.default.createElement(button_1.Button, { text: "Delete", className: "mt-3 ml-0 sm:mt-0 sm:ml-3", type: "danger", onClick: function () {
|
|
@@ -2010,7 +2033,7 @@ function DataTemplate(props) {
|
|
|
2010
2033
|
type: "get",
|
|
2011
2034
|
id: props.id,
|
|
2012
2035
|
}, onChangeData: handleRetrieveSelectedData, onError: handleGetItemError })),
|
|
2013
|
-
props.breadcrumb && (react_1.default.createElement(breadcrumb_1.Breadcrumb, { pages: pages, linkType: props.linkType, custom: props.custom, className: "mb-5" })),
|
|
2036
|
+
props.breadcrumb && (react_1.default.createElement(breadcrumb_1.Breadcrumb, { pages: pages, linkType: props.linkType, custom: props.custom, className: "mb-5", onClick: handleBreadcrumbNavigate })),
|
|
2014
2037
|
react_1.default.createElement("div", { className: "flex flex-col justify-between py-2 sm:items-center sm:flex-row" },
|
|
2015
2038
|
react_1.default.createElement("div", { className: "flex flex-col" },
|
|
2016
2039
|
react_1.default.createElement("p", { className: "text-xl font-medium" }, props.title),
|
|
@@ -2060,16 +2083,19 @@ function DataTemplate(props) {
|
|
|
2060
2083
|
react_1.default.createElement(iconButton_1.IconButton, { className: "bg-primary-100 mr-2", icon: react_1.default.createElement(outline_1.FunnelIcon, { className: "h-7 w-7 text-primary-500" }), onClick: function () {
|
|
2061
2084
|
handlePopUpModal(true, "filter");
|
|
2062
2085
|
} }),
|
|
2063
|
-
react_1.default.createElement(
|
|
2064
|
-
|
|
2086
|
+
((_l = props.organise) === null || _l === void 0 ? void 0 : _l.debugOnChangeType) ? (react_1.default.createElement(button_1.Button, { text: "Add", type: "normal", onClick: function () {
|
|
2087
|
+
var _a, _b;
|
|
2088
|
+
(_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.debugOnChangeType) === null || _b === void 0 ? void 0 : _b.call(_a, "update", "new");
|
|
2089
|
+
} })) : (react_1.default.createElement(link_1.Link, { className: "mr-2", href: "".concat(props.localURLEndpoint, "?data=new&type=update&collection=").concat(props.collectionId), linkType: props.linkType, custom: props.custom },
|
|
2090
|
+
react_1.default.createElement(button_1.Button, { text: "Add", type: "normal" }))),
|
|
2065
2091
|
react_1.default.createElement(popUp_1.PopUp, { ctaComp: react_1.default.createElement(iconButton_1.IconButton, { className: "bg-primary-100", icon: react_1.default.createElement(solid_1.EllipsisVerticalIcon, { className: "h-7 w-7 text-primary-500" }) }), renderComp: react_1.default.createElement("div", { className: "shadow-lg" }, moreButtonPopUp.map(function (eachPopup) { return (
|
|
2066
2092
|
//TODO: Crash on Next Js
|
|
2067
2093
|
// <Menu.Item>
|
|
2068
2094
|
react_1.default.createElement("span", { className: "block w-40 py-3 text-sm text-center text-gray-700 cursor-pointer hover:bg-gray-100", onClick: eachPopup.onClick }, eachPopup.text)
|
|
2069
2095
|
// </Menu.Item>
|
|
2070
2096
|
); })), lib: {
|
|
2071
|
-
Menu: (
|
|
2072
|
-
Transition: (
|
|
2097
|
+
Menu: (_m = props === null || props === void 0 ? void 0 : props.lib) === null || _m === void 0 ? void 0 : _m.Menu,
|
|
2098
|
+
Transition: (_o = props === null || props === void 0 ? void 0 : props.lib) === null || _o === void 0 ? void 0 : _o.Transition,
|
|
2073
2099
|
} }))),
|
|
2074
2100
|
react_1.default.createElement(tabs_1.Tabs, { tabs: tabs, selectedId: viewType, linkType: props.linkType, custom: props.custom, onClick: function (id) {
|
|
2075
2101
|
if (id === "blixify_new_tab") {
|
|
@@ -2291,6 +2317,7 @@ function DataTemplate(props) {
|
|
|
2291
2317
|
var renderGridAndListData = function (imageTag, type) {
|
|
2292
2318
|
var gridData = [];
|
|
2293
2319
|
spaceTableData.forEach(function (eachData) {
|
|
2320
|
+
var _a, _b;
|
|
2294
2321
|
var clonedEachData = JSON.parse(JSON.stringify(eachData));
|
|
2295
2322
|
var allValues = Object.values(clonedEachData);
|
|
2296
2323
|
var titleIndex = 1;
|
|
@@ -2327,7 +2354,7 @@ function DataTemplate(props) {
|
|
|
2327
2354
|
description: desc,
|
|
2328
2355
|
};
|
|
2329
2356
|
data[type === "grid" ? "imageUrl" : "img"] = clonedEachData[imageTag]
|
|
2330
|
-
? clonedEachData[imageTag].props.src
|
|
2357
|
+
? (_b = (_a = clonedEachData[imageTag]) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.src
|
|
2331
2358
|
: "";
|
|
2332
2359
|
gridData.push(data);
|
|
2333
2360
|
});
|
|
@@ -2353,7 +2380,11 @@ function DataTemplate(props) {
|
|
|
2353
2380
|
!selectAll && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Update", onClick: function () {
|
|
2354
2381
|
setBatchUpdateModal(true);
|
|
2355
2382
|
} }))), handleSelectAll: handleSelectAllPages, handleSelectedIds: handleSelectIds, header: renderTableHeader(), pageIndex: pageIndex, onClickRow: function (id) {
|
|
2356
|
-
|
|
2383
|
+
var _a;
|
|
2384
|
+
if ((_a = props.organise) === null || _a === void 0 ? void 0 : _a.debugOnChangeType)
|
|
2385
|
+
props.organise.debugOnChangeType("read", id);
|
|
2386
|
+
else
|
|
2387
|
+
handleNavigate("".concat(props.localURLEndpoint, "?data=").concat(id, "&type=read&collection=").concat(props.collectionId, "&view=general"));
|
|
2357
2388
|
}, linkType: props.linkType, custom: props.custom, newTabUrl: "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: handlePagination, className: "mt-5", lib: { axios: (_a = props.lib) === null || _a === void 0 ? void 0 : _a.axios }, devSettings: {
|
|
2358
2389
|
schemaEndpoint: devSettings.schemaEndpoint,
|
|
2359
2390
|
server: devSettings.server,
|
|
@@ -2374,9 +2405,16 @@ function DataTemplate(props) {
|
|
|
2374
2405
|
}); },
|
|
2375
2406
|
}, addable: {
|
|
2376
2407
|
active: ((_c = props.edit) === null || _c === void 0 ? void 0 : _c.listAddable) ? true : false,
|
|
2377
|
-
onAddData: function (data) {
|
|
2378
|
-
|
|
2379
|
-
|
|
2408
|
+
onAddData: function (data) { return __awaiter(_this, void 0, void 0, function () {
|
|
2409
|
+
return __generator(this, function (_a) {
|
|
2410
|
+
switch (_a.label) {
|
|
2411
|
+
case 0: return [4 /*yield*/, handleSubmitData("create", "", "", data)];
|
|
2412
|
+
case 1:
|
|
2413
|
+
_a.sent();
|
|
2414
|
+
return [2 /*return*/];
|
|
2415
|
+
}
|
|
2416
|
+
});
|
|
2417
|
+
}); },
|
|
2380
2418
|
} }));
|
|
2381
2419
|
}
|
|
2382
2420
|
else if (dataType === "read") {
|
|
@@ -2395,13 +2433,21 @@ function DataTemplate(props) {
|
|
|
2395
2433
|
else if (selectedTabData.viewType === "list") {
|
|
2396
2434
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
2397
2435
|
react_1.default.createElement(list_1.List, { paginationType: devSettings.server === "mongoServer" ? "page" : "cursor", list: renderGridAndListData(selectedTabData.viewImage, "list"), size: size, limit: limit, cursor: cursor, loading: tableLoading, pageIndex: pageIndex, onClickRow: function (id) {
|
|
2398
|
-
|
|
2436
|
+
var _a;
|
|
2437
|
+
if ((_a = props.organise) === null || _a === void 0 ? void 0 : _a.debugOnChangeType)
|
|
2438
|
+
props.organise.debugOnChangeType("read", id);
|
|
2439
|
+
else
|
|
2440
|
+
handleNavigate("".concat(props.localURLEndpoint, "?data=").concat(id, "&type=read&collection=").concat(props.collectionId, "&view=general"));
|
|
2399
2441
|
}, linkType: props.linkType, custom: props.custom, newTabUrl: "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: handlePagination, className: "mt-5" })));
|
|
2400
2442
|
}
|
|
2401
2443
|
else if (selectedTabData.viewType === "grid") {
|
|
2402
2444
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
2403
2445
|
react_1.default.createElement(grid_1.Grid, { paginationType: devSettings.server === "mongoServer" ? "page" : "cursor", data: renderGridAndListData(selectedTabData.viewImage, "grid"), size: size, limit: limit, cursor: cursor, loading: tableLoading, pageIndex: pageIndex, onClickData: function (id) {
|
|
2404
|
-
|
|
2446
|
+
var _a;
|
|
2447
|
+
if ((_a = props.organise) === null || _a === void 0 ? void 0 : _a.debugOnChangeType)
|
|
2448
|
+
props.organise.debugOnChangeType("read", id);
|
|
2449
|
+
else
|
|
2450
|
+
handleNavigate("".concat(props.localURLEndpoint, "?data=").concat(id, "&type=read&collection=").concat(props.collectionId, "&view=general"));
|
|
2405
2451
|
}, linkType: props.linkType, custom: props.custom, newTabUrl: "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: handlePagination, className: "mt-5" })));
|
|
2406
2452
|
}
|
|
2407
2453
|
else if (selectedTabData.renderComp) {
|