venice-ui 3.0.40 → 3.0.41
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.
|
@@ -92,7 +92,7 @@ const Filters = ({ theme, themeVariant = 'default', size = 'md', labels = {
|
|
|
92
92
|
.map((h) => {
|
|
93
93
|
const type = h.filterType || 'select';
|
|
94
94
|
const key = h.valueSource || h.name;
|
|
95
|
-
const values = (
|
|
95
|
+
const values = (fullElements || [])
|
|
96
96
|
.map((it) => it?.[key])
|
|
97
97
|
.filter((v) => v !== undefined && v !== null);
|
|
98
98
|
if (type === 'select' && h.scope && h.scope.length) {
|
|
@@ -136,6 +136,9 @@ const Filters = ({ theme, themeVariant = 'default', size = 'md', labels = {
|
|
|
136
136
|
collapsible: true,
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
|
+
if (type === 'select') {
|
|
140
|
+
console.log('scope', values);
|
|
141
|
+
}
|
|
139
142
|
return {
|
|
140
143
|
label: h.name,
|
|
141
144
|
name: key,
|
|
@@ -56,7 +56,7 @@ export const Filters = ({ theme, themeVariant = 'default', size = 'md', labels =
|
|
|
56
56
|
.map((h) => {
|
|
57
57
|
const type = h.filterType || 'select';
|
|
58
58
|
const key = h.valueSource || h.name;
|
|
59
|
-
const values = (
|
|
59
|
+
const values = (fullElements || [])
|
|
60
60
|
.map((it) => it?.[key])
|
|
61
61
|
.filter((v) => v !== undefined && v !== null);
|
|
62
62
|
if (type === 'select' && h.scope && h.scope.length) {
|
|
@@ -100,6 +100,9 @@ export const Filters = ({ theme, themeVariant = 'default', size = 'md', labels =
|
|
|
100
100
|
collapsible: true,
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
+
if (type === 'select') {
|
|
104
|
+
console.log('scope', values);
|
|
105
|
+
}
|
|
103
106
|
return {
|
|
104
107
|
label: h.name,
|
|
105
108
|
name: key,
|