blixify-ui-web 0.3.7 → 0.3.9

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/action/iconButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,oBAAoB,CAAC;AAE5B,UAAU,KAAK;IACb,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;CAC5B;AAED,qBAAa,UAAW,SAAQ,SAAS,CAAC,KAAK,CAAC;IAC9C,MAAM;CAsCP"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/action/iconButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,oBAAoB,CAAC;AAE5B,UAAU,KAAK;IACb,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;CAC5B;AAED,qBAAa,UAAW,SAAQ,SAAS,CAAC,KAAK,CAAC;IAC9C,MAAM;CA0CP"}
@@ -69,6 +69,9 @@ var IconButton = /** @class */ (function (_super) {
69
69
  else {
70
70
  defaultClassName += "".concat(textColor, " ").concat(bgColor, " ").concat(hoverTextColor, " ").concat(hoverBgColor, " focus:ring-primary-500");
71
71
  }
72
+ if (this.props.disabled) {
73
+ defaultClassName += " opacity-50 cursor-not-allowed";
74
+ }
72
75
  return (react_1.default.createElement("button", { disabled: this.props.disabled, type: "button", className: defaultClassName, "aria-expanded": "false", onClick: this.props.onClick }, this.props.icon));
73
76
  }
74
77
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/action/iconButton/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAuD;AACvD,8BAA4B;AAY5B;IAAgC,8BAAgB;IAAhD;;IAuCA,CAAC;IAtCC,2BAAM,GAAN;;QACE,IAAI,OAAO,GAAG,MAAA,IAAI,CAAC,KAAK,CAAC,OAAO,mCAAI,EAAE,CAAC;QACvC,IAAI,CAAC,OAAO;YAAE,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC;QAC5E,IAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,gBAAgB,CAAC;QACzE,IAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ;YACtC,CAAC,CAAC,mBAAmB;YACrB,CAAC,CAAC,mBAAmB,CAAC;QACxB,IAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ;YACxC,CAAC,CAAC,kBAAkB;YACpB,CAAC,CAAC,qBAAqB,CAAC;QAE1B,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;YACpB,IAAI,gBAAgB,GAClB,yGAAyG,CAAC;YAC5G,IAAI,IAAI,CAAC,KAA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3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAQN,MAAM,OAAO,CAAC;AA0Df,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAO1B,eAAO,MAAM,YAAY,mFAu5KvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAQN,MAAM,OAAO,CAAC;AA0Df,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAO1B,eAAO,MAAM,YAAY,mFAg7KvB,CAAC"}
@@ -1939,12 +1939,12 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
1939
1939
  }); };
