blixify-ui-web 0.2.99 → 0.3.1
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/chat/chatAnchor/index.d.ts +2 -0
- package/lib/components/chat/chatAnchor/index.d.ts.map +1 -1
- package/lib/components/chat/chatAnchor/index.js +8 -4
- package/lib/components/chat/chatAnchor/index.js.map +1 -1
- package/lib/components/data/dataTemplate/index.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/index.js +34 -18
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/data/dataTemplate/model.d.ts +5 -1
- package/lib/components/data/dataTemplate/model.d.ts.map +1 -1
- package/lib/components/data/updateModule.d.ts.map +1 -1
- package/lib/components/data/updateModule.js +32 -19
- 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 +1 -0
- package/lib/components/data/utils.js.map +1 -1
- package/lib/components/display/grid/index.d.ts +6 -0
- package/lib/components/display/grid/index.d.ts.map +1 -1
- package/lib/components/display/grid/index.js +15 -1
- package/lib/components/display/grid/index.js.map +1 -1
- package/lib/components/display/list/index.d.ts +17 -0
- package/lib/components/display/list/index.d.ts.map +1 -1
- package/lib/components/display/list/index.js +208 -37
- package/lib/components/display/list/index.js.map +1 -1
- package/lib/components/input/uploadInput/index.d.ts +2 -1
- package/lib/components/input/uploadInput/index.d.ts.map +1 -1
- package/lib/components/input/uploadInput/index.js +68 -10
- package/lib/components/input/uploadInput/index.js.map +1 -1
- package/package.json +2 -1
|
@@ -6,6 +6,8 @@ interface Props extends ChatProps {
|
|
|
6
6
|
positionOffset?: string;
|
|
7
7
|
greetingText?: string;
|
|
8
8
|
greetingCard?: boolean;
|
|
9
|
+
openIcon?: React.ReactNode | string;
|
|
10
|
+
closeIcon?: React.ReactNode | string;
|
|
9
11
|
}
|
|
10
12
|
export declare class ChatAnchor extends Component<Props> {
|
|
11
13
|
state: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/chatAnchor/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AACnD,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAY,KAAK,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AAE3D,UAAU,KAAM,SAAQ,SAAS;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/chatAnchor/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AACnD,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAY,KAAK,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AAE3D,UAAU,KAAM,SAAQ,SAAS;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;IACpC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;CACtC;AAED,qBAAa,UAAW,SAAQ,SAAS,CAAC,KAAK,CAAC;IAC9C,KAAK;;;MAGH;IAEF,iBAAiB;IAKjB,oBAAoB;IAIpB,kBAAkB,cAAe,KAAK,UAMpC;IACF,YAAY,aAIV;IAEF,oBAAoB,0BAqBlB;IAEF,MAAM;CAsDP"}
|
|
@@ -76,12 +76,16 @@ var ChatAnchor = /** @class */ (function (_super) {
|
|
|
76
76
|
});
|
|
77
77
|
};
|
|
78
78
|
_this.renderChatAnchorIcon = function () {
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
var _a = _this.props, open = _a.open, openIcon = _a.openIcon, closeIcon = _a.closeIcon;
|
|
80
|
+
var icon = open ? closeIcon : openIcon;
|
|
81
|
+
if (react_2.default.isValidElement(icon)) {
|
|
82
|
+
return icon;
|
|
81
83
|
}
|
|
82
|
-
|
|
83
|
-
return react_2.default.createElement(
|
|
84
|
+
if (typeof icon === "string") {
|
|
85
|
+
return (react_2.default.createElement("img", { src: icon, alt: "Chat Icon", className: "w-8 h-8 rounded-full" }));
|
|
84
86
|
}
|
|
87
|
+
// Fallback to default icons
|
|
88
|
+
return open ? (react_2.default.createElement(solid_1.XMarkIcon, { className: "w-8 h-8", color: "white" })) : (react_2.default.createElement(solid_1.ChatBubbleOvalLeftIcon, { className: "w-8 h-8", color: "white" }));
|
|
85
89
|
};
|
|
86
90
|
return _this;
|
|
87
91
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/chat/chatAnchor/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+C;AAC/C,mDAA8E;AAC9E,6CAAmD;AACnD,8BAA4B;AAC5B,wCAA2D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/chat/chatAnchor/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+C;AAC/C,mDAA8E;AAC9E,6CAAmD;AACnD,8BAA4B;AAC5B,wCAA2D;AAW3D;IAAgC,8BAAgB;IAAhD;;QACE,WAAK,GAAG;YACN,aAAa,EAAE,KAAK;YACpB,QAAQ,EAAE,IAAI;SACf,CAAC;QAWF,wBAAkB,GAAG,UAAC,SAAgB;YACpC,I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,QAAQ,EAAE,KAAK;6BAChB,CAAC;wBAFF,CAEE;wBAGJ,8BAAC,iBAAS,IAAC,SAAS,EAAC,oBAAoB,GAAG,CACxC;oBACN,qCAAG,SAAS,EAAC,+CAA+C,IACzD,IAAI,CAAC,KAAK,CAAC,YAAY;wBACtB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY;wBACzB,CAAC,CAAC,oCAAoC,CACtC,CACA,CACP,CACG,CACF,CACP,CAAC;IACJ,CAAC;IACH,iBAAC;AAAD,CAAC,AAzGD,CAAgC,iBAAS,GAyGxC;AAzGY,gCAAU"}
|
|
@@ -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;AAyDf,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;AAyDf,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAO1B,eAAO,MAAM,YAAY,mFA01KvB,CAAC"}
|
|
@@ -3641,7 +3641,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3641
3641
|
return gridData;
|
|
3642
3642
|
};
|
|
3643
3643
|
var renderTabContent = function (tabs, dataType, viewType) {
|
|
3644
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
3644
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
3645
3645
|
var selectedTabData = tabs.find(function (eachTab) {
|
|
3646
3646
|
if (eachTab.id === viewType) {
|
|
3647
3647
|
return eachTab;
|
|
@@ -3653,24 +3653,26 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3653
3653
|
if (viewType === "general") {
|
|
3654
3654
|
if (dataType === "list") {
|
|
3655
3655
|
return (react_1.default.createElement(table_1.Table, { showId: showId, paginationType: isFirebase ? "cursor" : "page", data: tableData, spaceData: spaceTableData, size: size, limit: limit, cursor: cursor, loading: tableLoading, checkbox: isEditor ? true : false, selectAll: selectAll, selectedIds: selectedIds, selectAllText: selectAll ? "from filter" : "", multiActionButton: react_1.default.createElement("div", { className: "flex flex-row space-x-3" },
|
|
3656
|
-
selectedIds.length > 0 &&
|
|
3656
|
+
selectedIds.length > 0 &&
|
|
3657
|
+
!((_a = props.edit) === null || _a === void 0 ? void 0 : _a.disabledUpdate) &&
|
|
3658
|
+
!((_b = props.bareSettings) === null || _b === void 0 ? void 0 : _b.bareHideTableExtraMultipleAction) && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
3657
3659
|
react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Change to Draft", disable: loading, onClick: function () {
|
|
3658
3660
|
handleBatchDraftData();
|
|
3659
3661
|
} }),
|
|
3660
3662
|
react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Clone Items", disable: loading, onClick: function () {
|
|
3661
3663
|
handleCloneSelectedData();
|
|
3662
3664
|
} }))),
|
|
3663
|
-
((
|
|
3665
|
+
((_c = props.edit) === null || _c === void 0 ? void 0 : _c.deleteBtn) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm text-red-500 hover:text-red-600", text: "Delete", onClick: function () {
|
|
3664
3666
|
handleGenerateDeletePasscode();
|
|
3665
3667
|
setDeleteModal(true);
|
|
3666
3668
|
} })),
|
|
3667
|
-
!isFirebase && !((
|
|
3669
|
+
!isFirebase && !((_d = props.edit) === null || _d === void 0 ? void 0 : _d.disabledUpdate) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Update", onClick: function () {
|
|
3668
3670
|
setBatchUpdateModal(true);
|
|
3669
3671
|
} }))), handleSelectAll: handleSelectAllPages, handleSelectedIds: handleSelectIds, header: renderTableHeader(), pageIndex: pageIndex, onClickRow: function (id) {
|
|
3670
3672
|
var _a, _b;
|
|
3671
3673
|
(_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
|
|
3672
|
-
}, 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: (
|
|
3673
|
-
active: ((
|
|
3674
|
+
}, 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: (_e = props.lib) === null || _e === void 0 ? void 0 : _e.axios }, devSettings: props.devSettings, bareSettings: props.bareSettings, editable: {
|
|
3675
|
+
active: ((_f = props.edit) === null || _f === void 0 ? void 0 : _f.listEditable) ? true : false,
|
|
3674
3676
|
onUpdateData: function (rowId, columnId, data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3675
3677
|
return __generator(this, function (_a) {
|
|
3676
3678
|
switch (_a.label) {
|
|
@@ -3682,7 +3684,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3682
3684
|
});
|
|
3683
3685
|
}); },
|
|
3684
3686
|
}, addable: {
|
|
3685
|
-
active: ((
|
|
3687
|
+
active: ((_g = props.edit) === null || _g === void 0 ? void 0 : _g.listAddable) ? true : false,
|
|
3686
3688
|
onAddData: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3687
3689
|
return __generator(this, function (_a) {
|
|
3688
3690
|
switch (_a.label) {
|
|
@@ -3693,11 +3695,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3693
3695
|
}
|
|
3694
3696
|
});
|
|
3695
3697
|
}); },
|
|
3696
|
-
}, darkMode: (
|
|
3698
|
+
}, darkMode: (_h = props.organise) === null || _h === void 0 ? void 0 : _h.darkMode, hidePagination: (_j = props.organise) === null || _j === void 0 ? void 0 : _j.hidePagination }));
|
|
3697
3699
|
}
|
|
3698
3700
|
else if (dataType === "read") {
|
|
3699
3701
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
3700
|
-
react_1.default.createElement(detailList_1.DetailList, { model: props.model, referenceModel: referenceModelSchema, className: "mt-5 bg-white rounded-md", title: "General Details", list: renderDetailListData(props.model), handleReferenceLink: !schemaPresent && ((
|
|
3702
|
+
react_1.default.createElement(detailList_1.DetailList, { model: props.model, referenceModel: referenceModelSchema, className: "mt-5 bg-white rounded-md", title: "General Details", list: renderDetailListData(props.model), handleReferenceLink: !schemaPresent && ((_k = props.bareSettings) === null || _k === void 0 ? void 0 : _k.bareReadReferenceView)
|
|
3701
3703
|
? props.bareSettings.bareReadReferenceView
|
|
3702
3704
|
: undefined }),
|
|
3703
3705
|
react_1.default.createElement("div", { className: "mt-8" }, renderListAddress(dataType)),
|
|
@@ -3705,27 +3707,41 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3705
3707
|
}
|
|
3706
3708
|
}
|
|
3707
3709
|
else if (selectedTabData) {
|
|
3708
|
-
if ((
|
|
3710
|
+
if ((_l = props.bareSettings) === null || _l === void 0 ? void 0 : _l.bareListComponent) {
|
|
3709
3711
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
3710
3712
|
props.bareSettings.bareListComponent(tableData, spaceTableData, tableLoading),
|
|
3711
|
-
!((
|
|
3713
|
+
!((_m = props.organise) === null || _m === void 0 ? void 0 : _m.hidePagination) && (react_1.default.createElement(pagination_1.Pagination, { data: tableData, size: size, limit: limit, cursor: cursor, pageIndex: pageIndex, paginationType: isFirebase ? "cursor" : "page", handleUpdatePageIndex: handlePagination, darkMode: (_o = props.organise) === null || _o === void 0 ? void 0 : _o.darkMode }))));
|
|
3712
3714
|
}
|
|
3713
3715
|
else if (selectedTabData.viewType === "iframe") {
|
|
3714
|
-
return (react_1.default.createElement("iframe", { id: "blixify-iframe", className: "w-full mt-5", style: { height: "70vh" }, src: (
|
|
3716
|
+
return (react_1.default.createElement("iframe", { id: "blixify-iframe", className: "w-full mt-5", style: { height: "70vh" }, src: (_p = selectedTabData === null || selectedTabData === void 0 ? void 0 : selectedTabData.iframeSrc) !== null && _p !== void 0 ? _p : "", title: (_q = selectedTabData === null || selectedTabData === void 0 ? void 0 : selectedTabData.id) !== null && _q !== void 0 ? _q : "", onLoad: props.onLoadIframe }));
|
|
3715
3717
|
}
|
|
3716
3718
|
else if (selectedTabData.viewType === "list") {
|
|
3717
3719
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
3718
|
-
react_1.default.createElement(list_1.List, { paginationType: isFirebase ? "cursor" : "page", list: renderGridAndListData(selectedTabData.viewImage, "list"), size: size, limit: limit, cursor: cursor, loading: tableLoading, pageIndex: pageIndex,
|
|
3720
|
+
react_1.default.createElement(list_1.List, { paginationType: isFirebase ? "cursor" : "page", list: renderGridAndListData(selectedTabData.viewImage, "list"), size: size, limit: limit, cursor: cursor, loading: tableLoading, pageIndex: pageIndex, checkbox: true, selectAll: selectAll, selectedIds: selectedIds, handleSelectAll: handleSelectAllPages, handleSelectedIds: handleSelectIds, selectAllText: selectAll ? "from filter" : "", multiActionButton: react_1.default.createElement("div", { className: "flex flex-row space-x-3" },
|
|
3721
|
+
selectedIds.length > 0 && !((_r = props.edit) === null || _r === void 0 ? void 0 : _r.disabledUpdate) && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
3722
|
+
react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Change to Draft", disable: loading, onClick: function () {
|
|
3723
|
+
handleBatchDraftData();
|
|
3724
|
+
} }),
|
|
3725
|
+
react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Clone Items", disable: loading, onClick: function () {
|
|
3726
|
+
handleCloneSelectedData();
|
|
3727
|
+
} }))),
|
|
3728
|
+
((_s = props.edit) === null || _s === void 0 ? void 0 : _s.deleteBtn) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm text-red-500 hover:text-red-600", text: "Delete", onClick: function () {
|
|
3729
|
+
handleGenerateDeletePasscode();
|
|
3730
|
+
setDeleteModal(true);
|
|
3731
|
+
} })),
|
|
3732
|
+
!isFirebase && !((_t = props.edit) === null || _t === void 0 ? void 0 : _t.disabledUpdate) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Update", onClick: function () {
|
|
3733
|
+
setBatchUpdateModal(true);
|
|
3734
|
+
} }))), onClickRow: function (id) {
|
|
3719
3735
|
var _a, _b;
|
|
3720
3736
|
(_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
|
|
3721
|
-
}, 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", hidePagination: (
|
|
3737
|
+
}, 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", hidePagination: (_u = props.organise) === null || _u === void 0 ? void 0 : _u.hidePagination })));
|
|
3722
3738
|
}
|
|
3723
3739
|
else if (selectedTabData.viewType === "grid") {
|
|
3724
3740
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
3725
3741
|
react_1.default.createElement(grid_1.Grid, { paginationType: isFirebase ? "cursor" : "page", data: renderGridAndListData(selectedTabData.viewImage, "grid"), size: size, limit: limit, cursor: cursor, loading: tableLoading, pageIndex: pageIndex, onClickData: function (id) {
|
|
3726
3742
|
var _a, _b;
|
|
3727
3743
|
(_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
|
|
3728
|
-
}, linkType: props.linkType, custom: props.custom, newTabUrl: "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: handlePagination, gridColClassName: (
|
|
3744
|
+
}, linkType: props.linkType, custom: props.custom, newTabUrl: "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: handlePagination, gridColClassName: (_v = props.bareSettings) === null || _v === void 0 ? void 0 : _v.bareListGridColClassName, className: "mt-5", hidePagination: (_w = props.organise) === null || _w === void 0 ? void 0 : _w.hidePagination })));
|
|
3729
3745
|
}
|
|
3730
3746
|
else if (selectedTabData.viewType === "calendar") {
|
|
3731
3747
|
var calendarSettings_1 = selectedTab === null || selectedTab === void 0 ? void 0 : selectedTab.calendarSettings;
|
|
@@ -3835,7 +3851,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3835
3851
|
else if (selectedTabData.viewType === "feeds") {
|
|
3836
3852
|
var contentList_1 = [];
|
|
3837
3853
|
var feedsSettings_1 = selectedTabData.feedsSettings;
|
|
3838
|
-
var customFeedsData = (
|
|
3854
|
+
var customFeedsData = (_x = feedsSettings_1 === null || feedsSettings_1 === void 0 ? void 0 : feedsSettings_1.customFeedsData) === null || _x === void 0 ? void 0 : _x.call(feedsSettings_1, tableData, spaceTableData);
|
|
3839
3855
|
if (customFeedsData && customFeedsData.length > 0) {
|
|
3840
3856
|
customFeedsData.map(function (eachData) {
|
|
3841
3857
|
var _a, _b, _c, _d;
|
|
@@ -3876,9 +3892,9 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3876
3892
|
});
|
|
3877
3893
|
}
|
|
3878
3894
|
return (react_1.default.createElement("div", { className: "mt-4" }, tableLoading ? (react_1.default.createElement(loading_1.Loading, null)) : (react_1.default.createElement("div", { className: "p-4 bg-white rounded-lg" },
|
|
3879
|
-
react_1.default.createElement(feeds_1.Feeds, { bold: true, content: contentList_1, darkMode: (
|
|
3895
|
+
react_1.default.createElement(feeds_1.Feeds, { bold: true, content: contentList_1, darkMode: (_y = props.organise) === null || _y === void 0 ? void 0 : _y.darkMode }),
|
|
3880
3896
|
react_1.default.createElement("div", { className: "my-10" }),
|
|
3881
|
-
contentList_1.length > 0 && !((
|
|
3897
|
+
contentList_1.length > 0 && !((_z = props.organise) === null || _z === void 0 ? void 0 : _z.hidePagination) && (react_1.default.createElement(pagination_1.Pagination, { data: tableData, size: size, limit: limit, cursor: cursor, pageIndex: pageIndex, paginationType: isFirebase ? "cursor" : "page", handleUpdatePageIndex: handlePagination, darkMode: (_0 = props.organise) === null || _0 === void 0 ? void 0 : _0.darkMode }))))));
|
|
3882
3898
|
}
|
|
3883
3899
|
else if (selectedTabData.viewType === "map") {
|
|
3884
3900
|
var mapSettings_1 = selectedTabData.mapSettings;
|