@@ -74,32 +74,6 @@ export function createPageSizePreference(key: string) {
7474 } ;
7575}
7676
77- export function resolveConfiguredTableOptions < TData extends RowData > (
78- baseOptions : TableOptions < StockFeatures , TData > ,
79- configuredOptions : TableOptions < StockFeatures , TData > | void
80- ) : TableOptions < StockFeatures , TData > {
81- if ( ! configuredOptions || configuredOptions === baseOptions ) {
82- return baseOptions ;
83- }
84-
85- for ( const key of Reflect . ownKeys ( configuredOptions ) ) {
86- const baseDescriptor = Object . getOwnPropertyDescriptor ( baseOptions , key ) ;
87- const configuredDescriptor = Object . getOwnPropertyDescriptor ( configuredOptions , key ) ;
88-
89- if ( ! configuredDescriptor ) {
90- continue ;
91- }
92-
93- if ( baseDescriptor && ( baseDescriptor . get || baseDescriptor . set ) && 'value' in configuredDescriptor ) {
94- continue ;
95- }
96-
97- Object . defineProperty ( baseOptions , key , configuredDescriptor ) ;
98- }
99-
100- return baseOptions ;
101- }
102-
10377export function getSharedTableOptions < TData extends RowData , TPaginationStrategy extends PaginationStrategy = PaginationStrategy > (
10478 configuration : TableConfiguration < TData , TPaginationStrategy >
10579) : TableOptions < StockFeatures , TData > {
@@ -373,6 +347,32 @@ export function removeTableSelection<TData extends RowData>(table: Table<StockFe
373347 return false ;
374348}
375349
350+ export function resolveConfiguredTableOptions < TData extends RowData > (
351+ baseOptions : TableOptions < StockFeatures , TData > ,
352+ configuredOptions : TableOptions < StockFeatures , TData > | void
353+ ) : TableOptions < StockFeatures , TData > {
354+ if ( ! configuredOptions || configuredOptions === baseOptions ) {
355+ return baseOptions ;
356+ }
357+
358+ for ( const key of Reflect . ownKeys ( configuredOptions ) ) {
359+ const baseDescriptor = Object . getOwnPropertyDescriptor ( baseOptions , key ) ;
360+ const configuredDescriptor = Object . getOwnPropertyDescriptor ( configuredOptions , key ) ;
361+
362+ if ( ! configuredDescriptor ) {
363+ continue ;
364+ }
365+
366+ if ( baseDescriptor && ( baseDescriptor . get || baseDescriptor . set ) && 'value' in configuredDescriptor ) {
367+ continue ;
368+ }
369+
370+ Object . defineProperty ( baseOptions , key , configuredDescriptor ) ;
371+ }
372+
373+ return baseOptions ;
374+ }
375+
376376export function resolvePageCount (
377377 strategy : PaginationStrategy ,
378378 meta : QueryMeta | undefined ,
0 commit comments