@layerfi/components 0.1.70 → 0.1.72
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 +1934 -1734
- package/dist/esm/index.js.map +4 -4
- package/dist/index.d.ts +122 -47
- package/dist/index.js +2101 -1900
- package/dist/index.js.map +4 -4
- package/dist/styles/index.css +47 -1
- package/dist/styles/index.css.map +3 -3
- package/package.json +1 -1
- package/.idea/codeStyles/Project.xml +0 -61
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/layer-react.iml +0 -9
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -222,6 +222,10 @@ declare module '@layerfi/components/api/layer/journal' {
|
|
|
222
222
|
} | undefined) => Promise<{
|
|
223
223
|
data: JournalEntry[];
|
|
224
224
|
}>;
|
|
225
|
+
export const reverseJournalEntry: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
226
|
+
params?: Record<string, string | undefined> | undefined;
|
|
227
|
+
body?: Record<string, unknown> | undefined;
|
|
228
|
+
} | undefined) => Promise<{}>;
|
|
225
229
|
|
|
226
230
|
}
|
|
227
231
|
declare module '@layerfi/components/api/layer/linked_accounts' {
|
|
@@ -605,6 +609,10 @@ declare module '@layerfi/components/api/layer' {
|
|
|
605
609
|
} | undefined) => () => Promise<{
|
|
606
610
|
data: import("@layerfi/components/types").JournalEntry[];
|
|
607
611
|
}>;
|
|
612
|
+
reverseJournalEntry: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
613
|
+
params?: Record<string, string | undefined> | undefined;
|
|
614
|
+
body?: Record<string, unknown> | undefined;
|
|
615
|
+
} | undefined) => Promise<{}>;
|
|
608
616
|
compareProfitAndLoss: (baseUrl: string, accessToken: string | undefined, options?: {
|
|
609
617
|
params?: Record<string, string | undefined> | undefined;
|
|
610
618
|
body?: Record<string, unknown> | undefined;
|
|
@@ -1604,6 +1612,7 @@ declare module '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts'
|
|
|
1604
1612
|
withExpandAllButton?: boolean;
|
|
1605
1613
|
stringOverrides?: ChartOfAccountsStringOverrides;
|
|
1606
1614
|
templateAccountsEditable?: boolean;
|
|
1615
|
+
showReversalEntries?: boolean;
|
|
1607
1616
|
}
|
|
1608
1617
|
export const ChartOfAccounts: (props: ChartOfAccountsProps) => React.JSX.Element;
|
|
1609
1618
|
|
|
@@ -1796,18 +1805,19 @@ declare module '@layerfi/components/components/DataState/index' {
|
|
|
1796
1805
|
|
|
1797
1806
|
}
|
|
1798
1807
|
declare module '@layerfi/components/components/DatePicker/DatePicker' {
|
|
1799
|
-
import React from 'react';
|
|
1800
|
-
|
|
1801
|
-
|
|
1808
|
+
import React, { type FC } from 'react';
|
|
1809
|
+
import { CustomDateRange } from '@layerfi/components/components/DatePicker/DatePickerOptions';
|
|
1810
|
+
import type { DatePickerMode, DatePickerModeSelectorProps } from '@layerfi/components/components/DatePicker/ModeSelector/DatePickerModeSelector';
|
|
1802
1811
|
interface DatePickerProps {
|
|
1803
1812
|
mode: DatePickerMode;
|
|
1804
1813
|
selected: Date | [Date | null, Date | null];
|
|
1805
1814
|
onChange: (date: Date | [Date, Date | null]) => void;
|
|
1815
|
+
allowedModes?: ReadonlyArray<DatePickerMode>;
|
|
1806
1816
|
dateFormat?: string;
|
|
1807
1817
|
timeIntervals?: number;
|
|
1808
1818
|
timeCaption?: string;
|
|
1809
1819
|
placeholderText?: string;
|
|
1810
|
-
|
|
1820
|
+
customDateRanges?: CustomDateRange[];
|
|
1811
1821
|
wrapperClassName?: string;
|
|
1812
1822
|
calendarClassName?: string;
|
|
1813
1823
|
popperClassName?: string;
|
|
@@ -1815,18 +1825,41 @@ declare module '@layerfi/components/components/DatePicker/DatePicker' {
|
|
|
1815
1825
|
minDate?: Date;
|
|
1816
1826
|
maxDate?: Date;
|
|
1817
1827
|
navigateArrows?: boolean;
|
|
1828
|
+
onChangeMode?: (mode: DatePickerMode) => void;
|
|
1829
|
+
slots?: {
|
|
1830
|
+
ModeSelector: FC<DatePickerModeSelectorProps>;
|
|
1831
|
+
};
|
|
1818
1832
|
}
|
|
1819
|
-
export const DatePicker: ({ selected, onChange, mode, dateFormat, timeIntervals, timeCaption, placeholderText,
|
|
1833
|
+
export const DatePicker: ({ selected, onChange, mode, allowedModes, dateFormat, timeIntervals, timeCaption, placeholderText, customDateRanges, wrapperClassName, calendarClassName, popperClassName, minDate, maxDate, currentDateOption, navigateArrows, onChangeMode, slots, ...props }: DatePickerProps) => React.JSX.Element;
|
|
1820
1834
|
export {};
|
|
1821
1835
|
|
|
1822
1836
|
}
|
|
1823
1837
|
declare module '@layerfi/components/components/DatePicker/DatePickerOptions' {
|
|
1824
1838
|
import React from 'react';
|
|
1825
|
-
export
|
|
1826
|
-
|
|
1839
|
+
export type CustomDateRange = {
|
|
1840
|
+
label: string;
|
|
1841
|
+
startDate: Date;
|
|
1842
|
+
endDate: Date;
|
|
1843
|
+
};
|
|
1844
|
+
export const DatePickerOptions: ({ customDateRanges, setSelectedDate, }: {
|
|
1845
|
+
customDateRanges?: CustomDateRange[] | undefined;
|
|
1827
1846
|
setSelectedDate: (dates: [Date | null, Date | null]) => void;
|
|
1828
1847
|
}) => React.JSX.Element;
|
|
1829
1848
|
|
|
1849
|
+
}
|
|
1850
|
+
declare module '@layerfi/components/components/DatePicker/ModeSelector/DatePickerModeSelector' {
|
|
1851
|
+
import React from 'react';
|
|
1852
|
+
export type SingularPickerMode = 'dayPicker' | 'timePicker';
|
|
1853
|
+
export type RangePickerMode = 'dayRangePicker' | 'monthRangePicker' | 'monthPicker';
|
|
1854
|
+
export type DatePickerMode = SingularPickerMode | RangePickerMode;
|
|
1855
|
+
export const DEFAULT_ALLOWED_PICKER_MODES: readonly ["monthPicker"];
|
|
1856
|
+
export type DatePickerModeSelectorProps = {
|
|
1857
|
+
mode: DatePickerMode;
|
|
1858
|
+
allowedModes: ReadonlyArray<DatePickerMode>;
|
|
1859
|
+
onChangeMode: (mode: DatePickerMode) => void;
|
|
1860
|
+
};
|
|
1861
|
+
export function DatePickerModeSelector({ mode, allowedModes, onChangeMode, }: DatePickerModeSelectorProps): React.JSX.Element | null;
|
|
1862
|
+
|
|
1830
1863
|
}
|
|
1831
1864
|
declare module '@layerfi/components/components/DatePicker/index' {
|
|
1832
1865
|
export { DatePicker } from '@layerfi/components/components/DatePicker/DatePicker';
|
|
@@ -2436,6 +2469,19 @@ declare module '@layerfi/components/components/LinkedAccountThumb/LinkedAccountT
|
|
|
2436
2469
|
declare module '@layerfi/components/components/LinkedAccountThumb/index' {
|
|
2437
2470
|
export { LinkedAccountThumb } from '@layerfi/components/components/LinkedAccountThumb/LinkedAccountThumb';
|
|
2438
2471
|
|
|
2472
|
+
}
|
|
2473
|
+
declare module '@layerfi/components/components/LinkedAccounts/LinkedAccountItemThumb' {
|
|
2474
|
+
import React from 'react';
|
|
2475
|
+
import { LinkedAccount } from '@layerfi/components/types/linked_accounts';
|
|
2476
|
+
export interface LinkedAccountItemThumbProps {
|
|
2477
|
+
account: LinkedAccount;
|
|
2478
|
+
asWidget?: boolean;
|
|
2479
|
+
showLedgerBalance?: boolean;
|
|
2480
|
+
showUnlinkItem?: boolean;
|
|
2481
|
+
showBreakConnection?: boolean;
|
|
2482
|
+
}
|
|
2483
|
+
export const LinkedAccountItemThumb: ({ account, asWidget, showLedgerBalance, showUnlinkItem, showBreakConnection, }: LinkedAccountItemThumbProps) => React.JSX.Element;
|
|
2484
|
+
|
|
2439
2485
|
}
|
|
2440
2486
|
declare module '@layerfi/components/components/LinkedAccounts/LinkedAccounts' {
|
|
2441
2487
|
import React from 'react';
|
|
@@ -2467,6 +2513,7 @@ declare module '@layerfi/components/components/LinkedAccounts/LinkedAccountsCont
|
|
|
2467
2513
|
}
|
|
2468
2514
|
declare module '@layerfi/components/components/LinkedAccounts/index' {
|
|
2469
2515
|
export { LinkedAccounts } from '@layerfi/components/components/LinkedAccounts/LinkedAccounts';
|
|
2516
|
+
export { LinkedAccountItemThumb } from '@layerfi/components/components/LinkedAccounts/LinkedAccountItemThumb';
|
|
2470
2517
|
|
|
2471
2518
|
}
|
|
2472
2519
|
declare module '@layerfi/components/components/Loader/Loader' {
|
|
@@ -2602,6 +2649,32 @@ declare module '@layerfi/components/components/Pill/Pill' {
|
|
|
2602
2649
|
export const Pill: ({ children, kind, onHover }: Props) => React.JSX.Element;
|
|
2603
2650
|
export {};
|
|
2604
2651
|
|
|
2652
|
+
}
|
|
2653
|
+
declare module '@layerfi/components/components/PlatformOnboarding/LinkAccounts' {
|
|
2654
|
+
import React from 'react';
|
|
2655
|
+
export interface LinkAccountsStringOverrides {
|
|
2656
|
+
backButtonText?: string;
|
|
2657
|
+
nextButtonText?: string;
|
|
2658
|
+
}
|
|
2659
|
+
export interface LinkAccountsProps {
|
|
2660
|
+
title?: string;
|
|
2661
|
+
asWidget?: boolean;
|
|
2662
|
+
showLedgerBalance?: boolean;
|
|
2663
|
+
showUnlinkItem?: boolean;
|
|
2664
|
+
showBreakConnection?: boolean;
|
|
2665
|
+
hideLoading?: boolean;
|
|
2666
|
+
inBox?: boolean;
|
|
2667
|
+
stringOverrides?: LinkAccountsStringOverrides;
|
|
2668
|
+
onBack?: () => void;
|
|
2669
|
+
onNext?: () => void;
|
|
2670
|
+
}
|
|
2671
|
+
export const LinkAccounts: ({ inBox, ...props }: LinkAccountsProps) => React.JSX.Element;
|
|
2672
|
+
export const LinkAccountsContent: ({ title, asWidget, showLedgerBalance, showUnlinkItem, showBreakConnection, hideLoading, stringOverrides, onBack, onNext, }: LinkAccountsProps) => React.JSX.Element;
|
|
2673
|
+
|
|
2674
|
+
}
|
|
2675
|
+
declare module '@layerfi/components/components/PlatformOnboarding/index' {
|
|
2676
|
+
export { LinkAccounts } from '@layerfi/components/components/PlatformOnboarding/LinkAccounts';
|
|
2677
|
+
|
|
2605
2678
|
}
|
|
2606
2679
|
declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
|
|
2607
2680
|
import React, { PropsWithChildren } from 'react';
|
|
@@ -2653,7 +2726,7 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
|
|
|
2653
2726
|
error?: unknown;
|
|
2654
2727
|
}>;
|
|
2655
2728
|
}>;
|
|
2656
|
-
DatePicker: ({ datePickerMode, }: import("@layerfi/components/
|
|
2729
|
+
DatePicker: ({ allowedDatePickerModes, datePickerMode: deprecated_datePickerMode, defaultDatePickerMode, customDateRanges, }: import("@layerfi/components/views/Reports/reportTypes").TimeRangePickerConfig) => React.JSX.Element;
|
|
2657
2730
|
CompareOptions: ({ tagComparisonOptions, defaultTagFilter: defaultOption, }: import("@layerfi/components/components/ProfitAndLossCompareOptions/index").ProfitAndLossCompareOptionsProps) => React.JSX.Element;
|
|
2658
2731
|
Summaries: ({ vertical, actionable, revenueLabel, stringOverrides, }: {
|
|
2659
2732
|
vertical?: boolean | undefined;
|
|
@@ -2670,7 +2743,7 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
|
|
|
2670
2743
|
stringOverrides?: import("@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts").ProfitAndLossDetailedChartsStringOverrides | undefined;
|
|
2671
2744
|
}) => React.JSX.Element;
|
|
2672
2745
|
Header: ({ text, className, headingClassName, withDatePicker, }: import("@layerfi/components/components/ProfitAndLossHeader/ProfitAndLossHeader").ProfitAndLossHeaderProps) => React.JSX.Element;
|
|
2673
|
-
Report: ({ stringOverrides, comparisonConfig, datePickerMode, csvMoneyFormat, parentRef, view, }: import("@layerfi/components/components/ProfitAndLossReport/ProfitAndLossReport").ProfitAndLossReportProps) => React.JSX.Element;
|
|
2746
|
+
Report: ({ stringOverrides, comparisonConfig, allowedDatePickerModes, datePickerMode, defaultDatePickerMode, customDateRanges, csvMoneyFormat, parentRef, view, }: import("@layerfi/components/components/ProfitAndLossReport/ProfitAndLossReport").ProfitAndLossReportProps) => React.JSX.Element;
|
|
2674
2747
|
DownloadButton: ({ stringOverrides, useComparisonPnl, moneyFormat, view, }: import("@layerfi/components/components/ProfitAndLossDownloadButton/ProfitAndLossDownloadButton").ProfitAndLossDownloadButtonProps) => React.JSX.Element;
|
|
2675
2748
|
};
|
|
2676
2749
|
export { ProfitAndLoss };
|
|
@@ -2745,11 +2818,9 @@ declare module '@layerfi/components/components/ProfitAndLossCompareOptions/index
|
|
|
2745
2818
|
}
|
|
2746
2819
|
declare module '@layerfi/components/components/ProfitAndLossDatePicker/ProfitAndLossDatePicker' {
|
|
2747
2820
|
import React from 'react';
|
|
2748
|
-
import {
|
|
2749
|
-
export type ProfitAndLossDatePickerProps =
|
|
2750
|
-
|
|
2751
|
-
};
|
|
2752
|
-
export const ProfitAndLossDatePicker: ({ datePickerMode, }: ProfitAndLossDatePickerProps) => React.JSX.Element;
|
|
2821
|
+
import type { TimeRangePickerConfig } from '@layerfi/components/views/Reports/reportTypes';
|
|
2822
|
+
export type ProfitAndLossDatePickerProps = TimeRangePickerConfig;
|
|
2823
|
+
export const ProfitAndLossDatePicker: ({ allowedDatePickerModes, datePickerMode: deprecated_datePickerMode, defaultDatePickerMode, customDateRanges, }: ProfitAndLossDatePickerProps) => React.JSX.Element;
|
|
2753
2824
|
|
|
2754
2825
|
}
|
|
2755
2826
|
declare module '@layerfi/components/components/ProfitAndLossDatePicker/index' {
|
|
@@ -2875,21 +2946,18 @@ declare module '@layerfi/components/components/ProfitAndLossHeader/index' {
|
|
|
2875
2946
|
}
|
|
2876
2947
|
declare module '@layerfi/components/components/ProfitAndLossReport/ProfitAndLossReport' {
|
|
2877
2948
|
import React, { RefObject } from 'react';
|
|
2878
|
-
import { MoneyFormat } from '@layerfi/components/types';
|
|
2879
2949
|
import { View as ViewType } from '@layerfi/components/types/general';
|
|
2880
2950
|
import { ReportsStringOverrides } from '@layerfi/components/views/Reports/Reports';
|
|
2881
|
-
import {
|
|
2951
|
+
import type { TimeRangePickerConfig } from '@layerfi/components/views/Reports/reportTypes';
|
|
2882
2952
|
import { ProfitAndLossCompareOptionsProps } from '@layerfi/components/components/ProfitAndLossCompareOptions/index';
|
|
2883
2953
|
type ViewBreakpoint = ViewType | undefined;
|
|
2884
|
-
export
|
|
2954
|
+
export type ProfitAndLossReportProps = {
|
|
2885
2955
|
stringOverrides?: ReportsStringOverrides;
|
|
2886
2956
|
comparisonConfig?: ProfitAndLossCompareOptionsProps;
|
|
2887
|
-
datePickerMode?: DateRangeDatePickerModes;
|
|
2888
|
-
csvMoneyFormat?: MoneyFormat;
|
|
2889
2957
|
parentRef?: RefObject<HTMLDivElement>;
|
|
2890
2958
|
view?: ViewBreakpoint;
|
|
2891
|
-
}
|
|
2892
|
-
export const ProfitAndLossReport: ({ stringOverrides, comparisonConfig, datePickerMode, csvMoneyFormat, parentRef, view, }: ProfitAndLossReportProps) => React.JSX.Element;
|
|
2959
|
+
} & TimeRangePickerConfig;
|
|
2960
|
+
export const ProfitAndLossReport: ({ stringOverrides, comparisonConfig, allowedDatePickerModes, datePickerMode, defaultDatePickerMode, customDateRanges, csvMoneyFormat, parentRef, view, }: ProfitAndLossReportProps) => React.JSX.Element;
|
|
2893
2961
|
export {};
|
|
2894
2962
|
|
|
2895
2963
|
}
|
|
@@ -3042,17 +3110,15 @@ declare module '@layerfi/components/components/SkeletonTableLoader/index' {
|
|
|
3042
3110
|
}
|
|
3043
3111
|
declare module '@layerfi/components/components/StatementOfCashFlow/StatementOfCashFlow' {
|
|
3044
3112
|
import React from 'react';
|
|
3045
|
-
import {
|
|
3113
|
+
import type { TimeRangePickerConfig } from '@layerfi/components/views/Reports/reportTypes';
|
|
3046
3114
|
import { StatementOfCashFlowTableStringOverrides } from '@layerfi/components/components/StatementOfCashFlowTable/StatementOfCashFlowTable';
|
|
3047
3115
|
export interface StatementOfCashFlowStringOverrides {
|
|
3048
3116
|
statementOfCashFlowTable?: StatementOfCashFlowTableStringOverrides;
|
|
3049
|
-
datePickerMode?: DatePickerMode;
|
|
3050
3117
|
}
|
|
3051
|
-
export
|
|
3118
|
+
export type StatementOfCashFlowProps = {
|
|
3052
3119
|
stringOverrides?: StatementOfCashFlowStringOverrides;
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
export const StatementOfCashFlow: ({ stringOverrides, datePickerMode, }: StatementOfCashFlowProps) => React.JSX.Element;
|
|
3120
|
+
} & TimeRangePickerConfig;
|
|
3121
|
+
export const StatementOfCashFlow: (props: StatementOfCashFlowProps) => React.JSX.Element;
|
|
3056
3122
|
|
|
3057
3123
|
}
|
|
3058
3124
|
declare module '@layerfi/components/components/StatementOfCashFlow/constants' {
|
|
@@ -3835,6 +3901,7 @@ declare module '@layerfi/components/contexts/JournalContext/JournalContext' {
|
|
|
3835
3901
|
setForm: (form?: import("@layerfi/components/hooks/useJournal/useJournal").JournalFormTypes | undefined) => void;
|
|
3836
3902
|
addEntryLine: (direction: import("@layerfi/components/index").Direction) => void;
|
|
3837
3903
|
removeEntryLine: (index: number) => void;
|
|
3904
|
+
reverseEntry: (entryId: string) => Promise<{}>;
|
|
3838
3905
|
}>;
|
|
3839
3906
|
|
|
3840
3907
|
}
|
|
@@ -4188,6 +4255,7 @@ declare module '@layerfi/components/hooks/useJournal/index' {
|
|
|
4188
4255
|
|
|
4189
4256
|
}
|
|
4190
4257
|
declare module '@layerfi/components/hooks/useJournal/useJournal' {
|
|
4258
|
+
import { Layer } from '@layerfi/components/api/layer';
|
|
4191
4259
|
import { Direction, FormError, FormErrorWithId } from '@layerfi/components/types';
|
|
4192
4260
|
import { LedgerAccountBalance } from '@layerfi/components/types/chart_of_accounts';
|
|
4193
4261
|
import { BaseSelectOption } from '@layerfi/components/types/general';
|
|
@@ -4215,6 +4283,7 @@ declare module '@layerfi/components/hooks/useJournal/useJournal' {
|
|
|
4215
4283
|
setForm: (form?: JournalFormTypes) => void;
|
|
4216
4284
|
addEntryLine: (direction: Direction) => void;
|
|
4217
4285
|
removeEntryLine: (index: number) => void;
|
|
4286
|
+
reverseEntry: (entryId: string) => ReturnType<typeof Layer.reverseJournalEntry>;
|
|
4218
4287
|
};
|
|
4219
4288
|
export interface JournalFormTypes {
|
|
4220
4289
|
action: string;
|
|
@@ -4234,7 +4303,7 @@ declare module '@layerfi/components/hooks/useLedgerAccounts/index' {
|
|
|
4234
4303
|
}
|
|
4235
4304
|
declare module '@layerfi/components/hooks/useLedgerAccounts/useLedgerAccounts' {
|
|
4236
4305
|
import { LedgerAccounts, LedgerAccountsEntry } from '@layerfi/components/types';
|
|
4237
|
-
type UseLedgerAccounts = () => {
|
|
4306
|
+
type UseLedgerAccounts = (showReversalEntries: Boolean) => {
|
|
4238
4307
|
data?: LedgerAccounts;
|
|
4239
4308
|
entryData?: LedgerAccountsEntry;
|
|
4240
4309
|
isLoading?: boolean;
|
|
@@ -4848,6 +4917,7 @@ declare module '@layerfi/components/index' {
|
|
|
4848
4917
|
export { ChartOfAccounts } from '@layerfi/components/components/ChartOfAccounts/index';
|
|
4849
4918
|
export { Journal } from '@layerfi/components/components/Journal/index';
|
|
4850
4919
|
export { Tasks } from '@layerfi/components/components/Tasks/index';
|
|
4920
|
+
export { LinkAccounts } from '@layerfi/components/components/PlatformOnboarding/index';
|
|
4851
4921
|
export { BookkeepingUpsellBar } from '@layerfi/components/components/UpsellBanner/index';
|
|
4852
4922
|
export { BookkeepingOverview } from '@layerfi/components/views/BookkeepingOverview/index';
|
|
4853
4923
|
export { AccountingOverview } from '@layerfi/components/views/AccountingOverview/index';
|
|
@@ -5049,7 +5119,6 @@ declare module '@layerfi/components/types/bank_transactions' {
|
|
|
5049
5119
|
suggested_matches?: SuggestedMatch[];
|
|
5050
5120
|
match?: BankTransactionMatch;
|
|
5051
5121
|
document_ids: String[];
|
|
5052
|
-
metadata: BankTransactionMetadata;
|
|
5053
5122
|
}
|
|
5054
5123
|
export interface SuggestedMatch {
|
|
5055
5124
|
id: string;
|
|
@@ -6055,6 +6124,7 @@ declare module '@layerfi/components/views/GeneralLedger/GeneralLedger' {
|
|
|
6055
6124
|
}
|
|
6056
6125
|
export interface ChartOfAccountsOptions {
|
|
6057
6126
|
templateAccountsEditable?: boolean;
|
|
6127
|
+
showReversalEntries?: boolean;
|
|
6058
6128
|
}
|
|
6059
6129
|
export interface GeneralLedgerProps {
|
|
6060
6130
|
title?: string;
|
|
@@ -6071,7 +6141,7 @@ declare module '@layerfi/components/views/GeneralLedger/index' {
|
|
|
6071
6141
|
}
|
|
6072
6142
|
declare module '@layerfi/components/views/ProjectProfitability/ProjectProfitability' {
|
|
6073
6143
|
import React from 'react';
|
|
6074
|
-
import {
|
|
6144
|
+
import { RangePickerMode } from '@layerfi/components/components/DatePicker/ModeSelector/DatePickerModeSelector';
|
|
6075
6145
|
import { MoneyFormat } from '@layerfi/components/types';
|
|
6076
6146
|
export type TagOption = {
|
|
6077
6147
|
label: string;
|
|
@@ -6085,7 +6155,7 @@ declare module '@layerfi/components/views/ProjectProfitability/ProjectProfitabil
|
|
|
6085
6155
|
valueOptions: TagOption[];
|
|
6086
6156
|
showTitle?: boolean;
|
|
6087
6157
|
stringOverrides?: ProjectsStringOverrides;
|
|
6088
|
-
datePickerMode?:
|
|
6158
|
+
datePickerMode?: RangePickerMode;
|
|
6089
6159
|
csvMoneyFormat?: MoneyFormat;
|
|
6090
6160
|
}
|
|
6091
6161
|
export const ProjectProfitabilityView: ({ valueOptions, showTitle, stringOverrides, datePickerMode, csvMoneyFormat, }: ProjectProfitabilityProps) => React.JSX.Element;
|
|
@@ -6098,14 +6168,13 @@ declare module '@layerfi/components/views/ProjectProfitability/index' {
|
|
|
6098
6168
|
declare module '@layerfi/components/views/Reports/Reports' {
|
|
6099
6169
|
import React, { RefObject } from 'react';
|
|
6100
6170
|
import { BalanceSheetStringOverrides } from '@layerfi/components/components/BalanceSheet/BalanceSheet';
|
|
6101
|
-
import { DateRangeDatePickerModes } from '@layerfi/components/components/DatePicker/DatePicker';
|
|
6102
6171
|
import { ProfitAndLossCompareOptionsProps } from '@layerfi/components/components/ProfitAndLossCompareOptions/ProfitAndLossCompareOptions';
|
|
6103
6172
|
import { ProfitAndLossDetailedChartsStringOverrides } from '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts';
|
|
6104
6173
|
import { PnLDownloadButtonStringOverrides } from '@layerfi/components/components/ProfitAndLossDownloadButton/index';
|
|
6105
6174
|
import { ProfitAndLossTableStringOverrides } from '@layerfi/components/components/ProfitAndLossTable/index';
|
|
6106
6175
|
import { StatementOfCashFlowStringOverrides } from '@layerfi/components/components/StatementOfCashFlow/StatementOfCashFlow';
|
|
6107
|
-
import { MoneyFormat } from '@layerfi/components/types';
|
|
6108
6176
|
import { View as ViewType } from '@layerfi/components/types/general';
|
|
6177
|
+
import type { TimeRangePickerConfig } from '@layerfi/components/views/Reports/reportTypes';
|
|
6109
6178
|
type ViewBreakpoint = ViewType | undefined;
|
|
6110
6179
|
export interface ReportsStringOverrides {
|
|
6111
6180
|
title?: string;
|
|
@@ -6123,13 +6192,8 @@ declare module '@layerfi/components/views/Reports/Reports' {
|
|
|
6123
6192
|
stringOverrides?: ReportsStringOverrides;
|
|
6124
6193
|
enabledReports?: ReportType[];
|
|
6125
6194
|
comparisonConfig?: ProfitAndLossCompareOptionsProps;
|
|
6126
|
-
profitAndLossConfig?:
|
|
6127
|
-
|
|
6128
|
-
csvMoneyFormat?: MoneyFormat;
|
|
6129
|
-
};
|
|
6130
|
-
statementOfCashFlowConfig?: {
|
|
6131
|
-
datePickerMode?: DateRangeDatePickerModes;
|
|
6132
|
-
};
|
|
6195
|
+
profitAndLossConfig?: TimeRangePickerConfig;
|
|
6196
|
+
statementOfCashFlowConfig?: TimeRangePickerConfig;
|
|
6133
6197
|
}
|
|
6134
6198
|
type ReportType = 'profitAndLoss' | 'balanceSheet' | 'statementOfCashFlow';
|
|
6135
6199
|
export interface ReportsPanelProps {
|
|
@@ -6137,13 +6201,8 @@ declare module '@layerfi/components/views/Reports/Reports' {
|
|
|
6137
6201
|
openReport: ReportType;
|
|
6138
6202
|
stringOverrides?: ReportsStringOverrides;
|
|
6139
6203
|
comparisonConfig?: ProfitAndLossCompareOptionsProps;
|
|
6140
|
-
profitAndLossConfig?:
|
|
6141
|
-
|
|
6142
|
-
csvMoneyFormat?: MoneyFormat;
|
|
6143
|
-
};
|
|
6144
|
-
statementOfCashFlowConfig?: {
|
|
6145
|
-
datePickerMode?: DateRangeDatePickerModes;
|
|
6146
|
-
};
|
|
6204
|
+
profitAndLossConfig?: TimeRangePickerConfig;
|
|
6205
|
+
statementOfCashFlowConfig?: TimeRangePickerConfig;
|
|
6147
6206
|
view: ViewBreakpoint;
|
|
6148
6207
|
}
|
|
6149
6208
|
export const Reports: ({ title, showTitle, stringOverrides, enabledReports, comparisonConfig, profitAndLossConfig, statementOfCashFlowConfig, }: ReportsProps) => React.JSX.Element;
|
|
@@ -6153,6 +6212,22 @@ declare module '@layerfi/components/views/Reports/Reports' {
|
|
|
6153
6212
|
declare module '@layerfi/components/views/Reports/index' {
|
|
6154
6213
|
export { Reports } from '@layerfi/components/views/Reports/Reports';
|
|
6155
6214
|
|
|
6215
|
+
}
|
|
6216
|
+
declare module '@layerfi/components/views/Reports/reportTypes' {
|
|
6217
|
+
import type { CustomDateRange } from '@layerfi/components/components/DatePicker/DatePickerOptions';
|
|
6218
|
+
import type { RangePickerMode } from '@layerfi/components/components/DatePicker/ModeSelector/DatePickerModeSelector';
|
|
6219
|
+
import type { MoneyFormat } from '@layerfi/components/types';
|
|
6220
|
+
export type TimeRangePickerConfig = {
|
|
6221
|
+
/**
|
|
6222
|
+
* @deprecated Use `defaultDatePickerMode` instead
|
|
6223
|
+
*/
|
|
6224
|
+
datePickerMode?: RangePickerMode;
|
|
6225
|
+
defaultDatePickerMode?: RangePickerMode;
|
|
6226
|
+
allowedDatePickerModes?: ReadonlyArray<RangePickerMode>;
|
|
6227
|
+
csvMoneyFormat?: MoneyFormat;
|
|
6228
|
+
customDateRanges?: CustomDateRange[];
|
|
6229
|
+
};
|
|
6230
|
+
|
|
6156
6231
|
}
|
|
6157
6232
|
declare module '@layerfi/components' {
|
|
6158
6233
|
import main = require('@layerfi/components/index');
|