blixify-ui-web 1.3.53 → 1.3.54

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 (33) hide show
  1. package/lib/components/data/dataTemplate/index.d.ts.map +1 -1
  2. package/lib/components/data/dataTemplate/index.js +62 -39
  3. package/lib/components/data/dataTemplate/index.js.map +1 -1
  4. package/lib/components/data/dataTemplate/timelineBars.d.ts +0 -2
  5. package/lib/components/data/dataTemplate/timelineBars.d.ts.map +1 -1
  6. package/lib/components/data/dataTemplate/timelineBars.js +2 -8
  7. package/lib/components/data/dataTemplate/timelineBars.js.map +1 -1
  8. package/lib/components/data/formula/index.d.ts.map +1 -1
  9. package/lib/components/data/formula/index.js +23 -7
  10. package/lib/components/data/formula/index.js.map +1 -1
  11. package/lib/components/display/modal/index.d.ts.map +1 -1
  12. package/lib/components/display/modal/index.js +3 -1
  13. package/lib/components/display/modal/index.js.map +1 -1
  14. package/lib/components/display/newTable/index.d.ts.map +1 -1
  15. package/lib/components/display/newTable/index.js +77 -21
  16. package/lib/components/display/newTable/index.js.map +1 -1
  17. package/lib/components/display/newTable/rowRendering.d.ts +17 -0
  18. package/lib/components/display/newTable/rowRendering.d.ts.map +1 -1
  19. package/lib/components/display/newTable/rowRendering.js +16 -1
  20. package/lib/components/display/newTable/rowRendering.js.map +1 -1
  21. package/lib/components/display/newTimeline/index.d.ts +19 -0
  22. package/lib/components/display/newTimeline/index.d.ts.map +1 -0
  23. package/lib/components/display/newTimeline/index.js +139 -0
  24. package/lib/components/display/newTimeline/index.js.map +1 -0
  25. package/lib/components/index.d.ts +1 -0
  26. package/lib/components/index.d.ts.map +1 -1
  27. package/lib/components/index.js +3 -1
  28. package/lib/components/index.js.map +1 -1
  29. package/lib/components/input/select/index.d.ts.map +1 -1
  30. package/lib/components/input/select/index.js +6 -4
  31. package/lib/components/input/select/index.js.map +1 -1
  32. package/lib/tail.css +1 -1
  33. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAoCA,OAAO,KASN,MAAM,OAAO,CAAC;AA8Hf,OAAO,EAGL,iBAAiB,EAOlB,MAAM,kBAAkB,CAAC;AAmL1B,eAAO,MAAM,qBAAqB,OAAO,CAAC;AA6C1C,eAAO,MAAM,yBAAyB,UAAW,GAAG,YAYnD,CAAC;AAeF,eAAO,MAAM,YAAY,mFA8klBvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAoCA,OAAO,KASN,MAAM,OAAO,CAAC;AA+Hf,OAAO,EAGL,iBAAiB,EAOlB,MAAM,kBAAkB,CAAC;AAwL1B,eAAO,MAAM,qBAAqB,OAAO,CAAC;AA6C1C,eAAO,MAAM,yBAAyB,UAAW,GAAG,YAYnD,CAAC;AAeF,eAAO,MAAM,YAAY,mFAillBvB,CAAC"}
@@ -132,6 +132,7 @@ var newTable_1 = require("../../display/newTable");
132
132
  var newList_1 = require("../../display/newList");
133
133
  var listRowFields_1 = require("../../display/newList/listRowFields");
134
134
  var newGrid_1 = require("../../display/newGrid");
135
+ var newTimeline_1 = require("../../display/newTimeline");
135
136
  var newKanban_1 = require("../../display/newKanban");
136
137
  var newCalendar_1 = require("../../display/newCalendar");
137
138
  var address_1 = require("../../input/address");
@@ -213,6 +214,9 @@ var handleIsEmptyElement = function (element) {
213
214
  // one request; kept short, since a row scrolled into view shows an empty
214
215
  // bubble until its count arrives
215
216
  var COMMENT_COUNT_BATCH_MS = 50;
217
+ // INFO: draws its content when mounted, so content handed to a closed pop-up
218
+ // is not built until the pop-up opens
219
+ var LazyContent = function (props) { return (react_1.default.createElement(react_1.default.Fragment, null, props.render())); };
216
220
  // INFO: long enough for the views a closing comments panel saves to land
217
221
  var CLOSED_ROW_RECOUNT_MS = 1500;
218
222
  // INFO: how long an in-place refresh that keeps the group totals waits for its
@@ -11236,7 +11240,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
11236
11240
  return null;
11237
11241
  };
