blixify-ui-web 1.2.236 → 1.2.237

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 (28) hide show
  1. package/lib/components/chart/barChart/index.d.ts +2 -1
  2. package/lib/components/chart/barChart/index.d.ts.map +1 -1
  3. package/lib/components/chart/barChart/index.js +34 -34
  4. package/lib/components/chart/barChart/index.js.map +1 -1
  5. package/lib/components/chat/chatAnchor/index.d.ts +2 -0
  6. package/lib/components/chat/chatAnchor/index.d.ts.map +1 -1
  7. package/lib/components/chat/chatAnchor/index.js +45 -12
  8. package/lib/components/chat/chatAnchor/index.js.map +1 -1
  9. package/lib/components/chat/chatBase/index.d.ts +1 -0
  10. package/lib/components/chat/chatBase/index.d.ts.map +1 -1
  11. package/lib/components/chat/chatBase/index.js +3 -2
  12. package/lib/components/chat/chatBase/index.js.map +1 -1
  13. package/lib/components/data/dataGraph/chartResults.d.ts +22 -0
  14. package/lib/components/data/dataGraph/chartResults.d.ts.map +1 -1
  15. package/lib/components/data/dataGraph/chartResults.js +46 -1
  16. package/lib/components/data/dataGraph/chartResults.js.map +1 -1
  17. package/lib/components/data/dataGraph/filterScope.d.ts +6 -0
  18. package/lib/components/data/dataGraph/filterScope.d.ts.map +1 -1
  19. package/lib/components/data/dataGraph/filterScope.js +71 -1
  20. package/lib/components/data/dataGraph/filterScope.js.map +1 -1
  21. package/lib/components/data/dataGraph/index.d.ts.map +1 -1
  22. package/lib/components/data/dataGraph/index.js +90 -28
  23. package/lib/components/data/dataGraph/index.js.map +1 -1
  24. package/lib/components/display/newTable/index.d.ts.map +1 -1
  25. package/lib/components/display/newTable/index.js +32 -15
  26. package/lib/components/display/newTable/index.js.map +1 -1
  27. package/lib/tail.css +1 -1
  28. package/package.json +1 -1
@@ -2058,7 +2058,9 @@ var NewTable = function (props) {
2058
2058
  var fittedLeftKeys = leftPinned.filter(function (key) { return key in fittedLeftPins; });
2059
2059
  var leftIdx = fittedLeftKeys.indexOf(colKey);
2060
2060
  var rightIdx = narrowPins ? -1 : rightPinned.indexOf(colKey);
2061
- var pinBase = "sticky z-[2] relative whitespace-normal break-words";
2061
+ // INFO: a pinned body cell stays on one line like any other; a header
2062
+ // still wraps within the pin
2063
+ var pinBase = "sticky z-[2] relative ".concat(isHeader ? "whitespace-normal break-words" : "");
2062
2064
  var afterBase = "after:absolute after:top-0 after:bottom-0 after:w-px after:pointer-events-none";
2063
2065
  var afterColor = props.darkMode
2064
2066
  ? "after:bg-gray-700"
@@ -2111,6 +2113,16 @@ var NewTable = function (props) {
2111
2113
  className: "".concat(bg, " ").concat(hoverClass, " ").concat(borderClass),
2112
2114
  };
2113
2115
  };
2116
+ // INFO: a read cell is one line whatever its width or pin, cut off with an
2117
+ // ellipsis, so a long value never makes its row taller — the column is
2118
+ // widened to read more. disableEllipsisOnLongWord only stops the value being
2119
+ // cut at a character count; the full value still sits on one line.
2120
+ var handleReadCellWidthClass = function (col) {
2121
+ return "".concat(col.width ? "".concat(col.width, " flex-shrink-0") : "", " whitespace-nowrap");
2122
+ };
2123
+ // INFO: a cell whose width is set — by the column, a drag or its pin —
2124
+ // rather than by its content
2125
+ var handleIsReadCellFixed = function (col) { var _a, _b; return !!getColumnWidth(col.key) || !!((_b = (_a = getPinProps(col.key, false)) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.width); };
2114
2126
  var renderCheckAllSelected = function () {
2115
2127
  var _a, _b;
2116
2128
  var currentPageData = [];
@@ -2180,6 +2192,13 @@ var NewTable = function (props) {
2180
2192
  });
2181
2193
  },
