@omnigrid/react 0.1.5 → 0.1.6

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 (2) hide show
  1. package/dist/OmniGrid.js +3 -1
  2. package/package.json +1 -1
package/dist/OmniGrid.js CHANGED
@@ -504,7 +504,9 @@ export function OmniGrid({ className, style, slotComponents, ...options }) {
504
504
  }, children: item.column.headerRenderer ? (contentToReactNode(item.column.headerRenderer(item.column), {
505
505
  registry: slotComponentsRef.current,
506
506
  context: buildRenderContext,
507
- })) : (_jsxs(_Fragment, { children: [_jsx("span", { className: "omnigrid-header-label", children: item.column.header ?? item.column.id }), _jsx("span", { className: "omnigrid-header-tools", children: item.column.sortState && (_jsx("span", { className: "omnigrid-sort-indicator", "aria-hidden": "true", children: item.column.sortState === "asc" ? "▲" : "▼" })) })] })) }, item.column.id));
507
+ })) : (_jsxs(_Fragment, { children: [_jsx("span", { className: "omnigrid-header-label", children: item.column.header ?? item.column.id }), _jsx("span", { className: "omnigrid-header-tools", children: item.column.sortState && (_jsx("span", { className: "omnigrid-sort-indicator", "aria-hidden": "true", children: contentToReactNode(item.column.sortState === "asc"
508
+ ? grid.icons.get("arrow-up")
509
+ : grid.icons.get("arrow-down"), { registry: slotComponentsRef.current, context: buildRenderContext }) })) })] })) }, item.column.id));
508
510
  });
509
511
  const renderGroupCells = (depth, columns, originX) => computeGroupSegments(viewportData.columnGroups, columns, depth, originX).map((segment, index) => (_jsx("div", { role: "columnheader", className: "omnigrid-header-cell omnigrid-header-group-cell", "aria-colspan": segment.columnCount, title: segment.group.header ?? segment.group.id, style: {
510
512
  alignItems: "center",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnigrid/react",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "React adapter and renderer for OmniGrid",
5
5
  "keywords": [
6
6
  "omnigrid",