1940
1940
  var handleSubmitData = function (type, rowId, columnId, data, offlineId, isOfflineUpdate) { return __awaiter(void 0, void 0, void 0, function () {
1941
1941
  var selectedId_2, id, createSelectedData_1, uniqueDataStructure, uniqueColumnId, res, offlineDataResp, offlineData, tempData, err_13, offlineDataResp, tempData, selectedIndex_3, offlineData, err_14, dataToSubmit, operationType, selectedIndex_4, dataId, err_15;
1942
- var _a;
1943
- var _b, _c, _d, _e, _f;
1944
- return __generator(this, function (_g) {
1945
- switch (_g.label) {
1942
+ var _a, _b;
1943
+ var _c, _d, _e, _f, _g, _h;
1944
+ return __generator(this, function (_j) {
1945
+ switch (_j.label) {
1946
1946
  case 0:
1947
- _g.trys.push([0, 29, , 30]);
1947
+ _j.trys.push([0, 31, , 32]);
1948
1948
  selectedId_2 = "";
1949
1949
  if (type === "update")
1950
1950
  selectedId_2 = rowId !== null && rowId !== void 0 ? rowId : "";
@@ -1964,7 +1964,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
1964
1964
  id = (0, uuid_1.v4)();
1965
1965
  }
1966
1966
  else
1967
- id = (_b = props.id) !== null && _b !== void 0 ? _b : "";
1967
+ id = (_c = props.id) !== null && _c !== void 0 ? _c : "";
1968
1968
  if (offlineId) {
1969
1969
  selectedId_2 = offlineId;
1970
1970
  id = offlineId;
@@ -1974,14 +1974,14 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
1974
1974
  return [3 /*break*/, 3];
1975
1975
  case 1: return [4 /*yield*/, handleUploadImage(id, data)];
1976
1976
  case 2:
1977
- createSelectedData_1 = _g.sent();
1978
- _g.label = 3;
1977
+ createSelectedData_1 = _j.sent();
1978
+ _j.label = 3;
1979
1979
  case 3:
1980
1980
  uniqueDataStructure = props.model.filter(function (eachStructure) {
1981
1981
  return eachStructure.unique;
1982
1982
  });
1983
1983
  uniqueColumnId = uniqueDataStructure.length > 0 ? uniqueDataStructure[0].id : undefined;
1984
- if ((_c = props.bareSettings) === null || _c === void 0 ? void 0 : _c.bareUpdatePrefill) {
1984
+ if ((_d = props.bareSettings) === null || _d === void 0 ? void 0 : _d.bareUpdatePrefill) {
1985
1985
  props.bareSettings.bareUpdatePrefill(selectedData).map(function (eachField) {
1986
1986
  var key = eachField.key, value = eachField.value;
1987
1987
  createSelectedData_1[key] = value;
@@ -1993,13 +1993,13 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
1993
1993
  if (!showId)
1994
1994
  createSelectedData_1[serverId] = id;
1995
1995
  if (!isOffline) return [3 /*break*/, 9];
1996
- _g.label = 4;
1996
+ _j.label = 4;
1997
1997
  case 4:
1998
- _g.trys.push([4, 7, , 8]);
1998
+ _j.trys.push([4, 7, , 8]);
1999
1999
  return [4 /*yield*/, indexedDb_1.indexedDb.getValue("local", props.collectionId)];
2000
2000
  case 5:
2001
- offlineDataResp = _g.sent();
2002
- offlineData = (_d = offlineDataResp === null || offlineDataResp === void 0 ? void 0 : offlineDataResp.data) !== null && _d !== void 0 ? _d : [];
2001
+ offlineDataResp = _j.sent();
2002
+ offlineData = (_e = offlineDataResp === null || offlineDataResp === void 0 ? void 0 : offlineDataResp.data) !== null && _e !== void 0 ? _e : [];
2003
2003
  tempData = (0, updateModule_1.handleParseOfflineWrite)(selectedData, props.model);
2004
2004
  offlineData.push(tempData);
2005
2005
  return [4 /*yield*/, indexedDb_1.indexedDb.putValue("local", {
@@ -2007,11 +2007,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
2007
2007
  type: props.collectionId,
2008
2008
  })];
2009
2009
  case 6:
2010
- _g.sent();
2010
+ _j.sent();
2011
2011
  res = true;
2012
2012
  return [3 /*break*/, 8];
2013
2013
  case 7:
2014
- err_13 = _g.sent();
2014
+ err_13 = _j.sent();
2015
2015
  return [3 /*break*/, 8];
2016
2016
  case 8: return [3 /*break*/, 11];
2017
2017
  case 9: return [4 /*yield*/, writeServerQuery.call("create", {
@@ -2020,22 +2020,22 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
2020
2020
  })];
2021
2021
  case 10:
2022
2022
  //INFO: [CREATE] Create new data
2023
- res = _g.sent();
2024
- _g.label = 11;
2023
+ res = _j.sent();
2024
+ _j.label = 11;
2025
2025
  case 11: return [3 /*break*/, 20];
2026
2026
  case 12:
2027
2027
  if (!selectedId_2) return [3 /*break*/, 20];
2028
2028
  if (!(isOffline && !offlineId)) return [3 /*break*/, 18];
2029
- _g.label = 13;
2029
+ _j.label = 13;
2030
2030
  case 13:
2031
- _g.trys.push([13, 16, , 17]);
2031
+ _j.trys.push([13, 16, , 17]);
2032
2032
  return [4 /*yield*/, indexedDb_1.indexedDb.getValue("local", props.collectionId)];
2033
2033
  case 14:
2034
- offlineDataResp = _g.sent();
2034
+ offlineDataResp = _j.sent();
2035
2035
  tempData = (0, updateModule_1.handleParseOfflineWrite)(selectedData, props.model);
2036
2036
  tempData[serverId] = selectedId_2;
2037
2037
  selectedIndex_3 = -1;
2038
- offlineData = (_e = offlineDataResp === null || offlineDataResp === void 0 ? void 0 : offlineDataResp.data) !== null && _e !== void 0 ? _e : [];
2038
+ offlineData = (_f = offlineDataResp === null || offlineDataResp === void 0 ? void 0 : offlineDataResp.data) !== null && _f !== void 0 ? _f : [];
2039
2039
  offlineData.map(function (eachOfflineData, index) {
2040
2040
  var offlineDataId = eachOfflineData[serverId];
2041
2041
  if (selectedId_2 === offlineDataId)
@@ -2049,11 +2049,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
2049
2049
  type: props.collectionId,
2050
2050
  })];
2051
2051
  case 15:
2052
- _g.sent();
2052
+ _j.sent();
2053
2053
  res = true;
2054
2054
  return [3 /*break*/, 17];
2055
2055
  case 16:
2056
- err_14 = _g.sent();
2056
+ err_14 = _j.sent();
2057
2057
  return [3 /*break*/, 17];
2058
2058
  case 17: return [3 /*break*/, 20];
2059
2059
  case 18:
@@ -2079,8 +2079,8 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
2079
2079
  unique: uniqueColumnId,
2080
2080
  })];
2081
2081
  case 19:
2082
- res = _g.sent();
2083
- _g.label = 20;
2082
+ res = _j.sent();
2083
+ _j.label = 20;
2084
2084
  case 20:
2085
2085
  if (!(type === "update" || type === "create")) return [3 /*break*/, 26];
2086
2086
  if (!res) return [3 /*break*/, 25];
@@ -2096,19 +2096,19 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
2096
2096
  });
2097
2097
  return [4 /*yield*/, handleGetListData({ data: [tableData[selectedIndex_4]] }, "update", rowId)];
2098
2098
  case 21:
2099
- _g.sent();
2100
- _g.label = 22;
2099
+ _j.sent();
2100
+ _j.label = 22;
2101
2101
  case 22: return [3 /*break*/, 25];
2102
2102
  case 23: return [4 /*yield*/, handleGetListData({ data: [createSelectedData_1] }, "create")];
2103
2103
  case 24:
2104
- _g.sent();
2105
- _g.label = 25;
2104
+ _j.sent();
2105
+ _j.label = 25;
2106
2106
  case 25: return [3 /*break*/, 28];
2107
2107
  case 26:
2108
2108
  createSelectedData_1[serverId] = id;
2109
2109
  return [4 /*yield*/, handleGetListData({ data: [createSelectedData_1] }, selectedId_2 === "new" ? "create" : "update", id)];
2110
2110
  case 27:
2111
- _g.sent();
2111
+ _j.sent();
2112
2112
  setNotification({
2113
2113
  type: true,
2114
2114
  title: props.id === "new"
@@ -2118,15 +2118,20 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
2118
2118
  ? "Data sucessfully created"
2119
2119
  : "Data sucessfully updated",
2120
2120
  });
2121
- _g.label = 28;
2121
+ _j.label = 28;
2122
2122
  case 28:
2123
2123
  dataId = res ? id : "";
2124
- return [2 /*return*/, dataId];
2124
+ if (!((_g = props.bareSettings) === null || _g === void 0 ? void 0 : _g.bareUpdateHandlePostComplete)) return [3 /*break*/, 30];
2125
+ return [4 /*yield*/, props.bareSettings.bareUpdateHandlePostComplete(__assign((_b = {}, _b[serverId] = res, _b), createSelectedData_1))];
2125
2126
  case 29:
2126
- err_15 = _g.sent();
2127
+ _j.sent();
2128
+ _j.label = 30;
2129
+ case 30: return [2 /*return*/, dataId];
2130
+ case 31:
2131
+ err_15 = _j.sent();
2127
2132
  console.log("error", err_15);
2128
2133
  if (err_15.response && err_15.response.status === 400) {
2129
- if (typeof ((_f = err_15.response.data) === null || _f === void 0 ? void 0 : _f.err) === "string")
2134
+ if (typeof ((_h = err_15.response.data) === null || _h === void 0 ? void 0 : _h.err) === "string")
2130
2135
  setNotification({
2131
2136
  type: false,
2132
2137
  title: "Error",
@@ -2139,8 +2144,8 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
2139
2144
  msg: "Please contact our administrator for assistance or try your request again later. We apologize for any inconvenience",
2140
2145
  });
2141
2146
  }
2142
- return [3 /*break*/, 30];
2143
- case 30: return [2 /*return*/];
2147
+ return [3 /*break*/, 32];
2148
+ case 32: return [2 /*return*/];
2144
2149
  }
2145
2150
  });
2146
2151
  }); };
@@ -3693,7 +3698,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3693
3698
  return tabs;
3694
3699
  };
