@k-int/stripes-kint-components 2.6.3 → 2.6.4
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/CHANGELOG.md +3 -0
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +3 -0
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +4 -1
- package/es/lib/hooks/useCustomProperties.js +2 -0
- package/package.json +1 -1
- package/src/lib/CustomProperties/Filter/CustomPropertiesFilter.js +1 -0
- package/src/lib/CustomProperties/View/CustomPropertiesViewCtx.js +3 -1
- package/src/lib/hooks/useCustomProperties.js +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -82,6 +82,9 @@ var CustomPropertiesFilter = function CustomPropertiesFilter(_ref) {
|
|
|
82
82
|
{
|
|
83
83
|
path: 'retired'
|
|
84
84
|
}, // Place retired custprops at the end
|
|
85
|
+
{
|
|
86
|
+
path: 'weight'
|
|
87
|
+
}, // Within those groups, sort by weight first
|
|
85
88
|
{
|
|
86
89
|
path: 'label'
|
|
87
90
|
} // Within those groups, sort by label
|
|
@@ -85,9 +85,12 @@ var CustomPropertiesViewCtx = function CustomPropertiesViewCtx(_ref) {
|
|
|
85
85
|
path: 'primary',
|
|
86
86
|
direction: 'desc'
|
|
87
87
|
}, // Primary properties should display before optional
|
|
88
|
+
{
|
|
89
|
+
path: 'weight'
|
|
90
|
+
}, // Within those groups, sort by weight
|
|
88
91
|
{
|
|
89
92
|
path: 'label'
|
|
90
|
-
} //
|
|
93
|
+
} // For those with the same weight, sort by label
|
|
91
94
|
]
|
|
92
95
|
}
|
|
93
96
|
}),
|
package/package.json
CHANGED
|
@@ -33,6 +33,7 @@ const CustomPropertiesFilter = ({
|
|
|
33
33
|
sort: [
|
|
34
34
|
{ path: 'ctx' }, // Group by ctx
|
|
35
35
|
{ path: 'retired' }, // Place retired custprops at the end
|
|
36
|
+
{ path: 'weight' }, // Within those groups, sort by weight first
|
|
36
37
|
{ path: 'label' } // Within those groups, sort by label
|
|
37
38
|
],
|
|
38
39
|
}
|
|
@@ -50,7 +50,9 @@ const CustomPropertiesViewCtx = ({
|
|
|
50
50
|
sort: [
|
|
51
51
|
{ path: 'retired' }, // Place retired custprops at the end
|
|
52
52
|
{ path: 'primary', direction: 'desc' }, // Primary properties should display before optional
|
|
53
|
-
{ path: '
|
|
53
|
+
{ path: 'weight' }, // Within those groups, sort by weight
|
|
54
|
+
{ path: 'label' } // For those with the same weight, sort by label
|
|
55
|
+
|
|
54
56
|
]
|
|
55
57
|
}
|
|
56
58
|
});
|