blixify-ui-web 1.2.63 → 1.2.65

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.
Files changed (86) hide show
  1. package/lib/components/action/radioList/index.d.ts +1 -0
  2. package/lib/components/action/radioList/index.d.ts.map +1 -1
  3. package/lib/components/action/radioList/index.js +16 -8
  4. package/lib/components/action/radioList/index.js.map +1 -1
  5. package/lib/components/advanced/popUp/index.d.ts +2 -0
  6. package/lib/components/advanced/popUp/index.d.ts.map +1 -1
  7. package/lib/components/advanced/popUp/index.js +1 -1
  8. package/lib/components/advanced/popUp/index.js.map +1 -1
  9. package/lib/components/data/dataTemplate/dataStateModel.d.ts +1 -0
  10. package/lib/components/data/dataTemplate/dataStateModel.d.ts.map +1 -1
  11. package/lib/components/data/dataTemplate/dataStateModel.js.map +1 -1
  12. package/lib/components/data/dataTemplate/index.d.ts.map +1 -1
  13. package/lib/components/data/dataTemplate/index.js +360 -311
  14. package/lib/components/data/dataTemplate/index.js.map +1 -1
  15. package/lib/components/data/dataTemplate/model.d.ts +3 -2
  16. package/lib/components/data/dataTemplate/model.d.ts.map +1 -1
  17. package/lib/components/data/dataTemplate/pagination.js +1 -1
  18. package/lib/components/data/dataTemplate/pagination.js.map +1 -1
  19. package/lib/components/data/dataWrapper/index.d.ts.map +1 -1
  20. package/lib/components/data/dataWrapper/index.js +3 -3
  21. package/lib/components/data/dataWrapper/index.js.map +1 -1
  22. package/lib/components/data/flexFilter/index.d.ts +6 -2
  23. package/lib/components/data/flexFilter/index.d.ts.map +1 -1
  24. package/lib/components/data/flexFilter/index.js +31 -27
  25. package/lib/components/data/flexFilter/index.js.map +1 -1
  26. package/lib/components/data/updateModule.d.ts +5 -0
  27. package/lib/components/data/updateModule.d.ts.map +1 -1
  28. package/lib/components/data/updateModule.js +43 -30
  29. package/lib/components/data/updateModule.js.map +1 -1
  30. package/lib/components/display/detailList/index.d.ts +1 -0
  31. package/lib/components/display/detailList/index.d.ts.map +1 -1
  32. package/lib/components/display/detailList/index.js +7 -3
  33. package/lib/components/display/detailList/index.js.map +1 -1
  34. package/lib/components/display/drawer/index.d.ts +2 -0
  35. package/lib/components/display/drawer/index.d.ts.map +1 -1
  36. package/lib/components/display/drawer/index.js +7 -2
  37. package/lib/components/display/drawer/index.js.map +1 -1
  38. package/lib/components/display/modal/index.d.ts +1 -0
  39. package/lib/components/display/modal/index.d.ts.map +1 -1
  40. package/lib/components/display/modal/index.js +6 -4
  41. package/lib/components/display/modal/index.js.map +1 -1
  42. package/lib/components/display/newCalendar/index.d.ts.map +1 -1
  43. package/lib/components/display/newCalendar/index.js +61 -27
  44. package/lib/components/display/newCalendar/index.js.map +1 -1
  45. package/lib/components/display/newFeeds/index.d.ts +2 -0
  46. package/lib/components/display/newFeeds/index.d.ts.map +1 -1
  47. package/lib/components/display/newFeeds/index.js +7 -7
  48. package/lib/components/display/newFeeds/index.js.map +1 -1
  49. package/lib/components/display/newKanban/index.d.ts.map +1 -1
  50. package/lib/components/display/newKanban/index.js +53 -17
  51. package/lib/components/display/newKanban/index.js.map +1 -1
  52. package/lib/components/display/newList/index.d.ts.map +1 -1
  53. package/lib/components/display/newList/index.js +11 -64
  54. package/lib/components/display/newList/index.js.map +1 -1
  55. package/lib/components/display/newPagination/index.d.ts +23 -0
  56. package/lib/components/display/newPagination/index.d.ts.map +1 -0
  57. package/lib/components/display/newPagination/index.js +69 -0
  58. package/lib/components/display/newPagination/index.js.map +1 -0
  59. package/lib/components/display/newTable/index.d.ts.map +1 -1
  60. package/lib/components/display/newTable/index.js +54 -199
  61. package/lib/components/display/newTable/index.js.map +1 -1
  62. package/lib/components/index.d.ts +1 -0
  63. package/lib/components/index.d.ts.map +1 -1
  64. package/lib/components/index.js +4 -2
  65. package/lib/components/index.js.map +1 -1
  66. package/lib/components/input/checkbox/index.d.ts.map +1 -1
  67. package/lib/components/input/checkbox/index.js +5 -1
  68. package/lib/components/input/checkbox/index.js.map +1 -1
  69. package/lib/components/input/datePicker/index.d.ts.map +1 -1
  70. package/lib/components/input/datePicker/index.js +12 -6
  71. package/lib/components/input/datePicker/index.js.map +1 -1
  72. package/lib/components/input/select/index.d.ts.map +1 -1
  73. package/lib/components/input/select/index.js +64 -17
  74. package/lib/components/input/select/index.js.map +1 -1
  75. package/lib/components/input/textArea/index.d.ts.map +1 -1
  76. package/lib/components/input/textArea/index.js +3 -1
  77. package/lib/components/input/textArea/index.js.map +1 -1
  78. package/lib/components/input/textInput/index.d.ts.map +1 -1
  79. package/lib/components/input/textInput/index.js +11 -4
  80. package/lib/components/input/textInput/index.js.map +1 -1
  81. package/lib/components/input/uploadInput/index.js +1 -1
  82. package/lib/components/input/uploadInput/index.js.map +1 -1
  83. package/lib/components/navigation/tabs/index.js +1 -1
  84. package/lib/components/navigation/tabs/index.js.map +1 -1
  85. package/lib/tail.css +2 -2
  86. package/package.json +1 -1
@@ -108,6 +108,7 @@ var calendar_1 = require("../../display/calendar");
108
108
  var detailList_1 = require("../../display/detailList");
109
109
  var emptyState_1 = require("../../display/emptyState");
110
110
  var feeds_1 = require("../../display/feeds");
111
+ var newFeeds_1 = require("../../display/newFeeds");
111
112
  var grid_1 = require("../../display/grid");
112
113
  var kanban_1 = require("../../display/kanban");
113
114
  var list_1 = require("../../display/list");
@@ -147,6 +148,7 @@ var authModal_1 = require("./authModal");
147
148
  var dataStateModel_1 = require("./dataStateModel");
148
149
  var indexedDb_1 = require("./indexedDb");
149
150
  var socket_1 = require("./socket");
151
+ var newPagination_1 = require("../../display/newPagination");
150
152
  var pagination_1 = require("./pagination");
151
153
  var referenceModal_1 = require("./referenceModal");
152
154
  var settingsModal_1 = require("./settingsModal");
@@ -179,7 +181,7 @@ var handleIsEmptyElement = function (element) {
179
181
  !((_a = element.props) === null || _a === void 0 ? void 0 : _a.children));
180
182
  };
181
183
  exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
182
- 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, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50;
184
+ 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, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64;
183
185
  var intialiseDefaultFilterValues = function () {
184
186
  var _a;
185
187
  var initialFilterSearch = {};
@@ -240,16 +242,16 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
240
242
  initialFilterReferenceDate: initialFilterReferenceDate,
241
243
  };
242
244
  };
243
- var _51 = intialiseDefaultFilterValues(), initialFilterSearch = _51.initialFilterSearch, initialFilterSearchParams = _51.initialFilterSearchParams, initialFilterSelection = _51.initialFilterSelection, initialFilterReference = _51.initialFilterReference, initialFilterReferenceDate = _51.initialFilterReferenceDate;
245
+ var _65 = intialiseDefaultFilterValues(), initialFilterSearch = _65.initialFilterSearch, initialFilterSearchParams = _65.initialFilterSearchParams, initialFilterSelection = _65.initialFilterSelection, initialFilterReference = _65.initialFilterReference, initialFilterReferenceDate = _65.initialFilterReferenceDate;
244
246
  // INFO: Persist view state hook — handles storage read/write for filter/sort/column state
245
- var _52 = (0, viewStatePersistence_1.usePersistedViewState)({
247
+ var _66 = (0, viewStatePersistence_1.usePersistedViewState)({
246
248
  mode: (_a = props.organise) === null || _a === void 0 ? void 0 : _a.persistViewState,
247
249
  collectionId: props.collectionId,
248
250
  uniqueLabel: props.uniqueLabel,
249
251
  type: props.type,
250
- }), persistedState = _52.persistedState, isPersistEnabled = _52.isEnabled, handleSaveView = _52.handleSaveView;
251
- var _53 = (0, react_1.useState)(false), loading = _53[0], setLoading = _53[1];
252
- var _54 = (0, react_1.useState)(), notification = _54[0], setNotification = _54[1];
252
+ }), persistedState = _66.persistedState, isPersistEnabled = _66.isEnabled, handleSaveView = _66.handleSaveView;
253
+ var _67 = (0, react_1.useState)(false), loading = _67[0], setLoading = _67[1];
254
+ var _68 = (0, react_1.useState)(), notification = _68[0], setNotification = _68[1];
253
255
  // INFO: a success toast is confirmation, not a decision — it clears itself so
254
256
  // it never sits on the floating step bar; errors stay until dismissed
255
257
  (0, react_1.useEffect)(function () {
@@ -259,56 +261,56 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
259
261
  return function () { return clearTimeout(timer); };
260
262
  }, [notification]);
261
263
  //INFO : Used by List
262
- var _55 = (0, react_1.useState)((_b = persistedState === null || persistedState === void 0 ? void 0 : persistedState.filterSearchParams) !== null && _b !== void 0 ? _b : initialFilterSearch), filterSearch = _55[0], setFilterSearch = _55[1];
263
- var _56 = (0, react_1.useState)((_c = persistedState === null || persistedState === void 0 ? void 0 : persistedState.filterSearchParams) !== null && _c !== void 0 ? _c : initialFilterSearchParams), filterSearchParams = _56[0], setFilterSearchParams = _56[1];
264
- var _57 = (0, react_1.useState)((_d = persistedState === null || persistedState === void 0 ? void 0 : persistedState.filterSelection) !== null && _d !== void 0 ? _d : initialFilterSelection), filterSelection = _57[0], setFilterSelection = _57[1];
265
- var _58 = (0, react_1.useState)((_e = persistedState === null || persistedState === void 0 ? void 0 : persistedState.filterReference) !== null && _e !== void 0 ? _e : initialFilterReference), filterReference = _58[0], setFilterReference = _58[1];
266
- var _59 = (0, react_1.useState)({}), filterReferenceSearch = _59[0], setFilterReferenceSearch = _59[1];
267
- var _60 = (0, react_1.useState)({}), filterReferenceList = _60[0], setFilterReferenceList = _60[1];
268
- var _61 = (0, react_1.useState)((persistedState === null || persistedState === void 0 ? void 0 : persistedState.filterReferenceDate)
264
+ var _69 = (0, react_1.useState)((_b = persistedState === null || persistedState === void 0 ? void 0 : persistedState.filterSearchParams) !== null && _b !== void 0 ? _b : initialFilterSearch), filterSearch = _69[0], setFilterSearch = _69[1];
265
+ var _70 = (0, react_1.useState)((_c = persistedState === null || persistedState === void 0 ? void 0 : persistedState.filterSearchParams) !== null && _c !== void 0 ? _c : initialFilterSearchParams), filterSearchParams = _70[0], setFilterSearchParams = _70[1];
266
+ var _71 = (0, react_1.useState)((_d = persistedState === null || persistedState === void 0 ? void 0 : persistedState.filterSelection) !== null && _d !== void 0 ? _d : initialFilterSelection), filterSelection = _71[0], setFilterSelection = _71[1];
267
+ var _72 = (0, react_1.useState)((_e = persistedState === null || persistedState === void 0 ? void 0 : persistedState.filterReference) !== null && _e !== void 0 ? _e : initialFilterReference), filterReference = _72[0], setFilterReference = _72[1];
268
+ var _73 = (0, react_1.useState)({}), filterReferenceSearch = _73[0], setFilterReferenceSearch = _73[1];
269
+ var _74 = (0, react_1.useState)({}), filterReferenceList = _74[0], setFilterReferenceList = _74[1];
270
+ var _75 = (0, react_1.useState)((persistedState === null || persistedState === void 0 ? void 0 : persistedState.filterReferenceDate)
269
271
  ? (0, viewStatePersistence_1.parseDateFilterState)(persistedState.filterReferenceDate)
270
- : initialFilterReferenceDate), filterReferenceDate = _61[0], setFilterReferenceDate = _61[1];
271
- var _62 = (0, react_1.useState)(true), tableLoading = _62[0], setTableLoading = _62[1];
272
- var _63 = (0, react_1.useState)(""), cursor = _63[0], setCursor = _63[1];
273
- var _64 = (0, react_1.useState)(""), lastCursor = _64[0], setLastCursor = _64[1];
274
- var _65 = (0, react_1.useState)([]), tableData = _65[0], setTableData = _65[1];
275
- var _66 = (0, react_1.useState)([]), spaceTableData = _66[0], setSpaceTableData = _66[1];
276
- var _67 = (0, react_1.useState)(0), size = _67[0], setSize = _67[1];
277
- var _68 = (0, react_1.useState)((_h = (_f = persistedState === null || persistedState === void 0 ? void 0 : persistedState.pageIndex) !== null && _f !== void 0 ? _f : (_g = props.organise) === null || _g === void 0 ? void 0 : _g.pageIndex) !== null && _h !== void 0 ? _h : 0), pageIndex = _68[0], setPageIndex = _68[1];
278
- var _69 = (0, react_1.useState)([]), selectedIds = _69[0], setSelectedIds = _69[1];
279
- var _70 = (0, react_1.useState)(false), selectAll = _70[0], setSelectAll = _70[1];
280
- var _71 = (0, react_1.useState)(""), deletePasscode = _71[0], setDeletePasscode = _71[1];
281
- var _72 = (0, react_1.useState)(""), deletePasscodeInput = _72[0], setDeletePasscodeInput = _72[1];
282
- var _73 = (0, react_1.useState)(""), deleteFeedId = _73[0], setDeleteFeedId = _73[1];
272
+ : initialFilterReferenceDate), filterReferenceDate = _75[0], setFilterReferenceDate = _75[1];
273
+ var _76 = (0, react_1.useState)(true), tableLoading = _76[0], setTableLoading = _76[1];
274
+ var _77 = (0, react_1.useState)(""), cursor = _77[0], setCursor = _77[1];
275
+ var _78 = (0, react_1.useState)(""), lastCursor = _78[0], setLastCursor = _78[1];
276
+ var _79 = (0, react_1.useState)([]), tableData = _79[0], setTableData = _79[1];
277
+ var _80 = (0, react_1.useState)([]), spaceTableData = _80[0], setSpaceTableData = _80[1];
278
+ var _81 = (0, react_1.useState)(0), size = _81[0], setSize = _81[1];
279
+ var _82 = (0, react_1.useState)((_h = (_f = persistedState === null || persistedState === void 0 ? void 0 : persistedState.pageIndex) !== null && _f !== void 0 ? _f : (_g = props.organise) === null || _g === void 0 ? void 0 : _g.pageIndex) !== null && _h !== void 0 ? _h : 0), pageIndex = _82[0], setPageIndex = _82[1];
280
+ var _83 = (0, react_1.useState)([]), selectedIds = _83[0], setSelectedIds = _83[1];
281
+ var _84 = (0, react_1.useState)(false), selectAll = _84[0], setSelectAll = _84[1];
282
+ var _85 = (0, react_1.useState)(""), deletePasscode = _85[0], setDeletePasscode = _85[1];
283
+ var _86 = (0, react_1.useState)(""), deletePasscodeInput = _86[0], setDeletePasscodeInput = _86[1];
284
+ var _87 = (0, react_1.useState)(""), deleteFeedId = _87[0], setDeleteFeedId = _87[1];
283
285
  //INFO : Used by List Organise
284
- var _74 = (0, react_1.useState)(false), sortModal = _74[0], setSortModal = _74[1];
285
- var _75 = (0, react_1.useState)(false), filterModal = _75[0], setFilterModal = _75[1];
286
+ var _88 = (0, react_1.useState)(false), sortModal = _88[0], setSortModal = _88[1];
287
+ var _89 = (0, react_1.useState)(false), filterModal = _89[0], setFilterModal = _89[1];
286
288
  // INFO: Internal sort state that overrides props.organise?.sort when
287
289
  // persistViewState is enabled and a persisted sort exists
288
- var _76 = (0, react_1.useState)((_j = persistedState === null || persistedState === void 0 ? void 0 : persistedState.sort) !== null && _j !== void 0 ? _j : undefined), persistedSort = _76[0], setPersistedSort = _76[1];
289
- var _77 = (0, react_1.useState)(false), filterDraft = _77[0], setFilterDraft = _77[1];
290
- var _78 = (0, react_1.useState)(false), addTabModal = _78[0], setAddTabModal = _78[1];
291
- var _79 = (0, react_1.useState)(false), overviewModal = _79[0], setOverviewModal = _79[1];
290
+ var _90 = (0, react_1.useState)((_j = persistedState === null || persistedState === void 0 ? void 0 : persistedState.sort) !== null && _j !== void 0 ? _j : undefined), persistedSort = _90[0], setPersistedSort = _90[1];
291
+ var _91 = (0, react_1.useState)(false), filterDraft = _91[0], setFilterDraft = _91[1];
292
+ var _92 = (0, react_1.useState)(false), addTabModal = _92[0], setAddTabModal = _92[1];
293
+ var _93 = (0, react_1.useState)(false), overviewModal = _93[0], setOverviewModal = _93[1];
292
294
  //INFO : resolve the initial tab synchronously so the mount cond is already
293
295
  // tab-scoped — an empty initial tab caused a second wasted list fetch
294
- var _80 = (0, react_1.useState)(function () {
296
+ var _94 = (0, react_1.useState)(function () {
295
297
  var _a, _b;
296
298
  return (0, listModule_1.renderSelectedRefreshTab)(props.localURLEndpoint, props.type, props.collectionId, props.id, (_a = props.organise) === null || _a === void 0 ? void 0 : _a.extendedTabs, (_b = props.organise) === null || _b === void 0 ? void 0 : _b.viewId);
297
- }), selectedTab = _80[0], setSelectedTab = _80[1];
298
- var _81 = (0, react_1.useState)("dayGridMonth"), calendarView = _81[0], setCalendarView = _81[1];
299
+ }), selectedTab = _94[0], setSelectedTab = _94[1];
300
+ var _95 = (0, react_1.useState)("dayGridMonth"), calendarView = _95[0], setCalendarView = _95[1];
299
301
  // INFO: bareNewDTW calendar viewSwitch mode — drives the NewCalendar variant
300
302
  // (calendarView above drives the matching range query)
301
- var _82 = (0, react_1.useState)("month"), newCalendarViewMode = _82[0], setNewCalendarViewMode = _82[1];
302
- var _83 = (0, react_1.useState)(new Date()), calendarTabMonth = _83[0], setCalendarTabMonth = _83[1];
303
- var _84 = (0, react_1.useState)(true), kanbanDroppable = _84[0], setKanbanDroppable = _84[1];
304
- var _85 = (0, react_1.useState)([]), kanbanOptions = _85[0], setKanbanOptions = _85[1];
305
- var _86 = (0, react_1.useState)(false), queryForm = _86[0], setQueryForm = _86[1];
306
- var _87 = (0, react_1.useState)(false), batchUpdateModal = _87[0], setBatchUpdateModal = _87[1];
307
- var _88 = (0, react_1.useState)({
303
+ var _96 = (0, react_1.useState)("month"), newCalendarViewMode = _96[0], setNewCalendarViewMode = _96[1];
304
+ var _97 = (0, react_1.useState)(new Date()), calendarTabMonth = _97[0], setCalendarTabMonth = _97[1];
305
+ var _98 = (0, react_1.useState)(true), kanbanDroppable = _98[0], setKanbanDroppable = _98[1];
306
+ var _99 = (0, react_1.useState)([]), kanbanOptions = _99[0], setKanbanOptions = _99[1];
307
+ var _100 = (0, react_1.useState)(false), queryForm = _100[0], setQueryForm = _100[1];
308
+ var _101 = (0, react_1.useState)(false), batchUpdateModal = _101[0], setBatchUpdateModal = _101[1];
309
+ var _102 = (0, react_1.useState)({
308
310
  columnId: "",
309
311
  columnData: {},
310
- }), batchUpdateData = _88[0], setBatchUpdateData = _88[1];
311
- var _89 = (0, react_1.useState)(function () {
312
+ }), batchUpdateData = _102[0], setBatchUpdateData = _102[1];
313
+ var _103 = (0, react_1.useState)(function () {
312
314
  var baseModel = (props === null || props === void 0 ? void 0 : props.model) || [];
313
315
  if (!persistedState)
314
316
  return baseModel;
@@ -334,8 +336,8 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
334
336
  });
335
337
  }
336
338
  return model;
337
- }), structure = _89[0], setStructure = _89[1];
338
- var _90 = (0, react_1.useState)(((_k = props === null || props === void 0 ? void 0 : props.organise) === null || _k === void 0 ? void 0 : _k.additionalQuery) || []), additionalQuery = _90[0], setAdditionalQuery = _90[1];
339
+ }), structure = _103[0], setStructure = _103[1];
340
+ var _104 = (0, react_1.useState)(((_k = props === null || props === void 0 ? void 0 : props.organise) === null || _k === void 0 ? void 0 : _k.additionalQuery) || []), additionalQuery = _104[0], setAdditionalQuery = _104[1];
339
341
  // INFO: State for user-configurable flex filters (Monday.com-style)
340
342
  // INFO: Initialize with one empty row so users see inputs immediately without clicking "Add Filter"
341
343
  var defaultFlexFilterRow = [
@@ -346,105 +348,105 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
346
348
  value: undefined,
347
349
  },
348
350
  ];
349
- var _91 = (0, react_1.useState)((persistedState === null || persistedState === void 0 ? void 0 : persistedState.flexFilters) && persistedState.flexFilters.length > 0
351
+ var _105 = (0, react_1.useState)((persistedState === null || persistedState === void 0 ? void 0 : persistedState.flexFilters) && persistedState.flexFilters.length > 0
350
352
  ? persistedState.flexFilters
351
- : defaultFlexFilterRow), flexFilters = _91[0], setFlexFilters = _91[1];
353
+ : defaultFlexFilterRow), flexFilters = _105[0], setFlexFilters = _105[1];
352
354
  // INFO: Debounced version of flexFilters used by renderImpSearchFilterConditions
353
355
  // to prevent API calls on every keystroke when typing in value inputs