3695
3700
  var renderTabContent = function (tabs, dataType, viewType) {
3696
- 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;
3701
+ 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, _1, _2, _3;
3697
3702
  var selectedTabData = tabs.find(function (eachTab) {
3698
3703
  if (eachTab.id === viewType) {
3699
3704
  return eachTab;
@@ -3720,11 +3725,18 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3720
3725
  } })),
3721
3726
  !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 () {
3722
3727
  setBatchUpdateModal(true);
3723
- } }))), handleSelectAll: handleSelectAllPages, handleSelectedIds: handleSelectIds, header: renderTableHeader(), pageIndex: pageIndex, onClickRow: function (id) {
3728
+ } })),
3729
+ ((_e = props.bareSettings) === null || _e === void 0 ? void 0 : _e.bareListMultipleSelectAddtionalActions) &&
3730
+ ((_g = (_f = props.bareSettings) === null || _f === void 0 ? void 0 : _f.bareListMultipleSelectAddtionalActions) === null || _g === void 0 ? void 0 : _g.map(function (eachButton) {
3731
+ return (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm ".concat(eachButton.className), text: eachButton.text, onClick: function () {
3732
+ var _a, _b;
3733
+ (_a = eachButton.onClick) === null || _a === void 0 ? void 0 : _a.call(eachButton, selectedIds, selectAll, (_b = renderImpSearchFilterConditions()) !== null && _b !== void 0 ? _b : []);
3734
+ } }));
3735
+ }))), handleSelectAll: handleSelectAllPages, handleSelectedIds: handleSelectIds, header: renderTableHeader(), pageIndex: pageIndex, onClickRow: function (id) {
3724
3736
  var _a, _b;
3725
3737
  (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
3726
- }, 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: {
3727
- active: ((_f = props.edit) === null || _f === void 0 ? void 0 : _f.listEditable) ? true : false,
3738
+ }, 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: (_h = props.lib) === null || _h === void 0 ? void 0 : _h.axios }, devSettings: props.devSettings, bareSettings: props.bareSettings, editable: {
3739
+ active: ((_j = props.edit) === null || _j === void 0 ? void 0 : _j.listEditable) ? true : false,
3728
3740
  onUpdateData: function (rowId, columnId, data) { return __awaiter(void 0, void 0, void 0, function () {
3729
3741
  return __generator(this, function (_a) {
3730
3742
  switch (_a.label) {
@@ -3736,7 +3748,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3736
3748
  });
3737
3749
  }); },
3738
3750
  }, addable: {
3739
- active: ((_g = props.edit) === null || _g === void 0 ? void 0 : _g.listAddable) ? true : false,
3751
+ active: ((_k = props.edit) === null || _k === void 0 ? void 0 : _k.listAddable) ? true : false,
3740
3752
  onAddData: function (data) { return __awaiter(void 0, void 0, void 0, function () {
3741
3753
  return __generator(this, function (_a) {
3742
3754
  switch (_a.label) {
@@ -3747,11 +3759,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3747
3759
  }
3748
3760
  });
3749
3761
  }); },
3750
- }, darkMode: (_h = props.organise) === null || _h === void 0 ? void 0 : _h.darkMode, hidePagination: (_j = props.organise) === null || _j === void 0 ? void 0 : _j.hidePagination }));
3762
+ }, darkMode: (_l = props.organise) === null || _l === void 0 ? void 0 : _l.darkMode, hidePagination: (_m = props.organise) === null || _m === void 0 ? void 0 : _m.hidePagination }));
3751
3763
  }
