@layerfi/components 0.1.133 → 0.1.134-alpha.1
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/cjs/index.cjs +618 -344
- package/dist/esm/index.mjs +613 -339
- package/dist/index.css +52 -17
- package/package.json +1 -1
package/dist/esm/index.mjs
CHANGED
|
@@ -27,7 +27,7 @@ import { Text } from "react-aria-components/Text";
|
|
|
27
27
|
import { mergeRefs } from "react-merge-refs";
|
|
28
28
|
import useResizeObserver from "@react-hook/resize-observer";
|
|
29
29
|
import { Button } from "react-aria-components/Button";
|
|
30
|
-
import { AlertCircle, AlertTriangle, Archive, ArchiveRestore, ArrowRight, ArrowUpRight, Briefcase, Car, Check, CheckCircle, CheckIcon, ChevronLeft, ChevronRight, Circle, Clock, Clock3, CopyIcon, Edit, ExternalLink, FileDownIcon, FileSpreadsheet, FileText, HandCoins, Hourglass, Info, Layers2Icon, List, LoaderCircle, Lock, Menu, MenuIcon, Minus, PencilRuler, Play, Plus, RefreshCcw, RotateCcw, Save, Search, SearchX, Trash, Trash2, TriangleAlert, UploadCloud, UserRoundPen, Video, X, XCircle, XIcon } from "lucide-react";
|
|
30
|
+
import { AlertCircle, AlertTriangle, Archive, ArchiveRestore, ArrowRight, ArrowUpRight, Briefcase, Car, Check, CheckCircle, CheckIcon, ChevronLeft, ChevronRight, Circle, Clock, Clock3, CopyIcon, Edit, ExternalLink, FileDownIcon, FileSpreadsheet, FileText, Filter, HandCoins, Hourglass, Info, Layers2Icon, List, LoaderCircle, Lock, Menu, MenuIcon, Minus, PencilRuler, Play, Plus, RefreshCcw, RotateCcw, Save, Search, SearchX, Trash, Trash2, TriangleAlert, UploadCloud, UserRoundPen, Video, X, XCircle, XIcon } from "lucide-react";
|
|
31
31
|
import { DurationFormat } from "@formatjs/intl-durationformat";
|
|
32
32
|
import { Dialog, DialogTrigger } from "react-aria-components/Dialog";
|
|
33
33
|
import { Modal, ModalOverlay } from "react-aria-components/Modal";
|
|
@@ -255,7 +255,7 @@ var getIntlLocale = (locale) => {
|
|
|
255
255
|
};
|
|
256
256
|
var package_default = {
|
|
257
257
|
name: "@layerfi/components",
|
|
258
|
-
version: "0.1.
|
|
258
|
+
version: "0.1.134-alpha.1",
|
|
259
259
|
description: "Layer React Components",
|
|
260
260
|
main: "dist/cjs/index.cjs",
|
|
261
261
|
module: "dist/esm/index.mjs",
|
|
@@ -3753,11 +3753,11 @@ function _objectWithoutProperties(e, t) {
|
|
|
3753
3753
|
}
|
|
3754
3754
|
//#endregion
|
|
3755
3755
|
//#region src/utils/swr/localeKeyMiddleware.ts
|
|
3756
|
-
var _excluded$
|
|
3756
|
+
var _excluded$120 = ["_locale"];
|
|
3757
3757
|
var createLocalizedFetcher = (fetcher) => {
|
|
3758
3758
|
if (!fetcher) return null;
|
|
3759
3759
|
return (_ref, ...rest) => {
|
|
3760
|
-
let { _locale } = _ref, key = _objectWithoutProperties(_ref, _excluded$
|
|
3760
|
+
let { _locale } = _ref, key = _objectWithoutProperties(_ref, _excluded$120);
|
|
3761
3761
|
setLocaleHeader(_locale);
|
|
3762
3762
|
return fetcher(key, ...rest);
|
|
3763
3763
|
};
|
|
@@ -3774,7 +3774,7 @@ var useLocalizedKey = () => {
|
|
|
3774
3774
|
};
|
|
3775
3775
|
//#endregion
|
|
3776
3776
|
//#region src/hooks/api/businesses/[business-id]/bank-accounts/useUnlinkBankAccount.ts
|
|
3777
|
-
var _excluded$
|
|
3777
|
+
var _excluded$119 = ["trigger"];
|
|
3778
3778
|
var UNLINK_BANK_ACCOUNT_TAG_KEY = "#unlink-bank-account";
|
|
3779
3779
|
var unlinkBankAccount = del(({ businessId, bankAccountId }) => `/v1/businesses/${businessId}/bank-accounts/${bankAccountId}`);
|
|
3780
3780
|
function buildKey$87({ access_token: accessToken, apiUrl, businessId }) {
|
|
@@ -3797,7 +3797,7 @@ function useUnlinkBankAccount() {
|
|
|
3797
3797
|
})), ({ accessToken, apiUrl, businessId }, { arg: bankAccountId }) => unlinkBankAccount(apiUrl, accessToken, { params: {
|
|
3798
3798
|
businessId,
|
|
3799
3799
|
bankAccountId
|
|
3800
|
-
} }), { revalidate: false }), { trigger: rawTrigger } = _useSWRMutation, rest = _objectWithoutProperties(_useSWRMutation, _excluded$
|
|
3800
|
+
} }), { revalidate: false }), { trigger: rawTrigger } = _useSWRMutation, rest = _objectWithoutProperties(_useSWRMutation, _excluded$119);
|
|
3801
3801
|
const triggerRef = useRef(rawTrigger);
|
|
3802
3802
|
triggerRef.current = rawTrigger;
|
|
3803
3803
|
return _objectSpread2({ trigger: useCallback((bankAccountId) => triggerRef.current(bankAccountId), []) }, rest);
|
|
@@ -4775,6 +4775,7 @@ var TagValueDefinitionSchema = Schema.Struct({
|
|
|
4775
4775
|
displayName: Schema.propertySignature(Schema.NullishOr(Schema.NonEmptyTrimmedString)).pipe(Schema.fromKey("display_name")),
|
|
4776
4776
|
archivedAt: pipe(Schema.propertySignature(Schema.NullishOr(Schema.Date)), Schema.fromKey("archived_at"))
|
|
4777
4777
|
});
|
|
4778
|
+
var isActiveTagValueDefinition = (tagValueDefinition) => tagValueDefinition.archivedAt == null;
|
|
4778
4779
|
var TagKeyValueSchema = Schema.Struct({
|
|
4779
4780
|
key: Schema.NonEmptyTrimmedString,
|
|
4780
4781
|
value: Schema.NonEmptyTrimmedString,
|
|
@@ -6474,14 +6475,14 @@ var useBankTransactionsFilters = ({ scope, monthlyView, applyGlobalDateRange, fi
|
|
|
6474
6475
|
};
|
|
6475
6476
|
//#endregion
|
|
6476
6477
|
//#region src/icons/Bell.tsx
|
|
6477
|
-
var _excluded$
|
|
6478
|
+
var _excluded$118 = ["size"];
|
|
6478
6479
|
var Bell = (_ref) => {
|
|
6479
6480
|
let { size = 18 } = _ref;
|
|
6480
6481
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
6481
6482
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6482
6483
|
viewBox: "0 0 18 18",
|
|
6483
6484
|
fill: "none"
|
|
6484
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
6485
|
+
}, _objectWithoutProperties(_ref, _excluded$118)), {}, {
|
|
6485
6486
|
width: size,
|
|
6486
6487
|
height: size,
|
|
6487
6488
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -6499,14 +6500,14 @@ var Bell = (_ref) => {
|
|
|
6499
6500
|
};
|
|
6500
6501
|
//#endregion
|
|
6501
6502
|
//#region src/icons/CreditCard.tsx
|
|
6502
|
-
var _excluded$
|
|
6503
|
+
var _excluded$117 = ["size"];
|
|
6503
6504
|
var CreditCard = (_ref) => {
|
|
6504
6505
|
let { size = 12 } = _ref;
|
|
6505
6506
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
6506
6507
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6507
6508
|
viewBox: "0 0 12 12",
|
|
6508
6509
|
fill: "none"
|
|
6509
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
6510
|
+
}, _objectWithoutProperties(_ref, _excluded$117)), {}, {
|
|
6510
6511
|
width: size,
|
|
6511
6512
|
height: size,
|
|
6512
6513
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -6524,14 +6525,14 @@ var CreditCard = (_ref) => {
|
|
|
6524
6525
|
};
|
|
6525
6526
|
//#endregion
|
|
6526
6527
|
//#region src/icons/Folder.tsx
|
|
6527
|
-
var _excluded$
|
|
6528
|
+
var _excluded$116 = ["size"];
|
|
6528
6529
|
var Folder = (_ref) => {
|
|
6529
6530
|
let { size = 12 } = _ref;
|
|
6530
6531
|
return /* @__PURE__ */ jsx("svg", _objectSpread2(_objectSpread2({
|
|
6531
6532
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6532
6533
|
viewBox: "0 0 12 12",
|
|
6533
6534
|
fill: "none"
|
|
6534
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
6535
|
+
}, _objectWithoutProperties(_ref, _excluded$116)), {}, {
|
|
6535
6536
|
width: size,
|
|
6536
6537
|
height: size,
|
|
6537
6538
|
children: /* @__PURE__ */ jsx("path", {
|
|
@@ -6544,14 +6545,14 @@ var Folder = (_ref) => {
|
|
|
6544
6545
|
};
|
|
6545
6546
|
//#endregion
|
|
6546
6547
|
//#region src/icons/Link.tsx
|
|
6547
|
-
var _excluded$
|
|
6548
|
+
var _excluded$115 = ["size"];
|
|
6548
6549
|
var Link$3 = (_ref) => {
|
|
6549
6550
|
let { size = 18 } = _ref;
|
|
6550
6551
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
6551
6552
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6552
6553
|
viewBox: "0 0 18 18",
|
|
6553
6554
|
fill: "none"
|
|
6554
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
6555
|
+
}, _objectWithoutProperties(_ref, _excluded$115)), {}, {
|
|
6555
6556
|
width: size,
|
|
6556
6557
|
height: size,
|
|
6557
6558
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -6577,14 +6578,14 @@ var PlaidIcon = () => {
|
|
|
6577
6578
|
};
|
|
6578
6579
|
//#endregion
|
|
6579
6580
|
//#region src/icons/Sunrise.tsx
|
|
6580
|
-
var _excluded$
|
|
6581
|
+
var _excluded$114 = ["size"];
|
|
6581
6582
|
var Sunrise = (_ref) => {
|
|
6582
6583
|
let { size = 12 } = _ref;
|
|
6583
6584
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
6584
6585
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6585
6586
|
viewBox: "0 0 12 12",
|
|
6586
6587
|
fill: "none"
|
|
6587
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
6588
|
+
}, _objectWithoutProperties(_ref, _excluded$114)), {}, {
|
|
6588
6589
|
width: size,
|
|
6589
6590
|
height: size,
|
|
6590
6591
|
children: [
|
|
@@ -6667,7 +6668,7 @@ var ChevronRight$1 = (_ref) => {
|
|
|
6667
6668
|
};
|
|
6668
6669
|
//#endregion
|
|
6669
6670
|
//#region src/components/Button/IconButton.tsx
|
|
6670
|
-
var _excluded$
|
|
6671
|
+
var _excluded$113 = [
|
|
6671
6672
|
"className",
|
|
6672
6673
|
"children",
|
|
6673
6674
|
"icon",
|
|
@@ -6679,7 +6680,7 @@ var _excluded$111 = [
|
|
|
6679
6680
|
"download"
|
|
6680
6681
|
];
|
|
6681
6682
|
var IconButton = (_ref) => {
|
|
6682
|
-
let { className, children: _children, icon, active, withBorder = false, href, target, rel, download } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
6683
|
+
let { className, children: _children, icon, active, withBorder = false, href, target, rel, download } = _ref, props = _objectWithoutProperties(_ref, _excluded$113);
|
|
6683
6684
|
const baseClassName = classNames("Layer__icon-btn", `Layer__icon-btn--${active ? "active" : "inactive"}`, withBorder && "Layer__icon-btn--border", className);
|
|
6684
6685
|
if (href) return /* @__PURE__ */ jsx("a", {
|
|
6685
6686
|
href,
|
|
@@ -6769,17 +6770,17 @@ var useTooltip = ({ initialOpen = false, placement = "top", open: controlledOpen
|
|
|
6769
6770
|
};
|
|
6770
6771
|
//#endregion
|
|
6771
6772
|
//#region src/components/Tooltip/Tooltip.tsx
|
|
6772
|
-
var _excluded$
|
|
6773
|
+
var _excluded$112 = ["children"], _excluded2$16 = ["children", "asChild"], _excluded3$6 = ["className", "width"];
|
|
6773
6774
|
var DeprecatedTooltip = (_ref) => {
|
|
6774
6775
|
let { children } = _ref;
|
|
6775
|
-
const tooltip = useTooltip(_objectWithoutProperties(_ref, _excluded$
|
|
6776
|
+
const tooltip = useTooltip(_objectWithoutProperties(_ref, _excluded$112));
|
|
6776
6777
|
return /* @__PURE__ */ jsx(TooltipContext.Provider, {
|
|
6777
6778
|
value: tooltip,
|
|
6778
6779
|
children
|
|
6779
6780
|
});
|
|
6780
6781
|
};
|
|
6781
6782
|
var DeprecatedTooltipTrigger = forwardRef(function TooltipTrigger(_ref2, propRef) {
|
|
6782
|
-
let { children, asChild = false } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$
|
|
6783
|
+
let { children, asChild = false } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$16);
|
|
6783
6784
|
const context = useTooltipContext();
|
|
6784
6785
|
const childrenRef = isValidElement(children) && "ref" in children ? children.ref : null;
|
|
6785
6786
|
const ref = useMergeRefs([
|
|
@@ -6812,7 +6813,7 @@ var DeprecatedTooltipContent = forwardRef(function TooltipContent(_ref3, propRef
|
|
|
6812
6813
|
});
|
|
6813
6814
|
//#endregion
|
|
6814
6815
|
//#region src/components/Typography/Text.tsx
|
|
6815
|
-
var _excluded$
|
|
6816
|
+
var _excluded$111 = [
|
|
6816
6817
|
"as",
|
|
6817
6818
|
"className",
|
|
6818
6819
|
"children",
|
|
@@ -6823,7 +6824,7 @@ var _excluded$109 = [
|
|
|
6823
6824
|
"status",
|
|
6824
6825
|
"pb",
|
|
6825
6826
|
"invertColor"
|
|
6826
|
-
], _excluded2$
|
|
6827
|
+
], _excluded2$15 = [
|
|
6827
6828
|
"as",
|
|
6828
6829
|
"className",
|
|
6829
6830
|
"children",
|
|
@@ -6849,7 +6850,7 @@ var TextUseTooltip = /* @__PURE__ */ function(TextUseTooltip) {
|
|
|
6849
6850
|
return TextUseTooltip;
|
|
6850
6851
|
}({});
|
|
6851
6852
|
var Text$2 = (_ref) => {
|
|
6852
|
-
let { as: Component = "p", className, children, size = TextSize.md, weight = TextWeight.normal, withDeprecatedTooltip: withTooltip, ellipsis, status, pb, invertColor } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
6853
|
+
let { as: Component = "p", className, children, size = TextSize.md, weight = TextWeight.normal, withDeprecatedTooltip: withTooltip, ellipsis, status, pb, invertColor } = _ref, props = _objectWithoutProperties(_ref, _excluded$111);
|
|
6853
6854
|
const dataProperties = toDataProperties({
|
|
6854
6855
|
status,
|
|
6855
6856
|
ellipsis,
|
|
@@ -6870,7 +6871,7 @@ var Text$2 = (_ref) => {
|
|
|
6870
6871
|
}));
|
|
6871
6872
|
};
|
|
6872
6873
|
var DeprecatedTextWithTooltip = (_ref2) => {
|
|
6873
|
-
let { as: Component = "p", className, children, size: _size = TextSize.md, weight: _weight = TextWeight.normal, withDeprecatedTooltip: _withTooltip = TextUseTooltip.whenTruncated, tooltipOptions } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$
|
|
6874
|
+
let { as: Component = "p", className, children, size: _size = TextSize.md, weight: _weight = TextWeight.normal, withDeprecatedTooltip: _withTooltip = TextUseTooltip.whenTruncated, tooltipOptions } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$15);
|
|
6874
6875
|
const textElementRef = useRef();
|
|
6875
6876
|
const compareSize = () => {
|
|
6876
6877
|
if (textElementRef.current) setHover(textElementRef.current.children[0].scrollWidth > textElementRef.current.children[0].clientWidth);
|
|
@@ -6978,14 +6979,14 @@ var Badge = ({ icon, onClick, children, tooltip, size = BadgeSize.MEDIUM, varian
|
|
|
6978
6979
|
};
|
|
6979
6980
|
//#endregion
|
|
6980
6981
|
//#region src/icons/Loader.tsx
|
|
6981
|
-
var _excluded$
|
|
6982
|
+
var _excluded$110 = ["size"];
|
|
6982
6983
|
var Loader$1 = (_ref) => {
|
|
6983
6984
|
let { size = 18 } = _ref;
|
|
6984
6985
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
6985
6986
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6986
6987
|
viewBox: "0 0 18 18",
|
|
6987
6988
|
fill: "none"
|
|
6988
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
6989
|
+
}, _objectWithoutProperties(_ref, _excluded$110)), {}, {
|
|
6989
6990
|
width: size,
|
|
6990
6991
|
height: size,
|
|
6991
6992
|
children: [
|
|
@@ -7042,7 +7043,7 @@ var Loader$1 = (_ref) => {
|
|
|
7042
7043
|
};
|
|
7043
7044
|
//#endregion
|
|
7044
7045
|
//#region src/components/Button/Button.tsx
|
|
7045
|
-
var _excluded$
|
|
7046
|
+
var _excluded$109 = [
|
|
7046
7047
|
"className",
|
|
7047
7048
|
"children",
|
|
7048
7049
|
"variant",
|
|
@@ -7062,7 +7063,7 @@ var ButtonVariant = /* @__PURE__ */ function(ButtonVariant) {
|
|
|
7062
7063
|
return ButtonVariant;
|
|
7063
7064
|
}({});
|
|
7064
7065
|
var Button$2 = (_ref) => {
|
|
7065
|
-
let { className, children, variant = ButtonVariant.primary, leftIcon, rightIcon, iconOnly, iconAsPrimary = false, justify = "center", fullWidth, isProcessing, tooltip } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
7066
|
+
let { className, children, variant = ButtonVariant.primary, leftIcon, rightIcon, iconOnly, iconAsPrimary = false, justify = "center", fullWidth, isProcessing, tooltip } = _ref, props = _objectWithoutProperties(_ref, _excluded$109);
|
|
7066
7067
|
const buttonRef = useRef(null);
|
|
7067
7068
|
let justifyContent = "center";
|
|
7068
7069
|
if (justify) justifyContent = justify;
|
|
@@ -7111,14 +7112,14 @@ var Button$2 = (_ref) => {
|
|
|
7111
7112
|
};
|
|
7112
7113
|
//#endregion
|
|
7113
7114
|
//#region src/icons/AlertOctagon.tsx
|
|
7114
|
-
var _excluded$
|
|
7115
|
+
var _excluded$108 = ["size"];
|
|
7115
7116
|
var AlertOctagon = (_ref) => {
|
|
7116
7117
|
let { size = 18 } = _ref;
|
|
7117
7118
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
7118
7119
|
viewBox: "0 0 18 18",
|
|
7119
7120
|
fill: "none",
|
|
7120
7121
|
xmlns: "http://www.w3.org/2000/svg"
|
|
7121
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
7122
|
+
}, _objectWithoutProperties(_ref, _excluded$108)), {}, {
|
|
7122
7123
|
width: size,
|
|
7123
7124
|
height: size,
|
|
7124
7125
|
children: [
|
|
@@ -7145,14 +7146,14 @@ var AlertOctagon = (_ref) => {
|
|
|
7145
7146
|
};
|
|
7146
7147
|
//#endregion
|
|
7147
7148
|
//#region src/icons/CheckCircle.tsx
|
|
7148
|
-
var _excluded$
|
|
7149
|
+
var _excluded$107 = ["size"];
|
|
7149
7150
|
var CheckCircle$1 = (_ref) => {
|
|
7150
7151
|
let { size = 18 } = _ref;
|
|
7151
7152
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
7152
7153
|
viewBox: "0 0 18 18",
|
|
7153
7154
|
fill: "none",
|
|
7154
7155
|
xmlns: "http://www.w3.org/2000/svg"
|
|
7155
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
7156
|
+
}, _objectWithoutProperties(_ref, _excluded$107)), {}, {
|
|
7156
7157
|
width: size,
|
|
7157
7158
|
height: size,
|
|
7158
7159
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -7170,14 +7171,14 @@ var CheckCircle$1 = (_ref) => {
|
|
|
7170
7171
|
};
|
|
7171
7172
|
//#endregion
|
|
7172
7173
|
//#region src/icons/RefreshCcw.tsx
|
|
7173
|
-
var _excluded$
|
|
7174
|
+
var _excluded$106 = ["size"];
|
|
7174
7175
|
var RefreshCcw$1 = (_ref) => {
|
|
7175
7176
|
let { size = 18 } = _ref;
|
|
7176
7177
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
7177
7178
|
viewBox: "0 0 18 18",
|
|
7178
7179
|
fill: "none",
|
|
7179
7180
|
xmlns: "http://www.w3.org/2000/svg"
|
|
7180
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
7181
|
+
}, _objectWithoutProperties(_ref, _excluded$106)), {}, {
|
|
7181
7182
|
width: size,
|
|
7182
7183
|
height: size,
|
|
7183
7184
|
children: [
|
|
@@ -7764,7 +7765,7 @@ function BankTransactionTagVisibilityProvider({ children, showTags }) {
|
|
|
7764
7765
|
}
|
|
7765
7766
|
//#endregion
|
|
7766
7767
|
//#region src/components/ui/Stack/Stack.tsx
|
|
7767
|
-
var _excluded$
|
|
7768
|
+
var _excluded$105 = [
|
|
7768
7769
|
"align",
|
|
7769
7770
|
"children",
|
|
7770
7771
|
"className",
|
|
@@ -7782,7 +7783,7 @@ var _excluded$103 = [
|
|
|
7782
7783
|
];
|
|
7783
7784
|
var CLASS_NAME$11 = "Layer__Stack";
|
|
7784
7785
|
var Stack = forwardRef(function Stack(_ref, ref) {
|
|
7785
|
-
let { align, children, className, direction, gap, justify, overflow, pb, pbs, pbe, pi, pis, pie, fluid } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
7786
|
+
let { align, children, className, direction, gap, justify, overflow, pb, pbs, pbe, pi, pis, pie, fluid } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$105);
|
|
7786
7787
|
const dataProperties = toDataProperties({
|
|
7787
7788
|
align,
|
|
7788
7789
|
direction,
|
|
@@ -8111,7 +8112,7 @@ function useSizeClass() {
|
|
|
8111
8112
|
}
|
|
8112
8113
|
//#endregion
|
|
8113
8114
|
//#region src/components/ui/Tooltip/Tooltip.tsx
|
|
8114
|
-
var _excluded$
|
|
8115
|
+
var _excluded$104 = ["children"], _excluded2$14 = [
|
|
8115
8116
|
"children",
|
|
8116
8117
|
"asChild",
|
|
8117
8118
|
"wordBreak"
|
|
@@ -8122,14 +8123,14 @@ var _excluded$102 = ["children"], _excluded2$13 = [
|
|
|
8122
8123
|
];
|
|
8123
8124
|
var Tooltip$1 = (_ref) => {
|
|
8124
8125
|
let { children } = _ref;
|
|
8125
|
-
const tooltip = useTooltip(_objectWithoutProperties(_ref, _excluded$
|
|
8126
|
+
const tooltip = useTooltip(_objectWithoutProperties(_ref, _excluded$104));
|
|
8126
8127
|
return /* @__PURE__ */ jsx(TooltipContext.Provider, {
|
|
8127
8128
|
value: tooltip,
|
|
8128
8129
|
children
|
|
8129
8130
|
});
|
|
8130
8131
|
};
|
|
8131
8132
|
var TooltipTrigger = forwardRef(function TooltipTrigger(_ref2, propRef) {
|
|
8132
|
-
let { children, asChild = false, wordBreak } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$
|
|
8133
|
+
let { children, asChild = false, wordBreak } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$14);
|
|
8133
8134
|
const context = useTooltipContext();
|
|
8134
8135
|
const childrenRef = isValidElement(children) && "ref" in children ? children.ref : null;
|
|
8135
8136
|
const ref = useMergeRefs([
|
|
@@ -8198,7 +8199,7 @@ function useTruncationDetection(elementRef, options = {
|
|
|
8198
8199
|
}
|
|
8199
8200
|
//#endregion
|
|
8200
8201
|
//#region src/components/ui/Typography/Text.tsx
|
|
8201
|
-
var _excluded$
|
|
8202
|
+
var _excluded$103 = [
|
|
8202
8203
|
"align",
|
|
8203
8204
|
"children",
|
|
8204
8205
|
"ellipsis",
|
|
@@ -8214,7 +8215,7 @@ var _excluded$101 = [
|
|
|
8214
8215
|
"weight"
|
|
8215
8216
|
];
|
|
8216
8217
|
function splitTextProps(props) {
|
|
8217
|
-
const { align, children, ellipsis, nonAria, noWrap, numeric, pb, pbe, pbs, size, status, variant, weight } = props, restProps = _objectWithoutProperties(props, _excluded$
|
|
8218
|
+
const { align, children, ellipsis, nonAria, noWrap, numeric, pb, pbe, pbs, size, status, variant, weight } = props, restProps = _objectWithoutProperties(props, _excluded$103);
|
|
8218
8219
|
return {
|
|
8219
8220
|
children,
|
|
8220
8221
|
dataProperties: toDataProperties({
|
|
@@ -8387,7 +8388,7 @@ function withRenderProp(renderProp, callback) {
|
|
|
8387
8388
|
}
|
|
8388
8389
|
//#endregion
|
|
8389
8390
|
//#region src/components/ui/Button/Button.tsx
|
|
8390
|
-
var _excluded$
|
|
8391
|
+
var _excluded$102 = [
|
|
8391
8392
|
"children",
|
|
8392
8393
|
"ellipsis",
|
|
8393
8394
|
"icon",
|
|
@@ -8415,7 +8416,7 @@ function ButtonTransparentContent({ children }) {
|
|
|
8415
8416
|
});
|
|
8416
8417
|
}
|
|
8417
8418
|
var Button$1 = forwardRef((_ref, ref) => {
|
|
8418
|
-
let { children, ellipsis, icon, inset, size = "md", variant = "solid", fullWidth = false, flex = false } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
8419
|
+
let { children, ellipsis, icon, inset, size = "md", variant = "solid", fullWidth = false, flex = false } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$102);
|
|
8419
8420
|
const { isPending = false } = restProps;
|
|
8420
8421
|
const dataProperties = toDataProperties({
|
|
8421
8422
|
ellipsis,
|
|
@@ -8438,10 +8439,10 @@ var Button$1 = forwardRef((_ref, ref) => {
|
|
|
8438
8439
|
Button$1.displayName = "Button";
|
|
8439
8440
|
//#endregion
|
|
8440
8441
|
//#region src/utils/i18n/plural.ts
|
|
8441
|
-
var _excluded$
|
|
8442
|
+
var _excluded$101 = ["one", "other"];
|
|
8442
8443
|
var tPlural = (translate, key, _ref) => {
|
|
8443
8444
|
let { one, other } = _ref;
|
|
8444
|
-
return translate(key, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
8445
|
+
return translate(key, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$101)), {}, {
|
|
8445
8446
|
defaultValue_one: one,
|
|
8446
8447
|
defaultValue_other: other
|
|
8447
8448
|
}));
|
|
@@ -9719,7 +9720,7 @@ var useVirtualKeyboardHeight = () => {
|
|
|
9719
9720
|
};
|
|
9720
9721
|
//#endregion
|
|
9721
9722
|
//#region src/components/ui/Modal/Modal.tsx
|
|
9722
|
-
var _excluded$
|
|
9723
|
+
var _excluded$100 = ["variant"], _excluded2$13 = [
|
|
9723
9724
|
"variant",
|
|
9724
9725
|
"children",
|
|
9725
9726
|
"slots",
|
|
@@ -9729,7 +9730,7 @@ var _excluded$98 = ["variant"], _excluded2$12 = [
|
|
|
9729
9730
|
];
|
|
9730
9731
|
var MODAL_OVERLAY_CLASS_NAME = `Layer__Portal Layer__ModalOverlay`;
|
|
9731
9732
|
var ModalOverlay$1 = forwardRef((_ref, ref) => {
|
|
9732
|
-
let { variant } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
9733
|
+
let { variant } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$100);
|
|
9733
9734
|
return /* @__PURE__ */ jsx(ModalOverlay, _objectSpread2(_objectSpread2(_objectSpread2({}, toDataProperties({ variant })), restProps), {}, {
|
|
9734
9735
|
className: MODAL_OVERLAY_CLASS_NAME,
|
|
9735
9736
|
ref
|
|
@@ -9763,7 +9764,7 @@ var MobileDrawerKeyboardSpacer = () => {
|
|
|
9763
9764
|
};
|
|
9764
9765
|
var DIALOG_CLASS_NAME = "Layer__Dialog";
|
|
9765
9766
|
var Dialog$1 = forwardRef((_ref2, ref) => {
|
|
9766
|
-
let { variant = "center", children, slots, isEntering, isExiting, fixedHeight } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$
|
|
9767
|
+
let { variant = "center", children, slots, isEntering, isExiting, fixedHeight } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$13);
|
|
9767
9768
|
const dataProperties = toDataProperties({
|
|
9768
9769
|
variant,
|
|
9769
9770
|
entering: isEntering,
|
|
@@ -9833,7 +9834,7 @@ function Drawer({ isOpen, onOpenChange, size = "md", flexBlock, flexInline, chil
|
|
|
9833
9834
|
}
|
|
9834
9835
|
//#endregion
|
|
9835
9836
|
//#region src/components/ui/Typography/Heading.tsx
|
|
9836
|
-
var _excluded$
|
|
9837
|
+
var _excluded$99 = [
|
|
9837
9838
|
"align",
|
|
9838
9839
|
"pie",
|
|
9839
9840
|
"pbe",
|
|
@@ -9845,7 +9846,7 @@ var _excluded$97 = [
|
|
|
9845
9846
|
];
|
|
9846
9847
|
var HEADING_CLASS_NAME = "Layer__UI__Heading";
|
|
9847
9848
|
var Heading$2 = forwardRef((_ref, ref) => {
|
|
9848
|
-
let { align, pie, pbe, size, variant, weight, ellipsis, className } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
9849
|
+
let { align, pie, pbe, size, variant, weight, ellipsis, className } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$99);
|
|
9849
9850
|
const dataProperties = toDataProperties({
|
|
9850
9851
|
pbe,
|
|
9851
9852
|
pie,
|
|
@@ -9935,14 +9936,14 @@ function ModalActions({ children }) {
|
|
|
9935
9936
|
}
|
|
9936
9937
|
//#endregion
|
|
9937
9938
|
//#region src/icons/AlertCircle.tsx
|
|
9938
|
-
var _excluded$
|
|
9939
|
+
var _excluded$98 = ["size"];
|
|
9939
9940
|
var AlertCircle$1 = (_ref) => {
|
|
9940
9941
|
let { size = 18 } = _ref;
|
|
9941
9942
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
9942
9943
|
viewBox: "0 0 18 18",
|
|
9943
9944
|
fill: "none",
|
|
9944
9945
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9945
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
9946
|
+
}, _objectWithoutProperties(_ref, _excluded$98)), {}, {
|
|
9946
9947
|
width: size,
|
|
9947
9948
|
height: size,
|
|
9948
9949
|
children: [
|
|
@@ -9969,14 +9970,14 @@ var AlertCircle$1 = (_ref) => {
|
|
|
9969
9970
|
};
|
|
9970
9971
|
//#endregion
|
|
9971
9972
|
//#region src/icons/Save.tsx
|
|
9972
|
-
var _excluded$
|
|
9973
|
+
var _excluded$97 = ["size"];
|
|
9973
9974
|
var Save$1 = (_ref) => {
|
|
9974
9975
|
let { size = 18 } = _ref;
|
|
9975
9976
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
9976
9977
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9977
9978
|
viewBox: "0 0 18 18",
|
|
9978
9979
|
fill: "none"
|
|
9979
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
9980
|
+
}, _objectWithoutProperties(_ref, _excluded$97)), {}, {
|
|
9980
9981
|
width: size,
|
|
9981
9982
|
height: size,
|
|
9982
9983
|
children: [
|
|
@@ -10003,7 +10004,7 @@ var Save$1 = (_ref) => {
|
|
|
10003
10004
|
};
|
|
10004
10005
|
//#endregion
|
|
10005
10006
|
//#region src/components/Button/RetryButton.tsx
|
|
10006
|
-
var _excluded$
|
|
10007
|
+
var _excluded$96 = [
|
|
10007
10008
|
"className",
|
|
10008
10009
|
"processing",
|
|
10009
10010
|
"disabled",
|
|
@@ -10011,7 +10012,7 @@ var _excluded$94 = [
|
|
|
10011
10012
|
"children"
|
|
10012
10013
|
];
|
|
10013
10014
|
var RetryButton = (_ref) => {
|
|
10014
|
-
let { className, processing, disabled, error, children } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
10015
|
+
let { className, processing, disabled, error, children } = _ref, props = _objectWithoutProperties(_ref, _excluded$96);
|
|
10015
10016
|
const baseClassName = classNames("Layer__retry-btn", processing ? "Layer__btn--processing" : "", className);
|
|
10016
10017
|
return /* @__PURE__ */ jsx(Button$2, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10017
10018
|
className: baseClassName,
|
|
@@ -10025,7 +10026,7 @@ var RetryButton = (_ref) => {
|
|
|
10025
10026
|
};
|
|
10026
10027
|
//#endregion
|
|
10027
10028
|
//#region src/components/Button/SubmitButton.tsx
|
|
10028
|
-
var _excluded$
|
|
10029
|
+
var _excluded$95 = [
|
|
10029
10030
|
"active",
|
|
10030
10031
|
"className",
|
|
10031
10032
|
"processing",
|
|
@@ -10062,7 +10063,7 @@ var buildRightIcon = ({ processing, error, action, noIcon }) => {
|
|
|
10062
10063
|
return /* @__PURE__ */ jsx(Save$1, { size: 16 });
|
|
10063
10064
|
};
|
|
10064
10065
|
var SubmitButton = (_ref) => {
|
|
10065
|
-
let { active, className, processing, disabled, error, children, action = SubmitAction.SAVE, noIcon, variant = ButtonVariant.primary, withRetry, iconAsPrimary = true } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
10066
|
+
let { active, className, processing, disabled, error, children, action = SubmitAction.SAVE, noIcon, variant = ButtonVariant.primary, withRetry, iconAsPrimary = true } = _ref, props = _objectWithoutProperties(_ref, _excluded$95);
|
|
10066
10067
|
const { t } = useTranslation();
|
|
10067
10068
|
const baseClassName = classNames(active ? "Layer__btn--active" : "", className);
|
|
10068
10069
|
if (withRetry && error) return /* @__PURE__ */ jsx(RetryButton, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -10087,7 +10088,7 @@ var SubmitButton = (_ref) => {
|
|
|
10087
10088
|
};
|
|
10088
10089
|
//#endregion
|
|
10089
10090
|
//#region src/components/blocks/BaseConfirmationModal/BaseConfirmationModal.tsx
|
|
10090
|
-
var _excluded$
|
|
10091
|
+
var _excluded$94 = [
|
|
10091
10092
|
"isOpen",
|
|
10092
10093
|
"onOpenChange",
|
|
10093
10094
|
"useDrawer"
|
|
@@ -10153,7 +10154,7 @@ var BaseConfirmationModalContent = memo(function BaseConfirmationModalContent({
|
|
|
10153
10154
|
});
|
|
10154
10155
|
});
|
|
10155
10156
|
function BaseConfirmationModal(_ref) {
|
|
10156
|
-
let { isOpen, onOpenChange, useDrawer = false } = _ref, contentProps = _objectWithoutProperties(_ref, _excluded$
|
|
10157
|
+
let { isOpen, onOpenChange, useDrawer = false } = _ref, contentProps = _objectWithoutProperties(_ref, _excluded$94);
|
|
10157
10158
|
if (useDrawer) return /* @__PURE__ */ jsx(Drawer, {
|
|
10158
10159
|
flexBlock: true,
|
|
10159
10160
|
isOpen,
|
|
@@ -10211,14 +10212,14 @@ var COMBO_BOX_CLASS_NAMES = {
|
|
|
10211
10212
|
};
|
|
10212
10213
|
//#endregion
|
|
10213
10214
|
//#region src/icons/Check.tsx
|
|
10214
|
-
var _excluded$
|
|
10215
|
+
var _excluded$93 = ["size"];
|
|
10215
10216
|
var Check$1 = (_ref) => {
|
|
10216
10217
|
let { size = 18 } = _ref;
|
|
10217
10218
|
return /* @__PURE__ */ jsx("svg", _objectSpread2(_objectSpread2({
|
|
10218
10219
|
viewBox: "0 0 18 18",
|
|
10219
10220
|
fill: "none",
|
|
10220
10221
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10221
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
10222
|
+
}, _objectWithoutProperties(_ref, _excluded$93)), {}, {
|
|
10222
10223
|
width: size,
|
|
10223
10224
|
height: size,
|
|
10224
10225
|
children: /* @__PURE__ */ jsx("path", {
|
|
@@ -10231,14 +10232,14 @@ var Check$1 = (_ref) => {
|
|
|
10231
10232
|
};
|
|
10232
10233
|
//#endregion
|
|
10233
10234
|
//#region src/icons/ChevronDown.tsx
|
|
10234
|
-
var _excluded$
|
|
10235
|
+
var _excluded$92 = ["size"];
|
|
10235
10236
|
var ChevronDown = (_ref) => {
|
|
10236
10237
|
let { size = 18 } = _ref;
|
|
10237
10238
|
return /* @__PURE__ */ jsx("svg", _objectSpread2(_objectSpread2({
|
|
10238
10239
|
viewBox: "0 0 18 18",
|
|
10239
10240
|
fill: "none",
|
|
10240
10241
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10241
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
10242
|
+
}, _objectWithoutProperties(_ref, _excluded$92)), {}, {
|
|
10242
10243
|
width: size,
|
|
10243
10244
|
height: size,
|
|
10244
10245
|
children: /* @__PURE__ */ jsx("path", {
|
|
@@ -10251,14 +10252,14 @@ var ChevronDown = (_ref) => {
|
|
|
10251
10252
|
};
|
|
10252
10253
|
//#endregion
|
|
10253
10254
|
//#region src/icons/X.tsx
|
|
10254
|
-
var _excluded$
|
|
10255
|
+
var _excluded$91 = ["size"];
|
|
10255
10256
|
var X$1 = (_ref) => {
|
|
10256
10257
|
let { size = 18 } = _ref;
|
|
10257
10258
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
10258
10259
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10259
10260
|
viewBox: "0 0 18 18",
|
|
10260
10261
|
fill: "none"
|
|
10261
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
10262
|
+
}, _objectWithoutProperties(_ref, _excluded$91)), {}, {
|
|
10262
10263
|
width: size,
|
|
10263
10264
|
height: size,
|
|
10264
10265
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -10276,10 +10277,10 @@ var X$1 = (_ref) => {
|
|
|
10276
10277
|
};
|
|
10277
10278
|
//#endregion
|
|
10278
10279
|
//#region src/components/ui/ComboBox/useComboBoxSubcomponents.tsx
|
|
10279
|
-
var _excluded$
|
|
10280
|
+
var _excluded$90 = ["children"], _excluded2$12 = ["children"], _excluded3$4 = ["children"], _excluded4$3 = ["children"], _excluded5$2 = ["children"], _excluded6$2 = ["children"], _excluded7 = ["children"], _excluded8 = ["children"];
|
|
10280
10281
|
function buildCustomClearIndicator() {
|
|
10281
10282
|
return function CustomClearIndicator(_ref) {
|
|
10282
|
-
let { children } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
10283
|
+
let { children } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$90);
|
|
10283
10284
|
return /* @__PURE__ */ jsx(components.ClearIndicator, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
10284
10285
|
className: COMBO_BOX_CLASS_NAMES.CLEAR_INDICATOR,
|
|
10285
10286
|
children: /* @__PURE__ */ jsx(X$1, { size: 16 })
|
|
@@ -10288,7 +10289,7 @@ function buildCustomClearIndicator() {
|
|
|
10288
10289
|
}
|
|
10289
10290
|
function buildCustomDropdownIndicator() {
|
|
10290
10291
|
return function CustomDropdownIndicator(_ref2) {
|
|
10291
|
-
let { children } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$
|
|
10292
|
+
let { children } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$12);
|
|
10292
10293
|
const { isDisabled } = restProps;
|
|
10293
10294
|
return /* @__PURE__ */ jsx(components.DropdownIndicator, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
10294
10295
|
className: COMBO_BOX_CLASS_NAMES.DROPDOWN_INDICATOR,
|
|
@@ -10490,7 +10491,7 @@ function useCommonComboBoxProps({ className, options, groups, onInputValueChange
|
|
|
10490
10491
|
}
|
|
10491
10492
|
//#endregion
|
|
10492
10493
|
//#region src/components/ui/ComboBox/ComboBox.tsx
|
|
10493
|
-
var _excluded$
|
|
10494
|
+
var _excluded$89 = [
|
|
10494
10495
|
"className",
|
|
10495
10496
|
"slots",
|
|
10496
10497
|
"isError",
|
|
@@ -10498,7 +10499,7 @@ var _excluded$87 = [
|
|
|
10498
10499
|
"onSelectedValueChange"
|
|
10499
10500
|
];
|
|
10500
10501
|
function ComboBox(_ref) {
|
|
10501
|
-
let { className, slots, isError, selectedValue, onSelectedValueChange } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
10502
|
+
let { className, slots, isError, selectedValue, onSelectedValueChange } = _ref, props = _objectWithoutProperties(_ref, _excluded$89);
|
|
10502
10503
|
const commonSelectProps = useCommonComboBoxProps(_objectSpread2({
|
|
10503
10504
|
className,
|
|
10504
10505
|
slots,
|
|
@@ -10519,13 +10520,13 @@ function ComboBox(_ref) {
|
|
|
10519
10520
|
}
|
|
10520
10521
|
//#endregion
|
|
10521
10522
|
//#region src/components/ui/Typography/MoneySpan.tsx
|
|
10522
|
-
var _excluded$
|
|
10523
|
+
var _excluded$88 = [
|
|
10523
10524
|
"amount",
|
|
10524
10525
|
"displayPlusSign",
|
|
10525
10526
|
"className"
|
|
10526
10527
|
];
|
|
10527
10528
|
var MoneySpan = forwardRef((_ref, ref) => {
|
|
10528
|
-
let { amount, displayPlusSign, className } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
10529
|
+
let { amount, displayPlusSign, className } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$88);
|
|
10529
10530
|
const { formatCurrencyFromCents } = useIntlFormatter();
|
|
10530
10531
|
const formattedAmount = formatCurrencyFromCents(amount, { signDisplay: displayPlusSign ? "always" : "auto" });
|
|
10531
10532
|
return /* @__PURE__ */ jsx(Span, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
@@ -10537,14 +10538,14 @@ var MoneySpan = forwardRef((_ref, ref) => {
|
|
|
10537
10538
|
MoneySpan.displayName = "MoneySpan";
|
|
10538
10539
|
//#endregion
|
|
10539
10540
|
//#region src/icons/MinimizeTwo.tsx
|
|
10540
|
-
var _excluded$
|
|
10541
|
+
var _excluded$87 = ["size"];
|
|
10541
10542
|
var MinimizeTwo = (_ref) => {
|
|
10542
10543
|
let { size = 18 } = _ref;
|
|
10543
10544
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
10544
10545
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10545
10546
|
viewBox: "0 0 18 18",
|
|
10546
10547
|
fill: "none"
|
|
10547
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
10548
|
+
}, _objectWithoutProperties(_ref, _excluded$87)), {}, {
|
|
10548
10549
|
width: size,
|
|
10549
10550
|
height: size,
|
|
10550
10551
|
children: [
|
|
@@ -10577,14 +10578,14 @@ var MinimizeTwo = (_ref) => {
|
|
|
10577
10578
|
};
|
|
10578
10579
|
//#endregion
|
|
10579
10580
|
//#region src/icons/Scissors.tsx
|
|
10580
|
-
var _excluded$
|
|
10581
|
+
var _excluded$86 = ["size"];
|
|
10581
10582
|
var Scissors = (_ref) => {
|
|
10582
10583
|
let { size = 11 } = _ref;
|
|
10583
10584
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
10584
10585
|
viewBox: "0 0 11 11",
|
|
10585
10586
|
fill: "none",
|
|
10586
10587
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10587
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
10588
|
+
}, _objectWithoutProperties(_ref, _excluded$86)), {}, {
|
|
10588
10589
|
width: size,
|
|
10589
10590
|
height: size,
|
|
10590
10591
|
children: [
|
|
@@ -11044,7 +11045,7 @@ var getCategoryActionableId = (value, label) => {
|
|
|
11044
11045
|
};
|
|
11045
11046
|
//#endregion
|
|
11046
11047
|
//#region src/components/ui/Input/InputGroup.tsx
|
|
11047
|
-
var _excluded$
|
|
11048
|
+
var _excluded$85 = [
|
|
11048
11049
|
"actionCount",
|
|
11049
11050
|
"className",
|
|
11050
11051
|
"slots",
|
|
@@ -11052,7 +11053,7 @@ var _excluded$83 = [
|
|
|
11052
11053
|
];
|
|
11053
11054
|
var INPUT_GROUP_CLASS_NAME = "Layer__UI__InputGroup";
|
|
11054
11055
|
var InputGroup$1 = forwardRef(function InputGroup(_ref, ref) {
|
|
11055
|
-
let { actionCount, className, slots, children } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
11056
|
+
let { actionCount, className, slots, children } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$85);
|
|
11056
11057
|
const combinedClassName = classNames(INPUT_GROUP_CLASS_NAME, className);
|
|
11057
11058
|
const dataProperties = toDataProperties({ "action-count": actionCount });
|
|
11058
11059
|
return /* @__PURE__ */ jsx(Group, _objectSpread2(_objectSpread2(_objectSpread2({}, restProps), dataProperties), {}, {
|
|
@@ -11063,10 +11064,10 @@ var InputGroup$1 = forwardRef(function InputGroup(_ref, ref) {
|
|
|
11063
11064
|
});
|
|
11064
11065
|
//#endregion
|
|
11065
11066
|
//#region src/components/ui/SearchField/MinimalSearchField.tsx
|
|
11066
|
-
var _excluded$
|
|
11067
|
+
var _excluded$84 = ["placeholder", "isDisabled"];
|
|
11067
11068
|
var CLASS_NAME$8 = "Layer__MinimalSearchField";
|
|
11068
11069
|
function MinimalSearchField(_ref) {
|
|
11069
|
-
let { placeholder, isDisabled } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
11070
|
+
let { placeholder, isDisabled } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$84);
|
|
11070
11071
|
const { t } = useTranslation();
|
|
11071
11072
|
return /* @__PURE__ */ jsxs(SearchField, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
11072
11073
|
isDisabled,
|
|
@@ -11086,7 +11087,7 @@ function MinimalSearchField(_ref) {
|
|
|
11086
11087
|
}
|
|
11087
11088
|
//#endregion
|
|
11088
11089
|
//#region src/components/SearchField/SearchField.tsx
|
|
11089
|
-
var _excluded$
|
|
11090
|
+
var _excluded$83 = [
|
|
11090
11091
|
"slot",
|
|
11091
11092
|
"className",
|
|
11092
11093
|
"label",
|
|
@@ -11094,7 +11095,7 @@ var _excluded$81 = [
|
|
|
11094
11095
|
];
|
|
11095
11096
|
var CLASS_NAME$7 = "Layer__SearchField";
|
|
11096
11097
|
function SearchField$1(_ref) {
|
|
11097
|
-
let { slot = "search", className, label, isDisabled } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
11098
|
+
let { slot = "search", className, label, isDisabled } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$83);
|
|
11098
11099
|
return /* @__PURE__ */ jsxs(InputGroup$1, {
|
|
11099
11100
|
slot,
|
|
11100
11101
|
className: classNames(CLASS_NAME$7, className),
|
|
@@ -11305,13 +11306,13 @@ var resolveSelectedOption = (source, selectedValue) => {
|
|
|
11305
11306
|
};
|
|
11306
11307
|
//#endregion
|
|
11307
11308
|
//#region src/components/ui/Checkbox/Checkbox.tsx
|
|
11308
|
-
var _excluded$
|
|
11309
|
+
var _excluded$82 = [
|
|
11309
11310
|
"children",
|
|
11310
11311
|
"className",
|
|
11311
11312
|
"variant",
|
|
11312
11313
|
"size",
|
|
11313
11314
|
"isIndeterminate"
|
|
11314
|
-
], _excluded2$
|
|
11315
|
+
], _excluded2$11 = ["tooltip"];
|
|
11315
11316
|
var CLASS_NAME$6 = "Layer__Checkbox";
|
|
11316
11317
|
var CHECK_SIZE = {
|
|
11317
11318
|
sm: 12,
|
|
@@ -11319,7 +11320,7 @@ var CHECK_SIZE = {
|
|
|
11319
11320
|
lg: 16
|
|
11320
11321
|
};
|
|
11321
11322
|
function Checkbox$1(_ref) {
|
|
11322
|
-
let { children, className, variant = "default", size = "sm", isIndeterminate } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
11323
|
+
let { children, className, variant = "default", size = "sm", isIndeterminate } = _ref, props = _objectWithoutProperties(_ref, _excluded$82);
|
|
11323
11324
|
return /* @__PURE__ */ jsx(Checkbox, _objectSpread2(_objectSpread2(_objectSpread2({}, useMemo(() => toDataProperties({
|
|
11324
11325
|
size,
|
|
11325
11326
|
variant,
|
|
@@ -11338,7 +11339,7 @@ function Checkbox$1(_ref) {
|
|
|
11338
11339
|
}));
|
|
11339
11340
|
}
|
|
11340
11341
|
function CheckboxWithTooltip(_ref2) {
|
|
11341
|
-
let { tooltip } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$
|
|
11342
|
+
let { tooltip } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$11);
|
|
11342
11343
|
return /* @__PURE__ */ jsx("div", {
|
|
11343
11344
|
className: "Layer__checkbox-wrapper",
|
|
11344
11345
|
children: /* @__PURE__ */ jsxs(DeprecatedTooltip, {
|
|
@@ -11428,7 +11429,7 @@ var MobileList = ({ ariaLabel, data, slots, renderItem, onClickItem, isLoading,
|
|
|
11428
11429
|
};
|
|
11429
11430
|
//#endregion
|
|
11430
11431
|
//#region src/components/ui/MobileSelectionDrawer/MobileSelectionDrawerList.tsx
|
|
11431
|
-
var _excluded$
|
|
11432
|
+
var _excluded$81 = [
|
|
11432
11433
|
"ariaLabel",
|
|
11433
11434
|
"selectedValue",
|
|
11434
11435
|
"onSelectedValueChange",
|
|
@@ -11455,7 +11456,7 @@ var ErrorState$5 = () => {
|
|
|
11455
11456
|
};
|
|
11456
11457
|
var MobileSelectionDrawerList = (_ref) => {
|
|
11457
11458
|
let { ariaLabel, selectedValue, onSelectedValueChange, isLoading = false, isError = false } = _ref;
|
|
11458
|
-
const source = _objectWithoutProperties(_ref, _excluded$
|
|
11459
|
+
const source = _objectWithoutProperties(_ref, _excluded$81);
|
|
11459
11460
|
const data = useMemo(() => {
|
|
11460
11461
|
if (source.groups) return { groups: source.groups.map((group) => ({
|
|
11461
11462
|
label: group.label,
|
|
@@ -11500,7 +11501,7 @@ var MobileSelectionDrawerList = (_ref) => {
|
|
|
11500
11501
|
};
|
|
11501
11502
|
//#endregion
|
|
11502
11503
|
//#region src/components/ui/MobileSelectionDrawer/MobileSelectionDrawerWithTrigger.tsx
|
|
11503
|
-
var _excluded$
|
|
11504
|
+
var _excluded$80 = [
|
|
11504
11505
|
"ariaLabel",
|
|
11505
11506
|
"heading",
|
|
11506
11507
|
"selectedValue",
|
|
@@ -11515,7 +11516,7 @@ var _excluded$78 = [
|
|
|
11515
11516
|
];
|
|
11516
11517
|
var MobileSelectionDrawerWithTrigger = (_ref) => {
|
|
11517
11518
|
var _slotProps$Trigger$ic, _slotProps$Trigger, _resolvedSelectedValu;
|
|
11518
|
-
let { ariaLabel, heading, selectedValue, onSelectedValueChange, placeholder, isLoading = false, isError = false, isDisabled = false, isSearchable = false, searchPlaceholder, slotProps } = _ref, optionOrGroups = _objectWithoutProperties(_ref, _excluded$
|
|
11519
|
+
let { ariaLabel, heading, selectedValue, onSelectedValueChange, placeholder, isLoading = false, isError = false, isDisabled = false, isSearchable = false, searchPlaceholder, slotProps } = _ref, optionOrGroups = _objectWithoutProperties(_ref, _excluded$80);
|
|
11519
11520
|
const { t } = useTranslation();
|
|
11520
11521
|
const { options, groups } = optionOrGroups;
|
|
11521
11522
|
const [isOpen, setIsOpen] = useState(false);
|
|
@@ -12064,14 +12065,14 @@ var BankTransactionsBulkActions = ({ isMobileView = false, slotProps }) => {
|
|
|
12064
12065
|
};
|
|
12065
12066
|
//#endregion
|
|
12066
12067
|
//#region src/icons/DownloadCloud.tsx
|
|
12067
|
-
var _excluded$
|
|
12068
|
+
var _excluded$79 = ["size"];
|
|
12068
12069
|
var DownloadCloud = (_ref) => {
|
|
12069
12070
|
let { size = 18 } = _ref;
|
|
12070
12071
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
12071
12072
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12072
12073
|
viewBox: "0 0 18 18",
|
|
12073
12074
|
fill: "none"
|
|
12074
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
12075
|
+
}, _objectWithoutProperties(_ref, _excluded$79)), {}, {
|
|
12075
12076
|
width: size,
|
|
12076
12077
|
height: size,
|
|
12077
12078
|
children: [
|
|
@@ -12098,14 +12099,14 @@ var DownloadCloud = (_ref) => {
|
|
|
12098
12099
|
};
|
|
12099
12100
|
//#endregion
|
|
12100
12101
|
//#region src/icons/UploadCloud.tsx
|
|
12101
|
-
var _excluded$
|
|
12102
|
+
var _excluded$78 = ["size"];
|
|
12102
12103
|
var UploadCloud$1 = (_ref) => {
|
|
12103
12104
|
let { size = 18 } = _ref;
|
|
12104
12105
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
12105
12106
|
viewBox: "0 0 18 18",
|
|
12106
12107
|
fill: "none",
|
|
12107
12108
|
xmlns: "http://www.w3.org/2000/svg"
|
|
12108
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
12109
|
+
}, _objectWithoutProperties(_ref, _excluded$78)), {}, {
|
|
12109
12110
|
width: size,
|
|
12110
12111
|
height: size,
|
|
12111
12112
|
children: [
|
|
@@ -12372,7 +12373,7 @@ function useCustomAccountParseCsv() {
|
|
|
12372
12373
|
}
|
|
12373
12374
|
//#endregion
|
|
12374
12375
|
//#region src/components/ui/ComboBox/CreatableComboBox.tsx
|
|
12375
|
-
var _excluded$
|
|
12376
|
+
var _excluded$77 = [
|
|
12376
12377
|
"className",
|
|
12377
12378
|
"slots",
|
|
12378
12379
|
"isError",
|
|
@@ -12385,7 +12386,7 @@ var _excluded$75 = [
|
|
|
12385
12386
|
];
|
|
12386
12387
|
var returnTrue = () => true;
|
|
12387
12388
|
function CreatableComboBox(_ref) {
|
|
12388
|
-
let { className, slots, isError, selectedValue, onSelectedValueChange, onCreateOption, formatCreateLabel, createOptionPosition = "first", isValidNewOption = returnTrue } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
12389
|
+
let { className, slots, isError, selectedValue, onSelectedValueChange, onCreateOption, formatCreateLabel, createOptionPosition = "first", isValidNewOption = returnTrue } = _ref, props = _objectWithoutProperties(_ref, _excluded$77);
|
|
12389
12390
|
const commonSelectProps = useCommonComboBoxProps(_objectSpread2({
|
|
12390
12391
|
className,
|
|
12391
12392
|
slots,
|
|
@@ -12430,14 +12431,14 @@ var CopyTemplateHeadersButtonGroup = ({ headers, className }) => {
|
|
|
12430
12431
|
};
|
|
12431
12432
|
//#endregion
|
|
12432
12433
|
//#region src/icons/CloseIcon.tsx
|
|
12433
|
-
var _excluded$
|
|
12434
|
+
var _excluded$76 = ["size"];
|
|
12434
12435
|
var CloseIcon = (_ref) => {
|
|
12435
12436
|
let { size = 12 } = _ref;
|
|
12436
12437
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
12437
12438
|
viewBox: "0 0 12 12",
|
|
12438
12439
|
fill: "none",
|
|
12439
12440
|
xmlns: "http://www.w3.org/2000/svg"
|
|
12440
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
12441
|
+
}, _objectWithoutProperties(_ref, _excluded$76)), {}, {
|
|
12441
12442
|
width: size,
|
|
12442
12443
|
height: size,
|
|
12443
12444
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -12676,7 +12677,7 @@ function useCreateCustomAccount() {
|
|
|
12676
12677
|
}
|
|
12677
12678
|
//#endregion
|
|
12678
12679
|
//#region src/components/ui/Form/Form.tsx
|
|
12679
|
-
var _excluded$
|
|
12680
|
+
var _excluded$75 = ["children", "className"], _excluded2$10 = [
|
|
12680
12681
|
"children",
|
|
12681
12682
|
"inline",
|
|
12682
12683
|
"textarea",
|
|
@@ -12685,7 +12686,7 @@ var _excluded$73 = ["children", "className"], _excluded2$9 = [
|
|
|
12685
12686
|
var FORM_CLASS_NAME = "Layer__UI__Form";
|
|
12686
12687
|
var Form$1 = forwardRef(function Form$2(_ref, ref) {
|
|
12687
12688
|
let { children, className } = _ref;
|
|
12688
|
-
return /* @__PURE__ */ jsx(Form, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
12689
|
+
return /* @__PURE__ */ jsx(Form, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$75)), {}, {
|
|
12689
12690
|
className: classNames(FORM_CLASS_NAME, className),
|
|
12690
12691
|
ref,
|
|
12691
12692
|
children
|
|
@@ -12693,7 +12694,7 @@ var Form$1 = forwardRef(function Form$2(_ref, ref) {
|
|
|
12693
12694
|
});
|
|
12694
12695
|
var TEXT_FIELD_CLASS_NAME = "Layer__UI__TextField";
|
|
12695
12696
|
var TextField$1 = forwardRef(function TextField$2(_ref2, ref) {
|
|
12696
|
-
let { children, inline, textarea, className } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$
|
|
12697
|
+
let { children, inline, textarea, className } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$10);
|
|
12697
12698
|
const dataProperties = toDataProperties({
|
|
12698
12699
|
inline,
|
|
12699
12700
|
textarea
|
|
@@ -12908,10 +12909,10 @@ function useBigDecimalInput({ value, onChange, onBlur, mode, maxValue, maxDecima
|
|
|
12908
12909
|
}
|
|
12909
12910
|
//#endregion
|
|
12910
12911
|
//#region src/components/ui/Input/Input.tsx
|
|
12911
|
-
var _excluded$
|
|
12912
|
+
var _excluded$74 = ["inset", "placement"];
|
|
12912
12913
|
var INPUT_CLASS_NAME = "Layer__UI__Input";
|
|
12913
12914
|
var Input$2 = forwardRef(function Input$3(_ref, ref) {
|
|
12914
|
-
let { inset, placement } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
12915
|
+
let { inset, placement } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$74);
|
|
12915
12916
|
const dataProperties = toDataProperties({
|
|
12916
12917
|
inset,
|
|
12917
12918
|
placement
|
|
@@ -12923,7 +12924,7 @@ var Input$2 = forwardRef(function Input$3(_ref, ref) {
|
|
|
12923
12924
|
});
|
|
12924
12925
|
//#endregion
|
|
12925
12926
|
//#region src/components/forms/FormBigDecimalField.tsx
|
|
12926
|
-
var _excluded$
|
|
12927
|
+
var _excluded$73 = [
|
|
12927
12928
|
"mode",
|
|
12928
12929
|
"allowNegative",
|
|
12929
12930
|
"maxValue",
|
|
@@ -12937,7 +12938,7 @@ var DEFAULT_MAX_VALUE$1 = BigDecimal.fromBigInt(BigInt(1e7));
|
|
|
12937
12938
|
var DEFAULT_MIN_DECIMAL_PLACES$1 = 0;
|
|
12938
12939
|
var DEFAULT_MAX_DECIMAL_PLACES$1 = 3;
|
|
12939
12940
|
function FormBigDecimalField(_ref) {
|
|
12940
|
-
let { mode = "decimal", allowNegative = false, maxValue = mode === "percent" ? BIG_DECIMAL_ONE : DEFAULT_MAX_VALUE$1, minDecimalPlaces = mode === "currency" ? 2 : DEFAULT_MIN_DECIMAL_PLACES$1, maxDecimalPlaces = mode === "currency" ? 2 : DEFAULT_MAX_DECIMAL_PLACES$1, slots, placeholder, allowEmpty } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
12941
|
+
let { mode = "decimal", allowNegative = false, maxValue = mode === "percent" ? BIG_DECIMAL_ONE : DEFAULT_MAX_VALUE$1, minDecimalPlaces = mode === "currency" ? 2 : DEFAULT_MIN_DECIMAL_PLACES$1, maxDecimalPlaces = mode === "currency" ? 2 : DEFAULT_MAX_DECIMAL_PLACES$1, slots, placeholder, allowEmpty } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$73);
|
|
12941
12942
|
const { name, state, handleChange, handleBlur } = useFieldContext();
|
|
12942
12943
|
const { value } = state;
|
|
12943
12944
|
const { inputValue, onInputChange, onInputBlur, onBeforeInput, onPaste } = useBigDecimalInput({
|
|
@@ -12999,15 +13000,15 @@ function FormCheckboxField({ label, className, inline = false, showLabel = true,
|
|
|
12999
13000
|
}
|
|
13000
13001
|
//#endregion
|
|
13001
13002
|
//#region src/components/ui/Date/Date.tsx
|
|
13002
|
-
var _excluded$
|
|
13003
|
+
var _excluded$72 = [
|
|
13003
13004
|
"inline",
|
|
13004
13005
|
"className",
|
|
13005
13006
|
"isReadOnly"
|
|
13006
|
-
], _excluded2$
|
|
13007
|
+
], _excluded2$9 = ["inset", "pointerEvents"], _excluded3$3 = ["isReadOnly"], _excluded4$2 = ["className"];
|
|
13007
13008
|
var DATE_PICKER_CLASS_NAME = "Layer__UI__DatePicker";
|
|
13008
13009
|
var DATE_FIELD_CLASS_NAME = "Layer__UI__DateField";
|
|
13009
13010
|
var DateField$1 = forwardRef(function DateField$2(_ref, ref) {
|
|
13010
|
-
let { inline, className, isReadOnly } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
13011
|
+
let { inline, className, isReadOnly } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$72);
|
|
13011
13012
|
return /* @__PURE__ */ jsx(DateField, _objectSpread2(_objectSpread2(_objectSpread2({}, toDataProperties({
|
|
13012
13013
|
inline,
|
|
13013
13014
|
readonly: isReadOnly
|
|
@@ -13019,7 +13020,7 @@ var DateField$1 = forwardRef(function DateField$2(_ref, ref) {
|
|
|
13019
13020
|
});
|
|
13020
13021
|
var DATE_INPUT_CLASS_NAME = "Layer__UI__DateInput";
|
|
13021
13022
|
var DateInput$1 = forwardRef(function DateInput$2(_ref2, ref) {
|
|
13022
|
-
let { inset, pointerEvents } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$
|
|
13023
|
+
let { inset, pointerEvents } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$9);
|
|
13023
13024
|
return /* @__PURE__ */ jsx(DateInput, _objectSpread2(_objectSpread2(_objectSpread2({}, toDataProperties({
|
|
13024
13025
|
inset,
|
|
13025
13026
|
"pointer-events": pointerEvents
|
|
@@ -13098,10 +13099,10 @@ function FormDateField({ label, className, inline = false, showLabel = true, sho
|
|
|
13098
13099
|
}
|
|
13099
13100
|
//#endregion
|
|
13100
13101
|
//#region src/components/ui/Calendar/Calendar.tsx
|
|
13101
|
-
var _excluded$
|
|
13102
|
+
var _excluded$71 = ["className", "isReadOnly"], _excluded2$8 = ["className"], _excluded3$2 = ["className"], _excluded4$1 = ["className", "size"], _excluded5$1 = ["className"], _excluded6$1 = ["className", "size"];
|
|
13102
13103
|
var CALENDAR_CLASS_NAME = "Layer__UI__Calendar";
|
|
13103
13104
|
var Calendar$1 = forwardRef(function Calendar$2(_ref, ref) {
|
|
13104
|
-
let { className, isReadOnly } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
13105
|
+
let { className, isReadOnly } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$71);
|
|
13105
13106
|
return /* @__PURE__ */ jsx(Calendar, _objectSpread2(_objectSpread2(_objectSpread2({}, toDataProperties({ readonly: isReadOnly })), restProps), {}, {
|
|
13106
13107
|
isReadOnly,
|
|
13107
13108
|
className: classNames(CALENDAR_CLASS_NAME, className),
|
|
@@ -13111,7 +13112,7 @@ var Calendar$1 = forwardRef(function Calendar$2(_ref, ref) {
|
|
|
13111
13112
|
var CALENDAR_GRID_CLASS_NAME = "Layer__UI__CalendarGrid";
|
|
13112
13113
|
var CalendarGrid$1 = forwardRef(function CalendarGrid$2(_ref2, ref) {
|
|
13113
13114
|
let { className } = _ref2;
|
|
13114
|
-
return /* @__PURE__ */ jsx(CalendarGrid, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref2, _excluded2$
|
|
13115
|
+
return /* @__PURE__ */ jsx(CalendarGrid, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref2, _excluded2$8)), {}, {
|
|
13115
13116
|
className: classNames(CALENDAR_GRID_CLASS_NAME, className),
|
|
13116
13117
|
ref
|
|
13117
13118
|
}));
|
|
@@ -13248,10 +13249,10 @@ var DatePickerInput = ({ errorText, variant, onClick, isReadOnly }) => {
|
|
|
13248
13249
|
};
|
|
13249
13250
|
//#endregion
|
|
13250
13251
|
//#region src/components/ui/Popover/Popover.tsx
|
|
13251
|
-
var _excluded$
|
|
13252
|
+
var _excluded$70 = ["flexInline"];
|
|
13252
13253
|
var POPOVER_CLASS_NAMES = `Layer__Portal Layer__Popover`;
|
|
13253
13254
|
var Popover$2 = forwardRef(function Popover$3(_ref, ref) {
|
|
13254
|
-
let { flexInline = false } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
13255
|
+
let { flexInline = false } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$70);
|
|
13255
13256
|
const dataProperties = toDataProperties({ "flex-inline": flexInline });
|
|
13256
13257
|
return /* @__PURE__ */ jsx(Popover, _objectSpread2(_objectSpread2(_objectSpread2({}, restProps), dataProperties), {}, {
|
|
13257
13258
|
className: POPOVER_CLASS_NAMES,
|
|
@@ -13381,7 +13382,7 @@ var nrbdEquals = (a, b) => {
|
|
|
13381
13382
|
};
|
|
13382
13383
|
//#endregion
|
|
13383
13384
|
//#region src/components/forms/FormNonRecursiveBigDecimalField.tsx
|
|
13384
|
-
var _excluded$
|
|
13385
|
+
var _excluded$69 = [
|
|
13385
13386
|
"mode",
|
|
13386
13387
|
"allowNegative",
|
|
13387
13388
|
"maxValue",
|
|
@@ -13395,7 +13396,7 @@ var DEFAULT_MAX_VALUE = BigDecimal.fromBigInt(BigInt(1e7));
|
|
|
13395
13396
|
var DEFAULT_MIN_DECIMAL_PLACES = 0;
|
|
13396
13397
|
var DEFAULT_MAX_DECIMAL_PLACES = 3;
|
|
13397
13398
|
function FormNonRecursiveBigDecimalField(_ref) {
|
|
13398
|
-
let { mode = "decimal", allowNegative = false, maxValue = mode === "percent" ? BIG_DECIMAL_ONE : DEFAULT_MAX_VALUE, minDecimalPlaces = mode === "currency" ? 2 : DEFAULT_MIN_DECIMAL_PLACES, maxDecimalPlaces = mode === "currency" ? 2 : DEFAULT_MAX_DECIMAL_PLACES, slots, placeholder, allowEmpty } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
13399
|
+
let { mode = "decimal", allowNegative = false, maxValue = mode === "percent" ? BIG_DECIMAL_ONE : DEFAULT_MAX_VALUE, minDecimalPlaces = mode === "currency" ? 2 : DEFAULT_MIN_DECIMAL_PLACES, maxDecimalPlaces = mode === "currency" ? 2 : DEFAULT_MAX_DECIMAL_PLACES, slots, placeholder, allowEmpty } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$69);
|
|
13399
13400
|
const { name, state, handleChange, handleBlur } = useFieldContext();
|
|
13400
13401
|
const { value: nrbdValue } = state;
|
|
13401
13402
|
const { inputValue, onInputChange, onInputBlur, onBeforeInput, onPaste } = useBigDecimalInput({
|
|
@@ -13432,14 +13433,14 @@ function FormNonRecursiveBigDecimalField(_ref) {
|
|
|
13432
13433
|
}
|
|
13433
13434
|
//#endregion
|
|
13434
13435
|
//#region src/components/ui/NumberField/NumberField.tsx
|
|
13435
|
-
var _excluded$
|
|
13436
|
+
var _excluded$68 = [
|
|
13436
13437
|
"inline",
|
|
13437
13438
|
"className",
|
|
13438
13439
|
"isReadOnly"
|
|
13439
13440
|
];
|
|
13440
13441
|
var NUMBER_FIELD_CLASS_NAME = "Layer__UI__NumberField";
|
|
13441
13442
|
var NumberField$1 = forwardRef(function NumberField$2(_ref, ref) {
|
|
13442
|
-
let { inline, className, isReadOnly } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
13443
|
+
let { inline, className, isReadOnly } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$68);
|
|
13443
13444
|
return /* @__PURE__ */ jsx(NumberField, _objectSpread2(_objectSpread2(_objectSpread2({ step: 1 }, toDataProperties({
|
|
13444
13445
|
inline,
|
|
13445
13446
|
readonly: isReadOnly
|
|
@@ -13490,17 +13491,17 @@ function FormNumberField({ label, className, inline = false, showLabel = true, s
|
|
|
13490
13491
|
}
|
|
13491
13492
|
//#endregion
|
|
13492
13493
|
//#region src/components/ui/RadioGroup/RadioGroup.tsx
|
|
13493
|
-
var _excluded$
|
|
13494
|
+
var _excluded$67 = [
|
|
13494
13495
|
"children",
|
|
13495
13496
|
"className",
|
|
13496
13497
|
"onChange"
|
|
13497
|
-
], _excluded2$
|
|
13498
|
+
], _excluded2$7 = ["children", "className"];
|
|
13498
13499
|
var RADIO_GROUP_CLASS_NAME = "Layer__RadioGroup";
|
|
13499
13500
|
var RADIO_CLASS_NAME = "Layer__Radio";
|
|
13500
13501
|
var INDICATOR_SIZE = 10;
|
|
13501
13502
|
function RadioGroup$1(_ref) {
|
|
13502
13503
|
let { children, className, onChange } = _ref;
|
|
13503
|
-
return /* @__PURE__ */ jsx(RadioGroup, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
13504
|
+
return /* @__PURE__ */ jsx(RadioGroup, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$67)), {}, {
|
|
13504
13505
|
onChange,
|
|
13505
13506
|
className: classNames(RADIO_GROUP_CLASS_NAME, className),
|
|
13506
13507
|
children
|
|
@@ -13508,7 +13509,7 @@ function RadioGroup$1(_ref) {
|
|
|
13508
13509
|
}
|
|
13509
13510
|
function Radio$1(_ref2) {
|
|
13510
13511
|
let { children, className } = _ref2;
|
|
13511
|
-
return /* @__PURE__ */ jsx(Radio, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref2, _excluded2$
|
|
13512
|
+
return /* @__PURE__ */ jsx(Radio, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref2, _excluded2$7)), {}, {
|
|
13512
13513
|
className: classNames(RADIO_CLASS_NAME, className),
|
|
13513
13514
|
children: withRenderProp(children, (node) => /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
|
|
13514
13515
|
slot: "radio",
|
|
@@ -13615,11 +13616,11 @@ function FormRadioGroupYesNoField({ label, className, inline = false, showLabel
|
|
|
13615
13616
|
}
|
|
13616
13617
|
//#endregion
|
|
13617
13618
|
//#region src/components/ui/Switch/Switch.tsx
|
|
13618
|
-
var _excluded$
|
|
13619
|
+
var _excluded$66 = ["children", "className"];
|
|
13619
13620
|
var SWITCH_CLASS_NAME = "Layer__UI__Switch";
|
|
13620
13621
|
var Switch$1 = forwardRef((_ref, ref) => {
|
|
13621
13622
|
let { children, className } = _ref;
|
|
13622
|
-
return /* @__PURE__ */ jsx(Switch, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
13623
|
+
return /* @__PURE__ */ jsx(Switch, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$66)), {}, {
|
|
13623
13624
|
className: classNames(SWITCH_CLASS_NAME, className),
|
|
13624
13625
|
ref,
|
|
13625
13626
|
children: withRenderProp(children, (node) => /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", { slot: "indicator" }), node] }))
|
|
@@ -13653,10 +13654,10 @@ function FormSwitchField({ label, slots, className, inline = false, showLabel =
|
|
|
13653
13654
|
}
|
|
13654
13655
|
//#endregion
|
|
13655
13656
|
//#region src/components/ui/Input/TextArea.tsx
|
|
13656
|
-
var _excluded$
|
|
13657
|
+
var _excluded$65 = ["resize"];
|
|
13657
13658
|
var TEXTAREA_CLASS_NAME = "Layer__UI__TextArea";
|
|
13658
13659
|
var TextArea$1 = forwardRef(function TextArea$2(_ref, ref) {
|
|
13659
|
-
let { resize = "none" } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
13660
|
+
let { resize = "none" } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$65);
|
|
13660
13661
|
const dataProperties = toDataProperties({ resize });
|
|
13661
13662
|
return /* @__PURE__ */ jsx(TextArea, _objectSpread2(_objectSpread2(_objectSpread2({}, restProps), dataProperties), {}, {
|
|
13662
13663
|
className: TEXTAREA_CLASS_NAME,
|
|
@@ -13665,9 +13666,9 @@ var TextArea$1 = forwardRef(function TextArea$2(_ref, ref) {
|
|
|
13665
13666
|
});
|
|
13666
13667
|
//#endregion
|
|
13667
13668
|
//#region src/components/forms/FormTextAreaField.tsx
|
|
13668
|
-
var _excluded$
|
|
13669
|
+
var _excluded$64 = ["placeholder"];
|
|
13669
13670
|
function FormTextAreaField(_ref) {
|
|
13670
|
-
let { placeholder } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
13671
|
+
let { placeholder } = _ref, props = _objectWithoutProperties(_ref, _excluded$64);
|
|
13671
13672
|
const { name, state, handleChange, handleBlur } = useFieldContext();
|
|
13672
13673
|
const { value } = state;
|
|
13673
13674
|
const onChange = useCallback((e) => {
|
|
@@ -13688,9 +13689,9 @@ function FormTextAreaField(_ref) {
|
|
|
13688
13689
|
}
|
|
13689
13690
|
//#endregion
|
|
13690
13691
|
//#region src/components/forms/FormTextField.tsx
|
|
13691
|
-
var _excluded$
|
|
13692
|
+
var _excluded$63 = ["placeholder"];
|
|
13692
13693
|
function FormTextField(_ref) {
|
|
13693
|
-
let { placeholder } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
13694
|
+
let { placeholder } = _ref, props = _objectWithoutProperties(_ref, _excluded$63);
|
|
13694
13695
|
const { name, state, handleChange, handleBlur } = useFieldContext();
|
|
13695
13696
|
const { value } = state;
|
|
13696
13697
|
const onChange = useCallback((e) => {
|
|
@@ -13793,14 +13794,14 @@ var useCustomAccountForm = ({ onSuccess }) => {
|
|
|
13793
13794
|
};
|
|
13794
13795
|
//#endregion
|
|
13795
13796
|
//#region src/components/Input/Input.tsx
|
|
13796
|
-
var _excluded$
|
|
13797
|
+
var _excluded$62 = [
|
|
13797
13798
|
"className",
|
|
13798
13799
|
"isInvalid",
|
|
13799
13800
|
"errorMessage",
|
|
13800
13801
|
"leftText"
|
|
13801
13802
|
];
|
|
13802
13803
|
var Input$1 = (_ref) => {
|
|
13803
|
-
let { className, isInvalid, errorMessage, leftText } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
13804
|
+
let { className, isInvalid, errorMessage, leftText } = _ref, props = _objectWithoutProperties(_ref, _excluded$62);
|
|
13804
13805
|
const baseClassName = classNames("Layer__input", isInvalid ? "Layer__input--error" : "", leftText ? "Layer__input--with-left-text" : "", className);
|
|
13805
13806
|
return /* @__PURE__ */ jsxs(DeprecatedTooltip, {
|
|
13806
13807
|
disabled: !isInvalid || !errorMessage,
|
|
@@ -13832,14 +13833,14 @@ var InputGroup = ({ label, name, className, inline, children }) => {
|
|
|
13832
13833
|
};
|
|
13833
13834
|
//#endregion
|
|
13834
13835
|
//#region src/icons/ChevronDownFill.tsx
|
|
13835
|
-
var _excluded$
|
|
13836
|
+
var _excluded$61 = ["size"];
|
|
13836
13837
|
var ChevronDownFill = (_ref) => {
|
|
13837
13838
|
let { size = 18 } = _ref;
|
|
13838
13839
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
13839
13840
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13840
13841
|
viewBox: "0 0 18 18",
|
|
13841
13842
|
fill: "none"
|
|
13842
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
13843
|
+
}, _objectWithoutProperties(_ref, _excluded$61)), {}, {
|
|
13843
13844
|
width: size,
|
|
13844
13845
|
height: size,
|
|
13845
13846
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -13855,9 +13856,9 @@ var ChevronDownFill = (_ref) => {
|
|
|
13855
13856
|
};
|
|
13856
13857
|
//#endregion
|
|
13857
13858
|
//#region src/components/Input/SelectMenuPortal.tsx
|
|
13858
|
-
var _excluded$
|
|
13859
|
+
var _excluded$60 = ["children"];
|
|
13859
13860
|
var SelectMenuPortal = (_ref) => {
|
|
13860
|
-
let { children } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
13861
|
+
let { children } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$60);
|
|
13861
13862
|
const dataProperties = toDataProperties({ "react-aria-top-layer": true });
|
|
13862
13863
|
return /* @__PURE__ */ jsx(components.MenuPortal, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13863
13864
|
innerProps: dataProperties,
|
|
@@ -13901,10 +13902,10 @@ var Select$1 = ({ name, options, className, classNamePrefix = "Layer__select", v
|
|
|
13901
13902
|
};
|
|
13902
13903
|
//#endregion
|
|
13903
13904
|
//#region src/components/Typography/ErrorText.tsx
|
|
13904
|
-
var _excluded$
|
|
13905
|
+
var _excluded$59 = ["className"];
|
|
13905
13906
|
var ErrorText = (_ref) => {
|
|
13906
13907
|
let { className } = _ref;
|
|
13907
|
-
return /* @__PURE__ */ jsx(Text$2, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
13908
|
+
return /* @__PURE__ */ jsx(Text$2, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$59)), {}, {
|
|
13908
13909
|
status: "error",
|
|
13909
13910
|
className
|
|
13910
13911
|
}));
|
|
@@ -14233,7 +14234,7 @@ function UploadTransactionsUploadCsvStep({ selectedAccount, onSelectAccount, sel
|
|
|
14233
14234
|
}
|
|
14234
14235
|
//#endregion
|
|
14235
14236
|
//#region src/hooks/api/businesses/[business-id]/custom-accounts/[custom-account-id]/transactions/useCreateCustomAccountTransactions.ts
|
|
14236
|
-
var _excluded$
|
|
14237
|
+
var _excluded$58 = ["customAccountId"];
|
|
14237
14238
|
var createCustomAccountTransactions = post(({ businessId, customAccountId }) => `/v1/businesses/${businessId}/custom-accounts/${customAccountId}/transactions`);
|
|
14238
14239
|
function buildKey$73({ access_token: accessToken, apiUrl, businessId }) {
|
|
14239
14240
|
if (accessToken && apiUrl) return {
|
|
@@ -14248,7 +14249,7 @@ function useCreateCustomAccountTransactions() {
|
|
|
14248
14249
|
const { data } = useAuth();
|
|
14249
14250
|
const { businessId } = useLayerContext();
|
|
14250
14251
|
return useSWRMutation(() => withLocale(buildKey$73(_objectSpread2(_objectSpread2({}, data), {}, { businessId }))), ({ accessToken, apiUrl, businessId }, _ref) => {
|
|
14251
|
-
let { arg: _ref2 } = _ref, { customAccountId } = _ref2, body = _objectWithoutProperties(_ref2, _excluded$
|
|
14252
|
+
let { arg: _ref2 } = _ref, { customAccountId } = _ref2, body = _objectWithoutProperties(_ref2, _excluded$58);
|
|
14252
14253
|
return createCustomAccountTransactions(apiUrl, accessToken, {
|
|
14253
14254
|
params: {
|
|
14254
14255
|
businessId,
|
|
@@ -14262,16 +14263,47 @@ function useCreateCustomAccountTransactions() {
|
|
|
14262
14263
|
});
|
|
14263
14264
|
}
|
|
14264
14265
|
//#endregion
|
|
14266
|
+
//#region src/schemas/accountingConfiguration.ts
|
|
14267
|
+
var ReportingBasis = /* @__PURE__ */ function(ReportingBasis) {
|
|
14268
|
+
ReportingBasis["Accrual"] = "ACCRUAL";
|
|
14269
|
+
ReportingBasis["Cash"] = "CASH";
|
|
14270
|
+
ReportingBasis["DeprecatedCash"] = "DEPRECATED_CASH";
|
|
14271
|
+
ReportingBasis["MoneyMovementOnly"] = "MONEY_MOVEMENT_ONLY";
|
|
14272
|
+
return ReportingBasis;
|
|
14273
|
+
}({});
|
|
14274
|
+
Schema.Enums(ReportingBasis);
|
|
14275
|
+
var AccountingConfigurationCategoryListMode = /* @__PURE__ */ function(AccountingConfigurationCategoryListMode) {
|
|
14276
|
+
AccountingConfigurationCategoryListMode["AllAccounts"] = "ALL_ACCOUNTS";
|
|
14277
|
+
AccountingConfigurationCategoryListMode["RevenuesAndExpenses"] = "REVENUES_AND_EXPENSES";
|
|
14278
|
+
return AccountingConfigurationCategoryListMode;
|
|
14279
|
+
}({});
|
|
14280
|
+
Schema.Enums(AccountingConfigurationCategoryListMode);
|
|
14281
|
+
var AccountingConfigurationSchema = Schema.Struct({
|
|
14282
|
+
id: Schema.UUID,
|
|
14283
|
+
enableAccountNumbers: pipe(Schema.propertySignature(Schema.Boolean), Schema.fromKey("enable_account_numbers")),
|
|
14284
|
+
enableCustomerManagement: pipe(Schema.propertySignature(Schema.Boolean), Schema.fromKey("enable_customer_management")),
|
|
14285
|
+
taxEstimatesUserAgreementAt: pipe(Schema.propertySignature(Schema.NullishOr(Schema.Date)), Schema.fromKey("tax_estimates_user_agreement_at")),
|
|
14286
|
+
enableTaxEstimates: pipe(Schema.propertySignature(Schema.Boolean), Schema.fromKey("enable_tax_estimates")),
|
|
14287
|
+
enableMileageTracking: pipe(Schema.propertySignature(Schema.Boolean), Schema.fromKey("enable_mileage_tracking")),
|
|
14288
|
+
enableStripeOnboarding: pipe(Schema.propertySignature(Schema.Boolean), Schema.fromKey("enable_stripe_onboarding")),
|
|
14289
|
+
platformDisplayTags: pipe(Schema.propertySignature(Schema.Array(TagDimensionSchema)), Schema.fromKey("platform_display_tags"))
|
|
14290
|
+
});
|
|
14291
|
+
//#endregion
|
|
14265
14292
|
//#region src/schemas/reports/reportConfig.ts
|
|
14266
14293
|
var ReportControl = /* @__PURE__ */ function(ReportControl) {
|
|
14267
14294
|
ReportControl["Date"] = "date";
|
|
14268
14295
|
ReportControl["DateRange"] = "date_range";
|
|
14269
14296
|
ReportControl["GroupBy"] = "group_by";
|
|
14297
|
+
ReportControl["ReportingBasis"] = "reporting_basis";
|
|
14270
14298
|
ReportControl["Year"] = "year";
|
|
14271
14299
|
ReportControl["Unknown"] = "unknown";
|
|
14272
14300
|
return ReportControl;
|
|
14273
14301
|
}({});
|
|
14274
14302
|
var TransformedReportControlSchema = createTransformedEnumSchema(Schema.Enums(ReportControl), ReportControl, ReportControl.Unknown);
|
|
14303
|
+
var TagControlSchema = Schema.Struct({
|
|
14304
|
+
tagDimension: pipe(Schema.propertySignature(TagDimensionSchema), Schema.fromKey("tag_dimension")),
|
|
14305
|
+
initialSelectedTags: pipe(Schema.propertySignature(Schema.Array(TagValueDefinitionSchema)), Schema.fromKey("initial_selected_tags"))
|
|
14306
|
+
});
|
|
14275
14307
|
var ReportConfigSchema = Schema.Struct({
|
|
14276
14308
|
key: Schema.String,
|
|
14277
14309
|
reportRoute: pipe(Schema.propertySignature(Schema.String), Schema.fromKey("report_route")),
|
|
@@ -14281,7 +14313,8 @@ var ReportConfigSchema = Schema.Struct({
|
|
|
14281
14313
|
key: Schema.String,
|
|
14282
14314
|
value: Schema.String
|
|
14283
14315
|
})), Schema.fromKey("base_query_parameters")),
|
|
14284
|
-
isDefaultReport: Schema.optional(Schema.Boolean).pipe(Schema.fromKey("is_default_report"))
|
|
14316
|
+
isDefaultReport: Schema.optional(Schema.Boolean).pipe(Schema.fromKey("is_default_report")),
|
|
14317
|
+
tagControl: Schema.optional(Schema.NullOr(TagControlSchema)).pipe(Schema.fromKey("tag_control"))
|
|
14285
14318
|
});
|
|
14286
14319
|
var ReportGroupSchema = Schema.Struct({
|
|
14287
14320
|
groupType: pipe(Schema.propertySignature(Schema.String), Schema.fromKey("group_type")),
|
|
@@ -14297,6 +14330,7 @@ var DateGroupBy = /* @__PURE__ */ function(DateGroupBy) {
|
|
|
14297
14330
|
DateGroupBy["Year"] = "YEAR";
|
|
14298
14331
|
return DateGroupBy;
|
|
14299
14332
|
}({});
|
|
14333
|
+
var isUnifiedReportReportingBasis = (value) => value === ReportingBasis.Cash || value === ReportingBasis.Accrual;
|
|
14300
14334
|
var Alignment = /* @__PURE__ */ function(Alignment) {
|
|
14301
14335
|
Alignment["Left"] = "LEFT";
|
|
14302
14336
|
Alignment["Right"] = "RIGHT";
|
|
@@ -14378,12 +14412,12 @@ var UnifiedReportSchema = Schema.Struct({
|
|
|
14378
14412
|
});
|
|
14379
14413
|
//#endregion
|
|
14380
14414
|
//#region src/components/ui/Table/Table.tsx
|
|
14381
|
-
var _excluded$
|
|
14415
|
+
var _excluded$57 = [
|
|
14382
14416
|
"children",
|
|
14383
14417
|
"className",
|
|
14384
14418
|
"nonAria",
|
|
14385
14419
|
"slot"
|
|
14386
|
-
], _excluded2$
|
|
14420
|
+
], _excluded2$6 = [
|
|
14387
14421
|
"children",
|
|
14388
14422
|
"className",
|
|
14389
14423
|
"nonAria"
|
|
@@ -14434,7 +14468,7 @@ var toAlignmentDataValue = (alignment) => {
|
|
|
14434
14468
|
};
|
|
14435
14469
|
var getClassName = (component, additionalClassNames) => classNames(`${CSS_PREFIX$1}-${component}`, additionalClassNames);
|
|
14436
14470
|
var Table$2 = forwardRef((_ref, ref) => {
|
|
14437
|
-
let { children, className, nonAria, slot } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
14471
|
+
let { children, className, nonAria, slot } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$57);
|
|
14438
14472
|
return /* @__PURE__ */ jsx(nonAria ? "table" : Table, _objectSpread2(_objectSpread2({
|
|
14439
14473
|
className: getClassName(TableSubComponent.Table, className),
|
|
14440
14474
|
slot: slot !== null && slot !== void 0 ? slot : void 0
|
|
@@ -14445,7 +14479,7 @@ var Table$2 = forwardRef((_ref, ref) => {
|
|
|
14445
14479
|
});
|
|
14446
14480
|
Table$2.displayName = TableSubComponent.Table;
|
|
14447
14481
|
var TableHeaderInner = (_ref2, ref) => {
|
|
14448
|
-
let { children, className, nonAria } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$
|
|
14482
|
+
let { children, className, nonAria } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$6);
|
|
14449
14483
|
return /* @__PURE__ */ jsx(nonAria ? "thead" : TableHeader, _objectSpread2(_objectSpread2({ className: getClassName(TableSubComponent.TableHeader, className) }, restProps), {}, {
|
|
14450
14484
|
ref,
|
|
14451
14485
|
children: withRenderProp(children, (node) => node)
|
|
@@ -15687,7 +15721,7 @@ var useGetBankTransactionMatchOrCategoryWithDefault = (bankTransaction) => {
|
|
|
15687
15721
|
};
|
|
15688
15722
|
//#endregion
|
|
15689
15723
|
//#region src/hooks/api/businesses/[business-id]/bank-transactions/[bank-transaction-id]/categorize/useCategorizeBankTransaction.ts
|
|
15690
|
-
var _excluded$
|
|
15724
|
+
var _excluded$56 = ["bankTransactionId"];
|
|
15691
15725
|
var CATEGORIZE_BANK_TRANSACTION_TAG = "#categorize-bank-transaction";
|
|
15692
15726
|
var categorizeBankTransaction = put(({ businessId, bankTransactionId }) => `/v1/businesses/${businessId}/bank-transactions/${bankTransactionId}/categorize`);
|
|
15693
15727
|
function buildKey$72({ access_token: accessToken, apiUrl, businessId }) {
|
|
@@ -15711,7 +15745,7 @@ function useCategorizeBankTransaction() {
|
|
|
15711
15745
|
apiUrl: auth === null || auth === void 0 ? void 0 : auth.apiUrl,
|
|
15712
15746
|
businessId
|
|
15713
15747
|
})), ({ accessToken, apiUrl, businessId }, _ref) => {
|
|
15714
|
-
let { arg: _ref2 } = _ref, { bankTransactionId } = _ref2, rest = _objectWithoutProperties(_ref2, _excluded$
|
|
15748
|
+
let { arg: _ref2 } = _ref, { bankTransactionId } = _ref2, rest = _objectWithoutProperties(_ref2, _excluded$56);
|
|
15715
15749
|
return categorizeBankTransaction(apiUrl, accessToken, {
|
|
15716
15750
|
params: {
|
|
15717
15751
|
businessId,
|
|
@@ -15781,7 +15815,7 @@ function useCategorizeBankTransactionWithCacheUpdate() {
|
|
|
15781
15815
|
}
|
|
15782
15816
|
//#endregion
|
|
15783
15817
|
//#region src/hooks/api/businesses/[business-id]/bank-transactions/[bank-transaction-id]/match/useMatchBankTransaction.ts
|
|
15784
|
-
var _excluded$
|
|
15818
|
+
var _excluded$55 = ["bankTransactionId"];
|
|
15785
15819
|
var matchBankTransaction = put(({ businessId, bankTransactionId }) => `/v1/businesses/${businessId}/bank-transactions/${bankTransactionId}/match`);
|
|
15786
15820
|
var MATCH_BANK_TRANSACTION_TAG = "#match-bank-transaction";
|
|
15787
15821
|
function buildKey$71({ access_token: accessToken, apiUrl, businessId }) {
|
|
@@ -15805,7 +15839,7 @@ function useMatchBankTransaction() {
|
|
|
15805
15839
|
apiUrl: auth === null || auth === void 0 ? void 0 : auth.apiUrl,
|
|
15806
15840
|
businessId
|
|
15807
15841
|
})), ({ accessToken, apiUrl, businessId }, _ref) => {
|
|
15808
|
-
let { arg: _ref2 } = _ref, { bankTransactionId } = _ref2, body = _objectWithoutProperties(_ref2, _excluded$
|
|
15842
|
+
let { arg: _ref2 } = _ref, { bankTransactionId } = _ref2, body = _objectWithoutProperties(_ref2, _excluded$55);
|
|
15809
15843
|
return matchBankTransaction(apiUrl, accessToken, {
|
|
15810
15844
|
params: {
|
|
15811
15845
|
businessId,
|
|
@@ -15941,14 +15975,14 @@ function useDelayedVisibility({ delay, initialVisibility = false }) {
|
|
|
15941
15975
|
}
|
|
15942
15976
|
//#endregion
|
|
15943
15977
|
//#region src/icons/File.tsx
|
|
15944
|
-
var _excluded$
|
|
15978
|
+
var _excluded$54 = ["size"];
|
|
15945
15979
|
var File$1 = (_ref) => {
|
|
15946
15980
|
let { size = 12 } = _ref;
|
|
15947
15981
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
15948
15982
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15949
15983
|
viewBox: "0 0 12 12",
|
|
15950
15984
|
fill: "none"
|
|
15951
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
15985
|
+
}, _objectWithoutProperties(_ref, _excluded$54)), {}, {
|
|
15952
15986
|
width: size,
|
|
15953
15987
|
height: size,
|
|
15954
15988
|
children: [
|
|
@@ -16053,7 +16087,7 @@ var variants = {
|
|
|
16053
16087
|
};
|
|
16054
16088
|
//#endregion
|
|
16055
16089
|
//#region src/components/ui/AnimatedPresenceElement/AnimatedPresenceElement.tsx
|
|
16056
|
-
var _excluded$
|
|
16090
|
+
var _excluded$53 = [
|
|
16057
16091
|
"as",
|
|
16058
16092
|
"children",
|
|
16059
16093
|
"variant",
|
|
@@ -16062,7 +16096,7 @@ var _excluded$51 = [
|
|
|
16062
16096
|
"motionKey"
|
|
16063
16097
|
];
|
|
16064
16098
|
function AnimatedPresenceElementInner(_ref, ref) {
|
|
16065
|
-
let { as, children, variant, isOpen, slotProps = { AnimatePresence: { initial: false } }, motionKey } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
16099
|
+
let { as, children, variant, isOpen, slotProps = { AnimatePresence: { initial: false } }, motionKey } = _ref, props = _objectWithoutProperties(_ref, _excluded$53);
|
|
16066
16100
|
const config = variants[variant];
|
|
16067
16101
|
const MotionComponent = motion[as !== null && as !== void 0 ? as : "div"];
|
|
16068
16102
|
return /* @__PURE__ */ jsx(AnimatePresence, _objectSpread2(_objectSpread2({}, slotProps.AnimatePresence), {}, { children: isOpen && /* @__PURE__ */ jsx(MotionComponent, _objectSpread2(_objectSpread2({
|
|
@@ -16221,14 +16255,14 @@ function useBookkeepingPeriods() {
|
|
|
16221
16255
|
}
|
|
16222
16256
|
//#endregion
|
|
16223
16257
|
//#region src/icons/Clock.tsx
|
|
16224
|
-
var _excluded$
|
|
16258
|
+
var _excluded$52 = ["size"];
|
|
16225
16259
|
var Clock$1 = (_ref) => {
|
|
16226
16260
|
let { size = 18 } = _ref;
|
|
16227
16261
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
16228
16262
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16229
16263
|
viewBox: "0 0 18 18",
|
|
16230
16264
|
fill: "none"
|
|
16231
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
16265
|
+
}, _objectWithoutProperties(_ref, _excluded$52)), {}, {
|
|
16232
16266
|
width: size,
|
|
16233
16267
|
height: size,
|
|
16234
16268
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -16783,14 +16817,14 @@ var useSplitsForm = ({ bankTransaction, isOpen }) => {
|
|
|
16783
16817
|
};
|
|
16784
16818
|
//#endregion
|
|
16785
16819
|
//#region src/icons/ScissorsFullOpen.tsx
|
|
16786
|
-
var _excluded$
|
|
16820
|
+
var _excluded$51 = ["size"];
|
|
16787
16821
|
var ScissorsFullOpen = (_ref) => {
|
|
16788
16822
|
let { size = 12 } = _ref;
|
|
16789
16823
|
return /* @__PURE__ */ jsx("svg", _objectSpread2(_objectSpread2({
|
|
16790
16824
|
viewBox: "0 0 12 12",
|
|
16791
16825
|
fill: "none",
|
|
16792
16826
|
xmlns: "http://www.w3.org/2000/svg"
|
|
16793
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
16827
|
+
}, _objectWithoutProperties(_ref, _excluded$51)), {}, {
|
|
16794
16828
|
width: size,
|
|
16795
16829
|
height: size,
|
|
16796
16830
|
children: /* @__PURE__ */ jsxs("g", {
|
|
@@ -16837,14 +16871,14 @@ var ScissorsFullOpen = (_ref) => {
|
|
|
16837
16871
|
};
|
|
16838
16872
|
//#endregion
|
|
16839
16873
|
//#region src/icons/Trash.tsx
|
|
16840
|
-
var _excluded$
|
|
16874
|
+
var _excluded$50 = ["size"];
|
|
16841
16875
|
var Trash$1 = (_ref) => {
|
|
16842
16876
|
let { size = 18 } = _ref;
|
|
16843
16877
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
16844
16878
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16845
16879
|
viewBox: "0 0 18 18",
|
|
16846
16880
|
fill: "none"
|
|
16847
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
16881
|
+
}, _objectWithoutProperties(_ref, _excluded$50)), {}, {
|
|
16848
16882
|
width: size,
|
|
16849
16883
|
height: size,
|
|
16850
16884
|
children: [
|
|
@@ -17275,7 +17309,7 @@ function useTagDimensionByKey({ isEnabled = true, dimensionKey }) {
|
|
|
17275
17309
|
}
|
|
17276
17310
|
//#endregion
|
|
17277
17311
|
//#region src/components/Tags/TagDimensionsGroup/TagDimensionCombobox.tsx
|
|
17278
|
-
var toOption = (dv, t) => {
|
|
17312
|
+
var toOption$1 = (dv, t) => {
|
|
17279
17313
|
var _dv$displayName;
|
|
17280
17314
|
const baseLabel = (_dv$displayName = dv.displayName) !== null && _dv$displayName !== void 0 ? _dv$displayName : dv.value;
|
|
17281
17315
|
const label = dv.archivedAt ? t("tags:label.tag_label_archived", "{{label}} (Archived)", { label: baseLabel }) : baseLabel;
|
|
@@ -17291,10 +17325,10 @@ var TagDimensionCombobox = ({ dimensionKey, value, onValueChange, isReadOnly, sh
|
|
|
17291
17325
|
var _tagDimension$display;
|
|
17292
17326
|
const { t } = useTranslation();
|
|
17293
17327
|
const { data: tagDimension, isLoading } = useTagDimensionByKey({ dimensionKey });
|
|
17294
|
-
const options = useMemo(() => tagDimension ? tagDimension.definedValues.map((dv) => toOption(dv, t)) : [], [tagDimension, t]);
|
|
17328
|
+
const options = useMemo(() => tagDimension ? tagDimension.definedValues.map((dv) => toOption$1(dv, t)) : [], [tagDimension, t]);
|
|
17295
17329
|
const selectedOption = useMemo(() => {
|
|
17296
17330
|
if (value === null) return null;
|
|
17297
|
-
return toOption({
|
|
17331
|
+
return toOption$1({
|
|
17298
17332
|
id: value.id,
|
|
17299
17333
|
key: value.key,
|
|
17300
17334
|
value: value.value,
|
|
@@ -17610,9 +17644,9 @@ var ReceiptsProvider = ({ children, bankTransaction, isActive }) => {
|
|
|
17610
17644
|
};
|
|
17611
17645
|
//#endregion
|
|
17612
17646
|
//#region src/icons/Eye.tsx
|
|
17613
|
-
var _excluded$
|
|
17647
|
+
var _excluded$49 = ["size"];
|
|
17614
17648
|
var Eye = (_ref) => {
|
|
17615
|
-
let { size = 18 } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
17649
|
+
let { size = 18 } = _ref, props = _objectWithoutProperties(_ref, _excluded$49);
|
|
17616
17650
|
return /* @__PURE__ */ jsx("svg", _objectSpread2(_objectSpread2({
|
|
17617
17651
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17618
17652
|
width: size,
|
|
@@ -17709,9 +17743,9 @@ var FileThumb = ({ url, floatingActions = false, uploadPending, deletePending, n
|
|
|
17709
17743
|
};
|
|
17710
17744
|
//#endregion
|
|
17711
17745
|
//#region src/components/Button/TextButton.tsx
|
|
17712
|
-
var _excluded$
|
|
17746
|
+
var _excluded$48 = ["className", "children"];
|
|
17713
17747
|
var TextButton = (_ref) => {
|
|
17714
|
-
let { className, children } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
17748
|
+
let { className, children } = _ref, props = _objectWithoutProperties(_ref, _excluded$48);
|
|
17715
17749
|
const baseClassName = classNames("Layer__text-btn", className);
|
|
17716
17750
|
return /* @__PURE__ */ jsx("button", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17717
17751
|
className: baseClassName,
|
|
@@ -17761,7 +17795,7 @@ var FileInput = ({ text, onUpload, disabled = false, secondary, iconOnly = false
|
|
|
17761
17795
|
};
|
|
17762
17796
|
//#endregion
|
|
17763
17797
|
//#region src/components/BankTransactionReceipts/BankTransactionReceipts.tsx
|
|
17764
|
-
var _excluded$
|
|
17798
|
+
var _excluded$47 = ["bankTransaction", "isActive"];
|
|
17765
17799
|
var MAX_RECEIPTS_COUNT = 10;
|
|
17766
17800
|
var openReceiptInNewTab = (url, receiptTitle) => (e) => {
|
|
17767
17801
|
e.preventDefault();
|
|
@@ -17782,7 +17816,7 @@ var BankTransactionReceiptsWithProvider = forwardRef((_ref, ref) => {
|
|
|
17782
17816
|
return /* @__PURE__ */ jsx(ReceiptsProvider, {
|
|
17783
17817
|
bankTransaction,
|
|
17784
17818
|
isActive,
|
|
17785
|
-
children: /* @__PURE__ */ jsx(BankTransactionReceipts, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
17819
|
+
children: /* @__PURE__ */ jsx(BankTransactionReceipts, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$47)), {}, { ref }))
|
|
17786
17820
|
});
|
|
17787
17821
|
});
|
|
17788
17822
|
BankTransactionReceiptsWithProvider.displayName = "BankTransactionReceiptsWithProvider";
|
|
@@ -17865,14 +17899,14 @@ var getCurrencyFormatConfig = (intl) => {
|
|
|
17865
17899
|
};
|
|
17866
17900
|
//#endregion
|
|
17867
17901
|
//#region src/components/Input/AmountInput.tsx
|
|
17868
|
-
var _excluded$
|
|
17902
|
+
var _excluded$46 = [
|
|
17869
17903
|
"onChange",
|
|
17870
17904
|
"className",
|
|
17871
17905
|
"errorMessage",
|
|
17872
17906
|
"isInvalid"
|
|
17873
17907
|
];
|
|
17874
17908
|
var AmountInput = (_ref) => {
|
|
17875
|
-
let { onChange, className, errorMessage, isInvalid } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
17909
|
+
let { onChange, className, errorMessage, isInvalid } = _ref, props = _objectWithoutProperties(_ref, _excluded$46);
|
|
17876
17910
|
const intl = useIntl();
|
|
17877
17911
|
const formatter = useIntlFormatter();
|
|
17878
17912
|
const currencyFormatConfig = useMemo(() => getCurrencyFormatConfig(intl), [intl]);
|
|
@@ -18532,14 +18566,14 @@ var BankTransactionsMobileListItemCheckbox = ({ bulkActionsEnabled, bankTransact
|
|
|
18532
18566
|
};
|
|
18533
18567
|
//#endregion
|
|
18534
18568
|
//#region src/icons/Paperclip.tsx
|
|
18535
|
-
var _excluded$
|
|
18569
|
+
var _excluded$45 = ["size"];
|
|
18536
18570
|
var Paperclip = (_ref) => {
|
|
18537
18571
|
let { size = 20 } = _ref;
|
|
18538
18572
|
return /* @__PURE__ */ jsx("svg", _objectSpread2(_objectSpread2({
|
|
18539
18573
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18540
18574
|
viewBox: "0 0 20 20",
|
|
18541
18575
|
fill: "none"
|
|
18542
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
18576
|
+
}, _objectWithoutProperties(_ref, _excluded$45)), {}, {
|
|
18543
18577
|
width: size,
|
|
18544
18578
|
height: size,
|
|
18545
18579
|
children: /* @__PURE__ */ jsx("path", {
|
|
@@ -19728,14 +19762,14 @@ var BankTransactionRow = ({ index, bankTransaction, initialLoad, showDescription
|
|
|
19728
19762
|
};
|
|
19729
19763
|
//#endregion
|
|
19730
19764
|
//#region src/icons/Inbox.tsx
|
|
19731
|
-
var _excluded$
|
|
19765
|
+
var _excluded$44 = ["size"];
|
|
19732
19766
|
var Inbox = (_ref) => {
|
|
19733
19767
|
let { size = 18 } = _ref;
|
|
19734
19768
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
19735
19769
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19736
19770
|
viewBox: "0 0 18 18",
|
|
19737
19771
|
fill: "none"
|
|
19738
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
19772
|
+
}, _objectWithoutProperties(_ref, _excluded$44)), {}, {
|
|
19739
19773
|
width: size,
|
|
19740
19774
|
height: size,
|
|
19741
19775
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -20046,14 +20080,14 @@ function useArchiveCategorizationRule() {
|
|
|
20046
20080
|
}
|
|
20047
20081
|
//#endregion
|
|
20048
20082
|
//#region src/icons/BackArrow.tsx
|
|
20049
|
-
var _excluded$
|
|
20083
|
+
var _excluded$43 = ["size"];
|
|
20050
20084
|
var BackArrow = (_ref) => {
|
|
20051
20085
|
let { size = 18 } = _ref;
|
|
20052
20086
|
return /* @__PURE__ */ jsx("svg", _objectSpread2(_objectSpread2({
|
|
20053
20087
|
viewBox: "0 0 12 12",
|
|
20054
20088
|
fill: "none",
|
|
20055
20089
|
xmlns: "http://www.w3.org/2000/svg"
|
|
20056
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
20090
|
+
}, _objectWithoutProperties(_ref, _excluded$43)), {}, {
|
|
20057
20091
|
width: size,
|
|
20058
20092
|
height: size,
|
|
20059
20093
|
children: /* @__PURE__ */ jsx("path", {
|
|
@@ -20157,9 +20191,9 @@ var usePaginationRange = ({ totalCount, pageSize, siblingCount = 1, currentPage
|
|
|
20157
20191
|
};
|
|
20158
20192
|
//#endregion
|
|
20159
20193
|
//#region src/components/Pagination/Pagination.tsx
|
|
20160
|
-
var _excluded$
|
|
20194
|
+
var _excluded$42 = ["children", "isSelected"];
|
|
20161
20195
|
var PaginationButton = (_ref) => {
|
|
20162
|
-
let { children, isSelected } = _ref, buttonProps = _objectWithoutProperties(_ref, _excluded$
|
|
20196
|
+
let { children, isSelected } = _ref, buttonProps = _objectWithoutProperties(_ref, _excluded$42);
|
|
20163
20197
|
return /* @__PURE__ */ jsx(Button$1, _objectSpread2(_objectSpread2({
|
|
20164
20198
|
inset: true,
|
|
20165
20199
|
icon: true,
|
|
@@ -20228,11 +20262,11 @@ var Pagination = ({ onPageChange, totalCount, siblingCount = 1, currentPage, pag
|
|
|
20228
20262
|
};
|
|
20229
20263
|
//#endregion
|
|
20230
20264
|
//#region src/components/ui/MobileList/PaginatedMobileList.tsx
|
|
20231
|
-
var _excluded$
|
|
20265
|
+
var _excluded$41 = ["data", "paginationProps"];
|
|
20232
20266
|
var EMPTY_ARRAY$4 = [];
|
|
20233
20267
|
var PaginatedMobileList = (props) => {
|
|
20234
20268
|
var _data$length;
|
|
20235
|
-
const { data, paginationProps } = props, listProps = _objectWithoutProperties(props, _excluded$
|
|
20269
|
+
const { data, paginationProps } = props, listProps = _objectWithoutProperties(props, _excluded$41);
|
|
20236
20270
|
const { initialPage = 0, onSetPage, pageSize = 20, hasMore, fetchMore, autoResetPageIndexRef } = paginationProps;
|
|
20237
20271
|
const { pageItems, pageIndex, setPage } = usePaginatedList({
|
|
20238
20272
|
data: data !== null && data !== void 0 ? data : EMPTY_ARRAY$4,
|
|
@@ -20734,7 +20768,7 @@ var CategorizationRulesHeader = ({ onGoBack }) => {
|
|
|
20734
20768
|
})]
|
|
20735
20769
|
});
|
|
20736
20770
|
};
|
|
20737
|
-
var resolveVariant$
|
|
20771
|
+
var resolveVariant$2 = ({ width }) => width < BREAKPOINTS.TABLET ? "Mobile" : "Desktop";
|
|
20738
20772
|
var ResponsiveCategorizationRulesView = () => {
|
|
20739
20773
|
var _ref;
|
|
20740
20774
|
const { t } = useTranslation();
|
|
@@ -20845,7 +20879,7 @@ var ResponsiveCategorizationRulesView = () => {
|
|
|
20845
20879
|
]);
|
|
20846
20880
|
const selectedRuleCounterpartyLabel = (_ref = selectedRule && getCategorizationRuleCounterpartyLabel(selectedRule)) !== null && _ref !== void 0 ? _ref : t("bankTransactions:label.selected_counterparty", "this counterparty");
|
|
20847
20881
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(ResponsiveComponent, {
|
|
20848
|
-
resolveVariant: resolveVariant$
|
|
20882
|
+
resolveVariant: resolveVariant$2,
|
|
20849
20883
|
slots: {
|
|
20850
20884
|
Desktop: DesktopView,
|
|
20851
20885
|
Mobile: MobileView
|
|
@@ -21306,7 +21340,7 @@ var SuggestedCategorizationRuleUpdatesDialog = ({ isOpen, onOpenChange, ruleSugg
|
|
|
21306
21340
|
};
|
|
21307
21341
|
//#endregion
|
|
21308
21342
|
//#region src/components/BankTransactions/BankTransactions.tsx
|
|
21309
|
-
var _excluded$
|
|
21343
|
+
var _excluded$40 = [
|
|
21310
21344
|
"onError",
|
|
21311
21345
|
"showTags",
|
|
21312
21346
|
"showCustomerVendor",
|
|
@@ -21318,7 +21352,7 @@ var _excluded$38 = [
|
|
|
21318
21352
|
];
|
|
21319
21353
|
var COMPONENT_NAME$12 = "bank-transactions";
|
|
21320
21354
|
var BankTransactions = (_ref) => {
|
|
21321
|
-
let { onError, showTags = false, showCustomerVendor = false, monthlyView = false, applyGlobalDateRange = false, mode, renderInAppLink, filters } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
21355
|
+
let { onError, showTags = false, showCustomerVendor = false, monthlyView = false, applyGlobalDateRange = false, mode, renderInAppLink, filters } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$40);
|
|
21322
21356
|
usePreloadTagDimensions({ isEnabled: showTags });
|
|
21323
21357
|
usePreloadCustomers({ isEnabled: showCustomerVendor });
|
|
21324
21358
|
usePreloadVendors({ isEnabled: showCustomerVendor });
|
|
@@ -21634,9 +21668,9 @@ function QuickbooksContextProvider({ children }) {
|
|
|
21634
21668
|
}
|
|
21635
21669
|
//#endregion
|
|
21636
21670
|
//#region src/icons/Cog.tsx
|
|
21637
|
-
var _excluded$
|
|
21671
|
+
var _excluded$39 = ["size"];
|
|
21638
21672
|
var Cog = (_ref) => {
|
|
21639
|
-
let { size = 12 } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
21673
|
+
let { size = 12 } = _ref, props = _objectWithoutProperties(_ref, _excluded$39);
|
|
21640
21674
|
const id = useId();
|
|
21641
21675
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
21642
21676
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -21668,9 +21702,9 @@ var Cog = (_ref) => {
|
|
|
21668
21702
|
};
|
|
21669
21703
|
//#endregion
|
|
21670
21704
|
//#region src/icons/QuickbooksIcon.tsx
|
|
21671
|
-
var _excluded$
|
|
21705
|
+
var _excluded$38 = ["size"];
|
|
21672
21706
|
var QuickbooksIcon = (_ref) => {
|
|
21673
|
-
let { size = 24 } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
21707
|
+
let { size = 24 } = _ref, props = _objectWithoutProperties(_ref, _excluded$38);
|
|
21674
21708
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
21675
21709
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21676
21710
|
viewBox: "0 0 24 24",
|
|
@@ -21870,14 +21904,14 @@ function IntegrationsQuickbooksUnlinkConfirmationModal({ isOpen, onOpenChange })
|
|
|
21870
21904
|
}
|
|
21871
21905
|
//#endregion
|
|
21872
21906
|
//#region src/icons/MoreVertical.tsx
|
|
21873
|
-
var _excluded$
|
|
21907
|
+
var _excluded$37 = ["size"];
|
|
21874
21908
|
var MoreVertical = (_ref) => {
|
|
21875
21909
|
let { size = 18 } = _ref;
|
|
21876
21910
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
21877
21911
|
viewBox: "0 0 16 14",
|
|
21878
21912
|
fill: "none",
|
|
21879
21913
|
xmlns: "http://www.w3.org/2000/svg"
|
|
21880
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
21914
|
+
}, _objectWithoutProperties(_ref, _excluded$37)), {}, {
|
|
21881
21915
|
width: size,
|
|
21882
21916
|
height: size,
|
|
21883
21917
|
children: [
|
|
@@ -22082,14 +22116,14 @@ var IntegrationsComponent = ({ stringOverrides }) => {
|
|
|
22082
22116
|
};
|
|
22083
22117
|
//#endregion
|
|
22084
22118
|
//#region src/icons/PlusIcon.tsx
|
|
22085
|
-
var _excluded$
|
|
22119
|
+
var _excluded$36 = ["size"];
|
|
22086
22120
|
var PlusIcon = (_ref) => {
|
|
22087
22121
|
let { size = 14 } = _ref;
|
|
22088
22122
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
22089
22123
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22090
22124
|
viewBox: "0 0 16 16",
|
|
22091
22125
|
fill: "none"
|
|
22092
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
22126
|
+
}, _objectWithoutProperties(_ref, _excluded$36)), {}, {
|
|
22093
22127
|
width: size,
|
|
22094
22128
|
height: size,
|
|
22095
22129
|
children: [
|
|
@@ -22167,14 +22201,14 @@ function useConfirmAndExcludeMultiple({ onSuccess }) {
|
|
|
22167
22201
|
}
|
|
22168
22202
|
//#endregion
|
|
22169
22203
|
//#region src/icons/InstitutionIcon.tsx
|
|
22170
|
-
var _excluded$
|
|
22204
|
+
var _excluded$35 = ["size"];
|
|
22171
22205
|
var InstitutionIcon = (_ref) => {
|
|
22172
22206
|
let { size = 18 } = _ref;
|
|
22173
22207
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
22174
22208
|
viewBox: "0 0 27 28",
|
|
22175
22209
|
fill: "none",
|
|
22176
22210
|
xmlns: "http://www.w3.org/2000/svg"
|
|
22177
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
22211
|
+
}, _objectWithoutProperties(_ref, _excluded$35)), {}, {
|
|
22178
22212
|
width: size,
|
|
22179
22213
|
height: size,
|
|
22180
22214
|
children: [
|
|
@@ -22699,10 +22733,10 @@ var MenuItem$1 = forwardRef(function MenuItem$3({ children, textValue, onAction
|
|
|
22699
22733
|
});
|
|
22700
22734
|
//#endregion
|
|
22701
22735
|
//#region src/components/ui/Pill/Pill.tsx
|
|
22702
|
-
var _excluded$
|
|
22736
|
+
var _excluded$34 = ["children", "status"];
|
|
22703
22737
|
var PILL_CLASS_NAME = "Layer__Pill";
|
|
22704
22738
|
var Pill = forwardRef(function Pill(_ref, ref) {
|
|
22705
|
-
let { children, status } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
22739
|
+
let { children, status } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$34);
|
|
22706
22740
|
const dataProperties = toDataProperties({ status });
|
|
22707
22741
|
return /* @__PURE__ */ jsx(Button, _objectSpread2(_objectSpread2(_objectSpread2({}, restProps), dataProperties), {}, {
|
|
22708
22742
|
className: PILL_CLASS_NAME,
|
|
@@ -23900,16 +23934,16 @@ var useProfitAndLossLTM = ({ tagFilter, reportingBasis, chartWindow }) => {
|
|
|
23900
23934
|
};
|
|
23901
23935
|
//#endregion
|
|
23902
23936
|
//#region src/components/Chart/ChartYAxis.tsx
|
|
23903
|
-
var _excluded$
|
|
23937
|
+
var _excluded$33 = [
|
|
23904
23938
|
"verticalAnchor",
|
|
23905
23939
|
"visibleTicksCount",
|
|
23906
23940
|
"tickFormatter",
|
|
23907
23941
|
"format",
|
|
23908
23942
|
"payload"
|
|
23909
|
-
], _excluded2$
|
|
23943
|
+
], _excluded2$5 = ["format"];
|
|
23910
23944
|
var CustomizedYTick = (_ref) => {
|
|
23911
23945
|
let { verticalAnchor: _verticalAnchor, visibleTicksCount: _visibleTicksCount, tickFormatter: _tickFormatter, format, payload } = _ref;
|
|
23912
|
-
return /* @__PURE__ */ jsx("text", _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
23946
|
+
return /* @__PURE__ */ jsx("text", _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$33)), {}, {
|
|
23913
23947
|
className: "Layer__ChartYAxis__tick",
|
|
23914
23948
|
children: /* @__PURE__ */ jsx("tspan", {
|
|
23915
23949
|
dy: "0.355em",
|
|
@@ -23918,7 +23952,7 @@ var CustomizedYTick = (_ref) => {
|
|
|
23918
23952
|
}));
|
|
23919
23953
|
};
|
|
23920
23954
|
var ChartYAxis = (_ref2) => {
|
|
23921
|
-
let { format } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$
|
|
23955
|
+
let { format } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$5);
|
|
23922
23956
|
const { formatNumber } = useIntlFormatter();
|
|
23923
23957
|
const formatYAxisValue = useCallback((value) => {
|
|
23924
23958
|
if (!value) return value;
|
|
@@ -24096,7 +24130,7 @@ var ProfitAndLossChartSelectionIndicator = ({ viewBox, selected }) => {
|
|
|
24096
24130
|
};
|
|
24097
24131
|
//#endregion
|
|
24098
24132
|
//#region src/components/ProfitAndLossChart/ProfitAndLossChartBar.tsx
|
|
24099
|
-
var _excluded$
|
|
24133
|
+
var _excluded$32 = ["payload", "fill"];
|
|
24100
24134
|
var BAR_RADIUS$1 = [
|
|
24101
24135
|
2,
|
|
24102
24136
|
2,
|
|
@@ -24116,7 +24150,7 @@ var ProfitAndLossChartBar = ({ dataKey, xAxisId, cellFill, className, barSize, s
|
|
|
24116
24150
|
isAnimationActive: barAnimation,
|
|
24117
24151
|
fill: cellFill,
|
|
24118
24152
|
shape: useCallback((props) => {
|
|
24119
|
-
const { payload, fill } = props, restProps = _objectWithoutProperties(props, _excluded$
|
|
24153
|
+
const { payload, fill } = props, restProps = _objectWithoutProperties(props, _excluded$32);
|
|
24120
24154
|
const shouldRound = payload && isOutermostBar(payload, dataKey, xAxisId);
|
|
24121
24155
|
return /* @__PURE__ */ jsx(Rectangle, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
24122
24156
|
fill,
|
|
@@ -24182,14 +24216,14 @@ var ProfitAndLossChartLegend = () => {
|
|
|
24182
24216
|
};
|
|
24183
24217
|
//#endregion
|
|
24184
24218
|
//#region src/icons/BarChart2.tsx
|
|
24185
|
-
var _excluded$
|
|
24219
|
+
var _excluded$31 = ["size"];
|
|
24186
24220
|
var BarChart2 = (_ref) => {
|
|
24187
24221
|
let { size = 12 } = _ref;
|
|
24188
24222
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
24189
24223
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24190
24224
|
viewBox: "0 0 12 12",
|
|
24191
24225
|
fill: "none"
|
|
24192
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
24226
|
+
}, _objectWithoutProperties(_ref, _excluded$31)), {}, {
|
|
24193
24227
|
width: size,
|
|
24194
24228
|
height: size,
|
|
24195
24229
|
children: [
|
|
@@ -24235,7 +24269,7 @@ var ProfitAndLossChartStateCard = () => {
|
|
|
24235
24269
|
};
|
|
24236
24270
|
//#endregion
|
|
24237
24271
|
//#region src/components/Chart/ChartTooltip.tsx
|
|
24238
|
-
var _excluded$
|
|
24272
|
+
var _excluded$30 = [
|
|
24239
24273
|
"content",
|
|
24240
24274
|
"cursorWidth",
|
|
24241
24275
|
"animationDuration",
|
|
@@ -24271,7 +24305,7 @@ var ChartTooltipCursor = ({ width, points, height }) => {
|
|
|
24271
24305
|
});
|
|
24272
24306
|
};
|
|
24273
24307
|
var ChartTooltip = (_ref) => {
|
|
24274
|
-
let { content, cursorWidth, animationDuration = 100, animationEasing = "ease-out" } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
24308
|
+
let { content, cursorWidth, animationDuration = 100, animationEasing = "ease-out" } = _ref, props = _objectWithoutProperties(_ref, _excluded$30);
|
|
24275
24309
|
return /* @__PURE__ */ jsx(Tooltip, _objectSpread2({
|
|
24276
24310
|
wrapperClassName: "Layer__ChartTooltip__wrapper",
|
|
24277
24311
|
content,
|
|
@@ -24712,7 +24746,7 @@ var DetailedChart = ({ data, isLoading, interactionProps, stylingProps, slots })
|
|
|
24712
24746
|
};
|
|
24713
24747
|
//#endregion
|
|
24714
24748
|
//#region src/icons/SortArrows.tsx
|
|
24715
|
-
var _excluded$
|
|
24749
|
+
var _excluded$29 = ["size"];
|
|
24716
24750
|
var ClassNames = {
|
|
24717
24751
|
DESC_ARROW: "Layer__SortArrows__DescArrow",
|
|
24718
24752
|
ASC_ARROW: "Layer__SortArrows__AscArrow"
|
|
@@ -24723,7 +24757,7 @@ var SortArrows = (_ref) => {
|
|
|
24723
24757
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24724
24758
|
viewBox: "0 0 12 13",
|
|
24725
24759
|
fill: "none"
|
|
24726
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
24760
|
+
}, _objectWithoutProperties(_ref, _excluded$29)), {}, {
|
|
24727
24761
|
width: size,
|
|
24728
24762
|
height: size,
|
|
24729
24763
|
children: [/* @__PURE__ */ jsxs("g", {
|
|
@@ -24868,7 +24902,7 @@ var RegularValueIcon = ({ colorMapping }) => {
|
|
|
24868
24902
|
};
|
|
24869
24903
|
//#endregion
|
|
24870
24904
|
//#region src/components/DetailedTable/DetailedTable.tsx
|
|
24871
|
-
var _excluded$
|
|
24905
|
+
var _excluded$28 = ["data"];
|
|
24872
24906
|
var DetailedTable = ({ stylingProps, sortParams, sortFunction, interactionProps, rows, stringOverrides, showTypeColumn = true }) => {
|
|
24873
24907
|
const { t } = useTranslation();
|
|
24874
24908
|
const setAndToggleSortDirection = (params) => {
|
|
@@ -24999,7 +25033,7 @@ var DetailedTable = ({ stylingProps, sortParams, sortFunction, interactionProps,
|
|
|
24999
25033
|
});
|
|
25000
25034
|
};
|
|
25001
25035
|
var DetailedTableWithData = (_ref) => {
|
|
25002
|
-
let { data } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
25036
|
+
let { data } = _ref, props = _objectWithoutProperties(_ref, _excluded$28);
|
|
25003
25037
|
return /* @__PURE__ */ jsx(DetailedTable, _objectSpread2({ rows: useDetailedTableRows({ data }) }, props));
|
|
25004
25038
|
};
|
|
25005
25039
|
//#endregion
|
|
@@ -25173,9 +25207,9 @@ var LedgerAccountsContext = createContext({
|
|
|
25173
25207
|
});
|
|
25174
25208
|
//#endregion
|
|
25175
25209
|
//#region src/components/Button/BackButton.tsx
|
|
25176
|
-
var _excluded$
|
|
25210
|
+
var _excluded$27 = ["className", "textOnly"];
|
|
25177
25211
|
var BackButton = (_ref) => {
|
|
25178
|
-
let { className, textOnly = false } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
25212
|
+
let { className, textOnly = false } = _ref, props = _objectWithoutProperties(_ref, _excluded$27);
|
|
25179
25213
|
const baseClassName = classNames("Layer__btn", "Layer__back-btn", className);
|
|
25180
25214
|
return /* @__PURE__ */ jsx("button", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
25181
25215
|
className: baseClassName,
|
|
@@ -25184,9 +25218,9 @@ var BackButton = (_ref) => {
|
|
|
25184
25218
|
};
|
|
25185
25219
|
//#endregion
|
|
25186
25220
|
//#region src/components/Button/CloseButton.tsx
|
|
25187
|
-
var _excluded$
|
|
25221
|
+
var _excluded$26 = ["className", "textOnly"];
|
|
25188
25222
|
var CloseButton$1 = (_ref) => {
|
|
25189
|
-
let { className, textOnly = false } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
25223
|
+
let { className, textOnly = false } = _ref, props = _objectWithoutProperties(_ref, _excluded$26);
|
|
25190
25224
|
const baseClassName = classNames("Layer__btn", "Layer__back-btn", className);
|
|
25191
25225
|
return /* @__PURE__ */ jsx("button", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
25192
25226
|
className: baseClassName,
|
|
@@ -27831,7 +27865,7 @@ function TransactionsToReview({ onClick, tagFilter = void 0, variants }) {
|
|
|
27831
27865
|
}
|
|
27832
27866
|
//#endregion
|
|
27833
27867
|
//#region src/components/ProfitAndLossSummaries/ProfitAndLossSummaries.tsx
|
|
27834
|
-
var _excluded$
|
|
27868
|
+
var _excluded$25 = ["onTransactionsToReviewClick"];
|
|
27835
27869
|
var SECTION_CLASS_NAMES = `Layer__ProfitAndLossSummaries Layer__component`;
|
|
27836
27870
|
function Internal_ProfitAndLossSummaries({ actionable = false, revenueLabel, stringOverrides, chartColorsList, slots, variants }) {
|
|
27837
27871
|
var _effectiveData$income3, _effectiveData$income4, _effectiveData$income5, _data$netProfit;
|
|
@@ -27938,7 +27972,7 @@ function Internal_ProfitAndLossSummaries({ actionable = false, revenueLabel, str
|
|
|
27938
27972
|
});
|
|
27939
27973
|
}
|
|
27940
27974
|
function ProfitAndLossSummaries(_ref) {
|
|
27941
|
-
let { onTransactionsToReviewClick } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
27975
|
+
let { onTransactionsToReviewClick } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$25);
|
|
27942
27976
|
return /* @__PURE__ */ jsx(Internal_ProfitAndLossSummaries, _objectSpread2(_objectSpread2({}, restProps), {}, { slots: { unstable_AdditionalListItems: onTransactionsToReviewClick ? [/* @__PURE__ */ jsx(TransactionsToReview, {
|
|
27943
27977
|
variants: restProps.variants,
|
|
27944
27978
|
onClick: onTransactionsToReviewClick
|
|
@@ -29463,14 +29497,14 @@ var LedgerAccountNodeType = /* @__PURE__ */ function(LedgerAccountNodeType) {
|
|
|
29463
29497
|
}({});
|
|
29464
29498
|
//#endregion
|
|
29465
29499
|
//#region src/icons/Edit2.tsx
|
|
29466
|
-
var _excluded$
|
|
29500
|
+
var _excluded$24 = ["size"];
|
|
29467
29501
|
var Edit2 = (_ref) => {
|
|
29468
29502
|
let { size = 18 } = _ref;
|
|
29469
29503
|
return /* @__PURE__ */ jsx("svg", _objectSpread2(_objectSpread2({
|
|
29470
29504
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29471
29505
|
viewBox: "0 0 18 18",
|
|
29472
29506
|
fill: "none"
|
|
29473
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
29507
|
+
}, _objectWithoutProperties(_ref, _excluded$24)), {}, {
|
|
29474
29508
|
width: size,
|
|
29475
29509
|
height: size,
|
|
29476
29510
|
children: /* @__PURE__ */ jsx("path", {
|
|
@@ -29899,14 +29933,14 @@ var ChartOfAccountsTable = ({ stringOverrides, searchQuery, templateAccountsEdit
|
|
|
29899
29933
|
};
|
|
29900
29934
|
//#endregion
|
|
29901
29935
|
//#region src/icons/Plus.tsx
|
|
29902
|
-
var _excluded$
|
|
29936
|
+
var _excluded$23 = ["size"];
|
|
29903
29937
|
var Plus$1 = (_ref) => {
|
|
29904
29938
|
let { size = 14 } = _ref;
|
|
29905
29939
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
29906
29940
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29907
29941
|
viewBox: "0 0 14 14",
|
|
29908
29942
|
fill: "none"
|
|
29909
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
29943
|
+
}, _objectWithoutProperties(_ref, _excluded$23)), {}, {
|
|
29910
29944
|
width: size,
|
|
29911
29945
|
height: size,
|
|
29912
29946
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -30022,10 +30056,11 @@ var Expand = (_ref) => {
|
|
|
30022
30056
|
};
|
|
30023
30057
|
//#endregion
|
|
30024
30058
|
//#region src/components/ExpandableDataTable/ExpandableDataTableToggleButton.tsx
|
|
30025
|
-
var ExpandableDataTableToggleButton = () => {
|
|
30059
|
+
var ExpandableDataTableToggleButton = ({ iconOnly }) => {
|
|
30026
30060
|
const { t } = useTranslation();
|
|
30027
30061
|
const { expanded, setExpanded } = useContext(ExpandableDataTableContext);
|
|
30028
30062
|
const { isDesktop } = useSizeClass();
|
|
30063
|
+
const resolvedIconOnly = iconOnly !== null && iconOnly !== void 0 ? iconOnly : !isDesktop;
|
|
30029
30064
|
const shouldCollapse = expanded === true;
|
|
30030
30065
|
const onClickExpandOrCollapse = useCallback(() => {
|
|
30031
30066
|
if (shouldCollapse) setExpanded({});
|
|
@@ -30033,11 +30068,11 @@ var ExpandableDataTableToggleButton = () => {
|
|
|
30033
30068
|
}, [setExpanded, shouldCollapse]);
|
|
30034
30069
|
const buttonText = shouldCollapse ? t("common:action.collapse_all", "Collapse All") : t("common:action.expand_all", "Expand All");
|
|
30035
30070
|
return /* @__PURE__ */ jsx(Button$1, {
|
|
30036
|
-
icon:
|
|
30071
|
+
icon: resolvedIconOnly,
|
|
30037
30072
|
variant: "outlined",
|
|
30038
30073
|
onClick: onClickExpandOrCollapse,
|
|
30039
|
-
"aria-label":
|
|
30040
|
-
children:
|
|
30074
|
+
"aria-label": resolvedIconOnly ? buttonText : void 0,
|
|
30075
|
+
children: resolvedIconOnly ? /* @__PURE__ */ jsx(shouldCollapse ? Collapse : Expand, {}) : buttonText
|
|
30041
30076
|
});
|
|
30042
30077
|
};
|
|
30043
30078
|
//#endregion
|
|
@@ -32299,14 +32334,14 @@ var TasksHeader = ({ tasksHeader }) => {
|
|
|
32299
32334
|
};
|
|
32300
32335
|
//#endregion
|
|
32301
32336
|
//#region src/icons/SmileIcon.tsx
|
|
32302
|
-
var _excluded$
|
|
32337
|
+
var _excluded$22 = ["size"];
|
|
32303
32338
|
var SmileIcon = (_ref) => {
|
|
32304
32339
|
let { size = 12 } = _ref;
|
|
32305
32340
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
32306
32341
|
viewBox: "0 0 12 12",
|
|
32307
32342
|
fill: "none",
|
|
32308
32343
|
xmlns: "http://www.w3.org/2000/svg"
|
|
32309
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
32344
|
+
}, _objectWithoutProperties(_ref, _excluded$22)), {}, {
|
|
32310
32345
|
width: size,
|
|
32311
32346
|
height: size,
|
|
32312
32347
|
children: [
|
|
@@ -32505,13 +32540,13 @@ function useSubmitUserResponseForTask() {
|
|
|
32505
32540
|
}
|
|
32506
32541
|
//#endregion
|
|
32507
32542
|
//#region src/components/Textarea/Textarea.tsx
|
|
32508
|
-
var _excluded$
|
|
32543
|
+
var _excluded$21 = [
|
|
32509
32544
|
"className",
|
|
32510
32545
|
"isInvalid",
|
|
32511
32546
|
"errorMessage"
|
|
32512
32547
|
];
|
|
32513
32548
|
var Textarea = (_ref) => {
|
|
32514
|
-
let { className, isInvalid, errorMessage } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
32549
|
+
let { className, isInvalid, errorMessage } = _ref, props = _objectWithoutProperties(_ref, _excluded$21);
|
|
32515
32550
|
const baseClassName = classNames("Layer__textarea", isInvalid ? "Layer__textarea--error" : "", className);
|
|
32516
32551
|
return /* @__PURE__ */ jsxs(DeprecatedTooltip, {
|
|
32517
32552
|
disabled: !isInvalid || !errorMessage,
|
|
@@ -33024,14 +33059,14 @@ var useBookkeepingYearsStatus = () => {
|
|
|
33024
33059
|
};
|
|
33025
33060
|
//#endregion
|
|
33026
33061
|
//#region src/icons/ArrowRightCircle.tsx
|
|
33027
|
-
var _excluded$
|
|
33062
|
+
var _excluded$20 = ["size"];
|
|
33028
33063
|
var ArrowRightCircle = (_ref) => {
|
|
33029
33064
|
let { size = 18 } = _ref;
|
|
33030
33065
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
33031
33066
|
xmlns: "http://www.w3.org/2000/svg",
|
|
33032
33067
|
viewBox: "0 0 18 18",
|
|
33033
33068
|
fill: "none"
|
|
33034
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
33069
|
+
}, _objectWithoutProperties(_ref, _excluded$20)), {}, {
|
|
33035
33070
|
width: size,
|
|
33036
33071
|
height: size,
|
|
33037
33072
|
children: [
|
|
@@ -34247,14 +34282,14 @@ function LinkAccountsContent({ onComplete }) {
|
|
|
34247
34282
|
}
|
|
34248
34283
|
//#endregion
|
|
34249
34284
|
//#region src/icons/Coffee.tsx
|
|
34250
|
-
var _excluded$
|
|
34285
|
+
var _excluded$19 = ["size"];
|
|
34251
34286
|
var CoffeeIcon = (_ref) => {
|
|
34252
34287
|
let { size = 11 } = _ref;
|
|
34253
34288
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
34254
34289
|
xmlns: "http://www.w3.org/2000/svg",
|
|
34255
34290
|
viewBox: "0 0 12 12",
|
|
34256
34291
|
fill: "none"
|
|
34257
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
34292
|
+
}, _objectWithoutProperties(_ref, _excluded$19)), {}, {
|
|
34258
34293
|
width: size,
|
|
34259
34294
|
height: size,
|
|
34260
34295
|
children: [/* @__PURE__ */ jsxs("g", {
|
|
@@ -34304,7 +34339,7 @@ var CoffeeIcon = (_ref) => {
|
|
|
34304
34339
|
};
|
|
34305
34340
|
//#endregion
|
|
34306
34341
|
//#region src/components/Button/Link.tsx
|
|
34307
|
-
var _excluded$
|
|
34342
|
+
var _excluded$18 = [
|
|
34308
34343
|
"className",
|
|
34309
34344
|
"children",
|
|
34310
34345
|
"variant",
|
|
@@ -34316,7 +34351,7 @@ var _excluded$16 = [
|
|
|
34316
34351
|
"fullWidth"
|
|
34317
34352
|
];
|
|
34318
34353
|
var Link$2 = (_ref) => {
|
|
34319
|
-
let { className, children, variant = ButtonVariant.primary, leftIcon, rightIcon, iconOnly, iconAsPrimary = false, justify = "center", fullWidth } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
34354
|
+
let { className, children, variant = ButtonVariant.primary, leftIcon, rightIcon, iconOnly, iconAsPrimary = false, justify = "center", fullWidth } = _ref, props = _objectWithoutProperties(_ref, _excluded$18);
|
|
34320
34355
|
const linkRef = useRef(null);
|
|
34321
34356
|
let justifyContent = "center";
|
|
34322
34357
|
if (justify) justifyContent = justify;
|
|
@@ -34422,14 +34457,14 @@ var useMileageSummaryGlobalCacheActions = () => {
|
|
|
34422
34457
|
};
|
|
34423
34458
|
//#endregion
|
|
34424
34459
|
//#region src/icons/ArrowRightCircleAlt.tsx
|
|
34425
|
-
var _excluded$
|
|
34460
|
+
var _excluded$17 = ["size"];
|
|
34426
34461
|
var ArrowRightCircleAlt = (_ref) => {
|
|
34427
34462
|
let { size = 18 } = _ref;
|
|
34428
34463
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
34429
34464
|
xmlns: "http://www.w3.org/2000/svg",
|
|
34430
34465
|
viewBox: "0 0 18 18",
|
|
34431
34466
|
fill: "none"
|
|
34432
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
34467
|
+
}, _objectWithoutProperties(_ref, _excluded$17)), {}, {
|
|
34433
34468
|
width: size,
|
|
34434
34469
|
height: size,
|
|
34435
34470
|
children: [
|
|
@@ -35759,14 +35794,14 @@ function getCustomerName(customer) {
|
|
|
35759
35794
|
}
|
|
35760
35795
|
//#endregion
|
|
35761
35796
|
//#region src/icons/ChevronRightFill.tsx
|
|
35762
|
-
var _excluded$
|
|
35797
|
+
var _excluded$16 = ["size"];
|
|
35763
35798
|
var ChevronRightFill = (_ref) => {
|
|
35764
35799
|
let { size = 18 } = _ref;
|
|
35765
35800
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
35766
35801
|
xmlns: "http://www.w3.org/2000/svg",
|
|
35767
35802
|
viewBox: "0 0 18 18",
|
|
35768
35803
|
fill: "none"
|
|
35769
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
35804
|
+
}, _objectWithoutProperties(_ref, _excluded$16)), {}, {
|
|
35770
35805
|
width: size,
|
|
35771
35806
|
height: size,
|
|
35772
35807
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -37616,32 +37651,6 @@ var InvoicePaymentDrawer = ({ isOpen, onOpenChange, invoice }) => {
|
|
|
37616
37651
|
});
|
|
37617
37652
|
};
|
|
37618
37653
|
//#endregion
|
|
37619
|
-
//#region src/schemas/accountingConfiguration.ts
|
|
37620
|
-
var ReportingBasis = /* @__PURE__ */ function(ReportingBasis) {
|
|
37621
|
-
ReportingBasis["Accrual"] = "ACCRUAL";
|
|
37622
|
-
ReportingBasis["Cash"] = "CASH";
|
|
37623
|
-
ReportingBasis["DeprecatedCash"] = "DEPRECATED_CASH";
|
|
37624
|
-
ReportingBasis["MoneyMovementOnly"] = "MONEY_MOVEMENT_ONLY";
|
|
37625
|
-
return ReportingBasis;
|
|
37626
|
-
}({});
|
|
37627
|
-
Schema.Enums(ReportingBasis);
|
|
37628
|
-
var AccountingConfigurationCategoryListMode = /* @__PURE__ */ function(AccountingConfigurationCategoryListMode) {
|
|
37629
|
-
AccountingConfigurationCategoryListMode["AllAccounts"] = "ALL_ACCOUNTS";
|
|
37630
|
-
AccountingConfigurationCategoryListMode["RevenuesAndExpenses"] = "REVENUES_AND_EXPENSES";
|
|
37631
|
-
return AccountingConfigurationCategoryListMode;
|
|
37632
|
-
}({});
|
|
37633
|
-
Schema.Enums(AccountingConfigurationCategoryListMode);
|
|
37634
|
-
var AccountingConfigurationSchema = Schema.Struct({
|
|
37635
|
-
id: Schema.UUID,
|
|
37636
|
-
enableAccountNumbers: pipe(Schema.propertySignature(Schema.Boolean), Schema.fromKey("enable_account_numbers")),
|
|
37637
|
-
enableCustomerManagement: pipe(Schema.propertySignature(Schema.Boolean), Schema.fromKey("enable_customer_management")),
|
|
37638
|
-
taxEstimatesUserAgreementAt: pipe(Schema.propertySignature(Schema.NullishOr(Schema.Date)), Schema.fromKey("tax_estimates_user_agreement_at")),
|
|
37639
|
-
enableTaxEstimates: pipe(Schema.propertySignature(Schema.Boolean), Schema.fromKey("enable_tax_estimates")),
|
|
37640
|
-
enableMileageTracking: pipe(Schema.propertySignature(Schema.Boolean), Schema.fromKey("enable_mileage_tracking")),
|
|
37641
|
-
enableStripeOnboarding: pipe(Schema.propertySignature(Schema.Boolean), Schema.fromKey("enable_stripe_onboarding")),
|
|
37642
|
-
platformDisplayTags: pipe(Schema.propertySignature(Schema.Array(TagDimensionSchema)), Schema.fromKey("platform_display_tags"))
|
|
37643
|
-
});
|
|
37644
|
-
//#endregion
|
|
37645
37654
|
//#region src/hooks/api/businesses/[business-id]/accounting-config/useAccountingConfiguration.tsx
|
|
37646
37655
|
var ACCOUNTING_CONFIGURATION_TAG_KEY = "#accounting-configuration";
|
|
37647
37656
|
function buildKey$33({ access_token: accessToken, apiUrl, businessId }) {
|
|
@@ -37859,9 +37868,9 @@ var useCustomerForm = (props) => {
|
|
|
37859
37868
|
};
|
|
37860
37869
|
//#endregion
|
|
37861
37870
|
//#region src/components/CustomerForm/CustomerForm.tsx
|
|
37862
|
-
var _excluded$
|
|
37871
|
+
var _excluded$15 = ["onSuccess", "isReadOnly"];
|
|
37863
37872
|
var CustomerForm = (_ref) => {
|
|
37864
|
-
let { onSuccess, isReadOnly } = _ref, formState = _objectWithoutProperties(_ref, _excluded$
|
|
37873
|
+
let { onSuccess, isReadOnly } = _ref, formState = _objectWithoutProperties(_ref, _excluded$15);
|
|
37865
37874
|
const { t } = useTranslation();
|
|
37866
37875
|
const { form, submitError } = useCustomerForm(_objectSpread2({ onSuccess }, formState));
|
|
37867
37876
|
return /* @__PURE__ */ jsxs(Form$1, {
|
|
@@ -38746,10 +38755,10 @@ var useInvoiceForm = (props) => {
|
|
|
38746
38755
|
};
|
|
38747
38756
|
//#endregion
|
|
38748
38757
|
//#region src/components/Invoices/InvoiceForm/InvoiceForm.tsx
|
|
38749
|
-
var _excluded$
|
|
38758
|
+
var _excluded$14 = ["isReadOnly"];
|
|
38750
38759
|
var InvoiceForm = forwardRef((props, ref) => {
|
|
38751
38760
|
var _accountingConfig$ena;
|
|
38752
|
-
const _useInvoiceDetail = useInvoiceDetail(), { isReadOnly } = _useInvoiceDetail, viewState = _objectWithoutProperties(_useInvoiceDetail, _excluded$
|
|
38761
|
+
const _useInvoiceDetail = useInvoiceDetail(), { isReadOnly } = _useInvoiceDetail, viewState = _objectWithoutProperties(_useInvoiceDetail, _excluded$14);
|
|
38753
38762
|
const { mode } = viewState;
|
|
38754
38763
|
const { onSuccess, onChangeFormState } = props;
|
|
38755
38764
|
const { businessId } = useLayerContext();
|
|
@@ -39217,7 +39226,7 @@ var InvoiceDetail = () => {
|
|
|
39217
39226
|
};
|
|
39218
39227
|
//#endregion
|
|
39219
39228
|
//#region src/components/ui/Meter/Meter.tsx
|
|
39220
|
-
var _excluded$
|
|
39229
|
+
var _excluded$13 = [
|
|
39221
39230
|
"className",
|
|
39222
39231
|
"label",
|
|
39223
39232
|
"meterOnly"
|
|
@@ -39228,7 +39237,7 @@ var getClassnameForSubComponent = (className, suffix) => {
|
|
|
39228
39237
|
var METER_CLASS_NAME = "Layer__Meter";
|
|
39229
39238
|
var Meter$1 = forwardRef(function Meter$2(_ref, ref) {
|
|
39230
39239
|
let { className, label, meterOnly } = _ref;
|
|
39231
|
-
return /* @__PURE__ */ jsx(Meter, _objectSpread2(_objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
39240
|
+
return /* @__PURE__ */ jsx(Meter, _objectSpread2(_objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$13)), {}, {
|
|
39232
39241
|
className: classNames(METER_CLASS_NAME, className),
|
|
39233
39242
|
ref
|
|
39234
39243
|
}, meterOnly && { "aria-label": label }), {}, { children: ({ percentage, valueText }) => /* @__PURE__ */ jsxs(VStack, {
|
|
@@ -39458,7 +39467,7 @@ function useStripeAccountStatus() {
|
|
|
39458
39467
|
}
|
|
39459
39468
|
//#endregion
|
|
39460
39469
|
//#region src/components/ui/Banner/Banner.tsx
|
|
39461
|
-
var _excluded$
|
|
39470
|
+
var _excluded$12 = ["variant"];
|
|
39462
39471
|
var BANNER_CLASS_NAMES = {
|
|
39463
39472
|
DEFAULT: "Layer__UI__Banner",
|
|
39464
39473
|
ICON_CONTAINER: "Layer__UI__Banner__iconContainer",
|
|
@@ -39547,7 +39556,7 @@ var Banner = forwardRef(({ variant = "info", title, description, slots, children
|
|
|
39547
39556
|
});
|
|
39548
39557
|
Banner.displayName = "Banner";
|
|
39549
39558
|
var BannerButton = (_ref) => {
|
|
39550
|
-
let { variant = "outlined-light" } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
39559
|
+
let { variant = "outlined-light" } = _ref, rest = _objectWithoutProperties(_ref, _excluded$12);
|
|
39551
39560
|
return /* @__PURE__ */ jsx(Button$1, _objectSpread2({ variant }, rest));
|
|
39552
39561
|
};
|
|
39553
39562
|
//#endregion
|
|
@@ -39694,7 +39703,7 @@ var InvoicesContent = () => {
|
|
|
39694
39703
|
};
|
|
39695
39704
|
//#endregion
|
|
39696
39705
|
//#region src/components/ProfitAndLossView/ProfitAndLossView.tsx
|
|
39697
|
-
var _excluded$
|
|
39706
|
+
var _excluded$11 = ["containerRef", "stringOverrides"];
|
|
39698
39707
|
var COMPONENT_NAME$5 = "profit-and-loss";
|
|
39699
39708
|
var ProfitAndLossView = (props) => {
|
|
39700
39709
|
const containerRef = useRef(null);
|
|
@@ -39705,7 +39714,7 @@ var ProfitAndLossView = (props) => {
|
|
|
39705
39714
|
});
|
|
39706
39715
|
};
|
|
39707
39716
|
var ProfitAndLossPanel = (_ref) => {
|
|
39708
|
-
let { containerRef, stringOverrides } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
39717
|
+
let { containerRef, stringOverrides } = _ref, props = _objectWithoutProperties(_ref, _excluded$11);
|
|
39709
39718
|
const { t } = useTranslation();
|
|
39710
39719
|
const { sidebarScope } = useContext(ProfitAndLossContext);
|
|
39711
39720
|
return /* @__PURE__ */ jsxs(Panel, {
|
|
@@ -39781,12 +39790,16 @@ var UnifiedReportStoreContext = createContext(createStore(() => ({
|
|
|
39781
39790
|
baseReport: null,
|
|
39782
39791
|
detailReportConfig: null,
|
|
39783
39792
|
groupBy: DateGroupBy.AllTime,
|
|
39793
|
+
reportingBasis: null,
|
|
39794
|
+
selectedTagValues: [],
|
|
39784
39795
|
dateSelectionMode: "full",
|
|
39785
39796
|
actions: {
|
|
39786
39797
|
setBaseReport: () => {},
|
|
39787
39798
|
openDetailReport: () => {},
|
|
39788
39799
|
closeDetailReport: () => {},
|
|
39789
|
-
setGroupBy: () => {}
|
|
39800
|
+
setGroupBy: () => {},
|
|
39801
|
+
setReportingBasis: () => {},
|
|
39802
|
+
setSelectedTagValues: () => {}
|
|
39790
39803
|
}
|
|
39791
39804
|
})));
|
|
39792
39805
|
function useUnifiedReportDateSelectionMode() {
|
|
@@ -39841,24 +39854,70 @@ function useUnifiedReportGroupByParam() {
|
|
|
39841
39854
|
setGroupBy
|
|
39842
39855
|
}), [groupBy, setGroupBy]);
|
|
39843
39856
|
}
|
|
39857
|
+
function useUnifiedReportReportingBasisParam() {
|
|
39858
|
+
const store = useContext(UnifiedReportStoreContext);
|
|
39859
|
+
const reportingBasis = useStore(store, (state) => state.reportingBasis);
|
|
39860
|
+
const setReportingBasis = useStore(store, (state) => state.actions.setReportingBasis);
|
|
39861
|
+
return useMemo(() => ({
|
|
39862
|
+
reportingBasis,
|
|
39863
|
+
setReportingBasis
|
|
39864
|
+
}), [reportingBasis, setReportingBasis]);
|
|
39865
|
+
}
|
|
39866
|
+
function useUnifiedReportTagSelection() {
|
|
39867
|
+
const store = useContext(UnifiedReportStoreContext);
|
|
39868
|
+
const selectedTagValues = useStore(store, (state) => state.selectedTagValues);
|
|
39869
|
+
const setSelectedTagValues = useStore(store, (state) => state.actions.setSelectedTagValues);
|
|
39870
|
+
return useMemo(() => ({
|
|
39871
|
+
selectedTagValues,
|
|
39872
|
+
setSelectedTagValues
|
|
39873
|
+
}), [selectedTagValues, setSelectedTagValues]);
|
|
39874
|
+
}
|
|
39875
|
+
var buildUnifiedReportTagFilters = (report, selectedTagValues) => {
|
|
39876
|
+
var _report$tagControl;
|
|
39877
|
+
const key = (_report$tagControl = report.tagControl) === null || _report$tagControl === void 0 ? void 0 : _report$tagControl.tagDimension.key.trim();
|
|
39878
|
+
if (!key) return;
|
|
39879
|
+
const values = selectedTagValues.filter(isActiveTagValueDefinition).map((tagValue) => tagValue.value).filter((value) => value.trim().length > 0);
|
|
39880
|
+
if (values.length === 0) return;
|
|
39881
|
+
return JSON.stringify(values.map((value) => ({
|
|
39882
|
+
key,
|
|
39883
|
+
values: [value]
|
|
39884
|
+
})));
|
|
39885
|
+
};
|
|
39886
|
+
var REPORTING_BASIS_QUERY_PARAMETER = "reporting_basis";
|
|
39887
|
+
var getInitialReportingBasis = (report) => {
|
|
39888
|
+
const value = report.baseQueryParameters[REPORTING_BASIS_QUERY_PARAMETER];
|
|
39889
|
+
return isUnifiedReportReportingBasis(value) ? value : null;
|
|
39890
|
+
};
|
|
39891
|
+
var getBaseQueryParameters = (report, hasReportingBasisControl) => {
|
|
39892
|
+
if (!hasReportingBasisControl) return report.baseQueryParameters;
|
|
39893
|
+
return Object.fromEntries(Object.entries(report.baseQueryParameters).filter(([key]) => key !== REPORTING_BASIS_QUERY_PARAMETER));
|
|
39894
|
+
};
|
|
39844
39895
|
function useUnifiedReportParams() {
|
|
39845
39896
|
const { report } = useActiveUnifiedReport();
|
|
39846
|
-
const
|
|
39897
|
+
const store = useContext(UnifiedReportStoreContext);
|
|
39898
|
+
const groupBy = useStore(store, (state) => state.groupBy);
|
|
39899
|
+
const reportingBasis = useStore(store, (state) => state.reportingBasis);
|
|
39900
|
+
const selectedTagValues = useStore(store, (state) => state.selectedTagValues);
|
|
39847
39901
|
const dateSelectionMode = useUnifiedReportDateSelectionMode();
|
|
39848
39902
|
const { date: effectiveDate } = useGlobalDate({ dateSelectionMode });
|
|
39849
39903
|
const { startDate, endDate } = useGlobalDateRange({ dateSelectionMode });
|
|
39850
39904
|
const { startDate: yearStartDate } = useGlobalDateRange({ dateSelectionMode: "year" });
|
|
39851
39905
|
return useMemo(() => {
|
|
39852
39906
|
if (!report) return null;
|
|
39853
|
-
|
|
39907
|
+
const tagFilters = buildUnifiedReportTagFilters(report, selectedTagValues);
|
|
39908
|
+
const hasReportingBasisControl = hasControl(report, ReportControl.ReportingBasis);
|
|
39909
|
+
const baseQueryParameters = getBaseQueryParameters(report, hasReportingBasisControl);
|
|
39910
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({ route: report.reportRoute }, baseQueryParameters), hasControl(report, ReportControl.Date) && { effectiveDate }), hasControl(report, ReportControl.DateRange) && {
|
|
39854
39911
|
startDate,
|
|
39855
39912
|
endDate
|
|
39856
|
-
}), hasControl(report, ReportControl.GroupBy) && groupBy != null && { groupBy }), hasControl(report, ReportControl.Year) && { year: getYear(yearStartDate) });
|
|
39913
|
+
}), hasControl(report, ReportControl.GroupBy) && groupBy != null && { groupBy }), hasReportingBasisControl && reportingBasis != null && { reportingBasis }), hasControl(report, ReportControl.Year) && { year: getYear(yearStartDate) }), tagFilters && { tagFilters });
|
|
39857
39914
|
}, [
|
|
39858
39915
|
effectiveDate,
|
|
39859
39916
|
endDate,
|
|
39860
39917
|
groupBy,
|
|
39861
39918
|
report,
|
|
39919
|
+
reportingBasis,
|
|
39920
|
+
selectedTagValues,
|
|
39862
39921
|
startDate,
|
|
39863
39922
|
yearStartDate
|
|
39864
39923
|
]);
|
|
@@ -39876,15 +39935,24 @@ var createUnifiedReportStore = (dateSelectionMode) => createStore((set) => ({
|
|
|
39876
39935
|
baseReport: null,
|
|
39877
39936
|
detailReportConfig: null,
|
|
39878
39937
|
groupBy: DateGroupBy.AllTime,
|
|
39938
|
+
reportingBasis: null,
|
|
39939
|
+
selectedTagValues: [],
|
|
39879
39940
|
dateSelectionMode,
|
|
39880
39941
|
actions: {
|
|
39881
|
-
setBaseReport: (baseReport) =>
|
|
39882
|
-
|
|
39883
|
-
|
|
39884
|
-
|
|
39942
|
+
setBaseReport: (baseReport) => {
|
|
39943
|
+
var _baseReport$tagContro, _baseReport$tagContro2;
|
|
39944
|
+
return set({
|
|
39945
|
+
baseReport,
|
|
39946
|
+
detailReportConfig: null,
|
|
39947
|
+
reportingBasis: getInitialReportingBasis(baseReport),
|
|
39948
|
+
selectedTagValues: (_baseReport$tagContro = (_baseReport$tagContro2 = baseReport.tagControl) === null || _baseReport$tagContro2 === void 0 ? void 0 : _baseReport$tagContro2.initialSelectedTags.filter(isActiveTagValueDefinition)) !== null && _baseReport$tagContro !== void 0 ? _baseReport$tagContro : []
|
|
39949
|
+
});
|
|
39950
|
+
},
|
|
39885
39951
|
openDetailReport: (detailReportConfig) => set({ detailReportConfig }),
|
|
39886
39952
|
closeDetailReport: () => set({ detailReportConfig: null }),
|
|
39887
|
-
setGroupBy: (groupBy) => set({ groupBy })
|
|
39953
|
+
setGroupBy: (groupBy) => set({ groupBy }),
|
|
39954
|
+
setReportingBasis: (reportingBasis) => set({ reportingBasis }),
|
|
39955
|
+
setSelectedTagValues: (selectedTagValues) => set({ selectedTagValues: selectedTagValues.filter(isActiveTagValueDefinition) })
|
|
39888
39956
|
}
|
|
39889
39957
|
}));
|
|
39890
39958
|
function useHydrateUnifiedReportStore(store) {
|
|
@@ -39918,12 +39986,12 @@ function UnifiedReportStoreProvider({ children, dateSelectionMode = "full" }) {
|
|
|
39918
39986
|
}
|
|
39919
39987
|
//#endregion
|
|
39920
39988
|
//#region src/components/ui/Tree/Tree.tsx
|
|
39921
|
-
var _excluded$
|
|
39989
|
+
var _excluded$10 = ["children", "className"], _excluded2$4 = ["children"], _excluded3 = ["children"];
|
|
39922
39990
|
var TREE_CLASS_NAME = "Layer__UI__Tree";
|
|
39923
39991
|
var TREE_ITEM_CLASS_NAME = "Layer__UI__TreeItem";
|
|
39924
39992
|
var TreeInner = (_ref, ref) => {
|
|
39925
39993
|
let { children, className } = _ref;
|
|
39926
|
-
return /* @__PURE__ */ jsx(Tree, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
39994
|
+
return /* @__PURE__ */ jsx(Tree, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$10)), {}, {
|
|
39927
39995
|
className: classNames(TREE_CLASS_NAME, className),
|
|
39928
39996
|
ref,
|
|
39929
39997
|
children: withRenderProp(children, (node) => node)
|
|
@@ -39933,7 +40001,7 @@ var Tree$1 = forwardRef(TreeInner);
|
|
|
39933
40001
|
Tree$1.displayName = "Tree";
|
|
39934
40002
|
var TreeItemInner = (_ref2, ref) => {
|
|
39935
40003
|
let { children } = _ref2;
|
|
39936
|
-
return /* @__PURE__ */ jsx(TreeItem, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref2, _excluded2$
|
|
40004
|
+
return /* @__PURE__ */ jsx(TreeItem, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref2, _excluded2$4)), {}, {
|
|
39937
40005
|
className: TREE_ITEM_CLASS_NAME,
|
|
39938
40006
|
ref,
|
|
39939
40007
|
children: withRenderProp(children, (node) => node)
|
|
@@ -40196,7 +40264,7 @@ var S3PresignedUrlSchema = Schema.Struct({
|
|
|
40196
40264
|
});
|
|
40197
40265
|
//#endregion
|
|
40198
40266
|
//#region src/hooks/api/businesses/[business-id]/reports/unified/report-name/exports/excel/useUnifiedReportExcel.ts
|
|
40199
|
-
var _excluded$
|
|
40267
|
+
var _excluded$9 = ["businessId", "route"], _excluded2$3 = [
|
|
40200
40268
|
"accessToken",
|
|
40201
40269
|
"apiUrl",
|
|
40202
40270
|
"businessId",
|
|
@@ -40204,7 +40272,7 @@ var _excluded$7 = ["businessId", "route"], _excluded2$2 = [
|
|
|
40204
40272
|
];
|
|
40205
40273
|
var getUnifiedReportExcel = get((_ref) => {
|
|
40206
40274
|
let { businessId, route } = _ref;
|
|
40207
|
-
return `/v1/businesses/${businessId}/reports/unified/${route}/exports/excel?${toDefinedSearchParameters(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
40275
|
+
return `/v1/businesses/${businessId}/reports/unified/${route}/exports/excel?${toDefinedSearchParameters(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$9)))}`;
|
|
40208
40276
|
});
|
|
40209
40277
|
var getTag$1 = (report) => `#unified-${report}-report-excel`;
|
|
40210
40278
|
var UnifiedReportExcelReturnSchema = Schema.Struct({ data: S3PresignedUrlSchema });
|
|
@@ -40227,7 +40295,7 @@ function useUnifiedReportExcel({ onSuccess } = {}) {
|
|
|
40227
40295
|
businessId,
|
|
40228
40296
|
params
|
|
40229
40297
|
}))), (_ref2) => {
|
|
40230
|
-
let { accessToken, apiUrl, businessId, tags } = _ref2, restParams = _objectWithoutProperties(_ref2, _excluded2$
|
|
40298
|
+
let { accessToken, apiUrl, businessId, tags } = _ref2, restParams = _objectWithoutProperties(_ref2, _excluded2$3);
|
|
40231
40299
|
return getUnifiedReportExcel(apiUrl, accessToken, { params: _objectSpread2({ businessId }, restParams) })().then(Schema.decodeUnknownPromise(UnifiedReportExcelReturnSchema)).then(function() {
|
|
40232
40300
|
var _ref3 = _asyncToGenerator(function* ({ data }) {
|
|
40233
40301
|
if (onSuccess) yield onSuccess(data);
|
|
@@ -40244,9 +40312,10 @@ function useUnifiedReportExcel({ onSuccess } = {}) {
|
|
|
40244
40312
|
}
|
|
40245
40313
|
//#endregion
|
|
40246
40314
|
//#region src/components/UnifiedReports/UnifiedReportDownloadButton.tsx
|
|
40247
|
-
function UnifiedReportDownloadButton() {
|
|
40315
|
+
function UnifiedReportDownloadButton({ iconOnly }) {
|
|
40248
40316
|
const { t } = useTranslation();
|
|
40249
40317
|
const { isDesktop } = useSizeClass();
|
|
40318
|
+
const resolvedIconOnly = iconOnly !== null && iconOnly !== void 0 ? iconOnly : !isDesktop;
|
|
40250
40319
|
const { invisibleDownloadRef, triggerInvisibleDownload } = useInvisibleDownload();
|
|
40251
40320
|
const { trigger, isMutating, isError } = useUnifiedReportExcel({ onSuccess: ({ presignedUrl }) => triggerInvisibleDownload({ url: presignedUrl }) });
|
|
40252
40321
|
const buttonText = isError ? t("common:action.retry_label", "Retry") : t("common:action.download_label", "Download");
|
|
@@ -40257,28 +40326,29 @@ function UnifiedReportDownloadButton() {
|
|
|
40257
40326
|
},
|
|
40258
40327
|
isPending: isMutating,
|
|
40259
40328
|
isDisabled: isMutating,
|
|
40260
|
-
icon:
|
|
40261
|
-
"aria-label":
|
|
40262
|
-
children: [
|
|
40329
|
+
icon: resolvedIconOnly,
|
|
40330
|
+
"aria-label": resolvedIconOnly ? buttonText : void 0,
|
|
40331
|
+
children: [!resolvedIconOnly && buttonText, isError ? /* @__PURE__ */ jsx(RefreshCcw$1, { size: 12 }) : /* @__PURE__ */ jsx(DownloadCloud, { size: 16 })]
|
|
40263
40332
|
}), /* @__PURE__ */ jsx(InvisibleDownload, { ref: invisibleDownloadRef })] });
|
|
40264
40333
|
}
|
|
40265
40334
|
//#endregion
|
|
40266
40335
|
//#region src/components/UnifiedReports/UnifiedReportHeaderButtons.tsx
|
|
40267
|
-
var UnifiedReportHeaderButtons = () => {
|
|
40336
|
+
var UnifiedReportHeaderButtons = ({ variant }) => {
|
|
40268
40337
|
const { isDesktop } = useSizeClass();
|
|
40338
|
+
const isMobile = (variant !== null && variant !== void 0 ? variant : isDesktop ? "Desktop" : "Mobile") === "Mobile";
|
|
40269
40339
|
return /* @__PURE__ */ jsxs(HStack, {
|
|
40270
40340
|
gap: "xs",
|
|
40271
|
-
className: "Layer__UnifiedReports__HeaderButtons",
|
|
40341
|
+
className: classNames("Layer__UnifiedReports__HeaderButtons", { "Layer__UnifiedReports__HeaderButtons--mobile": isMobile }),
|
|
40272
40342
|
children: [
|
|
40273
|
-
|
|
40274
|
-
/* @__PURE__ */ jsx(ExpandableDataTableToggleButton, {}),
|
|
40275
|
-
/* @__PURE__ */ jsx(UnifiedReportDownloadButton, {})
|
|
40343
|
+
isMobile && /* @__PURE__ */ jsx(ReportsMobileSelectionDrawer, {}),
|
|
40344
|
+
/* @__PURE__ */ jsx(ExpandableDataTableToggleButton, { iconOnly: isMobile }),
|
|
40345
|
+
/* @__PURE__ */ jsx(UnifiedReportDownloadButton, { iconOnly: isMobile })
|
|
40276
40346
|
]
|
|
40277
40347
|
});
|
|
40278
40348
|
};
|
|
40279
40349
|
//#endregion
|
|
40280
40350
|
//#region src/hooks/api/businesses/[business-id]/reports/unified/report-name/useUnifiedReport.tsx
|
|
40281
|
-
var _excluded$
|
|
40351
|
+
var _excluded$8 = ["businessId", "route"], _excluded2$2 = [
|
|
40282
40352
|
"accessToken",
|
|
40283
40353
|
"apiUrl",
|
|
40284
40354
|
"businessId",
|
|
@@ -40295,7 +40365,7 @@ function buildKey$24({ access_token: accessToken, apiUrl, businessId, params })
|
|
|
40295
40365
|
}
|
|
40296
40366
|
var getUnifiedReport = get((_ref) => {
|
|
40297
40367
|
let { businessId, route } = _ref;
|
|
40298
|
-
return `/v1/businesses/${businessId}/reports/unified/${route}?${toDefinedSearchParameters(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
40368
|
+
return `/v1/businesses/${businessId}/reports/unified/${route}?${toDefinedSearchParameters(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$8)))}`;
|
|
40299
40369
|
});
|
|
40300
40370
|
function useUnifiedReport() {
|
|
40301
40371
|
const withLocale = useLocalizedKey();
|
|
@@ -40308,19 +40378,19 @@ function useUnifiedReport() {
|
|
|
40308
40378
|
businessId,
|
|
40309
40379
|
params
|
|
40310
40380
|
}))), (_ref2) => {
|
|
40311
|
-
let { accessToken, apiUrl, businessId, tags } = _ref2, restParams = _objectWithoutProperties(_ref2, _excluded2$
|
|
40381
|
+
let { accessToken, apiUrl, businessId, tags } = _ref2, restParams = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
40312
40382
|
return getUnifiedReport(apiUrl, accessToken, { params: _objectSpread2({ businessId }, restParams) })().then(({ data }) => Schema.decodeUnknownPromise(UnifiedReportSchema)(data));
|
|
40313
40383
|
}));
|
|
40314
40384
|
}
|
|
40315
40385
|
//#endregion
|
|
40316
40386
|
//#region src/components/ui/Typography/DurationSpan.tsx
|
|
40317
|
-
var _excluded$
|
|
40387
|
+
var _excluded$7 = [
|
|
40318
40388
|
"durationMinutes",
|
|
40319
40389
|
"className",
|
|
40320
40390
|
"showLessThanOneMinuteForZero"
|
|
40321
40391
|
];
|
|
40322
40392
|
var DurationSpan = forwardRef((_ref, ref) => {
|
|
40323
|
-
let { durationMinutes, className, showLessThanOneMinuteForZero = false } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
40393
|
+
let { durationMinutes, className, showLessThanOneMinuteForZero = false } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$7);
|
|
40324
40394
|
const { t } = useTranslation();
|
|
40325
40395
|
const { formatMinutesAsDuration } = useIntlFormatter();
|
|
40326
40396
|
const formattedDuration = durationMinutes !== 0 ? formatMinutesAsDuration(durationMinutes) : showLessThanOneMinuteForZero ? t("timeTracking:label.less_than_one_minute", "< 1 min") : t("timeTracking:label.zero_minutes", "0 min");
|
|
@@ -40544,14 +40614,193 @@ var GlobalYearPicker = () => {
|
|
|
40544
40614
|
});
|
|
40545
40615
|
};
|
|
40546
40616
|
//#endregion
|
|
40547
|
-
//#region src/components/UnifiedReports/
|
|
40548
|
-
var
|
|
40549
|
-
var
|
|
40550
|
-
|
|
40551
|
-
|
|
40552
|
-
|
|
40553
|
-
|
|
40617
|
+
//#region src/components/UnifiedReports/UnifiedReportReportingBasisControl.tsx
|
|
40618
|
+
var REPORTING_BASIS_CONFIG = [_objectSpread2({ value: ReportingBasis.Cash }, translationKey("reports:label.cash", "Cash")), _objectSpread2({ value: ReportingBasis.Accrual }, translationKey("reports:label.accrual", "Accrual"))];
|
|
40619
|
+
var useReportingBasisControlData = () => {
|
|
40620
|
+
const { t } = useTranslation();
|
|
40621
|
+
return {
|
|
40622
|
+
label: t("reports:label.reporting_basis", "Reporting basis"),
|
|
40623
|
+
options: REPORTING_BASIS_CONFIG.map(({ value, i18nKey, defaultValue }) => ({
|
|
40624
|
+
value,
|
|
40625
|
+
label: t(i18nKey, defaultValue)
|
|
40626
|
+
}))
|
|
40627
|
+
};
|
|
40628
|
+
};
|
|
40629
|
+
function UnifiedReportReportingBasisControl({ value, onValueChange }) {
|
|
40630
|
+
var _options$find;
|
|
40631
|
+
const inputId = useId();
|
|
40632
|
+
const { label, options } = useReportingBasisControlData();
|
|
40633
|
+
const selectedOption = value ? (_options$find = options.find((option) => option.value === value)) !== null && _options$find !== void 0 ? _options$find : null : null;
|
|
40634
|
+
const handleSelectedValueChange = (option) => {
|
|
40635
|
+
if (option) onValueChange(option.value);
|
|
40636
|
+
};
|
|
40637
|
+
return /* @__PURE__ */ jsxs(VStack, {
|
|
40638
|
+
className: "Layer__UnifiedReports__ReportingBasisControl__Container",
|
|
40639
|
+
children: [/* @__PURE__ */ jsx(Label$2, {
|
|
40640
|
+
pbe: "3xs",
|
|
40641
|
+
size: "sm",
|
|
40642
|
+
htmlFor: inputId,
|
|
40643
|
+
children: label
|
|
40644
|
+
}), /* @__PURE__ */ jsx(ComboBox, {
|
|
40645
|
+
options,
|
|
40646
|
+
onSelectedValueChange: handleSelectedValueChange,
|
|
40647
|
+
selectedValue: selectedOption,
|
|
40648
|
+
isSearchable: false,
|
|
40649
|
+
isClearable: false,
|
|
40650
|
+
inputId
|
|
40651
|
+
})]
|
|
40652
|
+
});
|
|
40653
|
+
}
|
|
40654
|
+
//#endregion
|
|
40655
|
+
//#region src/components/ui/ComboBox/useMultiSelectComboBoxSubcomponents.tsx
|
|
40656
|
+
var _excluded$6 = ["children"], _excluded2$1 = ["children", "innerProps"];
|
|
40657
|
+
var getSelectedCount = (selectedValues) => {
|
|
40658
|
+
if (!selectedValues) return 0;
|
|
40659
|
+
if (Array.isArray(selectedValues)) return selectedValues.length;
|
|
40660
|
+
return 1;
|
|
40661
|
+
};
|
|
40662
|
+
var getSelectedLabels = (selectedValues, locale) => {
|
|
40663
|
+
if (!selectedValues) return "";
|
|
40664
|
+
if (Array.isArray(selectedValues)) {
|
|
40665
|
+
const labels = selectedValues.map((v) => v.label);
|
|
40666
|
+
if (labels.length === 0) return "";
|
|
40667
|
+
return new Intl.ListFormat(locale, {
|
|
40668
|
+
style: "long",
|
|
40669
|
+
type: "conjunction"
|
|
40670
|
+
}).format(labels);
|
|
40671
|
+
}
|
|
40672
|
+
return selectedValues.label;
|
|
40673
|
+
};
|
|
40674
|
+
var buildCustomMultiValue = () => {
|
|
40675
|
+
return function CustomMultiValue(_ref) {
|
|
40676
|
+
let { children } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
40677
|
+
const { index, selectProps } = restProps;
|
|
40678
|
+
const isTyping = selectProps.inputValue && selectProps.inputValue.length > 0;
|
|
40679
|
+
if (index > 0 || isTyping) return null;
|
|
40680
|
+
return /* @__PURE__ */ jsx(components.MultiValue, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
40681
|
+
className: COMBO_BOX_CLASS_NAMES.MULTI_VALUE,
|
|
40682
|
+
children
|
|
40683
|
+
}));
|
|
40684
|
+
};
|
|
40685
|
+
};
|
|
40686
|
+
var buildCustomMultiValueLabel = () => {
|
|
40687
|
+
return function CustomMultiValueLabel(_ref2) {
|
|
40688
|
+
let { children, innerProps } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$1);
|
|
40689
|
+
const locale = useLocale();
|
|
40690
|
+
const selectedValues = restProps.selectProps.value;
|
|
40691
|
+
const selectedCount = getSelectedCount(selectedValues);
|
|
40692
|
+
const selectedLabels = getSelectedLabels(selectedValues, locale);
|
|
40693
|
+
const mergedInnerProps = _objectSpread2(_objectSpread2({}, innerProps), {}, { className: classNames(innerProps === null || innerProps === void 0 ? void 0 : innerProps.className, COMBO_BOX_CLASS_NAMES.MULTI_VALUE_LABEL) });
|
|
40694
|
+
return /* @__PURE__ */ jsx(components.MultiValueLabel, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
40695
|
+
innerProps: mergedInnerProps,
|
|
40696
|
+
children: /* @__PURE__ */ jsxs(HStack, {
|
|
40697
|
+
gap: "3xs",
|
|
40698
|
+
align: "center",
|
|
40699
|
+
children: [/* @__PURE__ */ jsxs(Badge, {
|
|
40700
|
+
size: BadgeSize.SMALL,
|
|
40701
|
+
variant: BadgeVariant.INFO,
|
|
40702
|
+
children: [selectedCount, /* @__PURE__ */ jsx(Filter, { size: 12 })]
|
|
40703
|
+
}), /* @__PURE__ */ jsx(Span, {
|
|
40704
|
+
variant: "inherit",
|
|
40705
|
+
withTooltip: true,
|
|
40706
|
+
children: selectedLabels
|
|
40707
|
+
})]
|
|
40708
|
+
})
|
|
40709
|
+
}));
|
|
40710
|
+
};
|
|
40711
|
+
};
|
|
40712
|
+
var NullComponent = () => null;
|
|
40713
|
+
var useMultiSelectComboBoxSubcomponents = () => {
|
|
40714
|
+
const MultiValueRef = useRef(buildCustomMultiValue());
|
|
40715
|
+
const MultiValueLabelRef = useRef(buildCustomMultiValueLabel());
|
|
40716
|
+
return useMemo(() => ({
|
|
40717
|
+
MultiValue: MultiValueRef.current,
|
|
40718
|
+
MultiValueLabel: MultiValueLabelRef.current,
|
|
40719
|
+
MultiValueRemove: NullComponent
|
|
40720
|
+
}), []);
|
|
40721
|
+
};
|
|
40722
|
+
//#endregion
|
|
40723
|
+
//#region src/components/ui/ComboBox/MultiSelectComboBox.tsx
|
|
40724
|
+
var _excluded$5 = [
|
|
40725
|
+
"className",
|
|
40726
|
+
"slots",
|
|
40727
|
+
"isError",
|
|
40728
|
+
"selectedValues",
|
|
40729
|
+
"onSelectedValuesChange"
|
|
40730
|
+
];
|
|
40731
|
+
function MultiSelectComboBox(_ref) {
|
|
40732
|
+
let { className, slots, isError, selectedValues, onSelectedValuesChange } = _ref, props = _objectWithoutProperties(_ref, _excluded$5);
|
|
40733
|
+
const commonSelectProps = useCommonComboBoxProps(_objectSpread2({
|
|
40734
|
+
className,
|
|
40735
|
+
slots,
|
|
40736
|
+
isError
|
|
40737
|
+
}, props));
|
|
40738
|
+
const multiSelectComponents = useMultiSelectComboBoxSubcomponents();
|
|
40739
|
+
const components = useMemo(() => _objectSpread2(_objectSpread2({}, commonSelectProps.components), multiSelectComponents), [commonSelectProps.components, multiSelectComponents]);
|
|
40740
|
+
return /* @__PURE__ */ jsxs(VStack, {
|
|
40741
|
+
gap: "3xs",
|
|
40742
|
+
fluid: true,
|
|
40743
|
+
className: className ? `${className}__Container` : void 0,
|
|
40744
|
+
children: [/* @__PURE__ */ jsx(Select, _objectSpread2(_objectSpread2({}, commonSelectProps), {}, {
|
|
40745
|
+
components,
|
|
40746
|
+
value: selectedValues,
|
|
40747
|
+
onChange: onSelectedValuesChange,
|
|
40748
|
+
closeMenuOnSelect: false,
|
|
40749
|
+
hideSelectedOptions: false,
|
|
40750
|
+
isMulti: true
|
|
40751
|
+
})), /* @__PURE__ */ jsx(ComboBoxErrorMessage, {
|
|
40752
|
+
isError,
|
|
40753
|
+
errorMessage: slots === null || slots === void 0 ? void 0 : slots.ErrorMessage
|
|
40754
|
+
})]
|
|
40755
|
+
});
|
|
40756
|
+
}
|
|
40757
|
+
//#endregion
|
|
40758
|
+
//#region src/components/UnifiedReports/UnifiedReportTagControl.tsx
|
|
40759
|
+
var toOption = (tagValueDefinition) => {
|
|
40760
|
+
var _tagValueDefinition$d;
|
|
40761
|
+
return {
|
|
40762
|
+
label: (_tagValueDefinition$d = tagValueDefinition.displayName) !== null && _tagValueDefinition$d !== void 0 ? _tagValueDefinition$d : tagValueDefinition.value,
|
|
40763
|
+
value: tagValueDefinition.value,
|
|
40764
|
+
tagValueDefinition
|
|
40765
|
+
};
|
|
40554
40766
|
};
|
|
40767
|
+
function UnifiedReportTagControl({ tagControl }) {
|
|
40768
|
+
var _tagControl$tagDimens;
|
|
40769
|
+
const inputId = useId();
|
|
40770
|
+
const { t } = useTranslation();
|
|
40771
|
+
const { selectedTagValues, setSelectedTagValues } = useUnifiedReportTagSelection();
|
|
40772
|
+
const dimensionName = (_tagControl$tagDimens = tagControl.tagDimension.displayName) !== null && _tagControl$tagDimens !== void 0 ? _tagControl$tagDimens : capitalizeFirstLetter(tagControl.tagDimension.key);
|
|
40773
|
+
const options = useMemo(() => tagControl.tagDimension.definedValues.filter(isActiveTagValueDefinition).map(toOption), [tagControl.tagDimension.definedValues]);
|
|
40774
|
+
const selectedValues = useMemo(() => {
|
|
40775
|
+
const optionsByTagValueId = new Map(options.map((option) => [option.tagValueDefinition.id, option]));
|
|
40776
|
+
return selectedTagValues.flatMap((tagValue) => {
|
|
40777
|
+
const option = optionsByTagValueId.get(tagValue.id);
|
|
40778
|
+
return option ? [option] : [];
|
|
40779
|
+
});
|
|
40780
|
+
}, [options, selectedTagValues]);
|
|
40781
|
+
const handleSelectedValuesChange = (values) => {
|
|
40782
|
+
setSelectedTagValues(values.map(({ tagValueDefinition }) => tagValueDefinition));
|
|
40783
|
+
};
|
|
40784
|
+
return /* @__PURE__ */ jsxs(VStack, {
|
|
40785
|
+
gap: "3xs",
|
|
40786
|
+
className: "Layer__UnifiedReports__TagControl__Container",
|
|
40787
|
+
children: [/* @__PURE__ */ jsx(Label$2, {
|
|
40788
|
+
size: "sm",
|
|
40789
|
+
htmlFor: inputId,
|
|
40790
|
+
children: dimensionName
|
|
40791
|
+
}), /* @__PURE__ */ jsx(MultiSelectComboBox, {
|
|
40792
|
+
inputId,
|
|
40793
|
+
options,
|
|
40794
|
+
selectedValues,
|
|
40795
|
+
onSelectedValuesChange: handleSelectedValuesChange,
|
|
40796
|
+
placeholder: t("tags:action.select_dimension_name", "Select {{dimensionName}}", { dimensionName }),
|
|
40797
|
+
isSearchable: selectedValues.length === 0
|
|
40798
|
+
})]
|
|
40799
|
+
});
|
|
40800
|
+
}
|
|
40801
|
+
//#endregion
|
|
40802
|
+
//#region src/components/UnifiedReports/UnifiedReportControls.tsx
|
|
40803
|
+
var COMPACT_DATE_SELECTION_BREAKPOINT = 560;
|
|
40555
40804
|
var UnifiedReportDateSelection = ({ isCompact }) => {
|
|
40556
40805
|
const { baseReport } = useBaseUnifiedReport();
|
|
40557
40806
|
const dateSelectionMode = useUnifiedReportDateSelectionMode();
|
|
@@ -40569,50 +40818,75 @@ var UnifiedReportDateSelection = ({ isCompact }) => {
|
|
|
40569
40818
|
var UnifiedReportControls = () => {
|
|
40570
40819
|
const { baseReport } = useBaseUnifiedReport();
|
|
40571
40820
|
const { groupBy, setGroupBy } = useUnifiedReportGroupByParam();
|
|
40821
|
+
const { reportingBasis, setReportingBasis } = useUnifiedReportReportingBasisParam();
|
|
40572
40822
|
const dateSelectionMode = useUnifiedReportDateSelectionMode();
|
|
40573
40823
|
const [size, setSize] = useState(3);
|
|
40574
40824
|
const containerRef = useElementSize((size) => {
|
|
40575
40825
|
setSize(size.width);
|
|
40576
40826
|
});
|
|
40577
|
-
const
|
|
40827
|
+
const isCompact = size < COMPACT_DATE_SELECTION_BREAKPOINT;
|
|
40578
40828
|
const hasGroupBy = dateSelectionMode === "full" && hasControl(baseReport, ReportControl.GroupBy);
|
|
40579
40829
|
const hasYear = hasControl(baseReport, ReportControl.Year);
|
|
40580
|
-
|
|
40830
|
+
const hasReportingBasis = hasControl(baseReport, ReportControl.ReportingBasis) && reportingBasis != null;
|
|
40831
|
+
const tagControl = baseReport === null || baseReport === void 0 ? void 0 : baseReport.tagControl;
|
|
40832
|
+
return /* @__PURE__ */ jsx(VStack, {
|
|
40581
40833
|
ref: containerRef,
|
|
40582
|
-
|
|
40583
|
-
|
|
40584
|
-
|
|
40585
|
-
|
|
40586
|
-
|
|
40587
|
-
|
|
40588
|
-
"
|
|
40589
|
-
children: [
|
|
40590
|
-
|
|
40591
|
-
|
|
40834
|
+
className: "Layer__UnifiedReports__ControlsContainer",
|
|
40835
|
+
children: /* @__PURE__ */ jsxs(Stack, {
|
|
40836
|
+
direction: "row",
|
|
40837
|
+
pb: "md",
|
|
40838
|
+
pi: "lg",
|
|
40839
|
+
gap: "xs",
|
|
40840
|
+
className: "Layer__UnifiedReports__Controls",
|
|
40841
|
+
children: [/* @__PURE__ */ jsx(UnifiedReportDateSelection, { isCompact }), (hasYear || hasGroupBy || hasReportingBasis || tagControl) && /* @__PURE__ */ jsxs("div", {
|
|
40842
|
+
className: "Layer__UnifiedReports__AdditionalControls",
|
|
40843
|
+
children: [
|
|
40844
|
+
hasYear && /* @__PURE__ */ jsx(GlobalYearPicker, {}),
|
|
40845
|
+
hasGroupBy && /* @__PURE__ */ jsx(DateGroupByComboBox, {
|
|
40846
|
+
value: groupBy,
|
|
40847
|
+
onValueChange: setGroupBy
|
|
40848
|
+
}),
|
|
40849
|
+
tagControl && /* @__PURE__ */ jsx(UnifiedReportTagControl, { tagControl }),
|
|
40850
|
+
hasReportingBasis && /* @__PURE__ */ jsx(UnifiedReportReportingBasisControl, {
|
|
40851
|
+
value: reportingBasis,
|
|
40852
|
+
onValueChange: setReportingBasis
|
|
40853
|
+
})
|
|
40854
|
+
]
|
|
40592
40855
|
})]
|
|
40593
|
-
})
|
|
40856
|
+
})
|
|
40594
40857
|
});
|
|
40595
40858
|
};
|
|
40596
40859
|
//#endregion
|
|
40597
40860
|
//#region src/components/UnifiedReports/UnifiedReportBaseHeader.tsx
|
|
40598
|
-
var
|
|
40861
|
+
var resolveVariant$1 = ({ width }) => width <= BREAKPOINTS.MOBILE ? "Mobile" : "Desktop";
|
|
40862
|
+
var UnifiedReportBaseHeaderRow = ({ variant }) => {
|
|
40599
40863
|
const { baseReport } = useBaseUnifiedReport();
|
|
40864
|
+
return /* @__PURE__ */ jsxs(HStack, {
|
|
40865
|
+
pi: "lg",
|
|
40866
|
+
pbs: "lg",
|
|
40867
|
+
align: "center",
|
|
40868
|
+
justify: "space-between",
|
|
40869
|
+
className: "Layer__UnifiedReports__BaseHeaderRow",
|
|
40870
|
+
children: [!(variant === "Mobile") && (baseReport ? /* @__PURE__ */ jsx(Span, {
|
|
40871
|
+
size: "lg",
|
|
40872
|
+
weight: "bold",
|
|
40873
|
+
children: baseReport.displayName
|
|
40874
|
+
}) : /* @__PURE__ */ jsx(SkeletonLoader, {
|
|
40875
|
+
width: "192px",
|
|
40876
|
+
height: "24px"
|
|
40877
|
+
})), /* @__PURE__ */ jsx(UnifiedReportHeaderButtons, { variant })]
|
|
40878
|
+
});
|
|
40879
|
+
};
|
|
40880
|
+
var UnifiedReportBaseHeader = () => {
|
|
40600
40881
|
const { isDesktop } = useSizeClass();
|
|
40601
40882
|
return /* @__PURE__ */ jsxs(VStack, {
|
|
40602
40883
|
className: "Layer__UnifiedReports__BaseHeader",
|
|
40603
|
-
children: [isDesktop && /* @__PURE__ */
|
|
40604
|
-
|
|
40605
|
-
|
|
40606
|
-
|
|
40607
|
-
|
|
40608
|
-
|
|
40609
|
-
size: "lg",
|
|
40610
|
-
weight: "bold",
|
|
40611
|
-
children: baseReport.displayName
|
|
40612
|
-
}) : /* @__PURE__ */ jsx(SkeletonLoader, {
|
|
40613
|
-
width: "192px",
|
|
40614
|
-
height: "24px"
|
|
40615
|
-
}), /* @__PURE__ */ jsx(UnifiedReportHeaderButtons, {})]
|
|
40884
|
+
children: [isDesktop && /* @__PURE__ */ jsx(ResponsiveComponent, {
|
|
40885
|
+
resolveVariant: resolveVariant$1,
|
|
40886
|
+
slots: {
|
|
40887
|
+
Desktop: /* @__PURE__ */ jsx(UnifiedReportBaseHeaderRow, { variant: "Desktop" }),
|
|
40888
|
+
Mobile: /* @__PURE__ */ jsx(UnifiedReportBaseHeaderRow, { variant: "Mobile" })
|
|
40889
|
+
}
|
|
40616
40890
|
}), /* @__PURE__ */ jsx(UnifiedReportControls, {})]
|
|
40617
40891
|
});
|
|
40618
40892
|
};
|