354
- var _92 = (0, react_1.useState)((persistedState === null || persistedState === void 0 ? void 0 : persistedState.flexFilters) && persistedState.flexFilters.length > 0
356
+ var _106 = (0, react_1.useState)((persistedState === null || persistedState === void 0 ? void 0 : persistedState.flexFilters) && persistedState.flexFilters.length > 0
355
357
  ? persistedState.flexFilters
356
- : defaultFlexFilterRow), flexFiltersDebounced = _92[0], setFlexFiltersDebounced = _92[1];
357
- var _93 = (0, react_1.useState)({}), flexFilterReferenceOptions = _93[0], setFlexFilterReferenceOptions = _93[1];
358
- var _94 = (0, react_1.useState)({}), flexFilterReferenceSearch = _94[0], setFlexFilterReferenceSearch = _94[1];
359
- var _95 = (0, react_1.useState)(false), flexFilterModalOpen = _95[0], setFlexFilterModalOpen = _95[1];
358
+ : defaultFlexFilterRow), flexFiltersDebounced = _106[0], setFlexFiltersDebounced = _106[1];
359
+ var _107 = (0, react_1.useState)({}), flexFilterReferenceOptions = _107[0], setFlexFilterReferenceOptions = _107[1];
360
+ var _108 = (0, react_1.useState)({}), flexFilterReferenceSearch = _108[0], setFlexFilterReferenceSearch = _108[1];
361
+ var _109 = (0, react_1.useState)(false), flexFilterModalOpen = _109[0], setFlexFilterModalOpen = _109[1];
360
362
  // INFO: Columns the end user chose to hide (organise.hideColumnEnabled).
361
363
  // Deliberately kept out of `structure`: the props-sync effect below resets
362
364
  // structure to props.model whenever props change, which would wipe the
363
365
  // choice, and the persist effect derives schema-level hiddenColumnIds from
364
366
  // structure — writing user hides there would blur the two concepts.
365
- var _96 = (0, react_1.useState)((_l = persistedState === null || persistedState === void 0 ? void 0 : persistedState.userHiddenColumnIds) !== null && _l !== void 0 ? _l : []), userHiddenColumnIds = _96[0], setUserHiddenColumnIds = _96[1];
367
+ var _110 = (0, react_1.useState)((_l = persistedState === null || persistedState === void 0 ? void 0 : persistedState.userHiddenColumnIds) !== null && _l !== void 0 ? _l : []), userHiddenColumnIds = _110[0], setUserHiddenColumnIds = _110[1];
366
368
  //INFO : Used by Auth
367
- var _97 = (0, react_1.useState)({
369
+ var _111 = (0, react_1.useState)({
368
370
  email: "",
369
371
  google: "",
370
372
  phone: "",
371
373
  disabled: false,
372
374
  create: false,
373
- }), authMethods = _97[0], setAuthMethods = _97[1];
374
- var _98 = (0, react_1.useState)(""), selectedAuthMethod = _98[0], setSelectedAuthMethod = _98[1];
375
+ }), authMethods = _111[0], setAuthMethods = _111[1];
376
+ var _112 = (0, react_1.useState)(""), selectedAuthMethod = _112[0], setSelectedAuthMethod = _112[1];
375
377
  // INFO: Used by Activity Log
376
- var _99 = (0, react_1.useState)(false), activityModal = _99[0], setActivityModal = _99[1];
377
- var _100 = (0, react_1.useState)(""), activityId = _100[0], setActivityId = _100[1];
378
+ var _113 = (0, react_1.useState)(false), activityModal = _113[0], setActivityModal = _113[1];
379
+ var _114 = (0, react_1.useState)(""), activityId = _114[0], setActivityId = _114[1];
378
380
  //INFO : Used by Export
379
- var _101 = (0, react_1.useState)(null), csvFile = _101[0], setCSVFile = _101[1];
380
- var _102 = (0, react_1.useState)([]), csvFileData = _102[0], setCSVFileData = _102[1];
381
- var _103 = (0, react_1.useState)(0), stepCSVIndex = _103[0], setStepCSVIndex = _103[1];
382
- var _104 = (0, react_1.useState)({}), listCSVMapAttribute = _104[0], setListCSVMapAttribute = _104[1];
383
- var _105 = (0, react_1.useState)({}), listCSVObjAttribute = _105[0], setListCSVObjAttribute = _105[1];
384
- var _106 = (0, react_1.useState)([]), csvAPIAttribute = _106[0], setCSVAPIAttribute = _106[1];
385
- var _107 = (0, react_1.useState)(((_m = props.devSettings.currentUser) === null || _m === void 0 ? void 0 : _m.userEmail) || ""), exportCSVEmail = _107[0], setExportCSVEmail = _107[1];
386
- var _108 = (0, react_1.useState)(((_p = (_o = props.organise) === null || _o === void 0 ? void 0 : _o.exportSettings) === null || _p === void 0 ? void 0 : _p.defaultExportPDFName) || ""), exportPDFTitle = _108[0], setExportPDFTitle = _108[1];
387
- var _109 = (0, react_1.useState)(false), exportPDFLoading = _109[0], setExportPDFLoading = _109[1];
388
- var _110 = (0, react_1.useState)(false), exportReadPDFLoading = _110[0], setExportReadPDFLoading = _110[1];
389
- var _111 = (0, react_1.useState)((_s = (_r = (_q = props.organise) === null || _q === void 0 ? void 0 : _q.exportSettings) === null || _r === void 0 ? void 0 : _r.sumColumnId) !== null && _s !== void 0 ? _s : []), exportSumAttributeIds = _111[0], setExportSumAttributeIds = _111[1];
390
- var _112 = (0, react_1.useState)((_v = (_u = (_t = props.organise) === null || _t === void 0 ? void 0 : _t.exportSettings) === null || _u === void 0 ? void 0 : _u.hideSubItems) !== null && _v !== void 0 ? _v : false), hideSubItems = _112[0], setHideSubItems = _112[1];
391
- var _113 = (0, react_1.useState)([]), importTableData = _113[0], setImportTableData = _113[1];
392
- var _114 = (0, react_1.useState)([]), queryList = _114[0], setQueryList = _114[1];
393
- var _115 = (0, react_1.useState)(undefined), allQueryList = _115[0], setAllQueryList = _115[1];
394
- var _116 = (0, react_1.useState)(-1), queryIndex = _116[0], setQueryIndex = _116[1];
395
- var _117 = (0, react_1.useState)((_w = props.organise) === null || _w === void 0 ? void 0 : _w.groupBy), groupId = _117[0], setGroupId = _117[1];
396
- var _118 = (0, react_1.useState)(""), readTabSection = _118[0], setReadTabSection = _118[1];
397
- var _119 = (0, react_1.useState)(false), readFloatingNav = _119[0], setReadFloatingNav = _119[1];
381
+ var _115 = (0, react_1.useState)(null), csvFile = _115[0], setCSVFile = _115[1];
382
+ var _116 = (0, react_1.useState)([]), csvFileData = _116[0], setCSVFileData = _116[1];
383
+ var _117 = (0, react_1.useState)(0), stepCSVIndex = _117[0], setStepCSVIndex = _117[1];
384
+ var _118 = (0, react_1.useState)({}), listCSVMapAttribute = _118[0], setListCSVMapAttribute = _118[1];
385
+ var _119 = (0, react_1.useState)({}), listCSVObjAttribute = _119[0], setListCSVObjAttribute = _119[1];
386
+ var _120 = (0, react_1.useState)([]), csvAPIAttribute = _120[0], setCSVAPIAttribute = _120[1];
387
+ var _121 = (0, react_1.useState)(((_m = props.devSettings.currentUser) === null || _m === void 0 ? void 0 : _m.userEmail) || ""), exportCSVEmail = _121[0], setExportCSVEmail = _121[1];
388
+ var _122 = (0, react_1.useState)(((_p = (_o = props.organise) === null || _o === void 0 ? void 0 : _o.exportSettings) === null || _p === void 0 ? void 0 : _p.defaultExportPDFName) || ""), exportPDFTitle = _122[0], setExportPDFTitle = _122[1];
389
+ var _123 = (0, react_1.useState)(false), exportPDFLoading = _123[0], setExportPDFLoading = _123[1];
390
+ var _124 = (0, react_1.useState)(false), exportReadPDFLoading = _124[0], setExportReadPDFLoading = _124[1];
391
+ var _125 = (0, react_1.useState)((_s = (_r = (_q = props.organise) === null || _q === void 0 ? void 0 : _q.exportSettings) === null || _r === void 0 ? void 0 : _r.sumColumnId) !== null && _s !== void 0 ? _s : []), exportSumAttributeIds = _125[0], setExportSumAttributeIds = _125[1];
392
+ var _126 = (0, react_1.useState)((_v = (_u = (_t = props.organise) === null || _t === void 0 ? void 0 : _t.exportSettings) === null || _u === void 0 ? void 0 : _u.hideSubItems) !== null && _v !== void 0 ? _v : false), hideSubItems = _126[0], setHideSubItems = _126[1];
393
+ var _127 = (0, react_1.useState)([]), importTableData = _127[0], setImportTableData = _127[1];
394
+ var _128 = (0, react_1.useState)([]), queryList = _128[0], setQueryList = _128[1];
395
+ var _129 = (0, react_1.useState)(undefined), allQueryList = _129[0], setAllQueryList = _129[1];
396
+ var _130 = (0, react_1.useState)(-1), queryIndex = _130[0], setQueryIndex = _130[1];
397
+ var _131 = (0, react_1.useState)((_w = props.organise) === null || _w === void 0 ? void 0 : _w.groupBy), groupId = _131[0], setGroupId = _131[1];
398
+ var _132 = (0, react_1.useState)(""), readTabSection = _132[0], setReadTabSection = _132[1];
399
+ var _133 = (0, react_1.useState)(false), readFloatingNav = _133[0], setReadFloatingNav = _133[1];
398
400
  var readTabSectionRefs = (0, react_1.useRef)({});
399
401
  //INFO : Used by Read
400
402
  //INFO : Used by Update
401
- var _120 = (0, react_1.useState)(false), modalVisible = _120[0], setModalVisible = _120[1];
402
- var _121 = (0, react_1.useState)(false), deleteModal = _121[0], setDeleteModal = _121[1];
403
- var _122 = (0, react_1.useState)(false), excelModal = _122[0], setExcelModal = _122[1];
404
- var _123 = (0, react_1.useState)(false), exportExcel = _123[0], setExportExcel = _123[1];
405
- var _124 = (0, react_1.useState)(""), exportType = _124[0], setExportType = _124[1];
406
- var _125 = (0, react_1.useState)(false), exportQR = _125[0], setExportQR = _125[1];
407
- var _126 = (0, react_1.useState)(function () {
403
+ var _134 = (0, react_1.useState)(false), modalVisible = _134[0], setModalVisible = _134[1];
404
+ var _135 = (0, react_1.useState)(false), deleteModal = _135[0], setDeleteModal = _135[1];
405
+ var _136 = (0, react_1.useState)(false), excelModal = _136[0], setExcelModal = _136[1];
406
+ var _137 = (0, react_1.useState)(false), exportExcel = _137[0], setExportExcel = _137[1];
407
+ var _138 = (0, react_1.useState)(""), exportType = _138[0], setExportType = _138[1];
408
+ var _139 = (0, react_1.useState)(false), exportQR = _139[0], setExportQR = _139[1];
409
+ var _140 = (0, react_1.useState)(function () {
408
410
  var _a, _b;
409
411
  var firstTabId = (_b = (_a = structure.find(function (item) { return item.tabId; })) === null || _a === void 0 ? void 0 : _a.tabId) !== null && _b !== void 0 ? _b : "";
410
412
  return firstTabId;
411
- }), activeTab = _126[0], setActiveTab = _126[1];
412
- var _127 = (0, react_1.useState)(false), signatureSigning = _127[0], setSignatureSigning = _127[1];
413
- var _128 = (0, react_1.useState)({}), selectedData = _128[0], setSelectedData = _128[1];
414
- var _129 = (0, react_1.useState)(""), selectedObjectStructureId = _129[0], setSelectedObjectStructureId = _129[1];
415
- var _130 = (0, react_1.useState)(""), selectedObjectId = _130[0], setSelectedObjectId = _130[1];
416
- var _131 = (0, react_1.useState)(""), selectedListAddressId = _131[0], setSelectedListAddressId = _131[1];
417
- var _132 = (0, react_1.useState)(-1), selectedListAddressIndex = _132[0], setSelectedListAddressIndex = _132[1];
418
- var _133 = (0, react_1.useState)({
413
+ }), activeTab = _140[0], setActiveTab = _140[1];
414
+ var _141 = (0, react_1.useState)(false), signatureSigning = _141[0], setSignatureSigning = _141[1];
415
+ var _142 = (0, react_1.useState)({}), selectedData = _142[0], setSelectedData = _142[1];
416
+ var _143 = (0, react_1.useState)(""), selectedObjectStructureId = _143[0], setSelectedObjectStructureId = _143[1];
417
+ var _144 = (0, react_1.useState)(""), selectedObjectId = _144[0], setSelectedObjectId = _144[1];
418
+ var _145 = (0, react_1.useState)(""), selectedListAddressId = _145[0], setSelectedListAddressId = _145[1];
419
+ var _146 = (0, react_1.useState)(-1), selectedListAddressIndex = _146[0], setSelectedListAddressIndex = _146[1];
420
+ var _147 = (0, react_1.useState)({
419
421
  lat: 0,
420
422
  lng: 0,
421
423
  name: "",
422
- }), selectedListAddress = _133[0], setSelectedListAddress = _133[1];
423
- var _134 = (0, react_1.useState)({}), selectedObjectData = _134[0], setSelectedObjectData = _134[1];
424
- var _135 = (0, react_1.useState)(null), objectCellEdit = _135[0], setObjectCellEdit = _135[1];
425
- var _136 = (0, react_1.useState)(false), referenceLoading = _136[0], setReferenceLoading = _136[1];
426
- var _137 = (0, react_1.useState)({}), referencesOptions = _137[0], setReferencesOptions = _137[1];
427
- var _138 = (0, react_1.useState)({}), referencesDetails = _138[0], setReferencesDetails = _138[1];
428
- var _139 = (0, react_1.useState)({}), listReferencesOptions = _139[0], setListReferencesOptions = _139[1];
429
- var _140 = (0, react_1.useState)({}), referenceDeleteTableData = _140[0], setReferenceDeleteTableData = _140[1];
430
- var _141 = (0, react_1.useState)(0), referenceDeleteIndex = _141[0], setReferenceDeleteIndex = _141[1];
431
- var _142 = (0, react_1.useState)({
424
+ }), selectedListAddress = _147[0], setSelectedListAddress = _147[1];
425
+ var _148 = (0, react_1.useState)({}), selectedObjectData = _148[0], setSelectedObjectData = _148[1];
426
+ var _149 = (0, react_1.useState)(null), objectCellEdit = _149[0], setObjectCellEdit = _149[1];
427
+ var _150 = (0, react_1.useState)(false), referenceLoading = _150[0], setReferenceLoading = _150[1];
428
+ var _151 = (0, react_1.useState)({}), referencesOptions = _151[0], setReferencesOptions = _151[1];
429
+ var _152 = (0, react_1.useState)({}), referencesDetails = _152[0], setReferencesDetails = _152[1];
430
+ var _153 = (0, react_1.useState)({}), listReferencesOptions = _153[0], setListReferencesOptions = _153[1];
431
+ var _154 = (0, react_1.useState)({}), referenceDeleteTableData = _154[0], setReferenceDeleteTableData = _154[1];
432
+ var _155 = (0, react_1.useState)(0), referenceDeleteIndex = _155[0], setReferenceDeleteIndex = _155[1];
433
+ var _156 = (0, react_1.useState)({
432
434
  id: "",
433
435
  name: "",
434
436
  type: "string",
435
- }), referenceCreationModal = _142[0], setReferenceCreationModal = _142[1];
436
- var _143 = (0, react_1.useState)({}), referenceModelSchema = _143[0], setReferenceSchema = _143[1];
437
- var _144 = (0, react_1.useState)([]), kanbanChecked = _144[0], setKanbanChecked = _144[1];
437
+ }), referenceCreationModal = _156[0], setReferenceCreationModal = _156[1];
438
+ var _157 = (0, react_1.useState)({}), referenceModelSchema = _157[0], setReferenceSchema = _157[1];
439
+ var _158 = (0, react_1.useState)([]), kanbanChecked = _158[0], setKanbanChecked = _158[1];
438
440
  //INFO : Offline
439
- var _145 = (0, react_1.useState)(0), offlineDataLength = _145[0], setOfflineDataLength = _145[1];
440
- var _146 = (0, react_1.useState)(false), offlineModal = _146[0], setOfflineModal = _146[1];
441
+ var _159 = (0, react_1.useState)(0), offlineDataLength = _159[0], setOfflineDataLength = _159[1];
442
+ var _160 = (0, react_1.useState)(false), offlineModal = _160[0], setOfflineModal = _160[1];
441
443
  // INFO: live-stream state — driven by socket connection and navigator.onLine
442
- var _147 = (0, react_1.useState)(false), isLive = _147[0], setIsLive = _147[1];
443
- var _148 = (0, react_1.useState)(false), isLiveOffline = _148[0], setIsLiveOffline = _148[1];
444
+ var _161 = (0, react_1.useState)(false), isLive = _161[0], setIsLive = _161[1];
445
+ var _162 = (0, react_1.useState)(false), isLiveOffline = _162[0], setIsLiveOffline = _162[1];
444
446
  // INFO: true when navigator is offline — used to switch ReadQueryHoc between
445
447
  // server reads (online, full pagination) and IndexedDB reads (offline, cached data).
446
448
  // Independent of SSE status so it works even when bareSocketName is not set.
447
- var _149 = (0, react_1.useState)(typeof navigator !== "undefined" ? !navigator.onLine : false), isNetworkOffline = _149[0], setIsNetworkOffline = _149[1];
449
+ var _163 = (0, react_1.useState)(typeof navigator !== "undefined" ? !navigator.onLine : false), isNetworkOffline = _163[0], setIsNetworkOffline = _163[1];
448
450
  var previousType = (0, react_1.useRef)(null);
449
451
  var previousSelectedData = (0, react_1.useRef)(null);
450
452
  var scrollSentinelRef = (0, react_1.useRef)(null);
@@ -6375,7 +6377,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
6375
6377
  });
6376
6378
  var clonedSelectedData = (0, updateModule_1.handleClonedDataAttribute)(selectedData, structure, props.devSettings.server, false, remainId);
6377
6379
  isListObject.map(function (eachListObject) {
6378
- var _a, _b;
6380
+ var _a, _b, _c;
6379
6381
  var flexTableRefIndex = props.model
6380
6382
  .filter(function (model) { return model.type === "listObject" && model.listFlexTable; })
6381
6383
  .findIndex(function (model) { return model.id === eachListObject.id; });
@@ -6384,6 +6386,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
6384
6386
  tabId: eachListObject.tabId,
6385
6387
  activeTab: activeTab,
6386
6388
  hasTabAlign: !!hasTabAlign,
6389
+ darkMode: (_c = props.organise) === null || _c === void 0 ? void 0 : _c.darkMode,
6387
6390
  }));
6388
6391
  return null;
6389
6392
  });
@@ -6480,6 +6483,19 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
6480
6483
  // counter, then the same Save / Submit the header offers and a Continue
6481
6484
  // button that reuses the bareSaveOnTabChange draft-save. Replaces the bare
6482
6485
  // chevron icons, which gave no sense of position in a long form.
