Skip to content

Commit a6f7402

Browse files
committed
Generating static files
1 parent 5abcf60 commit a6f7402

File tree

6 files changed

+439
-7
lines changed

6 files changed

+439
-7
lines changed

static/arguments.json

Lines changed: 89 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2671,7 +2671,7 @@
26712671
"name": "wrap",
26722672
"type": "Symbol",
26732673
"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`."
26752675
},
26762676
{
26772677
"name": "justify",
@@ -5526,6 +5526,74 @@
55265526
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/file_tree_view/file_node/default/",
55275527
"parameters": []
55285528
},
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+
},
55295597
{
55305598
"component": "OpenProject::FlexLayout",
55315599
"status": "open_project",
@@ -6081,6 +6149,18 @@
60816149
"default": "`false`",
60826150
"description": "The checked state of the node's checkbox. One of `false`, `mixed`, or `true`."
60836151
},
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+
},
60846164
{
60856165
"name": "content_arguments",
60866166
"type": "Hash",
@@ -6215,6 +6295,12 @@
62156295
"default": "N/A",
62166296
"description": "The variant to use for this node. One of `:anchor`, `:button`, or `:div`."
62176297
},
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+
},
62186304
{
62196305
"name": "expanded",
62206306
"type": "Boolean",
@@ -6224,8 +6310,8 @@
62246310
{
62256311
"name": "select_strategy",
62266312
"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`."
62296315
},
62306316
{
62316317
"name": "system_arguments",

static/audited_at.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@
135135
"Primer::OpenProject::FileTreeView": "",
136136
"Primer::OpenProject::FileTreeView::DirectoryNode": "",
137137
"Primer::OpenProject::FileTreeView::FileNode": "",
138+
"Primer::OpenProject::FilterableTreeView": "",
139+
"Primer::OpenProject::FilterableTreeView::SubTree": "",
138140
"Primer::OpenProject::FlexLayout": "",
139141
"Primer::OpenProject::GridLayout": "",
140142
"Primer::OpenProject::GridLayout::Area": "",

static/constants.json

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1653,6 +1653,44 @@
16531653
"Primer::OpenProject::FileTreeView::FileNode": {
16541654
"GeneratedSlotMethods": "Primer::OpenProject::FileTreeView::FileNode::GeneratedSlotMethods"
16551655
},
1656+
"Primer::OpenProject::FilterableTreeView": {
1657+
"DEFAULT_FILTER_INPUT_ARGUMENTS": {
1658+
"name": "filter",
1659+
"label": "Filter",
1660+
"type": "search",
1661+
"leading_visual": {
1662+
"icon": "search"
1663+
},
1664+
"visually_hide_label": true,
1665+
"show_clear_button": true
1666+
},
1667+
"DEFAULT_FILTER_MODES": {
1668+
"all": {
1669+
"label": "All",
1670+
"selected": true
1671+
},
1672+
"selected": {
1673+
"label": "Selected"
1674+
}
1675+
},
1676+
"DEFAULT_FILTER_MODE_CONTROL_ARGUMENTS": {
1677+
"aria": {
1678+
"label": "Filter mode"
1679+
}
1680+
},
1681+
"DEFAULT_INCLUDE_SUB_ITEMS_CHECK_BOX_ARGUMENTS": {
1682+
"label": "Include sub-items",
1683+
"name": "include_sub_items"
1684+
},
1685+
"DEFAULT_NO_RESULTS_NODE_ARGUMENTS": {
1686+
"label": "No results"
1687+
},
1688+
"GeneratedSlotMethods": "Primer::OpenProject::FilterableTreeView::GeneratedSlotMethods",
1689+
"SubTree": "Primer::OpenProject::FilterableTreeView::SubTree"
1690+
},
1691+
"Primer::OpenProject::FilterableTreeView::SubTree": {
1692+
"GeneratedSlotMethods": "Primer::OpenProject::FilterableTreeView::SubTree::GeneratedSlotMethods"
1693+
},
16561694
"Primer::OpenProject::FlexLayout": {
16571695
"GeneratedSlotMethods": "Primer::OpenProject::FlexLayout::GeneratedSlotMethods"
16581696
},
@@ -1881,10 +1919,11 @@
18811919
"GeneratedSlotMethods": "Primer::OpenProject::TreeView::SubTreeContainer::GeneratedSlotMethods"
18821920
},
18831921
"Primer::OpenProject::TreeView::SubTreeNode": {
1884-
"DEFAULT_SELECT_STRATEGY": "descendants",
1922+
"DEFAULT_SELECT_STRATEGY": "mixed_descendants",
18851923
"GeneratedSlotMethods": "Primer::OpenProject::TreeView::SubTreeNode::GeneratedSlotMethods",
18861924
"SELECT_STRATEGIES": [
18871925
"self",
1926+
"mixed_descendants",
18881927
"descendants"
18891928
]
18901929
},

0 commit comments

Comments
 (0)