@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.
Files changed (31) hide show
  1. package/README.md +5 -0
  2. package/dist/index.css +22 -0
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index.js +4 -4
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js +14 -17
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index11.js +82 -13
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index12.js +47 -83
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index13.js +261 -47
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +23 -251
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js +450 -25
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +286 -442
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +4 -300
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +5 -4
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +37 -4
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +1 -38
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index5.js +11 -11
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +88 -7
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +17 -89
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index9.js +18 -18
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index10.js +4 -4
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +0 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +263 -262
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/labels.js +1 -1
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +2 -2
  26. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  27. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +7 -5
  28. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/AttentionStrip/AttentionStrip.js +29 -0
  29. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/AttentionStrip/AttentionViewBar.js +33 -0
  30. package/package.json +3 -1
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index21.js +0 -1
@@ -1,19 +1,19 @@
1
- import { BillColumn as e } from "../../ui/dist/index19.js";
2
- import "../../ui/dist/index.js";
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
- var t = {
5
- [e.Vendor]: "bill-pay-bills-cell-vendor",
6
- [e.InvoiceNumber]: "bill-pay-bills-cell-invoice-number",
7
- [e.Attachment]: "bill-pay-bills-cell-attachment",
8
- [e.IssueDate]: "bill-pay-bills-cell-issue-date",
9
- [e.DueDate]: "bill-pay-bills-cell-due-date",
10
- [e.ScheduledDate]: "bill-pay-bills-cell-scheduled-date",
11
- [e.PaidDate]: "bill-pay-bills-cell-paid-date",
12
- [e.Status]: "bill-pay-bills-cell-status",
13
- [e.AmountDue]: "bill-pay-bills-cell-amount-due",
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 };
@@ -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)), b.length > 0 ? /* @__PURE__ */ p("button", {
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
- }) : null]
194
- })
193
+ })]
194
+ }) : void 0
195
195
  });
196
196
  }
197
197
  function b(e) {
@@ -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",