6486
+ // INFO: bareUpdateActionBottom opts out of the floating pill — a short form
6487
+ // inside a modal reads better with a plain button row than a card inside a
6488
+ // card; tabbed and long forms keep the sticky bar so Submit stays reachable
6489
+ var handleActionBarClassName = function (justifyEnd) {
6490
+ var _a, _b, _c, _d, _e;
6491
+ var layout = "mt-6 flex flex-row items-center gap-2 whitespace-nowrap".concat(justifyEnd ? " justify-end" : "");
6492
+ if ((_a = props.bareSettings) === null || _a === void 0 ? void 0 : _a.bareUpdateActionBottom)
6493
+ return "".concat(layout).concat(((_b = props.organise) === null || _b === void 0 ? void 0 : _b.darkMode) ? " text-white" : "");
6494
+ var surface = ((_c = props.organise) === null || _c === void 0 ? void 0 : _c.darkMode)
6495
+ ? "border-gray-700 ".concat((_e = (_d = props.organise) === null || _d === void 0 ? void 0 : _d.darkModeBg) !== null && _e !== void 0 ? _e : "bg-gray-900/95", " text-white")
6496
+ : "border-gray-200 bg-white/95";
6497
+ return "sticky bottom-3 z-20 -mx-2 ".concat(layout, " rounded-2xl border ").concat(surface, " px-3 py-2 shadow-lg backdrop-blur sm:mx-0 sm:px-4");
6498
+ };
6483
6499
  var renderStepBar = function (uniqueTabIds) {
6484
6500
  var _a, _b, _c, _d, _e, _f, _g, _h;
6485
6501
  var hasTabAlign = ((_a = props.organise) === null || _a === void 0 ? void 0 : _a.tabAlign) || ((_b = props.space) === null || _b === void 0 ? void 0 : _b.tabAlign);
@@ -6527,7 +6543,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
6527
6543
  // 60px, so it never hides the field being edited. Left cluster is
6528
6544
  // navigation (Previous · counter · Next), right cluster is actions
6529
6545
  // (Save · Submit or the caller's own component)
6530
- react_1.default.createElement("div", { "data-testid": "dtw-step-bar", className: "sticky bottom-3 z-20 -mx-2 mt-6 flex flex-row items-center gap-2 whitespace-nowrap rounded-2xl border border-gray-200 bg-white/95 px-3 py-2 shadow-lg backdrop-blur sm:mx-0 sm:px-4" },
6546
+ react_1.default.createElement("div", { "data-testid": "dtw-step-bar", className: handleActionBarClassName(false) },
6531
6547
  isTabbed && (react_1.default.createElement(react_1.default.Fragment, null,
6532
6548
  react_1.default.createElement("div", { className: "sm:hidden" },
6533
6549
  react_1.default.createElement(iconButton_1.IconButton, { testId: "dtw-previous-icon", size: "small", background: "bg-white border border-gray-300 hover:bg-gray-50", icon: react_1.default.createElement(HeroIcons.ChevronLeftIcon, { className: "w-5 h-5 text-gray-700" }), disabled: isFirst, onClick: function () { return handleMoveTab(-1); } })),
@@ -6599,7 +6615,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
6599
6615
  !isActivityLog &&
6600
6616
  !showDelete)
6601
6617
  return null;
6602
- return (react_1.default.createElement("div", { "data-testid": "dtw-read-bar", className: "sticky bottom-3 z-20 -mx-2 mt-6 flex flex-row items-center justify-end gap-2 whitespace-nowrap rounded-2xl border border-gray-200 bg-white/95 px-3 py-2 shadow-lg backdrop-blur sm:mx-0 sm:px-4" },
6618
+ return (react_1.default.createElement("div", { "data-testid": "dtw-read-bar", className: handleActionBarClassName(true) },
6603
6619
  ((_h = props.edit) === null || _h === void 0 ? void 0 : _h.deleteBtn) && isEditor && props.id !== "new" && (react_1.default.createElement(react_1.default.Fragment, null,
6604
6620
  react_1.default.createElement("div", { className: "sm:hidden" },
6605
6621
  react_1.default.createElement(iconButton_1.IconButton, { testId: "dtw-delete-icon", size: "small", background: "bg-white border border-red-200 hover:bg-red-50", icon: react_1.default.createElement(HeroIcons.TrashIcon, { className: "w-5 h-5 text-red-600" }), onClick: function () {
@@ -6797,7 +6813,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
6797
6813
  authList));
6798
6814
  };
6799
6815
  var renderContent = function () {
6800
- 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, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37;
6816
+ 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, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40;
6801
6817
  var isBottom = ((_a = props.bareSettings) === null || _a === void 0 ? void 0 : _a.bareUpdateActionBottom) ? true : false;
6802
6818
  var tabs = renderTabs();
6803
6819
  var pages = [
@@ -6834,16 +6850,16 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
6834
6850
  react_1.default.createElement("div", null,
6835
6851
  react_1.default.createElement("div", { className: "flex flex-col sm:py-2 sm:items-center sm:flex-row ".concat(hasReadHeading ? "justify-between" : "sm:justify-end") },
6836
6852
  hasReadHeading && (react_1.default.createElement("div", { className: "flex flex-col" },
6837
- props.title && (react_1.default.createElement("p", { className: "text-xl font-medium" }, props.title)),
6853
+ props.title && (react_1.default.createElement("p", { className: "text-xl font-medium ".concat(((_h = props.organise) === null || _h === void 0 ? void 0 : _h.darkMode) ? "text-white" : "") }, props.title)),
6838
6854
  props.description && (react_1.default.createElement("span", { className: "text-sm text-gray-500" }, props.description)))),
6839
6855
  renderActionButtons(props.type))),
6840
- (schemaPresent || ((_h = props.bareSettings) === null || _h === void 0 ? void 0 : _h.bareReadListTabs)) && (react_1.default.createElement(tabs_1.Tabs, { tabs: tabs, selectedId: viewType, linkType: props.linkType, custom: props.custom, onClick: function (id) { return handleSelectTab(id); }, darkMode: (_j = props.organise) === null || _j === void 0 ? void 0 : _j.darkMode })),
6841
- ((_k = props.bareSettings) === null || _k === void 0 ? void 0 : _k.bareReadComponentPos) === "top" &&
6856
+ (schemaPresent || ((_j = props.bareSettings) === null || _j === void 0 ? void 0 : _j.bareReadListTabs)) && (react_1.default.createElement(tabs_1.Tabs, { tabs: tabs, selectedId: viewType, linkType: props.linkType, custom: props.custom, onClick: function (id) { return handleSelectTab(id); }, darkMode: (_k = props.organise) === null || _k === void 0 ? void 0 : _k.darkMode })),
6857
+ ((_l = props.bareSettings) === null || _l === void 0 ? void 0 : _l.bareReadComponentPos) === "top" &&
6842
6858
  renderBareReadComp(),
6843
6859
  anyAuthMethod && (react_1.default.createElement("div", { className: "bg-primary-100 text-gray-700 mt-3 px-5 py-3 rounded" }, renderAuthContent())),
6844
6860
  react_1.default.createElement("div", { ref: exportReadPDFRef },
6845
- !((_l = props.bareSettings) === null || _l === void 0 ? void 0 : _l.bareReadComponentHide) && (react_1.default.createElement("div", null, renderTabContent(tabs, props.type, viewType))),
6846
- ((_m = props.bareSettings) === null || _m === void 0 ? void 0 : _m.bareReadComponentPos) !== "top" &&
6861
+ !((_m = props.bareSettings) === null || _m === void 0 ? void 0 : _m.bareReadComponentHide) && (react_1.default.createElement("div", null, renderTabContent(tabs, props.type, viewType))),
6862
+ ((_o = props.bareSettings) === null || _o === void 0 ? void 0 : _o.bareReadComponentPos) !== "top" &&
6847
6863
  renderBareReadComp()),
6848
6864
  renderReadBar()))));
6849
6865
  case "update":
@@ -6855,12 +6871,12 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
6855
6871
  });
6856
6872
  }
6857
6873
  pages.push({
6858
- name: (_q = selectedData === null || selectedData === void 0 ? void 0 : selectedData[(_p = (_o = props.organise) === null || _o === void 0 ? void 0 : _o.breadcrumbAttributeId) !== null && _p !== void 0 ? _p : serverId]) !== null && _q !== void 0 ? _q : (props.id ? props.id : "new"),
6874
+ name: (_r = selectedData === null || selectedData === void 0 ? void 0 : selectedData[(_q = (_p = props.organise) === null || _p === void 0 ? void 0 : _p.breadcrumbAttributeId) !== null && _q !== void 0 ? _q : serverId]) !== null && _r !== void 0 ? _r : (props.id ? props.id : "new"),
6859
6875
  href: "#",
6860
6876
  current: true,
6861
6877
  });
6862
6878
  var filterModel_1 = [];
6863
- var disabledOnEnter_1 = (_s = (_r = props.organise) === null || _r === void 0 ? void 0 : _r.disabledOnEnter) !== null && _s !== void 0 ? _s : false;
6879
+ var disabledOnEnter_1 = (_t = (_s = props.organise) === null || _s === void 0 ? void 0 : _s.disabledOnEnter) !== null && _t !== void 0 ? _t : false;
6864
6880
  structure.map(function (eachModel) {
6865
6881
  var _a;
6866
6882
  var present = false;
@@ -6973,12 +6989,12 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
6973
6989
  }
6974
6990
  }
6975
6991
  };
6976
- var hasTabAlign_1 = ((_t = props.organise) === null || _t === void 0 ? void 0 : _t.tabAlign) || ((_u = props.space) === null || _u === void 0 ? void 0 : _u.tabAlign);
6977
- var leftTabAlign = ((_v = props.organise) === null || _v === void 0 ? void 0 : _v.tabAlign) === "left" ||
6978
- ((_w = props.space) === null || _w === void 0 ? void 0 : _w.tabAlign) === "left";
6979
- var topTabAlign = ((_x = props.organise) === null || _x === void 0 ? void 0 : _x.tabAlign) === "top" || ((_y = props.space) === null || _y === void 0 ? void 0 : _y.tabAlign) === "top";
6980
- var stepperTabAlign = ((_z = props.organise) === null || _z === void 0 ? void 0 : _z.tabAlign) === "stepper" ||
6981
- ((_0 = props.space) === null || _0 === void 0 ? void 0 : _0.tabAlign) === "stepper";
6992
+ var hasTabAlign_1 = ((_u = props.organise) === null || _u === void 0 ? void 0 : _u.tabAlign) || ((_v = props.space) === null || _v === void 0 ? void 0 : _v.tabAlign);
6993
+ var leftTabAlign = ((_w = props.organise) === null || _w === void 0 ? void 0 : _w.tabAlign) === "left" ||
6994
+ ((_x = props.space) === null || _x === void 0 ? void 0 : _x.tabAlign) === "left";
6995
+ var topTabAlign = ((_y = props.organise) === null || _y === void 0 ? void 0 : _y.tabAlign) === "top" || ((_z = props.space) === null || _z === void 0 ? void 0 : _z.tabAlign) === "top";
6996
+ var stepperTabAlign = ((_0 = props.organise) === null || _0 === void 0 ? void 0 : _0.tabAlign) === "stepper" ||
6997
+ ((_1 = props.space) === null || _1 === void 0 ? void 0 : _1.tabAlign) === "stepper";
6982
6998
  var uniqueTabIds_2 = Array.from(new Set(filterModel_1
6983
6999
  .map(function (item) { return item.tabId; })
6984
7000
  .filter(function (id) { return id !== undefined; })));
@@ -6987,7 +7003,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
6987
7003
  if (shouldIncludeOthers) {
6988
7004
  uniqueTabIds_2.push("");
6989
7005
  }
6990
- var customTabComponent_1 = (_3 = (_2 = (_1 = props.bareSettings) === null || _1 === void 0 ? void 0 : _1.bareUpdateTabComponent) === null || _2 === void 0 ? void 0 : _2.call(_1, uniqueTabIds_2)) !== null && _3 !== void 0 ? _3 : [];
7006
+ var customTabComponent_1 = (_4 = (_3 = (_2 = props.bareSettings) === null || _2 === void 0 ? void 0 : _2.bareUpdateTabComponent) === null || _3 === void 0 ? void 0 : _3.call(_2, uniqueTabIds_2)) !== null && _4 !== void 0 ? _4 : [];
6991
7007
  var stepperSteps = uniqueTabIds_2.map(function (eachTabId) {
6992
7008
  var _a, _b;
6993
7009
  var customTabMatch = customTabComponent_1.find(function (eachTab) { return eachTab.tabId === eachTabId; });
@@ -7022,7 +7038,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7022
7038
  props.id && props.id !== "new" && structure.length >= 1 && (react_1.default.createElement(readQueryHoc_1.ReadQueryHoc, { ref: readQueryHocRef, database: {
7023
7039
  dbModule: dbModule,
7024
7040
  dbType: devSettings.server,
7025
- dbCollection: (_5 = (_4 = props === null || props === void 0 ? void 0 : props.space) === null || _4 === void 0 ? void 0 : _4.pipelineDefaultSpaceId) !== null && _5 !== void 0 ? _5 : props.collectionId,
7041
+ dbCollection: (_6 = (_5 = props === null || props === void 0 ? void 0 : props.space) === null || _5 === void 0 ? void 0 : _5.pipelineDefaultSpaceId) !== null && _6 !== void 0 ? _6 : props.collectionId,
7026
7042
  dbEndpoint: devSettings.dbEndpoint,
7027
7043
  dbAPIToken: devSettings.dbAPIToken,
7028
7044
  dbUserToken: devSettings.dbUserToken,
@@ -7030,11 +7046,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7030
7046
  type: "get",
7031
7047
  id: props.id,
7032
7048
  pipeline: pipeline,
7033
- }, offline: ((_6 = props.bareSettings) === null || _6 === void 0 ? void 0 : _6.bareOffline) && isNetworkOffline, onChangeData: handleRetrieveSelectedData, onError: handleGetItemError })),
7049
+ }, offline: ((_7 = props.bareSettings) === null || _7 === void 0 ? void 0 : _7.bareOffline) && isNetworkOffline, onChangeData: handleRetrieveSelectedData, onError: handleGetItemError })),
7034
7050
  renderBreadcrumb(pages),
7035
7051
  react_1.default.createElement("div", { className: "flex flex-col py-2 sm:items-center sm:flex-row" },
7036
7052
  (props.title || props.description) && (react_1.default.createElement("div", { className: "flex flex-col w-full" },
7037
- props.title && (react_1.default.createElement("p", { className: "text-xl font-medium" }, props.title)),
7053
+ props.title && (react_1.default.createElement("p", { className: "text-xl font-medium ".concat(((_8 = props.organise) === null || _8 === void 0 ? void 0 : _8.darkMode) ? "text-white" : "") }, props.title)),
7038
7054
  props.description && (react_1.default.createElement("span", { className: "text-sm text-gray-500" }, props.description)))),
7039
7055
  (!isBottom || hasTabAlign_1 || props.type === "update") &&
7040
7056
  renderActionButtons(props.type, hasTabAlign_1, uniqueTabIds_2)),
@@ -7053,12 +7069,12 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7053
7069
  var tabId = uniqueTabIds_2[stepIndex];
7054
7070
  handleUpdateTabId(tabId);
7055
7071
  } })),
7056
- ((_7 = props.bareSettings) === null || _7 === void 0 ? void 0 : _7.bareUpdateComponentAbove) &&
7057
- ((_8 = props.bareSettings) === null || _8 === void 0 ? void 0 : _8.bareUpdateComponent) &&
7058
- ((_9 = props.bareSettings) === null || _9 === void 0 ? void 0 : _9.bareUpdateComponent(selectedData)),
7072
+ ((_9 = props.bareSettings) === null || _9 === void 0 ? void 0 : _9.bareUpdateComponentAbove) &&
7073
+ ((_10 = props.bareSettings) === null || _10 === void 0 ? void 0 : _10.bareUpdateComponent) &&
7074
+ ((_11 = props.bareSettings) === null || _11 === void 0 ? void 0 : _11.bareUpdateComponent(selectedData)),
7059
7075
  react_1.default.createElement(form_1.Form, { className: "mt-6", ref: formRef, refList: __spreadArray(__spreadArray([], modalFormInputRefs, true), flexTableRefs, true), handleComplete: handleSubmit, disabledOnEnter: disabledOnEnter_1, handleOnFailValidation: handleOnFailValidation },
7060
7076
  uniqueTabIds_2.map(function (tabId) {
7061
- var _a, _b;
7077
+ var _a, _b, _c, _d;
7062
7078
  var filterByTab = filterModel_1
7063
7079
  .map(function (model, index) { return (__assign(__assign({}, model), { refIndex: index })); })
7064
7080
  .filter(function (model) {
@@ -7072,27 +7088,27 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7072
7088
  : "hidden"
7073
7089
  : "") },
7074
7090
  hasTabAlign_1 && (react_1.default.createElement("div", { className: "col-span-12" },
7075
- react_1.default.createElement("p", { className: "text-lg font-semibold text-gray-900" }, tabId || "Others"),
7076
- ((_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.tabDescriptions) === null || _b === void 0 ? void 0 : _b[tabId]) && (react_1.default.createElement("p", { className: "text-sm text-gray-500 mt-0.5" }, props.organise.tabDescriptions[tabId])))),
7091
+ react_1.default.createElement("p", { className: "text-lg font-semibold ".concat(((_a = props.organise) === null || _a === void 0 ? void 0 : _a.darkMode) ? "text-white" : "text-gray-900") }, tabId || "Others"),
7092
+ ((_c = (_b = props.organise) === null || _b === void 0 ? void 0 : _b.tabDescriptions) === null || _c === void 0 ? void 0 : _c[tabId]) && (react_1.default.createElement("p", { className: "text-sm mt-0.5 ".concat(((_d = props.organise) === null || _d === void 0 ? void 0 : _d.darkMode) ? "text-gray-400" : "text-gray-500") }, props.organise.tabDescriptions[tabId])))),
7077
7093
  renderDataTemplateFormContent(selectedData, filterByTab, modalFormInputRefs, false, false, undefined, undefined)));
7078
7094
  }),
7079
- !((_10 = props.bareSettings) === null || _10 === void 0 ? void 0 : _10.bareUpdateComponentAbove) &&
7080
- ((_11 = props.bareSettings) === null || _11 === void 0 ? void 0 : _11.bareUpdateComponent) &&
7081
- ((_12 = props.bareSettings) === null || _12 === void 0 ? void 0 : _12.bareUpdateComponent(selectedData))),
7095
+ !((_12 = props.bareSettings) === null || _12 === void 0 ? void 0 : _12.bareUpdateComponentAbove) &&
7096
+ ((_13 = props.bareSettings) === null || _13 === void 0 ? void 0 : _13.bareUpdateComponent) &&
7097
+ ((_14 = props.bareSettings) === null || _14 === void 0 ? void 0 : _14.bareUpdateComponent(selectedData))),
7082
7098
  react_1.default.createElement("div", { className: "mt-8" }, renderListAddress(props.type)),
7083
7099
  react_1.default.createElement("div", { className: "mt-8" }, renderListObject(props.type)),
7084
7100
  renderStepBar(uniqueTabIds_2),
7085
7101
  isBottom &&
7086
7102
  props.type !== "update" &&
7087
7103
  renderActionButtons(props.type, hasTabAlign_1, uniqueTabIds_2)))) : (react_1.default.createElement("div", null,
7088
- ((_13 = props.bareSettings) === null || _13 === void 0 ? void 0 : _13.bareUpdateComponentAbove) &&
7089
- ((_14 = props.bareSettings) === null || _14 === void 0 ? void 0 : _14.bareUpdateComponent) &&
7090
- ((_15 = props.bareSettings) === null || _15 === void 0 ? void 0 : _15.bareUpdateComponent(selectedData)),
7104
+ ((_15 = props.bareSettings) === null || _15 === void 0 ? void 0 : _15.bareUpdateComponentAbove) &&
7105
+ ((_16 = props.bareSettings) === null || _16 === void 0 ? void 0 : _16.bareUpdateComponent) &&
7106
+ ((_17 = props.bareSettings) === null || _17 === void 0 ? void 0 : _17.bareUpdateComponent(selectedData)),
7091
7107
  react_1.default.createElement(form_1.Form, { className: "grid ".concat(formColumn, " ").concat(gridGap, " mt-6"), ref: formRef, refList: __spreadArray(__spreadArray([], modalFormInputRefs, true), flexTableRefs, true), handleComplete: handleSubmit, disabledOnEnter: disabledOnEnter_1, handleOnFailValidation: handleOnFailValidation },
7092
7108
  renderDataTemplateFormContent(selectedData, filterModel_1, modalFormInputRefs, false, false),
7093
- !((_16 = props.bareSettings) === null || _16 === void 0 ? void 0 : _16.bareUpdateComponentAbove) &&
7094
- ((_17 = props.bareSettings) === null || _17 === void 0 ? void 0 : _17.bareUpdateComponent) &&
7095
- ((_18 = props.bareSettings) === null || _18 === void 0 ? void 0 : _18.bareUpdateComponent(selectedData))),
7109
+ !((_18 = props.bareSettings) === null || _18 === void 0 ? void 0 : _18.bareUpdateComponentAbove) &&
7110
+ ((_19 = props.bareSettings) === null || _19 === void 0 ? void 0 : _19.bareUpdateComponent) &&
7111
+ ((_20 = props.bareSettings) === null || _20 === void 0 ? void 0 : _20.bareUpdateComponent(selectedData))),
7096
7112
  react_1.default.createElement("div", { className: "mt-8" }, renderListAddress(props.type)),
7097
7113
  react_1.default.createElement("div", { className: "mt-8" }, renderListObject(props.type)),
7098
7114
  renderStepBar(uniqueTabIds_2)))));
@@ -7102,7 +7118,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7102
7118
  var dataComponent = renderTabContent(tabs, props.type, viewType);
7103
7119
  var actionComponent = renderActionButtons(props.type);
7104
7120
  // INFO: Active flex filter count — used by both the filter icon badge and floating search bar
7105
- var activeFlexFilterCount_1 = ((_19 = props.bareSettings) === null || _19 === void 0 ? void 0 : _19.bareFlexFilters)
7121
+ var activeFlexFilterCount_1 = ((_21 = props.bareSettings) === null || _21 === void 0 ? void 0 : _21.bareFlexFilters)
7106
7122
  ? flexFilters.filter(function (eachFilter) {
7107
7123
  return eachFilter.columnId && eachFilter.operator && eachFilter.value;
7108
7124
  }).length
@@ -7110,14 +7126,14 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7110
7126
  var listReadQueryHOC = (react_1.default.createElement(readQueryHoc_1.ReadQueryHoc, { ref: listRQueryHocRef, database: {
7111
7127
  dbModule: dbModule,
7112
7128
  dbType: devSettings.server,
7113
- dbCollection: (_21 = (_20 = props === null || props === void 0 ? void 0 : props.space) === null || _20 === void 0 ? void 0 : _20.pipelineDefaultSpaceId) !== null && _21 !== void 0 ? _21 : props.collectionId,
7129
+ dbCollection: (_23 = (_22 = props === null || props === void 0 ? void 0 : props.space) === null || _22 === void 0 ? void 0 : _22.pipelineDefaultSpaceId) !== null && _23 !== void 0 ? _23 : props.collectionId,
7114
7130
  dbEndpoint: devSettings.dbEndpoint,
7115
7131
  dbAPIToken: devSettings.dbAPIToken,
7116
7132
  dbUserToken: devSettings.dbUserToken,
7117
- }, cond: handleReadQueryHocCond(), offline: ((_22 = props.bareSettings) === null || _22 === void 0 ? void 0 : _22.bareOffline) && isNetworkOffline, onChangeData: function (data) {
7133
+ }, cond: handleReadQueryHocCond(), offline: ((_24 = props.bareSettings) === null || _24 === void 0 ? void 0 : _24.bareOffline) && isNetworkOffline, onChangeData: function (data) {
7118
7134
  handleGetListData(data, "", "");
7119
7135
  }, onError: handleGetItemError }));
7120
- if ((_23 = props.renderSettings) === null || _23 === void 0 ? void 0 : _23.renderListUI) {
7136
+ if ((_25 = props.renderSettings) === null || _25 === void 0 ? void 0 : _25.renderListUI) {
7121
7137
  return (react_1.default.createElement(react_1.default.Fragment, null,
7122
7138
  listReadQueryHOC,
7123
7139
  props.renderSettings.renderListUI(actionComponent, filterComponent_1, dataComponent)));
@@ -7164,53 +7180,53 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7164
7180
  return null;
7165
7181
  };
7166
7182
  var renderListActionElements = function () {
7167
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
7183
+ 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, _4, _5, _6, _7, _8, _9, _10;
7168
7184
  var actionElementList = [];
7169
7185
  if (schemaPresent) {
7170
7186
  actionElementList.push(react_1.default.createElement(react_1.default.Fragment, null,
7171
- react_1.default.createElement(iconButton_1.IconButton, { icon: react_1.default.createElement(solid_1.ArrowsUpDownIcon, { className: "h-7 w-7 text-primary-500" }), bgColor: "bg-white", onClick: function () {
7187
+ react_1.default.createElement(iconButton_1.IconButton, { icon: react_1.default.createElement(solid_1.ArrowsUpDownIcon, { className: "h-7 w-7 text-primary-500" }), bgColor: ((_a = props.organise) === null || _a === void 0 ? void 0 : _a.darkMode) ? "bg-white/10" : "bg-white", onClick: function () {
7172
7188
  handlePopUpModal(true, "sort");
7173
7189
  } }),
7174
7190
  react_1.default.createElement(iconButton_1.IconButton, { icon: react_1.default.createElement(outline_1.FunnelIcon, { className: "h-7 w-7 text-primary-500" }), onClick: function () {
7175
7191
  handlePopUpModal(true, "filter");
7176
- }, bgColor: "bg-white" }),
7192
+ }, bgColor: ((_b = props.organise) === null || _b === void 0 ? void 0 : _b.darkMode) ? "bg-white/10" : "bg-white" }),
7177
7193
  react_1.default.createElement(iconButton_1.IconButton, { icon: react_1.default.createElement(outline_1.AdjustmentsHorizontalIcon, { className: "h-7 w-7 text-primary-500" }), onClick: function () {
7178
7194
  handlePopUpModal(true, "overview");
7179
- }, bgColor: "bg-white" }),
7195
+ }, bgColor: ((_c = props.organise) === null || _c === void 0 ? void 0 : _c.darkMode) ? "bg-white/10" : "bg-white" }),
7180
7196
  react_1.default.createElement(iconButton_1.IconButton, { icon: react_1.default.createElement(outline_1.ArrowPathIcon, { className: "h-7 w-7 text-primary-500" }), onClick: function () {
7181
7197
  // INFO - When Refresh Don't Clear Filter
7182
7198
  handleRefresh();
7183
- }, bgColor: "bg-white" })));
7199
+ }, bgColor: ((_d = props.organise) === null || _d === void 0 ? void 0 : _d.darkMode) ? "bg-white/10" : "bg-white" })));
7184
7200
  }