3752
3764
  else if (dataType === "read") {
3753
3765
  return (react_1.default.createElement(react_1.default.Fragment, null,
3754
- 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)
3766
+ 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 && ((_o = props.bareSettings) === null || _o === void 0 ? void 0 : _o.bareReadReferenceView)
3755
3767
  ? props.bareSettings.bareReadReferenceView
3756
3768
  : undefined }),
3757
3769
  react_1.default.createElement("div", { className: "mt-8" }, renderListAddress(dataType)),
@@ -3759,34 +3771,34 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3759
3771
  }
3760
3772
  }
3761
3773
  else if (selectedTabData) {
3762
- if ((_l = props.bareSettings) === null || _l === void 0 ? void 0 : _l.bareListComponent) {
3774
+ if ((_p = props.bareSettings) === null || _p === void 0 ? void 0 : _p.bareListComponent) {
3763
3775
  return (react_1.default.createElement(react_1.default.Fragment, null,
3764
3776
  props.bareSettings.bareListComponent(tableData, spaceTableData, tableLoading),
3765
- !((_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 }))));
3777
+ !((_q = props.organise) === null || _q === void 0 ? void 0 : _q.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: (_r = props.organise) === null || _r === void 0 ? void 0 : _r.darkMode }))));
3766
3778
  }
