blixify-ui-web 1.3.24 → 1.3.26

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 (27) hide show
  1. package/lib/components/data/dataTemplate/dataStateModel.d.ts +1 -0
  2. package/lib/components/data/dataTemplate/dataStateModel.d.ts.map +1 -1
  3. package/lib/components/data/dataTemplate/dataStateModel.js.map +1 -1
  4. package/lib/components/data/dataTemplate/index.d.ts.map +1 -1
  5. package/lib/components/data/dataTemplate/index.js +142 -105
  6. package/lib/components/data/dataTemplate/index.js.map +1 -1
  7. package/lib/components/data/dataTemplate/settingsModal.d.ts +1 -0
  8. package/lib/components/data/dataTemplate/settingsModal.d.ts.map +1 -1
  9. package/lib/components/data/dataTemplate/settingsModal.js +18 -2
  10. package/lib/components/data/dataTemplate/settingsModal.js.map +1 -1
  11. package/lib/components/data/dataTemplate/viewStatePersistence.d.ts +5 -0
  12. package/lib/components/data/dataTemplate/viewStatePersistence.d.ts.map +1 -1
  13. package/lib/components/data/dataTemplate/viewStatePersistence.js +18 -1
  14. package/lib/components/data/dataTemplate/viewStatePersistence.js.map +1 -1
  15. package/lib/components/display/newKanban/index.d.ts +4 -0
  16. package/lib/components/display/newKanban/index.d.ts.map +1 -1
  17. package/lib/components/display/newKanban/index.js +109 -5
  18. package/lib/components/display/newKanban/index.js.map +1 -1
  19. package/lib/components/display/newPagination/index.d.ts +8 -2
  20. package/lib/components/display/newPagination/index.d.ts.map +1 -1
  21. package/lib/components/display/newPagination/index.js +14 -8
  22. package/lib/components/display/newPagination/index.js.map +1 -1
  23. package/lib/components/display/newTable/index.d.ts.map +1 -1
  24. package/lib/components/display/newTable/index.js +285 -142
  25. package/lib/components/display/newTable/index.js.map +1 -1
  26. package/lib/tail.css +2 -2
  27. package/package.json +1 -1
@@ -153,6 +153,8 @@ var WIDE_EDIT_TYPES = [
153
153
  "file",
154
154
  "signature",
155
155
  ];
156
+ // INFO: the strip held to the bottom of the screen (Add bar and footer)
157
+ var BOTTOM_STRIP_TEST_ID = "table-bottom-pinned";
156
158
  // INFO: markers on pinned cells for the side their own after:/before: line
157
159
  // draws — a left pin its right edge, a right pin, the "+" and Actions their
158
160
  // left edge. gridLines="all" reads them so it never draws a second line there.
@@ -298,6 +300,11 @@ var UNIQUE_TYPES = ["string", "email", "contact", "number"];
298
300
  var UNLOCKABLE_TYPES = ["formula", "button", "lookup"];
299
301
  // INFO: no value is typed into these, so there is nothing to require
300
302
  var UNREQUIRABLE_TYPES = ["formula", "lookup"];
303
+ // INFO: nor into these, so the table marks none of them required — a button
304
+ // stores nothing and a math column is computed, whatever their schema says
305
+ var REQUIRED_MARK_SKIP_TYPES = __spreadArray(__spreadArray([], UNREQUIRABLE_TYPES, true), ["button", "math"], false);
306
+ // INFO: the tooltip on an empty required cell's "!", saying why it shows
307
+ var REQUIRED_EMPTY_TEXT = "This field is required but empty";
301
308
  // INFO: asset columns need a storage path, which the consumer fills in from its
302
309
  // own settings — nothing for the user to type
303
310
  var ASSET_TYPES = ["image", "file", "multipleImage", "multipleFile"];
@@ -678,49 +685,54 @@ var NewTable = function (rawProps) {
678
685
  flatColumns.length = 0;
679
686
  flatColumns.push.apply(flatColumns, __spreadArray(__spreadArray(__spreadArray([], leftCols, false), middleCols, false), rightCols, false));
680
687
  }
681
- var _5 = (0, react_2.useState)(props.fixedPagination ? true : false), isFixed = _5[0], setIsFixed = _5[1];
682
- // INFO: the height of whatever this table pins to the bottom of the screen —
683
- // the fixed pagination and the scroll-paged Add bar — so the sticky
684
- // scrollbar sits above them instead of over them. Looked up inside this
685
- // table only: another table on the page has its own. Both come and go and
686
- // change height (the pagination wraps on a narrow screen), so they are
687
- // watched rather than measured once. A state ref, not useRef, so watching
688
- // starts when the desktop layout mounts after the mobile one.
689
- var _6 = (0, react_2.useState)(null), desktopRoot = _6[0], setDesktopRoot = _6[1];
690
- var _7 = (0, react_2.useState)(0), bottomOffset = _7[0], setBottomOffset = _7[1];
688
+ // INFO: the height of the strip this table pins to the bottom of the screen
689
+ // — the scroll-paged Add bar and the footer, or the footer alone under
690
+ // fixedPagination — so the sticky scrollbar sits above it instead of over
691
+ // it. Looked up inside this table only: another table on the page has its
692
+ // own. The strip comes and goes and changes height (the Add bar leaves while
693
+ // a row is added, the footer wraps on a narrow screen), so it is watched
694
+ // rather than measured once. A state ref, not useRef, so watching starts
695
+ // when the desktop layout mounts after the mobile one.
696
+ var _5 = (0, react_2.useState)(null), desktopRoot = _5[0], setDesktopRoot = _5[1];
697
+ var _6 = (0, react_2.useState)(0), bottomOffset = _6[0], setBottomOffset = _6[1];
691
698
  (0, react_2.useLayoutEffect)(function () {
692
699
  if (!desktopRoot)
693
700
  return;
694
- var isPaginationPinned = !!props.fixedPagination && isFixed;
695
701
  var handleMeasureBottom = function () {
696
702
  var pinned = [
697
- isPaginationPinned
698
- ? desktopRoot.querySelector(":scope > .pagination-container")
699
- : null,
700
- desktopRoot.querySelector(':scope > [data-testid="table-add-row-pinned"]'),
703
+ desktopRoot.querySelector(":scope > [data-testid=\"".concat(BOTTOM_STRIP_TEST_ID, "\"]")),
701
704
  ].filter(function (each) { return !!each; });
702
705
  setBottomOffset(pinned.reduce(function (total, each) { return total + each.offsetHeight; }, 0));
703
706
  return pinned;
704
707
  };
705
708
  var resizeObserver;
709
+ var mutationObserver;
710
+ // INFO: the strip itself comes and goes as a child of the root, and the
711
+ // Add bar comes and goes inside it — both are watched, since jsdom and
712
+ // older browsers have no ResizeObserver to catch the strip shrinking
706
713
  var handleWatchBottom = function () {
707
714
  resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.disconnect();
715
+ mutationObserver === null || mutationObserver === void 0 ? void 0 : mutationObserver.disconnect();
708
716
  var pinned = handleMeasureBottom();
717
+ mutationObserver === null || mutationObserver === void 0 ? void 0 : mutationObserver.observe(desktopRoot, { childList: true });
718
+ pinned.forEach(function (each) {
719
+ return mutationObserver === null || mutationObserver === void 0 ? void 0 : mutationObserver.observe(each, { childList: true });
720
+ });
709
721
  if (typeof ResizeObserver === "undefined")
710
722
  return;
711
723
  resizeObserver = new ResizeObserver(function () { return handleMeasureBottom(); });
712
724
  pinned.forEach(function (each) { return resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.observe(each); });
713
725
  };
726
+ mutationObserver =
727
+ typeof MutationObserver === "undefined"
728
+ ? undefined
729
+ : new MutationObserver(handleWatchBottom);
714
730
  handleWatchBottom();
715
- var mutationObserver = typeof MutationObserver === "undefined"
716
- ? undefined
717
- : new MutationObserver(handleWatchBottom);
718
- mutationObserver === null || mutationObserver === void 0 ? void 0 : mutationObserver.observe(desktopRoot, { childList: true });
719
731
  return function () {
720
732
  resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.disconnect();
721
733
  mutationObserver === null || mutationObserver === void 0 ? void 0 : mutationObserver.disconnect();
722
734
  };
723
- }, [desktopRoot, props.fixedPagination, isFixed]);
735
+ }, [desktopRoot]);
724
736
  // INFO: the actions sit over the title cell's right padding: the pencil and