7185
- if ((((_a = props.bareSettings) === null || _a === void 0 ? void 0 : _a.bareListFilterAsPopup) ||
7186
- ((_b = props.bareSettings) === null || _b === void 0 ? void 0 : _b.bareCompactMode)) &&
7187
- !((_c = props.bareSettings) === null || _c === void 0 ? void 0 : _c.bareFlexFilters) &&
7201
+ if ((((_e = props.bareSettings) === null || _e === void 0 ? void 0 : _e.bareListFilterAsPopup) ||
7202
+ ((_f = props.bareSettings) === null || _f === void 0 ? void 0 : _f.bareCompactMode)) &&
7203
+ !((_g = props.bareSettings) === null || _g === void 0 ? void 0 : _g.bareFlexFilters) &&
7188
7204
  filterComponent_1 &&
7189
7205
  Array.isArray(filterComponent_1) &&
7190
7206
  filterComponent_1.length > 0) {
7191
7207
  // INFO: in compact mode, the search input is rendered inline by
7192
7208
  // renderListFilterElements, so drop the trailing search element
7193
7209
  // from the popup to avoid duplication.
7194
- var popupFilters = ((_d = props.bareSettings) === null || _d === void 0 ? void 0 : _d.bareCompactMode) && !((_e = props.organise) === null || _e === void 0 ? void 0 : _e.hideSearch)
7210
+ var popupFilters = ((_h = props.bareSettings) === null || _h === void 0 ? void 0 : _h.bareCompactMode) && !((_j = props.organise) === null || _j === void 0 ? void 0 : _j.hideSearch)
7195
7211
  ? filterComponent_1.slice(0, -1)
7196
7212
  : filterComponent_1;
7197
7213
  if (popupFilters.length > 0) {
7198
- actionElementList.push(react_1.default.createElement(popUp_1.PopUp, { ctaComp: react_1.default.createElement(iconButton_1.IconButton, { icon: react_1.default.createElement(outline_1.FunnelIcon, { className: "h-7 w-7 text-primary-500" }), bgColor: "bg-white" }), renderComp: react_1.default.createElement("div", { className: "shadow-lg p-4 flex flex-col space-y-3 w-[calc(100vw-2rem)] max-w-[320px]" }, popupFilters.map(function (filterEl, index) { return (react_1.default.createElement("div", { key: index }, filterEl)); })), anchor: "right", excludePortalIds: ["datepicker-portal"], lib: { Transition: (_f = props === null || props === void 0 ? void 0 : props.lib) === null || _f === void 0 ? void 0 : _f.Transition } }));
7214
+ actionElementList.push(react_1.default.createElement(popUp_1.PopUp, { darkMode: (_k = props.organise) === null || _k === void 0 ? void 0 : _k.darkMode, ctaComp: react_1.default.createElement(iconButton_1.IconButton, { icon: react_1.default.createElement(outline_1.FunnelIcon, { className: "h-7 w-7 text-primary-500" }), bgColor: ((_l = props.organise) === null || _l === void 0 ? void 0 : _l.darkMode) ? "bg-white/10" : "bg-white" }), renderComp: react_1.default.createElement("div", { className: "shadow-lg p-4 flex flex-col space-y-3 w-[calc(100vw-2rem)] max-w-[320px]" }, popupFilters.map(function (filterEl, index) { return (react_1.default.createElement("div", { key: index }, filterEl)); })), anchor: "right", excludePortalIds: ["datepicker-portal"], lib: { Transition: (_m = props === null || props === void 0 ? void 0 : props.lib) === null || _m === void 0 ? void 0 : _m.Transition } }));
7199
7215
  }
7200
7216
  }
7201
7217
  // INFO: User column hiding — the schemaPresent path already exposes
7202
7218
  // OverviewModal, which writes hide back to the schema in the database.
7203
7219
  // This one is the client-only counterpart for bare DTWs.
7204
- if (!schemaPresent && ((_g = props.organise) === null || _g === void 0 ? void 0 : _g.hideColumnEnabled)) {
7220
+ if (!schemaPresent && ((_o = props.organise) === null || _o === void 0 ? void 0 : _o.hideColumnEnabled)) {
7205
7221
  var hiddenColumnCount = getUserHiddenColumnCount();
7206
- actionElementList.push(react_1.default.createElement(popUp_1.PopUp, { ctaComp: react_1.default.createElement("div", { className: "relative w-fit h-fit" },
7222
+ actionElementList.push(react_1.default.createElement(popUp_1.PopUp, { darkMode: (_p = props.organise) === null || _p === void 0 ? void 0 : _p.darkMode, ctaComp: react_1.default.createElement("div", { className: "relative w-fit h-fit" },
7207
7223
  hiddenColumnCount > 0 && (react_1.default.createElement("div", { "data-testid": "dtw-hide-columns-count", className: "absolute top-0 right-0 translate-x-1/4 -translate-y-1/4 z-[1] rounded-full bg-primary-500 text-white flex items-center justify-center w-5 h-5 text-[10px]" }, hiddenColumnCount)),
7208
7224
  react_1.default.createElement(iconButton_1.IconButton, { testId: "dtw-hide-columns-btn", icon: react_1.default.createElement(outline_1.EyeSlashIcon, { className: "h-7 w-7 ".concat(hiddenColumnCount > 0
7209
7225
  ? "text-white"
7210
- : "text-primary-500") }), bgColor: hiddenColumnCount > 0 ? "bg-primary-500" : "bg-white" })), renderComp: renderHideColumnPopupContent(), anchor: "right", lib: { Transition: (_h = props === null || props === void 0 ? void 0 : props.lib) === null || _h === void 0 ? void 0 : _h.Transition } }));
7226
+ : "text-primary-500") }), bgColor: hiddenColumnCount > 0 ? "bg-primary-500" : "bg-white" })), renderComp: renderHideColumnPopupContent(), anchor: "right", lib: { Transition: (_q = props === null || props === void 0 ? void 0 : props.lib) === null || _q === void 0 ? void 0 : _q.Transition } }));
7211
7227
  }
7212
7228
  // INFO: Flex filter — desktop uses PopUp, mobile uses Modal
7213
- if ((_j = props.bareSettings) === null || _j === void 0 ? void 0 : _j.bareFlexFilters) {
7229
+ if ((_r = props.bareSettings) === null || _r === void 0 ? void 0 : _r.bareFlexFilters) {
7214
7230
  var flexActions = {
7215
7231
  handleAddFilter: handleFlexFilterAdd,
7216
7232
  handleRemoveFilter: handleFlexFilterRemove,
@@ -7223,31 +7239,38 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7223
7239
  };
7224
7240
  // INFO: Search input will only render above flex filters if bareListFilterAsPopup is true
7225
7241
  var searchInput = !isFirebase &&
7226
- ((_k = props.bareSettings) === null || _k === void 0 ? void 0 : _k.bareListFilterAsPopup) &&
7227
- !((_l = props.organise) === null || _l === void 0 ? void 0 : _l.hideSearch) &&
7242
+ ((_s = props.bareSettings) === null || _s === void 0 ? void 0 : _s.bareListFilterAsPopup) &&
7243
+ !((_t = props.organise) === null || _t === void 0 ? void 0 : _t.hideSearch) &&
7228
7244
  filterComponent_1 &&
7229
7245
  Array.isArray(filterComponent_1) &&
7230
7246
  filterComponent_1.length > 0
7231
7247
  ? filterComponent_1[filterComponent_1.length - 1]
7232
7248
  : undefined;
7233
7249
  var flexFilterLength_1 = activeFlexFilterCount_1;
7234
- if (!((_m = props.organise) === null || _m === void 0 ? void 0 : _m.hideSearch) &&
7235
- ((_o = props.bareSettings) === null || _o === void 0 ? void 0 : _o.bareListFilterAsPopup) &&
7250
+ if (!((_u = props.organise) === null || _u === void 0 ? void 0 : _u.hideSearch) &&
7251
+ ((_v = props.bareSettings) === null || _v === void 0 ? void 0 : _v.bareListFilterAsPopup) &&
7236
7252
  (filterSearchParams === null || filterSearchParams === void 0 ? void 0 : filterSearchParams["search"]))
7237
7253
  flexFilterLength_1 += 1;
7238
7254
  var flexFilterIconBtn = function (mobile) {
7255
+ var _a;
7239
7256
  return (react_1.default.createElement("div", { className: "relative w-fit h-fit" },
7240
7257
  flexFilterLength_1 > 0 && (react_1.default.createElement("div", { className: "absolute top-0 right-0 translate-x-1/4 -translate-y-1/4 z-[1] rounded-full bg-primary-500 text-white flex items-center justify-center w-5 h-5 text-[10px]" }, flexFilterLength_1)),
7241
- react_1.default.createElement(iconButton_1.IconButton, { icon: react_1.default.createElement(outline_1.FunnelIcon, { className: "h-7 w-7 text-primary-500" }), bgColor: "bg-white", onClick: mobile ? function () { return setFlexFilterModalOpen(true); } : undefined })));
7258
+ react_1.default.createElement(iconButton_1.IconButton, { icon: react_1.default.createElement(outline_1.FunnelIcon, { className: "h-7 w-7 text-primary-500" }), bgColor: ((_a = props.organise) === null || _a === void 0 ? void 0 : _a.darkMode) ? "bg-white/10" : "bg-white", onClick: mobile ? function () { return setFlexFilterModalOpen(true); } : undefined })));
7242
7259
  };
7243
7260
  // INFO: Desktop — PopUp (hidden on mobile)
7244
7261
  actionElementList.push(react_1.default.createElement("div", { className: "hidden md:block" },
7245
- react_1.default.createElement(popUp_1.PopUp, { ctaComp: flexFilterIconBtn(), renderComp: (0, flexFilter_1.renderFlexFilterPopupContent)(flexFilters, structure, devSettings, dbModule, flexFilterReferenceOptions, flexFilterReferenceSearch, flexActions, (_p = props.bareSettings) === null || _p === void 0 ? void 0 : _p.bareListFilterQuery, searchInput, (_q = props.bareSettings) === null || _q === void 0 ? void 0 : _q.bareListFilterAddComponent), anchor: "right", excludePortalIds: ["datepicker-portal", "select-portal"], lib: { Transition: (_r = props === null || props === void 0 ? void 0 : props.lib) === null || _r === void 0 ? void 0 : _r.Transition } })));
7262
+ react_1.default.createElement(popUp_1.PopUp, { darkMode: (_w = props.organise) === null || _w === void 0 ? void 0 : _w.darkMode, ctaComp: flexFilterIconBtn(), renderComp: (0, flexFilter_1.renderFlexFilterPopupContent)(flexFilters, structure, devSettings, dbModule, flexFilterReferenceOptions, flexFilterReferenceSearch, flexActions, (_x = props.bareSettings) === null || _x === void 0 ? void 0 : _x.bareListFilterQuery, searchInput, (_y = props.bareSettings) === null || _y === void 0 ? void 0 : _y.bareListFilterAddComponent, undefined, {
7263
+ darkMode: (_z = props.organise) === null || _z === void 0 ? void 0 : _z.darkMode,
7264
+ darkModeBg: (_0 = props.organise) === null || _0 === void 0 ? void 0 : _0.darkModeBg,
7265
+ }), anchor: "right", excludePortalIds: ["datepicker-portal", "select-portal"], lib: { Transition: (_1 = props === null || props === void 0 ? void 0 : props.lib) === null || _1 === void 0 ? void 0 : _1.Transition } })));
7246
7266
  // INFO: Mobile — IconButton that opens a Modal (hidden on desktop)
7247
7267
  actionElementList.push(react_1.default.createElement("div", { className: "block md:hidden" },
7248
- !((_s = props.bareSettings) === null || _s === void 0 ? void 0 : _s.bareListMobileFloatingSearch) &&
7268
+ !((_2 = props.bareSettings) === null || _2 === void 0 ? void 0 : _2.bareListMobileFloatingSearch) &&
7249
7269
  flexFilterIconBtn(true),
7250
- (0, flexFilter_1.renderFlexFilterModal)(flexFilterModalOpen, flexFilters, structure, devSettings, dbModule, flexFilterReferenceOptions, flexFilterReferenceSearch, flexActions, function () { return setFlexFilterModalOpen(false); }, (_t = props.bareSettings) === null || _t === void 0 ? void 0 : _t.bareListFilterQuery, searchInput, (_u = props.bareSettings) === null || _u === void 0 ? void 0 : _u.bareListFilterAddComponent)));
7270
+ (0, flexFilter_1.renderFlexFilterModal)(flexFilterModalOpen, flexFilters, structure, devSettings, dbModule, flexFilterReferenceOptions, flexFilterReferenceSearch, flexActions, function () { return setFlexFilterModalOpen(false); }, (_3 = props.bareSettings) === null || _3 === void 0 ? void 0 : _3.bareListFilterQuery, searchInput, (_4 = props.bareSettings) === null || _4 === void 0 ? void 0 : _4.bareListFilterAddComponent, {
7271
+ darkMode: (_5 = props.organise) === null || _5 === void 0 ? void 0 : _5.darkMode,
7272
+ darkModeBg: (_6 = props.organise) === null || _6 === void 0 ? void 0 : _6.darkModeBg,
7273
+ })));
7251
7274
  }
7252
7275
  // INFO: bareUpdateActionBottom positions the read/update action bar. The list's own
7253
7276
  // create and offline-upload buttons stay in the filter row either way — they belong
@@ -7255,14 +7278,14 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7255
7278
  var actionBtns = renderActionButtons(props.type);
7256
7279
  if (actionBtns)
7257
7280
  actionElementList.push(actionBtns);
7258
- if (schemaPresent || ((_v = props.organise) === null || _v === void 0 ? void 0 : _v.showExport)) {
7259
- actionElementList.push(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" }), bgColor: "bg-white" }), renderComp: react_1.default.createElement("div", { className: "shadow-lg" }, moreButtonPopUp.map(function (eachPopup) { return (
7281
+ if (schemaPresent || ((_7 = props.organise) === null || _7 === void 0 ? void 0 : _7.showExport)) {
7282
+ actionElementList.push(react_1.default.createElement(popUp_1.PopUp, { darkMode: (_8 = props.organise) === null || _8 === void 0 ? void 0 : _8.darkMode, 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" }), bgColor: ((_9 = props.organise) === null || _9 === void 0 ? void 0 : _9.darkMode) ? "bg-white/10" : "bg-white" }), renderComp: react_1.default.createElement("div", { className: "shadow-lg" }, moreButtonPopUp.map(function (eachPopup) { return (
7260
7283
  //TODO: Bug - Crash on Next Js
7261
7284
  // <Menu.Item>
7262
7285
  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 === null || eachPopup === void 0 ? void 0 : eachPopup.onClick }, eachPopup === null || eachPopup === void 0 ? void 0 : eachPopup.text)
7263
7286
  // </Menu.Item>
7264
7287
  ); })), lib: {
7265
- Transition: (_w = props === null || props === void 0 ? void 0 : props.lib) === null || _w === void 0 ? void 0 : _w.Transition,
7288
+ Transition: (_10 = props === null || props === void 0 ? void 0 : props.lib) === null || _10 === void 0 ? void 0 : _10.Transition,
7266
7289
  } }));
7267
7290
  }
7268
7291
  if (actionElementList.length > 0) {
@@ -7305,34 +7328,34 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7305
7328
  };
