|
2671 | 2671 | "name": "wrap", |
2672 | 2672 | "type": "Symbol", |
2673 | 2673 | "default": "`:nowrap`", |
2674 | | - "description": "Specify whether items are forced onto one line or can wrap onto multiple lines. One of `nil`, `:nowrap`, or `:wrap`." |
| 2674 | + "description": "Specify whether items are forced onto one line or can wrap onto multiple lines. One of `nil`, `:nowrap`, `:reverse`, or `:wrap`." |
2675 | 2675 | }, |
2676 | 2676 | { |
2677 | 2677 | "name": "justify", |
|
5526 | 5526 | "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/file_tree_view/file_node/default/", |
5527 | 5527 | "parameters": [] |
5528 | 5528 | }, |
| 5529 | + { |
| 5530 | + "component": "OpenProject::FilterableTreeView", |
| 5531 | + "status": "alpha", |
| 5532 | + "a11y_reviewed": false, |
| 5533 | + "short_name": "OpenProjectFilterableTreeView", |
| 5534 | + "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/filterable_tree_view.rb", |
| 5535 | + "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/filterable_tree_view/default/", |
| 5536 | + "parameters": [ |
| 5537 | + { |
| 5538 | + "name": "tree_view_arguments", |
| 5539 | + "type": "Hash", |
| 5540 | + "default": "`{}`", |
| 5541 | + "description": "Arguments that will be passed to the underlying [OpenProject::TreeView](/components/openprojecttreeview) component." |
| 5542 | + }, |
| 5543 | + { |
| 5544 | + "name": "form_arguments", |
| 5545 | + "type": "Hash", |
| 5546 | + "default": "`{}`", |
| 5547 | + "description": "Form arguments that will be passed to the underlying [OpenProject::TreeView](/components/openprojecttreeview) component. These arguments allow the selections made within a `FilterableTreeView` to be submitted to the server as part of a Rails form. Pass the `builder:` and `name:` options to this hash. `builder:` should be an instance of `ActionView::Helpers::FormBuilder`, which are created by the standard Rails `#form_with` and `#form_for` helpers. The `name:` option is the desired name of the field that will be included in the params sent to the server on form submission." |
| 5548 | + }, |
| 5549 | + { |
| 5550 | + "name": "filter_input_arguments", |
| 5551 | + "type": "Hash", |
| 5552 | + "default": "`DEFAULT_FILTER_INPUT_ARGUMENTS.dup`", |
| 5553 | + "description": "Arguments that will be passed to the [TextField](/components/alpha/textfield) component." |
| 5554 | + }, |
| 5555 | + { |
| 5556 | + "name": "filter_mode_control_arguments", |
| 5557 | + "type": "Hash", |
| 5558 | + "default": "`DEFAULT_FILTER_MODE_CONTROL_ARGUMENTS.dup`", |
| 5559 | + "description": "Arguments that will be passed to the [SegmentedControl](/components/alpha/segmentedcontrol) component." |
| 5560 | + }, |
| 5561 | + { |
| 5562 | + "name": "include_sub_items_check_box_arguments", |
| 5563 | + "type": "Hash", |
| 5564 | + "default": "`DEFAULT_INCLUDE_SUB_ITEMS_CHECK_BOX_ARGUMENTS.dup`", |
| 5565 | + "description": "Arguments that will be passed to the [CheckBox](/components/alpha/checkbox) component." |
| 5566 | + }, |
| 5567 | + { |
| 5568 | + "name": "no_results_node_arguments", |
| 5569 | + "type": "Hash", |
| 5570 | + "default": "`DEFAULT_NO_RESULTS_NODE_ARGUMENTS.dup`", |
| 5571 | + "description": "Arguments that will be passed to a [OpenProject::TreeView::LeafNode](/components/openprojecttreeviewleafnode) component that appears when no items match the filter criteria." |
| 5572 | + } |
| 5573 | + ] |
| 5574 | + }, |
| 5575 | + { |
| 5576 | + "component": "OpenProject::FilterableTreeView::SubTree", |
| 5577 | + "status": "alpha", |
| 5578 | + "a11y_reviewed": false, |
| 5579 | + "short_name": "OpenProjectFilterableTreeViewSubTree", |
| 5580 | + "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/filterable_tree_view/sub_tree.rb", |
| 5581 | + "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/filterable_tree_view/sub_tree/default/", |
| 5582 | + "parameters": [ |
| 5583 | + { |
| 5584 | + "name": "node_variant", |
| 5585 | + "type": "Symbol", |
| 5586 | + "default": "N/A", |
| 5587 | + "description": "The variant to use for this node. One of `:anchor`, `:button`, or `:div`." |
| 5588 | + }, |
| 5589 | + { |
| 5590 | + "name": "system_arguments", |
| 5591 | + "type": "Hash", |
| 5592 | + "default": "N/A", |
| 5593 | + "description": "The arguments accepted by [OpenProject::TreeView::SubTreeContainer](/components/openprojecttreeviewsubtreecontainer)." |
| 5594 | + } |
| 5595 | + ] |
| 5596 | + }, |
5529 | 5597 | { |
5530 | 5598 | "component": "OpenProject::FlexLayout", |
5531 | 5599 | "status": "open_project", |
|
6081 | 6149 | "default": "`false`", |
6082 | 6150 | "description": "The checked state of the node's checkbox. One of `false`, `mixed`, or `true`." |
6083 | 6151 | }, |
| 6152 | + { |
| 6153 | + "name": "disabled", |
| 6154 | + "type": "Boolean", |
| 6155 | + "default": "`false`", |
| 6156 | + "description": "Whether or not the node can be activated. Passing `false` here will cause the node to appear visually disabled but it is still keyboard-focusable." |
| 6157 | + }, |
| 6158 | + { |
| 6159 | + "name": "value", |
| 6160 | + "type": "String", |
| 6161 | + "default": "`nil`", |
| 6162 | + "description": "If this node is checked, this value will be sent to the server on form submission." |
| 6163 | + }, |
6084 | 6164 | { |
6085 | 6165 | "name": "content_arguments", |
6086 | 6166 | "type": "Hash", |
|
6215 | 6295 | "default": "N/A", |
6216 | 6296 | "description": "The variant to use for this node. One of `:anchor`, `:button`, or `:div`." |
6217 | 6297 | }, |
| 6298 | + { |
| 6299 | + "name": "sub_tree_component_klass", |
| 6300 | + "type": "Class", |
| 6301 | + "default": "`SubTree`", |
| 6302 | + "description": "The class to use for the sub-tree instead of the default [OpenProject::TreeView::SubTree](/components/openprojecttreeviewsubtree)" |
| 6303 | + }, |
6218 | 6304 | { |
6219 | 6305 | "name": "expanded", |
6220 | 6306 | "type": "Boolean", |
|
6224 | 6310 | { |
6225 | 6311 | "name": "select_strategy", |
6226 | 6312 | "type": "Symbol", |
6227 | | - "default": "`:descendants`", |
6228 | | - "description": "What should happen when this sub-tree node is checked. One of `:descendants` or `:self`." |
| 6313 | + "default": "`:mixed_descendants`", |
| 6314 | + "description": "What should happen when this sub-tree node is checked. One of `:descendants`, `:mixed_descendants`, or `:self`." |
6229 | 6315 | }, |
6230 | 6316 | { |
6231 | 6317 | "name": "system_arguments", |
|
0 commit comments