blixify-ui-web 1.3.27 → 1.3.29

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 (61) hide show
  1. package/lib/components/chart/ganttChart/index.d.ts +3 -0
  2. package/lib/components/chart/ganttChart/index.d.ts.map +1 -1
  3. package/lib/components/chart/ganttChart/index.js +15 -8
  4. package/lib/components/chart/ganttChart/index.js.map +1 -1
  5. package/lib/components/data/columnTypes/dateRangeCalendar.d.ts +1 -1
  6. package/lib/components/data/columnTypes/dateRangeCalendar.js +1 -1
  7. package/lib/components/data/dataTemplate/index.d.ts.map +1 -1
  8. package/lib/components/data/dataTemplate/index.js +643 -347
  9. package/lib/components/data/dataTemplate/index.js.map +1 -1
  10. package/lib/components/data/dataTemplate/model.d.ts.map +1 -1
  11. package/lib/components/data/dataTemplate/settingsModal.d.ts +1 -1
  12. package/lib/components/data/dataTemplate/settingsModal.d.ts.map +1 -1
  13. package/lib/components/data/dataTemplate/settingsModal.js +68 -27
  14. package/lib/components/data/dataTemplate/settingsModal.js.map +1 -1
  15. package/lib/components/data/dataTemplate/timelineBars.d.ts +22 -0
  16. package/lib/components/data/dataTemplate/timelineBars.d.ts.map +1 -0
  17. package/lib/components/data/dataTemplate/timelineBars.js +124 -0
  18. package/lib/components/data/dataTemplate/timelineBars.js.map +1 -0
  19. package/lib/components/data/flexFilter/index.d.ts.map +1 -1
  20. package/lib/components/data/flexFilter/index.js +73 -12
  21. package/lib/components/data/flexFilter/index.js.map +1 -1
  22. package/lib/components/data/readQuery/index.d.ts +1 -1
  23. package/lib/components/data/readQuery/index.d.ts.map +1 -1
  24. package/lib/components/data/readQuery/index.js.map +1 -1
  25. package/lib/components/data/updateModule.js +1 -1
  26. package/lib/components/data/updateModule.js.map +1 -1
  27. package/lib/components/display/mapView/routes.d.ts +14 -0
  28. package/lib/components/display/mapView/routes.d.ts.map +1 -1
  29. package/lib/components/display/mapView/routes.js +16 -1
  30. package/lib/components/display/mapView/routes.js.map +1 -1
  31. package/lib/components/display/newCalendar/index.d.ts +4 -0
  32. package/lib/components/display/newCalendar/index.d.ts.map +1 -1
  33. package/lib/components/display/newCalendar/index.js +166 -25
  34. package/lib/components/display/newCalendar/index.js.map +1 -1
  35. package/lib/components/display/newTable/index.d.ts.map +1 -1
  36. package/lib/components/display/newTable/index.js +151 -176
  37. package/lib/components/display/newTable/index.js.map +1 -1
  38. package/lib/components/display/newTable/labelPicker.d.ts +4 -3
  39. package/lib/components/display/newTable/labelPicker.d.ts.map +1 -1
  40. package/lib/components/display/newTable/labelPicker.js +6 -5
  41. package/lib/components/display/newTable/labelPicker.js.map +1 -1
  42. package/lib/components/display/newTable/tagLine.d.ts +1 -0
  43. package/lib/components/display/newTable/tagLine.d.ts.map +1 -1
  44. package/lib/components/display/newTable/tagLine.js +2 -2
  45. package/lib/components/display/newTable/tagLine.js.map +1 -1
  46. package/lib/components/display/tag/index.d.ts +3 -1
  47. package/lib/components/display/tag/index.d.ts.map +1 -1
  48. package/lib/components/display/tag/index.js +20 -4
  49. package/lib/components/display/tag/index.js.map +1 -1
  50. package/lib/components/display/tag/utils.d.ts +3 -0
  51. package/lib/components/display/tag/utils.d.ts.map +1 -1
  52. package/lib/components/display/tag/utils.js +21 -1
  53. package/lib/components/display/tag/utils.js.map +1 -1
  54. package/lib/components/input/datePicker/index.js +1 -1
  55. package/lib/components/input/datePicker/index.js.map +1 -1
  56. package/lib/components/input/select/index.d.ts.map +1 -1
  57. package/lib/components/input/select/index.js +3 -15
  58. package/lib/components/input/select/index.js.map +1 -1
  59. package/lib/components/input/utils.d.ts +1 -1
  60. package/lib/tail.css +1 -1
  61. package/package.json +1 -1
@@ -469,8 +469,8 @@ var CELL_FIT_CLASS = "[&_[data-cell-thumb=tile]]:!h-6 [&_[data-cell-thumb=tile]]
469
469
  // dropdown (boolean, a Select that takes no typing), a list or multiple
470
470
  // list with no colours (a coloured one has its board or label picker), a
471
471
  // reference or list of references, which pick another record, roles, a person