7306
7329
  return (react_1.default.createElement(react_1.default.Fragment, null,
7307
7330
  listReadQueryHOC,
7308
- react_1.default.createElement("div", { className: "flex py-2 ".concat(((_24 = props.bareSettings) === null || _24 === void 0 ? void 0 : _24.bareCompactMode)
7331
+ react_1.default.createElement("div", { className: "flex py-2 ".concat(((_26 = props.bareSettings) === null || _26 === void 0 ? void 0 : _26.bareCompactMode)
7309
7332
  ? // INFO: the grow spacer is hidden on phones (search lives in
7310
7333
  // the floating bar), so the row itself pushes the actions right
7311
7334
  "w-full flex-row flex-wrap sm:flex-nowrap items-end justify-between sm:justify-start"
7312
7335
  : "flex-col md:items-end md:flex-row") },
7313
7336
  (props.title || props.description) && (react_1.default.createElement("div", { className: "flex flex-col" },
7314
7337
  props.title && (react_1.default.createElement("div", { className: "flex items-center gap-2" },
7315
- react_1.default.createElement("p", { className: "text-xl font-medium" }, props.title),
7316
- ((_25 = props.bareSettings) === null || _25 === void 0 ? void 0 : _25.bareSocketName) &&
7338
+ react_1.default.createElement("p", { className: "text-xl font-medium ".concat(((_27 = props.organise) === null || _27 === void 0 ? void 0 : _27.darkMode) ? "text-white" : "") }, props.title),
7339
+ ((_28 = props.bareSettings) === null || _28 === void 0 ? void 0 : _28.bareSocketName) &&
7317
7340
  isLive &&
7318
7341
  !isLiveOffline && (react_1.default.createElement("span", { className: "inline-flex items-center gap-1 rounded-full bg-green-100 px-2 py-0.5 text-xs font-medium text-green-700" },
7319
7342
  react_1.default.createElement("span", { className: "h-1.5 w-1.5 rounded-full bg-green-500" }),
7320
7343
  "LIVE")),
7321
- ((_26 = props.bareSettings) === null || _26 === void 0 ? void 0 : _26.bareSocketName) && isLiveOffline && (react_1.default.createElement("span", { className: "inline-flex items-center gap-1 rounded-full bg-orange-100 px-2 py-0.5 text-xs font-medium text-orange-700" },
7344
+ ((_29 = props.bareSettings) === null || _29 === void 0 ? void 0 : _29.bareSocketName) && isLiveOffline && (react_1.default.createElement("span", { className: "inline-flex items-center gap-1 rounded-full bg-orange-100 px-2 py-0.5 text-xs font-medium text-orange-700" },
7322
7345
  react_1.default.createElement("span", { className: "h-1.5 w-1.5 rounded-full bg-orange-400" }),
7323
7346
  "OFFLINE")))),
7324
7347
  props.description && (react_1.default.createElement("span", { className: "text-sm text-gray-500" }, props.description)))),
7325
- react_1.default.createElement("div", { className: ((_27 = props.bareSettings) === null || _27 === void 0 ? void 0 : _27.bareCompactMode)
7348
+ react_1.default.createElement("div", { className: ((_30 = props.bareSettings) === null || _30 === void 0 ? void 0 : _30.bareCompactMode)
7326
7349
  ? "hidden sm:block grow"
7327
7350
  : "grow" }),
7328
7351
  react_1.default.createElement("div", { className: "ml-auto flex flex-row items-end" },
7329
7352
  renderListFilterElements(),
7330
7353
  renderListActionElements())),
7331
7354
  renderListNewRowFilterElements(),
7332
- (schemaPresent || ((_28 = props.bareSettings) === null || _28 === void 0 ? void 0 : _28.bareReadListTabs)) && (react_1.default.createElement(tabs_1.Tabs, { tabs: tabs, selectedId: viewType, linkType: props.linkType, custom: props.custom, onClick: function (id) { return handleSelectTab(id); }, darkMode: (_29 = props.organise) === null || _29 === void 0 ? void 0 : _29.darkMode })),
7355
+ (schemaPresent || ((_31 = props.bareSettings) === null || _31 === void 0 ? void 0 : _31.bareReadListTabs)) && (react_1.default.createElement(tabs_1.Tabs, { tabs: tabs, selectedId: viewType, linkType: props.linkType, custom: props.custom, onClick: function (id) { return handleSelectTab(id); }, darkMode: (_32 = props.organise) === null || _32 === void 0 ? void 0 : _32.darkMode })),
7333
7356
  renderTabContent(tabs, props.type, viewType),
7334
- ((_30 = props.bareSettings) === null || _30 === void 0 ? void 0 : _30.bareListMobileFloatingSearch) && (react_1.default.createElement("div", { className: "h-28 md:hidden", "aria-hidden": "true" })),
7335
- ((_31 = props.bareSettings) === null || _31 === void 0 ? void 0 : _31.bareListMobileFloatingSearch) &&
7357
+ ((_33 = props.bareSettings) === null || _33 === void 0 ? void 0 : _33.bareListMobileFloatingSearch) && (react_1.default.createElement("div", { className: "h-28 md:hidden", "aria-hidden": "true" })),
7358
+ ((_34 = props.bareSettings) === null || _34 === void 0 ? void 0 : _34.bareListMobileFloatingSearch) &&
7336
7359
  (0, listModule_1.renderFloatingMobileSearch)({
7337
7360
  filterSearch: filterSearch,
7338
7361
  handleNameSearch: handleNameSearch,
@@ -7345,15 +7368,15 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7345
7368
  handlePopUpModal(true, "filter");
7346
7369
  }
7347
7370
  },
7348
- hideSearch: (_32 = props.organise) === null || _32 === void 0 ? void 0 : _32.hideSearch,
7349
- darkMode: (_33 = props.organise) === null || _33 === void 0 ? void 0 : _33.darkMode,
7350
- floatingOffset: (_34 = props.bareSettings) === null || _34 === void 0 ? void 0 : _34.bareListFloatingActionOffset,
7351
- hideFilter: !((_35 = props.bareSettings) === null || _35 === void 0 ? void 0 : _35.bareFlexFilters),
7352
- activeFilterCount: ((_36 = props.bareSettings) === null || _36 === void 0 ? void 0 : _36.bareFlexFilters)
7371
+ hideSearch: (_35 = props.organise) === null || _35 === void 0 ? void 0 : _35.hideSearch,
7372
+ darkMode: (_36 = props.organise) === null || _36 === void 0 ? void 0 : _36.darkMode,
7373
+ floatingOffset: (_37 = props.bareSettings) === null || _37 === void 0 ? void 0 : _37.bareListFloatingActionOffset,
7374
+ hideFilter: !((_38 = props.bareSettings) === null || _38 === void 0 ? void 0 : _38.bareFlexFilters),
7375
+ activeFilterCount: ((_39 = props.bareSettings) === null || _39 === void 0 ? void 0 : _39.bareFlexFilters)
7353
7376
  ? activeFlexFilterCount_1
7354
7377
  : undefined,
7355
7378
  // INFO: Hides when items are selected so NewTable's multi-action bar takes over.
7356
- hidden: selectAll || ((_37 = selectedIds === null || selectedIds === void 0 ? void 0 : selectedIds.length) !== null && _37 !== void 0 ? _37 : 0) > 0,
7379
+ hidden: selectAll || ((_40 = selectedIds === null || selectedIds === void 0 ? void 0 : selectedIds.length) !== null && _40 !== void 0 ? _40 : 0) > 0,
7357
7380
  })));
7358
7381
  default:
7359
7382
  return react_1.default.createElement(react_1.default.Fragment, null);
@@ -7363,7 +7386,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7363
7386
  //SECTION: Render Utils
7364
7387
  //=====================================================================================
7365
7388
  var renderDataTemplateFormContent = function (state, model, ref, isObject, isObjectList, modalInput, parentData) {
7366
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
7389
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
7367
7390
  return (0, updateModule_1.renderDataTemplateForm)(state, model, ref, {
7368
7391
  handleOnChangeAddress: handleOnChangeAddress,
7369
7392
  handleOnChangeText: handleOnChangeText,
@@ -7386,6 +7409,8 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7386
7409
  remainId: remainId,
7387
7410
  groupIdCollapsible: (_c = props.organise) === null || _c === void 0 ? void 0 : _c.groupIdCollapsible,
7388
7411
  groupDescriptions: (_d = props.organise) === null || _d === void 0 ? void 0 : _d.groupDescriptions,
7412
+ darkMode: (_e = props.organise) === null || _e === void 0 ? void 0 : _e.darkMode,
7413
+ darkModeBg: (_f = props.organise) === null || _f === void 0 ? void 0 : _f.darkModeBg,
7389
7414
  }, {
7390
7415
  dbModule: dbModule,
7391
7416
  devSettings: devSettings,
@@ -7402,12 +7427,12 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7402
7427
  imageEndpoint: devSettings.imageEndpoint,
7403
7428
  maxFileSize: devSettings.maxFileSize,
7404
7429
  imageBucketName: devSettings.bucketName,
7405
- handleCustomDownloadFile: (_e = props.organise) === null || _e === void 0 ? void 0 : _e.handleCustomDownloadFile,
7430
+ handleCustomDownloadFile: (_g = props.organise) === null || _g === void 0 ? void 0 : _g.handleCustomDownloadFile,
7406
7431
  }, {
7407
7432
  selectedObjectId: selectedObjectId,
7408
7433
  selectedObjectStructureId: selectedObjectStructureId,
7409
7434
  parentData: parentData,
7410
- organiseListObjTableView: ((_f = props.organise) === null || _f === void 0 ? void 0 : _f.listObjectTableView)
7435
+ organiseListObjTableView: ((_h = props.organise) === null || _h === void 0 ? void 0 : _h.listObjectTableView)
7411
7436
  ? true
7412
7437
  : false,
7413
7438
  setSelectedObjectStructureId: setSelectedObjectStructureId,
@@ -7417,7 +7442,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7417
7442
  renderObjectTags: renderObjectTags,
7418
7443
  setSelectedData: setSelectedData,
7419
7444
  flexTableRefs: flexTableRefs,
7420
- }, { signing: signatureSigning, setSigning: setSignatureSigning }, props.onComplete ? true : false, (_g = props.bareSettings) === null || _g === void 0 ? void 0 : _g.bareOffline, (_j = (_h = props.bareSettings) === null || _h === void 0 ? void 0 : _h.bareUpdateColumnType) !== null && _j !== void 0 ? _j : "two", (_k = props.bareSettings) === null || _k === void 0 ? void 0 : _k.bareUpdateIndividualComponent, (_l = props.bareSettings) === null || _l === void 0 ? void 0 : _l.bareUpdateMobileView);
7445
+ }, { signing: signatureSigning, setSigning: setSignatureSigning }, props.onComplete ? true : false, (_j = props.bareSettings) === null || _j === void 0 ? void 0 : _j.bareOffline, (_l = (_k = props.bareSettings) === null || _k === void 0 ? void 0 : _k.bareUpdateColumnType) !== null && _l !== void 0 ? _l : "two", (_m = props.bareSettings) === null || _m === void 0 ? void 0 : _m.bareUpdateIndividualComponent, (_o = props.bareSettings) === null || _o === void 0 ? void 0 : _o.bareUpdateMobileView);
7421
7446
  };
7422
7447
  var renderGridAndListData = function (imageTag, type, kanbanGroupId, useColumnName) {
7423
7448
  var _a, _b;
@@ -7765,7 +7790,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7765
7790
  return groups;
7766
7791
  };
7767
7792
  var renderGroupTable = function (multipleSelect) {
7768
- 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, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35;
7793
+ 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, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36;
7769
7794
  if (groupId && !((_a = props.bareSettings) === null || _a === void 0 ? void 0 : _a.bareNewDTW)) {
7770
7795
  var groupAttributeDS_1 = structure.find(function (eachDS) { return eachDS.id === groupId; });
7771
7796
  var groupedSpaceTableData = spaceTableData.reduce(function (acc, eachData) {
@@ -7890,8 +7915,8 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7890
7915
  else {
7891
7916
  // INFO: when bareNewDTW is enabled, render NewTable instead of legacy Table
7892
7917
  if ((_b = props.bareSettings) === null || _b === void 0 ? void 0 : _b.bareNewDTW) {
7893
- return (react_1.default.createElement(newTable_1.NewTable, { showId: showId, paginationType: renderResolvedPaginationType(), data: tableData, spaceData: spaceTableData !== null && spaceTableData !== void 0 ? spaceTableData : [], referencesOptions: listReferencesOptions, groups: handleBuildNewTableGroups(), size: size !== null && size !== void 0 ? size : 0, limit: limit, cursor: cursor !== null && cursor !== void 0 ? cursor : "", loading: tableLoading !== null && tableLoading !== void 0 ? tableLoading : true, checkbox: multipleSelect, selectAll: selectAll, selectedIds: selectedIds, selectAllText: selectAll ? "from filter" : "", disableSelectFullData: (_d = (_c = props.organise) === null || _c === void 0 ? void 0 : _c.disableSelectFullData) === null || _d === void 0 ? void 0 : _d.table, maxSelectedCount: (_e = props.bareSettings) === null || _e === void 0 ? void 0 : _e.bareListMaxSelectedCount, mobileView: (_f = props.bareSettings) === null || _f === void 0 ? void 0 : _f.bareListMobileView, mobileTooltip: (_g = props.bareSettings) === null || _g === void 0 ? void 0 : _g.bareMobileTooltip, multiActionFloatingBtns: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], (!((_h = props.edit) === null || _h === void 0 ? void 0 : _h.disabledUpdate) &&
7894
- !((_j = props.bareSettings) === null || _j === void 0 ? void 0 : _j.bareHideTableExtraMultipleAction)
7918
+ return (react_1.default.createElement(newTable_1.NewTable, { darkModeBg: (_c = props.organise) === null || _c === void 0 ? void 0 : _c.darkModeBg, showId: showId, paginationType: renderResolvedPaginationType(), data: tableData, spaceData: spaceTableData !== null && spaceTableData !== void 0 ? spaceTableData : [], referencesOptions: listReferencesOptions, groups: handleBuildNewTableGroups(), size: size !== null && size !== void 0 ? size : 0, limit: limit, cursor: cursor !== null && cursor !== void 0 ? cursor : "", loading: tableLoading !== null && tableLoading !== void 0 ? tableLoading : true, checkbox: multipleSelect, selectAll: selectAll, selectedIds: selectedIds, selectAllText: selectAll ? "from filter" : "", disableSelectFullData: (_e = (_d = props.organise) === null || _d === void 0 ? void 0 : _d.disableSelectFullData) === null || _e === void 0 ? void 0 : _e.table, maxSelectedCount: (_f = props.bareSettings) === null || _f === void 0 ? void 0 : _f.bareListMaxSelectedCount, mobileView: (_g = props.bareSettings) === null || _g === void 0 ? void 0 : _g.bareListMobileView, mobileTooltip: (_h = props.bareSettings) === null || _h === void 0 ? void 0 : _h.bareMobileTooltip, multiActionFloatingBtns: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], (!((_j = props.edit) === null || _j === void 0 ? void 0 : _j.disabledUpdate) &&
7919
+ !((_k = props.bareSettings) === null || _k === void 0 ? void 0 : _k.bareHideTableExtraMultipleAction)
7895
7920
  ? [
7896
7921
  {
7897
7922
  id: "draft",
@@ -7906,7 +7931,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7906
7931
  hide: selectedIds.length === 0,
7907
7932
  },
7908
7933
  ]
7909
- : []), true), (((_k = props.edit) === null || _k === void 0 ? void 0 : _k.deleteBtn)
7934
+ : []), true), (((_l = props.edit) === null || _l === void 0 ? void 0 : _l.deleteBtn)
7910
7935
  ? [
7911
7936
  {
7912
7937
  id: "delete",
@@ -7917,7 +7942,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7917
7942
  },
7918
7943
  },
7919
7944
  ]
7920
- : []), true), (!isFirebase && !((_l = props.edit) === null || _l === void 0 ? void 0 : _l.disableBatchUpdate)
7945
+ : []), true), (!isFirebase && !((_m = props.edit) === null || _m === void 0 ? void 0 : _m.disableBatchUpdate)
7921
7946
  ? [
7922
7947
  {
7923
7948
  id: "update",
@@ -7925,7 +7950,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7925
7950
  onClick: function () { return setBatchUpdateModal(true); },
7926
7951
  },
7927
7952
  ]
7928
- : []), true), (((_m = props.bareSettings) === null || _m === void 0 ? void 0 : _m.bareListMultipleSelectAddtionalActions)
7953
+ : []), true), (((_o = props.bareSettings) === null || _o === void 0 ? void 0 : _o.bareListMultipleSelectAddtionalActions)
7929
7954
  ? props.bareSettings.bareListMultipleSelectAddtionalActions.map(function (eachButton) { return ({
7930
7955
  id: "dt-list-multi-action-btn-" + eachButton.text,
7931
7956
  btnText: eachButton.text,
@@ -7934,23 +7959,23 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7934
7959
  return (_a = eachButton.onClick) === null || _a === void 0 ? void 0 : _a.call(eachButton, selectedIds, selectAll, (_b = renderImpSearchFilterConditions()) !== null && _b !== void 0 ? _b : []);
7935
7960
  },
7936
7961
  }); })
7937
- : []), true), multiActionFloatingOffset: (_o = props.bareSettings) === null || _o === void 0 ? void 0 : _o.bareListFloatingActionOffset, handleSelectAll: handleSelectAllPages, handleSelectedIds: handleSelectIds, header: renderTableHeader(), pageIndex: pageIndex !== null && pageIndex !== void 0 ? pageIndex : 0, onClickRow: function (id) {
7962
+ : []), true), multiActionFloatingOffset: (_p = props.bareSettings) === null || _p === void 0 ? void 0 : _p.bareListFloatingActionOffset, handleSelectAll: handleSelectAllPages, handleSelectedIds: handleSelectIds, header: renderTableHeader(), pageIndex: pageIndex !== null && pageIndex !== void 0 ? pageIndex : 0, onClickRow: function (id) {
7938
7963
  var _a, _b;
7939
7964
  (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
7940
- }, linkType: props.linkType, custom: props.custom, newTabUrl: (_q = (_p = props.newTabUrl) === null || _p === void 0 ? void 0 : _p.default) !== null && _q !== void 0 ? _q : "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: (_s = (_r = props.newTabUrl) === null || _r === void 0 ? void 0 : _r.addons) !== null && _s !== void 0 ? _s : "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: function (value) {
7965
+ }, linkType: props.linkType, custom: props.custom, newTabUrl: (_r = (_q = props.newTabUrl) === null || _q === void 0 ? void 0 : _q.default) !== null && _r !== void 0 ? _r : "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: (_t = (_s = props.newTabUrl) === null || _s === void 0 ? void 0 : _s.addons) !== null && _t !== void 0 ? _t : "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: function (value) {
7941
7966
  handlePagination(value);
7942
- }, className: "mt-5", devSettings: props.devSettings, bareSettings: props.bareSettings, fixedPagination: (_t = props.organise) === null || _t === void 0 ? void 0 : _t.fixedPagination, advSettings: {
7943
- addColumnEnabled: (_u = props.organise) === null || _u === void 0 ? void 0 : _u.addColumnEnabled,
7967
+ }, className: "mt-5", devSettings: props.devSettings, bareSettings: props.bareSettings, fixedPagination: (_u = props.organise) === null || _u === void 0 ? void 0 : _u.fixedPagination, advSettings: {
7968
+ addColumnEnabled: (_v = props.organise) === null || _v === void 0 ? void 0 : _v.addColumnEnabled,
7944
7969
  renderAddColumnElements: renderAddMathColumn,
7945
- dragEnabled: (_v = props.organise) === null || _v === void 0 ? void 0 : _v.advDragEnabled,
7946
- sortEnabled: (_w = props.organise) === null || _w === void 0 ? void 0 : _w.advSortEnabled,
7947
- filterEnabled: ((_x = props.bareSettings) === null || _x === void 0 ? void 0 : _x.bareFlexFilters)
7970
+ dragEnabled: (_w = props.organise) === null || _w === void 0 ? void 0 : _w.advDragEnabled,
7971
+ sortEnabled: (_x = props.organise) === null || _x === void 0 ? void 0 : _x.advSortEnabled,
7972
+ filterEnabled: ((_y = props.bareSettings) === null || _y === void 0 ? void 0 : _y.bareFlexFilters)
7948
7973
  ? false
7949
- : (_y = props.organise) === null || _y === void 0 ? void 0 : _y.advFilterEnabled,
7974
+ : (_z = props.organise) === null || _z === void 0 ? void 0 : _z.advFilterEnabled,
7950
7975
  sortId: activeSortId,
7951
- sortOptions: (_0 = (_z = props.organise) === null || _z === void 0 ? void 0 : _z.renderReferenceLabelOptions) === null || _0 === void 0 ? void 0 : _0.call(_z),
7976
+ sortOptions: (_1 = (_0 = props.organise) === null || _0 === void 0 ? void 0 : _0.renderReferenceLabelOptions) === null || _1 === void 0 ? void 0 : _1.call(_0),
7952
7977
  onSortColumn: handleSortColumn,
7953
- onDragColumn: (_1 = props.organise) === null || _1 === void 0 ? void 0 : _1.onChangeDrag,
7978
+ onDragColumn: (_2 = props.organise) === null || _2 === void 0 ? void 0 : _2.onChangeDrag,
7954
7979
  filterOptions: additionalQuery === null || additionalQuery === void 0 ? void 0 : additionalQuery.map(function (eachQuery) {
7955
7980
  var _a;
7956
7981
  return {
@@ -7967,7 +7992,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7967
7992
  return renderSearchContent(newQuery);
7968
7993
  },
7969
7994
  }, editable: {
7970
- active: ((_2 = props.edit) === null || _2 === void 0 ? void 0 : _2.listEditable) && !props.edit.disabledUpdate
7995
+ active: ((_3 = props.edit) === null || _3 === void 0 ? void 0 : _3.listEditable) && !props.edit.disabledUpdate
7971
7996
  ? true
7972
7997
  : false,
7973
7998
  onUpdateData: function (rowId, columnId, data) { return __awaiter(void 0, void 0, void 0, function () {
@@ -7981,7 +8006,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7981
8006
  });
7982
8007
  }); },
7983
8008
  }, onObjectEdit: handleObjectCellEdit, addable: {
7984
- active: ((_3 = props.edit) === null || _3 === void 0 ? void 0 : _3.listAddable) ? true : false,
8009
+ active: ((_4 = props.edit) === null || _4 === void 0 ? void 0 : _4.listAddable) ? true : false,
7985
8010
  onAddData: function (data) { return __awaiter(void 0, void 0, void 0, function () {
7986
8011
  return __generator(this, function (_a) {
7987
8012
  switch (_a.label) {
@@ -7992,27 +8017,27 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7992
8017
  }
7993
8018
  });
7994
8019
  }); },
7995
- }, darkMode: (_4 = props.organise) === null || _4 === void 0 ? void 0 : _4.darkMode, hidePagination: (_5 = props.organise) === null || _5 === void 0 ? void 0 : _5.hidePagination, customPaginationSize: customPaginationSize, disableEllipsisOnLongWord: (_6 = props.organise) === null || _6 === void 0 ? void 0 : _6.disableEllipsisOnLongWord, pinColumns: (_7 = props.bareSettings) === null || _7 === void 0 ? void 0 : _7.bareListTablePinColumns }));
8020
+ }, darkMode: (_5 = props.organise) === null || _5 === void 0 ? void 0 : _5.darkMode, hidePagination: (_6 = props.organise) === null || _6 === void 0 ? void 0 : _6.hidePagination, customPaginationSize: customPaginationSize, disableEllipsisOnLongWord: (_7 = props.organise) === null || _7 === void 0 ? void 0 : _7.disableEllipsisOnLongWord, pinColumns: (_8 = props.bareSettings) === null || _8 === void 0 ? void 0 : _8.bareListTablePinColumns }));
7996
8021
  }
7997
- return (react_1.default.createElement(table_1.Table, { showId: showId, paginationType: renderResolvedPaginationType(), data: tableData, spaceData: spaceTableData !== null && spaceTableData !== void 0 ? spaceTableData : [], referencesOptions: listReferencesOptions, size: size !== null && size !== void 0 ? size : 0, limit: limit, cursor: cursor !== null && cursor !== void 0 ? cursor : "", loading: tableLoading !== null && tableLoading !== void 0 ? tableLoading : true, checkbox: multipleSelect, selectAll: selectAll, selectedIds: selectedIds, selectAllText: selectAll ? "from filter" : "", disableSelectFullData: (_9 = (_8 = props.organise) === null || _8 === void 0 ? void 0 : _8.disableSelectFullData) === null || _9 === void 0 ? void 0 : _9.table, multiActionButton: react_1.default.createElement("div", { className: "flex flex-row space-x-3" },
8022
+ return (react_1.default.createElement(table_1.Table, { showId: showId, paginationType: renderResolvedPaginationType(), data: tableData, spaceData: spaceTableData !== null && spaceTableData !== void 0 ? spaceTableData : [], referencesOptions: listReferencesOptions, size: size !== null && size !== void 0 ? size : 0, limit: limit, cursor: cursor !== null && cursor !== void 0 ? cursor : "", loading: tableLoading !== null && tableLoading !== void 0 ? tableLoading : true, checkbox: multipleSelect, selectAll: selectAll, selectedIds: selectedIds, selectAllText: selectAll ? "from filter" : "", disableSelectFullData: (_10 = (_9 = props.organise) === null || _9 === void 0 ? void 0 : _9.disableSelectFullData) === null || _10 === void 0 ? void 0 : _10.table, multiActionButton: react_1.default.createElement("div", { className: "flex flex-row space-x-3" },
7998
8023
  selectedIds.length > 0 &&
7999
- !((_10 = props.edit) === null || _10 === void 0 ? void 0 : _10.disabledUpdate) &&
8000
- !((_11 = props.bareSettings) === null || _11 === void 0 ? void 0 : _11.bareHideTableExtraMultipleAction) && (react_1.default.createElement(react_1.default.Fragment, null,
8024
+ !((_11 = props.edit) === null || _11 === void 0 ? void 0 : _11.disabledUpdate) &&
8025
+ !((_12 = props.bareSettings) === null || _12 === void 0 ? void 0 : _12.bareHideTableExtraMultipleAction) && (react_1.default.createElement(react_1.default.Fragment, null,
8001
8026
  react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Change to Draft", disable: loading, onClick: function () {
8002
8027
  handleBatchDraftData();
8003
8028
  } }),
8004
8029
  react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Clone Items", disable: loading, onClick: function () {
8005
8030
  handleCloneSelectedData();
8006
8031
  } }))),
8007
- ((_12 = props.edit) === null || _12 === void 0 ? void 0 : _12.deleteBtn) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm text-red-500 hover:text-red-600", text: "Delete", onClick: function () {
8032
+ ((_13 = props.edit) === null || _13 === void 0 ? void 0 : _13.deleteBtn) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm text-red-500 hover:text-red-600", text: "Delete", onClick: function () {
8008
8033
  handleGenerateDeletePasscode();
8009
8034
  setDeleteModal(true);
8010
8035
  } })),
8011
- !isFirebase && !((_13 = props.edit) === null || _13 === void 0 ? void 0 : _13.disableBatchUpdate) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Update", onClick: function () {
8036
+ !isFirebase && !((_14 = props.edit) === null || _14 === void 0 ? void 0 : _14.disableBatchUpdate) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Update", onClick: function () {
8012
8037
  setBatchUpdateModal(true);
8013
8038
  } })),
