@skygraph/react 0.4.0 → 0.5.1

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.
package/dist/table.cjs CHANGED
@@ -426,6 +426,7 @@ function Checkbox({
426
426
  onChange: (e) => onChange?.(e.target.checked)
427
427
  }
428
428
  ),
429
+ !unstyled && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "sg-checkbox-box", "aria-hidden": true }),
429
430
  children && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: unstyled ? "" : "sg-checkbox-label", children }),
430
431
  loading && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Spin, { size: "small", unstyled })
431
432
  ] });
@@ -1089,7 +1090,7 @@ function AdvancedFilterPanel({ col, t, state, actions, filterRef }) {
1089
1090
  value: draftOp,
1090
1091
  onChange: (v) => setDraftOp(v),
1091
1092
  options: ops.map((op) => ({ label: operatorLabel(op, t), value: op })),
1092
- "aria-label": "Filter operator"
1093
+ "aria-label": t.filterOperatorAriaLabel
1093
1094
  }
1094
1095
  ) }),
1095
1096
  showValueInput && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "sg-table-filter-advanced-row", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
@@ -1345,7 +1346,7 @@ function TableHeader(props) {
1345
1346
  className: ["sg-table-th-content", sCls.headerCellContent].filter(Boolean).join(" "),
1346
1347
  style: sSty.headerCellContent,
1347
1348
  children: [
1348
- cell.col.title,
1349
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "sg-table-th-title", children: cell.col.title }),
1349
1350
  isLeaf && cell.col.tooltip && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ColumnTooltip, { content: cell.col.tooltip }),
1350
1351
  isLeaf && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SortIndicator, { col: cell.col, ...sortProps })
1351
1352
  ]
@@ -1414,7 +1415,7 @@ function TableHeader(props) {
1414
1415
  className: ["sg-table-th-content", sCls.headerCellContent].filter(Boolean).join(" "),
1415
1416
  style: sSty.headerCellContent,
1416
1417
  children: [
1417
- col.title,
1418
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "sg-table-th-title", children: col.title }),
1418
1419
  col.tooltip && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ColumnTooltip, { content: col.tooltip }),
1419
1420
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SortIndicator, { col, ...sortProps })
1420
1421
  ]
@@ -1940,7 +1941,9 @@ function VirtualTableBody(props) {
1940
1941
  if (!el) return;
1941
1942
  setViewportHeight(el.clientHeight);
1942
1943
  setScrollTop(el.scrollTop);
1943
- const onScroll = () => setScrollTop(el.scrollTop);
1944
+ const onScroll = () => {
1945
+ setScrollTop(el.scrollTop);
1946
+ };
1944
1947
  el.addEventListener("scroll", onScroll, { passive: true });
1945
1948
  let ro = null;
1946
1949
  if (typeof ResizeObserver !== "undefined") {
@@ -2631,7 +2634,8 @@ var DEFAULT_LOCALE = {
2631
2634
  filterOpStartsWith: "starts with",
2632
2635
  filterOpEndsWith: "ends with",
2633
2636
  filterOpIsEmpty: "is empty",
2634
- filterOpIsNotEmpty: "is not empty"
2637
+ filterOpIsNotEmpty: "is not empty",
2638
+ filterOperatorAriaLabel: "Filter operator"
2635
2639
  };
2636
2640
  var DEFAULT_COL_WIDTH = 150;
2637
2641
  var MIN_COL_WIDTH = 50;