@@ -345,7 +345,7 @@ export const ListView = React.forwardRef<ListViewHandle, ListViewProps>(({
345345 const [ showSort , setShowSort ] = React . useState ( false ) ;
346346 const [ currentSort , setCurrentSort ] = React . useState < SortItem [ ] > ( ( ) => {
347347 if ( schema . sort && schema . sort . length > 0 ) {
348- return schema . sort . map ( s => {
348+ return schema . sort . map ( ( s : any ) => {
349349 // Support legacy string format "field desc"
350350 if ( typeof s === 'string' ) {
351351 const parts = s . trim ( ) . split ( / \s + / ) ;
@@ -376,7 +376,7 @@ export const ListView = React.forwardRef<ListViewHandle, ListViewProps>(({
376376 // Tab State
377377 const [ activeTab , setActiveTab ] = React . useState < string | undefined > ( ( ) => {
378378 if ( ! schema . tabs || schema . tabs . length === 0 ) return undefined ;
379- const defaultTab = schema . tabs . find ( t => t . isDefault ) ;
379+ const defaultTab = schema . tabs . find ( ( t : any ) => t . isDefault ) ;
380380 return defaultTab ?. name ?? schema . tabs [ 0 ] ?. name ;
381381 } ) ;
382382
@@ -420,7 +420,7 @@ export const ListView = React.forwardRef<ListViewHandle, ListViewProps>(({
420420 // subscribing to dataSource mutations to avoid double refreshes.
421421 React . useEffect ( ( ) => {
422422 if ( ! dataSource ?. onMutation || ! schema . objectName || schema . refreshTrigger ) return ;
423- const unsub = dataSource . onMutation ( ( event ) => {
423+ const unsub = dataSource . onMutation ( ( event : any ) => {
424424 if ( event . resource === schema . objectName ) {
425425 setRefreshKey ( k => k + 1 ) ;
426426 }
@@ -449,7 +449,7 @@ export const ListView = React.forwardRef<ListViewHandle, ListViewProps>(({
449449 // Quick Filters State
450450 const [ activeQuickFilters , setActiveQuickFilters ] = React . useState < Set < string > > ( ( ) => {
451451 const defaults = new Set < string > ( ) ;
452- schema . quickFilters ?. forEach ( qf => {
452+ schema . quickFilters ?. forEach ( ( qf : any ) => {
453453 const normalized = normalizeQuickFilter ( qf ) ;
454454 if ( normalized . defaultActive ) defaults . add ( normalized . id ) ;
455455 } ) ;
@@ -724,7 +724,7 @@ export const ListView = React.forwardRef<ListViewHandle, ListViewProps>(({
724724 const availableViews = React . useMemo ( ( ) => {
725725 // If appearance.allowedVisualizations is set, use it as whitelist
726726 if ( schema . appearance ?. allowedVisualizations && schema . appearance . allowedVisualizations . length > 0 ) {
727- return schema . appearance . allowedVisualizations . filter ( v =>
727+ return schema . appearance . allowedVisualizations . filter ( ( v : any ) =>
728728 [ 'grid' , 'kanban' , 'gallery' , 'calendar' , 'timeline' , 'gantt' , 'map' ] . includes ( v )
729729 ) as ViewType [ ] ;
730730 }
@@ -833,12 +833,12 @@ export const ListView = React.forwardRef<ListViewHandle, ListViewProps>(({
833833
834834 // Apply field order
835835 if ( schema . fieldOrder && schema . fieldOrder . length > 0 ) {
836- const orderMap = new Map ( schema . fieldOrder . map ( ( f , i ) => [ f , i ] ) ) ;
836+ const orderMap = new Map ( schema . fieldOrder . map ( ( f : any , i : number ) => [ f , i ] ) ) ;
837837 fields = [ ...fields ] . sort ( ( a : any , b : any ) => {
838838 const nameA = typeof a === 'string' ? a : ( a ?. name || a ?. fieldName || a ?. field ) ;
839839 const nameB = typeof b === 'string' ? b : ( b ?. name || b ?. fieldName || b ?. field ) ;
840- const orderA = orderMap . get ( nameA ) ?? Infinity ;
841- const orderB = orderMap . get ( nameB ) ?? Infinity ;
840+ const orderA : number = orderMap . get ( nameA ) ?? Infinity ;
841+ const orderB : number = orderMap . get ( nameB ) ?? Infinity ;
842842 return orderA - orderB ;
843843 } ) ;
844844 }
@@ -1176,7 +1176,7 @@ export const ListView = React.forwardRef<ListViewHandle, ListViewProps>(({
11761176 ) }
11771177 </ div >
11781178 < div className = "max-h-60 overflow-y-auto space-y-1" >
1179- { allFields . map ( field => (
1179+ { allFields . map ( ( field : any ) => (
11801180 < label key = { field . name } className = "flex items-center gap-2 text-sm py-1 px-1 rounded hover:bg-muted cursor-pointer" >
11811181 < input
11821182 type = "checkbox"
@@ -1279,16 +1279,16 @@ export const ListView = React.forwardRef<ListViewHandle, ListViewProps>(({
12791279 ) }
12801280 </ div >
12811281 < div className = "max-h-60 overflow-y-auto space-y-1" data-testid = "group-field-list" >
1282- { allFields . map ( field => {
1283- const isGrouped = groupingConfig ?. fields ?. some ( f => f . field === field . name ) ;
1282+ { allFields . map ( ( field : any ) => {
1283+ const isGrouped = groupingConfig ?. fields ?. some ( ( f : any ) => f . field === field . name ) ;
12841284 return (
12851285 < label key = { field . name } className = "flex items-center gap-2 text-sm py-1 px-1 rounded hover:bg-muted cursor-pointer" >
12861286 < input
12871287 type = "checkbox"
12881288 checked = { ! ! isGrouped }
12891289 onChange = { ( ) => {
12901290 if ( isGrouped ) {
1291- const newFields = ( groupingConfig ?. fields || [ ] ) . filter ( f => f . field !== field . name ) ;
1291+ const newFields = ( groupingConfig ?. fields || [ ] ) . filter ( ( f : any ) => f . field !== field . name ) ;
12921292 setGroupingConfig ( newFields . length > 0 ? { fields : newFields } : undefined ) ;
12931293 } else {
12941294 const existing = groupingConfig ?. fields || [ ] ;
@@ -1393,7 +1393,7 @@ export const ListView = React.forwardRef<ListViewHandle, ListViewProps>(({
13931393 data-testid = "color-field-select"
13941394 >
13951395 < option value = "" > { t ( 'list.none' ) } </ option >
1396- { allFields . map ( field => (
1396+ { allFields . map ( ( field : any ) => (
13971397 < option key = { field . name } value = { field . name } > { field . label } </ option >
13981398 ) ) }
13991399 </ select >
@@ -1440,7 +1440,7 @@ export const ListView = React.forwardRef<ListViewHandle, ListViewProps>(({
14401440 </ PopoverTrigger >
14411441 < PopoverContent align = "start" className = "w-48 p-2" >
14421442 < div className = "space-y-1" >
1443- { ( resolvedExportOptions . formats || [ 'csv' , 'json' ] ) . map ( format => (
1443+ { ( resolvedExportOptions . formats || [ 'csv' , 'json' ] ) . map ( ( format : any ) => (
14441444 < Button
14451445 key = { format }
14461446 variant = "ghost"
@@ -1587,7 +1587,7 @@ export const ListView = React.forwardRef<ListViewHandle, ListViewProps>(({
15871587 const iconName = schema . emptyState ?. icon ;
15881588 const ResolvedIcon : LucideIcon = iconName
15891589 ? ( ( icons as Record < string , LucideIcon > ) [
1590- iconName . split ( '-' ) . map ( w => w . charAt ( 0 ) . toUpperCase ( ) + w . slice ( 1 ) ) . join ( '' )
1590+ iconName . split ( '-' ) . map ( ( w : any ) => w . charAt ( 0 ) . toUpperCase ( ) + w . slice ( 1 ) ) . join ( '' )
15911591 ] ?? Inbox )
15921592 : Inbox ;
15931593 return (
@@ -1637,7 +1637,7 @@ export const ListView = React.forwardRef<ListViewHandle, ListViewProps>(({
16371637 >
16381638 < span className = "text-muted-foreground font-medium" > { selectedRows . length } selected</ span >
16391639 < div className = "flex items-center gap-1 ml-2" >
1640- { schema . bulkActions . map ( action => (
1640+ { schema . bulkActions . map ( ( action : any ) => (
16411641 < Button
16421642 key = { action }
16431643 variant = "outline"
@@ -1684,7 +1684,7 @@ export const ListView = React.forwardRef<ListViewHandle, ListViewProps>(({
16841684 } }
16851685 data-testid = "page-size-selector"
16861686 >
1687- { schema . pagination . pageSizeOptions . map ( size => (
1687+ { schema . pagination . pageSizeOptions . map ( ( size : any ) => (
16881688 < option key = { size } value = { size } > { size } / page</ option >
16891689 ) ) }
16901690 </ select >
0 commit comments