11238
11242
  var renderListActionElements = function () {
11239
- 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;
11243
+ 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;
11240
11244
  var actionElementList = [];
11241
11245
  // INFO: sort, Slice Data and Model Overview all moved into the view
11242
11246
  // settings panel and the flex filters, so the Space row keeps only
@@ -11286,9 +11290,16 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
11286
11290
  };
11287
11291
  // INFO: Desktop — PopUp (hidden on mobile)
11288
11292
  actionElementList.push(react_1.default.createElement("div", { className: "hidden md:block" },
11289
- react_1.default.createElement(popUp_1.PopUp, { darkMode: (_k = props.organise) === null || _k === void 0 ? void 0 : _k.darkMode, darkModeBg: (_l = props.organise) === null || _l === void 0 ? void 0 : _l.darkModeBg, ctaComp: viewSettingsIcon(""), renderComp: react_1.default.createElement("div", { className: "w-[calc(100vw-2rem)] max-w-[320px] rounded-md p-4 shadow-lg ".concat(((_m = props.organise) === null || _m === void 0 ? void 0 : _m.darkMode)
11290
- ? "".concat((_p = (_o = props.organise) === null || _o === void 0 ? void 0 : _o.darkModeBg) !== null && _p !== void 0 ? _p : "bg-gray-900", " text-white")
11291
- : "bg-white") }, renderViewSettingsContent()), anchor: "right", excludePortalIds: ["datepicker-portal", "select-portal"], lib: { Transition: (_q = props === null || props === void 0 ? void 0 : props.lib) === null || _q === void 0 ? void 0 : _q.Transition } })));
11293
+ react_1.default.createElement(popUp_1.PopUp, { darkMode: (_k = props.organise) === null || _k === void 0 ? void 0 : _k.darkMode, darkModeBg: (_l = props.organise) === null || _l === void 0 ? void 0 : _l.darkModeBg, ctaComp: viewSettingsIcon(""),
11294
+ // INFO: built only while the panel is open — it lists
11295
+ // every column, so building it on each redraw of a wide
11296
+ // table cost as much as the table's own rows
11297
+ renderComp: react_1.default.createElement(LazyContent, { render: function () {
11298
+ var _a, _b, _c;
11299
+ return (react_1.default.createElement("div", { className: "w-[calc(100vw-2rem)] max-w-[320px] rounded-md p-4 shadow-lg ".concat(((_a = props.organise) === null || _a === void 0 ? void 0 : _a.darkMode)
11300
+ ? "".concat((_c = (_b = props.organise) === null || _b === void 0 ? void 0 : _b.darkModeBg) !== null && _c !== void 0 ? _c : "bg-gray-900", " text-white")
11301
+ : "bg-white") }, renderViewSettingsContent()));
11302
+ } }), anchor: "right", excludePortalIds: ["datepicker-portal", "select-portal"], lib: { Transition: (_m = props === null || props === void 0 ? void 0 : props.lib) === null || _m === void 0 ? void 0 : _m.Transition } })));
11292
11303
  // INFO: Mobile — the popover cannot fit the panel and overflows the
11293
11304
  // viewport, so a Modal takes over (same split as the flex filter)
11294
11305
  actionElementList.push(react_1.default.createElement("div", { className: "block md:hidden" },
@@ -11296,11 +11307,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
11296
11307
  viewSettingsIcon("-mobile", function () {
11297
11308
  return setViewSettingsModalOpen(true);
11298
11309
  }),
11299
- react_1.default.createElement(modal_1.Modal, { open: viewSettingsModalOpen, maxWidth: "lg", title: "View", darkMode: (_r = props.organise) === null || _r === void 0 ? void 0 : _r.darkMode, darkModeBg: (_s = props.organise) === null || _s === void 0 ? void 0 : _s.darkModeBg, onClose: function () { return setViewSettingsModalOpen(false); }, renderContent: function () { return renderViewSettingsContent(); } })));
11310
+ react_1.default.createElement(modal_1.Modal, { open: viewSettingsModalOpen, maxWidth: "lg", title: "View", darkMode: (_o = props.organise) === null || _o === void 0 ? void 0 : _o.darkMode, darkModeBg: (_p = props.organise) === null || _p === void 0 ? void 0 : _p.darkModeBg, onClose: function () { return setViewSettingsModalOpen(false); }, renderContent: function () { return renderViewSettingsContent(); } })));
11300
11311
  }