2182
2194
  }); };
2195
+ var renderReadCellValue = function (col, row, cellValue) {
2196
+ var _a;
2197
+ var value = (0, readModule_1.renderEachRowDataBasedOnDataType)(col.key, cellValue, props.bareSettings, true, props.disableEllipsisOnLongWord);
2198
+ if (!props.newTabUrl || !props.onClickRow)
2199
+ return value;
2200
+ 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 }, value));
2201
+ };
2183
2202
  // INFO: the first picks as tags and a +N count for the rest, all on one line;
2184
2203
  // a column with no colours shows its picks as plain text, as it does read-only
2185
2204
  var renderTagLine = function (col, value) {
@@ -2205,7 +2224,7 @@ var NewTable = function (props) {
2205
2224
  // col.width must match the read-only cell's width source so a column keeps one
2206
2225
  // width whether a row is being edited or shown read-only — without it the cell
2207
2226
  // shrinks/grows on hover and staggers the column.
2208
- className: "".concat(editCellPadding, " ").concat(handleCellMinWidth(col.type), " ").concat(col.width ? "".concat(col.width, " flex-shrink-0") : getPinProps(col.key, false) ? "" : "whitespace-nowrap", " text-sm ").concat(cellFontColor, " ").concat((_c = (_b = getPinProps(col.key, false, rowBgClass, isHoverable)) === null || _b === void 0 ? void 0 : _b.className) !== null && _c !== void 0 ? _c : ""), style: (_d = getPinProps(col.key, false, rowBgClass, isHoverable)) === null || _d === void 0 ? void 0 : _d.style }),
2227
+ className: "".concat(editCellPadding, " ").concat(handleCellMinWidth(col.type), " ").concat(col.width ? "".concat(col.width, " flex-shrink-0") : "", " ").concat(getPinProps(col.key, false) ? "whitespace-normal break-words" : col.width ? "" : "whitespace-nowrap", " text-sm ").concat(cellFontColor, " ").concat((_c = (_b = getPinProps(col.key, false, rowBgClass, isHoverable)) === null || _b === void 0 ? void 0 : _b.className) !== null && _c !== void 0 ? _c : ""), style: (_d = getPinProps(col.key, false, rowBgClass, isHoverable)) === null || _d === void 0 ? void 0 : _d.style }),
2209
2228
  react_2.default.createElement("div", {
2210
2229
  // INFO: w-0 on the control, not min-w-0 — the table is sized w-max, so
2211
2230
  // an input's browser-default ~20ch intrinsic width feeds max-content
@@ -2522,7 +2541,7 @@ var NewTable = function (props) {
2522
2541
  flatColumns.map(function (col, colIndex) {
2523
2542
  var _a, _b, _c, _d;
2524
2543
  var renderDataCell = function () {
2525
- 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;
2544
+ 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;
2526
2545
  // INFO: a coloured list cell is this table's to render, so it takes
2527
2546
  // the raw value even when a display row is supplied. The list view
2528
2547
  // builds those rows and puts a Tag in for a coloured value — an
@@ -2630,13 +2649,13 @@ var NewTable = function (props) {
2630
2649
  // INFO: share the column width source with the read-only/edit cell
2631
2650
  // variants, otherwise an "Add" placeholder and a filled value in the
2632
2651
  // same column resolve to different widths and the column looks ragged
2633
- className: "".concat(cellPadding, " text-sm ").concat(cellFontColor, " ").concat(col.width ? "".concat(col.width, " flex-shrink-0") : getPinProps(col.key, false) ? "" : "whitespace-nowrap", " ").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 },
2634
- react_2.default.createElement("div", { className: "cursor-pointer group/modaledit flex items-center gap-x-2 min-h-6", "data-testid": "table-object-edit-".concat(col.key), onClick: function (e) {
2652
+ 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 },
2653
+ 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) {
2635
2654
  var _a;
2636
2655
  e.stopPropagation();
2637
2656
  (_a = props.onObjectEdit) === null || _a === void 0 ? void 0 : _a.call(props, row.id, col.key, row);
2638
2657
  } },
2639
- handleCheckModalEditEmpty(cellValue) ? (react_2.default.createElement("span", { className: "text-gray-400 italic" }, "Add")) : ((0, readModule_1.renderEachRowDataBasedOnDataType)(col.key, cellValue, props.bareSettings, true, props.disableEllipsisOnLongWord)),
2658
+ handleCheckModalEditEmpty(cellValue) ? (react_2.default.createElement("span", { className: "text-gray-400 italic" }, "Add")) : (react_2.default.createElement("span", { className: "min-w-0 truncate" }, (0, readModule_1.renderEachRowDataBasedOnDataType)(col.key, cellValue, props.bareSettings, true, props.disableEllipsisOnLongWord))),
2640
2659
  react_2.default.createElement(outline_1.PencilIcon, { className: "w-3.5 h-3.5 text-gray-400 opacity-0 group-hover/modaledit:opacity-100 flex-shrink-0" }))));
2641
2660
  }
2642
2661
  if (isModalEdit) {
@@ -2647,12 +2666,12 @@ var NewTable = function (props) {
2647
2666
  // INFO: share the column width source with the read-only/edit cell
2648
2667
  // variants, otherwise an "Add" placeholder and a filled value in the
2649
2668
  // same column resolve to different widths and the column looks ragged
2650
- className: "".concat(cellPadding, " text-sm ").concat(cellFontColor, " ").concat(col.width ? "".concat(col.width, " flex-shrink-0") : getPinProps(col.key, false) ? "" : "whitespace-nowrap", " ").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 },
2651
- react_2.default.createElement("div", { className: "cursor-pointer group/modaledit flex items-center gap-x-2 min-h-6", "data-testid": "table-modal-edit-".concat(col.key), onClick: function (e) {
2669
+ 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 },
2670
+ 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) {
2652
2671
  e.stopPropagation();
2653
2672
  handleModalEditOnClick(row.id, col.key, row);
2654
2673
  } },
2655
- handleCheckModalEditEmpty(cellValue) ? (react_2.default.createElement("span", { className: "text-gray-400 italic" }, "Add")) : ((0, readModule_1.renderEachRowDataBasedOnDataType)(col.key, cellValue, props.bareSettings, true, props.disableEllipsisOnLongWord)),
2674
+ handleCheckModalEditEmpty(cellValue) ? (react_2.default.createElement("span", { className: "text-gray-400 italic" }, "Add")) : (react_2.default.createElement("span", { className: "min-w-0 truncate" }, (0, readModule_1.renderEachRowDataBasedOnDataType)(col.key, cellValue, props.bareSettings, true, props.disableEllipsisOnLongWord))),
2656
2675
  react_2.default.createElement(outline_1.PencilIcon, { className: "w-3.5 h-3.5 text-gray-400 opacity-0 group-hover/modaledit:opacity-100 flex-shrink-0" }))));
