@layerfi/components 0.1.56 → 0.1.58
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/esm/index.js +1790 -1845
- package/dist/esm/index.js.map +4 -4
- package/dist/index.d.ts +97 -78
- package/dist/index.js +932 -987
- package/dist/index.js.map +4 -4
- package/dist/styles/index.css +26 -98
- package/dist/styles/index.css.map +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -337,7 +337,7 @@ declare module '@layerfi/components/api/layer/profit_and_loss' {
|
|
|
337
337
|
|
|
338
338
|
}
|
|
339
339
|
declare module '@layerfi/components/api/layer/quickbooks' {
|
|
340
|
-
import { StatusOfSyncFromQuickbooks } from
|
|
340
|
+
import { StatusOfSyncFromQuickbooks } from '@layerfi/components/types/quickbooks';
|
|
341
341
|
export const syncFromQuickbooks: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
342
342
|
params?: {
|
|
343
343
|
businessId: string;
|
|
@@ -358,7 +358,7 @@ declare module '@layerfi/components/api/layer/quickbooks' {
|
|
|
358
358
|
body?: Record<string, unknown> | undefined;
|
|
359
359
|
} | undefined) => Promise<{
|
|
360
360
|
data: {
|
|
361
|
-
type:
|
|
361
|
+
type: 'Quickbooks_Authorization_Params';
|
|
362
362
|
redirect_url: string;
|
|
363
363
|
};
|
|
364
364
|
}>;
|
|
@@ -1464,7 +1464,7 @@ declare module '@layerfi/components/components/CategorySelect/index' {
|
|
|
1464
1464
|
}
|
|
1465
1465
|
declare module '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts' {
|
|
1466
1466
|
import React from 'react';
|
|
1467
|
-
import { ChartOfAccountsTableStringOverrides } from '@layerfi/components/components/ChartOfAccountsTable/
|
|
1467
|
+
import { ChartOfAccountsTableStringOverrides } from '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTableWithPanel';
|
|
1468
1468
|
import { LedgerAccountStringOverrides } from '@layerfi/components/components/LedgerAccount/LedgerAccountIndex';
|
|
1469
1469
|
export type View = 'mobile' | 'tablet' | 'desktop';
|
|
1470
1470
|
export interface ChartOfAccountsStringOverrides {
|
|
@@ -1507,7 +1507,7 @@ declare module '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccoun
|
|
|
1507
1507
|
subTypeLabel?: string;
|
|
1508
1508
|
normalityLabel?: string;
|
|
1509
1509
|
}
|
|
1510
|
-
export const ChartOfAccountsForm: ({ stringOverrides }: {
|
|
1510
|
+
export const ChartOfAccountsForm: ({ stringOverrides, }: {
|
|
1511
1511
|
stringOverrides?: ChartOfAccountsFormStringOverrides | undefined;
|
|
1512
1512
|
}) => React.JSX.Element | undefined;
|
|
1513
1513
|
|
|
@@ -1536,30 +1536,6 @@ declare module '@layerfi/components/components/ChartOfAccountsForm/useParentOpti
|
|
|
1536
1536
|
import { BaseSelectOption } from '@layerfi/components/types/general';
|
|
1537
1537
|
export const useParentOptions: (data?: ChartWithBalances) => BaseSelectOption[];
|
|
1538
1538
|
|
|
1539
|
-
}
|
|
1540
|
-
declare module '@layerfi/components/components/ChartOfAccountsRow/ChartOfAccountsRow' {
|
|
1541
|
-
import React from 'react';
|
|
1542
|
-
import { LedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
|
|
1543
|
-
import { View } from '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts';
|
|
1544
|
-
import { ExpandActionState } from '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTable';
|
|
1545
|
-
type ChartOfAccountsRowProps = {
|
|
1546
|
-
account: LedgerAccountBalance;
|
|
1547
|
-
depth?: number;
|
|
1548
|
-
index: number;
|
|
1549
|
-
cumulativeIndex?: number;
|
|
1550
|
-
expanded: boolean;
|
|
1551
|
-
acountsLength: number;
|
|
1552
|
-
defaultOpen?: boolean;
|
|
1553
|
-
view?: View;
|
|
1554
|
-
expandAll?: ExpandActionState;
|
|
1555
|
-
};
|
|
1556
|
-
export const ChartOfAccountsRow: ({ account, depth, index, cumulativeIndex, expanded, defaultOpen, acountsLength, view, expandAll, }: ChartOfAccountsRowProps) => React.JSX.Element;
|
|
1557
|
-
export {};
|
|
1558
|
-
|
|
1559
|
-
}
|
|
1560
|
-
declare module '@layerfi/components/components/ChartOfAccountsRow/index' {
|
|
1561
|
-
export { ChartOfAccountsRow } from '@layerfi/components/components/ChartOfAccountsRow/ChartOfAccountsRow';
|
|
1562
|
-
|
|
1563
1539
|
}
|
|
1564
1540
|
declare module '@layerfi/components/components/ChartOfAccountsSidebar/ChartOfAccountsSidebar' {
|
|
1565
1541
|
import React, { RefObject } from 'react';
|
|
@@ -1575,6 +1551,31 @@ declare module '@layerfi/components/components/ChartOfAccountsSidebar/index' {
|
|
|
1575
1551
|
|
|
1576
1552
|
}
|
|
1577
1553
|
declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTable' {
|
|
1554
|
+
import React from 'react';
|
|
1555
|
+
import { ChartWithBalances } from '@layerfi/components/types/chart_of_accounts';
|
|
1556
|
+
import { View } from '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts';
|
|
1557
|
+
import { ChartOfAccountsTableStringOverrides, ExpandActionState } from '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTableWithPanel';
|
|
1558
|
+
export const ChartOfAccountsTable: ({ view, stringOverrides, data, error, expandAll, cumulativeIndex, accountsLength, }: {
|
|
1559
|
+
view: View;
|
|
1560
|
+
data: ChartWithBalances;
|
|
1561
|
+
stringOverrides?: ChartOfAccountsTableStringOverrides | undefined;
|
|
1562
|
+
error?: any;
|
|
1563
|
+
expandAll?: ExpandActionState;
|
|
1564
|
+
cumulativeIndex: number;
|
|
1565
|
+
accountsLength: number;
|
|
1566
|
+
}) => React.JSX.Element;
|
|
1567
|
+
export const ChartOfAccountsTableContent: ({ stringOverrides, data, error, expandAll, }: {
|
|
1568
|
+
view: View;
|
|
1569
|
+
data: ChartWithBalances;
|
|
1570
|
+
stringOverrides?: ChartOfAccountsTableStringOverrides | undefined;
|
|
1571
|
+
error?: any;
|
|
1572
|
+
expandAll?: ExpandActionState;
|
|
1573
|
+
cumulativeIndex: number;
|
|
1574
|
+
accountsLength: number;
|
|
1575
|
+
}) => React.JSX.Element;
|
|
1576
|
+
|
|
1577
|
+
}
|
|
1578
|
+
declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTableWithPanel' {
|
|
1578
1579
|
import React, { RefObject } from 'react';
|
|
1579
1580
|
import { View } from '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts';
|
|
1580
1581
|
import { ChartOfAccountsFormStringOverrides } from '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccountsForm';
|
|
@@ -1588,7 +1589,7 @@ declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccou
|
|
|
1588
1589
|
subtypeColumnHeader?: string;
|
|
1589
1590
|
chartOfAccountsForm?: ChartOfAccountsFormStringOverrides;
|
|
1590
1591
|
}
|
|
1591
|
-
export const
|
|
1592
|
+
export const ChartOfAccountsTableWithPanel: ({ view, containerRef, asWidget, withDateControl, withExpandAllButton, stringOverrides, }: {
|
|
1592
1593
|
view: View;
|
|
1593
1594
|
containerRef: RefObject<HTMLDivElement>;
|
|
1594
1595
|
asWidget?: boolean | undefined;
|
|
@@ -1599,7 +1600,7 @@ declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccou
|
|
|
1599
1600
|
|
|
1600
1601
|
}
|
|
1601
1602
|
declare module '@layerfi/components/components/ChartOfAccountsTable/index' {
|
|
1602
|
-
export { ChartOfAccountsTable } from '@layerfi/components/components/ChartOfAccountsTable/
|
|
1603
|
+
export { ChartOfAccountsTableWithPanel as ChartOfAccountsTable } from '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTableWithPanel';
|
|
1603
1604
|
|
|
1604
1605
|
}
|
|
1605
1606
|
declare module '@layerfi/components/components/Container/Container' {
|
|
@@ -1661,8 +1662,10 @@ declare module '@layerfi/components/components/DataState/index' {
|
|
|
1661
1662
|
}
|
|
1662
1663
|
declare module '@layerfi/components/components/DatePicker/DatePicker' {
|
|
1663
1664
|
import React from 'react';
|
|
1665
|
+
export type DatePickerMode = 'dayPicker' | 'monthRangePicker' | 'timePicker' | DateRangeDatePickerModes;
|
|
1666
|
+
export type DateRangeDatePickerModes = 'dayRangePicker' | 'monthPicker';
|
|
1664
1667
|
interface DatePickerProps {
|
|
1665
|
-
mode:
|
|
1668
|
+
mode: DatePickerMode;
|
|
1666
1669
|
selected: Date | [Date | null, Date | null];
|
|
1667
1670
|
onChange: (date: Date | [Date, Date | null]) => void;
|
|
1668
1671
|
dateFormat?: string;
|
|
@@ -1949,7 +1952,7 @@ declare module '@layerfi/components/components/Input/index' {
|
|
|
1949
1952
|
}
|
|
1950
1953
|
declare module '@layerfi/components/components/Journal/Journal' {
|
|
1951
1954
|
import React from 'react';
|
|
1952
|
-
import { JournalTableStringOverrides } from '@layerfi/components/components/JournalTable/
|
|
1955
|
+
import { JournalTableStringOverrides } from '@layerfi/components/components/JournalTable/JournalTableWithPanel';
|
|
1953
1956
|
export type View = 'mobile' | 'tablet' | 'desktop';
|
|
1954
1957
|
export interface JournalConfig {
|
|
1955
1958
|
form: {
|
|
@@ -1990,7 +1993,7 @@ declare module '@layerfi/components/components/JournalForm/JournalForm' {
|
|
|
1990
1993
|
retryButton?: string;
|
|
1991
1994
|
saveButton?: string;
|
|
1992
1995
|
}
|
|
1993
|
-
export const JournalForm: ({ config, stringOverrides }: {
|
|
1996
|
+
export const JournalForm: ({ config, stringOverrides, }: {
|
|
1994
1997
|
config: JournalConfig;
|
|
1995
1998
|
stringOverrides?: JournalFormStringOverrides | undefined;
|
|
1996
1999
|
}) => React.JSX.Element;
|
|
@@ -2015,29 +2018,6 @@ declare module '@layerfi/components/components/JournalForm/JournalFormEntryLines
|
|
|
2015
2018
|
declare module '@layerfi/components/components/JournalForm/index' {
|
|
2016
2019
|
export { JournalForm } from '@layerfi/components/components/JournalForm/JournalForm';
|
|
2017
2020
|
|
|
2018
|
-
}
|
|
2019
|
-
declare module '@layerfi/components/components/JournalRow/JournalRow' {
|
|
2020
|
-
import React from 'react';
|
|
2021
|
-
import { JournalEntry, JournalEntryLine, JournalEntryLineItem } from '@layerfi/components/types';
|
|
2022
|
-
import { View } from '@layerfi/components/components/Journal/index';
|
|
2023
|
-
export interface JournalRowProps {
|
|
2024
|
-
row: JournalEntry | JournalEntryLine | JournalEntryLineItem;
|
|
2025
|
-
index: number;
|
|
2026
|
-
initialLoad?: boolean;
|
|
2027
|
-
view: View;
|
|
2028
|
-
lineItemsLength?: number;
|
|
2029
|
-
defaultOpen?: boolean;
|
|
2030
|
-
expanded?: boolean;
|
|
2031
|
-
depth?: number;
|
|
2032
|
-
cumulativeIndex?: number;
|
|
2033
|
-
selectedEntries?: boolean;
|
|
2034
|
-
}
|
|
2035
|
-
export const JournalRow: ({ row, index, initialLoad, view, lineItemsLength, defaultOpen, expanded, depth, cumulativeIndex, selectedEntries, }: JournalRowProps) => React.JSX.Element;
|
|
2036
|
-
|
|
2037
|
-
}
|
|
2038
|
-
declare module '@layerfi/components/components/JournalRow/index' {
|
|
2039
|
-
export { JournalRow } from '@layerfi/components/components/JournalRow/JournalRow';
|
|
2040
|
-
|
|
2041
2021
|
}
|
|
2042
2022
|
declare module '@layerfi/components/components/JournalSidebar/JournalSidebar' {
|
|
2043
2023
|
import React, { RefObject } from 'react';
|
|
@@ -2055,6 +2035,18 @@ declare module '@layerfi/components/components/JournalSidebar/index' {
|
|
|
2055
2035
|
|
|
2056
2036
|
}
|
|
2057
2037
|
declare module '@layerfi/components/components/JournalTable/JournalTable' {
|
|
2038
|
+
import React from 'react';
|
|
2039
|
+
import { JournalEntry } from '@layerfi/components/types';
|
|
2040
|
+
import { View } from '@layerfi/components/components/Journal/index';
|
|
2041
|
+
import { JournalTableStringOverrides } from '@layerfi/components/components/JournalTable/JournalTableWithPanel';
|
|
2042
|
+
export const JournalTable: ({ view, data, stringOverrides, }: {
|
|
2043
|
+
view: View;
|
|
2044
|
+
data: JournalEntry[];
|
|
2045
|
+
stringOverrides?: JournalTableStringOverrides | undefined;
|
|
2046
|
+
}) => React.JSX.Element;
|
|
2047
|
+
|
|
2048
|
+
}
|
|
2049
|
+
declare module '@layerfi/components/components/JournalTable/JournalTableWithPanel' {
|
|
2058
2050
|
import React, { RefObject } from 'react';
|
|
2059
2051
|
import { View } from '@layerfi/components/components/Journal/index';
|
|
2060
2052
|
import { JournalConfig } from '@layerfi/components/components/Journal/Journal';
|
|
@@ -2070,7 +2062,7 @@ declare module '@layerfi/components/components/JournalTable/JournalTable' {
|
|
|
2070
2062
|
creditColumnHeader?: string;
|
|
2071
2063
|
journalForm?: JournalFormStringOverrides;
|
|
2072
2064
|
}
|
|
2073
|
-
export const
|
|
2065
|
+
export const JournalTableWithPanel: ({ containerRef, pageSize, config, stringOverrides, }: {
|
|
2074
2066
|
view: View;
|
|
2075
2067
|
containerRef: RefObject<HTMLDivElement>;
|
|
2076
2068
|
pageSize?: number | undefined;
|
|
@@ -2080,7 +2072,7 @@ declare module '@layerfi/components/components/JournalTable/JournalTable' {
|
|
|
2080
2072
|
|
|
2081
2073
|
}
|
|
2082
2074
|
declare module '@layerfi/components/components/JournalTable/index' {
|
|
2083
|
-
export { JournalTable } from '@layerfi/components/components/JournalTable/
|
|
2075
|
+
export { JournalTableWithPanel as JournalTable } from '@layerfi/components/components/JournalTable/JournalTableWithPanel';
|
|
2084
2076
|
|
|
2085
2077
|
}
|
|
2086
2078
|
declare module '@layerfi/components/components/LedgerAccount/LedgerAccountIndex' {
|
|
@@ -2442,7 +2434,7 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
|
|
|
2442
2434
|
setCompareOptions: (options: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[]) => void;
|
|
2443
2435
|
refetch: (dateRange: import("@layerfi/components/types").DateRange, actAsInitial?: boolean | undefined) => void;
|
|
2444
2436
|
}>;
|
|
2445
|
-
DatePicker: () => React.JSX.Element;
|
|
2437
|
+
DatePicker: ({ datePickerMode, }: import("@layerfi/components/components/ProfitAndLossDatePicker/ProfitAndLossDatePicker").ProfitAndLossDatePickerProps) => React.JSX.Element;
|
|
2446
2438
|
CompareOptions: ({ tagComparisonOptions, defaultTagFilter: defaultOption, }: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").ProfitAndLossCompareOptionsProps) => React.JSX.Element;
|
|
2447
2439
|
Summaries: ({ vertical, actionable, revenueLabel, stringOverrides, }: {
|
|
2448
2440
|
vertical?: boolean | undefined;
|
|
@@ -2527,7 +2519,11 @@ declare module '@layerfi/components/components/ProfitAndLossCompareOptions/index
|
|
|
2527
2519
|
}
|
|
2528
2520
|
declare module '@layerfi/components/components/ProfitAndLossDatePicker/ProfitAndLossDatePicker' {
|
|
2529
2521
|
import React from 'react';
|
|
2530
|
-
|
|
2522
|
+
import { DatePickerMode } from '@layerfi/components/components/DatePicker/DatePicker';
|
|
2523
|
+
export type ProfitAndLossDatePickerProps = {
|
|
2524
|
+
datePickerMode?: DatePickerMode;
|
|
2525
|
+
};
|
|
2526
|
+
export const ProfitAndLossDatePicker: ({ datePickerMode, }: ProfitAndLossDatePickerProps) => React.JSX.Element;
|
|
2531
2527
|
|
|
2532
2528
|
}
|
|
2533
2529
|
declare module '@layerfi/components/components/ProfitAndLossDatePicker/index' {
|
|
@@ -2549,7 +2545,7 @@ declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Detai
|
|
|
2549
2545
|
showDatePicker?: boolean;
|
|
2550
2546
|
chartColorsList?: string[];
|
|
2551
2547
|
}
|
|
2552
|
-
export const DetailedChart: ({ filteredData, filteredTotal, hoveredItem, setHoveredItem,
|
|
2548
|
+
export const DetailedChart: ({ filteredData, filteredTotal, hoveredItem, setHoveredItem, chartColorsList, isLoading, showDatePicker, }: DetailedChartProps) => React.JSX.Element;
|
|
2553
2549
|
export {};
|
|
2554
2550
|
|
|
2555
2551
|
}
|
|
@@ -2727,7 +2723,7 @@ declare module '@layerfi/components/components/ProfitAndLossView/index' {
|
|
|
2727
2723
|
|
|
2728
2724
|
}
|
|
2729
2725
|
declare module '@layerfi/components/components/Quickbooks/Quickbooks' {
|
|
2730
|
-
import React from
|
|
2726
|
+
import React from 'react';
|
|
2731
2727
|
const Quickbooks: () => React.JSX.Element;
|
|
2732
2728
|
export { Quickbooks };
|
|
2733
2729
|
|
|
@@ -2773,13 +2769,17 @@ declare module '@layerfi/components/components/SkeletonTableLoader/index' {
|
|
|
2773
2769
|
}
|
|
2774
2770
|
declare module '@layerfi/components/components/StatementOfCashFlow/StatementOfCashFlow' {
|
|
2775
2771
|
import React from 'react';
|
|
2772
|
+
import { DatePickerMode, DateRangeDatePickerModes } from '@layerfi/components/components/DatePicker/DatePicker';
|
|
2776
2773
|
import { StatementOfCashFlowTableStringOverrides } from '@layerfi/components/components/StatementOfCashFlowTable/StatementOfCashFlowTable';
|
|
2777
2774
|
export interface StatementOfCashFlowStringOverrides {
|
|
2778
2775
|
statementOfCashFlowTable?: StatementOfCashFlowTableStringOverrides;
|
|
2776
|
+
datePickerMode?: DatePickerMode;
|
|
2779
2777
|
}
|
|
2780
|
-
export
|
|
2781
|
-
stringOverrides?: StatementOfCashFlowStringOverrides
|
|
2782
|
-
|
|
2778
|
+
export interface StatementOfCashFlowProps {
|
|
2779
|
+
stringOverrides?: StatementOfCashFlowStringOverrides;
|
|
2780
|
+
datePickerMode?: DateRangeDatePickerModes;
|
|
2781
|
+
}
|
|
2782
|
+
export const StatementOfCashFlow: ({ stringOverrides, datePickerMode, }: StatementOfCashFlowProps) => React.JSX.Element;
|
|
2783
2783
|
|
|
2784
2784
|
}
|
|
2785
2785
|
declare module '@layerfi/components/components/StatementOfCashFlow/constants' {
|
|
@@ -2897,7 +2897,7 @@ declare module '@layerfi/components/components/TableBody/index' {
|
|
|
2897
2897
|
declare module '@layerfi/components/components/TableCell/TableCell' {
|
|
2898
2898
|
import React from 'react';
|
|
2899
2899
|
import { TableCellProps } from '@layerfi/components/types/table';
|
|
2900
|
-
export const TableCell: ({ children, isHeaderCell, isCurrency, primary, withExpandIcon, fullWidth, }: TableCellProps) => React.JSX.Element;
|
|
2900
|
+
export const TableCell: ({ children, isHeaderCell, isCurrency, primary, withExpandIcon, fullWidth, colSpan, onClick, }: TableCellProps) => React.JSX.Element;
|
|
2901
2901
|
|
|
2902
2902
|
}
|
|
2903
2903
|
declare module '@layerfi/components/components/TableCell/index' {
|
|
@@ -3511,7 +3511,7 @@ declare module '@layerfi/components/contexts/BankTransactionsContext/BankTransac
|
|
|
3511
3511
|
|
|
3512
3512
|
}
|
|
3513
3513
|
declare module '@layerfi/components/contexts/BankTransactionsContext/index' {
|
|
3514
|
-
export { BankTransactionsContext, useBankTransactionsContext } from '@layerfi/components/contexts/BankTransactionsContext/BankTransactionsContext';
|
|
3514
|
+
export { BankTransactionsContext, useBankTransactionsContext, } from '@layerfi/components/contexts/BankTransactionsContext/BankTransactionsContext';
|
|
3515
3515
|
|
|
3516
3516
|
}
|
|
3517
3517
|
declare module '@layerfi/components/contexts/ChartOfAccountsContext/ChartOfAccountsContext' {
|
|
@@ -3669,8 +3669,6 @@ declare module '@layerfi/components/contexts/LinkedAccountsContext/index' {
|
|
|
3669
3669
|
}
|
|
3670
3670
|
declare module '@layerfi/components/contexts/ProfitAndLossComparisonContext/ProfitAndLossComparisonContext' {
|
|
3671
3671
|
/// <reference types="react" />
|
|
3672
|
-
import { TagComparisonOption } from '@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions';
|
|
3673
|
-
import { DateRange } from '@layerfi/components/types';
|
|
3674
3672
|
export const PNLComparisonContext: import("react").Context<{
|
|
3675
3673
|
data: import("@layerfi/components/types/profit_and_loss").ProfitAndLossComparisonItem[] | undefined;
|
|
3676
3674
|
isLoading: boolean;
|
|
@@ -3680,9 +3678,9 @@ declare module '@layerfi/components/contexts/ProfitAndLossComparisonContext/Prof
|
|
|
3680
3678
|
setCompareMode: (mode: boolean) => void;
|
|
3681
3679
|
compareMonths: number;
|
|
3682
3680
|
setCompareMonths: (months: number) => void;
|
|
3683
|
-
compareOptions: TagComparisonOption[];
|
|
3684
|
-
setCompareOptions: (options: TagComparisonOption[]) => void;
|
|
3685
|
-
refetch: (dateRange: DateRange, actAsInitial?: boolean | undefined) => void;
|
|
3681
|
+
compareOptions: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[];
|
|
3682
|
+
setCompareOptions: (options: import("@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions").TagComparisonOption[]) => void;
|
|
3683
|
+
refetch: (dateRange: import("@layerfi/components/types").DateRange, actAsInitial?: boolean | undefined) => void;
|
|
3686
3684
|
}>;
|
|
3687
3685
|
|
|
3688
3686
|
}
|
|
@@ -4322,14 +4320,14 @@ declare module '@layerfi/components/icons/ChevronDownFill' {
|
|
|
4322
4320
|
declare module '@layerfi/components/icons/ChevronLeft' {
|
|
4323
4321
|
import * as React from 'react';
|
|
4324
4322
|
import { IconSvgProps } from '@layerfi/components/icons/types';
|
|
4325
|
-
const ChevronLeft: ({
|
|
4323
|
+
const ChevronLeft: ({ ...props }: IconSvgProps) => React.JSX.Element;
|
|
4326
4324
|
export default ChevronLeft;
|
|
4327
4325
|
|
|
4328
4326
|
}
|
|
4329
4327
|
declare module '@layerfi/components/icons/ChevronRight' {
|
|
4330
4328
|
import * as React from 'react';
|
|
4331
4329
|
import { IconSvgProps } from '@layerfi/components/icons/types';
|
|
4332
|
-
const ChevronRight: ({
|
|
4330
|
+
const ChevronRight: ({ ...props }: IconSvgProps) => React.JSX.Element;
|
|
4333
4331
|
export default ChevronRight;
|
|
4334
4332
|
|
|
4335
4333
|
}
|
|
@@ -5432,7 +5430,9 @@ declare module '@layerfi/components/types/table' {
|
|
|
5432
5430
|
withDividerPosition?: 'top' | 'bottom';
|
|
5433
5431
|
isExpanded?: boolean;
|
|
5434
5432
|
handleExpand?: () => void;
|
|
5433
|
+
onClick?: (e: React.MouseEvent<HTMLTableRowElement, MouseEvent>) => void;
|
|
5435
5434
|
isHeadRow?: boolean;
|
|
5435
|
+
selected?: boolean;
|
|
5436
5436
|
}
|
|
5437
5437
|
export interface TableCellProps {
|
|
5438
5438
|
children?: number | string | ReactNode;
|
|
@@ -5441,6 +5441,8 @@ declare module '@layerfi/components/types/table' {
|
|
|
5441
5441
|
primary?: boolean;
|
|
5442
5442
|
withExpandIcon?: boolean;
|
|
5443
5443
|
fullWidth?: boolean;
|
|
5444
|
+
colSpan?: number;
|
|
5445
|
+
onClick?: (e: React.MouseEvent<HTMLTableCellElement, MouseEvent>) => void;
|
|
5444
5446
|
}
|
|
5445
5447
|
|
|
5446
5448
|
}
|
|
@@ -5473,7 +5475,7 @@ declare module '@layerfi/components/types' {
|
|
|
5473
5475
|
export { LineItem } from '@layerfi/components/types/line_item';
|
|
5474
5476
|
export { BalanceSheet } from '@layerfi/components/types/balance_sheet';
|
|
5475
5477
|
export { StatementOfCashFlow } from '@layerfi/components/types/statement_of_cash_flow';
|
|
5476
|
-
export { Direction, BankTransaction, DisplayState } from '@layerfi/components/types/bank_transactions';
|
|
5478
|
+
export { Direction, BankTransaction, DisplayState, } from '@layerfi/components/types/bank_transactions';
|
|
5477
5479
|
export { CategorizationStatus, Category, CategorizationType, AutoCategorization, SuggestedCategorization, SingleCategoryUpdate, SplitCategoryUpdate, CategoryUpdate, } from '@layerfi/components/types/categories';
|
|
5478
5480
|
export { ChartOfAccounts, Account, NewAccount, EditAccount, } from '@layerfi/components/types/chart_of_accounts';
|
|
5479
5481
|
export { LedgerAccountLineItems as LedgerAccounts, LedgerAccountLineItem, LedgerAccountsAccount, LedgerAccountsEntry, } from '@layerfi/components/types/ledger_accounts';
|
|
@@ -5492,6 +5494,7 @@ declare module '@layerfi/components/types' {
|
|
|
5492
5494
|
endDate: T;
|
|
5493
5495
|
};
|
|
5494
5496
|
export type ReportingBasis = 'CASH' | 'ACCRUAL';
|
|
5497
|
+
export type MoneyFormat = 'CENTS' | 'DOLLAR_STRING';
|
|
5495
5498
|
|
|
5496
5499
|
}
|
|
5497
5500
|
declare module '@layerfi/components/utils/bankTransactions' {
|
|
@@ -5703,10 +5706,12 @@ declare module '@layerfi/components/views/GeneralLedger/index' {
|
|
|
5703
5706
|
declare module '@layerfi/components/views/Reports/Reports' {
|
|
5704
5707
|
import React, { RefObject } from 'react';
|
|
5705
5708
|
import { BalanceSheetStringOverrides } from '@layerfi/components/components/BalanceSheet/BalanceSheet';
|
|
5709
|
+
import { DateRangeDatePickerModes } from '@layerfi/components/components/DatePicker/DatePicker';
|
|
5706
5710
|
import { ProfitAndLossCompareOptionsProps } from '@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions';
|
|
5707
5711
|
import { ProfitAndLossDetailedChartsStringOverrides } from '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts';
|
|
5708
5712
|
import { ProfitAndLossTableStringOverrides } from '@layerfi/components/components/ProfitAndLossTable/index';
|
|
5709
5713
|
import { StatementOfCashFlowStringOverrides } from '@layerfi/components/components/StatementOfCashFlow/StatementOfCashFlow';
|
|
5714
|
+
import { MoneyFormat } from '@layerfi/components/types';
|
|
5710
5715
|
interface ReportsStringOverrides {
|
|
5711
5716
|
title?: string;
|
|
5712
5717
|
downloadButton?: DownloadButtonStringOverrides;
|
|
@@ -5721,20 +5726,34 @@ declare module '@layerfi/components/views/Reports/Reports' {
|
|
|
5721
5726
|
title?: string;
|
|
5722
5727
|
stringOverrides?: ReportsStringOverrides;
|
|
5723
5728
|
enabledReports?: ReportType[];
|
|
5724
|
-
comparisonConfig
|
|
5729
|
+
comparisonConfig?: ProfitAndLossCompareOptionsProps;
|
|
5730
|
+
profitAndLossConfig?: {
|
|
5731
|
+
datePickerMode?: DateRangeDatePickerModes;
|
|
5732
|
+
csvMoneyFormat?: MoneyFormat;
|
|
5733
|
+
};
|
|
5734
|
+
statementOfCashFlowConfig?: {
|
|
5735
|
+
datePickerMode?: DateRangeDatePickerModes;
|
|
5736
|
+
};
|
|
5725
5737
|
}
|
|
5726
5738
|
type ReportType = 'profitAndLoss' | 'balanceSheet' | 'statementOfCashFlow';
|
|
5727
5739
|
export interface ReportsPanelProps {
|
|
5728
5740
|
containerRef: RefObject<HTMLDivElement>;
|
|
5729
5741
|
openReport: ReportType;
|
|
5730
5742
|
stringOverrides?: ReportsStringOverrides;
|
|
5731
|
-
comparisonConfig
|
|
5743
|
+
comparisonConfig?: ProfitAndLossCompareOptionsProps;
|
|
5744
|
+
profitAndLossConfig?: {
|
|
5745
|
+
datePickerMode?: DateRangeDatePickerModes;
|
|
5746
|
+
csvMoneyFormat?: MoneyFormat;
|
|
5747
|
+
};
|
|
5748
|
+
statementOfCashFlowConfig?: {
|
|
5749
|
+
datePickerMode?: DateRangeDatePickerModes;
|
|
5750
|
+
};
|
|
5732
5751
|
}
|
|
5733
5752
|
interface DownloadButtonStringOverrides {
|
|
5734
5753
|
downloadButtonText?: string;
|
|
5735
5754
|
retryButtonText?: string;
|
|
5736
5755
|
}
|
|
5737
|
-
export const Reports: ({ title, stringOverrides, enabledReports, comparisonConfig, }: ReportsProps) => React.JSX.Element;
|
|
5756
|
+
export const Reports: ({ title, stringOverrides, enabledReports, comparisonConfig, profitAndLossConfig, statementOfCashFlowConfig, }: ReportsProps) => React.JSX.Element;
|
|
5738
5757
|
export {};
|
|
5739
5758
|
|
|
5740
5759
|
}
|