11301
11312
  // INFO: Flex filter — desktop uses PopUp, mobile uses Modal
11302
- if ((_t = props.bareSettings) === null || _t === void 0 ? void 0 : _t.bareFlexFilters) {
11303
- var flexActions = __assign({ handleAddFilter: handleFlexFilterAdd, handleRemoveFilter: handleFlexFilterRemove, handleClearAllFilters: handleFlexFilterClearAll, handleColumnChange: handleFlexFilterColumnChange, handleOperatorChange: handleFlexFilterOperatorChange, handleValueChange: handleFlexFilterValueChange, handleReferenceOptionsLoaded: handleFlexFilterReferenceOptionsLoaded, handleReferenceSearch: handleFlexFilterReferenceSearch, isContainsSupported: isFlexOrSupported }, (isFlexOrSupported
11313
+ if ((_q = props.bareSettings) === null || _q === void 0 ? void 0 : _q.bareFlexFilters) {
11314
+ var flexActions_1 = __assign({ handleAddFilter: handleFlexFilterAdd, handleRemoveFilter: handleFlexFilterRemove, handleClearAllFilters: handleFlexFilterClearAll, handleColumnChange: handleFlexFilterColumnChange, handleOperatorChange: handleFlexFilterOperatorChange, handleValueChange: handleFlexFilterValueChange, handleReferenceOptionsLoaded: handleFlexFilterReferenceOptionsLoaded, handleReferenceSearch: handleFlexFilterReferenceSearch, isContainsSupported: isFlexOrSupported }, (isFlexOrSupported
11304
11315
  ? {
11305
11316
  handleAddOrFilter: handleFlexFilterAddOr,
11306
11317
  canAddOrFilter: function (filterId) {
@@ -11309,17 +11320,17 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
11309
11320
  }
11310
11321
  : {}));
11311
11322
  // INFO: Search input will only render above flex filters if bareListFilterAsPopup is true
11312
- var searchInput = !isFirebase &&
11313
- ((_u = props.bareSettings) === null || _u === void 0 ? void 0 : _u.bareListFilterAsPopup) &&
11314
- !((_v = props.organise) === null || _v === void 0 ? void 0 : _v.hideSearch) &&
11323
+ var searchInput_1 = !isFirebase &&
11324
+ ((_r = props.bareSettings) === null || _r === void 0 ? void 0 : _r.bareListFilterAsPopup) &&
11325
+ !((_s = props.organise) === null || _s === void 0 ? void 0 : _s.hideSearch) &&
11315
11326
  filterComponent_1 &&
11316
11327
  Array.isArray(filterComponent_1) &&
11317
11328
  filterComponent_1.length > 0
11318
11329
  ? filterComponent_1[filterComponent_1.length - 1]
11319
11330
  : undefined;
11320
11331
  var flexFilterLength_1 = activeFlexFilterCount_1;
11321
- if (!((_w = props.organise) === null || _w === void 0 ? void 0 : _w.hideSearch) &&
11322
- ((_x = props.bareSettings) === null || _x === void 0 ? void 0 : _x.bareListFilterAsPopup) &&
11332
+ if (!((_t = props.organise) === null || _t === void 0 ? void 0 : _t.hideSearch) &&
11333
+ ((_u = props.bareSettings) === null || _u === void 0 ? void 0 : _u.bareListFilterAsPopup) &&
11323
11334
  (filterSearchParams === null || filterSearchParams === void 0 ? void 0 : filterSearchParams["search"]))
11324
11335
  flexFilterLength_1 += 1;
11325
11336
  var flexFilterIconBtn = function (mobile) {
@@ -11332,17 +11343,20 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
11332
11343
  };
11333
11344
  // INFO: Desktop — PopUp (hidden on mobile)
11334
11345
  actionElementList.push(react_1.default.createElement("div", { className: "hidden md:block" },
11335
- react_1.default.createElement(popUp_1.PopUp, { darkMode: (_y = props.organise) === null || _y === void 0 ? void 0 : _y.darkMode, ctaComp: flexFilterIconBtn(), renderComp: (0, flexFilter_1.renderFlexFilterPopupContent)(flexFilters, flexFilterPanelStructure, devSettings, dbModule, flexFilterReferenceOptions, flexFilterReferenceSearch, flexActions, (_z = props.bareSettings) === null || _z === void 0 ? void 0 : _z.bareListFilterQuery, searchInput, (_0 = props.bareSettings) === null || _0 === void 0 ? void 0 : _0.bareListFilterAddComponent, undefined, {
11336
- darkMode: (_1 = props.organise) === null || _1 === void 0 ? void 0 : _1.darkMode,
11337
- darkModeBg: (_2 = props.organise) === null || _2 === void 0 ? void 0 : _2.darkModeBg,
11338
- }), anchor: "right", excludePortalIds: ["datepicker-portal", "select-portal"], lib: { Transition: (_3 = props === null || props === void 0 ? void 0 : props.lib) === null || _3 === void 0 ? void 0 : _3.Transition } })));
11346
+ react_1.default.createElement(popUp_1.PopUp, { darkMode: (_v = props.organise) === null || _v === void 0 ? void 0 : _v.darkMode, ctaComp: flexFilterIconBtn(), renderComp: react_1.default.createElement(LazyContent, { render: function () {
11347
+ var _a, _b, _c, _d;
11348
+ return (0, flexFilter_1.renderFlexFilterPopupContent)(flexFilters, flexFilterPanelStructure, devSettings, dbModule, flexFilterReferenceOptions, flexFilterReferenceSearch, flexActions_1, (_a = props.bareSettings) === null || _a === void 0 ? void 0 : _a.bareListFilterQuery, searchInput_1, (_b = props.bareSettings) === null || _b === void 0 ? void 0 : _b.bareListFilterAddComponent, undefined, {
11349
+ darkMode: (_c = props.organise) === null || _c === void 0 ? void 0 : _c.darkMode,
11350
+ darkModeBg: (_d = props.organise) === null || _d === void 0 ? void 0 : _d.darkModeBg,
11351
+ });
11352
+ } }), anchor: "right", excludePortalIds: ["datepicker-portal", "select-portal"], lib: { Transition: (_w = props === null || props === void 0 ? void 0 : props.lib) === null || _w === void 0 ? void 0 : _w.Transition } })));
11339
11353
  // INFO: Mobile — IconButton that opens a Modal (hidden on desktop)
11340
11354
  actionElementList.push(react_1.default.createElement("div", { className: "block md:hidden" },
11341
- !((_4 = props.bareSettings) === null || _4 === void 0 ? void 0 : _4.bareListMobileFloatingSearch) &&
11355
+ !((_x = props.bareSettings) === null || _x === void 0 ? void 0 : _x.bareListMobileFloatingSearch) &&
11342
11356
  flexFilterIconBtn(true),
11343
- (0, flexFilter_1.renderFlexFilterModal)(flexFilterModalOpen, flexFilters, flexFilterPanelStructure, devSettings, dbModule, flexFilterReferenceOptions, flexFilterReferenceSearch, flexActions, function () { return setFlexFilterModalOpen(false); }, (_5 = props.bareSettings) === null || _5 === void 0 ? void 0 : _5.bareListFilterQuery, searchInput, (_6 = props.bareSettings) === null || _6 === void 0 ? void 0 : _6.bareListFilterAddComponent, {
11344
- darkMode: (_7 = props.organise) === null || _7 === void 0 ? void 0 : _7.darkMode,
11345
- darkModeBg: (_8 = props.organise) === null || _8 === void 0 ? void 0 : _8.darkModeBg,
11357
+ (0, flexFilter_1.renderFlexFilterModal)(flexFilterModalOpen, flexFilters, flexFilterPanelStructure, devSettings, dbModule, flexFilterReferenceOptions, flexFilterReferenceSearch, flexActions_1, function () { return setFlexFilterModalOpen(false); }, (_y = props.bareSettings) === null || _y === void 0 ? void 0 : _y.bareListFilterQuery, searchInput_1, (_z = props.bareSettings) === null || _z === void 0 ? void 0 : _z.bareListFilterAddComponent, {
11358
+ darkMode: (_0 = props.organise) === null || _0 === void 0 ? void 0 : _0.darkMode,
11359
+ darkModeBg: (_1 = props.organise) === null || _1 === void 0 ? void 0 : _1.darkModeBg,
11346
11360
  })));
11347
11361
  }
11348
11362
  // INFO: bareUpdateActionBottom positions the read/update action bar. The list's own
@@ -11351,14 +11365,14 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
11351
11365
  var actionBtns = renderActionButtons(resolvedType);
11352
11366
  if (actionBtns)
11353
11367
  actionElementList.push(actionBtns);
11354
- if (schemaPresent || ((_9 = props.organise) === null || _9 === void 0 ? void 0 : _9.showExport)) {
11355
- actionElementList.push(react_1.default.createElement(popUp_1.PopUp, { darkMode: (_10 = props.organise) === null || _10 === void 0 ? void 0 : _10.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: ((_11 = props.organise) === null || _11 === void 0 ? void 0 : _11.darkMode) ? "bg-white/10" : "bg-white" }), renderComp: react_1.default.createElement("div", { className: "shadow-lg" }, moreButtonPopUp.map(function (eachPopup) { return (
11368
+ if (schemaPresent || ((_2 = props.organise) === null || _2 === void 0 ? void 0 : _2.showExport)) {
11369
+ actionElementList.push(react_1.default.createElement(popUp_1.PopUp, { darkMode: (_3 = props.organise) === null || _3 === void 0 ? void 0 : _3.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: ((_4 = props.organise) === null || _4 === void 0 ? void 0 : _4.darkMode) ? "bg-white/10" : "bg-white" }), renderComp: react_1.default.createElement("div", { className: "shadow-lg" }, moreButtonPopUp.map(function (eachPopup) { return (
11356
11370
  //TODO: Bug - Crash on Next Js
11357
11371
  // <Menu.Item>
11358
11372
  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)
11359
11373
  // </Menu.Item>
11360
11374
  ); })), lib: {
11361
- Transition: (_12 = props === null || props === void 0 ? void 0 : props.lib) === null || _12 === void 0 ? void 0 : _12.Transition,
11375
+ Transition: (_5 = props === null || props === void 0 ? void 0 : props.lib) === null || _5 === void 0 ? void 0 : _5.Transition,
11362
11376
  } }));
11363
11377
  }
11364
11378
  if (actionElementList.length > 0) {
@@ -13674,6 +13688,12 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
13674
13688
  var renderEventAvailabilities = function () {
13675
13689
  var eventAvailabilities = [];
13676
13690
  if (calendarSettings_1 === null || calendarSettings_1 === void 0 ? void 0 : calendarSettings_1.startDate) {
13691
+ // INFO: read once for the view rather than per row — each look-up
13692
+ // walks the whole schema
13693
+ var startDateFormat = handleFindColumnDateFormat(calendarSettings_1.startDate);
13694
+ var endDateFormat = calendarSettings_1.endDate
13695
+ ? handleFindColumnDateFormat(calendarSettings_1.endDate)
13696
+ : undefined;
13677
13697
  for (var _i = 0, spaceTableData_1 = spaceTableData; _i < spaceTableData_1.length; _i++) {
13678
13698
  var eachData = spaceTableData_1[_i];
13679
13699
  var rawStart = (0, timelineBars_1.handleReadDateText)(eachData[calendarSettings_1.startDate]);
@@ -13684,15 +13704,15 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
13684
13704
  // one row without a date must not hide every row after it
13685
13705
  if (!rawStart)
13686
13706
  continue;
13687
- else if (!(0, dateFormat_1.handleParseListDate)(rawStart, handleFindColumnDateFormat(calendarSettings_1.startDate)).isValid()) {
13707
+ var startDate = (0, dateFormat_1.handleParseListDate)(rawStart, startDateFormat);
13708
+ if (!startDate.isValid()) {
13688
13709
  continue;
13689
13710
  }
13690
13711
  else {
13691
13712
  var id = eachData.id;
13692
13713
  var title = (0, readModule_1.handleCutPreviewText)(eachData[calendarSettings_1.title]);
13693
- var startDate = (0, dateFormat_1.handleParseListDate)(rawStart, handleFindColumnDateFormat(calendarSettings_1.startDate));
13694
13714
  var endDate = calendarSettings_1.endDate && rawEnd
13695
- ? (0, dateFormat_1.handleParseListDate)(rawEnd, handleFindColumnDateFormat(calendarSettings_1.endDate))
13715
+ ? (0, dateFormat_1.handleParseListDate)(rawEnd, endDateFormat)
13696
13716
  : startDate;
13697
13717
  var eventAvailability = {
13698
13718
  id: id,
@@ -13749,6 +13769,19 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
13749
13769
  };
13750
13770
  // INFO: when bareNewDTW is enabled, render NewCalendar instead of legacy Calendar
13751
13771
  if ((_35 = props.bareSettings) === null || _35 === void 0 ? void 0 : _35.bareNewDTW) {
13772
+ // INFO: each event's unformatted row by id, found in one pass — a
13773
+ // search of every row for every event froze a busy month. The first
13774
+ // row holding an id keeps it, as the search found
13775
+ var rawRowById_1 = new Map();
13776
+ tableData.forEach(function (eachRow) {
13777
+ [eachRow === null || eachRow === void 0 ? void 0 : eachRow[serverId], eachRow === null || eachRow === void 0 ? void 0 : eachRow._id, eachRow === null || eachRow === void 0 ? void 0 : eachRow.id].forEach(function (eachId) {
13778
+ if (eachId === undefined)
13779
+ return;
13780
+ var key = String(eachId);
13781
+ if (!rawRowById_1.has(key))
13782
+ rawRowById_1.set(key, eachRow);
13783
+ });
13784
+ });
13752
13785
  var mappedCalendarEvents = renderEventAvailabilities().map(function (ev) {
13753
13786
  var _a, _b, _c, _d;
13754
13787
  return ({
@@ -13765,13 +13798,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
13765
13798
  date: ev.date,
13766
13799
  // INFO: the unformatted row, so a tap handler can tell which
13767
13800
  // collection a union event came from
13768
- meta: {
13769
- rawData: tableData.find(function (eachRow) {
13770
- return [eachRow === null || eachRow === void 0 ? void 0 : eachRow[serverId], eachRow === null || eachRow === void 0 ? void 0 : eachRow._id, eachRow === null || eachRow === void 0 ? void 0 : eachRow.id].some(function (eachId) {
13771
- return eachId !== undefined && String(eachId) === String(ev.id);
13772
- });
13773
- }),
13774
- },
13801
+ meta: { rawData: rawRowById_1.get(String(ev.id)) },
13775
13802
  });
13776
13803
  });
13777
13804
  // INFO: lets the app reshape the fetched events — e.g. expand one
@@ -13940,10 +13967,6 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
13940
13967
  return timelineGroupId_1 ? (0, timelineBars_1.handleOrderByGroup)(tasks) : tasks;
13941
13968
  };
13942
13969
  var timelineTasks = renderTimelineTasks();
13943
- // INFO: parallel hex list for Apex distributed bars — one colour per
13944
- // task, in the same order; undefined falls back to the chart default
13945
- var timelinePrimary_1 = timelinePrimaryColour;
13946
- var timelineColors = timelineTasks.map(function (eachTask) { var _a; return (_a = eachTask.color) !== null && _a !== void 0 ? _a : timelinePrimary_1; });
13947
13970
  var timelineWindow_1 = (0, timelineBars_1.handleGetTimelineWindow)(timelineRange.unit, timelineRange.anchor);
13948
13971
  var handleChangeTimelineRange_1 = function (next) {
13949
13972
  setTimelineRange(next);
@@ -13978,11 +14001,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
13978
14001
  // INFO: a row per record at a readable height, scrolling past a
13979
14002
  // screen rather than squeezing every bar into a fixed chart
13980
14003
  react_1.default.createElement("div", { "data-testid": "dtw-timeline-scroll", className: "max-h-[70vh] overflow-y-auto" },
13981
- react_1.default.createElement(ganttChart_1.GanttChart, { title: typeof props.title === "string" ? props.title : "Timeline", tasks: timelineTasks, colors: timelineColors, chartOnly: true, chartSize: (0, timelineBars_1.handleGetTimelineHeight)(timelineTasks.length), rangeStart: handleCheckTimelineWindow(timelineSettings_1)
14004
+ react_1.default.createElement(newTimeline_1.NewTimeline, { tasks: timelineTasks, barColor: timelinePrimaryColour, rangeStart: handleCheckTimelineWindow(timelineSettings_1)
13982
14005
  ? timelineWindow_1.start
13983
14006
  : undefined, rangeEnd: handleCheckTimelineWindow(timelineSettings_1)
13984
14007
  ? timelineWindow_1.end
13985
- : undefined, axisOnTop: true, barLabelColor: "#ffffff", darkMode: (_41 = props.organise) === null || _41 === void 0 ? void 0 : _41.darkMode, onClick: function (taskId) {
14008
+ : undefined, darkMode: (_41 = props.organise) === null || _41 === void 0 ? void 0 : _41.darkMode, onClick: function (taskId) {
13986
14009
  var _a, _b;
13987
14010
  if (taskId)
13988
14011
  (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", taskId, "general");