@solvimon/solvimon-web 0.1.0-alpha.19 → 0.1.0-alpha.20
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 +9 -7
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Y3CzulQq.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Ce30EXY5.mjs} +8 -9
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-kmam2c7P.js +1 -0
- package/dist/{Amount.vue.es-CRG-6dps.mjs → Amount.vue.es-BO5sS1UX.mjs} +4 -2
- package/dist/Amount.vue.es-JDVa_3H-.js +1 -0
- package/dist/{Avatar.vue.es-ClUBm_l5.js → Avatar.vue.es-BGTZSAqU.js} +1 -1
- package/dist/{Avatar.vue.es-DJp6NEU_.mjs → Avatar.vue.es-DJzJiYtv.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BUMK11Dw.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Bq2mTdUs.mjs} +5 -6
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DzrInCPA.js → BillingInformation.vue_vue_type_script_setup_true_lang-BtNTRSqH.js} +1 -1
- package/dist/{Button.vue.es-BrWHdiEA.mjs → Button.vue.es-Cm9pLU9i.mjs} +61 -93
- package/dist/Button.vue.es-O8mNivLL.js +1 -0
- package/dist/Chip.vue.es-BBmn-qJp.mjs +120 -0
- package/dist/Chip.vue.es-DmCjC1hi.js +1 -0
- package/dist/{Comparators.vue.es-CU32AC4n.mjs → Comparators.vue.es-CYfxd5H-.mjs} +1 -1
- package/dist/{Comparators.vue.es-CfVGYJ_x.js → Comparators.vue.es-DK8wGjxM.js} +1 -1
- package/dist/{ContextMenu.vue.es-BBPFQfqY.mjs → ContextMenu.vue.es-CTc1ktXb.mjs} +23 -23
- package/dist/ContextMenu.vue.es-DaW0yp4Y.js +1 -0
- package/dist/{CustomerBillingInformation.vue.es-s-LYXA4T.js → CustomerBillingInformation.vue.es-BX0Da7Kr.js} +1 -1
- package/dist/{CustomerBillingInformation.vue.es-CLmXk5B9.mjs → CustomerBillingInformation.vue.es-CMZO8oLj.mjs} +3 -3
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bi_dCntQ.js +1 -0
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B2CtcBm0.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CtdFharm.mjs} +8 -10
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Bej5_H7r.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BDqBXbJq.mjs} +37 -34
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-ZyN2vlNu.js +1 -0
- package/dist/{DividerText.vue.es-DMg-DNgi.mjs → DividerText.vue.es-CeAHAe_Y.mjs} +1 -1
- package/dist/{DividerText.vue.es-D5ieOE1e.js → DividerText.vue.es-DjT4i_YD.js} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CTG5XdQt.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DLE5-9wz.mjs} +16 -16
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-5I81Qr6q.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DkIK-lID.js} +1 -1
- package/dist/ErrorNotification.vue.es-CHyVTBGs.mjs +38 -0
- package/dist/ErrorNotification.vue.es-CaEFTi2k.js +1 -0
- package/dist/FormMessage.vue.es-Bd4_NG9H.js +1 -0
- package/dist/{FormMessage.vue.es-DFQXxiSC.mjs → FormMessage.vue.es-C3oxwq_8.mjs} +3 -3
- package/dist/IconButton.vue.es-BHdQskx0.js +1 -0
- package/dist/{IconButton.vue.es-DcC4f5EQ.mjs → IconButton.vue.es-KywqWWvr.mjs} +20 -23
- package/dist/{IconTitle.vue.es-mQCMxc64.mjs → IconTitle.vue.es-BmjBdZb_.mjs} +13 -11
- package/dist/IconTitle.vue.es-D9Wc3PIq.js +1 -0
- package/dist/Input.vue.es-DqKJhFTr.js +1 -0
- package/dist/{Input.vue.es-Dp_RH03h.mjs → Input.vue.es-WZGF8dfr.mjs} +28 -16
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-56fy6uY6.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B6efz7NU.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CLUcV3qa.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-LE6zBLKM.js} +1 -1
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-ztaMeHQc.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-C2aLMfu6.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-flgEyaoj.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-CtpFzWU3.js} +1 -1
- package/dist/{InvoiceSummary.vue.es-nCYeQ4tj.mjs → InvoiceSummary.vue.es-BI5sD_8F.mjs} +1057 -671
- package/dist/InvoiceSummary.vue.es-BWYIHezU.js +1 -0
- package/dist/Modal.vue.es-B_1aqm_m.js +1 -0
- package/dist/{Modal.vue.es-5EpA4Q0t.mjs → Modal.vue.es-qdUHDOnU.mjs} +172 -56
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-BKKXQbge.js +1 -0
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-D7IX9qqy.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-Ch1TFO7x.mjs} +7 -8
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-C8nvN-6f.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CsH47WSM.mjs} +3 -3
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D1oKZZ_m.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-mKNNYnMU.js} +1 -1
- package/dist/{PaymentHistoryBlock-Dejtgyos.mjs → PaymentHistoryBlock-CgNUV8Gy.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-RBxlC5xt.js → PaymentHistoryBlock-Ci8aSJeb.js} +1 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DZwnDzha.js +1 -0
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dk52bjJd.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Uj1aK-dp.mjs} +16 -16
- package/dist/{PaymentIntegrationForm-CbqfAdkc.mjs → PaymentIntegrationForm-CLokpXvK.mjs} +1 -1
- package/dist/{PaymentIntegrationForm-BWr7iyU6.js → PaymentIntegrationForm-CsuueDE0.js} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJHwpswk.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CRUs7sP4.mjs} +26 -8
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-kKkzRi6w.js +1 -0
- package/dist/{PaymentIntegrationFormAdyen-CuRwe9_9.mjs → PaymentIntegrationFormAdyen-C885o8IE.mjs} +37 -29
- package/dist/PaymentIntegrationFormAdyen-Co19AgvG.js +1 -0
- package/dist/{PaymentIntegrationFormStripe-JZw2m1kJ.mjs → PaymentIntegrationFormStripe-BjMdJmDC.mjs} +8 -6
- package/dist/PaymentIntegrationFormStripe-DWff6wzK.js +1 -0
- package/dist/PaymentMethod.vue.es-CdskNJ3Z.js +1 -0
- package/dist/PaymentMethod.vue.es-rv-pu1CC.mjs +677 -0
- package/dist/{PaymentMethodForm-C5WqTDow.mjs → PaymentMethodForm-IEuDxEPN.mjs} +1 -1
- package/dist/{PaymentMethodForm-CBjHdZT7.js → PaymentMethodForm-hZuVHAti.js} +1 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-Cj60U90J.js +1 -0
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DhPTbip8.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-gA74Rak9.mjs} +21 -8
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-B3H_AWMM.js +1 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DbTvbHk7.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CTn-OxM6.mjs} +7 -7
- package/dist/{PricingGroupRangeInput.vue.es-A6eW-u2k.mjs → PricingGroupRangeInput.vue.es-ButaePib.mjs} +13 -17
- package/dist/PricingGroupRangeInput.vue.es-Cls2lm80.js +1 -0
- package/dist/{Section.vue.es-tLYXp-tF.js → Section.vue.es-CAJvEDn6.js} +1 -1
- package/dist/{Section.vue.es-MEFUWCxU.mjs → Section.vue.es-DX_9ueCG.mjs} +1 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CQAkPfJz.js +1 -0
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xvgyB2Yr.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DVtMzgjc.mjs} +31 -37
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BJVXCHny.js +1 -0
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-B_Zkbqx2.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-ByO-L6nm.mjs} +171 -105
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cj36jvZF.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-C5zB3CgZ.mjs} +4 -4
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CabskT-r.js +1 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D-T1wGg7.js +1 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CfXgGKXA.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DKd2DIVb.mjs} +12 -13
- package/dist/{TooltipParagraph.vue.es-B5aHQv9O.mjs → TooltipParagraph.vue.es-C5RTcrid.mjs} +3 -3
- package/dist/{TooltipParagraph.vue.es-fSwKGXKg.js → TooltipParagraph.vue.es-H9fI7zzt.js} +1 -1
- package/dist/{TrialChip.vue.es-Fp7Lqo-b.mjs → TrialChip.vue.es-B1puKyR-.mjs} +3 -3
- package/dist/TrialChip.vue.es-CCs50m02.js +1 -0
- package/dist/accel.svg.es-CE5tIWtm.mjs +4 -0
- package/dist/accel.svg.es-Dt_1wJmV.js +1 -0
- package/dist/ach.svg.es-B4tn0_IV.js +1 -0
- package/dist/ach.svg.es-D4QPcIU-.mjs +4 -0
- package/dist/{adyen-Ba-mF3Jy.mjs → adyen-BXi_D9TQ.mjs} +14 -21
- package/dist/adyen-VS2sDW0m.js +1 -0
- package/dist/amazon-pay.svg.es-B428S4f3.js +1 -0
- package/dist/amazon-pay.svg.es-DUScOW15.mjs +4 -0
- package/dist/amex.svg.es-BCXkaVLN.mjs +4 -0
- package/dist/amex.svg.es-Bn9e31C3.js +1 -0
- package/dist/apple-pay.svg.es-Cfgn0K28.js +1 -0
- package/dist/apple-pay.svg.es-DlCfkt39.mjs +4 -0
- package/dist/bacs.svg.es-BKsvSeIP.mjs +4 -0
- package/dist/bacs.svg.es-hL7hLPkQ.js +1 -0
- package/dist/bancontact.svg.es-BbRqGgZ9.mjs +4 -0
- package/dist/bancontact.svg.es-DU2ejvNL.js +1 -0
- package/dist/carnet.svg.es-C5SFaOsa.js +1 -0
- package/dist/carnet.svg.es-Db-KEb13.mjs +4 -0
- package/dist/cartes-bancaires.svg.es-ByD-JAAi.mjs +4 -0
- package/dist/cartes-bancaires.svg.es-CbBJQZrk.js +1 -0
- package/dist/cashapp.svg.es-CnS5r_D8.mjs +4 -0
- package/dist/cashapp.svg.es-DE4vMu_p.js +1 -0
- package/dist/{cn.es-DB5pDpxS.mjs → cn.es-BEU5D0Wz.mjs} +4 -4
- package/dist/cn.es-DxSeYcoP.js +1 -0
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
- package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +8 -8
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
- package/dist/components/Invoice/Invoice.cjs +1 -1
- package/dist/components/Invoice/Invoice.mjs +19 -19
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +3 -3
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
- package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.mjs +3 -3
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
- package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
- package/dist/{customElements-DdFA__me.mjs → customElements-B-89a5oH.mjs} +134 -53
- package/dist/customElements-DD7bpqkx.js +1 -0
- package/dist/{customer-D7HUfF3j.js → customer-DozNwS_a.js} +1 -1
- package/dist/{customer-B0AMetq6.mjs → customer-Dzj1g9lV.mjs} +1 -1
- package/dist/dana.svg.es-Bbn6_ktN.mjs +4 -0
- package/dist/dana.svg.es-DKZaseoJ.js +1 -0
- package/dist/dankort.svg.es-D8FgSiFf.js +1 -0
- package/dist/dankort.svg.es-DtAdliQq.mjs +4 -0
- package/dist/de-DE-BeyQVhTv.mjs +299 -0
- package/dist/de-DE-BvHD68Ay.js +1 -0
- package/dist/de-DE-CI2zQkiP.mjs +266 -0
- package/dist/de-DE-_40QfLNJ.js +1 -0
- package/dist/diners.svg.es-DhchsD1D.mjs +4 -0
- package/dist/diners.svg.es-SydF_H-Z.js +1 -0
- package/dist/discover.svg.es-B8vgzVNG.js +1 -0
- package/dist/discover.svg.es-BnqYPvnV.mjs +4 -0
- package/dist/eftpos.svg.es-DO0YPaY1.js +1 -0
- package/dist/eftpos.svg.es-DRLaafYa.mjs +4 -0
- package/dist/elo.svg.es-CTOm1rvj.js +1 -0
- package/dist/elo.svg.es-CgkEOP_O.mjs +4 -0
- package/dist/en-US--NRsi7Hz.js +1 -0
- package/dist/{en-US-D0P7NNNZ.mjs → en-US-5YWNEi-V.mjs} +72 -1
- package/dist/{en-US-Daw3v6GD.mjs → en-US-DksUWPIu.mjs} +10 -0
- package/dist/en-US-dqfKx3GS.js +1 -0
- package/dist/eps.svg.es-CApyGjyU.js +1 -0
- package/dist/eps.svg.es-D6IHsRYP.mjs +4 -0
- package/dist/formatting.es-DBtYnvI5.js +1 -0
- package/dist/{formatting.es-D-oVnc8H.mjs → formatting.es-eYgXv_AK.mjs} +3 -1
- package/dist/gcash.svg.es-BhJ-eA2z.mjs +4 -0
- package/dist/gcash.svg.es-JaL4fpZr.js +1 -0
- package/dist/girocard.svg.es-D_3LML4l.mjs +4 -0
- package/dist/girocard.svg.es-tVgtT23w.js +1 -0
- package/dist/go-pay.svg.es-6UtgwVBA.mjs +4 -0
- package/dist/go-pay.svg.es-fYX6yMzJ.js +1 -0
- package/dist/google-pay.svg.es-BYXX1em8.js +1 -0
- package/dist/google-pay.svg.es-CRxXgFVl.mjs +4 -0
- package/dist/hipercard.svg.es-Ct1-mF9F.mjs +4 -0
- package/dist/hipercard.svg.es-D-nmiFXB.js +1 -0
- package/dist/icon-sprite.svg.es-BpwT0GQ5.js +1 -0
- package/dist/icon-sprite.svg.es-YYqtl2IP.mjs +4 -0
- package/dist/ideal.svg.es-D23EhJJ2.mjs +4 -0
- package/dist/ideal.svg.es-DXtHE0Jb.js +1 -0
- package/dist/{index-C5bKRt7l.mjs → index-Cai7laNY.mjs} +1 -1
- package/dist/{index-BJ3dHkSK.js → index-IZaUTAsE.js} +1 -1
- package/dist/{index.es-0cystq8F.mjs → index.es-D5xOw_SJ.mjs} +2 -2
- package/dist/{invoices-BSd-nKeE.mjs → invoices-1oYkdQQV.mjs} +1 -1
- package/dist/{invoices-BiqM6xN6.js → invoices-BAoh6X2a.js} +1 -1
- package/dist/it-IT-B6blp8MI.mjs +299 -0
- package/dist/it-IT-CEP3oeWs.js +1 -0
- package/dist/it-IT-CMy1tHKZ.mjs +266 -0
- package/dist/it-IT-aPQY57ht.js +1 -0
- package/dist/jcb.svg.es-Bz6J-c0s.js +1 -0
- package/dist/jcb.svg.es-CcH08OoO.mjs +4 -0
- package/dist/kakao-pay.svg.es-DcgRDAsc.mjs +4 -0
- package/dist/kakao-pay.svg.es-qVTABboW.js +1 -0
- package/dist/klarna.svg.es-Clu-7zkp.js +1 -0
- package/dist/klarna.svg.es-DfIPX0gr.mjs +4 -0
- package/dist/maestro.svg.es-CVmNVokN.mjs +4 -0
- package/dist/maestro.svg.es-e8E_H2QU.js +1 -0
- package/dist/mastercard.svg.es-B8z0ZySS.mjs +4 -0
- package/dist/mastercard.svg.es-YO3_jGD6.js +1 -0
- package/dist/momo.svg.es-BXTQlQRy.js +1 -0
- package/dist/momo.svg.es-Bm5zCTOT.mjs +4 -0
- package/dist/{nl-NL-B4zEBFTw.mjs → nl-NL-CckNM7R9.mjs} +10 -0
- package/dist/nl-NL-CjoW8r_M.mjs +314 -0
- package/dist/nl-NL-e_vf6OuT.js +1 -0
- package/dist/nl-NL-zRUAuEHg.js +1 -0
- package/dist/nyce.svg.es-CgurqLKH.mjs +4 -0
- package/dist/nyce.svg.es-DM6esO47.js +1 -0
- package/dist/open-banking.svg.es-DUM360xB.js +1 -0
- package/dist/open-banking.svg.es-DzzLCVp_.mjs +4 -0
- package/dist/{paymentMethods-Cu2RzLgm.js → paymentMethods-CZ3ydybI.js} +1 -1
- package/dist/{paymentMethods-BsrkEbKT.mjs → paymentMethods-DIV78w0O.mjs} +1 -1
- package/dist/{payments-Bbm1HMQj.js → payments--lkjiwCt.js} +1 -1
- package/dist/{payments-B6Nfd6Al.mjs → payments-Cvqdrprv.mjs} +1 -1
- package/dist/paypal.svg.es-BdkNTf3c.js +1 -0
- package/dist/paypal.svg.es-DltWzW4V.mjs +4 -0
- package/dist/pulse.svg.es-BdpWAuIN.js +1 -0
- package/dist/pulse.svg.es-BecAwT-p.mjs +4 -0
- package/dist/screens/Checkout/Checkout.cjs +1 -1
- package/dist/screens/Checkout/Checkout.mjs +62 -62
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +10 -10
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
- package/dist/screens/PayInvoice/PayInvoice.mjs +141 -38
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +12 -14
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +28 -31
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +18 -18
- package/dist/sepa.svg.es-BF8PYKZg.js +1 -0
- package/dist/sepa.svg.es-cbE9g8gV.mjs +4 -0
- package/dist/star.svg.es-DsCD-tSp.mjs +4 -0
- package/dist/star.svg.es-Q50IzqXr.js +1 -0
- package/dist/{subscriptions-B4BOzLxR.js → subscriptions-300o4ae0.js} +1 -1
- package/dist/{subscriptions-C2C4WTuI.mjs → subscriptions-DcMHBPVJ.mjs} +1 -1
- package/dist/trustly.svg.es-C0Ou1HWk.mjs +4 -0
- package/dist/trustly.svg.es-CHojqNqm.js +1 -0
- package/dist/twint.svg.es-CQ-ZDfy8.js +1 -0
- package/dist/twint.svg.es-WrZYquRs.mjs +4 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentMethodsUnavailableCard/PaymentMethodsUnavailableCard.types.d.ts +8 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +8 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +32 -2
- package/dist/types/translations/supported.d.ts +1 -1
- package/dist/unionpay.svg.es-DYgo83Hf.mjs +4 -0
- package/dist/unionpay.svg.es-YqJKKFEj.js +1 -0
- package/dist/url-CjULBkjW.js +1 -0
- package/dist/url-CvNDq4wp.mjs +22 -0
- package/dist/{useActionDispatchProvider-D55t_7LY.mjs → useActionDispatchProvider-BVOBO0Jx.mjs} +1 -1
- package/dist/{useActionDispatchProvider-Cz8xLLYA.js → useActionDispatchProvider-Cv9amjTf.js} +1 -1
- package/dist/{useCustomer-DYCpgA-3.js → useCustomer-DLHOs4BR.js} +1 -1
- package/dist/{useCustomer-BNhHz9RJ.mjs → useCustomer-EDhref7T.mjs} +1 -1
- package/dist/{useCustomerFormLabels-mX5QpApD.mjs → useCustomerFormLabels-B61-4xQ7.mjs} +111 -85
- package/dist/useCustomerFormLabels-C6wW4n2e.js +1 -0
- package/dist/useExperimentalFeature-0yFoaEzV.js +1 -0
- package/dist/useExperimentalFeature-DvxOrFPU.mjs +9 -0
- package/dist/{useInvoiceData-BczeMpuk.js → useInvoiceData-BSjVeJrI.js} +1 -1
- package/dist/{useInvoiceData-D-EvEioP.mjs → useInvoiceData-C0Y5WrbT.mjs} +2 -2
- package/dist/useInvoicesList-BRDZqsaB.js +1 -0
- package/dist/{useInvoicesList-BJJYwkIA.mjs → useInvoicesList-CYoE7q0u.mjs} +220 -184
- package/dist/{useLoadInitialData-BoGjdUu-.mjs → useLoadInitialData-Cp1OA8y6.mjs} +1 -1
- package/dist/{useLoadInitialData-CiJldX50.js → useLoadInitialData-u7IyXqb6.js} +1 -1
- package/dist/usePaymentMethodAvailability-B3s1lqQ2.js +1 -0
- package/dist/usePaymentMethodAvailability-EuhZPghG.mjs +141 -0
- package/dist/{usePaymentMethodOptions-fBvWYynV.js → usePaymentMethodOptions--8QpMvNm.js} +1 -1
- package/dist/{usePaymentMethodOptions-d49aOdLB.mjs → usePaymentMethodOptions-Cljh7HYp.mjs} +1 -1
- package/dist/{usePaymentMethods-Bkouz8aQ.mjs → usePaymentMethods-BJzoI8dZ.mjs} +1 -1
- package/dist/{usePaymentMethods-CFL3hFW_.js → usePaymentMethods-DvEnJWmB.js} +1 -1
- package/dist/usePayments-CANj0QVc.js +1 -0
- package/dist/{usePayments-BlliAt1E.mjs → usePayments-CaT1CBzE.mjs} +159 -59
- package/dist/{usePortal-fhri8neB.js → usePortal-BjGoSeLy.js} +1 -1
- package/dist/{usePortal-eyA4OqjU.mjs → usePortal-CMPQ0M9R.mjs} +1 -1
- package/dist/{useSubscription--IGLmLS6.mjs → useSubscription-D1UKnZAx.mjs} +1 -1
- package/dist/{useSubscription-V3KSuhOY.js → useSubscription-DZfRHbL7.js} +1 -1
- package/dist/visa.svg.es-B6aU_qRs.mjs +4 -0
- package/dist/visa.svg.es-D6sc4YTE.js +1 -0
- package/dist/vpay.svg.es-4qIqS4aX.mjs +4 -0
- package/dist/vpay.svg.es-CLGTyB09.js +1 -0
- package/dist/zip.svg.es-3PzSBe1E.mjs +4 -0
- package/dist/zip.svg.es-BRsgmur-.js +1 -0
- package/package.json +14 -2
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang--AVI4Q4E.js +0 -1
- package/dist/Amount.vue.es-CeW8S7kT.js +0 -1
- package/dist/Button.vue.es-aLcIdATK.js +0 -1
- package/dist/Chip.vue.es-DPGTweAr.mjs +0 -164
- package/dist/Chip.vue.es-q4c-DXXl.js +0 -1
- package/dist/ContextMenu.vue.es-C_TL7-kg.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CMIVAoQq.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BP-VRwEM.js +0 -1
- package/dist/ErrorNotification.vue.es-BX3khKFc.js +0 -1
- package/dist/ErrorNotification.vue.es-C22Kt8Qn.mjs +0 -30
- package/dist/FormMessage.vue.es-LeWoj774.js +0 -1
- package/dist/IconButton.vue.es-CVFn0Ntj.js +0 -1
- package/dist/IconTitle.vue.es-DoN4GVde.js +0 -1
- package/dist/Input.vue.es-C8VhMKuI.js +0 -1
- package/dist/InvoiceSummary.vue.es-emE-mCFh.js +0 -1
- package/dist/Modal.vue.es-CX5geho3.js +0 -1
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-B_IIOBjg.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BdfWchcQ.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D8fkE1yG.js +0 -1
- package/dist/PaymentIntegrationFormAdyen-BjPpoLF7.js +0 -1
- package/dist/PaymentIntegrationFormStripe-51KZc27R.js +0 -1
- package/dist/PaymentMethod.vue.es-CH__kPw4.mjs +0 -636
- package/dist/PaymentMethod.vue.es-uVZO0Zju.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BktA5F4r.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-XPz73RVU.js +0 -1
- package/dist/PricingGroupRangeInput.vue.es-BuQeJCEX.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Jk34S5B7.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CttBs_G8.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Dl5Lg39D.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CTnTWaB8.js +0 -1
- package/dist/TrialChip.vue.es-0nrqSZeY.js +0 -1
- package/dist/adyen-BMDZQBUG.js +0 -1
- package/dist/cn.es-BLHlMR4Y.js +0 -1
- package/dist/customElements-BTJzBHMy.js +0 -1
- package/dist/en-US-BSrbFk5W.js +0 -1
- package/dist/en-US-scSQQXK8.js +0 -1
- package/dist/formatting.es-9hM8aHSg.js +0 -1
- package/dist/nl-NL-B5tuyIOM.mjs +0 -88
- package/dist/nl-NL-Bs3d8q6T.js +0 -1
- package/dist/nl-NL-DIAZWDF9.js +0 -1
- package/dist/useCustomerFormLabels-Cw6QpEJY.js +0 -1
- package/dist/useInvoicesList-rMg-8LbH.js +0 -1
- package/dist/usePayments-BKTNn_RN.js +0 -1
package/README.md
CHANGED
|
@@ -240,6 +240,7 @@ The SDK emits structured log entries via the [`onLog`](#error-logging) callback.
|
|
|
240
240
|
| `INVALID_REDIRECT_RESULT` | Redirect result is set but payment acceptor id is missing |
|
|
241
241
|
| `INVALID_TOKEN` | Failed to fetch access token |
|
|
242
242
|
| `INVOICE_PREVIEW_FAILED` | Failed to load top-up invoice preview |
|
|
243
|
+
| `NO_PAYMENT_METHODS_AVAILABLE` | No payment method can be offered to the customer |
|
|
243
244
|
| `PAYMENT_AUTHORIZATION_FAILED` | Failed payment authorization for payment acceptor with id… |
|
|
244
245
|
| `PAYMENT_DETAILS_CALL_FAILED` | Failed fetching payment details |
|
|
245
246
|
| `PAYMENT_INTEGRATION_INITIALIZATION_FAILED` | Failed to mount Adyen web drop-in |
|
|
@@ -262,12 +263,13 @@ The SDK emits structured log entries via the [`onLog`](#error-logging) callback.
|
|
|
262
263
|
|
|
263
264
|
### Warning codes
|
|
264
265
|
|
|
265
|
-
| Code
|
|
266
|
-
|
|
|
267
|
-
| `ACTIVE_SCHEDULE_NOT_FOUND`
|
|
268
|
-
| `ADYEN_INVALID_CONFIGURATION`
|
|
269
|
-
| `APPLE_PAY_ACTION_REQUIRED`
|
|
270
|
-
| `INVOICE_PREVIEW_SKIPPED`
|
|
271
|
-
| `
|
|
266
|
+
| Code | Description |
|
|
267
|
+
| :----------------------------------- | :-------------------------------------------------------------- |
|
|
268
|
+
| `ACTIVE_SCHEDULE_NOT_FOUND` | No schedule is currently being billed |
|
|
269
|
+
| `ADYEN_INVALID_CONFIGURATION` | No environment set for adyen advanced flow, defaulted to live |
|
|
270
|
+
| `APPLE_PAY_ACTION_REQUIRED` | Payment requires additional action |
|
|
271
|
+
| `INVOICE_PREVIEW_SKIPPED` | Skipped the top-up invoice preview: no schedule to charge it on |
|
|
272
|
+
| `PAYMENT_INTEGRATION_NOT_RENDERABLE` | No Adyen payment methods to offer |
|
|
273
|
+
| `TRANSLATION_LOAD_FAILED` | Failed to load translations for locale… |
|
|
272
274
|
|
|
273
275
|
<!-- log-codes:end — DO NOT EDIT: auto-generated by `npm run logs:list` -->
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { computed, defineComponent, toRef, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, createTextVNode, toDisplayString, unref, Fragment, createElementVNode, createVNode, createCommentVNode, defineAsyncComponent, ref, watch } from "vue";
|
|
2
|
-
import { _ as _sfc_main$4 } from "./PaymentMethod.vue.es-
|
|
3
|
-
import { a as _sfc_main$5 } from "./Button.vue.es-
|
|
4
|
-
import { _ as _sfc_main$7 } from "./FormMessage.vue.es-
|
|
5
|
-
import { _ as _sfc_main$2, a as _sfc_main$3 } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { u as useIntl, _ as _sfc_main$6 } from "./customElements-
|
|
2
|
+
import { _ as _sfc_main$4 } from "./PaymentMethod.vue.es-rv-pu1CC.mjs";
|
|
3
|
+
import { a as _sfc_main$5 } from "./Button.vue.es-Cm9pLU9i.mjs";
|
|
4
|
+
import { _ as _sfc_main$7 } from "./FormMessage.vue.es-C3oxwq_8.mjs";
|
|
5
|
+
import { _ as _sfc_main$2, a as _sfc_main$3 } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DLE5-9wz.mjs";
|
|
6
|
+
import { u as useIntl, _ as _sfc_main$6 } from "./customElements-B-89a5oH.mjs";
|
|
7
7
|
const humanise = (value) => value.replaceAll("_", " ").toLowerCase().replace(/^./, (character) => character.toUpperCase());
|
|
8
8
|
function getAccessibleName(paymentMethod) {
|
|
9
9
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -134,8 +134,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
134
134
|
__props.showAddOption && canAddPaymentMethod.value ? (openBlock(), createBlock(unref(_sfc_main$5), {
|
|
135
135
|
key: 0,
|
|
136
136
|
class: "sv-action sv-action--secondary sv-action--full-width sv-payment-method-selector__add w-full",
|
|
137
|
-
|
|
138
|
-
color: "gray",
|
|
137
|
+
intent: "secondary",
|
|
139
138
|
"icon-prefix": "add",
|
|
140
139
|
type: "button",
|
|
141
140
|
size: "sm",
|
|
@@ -153,7 +152,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
153
152
|
}, 8, ["disabled"])) : __props.showAddOption ? (openBlock(), createBlock(unref(_sfc_main$6), {
|
|
154
153
|
key: 1,
|
|
155
154
|
variant: "body-sm",
|
|
156
|
-
|
|
155
|
+
color: "subtle",
|
|
157
156
|
tag: "p",
|
|
158
157
|
class: "sv-payment-method-selector__unavailable"
|
|
159
158
|
}, {
|
|
@@ -188,7 +187,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
188
187
|
emits: ["success", "failure"],
|
|
189
188
|
setup(__props, { expose: __expose }) {
|
|
190
189
|
const PaymentMethodForm = defineAsyncComponent(
|
|
191
|
-
() => import("./PaymentMethodForm-
|
|
190
|
+
() => import("./PaymentMethodForm-IEuDxEPN.mjs").then((m) => m.default)
|
|
192
191
|
);
|
|
193
192
|
const props = __props;
|
|
194
193
|
const configuration = computed(() => ({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),t=require("./PaymentMethod.vue.es-CdskNJ3Z.js"),o=require("./Button.vue.es-O8mNivLL.js"),a=require("./FormMessage.vue.es-Bd4_NG9H.js"),n=require("./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DkIK-lID.js"),r=require("./customElements-DD7bpqkx.js"),s=e=>e.replaceAll("_"," ").toLowerCase().replace(/^./,e=>e.toUpperCase());function l(e){var t,o,a,n,r,l;const i=[];switch(e.type){case"CARD":i.push(e.card.brand&&s(e.card.brand),e.card.last_four_digits);break;case"ONLINE_BANKING":i.push((null==(t=e.online_banking)?void 0:t.variant)&&s(e.online_banking.variant),null==(o=e.online_banking)?void 0:o.owner_name);break;case"DIRECT_DEBIT":i.push((null==(a=e.direct_debit)?void 0:a.variant)&&s(e.direct_debit.variant),null==(n=e.direct_debit)?void 0:n.owner_name);break;case"BUY_NOW_PAY_LATER":i.push((null==(r=e.buy_now_pay_later)?void 0:r.variant)&&s(e.buy_now_pay_later.variant));break;case"DIGITAL_WALLET":i.push((null==(l=e.digital_wallet)?void 0:l.variant)&&s(e.digital_wallet.variant))}return i.filter(Boolean).join(" ")||s(e.type)}const i={class:"sr-only"},d=e.defineComponent({__name:"PaymentMethodSelector",props:{paymentMethods:{type:Array},modelValue:{type:String},label:{type:String},required:{type:Boolean},disabled:{type:Boolean},error:{type:[String,Object,Array]},rootClass:{type:String},showAddOption:{type:Boolean,default:!0},paymentMethodOptions:{type:Array}},emits:["update:modelValue","add-payment-method"],setup(s,{emit:d}){const m=s,c=d,{$t:p}=r.useIntl(),{options:u,paymentMethodsById:y}=(_=e.toRef(m,"paymentMethods"),{options:e.computed(()=>_.value.map(e=>({value:e.id,label:l(e)}))),paymentMethodsById:e.computed(()=>Object.fromEntries(_.value.map(e=>[e.id,e])))});var _;const h=e.computed({get:()=>m.modelValue,set:e=>c("update:modelValue","string"==typeof e?e:void 0)}),v=e.computed(()=>m.paymentMethods.length>0),f=e.computed(()=>{var e;return 0!==(null==(e=m.paymentMethodOptions)?void 0:e.length)});return(l,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["sv-payment-method-selector grid grid-cols-1 gap-2",s.rootClass])},[v.value||f.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",null,[v.value?(e.openBlock(),e.createBlock(e.unref(n._sfc_main$1),{key:0,modelValue:h.value,"onUpdate:modelValue":d[0]||(d[0]=e=>h.value=e),class:"sv-payment-method-selector__options",name:"payment-method",direction:"column",options:e.unref(u),label:s.label,required:s.required,disabled:s.disabled,error:s.error,"show-radio":!1},{prefix:e.withCtx(({optionValue:o})=>[e.createVNode(e.unref(t._sfc_main),{class:"sv-payment-method-selector__option-content grow","payment-method":e.unref(y)[String(o)]},null,8,["payment-method"])]),label:e.withCtx(({option:t})=>[e.createElementVNode("span",i,e.toDisplayString(t.label),1)]),_:1},8,["modelValue","options","label","required","disabled","error"])):e.createCommentVNode("",!0)]),s.showAddOption&&f.value?(e.openBlock(),e.createBlock(e.unref(o._sfc_main$1),{key:0,class:"sv-action sv-action--secondary sv-action--full-width sv-payment-method-selector__add w-full",intent:"secondary","icon-prefix":"add",type:"button",size:"sm",disabled:s.disabled,onClick:d[1]||(d[1]=e=>c("add-payment-method"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)({defaultMessage:"Add payment method",description:"Label of the button that adds a new payment method",id:"payment_method_selector.add_payment_method"})),1)]),_:1},8,["disabled"])):s.showAddOption?(e.openBlock(),e.createBlock(e.unref(r._sfc_main),{key:1,variant:"body-sm",color:"subtle",tag:"p",class:"sv-payment-method-selector__unavailable"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)({defaultMessage:"There are no available payment methods. Please contact support for more information.",description:"Shown in place of the add button when the customer cannot add any payment method",id:"payment_method_selector.no_payment_methods_available"})),1)]),_:1})):e.createCommentVNode("",!0),s.error&&!v.value?(e.openBlock(),e.createBlock(e.unref(a._sfc_main),{key:2,class:"sv-payment-method-selector__error",message:s.error,variant:"error"},null,8,["message"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(n._sfc_main,{key:0,class:"sv-payment-method-selector__empty",icon:"credit_card_off"},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)({defaultMessage:"No payment methods available",description:"Shown in place of the payment method choice when the customer has nothing stored and nothing can be added",id:"payment_method_selector.empty_state.title"})),1)]),_:1}))],2))}}),m=e.defineComponent({__name:"AddPaymentMethodPane",props:{customer:{type:Object},paymentMethodOptions:{type:Array},isLoading:{type:Boolean},isActive:{type:Boolean}},emits:["success","failure"],setup(t,{expose:o}){const a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./PaymentMethodForm-hZuVHAti.js")).then(e=>e.default)),n=t,r=e.computed(()=>({variant:"TOKENIZE"})),s=e.ref(!1);e.watch(()=>n.isActive,e=>{s.value=s.value||!!e},{immediate:!0});const l=e.ref();return o({submit:()=>{var e;return null==(e=l.value)?void 0:e.submit()},isSaving:e.computed(()=>{var e;return!!n.isActive&&!!(null==(e=l.value)?void 0:e.isPaymentPending)})}),(o,n)=>t.customer&&s.value?(e.openBlock(),e.createBlock(e.unref(a),{key:0,ref_key:"formRef",ref:l,class:"sv-add-payment-method-pane","hide-submit-button":"",customer:t.customer,"payment-method-options":t.paymentMethodOptions??[],"is-loading":t.isLoading,configuration:r.value,onSuccess:n[0]||(n[0]=e=>o.$emit("success")),onFailure:n[1]||(n[1]=e=>o.$emit("failure",e))},null,8,["customer","payment-method-options","is-loading","configuration"])):e.createCommentVNode("",!0)}});exports._sfc_main=d,exports._sfc_main$1=m;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, mergeProps, toDisplayString, unref } from "vue";
|
|
2
|
-
import { f as formatAmount } from "./formatting.es-
|
|
2
|
+
import { f as formatAmount } from "./formatting.es-eYgXv_AK.mjs";
|
|
3
|
+
const _hoisted_1 = ["data-amount"];
|
|
3
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
5
|
__name: "Amount",
|
|
5
6
|
props: {
|
|
@@ -9,12 +10,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9
10
|
setup(__props) {
|
|
10
11
|
return (_ctx, _cache) => {
|
|
11
12
|
return openBlock(), createElementBlock("span", mergeProps(_ctx.$attrs, {
|
|
13
|
+
"data-amount": __props.value.quantity,
|
|
12
14
|
class: [
|
|
13
15
|
{ "font-semibold text-primary-600": __props.highlighted },
|
|
14
16
|
"inline-block"
|
|
15
17
|
// ensures classes like my-2 / mx-2 works
|
|
16
18
|
]
|
|
17
|
-
}), toDisplayString(unref(formatAmount)(__props.value)), 17);
|
|
19
|
+
}), toDisplayString(unref(formatAmount)(__props.value)), 17, _hoisted_1);
|
|
18
20
|
};
|
|
19
21
|
}
|
|
20
22
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),t=require("./formatting.es-DBtYnvI5.js"),a=["data-amount"],n=e.defineComponent({__name:"Amount",props:{value:{},highlighted:{type:Boolean,default:!1}},setup:n=>(o,i)=>(e.openBlock(),e.createElementBlock("span",e.mergeProps(o.$attrs,{"data-amount":n.value.quantity,class:[{"font-semibold text-primary-600":n.highlighted},"inline-block"]}),e.toDisplayString(e.unref(t.formatAmount)(n.value)),17,a))});exports._sfc_main=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("vue"),t=require("./Button.vue.es-
|
|
1
|
+
const e=require("vue"),t=require("./Button.vue.es-O8mNivLL.js"),o=e.defineComponent({__name:"Avatar",props:{initials:{},imageSrc:{},size:{default:"md"},round:{type:Boolean,default:!1},variant:{default:"light"},colorHash:{},font:{default:"icon"},icon:{}},setup(o){const r=o,n={xs:"w-4 h-4",sm:"w-5 h-5",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12"},l={xs:"text-base",sm:"text-lg",md:"text-2xl",lg:"text-4xl",xl:"text-6xl"},a=(t=>{const o=e.ref();return e.watch(()=>t,()=>{o.value=(e=>{let t=0;for(let r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t);let o="#";for(let r=0;r<3;r++)o+=("00"+(t>>8*r&255).toString(16)).substr(-2);return o})(t)},{immediate:!0}),o})(r.colorHash??r.initials??"A"),i=e.computed(()=>r.imageSrc?{backgroundImage:`url(${r.imageSrc})`}:void 0);return(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative flex shrink-0 items-center justify-center overflow-hidden rounded bg-primary-300 bg-cover",{[n[r.size]]:!0,"rounded-full":o.round,"border border-black border-opacity-5":"dark"===o.variant}]),style:e.normalizeStyle(i.value)},[!o.initials||o.imageSrc||o.icon?o.icon?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:1,icon:o.icon,class:"z-10 text-white"},null,8,["icon"])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["font-regular z-10 text-2xl font-semibold",{[l[r.size]]:!0,"font-regular":"icon"===o.font,"font-inter drop-shadow-sm":"regular"===o.font,"text-white/70":"light"===o.variant,"text-black/10":"dark"===o.variant}])},e.toDisplayString(o.initials.toUpperCase()),3)),e.createElementVNode("div",{class:"pointer-events-none absolute inset-0 opacity-20",style:e.normalizeStyle({backgroundColor:e.unref(a)})},null,4)],6))}});exports._sfc_main=o;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, watch, defineComponent, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, toDisplayString, createBlock, unref, createCommentVNode, createElementVNode } from "vue";
|
|
2
|
-
import { _ as _sfc_main$1 } from "./Button.vue.es-
|
|
2
|
+
import { _ as _sfc_main$1 } from "./Button.vue.es-Cm9pLU9i.mjs";
|
|
3
3
|
const useHashColor = (str) => {
|
|
4
4
|
const color = ref();
|
|
5
5
|
const generateColorFromHash = (str2) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createBlock, unref, createSlots, withCtx, createVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { a as _sfc_main$3 } from "./Button.vue.es-
|
|
3
|
-
import { _ as _sfc_main$2 } from "./CustomerBillingInformation.vue.es-
|
|
4
|
-
import { u as useIntl } from "./customElements-
|
|
2
|
+
import { a as _sfc_main$3 } from "./Button.vue.es-Cm9pLU9i.mjs";
|
|
3
|
+
import { _ as _sfc_main$2 } from "./CustomerBillingInformation.vue.es-CMZO8oLj.mjs";
|
|
4
|
+
import { u as useIntl } from "./customElements-B-89a5oH.mjs";
|
|
5
5
|
import { _ as _sfc_main$1 } from "./Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
|
|
6
|
-
import { u as useActionDispatchProvider } from "./useActionDispatchProvider-
|
|
6
|
+
import { u as useActionDispatchProvider } from "./useActionDispatchProvider-BVOBO0Jx.mjs";
|
|
7
7
|
import { r as resolveConfiguration } from "./configuration-CD8cOXAJ.mjs";
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
__name: "BillingInformation",
|
|
@@ -40,8 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
fn: withCtx(() => [
|
|
41
41
|
createVNode(unref(_sfc_main$3), {
|
|
42
42
|
size: "sm",
|
|
43
|
-
|
|
44
|
-
color: "gray",
|
|
43
|
+
intent: "subtle",
|
|
45
44
|
"icon-prefix": "edit",
|
|
46
45
|
class: "sv-action sv-action--ghost sv-billing-information__edit",
|
|
47
46
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(dispatchAction)({ action: "edit-billing-information" }))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("vue"),i=require("./Button.vue.es-
|
|
1
|
+
const e=require("vue"),i=require("./Button.vue.es-O8mNivLL.js"),t=require("./CustomerBillingInformation.vue.es-BX0Da7Kr.js"),o=require("./customElements-DD7bpqkx.js"),n=require("./Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),s=require("./useActionDispatchProvider-Cv9amjTf.js"),r=require("./configuration-BjYwV4_B.js"),a=e.defineComponent({__name:"BillingInformation",props:{customer:{type:Object},isLoading:{type:Boolean},configuration:{type:Object}},emits:["edit-billing-information"],setup(a){const l={showEditButton:!0},c=a,u=e.computed(()=>r.resolveConfiguration(l,c.configuration)),{$t:m}=o.useIntl(),{dispatchAction:f}=s.useActionDispatchProvider();return(o,s)=>a.isLoading?(e.openBlock(),e.createBlock(n._sfc_main,{key:0,variant:"section",class:"sv-billing-information sv-root sv-component sv-loading min-h-[100px]","data-testid":"billing-information-skeleton"})):(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:1,class:"sv-billing-information sv-root sv-component",customer:a.customer,"fallback-to-reference":!1},e.createSlots({_:2},[u.value.showEditButton?{name:"settings",fn:e.withCtx(()=>[e.createVNode(e.unref(i._sfc_main$1),{size:"sm",intent:"subtle","icon-prefix":"edit",class:"sv-action sv-action--ghost sv-billing-information__edit",onClick:s[0]||(s[0]=i=>e.unref(f)({action:"edit-billing-information"}))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)({defaultMessage:"Edit",id:"customer_overview.billing_information_block.view_all_payment_methods_link_label",description:"The link text that links to the overview page of the customer billing information"})),1)]),_:1})]),key:"0"}:void 0]),1032,["customer"]))}});exports._sfc_main=a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, useSlots, computed, ref, toRefs, unref, createBlock, resolveDynamicComponent, withCtx, createVNode, createCommentVNode, renderSlot, mergeDefaults } from "vue";
|
|
2
|
-
import { _ as _sfc_main$3 } from "./customElements-
|
|
2
|
+
import { _ as _sfc_main$3 } from "./customElements-B-89a5oH.mjs";
|
|
3
3
|
const _hoisted_1$1 = {
|
|
4
4
|
class: "h-full w-full",
|
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -42,9 +42,40 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
+
const buttonIntents = {
|
|
46
|
+
/** The one action a group is there for. */
|
|
47
|
+
primary: {
|
|
48
|
+
rest: "border border-transparent bg-primary-600 text-white",
|
|
49
|
+
interactive: "hover:bg-primary-700 active:bg-primary-800",
|
|
50
|
+
focus: "focus-visible:outline-primary-600"
|
|
51
|
+
},
|
|
52
|
+
/** Supporting actions next to a primary one, and standalone actions that are not the point of the screen. */
|
|
53
|
+
secondary: {
|
|
54
|
+
rest: "border border-gray-200 bg-white text-gray-900",
|
|
55
|
+
interactive: "hover:bg-gray-50 active:bg-gray-100",
|
|
56
|
+
focus: "focus-visible:outline-gray-500"
|
|
57
|
+
},
|
|
58
|
+
/** Repeated or incidental actions: table rows, toolbars, inline controls, close and copy. */
|
|
59
|
+
subtle: {
|
|
60
|
+
rest: "border border-transparent bg-transparent text-gray-700",
|
|
61
|
+
interactive: "hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200",
|
|
62
|
+
focus: "focus-visible:outline-gray-500"
|
|
63
|
+
},
|
|
64
|
+
/** The confirming action of a destructive flow. One per surface, and never the default. */
|
|
65
|
+
danger: {
|
|
66
|
+
rest: "border border-transparent bg-red-700 text-white",
|
|
67
|
+
interactive: "hover:bg-red-800 active:bg-red-900",
|
|
68
|
+
focus: "focus-visible:outline-red-700"
|
|
69
|
+
},
|
|
70
|
+
/** A destructive action that doesn't act on click: a row delete, a footer Delete beside Save, a Void next to a Send. Opens a confirmation. */
|
|
71
|
+
dangerSecondary: {
|
|
72
|
+
rest: "border border-red-200 bg-white text-red-700",
|
|
73
|
+
interactive: "hover:bg-red-50 active:bg-red-100",
|
|
74
|
+
focus: "focus-visible:outline-red-700"
|
|
75
|
+
}
|
|
76
|
+
};
|
|
45
77
|
const buttonPropsDefault = {
|
|
46
|
-
|
|
47
|
-
variant: "primary",
|
|
78
|
+
intent: "primary",
|
|
48
79
|
size: "md",
|
|
49
80
|
pill: false,
|
|
50
81
|
square: false,
|
|
@@ -65,67 +96,11 @@ const join = (...parts) => {
|
|
|
65
96
|
}
|
|
66
97
|
return [...seen].join(" ");
|
|
67
98
|
};
|
|
68
|
-
const baseClasses =
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
green: "text-white bg-green-700 focus:ring-4 focus:ring-green-300 font-medium rounded focus:outline-none",
|
|
74
|
-
gray: "text-white bg-gray-800 focus:ring-4 focus:ring-gray-300 font-medium rounded focus:outline-none",
|
|
75
|
-
primary: "text-white bg-primary-600 focus:ring-4 focus:ring-primary-300 font-medium rounded focus:outline-non",
|
|
76
|
-
yellow: "text-white bg-yellow-800 focus:ring-4 focus:ring-yellow-300 font-medium rounded focus:outline-none",
|
|
77
|
-
white: "text-gray-900 bg-white focus:ring-4 focus:ring-gray-200 font-medium rounded focus:outline-none"
|
|
78
|
-
},
|
|
79
|
-
hover: {
|
|
80
|
-
blue: "hover:bg-blue-700",
|
|
81
|
-
red: "hover:bg-red-800",
|
|
82
|
-
green: "hover:bg-green-800",
|
|
83
|
-
gray: "hover:bg-gray-700",
|
|
84
|
-
primary: "hover:bg-primary-700",
|
|
85
|
-
yellow: "hover:bg-yellow-700",
|
|
86
|
-
white: "hover:bg-gray-500"
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
const buttonOutlineVariantClasses = {
|
|
90
|
-
default: {
|
|
91
|
-
blue: "text-blue-600 bg-white border border-blue-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
|
|
92
|
-
red: "text-red-700 bg-white border border-red-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
|
|
93
|
-
green: "text-green-700 bg-white border border-green-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
|
|
94
|
-
gray: "text-gray-800 bg-white border border-gray-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
|
|
95
|
-
primary: "text-primary-600 bg-white border border-primary-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
|
|
96
|
-
yellow: "text-yellow-600 bg-white border border-yellow-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
|
|
97
|
-
white: "text-white bg-transparent border border-white/40 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center"
|
|
98
|
-
},
|
|
99
|
-
hover: {
|
|
100
|
-
blue: "text-blue-600 hover:bg-gray-50 border border-blue-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
|
|
101
|
-
red: "text-red-700 hover:bg-gray-50 border border-red-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
|
|
102
|
-
green: "text-green-700 hover:bg-gray-50 border border-green-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
|
|
103
|
-
gray: "text-gray-800 hover:bg-gray-50 border border-gray-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
|
|
104
|
-
primary: "text-primary-600 hover:bg-gray-50 border border-primary-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
|
|
105
|
-
yellow: "text-yellow-600 hover:bg-gray-50 border border-yellow-200 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center",
|
|
106
|
-
white: "text-white hover:bg-gray-500 border border-white/40 focus:ring-4 focus:outline-none focus:ring-gray-50 font-medium rounded text-sm text-center"
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
const buttonGhostVariantClasses = {
|
|
110
|
-
default: {
|
|
111
|
-
blue: "text-blue-600 bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center",
|
|
112
|
-
red: "text-red-700 bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center",
|
|
113
|
-
green: "text-green-700 bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center",
|
|
114
|
-
gray: "text-gray-800 bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center",
|
|
115
|
-
primary: "text-primary-600 bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center",
|
|
116
|
-
yellow: "text-yellow-700 bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center",
|
|
117
|
-
white: "text-white bg-none border-none focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded text-sm text-center"
|
|
118
|
-
},
|
|
119
|
-
hover: {
|
|
120
|
-
blue: "hover:text-white hover:bg-blue-700",
|
|
121
|
-
red: "hover:text-white hover:bg-red-800",
|
|
122
|
-
green: "hover:text-white hover:bg-green-800",
|
|
123
|
-
gray: "hover:bg-gray-50",
|
|
124
|
-
primary: "hover:text-white hover:bg-primary-700",
|
|
125
|
-
yellow: "hover:text-white hover:bg-yellow-700",
|
|
126
|
-
white: "hover:bg-gray-500"
|
|
127
|
-
}
|
|
128
|
-
};
|
|
99
|
+
const baseClasses = [
|
|
100
|
+
"relative inline-flex shrink-0 items-center justify-center overflow-clip",
|
|
101
|
+
"whitespace-nowrap rounded font-medium transition-colors",
|
|
102
|
+
"focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"
|
|
103
|
+
].join(" ");
|
|
129
104
|
const buttonHeightClasses = {
|
|
130
105
|
xs: "h-[22px]",
|
|
131
106
|
sm: "h-8",
|
|
@@ -192,16 +167,10 @@ function useButtonClasses(props) {
|
|
|
192
167
|
isRightCompact ? horizontal.compactRight : horizontal.spaciousRight
|
|
193
168
|
);
|
|
194
169
|
});
|
|
195
|
-
const
|
|
196
|
-
const
|
|
197
|
-
const variant = props.variant.value || buttonPropsDefault.variant;
|
|
170
|
+
const intentClasses = computed(() => {
|
|
171
|
+
const intent = buttonIntents[props.intent.value ?? buttonPropsDefault.intent];
|
|
198
172
|
const isInteractive = !props.loading.value && !props.disabled.value;
|
|
199
|
-
|
|
200
|
-
return join(
|
|
201
|
-
variantClasses.default[color],
|
|
202
|
-
// transparent has no hover state, unlike the other variants
|
|
203
|
-
variant !== "transparent" && isInteractive && variantClasses.hover[color]
|
|
204
|
-
);
|
|
173
|
+
return join(intent.rest, intent.focus, isInteractive && intent.interactive);
|
|
205
174
|
});
|
|
206
175
|
const shapeClasses = computed(() => props.pill.value ? "!rounded-full" : "");
|
|
207
176
|
const stateClasses = computed(
|
|
@@ -210,7 +179,7 @@ function useButtonClasses(props) {
|
|
|
210
179
|
const wrapperClasses = computed(
|
|
211
180
|
() => join(
|
|
212
181
|
baseClasses,
|
|
213
|
-
|
|
182
|
+
intentClasses.value,
|
|
214
183
|
heightClasses.value,
|
|
215
184
|
paddingClasses.value,
|
|
216
185
|
shapeClasses.value,
|
|
@@ -229,24 +198,23 @@ function useButtonClasses(props) {
|
|
|
229
198
|
spanClasses
|
|
230
199
|
};
|
|
231
200
|
}
|
|
201
|
+
const spinnerSizeByButtonSize = {
|
|
202
|
+
xs: "2",
|
|
203
|
+
sm: "3",
|
|
204
|
+
md: "4",
|
|
205
|
+
lg: "5"
|
|
206
|
+
};
|
|
207
|
+
const spinnerColorByIntent = {
|
|
208
|
+
primary: "white",
|
|
209
|
+
secondary: "gray",
|
|
210
|
+
subtle: "gray",
|
|
211
|
+
danger: "white",
|
|
212
|
+
dangerSecondary: "red"
|
|
213
|
+
};
|
|
232
214
|
function useButtonSpinner(props) {
|
|
233
|
-
const
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
sm: "3",
|
|
237
|
-
xs: "2"
|
|
238
|
-
};
|
|
239
|
-
const size = computed(() => {
|
|
240
|
-
return btnSizeSpinnerSizeMap[props.size.value];
|
|
241
|
-
});
|
|
242
|
-
const color = computed(() => {
|
|
243
|
-
if (props.variant.value === "primary") return "white";
|
|
244
|
-
return props.color.value;
|
|
245
|
-
});
|
|
246
|
-
return {
|
|
247
|
-
size,
|
|
248
|
-
color
|
|
249
|
-
};
|
|
215
|
+
const size = computed(() => spinnerSizeByButtonSize[props.size.value]);
|
|
216
|
+
const color = computed(() => spinnerColorByIntent[props.intent.value]);
|
|
217
|
+
return { size, color };
|
|
250
218
|
}
|
|
251
219
|
function usePreventDoubleClick(delay = 500) {
|
|
252
220
|
const isClicked = ref(false);
|
|
@@ -353,8 +321,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
353
321
|
__name: "Button",
|
|
354
322
|
props: /* @__PURE__ */ mergeDefaults({
|
|
355
323
|
type: {},
|
|
356
|
-
|
|
357
|
-
color: {},
|
|
324
|
+
intent: {},
|
|
358
325
|
size: {},
|
|
359
326
|
pill: { type: Boolean },
|
|
360
327
|
square: { type: Boolean },
|
|
@@ -424,6 +391,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
424
391
|
key: 1,
|
|
425
392
|
tag: "span",
|
|
426
393
|
variant: fontVariant.value,
|
|
394
|
+
color: "inherit",
|
|
427
395
|
class: "leading-none"
|
|
428
396
|
}, {
|
|
429
397
|
default: withCtx(() => [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),t=require("./customElements-DD7bpqkx.js"),l={class:"h-full w-full",xmlns:"http://www.w3.org/2000/svg",viewbox:"0 0 48 48"},o=["xlink:href"],r=e.defineComponent({__name:"Icon",props:{icon:{},size:{default:"sm"},variant:{default:"default"}},setup(t){const r={"3xs":"w-[10px] h-[10px]","2xs":"w-[14px] h-[14px]",xs:"w-[16px] h-[16px]",sm:"w-[20px] h-[20px]",base:"w-[22px] h-[22px]",md:"w-[24px] h-[24px]",lg:"w-[32px] h-[32px]",xl:"w-[48px] h-[48px]"};return(i,s)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["icon inline-flex items-center justify-center align-middle leading-none",[r[t.size],{"rounded border bg-gray-50 selection:drop-shadow-sm":"contained"===t.variant}]])},[(e.openBlock(),e.createElementBlock("svg",l,[e.createElementVNode("use",{"xlink:href":`#${t.icon}`},null,8,o)]))],2))}}),i={primary:{rest:"border border-transparent bg-primary-600 text-white",interactive:"hover:bg-primary-700 active:bg-primary-800",focus:"focus-visible:outline-primary-600"},secondary:{rest:"border border-gray-200 bg-white text-gray-900",interactive:"hover:bg-gray-50 active:bg-gray-100",focus:"focus-visible:outline-gray-500"},subtle:{rest:"border border-transparent bg-transparent text-gray-700",interactive:"hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200",focus:"focus-visible:outline-gray-500"},danger:{rest:"border border-transparent bg-red-700 text-white",interactive:"hover:bg-red-800 active:bg-red-900",focus:"focus-visible:outline-red-700"},dangerSecondary:{rest:"border border-red-200 bg-white text-red-700",interactive:"hover:bg-red-50 active:bg-red-100",focus:"focus-visible:outline-red-700"}},s={intent:"primary",size:"md",pill:!1,square:!1,loading:!1,disabled:!1,iconPrefix:void 0,iconSuffix:void 0,tag:"button",preventDoubleClick:!0},n=(...e)=>{const t=new Set;for(const l of e)if(l)for(const e of l.split(/\s+/))e&&t.add(e);return[...t].join(" ")},a=["relative inline-flex shrink-0 items-center justify-center overflow-clip","whitespace-nowrap rounded font-medium transition-colors","focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"].join(" "),c={xs:"h-[22px]",sm:"h-8",md:"h-10",lg:"h-12"},u={xs:"w-[22px] h-[22px]",sm:"w-8 h-8",md:"w-10 h-10",lg:"w-12 h-12"},p={xs:"py-0.5",sm:"py-1.5",md:"py-2",lg:"py-3"},d={xs:"gap-0.5",sm:"gap-1.5",md:"gap-2",lg:"gap-3"},f={xs:{compactLeft:"pl-0.5",compactRight:"pr-0.5",spaciousLeft:"pl-1",spaciousRight:"pr-1"},sm:{compactLeft:"pl-1.5",compactRight:"pr-1.5",spaciousLeft:"pl-3",spaciousRight:"pr-3"},md:{compactLeft:"pl-2",compactRight:"pr-2",spaciousLeft:"pl-4",spaciousRight:"pr-4"},lg:{compactLeft:"pl-3",compactRight:"pr-3",spaciousLeft:"pl-6",spaciousRight:"pr-6"}};const m={xs:"2",sm:"3",md:"4",lg:"5"},v={primary:"white",secondary:"gray",subtle:"gray",danger:"white",dangerSecondary:"red"};const g={0:"w-0 h-0",.5:"w-0.5 h-0.5",1:"w-1 h-1",1.5:"w-1.5 h-1.5",10:"w-10 h-10",11:"w-11 h-11",12:"w-12 h-12",2:"w-2 h-2",2.5:"w-2.5 h-2.5",3:"w-3 h-3",4:"w-4 h-4",5:"w-5 h-5",6:"w-6 h-6",7:"w-7 h-7",8:"w-8 h-8",9:"w-9 h-9",px:"w-px h-px"},x={primary:"fill-primary-600",blue:"fill-blue-600",gray:"fill-gray-600",green:"fill-green-500",pink:"fill-pink-600",purple:"fill-purple-600",red:"fill-red-600",yellow:"fill-yellow-400",white:"fill-white"};const h=e.defineComponent({__name:"Spinner",props:{size:{default:"4"},color:{default:"primary"}},setup(t){const l=t,{spinnerClasses:o}=function(t){const l=e.computed(()=>g[t.size.value]),o=e.computed(()=>x[t.color.value]),r="text-gray-200",i="animate-spin";return{spinnerClasses:e.computed(()=>[l.value,r,o.value,i].join(" "))}}(e.toRefs(l));return(t,l)=>(e.openBlock(),e.createElementBlock("svg",{role:"status",class:e.normalizeClass(e.unref(o)),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...l[0]||(l[0]=[e.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"},null,-1),e.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"},null,-1)])],2))}}),w={key:0,class:"absolute bottom-0 left-0 right-0 top-0 flex items-center justify-center bg-inherit"},y={key:0,class:"flex items-center justify-center"},b={key:2,class:"flex items-center justify-center"},C=e.defineComponent({__name:"Button",props:e.mergeDefaults({type:{},intent:{},size:{},pill:{type:Boolean},square:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},iconPrefix:{},iconSuffix:{},tag:{},preventDoubleClick:{type:Boolean}},s),emits:["click"],setup(l,{emit:o}){const g=l,x=o,C=e.computed(()=>{switch(g.size){case"xs":return"2xs";case"sm":return"xs";default:return"sm"}}),k=e.computed(()=>"xs"===C.value?"4":"5"),z=e.computed(()=>["xs","sm"].includes(g.size)?"body-xs":"body-sm"),{wrapperClasses:B,spanClasses:_}=function(t){const l=e.useSlots(),o=e.computed(()=>!(!l.prefix&&!t.iconPrefix.value)),r=e.computed(()=>!(!l.suffix&&!t.iconSuffix.value)),m=e.computed(()=>!!l.default),v=e.computed(()=>!m.value&&(o.value||r.value)),g=e.computed(()=>{var e;return(null==(e=t.square)?void 0:e.value)?u[t.size.value]:c[t.size.value]}),x=e.computed(()=>{var e;if(null==(e=t.square)?void 0:e.value)return"";const l=f[t.size.value],i=v.value||o.value,s=v.value||r.value;return n(p[t.size.value],i?l.compactLeft:l.spaciousLeft,s?l.compactRight:l.spaciousRight)}),h=e.computed(()=>{const e=i[t.intent.value??s.intent],l=!t.loading.value&&!t.disabled.value;return n(e.rest,e.focus,l&&e.interactive)}),w=e.computed(()=>t.pill.value?"!rounded-full":""),y=e.computed(()=>t.disabled.value||t.loading.value?"cursor-not-allowed opacity-50":"");return{wrapperClasses:e.computed(()=>n(a,h.value,g.value,x.value,w.value,y.value)),spanClasses:e.computed(()=>n("flex items-center justify-center",d[t.size.value],t.loading.value?"opacity-0":""))}}(e.toRefs(g)),{color:R}=function(t){return{size:e.computed(()=>m[t.size.value]),color:e.computed(()=>v[t.intent.value])}}(e.toRefs(g)),{handleClick:S}=function(t=500){const l=e.ref(!1);return{isClicked:l,handleClick:function(e){if(!l.value){l.value=!0;try{e()}finally{setTimeout(()=>{l.value=!1},t)}}}}}(),E=e.computed(()=>"button"===g.tag&&(g.disabled||g.loading)),N=e=>{!1!==g.preventDoubleClick?S(()=>{x("click",e)}):x("click",e)};return(o,i)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.tag),{class:e.normalizeClass(e.unref(B)),type:"button"===l.tag?l.type:void 0,disabled:E.value,onClick:N},{default:e.withCtx(()=>[l.loading?(e.openBlock(),e.createElementBlock("span",w,[e.createVNode(e.unref(h),{size:k.value,color:e.unref(R)},null,8,["size","color"])])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(e.unref(_))},[l.iconPrefix||o.$slots.prefix?(e.openBlock(),e.createElementBlock("span",y,[e.renderSlot(o.$slots,"prefix",{},()=>[e.createVNode(e.unref(r),{icon:l.iconPrefix,size:C.value,class:"overflow-clip"},null,8,["icon","size"])])])):e.createCommentVNode("",!0),o.$slots.default?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:1,tag:"span",variant:z.value,color:"inherit",class:"leading-none"},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},8,["variant"])):e.createCommentVNode("",!0),l.iconSuffix||o.$slots.suffix?(e.openBlock(),e.createElementBlock("span",b,[e.renderSlot(o.$slots,"suffix",{},()=>[e.createVNode(e.unref(r),{icon:l.iconSuffix,size:C.value},null,8,["icon","size"])])])):e.createCommentVNode("",!0)],2)]),_:3},8,["class","type","disabled"]))}});exports._sfc_main=r,exports._sfc_main$1=C,exports._sfc_main$2=h;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createVNode, unref, normalizeClass, renderSlot, createTextVNode, toDisplayString, createElementBlock, createCommentVNode } from "vue";
|
|
2
|
+
import { _ as _sfc_main$1 } from "./customElements-B-89a5oH.mjs";
|
|
3
|
+
import { _ as _sfc_main$2 } from "./Button.vue.es-Cm9pLU9i.mjs";
|
|
4
|
+
const chipIntents = {
|
|
5
|
+
neutral: {
|
|
6
|
+
base: "bg-gray-50",
|
|
7
|
+
text: "text-gray-700",
|
|
8
|
+
border: "border-gray-100"
|
|
9
|
+
},
|
|
10
|
+
brand: {
|
|
11
|
+
base: "bg-primary-50",
|
|
12
|
+
text: "text-primary-700",
|
|
13
|
+
border: "border-primary-100"
|
|
14
|
+
},
|
|
15
|
+
info: {
|
|
16
|
+
base: "bg-blue-50",
|
|
17
|
+
text: "text-blue-700",
|
|
18
|
+
border: "border-blue-100"
|
|
19
|
+
},
|
|
20
|
+
success: {
|
|
21
|
+
base: "bg-green-50",
|
|
22
|
+
text: "text-green-700",
|
|
23
|
+
border: "border-green-100"
|
|
24
|
+
},
|
|
25
|
+
warning: {
|
|
26
|
+
base: "bg-yellow-50",
|
|
27
|
+
text: "text-yellow-700",
|
|
28
|
+
border: "border-yellow-100"
|
|
29
|
+
},
|
|
30
|
+
danger: {
|
|
31
|
+
base: "bg-red-50",
|
|
32
|
+
text: "text-red-700",
|
|
33
|
+
border: "border-red-100"
|
|
34
|
+
},
|
|
35
|
+
// For metadata that needs to stand out from plain neutral tags (e.g. meter properties)
|
|
36
|
+
// without claiming a feedback meaning (info/success/warning/danger) or brand emphasis.
|
|
37
|
+
emphasis: {
|
|
38
|
+
base: "bg-teal-50",
|
|
39
|
+
text: "text-teal-700",
|
|
40
|
+
border: "border-teal-100"
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
44
|
+
__name: "Chip",
|
|
45
|
+
props: {
|
|
46
|
+
intent: { default: "neutral" },
|
|
47
|
+
content: {},
|
|
48
|
+
removable: { type: Boolean, default: false },
|
|
49
|
+
size: { default: "md" },
|
|
50
|
+
variant: { default: "default" },
|
|
51
|
+
textClass: {},
|
|
52
|
+
tag: { default: "span" },
|
|
53
|
+
hasChipBefore: { type: Boolean },
|
|
54
|
+
hasChipAfter: { type: Boolean }
|
|
55
|
+
},
|
|
56
|
+
emits: ["removed"],
|
|
57
|
+
setup(__props) {
|
|
58
|
+
const props = __props;
|
|
59
|
+
const computedBaseColor = computed(() => chipIntents[props.intent].base);
|
|
60
|
+
const computedTextColor = computed(() => chipIntents[props.intent].text);
|
|
61
|
+
const computedBorderColor = computed(() => chipIntents[props.intent].border);
|
|
62
|
+
return (_ctx, _cache) => {
|
|
63
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.tag), mergeProps(_ctx.$attrs, {
|
|
64
|
+
class: ["box-content inline-flex items-center gap-1 whitespace-nowrap rounded-sm border pl-1.5", {
|
|
65
|
+
"pr-1.5": !__props.removable,
|
|
66
|
+
"h-4 px-1.5": __props.size === "xs",
|
|
67
|
+
"h-4": __props.size === "sm",
|
|
68
|
+
"h-5": __props.size === "md",
|
|
69
|
+
"h-6": __props.size === "lg",
|
|
70
|
+
"rounded-r-none": __props.hasChipAfter,
|
|
71
|
+
"rounded-l-none": __props.hasChipBefore,
|
|
72
|
+
[computedTextColor.value]: !!computedTextColor.value,
|
|
73
|
+
[computedBaseColor.value]: !!computedBaseColor.value && __props.variant !== "outline",
|
|
74
|
+
"bg-transparent": __props.variant === "outline",
|
|
75
|
+
[computedBorderColor.value]: !!computedBorderColor.value
|
|
76
|
+
}]
|
|
77
|
+
}), {
|
|
78
|
+
default: withCtx(() => [
|
|
79
|
+
createVNode(unref(_sfc_main$1), {
|
|
80
|
+
tag: "span",
|
|
81
|
+
variant: "body-xs",
|
|
82
|
+
weight: "normal",
|
|
83
|
+
color: "inherit",
|
|
84
|
+
center: "",
|
|
85
|
+
class: normalizeClass([__props.textClass, "inline-flex h-full flex-grow items-center justify-center gap-1 leading-none"])
|
|
86
|
+
}, {
|
|
87
|
+
default: withCtx(() => [
|
|
88
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
89
|
+
createTextVNode(toDisplayString(__props.content), 1)
|
|
90
|
+
])
|
|
91
|
+
]),
|
|
92
|
+
_: 3
|
|
93
|
+
}, 8, ["class"]),
|
|
94
|
+
__props.removable ? (openBlock(), createElementBlock("button", {
|
|
95
|
+
key: 0,
|
|
96
|
+
class: normalizeClass([{
|
|
97
|
+
"h-5 w-4": __props.size === "sm",
|
|
98
|
+
"h-5 w-5": __props.size === "md",
|
|
99
|
+
"h-5 w-6": __props.size === "lg",
|
|
100
|
+
[computedBaseColor.value]: !!computedBaseColor.value
|
|
101
|
+
}, "flex aspect-square h-full items-center justify-center rounded"]),
|
|
102
|
+
type: "button",
|
|
103
|
+
title: "Remove",
|
|
104
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("removed"))
|
|
105
|
+
}, [
|
|
106
|
+
createVNode(unref(_sfc_main$2), {
|
|
107
|
+
class: normalizeClass(computedTextColor.value),
|
|
108
|
+
icon: "close",
|
|
109
|
+
size: "xs"
|
|
110
|
+
}, null, 8, ["class"])
|
|
111
|
+
], 2)) : createCommentVNode("", true)
|
|
112
|
+
]),
|
|
113
|
+
_: 3
|
|
114
|
+
}, 16, ["class"]);
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
export {
|
|
119
|
+
_sfc_main as _
|
|
120
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),t=require("./customElements-DD7bpqkx.js"),r=require("./Button.vue.es-O8mNivLL.js"),a={neutral:{base:"bg-gray-50",text:"text-gray-700",border:"border-gray-100"},brand:{base:"bg-primary-50",text:"text-primary-700",border:"border-primary-100"},info:{base:"bg-blue-50",text:"text-blue-700",border:"border-blue-100"},success:{base:"bg-green-50",text:"text-green-700",border:"border-green-100"},warning:{base:"bg-yellow-50",text:"text-yellow-700",border:"border-yellow-100"},danger:{base:"bg-red-50",text:"text-red-700",border:"border-red-100"},emphasis:{base:"bg-teal-50",text:"text-teal-700",border:"border-teal-100"}},n=e.defineComponent({__name:"Chip",props:{intent:{default:"neutral"},content:{},removable:{type:Boolean,default:!1},size:{default:"md"},variant:{default:"default"},textClass:{},tag:{default:"span"},hasChipBefore:{type:Boolean},hasChipAfter:{type:Boolean}},emits:["removed"],setup(n){const o=n,s=e.computed(()=>a[o.intent].base),l=e.computed(()=>a[o.intent].text),i=e.computed(()=>a[o.intent].border);return(a,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.tag),e.mergeProps(a.$attrs,{class:["box-content inline-flex items-center gap-1 whitespace-nowrap rounded-sm border pl-1.5",{"pr-1.5":!n.removable,"h-4 px-1.5":"xs"===n.size,"h-4":"sm"===n.size,"h-5":"md"===n.size,"h-6":"lg"===n.size,"rounded-r-none":n.hasChipAfter,"rounded-l-none":n.hasChipBefore,[l.value]:!!l.value,[s.value]:!!s.value&&"outline"!==n.variant,"bg-transparent":"outline"===n.variant,[i.value]:!!i.value}]}),{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main),{tag:"span",variant:"body-xs",weight:"normal",color:"inherit",center:"",class:e.normalizeClass([n.textClass,"inline-flex h-full flex-grow items-center justify-center gap-1 leading-none"])},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.content),1)])]),_:3},8,["class"]),n.removable?(e.openBlock(),e.createElementBlock("button",{key:0,class:e.normalizeClass([{"h-5 w-4":"sm"===n.size,"h-5 w-5":"md"===n.size,"h-5 w-6":"lg"===n.size,[s.value]:!!s.value},"flex aspect-square h-full items-center justify-center rounded"]),type:"button",title:"Remove",onClick:o[0]||(o[0]=e=>a.$emit("removed"))},[e.createVNode(e.unref(r._sfc_main),{class:e.normalizeClass(l.value),icon:"close",size:"xs"},null,8,["class"])],2)):e.createCommentVNode("",!0)]),_:3},16,["class"]))}});exports._sfc_main=n;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, defineComponent, computed, openBlock, createElementBlock, unref, Fragment, renderList, normalizeClass, createVNode, createTextVNode, toDisplayString, createCommentVNode, createBlock } from "vue";
|
|
2
2
|
import { a as getFormattedComparator } from "./comparators.es-9VsCB-JI.mjs";
|
|
3
|
-
import { a as formatEnum } from "./formatting.es-
|
|
3
|
+
import { a as formatEnum } from "./formatting.es-eYgXv_AK.mjs";
|
|
4
4
|
const useToggleList = (params) => {
|
|
5
5
|
const initialToggledItems = (params == null ? void 0 : params.initialToggledItems) ?? [];
|
|
6
6
|
const closeOthers = (params == null ? void 0 : params.closeOthers) ?? false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("vue"),o=require("./comparators.es-wrKHduVq.js"),r=require("./formatting.es-
|
|
1
|
+
const e=require("vue"),o=require("./comparators.es-wrKHduVq.js"),r=require("./formatting.es-DBtYnvI5.js"),a=["innerHTML"],t=e.defineComponent({__name:"Comparator",props:{propertyName:{},comparator:{},value:{},values:{},hasFormatting:{type:Boolean,default:!0},i18n:{}},setup(r){const t=r,n=e.computed(()=>({propertyName:t.propertyName,comparator:t.comparator,value:t.value??"",values:t.values??[""]}));return(t,l)=>(e.openBlock(),e.createElementBlock("span",{class:"py-0.25 px-0.5",innerHTML:e.unref(o.getFormattedComparator)(r.i18n)(n.value,{hasFormatting:r.hasFormatting})},null,8,a))}}),n=e.defineComponent({__name:"Comparators",props:{comparators:{},expressionComparators:{},i18n:{},display:{default:"block"},rootClass:{}},setup:o=>(a,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.comparators?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.comparators,({meter_property:r,comparator:a,value:n,values:l},s)=>{var p,m;return e.openBlock(),e.createElementBlock("span",{key:null==r?void 0:r.id,class:e.normalizeClass({block:"block"===o.display,inline:"inline"===o.display})},[e.createVNode(t,{"property-name":(null==r?void 0:r.name)??(null==(p=o.i18n)?void 0:p.unknown)??"Unknown",comparator:a,value:n,values:l},null,8,["property-name","comparator","value","values"]),s<o.comparators.length-1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(" ")+e.toDisplayString((null==(m=o.i18n)?void 0:m.and)??"and")+e.toDisplayString(" "),1)],64)):e.createCommentVNode("",!0)],2)}),128)):e.createCommentVNode("",!0),o.expressionComparators?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(o.expressionComparators.operands,(a,l)=>{var s,p;return e.openBlock(),e.createElementBlock("span",{key:l,class:e.normalizeClass(["bg-primary-400/25 mr-1 rounded-sm px-2",o.rootClass])},[a.meter_property?(e.openBlock(),e.createBlock(t,{key:0,"property-name":(null==(s=a.meter_property.meter_property)?void 0:s.name)??(null==(p=o.i18n)?void 0:p.unknown)??"Unknown",comparator:a.meter_property.comparator,value:a.meter_property.value,values:a.meter_property.values},null,8,["property-name","comparator","value","values"])):e.createCommentVNode("",!0),a.expression?(e.openBlock(),e.createBlock(n,{key:1,"expression-comparators":a.expression,display:o.display,i18n:o.i18n,"root-class":o.rootClass},null,8,["expression-comparators","display","i18n","root-class"])):e.createCommentVNode("",!0),l<o.expressionComparators.operands.length-1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(" ")+e.toDisplayString(e.unref(r.formatEnum)(o.expressionComparators.operator).toLocaleLowerCase())+e.toDisplayString(" "),1)],64)):e.createCommentVNode("",!0)],2)}),128)):e.createCommentVNode("",!0)],64))});exports._sfc_main=n,exports.useToggleList=o=>{const r=(null==o?void 0:o.initialToggledItems)??[],a=(null==o?void 0:o.closeOthers)??!1,t=e.ref(r??[]);return{toggledItems:t,toggle:e=>((e,o=!1)=>{const r=t.value.find(o=>o===e);t.value=o?e===r?[]:[e]:r?t.value.filter(o=>o!==e):[...t.value,e]})(e,a),getIsOpen:e=>t.value.includes(e),toggleAll:e=>{0!==e.length&&(t.value.length===e.length?t.value=[]:t.value=e)}}};
|