3767
3779
  else if (selectedTabData.viewType === "iframe") {
3768
- 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 }));
3780
+ return (react_1.default.createElement("iframe", { id: "blixify-iframe", className: "w-full mt-5", style: { height: "70vh" }, src: (_s = selectedTabData === null || selectedTabData === void 0 ? void 0 : selectedTabData.iframeSrc) !== null && _s !== void 0 ? _s : "", title: (_t = selectedTabData === null || selectedTabData === void 0 ? void 0 : selectedTabData.id) !== null && _t !== void 0 ? _t : "", onLoad: props.onLoadIframe }));
3769
3781
  }
3770
3782
  else if (selectedTabData.viewType === "list") {
3771
3783
  return (react_1.default.createElement(react_1.default.Fragment, null,
3772
3784
  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" },
3773
- selectedIds.length > 0 && !((_r = props.edit) === null || _r === void 0 ? void 0 : _r.disabledUpdate) && (react_1.default.createElement(react_1.default.Fragment, null,
3785
+ selectedIds.length > 0 && !((_u = props.edit) === null || _u === void 0 ? void 0 : _u.disabledUpdate) && (react_1.default.createElement(react_1.default.Fragment, null,
3774
3786
  react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Change to Draft", disable: loading, onClick: function () {
3775
3787
  handleBatchDraftData();
3776
3788
  } }),
3777
3789
  react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Clone Items", disable: loading, onClick: function () {
3778
3790
  handleCloneSelectedData();
3779
3791
  } }))),