472
- // or people, or a pick from a referenced record's list. Under
473
- // gridLines="all" their editor fills the cell (FILL_INPUT_CLASS).
472
+ // or people, or a pick from a referenced record's list. Their editor fills
473
+ // the cell (FILL_INPUT_CLASS).
474
474
  var FILL_INPUT_TYPES = [
475
475
  "string",
476
476
  "number",
@@ -788,13 +788,14 @@ var NewTable = function (rawProps) {
788
788
  var _31 = (0, react_2.useState)(""), editDataRowId = _31[0], setEditDataRowId = _31[1];
789
789
  var _32 = (0, react_2.useState)(""), editDataHeaderKey = _32[0], setEditDataHeaderKey = _32[1];
790
790
  // INFO: an editable table used to mount an input in every cell — it read as a
791
- // form, and a row click always landed on a child input. Only the hovered cell
792
- // becomes its input now; NewTableHoverCell keeps that hover to itself.
793
- // INFO: "rowId:colKey" of a gridLines="all" cell a click just opened — its
794
- // editor takes focus as it mounts, with the caret at the end
791
+ // form, and a row click always landed on a child input. Only the clicked cell
792
+ // becomes its input now (Gantt and canvas cells still on hover, through
793
+ // NewTableHoverCell).
794
+ // INFO: "rowId:colKey" of the cell a click just opened — its editor takes
795
+ // focus as it mounts, with the caret at the end
795
796
  var pendingFocusRef = (0, react_2.useRef)("");
796
- // INFO: the cell a gridLines="all" multiple list is being picked in — its
797
- // popover hangs from this element
797
+ // INFO: the cell a coloured multiple list is being picked in — its popover
798
+ // hangs from this element
798
799
  var _33 = (0, react_2.useState)(null), labelPickerAnchor = _33[0], setLabelPickerAnchor = _33[1];
799
800
  var _34 = (0, react_2.useState)(false), modalEditVisible = _34[0], setModalEditVisible = _34[1];
800
801
  // INFO: whether the modal's signature pad has been drawn on
@@ -831,8 +832,8 @@ var NewTable = function (rawProps) {
831
832
  // INFO: bumped after each saved row, so the next one starts with fresh
832
833
  // inputs and its first cell takes the focus
833
834
  var _44 = (0, react_2.useState)(0), addRowKey = _44[0], setAddRowKey = _44[1];
834
- // INFO: the add row's coloured multiple list being picked under
835
- // gridLines="all" — its label picker hangs from this cell
835
+ // INFO: the add row's coloured multiple list being picked — its label
836
+ // picker hangs from this cell
836
837
  // INFO: the new row's required tag columns left empty on a save — their
837
838
  // cells are ringed red until a label is picked
838
839
  var _45 = (0, react_2.useState)([]), addTagErrors = _45[0], setAddTagErrors = _45[1];
@@ -895,8 +896,8 @@ var NewTable = function (rawProps) {
895
896
  version: 0,
896
897
  });
897
898
  var editDataValueRef = (0, react_2.useRef)({});
898
- // INFO: the check a cell's blur is running — under gridLines="all" the next
899
- // cell opens only once it is done, while the field it checks still exists
899
+ // INFO: the check a cell's blur is running — the next cell opens only once it
900
+ // is done, while the field it checks still exists
900
901
  var blurCheckRef = (0, react_2.useRef)(null);
901
902
  var editDataRowIdRef = (0, react_2.useRef)("");
902
903
  var editDataHeaderKeyRef = (0, react_2.useRef)("");
@@ -1069,14 +1070,12 @@ var NewTable = function (rawProps) {
1069
1070
  var rowHoverBg = props.darkMode ? "hover:bg-gray-700" : "hover:bg-gray-100";
1070
1071
  var dividerColor = props.darkMode ? "divide-gray-700" : "divide-gray-100";
1071
1072
  var gridLines = (_k = props.gridLines) !== null && _k !== void 0 ? _k : "horizontal";
1072
- // INFO: under gridLines="all" a coloured list cell paints its whole table
1073
- // cell, like a spreadsheet's cell fill, instead of holding a chip. The Select
1073
+ // INFO: a coloured list cell paints its whole table cell, like a
1074
+ // spreadsheet's cell fill, instead of holding a chip. The Select
1074
1075
  // inside is told (cellInput.fill) to keep only the label colour. Same shades
1075
1076
  // as the Select's own fill; a hex goes inline.
1076
1077
  var handleGetCellFill = function (col, value) {
1077
1078
  var _a;
1078
- if (gridLines !== "all")
1079
- return undefined;
1080
1079
  var colour = handleGetListColour(col, value);
1081
1080
  if (!colour)
1082
1081
  return undefined;
@@ -1108,7 +1107,7 @@ var NewTable = function (rawProps) {
1108
1107
  : "text-primary-600 font-medium";
1109
1108
  // INFO: px-6 rather than px-4 so an editable cell keeps a strip either side of
1110
1109
  // its input that belongs to the row — at px-4 that strip was 7px, too small to
1111
- // click a row open once every cell turns into an editor on hover
1110
+ // click a row open once a click on a cell opens its editor
1112
1111
  var cellPadding = "!px-6 !py-2";
1113
1112
  // INFO: holds the text cell to the input's height, or the row twitches as the
1114
1113
  // pointer crosses it
@@ -1185,9 +1184,9 @@ var NewTable = function (rawProps) {
1185
1184
  var frameId = requestAnimationFrame(function () {
1186
1185
  var _a, _b;
1187
1186
  var cell = (_a = addRowRef.current) === null || _a === void 0 ? void 0 : _a.querySelector("[data-add-cell=\"".concat(colKey, "\"]"));
1188
- // INFO: under gridLines="all" a coloured multiple list's cell is its tag
1189
- // line, which opens the label picker — the click that started the row
1190
- // opens it too, as a click on any other cell starts typing there
1187
+ // INFO: a coloured multiple list's cell is its tag line, which opens the
1188
+ // label picker — the click that started the row opens it too, as a click
1189
+ // on any other cell starts typing there
1191
1190
  var tagLine = cell === null || cell === void 0 ? void 0 : cell.querySelector('[data-testid^="table-add-tag-line-"]');
1192
1191
  if (cell && tagLine) {
1193
1192
  tagLine.focus();
@@ -1482,18 +1481,16 @@ var NewTable = function (rawProps) {
1482
1481
  return [4 /*yield*/, handleCheckFormInputRefs("add")];
1483
1482
  case 1:
1484
1483
  valid = _e.sent();
1485
- missingTags = gridLines === "all"
1486
- ? handleGetAddColumns()
1487
- .filter(function (col) {
1488
- var _a;
1489
- return handleIsAddColumn(col) &&
1490
- col.type === "multipleList" &&
1491
- handleColumnShowsTags(col) &&
1492
- (0, updateModule_1.handleIsFieldRequired)(col, addDataValueRef.current) &&
1493
- !(0, utils_1.handleIsValueFilled)((_a = addDataValueRef.current) === null || _a === void 0 ? void 0 : _a[col.key]);
1494
- })
1495
- .map(function (col) { return col.key; })
1496
- : [];
1484
+ missingTags = handleGetAddColumns()
1485
+ .filter(function (col) {
1486
+ var _a;
1487
+ return handleIsAddColumn(col) &&
1488
+ col.type === "multipleList" &&
1489
+ handleColumnShowsTags(col) &&
1490
+ (0, updateModule_1.handleIsFieldRequired)(col, addDataValueRef.current) &&
1491
+ !(0, utils_1.handleIsValueFilled)((_a = addDataValueRef.current) === null || _a === void 0 ? void 0 : _a[col.key]);
1492
+ })
1493
+ .map(function (col) { return col.key; });
1497
1494
  setAddTagErrors(missingTags);
1498
1495
  if (!valid || missingTags.length > 0) {
1499
1496
  if (leaving)
@@ -3309,10 +3306,8 @@ var NewTable = function (rawProps) {
3309
3306
  handleOnChangeSelect: handleOnChangeSelect,
3310
3307
  handleOnChangeDate: handleOnChangeDate,
3311
3308
  }, false, cellInput,
3312
- // INFO: a yes/no, plain list or reference cell under gridLines="all"
3313
- // opens its list in dark mode too. Other cell editors are not handed
3314
- // darkMode yet — passing it to all of them would restyle cells under
3315
- // "horizontal" as well.
3309
+ // INFO: a yes/no, plain list or reference cell opens its list in dark
3310
+ // mode too. Other cell editors are not handed darkMode yet.
3316
3311
  cellInput.fill &&
3317
3312
  !ds.showTagSelections &&
3318
3313
  [
@@ -3339,10 +3334,10 @@ var NewTable = function (rawProps) {
3339
3334
  });
3340
3335
  };
3341
3336
  // INFO: a cell being typed into stays an input after the pointer leaves it
3342
- // INFO: under gridLines="all" a cell's editor is drawn only while that cell
3343
- // is open, so opening another one removes it at once. A field still being
3344
- // typed in is left first, so its blur saves it as it always does — a tap on
3345
- // a touch screen lands on the next cell without blurring the field
3337
+ // INFO: a click-to-edit cell's editor is drawn only while that cell is open,
3338
+ // so opening another one removes it at once. A field still being typed in is
3339
+ // left first, so its blur saves it as it always does — a tap on a touch
3340
+ // screen lands on the next cell without blurring the field
3346
3341
  // INFO: a field checks itself by setting its error state and waiting for
3347
3342
  // React to apply it — a field removed first never answers, and its save
3348
3343
  // never ran. So the next cell opens only after the check, and not at all
@@ -3374,17 +3369,16 @@ var NewTable = function (rawProps) {
3374
3369
  return editDataRowId === rowId && editDataHeaderKey === colKey;
3375
3370
  };
3376
3371
  var renderReadCellValue = function (col, row, cellValue, noRowLink, spaceRow) {
3377
- var _a;
3378
- // INFO: under gridLines="all" a list of names (a list of references)
3379
- // reads "A, B", as a multiple list's picks do — the read module joins an
3380
- // array with bare commas
3381
- var isNameList = gridLines === "all" &&
3382
- Array.isArray(cellValue) &&
3372
+ var _a, _b, _c;
3373
+ // INFO: a list of names (a list of references) reads "A, B", as a
3374
+ // multiple list's picks do — the read module joins an array with bare
3375
+ // commas
3376
+ var isNameList = Array.isArray(cellValue) &&
3383
3377
  cellValue.every(function (each) { return typeof each === "string"; });
3384
- // INFO: roles arrive as one string joined with bare commas, so under
3385
- // gridLines="all" they are read from the row's keys instead
3378
+ // INFO: roles arrive as one string joined with bare commas, so they are
3379
+ // read from the row's keys instead
3386
3380
  var rawRoles = resolveValue(row, col.key);
3387
- var roleLabels = gridLines === "all" && col.type === "roles" && Array.isArray(rawRoles)
3381
+ var roleLabels = col.type === "roles" && Array.isArray(rawRoles)
3388
3382
  ? rawRoles
3389
3383
  .map(function (each) {
3390
3384
  var _a, _b, _c, _d;
@@ -3392,10 +3386,19 @@ var NewTable = function (rawProps) {
3392
3386
  })
3393
3387
  .join(", ")
3394
3388
  : undefined;
3395
- var value = (0, readModule_1.renderEachRowDataBasedOnDataType)(col.key, roleLabels !== null && roleLabels !== void 0 ? roleLabels : (isNameList ? cellValue.join(", ") : cellValue), props.bareSettings, true, props.disableEllipsisOnLongWord);
3389
+ // INFO: a coloured multiple list reads as the same line of filled tags its
3390
+ // editable cell shows, not the read module's bordered chips — unless the
3391
+ // host describes the cell itself (bareListDescription), which the read
3392
+ // module applies
3393
+ var isTagLineCell = col.type === "multipleList" &&
3394
+ handleColumnShowsTags(col) &&
3395
+ !((_b = (_a = props.bareSettings) === null || _a === void 0 ? void 0 : _a.bareListDescription) === null || _b === void 0 ? void 0 : _b.call(_a, col.key, cellValue));
3396
+ var value = isTagLineCell
3397
+ ? renderTagLine(col, cellValue)
3398
+ : (0, readModule_1.renderEachRowDataBasedOnDataType)(col.key, roleLabels !== null && roleLabels !== void 0 ? roleLabels : (isNameList ? cellValue.join(", ") : cellValue), props.bareSettings, true, props.disableEllipsisOnLongWord);
3396
3399
  if (noRowLink || !props.newTabUrl || !props.onClickRow)
3397
3400
  return value;
3398
- return (react_2.default.createElement(link_1.Link, { href: props.newTabUrl + row.id + ((_a = props.addNewTabUrl) !== null && _a !== void 0 ? _a : ""), className: "w-full block ".concat(handleIsReadCellFixed(col) ? "truncate" : ""), linkType: props.linkType, custom: props.custom,
3401
+ return (react_2.default.createElement(link_1.Link, { href: props.newTabUrl + row.id + ((_c = props.addNewTabUrl) !== null && _c !== void 0 ? _c : ""), className: "w-full block ".concat(handleIsReadCellFixed(col) ? "truncate" : ""), linkType: props.linkType, custom: props.custom,
3399
3402
  // INFO: the href is there for a new browser tab; a plain click opens
3400
3403
  // the row the way the rest of the row does. Left to the row's own
3401
3404
  // handler it was missed whenever the link sat inside the cell's
@@ -3420,9 +3423,12 @@ var NewTable = function (rawProps) {
3420
3423
  // INFO: only a column with a set width (a set or dragged width, or a
3421
3424
  // pin) is fitted; one sized to its content keeps two tags and the count
3422
3425
  fit: handleIsReadCellFixed(col),
3423
- // INFO: under gridLines="all" the row's gap-1 is the only space
3424
- // between tags — Tag's own mx-1 doubled it to 12px
3425
- tagClassName: gridLines === "all" ? "!mx-0" : "" }));
3426
+ // INFO: the row's gap-1 is the only space between tags — Tag's own
3427
+ // mx-1 doubled it to 12px
3428
+ tagClassName: "!mx-0",
3429
+ // INFO: the picks are filled, as a coloured single select's cell is,
3430
+ // whether the cell is edited in place or read only
3431
+ solid: true }));
3426
3432
  };
3427
3433
  var renderEditDataInputs = function (colIndex, col, rowData, rowId, rowBgClass, isHoverable) {
3428
3434
  var _a, _b, _c, _d, _e, _f, _g, _h;
@@ -3431,15 +3437,14 @@ var NewTable = function (rawProps) {
3431
3437
  var cellFill = tempDS.showTagSelections
3432
3438
  ? handleGetCellFill(col, resolveValue(rowData, col.key))
3433
3439
  : undefined;
3434
- // INFO: the board of colour blocks applies to every coloured cell under
3435
- // gridLines="all", an empty one too. The cell darkens on hover and, while
3436
- // its board is open, carries an inset ring like a sheet's active cell —
3437
- // a shadow, as Chrome paints no outline on a collapsed table's cell, and
3438
- // !important so it replaces the grid line's own shadow there.
3439
- var isFillColumn = gridLines === "all" && !!tempDS.showTagSelections;
3440
+ // INFO: the board of colour blocks applies to every coloured cell, an empty
3441
+ // one too. The cell darkens on hover and, while its board is open, carries
3442
+ // an inset ring like a sheet's active cell — a shadow, as Chrome paints no
3443
+ // outline on a collapsed table's cell, and !important so it replaces the
3444
+ // grid line's own shadow there.
3445
+ var isFillColumn = !!tempDS.showTagSelections;
3440
3446
  var isFillActive = editingRow && editDataHeaderKey === col.key;
3441
- var isFillInput = gridLines === "all" &&
3442
- !tempDS.showTagSelections &&
3447
+ var isFillInput = !tempDS.showTagSelections &&
3443
3448
  FILL_INPUT_TYPES.includes((_b = col.type) !== null && _b !== void 0 ? _b : "string");
3444
3449
  var fillStateClass = !isFillColumn
3445
3450
  ? ""
@@ -3451,9 +3456,8 @@ var NewTable = function (rawProps) {
3451
3456
  var liveValue = editingRow && col.key in ((_c = editDataValueRef.current) !== null && _c !== void 0 ? _c : {})
3452
3457
  ? editDataValueRef.current[col.key]
3453
3458
  : resolveValue(rowData, col.key);
3454
- // INFO: an "x" that empties the cell, under gridLines="all" only — a
3455
- // horizontal table's fields keep their own boxes and clear icons. A
3456
- // required, read-only or grouped (dotted key) column has none. Once open,
3459
+ // INFO: an "x" that empties the cell, in place of a field's own clear icon.
3460
+ // A required, read-only or grouped (dotted key) column has none. Once open,
3457
3461
  // only a typed field or a date keeps it — a dropdown's chevron sits where
3458
3462
  // the "x" would, and its open list is where a pick is changed.
3459
3463
  var isClearable = isFillInput &&
@@ -3524,7 +3528,7 @@ var NewTable = function (rawProps) {
3524
3528
  })),
3525
3529
  isClearable && renderClearCellButton(col, rowId, rowData, false)));
3526
3530
  };
3527
- // INFO: a cell's "x" is offered under gridLines="all" on an optional column
3531
+ // INFO: a cell's "x" is offered on an optional column
3528
3532
  // whose type CLEAR_CELL_VALUES lists, while the cell holds a value. A
3529
3533
  // required (or required for this row), read-only, rating or grouped (dotted
3530
3534
  // key) column has none.
@@ -3786,15 +3790,14 @@ var NewTable = function (rawProps) {
3786
3790
  }
3787
3791
  return (react_2.default.createElement("td", { className: "".concat(cellPadding, " text-sm ").concat(pin.className), style: pin.style }));
3788
3792
  };
3789
- // INFO: under gridLines="all" a new row's cells are filled in as an edited
3790
- // row's are — a text, number, date, phone or plain dropdown field fills its
3791
- // cell and rings it while in focus, a coloured list opens its colour board
3792
- // and fills the cell with the picked colour, and a coloured multiple list
3793
- // keeps its tags in the cell and opens the label picker under it. Picks
3794
- // stay in the new row until it is saved. "horizontal" keeps the boxed
3795
- // fields.
3793
+ // INFO: a new row's cells are filled in as an edited row's are — a text,
3794
+ // number, date, phone or plain dropdown field fills its cell and rings it
3795
+ // while in focus, a coloured list opens its colour board and fills the cell
3796
+ // with the picked colour, and a coloured multiple list keeps its tags in the
3797
+ // cell and opens the label picker under it. Picks stay in the new row until
3798
+ // it is saved.
3796
3799
  var renderAddFillCell = function (ds, col, index) {
3797
- var _a, _b, _c, _d;
3800
+ var _a, _b, _c, _d, _e, _f;
3798
3801
  var value = addDataValue === null || addDataValue === void 0 ? void 0 : addDataValue[ds.id];
3799
3802
  // INFO: a pinned column stays put in the new row as in the rows above it
3800
3803
  var addPin = getPinProps(col.key, false);
@@ -3843,7 +3846,7 @@ var NewTable = function (rawProps) {
3843
3846
  ? "cursor-pointer hover:brightness-95"
3844
3847
  : "cursor-pointer ".concat(props.darkMode ? "hover:bg-gray-800" : "hover:bg-gray-50");
3845
3848
  return (react_2.default.createElement("td", { key: ds.id + String(index), "data-add-cell": ds.id, "data-cell-fill": cellFill ? "" : undefined, className: "".concat(editCellPadding, " ").concat(handleCellMinWidth(ds.type), " whitespace-nowrap text-sm ").concat(cellFontColor, " ").concat(cellFill ? handleDropCellBg(addPin === null || addPin === void 0 ? void 0 : addPin.className) : ((_c = addPin === null || addPin === void 0 ? void 0 : addPin.className) !== null && _c !== void 0 ? _c : ""), " ").concat((_d = cellFill === null || cellFill === void 0 ? void 0 : cellFill.className) !== null && _d !== void 0 ? _d : "", " ").concat(fillStateClass, " ").concat(isFillInput ? "".concat(FILL_INPUT_CELL_CLASS, " ").concat(props.darkMode ? FILL_INPUT_EDIT_BG_DARK_CLASS : FILL_INPUT_EDIT_BG_CLASS) : ""), style: __assign(__assign({}, addPin === null || addPin === void 0 ? void 0 : addPin.style), cellFill === null || cellFill === void 0 ? void 0 : cellFill.style) },
3846
- react_2.default.createElement("div", { className: "".concat(isFillInput ? "".concat(FILL_INPUT_CLASS, " ").concat(FILL_INPUT_EDGE_CLASS) : "", " w-full p-[1px] [&>*]:w-full [&_input]:w-0 [&_input]:min-w-full [&_textarea]:w-0 [&_textarea]:min-w-full [&_input]:h-[32px] [&_textarea]:min-h-[32px] [&_[data-composite-input]_input]:min-w-0 [&_[data-composite-input]_.PhoneInputInput]:w-14") }, renderFormCell(addDataValue, ds, addDataInputRefs.current[flatColumns.findIndex(function (each) { return each.key === ds.id; })], {
3849
+ react_2.default.createElement("div", { className: "".concat(isFillInput ? "".concat(FILL_INPUT_CLASS, " ").concat(FILL_INPUT_EDGE_CLASS) : "", " ").concat(((_f = (_e = props.data) === null || _e === void 0 ? void 0 : _e.length) !== null && _f !== void 0 ? _f : 0) === 0 ? "min-w-[10rem]" : "", " w-full p-[1px] [&>*]:w-full [&_input]:w-0 [&_input]:min-w-full [&_textarea]:w-0 [&_textarea]:min-w-full [&_input]:h-[32px] [&_textarea]:min-h-[32px] [&_[data-composite-input]_input]:min-w-0 [&_[data-composite-input]_.PhoneInputInput]:w-14") }, renderFormCell(addDataValue, ds, addDataInputRefs.current[flatColumns.findIndex(function (each) { return each.key === ds.id; })], {
3847
3850
  active: true,
3848
3851
  fill: isFillColumn || isFillInput,
3849
3852
  onBlur: function () { },
@@ -3855,23 +3858,18 @@ var NewTable = function (rawProps) {
3855
3858
  return (react_2.default.createElement("tr", { key: "add-row-".concat(addRowKey), ref: addRowRef, "data-testid": "table-add-row-editing", onKeyDown: handleAddRowKeyDown },
3856
3859
  props.checkbox && (react_2.default.createElement("td", { className: handleGetBlankCheckboxPin().className, style: handleGetBlankCheckboxPin().style })),
3857
3860
  colsAsDS.map(function (ds, index) {
3858
- var _a;
3859
3861
  var pin = getPinProps(filteredCols[index].key, false);
3860
- if (handleIsAddColumn(filteredCols[index])) {
3861
- if (gridLines === "all")
3862
- return renderAddFillCell(ds, filteredCols[index], index);
3863
- return (react_2.default.createElement("td", { key: ds.id + String(index), "data-add-cell": ds.id, className: "px-4 py-4 whitespace-nowrap align-top ".concat((_a = pin === null || pin === void 0 ? void 0 : pin.className) !== null && _a !== void 0 ? _a : ""), style: pin === null || pin === void 0 ? void 0 : pin.style },
3864
- react_2.default.createElement("div", { className: "min-w-[10rem]" }, renderFormCell(addDataValue, ds, addDataInputRefs.current[flatColumns.findIndex(function (col) { return col.key === ds.id; })], { active: true, onBlur: function () { } }))));
3865
- }
3862
+ if (handleIsAddColumn(filteredCols[index]))
3863
+ return renderAddFillCell(ds, filteredCols[index], index);
3866
3864
  return (react_2.default.createElement("td", { key: ds.id + String(index), "data-add-cell": ds.id, className: pin === null || pin === void 0 ? void 0 : pin.className, style: pin === null || pin === void 0 ? void 0 : pin.style }));
3867
3865
  }),
3868
3866
  renderAddColumnCell(),
3869
- react_2.default.createElement("td", { className: "".concat(gridLines === "all" ? editCellPadding : cellPadding, " text-sm ").concat(handleGetActionCellPin(false).className), style: handleGetActionCellPin(false).style },
3870
- react_2.default.createElement("div", { className: "flex flex-row ".concat(gridLines === "all" ? "gap-1" : "gap-2") },
3867
+ react_2.default.createElement("td", { className: "".concat(editCellPadding, " text-sm ").concat(handleGetActionCellPin(false).className), style: handleGetActionCellPin(false).style },
3868
+ react_2.default.createElement("div", { className: "flex flex-row gap-1" },
3871
3869
  react_2.default.createElement(hoverTooltip_1.HoverTooltip, { text: "Save row", className: "inline-flex" },
3872
- react_2.default.createElement(iconButton_1.IconButton, { testId: "table-add-row-confirm", size: gridLines === "all" ? "small" : undefined, darkMode: gridLines === "all" ? props.darkMode : undefined, icon: react_2.default.createElement(solid_2.CheckIcon, { className: "".concat(gridLines === "all" ? "h-4 w-4" : "h-5 w-5", " text-green-500") }), onClick: function () { return handleCommitAdd(false); } })),
3870
+ react_2.default.createElement(iconButton_1.IconButton, { testId: "table-add-row-confirm", size: "small", darkMode: props.darkMode, icon: react_2.default.createElement(solid_2.CheckIcon, { className: "h-4 w-4 text-green-500" }), onClick: function () { return handleCommitAdd(false); } })),
3873
3871
  react_2.default.createElement(hoverTooltip_1.HoverTooltip, { text: "Cancel", className: "inline-flex" },
3874
- react_2.default.createElement(iconButton_1.IconButton, { testId: "table-add-row-cancel", size: gridLines === "all" ? "small" : undefined, darkMode: gridLines === "all" ? props.darkMode : undefined, icon: react_2.default.createElement(solid_2.XMarkIcon, { className: "".concat(gridLines === "all" ? "h-4 w-4" : "h-5 w-5", " text-red-500") }), onClick: handleCancelAdd }))))));
3872
+ react_2.default.createElement(iconButton_1.IconButton, { testId: "table-add-row-cancel", size: "small", darkMode: props.darkMode, icon: react_2.default.createElement(solid_2.XMarkIcon, { className: "h-4 w-4 text-red-500" }), onClick: handleCancelAdd }))))));
3875
3873
  };
3876
3874
  // INFO: an empty add row lightens on hover; its pinned cells, which carry
3877
3875
  // their own background, follow it
@@ -3957,7 +3955,7 @@ var NewTable = function (rawProps) {
3957
3955
  return (react_2.default.createElement("div", { className: "flex flex-row items-center" },
3958
3956
  react_2.default.createElement("p", { className: "text-xs ".concat(cellFontColor) },
3959
3957
  props.selectAll
3960
- ? "Select all items ".concat((_b = props.selectAllText) !== null && _b !== void 0 ? _b : "")
3958
+ ? "All ".concat((_b = props.selectAllText) !== null && _b !== void 0 ? _b : "", " selected")
3961
3959
  : "Selected items: ".concat((_c = props.selectedIds) === null || _c === void 0 ? void 0 : _c.length),
3962
3960
  isMaxReached && (react_2.default.createElement("span", { className: "ml-1 ".concat(errorFontColor) },
3963
3961
  "(Max. ",
@@ -4063,7 +4061,7 @@ var NewTable = function (rawProps) {
4063
4061
  editDataHeaderKey,
4064
4062
  editDataIsLoading,
4065
4063
  modalEditVisible,
4066
- // INFO: a gridLines="all" label picker opens on its anchor alone
4064
+ // INFO: a label picker opens on its anchor alone
4067
4065
  (0, rowRendering_1.handleGetIdentity)(labelPickerAnchor),
4068
4066
  isDragSelecting,
4069
4067
  addData,
@@ -4362,21 +4360,21 @@ var NewTable = function (rawProps) {
4362
4360
  : "hidden group-focus-within/fillcell:block"), style: { right: titleStripsWidth } })) : null, dragHandle, renderActivityButton(row.id, true));
4363
4361
  };
4364
4362
  var renderDataCell = function () {
4365
- 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;
4366
- // INFO: a coloured list cell is this table's to render, so it takes
4367
- // the raw value even when a display row is supplied. The list view
4368
- // builds those rows and puts a Tag in for a coloured value — an
4369
- // element, which the guard below then excludes from inline edit, so
4370
- // the column came out as a pill that could not be edited in place.
4371
- // Only the cell is redirected: the display rows still carry the Tag
4372
- // for the read view, the kanban and the grid.
4373
- var cellValue = spaceRow &&
4374
- !(handleColumnShowsTags(col) &&
4375
- (col.type === "list" || ((_a = props.editable) === null || _a === void 0 ? void 0 : _a.active)))
4363
+ 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;
4364
+ // INFO: a coloured list or multiple list cell is this table's to
4365
+ // render, so it takes the raw value even when a display row is
4366
+ // supplied. The list view builds those rows and puts a Tag in for a
4367
+ // coloured value — an element, which the guard below then excludes
4368
+ // from inline edit, so the column came out as a pill that could not
4369
+ // be edited in place, and a read-only multiple list's chips did not
4370
+ // match the table's filled cells. Only the cell is redirected: the
4371
+ // display rows still carry the Tag for the read view, the kanban
4372
+ // and the grid.
4373
+ var cellValue = spaceRow && !handleColumnShowsTags(col)
4376
4374
  ? spaceRow[col.key]
4377
4375
  : resolveValue(row, col.key);
4378
4376
  // INFO: first col with type "string" is never made editable
4379
- var resolvedColType = (_b = col.type) !== null && _b !== void 0 ? _b : "string";
4377
+ var resolvedColType = (_a = col.type) !== null && _a !== void 0 ? _a : "string";
4380
4378
  var isActionColumn = col.key === "update" && !col.type;
4381
4379
  // INFO: a timeline is picked in its cell, as stars and timers are
4382
4380
  // used there, by whoever may update the record
@@ -4386,17 +4384,17 @@ var NewTable = function (rawProps) {
4386
4384
  !col.disabled)
4387
4385
  return (react_2.default.createElement("td", { key: col.key, "data-cell-key": col.key, "data-pin-key": handleGetPinKey(col.key),
4388
4386
  // INFO: no padding — the cell's own button carries it, so the
4389
- // whole cell is the click target. Under gridLines="all" the
4390
- // cell is the box the open cell's ring covers.
4391
- className: "!p-0 text-sm ".concat(cellFontColor, " whitespace-nowrap ").concat(gridLines === "all" ? "relative" : "", " ").concat((_d = (_c = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _c === void 0 ? void 0 : _c.className) !== null && _d !== void 0 ? _d : ""), style: (_e = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _e === void 0 ? void 0 : _e.style },
4392
- react_2.default.createElement(dateRangeCell_1.DateRangeCell, { column: __assign(__assign({}, col), { id: col.key, name: col.title, type: "dateRange" }), rowId: (_f = row.recordId) !== null && _f !== void 0 ? _f : row.id, value: resolveValue(row, col.key), fill: gridLines === "all", darkMode: props.darkMode })));
4387
+ // whole cell is the click target, and the box the open
4388
+ // cell's ring covers.
4389
+ className: "!p-0 text-sm ".concat(cellFontColor, " whitespace-nowrap relative ").concat((_c = (_b = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _b === void 0 ? void 0 : _b.className) !== null && _c !== void 0 ? _c : ""), style: (_d = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _d === void 0 ? void 0 : _d.style },
4390
+ react_2.default.createElement(dateRangeCell_1.DateRangeCell, { column: __assign(__assign({}, col), { id: col.key, name: col.title, type: "dateRange" }), rowId: (_e = row.recordId) !== null && _e !== void 0 ? _e : row.id, value: resolveValue(row, col.key), fill: true, darkMode: props.darkMode })));
4393
4391
  // INFO: a cell whose value is already a React element (row action
4394
4392
  // buttons, a custom control) is rendered as-is even in an editable
4395
4393
  // table — wrapping it in an inline editor would swallow it
4396
4394
  // INFO: a late or due-today date is the list's marked text, still
4397
4395
  // the stored date underneath, so it edits like any other date
4398
4396
  var isDateWarningCell = react_2.default.isValidElement(cellValue) &&
4399
- !!((_g = cellValue.props) === null || _g === void 0 ? void 0 : _g["data-date-warning"]);
4397
+ !!((_f = cellValue.props) === null || _f === void 0 ? void 0 : _f["data-date-warning"]);
4400
4398
  var isElementCell = react_2.default.isValidElement(cellValue) && !isDateWarningCell;
4401
4399
  // INFO: a column the schema marks disabled is read-only in the form,
4402
4400
  // so it stays read-only in an editable table too — without this an
@@ -4404,11 +4402,11 @@ var NewTable = function (rawProps) {
4404
4402
  var isColumnLocked = !!col.disabled;
4405
4403
  // INFO: a thumbnail or a file name is still the cell of a modal
4406
4404
  // field — the click opens its editor rather than the record
4407
- var isModalEdit = ((_h = props.editable) === null || _h === void 0 ? void 0 : _h.active) &&
4405
+ var isModalEdit = ((_g = props.editable) === null || _g === void 0 ? void 0 : _g.active) &&
4408
4406
  !isColumnLocked &&
4409
4407
  !isActionColumn &&
4410
4408
  utils_1.supportedModalEditList.includes(resolvedColType);
4411
- var isObjectEdit = ((_j = props.editable) === null || _j === void 0 ? void 0 : _j.active) &&
4409
+ var isObjectEdit = ((_h = props.editable) === null || _h === void 0 ? void 0 : _h.active) &&
4412
4410
  !isColumnLocked &&
4413
4411
  !isActionColumn &&
4414
4412
  !isElementCell &&
@@ -4421,12 +4419,12 @@ var NewTable = function (rawProps) {
4421
4419
  cellValue !== null &&
4422
4420
  !(cellValue instanceof Date) &&
4423
4421
  utils_1.primitiveInlineEditList.includes(resolvedColType);
4424
- var isEditable = ((_k = props.editable) === null || _k === void 0 ? void 0 : _k.active) &&
4422
+ var isEditable = ((_j = props.editable) === null || _j === void 0 ? void 0 : _j.active) &&
4425
4423
  !isColumnLocked &&
4426
4424
  !isActionColumn &&
4427
4425
  !isElementCell &&
4428
4426
  !isUneditableShape &&
4429
- !(((_m = (_l = props.selectedIds) === null || _l === void 0 ? void 0 : _l.length) !== null && _m !== void 0 ? _m : 0) > 0 || props.selectAll) &&
4427
+ !(((_l = (_k = props.selectedIds) === null || _k === void 0 ? void 0 : _k.length) !== null && _l !== void 0 ? _l : 0) > 0 || props.selectAll) &&
4430
4428
  // INFO: a checkbox ticks in place — it opens no editor
4431
4429
  !handleIsCheckboxColumn(col) &&
4432
4430
  utils_1.supportedInlineEditList.includes(resolvedColType);
@@ -4436,10 +4434,10 @@ var NewTable = function (rawProps) {
4436
4434
  // otherwise it is shown, disabled.
4437
4435
  var isCheckboxCell = !isActionColumn && handleIsCheckboxColumn(col);
4438
4436
  var canToggleCheckbox = isCheckboxCell &&
4439
- !!((_o = props.editable) === null || _o === void 0 ? void 0 : _o.active) &&
4437
+ !!((_m = props.editable) === null || _m === void 0 ? void 0 : _m.active) &&
4440
4438
  !isColumnLocked &&
4441
4439
  !col.readOnly &&
4442
- !(((_q = (_p = props.selectedIds) === null || _p === void 0 ? void 0 : _p.length) !== null && _q !== void 0 ? _q : 0) > 0 || props.selectAll);
4440
+ !(((_p = (_o = props.selectedIds) === null || _o === void 0 ? void 0 : _o.length) !== null && _p !== void 0 ? _p : 0) > 0 || props.selectAll);
4443
4441
  // INFO: a list column with a palette paints the whole cell —
4444
4442
  // a status column then reads like a heat map instead of a
4445
4443
  // row of chips. Editable tables open the palette on click.
@@ -4450,22 +4448,20 @@ var NewTable = function (rawProps) {
4450
4448
  // INFO: an editable table renders the coloured cell as its Select in
4451
4449
  // every row (filled while closed) so the control never swaps in and
4452
4450
  // out; the plain block is for read-only tables and locked columns
4453
- if (fillColour && (!((_r = props.editable) === null || _r === void 0 ? void 0 : _r.active) || isColumnLocked)) {
4451
+ if (fillColour && (!((_q = props.editable) === null || _q === void 0 ? void 0 : _q.active) || isColumnLocked)) {
4454
4452
  // INFO: a read-only table shows the same filled Select as an
4455
4453
  // editable one, just disabled — the cell looks identical in both
4456
4454
  // modes and the row click still navigates
4457
- var readOnlyDS = __assign(__assign({}, col), { id: col.key, name: col.title, type: (_s = col.type) !== null && _s !== void 0 ? _s : "string", showTagSelections: handleColumnShowsTags(col), disabled: true });
4455
+ var readOnlyDS = __assign(__assign({}, col), { id: col.key, name: col.title, type: (_r = col.type) !== null && _r !== void 0 ? _r : "string", showTagSelections: handleColumnShowsTags(col), disabled: true });
4458
4456
  // INFO: navigate on click only for a genuinely read-only table. This
4459
4457
  // branch is ALSO entered for a locked column inside an EDITABLE
4460
4458
  // table (isColumnLocked) — there a click must leave the Select alone,
4461
4459
  // not navigate — so the overlay is gated on !editable.active.
4462
- var shouldNavigateOnClick = !((_t = props.editable) === null || _t === void 0 ? void 0 : _t.active);
4463
- var isLockedFillCell = !!((_u = props.editable) === null || _u === void 0 ? void 0 : _u.active) &&
4464
- gridLines === "all" &&
4465
- !isActionColumn;
4460
+ var shouldNavigateOnClick = !((_s = props.editable) === null || _s === void 0 ? void 0 : _s.active);
4461
+ var isLockedFillCell = !!((_t = props.editable) === null || _t === void 0 ? void 0 : _t.active) && !isActionColumn;
4466
4462
  var cellFill = handleGetCellFill(col, rawListValue);
4467
4463
  var pinProps = getPinProps(col.key, false, rowBgClass, isRowHoverable);
4468
- return (react_2.default.createElement("td", { key: col.key, "data-cell-key": col.key, "data-pin-key": handleGetPinKey(col.key), "data-cell-fill": cellFill ? "" : undefined, "data-cell-locked": isLockedFillCell ? "" : undefined, className: "p-0 align-middle ".concat(isLockedFillCell ? "cursor-default" : "", " ").concat(cellFill ? handleDropCellBg(pinProps === null || pinProps === void 0 ? void 0 : pinProps.className) : ((_v = pinProps === null || pinProps === void 0 ? void 0 : pinProps.className) !== null && _v !== void 0 ? _v : ""), " ").concat((_w = cellFill === null || cellFill === void 0 ? void 0 : cellFill.className) !== null && _w !== void 0 ? _w : ""), style: __assign(__assign({}, pinProps === null || pinProps === void 0 ? void 0 : pinProps.style), cellFill === null || cellFill === void 0 ? void 0 : cellFill.style),
4464
+ return (react_2.default.createElement("td", { key: col.key, "data-cell-key": col.key, "data-pin-key": handleGetPinKey(col.key), "data-cell-fill": cellFill ? "" : undefined, "data-cell-locked": isLockedFillCell ? "" : undefined, className: "p-0 align-middle ".concat(isLockedFillCell ? "cursor-default" : "", " ").concat(cellFill ? handleDropCellBg(pinProps === null || pinProps === void 0 ? void 0 : pinProps.className) : ((_u = pinProps === null || pinProps === void 0 ? void 0 : pinProps.className) !== null && _u !== void 0 ? _u : ""), " ").concat((_v = cellFill === null || cellFill === void 0 ? void 0 : cellFill.className) !== null && _v !== void 0 ? _v : ""), style: __assign(__assign({}, pinProps === null || pinProps === void 0 ? void 0 : pinProps.style), cellFill === null || cellFill === void 0 ? void 0 : cellFill.style),
4469
4465
  // INFO: a locked coloured cell in the full grid keeps its
4470
4466
  // click, as a locked text cell does
4471
4467
  onClick: isLockedFillCell ? function (e) { return e.stopPropagation(); } : undefined },
@@ -4492,16 +4488,13 @@ var NewTable = function (rawProps) {
4492
4488
  // INFO: share the column width source with the read-only/edit cell
4493
4489
  // variants, otherwise an "Add" placeholder and a filled value in the
4494
4490
  // same column resolve to different widths and the column looks ragged
4495
- className: "".concat(cellPadding, " text-sm ").concat(cellFontColor, " ").concat(handleReadCellWidthClass(col), " ").concat((_y = (_x = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _x === void 0 ? void 0 : _x.className) !== null && _y !== void 0 ? _y : ""), style: (_z = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _z === void 0 ? void 0 : _z.style },
4491
+ className: "".concat(cellPadding, " text-sm ").concat(cellFontColor, " ").concat(handleReadCellWidthClass(col), " ").concat((_x = (_w = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _w === void 0 ? void 0 : _w.className) !== null && _x !== void 0 ? _x : ""), style: (_y = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _y === void 0 ? void 0 : _y.style },
4496
4492
  react_2.default.createElement("div", { className: "cursor-pointer group/modaledit flex items-center gap-x-2 min-h-6 ".concat(handleIsReadCellFixed(col) ? "w-0 min-w-full" : ""), "data-testid": "table-object-edit-".concat(col.key), onClick: function (e) {
4497
4493
  var _a;
4498
4494
  e.stopPropagation();
4499
4495
  (_a = props.onObjectEdit) === null || _a === void 0 ? void 0 : _a.call(props, row.id, col.key, row);
4500
4496
  } },
4501
- handleCheckModalEditEmpty(cellValue) ? (
4502
- // INFO: an empty cell under gridLines="all" is blank,
4503
- // as every other empty cell of the grid is
4504
- gridLines === "all" ? null : (react_2.default.createElement("span", { className: "text-gray-400 italic" }, "Add"))) : (react_2.default.createElement(hoverTooltip_1.HoverTooltip, { className: "min-w-0 truncate", onlyWhenClipped: true }, (0, readModule_1.renderEachRowDataBasedOnDataType)(col.key, cellValue, props.bareSettings, true, props.disableEllipsisOnLongWord))),
4497
+ handleCheckModalEditEmpty(cellValue) ? null : (react_2.default.createElement(hoverTooltip_1.HoverTooltip, { className: "min-w-0 truncate", onlyWhenClipped: true }, (0, readModule_1.renderEachRowDataBasedOnDataType)(col.key, cellValue, props.bareSettings, true, props.disableEllipsisOnLongWord))),
4505
4498
  react_2.default.createElement(hoverTooltip_1.HoverTooltip, { text: "Edit", className: "inline-flex flex-shrink-0" },
4506
4499
  react_2.default.createElement(outline_1.PencilIcon, { "aria-hidden": "true", className: "w-3.5 h-3.5 text-gray-400 opacity-0 group-hover/modaledit:opacity-100 flex-shrink-0" })))));
4507
4500
  }
@@ -4518,15 +4511,12 @@ var NewTable = function (rawProps) {
4518
4511
  // same column resolve to different widths and the column looks ragged
4519
4512
  // INFO: an address cell also carries the copy icon, shown
4520
4513
  // while the cell is hovered
4521
- className: "".concat(isCopyableModalCell ? "group/copy" : "", " ").concat(cellPadding, " text-sm ").concat(cellFontColor, " ").concat(handleReadCellWidthClass(col), " ").concat((_1 = (_0 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _0 === void 0 ? void 0 : _0.className) !== null && _1 !== void 0 ? _1 : ""), style: (_2 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _2 === void 0 ? void 0 : _2.style },
4514
+ className: "".concat(isCopyableModalCell ? "group/copy" : "", " ").concat(cellPadding, " text-sm ").concat(cellFontColor, " ").concat(handleReadCellWidthClass(col), " ").concat((_0 = (_z = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _z === void 0 ? void 0 : _z.className) !== null && _0 !== void 0 ? _0 : ""), style: (_1 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _1 === void 0 ? void 0 : _1.style },
4522
4515
  react_2.default.createElement("div", { className: "cursor-pointer group/modaledit flex items-center gap-x-2 min-h-6 ".concat(handleIsReadCellFixed(col) ? "w-0 min-w-full" : ""), "data-testid": "table-modal-edit-".concat(col.key), onClick: function (e) {
4523
4516
  e.stopPropagation();
4524
4517
  handleModalEditOnClick(row.id, col.key, row);
4525
4518
  } },
4526
- handleCheckModalEditEmpty(cellValue) ? (
4527
- // INFO: an empty cell under gridLines="all" is blank,
4528
- // as every other empty cell of the grid is
4529
- gridLines === "all" ? null : (react_2.default.createElement("span", { className: "text-gray-400 italic" }, "Add"))) : (react_2.default.createElement(hoverTooltip_1.HoverTooltip, { className: "min-w-0 truncate", onlyWhenClipped: true }, (0, readModule_1.renderEachRowDataBasedOnDataType)(col.key, cellValue, props.bareSettings, true, props.disableEllipsisOnLongWord))),
4519
+ handleCheckModalEditEmpty(cellValue) ? null : (react_2.default.createElement(hoverTooltip_1.HoverTooltip, { className: "min-w-0 truncate", onlyWhenClipped: true }, (0, readModule_1.renderEachRowDataBasedOnDataType)(col.key, cellValue, props.bareSettings, true, props.disableEllipsisOnLongWord))),
4530
4520
  isCopyableModalCell &&
4531
4521
  renderCellCopyButton(col, colIndex, row, spaceRow, false, true),
4532
4522
  react_2.default.createElement(hoverTooltip_1.HoverTooltip, { text: "Edit", className: "inline-flex flex-shrink-0" },
@@ -4535,42 +4525,35 @@ var NewTable = function (rawProps) {
4535
4525
  // INFO: a multi-select shows its picks as one line of tags until it is
4536
4526
  // clicked — its editor stacks the input over the tags, which made every
4537
4527
  // row two lines tall
4538
- // INFO: under gridLines="all" a coloured multiple list never swaps to
4539
- // that editor: the cell keeps its tags and a label picker opens
4528
+ // INFO: a coloured multiple list never swaps to that editor, under
4529
+ // any gridLines: the cell keeps its tags and a label picker opens
4540
4530
  // under it (LabelPicker), like a board's labels column
4541
- var isLabelPickerColumn = gridLines === "all" && handleColumnShowsTags(col);
4531
+ var isLabelPickerColumn = handleColumnShowsTags(col);
4542
4532
  var isCellEditing = editDataRowId === row.id && editDataHeaderKey === col.key;
4543
4533
  if (isEditable &&
4544
4534
  resolvedColType === "multipleList" &&
4545
4535
  (!isCellEditing || isLabelPickerColumn) &&
4546
- !((_4 = (_3 = props.bareSettings) === null || _3 === void 0 ? void 0 : _3.bareListDescription) === null || _4 === void 0 ? void 0 : _4.call(_3, col.key, cellValue))) {
4536
+ !((_3 = (_2 = props.bareSettings) === null || _2 === void 0 ? void 0 : _2.bareListDescription) === null || _3 === void 0 ? void 0 : _3.call(_2, col.key, cellValue))) {
4547
4537
  var isPicking = isLabelPickerColumn && isCellEditing && !!labelPickerAnchor;
4548
4538
  var handleOpenCell_1 = function (target) {
4549
- if (gridLines === "all") {
4550
- handleOpenAfterLeaving(target, function () {
4551
- return handleOpenTagCell_1(target);
4552
- });
4553
- return;
4554
- }
4555
- handleOpenTagCell_1(target);
4539
+ return handleOpenAfterLeaving(target, function () { return handleOpenTagCell_1(target); });
4556
4540
  };
4557
4541
  var handleOpenTagCell_1 = function (target) {
4558
4542
  handleEditDataOnClick(row.id, col.key, rowData);
4559
4543
  if (isLabelPickerColumn)
4560
4544
  setLabelPickerAnchor(target.closest("td"));
4561
- // INFO: under gridLines="all" a plain multiple list's editor
4562
- // takes focus as it opens, so one click opens its list
4563
- else if (gridLines === "all")
4545
+ // INFO: a plain multiple list's editor takes focus as it
4546
+ // opens, so one click opens its list
4547
+ else
4564
4548
  pendingFocusRef.current = "".concat(row.id, ":").concat(col.key);
4565
4549
  };
4566
4550
  var pickedValue = resolveValue((isCellEditing ? rowData : row), col.key);
4567
- // INFO: a plain multiple list under gridLines="all" gets the
4568
- // cell's "x" on hover; a coloured one clears in its label picker
4569
- var tagPinClass = (_6 = (_5 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _5 === void 0 ? void 0 : _5.className) !== null && _6 !== void 0 ? _6 : "";
4570
- var isTagClearable = gridLines === "all" &&
4571
- !isLabelPickerColumn &&
4551
+ // INFO: a plain multiple list gets the cell's "x" on hover; a
4552
+ // coloured one clears in its label picker
4553
+ var tagPinClass = (_5 = (_4 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _4 === void 0 ? void 0 : _4.className) !== null && _5 !== void 0 ? _5 : "";
4554
+ var isTagClearable = !isLabelPickerColumn &&
4572
4555
  handleIsCellClearable(col, pickedValue, rowData);
4573
- return (react_2.default.createElement("td", { key: col.key, "data-cell-key": col.key, "data-pin-key": handleGetPinKey(col.key), className: "group/copy ".concat(tagPinClass.includes("sticky") ? "" : "relative", " ").concat(isTagClearable ? "group/clear" : "", " ").concat(editCellPadding, " ").concat(handleCellMinWidth(col.type), " ").concat(handleReadCellWidthClass(col), " text-sm ").concat(cellFontColor, " ").concat(tagPinClass, " ").concat(isPicking ? "!shadow-[inset_0_0_0_2px_#9ca3af]" : ""), style: (_7 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _7 === void 0 ? void 0 : _7.style },
4556
+ return (react_2.default.createElement("td", { key: col.key, "data-cell-key": col.key, "data-pin-key": handleGetPinKey(col.key), className: "group/copy ".concat(tagPinClass.includes("sticky") ? "" : "relative", " ").concat(isTagClearable ? "group/clear" : "", " ").concat(editCellPadding, " ").concat(handleCellMinWidth(col.type), " ").concat(handleReadCellWidthClass(col), " text-sm ").concat(cellFontColor, " ").concat(tagPinClass, " ").concat(isPicking ? "!shadow-[inset_0_0_0_2px_#9ca3af]" : ""), style: (_6 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _6 === void 0 ? void 0 : _6.style },
4574
4557
  react_2.default.createElement("div", { "data-testid": "table-tag-line-".concat(col.key), role: "button", "aria-haspopup": isLabelPickerColumn ? "dialog" : undefined, "aria-expanded": isLabelPickerColumn ? isPicking : undefined, tabIndex: 0, "aria-label": "Edit ".concat(col.title), className: "flex h-[34px] cursor-pointer items-center gap-1 overflow-hidden whitespace-nowrap ".concat(handleIsReadCellFixed(col) ? "w-0 min-w-full" : ""), onClick: function (e) {
4575
4558
  e.stopPropagation();
4576
4559
  handleOpenCell_1(e.currentTarget);
@@ -4583,11 +4566,11 @@ var NewTable = function (rawProps) {
4583
4566
  } }, renderTagLine(col, isLabelPickerColumn ? pickedValue : cellValue)),
4584
4567
  isTagClearable &&
4585
4568
  renderClearCellButton(col, row.id, rowData, true),
4586
- !(hasRowActions && col.key === ((_8 = flatColumns[0]) === null || _8 === void 0 ? void 0 : _8.key)) &&
4569
+ !(hasRowActions && col.key === ((_7 = flatColumns[0]) === null || _7 === void 0 ? void 0 : _7.key)) &&
4587
4570
  handleIsCellMissingRequired(col, pickedValue, rowData) &&
4588
4571
  renderMissingRequiredMark(col),
4589
4572
  renderCellCopyButton(col, colIndex, row, spaceRow, isTagClearable),
4590
- isPicking && labelPickerAnchor && (react_2.default.createElement(labelPicker_1.LabelPicker, { anchor: labelPickerAnchor, darkMode: props.darkMode, required: (0, updateModule_1.handleIsFieldRequired)(col, rowData), allowNewValue: !!col.listNewValue, options: ((_9 = col.listSelection) !== null && _9 !== void 0 ? _9 : []).map(function (key) { return ({
4573
+ isPicking && labelPickerAnchor && (react_2.default.createElement(labelPicker_1.LabelPicker, { anchor: labelPickerAnchor, darkMode: props.darkMode, required: (0, updateModule_1.handleIsFieldRequired)(col, rowData), allowNewValue: !!col.listNewValue, options: ((_8 = col.listSelection) !== null && _8 !== void 0 ? _8 : []).map(function (key) { return ({
4591
4574
  key: String(key),
4592
4575
  color: handleGetListColour(col, key),
4593
4576
  }); }), value: (Array.isArray(pickedValue)
@@ -4613,47 +4596,40 @@ var NewTable = function (rawProps) {
4613
4596
  handleEditDataOnBlur(col.key, editDataValueRef.current);
4614
4597
  } }))));
4615
4598
  }
4616
- // INFO: coloured list cells are exempt from the hover swap — read and
4617
- // edit are the same filled pill, so there is nothing to swap to
4599
+ // INFO: a coloured list cell is drawn by its editor at once — read
4600
+ // and edit are the same filled cell, so there is nothing to open
4618
4601
  var bareOverride = isEditable
4619
- ? (_11 = (_10 = props.bareSettings) === null || _10 === void 0 ? void 0 : _10.bareListDescription) === null || _11 === void 0 ? void 0 : _11.call(_10, col.key, cellValue)
4602
+ ? (_10 = (_9 = props.bareSettings) === null || _9 === void 0 ? void 0 : _9.bareListDescription) === null || _10 === void 0 ? void 0 : _10.call(_9, col.key, cellValue)
4620
4603
  : undefined;
4621
4604
  if (isEditable && !bareOverride && handleColumnShowsTags(col))
4622
4605
  return renderEditDataInputs(colIndex, col, rowData, row.id, rowBgClass, isRowHoverable);
4623
- // INFO: under gridLines="all" a text, number, email, text-area,
4624
- // phone, date or plain dropdown cell is not swapped on hover — it
4625
- // keeps the value as it reads (a date its format and warning
4626
- // colour) until a click opens its editor, as a sheet or board
4627
- // cell does
4606
+ // INFO: a text, number, email, text-area, phone, date or plain
4607
+ // dropdown cell is not swapped on hover — it keeps the value as it
4608
+ // reads (a date its format and warning colour) until a click opens
4609
+ // its editor, as a sheet or board cell does
4628
4610
  var isClickToEditCell = isEditable &&
4629
4611
  !bareOverride &&
4630
- gridLines === "all" &&
4631
4612
  FILL_INPUT_TYPES.includes(resolvedColType);
4632
- var readPinClass = (_13 = (_12 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _12 === void 0 ? void 0 : _12.className) !== null && _13 !== void 0 ? _13 : "";
4613
+ var readPinClass = (_12 = (_11 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _11 === void 0 ? void 0 : _11.className) !== null && _12 !== void 0 ? _12 : "";
4633
4614
  var isReadClearable = isClickToEditCell &&
4634
4615
  !handleColumnShowsTags(col) &&
4635
4616
  // INFO: the title's right edge holds the row's own actions
4636
- !(hasRowActions && col.key === ((_14 = flatColumns[0]) === null || _14 === void 0 ? void 0 : _14.key)) &&
4617
+ !(hasRowActions && col.key === ((_13 = flatColumns[0]) === null || _13 === void 0 ? void 0 : _13.key)) &&
4637
4618
  handleIsCellClearable(col, rowData === null || rowData === void 0 ? void 0 : rowData[col.key], rowData);
4638
4619
  // INFO: an empty required cell's "!" — not on a custom element
4639
4620
  // cell, and not on the title cell, whose right edge holds the
4640
4621
  // row's own actions
4641
4622
  var isReadMissingRequired = !isActionColumn &&
4642
4623
  !isElementCell &&
4643
- !(hasRowActions && col.key === ((_15 = flatColumns[0]) === null || _15 === void 0 ? void 0 : _15.key)) &&
4624
+ !(hasRowActions && col.key === ((_14 = flatColumns[0]) === null || _14 === void 0 ? void 0 : _14.key)) &&
4644
4625
  handleIsCellMissingRequired(col, resolveValue(rowData, col.key), rowData);
4645
- // INFO: under gridLines="all" every editable cell's click opens
4646
- // its editor, so a locked cell opening the record was the odd one
4647
- // out. Its click stays in the cell; the record opens from the
4648
- // title's open button. The partial grid keeps the row click, since
4649
- // there the row (not the cell) is what is clicked.
4650
- var isLockedGridCell = !!((_16 = props.editable) === null || _16 === void 0 ? void 0 : _16.active) &&
4651
- gridLines === "all" &&
4652
- isColumnLocked &&
4653
- !isActionColumn;
4626
+ // INFO: every editable cell's click opens its editor, so a locked
4627
+ // cell opening the record was the odd one out. Its click stays in
4628
+ // the cell; the record opens from the title's open button.
4629
+ var isLockedGridCell = !!((_15 = props.editable) === null || _15 === void 0 ? void 0 : _15.active) && isColumnLocked && !isActionColumn;
4654
4630
  var readCell = (react_2.default.createElement("td", { key: col.key, "data-cell-key": col.key, "data-pin-key": leftPinned.includes(col.key) || rightPinned.includes(col.key)
4655
4631
  ? col.key
4656
- : undefined, className: "group/copy ".concat(readPinClass.includes("sticky") ? "" : "relative", " ").concat(isReadClearable ? "group/clear" : "", " ").concat(cellPadding, " ").concat(isEditable ? "".concat(editCellMinHeight, " align-middle ").concat(handleCellMinWidth(col.type)) : "", " ").concat(isLockedGridCell ? "cursor-default" : "", " ").concat(canToggleCheckbox ? "cursor-pointer" : "", " text-sm ").concat(colIndex === 0 && props.onClickRow ? titleFontColor : cellFontColor, " ").concat(handleReadCellWidthClass(col), " ").concat(readPinClass), style: (_17 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _17 === void 0 ? void 0 : _17.style, "data-row-link-cell": props.newTabUrl &&
4632
+ : undefined, className: "group/copy ".concat(readPinClass.includes("sticky") ? "" : "relative", " ").concat(isReadClearable ? "group/clear" : "", " ").concat(cellPadding, " ").concat(isEditable ? "".concat(editCellMinHeight, " align-middle ").concat(handleCellMinWidth(col.type)) : "", " ").concat(isLockedGridCell ? "cursor-default" : "", " ").concat(canToggleCheckbox ? "cursor-pointer" : "", " text-sm ").concat(colIndex === 0 && props.onClickRow ? titleFontColor : cellFontColor, " ").concat(handleReadCellWidthClass(col), " ").concat(readPinClass), style: (_16 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _16 === void 0 ? void 0 : _16.style, "data-row-link-cell": props.newTabUrl &&
4657
4633
  props.onClickRow &&
4658
4634
  !isLockedGridCell &&
4659
4635
  !canToggleCheckbox
@@ -4980,7 +4956,7 @@ var NewTable = function (rawProps) {
4980
4956
  status.loadingMore && react_2.default.createElement(loading_1.Loading, null)))));
4981
4957
  };
4982
4958
  var renderFloatingActionBar = function () {
4983
- var _a, _b, _c, _d, _e;
4959
+ var _a, _b, _c, _d, _e, _f;
4984
4960
  var visibleBtns = ((_a = props.multiActionFloatingBtns) !== null && _a !== void 0 ? _a : []).filter(function (btn) { return !btn.hide; });
4985
4961
  var canCopy = props.enableCopy !== false;
4986
4962
  if (visibleBtns.length === 0 && !canCopy)
@@ -4989,12 +4965,11 @@ var NewTable = function (rawProps) {
4989
4965
  if (!hasSelection)
4990
4966
  return null;
4991
4967
  var selectedCount = props.selectAll
4992
- ? "All ".concat((_d = props.selectAllText) !== null && _d !== void 0 ? _d : "")
4993
- : (_e = props.selectedIds) === null || _e === void 0 ? void 0 : _e.length;
4968
+ ? "All ".concat((_d = props.selectAllText) !== null && _d !== void 0 ? _d : "", " selected")
4969
+ : "".concat((_f = (_e = props.selectedIds) === null || _e === void 0 ? void 0 : _e.length) !== null && _f !== void 0 ? _f : 0, " Items selected");
4994
4970
  var renderSelectedCount = function () { return (react_2.default.createElement("div", { className: "shrink-0" },
4995
4971
  react_2.default.createElement("p", { className: "text-xs whitespace-nowrap sm:text-sm ".concat(cellFontColor) },
4996
4972
  selectedCount,
4997
- " Items selected",
4998
4973
  isMaxReached && (react_2.default.createElement("span", { className: "ml-1 ".concat(errorFontColor) },
4999
4974
  "(Max. ",
5000
4975
  props.maxSelectedCount,