@zeniai/web-components 4.3.23 → 4.3.25

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 (29) hide show
  1. package/dist/{SessionTimeoutPopup-CEshrMQ8.js → SessionTimeoutPopup-BlshETsN.js} +79028 -79634
  2. package/dist/{SessionTimeoutPopup-BFIU-uft.cjs → SessionTimeoutPopup-Djw6NWND.cjs} +15447 -15636
  3. package/dist/appLocale.d.ts +2 -0
  4. package/dist/cockpit.cjs.js +1 -1
  5. package/dist/cockpit.esm.js +2 -2
  6. package/dist/components/dashboard/dashboardTypes.d.ts +2 -2
  7. package/dist/components/invoicing/catalogDetail/CreateInvoicingCatalogSubFamilyDialog.d.ts +7 -2
  8. package/dist/components/invoicing/catalogDetail/InvoicingCatalogItemDetailPage.d.ts +7 -2
  9. package/dist/components/invoicing/catalogForm/InvoicingCatalogItemFormPage.d.ts +6 -6
  10. package/dist/components/invoicing/catalogForm/catalogItemForm.shared.d.ts +22 -6
  11. package/dist/components/invoicing/common/invoicingListHelpers.d.ts +15 -1
  12. package/dist/components/invoicing/couponForm/InvoicingCouponFormPage.d.ts +5 -5
  13. package/dist/components/invoicing/couponForm/couponForm.shared.d.ts +5 -5
  14. package/dist/components/invoicing/customerDetail/InvoicingCustomerDetailPage.d.ts +6 -2
  15. package/dist/components/invoicing/customerForm/InvoicingCustomerFormPage.d.ts +6 -2
  16. package/dist/components/invoicing/customerForm/customerForm.shared.d.ts +18 -4
  17. package/dist/components/invoicing/invoiceList/InvoicingInvoiceListPage.d.ts +4 -2
  18. package/dist/components/invoicing/issueCreditNote/InvoicingIssueCreditNotePage.d.ts +5 -3
  19. package/dist/components/invoicing/issueCreditNote/issueCreditNote.shared.d.ts +8 -7
  20. package/dist/components/invoicing/recordPayment/InvoicingRecordPaymentPage.d.ts +4 -4
  21. package/dist/components/invoicing/recordPayment/recordPayment.shared.d.ts +8 -11
  22. package/dist/index.cjs.js +1 -1
  23. package/dist/index.esm.js +1 -1
  24. package/dist/strings/strings.d.ts +2 -0
  25. package/package.json +5 -5
  26. package/dist/components/cards/summaryCard/accountsPromoCard/AccountsPromoCardContent.d.ts +0 -23
  27. package/dist/components/cards/summaryCard/accountsPromoCard/AccountsPromoCardStack.d.ts +0 -26
  28. package/dist/components/cards/summaryCard/accountsPromoCard/AccountsPromoCards.d.ts +0 -15
  29. package/dist/components/invoicing/recordPayment/stories/recordPaymentStoryData.d.ts +0 -9
