@layerfi/components 0.1.56 → 0.1.57
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 +468 -628
- package/dist/esm/index.js.map +4 -4
- package/dist/index.d.ts +50 -56
- package/dist/index.js +417 -577
- package/dist/index.js.map +4 -4
- package/dist/styles/index.css +21 -98
- package/dist/styles/index.css.map +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -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 {
|
|
@@ -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: ({ view, stringOverrides, data, error, expandAll, cumulativeIndex, accountsLength, }: {
|
|
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' {
|
|
@@ -1949,7 +1950,7 @@ declare module '@layerfi/components/components/Input/index' {
|
|
|
1949
1950
|
}
|
|
1950
1951
|
declare module '@layerfi/components/components/Journal/Journal' {
|
|
1951
1952
|
import React from 'react';
|
|
1952
|
-
import { JournalTableStringOverrides } from '@layerfi/components/components/JournalTable/
|
|
1953
|
+
import { JournalTableStringOverrides } from '@layerfi/components/components/JournalTable/JournalTableWithPanel';
|
|
1953
1954
|
export type View = 'mobile' | 'tablet' | 'desktop';
|
|
1954
1955
|
export interface JournalConfig {
|
|
1955
1956
|
form: {
|
|
@@ -2015,29 +2016,6 @@ declare module '@layerfi/components/components/JournalForm/JournalFormEntryLines
|
|
|
2015
2016
|
declare module '@layerfi/components/components/JournalForm/index' {
|
|
2016
2017
|
export { JournalForm } from '@layerfi/components/components/JournalForm/JournalForm';
|
|
2017
2018
|
|
|
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
2019
|
}
|
|
2042
2020
|
declare module '@layerfi/components/components/JournalSidebar/JournalSidebar' {
|
|
2043
2021
|
import React, { RefObject } from 'react';
|
|
@@ -2055,6 +2033,18 @@ declare module '@layerfi/components/components/JournalSidebar/index' {
|
|
|
2055
2033
|
|
|
2056
2034
|
}
|
|
2057
2035
|
declare module '@layerfi/components/components/JournalTable/JournalTable' {
|
|
2036
|
+
import React from 'react';
|
|
2037
|
+
import { JournalEntry } from '@layerfi/components/types';
|
|
2038
|
+
import { View } from '@layerfi/components/components/Journal/index';
|
|
2039
|
+
import { JournalTableStringOverrides } from '@layerfi/components/components/JournalTable/JournalTableWithPanel';
|
|
2040
|
+
export const JournalTable: ({ view, data, stringOverrides, }: {
|
|
2041
|
+
view: View;
|
|
2042
|
+
data: JournalEntry[];
|
|
2043
|
+
stringOverrides?: JournalTableStringOverrides | undefined;
|
|
2044
|
+
}) => React.JSX.Element;
|
|
2045
|
+
|
|
2046
|
+
}
|
|
2047
|
+
declare module '@layerfi/components/components/JournalTable/JournalTableWithPanel' {
|
|
2058
2048
|
import React, { RefObject } from 'react';
|
|
2059
2049
|
import { View } from '@layerfi/components/components/Journal/index';
|
|
2060
2050
|
import { JournalConfig } from '@layerfi/components/components/Journal/Journal';
|
|
@@ -2070,7 +2060,7 @@ declare module '@layerfi/components/components/JournalTable/JournalTable' {
|
|
|
2070
2060
|
creditColumnHeader?: string;
|
|
2071
2061
|
journalForm?: JournalFormStringOverrides;
|
|
2072
2062
|
}
|
|
2073
|
-
export const
|
|
2063
|
+
export const JournalTableWithPanel: ({ containerRef, pageSize, config, stringOverrides, }: {
|
|
2074
2064
|
view: View;
|
|
2075
2065
|
containerRef: RefObject<HTMLDivElement>;
|
|
2076
2066
|
pageSize?: number | undefined;
|
|
@@ -2080,7 +2070,7 @@ declare module '@layerfi/components/components/JournalTable/JournalTable' {
|
|
|
2080
2070
|
|
|
2081
2071
|
}
|
|
2082
2072
|
declare module '@layerfi/components/components/JournalTable/index' {
|
|
2083
|
-
export { JournalTable } from '@layerfi/components/components/JournalTable/
|
|
2073
|
+
export { JournalTableWithPanel as JournalTable } from '@layerfi/components/components/JournalTable/JournalTableWithPanel';
|
|
2084
2074
|
|
|
2085
2075
|
}
|
|
2086
2076
|
declare module '@layerfi/components/components/LedgerAccount/LedgerAccountIndex' {
|
|
@@ -2897,7 +2887,7 @@ declare module '@layerfi/components/components/TableBody/index' {
|
|
|
2897
2887
|
declare module '@layerfi/components/components/TableCell/TableCell' {
|
|
2898
2888
|
import React from 'react';
|
|
2899
2889
|
import { TableCellProps } from '@layerfi/components/types/table';
|
|
2900
|
-
export const TableCell: ({ children, isHeaderCell, isCurrency, primary, withExpandIcon, fullWidth, }: TableCellProps) => React.JSX.Element;
|
|
2890
|
+
export const TableCell: ({ children, isHeaderCell, isCurrency, primary, withExpandIcon, fullWidth, colSpan, onClick, }: TableCellProps) => React.JSX.Element;
|
|
2901
2891
|
|
|
2902
2892
|
}
|
|
2903
2893
|
declare module '@layerfi/components/components/TableCell/index' {
|
|
@@ -5432,7 +5422,9 @@ declare module '@layerfi/components/types/table' {
|
|
|
5432
5422
|
withDividerPosition?: 'top' | 'bottom';
|
|
5433
5423
|
isExpanded?: boolean;
|
|
5434
5424
|
handleExpand?: () => void;
|
|
5425
|
+
onClick?: (e: React.MouseEvent<HTMLTableRowElement, MouseEvent>) => void;
|
|
5435
5426
|
isHeadRow?: boolean;
|
|
5427
|
+
selected?: boolean;
|
|
5436
5428
|
}
|
|
5437
5429
|
export interface TableCellProps {
|
|
5438
5430
|
children?: number | string | ReactNode;
|
|
@@ -5441,6 +5433,8 @@ declare module '@layerfi/components/types/table' {
|
|
|
5441
5433
|
primary?: boolean;
|
|
5442
5434
|
withExpandIcon?: boolean;
|
|
5443
5435
|
fullWidth?: boolean;
|
|
5436
|
+
colSpan?: number;
|
|
5437
|
+
onClick?: (e: React.MouseEvent<HTMLTableCellElement, MouseEvent>) => void;
|
|
5444
5438
|
}
|
|
5445
5439
|
|
|
5446
5440
|
}
|
|
@@ -5721,14 +5715,14 @@ declare module '@layerfi/components/views/Reports/Reports' {
|
|
|
5721
5715
|
title?: string;
|
|
5722
5716
|
stringOverrides?: ReportsStringOverrides;
|
|
5723
5717
|
enabledReports?: ReportType[];
|
|
5724
|
-
comparisonConfig
|
|
5718
|
+
comparisonConfig?: ProfitAndLossCompareOptionsProps;
|
|
5725
5719
|
}
|
|
5726
5720
|
type ReportType = 'profitAndLoss' | 'balanceSheet' | 'statementOfCashFlow';
|
|
5727
5721
|
export interface ReportsPanelProps {
|
|
5728
5722
|
containerRef: RefObject<HTMLDivElement>;
|
|
5729
5723
|
openReport: ReportType;
|
|
5730
5724
|
stringOverrides?: ReportsStringOverrides;
|
|
5731
|
-
comparisonConfig
|
|
5725
|
+
comparisonConfig?: ProfitAndLossCompareOptionsProps;
|
|
5732
5726
|
}
|
|
5733
5727
|
interface DownloadButtonStringOverrides {
|
|
5734
5728
|
downloadButtonText?: string;
|