3780
- ((_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 () {
3792
+ ((_v = props.edit) === null || _v === void 0 ? void 0 : _v.deleteBtn) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm text-red-500 hover:text-red-600", text: "Delete", onClick: function () {
3781
3793
  handleGenerateDeletePasscode();
3782
3794
  setDeleteModal(true);
3783
3795
  } })),
3784
- !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 () {
3796
+ !isFirebase && !((_w = props.edit) === null || _w === void 0 ? void 0 : _w.disabledUpdate) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Update", onClick: function () {
3785
3797
  setBatchUpdateModal(true);
3786
3798
  } }))), onClickRow: function (id) {
3787
3799
  var _a, _b;
3788
3800
  (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
3789
- }, 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 })));
3801
+ }, 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: (_x = props.organise) === null || _x === void 0 ? void 0 : _x.hidePagination })));
3790
3802
  }
3791
3803
  else if (selectedTabData.viewType === "grid") {
3792
3804
  var isGridScroll = renderCheckGridScroll();
@@ -3794,7 +3806,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3794
3806
  react_1.default.createElement(grid_1.Grid, { paginationType: isGridScroll || isFirebase ? "cursor" : "page", data: renderGridAndListData(selectedTabData.viewImage, "grid"), size: size, limit: limit, cursor: cursor, loading: tableLoading, infinityScroll: isGridScroll, horizontalScroll: isGridScroll, pageIndex: pageIndex, onClickData: function (id) {
3795
3807
  var _a, _b;
3796
3808
  (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
3797
- }, 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 })));
3809
+ }, linkType: props.linkType, custom: props.custom, newTabUrl: "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: handlePagination, gridColClassName: (_y = props.bareSettings) === null || _y === void 0 ? void 0 : _y.bareListGridColClassName, className: "mt-5", hidePagination: (_z = props.organise) === null || _z === void 0 ? void 0 : _z.hidePagination })));
3798
3810
  }
3799
3811
  else if (selectedTabData.viewType === "calendar") {
3800
3812
  var calendarSettings_1 = selectedTab === null || selectedTab === void 0 ? void 0 : selectedTab.calendarSettings;
@@ -3904,7 +3916,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3904
3916
  else if (selectedTabData.viewType === "feeds") {
3905
3917
  var contentList_1 = [];
3906
3918
  var feedsSettings_1 = selectedTabData.feedsSettings;
3907
- 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);
3919
+ var customFeedsData = (_0 = feedsSettings_1 === null || feedsSettings_1 === void 0 ? void 0 : feedsSettings_1.customFeedsData) === null || _0 === void 0 ? void 0 : _0.call(feedsSettings_1, tableData, spaceTableData);
3908
3920
  if (customFeedsData && customFeedsData.length > 0) {
3909
3921
  customFeedsData.map(function (eachData) {
3910
3922
  var _a, _b, _c, _d;
@@ -3945,9 +3957,9 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3945
3957
  });
3946
3958
  }
3947
3959
  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" },
3948
- react_1.default.createElement(feeds_1.Feeds, { bold: true, content: contentList_1, darkMode: (_y = props.organise) === null || _y === void 0 ? void 0 : _y.darkMode }),
3960
+ react_1.default.createElement(feeds_1.Feeds, { bold: true, content: contentList_1, darkMode: (_1 = props.organise) === null || _1 === void 0 ? void 0 : _1.darkMode }),
3949
3961
  react_1.default.createElement("div", { className: "my-10" }),
3950
- 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 }))))));
3962
+ contentList_1.length > 0 && !((_2 = props.organise) === null || _2 === void 0 ? void 0 : _2.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: (_3 = props.organise) === null || _3 === void 0 ? void 0 : _3.darkMode }))))));
3951
3963
  }
3952
3964
  else if (selectedTabData.viewType === "map") {
3953
3965
  var mapSettings_1 = selectedTabData.mapSettings;