react-luminus-components 1.5.31 → 1.5.33
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/components/common/ReportsIndexPage/ReportsIndexPage.d.ts +2 -2
- package/dist/components/common/ReportsIndexPage/comps/ReportIndexMain/ReportIndexMain.d.ts +17 -0
- package/dist/components/common/ReportsIndexPage/comps/{ReportIndexItem → ReportIndexMain/comps/ReportIndexItem}/ReportIndexItem.d.ts +1 -1
- package/dist/components/common/ReportsIndexPage/comps/{ReportIndexItem → ReportIndexMain/comps/ReportIndexItem}/comps/ReportsCollapseVersionList/ReportsCollapseVersionList.d.ts +1 -1
- package/dist/components/common/ReportsIndexPage/comps/{ReportIndexItem → ReportIndexMain/comps/ReportIndexItem}/comps/ReportsCollapseVersionList/comps/ReportCollapseVersionItem/ReportCollapseVersionItem.d.ts +1 -1
- package/dist/components/common/ReportsIndexPage/comps/ReportIndexMain/comps/index.d.ts +1 -0
- package/dist/components/common/ReportsIndexPage/comps/index.d.ts +1 -1
- package/dist/components/common/ReportsIndexPage/hooks/useReportData.d.ts +10 -0
- package/dist/main.cjs.js +52 -52
- package/dist/main.es.js +1433 -1426
- package/dist/models/api/reports/ReportDto.d.ts +3 -0
- package/dist/models/api/reports/ReportGroup.d.ts +5 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
- /package/dist/components/common/ReportsIndexPage/comps/{ReportIndexItem → ReportIndexMain/comps/ReportIndexItem}/comps/ReportsCollapseVersionList/comps/index.d.ts +0 -0
- /package/dist/components/common/ReportsIndexPage/comps/{ReportIndexItem → ReportIndexMain/comps/ReportIndexItem}/comps/index.d.ts +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ReportDto } from '../../../models/index';
|
|
2
2
|
|
|
3
3
|
type Props = {
|
|
4
|
-
groups: number[];
|
|
5
4
|
getReportName: (report: ReportDto) => string;
|
|
6
5
|
getReportDescription: (report: ReportDto) => string;
|
|
7
6
|
getGroupTitle: (group: number) => string;
|
|
@@ -9,7 +8,8 @@ type Props = {
|
|
|
9
8
|
apiUrls?: {
|
|
10
9
|
reportsGet?: string;
|
|
11
10
|
reportsLastUsedGet?: string;
|
|
11
|
+
groupsGet?: string;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
declare const ReportsIndexPage: ({
|
|
14
|
+
declare const ReportsIndexPage: ({ apiUrls: { reportsGet, reportsLastUsedGet, groupsGet, }, getReportName, getReportDescription, getGroupTitle, getReportRoute, }: Props) => import("react").JSX.Element;
|
|
15
15
|
export default ReportsIndexPage;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as ReportGroups } from '../../../../../models/api/reports/ReportGroup';
|
|
2
|
+
import { ReportDto } from '../../../../../models/index';
|
|
3
|
+
import { default as ReportsTexts } from '../../../../../models/texts/ReportsTexts';
|
|
4
|
+
|
|
5
|
+
type ReportIndexMainProps = {
|
|
6
|
+
searchQuery: string;
|
|
7
|
+
setSearchQuery: (query: string) => void;
|
|
8
|
+
reportsTexts: ReportsTexts;
|
|
9
|
+
filteredGroups: number[];
|
|
10
|
+
filteredReports: ReportGroups;
|
|
11
|
+
getGroupTitle: (group: number) => string;
|
|
12
|
+
getReportRoute: (report: ReportDto, reportVersionId?: number) => string;
|
|
13
|
+
getReportName: (report: ReportDto) => string;
|
|
14
|
+
getReportDescription: (report: ReportDto) => string;
|
|
15
|
+
};
|
|
16
|
+
declare const ReportIndexMain: ({ searchQuery, setSearchQuery, reportsTexts, filteredGroups, filteredReports, getGroupTitle, getReportRoute, getReportName, getReportDescription, }: ReportIndexMainProps) => import("react").JSX.Element;
|
|
17
|
+
export default ReportIndexMain;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ReportIndexItem } from './ReportIndexItem/ReportIndexItem';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as ReportsLastUsed } from './ReportsLastUsed/ReportsLastUsed';
|
|
2
|
-
export { default as
|
|
2
|
+
export { default as ReportIndexMain } from './ReportIndexMain/ReportIndexMain';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as ReportGroups } from '../../../../models/api/reports/ReportGroup';
|
|
2
|
+
import { NameIdIntModel, ReportDto } from '../../../../models/index';
|
|
3
|
+
|
|
4
|
+
declare const useReportData: (reportsGet: string, groupsGet: string, getReportName: (report: ReportDto) => string, getReportDescription: (report: ReportDto) => string, debouncedQuery: string) => {
|
|
5
|
+
reports: ReportDto[] | null;
|
|
6
|
+
groupsData: NameIdIntModel[] | null;
|
|
7
|
+
filteredReports: ReportGroups;
|
|
8
|
+
filteredGroups: number[];
|
|
9
|
+
};
|
|
10
|
+
export default useReportData;
|