@procore/saved-views 1.0.1-estimatingFork.6.2 → 1.0.1-estimatingFork.7.0

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.
@@ -1,4 +1,4 @@
1
- import { Locale, MapLocalesToTranslations } from '@procore/globalization-toolkit';
1
+ import { Locale } from '@procore/globalization-toolkit';
2
2
  import * as React$1 from 'react';
3
3
  import React__default from 'react';
4
4
  import { DataTableConfig, TableApi, ColumnDefinition } from '@procore/data-table';
@@ -8,7 +8,7 @@ import * as styled_components_dist_types from 'styled-components/dist/types';
8
8
  import * as _procore_core_react from '@procore/core-react';
9
9
  import { UseQueryResult, UseMutationResult } from '@tanstack/react-query';
10
10
 
11
- declare function getTranslations(envLocale: Locale): Partial<MapLocalesToTranslations>;
11
+ declare function getTranslations(envLocale: Locale): Record<string, object>;
12
12
 
13
13
  declare const useSavedViewsPanel: (domain: string, tableName: string) => {
14
14
  isOpen: boolean;
@@ -101,7 +101,7 @@ interface ISavedViewsProps extends Omit<IBaseSavedViewsProps, 'stickyViewsKey'>
101
101
  }
102
102
 
103
103
  interface IDataTableSavedViewsExternalConsumerProps extends IBaseSavedViewsProps {
104
- tableApi: TableApi;
104
+ tableApi?: TableApi;
105
105
  defaultViews: IDataTableDefaultViewConfig[];
106
106
  columnDefinitions: ColumnDefinition[];
107
107
  }
@@ -109,6 +109,12 @@ interface IDataTableSavedViewsExternalConsumerProps extends IBaseSavedViewsProps
109
109
  interface ISmartGridSavedViewsExternalConsumerProps extends IBaseSavedViewsProps {
110
110
  gridApi: GridApi;
111
111
  transformSettings?: (config: ISmartGridConfig) => ISmartGridConfig;
112
+ /**
113
+ * Merge live app state into the config used for Update visibility and persisting views.
114
+ * AG Grid events only report column/group/filter state — use this for flags such as
115
+ * enableRowGrouping / enableSplitAssembliesForDynamicGrouping that live outside the grid API.
116
+ */
117
+ augmentTableConfig?: (config: ISmartGridConfig) => ISmartGridConfig;
112
118
  defaultViews: ISmartGridDefaultViewConfig[];
113
119
  }
114
120
 
@@ -213,4 +219,4 @@ interface IDataTableSavedViewsRef {
213
219
  }
214
220
  declare const DataTableSavedViews: React__default.ForwardRefExoticComponent<IDataTableSavedViewsExternalConsumerProps & React__default.RefAttributes<IDataTableSavedViewsRef>>;
215
221
 
216
- export { DataTableSavedViews, ExpandedPanel, FormModal, IDataTableDefaultViewConfig, IDataTableSavedViewsRef, ISmartGridDefaultViewConfig, PanelContent, SavedViewCollectionMenuItem, SavedViews, SavedViewsDeleteConfirmationModalShared, SmartGridSavedViews, getTranslations, useSavedViewsPanel };
222
+ export { DataTableSavedViews, ExpandedPanel, FormModal, type IDataTableDefaultViewConfig, type IDataTableSavedViewsRef, type ISmartGridDefaultViewConfig, PanelContent, SavedViewCollectionMenuItem, SavedViews, SavedViewsDeleteConfirmationModalShared, SmartGridSavedViews, getTranslations, useSavedViewsPanel };
@@ -1,4 +1,4 @@
1
- import { Locale, MapLocalesToTranslations } from '@procore/globalization-toolkit';
1
+ import { Locale } from '@procore/globalization-toolkit';
2
2
  import * as React$1 from 'react';
3
3
  import React__default from 'react';
4
4
  import { DataTableConfig, TableApi, ColumnDefinition } from '@procore/data-table';
@@ -8,7 +8,7 @@ import * as styled_components_dist_types from 'styled-components/dist/types';
8
8
  import * as _procore_core_react from '@procore/core-react';
9
9
  import { UseQueryResult, UseMutationResult } from '@tanstack/react-query';
10
10
 
11
- declare function getTranslations(envLocale: Locale): Partial<MapLocalesToTranslations>;
11
+ declare function getTranslations(envLocale: Locale): Record<string, object>;
12
12
 
13
13
  declare const useSavedViewsPanel: (domain: string, tableName: string) => {
14
14
  isOpen: boolean;
@@ -101,7 +101,7 @@ interface ISavedViewsProps extends Omit<IBaseSavedViewsProps, 'stickyViewsKey'>
101
101
  }
102
102
 
103
103
  interface IDataTableSavedViewsExternalConsumerProps extends IBaseSavedViewsProps {
104
- tableApi: TableApi;
104
+ tableApi?: TableApi;
105
105
  defaultViews: IDataTableDefaultViewConfig[];
106
106
  columnDefinitions: ColumnDefinition[];
107
107
  }
@@ -109,6 +109,12 @@ interface IDataTableSavedViewsExternalConsumerProps extends IBaseSavedViewsProps
109
109
  interface ISmartGridSavedViewsExternalConsumerProps extends IBaseSavedViewsProps {
110
110
  gridApi: GridApi;
111
111
  transformSettings?: (config: ISmartGridConfig) => ISmartGridConfig;
112
+ /**
113
+ * Merge live app state into the config used for Update visibility and persisting views.
114
+ * AG Grid events only report column/group/filter state — use this for flags such as
115
+ * enableRowGrouping / enableSplitAssembliesForDynamicGrouping that live outside the grid API.
116
+ */
117
+ augmentTableConfig?: (config: ISmartGridConfig) => ISmartGridConfig;
112
118
  defaultViews: ISmartGridDefaultViewConfig[];
113
119
  }
114
120
 
@@ -213,4 +219,4 @@ interface IDataTableSavedViewsRef {
213
219
  }
214
220
  declare const DataTableSavedViews: React__default.ForwardRefExoticComponent<IDataTableSavedViewsExternalConsumerProps & React__default.RefAttributes<IDataTableSavedViewsRef>>;
215
221
 
216
- export { DataTableSavedViews, ExpandedPanel, FormModal, IDataTableDefaultViewConfig, IDataTableSavedViewsRef, ISmartGridDefaultViewConfig, PanelContent, SavedViewCollectionMenuItem, SavedViews, SavedViewsDeleteConfirmationModalShared, SmartGridSavedViews, getTranslations, useSavedViewsPanel };
222
+ export { DataTableSavedViews, ExpandedPanel, FormModal, type IDataTableDefaultViewConfig, type IDataTableSavedViewsRef, type ISmartGridDefaultViewConfig, PanelContent, SavedViewCollectionMenuItem, SavedViews, SavedViewsDeleteConfirmationModalShared, SmartGridSavedViews, getTranslations, useSavedViewsPanel };