2657
2676
  }
2658
2677
  // INFO: a multi-select shows its picks as one line of tags until it is
@@ -2662,8 +2681,8 @@ var NewTable = function (props) {
2662
2681
  resolvedColType === "multipleList" &&
2663
2682
  !(editDataRowId === row.id && editDataHeaderKey === col.key) &&
2664
2683
  !((_1 = (_0 = props.bareSettings) === null || _0 === void 0 ? void 0 : _0.bareListDescription) === null || _1 === void 0 ? void 0 : _1.call(_0, col.key, cellValue)))
2665
- return (react_2.default.createElement("td", { key: col.key, "data-cell-key": col.key, className: "".concat(editCellPadding, " ").concat(handleCellMinWidth(col.type), " ").concat(col.width ? "".concat(col.width, " flex-shrink-0") : getPinProps(col.key, false) ? "" : "whitespace-nowrap", " text-sm ").concat(cellFontColor, " ").concat((_3 = (_2 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _2 === void 0 ? void 0 : _2.className) !== null && _3 !== void 0 ? _3 : ""), style: (_4 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _4 === void 0 ? void 0 : _4.style },
2666
- react_2.default.createElement("div", { "data-testid": "table-tag-line-".concat(col.key), role: "button", tabIndex: 0, "aria-label": "Edit ".concat(col.title), className: "flex h-[34px] cursor-pointer items-center gap-1 overflow-hidden whitespace-nowrap", onClick: function (e) {
2684
+ return (react_2.default.createElement("td", { key: col.key, "data-cell-key": col.key, className: "".concat(editCellPadding, " ").concat(handleCellMinWidth(col.type), " ").concat(handleReadCellWidthClass(col), " text-sm ").concat(cellFontColor, " ").concat((_3 = (_2 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _2 === void 0 ? void 0 : _2.className) !== null && _3 !== void 0 ? _3 : ""), style: (_4 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _4 === void 0 ? void 0 : _4.style },
2685
+ react_2.default.createElement("div", { "data-testid": "table-tag-line-".concat(col.key), role: "button", 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) {
2667
2686
  e.stopPropagation();
2668
2687
  handleEditDataOnClick(row.id, col.key, rowData);
2669
2688
  }, onKeyDown: function (e) {
@@ -2682,11 +2701,9 @@ var NewTable = function (props) {
2682
2701
  if (!bareOverride)
2683
2702
  return renderEditDataInputs(colIndex, col, rowData, row.id, rowBgClass, isRowHoverable);
2684
2703
  }
2685
- return (
2686
- // INFO: pinned columns use whitespace-normal so text wraps within the fixed width
2687
- react_2.default.createElement("td", __assign({ key: col.key }, (isEditable ? handleCellHoverProps(row.id, col.key) : {}), { "data-cell-key": col.key, "data-pin-key": leftPinned.includes(col.key) || rightPinned.includes(col.key)
2704
+ return (react_2.default.createElement("td", __assign({ key: col.key }, (isEditable ? handleCellHoverProps(row.id, col.key) : {}), { "data-cell-key": col.key, "data-pin-key": leftPinned.includes(col.key) || rightPinned.includes(col.key)
2688
2705
  ? col.key
2689
- : undefined, className: "".concat(cellPadding, " ").concat(isEditable ? "".concat(editCellMinHeight, " align-middle ").concat(handleCellMinWidth(col.type)) : "", " text-sm ").concat(colIndex === 0 && props.onClickRow ? titleFontColor : cellFontColor, " ").concat(col.width ? "".concat(col.width, " flex-shrink-0") : getPinProps(col.key, false) ? "" : "whitespace-nowrap", " ").concat((_8 = (_7 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _7 === void 0 ? void 0 : _7.className) !== null && _8 !== void 0 ? _8 : ""), style: (_9 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _9 === void 0 ? void 0 : _9.style, "data-row-link-cell": props.newTabUrl && props.onClickRow ? "" : undefined }), props.newTabUrl && props.onClickRow ? (react_2.default.createElement(link_1.Link, { href: props.newTabUrl + row.id + ((_10 = props.addNewTabUrl) !== null && _10 !== void 0 ? _10 : ""), className: "w-full block", linkType: props.linkType, custom: props.custom }, (0, readModule_1.renderEachRowDataBasedOnDataType)(col.key, cellValue, props.bareSettings, true, props.disableEllipsisOnLongWord))) : ((0, readModule_1.renderEachRowDataBasedOnDataType)(col.key, cellValue, props.bareSettings, true, props.disableEllipsisOnLongWord))));
2706
+ : undefined, className: "".concat(cellPadding, " ").concat(isEditable ? "".concat(editCellMinHeight, " align-middle ").concat(handleCellMinWidth(col.type)) : "", " text-sm ").concat(colIndex === 0 && props.onClickRow ? titleFontColor : cellFontColor, " ").concat(handleReadCellWidthClass(col), " ").concat((_8 = (_7 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _7 === void 0 ? void 0 : _7.className) !== null && _8 !== void 0 ? _8 : ""), style: (_9 = getPinProps(col.key, false, rowBgClass, isRowHoverable)) === null || _9 === void 0 ? void 0 : _9.style, "data-row-link-cell": props.newTabUrl && props.onClickRow ? "" : undefined }), handleIsReadCellFixed(col) ? (react_2.default.createElement("div", { className: "w-0 min-w-full truncate" }, renderReadCellValue(col, row, cellValue))) : (renderReadCellValue(col, row, cellValue))));
2690
2707
  };
2691
2708
  var cell = renderDataCell();
2692
2709
  var dragHandle = colIndex === 0 && canDragRows && dropGroup