@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 CHANGED
@@ -1,3 +1,6 @@
1
+ ## 2.6.4 2022-06-21
2
+ * Custom property weight sorting not working as expected
3
+
1
4
  ## 2.6.3 2022-06-21
2
5
  * Null safety issue
3
6
 
@@ -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
- } // Within those groups, sort by label
93
+ } // For those with the same weight, sort by label
91
94
  ]
92
95
  }
93
96
  }),
@@ -42,6 +42,8 @@ var useCustomProperties = function useCustomProperties(_ref) {
42
42
  },
43
43
  sort: [{
44
44
  path: 'weight'
45
+ }, {
46
+ path: 'label'
45
47
  }],
46
48
  filters: [],
47
49
  stats: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k-int/stripes-kint-components",
3
- "version": "2.6.3",
3
+ "version": "2.6.4",
4
4
  "description": "Stripes Component library for K-Int specific applications",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -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: 'label' } // Within those groups, sort by label
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
  });
@@ -23,9 +23,8 @@ const useCustomProperties = ({
23
23
  ContextKey: 'ctx'
24
24
  },
25
25
  sort: [
26
- {
27
- path: 'weight'
28
- }
26
+ { path: 'weight' },
27
+ { path: 'label' }
29
28
  ],
30
29
  filters: [],
31
30
  stats: false,