@tesouro/embedded-components-react 0.4.21 → 0.4.23
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/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +64 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +38 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +104 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +87 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +7 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +17 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +23 -63
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +66 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +74 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +3 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +30 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +37 -166
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +164 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +48 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +47 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +18 -125
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +136 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +4 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +39 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +79 -84
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +5 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +95 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +3 -121
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +49 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +113 -171
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +32 -74
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +186 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +70 -226
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +22 -219
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +221 -109
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +220 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +25 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +119 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +13 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +43 -198
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +29 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +186 -222
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +36 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +230 -375
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +21 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +424 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +4 -192
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +21 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +38 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +219 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +3 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +44 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +6 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +12 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +109 -124
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +3 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +58 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +124 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +8 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +8 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +45 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +20 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +28 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +76 -243
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +48 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +239 -196
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +115 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +207 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +3 -114
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +106 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +5 -70
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +44 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +170 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +12 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +108 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +26 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +20 -152
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +154 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +1 -64
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +61 -253
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +258 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +7 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +49 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +15 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +50 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +21 -338
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +340 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +9 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +96 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +11 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +58 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +52 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +10 -179
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +181 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +41 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +5 -90
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +92 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +1 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +86 -298
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +299 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +6 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +39 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +30 -195
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +36 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +10 -345
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +199 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +15 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +347 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +7 -123
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +91 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +123 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +26 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +94 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +5 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +10 -123
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +105 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +74 -119
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +8 -106
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/client.config.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/finopsApiVersion.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatRejectionDate.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +33 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +0 -94
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.json.js +0 -4
|
@@ -1,86 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BillColumn as e } from "../../ui/dist/index75.js";
|
|
2
|
+
import "../../ui/dist/index.js";
|
|
2
3
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
var t = {
|
|
5
|
+
root: "bill-pay-bills-tab",
|
|
6
|
+
uploadTray: "bill-pay-upload-tray",
|
|
7
|
+
detailsSheet: "bill-pay-details-sheet"
|
|
8
|
+
}, n = {
|
|
9
|
+
[e.Vendor]: "bill-pay-bills-cell-vendor",
|
|
10
|
+
[e.Attachment]: "bill-pay-bills-cell-attachment",
|
|
11
|
+
[e.IssueDate]: "bill-pay-bills-cell-issue-date",
|
|
12
|
+
[e.DueDate]: "bill-pay-bills-cell-due-date",
|
|
13
|
+
[e.ScheduledDate]: "bill-pay-bills-cell-scheduled-date",
|
|
14
|
+
[e.PaidDate]: "bill-pay-bills-cell-paid-date",
|
|
15
|
+
[e.Status]: "bill-pay-bills-cell-status",
|
|
16
|
+
[e.AmountDue]: "bill-pay-bills-cell-amount-due",
|
|
17
|
+
[e.AmountScheduled]: "bill-pay-bills-cell-amount-scheduled",
|
|
18
|
+
[e.AmountPaid]: "bill-pay-bills-cell-amount-paid",
|
|
19
|
+
[e.TotalAmount]: "bill-pay-bills-cell-total-amount",
|
|
20
|
+
[e.AddedOn]: "bill-pay-bills-cell-added-on"
|
|
16
21
|
};
|
|
17
|
-
function g(g, _ = /* @__PURE__ */ new Date()) {
|
|
18
|
-
let v = a(_);
|
|
19
|
-
switch (g) {
|
|
20
|
-
case h.Today: return {
|
|
21
|
-
from: v,
|
|
22
|
-
to: e(v)
|
|
23
|
-
};
|
|
24
|
-
case h.ThisWeek: return {
|
|
25
|
-
from: c(v),
|
|
26
|
-
to: r(v)
|
|
27
|
-
};
|
|
28
|
-
case h.ThisMonth: return {
|
|
29
|
-
from: o(v),
|
|
30
|
-
to: t(v)
|
|
31
|
-
};
|
|
32
|
-
case h.ThisQuarter: return {
|
|
33
|
-
from: s(v),
|
|
34
|
-
to: n(v)
|
|
35
|
-
};
|
|
36
|
-
case h.ThisYear: return {
|
|
37
|
-
from: l(v),
|
|
38
|
-
to: i(v)
|
|
39
|
-
};
|
|
40
|
-
case h.Yesterday: {
|
|
41
|
-
let t = u(v, 1);
|
|
42
|
-
return {
|
|
43
|
-
from: t,
|
|
44
|
-
to: e(t)
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
case h.LastWeek: {
|
|
48
|
-
let e = c(p(v, 1));
|
|
49
|
-
return {
|
|
50
|
-
from: e,
|
|
51
|
-
to: r(e)
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
case h.LastMonth: {
|
|
55
|
-
let e = o(d(v, 1));
|
|
56
|
-
return {
|
|
57
|
-
from: e,
|
|
58
|
-
to: t(e)
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
case h.Last30Days: return {
|
|
62
|
-
from: u(v, 29),
|
|
63
|
-
to: e(v)
|
|
64
|
-
};
|
|
65
|
-
case h.Last90Days: return {
|
|
66
|
-
from: u(v, 89),
|
|
67
|
-
to: e(v)
|
|
68
|
-
};
|
|
69
|
-
case h.LastQuarter: {
|
|
70
|
-
let e = s(f(v, 1));
|
|
71
|
-
return {
|
|
72
|
-
from: e,
|
|
73
|
-
to: n(e)
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
case h.LastYear: {
|
|
77
|
-
let e = l(m(v, 1));
|
|
78
|
-
return {
|
|
79
|
-
from: e,
|
|
80
|
-
to: i(e)
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
22
|
//#endregion
|
|
86
|
-
export {
|
|
23
|
+
export { t as billsTabTestIds, n as billsTableCellTestIds };
|
|
@@ -1,50 +1,31 @@
|
|
|
1
|
-
import { BillStatusFilter as e } from "./index73.js";
|
|
2
|
-
import { BillsDatePreset as t } from "./index74.js";
|
|
3
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
[e.Rejected]: "Rejected"
|
|
29
|
-
},
|
|
30
|
-
dateFieldNames: {
|
|
31
|
-
issueDate: "Issue date",
|
|
32
|
-
dueDate: "Due date",
|
|
33
|
-
addedOn: "Added on"
|
|
34
|
-
},
|
|
35
|
-
dateChip: (e, t) => `${e}: ${t}`,
|
|
36
|
-
statusChip: (e) => `Status: ${e}`,
|
|
37
|
-
vendorChip: (e) => `Vendor: ${e}`,
|
|
38
|
-
amountChip: (e) => `Total amount: ${e}`,
|
|
39
|
-
attachmentChipHas: "Has attachment",
|
|
40
|
-
attachmentChipNone: "No attachment",
|
|
41
|
-
moreSelected: (e, t) => `${e} + ${t} more`,
|
|
42
|
-
amountAtLeast: (e) => `${e} or more`,
|
|
43
|
-
amountAtMost: (e) => `${e} or less`,
|
|
44
|
-
amountBetween: (e, t) => `${e} - ${t}`,
|
|
45
|
-
dateRange: (e, t) => `${e} - ${t}`,
|
|
46
|
-
dateFrom: (e) => `From ${e}`,
|
|
47
|
-
dateTo: (e) => `Until ${e}`
|
|
2
|
+
var e = {
|
|
3
|
+
Draft: "draft",
|
|
4
|
+
ReadyToSubmit: "ready_to_submit",
|
|
5
|
+
PendingApproval: "pending_approval",
|
|
6
|
+
ReadyToPay: "ready_to_pay",
|
|
7
|
+
Paid: "paid",
|
|
8
|
+
Canceled: "canceled",
|
|
9
|
+
Rejected: "rejected"
|
|
10
|
+
}, t = [
|
|
11
|
+
e.Draft,
|
|
12
|
+
e.ReadyToSubmit,
|
|
13
|
+
e.PendingApproval,
|
|
14
|
+
e.ReadyToPay,
|
|
15
|
+
e.Paid,
|
|
16
|
+
e.Canceled,
|
|
17
|
+
e.Rejected
|
|
18
|
+
], n = {
|
|
19
|
+
[e.Draft]: ["draft"],
|
|
20
|
+
[e.ReadyToSubmit]: ["new"],
|
|
21
|
+
[e.PendingApproval]: ["approve_in_progress"],
|
|
22
|
+
[e.ReadyToPay]: ["waiting_to_be_paid", "partially_paid"],
|
|
23
|
+
[e.Paid]: ["paid"],
|
|
24
|
+
[e.Canceled]: ["canceled"],
|
|
25
|
+
[e.Rejected]: ["rejected"]
|
|
48
26
|
};
|
|
27
|
+
function r(e) {
|
|
28
|
+
return e.flatMap((e) => n[e] ?? [e]);
|
|
29
|
+
}
|
|
49
30
|
//#endregion
|
|
50
|
-
export {
|
|
31
|
+
export { t as BILL_STATUS_FILTER_ORDER, e as BillStatusFilter, r as billStatusFilterApiValues };
|
|
@@ -1,253 +1,86 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { formatMoneyExact as e } from "../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
6
|
-
import { useCounterpartsQuery as t } from "../../../shared/counterpart-management/data-access/dist/index3.js";
|
|
7
|
-
import "../../data-access/dist/index.js";
|
|
8
|
-
import { BillsFilterField as n } from "../../ui/dist/index68.js";
|
|
9
|
-
import "../../ui/dist/index.js";
|
|
10
|
-
import { getCounterpartName as r } from "../../../shared/counterpart-management/feature/dist/lib/helpers.js";
|
|
11
|
-
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
12
|
-
import { BILL_STATUS_FILTER_ORDER as i, billStatusFilterApiValues as a } from "./index73.js";
|
|
13
|
-
import { BillsDatePreset as o, resolveDatePreset as s } from "./index74.js";
|
|
14
|
-
import { BILLS_FILTER_LABELS_EN as c } from "./index75.js";
|
|
15
|
-
import { useCallback as l, useEffect as u, useMemo as d, useState as f } from "react";
|
|
16
|
-
import { format as p, formatISO as m } from "date-fns";
|
|
1
|
+
import { endOfDay as e, endOfMonth as t, endOfQuarter as n, endOfWeek as r, endOfYear as i, startOfDay as a, startOfMonth as o, startOfQuarter as s, startOfWeek as c, startOfYear as l, subDays as u, subMonths as d, subQuarters as f, subWeeks as p, subYears as m } from "date-fns";
|
|
17
2
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js
|
|
18
3
|
var h = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
[o.ThisMonth]: "current",
|
|
32
|
-
[o.ThisQuarter]: "current",
|
|
33
|
-
[o.ThisYear]: "current",
|
|
34
|
-
[o.Yesterday]: "past",
|
|
35
|
-
[o.LastWeek]: "past",
|
|
36
|
-
[o.LastMonth]: "past",
|
|
37
|
-
[o.Last30Days]: "past",
|
|
38
|
-
[o.Last90Days]: "past",
|
|
39
|
-
[o.LastQuarter]: "past",
|
|
40
|
-
[o.LastYear]: "past"
|
|
4
|
+
Today: "today",
|
|
5
|
+
ThisWeek: "this_week",
|
|
6
|
+
ThisMonth: "this_month",
|
|
7
|
+
ThisQuarter: "this_quarter",
|
|
8
|
+
ThisYear: "this_year",
|
|
9
|
+
Yesterday: "yesterday",
|
|
10
|
+
LastWeek: "last_week",
|
|
11
|
+
LastMonth: "last_month",
|
|
12
|
+
Last30Days: "last_30_days",
|
|
13
|
+
Last90Days: "last_90_days",
|
|
14
|
+
LastQuarter: "last_quarter",
|
|
15
|
+
LastYear: "last_year"
|
|
41
16
|
};
|
|
42
|
-
function
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
17
|
+
function g(g, _ = /* @__PURE__ */ new Date()) {
|
|
18
|
+
let v = a(_);
|
|
19
|
+
switch (g) {
|
|
20
|
+
case h.Today: return {
|
|
21
|
+
from: v,
|
|
22
|
+
to: e(v)
|
|
23
|
+
};
|
|
24
|
+
case h.ThisWeek: return {
|
|
25
|
+
from: c(v),
|
|
26
|
+
to: r(v)
|
|
27
|
+
};
|
|
28
|
+
case h.ThisMonth: return {
|
|
29
|
+
from: o(v),
|
|
30
|
+
to: t(v)
|
|
31
|
+
};
|
|
32
|
+
case h.ThisQuarter: return {
|
|
33
|
+
from: s(v),
|
|
34
|
+
to: n(v)
|
|
35
|
+
};
|
|
36
|
+
case h.ThisYear: return {
|
|
37
|
+
from: l(v),
|
|
38
|
+
to: i(v)
|
|
39
|
+
};
|
|
40
|
+
case h.Yesterday: {
|
|
41
|
+
let t = u(v, 1);
|
|
42
|
+
return {
|
|
43
|
+
from: t,
|
|
44
|
+
to: e(t)
|
|
45
|
+
};
|
|
71
46
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
u(() => {
|
|
79
|
-
w || A((e) => e.vendorIds.length === 0 ? e : (E?.(), {
|
|
80
|
-
...e,
|
|
81
|
-
vendorIds: []
|
|
82
|
-
}));
|
|
83
|
-
}, [w, E]), u(() => {
|
|
84
|
-
o || A((e) => e.statuses.length === 0 ? e : (E?.(), {
|
|
85
|
-
...e,
|
|
86
|
-
statuses: []
|
|
87
|
-
}));
|
|
88
|
-
}, [o, E]), u(() => {
|
|
89
|
-
let e = setTimeout(() => I(N.trim()), _);
|
|
90
|
-
return () => clearTimeout(e);
|
|
91
|
-
}, [N]);
|
|
92
|
-
let R = t({
|
|
93
|
-
enabled: w && !T,
|
|
94
|
-
is_vendor: !0,
|
|
95
|
-
sort: "counterpart_name",
|
|
96
|
-
order: "asc",
|
|
97
|
-
limit: g,
|
|
98
|
-
counterpart_name__icontains: F || void 0
|
|
99
|
-
}), z = d(() => (R.data?.data ?? []).map((e) => ({
|
|
100
|
-
value: e.id,
|
|
101
|
-
label: r(e)
|
|
102
|
-
})), [R.data?.data]), B = d(() => i.map((e) => ({
|
|
103
|
-
value: e,
|
|
104
|
-
label: O.statuses[e]
|
|
105
|
-
})), [O.statuses]), V = d(() => Object.entries(x).map(([e, t]) => ({
|
|
106
|
-
value: e,
|
|
107
|
-
label: O.presets[e],
|
|
108
|
-
group: t === "current" ? O.presetGroupCurrent : O.presetGroupPast
|
|
109
|
-
})), [
|
|
110
|
-
O.presetGroupCurrent,
|
|
111
|
-
O.presetGroupPast,
|
|
112
|
-
O.presets
|
|
113
|
-
]), H = d(() => {
|
|
114
|
-
let e = {}, t = b[k.dateField], n = (e) => Date.UTC(e.getFullYear(), e.getMonth(), e.getDate());
|
|
115
|
-
if (k.dateFrom && (e[`${t}__gte`] = t === "created_at" ? new Date(n(k.dateFrom)).toISOString() : m(k.dateFrom, { representation: "date" })), k.dateTo && (t === "created_at" ? e.created_at__lt = new Date(n(k.dateTo) + y).toISOString() : e[`${t}__lte`] = m(k.dateTo, { representation: "date" })), k.statuses.length > 0 && (e.status__in = a(k.statuses)), k.amountMode !== "any") {
|
|
116
|
-
let t = "total_amount__gte", n = "total_amount__lte", r = C(k.amountMin), i = C(k.amountMax);
|
|
117
|
-
k.amountMode === "exact" ? r !== void 0 && (e[t] = r, e[n] = r) : (r !== void 0 && (e[t] = r), i !== void 0 && (e[n] = i));
|
|
47
|
+
case h.LastWeek: {
|
|
48
|
+
let e = c(p(v, 1));
|
|
49
|
+
return {
|
|
50
|
+
from: e,
|
|
51
|
+
to: r(e)
|
|
52
|
+
};
|
|
118
53
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
if (k.dateFrom || k.dateTo) {
|
|
126
|
-
let e = (k.datePreset ? O.presets[k.datePreset] : void 0) ?? (k.dateFrom && k.dateTo ? O.dateRange(n(k.dateFrom), n(k.dateTo)) : k.dateFrom ? O.dateFrom(n(k.dateFrom)) : O.dateTo(n(k.dateTo)));
|
|
127
|
-
t.push({
|
|
128
|
-
key: h.Date,
|
|
129
|
-
label: O.dateChip(O.dateFieldNames[k.dateField], e)
|
|
130
|
-
});
|
|
54
|
+
case h.LastMonth: {
|
|
55
|
+
let e = o(d(v, 1));
|
|
56
|
+
return {
|
|
57
|
+
from: e,
|
|
58
|
+
to: t(e)
|
|
59
|
+
};
|
|
131
60
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
});
|
|
61
|
+
case h.Last30Days: return {
|
|
62
|
+
from: u(v, 29),
|
|
63
|
+
to: e(v)
|
|
64
|
+
};
|
|
65
|
+
case h.Last90Days: return {
|
|
66
|
+
from: u(v, 89),
|
|
67
|
+
to: e(v)
|
|
68
|
+
};
|
|
69
|
+
case h.LastQuarter: {
|
|
70
|
+
let e = s(f(v, 1));
|
|
71
|
+
return {
|
|
72
|
+
from: e,
|
|
73
|
+
to: n(e)
|
|
74
|
+
};
|
|
147
75
|
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
k,
|
|
155
|
-
j
|
|
156
|
-
]), W = l((e) => {
|
|
157
|
-
switch (e) {
|
|
158
|
-
case h.Date:
|
|
159
|
-
L({
|
|
160
|
-
datePreset: void 0,
|
|
161
|
-
dateFrom: void 0,
|
|
162
|
-
dateTo: void 0
|
|
163
|
-
});
|
|
164
|
-
break;
|
|
165
|
-
case h.Status:
|
|
166
|
-
L({ statuses: [] });
|
|
167
|
-
break;
|
|
168
|
-
case h.Vendor:
|
|
169
|
-
L({ vendorIds: [] });
|
|
170
|
-
break;
|
|
171
|
-
case h.Amount:
|
|
172
|
-
L({
|
|
173
|
-
amountMode: "any",
|
|
174
|
-
amountMin: "",
|
|
175
|
-
amountMax: ""
|
|
176
|
-
});
|
|
177
|
-
break;
|
|
178
|
-
case h.Attachment: L({ hasFile: void 0 });
|
|
76
|
+
case h.LastYear: {
|
|
77
|
+
let e = l(m(v, 1));
|
|
78
|
+
return {
|
|
79
|
+
from: e,
|
|
80
|
+
to: i(e)
|
|
81
|
+
};
|
|
179
82
|
}
|
|
180
|
-
}
|
|
181
|
-
A(S()), E?.();
|
|
182
|
-
}, [E]), K = l((e) => {
|
|
183
|
-
M((t) => {
|
|
184
|
-
let n = { ...t };
|
|
185
|
-
for (let t of z) e.includes(t.value) && (n[t.value] = t.label);
|
|
186
|
-
return n;
|
|
187
|
-
}), L({ vendorIds: e });
|
|
188
|
-
}, [L, z]);
|
|
189
|
-
return {
|
|
190
|
-
filterBarProps: {
|
|
191
|
-
fields: [...d(() => [
|
|
192
|
-
...w ? [n.Vendor] : [],
|
|
193
|
-
n.IssueDate,
|
|
194
|
-
n.DueDate,
|
|
195
|
-
...o ? [n.Status] : [],
|
|
196
|
-
n.TotalAmount,
|
|
197
|
-
n.AddedOn,
|
|
198
|
-
n.Attachment
|
|
199
|
-
], [o, w])],
|
|
200
|
-
activeFilterCount: U.length,
|
|
201
|
-
chips: U,
|
|
202
|
-
onRemoveChip: W,
|
|
203
|
-
onClearAll: G,
|
|
204
|
-
dateField: k.dateField,
|
|
205
|
-
onDateFieldChange: (e) => {
|
|
206
|
-
let t = !!(k.dateFrom || k.dateTo);
|
|
207
|
-
A((t) => ({
|
|
208
|
-
...t,
|
|
209
|
-
dateField: e
|
|
210
|
-
})), t && E?.();
|
|
211
|
-
},
|
|
212
|
-
datePresets: V,
|
|
213
|
-
selectedDatePreset: k.datePreset,
|
|
214
|
-
dateFrom: k.dateFrom,
|
|
215
|
-
dateTo: k.dateTo,
|
|
216
|
-
onDateRangeChange: ({ from: e, to: t }) => L({
|
|
217
|
-
datePreset: void 0,
|
|
218
|
-
dateFrom: e,
|
|
219
|
-
dateTo: t
|
|
220
|
-
}),
|
|
221
|
-
onDatePresetChange: (e) => {
|
|
222
|
-
let t = /* @__PURE__ */ new Date(), r = k.dateField === n.AddedOn ? new Date(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()) : t, { from: i, to: a } = s(e, r);
|
|
223
|
-
L({
|
|
224
|
-
datePreset: e,
|
|
225
|
-
dateFrom: i,
|
|
226
|
-
dateTo: a
|
|
227
|
-
});
|
|
228
|
-
},
|
|
229
|
-
statusOptions: B,
|
|
230
|
-
selectedStatuses: k.statuses,
|
|
231
|
-
onStatusChange: (e) => L({ statuses: e }),
|
|
232
|
-
amountMode: k.amountMode,
|
|
233
|
-
onAmountModeChange: (e) => L({ amountMode: e }),
|
|
234
|
-
amountMin: k.amountMin,
|
|
235
|
-
amountMax: k.amountMax,
|
|
236
|
-
onAmountMinChange: (e) => L({ amountMin: e }),
|
|
237
|
-
onAmountMaxChange: (e) => L({ amountMax: e }),
|
|
238
|
-
vendorOptions: z,
|
|
239
|
-
selectedVendors: k.vendorIds,
|
|
240
|
-
onVendorChange: K,
|
|
241
|
-
vendorSearchValue: N,
|
|
242
|
-
onVendorSearchChange: P,
|
|
243
|
-
isVendorLoading: R.isLoading || T,
|
|
244
|
-
isVendorError: R.isError,
|
|
245
|
-
hasAttachment: k.hasFile,
|
|
246
|
-
onHasAttachmentChange: (e) => L({ hasFile: e })
|
|
247
|
-
},
|
|
248
|
-
query: H,
|
|
249
|
-
isFilterActive: U.length > 0
|
|
250
|
-
};
|
|
83
|
+
}
|
|
251
84
|
}
|
|
252
85
|
//#endregion
|
|
253
|
-
export { h as
|
|
86
|
+
export { h as BillsDatePreset, g as resolveDatePreset };
|