@layerfi/components 0.1.63 → 0.1.65
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 +98 -34
- package/dist/esm/index.js.map +4 -4
- package/dist/index.d.ts +34 -15
- package/dist/index.js +98 -34
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -4881,7 +4881,8 @@ import classNames23 from "classnames";
|
|
|
4881
4881
|
var ActionableList = ({
|
|
4882
4882
|
options,
|
|
4883
4883
|
onClick,
|
|
4884
|
-
selectedId
|
|
4884
|
+
selectedId,
|
|
4885
|
+
showDescriptions = false
|
|
4885
4886
|
}) => {
|
|
4886
4887
|
return /* @__PURE__ */ React68.createElement("ul", { className: "Layer__actionable-list" }, options.map((x, idx) => /* @__PURE__ */ React68.createElement(
|
|
4887
4888
|
"li",
|
|
@@ -4900,7 +4901,7 @@ var ActionableList = ({
|
|
|
4900
4901
|
{ className: "Layer__actionable-list__content" },
|
|
4901
4902
|
/* @__PURE__ */ React68.createElement(Text, { size: "sm" /* sm */ }, x.label),
|
|
4902
4903
|
/*TODO: Replace 'See all categories' with something more generic*/
|
|
4903
|
-
x.description && x.label !== "See all categories" && /* @__PURE__ */ React68.createElement(
|
|
4904
|
+
showDescriptions && x.description && x.label !== "See all categories" && /* @__PURE__ */ React68.createElement(
|
|
4904
4905
|
Text,
|
|
4905
4906
|
{
|
|
4906
4907
|
className: "Layer__actionable-list__content-description",
|
|
@@ -4927,9 +4928,6 @@ var ActionableList = ({
|
|
|
4927
4928
|
)));
|
|
4928
4929
|
};
|
|
4929
4930
|
|
|
4930
|
-
// src/components/BankTransactionMobileList/constants.ts
|
|
4931
|
-
var PersonalCategories = ["PERSONAL_INCOME", "PERSONAL_EXPENSES"];
|
|
4932
|
-
|
|
4933
4931
|
// src/components/BankTransactionMobileList/utils.ts
|
|
4934
4932
|
var mapCategoryToOption = (category) => ({
|
|
4935
4933
|
label: category.display_name,
|
|
@@ -4976,7 +4974,7 @@ var getAssignedValue = (bankTransaction) => {
|
|
|
4976
4974
|
if (bankTransaction.categorization_status === "MATCHED" /* MATCHED */ || bankTransaction?.categorization_status === "SPLIT" /* SPLIT */) {
|
|
4977
4975
|
return;
|
|
4978
4976
|
}
|
|
4979
|
-
if (bankTransaction.category &&
|
|
4977
|
+
if (bankTransaction.category && bankTransaction.category.type != "Exclusion") {
|
|
4980
4978
|
return mapCategoryToOption(bankTransaction.category);
|
|
4981
4979
|
}
|
|
4982
4980
|
if (hasSuggestions(bankTransaction.categorization_flow)) {
|
|
@@ -4992,7 +4990,9 @@ var BusinessCategories = ({
|
|
|
4992
4990
|
selectedId
|
|
4993
4991
|
}) => {
|
|
4994
4992
|
const { categories } = useLayerContext();
|
|
4995
|
-
const categoryOptions = flattenCategories(
|
|
4993
|
+
const categoryOptions = flattenCategories(
|
|
4994
|
+
categories.filter((category) => category.type != "ExclusionNested")
|
|
4995
|
+
);
|
|
4996
4996
|
const [optionsToShow, setOptionsToShow] = useState11(categoryOptions);
|
|
4997
4997
|
const [selectedGroup, setSelectedGroup] = useState11();
|
|
4998
4998
|
const onCategorySelect = (v) => {
|
|
@@ -5157,7 +5157,7 @@ var Option2 = (props) => {
|
|
|
5157
5157
|
className: `Layer__select__option-menu-content ${props.className}`
|
|
5158
5158
|
},
|
|
5159
5159
|
/* @__PURE__ */ React71.createElement("div", { className: "Layer__select__option-menu--name" }, props.isSelected ? /* @__PURE__ */ React71.createElement("span", { className: "Layer__select__option-menu-content-check" }, /* @__PURE__ */ React71.createElement(Check_default, { size: 16 })) : /* @__PURE__ */ React71.createElement("span", { className: "Layer__select__option-menu-content-check" }, /* @__PURE__ */ React71.createElement("div", { style: { width: 16, height: 16 } })), /* @__PURE__ */ React71.createElement("div", null, props.data.payload.display_name)),
|
|
5160
|
-
props.data.payload.description && /* @__PURE__ */ React71.createElement("div", { className: "Layer__select__option-menu--tooltip" }, /* @__PURE__ */ React71.createElement(Tooltip, null, /* @__PURE__ */ React71.createElement(TooltipTrigger, null, /* @__PURE__ */ React71.createElement(InfoIcon_default, null)), /* @__PURE__ */ React71.createElement(TooltipContent, { className: "Layer__actionable-list__tooltip-content" }, /* @__PURE__ */ React71.createElement(
|
|
5160
|
+
props.showTooltips && props.data.payload.description && /* @__PURE__ */ React71.createElement("div", { className: "Layer__select__option-menu--tooltip" }, /* @__PURE__ */ React71.createElement(Tooltip, null, /* @__PURE__ */ React71.createElement(TooltipTrigger, null, /* @__PURE__ */ React71.createElement(InfoIcon_default, null)), /* @__PURE__ */ React71.createElement(TooltipContent, { className: "Layer__actionable-list__tooltip-content" }, /* @__PURE__ */ React71.createElement(
|
|
5161
5161
|
Text,
|
|
5162
5162
|
{
|
|
5163
5163
|
className: "Layer__actionable-list__content-description",
|
|
@@ -5206,6 +5206,7 @@ var CategorySelect = ({
|
|
|
5206
5206
|
onChange,
|
|
5207
5207
|
disabled,
|
|
5208
5208
|
className,
|
|
5209
|
+
showTooltips,
|
|
5209
5210
|
excludeMatches = false,
|
|
5210
5211
|
asDrawer = false
|
|
5211
5212
|
}) => {
|
|
@@ -5269,7 +5270,11 @@ var CategorySelect = ({
|
|
|
5269
5270
|
styles: {
|
|
5270
5271
|
menuPortal: (base) => ({ ...base, zIndex: 9999 })
|
|
5271
5272
|
},
|
|
5272
|
-
components: {
|
|
5273
|
+
components: {
|
|
5274
|
+
DropdownIndicator,
|
|
5275
|
+
GroupHeading,
|
|
5276
|
+
Option: (optionProps) => /* @__PURE__ */ React71.createElement(Option2, { ...optionProps, showTooltips })
|
|
5277
|
+
},
|
|
5273
5278
|
isDisabled: disabled,
|
|
5274
5279
|
isOptionDisabled: (option) => option.disabled ?? false,
|
|
5275
5280
|
isOptionSelected: (option) => selected?.payload.display_name == option.payload.display_name
|
|
@@ -6118,7 +6123,8 @@ var ExpandedBankTransactionRow = forwardRef5(
|
|
|
6118
6123
|
containerWidth,
|
|
6119
6124
|
showDescriptions,
|
|
6120
6125
|
mode,
|
|
6121
|
-
showReceiptUploads
|
|
6126
|
+
showReceiptUploads,
|
|
6127
|
+
showTooltips
|
|
6122
6128
|
}, ref) => {
|
|
6123
6129
|
const {
|
|
6124
6130
|
categorize: categorizeBankTransaction2,
|
|
@@ -6472,7 +6478,8 @@ var ExpandedBankTransactionRow = forwardRef5(
|
|
|
6472
6478
|
onChange: (value) => changeCategory(index, value),
|
|
6473
6479
|
className: "Layer__category-menu--full",
|
|
6474
6480
|
disabled: bankTransaction.processing || !categorizationEnabled(mode),
|
|
6475
|
-
excludeMatches: true
|
|
6481
|
+
excludeMatches: true,
|
|
6482
|
+
showTooltips
|
|
6476
6483
|
}
|
|
6477
6484
|
),
|
|
6478
6485
|
index > 0 && /* @__PURE__ */ React87.createElement(
|
|
@@ -6641,6 +6648,7 @@ var BankTransactionRow = ({
|
|
|
6641
6648
|
initialLoad,
|
|
6642
6649
|
showDescriptions,
|
|
6643
6650
|
showReceiptUploads,
|
|
6651
|
+
showTooltips,
|
|
6644
6652
|
stringOverrides
|
|
6645
6653
|
}) => {
|
|
6646
6654
|
const expandedRowRef = useRef9(null);
|
|
@@ -6796,7 +6804,8 @@ var BankTransactionRow = ({
|
|
|
6796
6804
|
setSelectedCategory(category);
|
|
6797
6805
|
setShowRetry(false);
|
|
6798
6806
|
},
|
|
6799
|
-
disabled: bankTransaction.processing
|
|
6807
|
+
disabled: bankTransaction.processing,
|
|
6808
|
+
showTooltips
|
|
6800
6809
|
}
|
|
6801
6810
|
) : null,
|
|
6802
6811
|
categorized && !open ? /* @__PURE__ */ React89.createElement(Text, { as: "span", className: `${className}__category-text` }, bankTransaction.categorization_status === "SPLIT" /* SPLIT */ && /* @__PURE__ */ React89.createElement(React89.Fragment, null, /* @__PURE__ */ React89.createElement(
|
|
@@ -6888,7 +6897,8 @@ var BankTransactionRow = ({
|
|
|
6888
6897
|
close: () => setOpen(false),
|
|
6889
6898
|
containerWidth,
|
|
6890
6899
|
showDescriptions,
|
|
6891
|
-
showReceiptUploads
|
|
6900
|
+
showReceiptUploads,
|
|
6901
|
+
showTooltips
|
|
6892
6902
|
}
|
|
6893
6903
|
))));
|
|
6894
6904
|
};
|
|
@@ -6941,6 +6951,7 @@ var BankTransactionListItem = ({
|
|
|
6941
6951
|
mode,
|
|
6942
6952
|
showDescriptions,
|
|
6943
6953
|
showReceiptUploads,
|
|
6954
|
+
showTooltips,
|
|
6944
6955
|
containerWidth,
|
|
6945
6956
|
removeTransaction,
|
|
6946
6957
|
stringOverrides
|
|
@@ -7037,7 +7048,8 @@ var BankTransactionListItem = ({
|
|
|
7037
7048
|
submitBtnText: categorized ? stringOverrides?.updateButtonText || "Update" : stringOverrides?.approveButtonText || "Approve",
|
|
7038
7049
|
containerWidth,
|
|
7039
7050
|
showDescriptions,
|
|
7040
|
-
showReceiptUploads
|
|
7051
|
+
showReceiptUploads,
|
|
7052
|
+
showTooltips
|
|
7041
7053
|
}
|
|
7042
7054
|
)), /* @__PURE__ */ React91.createElement("span", { className: `${className}__base-row` }, !categorized ? /* @__PURE__ */ React91.createElement(
|
|
7043
7055
|
CategorySelect,
|
|
@@ -7049,7 +7061,8 @@ var BankTransactionListItem = ({
|
|
|
7049
7061
|
setShowRetry(false);
|
|
7050
7062
|
setSelectedCategory(category);
|
|
7051
7063
|
},
|
|
7052
|
-
disabled: bankTransaction.processing
|
|
7064
|
+
disabled: bankTransaction.processing,
|
|
7065
|
+
showTooltips
|
|
7053
7066
|
}
|
|
7054
7067
|
) : null, categorized ? /* @__PURE__ */ React91.createElement(Assignment, { bankTransaction }) : null, !categorized && !showRetry ? /* @__PURE__ */ React91.createElement(
|
|
7055
7068
|
SubmitButton,
|
|
@@ -7089,6 +7102,7 @@ var BankTransactionList = ({
|
|
|
7089
7102
|
containerWidth,
|
|
7090
7103
|
showDescriptions = false,
|
|
7091
7104
|
showReceiptUploads = false,
|
|
7105
|
+
showTooltips,
|
|
7092
7106
|
stringOverrides
|
|
7093
7107
|
}) => {
|
|
7094
7108
|
return /* @__PURE__ */ React92.createElement("ul", { className: "Layer__bank-transactions__list" }, bankTransactions?.map(
|
|
@@ -7105,6 +7119,7 @@ var BankTransactionList = ({
|
|
|
7105
7119
|
containerWidth,
|
|
7106
7120
|
showDescriptions,
|
|
7107
7121
|
showReceiptUploads,
|
|
7122
|
+
showTooltips,
|
|
7108
7123
|
stringOverrides
|
|
7109
7124
|
}
|
|
7110
7125
|
)
|
|
@@ -7122,7 +7137,10 @@ import React98 from "react";
|
|
|
7122
7137
|
|
|
7123
7138
|
// src/components/BankTransactionMobileList/BusinessForm.tsx
|
|
7124
7139
|
import React93, { useContext as useContext10, useEffect as useEffect14, useMemo as useMemo4, useState as useState17 } from "react";
|
|
7125
|
-
var BusinessForm = ({
|
|
7140
|
+
var BusinessForm = ({
|
|
7141
|
+
bankTransaction,
|
|
7142
|
+
showTooltips
|
|
7143
|
+
}) => {
|
|
7126
7144
|
const { setContent, close } = useContext10(DrawerContext);
|
|
7127
7145
|
const { categorize: categorizeBankTransaction2, isLoading } = useBankTransactionsContext();
|
|
7128
7146
|
const [selectedCategory, setSelectedCategory] = useState17(
|
|
@@ -7205,7 +7223,8 @@ var BusinessForm = ({ bankTransaction }) => {
|
|
|
7205
7223
|
{
|
|
7206
7224
|
options,
|
|
7207
7225
|
onClick: onCategorySelect,
|
|
7208
|
-
selectedId: selectedCategory?.id
|
|
7226
|
+
selectedId: selectedCategory?.id,
|
|
7227
|
+
showDescriptions: showTooltips
|
|
7209
7228
|
}
|
|
7210
7229
|
), options.length === 0 ? /* @__PURE__ */ React93.createElement(
|
|
7211
7230
|
Button,
|
|
@@ -7228,12 +7247,21 @@ var BusinessForm = ({ bankTransaction }) => {
|
|
|
7228
7247
|
|
|
7229
7248
|
// src/components/BankTransactionMobileList/PersonalForm.tsx
|
|
7230
7249
|
import React94, { useEffect as useEffect15, useState as useState18 } from "react";
|
|
7250
|
+
|
|
7251
|
+
// src/components/BankTransactionMobileList/constants.ts
|
|
7252
|
+
var PersonalCategories = /* @__PURE__ */ ((PersonalCategories2) => {
|
|
7253
|
+
PersonalCategories2["INCOME"] = "PERSONAL_INFLOWS";
|
|
7254
|
+
PersonalCategories2["EXPENSES"] = "PERSONAL_EXPENSES";
|
|
7255
|
+
return PersonalCategories2;
|
|
7256
|
+
})(PersonalCategories || {});
|
|
7257
|
+
|
|
7258
|
+
// src/components/BankTransactionMobileList/PersonalForm.tsx
|
|
7231
7259
|
var isAlreadyAssigned = (bankTransaction) => {
|
|
7232
7260
|
if (bankTransaction.categorization_status === "MATCHED" /* MATCHED */ || bankTransaction?.categorization_status === "SPLIT" /* SPLIT */) {
|
|
7233
7261
|
return false;
|
|
7234
7262
|
}
|
|
7235
7263
|
return Boolean(
|
|
7236
|
-
bankTransaction.category && PersonalCategories.includes(bankTransaction.category.display_name)
|
|
7264
|
+
bankTransaction.category && Object.values(PersonalCategories).includes(bankTransaction.category.display_name)
|
|
7237
7265
|
);
|
|
7238
7266
|
};
|
|
7239
7267
|
var PersonalForm = ({ bankTransaction }) => {
|
|
@@ -7250,8 +7278,8 @@ var PersonalForm = ({ bankTransaction }) => {
|
|
|
7250
7278
|
{
|
|
7251
7279
|
type: "Category",
|
|
7252
7280
|
category: {
|
|
7253
|
-
type: "
|
|
7254
|
-
|
|
7281
|
+
type: "Exclusion",
|
|
7282
|
+
exclusion_type: isCredit(bankTransaction) ? "PERSONAL_INFLOWS" /* INCOME */ : "PERSONAL_EXPENSES" /* EXPENSES */
|
|
7255
7283
|
}
|
|
7256
7284
|
},
|
|
7257
7285
|
true
|
|
@@ -7333,7 +7361,8 @@ var MatchForm2 = ({
|
|
|
7333
7361
|
import React96, { useEffect as useEffect17, useState as useState20 } from "react";
|
|
7334
7362
|
import classNames38 from "classnames";
|
|
7335
7363
|
var SplitForm = ({
|
|
7336
|
-
bankTransaction
|
|
7364
|
+
bankTransaction,
|
|
7365
|
+
showTooltips
|
|
7337
7366
|
}) => {
|
|
7338
7367
|
const {
|
|
7339
7368
|
categorize: categorizeBankTransaction2,
|
|
@@ -7484,7 +7513,8 @@ var SplitForm = ({
|
|
|
7484
7513
|
className: "Layer__category-menu--full",
|
|
7485
7514
|
disabled: bankTransaction.processing,
|
|
7486
7515
|
excludeMatches: true,
|
|
7487
|
-
asDrawer: true
|
|
7516
|
+
asDrawer: true,
|
|
7517
|
+
showTooltips
|
|
7488
7518
|
}
|
|
7489
7519
|
)),
|
|
7490
7520
|
/* @__PURE__ */ React96.createElement(
|
|
@@ -7536,28 +7566,48 @@ var SplitForm = ({
|
|
|
7536
7566
|
|
|
7537
7567
|
// src/components/BankTransactionMobileList/SplitAndMatchForm.tsx
|
|
7538
7568
|
var SplitAndMatchForm = ({
|
|
7539
|
-
bankTransaction
|
|
7569
|
+
bankTransaction,
|
|
7570
|
+
showTooltips
|
|
7540
7571
|
}) => {
|
|
7541
7572
|
const anyMatch = hasMatch(bankTransaction);
|
|
7542
7573
|
const [formType, setFormType] = useState21(
|
|
7543
7574
|
bankTransaction.category ? "categorize" /* categorize */ : anyMatch ? "match" /* match */ : "categorize" /* categorize */
|
|
7544
7575
|
);
|
|
7545
|
-
return /* @__PURE__ */ React97.createElement("div", { className: "Layer__bank-transaction-mobile-list-item__split-and-match-form" }, formType === "categorize" /* categorize */ && /* @__PURE__ */ React97.createElement(
|
|
7576
|
+
return /* @__PURE__ */ React97.createElement("div", { className: "Layer__bank-transaction-mobile-list-item__split-and-match-form" }, formType === "categorize" /* categorize */ && /* @__PURE__ */ React97.createElement(
|
|
7577
|
+
SplitForm,
|
|
7578
|
+
{
|
|
7579
|
+
bankTransaction,
|
|
7580
|
+
showTooltips
|
|
7581
|
+
}
|
|
7582
|
+
), formType === "match" /* match */ && /* @__PURE__ */ React97.createElement(MatchForm2, { bankTransaction }), anyMatch && formType === "match" /* match */ ? /* @__PURE__ */ React97.createElement("div", { className: "Layer__bank-transaction-mobile-list-item__switch-form-btns" }, /* @__PURE__ */ React97.createElement(TextButton, { onClick: () => setFormType("categorize" /* categorize */) }, "or split transaction")) : null, anyMatch && formType === "categorize" /* categorize */ ? /* @__PURE__ */ React97.createElement("div", { className: "Layer__bank-transaction-mobile-list-item__switch-form-btns" }, /* @__PURE__ */ React97.createElement(TextButton, { onClick: () => setFormType("match" /* match */) }, "or find match")) : null);
|
|
7546
7583
|
};
|
|
7547
7584
|
|
|
7548
7585
|
// src/components/BankTransactionMobileList/BankTransactionMobileForms.tsx
|
|
7549
7586
|
var BankTransactionMobileForms = ({
|
|
7550
7587
|
purpose,
|
|
7551
|
-
bankTransaction
|
|
7588
|
+
bankTransaction,
|
|
7589
|
+
showTooltips
|
|
7552
7590
|
}) => {
|
|
7553
7591
|
const getContent = () => {
|
|
7554
7592
|
switch (purpose) {
|
|
7555
7593
|
case "business":
|
|
7556
|
-
return /* @__PURE__ */ React98.createElement(
|
|
7594
|
+
return /* @__PURE__ */ React98.createElement(
|
|
7595
|
+
BusinessForm,
|
|
7596
|
+
{
|
|
7597
|
+
bankTransaction,
|
|
7598
|
+
showTooltips
|
|
7599
|
+
}
|
|
7600
|
+
);
|
|
7557
7601
|
case "personal":
|
|
7558
7602
|
return /* @__PURE__ */ React98.createElement(PersonalForm, { bankTransaction });
|
|
7559
7603
|
case "more":
|
|
7560
|
-
return /* @__PURE__ */ React98.createElement(
|
|
7604
|
+
return /* @__PURE__ */ React98.createElement(
|
|
7605
|
+
SplitAndMatchForm,
|
|
7606
|
+
{
|
|
7607
|
+
bankTransaction,
|
|
7608
|
+
showTooltips
|
|
7609
|
+
}
|
|
7610
|
+
);
|
|
7561
7611
|
default:
|
|
7562
7612
|
return null;
|
|
7563
7613
|
}
|
|
@@ -7602,6 +7652,7 @@ var BankTransactionMobileListItem = ({
|
|
|
7602
7652
|
editable,
|
|
7603
7653
|
mode,
|
|
7604
7654
|
initialLoad,
|
|
7655
|
+
showTooltips,
|
|
7605
7656
|
isFirstItem = false
|
|
7606
7657
|
}) => {
|
|
7607
7658
|
const {
|
|
@@ -7619,7 +7670,7 @@ var BankTransactionMobileListItem = ({
|
|
|
7619
7670
|
const itemRef = useRef11(null);
|
|
7620
7671
|
const [removeAnim, setRemoveAnim] = useState23(false);
|
|
7621
7672
|
const [purpose, setPurpose] = useState23(
|
|
7622
|
-
bankTransaction.category ? bankTransaction.categorization_status === "SPLIT" /* SPLIT */ ? "more" /* more */ : "business" /* business */ : hasMatch(bankTransaction) ? "more" /* more */ : "business" /* business */
|
|
7673
|
+
bankTransaction.category ? bankTransaction.category.type === "Exclusion" ? "personal" /* personal */ : bankTransaction.categorization_status === "SPLIT" /* SPLIT */ ? "more" /* more */ : "business" /* business */ : hasMatch(bankTransaction) ? "more" /* more */ : "business" /* business */
|
|
7623
7674
|
);
|
|
7624
7675
|
const [open, setOpen] = useState23(isFirstItem);
|
|
7625
7676
|
const [showComponent, setShowComponent] = useState23(!initialLoad);
|
|
@@ -7753,7 +7804,8 @@ var BankTransactionMobileListItem = ({
|
|
|
7753
7804
|
BankTransactionMobileForms,
|
|
7754
7805
|
{
|
|
7755
7806
|
purpose,
|
|
7756
|
-
bankTransaction
|
|
7807
|
+
bankTransaction,
|
|
7808
|
+
showTooltips
|
|
7757
7809
|
}
|
|
7758
7810
|
)
|
|
7759
7811
|
)
|
|
@@ -7766,6 +7818,7 @@ var BankTransactionMobileList = ({
|
|
|
7766
7818
|
removeTransaction,
|
|
7767
7819
|
editable,
|
|
7768
7820
|
initialLoad,
|
|
7821
|
+
showTooltips,
|
|
7769
7822
|
mode
|
|
7770
7823
|
}) => {
|
|
7771
7824
|
const transactionToOpenContextData = useTransactionToOpen();
|
|
@@ -7777,6 +7830,7 @@ var BankTransactionMobileList = ({
|
|
|
7777
7830
|
mode,
|
|
7778
7831
|
key: bankTransaction.id,
|
|
7779
7832
|
bankTransaction,
|
|
7833
|
+
showTooltips,
|
|
7780
7834
|
editable,
|
|
7781
7835
|
removeTransaction,
|
|
7782
7836
|
initialLoad,
|
|
@@ -7846,7 +7900,8 @@ var SkeletonTableLoader = ({
|
|
|
7846
7900
|
|
|
7847
7901
|
// src/components/BankTransactionsLoader/BankTransactionsLoader.tsx
|
|
7848
7902
|
var BankTransactionsLoader = ({
|
|
7849
|
-
isLoading = true
|
|
7903
|
+
isLoading = true,
|
|
7904
|
+
showTooltips
|
|
7850
7905
|
}) => {
|
|
7851
7906
|
const inactiveBankTransactionsActions = /* @__PURE__ */ React103.createElement("div", { className: "Layer__bank-transaction-row__actions-container Layer__bank-transaction-row__actions-disabled" }, /* @__PURE__ */ React103.createElement(
|
|
7852
7907
|
CategorySelect,
|
|
@@ -7856,7 +7911,8 @@ var BankTransactionsLoader = ({
|
|
|
7856
7911
|
value: void 0,
|
|
7857
7912
|
onChange: () => {
|
|
7858
7913
|
},
|
|
7859
|
-
disabled: true
|
|
7914
|
+
disabled: true,
|
|
7915
|
+
showTooltips
|
|
7860
7916
|
}
|
|
7861
7917
|
), /* @__PURE__ */ React103.createElement(
|
|
7862
7918
|
SubmitButton,
|
|
@@ -7939,6 +7995,7 @@ var BankTransactionsTable = ({
|
|
|
7939
7995
|
removeTransaction,
|
|
7940
7996
|
showDescriptions = false,
|
|
7941
7997
|
showReceiptUploads = false,
|
|
7998
|
+
showTooltips,
|
|
7942
7999
|
stringOverrides,
|
|
7943
8000
|
isSyncing = false,
|
|
7944
8001
|
page,
|
|
@@ -7952,7 +8009,7 @@ var BankTransactionsTable = ({
|
|
|
7952
8009
|
className: "Layer__table Layer__bank-transactions__table with-cell-separators"
|
|
7953
8010
|
},
|
|
7954
8011
|
/* @__PURE__ */ React105.createElement("thead", null, /* @__PURE__ */ React105.createElement("tr", null, /* @__PURE__ */ React105.createElement("th", { className: "Layer__table-header Layer__bank-transactions__date-col" }, stringOverrides?.transactionsTable?.dateColumnHeaderText || "Date"), /* @__PURE__ */ React105.createElement("th", { className: "Layer__table-header Layer__bank-transactions__tx-col" }, stringOverrides?.transactionsTable?.transactionColumnHeaderText || "Transaction"), /* @__PURE__ */ React105.createElement("th", { className: "Layer__table-header Layer__bank-transactions__account-col" }, stringOverrides?.transactionsTable?.accountColumnHeaderText || "Account"), /* @__PURE__ */ React105.createElement("th", { className: "Layer__table-header Layer__table-cell--amount Layer__table-cell__amount-col" }, stringOverrides?.transactionsTable?.amountColumnHeaderText || "Amount"), categorizeView && editable ? /* @__PURE__ */ React105.createElement("th", { className: "Layer__table-header Layer__table-header--primary Layer__table-cell__category-col" }, stringOverrides?.transactionsTable?.categorizeColumnHeaderText || "Categorize") : /* @__PURE__ */ React105.createElement("th", { className: "Layer__table-header Layer__table-cell__category-col" }, stringOverrides?.transactionsTable?.categoryColumnHeaderText || "Category"))),
|
|
7955
|
-
isLoading && page && page === 1 ? /* @__PURE__ */ React105.createElement(BankTransactionsLoader, { isLoading: true }) : null,
|
|
8012
|
+
isLoading && page && page === 1 ? /* @__PURE__ */ React105.createElement(BankTransactionsLoader, { isLoading: true, showTooltips }) : null,
|
|
7956
8013
|
/* @__PURE__ */ React105.createElement("tbody", null, !isLoading && bankTransactions?.map(
|
|
7957
8014
|
(bankTransaction, index) => /* @__PURE__ */ React105.createElement(
|
|
7958
8015
|
BankTransactionRow,
|
|
@@ -7968,6 +8025,7 @@ var BankTransactionsTable = ({
|
|
|
7968
8025
|
containerWidth,
|
|
7969
8026
|
showDescriptions,
|
|
7970
8027
|
showReceiptUploads,
|
|
8028
|
+
showTooltips,
|
|
7971
8029
|
stringOverrides: stringOverrides?.bankTransactionCTAs
|
|
7972
8030
|
}
|
|
7973
8031
|
)
|
|
@@ -8811,6 +8869,7 @@ var BankTransactionsContent = ({
|
|
|
8811
8869
|
mode = "self-serve",
|
|
8812
8870
|
showDescriptions = false,
|
|
8813
8871
|
showReceiptUploads = false,
|
|
8872
|
+
showTooltips = false,
|
|
8814
8873
|
monthlyView = false,
|
|
8815
8874
|
categorizeView: categorizeViewProp,
|
|
8816
8875
|
mobileComponent,
|
|
@@ -8968,6 +9027,7 @@ var BankTransactionsContent = ({
|
|
|
8968
9027
|
removeTransaction,
|
|
8969
9028
|
showDescriptions,
|
|
8970
9029
|
showReceiptUploads,
|
|
9030
|
+
showTooltips,
|
|
8971
9031
|
page: currentPage,
|
|
8972
9032
|
stringOverrides,
|
|
8973
9033
|
lastPage: isLastPage,
|
|
@@ -8982,7 +9042,8 @@ var BankTransactionsContent = ({
|
|
|
8982
9042
|
editable,
|
|
8983
9043
|
removeTransaction,
|
|
8984
9044
|
containerWidth,
|
|
8985
|
-
stringOverrides: stringOverrides?.bankTransactionCTAs
|
|
9045
|
+
stringOverrides: stringOverrides?.bankTransactionCTAs,
|
|
9046
|
+
showTooltips
|
|
8986
9047
|
}
|
|
8987
9048
|
) : null,
|
|
8988
9049
|
!isLoading && listView && mobileComponent === "mobileList" ? /* @__PURE__ */ React115.createElement(
|
|
@@ -8992,7 +9053,8 @@ var BankTransactionsContent = ({
|
|
|
8992
9053
|
editable,
|
|
8993
9054
|
mode,
|
|
8994
9055
|
removeTransaction,
|
|
8995
|
-
initialLoad
|
|
9056
|
+
initialLoad,
|
|
9057
|
+
showTooltips
|
|
8996
9058
|
}
|
|
8997
9059
|
) : null,
|
|
8998
9060
|
listView && isLoading ? /* @__PURE__ */ React115.createElement("div", { className: "Layer__bank-transactions__list-loader" }, /* @__PURE__ */ React115.createElement(Loader2, null)) : null,
|
|
@@ -16773,6 +16835,7 @@ var BankTransactionsWithLinkedAccounts = ({
|
|
|
16773
16835
|
mode = "self-serve",
|
|
16774
16836
|
showDescriptions,
|
|
16775
16837
|
showReceiptUploads,
|
|
16838
|
+
showTooltips = false,
|
|
16776
16839
|
mobileComponent,
|
|
16777
16840
|
stringOverrides
|
|
16778
16841
|
}) => {
|
|
@@ -16798,6 +16861,7 @@ var BankTransactionsWithLinkedAccounts = ({
|
|
|
16798
16861
|
asWidget: true,
|
|
16799
16862
|
showDescriptions,
|
|
16800
16863
|
showReceiptUploads,
|
|
16864
|
+
showTooltips,
|
|
16801
16865
|
mobileComponent,
|
|
16802
16866
|
mode,
|
|
16803
16867
|
stringOverrides: stringOverrides?.bankTransactions
|