@tesouro/embedded-components-react 0.11.180 → 0.11.183
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/README.md +5 -0
- package/dist/index.css +22 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js +14 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index11.js +82 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index12.js +47 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index13.js +261 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +23 -251
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js +450 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +286 -442
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +4 -300
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +37 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +1 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index5.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +88 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +17 -89
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index9.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index10.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +263 -262
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +2 -2
- 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/ui/dist/index.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/AttentionStrip/AttentionStrip.js +29 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/AttentionStrip/AttentionViewBar.js +33 -0
- package/package.json +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index21.js +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { BILL_QUEUE_ORDER as e, billQueueFilters as t } from "./index5.js";
|
|
6
|
+
import { usePayablesCountQueries as n } from "../../data-access/dist/index3.js";
|
|
7
|
+
import "../../data-access/dist/index.js";
|
|
8
|
+
import { useMemo as r, useState as i } from "react";
|
|
3
9
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index9.js
|
|
4
|
-
|
|
5
|
-
[
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
[e
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
[e.AmountScheduled]: "bill-pay-bills-cell-amount-scheduled",
|
|
15
|
-
[e.AmountPaid]: "bill-pay-bills-cell-amount-paid",
|
|
16
|
-
[e.TotalAmount]: "bill-pay-bills-cell-total-amount",
|
|
17
|
-
[e.AddedOn]: "bill-pay-bills-cell-added-on"
|
|
18
|
-
};
|
|
19
|
-
export { t as billsTableCellTestIds };
|
|
10
|
+
function a({ enabled: a = !0, canPay: o } = {}) {
|
|
11
|
+
let [s, c] = i(o);
|
|
12
|
+
o !== void 0 && s !== o && c(o);
|
|
13
|
+
let l = o ?? s, u = r(() => e.map((e) => t(e, l ?? !1)), [l]), d = n({
|
|
14
|
+
filters: u,
|
|
15
|
+
enabled: a && o !== void 0
|
|
16
|
+
});
|
|
17
|
+
return r(() => Object.fromEntries(e.map((e, t) => [e, d[t]?.count])), [d]);
|
|
18
|
+
}
|
|
19
|
+
export { a as useBillQueueCounts };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index10.js
CHANGED
|
@@ -178,20 +178,20 @@ function y({ fields: f, activeFilterCount: y, chips: b, onRemoveChip: x, onClear
|
|
|
178
178
|
]
|
|
179
179
|
})]
|
|
180
180
|
}),
|
|
181
|
-
activeChipsSlot: /* @__PURE__ */ m("span", {
|
|
181
|
+
activeChipsSlot: b.length > 0 ? /* @__PURE__ */ m("span", {
|
|
182
182
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
|
|
183
183
|
"data-testid": Y?.chips,
|
|
184
184
|
children: [b.map((e) => /* @__PURE__ */ p(ee, {
|
|
185
185
|
label: e.label,
|
|
186
186
|
labels: Z.filterTag,
|
|
187
187
|
onDismiss: () => x(e.key)
|
|
188
|
-
}, e.key)),
|
|
188
|
+
}, e.key)), /* @__PURE__ */ p("button", {
|
|
189
189
|
type: "button",
|
|
190
190
|
className: "ttw:cursor-pointer ttw:whitespace-nowrap ttw:text-xs ttw:text-muted-foreground ttw:transition-colors ttw:hover:text-foreground",
|
|
191
191
|
onClick: S,
|
|
192
192
|
children: Z.clearAll
|
|
193
|
-
})
|
|
194
|
-
})
|
|
193
|
+
})]
|
|
194
|
+
}) : void 0
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
197
|
function b(e) {
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js
CHANGED
|
@@ -33,7 +33,6 @@ var a = ".pdf,.png,.jpg,.jpeg,.doc,.docx", o = {
|
|
|
33
33
|
openRow: (e) => `View bill — ${e}`,
|
|
34
34
|
vendorResolving: "Loading vendor",
|
|
35
35
|
vendorUnavailable: "Vendor unavailable",
|
|
36
|
-
duplicateBillsReviewButton: "Review duplicates",
|
|
37
36
|
searchPlaceholder: "Search by vendor name",
|
|
38
37
|
searchLabel: "Search bills by vendor name",
|
|
39
38
|
filterTabsLabel: "Filter bills by status",
|