8014
- ((_14 = props.bareSettings) === null || _14 === void 0 ? void 0 : _14.bareListMultipleSelectAddtionalActions) &&
8015
- ((_16 = (_15 = props.bareSettings) === null || _15 === void 0 ? void 0 : _15.bareListMultipleSelectAddtionalActions) === null || _16 === void 0 ? void 0 : _16.map(function (eachButton) {
8039
+ ((_15 = props.bareSettings) === null || _15 === void 0 ? void 0 : _15.bareListMultipleSelectAddtionalActions) &&
8040
+ ((_17 = (_16 = props.bareSettings) === null || _16 === void 0 ? void 0 : _16.bareListMultipleSelectAddtionalActions) === null || _17 === void 0 ? void 0 : _17.map(function (eachButton) {
8016
8041
  return (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm ".concat(eachButton.className), text: eachButton.text, onClick: function () {
8017
8042
  var _a, _b;
8018
8043
  (_a = eachButton.onClick) === null || _a === void 0 ? void 0 : _a.call(eachButton, selectedIds, selectAll, (_b = renderImpSearchFilterConditions()) !== null && _b !== void 0 ? _b : []);
@@ -8020,20 +8045,20 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8020
8045
  }))), handleSelectAll: handleSelectAllPages, handleSelectedIds: handleSelectIds, header: renderTableHeader(), pageIndex: pageIndex !== null && pageIndex !== void 0 ? pageIndex : 0, onClickRow: function (id) {
8021
8046
  var _a, _b;
8022
8047
  (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
8023
- }, linkType: props.linkType, custom: props.custom, newTabUrl: (_18 = (_17 = props.newTabUrl) === null || _17 === void 0 ? void 0 : _17.default) !== null && _18 !== void 0 ? _18 : "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: (_20 = (_19 = props.newTabUrl) === null || _19 === void 0 ? void 0 : _19.addons) !== null && _20 !== void 0 ? _20 : "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: function (value) {
8048
+ }, linkType: props.linkType, custom: props.custom, newTabUrl: (_19 = (_18 = props.newTabUrl) === null || _18 === void 0 ? void 0 : _18.default) !== null && _19 !== void 0 ? _19 : "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: (_21 = (_20 = props.newTabUrl) === null || _20 === void 0 ? void 0 : _20.addons) !== null && _21 !== void 0 ? _21 : "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: function (value) {
8024
8049
  handlePagination(value);
8025
- }, className: "mt-5", lib: { axios: (_21 = props.lib) === null || _21 === void 0 ? void 0 : _21.axios }, devSettings: props.devSettings, bareSettings: props.bareSettings, fixedPagination: (_22 = props.organise) === null || _22 === void 0 ? void 0 : _22.fixedPagination, advSettings: {
8026
- addColumnEnabled: (_23 = props.organise) === null || _23 === void 0 ? void 0 : _23.addColumnEnabled,
8050
+ }, className: "mt-5", lib: { axios: (_22 = props.lib) === null || _22 === void 0 ? void 0 : _22.axios }, devSettings: props.devSettings, bareSettings: props.bareSettings, fixedPagination: (_23 = props.organise) === null || _23 === void 0 ? void 0 : _23.fixedPagination, advSettings: {
8051
+ addColumnEnabled: (_24 = props.organise) === null || _24 === void 0 ? void 0 : _24.addColumnEnabled,
8027
8052
  renderAddColumnElements: renderAddMathColumn,
8028
- dragEnabled: (_24 = props.organise) === null || _24 === void 0 ? void 0 : _24.advDragEnabled,
8029
- sortEnabled: (_25 = props.organise) === null || _25 === void 0 ? void 0 : _25.advSortEnabled,
8030
- filterEnabled: ((_26 = props.bareSettings) === null || _26 === void 0 ? void 0 : _26.bareFlexFilters)
8053
+ dragEnabled: (_25 = props.organise) === null || _25 === void 0 ? void 0 : _25.advDragEnabled,
8054
+ sortEnabled: (_26 = props.organise) === null || _26 === void 0 ? void 0 : _26.advSortEnabled,
8055
+ filterEnabled: ((_27 = props.bareSettings) === null || _27 === void 0 ? void 0 : _27.bareFlexFilters)
8031
8056
  ? false
8032
- : (_27 = props.organise) === null || _27 === void 0 ? void 0 : _27.advFilterEnabled,
8057
+ : (_28 = props.organise) === null || _28 === void 0 ? void 0 : _28.advFilterEnabled,
8033
8058
  sortId: activeSortId,
8034
- sortOptions: (_29 = (_28 = props.organise) === null || _28 === void 0 ? void 0 : _28.renderReferenceLabelOptions) === null || _29 === void 0 ? void 0 : _29.call(_28),
8059
+ sortOptions: (_30 = (_29 = props.organise) === null || _29 === void 0 ? void 0 : _29.renderReferenceLabelOptions) === null || _30 === void 0 ? void 0 : _30.call(_29),
8035
8060
  onSortColumn: handleSortColumn,
8036
- onDragColumn: (_30 = props.organise) === null || _30 === void 0 ? void 0 : _30.onChangeDrag,
8061
+ onDragColumn: (_31 = props.organise) === null || _31 === void 0 ? void 0 : _31.onChangeDrag,
8037
8062
  filterOptions: additionalQuery === null || additionalQuery === void 0 ? void 0 : additionalQuery.map(function (eachQuery) {
8038
8063
  var _a;
8039
8064
  return {
@@ -8050,7 +8075,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8050
8075
  return renderSearchContent(newQuery);
8051
8076
  },
8052
8077
  }, editable: {
8053
- active: ((_31 = props.edit) === null || _31 === void 0 ? void 0 : _31.listEditable) && !props.edit.disabledUpdate
8078
+ active: ((_32 = props.edit) === null || _32 === void 0 ? void 0 : _32.listEditable) && !props.edit.disabledUpdate
8054
8079
  ? true
8055
8080
  : false,
8056
8081
  onUpdateData: function (rowId, columnId, data) { return __awaiter(void 0, void 0, void 0, function () {
@@ -8064,7 +8089,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8064
8089
  });
8065
8090
  }); },
8066
8091
  }, onObjectEdit: handleObjectCellEdit, addable: {
8067
- active: ((_32 = props.edit) === null || _32 === void 0 ? void 0 : _32.listAddable) ? true : false,
8092
+ active: ((_33 = props.edit) === null || _33 === void 0 ? void 0 : _33.listAddable) ? true : false,
8068
8093
  onAddData: function (data) { return __awaiter(void 0, void 0, void 0, function () {
8069
8094
  return __generator(this, function (_a) {
8070
8095
  switch (_a.label) {
@@ -8075,11 +8100,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8075
8100
  }
8076
8101
  });
8077
8102
  }); },
8078
- }, darkMode: (_33 = props.organise) === null || _33 === void 0 ? void 0 : _33.darkMode, hidePagination: (_34 = props.organise) === null || _34 === void 0 ? void 0 : _34.hidePagination, customPaginationSize: customPaginationSize, disableEllipsisOnLongWord: (_35 = props.organise) === null || _35 === void 0 ? void 0 : _35.disableEllipsisOnLongWord }));
8103
+ }, darkMode: (_34 = props.organise) === null || _34 === void 0 ? void 0 : _34.darkMode, hidePagination: (_35 = props.organise) === null || _35 === void 0 ? void 0 : _35.hidePagination, customPaginationSize: customPaginationSize, disableEllipsisOnLongWord: (_36 = props.organise) === null || _36 === void 0 ? void 0 : _36.disableEllipsisOnLongWord }));
8079
8104
  }
8080
8105
  };
8081
8106
  var renderTabContent = function (tabs, dataType, viewType) {
8082
- 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, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32;
8107
+ 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, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55;
8083
8108
  var selectedTabData = tabs.find(function (eachTab) {
8084
8109
  if (eachTab.id === viewType) {
8085
8110
  return eachTab;
@@ -8142,6 +8167,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8142
8167
  }
8143
8168
  });
8144
8169
  sortedTabs.forEach(function (eachTab) {
8170
+ var _a, _b;
8145
8171
  var groups = groupedStructures_1[eachTab];
8146
8172
  var sortedGroups = Object.keys(groups).sort(function (a, b) {
8147
8173
  if (a === "Others")
@@ -8152,7 +8178,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8152
8178
  });
8153
8179
  var tabElement = [];
8154
8180
  sortedGroups.forEach(function (eachKey) {
8155
- var _a, _b, _c;
8181
+ var _a, _b, _c, _d, _e, _f, _g;
8156
8182
  var listObjModels = groups[eachKey].filter(function (eachModel) {
8157
8183
  return eachModel.type === "listObject" && !eachModel.hideRead;
8158
8184
  });
@@ -8160,20 +8186,20 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8160
8186
  if ((Array.isArray(listData) && (listData === null || listData === void 0 ? void 0 : listData.length) > 0) ||
8161
8187
  listObjModels.length > 0) {
8162
8188
  tabElement.push(react_1.default.createElement("div", { key: "section-".concat(eachKey) },
8163
- Array.isArray(listData) && (listData === null || listData === void 0 ? void 0 : listData.length) > 0 && (react_1.default.createElement(detailList_1.DetailList, { model: groups[eachKey], referenceModel: referenceModelSchema, className: "mt-5 bg-white rounded-md", title: eachKey, list: listData,
8189
+ Array.isArray(listData) && (listData === null || listData === void 0 ? void 0 : listData.length) > 0 && (react_1.default.createElement(detailList_1.DetailList, { darkMode: (_a = props.organise) === null || _a === void 0 ? void 0 : _a.darkMode, darkModeBg: (_b = props.organise) === null || _b === void 0 ? void 0 : _b.darkModeBg, model: groups[eachKey], referenceModel: referenceModelSchema, className: "mt-5 rounded-md ".concat(((_c = props.organise) === null || _c === void 0 ? void 0 : _c.darkMode) ? "bg-white/5" : "bg-white"), title: eachKey, list: listData,
8164
8190
  // INFO: a tabbed form is long by definition — its read
8165
8191
  // view uses the dense label : value rows
8166
- size: ((_a = props.bareSettings) === null || _a === void 0 ? void 0 : _a.bareCompactMode) || hasTabs_1
8192
+ size: ((_d = props.bareSettings) === null || _d === void 0 ? void 0 : _d.bareCompactMode) || hasTabs_1
8167
8193
  ? "compact"
8168
8194
  : "default", handleReferenceLink: !schemaPresent &&
8169
- ((_b = props.bareSettings) === null || _b === void 0 ? void 0 : _b.bareReadReferenceView)
8195
+ ((_e = props.bareSettings) === null || _e === void 0 ? void 0 : _e.bareReadReferenceView)
8170
8196
  ? props.bareSettings.bareReadReferenceView
8171
- : undefined, splitView: (_c = props.organise) === null || _c === void 0 ? void 0 : _c.splitView })),
8197
+ : undefined, splitView: (_f = props.organise) === null || _f === void 0 ? void 0 : _f.splitView })),
8172
8198
  listObjModels.length > 0 && (
8173
8199
  // INFO: same card as the DetailList sections above so a
8174
8200
  // nested table lines up with them instead of sitting
8175
8201
  // indented on the page background
8176
- react_1.default.createElement("div", { className: "mt-5 rounded-md bg-white px-4 pb-4 sm:px-6" }, renderListObject("read", listObjModels.map(function (eachModel) { return eachModel.id; }))))));
8202
+ react_1.default.createElement("div", { className: "mt-5 rounded-md px-4 pb-4 sm:px-6 ".concat(((_g = props.organise) === null || _g === void 0 ? void 0 : _g.darkMode) ? "bg-white/5" : "bg-white") }, renderListObject("read", listObjModels.map(function (eachModel) { return eachModel.id; }))))));
8177
8203
  }
8178
8204
  });
8179
8205
  var allGanttCharts = Object.values(groups)
@@ -8195,8 +8221,8 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8195
8221
  hasTabs_1 && (react_1.default.createElement("div", { className: "bg-primary-500 rounded-lg mt-5 px-4 py-2" },
8196
8222
  react_1.default.createElement("h2", { className: "text-white font-semibold text-base" }, eachTab))),
8197
8223
  tabElement,
8198
- allGanttCharts.length > 0 && (react_1.default.createElement("div", { className: "mt-5 rounded-md bg-white px-4 pb-4 sm:px-6" }, renderGanttChart("read", allGanttCharts.map(function (eachModel) { return eachModel.id; })))),
8199
- allCanvas.length > 0 && (react_1.default.createElement("div", { className: "mt-5 rounded-md bg-white px-4 pb-4 sm:px-6" }, renderCanvas("read", allCanvas.map(function (eachModel) { return eachModel.id; }))))));
8224
+ allGanttCharts.length > 0 && (react_1.default.createElement("div", { className: "mt-5 rounded-md px-4 pb-4 sm:px-6 ".concat(((_a = props.organise) === null || _a === void 0 ? void 0 : _a.darkMode) ? "bg-white/5" : "bg-white") }, renderGanttChart("read", allGanttCharts.map(function (eachModel) { return eachModel.id; })))),
8225
+ allCanvas.length > 0 && (react_1.default.createElement("div", { className: "mt-5 rounded-md px-4 pb-4 sm:px-6 ".concat(((_b = props.organise) === null || _b === void 0 ? void 0 : _b.darkMode) ? "bg-white/5" : "bg-white") }, renderCanvas("read", allCanvas.map(function (eachModel) { return eachModel.id; }))))));
8200
8226
  }
8201
8227
  });
8202
8228
  var showReadFloatingNav_1 = ((_f = props.organise) === null || _f === void 0 ? void 0 : _f.showReadFloatingNav) && allTabSections_1.length > 1;
@@ -8235,9 +8261,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8235
8261
  }
8236
8262
  else {
8237
8263
  return (react_1.default.createElement(react_1.default.Fragment, null,
8238
- react_1.default.createElement(detailList_1.DetailList, { model: structure, referenceModel: referenceModelSchema, className: "mt-5 bg-white rounded-md", title: "General Details", list: renderDetailListData(structure), size: ((_g = props.bareSettings) === null || _g === void 0 ? void 0 : _g.bareCompactMode) ? "compact" : "default", handleReferenceLink: !schemaPresent && ((_h = props.bareSettings) === null || _h === void 0 ? void 0 : _h.bareReadReferenceView)
8264
+ react_1.default.createElement(detailList_1.DetailList, { darkMode: (_g = props.organise) === null || _g === void 0 ? void 0 : _g.darkMode, darkModeBg: (_h = props.organise) === null || _h === void 0 ? void 0 : _h.darkModeBg, model: structure, referenceModel: referenceModelSchema, className: "mt-5 rounded-md ".concat(((_j = props.organise) === null || _j === void 0 ? void 0 : _j.darkMode)
8265
+ ? ((_l = (_k = props.organise) === null || _k === void 0 ? void 0 : _k.darkModeBg) !== null && _l !== void 0 ? _l : "bg-gray-900")
8266
+ : "bg-white"), title: "General Details", list: renderDetailListData(structure), size: ((_m = props.bareSettings) === null || _m === void 0 ? void 0 : _m.bareCompactMode) ? "compact" : "default", handleReferenceLink: !schemaPresent && ((_o = props.bareSettings) === null || _o === void 0 ? void 0 : _o.bareReadReferenceView)
8239
8267
  ? props.bareSettings.bareReadReferenceView
8240
- : undefined, splitView: (_j = props.organise) === null || _j === void 0 ? void 0 : _j.splitView }),
8268
+ : undefined, splitView: (_p = props.organise) === null || _p === void 0 ? void 0 : _p.splitView }),
8241
8269
  react_1.default.createElement("div", { className: "mt-8" }, renderListAddress(dataType)),
8242
8270
  react_1.default.createElement("div", { className: "mt-8" }, renderListObject(dataType)),
8243
8271
  react_1.default.createElement("div", { className: "mt-8" }, renderGanttChart(dataType)),
@@ -8246,76 +8274,85 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8246
8274
  }
8247
8275
  }
8248
8276
  else if (selectedTabData) {
8249
- if ((_k = props.bareSettings) === null || _k === void 0 ? void 0 : _k.bareListComponent) {
8277
+ if ((_q = props.bareSettings) === null || _q === void 0 ? void 0 : _q.bareListComponent) {
8250
8278
  return (react_1.default.createElement(react_1.default.Fragment, null,
8251
8279
  props.bareSettings.bareListComponent(tableData, spaceTableData, tableLoading, pageIndex),
8252
- !((_l = props.organise) === null || _l === void 0 ? void 0 : _l.hidePagination) && (react_1.default.createElement(pagination_1.Pagination, { data: tableData, size: size, limit: limit, cursor: cursor, pageIndex: pageIndex, paginationType: renderResolvedPaginationType(), handleUpdatePageIndex: function (value) {
8280
+ !((_r = props.organise) === null || _r === void 0 ? void 0 : _r.hidePagination) && (react_1.default.createElement(pagination_1.Pagination, { data: tableData, size: size, limit: limit, cursor: cursor, pageIndex: pageIndex, paginationType: renderResolvedPaginationType(), handleUpdatePageIndex: function (value) {
8253
8281
  handlePagination(value);
8254
- }, darkMode: (_m = props.organise) === null || _m === void 0 ? void 0 : _m.darkMode, customPaginationSize: customPaginationSize }))));
8282
+ }, darkMode: (_s = props.organise) === null || _s === void 0 ? void 0 : _s.darkMode, customPaginationSize: customPaginationSize }))));
8255
8283
  }
8256
8284
  else if (selectedTabData.viewType === "iframe") {
8257
8285
  if (selectedTabData === null || selectedTabData === void 0 ? void 0 : selectedTabData.customComponent) {
8258
8286
  return selectedTabData.customComponent;
8259
8287
  }
8260
8288
  else {
8261
- return (react_1.default.createElement("iframe", { id: "blixify-iframe", className: "w-full mt-5", style: { height: "70vh" }, src: (_o = selectedTabData === null || selectedTabData === void 0 ? void 0 : selectedTabData.iframeSrc) !== null && _o !== void 0 ? _o : "", title: (_p = selectedTabData === null || selectedTabData === void 0 ? void 0 : selectedTabData.id) !== null && _p !== void 0 ? _p : "", onLoad: props.onLoadIframe }));
8289
+ return (react_1.default.createElement("iframe", { id: "blixify-iframe", className: "w-full mt-5", style: { height: "70vh" }, src: (_t = selectedTabData === null || selectedTabData === void 0 ? void 0 : selectedTabData.iframeSrc) !== null && _t !== void 0 ? _t : "", title: (_u = selectedTabData === null || selectedTabData === void 0 ? void 0 : selectedTabData.id) !== null && _u !== void 0 ? _u : "", onLoad: props.onLoadIframe }));
8262
8290
  }
8263
8291
  }
8264
8292
  else if (selectedTabData.viewType === "list") {
8265
8293
  // INFO: when bareNewDTW is enabled, render NewList instead of legacy List
8266
- if ((_q = props.bareSettings) === null || _q === void 0 ? void 0 : _q.bareNewDTW) {
8267
- return (react_1.default.createElement(newList_1.NewList, { paginationType: renderResolvedPaginationType(), list: renderGridAndListData(selectedTabData.viewImage, "list"), size: size, limit: limit, cursor: cursor, loading: tableLoading, pageIndex: pageIndex, checkbox: multipleSelect, selectAll: selectAll, selectedIds: selectedIds, disableSelectFullData: (_s = (_r = props.organise) === null || _r === void 0 ? void 0 : _r.disableSelectFullData) === null || _s === void 0 ? void 0 : _s.list, handleSelectAll: handleSelectAllPages, handleSelectedIds: handleSelectIds, selectAllText: selectAll ? "from filter" : "", maxSelectedCount: (_t = props.bareSettings) === null || _t === void 0 ? void 0 : _t.bareListMaxSelectedCount, multiActionButton: react_1.default.createElement("div", { className: "flex flex-row space-x-3" },
8268
- selectedIds.length > 0 && !((_u = props.edit) === null || _u === void 0 ? void 0 : _u.disabledUpdate) && (react_1.default.createElement(react_1.default.Fragment, null,
8294
+ if ((_v = props.bareSettings) === null || _v === void 0 ? void 0 : _v.bareNewDTW) {
8295
+ return (react_1.default.createElement(newList_1.NewList, { darkModeBg: (_w = props.organise) === null || _w === void 0 ? void 0 : _w.darkModeBg, paginationType: renderResolvedPaginationType(), list: renderGridAndListData(selectedTabData.viewImage, "list"), size: size, limit: limit, cursor: cursor, loading: tableLoading, pageIndex: pageIndex, checkbox: multipleSelect, selectAll: selectAll, selectedIds: selectedIds, disableSelectFullData: (_y = (_x = props.organise) === null || _x === void 0 ? void 0 : _x.disableSelectFullData) === null || _y === void 0 ? void 0 : _y.list, handleSelectAll: handleSelectAllPages, handleSelectedIds: handleSelectIds, selectAllText: selectAll ? "from filter" : "", maxSelectedCount: (_z = props.bareSettings) === null || _z === void 0 ? void 0 : _z.bareListMaxSelectedCount, multiActionButton: react_1.default.createElement("div", { className: "flex flex-row space-x-3" },
8296
+ selectedIds.length > 0 && !((_0 = props.edit) === null || _0 === void 0 ? void 0 : _0.disabledUpdate) && (react_1.default.createElement(react_1.default.Fragment, null,
8269
8297
  react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Change to Draft", disable: loading, onClick: function () {
8270
8298
  handleBatchDraftData();
8271
8299
  } }),
8272
8300
  react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Clone Items", disable: loading, onClick: function () {
8273
8301
  handleCloneSelectedData();
8274
8302
  } }))),
8275
- ((_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 () {
8303
+ ((_1 = props.edit) === null || _1 === void 0 ? void 0 : _1.deleteBtn) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm text-red-500 hover:text-red-600", text: "Delete", onClick: function () {
8276
8304
  handleGenerateDeletePasscode();
8277
8305
  setDeleteModal(true);
8278
8306
  } })),
8279
- !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 () {
8307
+ !isFirebase && !((_2 = props.edit) === null || _2 === void 0 ? void 0 : _2.disabledUpdate) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Update", onClick: function () {
8280
8308
  setBatchUpdateModal(true);
8281
8309
  } }))), onClickRow: function (id) {
8282
8310
  var _a, _b;
8283
8311
  (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
8284
- }, linkType: props.linkType, custom: props.custom, newTabUrl: (_y = (_x = props.newTabUrl) === null || _x === void 0 ? void 0 : _x.default) !== null && _y !== void 0 ? _y : "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: (_0 = (_z = props.newTabUrl) === null || _z === void 0 ? void 0 : _z.addons) !== null && _0 !== void 0 ? _0 : "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: function (value) {
8312
+ }, linkType: props.linkType, custom: props.custom, newTabUrl: (_4 = (_3 = props.newTabUrl) === null || _3 === void 0 ? void 0 : _3.default) !== null && _4 !== void 0 ? _4 : "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: (_6 = (_5 = props.newTabUrl) === null || _5 === void 0 ? void 0 : _5.addons) !== null && _6 !== void 0 ? _6 : "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: function (value) {
8285
8313
  handlePagination(value);
8286
- }, darkMode: (_1 = props.organise) === null || _1 === void 0 ? void 0 : _1.darkMode, className: "mt-5", hidePagination: (_2 = props.organise) === null || _2 === void 0 ? void 0 : _2.hidePagination, customPaginationSize: customPaginationSize, mobileTooltip: (_3 = props.bareSettings) === null || _3 === void 0 ? void 0 : _3.bareListMobileTooltip }));
8314
+ }, darkMode: (_7 = props.organise) === null || _7 === void 0 ? void 0 : _7.darkMode, className: "mt-5", hidePagination: (_8 = props.organise) === null || _8 === void 0 ? void 0 : _8.hidePagination, customPaginationSize: customPaginationSize, mobileTooltip: (_9 = props.bareSettings) === null || _9 === void 0 ? void 0 : _9.bareListMobileTooltip }));
8287
8315
  }
8288
8316
  return (react_1.default.createElement(react_1.default.Fragment, null,
8289
- react_1.default.createElement(list_1.List, { paginationType: renderResolvedPaginationType(), list: renderGridAndListData(selectedTabData.viewImage, "list"), size: size, limit: limit, cursor: cursor, loading: tableLoading, pageIndex: pageIndex, checkbox: multipleSelect, selectAll: selectAll, selectedIds: selectedIds, disableSelectFullData: (_5 = (_4 = props.organise) === null || _4 === void 0 ? void 0 : _4.disableSelectFullData) === null || _5 === void 0 ? void 0 : _5.list, handleSelectAll: handleSelectAllPages, handleSelectedIds: handleSelectIds, selectAllText: selectAll ? "from filter" : "", multiActionButton: react_1.default.createElement("div", { className: "flex flex-row space-x-3" },
8290
- selectedIds.length > 0 && !((_6 = props.edit) === null || _6 === void 0 ? void 0 : _6.disabledUpdate) && (react_1.default.createElement(react_1.default.Fragment, null,
8317
+ react_1.default.createElement(list_1.List, { darkModeBg: (_10 = props.organise) === null || _10 === void 0 ? void 0 : _10.darkModeBg, paginationType: renderResolvedPaginationType(), list: renderGridAndListData(selectedTabData.viewImage, "list"), size: size, limit: limit, cursor: cursor, loading: tableLoading, pageIndex: pageIndex, checkbox: multipleSelect, selectAll: selectAll, selectedIds: selectedIds, disableSelectFullData: (_12 = (_11 = props.organise) === null || _11 === void 0 ? void 0 : _11.disableSelectFullData) === null || _12 === void 0 ? void 0 : _12.list, handleSelectAll: handleSelectAllPages, handleSelectedIds: handleSelectIds, selectAllText: selectAll ? "from filter" : "", multiActionButton: react_1.default.createElement("div", { className: "flex flex-row space-x-3" },
8318
+ selectedIds.length > 0 && !((_13 = props.edit) === null || _13 === void 0 ? void 0 : _13.disabledUpdate) && (react_1.default.createElement(react_1.default.Fragment, null,
8291
8319
  react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Change to Draft", disable: loading, onClick: function () {
8292
8320
  handleBatchDraftData();
8293
8321
  } }),
8294
8322
  react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Clone Items", disable: loading, onClick: function () {
8295
8323
  handleCloneSelectedData();
8296
8324
  } }))),
8297
- ((_7 = props.edit) === null || _7 === void 0 ? void 0 : _7.deleteBtn) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm text-red-500 hover:text-red-600", text: "Delete", onClick: function () {
8325
+ ((_14 = props.edit) === null || _14 === void 0 ? void 0 : _14.deleteBtn) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm text-red-500 hover:text-red-600", text: "Delete", onClick: function () {
8298
8326
  handleGenerateDeletePasscode();
8299
8327
  setDeleteModal(true);
8300
8328
  } })),