725
737
  // the bubble in divided strips at the edge, the eye just left of them, then
726
738
  // 8px from the text — kept clear so they never cover the title, and added to
@@ -738,43 +750,43 @@ var NewTable = function (rawProps) {
738
750
  //=====================================================================================
739
751
  // SECTION: Advanced Settings
740
752
  //=====================================================================================
741
- var _8 = (0, react_2.useState)(""), filterModal = _8[0], setFilterModal = _8[1];
742
- var _9 = (0, react_2.useState)(""), addColumnModal = _9[0], setAddColumnModal = _9[1];
753
+ var _7 = (0, react_2.useState)(""), filterModal = _7[0], setFilterModal = _7[1];
754
+ var _8 = (0, react_2.useState)(""), addColumnModal = _8[0], setAddColumnModal = _8[1];
743
755
  // INFO: what a DataTemplate around the table lets a cell save
744
756
  var columnTypeActions = (0, react_2.useContext)(context_1.ColumnTypeContext);
745
- var _10 = (0, react_2.useState)(""), newColumnName = _10[0], setNewColumnName = _10[1];
746
- var _11 = (0, react_2.useState)("string"), newColumnType = _11[0], setNewColumnType = _11[1];
747
- var _12 = (0, react_2.useState)(""), newColumnRefSpace = _12[0], setNewColumnRefSpace = _12[1];
748
- var _13 = (0, react_2.useState)(""), newColumnRefLabel = _13[0], setNewColumnRefLabel = _13[1];
749
- var _14 = (0, react_2.useState)(""), newColumnLookupReference = _14[0], setNewColumnLookupReference = _14[1];
750
- var _15 = (0, react_2.useState)(""), newColumnLookupField = _15[0], setNewColumnLookupField = _15[1];
751
- var _16 = (0, react_2.useState)([]), newColumnOptions = _16[0], setNewColumnOptions = _16[1];
757
+ var _9 = (0, react_2.useState)(""), newColumnName = _9[0], setNewColumnName = _9[1];
758
+ var _10 = (0, react_2.useState)("string"), newColumnType = _10[0], setNewColumnType = _10[1];
759
+ var _11 = (0, react_2.useState)(""), newColumnRefSpace = _11[0], setNewColumnRefSpace = _11[1];
760
+ var _12 = (0, react_2.useState)(""), newColumnRefLabel = _12[0], setNewColumnRefLabel = _12[1];
761
+ var _13 = (0, react_2.useState)(""), newColumnLookupReference = _13[0], setNewColumnLookupReference = _13[1];
762
+ var _14 = (0, react_2.useState)(""), newColumnLookupField = _14[0], setNewColumnLookupField = _14[1];
763
+ var _15 = (0, react_2.useState)([]), newColumnOptions = _15[0], setNewColumnOptions = _15[1];
752
764
  // INFO: the option row whose colour palette is open
753
- var _17 = (0, react_2.useState)(null), optionColourKey = _17[0], setOptionColourKey = _17[1];
754
- var _18 = (0, react_2.useState)(false), newColumnRequired = _18[0], setNewColumnRequired = _18[1];
755
- var _19 = (0, react_2.useState)(false), newColumnUnique = _19[0], setNewColumnUnique = _19[1];
756
- var _20 = (0, react_2.useState)(false), newColumnReadOnly = _20[0], setNewColumnReadOnly = _20[1];
757
- var _21 = (0, react_2.useState)(""), newColumnRatingMax = _21[0], setNewColumnRatingMax = _21[1];
758
- var _22 = (0, react_2.useState)(""), newColumnDateFormat = _22[0], setNewColumnDateFormat = _22[1];
759
- var _23 = (0, react_2.useState)(""), newColumnButtonLabel = _23[0], setNewColumnButtonLabel = _23[1];
760
- var _24 = (0, react_2.useState)(""), newColumnButtonColour = _24[0], setNewColumnButtonColour = _24[1];
761
- var _25 = (0, react_2.useState)(""), newColumnButtonConfirm = _25[0], setNewColumnButtonConfirm = _25[1];
765
+ var _16 = (0, react_2.useState)(null), optionColourKey = _16[0], setOptionColourKey = _16[1];
766
+ var _17 = (0, react_2.useState)(false), newColumnRequired = _17[0], setNewColumnRequired = _17[1];
767
+ var _18 = (0, react_2.useState)(false), newColumnUnique = _18[0], setNewColumnUnique = _18[1];
768
+ var _19 = (0, react_2.useState)(false), newColumnReadOnly = _19[0], setNewColumnReadOnly = _19[1];
769
+ var _20 = (0, react_2.useState)(""), newColumnRatingMax = _20[0], setNewColumnRatingMax = _20[1];
770
+ var _21 = (0, react_2.useState)(""), newColumnDateFormat = _21[0], setNewColumnDateFormat = _21[1];
771
+ var _22 = (0, react_2.useState)(""), newColumnButtonLabel = _22[0], setNewColumnButtonLabel = _22[1];
772
+ var _23 = (0, react_2.useState)(""), newColumnButtonColour = _23[0], setNewColumnButtonColour = _23[1];
773
+ var _24 = (0, react_2.useState)(""), newColumnButtonConfirm = _24[0], setNewColumnButtonConfirm = _24[1];
762
774
  // INFO: the app's settings for the column (renderColumnSettings), kept apart
763
775
  // from the built-in ones because the table does not know their keys
764
- var _26 = (0, react_2.useState)({}), newColumnAppSettings = _26[0], setNewColumnAppSettings = _26[1];
765
- var _27 = (0, react_2.useState)(true), newColumnAppReady = _27[0], setNewColumnAppReady = _27[1];
766
- var _28 = (0, react_2.useState)(false), addingColumn = _28[0], setAddingColumn = _28[1];
767
- var _29 = (0, react_2.useState)(false), confirmDeleteColumn = _29[0], setConfirmDeleteColumn = _29[1];
776
+ var _25 = (0, react_2.useState)({}), newColumnAppSettings = _25[0], setNewColumnAppSettings = _25[1];
777
+ var _26 = (0, react_2.useState)(true), newColumnAppReady = _26[0], setNewColumnAppReady = _26[1];
778
+ var _27 = (0, react_2.useState)(false), addingColumn = _27[0], setAddingColumn = _27[1];
779
+ var _28 = (0, react_2.useState)(false), confirmDeleteColumn = _28[0], setConfirmDeleteColumn = _28[1];
768
780
  // INFO: the formula as shown in the builder — column names, not ids
769
- var _30 = (0, react_2.useState)(""), newColumnFormula = _30[0], setNewColumnFormula = _30[1];
781
+ var _29 = (0, react_2.useState)(""), newColumnFormula = _29[0], setNewColumnFormula = _29[1];
770
782
  var addColumnPopUpRef = (0, react_2.useRef)(null);
771
783
  // INFO: the column being changed — empty while the panel adds a new one
772
- var _31 = (0, react_2.useState)(null), editingColumn = _31[0], setEditingColumn = _31[1];
784
+ var _30 = (0, react_2.useState)(null), editingColumn = _30[0], setEditingColumn = _30[1];
773
785
  //=====================================================================================
774
786
  // SECTION: Editable & Addable cells
775
787
  //=====================================================================================
776
- var _32 = (0, react_2.useState)(""), editDataRowId = _32[0], setEditDataRowId = _32[1];
777
- var _33 = (0, react_2.useState)(""), editDataHeaderKey = _33[0], setEditDataHeaderKey = _33[1];
788
+ var _31 = (0, react_2.useState)(""), editDataRowId = _31[0], setEditDataRowId = _31[1];
789
+ var _32 = (0, react_2.useState)(""), editDataHeaderKey = _32[0], setEditDataHeaderKey = _32[1];
778
790
  // INFO: an editable table used to mount an input in every cell — it read as a
779
791
  // form, and a row click always landed on a child input. Only the hovered cell
780
792
  // becomes its input now; NewTableHoverCell keeps that hover to itself.
@@ -783,13 +795,13 @@ var NewTable = function (rawProps) {
783
795
  var pendingFocusRef = (0, react_2.useRef)("");
784
796
  // INFO: the cell a gridLines="all" multiple list is being picked in — its
785
797
  // popover hangs from this element
786
- var _34 = (0, react_2.useState)(null), labelPickerAnchor = _34[0], setLabelPickerAnchor = _34[1];
787
- var _35 = (0, react_2.useState)(false), modalEditVisible = _35[0], setModalEditVisible = _35[1];
798
+ var _33 = (0, react_2.useState)(null), labelPickerAnchor = _33[0], setLabelPickerAnchor = _33[1];
799
+ var _34 = (0, react_2.useState)(false), modalEditVisible = _34[0], setModalEditVisible = _34[1];
788
800
  // INFO: whether the modal's signature pad has been drawn on
789
- var _36 = (0, react_2.useState)(false), signatureSigning = _36[0], setSignatureSigning = _36[1];
790
- var _37 = (0, react_2.useState)([]), collapsedGroupIds = _37[0], setCollapsedGroupIds = _37[1];
801
+ var _35 = (0, react_2.useState)(false), signatureSigning = _35[0], setSignatureSigning = _35[1];
802
+ var _36 = (0, react_2.useState)([]), collapsedGroupIds = _36[0], setCollapsedGroupIds = _36[1];
791
803
  // INFO: rows shown per section when the sections do not page themselves
792
- var _38 = (0, react_2.useState)({}), groupVisibleCounts = _38[0], setGroupVisibleCounts = _38[1];
804
+ var _37 = (0, react_2.useState)({}), groupVisibleCounts = _37[0], setGroupVisibleCounts = _37[1];
793
805
  // INFO: per-group scroll pagination. One sentinel element per band, observed
794
806
  // by a single IntersectionObserver that fires props.onGroupLoadMore when a
795
807
  // band's sentinel scrolls into view. The debounce guard stops repeat fires
@@ -807,36 +819,36 @@ var NewTable = function (rawProps) {
807
819
  var lastSelectedRowRef = (0, react_2.useRef)(null);
808
820
  var dragSelectRef = (0, react_2.useRef)(null);
809
821
  var suppressNextClickRef = (0, react_2.useRef)(false);
810
- var _39 = (0, react_2.useState)(false), isDragSelecting = _39[0], setIsDragSelecting = _39[1];
811
- var _40 = (0, react_2.useState)(0), copiedCount = _40[0], setCopiedCount = _40[1];
812
- var _41 = (0, react_2.useState)({}), editDataValue = _41[0], setEditDataValue = _41[1];
813
- var _42 = (0, react_2.useState)(false), editDataIsLoading = _42[0], setEditDataIsLoading = _42[1];
822
+ var _38 = (0, react_2.useState)(false), isDragSelecting = _38[0], setIsDragSelecting = _38[1];
823
+ var _39 = (0, react_2.useState)(0), copiedCount = _39[0], setCopiedCount = _39[1];
824
+ var _40 = (0, react_2.useState)({}), editDataValue = _40[0], setEditDataValue = _40[1];
825
+ var _41 = (0, react_2.useState)(false), editDataIsLoading = _41[0], setEditDataIsLoading = _41[1];
814
826
  // INFO: true while the empty bottom row is being filled in; the row itself is
815
827
  // always there in an addable table
816
- var _43 = (0, react_2.useState)(false), addData = _43[0], setAddData = _43[1];
828
+ var _42 = (0, react_2.useState)(false), addData = _42[0], setAddData = _42[1];
817
829
  var isAddRowPinned = props.paginationType === "scroll";
818
- var _44 = (0, react_2.useState)({}), addDataValue = _44[0], setAddDataValue = _44[1];
830
+ var _43 = (0, react_2.useState)({}), addDataValue = _43[0], setAddDataValue = _43[1];
819
831
  // INFO: bumped after each saved row, so the next one starts with fresh
820
832
  // inputs and its first cell takes the focus
821
- var _45 = (0, react_2.useState)(0), addRowKey = _45[0], setAddRowKey = _45[1];
833
+ var _44 = (0, react_2.useState)(0), addRowKey = _44[0], setAddRowKey = _44[1];
822
834
  // INFO: the add row's coloured multiple list being picked under
823
835
  // gridLines="all" — its label picker hangs from this cell
824
836
  // INFO: the new row's required tag columns left empty on a save — their
825
837
  // cells are ringed red until a label is picked
826
- var _46 = (0, react_2.useState)([]), addTagErrors = _46[0], setAddTagErrors = _46[1];
827
- var _47 = (0, react_2.useState)(null), addLabelPicker = _47[0], setAddLabelPicker = _47[1];
838
+ var _45 = (0, react_2.useState)([]), addTagErrors = _45[0], setAddTagErrors = _45[1];
839
+ var _46 = (0, react_2.useState)(null), addLabelPicker = _46[0], setAddLabelPicker = _46[1];
828
840
  // INFO: the group whose own add row is being filled in; "" = the bottom row
829
- var _48 = (0, react_2.useState)(""), addGroupId = _48[0], setAddGroupId = _48[1];
841
+ var _47 = (0, react_2.useState)(""), addGroupId = _47[0], setAddGroupId = _47[1];
830
842
  // INFO: the row armed by a press on its handle, so only the handle — never
831
843
  // a click or a text selection in a cell — starts a drag
832
- var _49 = (0, react_2.useState)(""), dragArmedRowId = _49[0], setDragArmedRowId = _49[1];
833
- var _50 = (0, react_2.useState)(""), draggingRowId = _50[0], setDraggingRowId = _50[1];
834
- var _51 = (0, react_2.useState)(""), dropGroupId = _51[0], setDropGroupId = _51[1];
835
- var _52 = (0, react_2.useState)({}), referencesOptions = _52[0], setReferencesOptions = _52[1];
844
+ var _48 = (0, react_2.useState)(""), dragArmedRowId = _48[0], setDragArmedRowId = _48[1];
845
+ var _49 = (0, react_2.useState)(""), draggingRowId = _49[0], setDraggingRowId = _49[1];
846
+ var _50 = (0, react_2.useState)(""), dropGroupId = _50[0], setDropGroupId = _50[1];
847
+ var _51 = (0, react_2.useState)({}), referencesOptions = _51[0], setReferencesOptions = _51[1];
836
848
  // INFO: seeded options sit under the local map so a cell's own search
837
849
  // results still win per key
838
850
  var mergedReferencesOptions = __assign(__assign({}, ((_h = props.referencesOptions) !== null && _h !== void 0 ? _h : {})), referencesOptions);
839
- var _53 = (0, react_2.useState)({}), referencesDetails = _53[0], setReferencesDetails = _53[1];
851
+ var _52 = (0, react_2.useState)({}), referencesDetails = _52[0], setReferencesDetails = _52[1];
840
852
  // INFO: per column, the records a search found and the records the parent
841
853
  // passes in, matched by id — a search copies the parent's records into the
842
854
  // local map, so the parent's copy wins and a reload of the list reaches the
@@ -846,13 +858,13 @@ var NewTable = function (rawProps) {
846
858
  var mergedReferencesDetails = (0, react_2.useMemo)(function () {
847
859
  return handleMergeReferencesDetails(referencesDetails, props.referencesDetails);
848
860
  }, [referencesDetails, props.referencesDetails]);
849
- var _54 = (0, react_2.useState)(false), referenceLoading = _54[0], setReferenceLoading = _54[1];
861
+ var _53 = (0, react_2.useState)(false), referenceLoading = _53[0], setReferenceLoading = _53[1];
850
862
  // INFO: measured pixel widths for pinned columns without an explicit width.
851
- var _55 = (0, react_2.useState)({}), measuredPinWidths = _55[0], setMeasuredPinWidths = _55[1];
863
+ var _54 = (0, react_2.useState)({}), measuredPinWidths = _54[0], setMeasuredPinWidths = _54[1];
852
864
  // INFO: the scrolling view's width, which caps how much the left pins take
853
- var _56 = (0, react_2.useState)(0), pinViewWidth = _56[0], setPinViewWidth = _56[1];
865
+ var _55 = (0, react_2.useState)(0), pinViewWidth = _55[0], setPinViewWidth = _55[1];
854
866
  // INFO: per large group, the rows [start, end) drawn; the rest are spacers
855
- var _57 = (0, react_2.useState)({}), virtualRanges = _57[0], setVirtualRanges = _57[1];
867
+ var _56 = (0, react_2.useState)({}), virtualRanges = _56[0], setVirtualRanges = _56[1];
856
868
  // INFO: each drawn row's measured height, kept so a spacer is as tall as the
857
869
  // rows it stands in for
858
870
  var rowHeightsRef = (0, react_2.useRef)(new Map());
@@ -864,7 +876,7 @@ var NewTable = function (rawProps) {
864
876
  // its left edge as an offset from the first of them, and its width. Set only
865
877
  // when the drawn columns no longer cover it, so scrolling inside them draws
866
878
  // nothing
867
- var _58 = (0, react_2.useState)(null), columnView = _58[0], setColumnView = _58[1];
879
+ var _57 = (0, react_2.useState)(null), columnView = _57[0], setColumnView = _57[1];
868
880
  // INFO: each drawn unpinned column's measured width, so a spacer is as wide
869
881
  // as the columns it stands in for
870
882
  var columnWidthsMeasuredRef = (0, react_2.useRef)({});
@@ -1224,26 +1236,6 @@ var NewTable = function (rawProps) {
1224
1236
  editDataHeaderKeyRef.current = "";
1225
1237
  setEditDataHeaderKey("");
1226
1238
  }, [props.selectedIds, props.selectAll]);
1227
- (0, react_2.useEffect)(function () {
1228
- if (!props.fixedPagination)
1229
- return;
1230
- var handleScroll = function () {
1231
- var paginationEl = document.querySelector(".pagination-container");
1232
- var paginationPosition = paginationEl === null || paginationEl === void 0 ? void 0 : paginationEl.getBoundingClientRect().top;
1233
- if (paginationPosition) {
1234
- // INFO: when scrollY is less than the pagination's natural position,
1235
- // keep it fixed at the bottom of the viewport.
1236
- if (window.scrollY < paginationPosition) {
1237
- setIsFixed(true);
1238
- }
1239
- else {
1240
- setIsFixed(false);
1241
- }
1242
- }
1243
- };
1244
- window.addEventListener("scroll", handleScroll);
1245
- return function () { return window.removeEventListener("scroll", handleScroll); };
1246
- }, [props.fixedPagination]);
1247
1239
  // INFO: per-group scroll pagination observer, made once. Each band's
1248
1240
  // sentinel is observed when it mounts and dropped when it unmounts, so a
1249
1241
  // band changing never re-observes the others — re-observing makes every
@@ -1869,14 +1861,33 @@ var NewTable = function (rawProps) {
1869
1861
  }
1870
1862
  });
1871
1863
  }); };