@@ -10855,6 +10855,7 @@ declare class AppLocale {
10855
10855
  tierTypePackage: string;
10856
10856
  trialEndSiteDefault: string;
10857
10857
  trialEndActivateSubscription: string;
10858
+ prorationSiteDefault: string;
10858
10859
  prorationPartialTerm: string;
10859
10860
  prorationFullTerm: string;
10860
10861
  applicabilityAll: string;
@@ -11501,6 +11502,7 @@ declare class AppLocale {
11501
11502
  labelAmountDue: string;
11502
11503
  labelCreditTotal: string;
11503
11504
  placeholderSelectReason: string;
11505
+ placeholderSelectType: string;
11504
11506
  columnInclude: string;
11505
11507
  columnDescription: string;
11506
11508
  columnQuantity: string;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./SessionTimeoutPopup-BFIU-uft.cjs"),o=require("./vendor-.pnpm-DUQUuNXu.cjs"),u=require("react"),s=require("@emotion/styled"),nt=require("@liveblocks/react"),J=require("@zeniai/client-epic-state"),Ds=require("@liveblocks/react-ui"),ve=require("@emotion/react"),Oo=require("react-dom"),$t=require("@liveblocks/react-ui/primitives"),ki=require("@liveblocks/react/suspense");function Ua(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const le=Ua(u),Ha=({inboxNotification:e,onNotificationClick:n})=>{const r=nt.useInboxNotificationThread(e.id),i=r.metadata.entityType.split("."),a=r.metadata.isGlobalComment&&i.length===2;return o.jsxRuntimeExports.jsx(Ka,{isClickable:a,isUnRead:e.readAt==null,onClick:()=>{n(r.metadata,r.id)},children:o.jsxRuntimeExports.jsx(Ds.InboxNotification,{inboxNotification:e,kinds:{thread:c=>o.jsxRuntimeExports.jsx(Ds.InboxNotification.Thread,{...c,showRoomName:!0})}})})},Ka=s.div`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./SessionTimeoutPopup-Djw6NWND.cjs"),o=require("./vendor-.pnpm-DUQUuNXu.cjs"),u=require("react"),s=require("@emotion/styled"),nt=require("@liveblocks/react"),J=require("@zeniai/client-epic-state"),Ds=require("@liveblocks/react-ui"),ve=require("@emotion/react"),Oo=require("react-dom"),$t=require("@liveblocks/react-ui/primitives"),ki=require("@liveblocks/react/suspense");function Ua(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const le=Ua(u),Ha=({inboxNotification:e,onNotificationClick:n})=>{const r=nt.useInboxNotificationThread(e.id),i=r.metadata.entityType.split("."),a=r.metadata.isGlobalComment&&i.length===2;return o.jsxRuntimeExports.jsx(Ka,{isClickable:a,isUnRead:e.readAt==null,onClick:()=>{n(r.metadata,r.id)},children:o.jsxRuntimeExports.jsx(Ds.InboxNotification,{inboxNotification:e,kinds:{thread:c=>o.jsxRuntimeExports.jsx(Ds.InboxNotification.Thread,{...c,showRoomName:!0})}})})},Ka=s.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  cursor: ${e=>e.isClickable?"pointer":"initial"};
@@ -1,5 +1,5 @@
1
- import { f1 as o, iw as Ee, m as jt, ha as T, fC as zt, bY as ri, a4 as Ke, fH as $p, hw as Cp, hH as wp, aK as A, hz as _, eN as Sp, j3 as ge, iQ as xo, gd as ht, aM as Gt, ds as Js, C as Io, g2 as ws, dm as Ao, fE as Ss, fT as vp, j5 as vs, bm as nc, iS as rc, fd as ro, fa as ze, hG as ic, f_ as Po, eO as Xs, dh as _e, iI as jp, bk as kp, bG as Yt, bh as Tp, fA as sc, hP as Pp, bu as js, Q as ks, i0 as Lp, i1 as Ip, i2 as Ap, aL as Op, dE as Dp, df as $t, fG as ac, dO as Rp, fq as ii, fY as Ts, iu as B, eH as Ep, bR as Np, eU as ve, fw as Mp, ex as z, R as bn, d_ as lc, d$ as Ur, dZ as cc, b$ as zp, du as Bp, fl as Fp, c0 as Kr, eR as si, c2 as cs, e2 as qs, e0 as Wp, e1 as _p, c1 as yi, b_ as fi, c3 as Vp, dP as Ue, ix as gt, fm as Ps, bU as Hr, eV as Up, fx as Ls, bH as ai, ic as Ie, bZ as li, fy as dc, fQ as pc, fL as ir, hs as Ut, gf as ct, f6 as vn, dj as Kp, dl as uc, fB as hc, aX as Lo, aV as Yo, aW as Zo, b8 as mc, fX as ci, fI as Is, eZ as jn, hI as Mt, h8 as nt, gB as Gr, h4 as Hp, gb as kn, gc as Tn, p as Pn, ho as Jo, fj as Xo, dg as di, fF as As, dk as Gp, fz as yo, fD as qo, bs as no, h3 as ea, hZ as Yp, hN as Zp, hT as Qp, fK as Jp, g1 as Xp, g0 as sr, f7 as qp, f8 as Os, hJ as eu, fJ as gc, fP as xc, fO as yc, bD as fc, io as tu, d9 as ta, da as Ds, d4 as ou, d8 as nu, bV as ar, bE as Ln, fN as Rs, aO as ru, hC as vt, e_ as bc, d7 as Yr, dd as iu, bC as Es, d1 as su, ey as Cn, fv as au, fu as lu, fr as cu, d2 as pi, eP as oa, d5 as $c, iW as Zr, dQ as Cc, fo as wc, hx as Ns, d3 as du, bI as to, aZ as Nt, fS as Sc, fe as pu, dq as vc, fU as uu, fc as hu, a_ as Jt, ib as ur, bM as mu, j1 as gu, dc as Xt, b9 as jc, eQ as na, d6 as xu, db as yu, ek as ra, g as fu, dS as bu, fs as $u, iN as kc, iR as Tc, bL as oo, a8 as ui, a9 as wn, iT as Pc, hU as Lc, bn as Cu, dv as wu, dJ as Ic, dI as Su, h_ as vu, dz as Qr, aF as Ac, dy as ju, dx as ku, br as Tu, dw as Ms, hK as Oc, bP as Dc, hc as Rc, o as Ec, g9 as Nc, bQ as Pu, D as Mc, bT as zc, gC as Lu, f5 as Iu, iM as Au, dG as Ou, hO as Du, hL as Ru, a3 as Eu, eu as ia, hS as Nu, f$ as Bc, h$ as sa, dK as Mu, di as zu, fb as Bu, fM as Fu, fR as Wu, ft as _u, hl as aa, fW as Vu, e$ as Fc, eW as Uu, hr as Wc, bt as Ku, ff as Hu, bF as Gu, bJ as Yu, eX as _c, fV as Zu, de as Qu, fZ as Ju, eT as Xu, eY as Vc, f9 as qu, bK as eh, eS as th } from "./SessionTimeoutPopup-CEshrMQ8.js";
2
- import { A as oT, a as nT, b as rT, c as iT, d as sT, e as aT, f as lT, h as cT, i as dT, j as pT, k as uT, l as hT, n as mT, q as gT, r as xT, s as yT, t as fT, u as bT, v as $T, w as CT, x as wT, y as ST, z as vT, B as jT, E as kT, F as TT, G as PT, H as LT, I as IT, J as AT, K as OT, L as DT, M as RT, N as ET, O as NT, P as MT, S as zT, T as BT, U as FT, V as WT, W as _T, X as VT, Y as UT, Z as KT, _ as HT, f4 as GT, $ as YT, a0 as ZT, a1 as QT, a2 as JT, a5 as XT, a6 as qT, a7 as eP, aa as tP, ab as oP, ac as nP, ad as rP, ae as iP, af as sP, ag as aP, ah as lP, ai as cP, aj as dP, ak as pP, al as uP, am as hP, an as mP, ao as gP, ap as xP, aq as yP, ar as fP, as as bP, at as $P, au as CP, av as wP, aw as SP, ax as vP, ay as jP, az as kP, f4 as TP, aA as PP, aB as LP, aC as IP, aD as AP, aE as OP, aG as DP, aH as RP, aI as EP, aJ as NP, aN as MP, aP as zP, aQ as BP, aR as FP, aS as WP, aT as _P, aU as VP, aY as UP, a$ as KP, b0 as HP, b1 as GP, b2 as YP, b3 as ZP, b4 as QP, b5 as JP, b6 as XP, b7 as qP, ba as eL, bb as tL, bc as oL, bd as nL, be as rL, bf as iL, bg as sL, bi as aL, bl as lL, bo as cL, bp as dL, bq as pL, bv as uL, bw as hL, bx as mL, by as gL, bz as xL, bA as yL, bB as fL, bN as bL, bO as $L, bS as CL, bW as wL, bX as SL, c4 as vL, c5 as jL, c6 as kL, c7 as TL, c8 as PL, c9 as LL, ca as IL, cb as AL, cc as OL, cd as DL, ce as RL, cf as EL, cg as NL, ch as ML, ci as zL, cj as BL, ck as FL, cl as WL, cm as _L, cn as VL, co as UL, cp as KL, cq as HL, cr as GL, cs as YL, ct as ZL, cu as QL, cv as JL, cw as XL, cx as qL, cy as eI, cz as tI, cA as oI, cB as nI, cC as rI, cD as iI, cE as sI, cF as aI, cG as lI, cH as cI, cI as dI, cJ as pI, cK as uI, cL as hI, cM as mI, cN as gI, cO as xI, cP as yI, cQ as fI, cR as bI, cS as $I, cT as CI, cU as wI, cV as SI, cV as vI, cW as jI, cX as kI, cY as TI, cZ as PI, c_ as LI, c$ as II, d0 as AI, dn as OI, dp as DI, dr as RI, dt as EI, dA as NI, dB as MI, dC as zI, dD as BI, dF as FI, dH as WI, dL as _I, dM as VI, dN as UI, dR as KI, dT as HI, dU as GI, dV as YI, dW as ZI, dX as QI, dY as JI, e3 as XI, e4 as qI, e5 as eA, e6 as tA, e7 as oA, e8 as nA, e9 as rA, ea as iA, eb as sA, ec as aA, ed as lA, ee as cA, ef as dA, eg as pA, eh as uA, ei as hA, ej as mA, el as gA, bj as xA, em as yA, en as fA, eo as bA, ep as $A, eq as CA, er as wA, es as SA, f4 as vA, ev as jA, et as kA, ew as TA, ez as PA, eA as LA, eB as IA, eC as AA, eD as OA, eE as DA, eF as RA, eG as EA, eI as NA, eJ as MA, eK as zA, eL as BA, eM as FA, f0 as WA, f2 as _A, f3 as VA, fg as UA, fh as KA, fi as HA, fk as GA, fn as YA, fp as ZA, g3 as QA, g4 as JA, g5 as XA, g6 as qA, g7 as eO, g8 as tO, ga as oO, ge as nO, gg as rO, gh as iO, gi as sO, gj as aO, gk as lO, gl as cO, gm as dO, gn as pO, go as uO, gp as hO, gq as mO, gr as gO, gs as xO, gt as yO, gu as fO, gv as bO, gw as $O, gx as CO, gy as wO, gz as SO, gA as vO, gD as jO, gE as kO, gF as TO, gG as PO, gH as LO, gI as IO, gJ as AO, gK as OO, gL as DO, gM as RO, gN as EO, gO as NO, gP as MO, gQ as zO, gR as BO, gS as FO, gT as WO, gU as _O, gV as VO, gW as UO, gX as KO, gY as HO, gZ as GO, g_ as YO, g$ as ZO, h0 as QO, h1 as JO, h2 as XO, h5 as qO, h6 as eD, h7 as tD, h9 as oD, hb as nD, hd as rD, he as iD, hf as sD, hg as aD, hh as lD, hi as cD, hj as dD, hk as pD, hm as uD, hn as hD, hp as mD, hq as gD, ht as xD, hv as yD, hu as fD, hy as bD, hA as $D, hB as CD, hD as wD, hE as SD, hF as vD, hM as jD, hQ as kD, hR as TD, hV as PD, hW as LD, hX as ID, hY as AD, i3 as OD, i4 as DD, i5 as RD, i6 as ED, i7 as ND, i8 as MD, i9 as zD, ia as BD, id as FD, ie as WD, ig as _D, ih as VD, ii as UD, ij as KD, ik as HD, il as GD, im as YD, ip as ZD, iq as QD, ir as JD, is as XD, it as qD, iv as eR, iy as tR, iz as oR, iA as nR, iB as rR, iC as iR, iD as sR, iE as aR, iF as lR, iG as cR, iH as dR, iJ as pR, iK as uR, iL as hR, iO as mR, iP as gR, iU as xR, iV as yR, iX as fR, iY as bR, iZ as $R, i_ as CR, i$ as wR, j0 as SR, j2 as vR, j4 as jR, j6 as kR, j7 as TR } from "./SessionTimeoutPopup-CEshrMQ8.js";
1
+ import { f1 as o, iw as Ee, m as jt, ha as T, fC as zt, bY as ri, a4 as Ke, fH as $p, hw as Cp, hH as wp, aK as A, hz as _, eN as Sp, j3 as ge, iQ as xo, gd as ht, aM as Gt, ds as Js, C as Io, g2 as ws, dm as Ao, fE as Ss, fT as vp, j5 as vs, bm as nc, iS as rc, fd as ro, fa as ze, hG as ic, f_ as Po, eO as Xs, dh as _e, iI as jp, bk as kp, bG as Yt, bh as Tp, fA as sc, hP as Pp, bu as js, Q as ks, i0 as Lp, i1 as Ip, i2 as Ap, aL as Op, dE as Dp, df as $t, fG as ac, dO as Rp, fq as ii, fY as Ts, iu as B, eH as Ep, bR as Np, eU as ve, fw as Mp, ex as z, R as bn, d_ as lc, d$ as Ur, dZ as cc, b$ as zp, du as Bp, fl as Fp, c0 as Kr, eR as si, c2 as cs, e2 as qs, e0 as Wp, e1 as _p, c1 as yi, b_ as fi, c3 as Vp, dP as Ue, ix as gt, fm as Ps, bU as Hr, eV as Up, fx as Ls, bH as ai, ic as Ie, bZ as li, fy as dc, fQ as pc, fL as ir, hs as Ut, gf as ct, f6 as vn, dj as Kp, dl as uc, fB as hc, aX as Lo, aV as Yo, aW as Zo, b8 as mc, fX as ci, fI as Is, eZ as jn, hI as Mt, h8 as nt, gB as Gr, h4 as Hp, gb as kn, gc as Tn, p as Pn, ho as Jo, fj as Xo, dg as di, fF as As, dk as Gp, fz as yo, fD as qo, bs as no, h3 as ea, hZ as Yp, hN as Zp, hT as Qp, fK as Jp, g1 as Xp, g0 as sr, f7 as qp, f8 as Os, hJ as eu, fJ as gc, fP as xc, fO as yc, bD as fc, io as tu, d9 as ta, da as Ds, d4 as ou, d8 as nu, bV as ar, bE as Ln, fN as Rs, aO as ru, hC as vt, e_ as bc, d7 as Yr, dd as iu, bC as Es, d1 as su, ey as Cn, fv as au, fu as lu, fr as cu, d2 as pi, eP as oa, d5 as $c, iW as Zr, dQ as Cc, fo as wc, hx as Ns, d3 as du, bI as to, aZ as Nt, fS as Sc, fe as pu, dq as vc, fU as uu, fc as hu, a_ as Jt, ib as ur, bM as mu, j1 as gu, dc as Xt, b9 as jc, eQ as na, d6 as xu, db as yu, ek as ra, g as fu, dS as bu, fs as $u, iN as kc, iR as Tc, bL as oo, a8 as ui, a9 as wn, iT as Pc, hU as Lc, bn as Cu, dv as wu, dJ as Ic, dI as Su, h_ as vu, dz as Qr, aF as Ac, dy as ju, dx as ku, br as Tu, dw as Ms, hK as Oc, bP as Dc, hc as Rc, o as Ec, g9 as Nc, bQ as Pu, D as Mc, bT as zc, gC as Lu, f5 as Iu, iM as Au, dG as Ou, hO as Du, hL as Ru, a3 as Eu, eu as ia, hS as Nu, f$ as Bc, h$ as sa, dK as Mu, di as zu, fb as Bu, fM as Fu, fR as Wu, ft as _u, hl as aa, fW as Vu, e$ as Fc, eW as Uu, hr as Wc, bt as Ku, ff as Hu, bF as Gu, bJ as Yu, eX as _c, fV as Zu, de as Qu, fZ as Ju, eT as Xu, eY as Vc, f9 as qu, bK as eh, eS as th } from "./SessionTimeoutPopup-BlshETsN.js";
2
+ import { A as oT, a as nT, b as rT, c as iT, d as sT, e as aT, f as lT, h as cT, i as dT, j as pT, k as uT, l as hT, n as mT, q as gT, r as xT, s as yT, t as fT, u as bT, v as $T, w as CT, x as wT, y as ST, z as vT, B as jT, E as kT, F as TT, G as PT, H as LT, I as IT, J as AT, K as OT, L as DT, M as RT, N as ET, O as NT, P as MT, S as zT, T as BT, U as FT, V as WT, W as _T, X as VT, Y as UT, Z as KT, _ as HT, f4 as GT, $ as YT, a0 as ZT, a1 as QT, a2 as JT, a5 as XT, a6 as qT, a7 as eP, aa as tP, ab as oP, ac as nP, ad as rP, ae as iP, af as sP, ag as aP, ah as lP, ai as cP, aj as dP, ak as pP, al as uP, am as hP, an as mP, ao as gP, ap as xP, aq as yP, ar as fP, as as bP, at as $P, au as CP, av as wP, aw as SP, ax as vP, ay as jP, az as kP, f4 as TP, aA as PP, aB as LP, aC as IP, aD as AP, aE as OP, aG as DP, aH as RP, aI as EP, aJ as NP, aN as MP, aP as zP, aQ as BP, aR as FP, aS as WP, aT as _P, aU as VP, aY as UP, a$ as KP, b0 as HP, b1 as GP, b2 as YP, b3 as ZP, b4 as QP, b5 as JP, b6 as XP, b7 as qP, ba as eL, bb as tL, bc as oL, bd as nL, be as rL, bf as iL, bg as sL, bi as aL, bl as lL, bo as cL, bp as dL, bq as pL, bv as uL, bw as hL, bx as mL, by as gL, bz as xL, bA as yL, bB as fL, bN as bL, bO as $L, bS as CL, bW as wL, bX as SL, c4 as vL, c5 as jL, c6 as kL, c7 as TL, c8 as PL, c9 as LL, ca as IL, cb as AL, cc as OL, cd as DL, ce as RL, cf as EL, cg as NL, ch as ML, ci as zL, cj as BL, ck as FL, cl as WL, cm as _L, cn as VL, co as UL, cp as KL, cq as HL, cr as GL, cs as YL, ct as ZL, cu as QL, cv as JL, cw as XL, cx as qL, cy as eI, cz as tI, cA as oI, cB as nI, cC as rI, cD as iI, cE as sI, cF as aI, cG as lI, cH as cI, cI as dI, cJ as pI, cK as uI, cL as hI, cM as mI, cN as gI, cO as xI, cP as yI, cQ as fI, cR as bI, cS as $I, cT as CI, cU as wI, cV as SI, cV as vI, cW as jI, cX as kI, cY as TI, cZ as PI, c_ as LI, c$ as II, d0 as AI, dn as OI, dp as DI, dr as RI, dt as EI, dA as NI, dB as MI, dC as zI, dD as BI, dF as FI, dH as WI, dL as _I, dM as VI, dN as UI, dR as KI, dT as HI, dU as GI, dV as YI, dW as ZI, dX as QI, dY as JI, e3 as XI, e4 as qI, e5 as eA, e6 as tA, e7 as oA, e8 as nA, e9 as rA, ea as iA, eb as sA, ec as aA, ed as lA, ee as cA, ef as dA, eg as pA, eh as uA, ei as hA, ej as mA, el as gA, bj as xA, em as yA, en as fA, eo as bA, ep as $A, eq as CA, er as wA, es as SA, f4 as vA, ev as jA, et as kA, ew as TA, ez as PA, eA as LA, eB as IA, eC as AA, eD as OA, eE as DA, eF as RA, eG as EA, eI as NA, eJ as MA, eK as zA, eL as BA, eM as FA, f0 as WA, f2 as _A, f3 as VA, fg as UA, fh as KA, fi as HA, fk as GA, fn as YA, fp as ZA, g3 as QA, g4 as JA, g5 as XA, g6 as qA, g7 as eO, g8 as tO, ga as oO, ge as nO, gg as rO, gh as iO, gi as sO, gj as aO, gk as lO, gl as cO, gm as dO, gn as pO, go as uO, gp as hO, gq as mO, gr as gO, gs as xO, gt as yO, gu as fO, gv as bO, gw as $O, gx as CO, gy as wO, gz as SO, gA as vO, gD as jO, gE as kO, gF as TO, gG as PO, gH as LO, gI as IO, gJ as AO, gK as OO, gL as DO, gM as RO, gN as EO, gO as NO, gP as MO, gQ as zO, gR as BO, gS as FO, gT as WO, gU as _O, gV as VO, gW as UO, gX as KO, gY as HO, gZ as GO, g_ as YO, g$ as ZO, h0 as QO, h1 as JO, h2 as XO, h5 as qO, h6 as eD, h7 as tD, h9 as oD, hb as nD, hd as rD, he as iD, hf as sD, hg as aD, hh as lD, hi as cD, hj as dD, hk as pD, hm as uD, hn as hD, hp as mD, hq as gD, ht as xD, hv as yD, hu as fD, hy as bD, hA as $D, hB as CD, hD as wD, hE as SD, hF as vD, hM as jD, hQ as kD, hR as TD, hV as PD, hW as LD, hX as ID, hY as AD, i3 as OD, i4 as DD, i5 as RD, i6 as ED, i7 as ND, i8 as MD, i9 as zD, ia as BD, id as FD, ie as WD, ig as _D, ih as VD, ii as UD, ij as KD, ik as HD, il as GD, im as YD, ip as ZD, iq as QD, ir as JD, is as XD, it as qD, iv as eR, iy as tR, iz as oR, iA as nR, iB as rR, iC as iR, iD as sR, iE as aR, iF as lR, iG as cR, iH as dR, iJ as pR, iK as uR, iL as hR, iO as mR, iP as gR, iU as xR, iV as yR, iX as fR, iY as bR, iZ as $R, i_ as CR, i$ as wR, j0 as SR, j2 as vR, j4 as jR, j6 as kR, j7 as TR } from "./SessionTimeoutPopup-BlshETsN.js";
3
3
  import { am as t, D as oh, a2 as nh, aN as Ze, q as In, O as at, L as rh, s as ih, T as sh, aJ as fo, ab as Qo, i as An, o as hi, f as io, h as xe, aI as bo, Z as en, m as $o, J as tn, b as so, V as on, af as rt, I as Uc, X as ah, ap as Vt, aH as lh, k as zs, C as Kc, n as ch, d as dh, e as Bs, B as Fs, au as la } from "./vendor-.pnpm-DaZ4hAq4.js";
4
4
  import { aC as LR } from "./vendor-.pnpm-DaZ4hAq4.js";
5
5
  import * as me from "react";
@@ -1,9 +1,9 @@
1
- import { ApAgingReport, ArAgingReport, CashInCashOutReport, CashPositionReport, CompanyPassportView, InsightsView, NetBurnOrIncomeReport, NetBurnOrIncomeStoryCardReport, OpExReport, RevenueReport, RewardsPlanCardReport, TasksCardReport, TopExReport, ZeniAccountsPromoCardReport } from '@zeniai/client-epic-state';
1
+ import { ApAgingReport, ArAgingReport, CashInCashOutReport, CashPositionReport, CompanyPassportView, InsightsView, NetBurnOrIncomeReport, NetBurnOrIncomeStoryCardReport, OpExReport, RevenueReport, RewardsPlanCardReport, TasksCardReport, TopExReport } from '@zeniai/client-epic-state';
2
2
  import { CardData } from '../cards/cardTypes';
3
3
  import { BalanceCardData } from '../cards/summaryCard/balanceCard/BalanceCard';
4
4
  import { ZeniCreditPromoCardData } from '../cards/summaryCard/promoCards/ZeniCreditPromoCardStack';
5
5
  import { TreasuryCardData } from '../cards/summaryCard/treasuryPromoCard/treasuryPromoCardData';
6
- export type CardDetailData = BalanceCardData | OpExReport | RevenueReport | NetBurnOrIncomeReport | CashPositionReport | InsightsView | TopExReport | CashInCashOutReport | CompanyPassportView | TasksCardReport | ApAgingReport | ZeniAccountsPromoCardReport | RewardsPlanCardReport | ZeniCreditPromoCardData | TreasuryCardData | Record<string, unknown>;
6
+ export type CardDetailData = BalanceCardData | OpExReport | RevenueReport | NetBurnOrIncomeReport | CashPositionReport | InsightsView | TopExReport | CashInCashOutReport | CompanyPassportView | TasksCardReport | ApAgingReport | RewardsPlanCardReport | ZeniCreditPromoCardData | TreasuryCardData | Record<string, unknown>;
7
7
  export declare function isBalanceCardData(cardData: CardDetailData): cardData is BalanceCardData;
8
8
  export declare function isOpExCardData(cardData: CardDetailData): cardData is OpExReport;
9
9
  export declare function isRevenueCardData(cardData: CardDetailData): cardData is RevenueReport;
@@ -1,8 +1,13 @@
1
- import { InvoicingNamedOptionsByKey, InvoicingProduct } from '@zeniai/client-epic-state';
1
+ import { InvoicingNamedOption, InvoicingNamedOptionsByKey, InvoicingProduct } from '@zeniai/client-epic-state';
2
2
  export interface CreateInvoicingCatalogSubFamilyDialogProps {
3
3
  itemId: string;
4
4
  itemType: string;
5
5
  open: boolean;
6
+ /** `/1.0/config` option lists the dialog's selects are built from. */
7
+ periodUnitOptions: InvoicingNamedOption[];
8
+ trialEndActionOptions: InvoicingNamedOption[];
9
+ trialUnitOptions: InvoicingNamedOption[];
10
+ typeOptions: InvoicingNamedOption[];
6
11
  duplicateFrom?: InvoicingProduct;
7
12
  errorMessage?: string;
8
13
  isSubmitting?: boolean;
@@ -14,5 +19,5 @@ export interface CreateInvoicingCatalogSubFamilyDialogProps {
14
19
  onClose: () => void;
15
20
  onSubmit: (data: Record<string, unknown>) => void;
16
21
  }
17
- export declare function CreateInvoicingCatalogSubFamilyDialog({ duplicateFrom, errorMessage, isSubmitting, itemId, itemType, onClose, onSubmit, open, tierTypeOptionsByPricingModel, }: Readonly<CreateInvoicingCatalogSubFamilyDialogProps>): import("react/jsx-runtime").JSX.Element;
22
+ export declare function CreateInvoicingCatalogSubFamilyDialog({ duplicateFrom, errorMessage, isSubmitting, itemId, itemType, onClose, onSubmit, open, tierTypeOptionsByPricingModel, periodUnitOptions, trialEndActionOptions, trialUnitOptions, typeOptions, }: Readonly<CreateInvoicingCatalogSubFamilyDialogProps>): import("react/jsx-runtime").JSX.Element;
18
23
  export default CreateInvoicingCatalogSubFamilyDialog;
@@ -1,4 +1,4 @@
1
- import { InvoicingCatalogItemLifecycleAction, InvoicingCatalogLifecycleActionOption, InvoicingCatalogProductLifecycleAction, InvoicingNamedOptionsByKey, InvoicingPlan } from '@zeniai/client-epic-state';
1
+ import { InvoicingCatalogItemLifecycleAction, InvoicingCatalogLifecycleActionOption, InvoicingCatalogProductLifecycleAction, InvoicingNamedOptionsByKey, InvoicingPlan, InvoicingNamedOption } from '@zeniai/client-epic-state';
2
2
  type InvoicingPlanWithIdentifiers = InvoicingPlan & {
3
3
  externalId?: string;
4
4
  productCode?: string;
@@ -6,6 +6,11 @@ type InvoicingPlanWithIdentifiers = InvoicingPlan & {
6
6
  export interface InvoicingCatalogItemDetailPageProps {
7
7
  isLoading: boolean;
8
8
  itemId: string;
9
+ /** `/1.0/config` option lists the pricing editor's selects are built from. */
10
+ periodUnitOptions: InvoicingNamedOption[];
11
+ trialEndActionOptions: InvoicingNamedOption[];
12
+ trialUnitOptions: InvoicingNamedOption[];
13
+ typeOptions: InvoicingNamedOption[];
9
14
  catalogItemLifecycleActionOptions?: InvoicingCatalogLifecycleActionOption<InvoicingCatalogItemLifecycleAction>[];
10
15
  catalogProductLifecycleActionOptions?: InvoicingCatalogLifecycleActionOption<InvoicingCatalogProductLifecycleAction>[];
11
16
  /** Error from the last inline-edit save attempt, shown in edit mode. */
@@ -32,5 +37,5 @@ export interface InvoicingCatalogItemDetailPageProps {
32
37
  onSaveEdit?: (data: Record<string, unknown>) => void;
33
38
  onSubFamilyLifecycleAction?: (subFamilyId: string, action: InvoicingCatalogProductLifecycleAction) => void;
34
39
  }
35
- export declare function InvoicingCatalogItemDetailPage({ catalogItemLifecycleActionOptions, catalogProductLifecycleActionOptions, editErrorMessage, initialEditMode, isLoading, isRunningLifecycleAction, isSaving, itemId, onBack, onCancelEdit, onCreateSubFamily, onEdit, onLifecycleAction, onSaveEdit, onSubFamilyLifecycleAction, plan, tierTypeOptionsByPricingModel, }: Readonly<InvoicingCatalogItemDetailPageProps>): import("react/jsx-runtime").JSX.Element;
40
+ export declare function InvoicingCatalogItemDetailPage({ catalogItemLifecycleActionOptions, catalogProductLifecycleActionOptions, editErrorMessage, initialEditMode, isLoading, isRunningLifecycleAction, isSaving, itemId, onBack, onCancelEdit, onCreateSubFamily, onEdit, onLifecycleAction, onSaveEdit, onSubFamilyLifecycleAction, plan, tierTypeOptionsByPricingModel, periodUnitOptions, trialEndActionOptions, trialUnitOptions, typeOptions, }: Readonly<InvoicingCatalogItemDetailPageProps>): import("react/jsx-runtime").JSX.Element;
36
41
  export default InvoicingCatalogItemDetailPage;
@@ -1,4 +1,4 @@
1
- import { InvoicingCatalogItemFormLocalData, InvoicingNamedOptionsByKey, InvoicingQboAccountOption } from '@zeniai/client-epic-state';
1
+ import { InvoicingCatalogItemFormLocalData, InvoicingNamedOption, InvoicingNamedOptionsByKey, InvoicingQboAccountOption } from '@zeniai/client-epic-state';
2
2
  /**
3
3
  * Catalog item types as shown to the user. All three are parent catalog items;
4
4
  * the type controls the parent and nested sub-family payload fields.
@@ -14,13 +14,13 @@ export interface InvoicingCatalogItemFormPageProps {
14
14
  isSubmitting: boolean;
15
15
  localData: InvoicingCatalogItemFormLocalData;
16
16
  mode: "create" | "edit";
17
- periodUnitValues: readonly string[];
17
+ periodUnitOptions: InvoicingNamedOption[];
18
18
  pricingModelValues: readonly string[];
19
19
  prorationValues: readonly string[];
20
20
  tierTypeValues: readonly string[];
21
- trialEndActionValues: readonly string[];
22
- trialUnitValues: readonly string[];
23
- typeValues: readonly string[];
21
+ trialEndActionOptions: InvoicingNamedOption[];
22
+ trialUnitOptions: InvoicingNamedOption[];
23
+ typeOptions: InvoicingNamedOption[];
24
24
  applicableItemOptions?: InvoicingCatalogApplicableItemOption[];
25
25
  /**
26
26
  * Pre-selects (and locks) the catalog item type when creating, so each
@@ -48,5 +48,5 @@ export interface InvoicingCatalogItemFormPageProps {
48
48
  * invoicing forms. The whole form syncs back to the CES draft (`localData`) on
49
49
  * every change; the save payload is derived from the draft in CES.
50
50
  */
51
- export declare function InvoicingCatalogItemFormPage({ applicabilityValues, applicableItemOptions, defaultType, errorMessage, isSubmitting, localData, mode, onBack, onCancel, onChange, onSubmit, periodUnitValues, pricingModelValues, prorationValues, qboClasses, qboIncomeAccounts, tierTypeOptionsByPricingModel, tierTypeValues, trialEndActionValues, trialUnitValues, typeValues, }: Readonly<InvoicingCatalogItemFormPageProps>): import("react/jsx-runtime").JSX.Element;
51
+ export declare function InvoicingCatalogItemFormPage({ applicabilityValues, applicableItemOptions, defaultType, errorMessage, isSubmitting, localData, mode, onBack, onCancel, onChange, onSubmit, periodUnitOptions, pricingModelValues, prorationValues, qboClasses, qboIncomeAccounts, tierTypeOptionsByPricingModel, tierTypeValues, trialEndActionOptions, trialUnitOptions, typeOptions, }: Readonly<InvoicingCatalogItemFormPageProps>): import("react/jsx-runtime").JSX.Element;
52
52
  export default InvoicingCatalogItemFormPage;
@@ -1,19 +1,30 @@
1
1
  import { KeyboardEvent } from 'react';
2
- import { InvoicingCatalogItemFormLocalData, InvoicingNamedOptionsByKey } from '@zeniai/client-epic-state';
2
+ import { InvoicingCatalogItemFormLocalData, InvoicingNamedOption, InvoicingNamedOptionsByKey } from '@zeniai/client-epic-state';
3
3
  import { MultiSelectFieldValue } from '../../formElements/multiSelectField/MultiSelectField';
4
4
  export interface CatalogSelectOption {
5
5
  label: string;
6
6
  value: string;
7
7
  }
8
+ /**
9
+ * Value sets web-components still labels itself, because the backend has no enum
10
+ * for them yet (pricing model, tier type, proration, applicability).
11
+ */
8
12
  export interface CatalogFormValueSets {
9
13
  applicabilityValues: readonly string[];
10
- periodUnitValues: readonly string[];
11
14
  pricingModelValues: readonly string[];
12
15
  prorationValues: readonly string[];
13
16
  tierTypeValues: readonly string[];
14
- trialEndActionValues: readonly string[];
15
- trialUnitValues: readonly string[];
16
- typeValues: readonly string[];
17
+ }
18
+ /**
19
+ * Option lists that come from `/1.0/config`, labelled with the backend `name`.
20
+ * Passed in per render — they are server data, so unlike
21
+ * {@link CATALOG_FORM_VALUE_SETS} they cannot be a module constant.
22
+ */
23
+ export interface CatalogFormConfigOptions {
24
+ periodUnitOptions: InvoicingNamedOption[];
25
+ trialEndActionOptions: InvoicingNamedOption[];
26
+ trialUnitOptions: InvoicingNamedOption[];
27
+ typeOptions: InvoicingNamedOption[];
17
28
  }
18
29
  export interface CatalogFormOptions {
19
30
  applicability: CatalogSelectOption[];
@@ -31,12 +42,17 @@ export interface CatalogFormOptions {
31
42
  * this constant so all three render the same options with the same labels.
32
43
  */
33
44
  export declare const CATALOG_FORM_VALUE_SETS: CatalogFormValueSets;
45
+ /**
46
+ * Tier `Type` options from the FE-local value set. Available at module scope
47
+ * (unlike the config-driven lists) so blank-tier seeds can use it.
48
+ */
49
+ export declare const CATALOG_LOCAL_TIER_TYPE_OPTIONS: CatalogSelectOption[];
34
50
  /** The form's label for a saved value, so read-only views match the form. */
35
51
  export declare const catalogOptionLabel: (allOptions: readonly CatalogSelectOption[], value: string | undefined) => string | undefined;
36
52
  /** Block any keystroke that would put a non-digit into a period field. */
37
53
  export declare const allowOnlyNumericKeys: (event: KeyboardEvent<HTMLInputElement>) => void;
38
54
  /** Map the CES-owned value sets to localized `{label, value}` select options. */
39
- export declare const buildCatalogFormOptions: (valueSets: CatalogFormValueSets) => CatalogFormOptions;
55
+ export declare const buildCatalogFormOptions: (config: CatalogFormConfigOptions, valueSets?: CatalogFormValueSets) => CatalogFormOptions;
40
56
  /**
41
57
  * The tier `Type` options the backend allows for `pricingModel`, straight from
42
58
  * `catalog_tier_type_options_by_pricing_model` on the invoicing config. Returns
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { Amount, InvoicingInvoice, ZeniDate } from '@zeniai/client-epic-state';
2
+ import { Amount, InvoicingInvoice, InvoicingNamedOption, ZeniDate } from '@zeniai/client-epic-state';
3
3
  /**
4
4
  * Formats an integer minor-unit (cents) amount with a currency symbol. Wraps the
5
5
  * shared {@link amountValueToString} formatter so invoicing amounts render with
@@ -25,6 +25,20 @@ export declare function formatInvoicingPercent(value: number | undefined): strin
25
25
  export declare function formatInvoicingDate(value: string | ZeniDate | undefined): string;
26
26
  /** Title-cases a snake_case status/type token for display. */
27
27
  export declare function humanizeToken(token: string | undefined): string;
28
+ /**
29
+ * Label lookup for a config-driven status / type list: the backend `name` when
30
+ * config has an entry for the code, else the humanized code.
31
+ *
32
+ * The fallback matters — config arrives asynchronously, and a code the backend
33
+ * added but this list has not caught up with should still read sensibly rather
34
+ * than render blank.
35
+ */
36
+ export declare function buildInvoicingLabelGetter(options: InvoicingNamedOption[] | undefined): (code: string | undefined) => string;
37
+ /** Adapt a config option to the `{label, value}` shape the select fields take. */
38
+ export declare function toInvoicingSelectOption(option: InvoicingNamedOption): {
39
+ label: string;
40
+ value: string;
41
+ };
28
42
  export declare const ClickableCell: import('@emotion/styled').StyledComponent<{
29
43
  theme?: import('@emotion/react').Theme;
30
44
  as?: React.ElementType;
@@ -1,12 +1,12 @@
1
- import { InvoicingCouponApplyOn, InvoicingCouponDurationType, InvoicingCouponFormLocalData, InvoicingCouponPeriodUnit, InvoicingDiscountType, InvoicingFormOption } from '@zeniai/client-epic-state';
1
+ import { InvoicingCouponFormLocalData, InvoicingFormOption } from '@zeniai/client-epic-state';
2
2
  export interface InvoicingCouponFormPageProps {
3
- applyOnOptions: readonly InvoicingFormOption<InvoicingCouponApplyOn>[];
4
- discountTypeOptions: readonly InvoicingFormOption<InvoicingDiscountType>[];
5
- durationTypeOptions: readonly InvoicingFormOption<InvoicingCouponDurationType>[];
3
+ applyOnOptions: InvoicingFormOption[];
4
+ discountTypeOptions: InvoicingFormOption[];
5
+ durationTypeOptions: InvoicingFormOption[];
6
6
  isSubmitting: boolean;
7
7
  localData: InvoicingCouponFormLocalData;
8
8
  mode: "create" | "edit";
9
- periodUnitOptions: readonly InvoicingFormOption<InvoicingCouponPeriodUnit>[];
9
+ periodUnitOptions: InvoicingFormOption[];
10
10
  errorMessage?: string;
11
11
  onCancel: () => void;
12
12
  onChange: (localData: InvoicingCouponFormLocalData) => void;
@@ -1,4 +1,4 @@
1
- import { InvoicingCouponApplyOn, InvoicingCouponDurationType, InvoicingCouponFormLocalData, InvoicingCouponPeriodUnit, InvoicingDiscountType, InvoicingFormOption } from '@zeniai/client-epic-state';
1
+ import { InvoicingCouponFormLocalData, InvoicingFormOption } from '@zeniai/client-epic-state';
2
2
  /**
3
3
  * Web-components glue for the coupon form. CES owns the draft `LocalData` and the
4
4
  * select-option value sets; this module maps those to the form's UI value shapes
@@ -28,10 +28,10 @@ export type CouponFormValues = Omit<InvoicingCouponFormLocalData, "applyOn" | "d
28
28
  validTill: Date | undefined;
29
29
  };
30
30
  export interface CouponFormOptions {
31
- applyOnOptions: readonly InvoicingFormOption<InvoicingCouponApplyOn>[];
32
- discountTypeOptions: readonly InvoicingFormOption<InvoicingDiscountType>[];
33
- durationTypeOptions: readonly InvoicingFormOption<InvoicingCouponDurationType>[];
34
- periodUnitOptions: readonly InvoicingFormOption<InvoicingCouponPeriodUnit>[];
31
+ applyOnOptions: InvoicingFormOption[];
32
+ discountTypeOptions: InvoicingFormOption[];
33
+ durationTypeOptions: InvoicingFormOption[];
34
+ periodUnitOptions: InvoicingFormOption[];
35
35
  }
36
36
  export declare const localDataToCouponFormValues: (localData: InvoicingCouponFormLocalData, options: CouponFormOptions) => CouponFormValues;
37
37
  export declare const couponFormValuesToLocalData: (values: CouponFormValues) => InvoicingCouponFormLocalData;
@@ -1,10 +1,14 @@
1
- import { InvoicingCustomer, InvoicingCustomerFormLocalData, InvoicingInvoice } from '@zeniai/client-epic-state';
1
+ import { InvoicingCustomer, InvoicingCustomerFormLocalData, InvoicingInvoice, InvoicingNamedOption } from '@zeniai/client-epic-state';
2
2
  type InvoicingCustomerWithProductCode = InvoicingCustomer & {
3
3
  productCode?: string;
4
4
  };
5
5
  export interface InvoicingCustomerDetailPageProps {
6
6
  customerId: string;
7
+ /** `/1.0/config` option lists backing the customer form's pickers. */
8
+ customerTypeOptions: InvoicingNamedOption[];
7
9
  isLoading: boolean;
10
+ netTermDayOptions: InvoicingNamedOption[];
11
+ taxabilityOptions: InvoicingNamedOption[];
8
12
  /** Formatted billing address for display (from the shared Address flow). */
9
13
  billingAddressLabel?: string;
10
14
  /** Branding accent color for the payment-link email preview. */
@@ -60,5 +64,5 @@ export interface InvoicingCustomerDetailPageProps {
60
64
  onSendPaymentLink?: (email: string) => void;
61
65
  onSubscriptionClick?: (subscriptionId: string) => void;
62
66
  }
63
- export declare function InvoicingCustomerDetailPage({ billingAddressLabel, brandingAccentColor, brandingCompanyName, brandingEmail, brandingLogoUrl, customer, customerId, editErrorMessage, initialEditMode, initialPreviewEmailOpen, invoices, isLoading, isSaving, isSendingPaymentLink, localData, onAddPaymentMethod, onBack, onCancelEdit, onChange, onCreateInvoice, onEdit, onInvoiceClick, onCreatePromotionalCredits, onNewSubscription, onOpenAddress, onOpenPaymentSettings, onSaveEdit, onSendPaymentLink, onSubscriptionClick, sendPaymentLinkErrorMessage, sentPaymentLinkEmail, sentPaymentLinkMagicUrl, stripeConnected, }: Readonly<InvoicingCustomerDetailPageProps>): import("react/jsx-runtime").JSX.Element;
67
+ export declare function InvoicingCustomerDetailPage({ billingAddressLabel, brandingAccentColor, brandingCompanyName, brandingEmail, brandingLogoUrl, customer, customerId, editErrorMessage, initialEditMode, initialPreviewEmailOpen, invoices, isLoading, isSaving, isSendingPaymentLink, localData, onAddPaymentMethod, onBack, onCancelEdit, onChange, onCreateInvoice, onEdit, onInvoiceClick, onCreatePromotionalCredits, onNewSubscription, onOpenAddress, onOpenPaymentSettings, onSaveEdit, onSendPaymentLink, onSubscriptionClick, sendPaymentLinkErrorMessage, sentPaymentLinkEmail, sentPaymentLinkMagicUrl, stripeConnected, customerTypeOptions, netTermDayOptions, taxabilityOptions, }: Readonly<InvoicingCustomerDetailPageProps>): import("react/jsx-runtime").JSX.Element;
64
68
  export default InvoicingCustomerDetailPage;
@@ -1,8 +1,12 @@
1
- import { InvoicingCustomerFormLocalData } from '@zeniai/client-epic-state';
1
+ import { InvoicingCustomerFormLocalData, InvoicingNamedOption } from '@zeniai/client-epic-state';
2
2
  export interface InvoicingCustomerFormPageProps {
3
+ /** `/1.0/config` option lists backing the customer form's pickers. */
4
+ customerTypeOptions: InvoicingNamedOption[];
3
5
  isSubmitting: boolean;
4
6
  localData: InvoicingCustomerFormLocalData;
5
7
  mode: "create" | "edit";
8
+ netTermDayOptions: InvoicingNamedOption[];
9
+ taxabilityOptions: InvoicingNamedOption[];
6
10
  billingAddressLabel?: string;
7
11
  errorMessage?: string;
8
12
  onCancel: () => void;
@@ -18,5 +22,5 @@ export interface InvoicingCustomerFormPageProps {
18
22
  * focus, and searchable selects behave exactly like the bill edit page. Emits a
19
23
  * plain data object for the connector to dispatch.
20
24
  */
21
- export declare function InvoicingCustomerFormPage({ billingAddressLabel, errorMessage, isSubmitting, localData, mode, onBack, onCancel, onChange, onOpenAddress, onSubmit, }: Readonly<InvoicingCustomerFormPageProps>): import("react/jsx-runtime").JSX.Element;
25
+ export declare function InvoicingCustomerFormPage({ billingAddressLabel, customerTypeOptions, errorMessage, isSubmitting, localData, mode, netTermDayOptions, onBack, onCancel, onChange, onOpenAddress, onSubmit, taxabilityOptions, }: Readonly<InvoicingCustomerFormPageProps>): import("react/jsx-runtime").JSX.Element;
22
26
  export default InvoicingCustomerFormPage;
@@ -1,4 +1,12 @@
1
- import { InvoicingCustomer, InvoicingCustomerFormLocalData } from '@zeniai/client-epic-state';
1
+ import { InvoicingCustomer, InvoicingCustomerFormLocalData, InvoicingNamedOption } from '@zeniai/client-epic-state';
2
+ /**
3
+ * Web-components glue for the customer form. CES owns the draft `LocalData`, the
4
+ * save payload, and — via `/1.0/config` — the option lists and their labels; this
5
+ * module maps those to {@link PickerValue} options and converts between the
6
+ * form's UI value shapes and CES `LocalData`. The billing address is NOT part of these values —
7
+ * it is captured via the shared Address screen. Shared by the create/edit form
8
+ * page and the inline edit on the customer detail page so the two never drift.
9
+ */
2
10
  export interface PickerValue {
3
11
  allOptions: {
4
12
  label: string;
@@ -20,8 +28,14 @@ export interface InvoicingCustomerFormOptions {
20
28
  value: string;
21
29
  }[];
22
30
  }
23
- /** Localized select options, built from the CES-owned value sets. */
24
- export declare const buildInvoicingCustomerFormOptions: () => InvoicingCustomerFormOptions;
31
+ /** The config option lists the customer form's three pickers are built from. */
32
+ export interface InvoicingCustomerFormConfig {
33
+ customerTypeOptions: InvoicingNamedOption[];
34
+ netTermDayOptions: InvoicingNamedOption[];
35
+ taxabilityOptions: InvoicingNamedOption[];
36
+ }
37
+ /** Select options straight off `/1.0/config`; the backend `name` is the label. */
38
+ export declare const buildInvoicingCustomerFormOptions: ({ customerTypeOptions, netTermDayOptions, taxabilityOptions, }: InvoicingCustomerFormConfig) => InvoicingCustomerFormOptions;
25
39
  /**
26
40
  * Create/edit form values (billing address lives in the Address screen).
27
41
  *
@@ -56,4 +70,4 @@ export interface CustomerEditValues {
56
70
  export declare const localDataToCustomerEditValues: (localData: InvoicingCustomerFormLocalData, options: InvoicingCustomerFormOptions) => CustomerEditValues;
57
71
  export declare const customerEditValuesToLocalData: (values: CustomerEditValues, base: InvoicingCustomerFormLocalData) => InvoicingCustomerFormLocalData;
58
72
  /** Seed the detail-page inline edit form from an existing customer entity. */
59
- export declare const buildCustomerEditDefaults: (customer?: InvoicingCustomer) => CustomerEditValues;
73
+ export declare const buildCustomerEditDefaults: (config: InvoicingCustomerFormConfig, customer?: InvoicingCustomer) => CustomerEditValues;
@@ -1,4 +1,4 @@
1
- import { InvoicingInvoice, InvoicingInvoiceKPIs, InvoicingInvoiceTabId, InvoicingListCounts, VoidInvoiceBody } from '@zeniai/client-epic-state';
1
+ import { InvoicingInvoice, InvoicingInvoiceKPIs, InvoicingInvoiceTabId, InvoicingListCounts, InvoicingNamedOption, VoidInvoiceBody } from '@zeniai/client-epic-state';
2
2
  import { SortState } from '../../dataListTable/types';
3
3
  /**
4
4
  * Presentational Invoices list page for the in-app Invoicing module.
@@ -17,6 +17,8 @@ export interface InvoicingInvoiceListPageProps {
17
17
  isLoadingMore: boolean;
18
18
  searchValue: string;
19
19
  /** CES-owned ordered filter-tab id set. Labels + counts are applied here. */
20
+ /** Config status list; labels the tabs and the row badges. */
21
+ statusOptions: InvoicingNamedOption[];
20
22
  tabIds: InvoicingInvoiceTabId[];
21
23
  countsLoading?: boolean;
22
24
  kpis?: InvoicingInvoiceKPIs;
@@ -35,5 +37,5 @@ export interface InvoicingInvoiceListPageProps {
35
37
  }
36
38
  /** Row overflow-menu actions, mirroring the invoice detail page. */
37
39
  export type InvoicingInvoiceRowAction = "issueCreditNote" | "recordPayment" | "regenerate" | "sendReminder" | "void";
38
- export declare function InvoicingInvoiceListPage({ activeStatus, counts, countsLoading, hasMore, invoices, isLoading, isLoadingMore, kpis, kpisLoading, searchValue, sortState, tabIds, onCreateInvoice, onImportCsv, onInvoiceClick, onLoadMore, onRowAction, onSearchChange, onSortChange, onStatusChange, onVoidInvoice, voidingInvoiceId, }: Readonly<InvoicingInvoiceListPageProps>): import("react/jsx-runtime").JSX.Element;
40
+ export declare function InvoicingInvoiceListPage({ activeStatus, counts, countsLoading, hasMore, invoices, isLoading, isLoadingMore, kpis, kpisLoading, searchValue, sortState, statusOptions, tabIds, onCreateInvoice, onImportCsv, onInvoiceClick, onLoadMore, onRowAction, onSearchChange, onSortChange, onStatusChange, onVoidInvoice, voidingInvoiceId, }: Readonly<InvoicingInvoiceListPageProps>): import("react/jsx-runtime").JSX.Element;
39
41
  export default InvoicingInvoiceListPage;
@@ -1,11 +1,13 @@
1
- import { Amount, IssueCreditNoteFormLocalData } from '@zeniai/client-epic-state';
1
+ import { Amount, InvoicingNamedOption, IssueCreditNoteFormLocalData } from '@zeniai/client-epic-state';
2
2
  export interface InvoicingIssueCreditNotePageProps {
3
3
  currencyCode: string;
4
4
  customerName: string;
5
5
  invoiceNumber: string;
6
6
  isSubmitting: boolean;
7
7
  localData: IssueCreditNoteFormLocalData;
8
- reasonCodeValues: string[];
8
+ /** `/1.0/config` lists behind the reason and type pickers. */
9
+ reasonCodeOptions: InvoicingNamedOption[];
10
+ typeOptions: InvoicingNamedOption[];
9
11
  amountDue?: Amount;
10
12
  errorMessage?: string;
11
13
  onCancel: () => void;
@@ -13,5 +15,5 @@ export interface InvoicingIssueCreditNotePageProps {
13
15
  onSubmit: () => void;
14
16
  onBack?: () => void;
15
17
  }
16
- export declare function InvoicingIssueCreditNotePage({ amountDue, currencyCode, customerName, errorMessage, invoiceNumber, isSubmitting, localData, onBack, onCancel, onChange, onSubmit, reasonCodeValues, }: Readonly<InvoicingIssueCreditNotePageProps>): import("react/jsx-runtime").JSX.Element;
18
+ export declare function InvoicingIssueCreditNotePage({ amountDue, currencyCode, customerName, errorMessage, invoiceNumber, isSubmitting, localData, onBack, onCancel, onChange, onSubmit, reasonCodeOptions, typeOptions, }: Readonly<InvoicingIssueCreditNotePageProps>): import("react/jsx-runtime").JSX.Element;
17
19
  export default InvoicingIssueCreditNotePage;
@@ -1,4 +1,4 @@
1
- import { Amount, IssueCreditNoteFormLocalData, IssueCreditNoteLineItemDraft } from '@zeniai/client-epic-state';
1
+ import { Amount, InvoicingNamedOption, IssueCreditNoteFormLocalData, IssueCreditNoteLineItemDraft } from '@zeniai/client-epic-state';
2
2
  export interface PickerValue {
3
3
  allOptions: {
4
4
  label: string;
@@ -15,13 +15,14 @@ export interface IssueCreditNoteFormLineItem {
15
15
  export type IssueCreditNoteFormValues = {
16
16
  lineItems: IssueCreditNoteFormLineItem[];
17
17
  reasonCode: PickerValue;
18
+ type: PickerValue;
18
19
  };
19
- export declare const REASON_CODE_LABELS: Record<string, string>;
20
- export declare const reasonCodeOptions: (reasonCodeValues: string[]) => {
21
- label: string;
22
- value: string;
23
- }[];
24
- export declare const localDataToIssueCreditNoteFormValues: (localData: IssueCreditNoteFormLocalData, reasonCodeValues: string[]) => IssueCreditNoteFormValues;
20
+ /** The config option lists behind the credit note's two pickers. */
21
+ export interface IssueCreditNoteConfigOptions {
22
+ reasonCodeOptions: InvoicingNamedOption[];
23
+ typeOptions: InvoicingNamedOption[];
24
+ }
25
+ export declare const localDataToIssueCreditNoteFormValues: (localData: IssueCreditNoteFormLocalData, { reasonCodeOptions, typeOptions }: IssueCreditNoteConfigOptions) => IssueCreditNoteFormValues;
25
26
  export declare const issueCreditNoteFormValuesToLocalData: (values: IssueCreditNoteFormValues, lineItems: IssueCreditNoteLineItemDraft[]) => IssueCreditNoteFormLocalData;
26
27
  /** Folds the form's editable row fields back onto the page's draft rows. */
27
28
  export declare const applyFormLineItems: (lineItems: IssueCreditNoteLineItemDraft[], formLineItems: (IssueCreditNoteFormLineItem | undefined)[] | undefined, toUnitAmount: (amount: number) => Amount) => IssueCreditNoteLineItemDraft[];
@@ -1,4 +1,4 @@
1
- import { RecordPaymentFormLocalData } from '@zeniai/client-epic-state';
1
+ import { InvoicingNamedOption, RecordPaymentFormLocalData } from '@zeniai/client-epic-state';
2
2
  import { InvoicingRecordPaymentCustomerOption, InvoicingRecordPaymentInvoiceOption } from './recordPayment.shared';
3
3
  export type { InvoicingRecordPaymentCustomerOption } from './recordPayment.shared';
4
4
  export type { InvoicingRecordPaymentInvoiceOption } from './recordPayment.shared';
@@ -13,11 +13,11 @@ export interface InvoicingRecordPaymentInvoiceContext {
13
13
  }
14
14
  export interface InvoicingRecordPaymentPageProps {
15
15
  customers: InvoicingRecordPaymentCustomerOption[];
16
- gatewayValues: string[];
16
+ gatewayOptions: InvoicingNamedOption[];
17
17
  isSubmitting: boolean;
18
18
  localData: RecordPaymentFormLocalData;
19
19
  mode: InvoicingRecordPaymentMode;
20
- paymentMethodValues: string[];
20
+ paymentMethodOptions: InvoicingNamedOption[];
21
21
  errorMessage?: string;
22
22
  invoiceContext?: InvoicingRecordPaymentInvoiceContext;
23
23
  invoiceOptions?: InvoicingRecordPaymentInvoiceOption[];
@@ -31,5 +31,5 @@ export interface InvoicingRecordPaymentPageProps {
31
31
  * is synced back on every change; submit triggers the CES-stored draft. Currency
32
32
  * is locked to USD.
33
33
  */
34
- export declare function InvoicingRecordPaymentPage({ customers, errorMessage, gatewayValues, invoiceContext, invoiceOptions, isSubmitting, localData, mode, onBack, onCancel, onChange, onSubmit, paymentMethodValues, }: Readonly<InvoicingRecordPaymentPageProps>): import("react/jsx-runtime").JSX.Element;
34
+ export declare function InvoicingRecordPaymentPage({ customers, errorMessage, gatewayOptions, invoiceContext, invoiceOptions, isSubmitting, localData, mode, onBack, onCancel, onChange, onSubmit, paymentMethodOptions, }: Readonly<InvoicingRecordPaymentPageProps>): import("react/jsx-runtime").JSX.Element;
35
35
  export default InvoicingRecordPaymentPage;
@@ -1,4 +1,9 @@
1
- import { RecordPaymentFormLocalData } from '@zeniai/client-epic-state';
1
+ import { InvoicingNamedOption, RecordPaymentFormLocalData } from '@zeniai/client-epic-state';
2
+ /**
3
+ * Web-components glue for the Record Payment form. CES owns the draft `LocalData`
4
+ * and the payment-method / gateway value sets; this module maps those (plus the
5
+ * connector-supplied customer list) to the form's UI value shapes and back.
6
+ */
2
7
  export interface InvoicingRecordPaymentCustomerOption {
3
8
  id: string;
4
9
  name: string;
@@ -33,18 +38,10 @@ export type RecordPaymentFormValues = Omit<RecordPaymentFormLocalData, "amount"
33
38
  };
34
39
  export interface RecordPaymentFormOptions {
35
40
  customers: InvoicingRecordPaymentCustomerOption[];
36
- gatewayValues: string[];
37
- paymentMethodValues: string[];
41
+ gatewayOptions: InvoicingNamedOption[];
42
+ paymentMethodOptions: InvoicingNamedOption[];
38
43
  invoiceOptions?: InvoicingRecordPaymentInvoiceOption[];
39
44
  }
40
- export declare const buildPaymentMethodOptions: (values: string[]) => {
41
- label: string;
42
- value: string;
43
- }[];
44
- export declare const buildGatewayOptions: (values: string[]) => {
45
- label: string;
46
- value: string;
47
- }[];
48
45
  export declare const buildInvoiceOptions: (invoiceOptions: InvoicingRecordPaymentInvoiceOption[]) => {
49
46
  label: string;
50
47
  value: string;