8301
- !isFirebase && !((_8 = props.edit) === null || _8 === void 0 ? void 0 : _8.disabledUpdate) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Update", onClick: function () {
8329
+ !isFirebase && !((_15 = props.edit) === null || _15 === void 0 ? void 0 : _15.disabledUpdate) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Update", onClick: function () {
8302
8330
  setBatchUpdateModal(true);
8303
8331
  } }))), onClickRow: function (id) {
8304
8332
  var _a, _b;
8305
8333
  (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
8306
- }, linkType: props.linkType, custom: props.custom, newTabUrl: (_10 = (_9 = props.newTabUrl) === null || _9 === void 0 ? void 0 : _9.default) !== null && _10 !== void 0 ? _10 : "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: (_12 = (_11 = props.newTabUrl) === null || _11 === void 0 ? void 0 : _11.addons) !== null && _12 !== void 0 ? _12 : "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: function (value) {
8334
+ }, linkType: props.linkType, custom: props.custom, newTabUrl: (_17 = (_16 = props.newTabUrl) === null || _16 === void 0 ? void 0 : _16.default) !== null && _17 !== void 0 ? _17 : "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: (_19 = (_18 = props.newTabUrl) === null || _18 === void 0 ? void 0 : _18.addons) !== null && _19 !== void 0 ? _19 : "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: function (value) {
8307
8335
  handlePagination(value);
8308
- }, className: "mt-5", hidePagination: (_13 = props.organise) === null || _13 === void 0 ? void 0 : _13.hidePagination, customPaginationSize: customPaginationSize })));
8336
+ }, className: "mt-5", hidePagination: (_20 = props.organise) === null || _20 === void 0 ? void 0 : _20.hidePagination, customPaginationSize: customPaginationSize })));
8309
8337
  }
8310
8338
  else if (selectedTabData.viewType === "grid") {
8311
8339
  var isScrollMode = renderCheckScrollMode();
8312
8340
  return (react_1.default.createElement(react_1.default.Fragment, null,
8313
- react_1.default.createElement(grid_1.Grid, { paginationType: renderResolvedPaginationType(), data: renderGridAndListData(selectedTabData.viewImage, "grid"), size: size, limit: limit, cursor: cursor, loading: tableLoading, horizontalScroll: isScrollMode, pageIndex: pageIndex, onClickData: function (id) {
8341
+ react_1.default.createElement(grid_1.Grid, { darkMode: (_21 = props.organise) === null || _21 === void 0 ? void 0 : _21.darkMode, darkModeBg: (_22 = props.organise) === null || _22 === void 0 ? void 0 : _22.darkModeBg, paginationType: renderResolvedPaginationType(), data: renderGridAndListData(selectedTabData.viewImage, "grid"), size: size, limit: limit, cursor: cursor, loading: tableLoading, horizontalScroll: isScrollMode, pageIndex: pageIndex, onClickData: function (id) {
8314
8342
  var _a, _b;
8315
8343
  (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
8316
- }, linkType: props.linkType, custom: props.custom, newTabUrl: (_15 = (_14 = props.newTabUrl) === null || _14 === void 0 ? void 0 : _14.default) !== null && _15 !== void 0 ? _15 : "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: (_17 = (_16 = props.newTabUrl) === null || _16 === void 0 ? void 0 : _16.addons) !== null && _17 !== void 0 ? _17 : "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: function (value) {
8344
+ }, linkType: props.linkType, custom: props.custom, newTabUrl: (_24 = (_23 = props.newTabUrl) === null || _23 === void 0 ? void 0 : _23.default) !== null && _24 !== void 0 ? _24 : "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: (_26 = (_25 = props.newTabUrl) === null || _25 === void 0 ? void 0 : _25.addons) !== null && _26 !== void 0 ? _26 : "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: function (value) {
8345
+ handlePagination(value);
8346
+ }, imgContain: selectedTabData === null || selectedTabData === void 0 ? void 0 : selectedTabData.gridContain, gridColClassName: (_27 = props.bareSettings) === null || _27 === void 0 ? void 0 : _27.bareListGridColClassName, className: "mt-5",
8347
+ // INFO: under the new DTW the grid keeps the same footer as the
8348
+ // table and list views instead of its own legacy page buttons
8349
+ hidePagination: ((_28 = props.organise) === null || _28 === void 0 ? void 0 : _28.hidePagination) ||
8350
+ !!((_29 = props.bareSettings) === null || _29 === void 0 ? void 0 : _29.bareNewDTW), customPaginationSize: customPaginationSize }),
8351
+ ((_30 = props.bareSettings) === null || _30 === void 0 ? void 0 : _30.bareNewDTW) &&
8352
+ !((_31 = props.organise) === null || _31 === void 0 ? void 0 : _31.hidePagination) && (react_1.default.createElement(newPagination_1.NewPagination, { paginationType: renderResolvedPaginationType(), pageIndex: pageIndex, limit: limit, size: size, cursor: cursor, resultCount: renderGridAndListData(selectedTabData.viewImage, "grid")
8353
+ .length, customPaginationSize: customPaginationSize, darkMode: (_32 = props.organise) === null || _32 === void 0 ? void 0 : _32.darkMode, darkModeBg: (_33 = props.organise) === null || _33 === void 0 ? void 0 : _33.darkModeBg, handleUpdatePageIndex: function (value) {
8317
8354
  handlePagination(value);
8318
- }, imgContain: selectedTabData === null || selectedTabData === void 0 ? void 0 : selectedTabData.gridContain, gridColClassName: (_18 = props.bareSettings) === null || _18 === void 0 ? void 0 : _18.bareListGridColClassName, className: "mt-5", hidePagination: (_19 = props.organise) === null || _19 === void 0 ? void 0 : _19.hidePagination, customPaginationSize: customPaginationSize })));
8355
+ } }))));
8319
8356
  }
8320
8357
  else if (selectedTabData.viewType === "calendar") {
8321
8358
  var calendarSettings_1 = selectedTab === null || selectedTab === void 0 ? void 0 : selectedTab.calendarSettings;
@@ -8415,7 +8452,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8415
8452
  return eventAvailabilities;
8416
8453
  };
8417
8454
  // INFO: when bareNewDTW is enabled, render NewCalendar instead of legacy Calendar