1864
+ // INFO: a checkbox cell's tick — saved the way the cell's "x" saves an
1865
+ // emptied value, through the cell's own edit and blur
1866
+ var handleToggleCheckboxCell = function (rowId, col, rowData, checked) { return __awaiter(void 0, void 0, void 0, function () {
1867
+ var toggled;
1868
+ var _a;
1869
+ return __generator(this, function (_b) {
1870
+ switch (_b.label) {
1871
+ case 0:
1872
+ handleEditDataOnClick(rowId, col.key, rowData);
1873
+ toggled = __assign(__assign({}, editDataValueRef.current), (_a = {}, _a[col.key] = checked, _a));
1874
+ editDataValueRef.current = toggled;
1875
+ setEditDataValue(toggled);
1876
+ return [4 /*yield*/, handleEditDataOnBlur(col.key, toggled)];
1877
+ case 1:
1878
+ _b.sent();
1879
+ return [2 /*return*/];
1880
+ }
1881
+ });
1882
+ }); };
1872
1883
  // INFO: the width of a column being dragged, keyed by column key, until the
1873
1884
  // drag is released — then a caller with onResizeColumn keeps it, otherwise
1874
1885
  // it stays here until the table unmounts. Tailwind cannot emit a runtime
1875
1886
  // w-[Npx], so a width drives an inline style and wins over the col.width
