@mixtint/primer-view-components 0.84.5 → 0.86.1
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.
- package/app/assets/javascripts/components/primer/open_project/sub_header_element.d.ts +1 -1
- package/app/assets/javascripts/primer_view_components.js +1 -1
- package/app/assets/javascripts/primer_view_components.js.map +1 -1
- package/app/assets/styles/primer_view_components.css +101 -13
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/alpha/select_panel_element.js +2 -2
- package/app/components/primer/alpha/tree_view.css +22 -6
- package/app/components/primer/alpha/tree_view.css.json +4 -1
- package/app/components/primer/open_project/filterable_tree_view.css +64 -0
- package/app/components/primer/open_project/filterable_tree_view.css.json +14 -0
- package/app/components/primer/open_project/filterable_tree_view.js +294 -5
- package/app/components/primer/open_project/sub_header.css +14 -7
- package/app/components/primer/open_project/sub_header.css.json +2 -1
- package/app/components/primer/open_project/sub_header_element.d.ts +1 -1
- package/app/components/primer/open_project/sub_header_element.js +6 -6
- package/package.json +11 -11
- package/static/arguments.json +28 -0
- package/static/audited_at.json +1 -0
- package/static/classes.json +9 -0
- package/static/constants.json +10 -1
- package/static/info_arch.json +189 -30
- package/static/previews.json +94 -29
- package/static/statuses.json +1 -0
|
@@ -23,17 +23,17 @@ let SubHeaderElement = class SubHeaderElement extends HTMLElement {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
expandFilterInput() {
|
|
26
|
-
for (const item of this.hiddenItemsOnExpandedFilter) {
|
|
27
|
-
item.classList.add('d-none');
|
|
28
|
-
}
|
|
29
26
|
for (const item of this.shownItemsOnExpandedFilter) {
|
|
30
27
|
item.classList.remove('d-none');
|
|
31
28
|
}
|
|
29
|
+
for (const item of this.filterExpandButton) {
|
|
30
|
+
item.classList.add('d-none');
|
|
31
|
+
}
|
|
32
32
|
this.classList.add('SubHeader--expandedSearch');
|
|
33
33
|
this.filterInput.focus();
|
|
34
34
|
}
|
|
35
35
|
collapseFilterInput() {
|
|
36
|
-
for (const item of this.
|
|
36
|
+
for (const item of this.filterExpandButton) {
|
|
37
37
|
item.classList.remove('d-none');
|
|
38
38
|
}
|
|
39
39
|
for (const item of this.shownItemsOnExpandedFilter) {
|
|
@@ -63,10 +63,10 @@ __decorate([
|
|
|
63
63
|
], SubHeaderElement.prototype, "filterInput", void 0);
|
|
64
64
|
__decorate([
|
|
65
65
|
targets
|
|
66
|
-
], SubHeaderElement.prototype, "
|
|
66
|
+
], SubHeaderElement.prototype, "shownItemsOnExpandedFilter", void 0);
|
|
67
67
|
__decorate([
|
|
68
68
|
targets
|
|
69
|
-
], SubHeaderElement.prototype, "
|
|
69
|
+
], SubHeaderElement.prototype, "filterExpandButton", void 0);
|
|
70
70
|
SubHeaderElement = __decorate([
|
|
71
71
|
controller
|
|
72
72
|
], SubHeaderElement);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mixtint/primer-view-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.86.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@github/remote-input-element": "^0.4.0",
|
|
58
58
|
"@github/tab-container-element": "^3.4.0",
|
|
59
59
|
"@oddbird/popover-polyfill": "^0.5.2",
|
|
60
|
-
"@primer/behaviors": "^1.10.
|
|
60
|
+
"@primer/behaviors": "^1.10.3",
|
|
61
61
|
"@primer/live-region-element": "^0.8.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
@@ -70,35 +70,35 @@
|
|
|
70
70
|
"@github/browserslist-config": "^1.0.0",
|
|
71
71
|
"@github/markdownlint-github": "^0.8.0",
|
|
72
72
|
"@github/prettier-config": "0.0.6",
|
|
73
|
-
"@playwright/test": "^1.
|
|
73
|
+
"@playwright/test": "^1.60.0",
|
|
74
74
|
"@primer/css": "22.1.1",
|
|
75
|
-
"@primer/primitives": "^11.
|
|
75
|
+
"@primer/primitives": "^11.9.0",
|
|
76
76
|
"@primer/stylelint-config": "^13.6.0",
|
|
77
77
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
78
78
|
"@rollup/plugin-typescript": "^8.5.0",
|
|
79
79
|
"axe-core": "^4.11.4",
|
|
80
80
|
"chokidar-cli": "^3.0.0",
|
|
81
81
|
"css-what": "^7.0.0",
|
|
82
|
-
"cssnano": "^7.1.
|
|
82
|
+
"cssnano": "^7.1.9",
|
|
83
83
|
"eslint": "^9.39.4",
|
|
84
84
|
"eslint-plugin-github": "^6.0.0",
|
|
85
85
|
"glob": "^11.1.0",
|
|
86
86
|
"markdownlint-cli2": "^0.22.1",
|
|
87
|
-
"mocha": "^11.7.
|
|
88
|
-
"playwright": "^1.
|
|
89
|
-
"postcss": "^8.5.
|
|
87
|
+
"mocha": "^11.7.6",
|
|
88
|
+
"playwright": "^1.60.0",
|
|
89
|
+
"postcss": "^8.5.15",
|
|
90
90
|
"postcss-cli": "^11.0.1",
|
|
91
91
|
"postcss-import": "^16.1.1",
|
|
92
92
|
"postcss-mixins": "^12.1.2",
|
|
93
|
-
"postcss-preset-env": "^11.
|
|
93
|
+
"postcss-preset-env": "^11.3.0",
|
|
94
94
|
"prettier": "^3.8.3",
|
|
95
95
|
"rollup": "^2.80.0",
|
|
96
96
|
"rollup-plugin-terser": "^7.0.2",
|
|
97
97
|
"stylelint-actions-formatters": "^16.3.1",
|
|
98
98
|
"tslib": "^2.8.1",
|
|
99
99
|
"typescript": "^5.9.3",
|
|
100
|
-
"vite": "^8.0.
|
|
101
|
-
"vite-plugin-ruby": "^5.2.
|
|
100
|
+
"vite": "^8.0.14",
|
|
101
|
+
"vite-plugin-ruby": "^5.2.2"
|
|
102
102
|
},
|
|
103
103
|
"prettier": "@github/prettier-config",
|
|
104
104
|
"browserslist": "extends @github/browserslist-config"
|
package/static/arguments.json
CHANGED
|
@@ -3757,6 +3757,22 @@
|
|
|
3757
3757
|
}
|
|
3758
3758
|
]
|
|
3759
3759
|
},
|
|
3760
|
+
{
|
|
3761
|
+
"component": "TreeView::TrailingAction",
|
|
3762
|
+
"status": "alpha",
|
|
3763
|
+
"a11y_reviewed": false,
|
|
3764
|
+
"short_name": "TreeViewTrailingAction",
|
|
3765
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/tree_view/trailing_action.rb",
|
|
3766
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/tree_view/trailing_action/default/",
|
|
3767
|
+
"parameters": [
|
|
3768
|
+
{
|
|
3769
|
+
"name": "action",
|
|
3770
|
+
"type": "ViewComponent::Base",
|
|
3771
|
+
"default": "N/A",
|
|
3772
|
+
"description": "A component or other renderable to use as the action button etc."
|
|
3773
|
+
}
|
|
3774
|
+
]
|
|
3775
|
+
},
|
|
3760
3776
|
{
|
|
3761
3777
|
"component": "TreeView::Visual",
|
|
3762
3778
|
"status": "alpha",
|
|
@@ -6151,6 +6167,12 @@
|
|
|
6151
6167
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/filterable_tree_view.rb",
|
|
6152
6168
|
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/filterable_tree_view/default/",
|
|
6153
6169
|
"parameters": [
|
|
6170
|
+
{
|
|
6171
|
+
"name": "src",
|
|
6172
|
+
"type": "String",
|
|
6173
|
+
"default": "`nil`",
|
|
6174
|
+
"description": "URL of the server endpoint that returns a filtered `<tree-view>` HTML fragment. When set, activates async (server-side) filtering mode. See \"Async loading strategy\" above."
|
|
6175
|
+
},
|
|
6154
6176
|
{
|
|
6155
6177
|
"name": "tree_view_arguments",
|
|
6156
6178
|
"type": "Hash",
|
|
@@ -6473,6 +6495,12 @@
|
|
|
6473
6495
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/sub_header.rb",
|
|
6474
6496
|
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/sub_header/default/",
|
|
6475
6497
|
"parameters": [
|
|
6498
|
+
{
|
|
6499
|
+
"name": "collapsed_search",
|
|
6500
|
+
"type": "Boolean",
|
|
6501
|
+
"default": "`false`",
|
|
6502
|
+
"description": "When true, the search bar starts collapsed as an icon button on all screen sizes. Clicking expands it."
|
|
6503
|
+
},
|
|
6476
6504
|
{
|
|
6477
6505
|
"name": "system_arguments",
|
|
6478
6506
|
"type": "Hash",
|
package/static/audited_at.json
CHANGED
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
"Primer::Alpha::TreeView::SubTree": "",
|
|
85
85
|
"Primer::Alpha::TreeView::SubTreeContainer": "",
|
|
86
86
|
"Primer::Alpha::TreeView::SubTreeNode": "",
|
|
87
|
+
"Primer::Alpha::TreeView::TrailingAction": "",
|
|
87
88
|
"Primer::Alpha::TreeView::Visual": "",
|
|
88
89
|
"Primer::Alpha::UnderlineNav": "",
|
|
89
90
|
"Primer::Alpha::UnderlinePanels": "",
|
package/static/classes.json
CHANGED
|
@@ -277,6 +277,15 @@
|
|
|
277
277
|
"DragHandle": [
|
|
278
278
|
"Primer::OpenProject::DragHandle"
|
|
279
279
|
],
|
|
280
|
+
"FilterableTreeViewLayout": [
|
|
281
|
+
"Primer::OpenProject::FilterableTreeView"
|
|
282
|
+
],
|
|
283
|
+
"FilterableTreeViewLoadingSkeleton": [
|
|
284
|
+
"Primer::OpenProject::FilterableTreeView"
|
|
285
|
+
],
|
|
286
|
+
"FilterableTreeViewTreeContainer": [
|
|
287
|
+
"Primer::OpenProject::FilterableTreeView"
|
|
288
|
+
],
|
|
280
289
|
"FormControl": [
|
|
281
290
|
"Primer::Alpha::TextField"
|
|
282
291
|
],
|
package/static/constants.json
CHANGED
|
@@ -852,6 +852,7 @@
|
|
|
852
852
|
"SubTree": "Primer::Alpha::TreeView::SubTree",
|
|
853
853
|
"SubTreeContainer": "Primer::Alpha::TreeView::SubTreeContainer",
|
|
854
854
|
"SubTreeNode": "Primer::Alpha::TreeView::SubTreeNode",
|
|
855
|
+
"TrailingAction": "Primer::Alpha::TreeView::TrailingAction",
|
|
855
856
|
"Visual": "Primer::Alpha::TreeView::Visual"
|
|
856
857
|
},
|
|
857
858
|
"Primer::Alpha::TreeView::Icon": {
|
|
@@ -918,6 +919,9 @@
|
|
|
918
919
|
"descendants"
|
|
919
920
|
]
|
|
920
921
|
},
|
|
922
|
+
"Primer::Alpha::TreeView::TrailingAction": {
|
|
923
|
+
"GeneratedSlotMethods": "Primer::Alpha::TreeView::TrailingAction::GeneratedSlotMethods"
|
|
924
|
+
},
|
|
921
925
|
"Primer::Alpha::TreeView::Visual": {
|
|
922
926
|
"GeneratedSlotMethods": "Primer::Alpha::TreeView::Visual::GeneratedSlotMethods"
|
|
923
927
|
},
|
|
@@ -1820,6 +1824,11 @@
|
|
|
1820
1824
|
"label": "No results"
|
|
1821
1825
|
},
|
|
1822
1826
|
"GeneratedSlotMethods": "Primer::OpenProject::FilterableTreeView::GeneratedSlotMethods",
|
|
1827
|
+
"SUPPORTED_SELECT_VARIANTS": [
|
|
1828
|
+
"multiple",
|
|
1829
|
+
"single",
|
|
1830
|
+
"none"
|
|
1831
|
+
],
|
|
1823
1832
|
"SubTree": "Primer::OpenProject::FilterableTreeView::SubTree"
|
|
1824
1833
|
},
|
|
1825
1834
|
"Primer::OpenProject::FilterableTreeView::SubTree": {
|
|
@@ -1978,8 +1987,8 @@
|
|
|
1978
1987
|
"none",
|
|
1979
1988
|
"flex"
|
|
1980
1989
|
],
|
|
1990
|
+
"FILTER_EXPAND_BUTTON_TARGET_SELECTOR": "sub-header.filterExpandButton",
|
|
1981
1991
|
"GeneratedSlotMethods": "Primer::OpenProject::SubHeader::GeneratedSlotMethods",
|
|
1982
|
-
"HIDDEN_FILTER_TARGET_SELECTOR": "sub-header.hiddenItemsOnExpandedFilter",
|
|
1983
1992
|
"MOBILE_ACTIONS_DISPLAY": [
|
|
1984
1993
|
"flex",
|
|
1985
1994
|
"none"
|