8418
- if ((_20 = props.bareSettings) === null || _20 === void 0 ? void 0 : _20.bareNewDTW) {
8455
+ if ((_34 = props.bareSettings) === null || _34 === void 0 ? void 0 : _34.bareNewDTW) {
8419
8456
  var newCalendarEvents = renderEventAvailabilities().map(function (ev) {
8420
8457
  var _a, _b, _c, _d;
8421
8458
  return ({
@@ -8435,13 +8472,13 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8435
8472
  // INFO: viewSwitch — optional Month/Week/Agenda toggle. The range
8436
8473
  // query follows via calendarView ("dayGridMonth" ↔ "timeGridWeek");
8437
8474
  // agenda lists the fetched month chronologically.
8438
- var viewSwitchOptions = (_21 = calendarSettings_1 === null || calendarSettings_1 === void 0 ? void 0 : calendarSettings_1.viewSwitch) !== null && _21 !== void 0 ? _21 : [];
8475
+ var viewSwitchOptions = (_35 = calendarSettings_1 === null || calendarSettings_1 === void 0 ? void 0 : calendarSettings_1.viewSwitch) !== null && _35 !== void 0 ? _35 : [];
8439
8476
  var VIEW_VARIANT_MAP = {
8440
8477
  month: "fullMonth",
8441
8478
  week: "weekTimeGrid",
8442
8479
  agenda: "agenda",
8443
8480
  };
8444
- var activeVariant = (_22 = VIEW_VARIANT_MAP[newCalendarViewMode]) !== null && _22 !== void 0 ? _22 : "fullMonth";
8481
+ var activeVariant = (_36 = VIEW_VARIANT_MAP[newCalendarViewMode]) !== null && _36 !== void 0 ? _36 : "fullMonth";
8445
8482
  return (react_1.default.createElement("div", { className: "mt-4" },
8446
8483
  viewSwitchOptions.length > 1 && (react_1.default.createElement("div", { className: "mb-2 flex justify-end" },
8447
8484
  react_1.default.createElement("div", { className: "inline-flex rounded-lg border border-gray-200 bg-white p-0.5" }, viewSwitchOptions.map(function (view) { return (react_1.default.createElement("button", { key: view, type: "button", onClick: function () {
@@ -8483,9 +8520,9 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8483
8520
  var _a, _b;
8484
8521
  if (event.id)
8485
8522
  (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", event.id, "general");
8486
- }, darkMode: (_23 = props.organise) === null || _23 === void 0 ? void 0 : _23.darkMode, className: "w-full" }))));
8523
+ }, darkMode: (_37 = props.organise) === null || _37 === void 0 ? void 0 : _37.darkMode, className: "w-full" }))));
8487
8524
  }
8488
- return (react_1.default.createElement("div", { className: "mt-4" }, tableLoading ? (react_1.default.createElement(loading_1.Loading, null)) : (react_1.default.createElement(calendar_1.Calendar, { currentDate: calendarTabMonth, calendarView: (_24 = calendarSettings_1 === null || calendarSettings_1 === void 0 ? void 0 : calendarSettings_1.defaultView) !== null && _24 !== void 0 ? _24 : calendarView, handleMonthChange: function (date) {
8525
+ return (react_1.default.createElement("div", { className: "mt-4" }, tableLoading ? (react_1.default.createElement(loading_1.Loading, null)) : (react_1.default.createElement(calendar_1.Calendar, { currentDate: calendarTabMonth, calendarView: (_38 = calendarSettings_1 === null || calendarSettings_1 === void 0 ? void 0 : calendarSettings_1.defaultView) !== null && _38 !== void 0 ? _38 : calendarView, handleMonthChange: function (date) {
8489
8526
  var startOfMonth = (0, dayjs_1.default)(calendarTabMonth).startOf("month");
8490
8527
  var endOfMonth = (0, dayjs_1.default)(calendarTabMonth).endOf("month");
8491
8528
  if (!(0, dayjs_1.default)(date).isBetween(startOfMonth, endOfMonth)) {
@@ -8503,11 +8540,12 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8503
8540
  else if (selectedTabData.viewType === "feeds") {
8504
8541
  var contentList_1 = [];
8505
8542
  var feedsSettings_1 = selectedTabData.feedsSettings;
8506
- var customFeedsData = (_25 = feedsSettings_1 === null || feedsSettings_1 === void 0 ? void 0 : feedsSettings_1.customFeedsData) === null || _25 === void 0 ? void 0 : _25.call(feedsSettings_1, tableData, spaceTableData);
8543
+ var customFeedsData = (_39 = feedsSettings_1 === null || feedsSettings_1 === void 0 ? void 0 : feedsSettings_1.customFeedsData) === null || _39 === void 0 ? void 0 : _39.call(feedsSettings_1, tableData, spaceTableData);
8507
8544
  if (customFeedsData && customFeedsData.length > 0) {
8508
8545
  customFeedsData.map(function (eachData) {
8509
8546
  var _a, _b, _c, _d;
8510
8547
  var content = {
8548
+ id: eachData.id,
8511
8549
  content: (_a = eachData.title) !== null && _a !== void 0 ? _a : "",
8512
8550
  addContent: (_b = eachData.content) !== null && _b !== void 0 ? _b : "",
8513
8551
  step: (react_1.default.createElement("div", { className: "flex flex-col" },
@@ -8530,6 +8568,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8530
8568
  var _a, _b;
8531
8569
  if (feedsSettings_1 && feedsSettings_1.title && feedsSettings_1.desc) {
8532
8570
  var content = {
8571
+ id: eachData.id,
8533
8572
  content: (_a = eachData[feedsSettings_1.title || ""]) !== null && _a !== void 0 ? _a : "",
8534
8573
  addContent: (react_1.default.createElement("p", { className: "mt-2 text-sm text-gray-500" }, (_b = eachData[feedsSettings_1.content || ""]) !== null && _b !== void 0 ? _b : "")),
8535
8574
  step: (react_1.default.createElement("div", { className: "flex flex-col" },
@@ -8543,12 +8582,24 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8543
8582
  return null;
8544
8583
  });
8545
8584
  }
8546
- 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" },
8547
- react_1.default.createElement(feeds_1.Feeds, { bold: true, content: contentList_1, darkMode: (_26 = props.organise) === null || _26 === void 0 ? void 0 : _26.darkMode }),
8585
+ return (react_1.default.createElement("div", { className: "mt-4" }, tableLoading ? (react_1.default.createElement(loading_1.Loading, null)) : (react_1.default.createElement("div", {
8586
+ // INFO: NewFeeds is already a card like the table and list, so the new
8587
+ // DTW renders it bare; the legacy feed still needs its own surface
8588
+ className: ((_40 = props.bareSettings) === null || _40 === void 0 ? void 0 : _40.bareNewDTW)
8589
+ ? ""
8590
+ : "p-4 rounded-lg ".concat(((_41 = props.organise) === null || _41 === void 0 ? void 0 : _41.darkMode) ? "bg-white/5" : "bg-white") },
8591
+ ((_42 = props.bareSettings) === null || _42 === void 0 ? void 0 : _42.bareNewDTW) ? (react_1.default.createElement(newFeeds_1.NewFeeds, { bold: true, content: contentList_1, darkMode: (_43 = props.organise) === null || _43 === void 0 ? void 0 : _43.darkMode, onClickItem: function (id) { var _a, _b; return (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general"); } })) : (react_1.default.createElement(feeds_1.Feeds, { bold: true, content: contentList_1, darkMode: (_44 = props.organise) === null || _44 === void 0 ? void 0 : _44.darkMode })),
8548
8592
  react_1.default.createElement("div", { className: "my-10" }),
8549
- contentList_1.length > 0 && !((_27 = props.organise) === null || _27 === void 0 ? void 0 : _27.hidePagination) && (react_1.default.createElement(pagination_1.Pagination, { data: tableData, size: size, limit: limit, cursor: cursor, pageIndex: pageIndex, paginationType: renderResolvedPaginationType(), handleUpdatePageIndex: function (value) {
8593
+ contentList_1.length > 0 &&
8594
+ !((_45 = props.organise) === null || _45 === void 0 ? void 0 : _45.hidePagination) &&
8595
+ ((_46 = props.bareSettings) === null || _46 === void 0 ? void 0 : _46.bareNewDTW) && (react_1.default.createElement(newPagination_1.NewPagination, { paginationType: renderResolvedPaginationType(), pageIndex: pageIndex, limit: limit, size: size, cursor: cursor, resultCount: tableData.length, customPaginationSize: customPaginationSize, darkMode: (_47 = props.organise) === null || _47 === void 0 ? void 0 : _47.darkMode, darkModeBg: (_48 = props.organise) === null || _48 === void 0 ? void 0 : _48.darkModeBg, handleUpdatePageIndex: function (value) {
8596
+ handlePagination(value);
8597
+ } })),
8598
+ contentList_1.length > 0 &&
8599
+ !((_49 = props.organise) === null || _49 === void 0 ? void 0 : _49.hidePagination) &&
8600
+ !((_50 = props.bareSettings) === null || _50 === void 0 ? void 0 : _50.bareNewDTW) && (react_1.default.createElement(pagination_1.Pagination, { data: tableData, size: size, limit: limit, cursor: cursor, pageIndex: pageIndex, paginationType: renderResolvedPaginationType(), handleUpdatePageIndex: function (value) {
8550
8601
  handlePagination(value);
8551
- }, darkMode: (_28 = props.organise) === null || _28 === void 0 ? void 0 : _28.darkMode, customPaginationSize: customPaginationSize }))))));
8602
+ }, darkMode: (_51 = props.organise) === null || _51 === void 0 ? void 0 : _51.darkMode, customPaginationSize: customPaginationSize }))))));
8552
8603
  }
8553
8604
  else if (selectedTabData.viewType === "map") {
8554
8605
  var mapSettings_1 = selectedTabData.mapSettings;
@@ -8647,7 +8698,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8647
8698
  }
8648
8699
  else if (selectedTabData.viewType === "kanban") {
8649
8700
  var kanbanSettings = selectedTab === null || selectedTab === void 0 ? void 0 : selectedTab.kanbanSettings;
8650
- var kanbanTitle_2 = (_29 = kanbanSettings === null || kanbanSettings === void 0 ? void 0 : kanbanSettings.title) !== null && _29 !== void 0 ? _29 : "";
8701
+ var kanbanTitle_2 = (_52 = kanbanSettings === null || kanbanSettings === void 0 ? void 0 : kanbanSettings.title) !== null && _52 !== void 0 ? _52 : "";
8651
8702
  var nullColumn_1 = false;
8652
8703
  var groupBy_1 = [];
8653
8704
  var groupLabel_1 = [];
@@ -8668,10 +8719,10 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8668
8719
  });
8669
8720
  var kanbanData = renderGridAndListData("", "kanban", kanbanTitle_2, kanbanSettings === null || kanbanSettings === void 0 ? void 0 : kanbanSettings.useColumnName);
8670
8721
  // INFO: when bareNewDTW is enabled, render NewKanban instead of legacy Kanban
8671
- if ((_30 = props.bareSettings) === null || _30 === void 0 ? void 0 : _30.bareNewDTW) {
8722
+ if ((_53 = props.bareSettings) === null || _53 === void 0 ? void 0 : _53.bareNewDTW) {
8672
8723
  return (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
8673
8724
  ? "Data has exceeded limit, please apply filters"
8674
- : "", groupCluster: kanbanSettings === null || kanbanSettings === void 0 ? void 0 : kanbanSettings.groupCluster, draggable: true, droppable: kanbanDroppable, mobileView: (_31 = props.bareSettings) === null || _31 === void 0 ? void 0 : _31.bareListMobileView, onUpdateData: function (cardId, _fromCol, toCol) {
8725
+ : "", groupCluster: kanbanSettings === null || kanbanSettings === void 0 ? void 0 : kanbanSettings.groupCluster, draggable: true, droppable: kanbanDroppable, mobileView: (_54 = props.bareSettings) === null || _54 === void 0 ? void 0 : _54.bareListMobileView, onUpdateData: function (cardId, _fromCol, toCol) {
8675
8726
  var _a;
8676
8727
  setKanbanDroppable(false);
8677
8728
  handleSubmitData("update", cardId, kanbanTitle_2, (_a = {},
@@ -8680,7 +8731,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8680
8731
  }, onClickData: function (id) {
8681
8732
  var _a, _b;
8682
8733
  (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
8683
- }, darkMode: (_32 = props.organise) === null || _32 === void 0 ? void 0 : _32.darkMode }));
8734
+ }, darkMode: (_55 = props.organise) === null || _55 === void 0 ? void 0 : _55.darkMode }));
8684
8735
  }
8685
8736
  return (react_1.default.createElement(kanban_1.Kanban, { 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
8686
8737
  ? "Data has exceeded limit, please apply filters"
@@ -8711,7 +8762,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8711
8762
  return null;
8712
8763
  };
8713
8764
  var renderNotification = function (location) {
8714
- var _a;
8765
+ var _a, _b;
8715
8766
  if (notification) {
8716
8767
  var correctIcon = (react_1.default.createElement(outline_1.CheckCircleIcon, { className: "w-10 h-10 text-primary-600" }));
8717
8768
  var incorrectIcon = (react_1.default.createElement(outline_1.XCircleIcon, { className: "w-10 h-10 text-primary-600" }));
@@ -8722,10 +8773,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8722
8773
  // INFO: nothing a silent step-change save reports is worth a toast
8723
8774
  if ((notification === null || notification === void 0 ? void 0 : notification.type) && silentDraftRef.current)
8724
8775
  return null;
8725
- return (react_1.default.createElement(notification_1.Notification
8726
- // INFO: phones keep the familiar bottom toast, lifted above the
8727
- // floating action bar / floating search
8728
- , {
8776
+ return (react_1.default.createElement(notification_1.Notification, { darkMode: (_a = props.organise) === null || _a === void 0 ? void 0 : _a.darkMode,
8729
8777
  // INFO: phones keep the familiar bottom toast, lifted above the
8730
8778
  // floating action bar / floating search
8731
8779
  position: "bottom", mobileOffsetClassName: "pb-28", icon: notification.type ? correctIcon : incorrectIcon, notificationAttribute: {
@@ -8733,7 +8781,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8733
8781
  desc: notification.msg,
8734
8782
  visible: true,
8735
8783
  }, lib: {
8736
- Transition: (_a = props.lib) === null || _a === void 0 ? void 0 : _a.Transition,
8784
+ Transition: (_b = props.lib) === null || _b === void 0 ? void 0 : _b.Transition,
8737
8785
  }, onClose: function () {
8738
8786
  setNotification(null);
8739
8787
  return "";
@@ -8742,22 +8790,22 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8742
8790
  return null;
8743
8791
  };
8744
8792
  var renderModalContent = function () {
8745
- 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;
8793
+ 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, _4, _5;
8746
8794
  if (loading) {
8747
8795
  return (react_1.default.createElement("div", { className: "mt-5" },
8748
8796
  react_1.default.createElement(loading_1.Loading, null),
8749
8797
  react_1.default.createElement("div", { className: "mt-3 text-center sm:mt-5" },
8750
- react_1.default.createElement("h3", { className: "text-lg font-medium leading-6 text-gray-900", id: "modal-title" }, "Loading"),
8798
+ react_1.default.createElement("h3", { className: "text-lg font-medium leading-6 ".concat(((_a = props.organise) === null || _a === void 0 ? void 0 : _a.darkMode) ? "text-white" : "text-gray-900"), id: "modal-title" }, "Loading"),
8751
8799
  react_1.default.createElement("div", { className: "mt-2" },
8752
- react_1.default.createElement("p", { className: "text-sm text-gray-500" }, "Please wait while we are proccessing your request")))));
8800
+ react_1.default.createElement("p", { className: "text-sm ".concat(((_b = props.organise) === null || _b === void 0 ? void 0 : _b.darkMode) ? "text-gray-300" : "text-gray-500") }, "Please wait while we are proccessing your request")))));
8753
8801
  }
8754
8802
  if (exportPDFLoading) {
8755
8803
  return (react_1.default.createElement("div", { className: "mt-5" },
8756
8804
  react_1.default.createElement(loading_1.Loading, null),
8757
8805
  react_1.default.createElement("div", { className: "mt-3 text-center sm:mt-5" },
8758
- react_1.default.createElement("h3", { className: "text-lg font-medium leading-6 text-gray-900", id: "modal-title" }, "Loading"),
8806
+ react_1.default.createElement("h3", { className: "text-lg font-medium leading-6 ".concat(((_c = props.organise) === null || _c === void 0 ? void 0 : _c.darkMode) ? "text-white" : "text-gray-900"), id: "modal-title" }, "Loading"),
8759
8807
  react_1.default.createElement("div", { className: "mt-2" },
8760
- react_1.default.createElement("p", { className: "text-sm text-gray-500" }, "Please wait while PDF is being generated")))));
8808
+ react_1.default.createElement("p", { className: "text-sm ".concat(((_d = props.organise) === null || _d === void 0 ? void 0 : _d.darkMode) ? "text-gray-300" : "text-gray-500") }, "Please wait while PDF is being generated")))));
8761
8809
  }
8762
8810
  else if (excelModal) {
8763
8811
  return (react_1.default.createElement(react_1.default.Fragment, null,
@@ -8783,13 +8831,13 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8783
8831
  react_1.default.createElement(button_1.Button, { text: "".concat(stepCSVIndex < 2 ? "Next" : "Submit"), type: "normal", onClick: handleStepCSV }))))));
8784
8832
  }
8785
8833
  else if (exportExcel || exportQR) {
8786
- var showEmail = exportType !== "pdf" && !((_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.exportSettings) === null || _b === void 0 ? void 0 : _b.disableEmail);
8787
- return (react_1.default.createElement(react_1.default.Fragment, null, queryForm ? (react_1.default.createElement(queryForm_1.QueryForm, { dbModule: (_c = props.lib) === null || _c === void 0 ? void 0 : _c.axios, model: structure, updateQuery: queryIndex >= 0 ? queryList[queryIndex] : undefined, devSettings: props.devSettings, handleCloseForm: function () {
8834
+ var showEmail = exportType !== "pdf" && !((_f = (_e = props.organise) === null || _e === void 0 ? void 0 : _e.exportSettings) === null || _f === void 0 ? void 0 : _f.disableEmail);
8835
+ return (react_1.default.createElement(react_1.default.Fragment, null, queryForm ? (react_1.default.createElement(queryForm_1.QueryForm, { dbModule: (_g = props.lib) === null || _g === void 0 ? void 0 : _g.axios, model: structure, updateQuery: queryIndex >= 0 ? queryList[queryIndex] : undefined, devSettings: props.devSettings, handleCloseForm: function () {
8788
8836
  handleViewQuery(-1);
8789
8837
  }, handleQueryOnComplete: function (queryData) {
8790
8838
  handlePushQueryList(queryData, queryIndex);
8791
- }, renderReferenceLabelOptions: ((_d = props.organise) === null || _d === void 0 ? void 0 : _d.renderReferenceLabelOptions)
8792
- ? (_e = props.organise) === null || _e === void 0 ? void 0 : _e.renderReferenceLabelOptions
8839
+ }, renderReferenceLabelOptions: ((_h = props.organise) === null || _h === void 0 ? void 0 : _h.renderReferenceLabelOptions)
8840
+ ? (_j = props.organise) === null || _j === void 0 ? void 0 : _j.renderReferenceLabelOptions
8793
8841
  : function () {
8794
8842
  return [];
8795
8843
  } })) : (react_1.default.createElement("div", null,
@@ -8802,17 +8850,17 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8802
8850
  : "Export your data to .pdf format to be viewable on Adobe/Browser.",
8803
8851
  "Filter your data exported based on conditions by creating queries at the table below."),
8804
8852
  react_1.default.createElement(react_1.default.Fragment, null,
8805
- react_1.default.createElement(textInput_1.TextInput, { ref: exportCSVEmailInputRef, value: exportCSVEmail, type: "email", label: "Email", subLabel: "A download link will be sent to your email", placeholder: (_g = (_f = props.devSettings.currentUser) === null || _f === void 0 ? void 0 : _f.userEmail) !== null && _g !== void 0 ? _g : "Enter your email", onChange: function (e) { return setExportCSVEmail(e.target.value); } }),
8853
+ react_1.default.createElement(textInput_1.TextInput, { ref: exportCSVEmailInputRef, value: exportCSVEmail, type: "email", label: "Email", subLabel: "A download link will be sent to your email", placeholder: (_l = (_k = props.devSettings.currentUser) === null || _k === void 0 ? void 0 : _k.userEmail) !== null && _l !== void 0 ? _l : "Enter your email", onChange: function (e) { return setExportCSVEmail(e.target.value); } }),
8806
8854
  react_1.default.createElement("div", { className: "flex mt-5 items-center justify-end" },
8807
8855
  react_1.default.createElement(iconButton_1.IconButton, { className: "sm", icon: react_1.default.createElement(outline_1.PlusCircleIcon, { className: "w-6 h-6 text-white" }), background: "bg-primary-500 hover:bg-primary-600", onClick: function () { return setQueryForm(!queryForm); } })))),
8808
8856
  react_1.default.createElement(table_1.Table, { className: "mt-5", header: dataStateModel_1.queryTableHeader, data: renderQueryData(), loading: false }))) : (react_1.default.createElement(react_1.default.Fragment, null,
8809
8857
  react_1.default.createElement("p", null, "Click the button below to download."),
8810
- (exportType === "pdf" || exportType === "print") && (react_1.default.createElement(textInput_1.TextInput, { containerClassName: "mt-5", value: exportPDFTitle, type: "text", label: "Title (Optional)", placeholder: (_k = (_j = (_h = props.organise) === null || _h === void 0 ? void 0 : _h.exportSettings) === null || _j === void 0 ? void 0 : _j.defaultExportPDFName) !== null && _k !== void 0 ? _k : "Enter your report title", onChange: function (e) { return setExportPDFTitle(e.target.value); } })),
8811
- (exportType === "pdf" || exportType === "print") && (react_1.default.createElement(select_1.Select, { label: "Sum Attribute", containerClassName: "mt-5", value: exportSumAttributeIds, options: (_o = (_m = (_l = props.organise) === null || _l === void 0 ? void 0 : _l.renderReferenceLabelOptions) === null || _m === void 0 ? void 0 : _m.call(_l, "", false, "number")) !== null && _o !== void 0 ? _o : [], staticDropdown: true, onChange: function (value) {
8858
+ (exportType === "pdf" || exportType === "print") && (react_1.default.createElement(textInput_1.TextInput, { containerClassName: "mt-5", value: exportPDFTitle, type: "text", label: "Title (Optional)", placeholder: (_p = (_o = (_m = props.organise) === null || _m === void 0 ? void 0 : _m.exportSettings) === null || _o === void 0 ? void 0 : _o.defaultExportPDFName) !== null && _p !== void 0 ? _p : "Enter your report title", onChange: function (e) { return setExportPDFTitle(e.target.value); } })),
8859
+ (exportType === "pdf" || exportType === "print") && (react_1.default.createElement(select_1.Select, { label: "Sum Attribute", containerClassName: "mt-5", value: exportSumAttributeIds, options: (_s = (_r = (_q = props.organise) === null || _q === void 0 ? void 0 : _q.renderReferenceLabelOptions) === null || _r === void 0 ? void 0 : _r.call(_q, "", false, "number")) !== null && _s !== void 0 ? _s : [], staticDropdown: true, onChange: function (value) {
8812
8860
  setExportSumAttributeIds(value);
8813
8861
  } })))),
8814
8862
  react_1.default.createElement("div", { className: "mt-5 flex items-center justify-between" },
8815
- react_1.default.createElement("label", { className: "text-sm font-medium text-gray-700" }, "Hide Sub Items"),
8863
+ react_1.default.createElement("label", { className: "text-sm font-medium ".concat(((_t = props.organise) === null || _t === void 0 ? void 0 : _t.darkMode) ? "text-gray-200" : "text-gray-700") }, "Hide Sub Items"),
8816
8864
  react_1.default.createElement(toggle_1.Toggle, { text: "", direction: "right", value: hideSubItems, onClick: function () { return setHideSubItems(!hideSubItems); } })),
8817
8865
  react_1.default.createElement("div", { className: "flex justify-end mt-5 " },
8818
8866
  showEmail && (react_1.default.createElement(button_1.Button, { text: "Send to email", size: "small", type: "normal", onClick: function () { return __awaiter(void 0, void 0, void 0, function () {
@@ -8832,7 +8880,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8832
8880
  } }))))));
8833
8881
  }
8834
8882
  else if (sortModal) {
8835
- return (react_1.default.createElement(settingsModal_1.SortModal, { sort: activeSortId, onChangeSort: handleSortColumn, renderReferenceLabelOptions: (_p = props.organise) === null || _p === void 0 ? void 0 : _p.renderReferenceLabelOptions, onClose: function () {
8883
+ return (react_1.default.createElement(settingsModal_1.SortModal, { sort: activeSortId, onChangeSort: handleSortColumn, renderReferenceLabelOptions: (_u = props.organise) === null || _u === void 0 ? void 0 : _u.renderReferenceLabelOptions, onClose: function () {
8836
8884
  handlePopUpModal(false);
8837
8885
  } }));
8838
8886
  }
@@ -8847,12 +8895,12 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8847
8895
  } }));
8848
8896
  }
8849
8897
  else if (filterModal) {
8850
- return (react_1.default.createElement(settingsModal_1.FilterModal, { server: props.devSettings.server, filter: additionalQuery, model: props.model, onChangeFilter: (_q = props.organise) === null || _q === void 0 ? void 0 : _q.onChangeFilter, renderReferenceLabelOptions: (_r = props.organise) === null || _r === void 0 ? void 0 : _r.renderReferenceLabelOptions, renderReferenceSpaceOptions: (_s = props.organise) === null || _s === void 0 ? void 0 : _s.renderReferenceSpaceOptions, setNotification: setNotification, onClose: function () {
8898
+ return (react_1.default.createElement(settingsModal_1.FilterModal, { server: props.devSettings.server, filter: additionalQuery, model: props.model, onChangeFilter: (_v = props.organise) === null || _v === void 0 ? void 0 : _v.onChangeFilter, renderReferenceLabelOptions: (_w = props.organise) === null || _w === void 0 ? void 0 : _w.renderReferenceLabelOptions, renderReferenceSpaceOptions: (_x = props.organise) === null || _x === void 0 ? void 0 : _x.renderReferenceSpaceOptions, setNotification: setNotification, onClose: function () {
8851
8899
  handlePopUpModal(false);
8852
8900
  } }));
8853
8901
  }
8854
8902
  else if (addTabModal) {
8855
- return (react_1.default.createElement(settingsModal_1.TabModal, { type: props.type, tabs: (_t = props.organise) === null || _t === void 0 ? void 0 : _t.extendedTabs, onChangeTabs: (_u = props.organise) === null || _u === void 0 ? void 0 : _u.onChangeTabs, model: structure, renderReferenceLabelOptions: (_v = props.organise) === null || _v === void 0 ? void 0 : _v.renderReferenceLabelOptions, onClose: function () {
8903
+ return (react_1.default.createElement(settingsModal_1.TabModal, { type: props.type, tabs: (_y = props.organise) === null || _y === void 0 ? void 0 : _y.extendedTabs, onChangeTabs: (_z = props.organise) === null || _z === void 0 ? void 0 : _z.onChangeTabs, model: structure, renderReferenceLabelOptions: (_0 = props.organise) === null || _0 === void 0 ? void 0 : _0.renderReferenceLabelOptions, onClose: function () {
8856
8904
  handlePopUpModal(false);
8857
8905
  } }));
8858
8906
  }
@@ -8914,7 +8962,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8914
8962
  return eachModel.id === selectedObjectStructureId;
8915
8963
  });
8916
8964
  if (filterObjectModel === null || filterObjectModel === void 0 ? void 0 : filterObjectModel.objectData) {
8917
- var modalModel_1 = (_w = filterObjectModel === null || filterObjectModel === void 0 ? void 0 : filterObjectModel.objectData) !== null && _w !== void 0 ? _w : [];
8965
+ var modalModel_1 = (_1 = filterObjectModel === null || filterObjectModel === void 0 ? void 0 : filterObjectModel.objectData) !== null && _1 !== void 0 ? _1 : [];
8918
8966
  var handleOnFailValidation = function (refList) {
8919
8967
  var _a, _b;
8920
8968
  if ((refList === null || refList === void 0 ? void 0 : refList.length) > 0) {
@@ -8986,16 +9034,16 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8986
9034
  disabledOnEnter_2 = true;
8987
9035
  return null;
8988
9036
  });
8989
- if ((_x = props.bareSettings) === null || _x === void 0 ? void 0 : _x.bareListObjectHandleData) {
9037
+ if ((_2 = props.bareSettings) === null || _2 === void 0 ? void 0 : _2.bareListObjectHandleData) {
8990
9038
  var listObjectViewType = props.type === "read"
8991
9039
  ? "read"
8992
9040
  : selectedObjectId
8993
9041
  ? "update"
8994
9042
  : "new";
8995
- (_z = (_y = props.bareSettings) === null || _y === void 0 ? void 0 : _y.bareListObjectHandleData) === null || _z === void 0 ? void 0 : _z.call(_y, listObjectViewType, selectedObjectData);
9043
+ (_4 = (_3 = props.bareSettings) === null || _3 === void 0 ? void 0 : _3.bareListObjectHandleData) === null || _4 === void 0 ? void 0 : _4.call(_3, listObjectViewType, selectedObjectData);
8996
9044
  }
8997
9045
  return (react_1.default.createElement(react_1.default.Fragment, null,
8998
- react_1.default.createElement(form_1.Form, { className: "grid ".concat(formColumn, " ").concat(gridGap, " pb-32 mt-6 sm:pb-36"), ref: objectFormRef, refList: objectFormInputRefs, handleComplete: handleSubmitObjectDataType, disabledOnEnter: disabledOnEnter_2, handleOnFailValidation: handleOnFailValidation }, renderDataTemplateFormContent(selectedObjectData, (_0 = filterObjectModel === null || filterObjectModel === void 0 ? void 0 : filterObjectModel.objectData) !== null && _0 !== void 0 ? _0 : [], objectFormInputRefs, true, filterObjectModel.type === "listObject", undefined, filterObjectModel.type === "listObject"
9046
+ react_1.default.createElement(form_1.Form, { className: "grid ".concat(formColumn, " ").concat(gridGap, " pb-32 mt-6 sm:pb-36"), ref: objectFormRef, refList: objectFormInputRefs, handleComplete: handleSubmitObjectDataType, disabledOnEnter: disabledOnEnter_2, handleOnFailValidation: handleOnFailValidation }, renderDataTemplateFormContent(selectedObjectData, (_5 = filterObjectModel === null || filterObjectModel === void 0 ? void 0 : filterObjectModel.objectData) !== null && _5 !== void 0 ? _5 : [], objectFormInputRefs, true, filterObjectModel.type === "listObject", undefined, filterObjectModel.type === "listObject"
8999
9047
  ? selectedData
9000
9048
  : undefined)),
9001
9049
  react_1.default.createElement("div", { className: "flex justify-end pt-8" },
@@ -9060,13 +9108,14 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
9060
9108
  } }))));
9061
9109
  };
9062
9110
  var renderDeleteModalContent = function () {
9111
+ var _a;
9063
9112
  if (!deleteModal)
9064
9113
  return react_1.default.createElement(react_1.default.Fragment, null);
9065
9114
  else
9066
9115
  return (react_1.default.createElement(react_1.default.Fragment, null,
9067
9116
  react_1.default.createElement("div", { className: "px-3 sm:px-0" },
9068
9117
  react_1.default.createElement("div", { className: "flex" },
9069
- react_1.default.createElement("h2", { className: "mt-2 mb-2 text-xl font-bold text-gray-900" }, "Delete Confirmation")),
9118
+ react_1.default.createElement("h2", { className: "mt-2 mb-2 text-xl font-bold ".concat(((_a = props.organise) === null || _a === void 0 ? void 0 : _a.darkMode) ? "text-white" : "text-gray-900") }, "Delete Confirmation")),
9070
9119
  react_1.default.createElement("p", { className: "mt-2 mb-4" },
9071
9120
  "Are you sure you want to permanently delete",
9072
9121
  " ",
@@ -9208,7 +9257,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
9208
9257
  };
9209
9258
  return (react_1.default.createElement(react_1.default.Fragment, null,
9210
9259
  renderNotification("root"),
9211
- ((_49 = (_48 = props.renderSettings) === null || _48 === void 0 ? void 0 : _48.renderLoadingUI) === null || _49 === void 0 ? void 0 : _49.call(_48)) && loading ? ((_50 = props.renderSettings) === null || _50 === void 0 ? void 0 : _50.renderLoadingUI()) : (react_1.default.createElement(modal_1.Modal, { maxWidth: selectedObjectStructureId || excelModal ? "2xl" : undefined, open: modalVisible, title: renderModalTitle(), renderContent: renderModalContent, onClose: function () {
9260
+ ((_49 = (_48 = props.renderSettings) === null || _48 === void 0 ? void 0 : _48.renderLoadingUI) === null || _49 === void 0 ? void 0 : _49.call(_48)) && loading ? ((_50 = props.renderSettings) === null || _50 === void 0 ? void 0 : _50.renderLoadingUI()) : (react_1.default.createElement(modal_1.Modal, { darkMode: (_51 = props.organise) === null || _51 === void 0 ? void 0 : _51.darkMode, darkModeBg: (_52 = props.organise) === null || _52 === void 0 ? void 0 : _52.darkModeBg, maxWidth: selectedObjectStructureId || excelModal ? "2xl" : undefined, open: modalVisible, title: renderModalTitle(), renderContent: renderModalContent, onClose: function () {
9212
9261
  var _a, _b;
9213
9262
  if (loading)
9214
9263
  return;
@@ -9219,7 +9268,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
9219
9268
  setExportCSVEmail((_b = (_a = props.devSettings.currentUser) === null || _a === void 0 ? void 0 : _a.userEmail) !== null && _b !== void 0 ? _b : "");
9220
9269
  }
9221
9270
  }, notification: react_1.default.createElement(react_1.default.Fragment, null, renderNotification("modal")) })),
9222
- react_1.default.createElement(modal_1.Modal, { maxWidth: "2xl", open: referenceCreationModal.id ? true : false, renderContent: function () {
9271
+ react_1.default.createElement(modal_1.Modal, { darkMode: (_53 = props.organise) === null || _53 === void 0 ? void 0 : _53.darkMode, darkModeBg: (_54 = props.organise) === null || _54 === void 0 ? void 0 : _54.darkModeBg, maxWidth: "2xl", open: referenceCreationModal.id ? true : false, renderContent: function () {
9223
9272
  return (react_1.default.createElement(referenceModal_1.ReferenceModal, { referenceModelSchema: referenceModelSchema, referenceDataStructure: referenceCreationModal, devSettings: props.devSettings, handleCreateRefId: function (dataId) {
9224
9273
  if (dataId) {
9225
9274
  var currentValue = selectedData[referenceCreationModal.id];
@@ -9235,19 +9284,19 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
9235
9284
  }, onClose: function () {
9236
9285
  setReferenceCreationModal({ id: "", name: "", type: "string" });
9237
9286
  } }),
9238
- react_1.default.createElement(modal_1.Modal, { maxWidth: "2xl", open: Object.keys(referenceDeleteTableData).length > 0, renderContent: renderReferenceDeleteTable, onClose: function () {
9287
+ react_1.default.createElement(modal_1.Modal, { darkMode: (_55 = props.organise) === null || _55 === void 0 ? void 0 : _55.darkMode, darkModeBg: (_56 = props.organise) === null || _56 === void 0 ? void 0 : _56.darkModeBg, maxWidth: "2xl", open: Object.keys(referenceDeleteTableData).length > 0, renderContent: renderReferenceDeleteTable, onClose: function () {
9239
9288
  setReferenceDeleteTableData({});
9240
9289
  }, notification: react_1.default.createElement(react_1.default.Fragment, null, renderNotification("modal")) }),
9241
- react_1.default.createElement(modal_1.Modal, { open: deleteModal, renderContent: renderDeleteModalContent, onClose: function () {
9290
+ react_1.default.createElement(modal_1.Modal, { darkMode: (_57 = props.organise) === null || _57 === void 0 ? void 0 : _57.darkMode, darkModeBg: (_58 = props.organise) === null || _58 === void 0 ? void 0 : _58.darkModeBg, open: deleteModal, renderContent: renderDeleteModalContent, onClose: function () {
9242
9291
  setDeletePasscodeInput("");
9243
9292
  setDeleteModal(!deleteModal);
9244
9293
  setDeleteFeedId("");
9245
9294
  }, notification: react_1.default.createElement(react_1.default.Fragment, null, renderNotification("modal")) }),
9246
- react_1.default.createElement(modal_1.Modal, { open: batchUpdateModal, renderContent: renderBatchUpdateModalContent, onClose: function () {
9295
+ react_1.default.createElement(modal_1.Modal, { darkMode: (_59 = props.organise) === null || _59 === void 0 ? void 0 : _59.darkMode, darkModeBg: (_60 = props.organise) === null || _60 === void 0 ? void 0 : _60.darkModeBg, open: batchUpdateModal, renderContent: renderBatchUpdateModalContent, onClose: function () {
9247
9296
  setBatchUpdateData({ columnId: "", columnData: {} });
9248
9297
  setBatchUpdateModal(false);
9249
9298
  }, notification: react_1.default.createElement(react_1.default.Fragment, null, renderNotification("modal")) }),
9250
- react_1.default.createElement(modal_1.Modal, { title: "Edit Auth Method", open: selectedAuthMethod ? true : false, renderContent: function () {
9299
+ react_1.default.createElement(modal_1.Modal, { darkMode: (_61 = props.organise) === null || _61 === void 0 ? void 0 : _61.darkMode, darkModeBg: (_62 = props.organise) === null || _62 === void 0 ? void 0 : _62.darkModeBg, title: "Edit Auth Method", open: selectedAuthMethod ? true : false, renderContent: function () {
9251
9300
  var _a;
9252
9301
  if (props.space)
9253
9302
  return (react_1.default.createElement(authModal_1.AuthModal, { space: props.space, userId: (_a = props.id) !== null && _a !== void 0 ? _a : "", type: selectedAuthMethod, authMethods: authMethods, onComplete: handleAuthComplete }));
@@ -9255,7 +9304,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
9255
9304
  }, onClose: function () {
9256
9305
  setSelectedAuthMethod("");
9257
9306
  } }),
9258
- isActivityLog && (react_1.default.createElement(modal_1.Modal, { open: activityModal, title: "Activity Log", renderContent: function () {
9307
+ isActivityLog && (react_1.default.createElement(modal_1.Modal, { darkMode: (_63 = props.organise) === null || _63 === void 0 ? void 0 : _63.darkMode, darkModeBg: (_64 = props.organise) === null || _64 === void 0 ? void 0 : _64.darkModeBg, open: activityModal, title: "Activity Log", renderContent: function () {
9259
9308
  var _a, _b;
9260
9309
  return (react_1.default.createElement(activityModal_1.ActivityModal, { title: props.title && typeof props.title === "string"
9261
9310
  ? props.title