Skip to content

1.2.7

Latest

Choose a tag to compare

@ja-plus ja-plus released this 07 Oct 08:41
· 4 commits to master since this release

1.2.7

  • Feat (tree)
    • feat: export StkTreeCell / StkTreeIndent / StkTreeFoldIcon for reusable tree custom cells. Fold icon state comes from expandable / loading / expanded props; offset shifts the guide lines to align with a custom expand icon.
    • feat: lazy load tree children via treeConfig.lazy + treeConfig.loadMethod(row, col). Successful loads are cached; a failed load keeps the row collapsed and fires treeConfig.onLoadError. New reloadTreeNode(rowKeyOrRow). Defaults to false.
    • feat: per-level indent guide lines via treeConfig.showGuide (default false); style via --tree-guide-color / --tree-guide-width / --tree-guide-mask.
    • feat: customCell can now fully render tree / expand columns. The built-in indent + guide lines and the fold icon are handed back through the stkTreeIndent / stkFoldIcon slots, and CustomCellProps gains level / expandable / treeLoading; a self-drawn control is recognized by data-stk-fold. Indent pitch via --tree-indent-width (default 16px).
  • Bugfix (tree)
    • fix: a custom cell that rendered the built-in stkFoldIcon slot toggled the row twice per click; toggling is now driven solely by delegation.
  • Feat (a11y)
    • feat: keyboard accessibility. Keyboard scrolling works by focusing the table; the scroll container and sortable <th> get tabindex="0", Enter/Space sorts, with :focus-visible outlines.