mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-21 01:51:46 +01:00
- api/non-exhaustive: #[non_exhaustive] on public enums, variants and structs, with constructors for what callers built by struct expression (KeytipControl, GroupWidths, RibbonMenuRequest, EdgeLook::sample, BalloonItem, CropScope::object, PageBandRoom, WheelSpeed, AltCodePages, GalleryFace, GradientTile). GalleryItem, RibbonOutput, LineBreakOptions, AsianTypography and GapEdge join the closed list. - props/hand-setter: setters that only store become #[prop] fields. Keytips drops its own enabled field for Common enabled, and its show becomes show_over. - contract/no-global-state: constant tables are const, not static. - contract/egui-import, memory, allocate: LayerId, TreeUpdate, Id::unique, the text scroll memory and allocate_space go through runtime::egui. - contract/overlay-flag: CanvasScrollbars declares overlay; its drag story covers Open. - Markers and exception entries only where the code is the exception (stories, trials, unit-square coordinates, the balloons id scope). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
craft-table
Spreadsheet widgets for Craft apps, from GridCraft (Excel), with LightCraft's condition builder. A UI-only family: everything is in craft_table::ui behind the ui feature.
grid:CellAt,CellRange,CellSelection,LineIndex(sizes with prefix sums),SheetGeometry(zoom, headers, frozen panes, right-to-left) and theCellGridwidget over aGridModelthe app implements, with Excel's keys.conditions:ConditionBuilder, rows of field, operator and value with nested groups.outline:OutlineBand, the group brackets and level buttons of grouped rows and columns.fields:FieldListPane, the PivotTable Fields pane.chart:ChartPrimitiveandpaint_chart, a chart drawn from a primitive list.slicer:Slicer, toggle tiles that filter a table.refpick:ReferencePicker, point mode for a formula field.stats:SelectionStatsand the status bar'sSelectionStatsReadout.error_tag:ErrorTag, the warning tag beside a cell with its fixes.filter:FilterButton, the filter arrow in a header cell.
Edits go out as events; the app applies them to its workbook.
Stories are #[story] functions in src/ui/*/stories.rs; they register in craft_ui::testing::stories() and the craft-ui-gallery viewer lists them by the type they show.