1876
1887
  // class.
1877
- var _59 = (0, react_2.useState)({}), columnWidths = _59[0], setColumnWidths = _59[1];
1888
+ var _58 = (0, react_2.useState)({}), columnWidths = _58[0], setColumnWidths = _58[1];
1878
1889
  // INFO: caps measured for content-sized columns — see handleMeasureCaps
1879
- var _60 = (0, react_2.useState)({}), cappedWidths = _60[0], setCappedWidths = _60[1];
1890
+ var _59 = (0, react_2.useState)({}), cappedWidths = _59[0], setCappedWidths = _59[1];
1880
1891
  // INFO: width — the drag's latest width. The release reads it here rather
1881
1892
  // than from columnWidths, which holds only what the last drawn render saw: a
1882
1893
  // slow table can still be drawing the last moves when the pointer is let go
@@ -2088,14 +2099,14 @@ var NewTable = function (rawProps) {
2088
2099
  // INFO: a column sized by its content (no configured or dragged width) that
2089
2100
  // comes out wider than its cap is held at the cap, the same as a fixed
2090
2101
  // width, so its title and values are cut off with an ellipsis instead of
2091
- // stretching it. disableEllipsisOnLongWord asks for whole values, so then
2092
- // content sizes the column as before. Not under grouped headers, which draw
2093
- // without fixed widths.
2094
- var _61 = (0, react_2.useState)(0), capCheck = _61[0], setCapCheck = _61[1];
2102
+ // stretching it. disableEllipsisOnLongWord does not lift the cap: it only
2103
+ // stops a value being cut at a character count, and a capped cell still
2104
+ // holds its whole value — it shows when the column is widened and copies in
2105
+ // full. Not under grouped headers, which draw without fixed widths.
2106
+ var _60 = (0, react_2.useState)(0), capCheck = _60[0], setCapCheck = _60[1];
2095
2107
  var capsKey = [
2096
2108
  (_o = props.advSettings) === null || _o === void 0 ? void 0 : _o.maxFirstColumnWidth,
2097
2109
  (_p = props.advSettings) === null || _p === void 0 ? void 0 : _p.maxColumnWidth,
2098
- props.disableEllipsisOnLongWord,
2099
2110
  flatColumns.map(function (col) { var _a; return "".concat(col.key, ":").concat((_a = col.width) !== null && _a !== void 0 ? _a : ""); }).join(","),
2100
2111
  ].join("|");
2101
2112
  // INFO: only adds caps — a column already capped is at its widest. Run on
@@ -2107,7 +2118,7 @@ var NewTable = function (rawProps) {
2107
2118
  var handleMeasureCaps = function (freeze) {
2108
2119
  if (freeze === void 0) { freeze = false; }
2109
2120
  var table = tableRef.current;
2110
- if (!table || props.disableEllipsisOnLongWord)
2121
+ if (!table)
2111
2122
  return;
2112
2123
  var hasGroupedHeaders = columns.some(function (col) { var _a, _b; return !col.hide && ((_b = (_a = col.groupData) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 0; });
2113
2124
  if (hasGroupedHeaders)
@@ -3283,7 +3294,14 @@ var NewTable = function (rawProps) {
3283
3294
  return false;
3284
3295
  };
3285
3296
  var renderFormCell = function (data, ds, ref, cellInput) {
3286
- return (0, updateModule_1.renderDataTemplateForm)(data, [ds],
3297
+ return (0, updateModule_1.renderDataTemplateForm)(data,
3298
+ // INFO: the form's checkbox does not fit a cell (it drew only its
3299
+ // required asterisk), so a checkbox column's editor — the add row's —
3300
+ // is the Yes / No select. A saved row's cell is a checkbox of its own.
3301
+ [
3302
+ ds.type === "boolean" && ds.enableCheckbox
3303
+ ? __assign(__assign({}, ds), { enableCheckbox: false }) : ds,
3304
+ ],
3287
3305
  // INFO: empty refs array when not actively editing this row
3288
3306
  ref !== null ? [ref] : [], {
3289
3307
  handleOnChangeAddress: handleOnChangeAddress,
@@ -3521,6 +3539,55 @@ var NewTable = function (rawProps) {
3521
3539
  !col.key.includes(".") &&
3522
3540
  !handleIsEmptyCellValue(value);
3523
3541
  };
3542
+ // INFO: a column the user can edit in an editable table that every record
3543
+ // must fill — not optional in its schema. The action column, a computed or
3544
+ // button column, a read-only or disabled column and a grouped (dotted key)
3545
+ // sub-column are left out: their user cannot fill them here.
3546
+ var handleIsRequiredMarkColumn = function (col) {
3547
+ var _a, _b;
3548
+ return !!((_a = props.editable) === null || _a === void 0 ? void 0 : _a.active) &&
3549
+ !(col.key === "update" && !col.type) &&
3550
+ !REQUIRED_MARK_SKIP_TYPES.includes((_b = col.type) !== null && _b !== void 0 ? _b : "string") &&
3551
+ !(0, lookup_1.handleIsLookupDerived)(col) &&
3552
+ !col.readOnly &&
3553
+ !col.disabled &&
3554
+ !col.key.includes(".");
3555
+ };
3556
+ var handleIsColumnAlwaysRequired = function (col) {
3557
+ return handleIsRequiredMarkColumn(col) && !col.optional;
3558
+ };
3559
+ // INFO: a yes/no drawn as a checkbox (enableCheckbox)
3560
+ var handleIsCheckboxColumn = function (col) {
3561
+ return col.type === "boolean" && !!col.enableCheckbox;
3562
+ };
3563
+ // INFO: a cell that must be filled for its row (always, or by its
3564
+ // requiredWhen) and is empty. A checkbox is never empty: unticked is false,
3565
+ // which its tick saves, and one never set reads and saves as false too.
3566
+ var handleIsCellMissingRequired = function (col, value, rowData) {
3567
+ return !handleIsCheckboxColumn(col) &&
3568
+ handleIsRequiredMarkColumn(col) &&
3569
+ (0, updateModule_1.handleIsFieldRequired)(col, rowData) &&
3570
+ handleIsEmptyCellValue(value);
3571
+ };
3572
+ // INFO: a red outlined "!" (as the header's icons are outlined) at the
3573
+ // right edge of an empty required cell, where the "x" sits on an optional
3574
+ // one — a required cell never has the "x", so the place is free. Its
3575
+ // tooltip says why it shows: the field is required and this cell is empty.
3576
+ // Shown on touch screens too: it is a status, not a control. z-[1] keeps it
3577
+ // under a pinned column (z-[2]) that the cell scrolls behind.
3578
+ var renderMissingRequiredMark = function (col) { return (react_2.default.createElement(hoverTooltip_1.HoverTooltip, { text: REQUIRED_EMPTY_TEXT, className: "pointer-events-auto absolute right-1.5 top-1/2 z-[1] flex -translate-y-1/2" },
3579
+ react_2.default.createElement(outline_1.ExclamationCircleIcon, { role: "img", "aria-label": "".concat(typeof col.title === "string" ? col.title : col.key, ": ").concat(REQUIRED_EMPTY_TEXT), "data-testid": "cell-required-".concat(col.key), className: "h-4 w-4 ".concat(errorFontColor) }))); };
3580
+ // INFO: a checkbox cell, styled as the form's checkbox. Its click stays in
3581
+ // the cell — it neither opens the row nor an editor.
3582
+ var renderCheckboxCell = function (col, rowId, rowData, canToggle) {
3583
+ var value = resolveValue(rowData, col.key);
3584
+ var checked = value === true || value === "true";
3585
+ var name = typeof col.title === "string" ? col.title : col.key;
3586
+ return (react_2.default.createElement("span", { className: "flex items-center" },
3587
+ react_2.default.createElement("input", { type: "checkbox", "data-testid": "cell-checkbox-".concat(col.key), "aria-label": name, checked: checked, disabled: !canToggle, onClick: function (e) { return e.stopPropagation(); }, onChange: function (e) {
3588
+ return handleToggleCheckboxCell(rowId, col, rowData, e.target.checked);
3589
+ }, className: "h-4 w-4 rounded border-2 border-primary-500 checked:text-primary-500 focus:ring-gray-50 focus:ring-offset-0 ".concat(canToggle ? "cursor-pointer" : "cursor-default", " ").concat(props.darkMode ? "bg-gray-800 disabled:border-gray-600" : "") })));
3590
+ };
3524
3591
  // INFO: shown only to a mouse — a touch screen taps the cell to edit it and
3525
3592
  // has no hover to reveal the button by. On a cell that is read it shows while
3526
3593
  // the cell is hovered; on an open text, number or date field it stays, over
@@ -3667,7 +3734,7 @@ var NewTable = function (rawProps) {
3667
3734
  };
3668
3735
  // INFO: worked out here, after the Actions and "+" helpers it reads, and
3669
3736
  // only read by the render helpers called from the return below
3670
- var _62 = handleFitPins(), fittedLeftPins = _62.widths, narrowPins = _62.narrow;
3737
+ var _61 = handleFitPins(), fittedLeftPins = _61.widths, narrowPins = _61.narrow;
3671
3738
  var renderActionColumnHeader = function () {
3672
3739
  if (handleShowsActionColumn()) {
3673
3740
  var pin = handleGetActionCellPin(true);
@@ -3839,7 +3906,7 @@ var NewTable = function (rawProps) {
3839
3906
  var renderPinnedAddButton = function () {
3840
3907
  if (!isAddRowPinned || addData || !handleCheckCanAddRow())
3841
3908
  return null;
3842
- return (react_2.default.createElement("div", { "data-testid": "table-add-row-pinned", className: "sticky bottom-0 z-[4] border-t ".concat(borderColor, " ").concat(bgColor) },
3909
+ return (react_2.default.createElement("div", { "data-testid": "table-add-row-pinned", className: "border-t ".concat(borderColor, " ").concat(bgColor) },
3843
3910
  react_2.default.createElement("button", { type: "button", className: "flex w-full items-center gap-2 ".concat(cellPadding, " text-sm ").concat(cellFontColor, " ").concat(props.darkMode ? "hover:bg-gray-800" : "hover:bg-gray-50"), onClick: function () {
3844
3911
  var firstColumn = handleGetAddColumns().find(handleIsAddColumn);
3845
3912
  if (firstColumn)
@@ -3848,6 +3915,31 @@ var NewTable = function (rawProps) {
3848
3915
  react_2.default.createElement(solid_1.PlusIcon, { className: "h-4 w-4", "aria-hidden": "true" }),
3849
3916
  "Add")));
3850
3917
  };
3918
+ // INFO: the list-wide footer. In scroll mode it reads "Showing N of total"
3919
+ // from the server's count in size; a Firebase list counts nothing, so size
3920
+ // is the loaded rows and it falls back to "Showing N result(s)"
3921
+ var renderFooter = function () { return (react_2.default.createElement(newPagination_1.NewPagination, { paginationType: props.paginationType, pageIndex: props.pageIndex, limit: props.limit, size: props.size, cursor: props.cursor, resultCount: props.data.length, totalCount: props.paginationType === "scroll" ? props.size : undefined, customPaginationSize: props.customPaginationSize, hidePagination: props.hidePagination, darkMode: props.darkMode, darkModeBg: props.darkModeBg, handleUpdatePageIndex: props.handleUpdatePageIndex })); };
3922
+ var isFooterShown = !props.hidePagination && !!props.paginationType;
3923
+ // INFO: scroll-paged rows keep arriving, so a footer under the table is
3924
+ // almost never reached; it holds the bottom of the screen instead, and so
3925
+ // does fixedPagination's footer in any paging. Plain CSS sticky: it stays
3926
+ // while the table runs past the bottom edge and settles under the table at
3927
+ // its end.
3928
+ var isFooterPinned = isFooterShown &&
3929
+ (props.paginationType === "scroll" || !!props.fixedPagination);
3930
+ // INFO: one strip for everything held to the bottom of the screen — the
3931
+ // Add bar over the footer — so the two stack instead of overlapping. It sits
3932
+ // outside the table's horizontal scroller, which would stop it sticking.
3933
+ var renderBottomStrip = function () {
3934
+ var addButton = renderPinnedAddButton();
3935
+ if (!addButton && !isFooterPinned)
3936
+ return isFooterShown ? renderFooter() : null;
3937
+ return (react_2.default.createElement(react_2.default.Fragment, null,
3938
+ react_2.default.createElement("div", { "data-testid": BOTTOM_STRIP_TEST_ID, className: "sticky bottom-0 z-[4] ".concat(bgColor, " ").concat(isFooterPinned ? "pb-2" : "") },
3939
+ addButton,
3940
+ isFooterPinned && renderFooter()),
3941
+ !isFooterPinned && renderFooter()));
3942
+ };
3851
3943
  var renderSelectAll = function () {
3852
3944
  var _a, _b;
3853
3945
  if (!props.checkbox || props.singleSelect || ((_a = props.data) === null || _a === void 0 ? void 0 : _a.length) <= 0)
@@ -3967,7 +4059,6 @@ var NewTable = function (rawProps) {
3967
4059
  });
3968
4060
  var cellKey = __spreadArray(__spreadArray([], propParts, true), [
3969
4061
  (0, rowRendering_1.handleFingerprint)(columnTypeActions),
3970
- isFixed,
3971
4062
  editDataRowId,
3972
4063
  editDataHeaderKey,
3973
4064
  editDataIsLoading,
@@ -4271,7 +4362,7 @@ var NewTable = function (rawProps) {
4271
4362
  : "hidden group-focus-within/fillcell:block"), style: { right: titleStripsWidth } })) : null, dragHandle, renderActivityButton(row.id, true));
4272
4363
  };
4273
4364
  var renderDataCell = function () {
4274
- 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;
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;
4275
4366
  // INFO: a coloured list cell is this table's to render, so it takes
4276
4367
  // the raw value even when a display row is supplied. The list view
4277
4368
  // builds those rows and puts a Tag in for a coloured value — an
@@ -4336,8 +4427,19 @@ var NewTable = function (rawProps) {
4336
4427
  !isElementCell &&
4337
4428
  !isUneditableShape &&
4338
4429
  !(((_m = (_l = props.selectedIds) === null || _l === void 0 ? void 0 : _l.length) !== null && _m !== void 0 ? _m : 0) > 0 || props.selectAll) &&
4430
+ // INFO: a checkbox ticks in place — it opens no editor
4431
+ !handleIsCheckboxColumn(col) &&
4339
4432
  utils_1.supportedInlineEditList.includes(resolvedColType);
4340
4433
  var rowData = editDataRowId === row.id ? editDataValue : row;
4434
+ // INFO: a yes/no drawn as a checkbox (enableCheckbox) shows one in
4435
+ // its cell. An editable table ticks it in place and saves at once;
4436
+ // otherwise it is shown, disabled.
4437
+ var isCheckboxCell = !isActionColumn && handleIsCheckboxColumn(col);
4438
+ var canToggleCheckbox = isCheckboxCell &&
4439
+ !!((_o = props.editable) === null || _o === void 0 ? void 0 : _o.active) &&
4440
+ !isColumnLocked &&
4441
+ !col.readOnly &&
4442
+ !(((_q = (_p = props.selectedIds) === null || _p === void 0 ? void 0 : _p.length) !== null && _q !== void 0 ? _q : 0) > 0 || props.selectAll);
4341
4443
  // INFO: a list column with a palette paints the whole cell —
4342
4444
  // a status column then reads like a heat map instead of a
4343
4445
  // row of chips. Editable tables open the palette on click.
@@ -4348,22 +4450,22 @@ var NewTable = function (rawProps) {
4348
4450
  // INFO: an editable table renders the coloured cell as its Select in
4349
4451
  // every row (filled while closed) so the control never swaps in and
4350
4452
  // out; the plain block is for read-only tables and locked columns
4351
- if (fillColour && (!((_o = props.editable) === null || _o === void 0 ? void 0 : _o.active) || isColumnLocked)) {
4453
+ if (fillColour && (!((_r = props.editable) === null || _r === void 0 ? void 0 : _r.active) || isColumnLocked)) {
4352
4454
  // INFO: a read-only table shows the same filled Select as an
4353
4455
  // editable one, just disabled — the cell looks identical in both
4354
4456
  // modes and the row click still navigates
4355
- var readOnlyDS = __assign(__assign({}, col), { id: col.key, name: col.title, type: (_p = col.type) !== null && _p !== void 0 ? _p : "string", showTagSelections: handleColumnShowsTags(col), disabled: true });
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 });
4356
4458
  // INFO: navigate on click only for a genuinely read-only table. This
4357
4459
  // branch is ALSO entered for a locked column inside an EDITABLE
4358
4460
  // table (isColumnLocked) — there a click must leave the Select alone,
4359
4461
  // not navigate — so the overlay is gated on !editable.active.
4360
- var shouldNavigateOnClick = !((_q = props.editable) === null || _q === void 0 ? void 0 : _q.active);
4361
- var isLockedFillCell = !!((_r = props.editable) === null || _r === void 0 ? void 0 : _r.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) &&
4362
4464
  gridLines === "all" &&
4363
4465
  !isActionColumn;
4364
4466
  var cellFill = handleGetCellFill(col, rawListValue);
4365
4467
  var pinProps = getPinProps(col.key, false, rowBgClass, isRowHoverable);
4366
- 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) : ((_s = pinProps === null || pinProps === void 0 ? void 0 : pinProps.className) !== null && _s !== void 0 ? _s : ""), " ").concat((_t = cellFill === null || cellFill === void 0 ? void 0 : cellFill.className) !== null && _t !== void 0 ? _t : ""), style: __assign(__assign({}, pinProps === null || pinProps === void 0 ? void 0 : pinProps.style), cellFill === null || cellFill === void 0 ? void 0 : cellFill.style),
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),
4367
4469
  // INFO: a locked coloured cell in the full grid keeps its
4368
4470
  // click, as a locked text cell does
4369
4471
  onClick: isLockedFillCell ? function (e) { return e.stopPropagation(); } : undefined },
@@ -4390,7 +4492,7 @@ var NewTable = function (rawProps) {
4390
4492
  // INFO: share the column width source with the read-only/edit cell
4391
4493
  // variants, otherwise an "Add" placeholder and a filled value in the
4392
4494
  // same column resolve to different widths and the column looks ragged
4393
- className: "".concat(cellPadding, " text-sm ").concat(cellFontColor, " ").concat(handleReadCellWidthClass(col), " ").concat((_v = (_u = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _u === void 0 ? void 0 : _u.className) !== null && _v !== void 0 ? _v : ""), style: (_w = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _w === void 0 ? void 0 : _w.style },
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 },
4394
4496
  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) {
4395
4497
  var _a;
4396
4498
  e.stopPropagation();
@@ -4416,7 +4518,7 @@ var NewTable = function (rawProps) {
4416
4518
  // same column resolve to different widths and the column looks ragged
4417
4519
  // INFO: an address cell also carries the copy icon, shown
4418
4520
  // while the cell is hovered
4419
- className: "".concat(isCopyableModalCell ? "group/copy" : "", " ").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 },
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 },
4420
4522
  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) {
4421
4523
  e.stopPropagation();
4422
4524
  handleModalEditOnClick(row.id, col.key, row);
@@ -4441,7 +4543,7 @@ var NewTable = function (rawProps) {
4441
4543
  if (isEditable &&
4442
4544
  resolvedColType === "multipleList" &&
4443
4545
  (!isCellEditing || isLabelPickerColumn) &&
4444
- !((_1 = (_0 = props.bareSettings) === null || _0 === void 0 ? void 0 : _0.bareListDescription) === null || _1 === void 0 ? void 0 : _1.call(_0, col.key, cellValue))) {
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))) {
4445
4547
  var isPicking = isLabelPickerColumn && isCellEditing && !!labelPickerAnchor;
4446
4548
  var handleOpenCell_1 = function (target) {
4447
4549
  if (gridLines === "all") {
@@ -4464,11 +4566,11 @@ var NewTable = function (rawProps) {
4464
4566
  var pickedValue = resolveValue((isCellEditing ? rowData : row), col.key);
4465
4567
  // INFO: a plain multiple list under gridLines="all" gets the
4466
4568
  // cell's "x" on hover; a coloured one clears in its label picker
4467
- var tagPinClass = (_3 = (_2 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _2 === void 0 ? void 0 : _2.className) !== null && _3 !== void 0 ? _3 : "";
4569
+ var tagPinClass = (_6 = (_5 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _5 === void 0 ? void 0 : _5.className) !== null && _6 !== void 0 ? _6 : "";
4468
4570
  var isTagClearable = gridLines === "all" &&
4469
4571
  !isLabelPickerColumn &&
4470
4572
  handleIsCellClearable(col, pickedValue, rowData);
4471
- 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: (_4 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _4 === void 0 ? void 0 : _4.style },
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 },
4472
4574
  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) {
4473
4575
  e.stopPropagation();
4474
4576
  handleOpenCell_1(e.currentTarget);
@@ -4481,8 +4583,11 @@ var NewTable = function (rawProps) {
4481
4583
  } }, renderTagLine(col, isLabelPickerColumn ? pickedValue : cellValue)),
4482
4584
  isTagClearable &&
4483
4585
  renderClearCellButton(col, row.id, rowData, true),
4586
+ !(hasRowActions && col.key === ((_8 = flatColumns[0]) === null || _8 === void 0 ? void 0 : _8.key)) &&
4587
+ handleIsCellMissingRequired(col, pickedValue, rowData) &&
4588
+ renderMissingRequiredMark(col),
4484
4589
  renderCellCopyButton(col, colIndex, row, spaceRow, isTagClearable),
4485
- 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: ((_5 = col.listSelection) !== null && _5 !== void 0 ? _5 : []).map(function (key) { return ({
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 ({
4486
4591
  key: String(key),
4487
4592
  color: handleGetListColour(col, key),
4488
4593
  }); }), value: (Array.isArray(pickedValue)
@@ -4511,7 +4616,7 @@ var NewTable = function (rawProps) {
4511
4616
  // INFO: coloured list cells are exempt from the hover swap — read and
4512
4617
  // edit are the same filled pill, so there is nothing to swap to
4513
4618
  var bareOverride = isEditable
4514
- ? (_7 = (_6 = props.bareSettings) === null || _6 === void 0 ? void 0 : _6.bareListDescription) === null || _7 === void 0 ? void 0 : _7.call(_6, col.key, cellValue)
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)
4515
4620
  : undefined;
4516
4621
  if (isEditable && !bareOverride && handleColumnShowsTags(col))
4517
4622
  return renderEditDataInputs(colIndex, col, rowData, row.id, rowBgClass, isRowHoverable);
@@ -4524,37 +4629,60 @@ var NewTable = function (rawProps) {
4524
4629
  !bareOverride &&
4525
4630
  gridLines === "all" &&
4526
4631
  FILL_INPUT_TYPES.includes(resolvedColType);
4527
- var readPinClass = (_9 = (_8 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _8 === void 0 ? void 0 : _8.className) !== null && _9 !== void 0 ? _9 : "";
4632
+ var readPinClass = (_13 = (_12 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _12 === void 0 ? void 0 : _12.className) !== null && _13 !== void 0 ? _13 : "";
4528
4633
  var isReadClearable = isClickToEditCell &&
4529
4634
  !handleColumnShowsTags(col) &&
4530
4635
  // INFO: the title's right edge holds the row's own actions
4531
- !(hasRowActions && col.key === ((_10 = flatColumns[0]) === null || _10 === void 0 ? void 0 : _10.key)) &&
4636
+ !(hasRowActions && col.key === ((_14 = flatColumns[0]) === null || _14 === void 0 ? void 0 : _14.key)) &&
4532
4637
  handleIsCellClearable(col, rowData === null || rowData === void 0 ? void 0 : rowData[col.key], rowData);
4638
+ // INFO: an empty required cell's "!" — not on a custom element
4639
+ // cell, and not on the title cell, whose right edge holds the
4640
+ // row's own actions
4641
+ var isReadMissingRequired = !isActionColumn &&
4642
+ !isElementCell &&
4643
+ !(hasRowActions && col.key === ((_15 = flatColumns[0]) === null || _15 === void 0 ? void 0 : _15.key)) &&
4644
+ handleIsCellMissingRequired(col, resolveValue(rowData, col.key), rowData);
4533
4645
  // INFO: under gridLines="all" every editable cell's click opens
4534
4646
  // its editor, so a locked cell opening the record was the odd one
4535
4647
  // out. Its click stays in the cell; the record opens from the
4536
4648
  // title's open button. The partial grid keeps the row click, since
4537
4649
  // there the row (not the cell) is what is clicked.
4538
- var isLockedGridCell = !!((_11 = props.editable) === null || _11 === void 0 ? void 0 : _11.active) &&
4650
+ var isLockedGridCell = !!((_16 = props.editable) === null || _16 === void 0 ? void 0 : _16.active) &&
4539
4651
  gridLines === "all" &&
4540
4652
  isColumnLocked &&
4541
4653
  !isActionColumn;
4542
4654
  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)
4543
4655
  ? col.key
4544
- : 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" : "", " text-sm ").concat(colIndex === 0 && props.onClickRow ? titleFontColor : cellFontColor, " ").concat(handleReadCellWidthClass(col), " ").concat(readPinClass), style: (_12 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _12 === void 0 ? void 0 : _12.style, "data-row-link-cell": props.newTabUrl && props.onClickRow && !isLockedGridCell
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 &&
4657
+ props.onClickRow &&
4658
+ !isLockedGridCell &&
4659
+ !canToggleCheckbox
4545
4660
  ? ""
4546
4661
  : undefined, "data-cell-locked": isLockedGridCell ? "" : undefined,
4547
4662
  // INFO: bubble phase, so a button in the cell (the title's
4548
4663
  // open, comment and drag controls) runs first; those still
4549
4664
  // reach the row as they did, anything else stops here
4550
- onClick: isLockedGridCell
4665
+ onClick:
4666
+ // INFO: a click anywhere in a checkbox cell ticks it, as a
4667
+ // sheet's checkbox cell does — not only on the box itself,
4668
+ // which otherwise left the cell's edge opening the record
4669
+ canToggleCheckbox
4551
4670
  ? function (e) {
4552
4671
  var _a, _b;
4553
- if ((_b = (_a = e.target).closest) === null || _b === void 0 ? void 0 : _b.call(_a, 'button, [data-testid$="-strip"], [data-testid^="table-row-drag-handle-"]'))
4554
- return;
4555
4672
  e.stopPropagation();
4673
+ if ((_b = (_a = e.target).closest) === null || _b === void 0 ? void 0 : _b.call(_a, "input"))
4674
+ return;
4675
+ var current = resolveValue(rowData, col.key);
4676
+ handleToggleCheckboxCell(row.id, col, rowData, !(current === true || current === "true"));
4556
4677
  }
4557
- : undefined,
4678
+ : isLockedGridCell
4679
+ ? function (e) {
4680
+ var _a, _b;
4681
+ if ((_b = (_a = e.target).closest) === null || _b === void 0 ? void 0 : _b.call(_a, 'button, [data-testid$="-strip"], [data-testid^="table-row-drag-handle-"]'))
4682
+ return;
4683
+ e.stopPropagation();
4684
+ }
4685
+ : undefined,
4558
4686
  // INFO: a click opens the editor in place rather than following
4559
4687
  // the row's link
4560
4688
  onClickCapture: isClickToEditCell
@@ -4573,10 +4701,11 @@ var NewTable = function (rawProps) {
4573
4701
  });
4574
4702
  }
4575
4703
  : undefined },
4576
- handleIsReadCellFixed(col) ? (react_2.default.createElement(hoverTooltip_1.HoverTooltip, { as: "div", className: "w-0 min-w-full truncate", onlyWhenClipped: true },
4704
+ isCheckboxCell ? (renderCheckboxCell(col, row.id, rowData, canToggleCheckbox)) : handleIsReadCellFixed(col) ? (react_2.default.createElement(hoverTooltip_1.HoverTooltip, { as: "div", className: "w-0 min-w-full truncate", onlyWhenClipped: true },
4577
4705
  react_2.default.createElement("span", { "data-cell-value": "", className: "contents" }, renderReadCellValue(col, row, cellValue, isLockedGridCell, spaceRow)))) : (react_2.default.createElement("span", { "data-cell-value": "", className: "contents" }, renderReadCellValue(col, row, cellValue, isLockedGridCell, spaceRow))),
4578
4706
  isReadClearable &&
4579
4707
  renderClearCellButton(col, row.id, rowData, true),
4708
+ isReadMissingRequired && renderMissingRequiredMark(col),
4580
4709
  renderCellCopyButton(col, colIndex, row, spaceRow, !!isReadClearable)));
4581
4710
  if (!isEditable || bareOverride)
4582
4711
  return readCell;
@@ -4921,8 +5050,22 @@ var NewTable = function (rawProps) {
4921
5050
  // column. A cut title reads in full in the table's hover tooltip — only
4922
5051
  // when it is cut, and to a mouse only, as a cut cell value does. A column
4923
5052
  // sized by its content wraps its title as before.
5053
+ // INFO: a column every record must fill gets a red asterisk after its
5054
+ // title, as a form marks a required field — shown only in an editable
5055
+ // table, on a column that can be edited. A column required only when a
5056
+ // condition holds (requiredWhen) is not marked here — that depends on the
5057
+ // row, so its empty cells carry the mark instead. The asterisk sits outside
5058
+ // the cut-off part, so a cut title never hides it. The title and the
5059
+ // asterisk share one "Required" tooltip, so the whole title explains the
5060
+ // mark, not only the small asterisk. The header's icons keep their own
5061
+ // tooltips: they sit outside this wrapper.
4924
5062
  var renderHeaderTitle = function (col, fixed) {
4925
- return fixed ? (react_2.default.createElement(hoverTooltip_1.HoverTooltip, { className: "min-w-0 truncate", text: typeof col.title === "string" ? col.title : undefined, onlyWhenClipped: true, "data-testid": "table-column-title-".concat(col.key) }, col.title)) : (col.title);
5063
+ if (!handleIsColumnAlwaysRequired(col))
5064
+ return fixed ? (react_2.default.createElement(hoverTooltip_1.HoverTooltip, { className: "min-w-0 truncate", text: typeof col.title === "string" ? col.title : undefined, onlyWhenClipped: true, "data-testid": "table-column-title-".concat(col.key) }, col.title)) : (col.title);
5065
+ return (react_2.default.createElement(hoverTooltip_1.HoverTooltip, { text: "Required", className: "flex items-center ".concat(fixed ? "min-w-0" : ""), "data-testid": "table-column-title-".concat(col.key) },
5066
+ react_2.default.createElement("span", { className: fixed ? "min-w-0 truncate" : "" }, col.title),
5067
+ react_2.default.createElement("span", { "aria-hidden": "true", "data-testid": "table-column-required-".concat(col.key), className: "ml-0.5 shrink-0 ".concat(errorFontColor) }, "*"),
5068
+ react_2.default.createElement("span", { className: "sr-only" }, "required")));
4926
5069
  };
4927
5070
  var renderHeaderIcons = function (col, fixedWidth) {
4928
5071
  var _a, _b, _c, _d;
@@ -4942,7 +5085,7 @@ var NewTable = function (rawProps) {
4942
5085
  var isLastFrozen = drawnFrozenKeys[drawnFrozenKeys.length - 1] === col.key;
4943
5086
  var freezeLabel = isLastFrozen
4944
5087
  ? "Unfreeze columns"
4945
- : "Freeze up to this column";
5088
+ : "Unfreeze the columns after this one";
4946
5089
  var activeColour = props.darkMode
4947
5090
  ? "text-primary-300"
4948
5091
  : "text-primary-600";
@@ -4955,16 +5098,21 @@ var NewTable = function (rawProps) {
4955
5098
  react_2.default.createElement(outline_1.NoSymbolIcon, { "data-testid": "table-column-readonly-".concat(col.key), role: "img", "aria-label": readOnlyLabel, className: "flex-shrink-0 h-4 w-4 cursor-default ".concat(props.darkMode ? "text-gray-500" : "text-gray-400") }))) : null;
4956
5099
  // INFO: the current sort reports itself and flips on a click, as it did
4957
5100
  var SortIcon = activeSort === "desc" ? outline_1.BarsArrowDownIcon : outline_1.BarsArrowUpIcon;
4958
- var sortIcon = activeSort ? (react_2.default.createElement(SortIcon, { "data-testid": "table-column-sort-".concat(col.key), "data-sort": activeSort, role: "button", "aria-label": activeSort === "desc" ? "Sorted descending" : "Sorted ascending", title: activeSort === "desc" ? "Sorted descending" : "Sorted ascending", className: "".concat(sortClassname, " ").concat(activeColour), onClick: function (event) {
4959
- event.stopPropagation();
4960
- handleSort(col.key, activeSort === "desc" ? "asc" : "desc");
4961
- } })) : null;
5101
+ // INFO: the sort and lock icons carry the table's own tooltip, as the
5102
+ // read-only icon does, not the browser's slower plain title
5103
+ var sortLabel = activeSort === "desc" ? "Sorted descending" : "Sorted ascending";
5104
+ var sortIcon = activeSort ? (react_2.default.createElement(hoverTooltip_1.HoverTooltip, { text: sortLabel, className: "inline-flex flex-shrink-0", "data-testid": "table-column-sort-tooltip-".concat(col.key) },
5105
+ react_2.default.createElement(SortIcon, { "data-testid": "table-column-sort-".concat(col.key), "data-sort": activeSort, role: "button", "aria-label": sortLabel, className: "".concat(sortClassname, " ").concat(activeColour), onClick: function (event) {
5106
+ event.stopPropagation();
5107
+ handleSort(col.key, activeSort === "desc" ? "asc" : "desc");
5108
+ } }))) : null;
4962
5109
  // INFO: a frozen column keeps its lock in view, so the reader sees which
4963
5110
  // columns are frozen and where to undo it
4964
- var freezeIcon = isFrozen && handleCanFreezeColumn(col) ? (react_2.default.createElement(outline_1.LockClosedIcon, { "data-testid": "table-column-freeze-".concat(col.key), "data-frozen": "true", role: "button", "aria-label": freezeLabel, title: freezeLabel, className: "".concat(sortClassname, " ").concat(activeColour), onClick: function (event) {
4965
- event.stopPropagation();
4966
- handleFreezeColumn(col.key);
4967
- } })) : null;
5111
+ var freezeIcon = isFrozen && handleCanFreezeColumn(col) ? (react_2.default.createElement(hoverTooltip_1.HoverTooltip, { text: freezeLabel, className: "inline-flex flex-shrink-0", "data-testid": "table-column-freeze-tooltip-".concat(col.key) },
5112
+ react_2.default.createElement(outline_1.LockClosedIcon, { "data-testid": "table-column-freeze-".concat(col.key), "data-frozen": "true", role: "button", "aria-label": freezeLabel, className: "".concat(sortClassname, " ").concat(activeColour), onClick: function (event) {
5113
+ event.stopPropagation();
5114
+ handleFreezeColumn(col.key);
5115
+ } }))) : null;
4968
5116
  var menuItems = [];
4969
5117
  if (isSortable) {
4970
5118
  menuItems.push({
@@ -5152,9 +5300,7 @@ var NewTable = function (rawProps) {
5152
5300
  !props.loading && props.data.length === 0 && !hasPhoneGroups && (react_2.default.createElement("p", { className: "p-4 text-center text-sm ".concat(cellFontColor) }, (_y = props.emptyTitle) !== null && _y !== void 0 ? _y : "No items")),
5153
5301
  !props.loading && (props.data.length > 0 || hasPhoneGroups) && (react_2.default.createElement("table", { className: "w-full table-fixed", ref: tableRef },
5154
5302
  react_2.default.createElement("tbody", { className: "divide-y ".concat(dividerColor) }, renderDesktopRows())))),
5155
- react_2.default.createElement(newPagination_1.NewPagination, { paginationType: props.paginationType, pageIndex: props.pageIndex, limit: props.limit, size: props.size, cursor: props.cursor, resultCount: props.data.length, customPaginationSize: props.customPaginationSize, hidePagination: props.hidePagination, darkMode: props.darkMode, darkModeBg: props.darkModeBg, handleUpdatePageIndex: props.handleUpdatePageIndex, className: "".concat(props.fixedPagination
5156
- ? "pagination-container w-full sm:px-6 ".concat(borderColor, " ").concat(isFixed ? "fixed bottom-0 left-0 z-10" : "sticky top-0 left-0")
5157
- : "") }),
5303
+ isFooterPinned ? (react_2.default.createElement("div", { "data-testid": BOTTOM_STRIP_TEST_ID, className: "sticky bottom-0 z-[4] pb-2 ".concat(bgColor) }, renderFooter())) : (renderFooter()),
5158
5304
  renderFloatingActionBar(),
5159
5305
  renderAddColumnModal()));
5160
5306
  }
@@ -5250,10 +5396,7 @@ var NewTable = function (rawProps) {
5250
5396
  ? !isAddRowPinned && !addGroupId && renderAddDataRow()
5251
5397
  : !handleHasGroupAddRows() && renderEmptyAddRow()))),
5252
5398
  !props.loading && props.data.length === 0 && (react_2.default.createElement("div", { className: "p-4 text-sm ".concat(cellFontColor, " text-center sticky left-0") }, (_4 = props.emptyTitle) !== null && _4 !== void 0 ? _4 : "No items"))),
5253
- renderPinnedAddButton(),
5254
- react_2.default.createElement(newPagination_1.NewPagination, { paginationType: props.paginationType, pageIndex: props.pageIndex, limit: props.limit, size: props.size, cursor: props.cursor, resultCount: props.data.length, customPaginationSize: props.customPaginationSize, hidePagination: props.hidePagination, darkMode: props.darkMode, darkModeBg: props.darkModeBg, handleUpdatePageIndex: props.handleUpdatePageIndex, className: "".concat(props.fixedPagination
5255
- ? "pagination-container w-full ".concat(borderColor, " ").concat(isFixed ? "fixed bottom-0 left-0 z-10" : "sticky top-0 left-0")
5256
- : "") }),
5399
+ renderBottomStrip(),
5257
5400
  renderFloatingActionBar()));
5258
5401
  };
5259
5402
  exports.NewTable = NewTable;