@procore/saved-views 1.0.1-estimatingFork.4 → 1.0.1-estimatingFork.5
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/dist/legacy/index.d.mts +31 -10
- package/dist/legacy/index.d.ts +31 -10
- package/dist/legacy/index.js +9771 -13973
- package/dist/legacy/index.mjs +9801 -14006
- package/dist/modern/index.d.mts +31 -10
- package/dist/modern/index.d.ts +31 -10
- package/dist/modern/index.js +9764 -13966
- package/dist/modern/index.mjs +9809 -14014
- package/package.json +10 -15
package/dist/modern/index.d.mts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Locale, MapLocalesToTranslations } from '@procore/globalization-toolkit';
|
|
2
|
-
import * as React from 'react';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
import { DataTableConfig, TableApi, ColumnDefinition } from '@procore/data-table';
|
|
5
5
|
import { ColumnState, FilterModel, GridApi } from 'ag-grid-community';
|
|
6
|
-
import * as
|
|
6
|
+
import * as _procore_core_react_dist_Panel_Panel_types from '@procore/core-react/dist/Panel/Panel.types';
|
|
7
|
+
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
8
|
+
import * as _procore_core_react from '@procore/core-react';
|
|
7
9
|
import { UseQueryResult, UseMutationResult } from '@tanstack/react-query';
|
|
8
10
|
|
|
9
11
|
declare function getTranslations(envLocale: Locale): Partial<MapLocalesToTranslations>;
|
|
@@ -16,7 +18,7 @@ declare const useSavedViewsPanel: (domain: string, tableName: string) => {
|
|
|
16
18
|
interface IQueryInputProps {
|
|
17
19
|
domain: string;
|
|
18
20
|
tableName: string;
|
|
19
|
-
projectId
|
|
21
|
+
projectId?: number;
|
|
20
22
|
companyId: number;
|
|
21
23
|
}
|
|
22
24
|
|
|
@@ -31,8 +33,8 @@ interface ISmartGridConfig {
|
|
|
31
33
|
filterState: FilterModel;
|
|
32
34
|
}
|
|
33
35
|
|
|
34
|
-
declare const
|
|
35
|
-
type ViewLevel = (typeof
|
|
36
|
+
declare const PROJECT_LEVEL_TOOL_VIEW_LEVELS: readonly ["company", "project", "personal"];
|
|
37
|
+
type ViewLevel = (typeof PROJECT_LEVEL_TOOL_VIEW_LEVELS)[number];
|
|
36
38
|
|
|
37
39
|
interface ISavedView {
|
|
38
40
|
id: string;
|
|
@@ -77,8 +79,8 @@ interface ISavedViewsBackend {
|
|
|
77
79
|
interface IBaseSavedViewsProps {
|
|
78
80
|
tableName: string;
|
|
79
81
|
domain: string;
|
|
80
|
-
userId:
|
|
81
|
-
projectId
|
|
82
|
+
userId: number;
|
|
83
|
+
projectId?: number;
|
|
82
84
|
companyId: number;
|
|
83
85
|
stickyViewsKey: string;
|
|
84
86
|
backend?: ISavedViewsBackend;
|
|
@@ -148,9 +150,28 @@ type SavedViewCollectionMenuItemProps = {
|
|
|
148
150
|
onClearTemporary?: () => void;
|
|
149
151
|
enableSharingViews?: boolean;
|
|
150
152
|
};
|
|
151
|
-
declare const SavedViewCollectionMenuItem: (props: SavedViewCollectionMenuItemProps) => React.JSX.Element;
|
|
153
|
+
declare const SavedViewCollectionMenuItem: (props: SavedViewCollectionMenuItemProps) => React$1.JSX.Element;
|
|
152
154
|
|
|
153
|
-
declare const ExpandedPanel:
|
|
155
|
+
declare const ExpandedPanel: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<Omit<_procore_core_react.PanelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
156
|
+
ref?: ((instance: HTMLDivElement | null) => void | React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React$1.RefObject<HTMLDivElement> | null | undefined;
|
|
157
|
+
}, {
|
|
158
|
+
provider: TableProvider;
|
|
159
|
+
}>> & string & Omit<React$1.ForwardRefExoticComponent<_procore_core_react.PanelProps & React$1.RefAttributes<HTMLDivElement>> & {
|
|
160
|
+
Body: React.ForwardRefExoticComponent<_procore_core_react.PanelBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
161
|
+
Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
162
|
+
FooterActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
163
|
+
FooterNotation: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
164
|
+
Header: React.ForwardRefExoticComponent<_procore_core_react.PanelHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
165
|
+
HeaderAction: React.ForwardRefExoticComponent<_procore_core_react.PanelHeaderActionProps & React.RefAttributes<HTMLSpanElement>>;
|
|
166
|
+
HeaderActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
167
|
+
qa?: Pick<_procore_core_react_dist_Panel_Panel_types.PanelQaTags, "moreIcon"> | undefined;
|
|
168
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
169
|
+
Section: React.ForwardRefExoticComponent<_procore_core_react.SectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
170
|
+
Title: React.ForwardRefExoticComponent<_procore_core_react.TypographyProps & {
|
|
171
|
+
qa?: Pick<_procore_core_react_dist_Panel_Panel_types.PanelQaTags, "title"> | undefined;
|
|
172
|
+
id?: string | undefined;
|
|
173
|
+
} & React.RefAttributes<HTMLHeadingElement>>;
|
|
174
|
+
}, keyof React$1.Component<any, {}, any>>;
|
|
154
175
|
|
|
155
176
|
declare const PanelContent: (props: IPanelContentProps) => React__default.JSX.Element;
|
|
156
177
|
|
|
@@ -186,4 +207,4 @@ interface IDataTableSavedViewsRef {
|
|
|
186
207
|
}
|
|
187
208
|
declare const DataTableSavedViews: React__default.ForwardRefExoticComponent<IDataTableSavedViewsExternalConsumerProps & React__default.RefAttributes<IDataTableSavedViewsRef>>;
|
|
188
209
|
|
|
189
|
-
export { DataTableSavedViews, ExpandedPanel, FormModal,
|
|
210
|
+
export { DataTableSavedViews, ExpandedPanel, FormModal, IDataTableDefaultViewConfig, IDataTableSavedViewsRef, ISmartGridDefaultViewConfig, PanelContent, SavedViewCollectionMenuItem, SavedViews, SavedViewsDeleteConfirmationModalShared, SmartGridSavedViews, getTranslations, useSavedViewsPanel };
|
package/dist/modern/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Locale, MapLocalesToTranslations } from '@procore/globalization-toolkit';
|
|
2
|
-
import * as React from 'react';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
import { DataTableConfig, TableApi, ColumnDefinition } from '@procore/data-table';
|
|
5
5
|
import { ColumnState, FilterModel, GridApi } from 'ag-grid-community';
|
|
6
|
-
import * as
|
|
6
|
+
import * as _procore_core_react_dist_Panel_Panel_types from '@procore/core-react/dist/Panel/Panel.types';
|
|
7
|
+
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
8
|
+
import * as _procore_core_react from '@procore/core-react';
|
|
7
9
|
import { UseQueryResult, UseMutationResult } from '@tanstack/react-query';
|
|
8
10
|
|
|
9
11
|
declare function getTranslations(envLocale: Locale): Partial<MapLocalesToTranslations>;
|
|
@@ -16,7 +18,7 @@ declare const useSavedViewsPanel: (domain: string, tableName: string) => {
|
|
|
16
18
|
interface IQueryInputProps {
|
|
17
19
|
domain: string;
|
|
18
20
|
tableName: string;
|
|
19
|
-
projectId
|
|
21
|
+
projectId?: number;
|
|
20
22
|
companyId: number;
|
|
21
23
|
}
|
|
22
24
|
|
|
@@ -31,8 +33,8 @@ interface ISmartGridConfig {
|
|
|
31
33
|
filterState: FilterModel;
|
|
32
34
|
}
|
|
33
35
|
|
|
34
|
-
declare const
|
|
35
|
-
type ViewLevel = (typeof
|
|
36
|
+
declare const PROJECT_LEVEL_TOOL_VIEW_LEVELS: readonly ["company", "project", "personal"];
|
|
37
|
+
type ViewLevel = (typeof PROJECT_LEVEL_TOOL_VIEW_LEVELS)[number];
|
|
36
38
|
|
|
37
39
|
interface ISavedView {
|
|
38
40
|
id: string;
|
|
@@ -77,8 +79,8 @@ interface ISavedViewsBackend {
|
|
|
77
79
|
interface IBaseSavedViewsProps {
|
|
78
80
|
tableName: string;
|
|
79
81
|
domain: string;
|
|
80
|
-
userId:
|
|
81
|
-
projectId
|
|
82
|
+
userId: number;
|
|
83
|
+
projectId?: number;
|
|
82
84
|
companyId: number;
|
|
83
85
|
stickyViewsKey: string;
|
|
84
86
|
backend?: ISavedViewsBackend;
|
|
@@ -148,9 +150,28 @@ type SavedViewCollectionMenuItemProps = {
|
|
|
148
150
|
onClearTemporary?: () => void;
|
|
149
151
|
enableSharingViews?: boolean;
|
|
150
152
|
};
|
|
151
|
-
declare const SavedViewCollectionMenuItem: (props: SavedViewCollectionMenuItemProps) => React.JSX.Element;
|
|
153
|
+
declare const SavedViewCollectionMenuItem: (props: SavedViewCollectionMenuItemProps) => React$1.JSX.Element;
|
|
152
154
|
|
|
153
|
-
declare const ExpandedPanel:
|
|
155
|
+
declare const ExpandedPanel: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<Omit<_procore_core_react.PanelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
156
|
+
ref?: ((instance: HTMLDivElement | null) => void | React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React$1.RefObject<HTMLDivElement> | null | undefined;
|
|
157
|
+
}, {
|
|
158
|
+
provider: TableProvider;
|
|
159
|
+
}>> & string & Omit<React$1.ForwardRefExoticComponent<_procore_core_react.PanelProps & React$1.RefAttributes<HTMLDivElement>> & {
|
|
160
|
+
Body: React.ForwardRefExoticComponent<_procore_core_react.PanelBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
161
|
+
Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
162
|
+
FooterActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
163
|
+
FooterNotation: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
164
|
+
Header: React.ForwardRefExoticComponent<_procore_core_react.PanelHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
165
|
+
HeaderAction: React.ForwardRefExoticComponent<_procore_core_react.PanelHeaderActionProps & React.RefAttributes<HTMLSpanElement>>;
|
|
166
|
+
HeaderActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
167
|
+
qa?: Pick<_procore_core_react_dist_Panel_Panel_types.PanelQaTags, "moreIcon"> | undefined;
|
|
168
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
169
|
+
Section: React.ForwardRefExoticComponent<_procore_core_react.SectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
170
|
+
Title: React.ForwardRefExoticComponent<_procore_core_react.TypographyProps & {
|
|
171
|
+
qa?: Pick<_procore_core_react_dist_Panel_Panel_types.PanelQaTags, "title"> | undefined;
|
|
172
|
+
id?: string | undefined;
|
|
173
|
+
} & React.RefAttributes<HTMLHeadingElement>>;
|
|
174
|
+
}, keyof React$1.Component<any, {}, any>>;
|
|
154
175
|
|
|
155
176
|
declare const PanelContent: (props: IPanelContentProps) => React__default.JSX.Element;
|
|
156
177
|
|
|
@@ -186,4 +207,4 @@ interface IDataTableSavedViewsRef {
|
|
|
186
207
|
}
|
|
187
208
|
declare const DataTableSavedViews: React__default.ForwardRefExoticComponent<IDataTableSavedViewsExternalConsumerProps & React__default.RefAttributes<IDataTableSavedViewsRef>>;
|
|
188
209
|
|
|
189
|
-
export { DataTableSavedViews, ExpandedPanel, FormModal,
|
|
210
|
+
export { DataTableSavedViews, ExpandedPanel, FormModal, IDataTableDefaultViewConfig, IDataTableSavedViewsRef, ISmartGridDefaultViewConfig, PanelContent, SavedViewCollectionMenuItem, SavedViews, SavedViewsDeleteConfirmationModalShared, SmartGridSavedViews, getTranslations, useSavedViewsPanel };
|