@layerfi/components 0.1.38 → 0.1.40
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 +1982 -1521
- package/dist/esm/index.js.map +4 -4
- package/dist/index.d.ts +434 -51
- package/dist/index.js +2108 -1647
- package/dist/index.js.map +4 -4
- package/dist/styles/index.css +160 -12
- package/dist/styles/index.css.map +2 -2
- 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
|
@@ -777,13 +777,19 @@ declare module '@layerfi/components/components/BadgeLoader/index' {
|
|
|
777
777
|
}
|
|
778
778
|
declare module '@layerfi/components/components/BalanceSheet/BalanceSheet' {
|
|
779
779
|
import React, { PropsWithChildren } from 'react';
|
|
780
|
+
import { BalanceSheetTableStringOverrides } from '@layerfi/components/components/BalanceSheetTable/BalanceSheetTable';
|
|
781
|
+
export interface BalanceSheetStringOverrides {
|
|
782
|
+
balanceSheetTable?: BalanceSheetTableStringOverrides;
|
|
783
|
+
}
|
|
780
784
|
export type BalanceSheetViewProps = PropsWithChildren & {
|
|
781
785
|
withExpandAllButton?: boolean;
|
|
782
786
|
asWidget?: boolean;
|
|
787
|
+
stringOverrides?: BalanceSheetStringOverrides;
|
|
783
788
|
};
|
|
784
789
|
export type BalanceSheetProps = PropsWithChildren & {
|
|
785
790
|
effectiveDate?: Date;
|
|
786
791
|
asWidget?: boolean;
|
|
792
|
+
stringOverrides?: BalanceSheetStringOverrides;
|
|
787
793
|
};
|
|
788
794
|
export const BalanceSheet: (props: BalanceSheetProps) => React.JSX.Element;
|
|
789
795
|
|
|
@@ -825,14 +831,19 @@ declare module '@layerfi/components/components/BalanceSheetExpandAllButton/index
|
|
|
825
831
|
declare module '@layerfi/components/components/BalanceSheetTable/BalanceSheetTable' {
|
|
826
832
|
import React from 'react';
|
|
827
833
|
import { BalanceSheet } from '@layerfi/components/types';
|
|
834
|
+
export interface BalanceSheetTableStringOverrides {
|
|
835
|
+
typeColumnHeader?: string;
|
|
836
|
+
totalColumnHeader?: string;
|
|
837
|
+
}
|
|
828
838
|
type BalanceSheetRowProps = {
|
|
829
839
|
name: string;
|
|
830
840
|
displayName: string;
|
|
831
841
|
lineItem: string;
|
|
832
842
|
};
|
|
833
|
-
export const BalanceSheetTable: ({ data, config, }: {
|
|
843
|
+
export const BalanceSheetTable: ({ data, config, stringOverrides, }: {
|
|
834
844
|
data: BalanceSheet;
|
|
835
845
|
config: BalanceSheetRowProps[];
|
|
846
|
+
stringOverrides?: BalanceSheetTableStringOverrides | undefined;
|
|
836
847
|
}) => React.JSX.Element;
|
|
837
848
|
export {};
|
|
838
849
|
|
|
@@ -853,6 +864,7 @@ declare module '@layerfi/components/components/BankTransactionList/Assignment' {
|
|
|
853
864
|
declare module '@layerfi/components/components/BankTransactionList/BankTransactionList' {
|
|
854
865
|
import React from 'react';
|
|
855
866
|
import { BankTransaction } from '@layerfi/components/types';
|
|
867
|
+
import { BankTransactionCTAStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactions';
|
|
856
868
|
interface BankTransactionListProps {
|
|
857
869
|
bankTransactions?: BankTransaction[];
|
|
858
870
|
editable: boolean;
|
|
@@ -860,14 +872,17 @@ declare module '@layerfi/components/components/BankTransactionList/BankTransacti
|
|
|
860
872
|
removeTransaction: (bt: BankTransaction) => void;
|
|
861
873
|
showDescriptions?: boolean;
|
|
862
874
|
showReceiptUploads?: boolean;
|
|
875
|
+
hardRefreshPnlOnCategorize?: boolean;
|
|
876
|
+
stringOverrides?: BankTransactionCTAStringOverrides;
|
|
863
877
|
}
|
|
864
|
-
export const BankTransactionList: ({ bankTransactions, editable, removeTransaction, containerWidth, showDescriptions, showReceiptUploads, }: BankTransactionListProps) => React.JSX.Element;
|
|
878
|
+
export const BankTransactionList: ({ bankTransactions, editable, removeTransaction, containerWidth, showDescriptions, showReceiptUploads, hardRefreshPnlOnCategorize, stringOverrides, }: BankTransactionListProps) => React.JSX.Element;
|
|
865
879
|
export {};
|
|
866
880
|
|
|
867
881
|
}
|
|
868
882
|
declare module '@layerfi/components/components/BankTransactionList/BankTransactionListItem' {
|
|
869
883
|
import React from 'react';
|
|
870
884
|
import { BankTransaction } from '@layerfi/components/types';
|
|
885
|
+
import { BankTransactionCTAStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactions';
|
|
871
886
|
type Props = {
|
|
872
887
|
index: number;
|
|
873
888
|
dateFormat: string;
|
|
@@ -875,10 +890,12 @@ declare module '@layerfi/components/components/BankTransactionList/BankTransacti
|
|
|
875
890
|
editable: boolean;
|
|
876
891
|
showDescriptions: boolean;
|
|
877
892
|
showReceiptUploads: boolean;
|
|
893
|
+
hardRefreshPnlOnCategorize: boolean;
|
|
878
894
|
removeTransaction: (bt: BankTransaction) => void;
|
|
879
895
|
containerWidth?: number;
|
|
896
|
+
stringOverrides?: BankTransactionCTAStringOverrides;
|
|
880
897
|
};
|
|
881
|
-
export const BankTransactionListItem: ({ index, dateFormat, bankTransaction, editable, showDescriptions, showReceiptUploads, containerWidth, removeTransaction, }: Props) => React.JSX.Element;
|
|
898
|
+
export const BankTransactionListItem: ({ index, dateFormat, bankTransaction, editable, showDescriptions, showReceiptUploads, hardRefreshPnlOnCategorize, containerWidth, removeTransaction, stringOverrides, }: Props) => React.JSX.Element;
|
|
882
899
|
export {};
|
|
883
900
|
|
|
884
901
|
}
|
|
@@ -893,8 +910,9 @@ declare module '@layerfi/components/components/BankTransactionMobileList/BankTra
|
|
|
893
910
|
interface BankTransactionMobileFormsProps {
|
|
894
911
|
purpose: Purpose;
|
|
895
912
|
bankTransaction: BankTransaction;
|
|
913
|
+
hardRefreshPnlOnCategorize?: boolean;
|
|
896
914
|
}
|
|
897
|
-
export const BankTransactionMobileForms: ({ purpose, bankTransaction, }: BankTransactionMobileFormsProps) => React.JSX.Element;
|
|
915
|
+
export const BankTransactionMobileForms: ({ purpose, bankTransaction, hardRefreshPnlOnCategorize }: BankTransactionMobileFormsProps) => React.JSX.Element;
|
|
898
916
|
export {};
|
|
899
917
|
|
|
900
918
|
}
|
|
@@ -906,8 +924,9 @@ declare module '@layerfi/components/components/BankTransactionMobileList/BankTra
|
|
|
906
924
|
editable: boolean;
|
|
907
925
|
removeTransaction: (bt: BankTransaction) => void;
|
|
908
926
|
initialLoad?: boolean;
|
|
927
|
+
hardRefreshPnlOnCategorize?: boolean;
|
|
909
928
|
}
|
|
910
|
-
export const BankTransactionMobileList: ({ bankTransactions, removeTransaction, editable, initialLoad, }: BankTransactionMobileListProps) => React.JSX.Element;
|
|
929
|
+
export const BankTransactionMobileList: ({ bankTransactions, removeTransaction, editable, initialLoad, hardRefreshPnlOnCategorize }: BankTransactionMobileListProps) => React.JSX.Element;
|
|
911
930
|
|
|
912
931
|
}
|
|
913
932
|
declare module '@layerfi/components/components/BankTransactionMobileList/BankTransactionMobileListItem' {
|
|
@@ -919,13 +938,14 @@ declare module '@layerfi/components/components/BankTransactionMobileList/BankTra
|
|
|
919
938
|
editable: boolean;
|
|
920
939
|
removeTransaction: (bt: BankTransaction) => void;
|
|
921
940
|
initialLoad?: boolean;
|
|
941
|
+
hardRefreshPnlOnCategorize?: boolean;
|
|
922
942
|
}
|
|
923
943
|
export enum Purpose {
|
|
924
944
|
business = "business",
|
|
925
945
|
personal = "personal",
|
|
926
946
|
more = "more"
|
|
927
947
|
}
|
|
928
|
-
export const BankTransactionMobileListItem: ({ index, bankTransaction, removeTransaction, editable, initialLoad, }: BankTransactionMobileListItemProps) => React.JSX.Element;
|
|
948
|
+
export const BankTransactionMobileListItem: ({ index, bankTransaction, removeTransaction, editable, initialLoad, hardRefreshPnlOnCategorize }: BankTransactionMobileListItemProps) => React.JSX.Element;
|
|
929
949
|
|
|
930
950
|
}
|
|
931
951
|
declare module '@layerfi/components/components/BankTransactionMobileList/BusinessCategories' {
|
|
@@ -942,16 +962,18 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Busines
|
|
|
942
962
|
import { BankTransaction } from '@layerfi/components/types';
|
|
943
963
|
interface BusinessFormProps {
|
|
944
964
|
bankTransaction: BankTransaction;
|
|
965
|
+
hardRefreshPnlOnCategorize?: boolean;
|
|
945
966
|
}
|
|
946
|
-
export const BusinessForm: ({ bankTransaction }: BusinessFormProps) => React.JSX.Element;
|
|
967
|
+
export const BusinessForm: ({ bankTransaction, hardRefreshPnlOnCategorize }: BusinessFormProps) => React.JSX.Element;
|
|
947
968
|
export {};
|
|
948
969
|
|
|
949
970
|
}
|
|
950
971
|
declare module '@layerfi/components/components/BankTransactionMobileList/MatchForm' {
|
|
951
972
|
import React from 'react';
|
|
952
973
|
import { BankTransaction } from '@layerfi/components/types';
|
|
953
|
-
export const MatchForm: ({ bankTransaction, }: {
|
|
974
|
+
export const MatchForm: ({ bankTransaction, hardRefreshPnlOnCategorize }: {
|
|
954
975
|
bankTransaction: BankTransaction;
|
|
976
|
+
hardRefreshPnlOnCategorize?: boolean | undefined;
|
|
955
977
|
}) => React.JSX.Element;
|
|
956
978
|
|
|
957
979
|
}
|
|
@@ -960,8 +982,9 @@ declare module '@layerfi/components/components/BankTransactionMobileList/Persona
|
|
|
960
982
|
import { BankTransaction } from '@layerfi/components/types';
|
|
961
983
|
interface PersonalFormProps {
|
|
962
984
|
bankTransaction: BankTransaction;
|
|
985
|
+
hardRefreshPnlOnCategorize?: boolean;
|
|
963
986
|
}
|
|
964
|
-
export const PersonalForm: ({ bankTransaction }: PersonalFormProps) => React.JSX.Element;
|
|
987
|
+
export const PersonalForm: ({ bankTransaction, hardRefreshPnlOnCategorize }: PersonalFormProps) => React.JSX.Element;
|
|
965
988
|
export {};
|
|
966
989
|
|
|
967
990
|
}
|
|
@@ -970,16 +993,18 @@ declare module '@layerfi/components/components/BankTransactionMobileList/SplitAn
|
|
|
970
993
|
import { BankTransaction } from '@layerfi/components/types';
|
|
971
994
|
interface SplitAndMatchFormProps {
|
|
972
995
|
bankTransaction: BankTransaction;
|
|
996
|
+
hardRefreshPnlOnCategorize?: boolean;
|
|
973
997
|
}
|
|
974
|
-
export const SplitAndMatchForm: ({ bankTransaction, }: SplitAndMatchFormProps) => React.JSX.Element;
|
|
998
|
+
export const SplitAndMatchForm: ({ bankTransaction, hardRefreshPnlOnCategorize }: SplitAndMatchFormProps) => React.JSX.Element;
|
|
975
999
|
export {};
|
|
976
1000
|
|
|
977
1001
|
}
|
|
978
1002
|
declare module '@layerfi/components/components/BankTransactionMobileList/SplitForm' {
|
|
979
1003
|
import React from 'react';
|
|
980
1004
|
import { BankTransaction } from '@layerfi/components/types';
|
|
981
|
-
export const SplitForm: ({ bankTransaction, }: {
|
|
1005
|
+
export const SplitForm: ({ bankTransaction, hardRefreshPnlOnCategorize }: {
|
|
982
1006
|
bankTransaction: BankTransaction;
|
|
1007
|
+
hardRefreshPnlOnCategorize?: boolean | undefined;
|
|
983
1008
|
}) => React.JSX.Element;
|
|
984
1009
|
|
|
985
1010
|
}
|
|
@@ -1030,6 +1055,7 @@ declare module '@layerfi/components/components/BankTransactionMobileList/utils'
|
|
|
1030
1055
|
declare module '@layerfi/components/components/BankTransactionRow/BankTransactionRow' {
|
|
1031
1056
|
import React from 'react';
|
|
1032
1057
|
import { BankTransaction, Category } from '@layerfi/components/types';
|
|
1058
|
+
import { BankTransactionCTAStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactions';
|
|
1033
1059
|
type Props = {
|
|
1034
1060
|
index: number;
|
|
1035
1061
|
editable: boolean;
|
|
@@ -1040,11 +1066,13 @@ declare module '@layerfi/components/components/BankTransactionRow/BankTransactio
|
|
|
1040
1066
|
initialLoad?: boolean;
|
|
1041
1067
|
showDescriptions: boolean;
|
|
1042
1068
|
showReceiptUploads: boolean;
|
|
1069
|
+
hardRefreshPnlOnCategorize: boolean;
|
|
1070
|
+
stringOverrides?: BankTransactionCTAStringOverrides;
|
|
1043
1071
|
};
|
|
1044
1072
|
export type LastSubmittedForm = 'simple' | 'match' | 'split' | undefined;
|
|
1045
1073
|
export const extractDescriptionForSplit: (category: Category) => string;
|
|
1046
1074
|
export const getDefaultSelectedCategory: (bankTransaction: BankTransaction) => import("@layerfi/components/components/CategorySelect/CategorySelect").CategoryOption | undefined;
|
|
1047
|
-
export const BankTransactionRow: ({ index, editable, dateFormat, bankTransaction, removeTransaction, containerWidth, initialLoad, showDescriptions, showReceiptUploads, }: Props) => React.JSX.Element;
|
|
1075
|
+
export const BankTransactionRow: ({ index, editable, dateFormat, bankTransaction, removeTransaction, containerWidth, initialLoad, showDescriptions, showReceiptUploads, hardRefreshPnlOnCategorize, stringOverrides, }: Props) => React.JSX.Element;
|
|
1048
1076
|
export {};
|
|
1049
1077
|
|
|
1050
1078
|
}
|
|
@@ -1076,18 +1104,31 @@ declare module '@layerfi/components/components/BankTransactionRow/index' {
|
|
|
1076
1104
|
declare module '@layerfi/components/components/BankTransactions/BankTransactions' {
|
|
1077
1105
|
import React from 'react';
|
|
1078
1106
|
import { BankTransactionFilters } from '@layerfi/components/hooks/useBankTransactions/types';
|
|
1107
|
+
import { BankTransactionsTableStringOverrides } from '@layerfi/components/components/BankTransactionsTable/BankTransactionsTable';
|
|
1108
|
+
import { BankTransactionsHeaderStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactionsHeader';
|
|
1079
1109
|
import { MobileComponentType } from '@layerfi/components/components/BankTransactions/constants';
|
|
1110
|
+
export interface BankTransactionsStringOverrides {
|
|
1111
|
+
bankTransactionCTAs?: BankTransactionCTAStringOverrides;
|
|
1112
|
+
transactionsTable?: BankTransactionsTableStringOverrides;
|
|
1113
|
+
bankTransactionsHeader?: BankTransactionsHeaderStringOverrides;
|
|
1114
|
+
}
|
|
1115
|
+
export interface BankTransactionCTAStringOverrides {
|
|
1116
|
+
approveButtonText?: string;
|
|
1117
|
+
updateButtonText?: string;
|
|
1118
|
+
}
|
|
1080
1119
|
export interface BankTransactionsProps {
|
|
1081
1120
|
asWidget?: boolean;
|
|
1082
1121
|
pageSize?: number;
|
|
1083
1122
|
categorizedOnly?: boolean;
|
|
1084
1123
|
showDescriptions?: boolean;
|
|
1085
1124
|
showReceiptUploads?: boolean;
|
|
1125
|
+
hardRefreshPnlOnCategorize?: boolean;
|
|
1086
1126
|
monthlyView?: boolean;
|
|
1087
1127
|
categorizeView?: boolean;
|
|
1088
1128
|
mobileComponent?: MobileComponentType;
|
|
1089
1129
|
filters?: BankTransactionFilters;
|
|
1090
1130
|
hideHeader?: boolean;
|
|
1131
|
+
stringOverrides?: BankTransactionsStringOverrides;
|
|
1091
1132
|
}
|
|
1092
1133
|
export interface BankTransactionsWithErrorProps extends BankTransactionsProps {
|
|
1093
1134
|
onError?: (error: Error) => void;
|
|
@@ -1110,9 +1151,16 @@ declare module '@layerfi/components/components/BankTransactions/BankTransactions
|
|
|
1110
1151
|
withDatePicker?: boolean;
|
|
1111
1152
|
listView?: boolean;
|
|
1112
1153
|
dateRange?: DateRange;
|
|
1154
|
+
isDataLoading?: boolean;
|
|
1155
|
+
isSyncing?: boolean;
|
|
1113
1156
|
setDateRange?: (value: DateRange) => void;
|
|
1157
|
+
stringOverrides?: BankTransactionsHeaderStringOverrides;
|
|
1158
|
+
}
|
|
1159
|
+
export interface BankTransactionsHeaderStringOverrides {
|
|
1160
|
+
header?: string;
|
|
1161
|
+
downloadButton?: string;
|
|
1114
1162
|
}
|
|
1115
|
-
export const BankTransactionsHeader: ({ shiftStickyHeader, asWidget, categorizedOnly, categorizeView, display, onCategorizationDisplayChange, mobileComponent, withDatePicker, listView, dateRange, setDateRange, }: BankTransactionsHeaderProps) => React.JSX.Element;
|
|
1163
|
+
export const BankTransactionsHeader: ({ shiftStickyHeader, asWidget, categorizedOnly, categorizeView, display, onCategorizationDisplayChange, mobileComponent, withDatePicker, listView, dateRange, setDateRange, stringOverrides, isSyncing, }: BankTransactionsHeaderProps) => React.JSX.Element;
|
|
1116
1164
|
|
|
1117
1165
|
}
|
|
1118
1166
|
declare module '@layerfi/components/components/BankTransactions/DataStates' {
|
|
@@ -1120,14 +1168,13 @@ declare module '@layerfi/components/components/BankTransactions/DataStates' {
|
|
|
1120
1168
|
import { BankTransaction } from '@layerfi/components/types';
|
|
1121
1169
|
interface DataStatesProps {
|
|
1122
1170
|
bankTransactions?: BankTransaction[];
|
|
1123
|
-
transactionsLoading: boolean;
|
|
1124
1171
|
isLoading?: boolean;
|
|
1125
1172
|
isValidating?: boolean;
|
|
1126
1173
|
error?: unknown;
|
|
1127
1174
|
refetch: () => void;
|
|
1128
1175
|
editable: boolean;
|
|
1129
1176
|
}
|
|
1130
|
-
export const DataStates: ({ bankTransactions,
|
|
1177
|
+
export const DataStates: ({ bankTransactions, isLoading, isValidating, error, refetch, editable, }: DataStatesProps) => React.JSX.Element;
|
|
1131
1178
|
export {};
|
|
1132
1179
|
|
|
1133
1180
|
}
|
|
@@ -1147,10 +1194,30 @@ declare module '@layerfi/components/components/BankTransactions/utils' {
|
|
|
1147
1194
|
export const filterVisibility: (scope: DisplayState, bankTransaction: BankTransaction) => boolean;
|
|
1148
1195
|
export const isCategorized: (bankTransaction: BankTransaction) => boolean;
|
|
1149
1196
|
|
|
1197
|
+
}
|
|
1198
|
+
declare module '@layerfi/components/components/BankTransactionsLoader/BankTransactionsLoader' {
|
|
1199
|
+
import React from 'react';
|
|
1200
|
+
export const BankTransactionsLoader: ({ isLoading, }: {
|
|
1201
|
+
isLoading: boolean;
|
|
1202
|
+
}) => React.JSX.Element;
|
|
1203
|
+
|
|
1204
|
+
}
|
|
1205
|
+
declare module '@layerfi/components/components/BankTransactionsLoader/index' {
|
|
1206
|
+
export { BankTransactionsLoader } from '@layerfi/components/components/BankTransactionsLoader/BankTransactionsLoader';
|
|
1207
|
+
|
|
1150
1208
|
}
|
|
1151
1209
|
declare module '@layerfi/components/components/BankTransactionsTable/BankTransactionsTable' {
|
|
1152
1210
|
import React from 'react';
|
|
1153
1211
|
import { BankTransaction } from '@layerfi/components/types';
|
|
1212
|
+
import { BankTransactionsStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactions';
|
|
1213
|
+
export interface BankTransactionsTableStringOverrides {
|
|
1214
|
+
dateColumnHeaderText?: string;
|
|
1215
|
+
transactionColumnHeaderText?: string;
|
|
1216
|
+
accountColumnHeaderText?: string;
|
|
1217
|
+
amountColumnHeaderText?: string;
|
|
1218
|
+
categorizeColumnHeaderText?: string;
|
|
1219
|
+
categoryColumnHeaderText?: string;
|
|
1220
|
+
}
|
|
1154
1221
|
interface BankTransactionsTableProps {
|
|
1155
1222
|
bankTransactions?: BankTransaction[];
|
|
1156
1223
|
editable: boolean;
|
|
@@ -1161,8 +1228,14 @@ declare module '@layerfi/components/components/BankTransactionsTable/BankTransac
|
|
|
1161
1228
|
removeTransaction: (bt: BankTransaction) => void;
|
|
1162
1229
|
showDescriptions?: boolean;
|
|
1163
1230
|
showReceiptUploads?: boolean;
|
|
1231
|
+
hardRefreshPnlOnCategorize?: boolean;
|
|
1232
|
+
stringOverrides?: BankTransactionsStringOverrides;
|
|
1233
|
+
isSyncing?: boolean;
|
|
1234
|
+
page?: number;
|
|
1235
|
+
lastPage?: boolean;
|
|
1236
|
+
onRefresh?: () => void;
|
|
1164
1237
|
}
|
|
1165
|
-
export const BankTransactionsTable: ({ categorizeView, editable, isLoading, bankTransactions, initialLoad, containerWidth, removeTransaction, showDescriptions, showReceiptUploads, }: BankTransactionsTableProps) => React.JSX.Element;
|
|
1238
|
+
export const BankTransactionsTable: ({ categorizeView, editable, isLoading, bankTransactions, initialLoad, containerWidth, removeTransaction, showDescriptions, showReceiptUploads, hardRefreshPnlOnCategorize, stringOverrides, isSyncing, page, lastPage, onRefresh, }: BankTransactionsTableProps) => React.JSX.Element;
|
|
1166
1239
|
export {};
|
|
1167
1240
|
|
|
1168
1241
|
}
|
|
@@ -1358,11 +1431,18 @@ declare module '@layerfi/components/components/CategorySelect/index' {
|
|
|
1358
1431
|
}
|
|
1359
1432
|
declare module '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts' {
|
|
1360
1433
|
import React from 'react';
|
|
1434
|
+
import { ChartOfAccountsTableStringOverrides } from '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTable';
|
|
1435
|
+
import { LedgerAccountStringOverrides } from '@layerfi/components/components/LedgerAccount/LedgerAccountIndex';
|
|
1361
1436
|
export type View = 'mobile' | 'tablet' | 'desktop';
|
|
1437
|
+
export interface ChartOfAccountsStringOverrides {
|
|
1438
|
+
chartOfAccountsTable?: ChartOfAccountsTableStringOverrides;
|
|
1439
|
+
ledgerAccount?: LedgerAccountStringOverrides;
|
|
1440
|
+
}
|
|
1362
1441
|
export interface ChartOfAccountsProps {
|
|
1363
1442
|
asWidget?: boolean;
|
|
1364
1443
|
withDateControl?: boolean;
|
|
1365
1444
|
withExpandAllButton?: boolean;
|
|
1445
|
+
stringOverrides?: ChartOfAccountsStringOverrides;
|
|
1366
1446
|
}
|
|
1367
1447
|
export const ChartOfAccounts: (props: ChartOfAccountsProps) => React.JSX.Element;
|
|
1368
1448
|
|
|
@@ -1382,7 +1462,21 @@ declare module '@layerfi/components/components/ChartOfAccountsDatePicker/index'
|
|
|
1382
1462
|
}
|
|
1383
1463
|
declare module '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccountsForm' {
|
|
1384
1464
|
import React from 'react';
|
|
1385
|
-
export
|
|
1465
|
+
export interface ChartOfAccountsFormStringOverrides {
|
|
1466
|
+
editModeHeader?: string;
|
|
1467
|
+
createModeHeader?: string;
|
|
1468
|
+
cancelButton?: string;
|
|
1469
|
+
retryButton?: string;
|
|
1470
|
+
saveButton?: string;
|
|
1471
|
+
parentLabel?: string;
|
|
1472
|
+
nameLabel?: string;
|
|
1473
|
+
typeLabel?: string;
|
|
1474
|
+
subTypeLabel?: string;
|
|
1475
|
+
normalityLabel?: string;
|
|
1476
|
+
}
|
|
1477
|
+
export const ChartOfAccountsForm: ({ stringOverrides }: {
|
|
1478
|
+
stringOverrides?: ChartOfAccountsFormStringOverrides | undefined;
|
|
1479
|
+
}) => React.JSX.Element | undefined;
|
|
1386
1480
|
|
|
1387
1481
|
}
|
|
1388
1482
|
declare module '@layerfi/components/components/ChartOfAccountsForm/constants' {
|
|
@@ -1436,8 +1530,10 @@ declare module '@layerfi/components/components/ChartOfAccountsRow/index' {
|
|
|
1436
1530
|
}
|
|
1437
1531
|
declare module '@layerfi/components/components/ChartOfAccountsSidebar/ChartOfAccountsSidebar' {
|
|
1438
1532
|
import React, { RefObject } from 'react';
|
|
1439
|
-
|
|
1440
|
-
|
|
1533
|
+
import { ChartOfAccountsFormStringOverrides } from '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccountsForm';
|
|
1534
|
+
export const ChartOfAccountsSidebar: ({ parentRef: _parentRef, stringOverrides, }: {
|
|
1535
|
+
parentRef?: React.RefObject<HTMLDivElement> | undefined;
|
|
1536
|
+
stringOverrides?: ChartOfAccountsFormStringOverrides | undefined;
|
|
1441
1537
|
}) => React.JSX.Element;
|
|
1442
1538
|
|
|
1443
1539
|
}
|
|
@@ -1448,13 +1544,24 @@ declare module '@layerfi/components/components/ChartOfAccountsSidebar/index' {
|
|
|
1448
1544
|
declare module '@layerfi/components/components/ChartOfAccountsTable/ChartOfAccountsTable' {
|
|
1449
1545
|
import React, { RefObject } from 'react';
|
|
1450
1546
|
import { View } from '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts';
|
|
1547
|
+
import { ChartOfAccountsFormStringOverrides } from '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccountsForm';
|
|
1451
1548
|
export type ExpandActionState = undefined | 'expanded' | 'collapsed';
|
|
1452
|
-
export
|
|
1549
|
+
export interface ChartOfAccountsTableStringOverrides {
|
|
1550
|
+
headerText?: string;
|
|
1551
|
+
addAccountButtonText?: string;
|
|
1552
|
+
nameColumnHeader?: string;
|
|
1553
|
+
typeColumnHeader?: string;
|
|
1554
|
+
balanceColumnHeader?: string;
|
|
1555
|
+
subtypeColumnHeader?: string;
|
|
1556
|
+
chartOfAccountsForm?: ChartOfAccountsFormStringOverrides;
|
|
1557
|
+
}
|
|
1558
|
+
export const ChartOfAccountsTable: ({ view, containerRef, asWidget, withDateControl, withExpandAllButton, stringOverrides, }: {
|
|
1453
1559
|
view: View;
|
|
1454
1560
|
containerRef: RefObject<HTMLDivElement>;
|
|
1455
1561
|
asWidget?: boolean | undefined;
|
|
1456
1562
|
withDateControl?: boolean | undefined;
|
|
1457
1563
|
withExpandAllButton?: boolean | undefined;
|
|
1564
|
+
stringOverrides?: ChartOfAccountsTableStringOverrides | undefined;
|
|
1458
1565
|
}) => React.JSX.Element;
|
|
1459
1566
|
|
|
1460
1567
|
}
|
|
@@ -1666,6 +1773,7 @@ declare module '@layerfi/components/components/ExpandedBankTransactionRow/Expand
|
|
|
1666
1773
|
categorized?: boolean;
|
|
1667
1774
|
showDescriptions: boolean;
|
|
1668
1775
|
showReceiptUploads: boolean;
|
|
1776
|
+
hardRefreshPnlOnCategorize: boolean;
|
|
1669
1777
|
};
|
|
1670
1778
|
export type SaveHandle = {
|
|
1671
1779
|
save: () => void;
|
|
@@ -1788,15 +1896,20 @@ declare module '@layerfi/components/components/Input/index' {
|
|
|
1788
1896
|
}
|
|
1789
1897
|
declare module '@layerfi/components/components/Journal/Journal' {
|
|
1790
1898
|
import React from 'react';
|
|
1899
|
+
import { JournalTableStringOverrides } from '@layerfi/components/components/JournalTable/JournalTable';
|
|
1791
1900
|
export type View = 'mobile' | 'tablet' | 'desktop';
|
|
1792
1901
|
export interface JournalConfig {
|
|
1793
1902
|
form: {
|
|
1794
1903
|
addEntryLinesLimit?: number;
|
|
1795
1904
|
};
|
|
1796
1905
|
}
|
|
1906
|
+
export interface JournalStringOverrides {
|
|
1907
|
+
journalTable?: JournalTableStringOverrides;
|
|
1908
|
+
}
|
|
1797
1909
|
export interface JournalProps {
|
|
1798
1910
|
asWidget?: boolean;
|
|
1799
1911
|
config?: JournalConfig;
|
|
1912
|
+
stringOverrides?: JournalStringOverrides;
|
|
1800
1913
|
}
|
|
1801
1914
|
export const JOURNAL_CONFIG: JournalConfig;
|
|
1802
1915
|
export const Journal: (props: JournalProps) => React.JSX.Element;
|
|
@@ -1818,8 +1931,15 @@ declare module '@layerfi/components/components/JournalEntryDetails/index' {
|
|
|
1818
1931
|
declare module '@layerfi/components/components/JournalForm/JournalForm' {
|
|
1819
1932
|
import React from 'react';
|
|
1820
1933
|
import { JournalConfig } from '@layerfi/components/components/Journal/Journal';
|
|
1821
|
-
export
|
|
1934
|
+
export interface JournalFormStringOverrides {
|
|
1935
|
+
header?: string;
|
|
1936
|
+
cancelButton?: string;
|
|
1937
|
+
retryButton?: string;
|
|
1938
|
+
saveButton?: string;
|
|
1939
|
+
}
|
|
1940
|
+
export const JournalForm: ({ config, stringOverrides }: {
|
|
1822
1941
|
config: JournalConfig;
|
|
1942
|
+
stringOverrides?: JournalFormStringOverrides | undefined;
|
|
1823
1943
|
}) => React.JSX.Element;
|
|
1824
1944
|
|
|
1825
1945
|
}
|
|
@@ -1869,9 +1989,11 @@ declare module '@layerfi/components/components/JournalRow/index' {
|
|
|
1869
1989
|
declare module '@layerfi/components/components/JournalSidebar/JournalSidebar' {
|
|
1870
1990
|
import React, { RefObject } from 'react';
|
|
1871
1991
|
import { JournalConfig } from '@layerfi/components/components/Journal/Journal';
|
|
1872
|
-
|
|
1992
|
+
import { JournalFormStringOverrides } from '@layerfi/components/components/JournalForm/JournalForm';
|
|
1993
|
+
export const JournalSidebar: ({ parentRef: _parentRef, config, stringOverrides, }: {
|
|
1873
1994
|
parentRef?: React.RefObject<HTMLDivElement> | undefined;
|
|
1874
1995
|
config: JournalConfig;
|
|
1996
|
+
stringOverrides?: JournalFormStringOverrides | undefined;
|
|
1875
1997
|
}) => React.JSX.Element;
|
|
1876
1998
|
|
|
1877
1999
|
}
|
|
@@ -1883,11 +2005,24 @@ declare module '@layerfi/components/components/JournalTable/JournalTable' {
|
|
|
1883
2005
|
import React, { RefObject } from 'react';
|
|
1884
2006
|
import { View } from '@layerfi/components/components/Journal/index';
|
|
1885
2007
|
import { JournalConfig } from '@layerfi/components/components/Journal/Journal';
|
|
1886
|
-
|
|
2008
|
+
import { JournalFormStringOverrides } from '@layerfi/components/components/JournalForm/JournalForm';
|
|
2009
|
+
export interface JournalTableStringOverrides {
|
|
2010
|
+
componentTitle?: string;
|
|
2011
|
+
addEntryButton?: string;
|
|
2012
|
+
idColumnHeader?: string;
|
|
2013
|
+
dateColumnHeader?: string;
|
|
2014
|
+
transactionColumnHeader?: string;
|
|
2015
|
+
accountColumnHeader?: string;
|
|
2016
|
+
debitColumnHeader?: string;
|
|
2017
|
+
creditColumnHeader?: string;
|
|
2018
|
+
journalForm?: JournalFormStringOverrides;
|
|
2019
|
+
}
|
|
2020
|
+
export const JournalTable: ({ view, containerRef, pageSize, config, stringOverrides, }: {
|
|
1887
2021
|
view: View;
|
|
1888
2022
|
containerRef: RefObject<HTMLDivElement>;
|
|
1889
2023
|
pageSize?: number | undefined;
|
|
1890
2024
|
config: JournalConfig;
|
|
2025
|
+
stringOverrides?: JournalTableStringOverrides | undefined;
|
|
1891
2026
|
}) => React.JSX.Element;
|
|
1892
2027
|
|
|
1893
2028
|
}
|
|
@@ -1898,12 +2033,27 @@ declare module '@layerfi/components/components/JournalTable/index' {
|
|
|
1898
2033
|
declare module '@layerfi/components/components/LedgerAccount/LedgerAccountIndex' {
|
|
1899
2034
|
import React, { RefObject } from 'react';
|
|
1900
2035
|
import { View } from '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts';
|
|
2036
|
+
import { LedgerAccountEntryDetailsStringOverrides } from '@layerfi/components/components/LedgerAccountEntryDetails/LedgerAccountEntryDetails';
|
|
2037
|
+
interface LedgerEntriesTableStringOverrides {
|
|
2038
|
+
dateColumnHeader?: string;
|
|
2039
|
+
journalIdColumnHeader?: string;
|
|
2040
|
+
sourceColumnHeader?: string;
|
|
2041
|
+
debitColumnHeader?: string;
|
|
2042
|
+
creditColumnHeader?: string;
|
|
2043
|
+
runningBalanceColumnHeader?: string;
|
|
2044
|
+
}
|
|
2045
|
+
export interface LedgerAccountStringOverrides {
|
|
2046
|
+
ledgerEntryDetail?: LedgerAccountEntryDetailsStringOverrides;
|
|
2047
|
+
ledgerEntriesTable?: LedgerEntriesTableStringOverrides;
|
|
2048
|
+
}
|
|
1901
2049
|
export interface LedgerAccountProps {
|
|
1902
2050
|
view: View;
|
|
1903
2051
|
containerRef: RefObject<HTMLDivElement>;
|
|
1904
2052
|
pageSize?: number;
|
|
2053
|
+
stringOverrides?: LedgerAccountStringOverrides;
|
|
1905
2054
|
}
|
|
1906
|
-
export const LedgerAccount: ({ containerRef, pageSize, view, }: LedgerAccountProps) => React.JSX.Element;
|
|
2055
|
+
export const LedgerAccount: ({ containerRef, pageSize, view, stringOverrides, }: LedgerAccountProps) => React.JSX.Element;
|
|
2056
|
+
export {};
|
|
1907
2057
|
|
|
1908
2058
|
}
|
|
1909
2059
|
declare module '@layerfi/components/components/LedgerAccount/LedgerAccountRow' {
|
|
@@ -1926,10 +2076,51 @@ declare module '@layerfi/components/components/LedgerAccount/index' {
|
|
|
1926
2076
|
declare module '@layerfi/components/components/LedgerAccountEntryDetails/LedgerAccountEntryDetails' {
|
|
1927
2077
|
import React from 'react';
|
|
1928
2078
|
import { LedgerEntrySource } from '@layerfi/components/types/ledger_accounts';
|
|
1929
|
-
|
|
2079
|
+
interface SourceDetailStringOverrides {
|
|
2080
|
+
sourceLabel?: string;
|
|
2081
|
+
accountNameLabel?: string;
|
|
2082
|
+
dateLabel?: string;
|
|
2083
|
+
amountLabel?: string;
|
|
2084
|
+
directionLabel?: string;
|
|
2085
|
+
counterpartyLabel?: string;
|
|
2086
|
+
invoiceNumberLabel?: string;
|
|
2087
|
+
recipientNameLabel?: string;
|
|
2088
|
+
memoLabel?: string;
|
|
2089
|
+
createdByLabel?: string;
|
|
2090
|
+
processorLabel?: string;
|
|
2091
|
+
}
|
|
2092
|
+
export const SourceDetailView: ({ source, stringOverrides }: {
|
|
1930
2093
|
source: LedgerEntrySource;
|
|
2094
|
+
stringOverrides?: SourceDetailStringOverrides | undefined;
|
|
1931
2095
|
}) => React.JSX.Element | null;
|
|
1932
|
-
|
|
2096
|
+
interface JournalEntryDetailsStringOverrides {
|
|
2097
|
+
entryTypeLabel?: string;
|
|
2098
|
+
dateLabel?: string;
|
|
2099
|
+
creationDateLabel?: string;
|
|
2100
|
+
reversalLabel?: string;
|
|
2101
|
+
}
|
|
2102
|
+
interface LineItemsTableStringOverrides {
|
|
2103
|
+
lineItemsColumnHeader?: string;
|
|
2104
|
+
debitColumnHeader?: string;
|
|
2105
|
+
creditColumnHeader?: string;
|
|
2106
|
+
totalRowHeader?: string;
|
|
2107
|
+
}
|
|
2108
|
+
export interface LedgerAccountEntryDetailsStringOverrides {
|
|
2109
|
+
title?: string;
|
|
2110
|
+
transactionSource?: {
|
|
2111
|
+
header?: string;
|
|
2112
|
+
details?: SourceDetailStringOverrides;
|
|
2113
|
+
};
|
|
2114
|
+
journalEntry?: {
|
|
2115
|
+
header?: (entryId?: string) => string;
|
|
2116
|
+
details?: JournalEntryDetailsStringOverrides;
|
|
2117
|
+
};
|
|
2118
|
+
lineItemsTable?: LineItemsTableStringOverrides;
|
|
2119
|
+
}
|
|
2120
|
+
export const LedgerAccountEntryDetails: ({ stringOverrides }: {
|
|
2121
|
+
stringOverrides?: LedgerAccountEntryDetailsStringOverrides | undefined;
|
|
2122
|
+
}) => React.JSX.Element;
|
|
2123
|
+
export {};
|
|
1933
2124
|
|
|
1934
2125
|
}
|
|
1935
2126
|
declare module '@layerfi/components/components/LedgerAccountEntryDetails/index' {
|
|
@@ -1997,9 +2188,12 @@ declare module '@layerfi/components/components/LinkedAccounts/LinkedAccounts' {
|
|
|
1997
2188
|
showLedgerBalance?: boolean;
|
|
1998
2189
|
showUnlinkItem?: boolean;
|
|
1999
2190
|
showBreakConnection?: boolean;
|
|
2191
|
+
stringOverrides?: {
|
|
2192
|
+
title?: string;
|
|
2193
|
+
};
|
|
2000
2194
|
}
|
|
2001
2195
|
export const LinkedAccounts: (props: LinkedAccountsProps) => React.JSX.Element;
|
|
2002
|
-
export const LinkedAccountsComponent: ({ asWidget, elevated, showLedgerBalance, showUnlinkItem, showBreakConnection, }: LinkedAccountsProps) => React.JSX.Element;
|
|
2196
|
+
export const LinkedAccountsComponent: ({ asWidget, elevated, showLedgerBalance, showUnlinkItem, showBreakConnection, stringOverrides, }: LinkedAccountsProps) => React.JSX.Element;
|
|
2003
2197
|
|
|
2004
2198
|
}
|
|
2005
2199
|
declare module '@layerfi/components/components/LinkedAccounts/LinkedAccountsContent' {
|
|
@@ -2026,9 +2220,18 @@ declare module '@layerfi/components/components/Loader/Loader' {
|
|
|
2026
2220
|
}
|
|
2027
2221
|
export const Loader: ({ children, size }: LoaderProps) => React.JSX.Element;
|
|
2028
2222
|
|
|
2223
|
+
}
|
|
2224
|
+
declare module '@layerfi/components/components/Loader/SmallLoader' {
|
|
2225
|
+
import React from 'react';
|
|
2226
|
+
export interface SmallLoaderProps {
|
|
2227
|
+
size?: number;
|
|
2228
|
+
}
|
|
2229
|
+
export const SmallLoader: ({ size }: SmallLoaderProps) => React.JSX.Element;
|
|
2230
|
+
|
|
2029
2231
|
}
|
|
2030
2232
|
declare module '@layerfi/components/components/Loader/index' {
|
|
2031
2233
|
export { Loader } from '@layerfi/components/components/Loader/Loader';
|
|
2234
|
+
export { SmallLoader } from '@layerfi/components/components/Loader/SmallLoader';
|
|
2032
2235
|
|
|
2033
2236
|
}
|
|
2034
2237
|
declare module '@layerfi/components/components/MatchForm/MatchForm' {
|
|
@@ -2153,7 +2356,7 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
|
|
|
2153
2356
|
};
|
|
2154
2357
|
const ProfitAndLoss: {
|
|
2155
2358
|
({ children, tagFilter, reportingBasis, asContainer, }: Props): React.JSX.Element;
|
|
2156
|
-
Chart: () => React.JSX.Element;
|
|
2359
|
+
Chart: ({ forceRerenderOnDataChange, }: import("@layerfi/components/components/ProfitAndLossChart/ProfitAndLossChart").Props) => React.JSX.Element;
|
|
2157
2360
|
Context: React.Context<{
|
|
2158
2361
|
data: import("@layerfi/components/types").ProfitAndLoss | undefined;
|
|
2159
2362
|
filteredDataRevenue: import("@layerfi/components/types/line_item").LineBaseItem[];
|
|
@@ -2173,19 +2376,22 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
|
|
|
2173
2376
|
setFilterTypes: (scope: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").Scope, types: string[]) => void;
|
|
2174
2377
|
}>;
|
|
2175
2378
|
DatePicker: () => React.JSX.Element;
|
|
2176
|
-
Summaries: ({ vertical, revenueLabel,
|
|
2177
|
-
revenueLabel?: string | undefined;
|
|
2379
|
+
Summaries: ({ vertical, actionable, revenueLabel, stringOverrides, }: {
|
|
2178
2380
|
vertical?: boolean | undefined;
|
|
2179
2381
|
actionable?: boolean | undefined;
|
|
2382
|
+
revenueLabel?: string | undefined;
|
|
2383
|
+
stringOverrides?: import("@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries").ProfitAndLossSummariesStringOverrides | undefined;
|
|
2180
2384
|
}) => React.JSX.Element;
|
|
2181
|
-
Table: ({ lockExpanded, asContainer }: {
|
|
2385
|
+
Table: ({ lockExpanded, asContainer, stringOverrides }: {
|
|
2182
2386
|
lockExpanded?: boolean | undefined;
|
|
2183
2387
|
asContainer?: boolean | undefined;
|
|
2388
|
+
stringOverrides?: import("@layerfi/components/components/ProfitAndLossTable/ProfitAndLossTable").ProfitAndLossTableStringOverrides | undefined;
|
|
2184
2389
|
}) => React.JSX.Element;
|
|
2185
|
-
DetailedCharts: ({ scope, hideClose, showDatePicker, }: {
|
|
2390
|
+
DetailedCharts: ({ scope, hideClose, showDatePicker, stringOverrides, }: {
|
|
2186
2391
|
scope?: import("@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss").SidebarScope;
|
|
2187
2392
|
hideClose?: boolean | undefined;
|
|
2188
2393
|
showDatePicker?: boolean | undefined;
|
|
2394
|
+
stringOverrides?: import("@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts").ProfitAndLossDetailedChartsStringOverrides | undefined;
|
|
2189
2395
|
}) => React.JSX.Element;
|
|
2190
2396
|
};
|
|
2191
2397
|
export { ProfitAndLoss };
|
|
@@ -2213,7 +2419,10 @@ declare module '@layerfi/components/components/ProfitAndLossChart/Indicator' {
|
|
|
2213
2419
|
}
|
|
2214
2420
|
declare module '@layerfi/components/components/ProfitAndLossChart/ProfitAndLossChart' {
|
|
2215
2421
|
import React from 'react';
|
|
2216
|
-
export
|
|
2422
|
+
export interface Props {
|
|
2423
|
+
forceRerenderOnDataChange?: boolean;
|
|
2424
|
+
}
|
|
2425
|
+
export const ProfitAndLossChart: ({ forceRerenderOnDataChange, }: Props) => React.JSX.Element;
|
|
2217
2426
|
|
|
2218
2427
|
}
|
|
2219
2428
|
declare module '@layerfi/components/components/ProfitAndLossChart/index' {
|
|
@@ -2252,6 +2461,11 @@ declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Detai
|
|
|
2252
2461
|
import { Scope, SidebarScope, ProfitAndLossFilters } from '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss';
|
|
2253
2462
|
import { SortDirection } from '@layerfi/components/types';
|
|
2254
2463
|
import { LineBaseItem } from '@layerfi/components/types/line_item';
|
|
2464
|
+
export interface DetailedTableStringOverrides {
|
|
2465
|
+
categoryColumnHeader?: string;
|
|
2466
|
+
typeColumnHeader?: string;
|
|
2467
|
+
valueColumnHeader?: string;
|
|
2468
|
+
}
|
|
2255
2469
|
export interface DetailedTableProps {
|
|
2256
2470
|
filteredData: LineBaseItem[];
|
|
2257
2471
|
hoveredItem?: string;
|
|
@@ -2259,12 +2473,13 @@ declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Detai
|
|
|
2259
2473
|
sidebarScope: SidebarScope;
|
|
2260
2474
|
filters: ProfitAndLossFilters;
|
|
2261
2475
|
sortBy: (scope: Scope, field: string, direction?: SortDirection) => void;
|
|
2476
|
+
stringOverrides?: DetailedTableStringOverrides;
|
|
2262
2477
|
}
|
|
2263
2478
|
export const mapColorsToTypes: (data: any[]) => {
|
|
2264
2479
|
color: any;
|
|
2265
2480
|
opacity: any;
|
|
2266
2481
|
}[];
|
|
2267
|
-
export const DetailedTable: ({ filteredData, sidebarScope, filters, sortBy, hoveredItem, setHoveredItem, }: DetailedTableProps) => React.JSX.Element;
|
|
2482
|
+
export const DetailedTable: ({ filteredData, sidebarScope, filters, sortBy, hoveredItem, setHoveredItem, stringOverrides, }: DetailedTableProps) => React.JSX.Element;
|
|
2268
2483
|
|
|
2269
2484
|
}
|
|
2270
2485
|
declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Filters' {
|
|
@@ -2283,10 +2498,15 @@ declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Filte
|
|
|
2283
2498
|
declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts' {
|
|
2284
2499
|
import React from 'react';
|
|
2285
2500
|
import { SidebarScope } from '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss';
|
|
2286
|
-
|
|
2501
|
+
import { DetailedTableStringOverrides } from '@layerfi/components/components/ProfitAndLossDetailedCharts/DetailedTable';
|
|
2502
|
+
export interface ProfitAndLossDetailedChartsStringOverrides {
|
|
2503
|
+
detailedTableStringOverrides?: DetailedTableStringOverrides;
|
|
2504
|
+
}
|
|
2505
|
+
export const ProfitAndLossDetailedCharts: ({ scope, hideClose, showDatePicker, stringOverrides, }: {
|
|
2287
2506
|
scope?: SidebarScope;
|
|
2288
2507
|
hideClose?: boolean | undefined;
|
|
2289
2508
|
showDatePicker?: boolean | undefined;
|
|
2509
|
+
stringOverrides?: ProfitAndLossDetailedChartsStringOverrides | undefined;
|
|
2290
2510
|
}) => React.JSX.Element;
|
|
2291
2511
|
|
|
2292
2512
|
}
|
|
@@ -2327,12 +2547,18 @@ declare module '@layerfi/components/components/ProfitAndLossSummaries/MiniChart'
|
|
|
2327
2547
|
}
|
|
2328
2548
|
declare module '@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries' {
|
|
2329
2549
|
import React from 'react';
|
|
2330
|
-
|
|
2550
|
+
export interface ProfitAndLossSummariesStringOverrides {
|
|
2331
2551
|
revenueLabel?: string;
|
|
2552
|
+
expensesLabel?: string;
|
|
2553
|
+
netProfitLabel?: string;
|
|
2554
|
+
}
|
|
2555
|
+
type Props = {
|
|
2332
2556
|
vertical?: boolean;
|
|
2333
2557
|
actionable?: boolean;
|
|
2558
|
+
revenueLabel?: string;
|
|
2559
|
+
stringOverrides?: ProfitAndLossSummariesStringOverrides;
|
|
2334
2560
|
};
|
|
2335
|
-
export const ProfitAndLossSummaries: ({ vertical, revenueLabel,
|
|
2561
|
+
export const ProfitAndLossSummaries: ({ vertical, actionable, revenueLabel, stringOverrides, }: Props) => React.JSX.Element;
|
|
2336
2562
|
export {};
|
|
2337
2563
|
|
|
2338
2564
|
}
|
|
@@ -2342,11 +2568,17 @@ declare module '@layerfi/components/components/ProfitAndLossSummaries/index' {
|
|
|
2342
2568
|
}
|
|
2343
2569
|
declare module '@layerfi/components/components/ProfitAndLossTable/ProfitAndLossTable' {
|
|
2344
2570
|
import React from 'react';
|
|
2571
|
+
export interface ProfitAndLossTableStringOverrides {
|
|
2572
|
+
grossProfitLabel?: string;
|
|
2573
|
+
profitBeforeTaxesLabel?: string;
|
|
2574
|
+
netProfitLabel?: string;
|
|
2575
|
+
}
|
|
2345
2576
|
type Props = {
|
|
2346
2577
|
lockExpanded?: boolean;
|
|
2347
2578
|
asContainer?: boolean;
|
|
2579
|
+
stringOverrides?: ProfitAndLossTableStringOverrides;
|
|
2348
2580
|
};
|
|
2349
|
-
export const ProfitAndLossTable: ({ lockExpanded, asContainer }: Props) => React.JSX.Element;
|
|
2581
|
+
export const ProfitAndLossTable: ({ lockExpanded, asContainer, stringOverrides }: Props) => React.JSX.Element;
|
|
2350
2582
|
export {};
|
|
2351
2583
|
|
|
2352
2584
|
}
|
|
@@ -2362,10 +2594,19 @@ declare module '@layerfi/components/components/ProfitAndLossTable/index' {
|
|
|
2362
2594
|
}
|
|
2363
2595
|
declare module '@layerfi/components/components/ProfitAndLossView/ProfitAndLossView' {
|
|
2364
2596
|
import React, { RefObject } from 'react';
|
|
2597
|
+
import { ProfitAndLossDetailedChartsStringOverrides } from '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts';
|
|
2598
|
+
import { ProfitAndLossSummariesStringOverrides } from '@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries';
|
|
2599
|
+
import { ProfitAndLossTableStringOverrides } from '@layerfi/components/components/ProfitAndLossTable/ProfitAndLossTable';
|
|
2365
2600
|
export interface ProfitAndLossViewProps {
|
|
2366
2601
|
hideTable?: boolean;
|
|
2367
2602
|
hideChart?: boolean;
|
|
2368
2603
|
showDetailedCharts?: boolean;
|
|
2604
|
+
stringOverrides?: {
|
|
2605
|
+
header?: string;
|
|
2606
|
+
profitAndLossTable?: ProfitAndLossTableStringOverrides;
|
|
2607
|
+
profitAndLossSummaries?: ProfitAndLossSummariesStringOverrides;
|
|
2608
|
+
profitAndLossDetailedCharts?: ProfitAndLossDetailedChartsStringOverrides;
|
|
2609
|
+
};
|
|
2369
2610
|
}
|
|
2370
2611
|
export interface ProfitAndLossViewPanelProps extends ProfitAndLossViewProps {
|
|
2371
2612
|
containerRef: RefObject<HTMLDivElement>;
|
|
@@ -2400,10 +2641,35 @@ declare module '@layerfi/components/components/SkeletonLoader/SkeletonLoader' {
|
|
|
2400
2641
|
declare module '@layerfi/components/components/SkeletonLoader/index' {
|
|
2401
2642
|
export { SkeletonLoader } from '@layerfi/components/components/SkeletonLoader/SkeletonLoader';
|
|
2402
2643
|
|
|
2644
|
+
}
|
|
2645
|
+
declare module '@layerfi/components/components/SkeletonTableLoader/SkeletonTableLoader' {
|
|
2646
|
+
import React from 'react';
|
|
2647
|
+
interface SkeletonTableLoaderProps {
|
|
2648
|
+
rows: number;
|
|
2649
|
+
cols: Array<{
|
|
2650
|
+
colSpan: number;
|
|
2651
|
+
colComponent?: React.ReactNode;
|
|
2652
|
+
}>;
|
|
2653
|
+
height?: number;
|
|
2654
|
+
width?: number;
|
|
2655
|
+
}
|
|
2656
|
+
export const SkeletonTableLoader: ({ rows, cols, height, width, }: SkeletonTableLoaderProps) => React.JSX.Element;
|
|
2657
|
+
export {};
|
|
2658
|
+
|
|
2659
|
+
}
|
|
2660
|
+
declare module '@layerfi/components/components/SkeletonTableLoader/index' {
|
|
2661
|
+
export { SkeletonTableLoader } from '@layerfi/components/components/SkeletonTableLoader/SkeletonTableLoader';
|
|
2662
|
+
|
|
2403
2663
|
}
|
|
2404
2664
|
declare module '@layerfi/components/components/StatementOfCashFlow/StatementOfCashFlow' {
|
|
2405
2665
|
import React from 'react';
|
|
2406
|
-
|
|
2666
|
+
import { StatementOfCashFlowTableStringOverrides } from '@layerfi/components/components/StatementOfCashFlowTable/StatementOfCashFlowTable';
|
|
2667
|
+
export interface StatementOfCashFlowStringOverrides {
|
|
2668
|
+
statementOfCashFlowTable?: StatementOfCashFlowTableStringOverrides;
|
|
2669
|
+
}
|
|
2670
|
+
export const StatementOfCashFlow: ({ stringOverrides }: {
|
|
2671
|
+
stringOverrides?: StatementOfCashFlowStringOverrides | undefined;
|
|
2672
|
+
}) => React.JSX.Element;
|
|
2407
2673
|
|
|
2408
2674
|
}
|
|
2409
2675
|
declare module '@layerfi/components/components/StatementOfCashFlow/constants' {
|
|
@@ -2431,9 +2697,14 @@ declare module '@layerfi/components/components/StatementOfCashFlowTable/Statemen
|
|
|
2431
2697
|
summarize: boolean;
|
|
2432
2698
|
type: string;
|
|
2433
2699
|
};
|
|
2434
|
-
export
|
|
2700
|
+
export interface StatementOfCashFlowTableStringOverrides {
|
|
2701
|
+
typeColumnHeader?: string;
|
|
2702
|
+
totalColumnHeader?: string;
|
|
2703
|
+
}
|
|
2704
|
+
export const StatementOfCashFlowTable: ({ data, config, stringOverrides, }: {
|
|
2435
2705
|
data: StatementOfCashFlow;
|
|
2436
2706
|
config: StatementOfCashFlowRowProps[];
|
|
2707
|
+
stringOverrides?: StatementOfCashFlowTableStringOverrides | undefined;
|
|
2437
2708
|
}) => React.JSX.Element;
|
|
2438
2709
|
export {};
|
|
2439
2710
|
|
|
@@ -2441,6 +2712,43 @@ declare module '@layerfi/components/components/StatementOfCashFlowTable/Statemen
|
|
|
2441
2712
|
declare module '@layerfi/components/components/StatementOfCashFlowTable/index' {
|
|
2442
2713
|
export { StatementOfCashFlowTable } from '@layerfi/components/components/StatementOfCashFlowTable/StatementOfCashFlowTable';
|
|
2443
2714
|
|
|
2715
|
+
}
|
|
2716
|
+
declare module '@layerfi/components/components/SyncingComponent/SyncingComponent' {
|
|
2717
|
+
import React from 'react';
|
|
2718
|
+
interface SyncingComponentProps {
|
|
2719
|
+
title?: string;
|
|
2720
|
+
message?: string;
|
|
2721
|
+
onRefresh?: () => void;
|
|
2722
|
+
timeSync?: number;
|
|
2723
|
+
inProgress?: boolean;
|
|
2724
|
+
hideContent?: boolean;
|
|
2725
|
+
}
|
|
2726
|
+
/**
|
|
2727
|
+
* SyncingComponent
|
|
2728
|
+
* @param title - Title of the component
|
|
2729
|
+
* @param message - Message of the component
|
|
2730
|
+
* @param onRefresh - Function to refresh the component
|
|
2731
|
+
* @param timeSync - Time to sync in minutes
|
|
2732
|
+
* @param inProgress - Show progress icon besides button
|
|
2733
|
+
* @param hideContent - Hide content of the component
|
|
2734
|
+
*
|
|
2735
|
+
* @example
|
|
2736
|
+
* <SyncingComponent
|
|
2737
|
+
* title='Syncing account data'
|
|
2738
|
+
* message='This may take up to'
|
|
2739
|
+
* onRefresh={() => console.log('refresh')}
|
|
2740
|
+
* timeSync={1440}
|
|
2741
|
+
* inProgress={false}
|
|
2742
|
+
* hideContent={false}
|
|
2743
|
+
* />
|
|
2744
|
+
*/
|
|
2745
|
+
export const SyncingComponent: ({ title, message, onRefresh, inProgress, timeSync, hideContent, }: SyncingComponentProps) => React.JSX.Element;
|
|
2746
|
+
export {};
|
|
2747
|
+
|
|
2748
|
+
}
|
|
2749
|
+
declare module '@layerfi/components/components/SyncingComponent/index' {
|
|
2750
|
+
export { SyncingComponent } from '@layerfi/components/components/SyncingComponent/SyncingComponent';
|
|
2751
|
+
|
|
2444
2752
|
}
|
|
2445
2753
|
declare module '@layerfi/components/components/Table/Table' {
|
|
2446
2754
|
import React from 'react';
|
|
@@ -2559,20 +2867,25 @@ declare module '@layerfi/components/components/Tasks/Tasks' {
|
|
|
2559
2867
|
refetch: () => void;
|
|
2560
2868
|
submitResponseToTask: (taskId: string, userResponse: string) => void;
|
|
2561
2869
|
};
|
|
2562
|
-
export
|
|
2870
|
+
export interface TasksStringOverrides {
|
|
2871
|
+
header?: string;
|
|
2872
|
+
}
|
|
2873
|
+
export const Tasks: ({ collapsable, defaultCollapsed, collapsedWhenComplete, tasksHeader, stringOverrides, }: {
|
|
2563
2874
|
tasksHeader?: string | undefined;
|
|
2564
2875
|
collapsable?: boolean | undefined;
|
|
2565
2876
|
defaultCollapsed?: boolean | undefined;
|
|
2566
2877
|
collapsedWhenComplete?: boolean | undefined;
|
|
2878
|
+
stringOverrides?: TasksStringOverrides | undefined;
|
|
2567
2879
|
}) => React.JSX.Element;
|
|
2568
2880
|
export const TasksProvider: ({ children }: {
|
|
2569
2881
|
children: ReactNode;
|
|
2570
2882
|
}) => React.JSX.Element;
|
|
2571
|
-
export const TasksComponent: ({
|
|
2883
|
+
export const TasksComponent: ({ collapsable, defaultCollapsed, collapsedWhenComplete, tasksHeader, stringOverrides, }: {
|
|
2572
2884
|
tasksHeader?: string | undefined;
|
|
2573
2885
|
collapsable?: boolean | undefined;
|
|
2574
2886
|
defaultCollapsed?: boolean | undefined;
|
|
2575
2887
|
collapsedWhenComplete?: boolean | undefined;
|
|
2888
|
+
stringOverrides?: TasksStringOverrides | undefined;
|
|
2576
2889
|
}) => React.JSX.Element;
|
|
2577
2890
|
|
|
2578
2891
|
}
|
|
@@ -2608,9 +2921,10 @@ declare module '@layerfi/components/components/TasksList/index' {
|
|
|
2608
2921
|
declare module '@layerfi/components/components/TasksListItem/TasksListItem' {
|
|
2609
2922
|
import React from 'react';
|
|
2610
2923
|
import { TaskTypes } from '@layerfi/components/types/tasks';
|
|
2611
|
-
export const TasksListItem: ({ task,
|
|
2924
|
+
export const TasksListItem: ({ task, goToNextPageIfAllComplete, defaultOpen, }: {
|
|
2612
2925
|
task: TaskTypes;
|
|
2613
|
-
|
|
2926
|
+
goToNextPageIfAllComplete: (task: TaskTypes) => void;
|
|
2927
|
+
defaultOpen: boolean;
|
|
2614
2928
|
}) => React.JSX.Element;
|
|
2615
2929
|
|
|
2616
2930
|
}
|
|
@@ -4116,6 +4430,9 @@ declare module '@layerfi/components/providers/LayerProvider/LayerProvider' {
|
|
|
4116
4430
|
apiUrl: string;
|
|
4117
4431
|
};
|
|
4118
4432
|
export const LayerEnvironment: Record<string, LayerEnvironmentConfig>;
|
|
4433
|
+
export type EventCallbacks = {
|
|
4434
|
+
onTransactionCategorized?: (bankTransactionId: string) => void;
|
|
4435
|
+
};
|
|
4119
4436
|
export type Props = {
|
|
4120
4437
|
businessId: string;
|
|
4121
4438
|
appId?: string;
|
|
@@ -4125,8 +4442,9 @@ declare module '@layerfi/components/providers/LayerProvider/LayerProvider' {
|
|
|
4125
4442
|
theme?: LayerThemeConfig;
|
|
4126
4443
|
usePlaidSandbox?: boolean;
|
|
4127
4444
|
onError?: (error: LayerError) => void;
|
|
4445
|
+
eventCallbacks?: EventCallbacks;
|
|
4128
4446
|
};
|
|
4129
|
-
export const LayerProvider: ({ appId, appSecret, businessId, children, businessAccessToken, environment, theme, usePlaidSandbox, onError, }: PropsWithChildren<Props>) => React.JSX.Element;
|
|
4447
|
+
export const LayerProvider: ({ appId, appSecret, businessId, children, businessAccessToken, environment, theme, usePlaidSandbox, onError, eventCallbacks, }: PropsWithChildren<Props>) => React.JSX.Element;
|
|
4130
4448
|
export {};
|
|
4131
4449
|
|
|
4132
4450
|
}
|
|
@@ -4508,6 +4826,7 @@ declare module '@layerfi/components/types/journal' {
|
|
|
4508
4826
|
declare module '@layerfi/components/types/layer_context' {
|
|
4509
4827
|
import { ToastProps } from '@layerfi/components/components/Toast/Toast';
|
|
4510
4828
|
import { LayerError } from '@layerfi/components/models/ErrorHandler';
|
|
4829
|
+
import { EventCallbacks } from '@layerfi/components/providers/LayerProvider/LayerProvider';
|
|
4511
4830
|
import { Business, Category } from '@layerfi/components/types';
|
|
4512
4831
|
import { ExpiringOAuthResponse } from '@layerfi/components/types/authentication';
|
|
4513
4832
|
import { DataModel } from '@layerfi/components/types/general';
|
|
@@ -4525,6 +4844,7 @@ declare module '@layerfi/components/types/layer_context' {
|
|
|
4525
4844
|
toasts: (ToastProps & {
|
|
4526
4845
|
isExiting: boolean;
|
|
4527
4846
|
})[];
|
|
4847
|
+
eventCallbacks?: EventCallbacks;
|
|
4528
4848
|
};
|
|
4529
4849
|
export type LayerContextHelpers = {
|
|
4530
4850
|
getColor: (shade: number) => ColorsPaletteOption | undefined;
|
|
@@ -5039,13 +5359,24 @@ declare module '@layerfi/components/utils/profitAndLossUtils' {
|
|
|
5039
5359
|
}
|
|
5040
5360
|
declare module '@layerfi/components/views/AccountingOverview/AccountingOverview' {
|
|
5041
5361
|
import React, { ReactNode } from 'react';
|
|
5362
|
+
import { ProfitAndLossDetailedChartsStringOverrides } from '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts';
|
|
5363
|
+
import { ProfitAndLossSummariesStringOverrides } from '@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries';
|
|
5364
|
+
interface AccountingOverviewStringOverrides {
|
|
5365
|
+
header?: string;
|
|
5366
|
+
profitAndLoss?: {
|
|
5367
|
+
detailedCharts?: ProfitAndLossDetailedChartsStringOverrides;
|
|
5368
|
+
summaries?: ProfitAndLossSummariesStringOverrides;
|
|
5369
|
+
};
|
|
5370
|
+
}
|
|
5042
5371
|
export interface AccountingOverviewProps {
|
|
5043
5372
|
title?: string;
|
|
5044
5373
|
enableOnboarding?: boolean;
|
|
5045
5374
|
onTransactionsToReviewClick?: () => void;
|
|
5046
5375
|
middleBanner?: ReactNode;
|
|
5376
|
+
stringOverrides?: AccountingOverviewStringOverrides;
|
|
5047
5377
|
}
|
|
5048
|
-
export const AccountingOverview: ({ title, enableOnboarding, onTransactionsToReviewClick, middleBanner, }: AccountingOverviewProps) => React.JSX.Element;
|
|
5378
|
+
export const AccountingOverview: ({ title, enableOnboarding, onTransactionsToReviewClick, middleBanner, stringOverrides, }: AccountingOverviewProps) => React.JSX.Element;
|
|
5379
|
+
export {};
|
|
5049
5380
|
|
|
5050
5381
|
}
|
|
5051
5382
|
declare module '@layerfi/components/views/AccountingOverview/index' {
|
|
@@ -5054,7 +5385,13 @@ declare module '@layerfi/components/views/AccountingOverview/index' {
|
|
|
5054
5385
|
}
|
|
5055
5386
|
declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/BankTransactionsWithLinkedAccounts' {
|
|
5056
5387
|
import React from 'react';
|
|
5057
|
-
import {
|
|
5388
|
+
import { BankTransactionsStringOverrides } from '@layerfi/components/components/BankTransactions/BankTransactions';
|
|
5389
|
+
import { MobileComponentType } from '@layerfi/components/components/BankTransactions/constants';
|
|
5390
|
+
interface BankTransactionsWithLinkedAccountsStringOverrides {
|
|
5391
|
+
title?: string;
|
|
5392
|
+
linkedAccounts?: BankTransactionsWithLinkedAccountsStringOverrides;
|
|
5393
|
+
bankTransactions?: BankTransactionsStringOverrides;
|
|
5394
|
+
}
|
|
5058
5395
|
export interface BankTransactionsWithLinkedAccountsProps {
|
|
5059
5396
|
title?: string;
|
|
5060
5397
|
elevatedLinkedAccounts?: boolean;
|
|
@@ -5063,9 +5400,13 @@ declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/Ban
|
|
|
5063
5400
|
showBreakConnection?: boolean;
|
|
5064
5401
|
showDescriptions?: boolean;
|
|
5065
5402
|
showReceiptUploads?: boolean;
|
|
5403
|
+
categorizedOnly?: boolean;
|
|
5404
|
+
hardRefreshPnlOnCategorize?: boolean;
|
|
5066
5405
|
mobileComponent?: MobileComponentType;
|
|
5406
|
+
stringOverrides?: BankTransactionsWithLinkedAccountsStringOverrides;
|
|
5067
5407
|
}
|
|
5068
|
-
export const BankTransactionsWithLinkedAccounts: ({ title, elevatedLinkedAccounts, showLedgerBalance, showUnlinkItem, showBreakConnection, showDescriptions, showReceiptUploads, mobileComponent, }: BankTransactionsWithLinkedAccountsProps) => React.JSX.Element;
|
|
5408
|
+
export const BankTransactionsWithLinkedAccounts: ({ title, elevatedLinkedAccounts, showLedgerBalance, showUnlinkItem, showBreakConnection, categorizedOnly, hardRefreshPnlOnCategorize, showDescriptions, showReceiptUploads, mobileComponent, stringOverrides, }: BankTransactionsWithLinkedAccountsProps) => React.JSX.Element;
|
|
5409
|
+
export {};
|
|
5069
5410
|
|
|
5070
5411
|
}
|
|
5071
5412
|
declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/index' {
|
|
@@ -5074,10 +5415,22 @@ declare module '@layerfi/components/views/BankTransactionsWithLinkedAccounts/ind
|
|
|
5074
5415
|
}
|
|
5075
5416
|
declare module '@layerfi/components/views/BookkeepingOverview/BookkeepingOverview' {
|
|
5076
5417
|
import React from 'react';
|
|
5418
|
+
import { ProfitAndLossDetailedChartsStringOverrides } from '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts';
|
|
5419
|
+
import { ProfitAndLossSummariesStringOverrides } from '@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries';
|
|
5420
|
+
import { TasksStringOverrides } from '@layerfi/components/components/Tasks/Tasks';
|
|
5077
5421
|
export interface BookkeepingOverviewProps {
|
|
5078
5422
|
title?: string;
|
|
5423
|
+
stringOverrides?: {
|
|
5424
|
+
title?: string;
|
|
5425
|
+
tasks?: TasksStringOverrides;
|
|
5426
|
+
profitAndLoss?: {
|
|
5427
|
+
header?: string;
|
|
5428
|
+
detailedCharts?: ProfitAndLossDetailedChartsStringOverrides;
|
|
5429
|
+
summaries?: ProfitAndLossSummariesStringOverrides;
|
|
5430
|
+
};
|
|
5431
|
+
};
|
|
5079
5432
|
}
|
|
5080
|
-
export const BookkeepingOverview: ({ title, }: BookkeepingOverviewProps) => React.JSX.Element;
|
|
5433
|
+
export const BookkeepingOverview: ({ title, stringOverrides, }: BookkeepingOverviewProps) => React.JSX.Element;
|
|
5081
5434
|
|
|
5082
5435
|
}
|
|
5083
5436
|
declare module '@layerfi/components/views/BookkeepingOverview/index' {
|
|
@@ -5086,10 +5439,20 @@ declare module '@layerfi/components/views/BookkeepingOverview/index' {
|
|
|
5086
5439
|
}
|
|
5087
5440
|
declare module '@layerfi/components/views/GeneralLedger/GeneralLedger' {
|
|
5088
5441
|
import React from 'react';
|
|
5442
|
+
import { ChartOfAccountsStringOverrides } from '@layerfi/components/components/ChartOfAccounts/ChartOfAccounts';
|
|
5443
|
+
import { JournalStringOverrides } from '@layerfi/components/components/Journal/Journal';
|
|
5444
|
+
export interface GeneralLedgerStringOverrides {
|
|
5445
|
+
title?: string;
|
|
5446
|
+
chartOfAccountsToggleOption?: string;
|
|
5447
|
+
journalToggleOption?: string;
|
|
5448
|
+
chartOfAccounts: ChartOfAccountsStringOverrides;
|
|
5449
|
+
journal: JournalStringOverrides;
|
|
5450
|
+
}
|
|
5089
5451
|
export interface GeneralLedgerProps {
|
|
5090
5452
|
title?: string;
|
|
5453
|
+
stringOverrides?: GeneralLedgerStringOverrides;
|
|
5091
5454
|
}
|
|
5092
|
-
export const GeneralLedgerView: ({ title, }: GeneralLedgerProps) => React.JSX.Element;
|
|
5455
|
+
export const GeneralLedgerView: ({ title, stringOverrides, }: GeneralLedgerProps) => React.JSX.Element;
|
|
5093
5456
|
|
|
5094
5457
|
}
|
|
5095
5458
|
declare module '@layerfi/components/views/GeneralLedger/index' {
|
|
@@ -5098,15 +5461,35 @@ declare module '@layerfi/components/views/GeneralLedger/index' {
|
|
|
5098
5461
|
}
|
|
5099
5462
|
declare module '@layerfi/components/views/Reports/Reports' {
|
|
5100
5463
|
import React, { RefObject } from 'react';
|
|
5464
|
+
import { BalanceSheetStringOverrides } from '@layerfi/components/components/BalanceSheet/BalanceSheet';
|
|
5465
|
+
import { StatementOfCashFlowStringOverrides } from '@layerfi/components/components/StatementOfCashFlow/StatementOfCashFlow';
|
|
5466
|
+
import { ProfitAndLossDetailedChartsStringOverrides } from '@layerfi/components/components/ProfitAndLossDetailedCharts/ProfitAndLossDetailedCharts';
|
|
5467
|
+
import { ProfitAndLossTableStringOverrides } from '@layerfi/components/components/ProfitAndLossTable/ProfitAndLossTable';
|
|
5468
|
+
interface ReportsStringOverrides {
|
|
5469
|
+
title?: string;
|
|
5470
|
+
downloadButton?: DownloadButtonStringOverrides;
|
|
5471
|
+
profitAndLoss?: {
|
|
5472
|
+
detailedCharts?: ProfitAndLossDetailedChartsStringOverrides;
|
|
5473
|
+
table?: ProfitAndLossTableStringOverrides;
|
|
5474
|
+
};
|
|
5475
|
+
balanceSheet?: BalanceSheetStringOverrides;
|
|
5476
|
+
statementOfCashflow?: StatementOfCashFlowStringOverrides;
|
|
5477
|
+
}
|
|
5101
5478
|
export interface ReportsProps {
|
|
5102
5479
|
title?: string;
|
|
5480
|
+
stringOverrides?: ReportsStringOverrides;
|
|
5103
5481
|
}
|
|
5104
5482
|
type ReportType = 'profitAndLoss' | 'balanceSheet' | 'statementOfCashFlow';
|
|
5105
5483
|
export interface ReportsPanelProps {
|
|
5106
5484
|
containerRef: RefObject<HTMLDivElement>;
|
|
5107
5485
|
openReport: ReportType;
|
|
5486
|
+
stringOverrides?: ReportsStringOverrides;
|
|
5487
|
+
}
|
|
5488
|
+
interface DownloadButtonStringOverrides {
|
|
5489
|
+
downloadButtonText?: string;
|
|
5490
|
+
retryButtonText?: string;
|
|
5108
5491
|
}
|
|
5109
|
-
export const Reports: ({ title }: ReportsProps) => React.JSX.Element;
|
|
5492
|
+
export const Reports: ({ title, stringOverrides }: ReportsProps) => React.JSX.Element;
|
|
5110
5493
|
export {};
|
|
5111
5494
|
|
|
5112
5495
|
}
|