@layerfi/components 0.1.51 → 0.1.52
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/.idea/codeStyles/Project.xml +61 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/layer-react.iml +9 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/dist/esm/index.js +15 -10
- package/dist/esm/index.js.map +3 -3
- package/dist/index.d.ts +3 -2
- package/dist/index.js +15 -9
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<component name="ProjectCodeStyleConfiguration">
|
|
2
|
+
<code_scheme name="Project" version="173">
|
|
3
|
+
<HTMLCodeStyleSettings>
|
|
4
|
+
<option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
|
|
5
|
+
</HTMLCodeStyleSettings>
|
|
6
|
+
<JSCodeStyleSettings version="0">
|
|
7
|
+
<option name="USE_SEMICOLON_AFTER_STATEMENT" value="false" />
|
|
8
|
+
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
9
|
+
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
10
|
+
<option name="USE_DOUBLE_QUOTES" value="false" />
|
|
11
|
+
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
12
|
+
<option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
|
|
13
|
+
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
14
|
+
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
15
|
+
</JSCodeStyleSettings>
|
|
16
|
+
<TypeScriptCodeStyleSettings version="0">
|
|
17
|
+
<option name="USE_SEMICOLON_AFTER_STATEMENT" value="false" />
|
|
18
|
+
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
19
|
+
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
20
|
+
<option name="USE_DOUBLE_QUOTES" value="false" />
|
|
21
|
+
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
22
|
+
<option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
|
|
23
|
+
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
24
|
+
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
25
|
+
</TypeScriptCodeStyleSettings>
|
|
26
|
+
<VueCodeStyleSettings>
|
|
27
|
+
<option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
|
|
28
|
+
<option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
|
|
29
|
+
</VueCodeStyleSettings>
|
|
30
|
+
<codeStyleSettings language="HTML">
|
|
31
|
+
<option name="SOFT_MARGINS" value="80" />
|
|
32
|
+
<indentOptions>
|
|
33
|
+
<option name="INDENT_SIZE" value="2" />
|
|
34
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
35
|
+
<option name="TAB_SIZE" value="2" />
|
|
36
|
+
</indentOptions>
|
|
37
|
+
</codeStyleSettings>
|
|
38
|
+
<codeStyleSettings language="JavaScript">
|
|
39
|
+
<option name="SOFT_MARGINS" value="80" />
|
|
40
|
+
<indentOptions>
|
|
41
|
+
<option name="INDENT_SIZE" value="2" />
|
|
42
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
43
|
+
<option name="TAB_SIZE" value="2" />
|
|
44
|
+
</indentOptions>
|
|
45
|
+
</codeStyleSettings>
|
|
46
|
+
<codeStyleSettings language="TypeScript">
|
|
47
|
+
<option name="SOFT_MARGINS" value="80" />
|
|
48
|
+
<indentOptions>
|
|
49
|
+
<option name="INDENT_SIZE" value="2" />
|
|
50
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
51
|
+
<option name="TAB_SIZE" value="2" />
|
|
52
|
+
</indentOptions>
|
|
53
|
+
</codeStyleSettings>
|
|
54
|
+
<codeStyleSettings language="Vue">
|
|
55
|
+
<option name="SOFT_MARGINS" value="80" />
|
|
56
|
+
<indentOptions>
|
|
57
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
58
|
+
</indentOptions>
|
|
59
|
+
</codeStyleSettings>
|
|
60
|
+
</code_scheme>
|
|
61
|
+
</component>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="JAVA_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
+
<exclude-output />
|
|
5
|
+
<content url="file://$MODULE_DIR$" />
|
|
6
|
+
<orderEntry type="inheritedJdk" />
|
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
+
</component>
|
|
9
|
+
</module>
|
package/.idea/misc.xml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectRootManager" version="2" languageLevel="JDK_19" default="true" project-jdk-name="corretto-19" project-jdk-type="JavaSDK">
|
|
4
|
+
<output url="file://$PROJECT_DIR$/out" />
|
|
5
|
+
</component>
|
|
6
|
+
</project>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/layer-react.iml" filepath="$PROJECT_DIR$/.idea/layer-react.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
package/.idea/vcs.xml
ADDED
package/dist/esm/index.js
CHANGED
|
@@ -634,6 +634,7 @@ var Direction = /* @__PURE__ */ ((Direction3) => {
|
|
|
634
634
|
return Direction3;
|
|
635
635
|
})(Direction || {});
|
|
636
636
|
var DisplayState = /* @__PURE__ */ ((DisplayState2) => {
|
|
637
|
+
DisplayState2["all"] = "all";
|
|
637
638
|
DisplayState2["review"] = "review";
|
|
638
639
|
DisplayState2["categorized"] = "categorized";
|
|
639
640
|
return DisplayState2;
|
|
@@ -694,7 +695,7 @@ var filterVisibility = (scope, bankTransaction) => {
|
|
|
694
695
|
const inReview = ReviewCategories.includes(
|
|
695
696
|
bankTransaction.categorization_status
|
|
696
697
|
);
|
|
697
|
-
return scope === "review" /* review */ && inReview || scope === "categorized" /* categorized */ && categorized;
|
|
698
|
+
return scope === "all" /* all */ || scope === "review" /* review */ && inReview || scope === "categorized" /* categorized */ && categorized;
|
|
698
699
|
};
|
|
699
700
|
var isCategorized = (bankTransaction) => CategorizedCategories.includes(bankTransaction.categorization_status);
|
|
700
701
|
|
|
@@ -743,7 +744,7 @@ var applyCategorizationStatusFilter = (data, filter) => {
|
|
|
743
744
|
return data;
|
|
744
745
|
}
|
|
745
746
|
return data?.filter(
|
|
746
|
-
(tx) => filterVisibility(filter, tx) || filter === "review" /* review */ && tx.recently_categorized || filter === "categorized" /* categorized */ && tx.recently_categorized
|
|
747
|
+
(tx) => filterVisibility(filter, tx) || filter === "all" /* all */ || filter === "review" /* review */ && tx.recently_categorized || filter === "categorized" /* categorized */ && tx.recently_categorized
|
|
747
748
|
);
|
|
748
749
|
};
|
|
749
750
|
var appplyDateRangeFilter = (data, filter) => {
|
|
@@ -782,6 +783,8 @@ var useBankTransactions = (params) => {
|
|
|
782
783
|
const display = useMemo2(() => {
|
|
783
784
|
if (filters?.categorizationStatus === "review" /* review */) {
|
|
784
785
|
return "review" /* review */;
|
|
786
|
+
} else if (filters?.categorizationStatus === "all" /* all */) {
|
|
787
|
+
return "all" /* all */;
|
|
785
788
|
}
|
|
786
789
|
return "categorized" /* categorized */;
|
|
787
790
|
}, [filters?.categorizationStatus]);
|
|
@@ -4201,7 +4204,7 @@ var LinkedAccountsComponent = ({
|
|
|
4201
4204
|
};
|
|
4202
4205
|
|
|
4203
4206
|
// src/components/BankTransactions/BankTransactions.tsx
|
|
4204
|
-
import React109, {
|
|
4207
|
+
import React109, { useEffect as useEffect19, useMemo as useMemo6, useState as useState25 } from "react";
|
|
4205
4208
|
|
|
4206
4209
|
// src/hooks/useElementSize/useElementSize.ts
|
|
4207
4210
|
import { useLayoutEffect as useLayoutEffect2, useRef as useRef7 } from "react";
|
|
@@ -8384,6 +8387,7 @@ var BankTransactionsContent = ({
|
|
|
8384
8387
|
showDescriptions = false,
|
|
8385
8388
|
showReceiptUploads = false,
|
|
8386
8389
|
monthlyView = false,
|
|
8390
|
+
categorizeView: categorizeViewProp,
|
|
8387
8391
|
mobileComponent,
|
|
8388
8392
|
filters: inputFilters,
|
|
8389
8393
|
hideHeader = false,
|
|
@@ -8395,7 +8399,7 @@ var BankTransactionsContent = ({
|
|
|
8395
8399
|
startDate: startOfMonth4(/* @__PURE__ */ new Date()),
|
|
8396
8400
|
endDate: endOfMonth3(/* @__PURE__ */ new Date())
|
|
8397
8401
|
});
|
|
8398
|
-
const categorizeView = categorizationEnabled(mode);
|
|
8402
|
+
const categorizeView = categorizeViewProp ?? categorizationEnabled(mode);
|
|
8399
8403
|
const {
|
|
8400
8404
|
activate,
|
|
8401
8405
|
data,
|
|
@@ -8449,13 +8453,13 @@ var BankTransactionsContent = ({
|
|
|
8449
8453
|
}, []);
|
|
8450
8454
|
useEffect19(() => {
|
|
8451
8455
|
if (JSON.stringify(inputFilters) !== JSON.stringify(filters)) {
|
|
8452
|
-
if (!
|
|
8456
|
+
if (!inputFilters?.categorizationStatus && categorizeView) {
|
|
8453
8457
|
setFilters({
|
|
8454
8458
|
...filters,
|
|
8455
8459
|
...inputFilters,
|
|
8456
8460
|
categorizationStatus: "review" /* review */
|
|
8457
8461
|
});
|
|
8458
|
-
} else if (!
|
|
8462
|
+
} else if (!inputFilters?.categorizationStatus && !categorizationEnabled(mode)) {
|
|
8459
8463
|
setFilters({
|
|
8460
8464
|
...filters,
|
|
8461
8465
|
...inputFilters,
|
|
@@ -8464,11 +8468,11 @@ var BankTransactionsContent = ({
|
|
|
8464
8468
|
} else {
|
|
8465
8469
|
setFilters({ ...filters, ...inputFilters });
|
|
8466
8470
|
}
|
|
8467
|
-
} else if (!
|
|
8471
|
+
} else if (!inputFilters?.categorizationStatus && categorizeView) {
|
|
8468
8472
|
setFilters({
|
|
8469
8473
|
categorizationStatus: "review" /* review */
|
|
8470
8474
|
});
|
|
8471
|
-
} else if (!
|
|
8475
|
+
} else if (!inputFilters?.categorizationStatus && !categorizationEnabled(mode)) {
|
|
8472
8476
|
setFilters({
|
|
8473
8477
|
categorizationStatus: "categorized" /* categorized */
|
|
8474
8478
|
});
|
|
@@ -8494,7 +8498,7 @@ var BankTransactionsContent = ({
|
|
|
8494
8498
|
}, [currentPage, data, dateRange]);
|
|
8495
8499
|
const onCategorizationDisplayChange = (event) => {
|
|
8496
8500
|
setFilters({
|
|
8497
|
-
categorizationStatus: event.target.value === "categorized" /* categorized */ ? "categorized" /* categorized */ : "review" /* review */
|
|
8501
|
+
categorizationStatus: event.target.value === "categorized" /* categorized */ ? "categorized" /* categorized */ : event.target.value === "all" /* all */ ? "all" /* all */ : "review" /* review */
|
|
8498
8502
|
});
|
|
8499
8503
|
setCurrentPage(1);
|
|
8500
8504
|
};
|
|
@@ -8520,7 +8524,7 @@ var BankTransactionsContent = ({
|
|
|
8520
8524
|
}
|
|
8521
8525
|
debounceContainerWidth(size?.width);
|
|
8522
8526
|
});
|
|
8523
|
-
const editable = display === "review" /* review */;
|
|
8527
|
+
const editable = display === "review" /* review */ || display === "all" /* all */;
|
|
8524
8528
|
const isLastPage = data && !hasMore && Math.ceil((data?.length || 0) / pageSize) === currentPage;
|
|
8525
8529
|
return /* @__PURE__ */ React109.createElement(
|
|
8526
8530
|
Container,
|
|
@@ -15681,6 +15685,7 @@ export {
|
|
|
15681
15685
|
BookkeepingOverview,
|
|
15682
15686
|
BookkeepingUpsellBar,
|
|
15683
15687
|
ChartOfAccounts,
|
|
15688
|
+
Direction,
|
|
15684
15689
|
DisplayState,
|
|
15685
15690
|
GeneralLedgerView,
|
|
15686
15691
|
Journal,
|