@solvimon/solvimon-web 0.1.0-alpha.18 → 0.1.0-alpha.19
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 +70 -31
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang--AVI4Q4E.js +1 -0
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-C2IRj-FB.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Y3CzulQq.mjs} +6 -3
- package/dist/Amount.vue.es-CRG-6dps.mjs +23 -0
- package/dist/Amount.vue.es-CeW8S7kT.js +1 -0
- package/dist/Avatar.vue.es-ClUBm_l5.js +1 -0
- package/dist/Avatar.vue.es-DJp6NEU_.mjs +91 -0
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BWnZ98RQ.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BUMK11Dw.mjs} +15 -7
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DzrInCPA.js +1 -0
- package/dist/Button.vue.es-BrWHdiEA.mjs +453 -0
- package/dist/Button.vue.es-aLcIdATK.js +1 -0
- package/dist/Chip.vue.es-DPGTweAr.mjs +164 -0
- package/dist/Chip.vue.es-q4c-DXXl.js +1 -0
- package/dist/Comparators.vue.es-CU32AC4n.mjs +120 -0
- package/dist/Comparators.vue.es-CfVGYJ_x.js +1 -0
- package/dist/ContextMenu.vue.es-BBPFQfqY.mjs +681 -0
- package/dist/ContextMenu.vue.es-C_TL7-kg.js +1 -0
- package/dist/CustomerBillingInformation.vue.es-CLmXk5B9.mjs +175 -0
- package/dist/CustomerBillingInformation.vue.es-s-LYXA4T.js +1 -0
- package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +1 -0
- package/dist/CustomerPaymentMethods.lib-CcSt0sl1.mjs +4 -0
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-D7gL7dZX.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B2CtcBm0.mjs} +17 -10
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CMIVAoQq.js +1 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BP-VRwEM.js +1 -0
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-OUg4yv7r.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Bej5_H7r.mjs} +823 -216
- package/dist/Divider.vue.es-ClFG8QtG.js +1 -0
- package/dist/Divider.vue.es-wKkIVBgb.mjs +24 -0
- package/dist/DividerText.vue.es-D5ieOE1e.js +1 -0
- package/dist/DividerText.vue.es-DMg-DNgi.mjs +72 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-5I81Qr6q.js +1 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CTG5XdQt.mjs +562 -0
- package/dist/ErrorNotification.vue.es-BX3khKFc.js +1 -0
- package/dist/ErrorNotification.vue.es-C22Kt8Qn.mjs +30 -0
- package/dist/Expand.vue.es-C-lnbA1v.js +1 -0
- package/dist/Expand.vue.es-C4_XmqbR.mjs +50 -0
- package/dist/FormMessage.vue.es-DFQXxiSC.mjs +46 -0
- package/dist/FormMessage.vue.es-LeWoj774.js +1 -0
- package/dist/IconButton.vue.es-CVFn0Ntj.js +1 -0
- package/dist/IconButton.vue.es-DcC4f5EQ.mjs +231 -0
- package/dist/IconTitle.vue.es-DoN4GVde.js +1 -0
- package/dist/IconTitle.vue.es-mQCMxc64.mjs +105 -0
- package/dist/Input.vue.es-C8VhMKuI.js +1 -0
- package/dist/Input.vue.es-Dp_RH03h.mjs +239 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DbY35gE_.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-56fy6uY6.mjs} +2 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CLUcV3qa.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-flgEyaoj.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-ztaMeHQc.mjs +49 -0
- package/dist/InvoiceSummary.vue.es-emE-mCFh.js +1 -0
- package/dist/InvoiceSummary.vue.es-nCYeQ4tj.mjs +2558 -0
- package/dist/Modal.vue.es-5EpA4Q0t.mjs +367 -0
- package/dist/Modal.vue.es-CX5geho3.js +1 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-B_IIOBjg.js +1 -0
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DBMgilG2.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-D7IX9qqy.mjs} +4 -2
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CupZFJSF.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-C8nvN-6f.mjs} +3 -1
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D1oKZZ_m.js +1 -0
- package/dist/{PaymentHistoryBlock-Bxr8lUGs.mjs → PaymentHistoryBlock-Dejtgyos.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-COjIVYX4.js → PaymentHistoryBlock-RBxlC5xt.js} +1 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BdfWchcQ.js +1 -0
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CDjGab5p.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dk52bjJd.mjs} +5 -1
- package/dist/{PaymentIntegrationForm-BSauhuKv.js → PaymentIntegrationForm-BWr7iyU6.js} +1 -1
- package/dist/{PaymentIntegrationForm-PIT8gHYN.mjs → PaymentIntegrationForm-CbqfAdkc.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D8fkE1yG.js +1 -0
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-COO2ZUhN.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJHwpswk.mjs} +4 -3
- package/dist/PaymentIntegrationFormAdyen-BjPpoLF7.js +1 -0
- package/dist/{PaymentIntegrationFormAdyen-Cjj9aK0E.mjs → PaymentIntegrationFormAdyen-CuRwe9_9.mjs} +78 -116
- package/dist/PaymentIntegrationFormStripe-51KZc27R.js +1 -0
- package/dist/{PaymentIntegrationFormStripe-arpua_ZT.mjs → PaymentIntegrationFormStripe-JZw2m1kJ.mjs} +7 -7
- package/dist/PaymentMethod.vue.es-CH__kPw4.mjs +636 -0
- package/dist/PaymentMethod.vue.es-uVZO0Zju.js +1 -0
- package/dist/{PaymentMethodForm-B7T5rrNz.mjs → PaymentMethodForm-C5WqTDow.mjs} +1 -1
- package/dist/{PaymentMethodForm-CLz3ZS-b.js → PaymentMethodForm-CBjHdZT7.js} +1 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BktA5F4r.js +1 -0
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-C4Zf92QP.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DhPTbip8.mjs} +5 -2
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIIt6fGp.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DbTvbHk7.mjs} +7 -3
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-XPz73RVU.js +1 -0
- package/dist/PricingGroupRangeInput.vue.es-A6eW-u2k.mjs +636 -0
- package/dist/PricingGroupRangeInput.vue.es-BuQeJCEX.js +1 -0
- package/dist/Section.vue.es-MEFUWCxU.mjs +79 -0
- package/dist/Section.vue.es-tLYXp-tF.js +1 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Jk34S5B7.js +1 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xvgyB2Yr.mjs +1050 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-B_Zkbqx2.mjs +6105 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CttBs_G8.js +1 -0
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-z8P1u1Gi.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cj36jvZF.mjs} +2 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Dl5Lg39D.js +1 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CTnTWaB8.js +1 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BOUSk2ZB.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-CfXgGKXA.mjs} +7 -4
- package/dist/TooltipParagraph.vue.es-B5aHQv9O.mjs +136 -0
- package/dist/TooltipParagraph.vue.es-fSwKGXKg.js +1 -0
- package/dist/TrialChip.vue.es-0nrqSZeY.js +1 -0
- package/dist/TrialChip.vue.es-Fp7Lqo-b.mjs +56 -0
- package/dist/api.es-C5pe8LUl.mjs +62 -0
- package/dist/api.es-Czekkp_X.js +1 -0
- package/dist/cn.es-BLHlMR4Y.js +1 -0
- package/dist/cn.es-DB5pDpxS.mjs +3298 -0
- package/dist/comparators.es-9VsCB-JI.mjs +175 -0
- package/dist/comparators.es-wrKHduVq.js +1 -0
- package/dist/component-BG6DmXcy.mjs +9 -0
- package/dist/component-hDuDTBt5.js +1 -0
- package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -3
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -0
- package/dist/components/BillingInformation/{BillingInformation.es.js → BillingInformation.mjs} +15 -26
- package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -3
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -0
- package/dist/components/BillingInformationForm/{BillingInformationForm.es.js → BillingInformationForm.mjs} +42 -128
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -3
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -0
- package/dist/components/CustomerPaymentMethods/{CustomerPaymentMethods.es.js → CustomerPaymentMethods.mjs} +18 -51
- package/dist/components/Invoice/Invoice.ce.d.ts +1 -3
- package/dist/components/Invoice/Invoice.cjs +1 -0
- package/dist/components/Invoice/{Invoice.es.js → Invoice.mjs} +73 -79
- package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -3
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -0
- package/dist/components/InvoiceDetails/{InvoiceDetails.es.js → InvoiceDetails.mjs} +12 -24
- package/dist/components/InvoiceHeader/InvoiceHeader.ce.d.ts +1 -3
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -0
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +73 -0
- package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -3
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -0
- package/dist/components/InvoicesList/{InvoicesList.es.js → InvoicesList.mjs} +12 -24
- package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -3
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -0
- package/dist/components/PaymentHistory/{PaymentHistory.es.js → PaymentHistory.mjs} +12 -24
- package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -3
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -0
- package/dist/components/PaymentMethodForm/{PaymentMethodForm.es.js → PaymentMethodForm.mjs} +15 -27
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -3
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -0
- package/dist/components/SubscriptionSchedules/{SubscriptionSchedules.es.js → SubscriptionSchedules.mjs} +13 -25
- package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -3
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -0
- package/dist/components/SubscriptionsList/{SubscriptionsList.es.js → SubscriptionsList.mjs} +22 -53
- package/dist/components/WalletBalances/WalletBalances.ce.d.ts +1 -3
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -0
- package/dist/components/WalletBalances/{WalletBalances.es.js → WalletBalances.mjs} +13 -25
- package/dist/configuration-BjYwV4_B.js +1 -0
- package/dist/configuration-CD8cOXAJ.mjs +15 -0
- package/dist/core/action-request.types.d.ts +1 -55
- package/dist/core/configuration.d.ts +1 -3
- package/dist/core/index.cjs +1 -0
- package/dist/core/index.d.ts +1 -11
- package/dist/core/index.mjs +197 -0
- package/dist/core/registry.ce.d.ts +1 -2
- package/dist/core/registry.d.ts +1 -6
- package/dist/core/types.d.ts +1 -121
- package/dist/countryData.es--zJAd6LA.mjs +252 -0
- package/dist/countryData.es-D3MFzU92.js +1 -0
- package/dist/customElements-BTJzBHMy.js +1 -0
- package/dist/customElements-DdFA__me.mjs +6729 -0
- package/dist/{customer-DovIxTG1.mjs → customer-B0AMetq6.mjs} +1 -1
- package/dist/customer-D7HUfF3j.js +1 -0
- package/dist/customer.es-C_vSWcVA.mjs +30 -0
- package/dist/customer.es-D42Md24r.js +1 -0
- package/dist/en-US-BSrbFk5W.js +1 -0
- package/dist/en-US-D0P7NNNZ.mjs +228 -0
- package/dist/{en-US-CXDO3qhq.mjs → en-US-Daw3v6GD.mjs} +8 -31
- package/dist/en-US-scSQQXK8.js +1 -0
- package/dist/error-Cg-i7gGl.js +1 -0
- package/dist/error-DY_I2hPx.mjs +13 -0
- package/dist/floating-ui.vue.es-Bv94BfDm.js +1 -0
- package/dist/floating-ui.vue.es-DWY7pdz8.mjs +1573 -0
- package/dist/formatting.es-9hM8aHSg.js +1 -0
- package/dist/formatting.es-D-oVnc8H.mjs +68 -0
- package/dist/getComposedString.es-CELkn0I7.mjs +14 -0
- package/dist/getComposedString.es-DvSNX-_z.js +1 -0
- package/dist/getCountryNameByCode.es-fP52nO_7.js +1 -0
- package/dist/getCountryNameByCode.es-ymC9R46j.mjs +8 -0
- package/dist/index-BJ3dHkSK.js +1 -0
- package/dist/index-C5bKRt7l.mjs +1069 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1 -17
- package/dist/index.es-0cystq8F.mjs +542 -0
- package/dist/index.es-2JWHHSgP.js +1 -0
- package/dist/index.mjs +42 -0
- package/dist/{invoices-Dk-z04lg.mjs → invoices-BSd-nKeE.mjs} +17 -16
- package/dist/invoices-BiqM6xN6.js +1 -0
- package/dist/{nl-NL-BgL_PuBn.mjs → nl-NL-B4zEBFTw.mjs} +8 -54
- package/dist/nl-NL-B5tuyIOM.mjs +88 -0
- package/dist/nl-NL-Bs3d8q6T.js +1 -0
- package/dist/nl-NL-DIAZWDF9.js +1 -0
- package/dist/object.es-DFXiU9p3.js +1 -0
- package/dist/object.es-jvvnR8Kr.mjs +12 -0
- package/dist/{paymentMethods-BnF1XYS1.mjs → paymentMethods-BsrkEbKT.mjs} +4 -16
- package/dist/paymentMethods-Cu2RzLgm.js +1 -0
- package/dist/{payments-TnRjtlOw.mjs → payments-B6Nfd6Al.mjs} +1 -1
- package/dist/payments-Bbm1HMQj.js +1 -0
- package/dist/pricing-3W7XLwL6.js +1 -0
- package/dist/pricing-CJxS2hr2.mjs +17 -0
- package/dist/pricingItemConfigs.es-BPIm6S8M.mjs +107 -0
- package/dist/pricingItemConfigs.es-C73cQlxQ.js +1 -0
- package/dist/screens/Checkout/Checkout.ce.d.ts +1 -3
- package/dist/screens/Checkout/Checkout.cjs +1 -0
- package/dist/screens/Checkout/{Checkout.es.js → Checkout.mjs} +1250 -610
- package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -3
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -0
- package/dist/screens/CustomerOverview/{CustomerOverview.es.js → CustomerOverview.mjs} +33 -36
- package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +1 -3
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -0
- package/dist/screens/PayInvoice/{PayInvoice.es.js → PayInvoice.mjs} +21 -28
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.ce.d.ts +1 -3
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -0
- package/dist/screens/PaymentMethodsManagement/{PaymentMethodsManagement.es.js → PaymentMethodsManagement.mjs} +17 -29
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +1 -3
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -0
- package/dist/screens/SubscriptionDetails/{SubscriptionDetails.es.js → SubscriptionDetails.mjs} +33 -37
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +1 -3
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -0
- package/dist/screens/SubscriptionManagement/{SubscriptionManagement.es.js → SubscriptionManagement.mjs} +32 -41
- package/dist/slots.es-BpwYO3A3.mjs +18 -0
- package/dist/slots.es-Dq1PTUOv.js +1 -0
- package/dist/sorting.es-CjTrRfSW.mjs +105 -0
- package/dist/sorting.es-RyvcgbSL.js +1 -0
- package/dist/subscriptions-B4BOzLxR.js +1 -0
- package/dist/{subscriptions-vEE4Y7qm.mjs → subscriptions-C2C4WTuI.mjs} +7 -7
- package/dist/typeGuards.es-C4nR5FkL.js +1 -0
- package/dist/typeGuards.es-fwUoeMCe.mjs +12 -0
- package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +19 -0
- package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
- package/dist/types/components/checkout/EmptyStatePlaceholder.types.d.ts +4 -0
- package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +8 -0
- package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +24 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +32 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +12 -0
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +14 -0
- package/dist/types/components/payments/AddPaymentMethodPane/AddPaymentMethodPane.types.d.ts +19 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +74 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +9 -0
- package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +3 -0
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +21 -0
- package/dist/types/components/payments/PayButton/PayButton.types.d.ts +10 -0
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +5 -0
- package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +4 -0
- package/dist/types/components/payments/PaymentFeedbackCard/PaymentFeedbackCard.types.d.ts +4 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +72 -0
- package/dist/types/components/payments/PaymentIntegrationFormAdyen/PaymentIntegrationFormAdyen.types.d.ts +6 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripe.types.d.ts +7 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +61 -0
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +53 -0
- package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +8 -0
- package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +3 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.d.ts +4 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +3 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +17 -0
- package/dist/types/components/providers/ActionDispatchProvider/composables/useActionDispatchProvider.d.ts +3 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +8 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +3 -0
- package/dist/types/components/providers/AuthProvider/index.d.ts +3 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.types.d.ts +9 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/ConfigProvider/composables/useConfig.d.ts +3 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.types.d.ts +3 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +10 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +22 -0
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +17 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.types.d.ts +4 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/composables/useExperimentalFeature.d.ts +1 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +12 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.types.d.ts +3 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/HostElementProvider/composables/useHostElementProvider.d.ts +1 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +24 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +40 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +20 -0
- package/dist/types/components/providers/LoggerProvider/composables/useLogger.d.ts +6 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +7 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +11 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +3 -0
- package/dist/types/components/providers/Provider/Provider.types.d.ts +15 -0
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +21 -0
- package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +17 -0
- package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +18 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +9 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +22 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/index.d.ts +9 -0
- package/dist/types/components/shared/ScreenTitle/ScreenTitle.types.d.ts +4 -0
- package/dist/types/components/shared/Section/Section.types.d.ts +21 -0
- package/dist/types/components/shared/Skeleton.types.d.ts +5 -0
- package/dist/types/components/shared/SlidingPanes/SlidingPanes.types.d.ts +12 -0
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsList.types.d.ts +15 -0
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +7 -0
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +65 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +5 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +8 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupContent.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupEditorBase.types.d.ts +8 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +6 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +6 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTable.types.d.ts +5 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTableRow.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +12 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +47 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +28 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +33 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +13 -0
- package/dist/types/components/wallets/AutoTopUpCancellationModal/AutoTopUpCancellationModal.types.d.ts +9 -0
- package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +56 -0
- package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +16 -0
- package/dist/types/components/wallets/ConvertedAmountInput/ConvertedAmountInput.types.d.ts +32 -0
- package/dist/types/components/wallets/TopUpModal/TopUpInvoicePreview.types.d.ts +11 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModal.types.d.ts +31 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +23 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +11 -0
- package/dist/types/components/wallets/WalletModalShell.types.d.ts +24 -0
- package/dist/types/composables/useInvoicePreview.types.d.ts +9 -0
- package/dist/types/config/config.beta.d.ts +2 -0
- package/dist/types/config/config.dev.d.ts +2 -0
- package/dist/types/config/config.live.d.ts +2 -0
- package/dist/types/config/internalEnvironments.d.ts +11 -0
- package/dist/types/config/internalEnvironments.published.d.ts +7 -0
- package/dist/types/config/lib.d.ts +6 -0
- package/dist/types/config/types.d.ts +13 -0
- package/dist/types/index.d.ts +23 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.types.d.ts +4 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +12 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +4 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.types.d.ts +10 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.types.d.ts +6 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +22 -0
- package/dist/types/public/components/CustomerWalletBalances/CustomerWalletBalances.types.d.ts +22 -0
- package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -0
- package/dist/types/public/components/Invoice/Invoice.entry.types.d.ts +5 -0
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +26 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +9 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +16 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +37 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +5 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +10 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +5 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +38 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +9 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +5 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.types.d.ts +3 -0
- package/dist/types/public/core/action-request.types.d.ts +55 -0
- package/dist/types/public/core/configuration.d.ts +3 -0
- package/dist/types/public/core/index.d.ts +14 -0
- package/dist/types/public/core/registry.ce.d.ts +8 -0
- package/dist/types/public/core/registry.d.ts +6 -0
- package/dist/types/public/core/types.d.ts +120 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +18 -0
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +46 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.types.d.ts +5 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +2 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.types.d.ts +4 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +23 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.types.d.ts +3 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.types.d.ts +7 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +6 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +23 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.types.d.ts +5 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +13 -0
- package/dist/types/public/screens/types.d.ts +4 -0
- package/dist/types/public/types/index.d.ts +23 -0
- package/dist/types/services/invoices.types.d.ts +26 -0
- package/dist/types/services/paymentMethods.types.d.ts +31 -0
- package/dist/types/services/portals.types.d.ts +68 -0
- package/dist/types/services/requests.types.d.ts +24 -0
- package/dist/types/translations/supported.d.ts +1 -0
- package/dist/types/types/EntryBaseProps.d.ts +10 -0
- package/dist/types/types/errors.d.ts +7 -0
- package/dist/types/types/subscription.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +111 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Address.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Alerts.d.ts +72 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Amount.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Api.d.ts +50 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiError.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiKey.d.ts +21 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiStatus.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +77 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Attachment.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Band.d.ts +30 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BaseResourceStatus.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingEntity.d.ts +45 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingPeriod.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingTime.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Commitment.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CommitmentItem.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Comparator.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfiguredMeterValue.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Country.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreateMeterData.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreatePricingPlanVersion.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreditType.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Currency.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +39 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomerContact.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Customers.d.ts +75 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Discount.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/DiscountItem.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Document.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/DueDateConfiguration.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Environment.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTrace.d.ts +23 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceExtended.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLink.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLinkExtended.d.ts +15 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Features.d.ts +25 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/IdentityProvider.d.ts +40 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/IndexingSettings.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +367 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +349 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Markup.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MarkupItem.d.ts +11 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Meter.d.ts +32 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterConditions.d.ts +26 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterData.d.ts +25 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterDataExpanded.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterProperty.d.ts +34 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyValue.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValue.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueCalculation.d.ts +20 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueValue.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ModelType.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Name.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/NotificationPreferences.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +124 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +120 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAction.d.ts +74 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethod.d.ts +173 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethodOptions.d.ts +45 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentSchedules.d.ts +142 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +118 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +58 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Pricing.d.ts +41 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategory.d.ts +18 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategoryExtended.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingExtended.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingGroup.d.ts +29 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItem.d.ts +40 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +130 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +103 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleWithPlanData.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +80 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscriptionGroup.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersion.d.ts +71 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersionExtended.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +44 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductCategory.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +60 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PromotionCodes.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +43 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +93 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +65 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ReprocessLog.d.ts +31 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Resource.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Role.d.ts +19 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/SignatureRequest.d.ts +27 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxCategory.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxIdentifier.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxSummary.d.ts +21 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TimePeriod.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Timestamp.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Token.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/User.d.ts +106 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ValueType.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +44 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WalletAutoTopUpConfigs.d.ts +28 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WalletType.d.ts +54 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Webhook.d.ts +48 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WebhookEvent.d.ts +18 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +95 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/forms.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +17 -0
- package/dist/useActionDispatchProvider-Cz8xLLYA.js +1 -0
- package/dist/{useActionDispatchProvider-BlEf-RZ5.mjs → useActionDispatchProvider-D55t_7LY.mjs} +1 -1
- package/dist/{useCustomer-Cw8LXT6S.mjs → useCustomer-BNhHz9RJ.mjs} +2 -2
- package/dist/{useCustomer-C1XTqmrQ.js → useCustomer-DYCpgA-3.js} +1 -1
- package/dist/useCustomerFormLabels-Cw6QpEJY.js +1 -0
- package/dist/useCustomerFormLabels-mX5QpApD.mjs +1142 -0
- package/dist/{useIncrementalLoading-8WtKZ-mP.mjs → useIncrementalLoading-BK9pRYAU.mjs} +5 -4
- package/dist/useIncrementalLoading-CdtGJm_Y.js +1 -0
- package/dist/{useInvoiceData-BrxMo4Zt.js → useInvoiceData-BczeMpuk.js} +1 -1
- package/dist/{useInvoiceData-Cy_ysMsq.mjs → useInvoiceData-D-EvEioP.mjs} +2 -2
- package/dist/{useInvoicesList-DMsZn1tE.mjs → useInvoicesList-BJJYwkIA.mjs} +277 -31
- package/dist/useInvoicesList-rMg-8LbH.js +1 -0
- package/dist/{useLoadInitialData-BP1v7qhd.mjs → useLoadInitialData-BoGjdUu-.mjs} +1 -1
- package/dist/useLoadInitialData-CiJldX50.js +1 -0
- package/dist/{usePaymentMethodOptions-CWfGvW0U.mjs → usePaymentMethodOptions-d49aOdLB.mjs} +13 -9
- package/dist/usePaymentMethodOptions-fBvWYynV.js +1 -0
- package/dist/{usePaymentMethods-Cyk4cjoE.mjs → usePaymentMethods-Bkouz8aQ.mjs} +2 -2
- package/dist/{usePaymentMethods-CAFMvSOr.js → usePaymentMethods-CFL3hFW_.js} +1 -1
- package/dist/usePayments-BKTNn_RN.js +1 -0
- package/dist/usePayments-BlliAt1E.mjs +262 -0
- package/dist/{usePortal-0NDlbFr9.mjs → usePortal-eyA4OqjU.mjs} +1 -1
- package/dist/usePortal-fhri8neB.js +1 -0
- package/dist/useService-D73FNBjT.js +1 -0
- package/dist/{useService-CqfJi5ST.mjs → useService-W3Kxems4.mjs} +24 -5
- package/dist/useSubscription--IGLmLS6.mjs +250 -0
- package/dist/useSubscription-V3KSuhOY.js +1 -0
- package/package.json +55 -45
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Rub9ifBk.js +0 -1
- package/dist/ApiStatus-CyNDp_op.mjs +0 -9
- package/dist/ApiStatus-oqvUEWJx.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DurgWlLC.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Df7CsbiW.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-mM5udvi8.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BIpg-MSJ.mjs +0 -53
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BM3p8Pk8.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D5eSNYH2.js +0 -1
- package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-Ci8r6tuC.js +0 -1
- package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-jshby9pF.mjs +0 -27
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-CNKxTtO7.js +0 -1
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D6lpD1zo.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Bmgx7PSt.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-5XKz3kop.js +0 -1
- package/dist/PaymentIntegrationFormAdyen-B-Jbu2hU.js +0 -1
- package/dist/PaymentIntegrationFormStripe-Bnn8S1o5.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-UH9AVXnG.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-ifai5HVr.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DaWlLor0.mjs +0 -217
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DdUoeTUL.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CyYhYYRp.mjs +0 -37
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DdjYVNku.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cu55ZvCH.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-BKDMwuyh.js +0 -1
- package/dist/component--Y7Igv5i.mjs +0 -1022
- package/dist/component-DIy1hvJM.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.cjs.js +0 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +0 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +0 -1
- package/dist/components/Invoice/Invoice.cjs.js +0 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +0 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs.js +0 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.es.js +0 -123
- package/dist/components/InvoicesList/InvoicesList.cjs.js +0 -1
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +0 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +0 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +0 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +0 -1
- package/dist/components/WalletBalances/WalletBalances.cjs.js +0 -1
- package/dist/core/index.cjs.js +0 -1
- package/dist/core/index.es.js +0 -6
- package/dist/customer-brfznoHY.js +0 -1
- package/dist/en-US-BvOHPudj.js +0 -1
- package/dist/index-BMWWP8xj.js +0 -1
- package/dist/index-Do7kzLpg.mjs +0 -265
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -51
- package/dist/invoices-Cf3dSYSj.js +0 -1
- package/dist/nl-NL-COGUFg60.js +0 -1
- package/dist/paymentMethods-DVDC_WfL.js +0 -1
- package/dist/payments-DVZFO5yb.js +0 -1
- package/dist/pricing-CuYndX6t.js +0 -1
- package/dist/pricing-GwLCiSzs.mjs +0 -19
- package/dist/registry-Ck0Gb6rj.mjs +0 -153
- package/dist/registry-Cra6yoB4.js +0 -1
- package/dist/screens/Checkout/Checkout.cjs.js +0 -1
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +0 -1
- package/dist/screens/PayInvoice/PayInvoice.cjs.js +0 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js +0 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs.js +0 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs.js +0 -1
- package/dist/solvimon-web.css +0 -1
- package/dist/subscriptions-BFCKVHnP.js +0 -1
- package/dist/useActionDispatchProvider-aJOy3kr1.js +0 -1
- package/dist/useIncrementalLoading-CkY2klIW.js +0 -1
- package/dist/useInvoicesList-DmisMQzy.js +0 -1
- package/dist/useLoadInitialData-_BjCD0Jc.js +0 -1
- package/dist/usePaymentMethodOptions-xeSTmaVo.js +0 -1
- package/dist/usePayments-BieVBaz-.js +0 -1
- package/dist/usePayments-D88XSZfS.mjs +0 -42
- package/dist/usePortal-B954nyEB.js +0 -1
- package/dist/useService-BiljI7XA.js +0 -1
- package/dist/useSubscription-9rJpFNUF.mjs +0 -29
- package/dist/useSubscription-k3limdu_.js +0 -1
- package/dist/vendor-ui-Dfh3_g4q.js +0 -1
- package/dist/vendor-ui-ItGf7wJV.mjs +0 -29938
|
@@ -0,0 +1,1142 @@
|
|
|
1
|
+
import { i as isEmpty, d as deepEqual, a as isEqual } from "./useService-W3Kxems4.mjs";
|
|
2
|
+
import { openBlock, createElementBlock, createElementVNode, renderSlot, defineComponent, computed, withKeys, withModifiers, normalizeClass, Fragment, mergeProps, createBlock, resolveDynamicComponent, normalizeProps, createCommentVNode, createVNode, unref, toDisplayString, renderList, withCtx, createTextVNode, inject, getCurrentInstance, ref, watch, useModel, createSlots, guardReactiveProps, Teleport, normalizeStyle, mergeModels, isRef } from "vue";
|
|
3
|
+
import { a as useVModel, d as useElementSize, c as useEventListener } from "./index.es-0cystq8F.mjs";
|
|
4
|
+
import { c as countryData } from "./countryData.es--zJAd6LA.mjs";
|
|
5
|
+
import { _ as _export_sfc, u as useFloating, a as autoUpdate, o as offset, f as flip, s as shift, b as size } from "./floating-ui.vue.es-DWY7pdz8.mjs";
|
|
6
|
+
import { e as escapeUserInput, _ as _sfc_main$6, s as sortedUniqBy, u as useIsMounted } from "./sorting.es-CjTrRfSW.mjs";
|
|
7
|
+
import { S as SEARCH_SELECT_TELEPORT_TARGET, u as useIntl, _ as _sfc_main$d } from "./customElements-DdFA__me.mjs";
|
|
8
|
+
import { a as _sfc_main$8 } from "./IconButton.vue.es-DcC4f5EQ.mjs";
|
|
9
|
+
import { _ as _sfc_main$9, a as _sfc_main$b } from "./Button.vue.es-BrWHdiEA.mjs";
|
|
10
|
+
import { _ as _sfc_main$a } from "./Chip.vue.es-DPGTweAr.mjs";
|
|
11
|
+
import { _ as _sfc_main$7 } from "./Input.vue.es-Dp_RH03h.mjs";
|
|
12
|
+
import { _ as _sfc_main$c } from "./index-C5bKRt7l.mjs";
|
|
13
|
+
const nullWhenEmpty = (value) => isEmpty(value) && typeof value !== "boolean" ? null : value;
|
|
14
|
+
const isObjectLike = (v) => typeof v === "object" && v !== null;
|
|
15
|
+
const shallowObjectDiff = ({
|
|
16
|
+
from,
|
|
17
|
+
to,
|
|
18
|
+
nullifyEmptyValues = false
|
|
19
|
+
}) => {
|
|
20
|
+
const changes = Object.fromEntries(
|
|
21
|
+
Object.entries(to).filter(([k, v]) => !deepEqual(v, from[k]))
|
|
22
|
+
);
|
|
23
|
+
if (nullifyEmptyValues) {
|
|
24
|
+
return Object.entries(changes).reduce(
|
|
25
|
+
(acc, [key, value]) => ({ ...acc, [key]: nullWhenEmpty(value) }),
|
|
26
|
+
{}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
return changes;
|
|
30
|
+
};
|
|
31
|
+
const deepObjectDiff = ({
|
|
32
|
+
from,
|
|
33
|
+
to,
|
|
34
|
+
nullifyEmptyValues = false
|
|
35
|
+
}) => {
|
|
36
|
+
const changes = {};
|
|
37
|
+
const buildPath = (path, obj, key) => {
|
|
38
|
+
const origVal = obj[key];
|
|
39
|
+
if (path === void 0) {
|
|
40
|
+
if (Array.isArray(origVal)) {
|
|
41
|
+
changes[key] = [];
|
|
42
|
+
} else if (isObjectLike(origVal)) {
|
|
43
|
+
changes[key] = {};
|
|
44
|
+
}
|
|
45
|
+
} else {
|
|
46
|
+
if (Array.isArray(origVal)) {
|
|
47
|
+
path[key] = [];
|
|
48
|
+
} else if (isObjectLike(origVal)) {
|
|
49
|
+
path[key] = {};
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return [path === void 0 ? changes : path, key];
|
|
53
|
+
};
|
|
54
|
+
const walk = (fromObject, toObject, path) => {
|
|
55
|
+
for (const key of Object.keys(fromObject)) {
|
|
56
|
+
const objKeyPair = buildPath(path, fromObject, key);
|
|
57
|
+
if (!(key in toObject)) {
|
|
58
|
+
objKeyPair[0][objKeyPair[1]] = {
|
|
59
|
+
from: fromObject[key]
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
for (const [key, to2] of Object.entries(toObject)) {
|
|
64
|
+
const isLast = key in fromObject;
|
|
65
|
+
const objKeyPair = buildPath(path, fromObject, key);
|
|
66
|
+
if (isLast) {
|
|
67
|
+
const from2 = fromObject[key];
|
|
68
|
+
if (!deepEqual(from2, to2)) {
|
|
69
|
+
if (isObjectLike(to2) && isObjectLike(from2)) {
|
|
70
|
+
walk(from2, to2, objKeyPair[0][objKeyPair[1]]);
|
|
71
|
+
} else {
|
|
72
|
+
objKeyPair[0][objKeyPair[1]] = nullifyEmptyValues && typeof to2 !== "boolean" ? nullWhenEmpty(to2) : to2;
|
|
73
|
+
}
|
|
74
|
+
} else {
|
|
75
|
+
delete objKeyPair[0][objKeyPair[1]];
|
|
76
|
+
}
|
|
77
|
+
} else {
|
|
78
|
+
objKeyPair[0][objKeyPair[1]] = nullifyEmptyValues ? nullWhenEmpty(to2) : to2;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
walk(from, to);
|
|
83
|
+
return changes;
|
|
84
|
+
};
|
|
85
|
+
const objectDiff = ({
|
|
86
|
+
from,
|
|
87
|
+
to,
|
|
88
|
+
mode = "shallow",
|
|
89
|
+
nullifyEmptyValues = false
|
|
90
|
+
}) => mode === "deep" ? deepObjectDiff({ from, to, nullifyEmptyValues }) : shallowObjectDiff({ from, to, nullifyEmptyValues });
|
|
91
|
+
function orderBy(collection, iteratees, orders = []) {
|
|
92
|
+
return [...collection].sort((a, b) => {
|
|
93
|
+
for (let i = 0; i < iteratees.length; i++) {
|
|
94
|
+
const iter = iteratees[i];
|
|
95
|
+
const getter = typeof iter === "function" ? iter : (item) => item[iter];
|
|
96
|
+
const order = orders[i] === "desc" ? -1 : 1;
|
|
97
|
+
const va = getter(a);
|
|
98
|
+
const vb = getter(b);
|
|
99
|
+
if (va == null && vb == null) continue;
|
|
100
|
+
if (va == null) return order;
|
|
101
|
+
if (vb == null) return -order;
|
|
102
|
+
if (va < vb) return -order;
|
|
103
|
+
if (va > vb) return order;
|
|
104
|
+
}
|
|
105
|
+
return 0;
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
const _sfc_main$5 = {};
|
|
109
|
+
const _hoisted_1$4 = { class: "flex items-center pt-1" };
|
|
110
|
+
const _hoisted_2$3 = { class: "px-1.5 text-xs font-semibold text-gray-500" };
|
|
111
|
+
function _sfc_render(_ctx, _cache) {
|
|
112
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
113
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "w-2 border-t" }, null, -1)),
|
|
114
|
+
createElementVNode("span", _hoisted_2$3, [
|
|
115
|
+
renderSlot(_ctx.$slots, "default")
|
|
116
|
+
]),
|
|
117
|
+
_cache[1] || (_cache[1] = createElementVNode("div", { class: "grow border-t" }, null, -1))
|
|
118
|
+
]);
|
|
119
|
+
}
|
|
120
|
+
const SearchSelectInputOptionsDivider = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render]]);
|
|
121
|
+
const getOptionName = (value) => {
|
|
122
|
+
return `checkbox-item-${value}`;
|
|
123
|
+
};
|
|
124
|
+
const DONE_BUTTON_TEST_ID = "select-search-done-button";
|
|
125
|
+
const _hoisted_1$3 = ["aria-selected", "aria-disabled", "data-testid", "onKeydown"];
|
|
126
|
+
const _hoisted_2$2 = ["id", "value", "checked", "disabled"];
|
|
127
|
+
const _hoisted_3$2 = ["for"];
|
|
128
|
+
const _hoisted_4$2 = { class: "flex items-center gap-1" };
|
|
129
|
+
const _hoisted_5$2 = { class: "flex flex-grow flex-col" };
|
|
130
|
+
const _hoisted_6$2 = { class: "flex flex-grow gap-2" };
|
|
131
|
+
const _hoisted_7$1 = { class: "flex flex-grow flex-col" };
|
|
132
|
+
const _hoisted_8 = { class: "flex flex-grow items-center gap-2" };
|
|
133
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
134
|
+
__name: "SearchSelectInputOption",
|
|
135
|
+
props: {
|
|
136
|
+
multiple: { type: Boolean },
|
|
137
|
+
search: {},
|
|
138
|
+
condensed: { type: Boolean },
|
|
139
|
+
label: {},
|
|
140
|
+
checked: { type: Boolean },
|
|
141
|
+
disabled: { type: Boolean },
|
|
142
|
+
subLabel: {},
|
|
143
|
+
labelPrefixComponent: {},
|
|
144
|
+
labelSuffixComponent: {},
|
|
145
|
+
labelInlineComponent: {},
|
|
146
|
+
value: {},
|
|
147
|
+
labelSrOnly: { type: Boolean }
|
|
148
|
+
},
|
|
149
|
+
emits: ["value-changed"],
|
|
150
|
+
setup(__props, { emit: __emit }) {
|
|
151
|
+
const emit = __emit;
|
|
152
|
+
const props = __props;
|
|
153
|
+
const handleChange = (event) => {
|
|
154
|
+
const target = event.target;
|
|
155
|
+
const payload = {
|
|
156
|
+
value: target.value,
|
|
157
|
+
checked: target.checked
|
|
158
|
+
};
|
|
159
|
+
emit("value-changed", payload);
|
|
160
|
+
};
|
|
161
|
+
const handleClick = () => {
|
|
162
|
+
if (props.multiple || props.disabled) {
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
emit("value-changed", {
|
|
166
|
+
value: props.value
|
|
167
|
+
});
|
|
168
|
+
};
|
|
169
|
+
const name = computed(() => getOptionName(props.value));
|
|
170
|
+
const escapedSearch = computed(() => escapeUserInput(props.search ?? ""));
|
|
171
|
+
return (_ctx, _cache) => {
|
|
172
|
+
return openBlock(), createElementBlock("li", {
|
|
173
|
+
role: "option",
|
|
174
|
+
"aria-selected": __props.checked,
|
|
175
|
+
"aria-disabled": __props.disabled,
|
|
176
|
+
class: normalizeClass([{ "hover:bg-gray-100": !__props.disabled }, "relative flex"]),
|
|
177
|
+
"data-testid": name.value,
|
|
178
|
+
tabindex: "0",
|
|
179
|
+
onClick: handleClick,
|
|
180
|
+
onKeydown: withKeys(withModifiers(handleClick, ["prevent"]), ["enter"])
|
|
181
|
+
}, [
|
|
182
|
+
__props.multiple ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
183
|
+
createElementVNode("input", mergeProps(_ctx.$attrs, {
|
|
184
|
+
id: name.value,
|
|
185
|
+
ref: "inputRef",
|
|
186
|
+
value: __props.value,
|
|
187
|
+
checked: __props.checked,
|
|
188
|
+
disabled: __props.disabled,
|
|
189
|
+
type: "checkbox",
|
|
190
|
+
class: ["absolute left-3.5 top-1/2 h-4 w-4 -translate-y-2 rounded border-gray-300 bg-gray-100 focus:ring-2 focus:ring-primary-500", __props.disabled ? "text-gray-400 placeholder-gray-500" : "text-primary-600"],
|
|
191
|
+
tabindex: "-1",
|
|
192
|
+
onChange: handleChange
|
|
193
|
+
}), null, 16, _hoisted_2$2),
|
|
194
|
+
createElementVNode("label", {
|
|
195
|
+
for: name.value,
|
|
196
|
+
class: normalizeClass([__props.disabled ? `text-gray-400` : "rounded text-gray-900", "w-full px-4 py-3 pl-10 text-sm font-medium"])
|
|
197
|
+
}, [
|
|
198
|
+
createElementVNode("div", _hoisted_4$2, [
|
|
199
|
+
__props.labelPrefixComponent ? (openBlock(), createBlock(resolveDynamicComponent(__props.labelPrefixComponent.component), normalizeProps(mergeProps({ key: 0 }, __props.labelPrefixComponent.props)), null, 16)) : createCommentVNode("", true),
|
|
200
|
+
createElementVNode("div", _hoisted_5$2, [
|
|
201
|
+
createElementVNode("div", _hoisted_6$2, [
|
|
202
|
+
createVNode(_sfc_main$6, {
|
|
203
|
+
text: __props.label,
|
|
204
|
+
search: escapedSearch.value,
|
|
205
|
+
class: normalizeClass(["font-semibold", { "sr-only": __props.labelSrOnly }])
|
|
206
|
+
}, null, 8, ["text", "search", "class"]),
|
|
207
|
+
__props.labelInlineComponent ? (openBlock(), createBlock(resolveDynamicComponent(__props.labelInlineComponent.component), normalizeProps(mergeProps({ key: 0 }, __props.labelInlineComponent.props)), null, 16)) : createCommentVNode("", true),
|
|
208
|
+
__props.subLabel && __props.condensed ? (openBlock(), createBlock(_sfc_main$6, {
|
|
209
|
+
key: 1,
|
|
210
|
+
class: "text-xs text-slate-500",
|
|
211
|
+
text: __props.subLabel,
|
|
212
|
+
search: escapedSearch.value
|
|
213
|
+
}, null, 8, ["text", "search"])) : createCommentVNode("", true)
|
|
214
|
+
]),
|
|
215
|
+
__props.subLabel && !__props.condensed ? (openBlock(), createBlock(_sfc_main$6, {
|
|
216
|
+
key: 0,
|
|
217
|
+
class: "text-xs text-slate-500",
|
|
218
|
+
text: __props.subLabel,
|
|
219
|
+
search: escapedSearch.value
|
|
220
|
+
}, null, 8, ["text", "search"])) : createCommentVNode("", true)
|
|
221
|
+
]),
|
|
222
|
+
__props.labelSuffixComponent ? (openBlock(), createBlock(resolveDynamicComponent(__props.labelSuffixComponent.component), normalizeProps(mergeProps({ key: 1 }, __props.labelSuffixComponent.props)), null, 16)) : createCommentVNode("", true)
|
|
223
|
+
])
|
|
224
|
+
], 10, _hoisted_3$2)
|
|
225
|
+
], 64)) : (openBlock(), createElementBlock("div", {
|
|
226
|
+
key: 1,
|
|
227
|
+
class: normalizeClass(["flex w-full items-center gap-3 px-4 text-sm font-medium", [
|
|
228
|
+
__props.condensed ? "p-2" : "py-3",
|
|
229
|
+
__props.disabled ?? "cursor-not-allowed",
|
|
230
|
+
!__props.disabled && "cursor-pointer"
|
|
231
|
+
]])
|
|
232
|
+
}, [
|
|
233
|
+
__props.labelPrefixComponent ? (openBlock(), createBlock(resolveDynamicComponent(__props.labelPrefixComponent.component), normalizeProps(mergeProps({ key: 0 }, __props.labelPrefixComponent.props)), null, 16)) : createCommentVNode("", true),
|
|
234
|
+
createElementVNode("div", _hoisted_7$1, [
|
|
235
|
+
createElementVNode("div", _hoisted_8, [
|
|
236
|
+
createVNode(_sfc_main$6, {
|
|
237
|
+
text: __props.label,
|
|
238
|
+
search: unref(escapeUserInput)(__props.search ?? ""),
|
|
239
|
+
class: normalizeClass(["font-semibold", { "text-gray-400": __props.disabled }])
|
|
240
|
+
}, null, 8, ["text", "search", "class"]),
|
|
241
|
+
__props.labelInlineComponent ? (openBlock(), createBlock(resolveDynamicComponent(__props.labelInlineComponent.component), normalizeProps(mergeProps({ key: 0 }, __props.labelInlineComponent.props)), null, 16)) : createCommentVNode("", true),
|
|
242
|
+
__props.subLabel && __props.condensed ? (openBlock(), createBlock(_sfc_main$6, {
|
|
243
|
+
key: 1,
|
|
244
|
+
class: "text-xs text-slate-500",
|
|
245
|
+
text: __props.subLabel,
|
|
246
|
+
search: escapedSearch.value
|
|
247
|
+
}, null, 8, ["text", "search"])) : createCommentVNode("", true)
|
|
248
|
+
]),
|
|
249
|
+
__props.subLabel && !__props.condensed ? (openBlock(), createBlock(_sfc_main$6, {
|
|
250
|
+
key: 0,
|
|
251
|
+
class: "text-xs text-slate-500",
|
|
252
|
+
text: __props.subLabel,
|
|
253
|
+
search: escapedSearch.value
|
|
254
|
+
}, null, 8, ["text", "search"])) : createCommentVNode("", true)
|
|
255
|
+
]),
|
|
256
|
+
__props.labelSuffixComponent ? (openBlock(), createBlock(resolveDynamicComponent(__props.labelSuffixComponent.component), normalizeProps(mergeProps({ key: 1 }, __props.labelSuffixComponent.props)), null, 16)) : createCommentVNode("", true)
|
|
257
|
+
], 2))
|
|
258
|
+
], 42, _hoisted_1$3);
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
const _hoisted_1$2 = { class: "flex flex-col rounded-bl rounded-br" };
|
|
263
|
+
const _hoisted_2$1 = {
|
|
264
|
+
key: 0,
|
|
265
|
+
class: "px-5 py-5 text-sm text-slate-400"
|
|
266
|
+
};
|
|
267
|
+
const _hoisted_3$1 = { key: 0 };
|
|
268
|
+
const _hoisted_4$1 = ["innerHTML"];
|
|
269
|
+
const _hoisted_5$1 = { key: 0 };
|
|
270
|
+
const _hoisted_6$1 = { class: "mt-1 px-3 py-2 text-sm text-slate-600" };
|
|
271
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
272
|
+
__name: "SearchSelectInputOptions",
|
|
273
|
+
props: {
|
|
274
|
+
i18n: {},
|
|
275
|
+
model: {},
|
|
276
|
+
search: {},
|
|
277
|
+
multiple: { type: Boolean },
|
|
278
|
+
condensed: { type: Boolean },
|
|
279
|
+
hasLargeDropdown: { type: Boolean },
|
|
280
|
+
addOnly: { type: Boolean },
|
|
281
|
+
options: {}
|
|
282
|
+
},
|
|
283
|
+
emits: ["value-changed"],
|
|
284
|
+
setup(__props, { emit: __emit }) {
|
|
285
|
+
const emit = __emit;
|
|
286
|
+
const props = __props;
|
|
287
|
+
const handleChange = (payload) => emit("value-changed", payload);
|
|
288
|
+
const noResultsText = computed(() => {
|
|
289
|
+
var _a, _b;
|
|
290
|
+
const searchTerm = props.search ? `<span class="font-bold">"${escapeUserInput(props.search)}"</span>` : "";
|
|
291
|
+
return ((_b = (_a = props.i18n) == null ? void 0 : _a.noResults) == null ? void 0 : _b.call(_a, searchTerm)) ?? `No matches found for ${searchTerm}.`;
|
|
292
|
+
});
|
|
293
|
+
const isSearchEmpty = computed(() => props.search === "");
|
|
294
|
+
const visibleOptions = computed(() => props.options.filter((option) => !option.hidden));
|
|
295
|
+
const hasVisibleOptions = computed(() => visibleOptions.value.length > 0);
|
|
296
|
+
const showEmptyMessage = computed(() => {
|
|
297
|
+
if (hasVisibleOptions.value) {
|
|
298
|
+
return false;
|
|
299
|
+
}
|
|
300
|
+
if (isSearchEmpty.value) {
|
|
301
|
+
return true;
|
|
302
|
+
}
|
|
303
|
+
return !!noResultsText.value;
|
|
304
|
+
});
|
|
305
|
+
const groups = computed(
|
|
306
|
+
() => sortedUniqBy(props.options, "group").reduce(
|
|
307
|
+
(acc, option) => option.value === "" ? acc : {
|
|
308
|
+
...acc,
|
|
309
|
+
[option.value]: option.group
|
|
310
|
+
},
|
|
311
|
+
{}
|
|
312
|
+
)
|
|
313
|
+
);
|
|
314
|
+
return (_ctx, _cache) => {
|
|
315
|
+
var _a, _b;
|
|
316
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
317
|
+
showEmptyMessage.value ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
318
|
+
isSearchEmpty.value ? (openBlock(), createElementBlock("span", _hoisted_3$1, toDisplayString(((_a = props.i18n) == null ? void 0 : _a.noOptionsAvailable) ?? "No available options."), 1)) : (openBlock(), createElementBlock("span", {
|
|
319
|
+
key: 1,
|
|
320
|
+
innerHTML: noResultsText.value
|
|
321
|
+
}, null, 8, _hoisted_4$1))
|
|
322
|
+
])) : hasVisibleOptions.value ? (openBlock(), createElementBlock("ul", {
|
|
323
|
+
key: 1,
|
|
324
|
+
class: normalizeClass(["list-none overflow-y-auto text-gray-700", [__props.hasLargeDropdown ? "max-h-[19rem]" : "max-h-48"]])
|
|
325
|
+
}, [
|
|
326
|
+
__props.addOnly ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
327
|
+
createElementVNode("p", _hoisted_6$1, toDisplayString(((_b = __props.i18n) == null ? void 0 : _b.addOnly) ?? "You can only select currently unselected options."), 1)
|
|
328
|
+
])) : createCommentVNode("", true),
|
|
329
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleOptions.value, ({
|
|
330
|
+
label,
|
|
331
|
+
subLabel,
|
|
332
|
+
value,
|
|
333
|
+
checked,
|
|
334
|
+
disabled,
|
|
335
|
+
labelInlineComponent,
|
|
336
|
+
labelSuffixComponent,
|
|
337
|
+
labelSrOnly,
|
|
338
|
+
labelPrefixComponent,
|
|
339
|
+
searchValues
|
|
340
|
+
}) => {
|
|
341
|
+
return openBlock(), createElementBlock(Fragment, { key: value }, [
|
|
342
|
+
groups.value[value] ? (openBlock(), createBlock(SearchSelectInputOptionsDivider, { key: 0 }, {
|
|
343
|
+
default: withCtx(() => [
|
|
344
|
+
createTextVNode(toDisplayString(groups.value[value]), 1)
|
|
345
|
+
]),
|
|
346
|
+
_: 2
|
|
347
|
+
}, 1024)) : createCommentVNode("", true),
|
|
348
|
+
createVNode(_sfc_main$4, {
|
|
349
|
+
label,
|
|
350
|
+
"sub-label": subLabel,
|
|
351
|
+
value,
|
|
352
|
+
checked,
|
|
353
|
+
disabled,
|
|
354
|
+
search: searchValues ? "" : __props.search,
|
|
355
|
+
multiple: __props.multiple,
|
|
356
|
+
condensed: __props.condensed,
|
|
357
|
+
"label-suffix-component": labelSuffixComponent,
|
|
358
|
+
"label-prefix-component": labelPrefixComponent,
|
|
359
|
+
"label-inline-component": labelInlineComponent,
|
|
360
|
+
"label-sr-only": labelSrOnly,
|
|
361
|
+
onValueChanged: handleChange
|
|
362
|
+
}, null, 8, ["label", "sub-label", "value", "checked", "disabled", "search", "multiple", "condensed", "label-suffix-component", "label-prefix-component", "label-inline-component", "label-sr-only"])
|
|
363
|
+
], 64);
|
|
364
|
+
}), 128))
|
|
365
|
+
], 2)) : createCommentVNode("", true),
|
|
366
|
+
_ctx.$slots["list-footer-content"] ? (openBlock(), createElementBlock("div", {
|
|
367
|
+
key: 2,
|
|
368
|
+
class: normalizeClass({ "border-t border-gray-200": hasVisibleOptions.value })
|
|
369
|
+
}, [
|
|
370
|
+
renderSlot(_ctx.$slots, "list-footer-content")
|
|
371
|
+
], 2)) : createCommentVNode("", true)
|
|
372
|
+
]);
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
const _hoisted_1$1 = { class: "flex flex-col gap-2" };
|
|
377
|
+
const _hoisted_2 = ["aria-expanded"];
|
|
378
|
+
const _hoisted_3 = { class: "flex items-center gap-2" };
|
|
379
|
+
const _hoisted_4 = { key: 0 };
|
|
380
|
+
const _hoisted_5 = { class: "flex items-center gap-2" };
|
|
381
|
+
const _hoisted_6 = {
|
|
382
|
+
key: 0,
|
|
383
|
+
class: "flex flex-wrap gap-2"
|
|
384
|
+
};
|
|
385
|
+
const _hoisted_7 = ["innerHTML"];
|
|
386
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
387
|
+
__name: "SearchSelectInput",
|
|
388
|
+
props: /* @__PURE__ */ mergeModels({
|
|
389
|
+
addOnly: { type: Boolean, default: false },
|
|
390
|
+
disabled: { type: Boolean },
|
|
391
|
+
i18n: {},
|
|
392
|
+
label: {},
|
|
393
|
+
labelScreenReaderOnly: { type: Boolean },
|
|
394
|
+
singleModelValue: {},
|
|
395
|
+
multiModelValue: {},
|
|
396
|
+
options: { default: () => [] },
|
|
397
|
+
optionsOrder: { default: () => ["asc", "asc"] },
|
|
398
|
+
optionsOrderProperties: { default: () => ["group", "label"] },
|
|
399
|
+
required: { type: Boolean, default: false },
|
|
400
|
+
rootClass: {},
|
|
401
|
+
wrapperClass: {},
|
|
402
|
+
size: { default: "md" },
|
|
403
|
+
withChips: { type: Boolean, default: false },
|
|
404
|
+
chipColor: {},
|
|
405
|
+
error: {},
|
|
406
|
+
hasReset: { type: Boolean },
|
|
407
|
+
name: {},
|
|
408
|
+
hasLargeDropdown: { type: Boolean, default: false },
|
|
409
|
+
showSuffixInClosedInput: { type: Boolean },
|
|
410
|
+
showSuffixLabelInInput: { type: Boolean },
|
|
411
|
+
condensed: { type: Boolean },
|
|
412
|
+
form: {}
|
|
413
|
+
}, {
|
|
414
|
+
"search": { default: "" },
|
|
415
|
+
"searchModifiers": {}
|
|
416
|
+
}),
|
|
417
|
+
emits: /* @__PURE__ */ mergeModels(["update:singleModelValue", "update:multiModelValue", "blur", "change", "focus", "add-option"], ["update:search"]),
|
|
418
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
419
|
+
var _a;
|
|
420
|
+
const props = __props;
|
|
421
|
+
const teleportTarget = inject(SEARCH_SELECT_TELEPORT_TARGET);
|
|
422
|
+
const instanceProps = (_a = getCurrentInstance()) == null ? void 0 : _a.vnode.props;
|
|
423
|
+
const isHandlingSearchInternally = !(instanceProps == null ? void 0 : instanceProps["onUpdate:search"]);
|
|
424
|
+
const allowsMultipleValues = computed(() => Array.isArray(props.multiModelValue));
|
|
425
|
+
const initialValues = ref(props.singleModelValue);
|
|
426
|
+
const emit = __emit;
|
|
427
|
+
const singleModel = useVModel(props, "singleModelValue", emit);
|
|
428
|
+
const multiModel = useVModel(props, "multiModelValue", emit);
|
|
429
|
+
const unappliedMultiModel = ref(multiModel.value ?? []);
|
|
430
|
+
watch(
|
|
431
|
+
() => props.multiModelValue,
|
|
432
|
+
(value) => {
|
|
433
|
+
if (value) unappliedMultiModel.value = value;
|
|
434
|
+
}
|
|
435
|
+
);
|
|
436
|
+
const searchValue = useModel(__props, "search");
|
|
437
|
+
const derivedModel = computed({
|
|
438
|
+
get: () => {
|
|
439
|
+
if (allowsMultipleValues.value) {
|
|
440
|
+
return unappliedMultiModel.value ?? [];
|
|
441
|
+
}
|
|
442
|
+
if (typeof singleModel.value === "string") {
|
|
443
|
+
return [singleModel.value];
|
|
444
|
+
}
|
|
445
|
+
return [];
|
|
446
|
+
},
|
|
447
|
+
set(value) {
|
|
448
|
+
if (allowsMultipleValues.value) {
|
|
449
|
+
unappliedMultiModel.value = value;
|
|
450
|
+
} else {
|
|
451
|
+
singleModel.value = (value == null ? void 0 : value[0]) ?? "";
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
});
|
|
455
|
+
const selectedOptions = computed(
|
|
456
|
+
() => parsedOptions.value.filter((option) => {
|
|
457
|
+
var _a2;
|
|
458
|
+
return (_a2 = derivedModel.value) == null ? void 0 : _a2.includes(option.value);
|
|
459
|
+
})
|
|
460
|
+
);
|
|
461
|
+
const firstSelectedOption = computed(() => selectedOptions.value[0]);
|
|
462
|
+
const isMounted = useIsMounted();
|
|
463
|
+
const isOpen = ref(false);
|
|
464
|
+
const optionsRef = ref();
|
|
465
|
+
const wrapperRef = ref();
|
|
466
|
+
const inputRef = ref();
|
|
467
|
+
const getFocusableElements = () => {
|
|
468
|
+
if (!optionsRef.value) return [];
|
|
469
|
+
return Array.from(
|
|
470
|
+
optionsRef.value.querySelectorAll('li[tabindex="0"], button:not([disabled])')
|
|
471
|
+
);
|
|
472
|
+
};
|
|
473
|
+
const getDeepActiveElement = () => {
|
|
474
|
+
var _a2;
|
|
475
|
+
let active = document.activeElement;
|
|
476
|
+
while ((_a2 = active == null ? void 0 : active.shadowRoot) == null ? void 0 : _a2.activeElement) {
|
|
477
|
+
active = active.shadowRoot.activeElement;
|
|
478
|
+
}
|
|
479
|
+
return active;
|
|
480
|
+
};
|
|
481
|
+
const getInputElement = () => {
|
|
482
|
+
if (!wrapperRef.value) return null;
|
|
483
|
+
let input = wrapperRef.value.querySelector("input");
|
|
484
|
+
if (input) return input;
|
|
485
|
+
const shadowRoots = wrapperRef.value.querySelectorAll("*");
|
|
486
|
+
for (const el of shadowRoots) {
|
|
487
|
+
if (el.shadowRoot) {
|
|
488
|
+
input = el.shadowRoot.querySelector("input");
|
|
489
|
+
if (input) return input;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
return null;
|
|
493
|
+
};
|
|
494
|
+
let isRestoringFocus = false;
|
|
495
|
+
const restoreInputFocus = () => {
|
|
496
|
+
var _a2;
|
|
497
|
+
isRestoringFocus = true;
|
|
498
|
+
(_a2 = getInputElement()) == null ? void 0 : _a2.focus();
|
|
499
|
+
isRestoringFocus = false;
|
|
500
|
+
};
|
|
501
|
+
const handleInputFocus = () => {
|
|
502
|
+
if (isRestoringFocus) return;
|
|
503
|
+
isOpen.value = true;
|
|
504
|
+
};
|
|
505
|
+
const handleWrapperKeyDown = (event) => {
|
|
506
|
+
var _a2;
|
|
507
|
+
if (!isOpen.value) return;
|
|
508
|
+
const focusableElements = getFocusableElements();
|
|
509
|
+
const input = getInputElement();
|
|
510
|
+
const activeElement = getDeepActiveElement();
|
|
511
|
+
const isInputFocused = activeElement === input;
|
|
512
|
+
if (!isInputFocused) return;
|
|
513
|
+
switch (event.key) {
|
|
514
|
+
case "ArrowDown":
|
|
515
|
+
if (focusableElements.length > 0) {
|
|
516
|
+
event.preventDefault();
|
|
517
|
+
(_a2 = focusableElements[0]) == null ? void 0 : _a2.focus();
|
|
518
|
+
}
|
|
519
|
+
break;
|
|
520
|
+
case "Tab":
|
|
521
|
+
close();
|
|
522
|
+
searchValue.value = "";
|
|
523
|
+
break;
|
|
524
|
+
case "Escape":
|
|
525
|
+
event.preventDefault();
|
|
526
|
+
close();
|
|
527
|
+
searchValue.value = "";
|
|
528
|
+
break;
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
const handleOptionsKeyDown = (event) => {
|
|
532
|
+
var _a2, _b, _c;
|
|
533
|
+
const focusableElements = getFocusableElements();
|
|
534
|
+
const activeElement = getDeepActiveElement();
|
|
535
|
+
const currentIndex = focusableElements.indexOf(activeElement);
|
|
536
|
+
const input = getInputElement();
|
|
537
|
+
switch (event.key) {
|
|
538
|
+
case "ArrowDown":
|
|
539
|
+
if (currentIndex < focusableElements.length - 1) {
|
|
540
|
+
event.preventDefault();
|
|
541
|
+
(_a2 = focusableElements[currentIndex + 1]) == null ? void 0 : _a2.focus();
|
|
542
|
+
}
|
|
543
|
+
break;
|
|
544
|
+
case "ArrowUp":
|
|
545
|
+
event.preventDefault();
|
|
546
|
+
if (currentIndex <= 0) {
|
|
547
|
+
input == null ? void 0 : input.focus();
|
|
548
|
+
} else {
|
|
549
|
+
(_b = focusableElements[currentIndex - 1]) == null ? void 0 : _b.focus();
|
|
550
|
+
}
|
|
551
|
+
break;
|
|
552
|
+
case "Tab":
|
|
553
|
+
event.preventDefault();
|
|
554
|
+
if (event.shiftKey && currentIndex > 0) {
|
|
555
|
+
(_c = focusableElements[currentIndex - 1]) == null ? void 0 : _c.focus();
|
|
556
|
+
break;
|
|
557
|
+
}
|
|
558
|
+
close();
|
|
559
|
+
searchValue.value = "";
|
|
560
|
+
restoreInputFocus();
|
|
561
|
+
break;
|
|
562
|
+
case "Escape":
|
|
563
|
+
event.preventDefault();
|
|
564
|
+
close();
|
|
565
|
+
searchValue.value = "";
|
|
566
|
+
restoreInputFocus();
|
|
567
|
+
break;
|
|
568
|
+
}
|
|
569
|
+
};
|
|
570
|
+
const { floatingStyles } = useFloating(wrapperRef, optionsRef, {
|
|
571
|
+
whileElementsMounted: autoUpdate,
|
|
572
|
+
placement: "bottom",
|
|
573
|
+
middleware: [
|
|
574
|
+
offset(4),
|
|
575
|
+
flip({
|
|
576
|
+
mainAxis: true
|
|
577
|
+
}),
|
|
578
|
+
shift({ padding: 8 }),
|
|
579
|
+
size({
|
|
580
|
+
padding: 8,
|
|
581
|
+
apply({ availableHeight, elements }) {
|
|
582
|
+
Object.assign(elements.floating.style, {
|
|
583
|
+
maxHeight: `${availableHeight}px`
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
})
|
|
587
|
+
]
|
|
588
|
+
});
|
|
589
|
+
const { width } = useElementSize(wrapperRef);
|
|
590
|
+
const isDisabled = (value) => {
|
|
591
|
+
var _a2;
|
|
592
|
+
return props.disabled || !props.disabled && props.addOnly && !!((_a2 = initialValues.value) == null ? void 0 : _a2.includes(value));
|
|
593
|
+
};
|
|
594
|
+
const parsedOptions = computed(() => {
|
|
595
|
+
const options = props.options.map((option) => ({
|
|
596
|
+
...option,
|
|
597
|
+
checked: derivedModel.value.includes(option.value),
|
|
598
|
+
disabled: option.disabled ?? isDisabled(option.value)
|
|
599
|
+
}));
|
|
600
|
+
const optionsWithSelectedItem = [
|
|
601
|
+
...options,
|
|
602
|
+
...searchValue.value.length === 0 && memoryCachedSelectedOptions.value ? memoryCachedSelectedOptions.value.filter(
|
|
603
|
+
(selectedOption) => !options.some((option) => option.value === selectedOption.value)
|
|
604
|
+
) : []
|
|
605
|
+
];
|
|
606
|
+
return props.optionsOrderProperties && !isEmpty(props.optionsOrderProperties) ? orderBy(optionsWithSelectedItem, props.optionsOrderProperties, props.optionsOrder) : optionsWithSelectedItem;
|
|
607
|
+
});
|
|
608
|
+
const getSelectedItems = (selectedValue) => parsedOptions.value.filter((option) => selectedValue.some((value) => option.value === value));
|
|
609
|
+
const selectedItems = computed(() => getSelectedItems(derivedModel.value));
|
|
610
|
+
const firstSelectedItem = computed(() => selectedItems.value[0]);
|
|
611
|
+
const memoryCachedSelectedOptions = ref([]);
|
|
612
|
+
const handleChange = ({
|
|
613
|
+
value,
|
|
614
|
+
checked
|
|
615
|
+
}) => {
|
|
616
|
+
let updatedValue;
|
|
617
|
+
if (allowsMultipleValues.value) {
|
|
618
|
+
updatedValue = checked ? [...derivedModel.value, value] : derivedModel.value.filter((selectedValue) => selectedValue !== value);
|
|
619
|
+
} else {
|
|
620
|
+
updatedValue = [value];
|
|
621
|
+
isOpen.value = false;
|
|
622
|
+
searchValue.value = "";
|
|
623
|
+
restoreInputFocus();
|
|
624
|
+
}
|
|
625
|
+
memoryCachedSelectedOptions.value = getSelectedItems(updatedValue);
|
|
626
|
+
derivedModel.value = updatedValue;
|
|
627
|
+
emit("change");
|
|
628
|
+
};
|
|
629
|
+
const canReset = computed(
|
|
630
|
+
() => derivedModel.value.length > 0 && !props.disabled && !(derivedModel.value.length === 1 && derivedModel.value[0] === "")
|
|
631
|
+
);
|
|
632
|
+
const reset = () => {
|
|
633
|
+
derivedModel.value = [];
|
|
634
|
+
unappliedMultiModel.value = [];
|
|
635
|
+
};
|
|
636
|
+
const handleClear = () => {
|
|
637
|
+
searchValue.value = "";
|
|
638
|
+
};
|
|
639
|
+
const filteredOptions = computed(() => {
|
|
640
|
+
if (!isHandlingSearchInternally) {
|
|
641
|
+
return parsedOptions.value;
|
|
642
|
+
}
|
|
643
|
+
return parsedOptions.value.filter((option) => {
|
|
644
|
+
const escapedUserInput = escapeUserInput(searchValue.value.toLowerCase());
|
|
645
|
+
if (option.searchValues) {
|
|
646
|
+
return option.searchValues.some(
|
|
647
|
+
(value) => value.toLowerCase().match(escapedUserInput)
|
|
648
|
+
);
|
|
649
|
+
}
|
|
650
|
+
return (option.label ?? "").toLowerCase().match(escapedUserInput);
|
|
651
|
+
});
|
|
652
|
+
});
|
|
653
|
+
const close = () => {
|
|
654
|
+
if (allowsMultipleValues.value) {
|
|
655
|
+
multiModel.value = unappliedMultiModel.value;
|
|
656
|
+
}
|
|
657
|
+
isOpen.value = false;
|
|
658
|
+
};
|
|
659
|
+
const toggleOpen = () => {
|
|
660
|
+
var _a2;
|
|
661
|
+
if (isOpen.value) {
|
|
662
|
+
close();
|
|
663
|
+
searchValue.value = "";
|
|
664
|
+
} else {
|
|
665
|
+
isOpen.value = true;
|
|
666
|
+
(_a2 = getInputElement()) == null ? void 0 : _a2.focus();
|
|
667
|
+
}
|
|
668
|
+
};
|
|
669
|
+
watch(unappliedMultiModel, () => {
|
|
670
|
+
if (!isOpen.value && !isEqual(multiModel.value, unappliedMultiModel.value) && allowsMultipleValues.value) {
|
|
671
|
+
multiModel.value = unappliedMultiModel.value;
|
|
672
|
+
}
|
|
673
|
+
});
|
|
674
|
+
const handleClickOutside = (event) => {
|
|
675
|
+
const path = event.composedPath();
|
|
676
|
+
if (optionsRef.value && path.includes(optionsRef.value) || wrapperRef.value && path.includes(wrapperRef.value)) {
|
|
677
|
+
return;
|
|
678
|
+
}
|
|
679
|
+
if (isOpen.value) {
|
|
680
|
+
close();
|
|
681
|
+
searchValue.value = "";
|
|
682
|
+
}
|
|
683
|
+
};
|
|
684
|
+
useEventListener("mousedown", handleClickOutside);
|
|
685
|
+
const placeholder = computed(() => {
|
|
686
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
687
|
+
if (allowsMultipleValues.value && isOpen.value) {
|
|
688
|
+
return ((_a2 = props.i18n) == null ? void 0 : _a2.placeholderSearch) ?? "Search";
|
|
689
|
+
}
|
|
690
|
+
if (allowsMultipleValues.value && selectedItems.value.length === 1) {
|
|
691
|
+
return (_b = firstSelectedItem.value) == null ? void 0 : _b.label;
|
|
692
|
+
}
|
|
693
|
+
if (allowsMultipleValues.value && selectedItems.value.length >= 2) {
|
|
694
|
+
return `${(_c = firstSelectedItem.value) == null ? void 0 : _c.label} +${selectedItems.value.length - 1}`;
|
|
695
|
+
}
|
|
696
|
+
if (!singleModel.value && !firstSelectedItem.value) {
|
|
697
|
+
return ((_d = props.i18n) == null ? void 0 : _d.placeholderDefault) ?? "Select an option";
|
|
698
|
+
} else if (isOpen.value) {
|
|
699
|
+
return ((_e = props.i18n) == null ? void 0 : _e.placeholderSearch) ?? "Search";
|
|
700
|
+
}
|
|
701
|
+
if (!props.singleModelValue && !firstSelectedItem.value) {
|
|
702
|
+
return "";
|
|
703
|
+
}
|
|
704
|
+
return (_f = parsedOptions.value.find((option) => {
|
|
705
|
+
var _a3;
|
|
706
|
+
return option.value === ((_a3 = firstSelectedOption.value) == null ? void 0 : _a3.value);
|
|
707
|
+
})) == null ? void 0 : _f.label;
|
|
708
|
+
});
|
|
709
|
+
const isSearchEmpty = computed(() => searchValue.value === "");
|
|
710
|
+
const hasAddOptionListener = !!(instanceProps == null ? void 0 : instanceProps["onAddOption"]);
|
|
711
|
+
const onAddOption = () => {
|
|
712
|
+
emit("add-option");
|
|
713
|
+
close();
|
|
714
|
+
};
|
|
715
|
+
const hasPrefixComponent = computed(
|
|
716
|
+
() => {
|
|
717
|
+
var _a2;
|
|
718
|
+
return !isOpen.value && !allowsMultipleValues.value && ((_a2 = firstSelectedItem.value) == null ? void 0 : _a2.labelPrefixComponent);
|
|
719
|
+
}
|
|
720
|
+
);
|
|
721
|
+
const optionsId = `search-select-options-${Math.random().toString(36).substring(2, 9)}`;
|
|
722
|
+
__expose({
|
|
723
|
+
flushMemoryCachedSelectedOptions: () => memoryCachedSelectedOptions.value = [],
|
|
724
|
+
close
|
|
725
|
+
});
|
|
726
|
+
return (_ctx, _cache) => {
|
|
727
|
+
var _a2, _b, _c;
|
|
728
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
729
|
+
createElementVNode("div", _hoisted_1$1, [
|
|
730
|
+
createElementVNode("div", {
|
|
731
|
+
ref_key: "wrapperRef",
|
|
732
|
+
ref: wrapperRef,
|
|
733
|
+
class: normalizeClass(["relative flex items-end", {
|
|
734
|
+
[`${__props.rootClass}`]: __props.rootClass,
|
|
735
|
+
"z-30": isOpen.value
|
|
736
|
+
}]),
|
|
737
|
+
role: "combobox",
|
|
738
|
+
"aria-expanded": isOpen.value,
|
|
739
|
+
"aria-haspopup": true,
|
|
740
|
+
"aria-controls": optionsId,
|
|
741
|
+
onKeydown: handleWrapperKeyDown
|
|
742
|
+
}, [
|
|
743
|
+
createVNode(unref(_sfc_main$7), {
|
|
744
|
+
ref_key: "inputRef",
|
|
745
|
+
ref: inputRef,
|
|
746
|
+
modelValue: searchValue.value,
|
|
747
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => searchValue.value = $event),
|
|
748
|
+
required: __props.required,
|
|
749
|
+
label: __props.label,
|
|
750
|
+
name: __props.name,
|
|
751
|
+
form: __props.form,
|
|
752
|
+
"label-screen-reader-only": __props.labelScreenReaderOnly,
|
|
753
|
+
placeholder: placeholder.value,
|
|
754
|
+
class: normalizeClass(["grow", {
|
|
755
|
+
"placeholder:text-gray-900": !isOpen.value && (!allowsMultipleValues.value && unref(singleModel) || allowsMultipleValues.value && !unref(isEmpty)(__props.multiModelValue))
|
|
756
|
+
}]),
|
|
757
|
+
"wrapper-class": [
|
|
758
|
+
__props.wrapperClass,
|
|
759
|
+
{
|
|
760
|
+
"border-transparent border border-b-gray-200 focus-within:border-b relative z-10 rounded-b-none": isOpen.value
|
|
761
|
+
}
|
|
762
|
+
],
|
|
763
|
+
"suffix-class": "border-l-0 pl-0",
|
|
764
|
+
disabled: __props.disabled,
|
|
765
|
+
size: __props.size,
|
|
766
|
+
error: __props.error,
|
|
767
|
+
"prefix-has-border": !hasPrefixComponent.value,
|
|
768
|
+
"aria-autocomplete": "list",
|
|
769
|
+
onFocus: handleInputFocus,
|
|
770
|
+
onBlur: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("blur"))
|
|
771
|
+
}, createSlots({
|
|
772
|
+
"label-suffix": withCtx(() => [
|
|
773
|
+
renderSlot(_ctx.$slots, "label-suffix")
|
|
774
|
+
]),
|
|
775
|
+
suffix: withCtx(() => {
|
|
776
|
+
var _a3, _b2;
|
|
777
|
+
return [
|
|
778
|
+
createElementVNode("div", _hoisted_5, [
|
|
779
|
+
!isOpen.value && !allowsMultipleValues.value && ((_a3 = firstSelectedItem.value) == null ? void 0 : _a3.labelInlineComponent) && (!__props.showSuffixInClosedInput || __props.showSuffixLabelInInput) ? (openBlock(), createBlock(resolveDynamicComponent(firstSelectedItem.value.labelInlineComponent.component), normalizeProps(mergeProps({ key: 0 }, firstSelectedItem.value.labelInlineComponent.props)), null, 16)) : createCommentVNode("", true),
|
|
780
|
+
!isOpen.value && !allowsMultipleValues.value && ((_b2 = firstSelectedItem.value) == null ? void 0 : _b2.labelSuffixComponent) && __props.showSuffixInClosedInput ? (openBlock(), createBlock(resolveDynamicComponent(firstSelectedItem.value.labelSuffixComponent.component), normalizeProps(mergeProps({ key: 1 }, firstSelectedItem.value.labelSuffixComponent.props)), null, 16)) : createCommentVNode("", true),
|
|
781
|
+
canReset.value && __props.hasReset ? (openBlock(), createBlock(_sfc_main$8, {
|
|
782
|
+
key: 2,
|
|
783
|
+
icon: "close",
|
|
784
|
+
size: "sm",
|
|
785
|
+
variant: "ghost",
|
|
786
|
+
color: "gray",
|
|
787
|
+
type: "button",
|
|
788
|
+
onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
789
|
+
}, ["prevent"])),
|
|
790
|
+
onClick: reset
|
|
791
|
+
})) : createCommentVNode("", true),
|
|
792
|
+
!isSearchEmpty.value ? (openBlock(), createBlock(_sfc_main$8, {
|
|
793
|
+
key: 3,
|
|
794
|
+
icon: "close",
|
|
795
|
+
size: "sm",
|
|
796
|
+
variant: "ghost",
|
|
797
|
+
color: "gray",
|
|
798
|
+
type: "button",
|
|
799
|
+
onClick: handleClear
|
|
800
|
+
})) : createCommentVNode("", true),
|
|
801
|
+
createVNode(_sfc_main$8, {
|
|
802
|
+
icon: isOpen.value ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
803
|
+
size: "sm",
|
|
804
|
+
variant: "ghost",
|
|
805
|
+
color: "gray",
|
|
806
|
+
type: "button",
|
|
807
|
+
onMousedown: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
808
|
+
}, ["prevent"])),
|
|
809
|
+
onClick: toggleOpen
|
|
810
|
+
}, null, 8, ["icon"])
|
|
811
|
+
])
|
|
812
|
+
];
|
|
813
|
+
}),
|
|
814
|
+
_: 2
|
|
815
|
+
}, [
|
|
816
|
+
_ctx.$slots.tooltip ? {
|
|
817
|
+
name: "tooltip",
|
|
818
|
+
fn: withCtx(() => [
|
|
819
|
+
renderSlot(_ctx.$slots, "tooltip")
|
|
820
|
+
]),
|
|
821
|
+
key: "0"
|
|
822
|
+
} : void 0,
|
|
823
|
+
hasPrefixComponent.value || !isHandlingSearchInternally ? {
|
|
824
|
+
name: "prefix",
|
|
825
|
+
fn: withCtx(() => {
|
|
826
|
+
var _a3;
|
|
827
|
+
return [
|
|
828
|
+
createElementVNode("div", _hoisted_3, [
|
|
829
|
+
hasPrefixComponent.value && ((_a3 = firstSelectedItem.value) == null ? void 0 : _a3.labelPrefixComponent) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
830
|
+
(openBlock(), createBlock(resolveDynamicComponent(firstSelectedItem.value.labelPrefixComponent.component), normalizeProps(guardReactiveProps(firstSelectedItem.value.labelPrefixComponent.props)), null, 16))
|
|
831
|
+
])) : !isHandlingSearchInternally ? (openBlock(), createBlock(_sfc_main$9, {
|
|
832
|
+
key: 1,
|
|
833
|
+
icon: "search",
|
|
834
|
+
size: "sm"
|
|
835
|
+
})) : createCommentVNode("", true)
|
|
836
|
+
])
|
|
837
|
+
];
|
|
838
|
+
}),
|
|
839
|
+
key: "1"
|
|
840
|
+
} : void 0,
|
|
841
|
+
_ctx.$slots.helper ? {
|
|
842
|
+
name: "helper",
|
|
843
|
+
fn: withCtx(() => [
|
|
844
|
+
renderSlot(_ctx.$slots, "helper")
|
|
845
|
+
]),
|
|
846
|
+
key: "2"
|
|
847
|
+
} : void 0
|
|
848
|
+
]), 1032, ["modelValue", "required", "label", "name", "form", "label-screen-reader-only", "placeholder", "wrapper-class", "class", "disabled", "size", "error", "prefix-has-border"])
|
|
849
|
+
], 42, _hoisted_2),
|
|
850
|
+
__props.withChips ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
851
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(selectedItems.value, ({ value, label }) => {
|
|
852
|
+
return openBlock(), createBlock(_sfc_main$a, {
|
|
853
|
+
key: value,
|
|
854
|
+
removable: !isDisabled(value),
|
|
855
|
+
color: __props.chipColor,
|
|
856
|
+
onRemoved: ($event) => handleChange({ value, checked: false })
|
|
857
|
+
}, {
|
|
858
|
+
default: withCtx(() => [
|
|
859
|
+
createElementVNode("span", { innerHTML: label }, null, 8, _hoisted_7)
|
|
860
|
+
]),
|
|
861
|
+
_: 2
|
|
862
|
+
}, 1032, ["removable", "color", "onRemoved"]);
|
|
863
|
+
}), 128))
|
|
864
|
+
])) : createCommentVNode("", true)
|
|
865
|
+
]),
|
|
866
|
+
unref(isMounted) && unref(teleportTarget) ? (openBlock(), createBlock(Teleport, {
|
|
867
|
+
key: 0,
|
|
868
|
+
to: unref(teleportTarget)
|
|
869
|
+
}, [
|
|
870
|
+
isOpen.value && !__props.disabled ? (openBlock(), createElementBlock("div", {
|
|
871
|
+
key: 0,
|
|
872
|
+
id: optionsId,
|
|
873
|
+
ref_key: "optionsRef",
|
|
874
|
+
ref: optionsRef,
|
|
875
|
+
role: "listbox",
|
|
876
|
+
style: normalizeStyle(unref(floatingStyles)),
|
|
877
|
+
class: "z-70 overflow-y-auto rounded border border-gray-200 bg-white drop-shadow-md",
|
|
878
|
+
onMouseenter: _cache[4] || (_cache[4] = ($event) => isOpen.value = true),
|
|
879
|
+
onKeydown: handleOptionsKeyDown
|
|
880
|
+
}, [
|
|
881
|
+
createElementVNode("div", {
|
|
882
|
+
class: "rounded pt-0",
|
|
883
|
+
style: normalizeStyle({ width: `${unref(width)}px` })
|
|
884
|
+
}, [
|
|
885
|
+
createVNode(_sfc_main$3, {
|
|
886
|
+
i18n: {
|
|
887
|
+
addOnly: (_a2 = __props.i18n) == null ? void 0 : _a2.addOnly,
|
|
888
|
+
noResults: (_b = __props.i18n) == null ? void 0 : _b.noResults,
|
|
889
|
+
noOptionsAvailable: (_c = __props.i18n) == null ? void 0 : _c.noOptionsAvailable
|
|
890
|
+
},
|
|
891
|
+
options: filteredOptions.value,
|
|
892
|
+
multiple: allowsMultipleValues.value,
|
|
893
|
+
search: searchValue.value,
|
|
894
|
+
model: derivedModel.value,
|
|
895
|
+
"add-only": __props.addOnly,
|
|
896
|
+
"allows-multiple-values": !!allowsMultipleValues.value,
|
|
897
|
+
condensed: __props.condensed,
|
|
898
|
+
"has-large-dropdown": __props.hasLargeDropdown,
|
|
899
|
+
onValueChanged: handleChange
|
|
900
|
+
}, {
|
|
901
|
+
"list-footer-content": withCtx(() => [
|
|
902
|
+
hasAddOptionListener ? (openBlock(), createBlock(_sfc_main$b, {
|
|
903
|
+
key: 0,
|
|
904
|
+
variant: "ghost",
|
|
905
|
+
class: "w-full rounded-t-none",
|
|
906
|
+
type: "button",
|
|
907
|
+
"icon-prefix": "add",
|
|
908
|
+
onClick: onAddOption
|
|
909
|
+
}, {
|
|
910
|
+
default: withCtx(() => {
|
|
911
|
+
var _a3;
|
|
912
|
+
return [
|
|
913
|
+
createTextVNode(toDisplayString((_a3 = __props.i18n) == null ? void 0 : _a3.addOption), 1)
|
|
914
|
+
];
|
|
915
|
+
}),
|
|
916
|
+
_: 1
|
|
917
|
+
})) : createCommentVNode("", true),
|
|
918
|
+
allowsMultipleValues.value ? (openBlock(), createElementBlock("div", {
|
|
919
|
+
key: 1,
|
|
920
|
+
class: normalizeClass(["flex items-center justify-between", { "py-2": !_ctx.$slots["list-footer-content"] }])
|
|
921
|
+
}, [
|
|
922
|
+
canReset.value ? (openBlock(), createBlock(_sfc_main$b, {
|
|
923
|
+
key: 0,
|
|
924
|
+
type: "button",
|
|
925
|
+
color: "gray",
|
|
926
|
+
variant: "ghost",
|
|
927
|
+
size: "sm",
|
|
928
|
+
class: "ml-2",
|
|
929
|
+
onClick: reset
|
|
930
|
+
}, {
|
|
931
|
+
default: withCtx(() => {
|
|
932
|
+
var _a3;
|
|
933
|
+
return [
|
|
934
|
+
createTextVNode(toDisplayString(((_a3 = __props.i18n) == null ? void 0 : _a3.multipleValuesClearButtonText) ?? "Clear"), 1)
|
|
935
|
+
];
|
|
936
|
+
}),
|
|
937
|
+
_: 1
|
|
938
|
+
})) : createCommentVNode("", true),
|
|
939
|
+
createElementVNode("div", null, [
|
|
940
|
+
renderSlot(_ctx.$slots, "list-footer-content", { close })
|
|
941
|
+
]),
|
|
942
|
+
createVNode(_sfc_main$b, {
|
|
943
|
+
type: "button",
|
|
944
|
+
color: "gray",
|
|
945
|
+
variant: "outline",
|
|
946
|
+
size: "sm",
|
|
947
|
+
class: "mr-2",
|
|
948
|
+
"data-testid": unref(DONE_BUTTON_TEST_ID),
|
|
949
|
+
onClick: close
|
|
950
|
+
}, {
|
|
951
|
+
default: withCtx(() => {
|
|
952
|
+
var _a3;
|
|
953
|
+
return [
|
|
954
|
+
createTextVNode(toDisplayString(((_a3 = __props.i18n) == null ? void 0 : _a3.multipleValuesDoneButtonText) ?? "Done"), 1)
|
|
955
|
+
];
|
|
956
|
+
}),
|
|
957
|
+
_: 1
|
|
958
|
+
}, 8, ["data-testid"])
|
|
959
|
+
], 2)) : renderSlot(_ctx.$slots, "list-footer-content", { close }, void 0, void 0, 2)
|
|
960
|
+
]),
|
|
961
|
+
_: 3
|
|
962
|
+
}, 8, ["i18n", "options", "multiple", "search", "model", "add-only", "allows-multiple-values", "condensed", "has-large-dropdown"])
|
|
963
|
+
], 4)
|
|
964
|
+
], 36)) : createCommentVNode("", true)
|
|
965
|
+
], 8, ["to"])) : createCommentVNode("", true)
|
|
966
|
+
], 64);
|
|
967
|
+
};
|
|
968
|
+
}
|
|
969
|
+
});
|
|
970
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
971
|
+
__name: "CountrySelect",
|
|
972
|
+
props: {
|
|
973
|
+
label: {},
|
|
974
|
+
singleModelValue: {},
|
|
975
|
+
multiModelValue: {},
|
|
976
|
+
error: {},
|
|
977
|
+
required: { type: Boolean, default: true },
|
|
978
|
+
hasReset: { type: Boolean },
|
|
979
|
+
disabled: { type: Boolean },
|
|
980
|
+
name: {},
|
|
981
|
+
form: {}
|
|
982
|
+
},
|
|
983
|
+
emits: ["update:modelValue", "update:singleModelValue"],
|
|
984
|
+
setup(__props, { emit: __emit }) {
|
|
985
|
+
const props = __props;
|
|
986
|
+
const singleModel = useVModel(props, "singleModelValue");
|
|
987
|
+
const multiModel = useVModel(props, "multiModelValue");
|
|
988
|
+
const emit = __emit;
|
|
989
|
+
return (_ctx, _cache) => {
|
|
990
|
+
return openBlock(), createBlock(_sfc_main$2, {
|
|
991
|
+
"multi-model-value": unref(multiModel),
|
|
992
|
+
"onUpdate:multiModelValue": _cache[0] || (_cache[0] = ($event) => isRef(multiModel) ? multiModel.value = $event : null),
|
|
993
|
+
"single-model-value": unref(singleModel),
|
|
994
|
+
"onUpdate:singleModelValue": [
|
|
995
|
+
_cache[1] || (_cache[1] = ($event) => isRef(singleModel) ? singleModel.value = $event : null),
|
|
996
|
+
_cache[2] || (_cache[2] = (value) => {
|
|
997
|
+
emit("update:modelValue", value);
|
|
998
|
+
})
|
|
999
|
+
],
|
|
1000
|
+
"root-class": _ctx.$attrs.class,
|
|
1001
|
+
label: __props.label,
|
|
1002
|
+
options: unref(countryData).map(({ key, value }) => ({ label: value, value: key })),
|
|
1003
|
+
error: __props.error,
|
|
1004
|
+
"has-reset": __props.hasReset,
|
|
1005
|
+
disabled: __props.disabled,
|
|
1006
|
+
required: __props.required,
|
|
1007
|
+
"with-chips": !!__props.multiModelValue,
|
|
1008
|
+
name: __props.name,
|
|
1009
|
+
form: __props.form
|
|
1010
|
+
}, {
|
|
1011
|
+
"label-suffix": withCtx(() => [
|
|
1012
|
+
renderSlot(_ctx.$slots, "label-suffix")
|
|
1013
|
+
]),
|
|
1014
|
+
_: 3
|
|
1015
|
+
}, 8, ["multi-model-value", "single-model-value", "root-class", "label", "options", "error", "has-reset", "disabled", "required", "with-chips", "name", "form"]);
|
|
1016
|
+
};
|
|
1017
|
+
}
|
|
1018
|
+
});
|
|
1019
|
+
const _hoisted_1 = { class: "flex grow flex-col" };
|
|
1020
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1021
|
+
__name: "CompanyPurchaseToggle",
|
|
1022
|
+
props: /* @__PURE__ */ mergeModels({
|
|
1023
|
+
noSpacing: { type: Boolean }
|
|
1024
|
+
}, {
|
|
1025
|
+
"modelValue": { type: Boolean, ...{ required: true } },
|
|
1026
|
+
"modelModifiers": {}
|
|
1027
|
+
}),
|
|
1028
|
+
emits: ["update:modelValue"],
|
|
1029
|
+
setup(__props) {
|
|
1030
|
+
const model = useModel(__props, "modelValue");
|
|
1031
|
+
const { $t } = useIntl();
|
|
1032
|
+
return (_ctx, _cache) => {
|
|
1033
|
+
return openBlock(), createBlock(unref(_sfc_main$c), {
|
|
1034
|
+
modelValue: model.value,
|
|
1035
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
1036
|
+
"no-spacing": __props.noSpacing,
|
|
1037
|
+
"label-position": "before"
|
|
1038
|
+
}, {
|
|
1039
|
+
"inline-label": withCtx(() => [
|
|
1040
|
+
createElementVNode("div", _hoisted_1, [
|
|
1041
|
+
createVNode(unref(_sfc_main$d), { tag: "span" }, {
|
|
1042
|
+
default: withCtx(() => [
|
|
1043
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
1044
|
+
defaultMessage: "Company purchase",
|
|
1045
|
+
id: "checkout.company_purchase_toggle.title",
|
|
1046
|
+
description: "The title of the company purchase toggle in the checkout"
|
|
1047
|
+
})), 1)
|
|
1048
|
+
]),
|
|
1049
|
+
_: 1
|
|
1050
|
+
}),
|
|
1051
|
+
createVNode(unref(_sfc_main$d), {
|
|
1052
|
+
tag: "span",
|
|
1053
|
+
variant: "body-xs",
|
|
1054
|
+
shade: "lighter"
|
|
1055
|
+
}, {
|
|
1056
|
+
default: withCtx(() => [
|
|
1057
|
+
createTextVNode(toDisplayString(unref($t)({
|
|
1058
|
+
defaultMessage: "I am purchasing on behalf of a company",
|
|
1059
|
+
id: "checkout.company_purchase_toggle.sub_title",
|
|
1060
|
+
description: "The subtitle of the company purchase toggle in the checkout"
|
|
1061
|
+
})), 1)
|
|
1062
|
+
]),
|
|
1063
|
+
_: 1
|
|
1064
|
+
})
|
|
1065
|
+
])
|
|
1066
|
+
]),
|
|
1067
|
+
_: 1
|
|
1068
|
+
}, 8, ["modelValue", "no-spacing"]);
|
|
1069
|
+
};
|
|
1070
|
+
}
|
|
1071
|
+
});
|
|
1072
|
+
function useCustomerFormLabels() {
|
|
1073
|
+
const { $t } = useIntl();
|
|
1074
|
+
return {
|
|
1075
|
+
contactInformationTitle: $t({
|
|
1076
|
+
defaultMessage: "Customer information",
|
|
1077
|
+
id: "checkout.contact_information_block.title",
|
|
1078
|
+
description: "The title of the contact information block in the checkout form"
|
|
1079
|
+
}),
|
|
1080
|
+
emailLabel: $t({
|
|
1081
|
+
defaultMessage: "Email address",
|
|
1082
|
+
id: "checkout.email_address.label",
|
|
1083
|
+
description: "The email address of the customer in the checkout form"
|
|
1084
|
+
}),
|
|
1085
|
+
emailPlaceholder: $t({
|
|
1086
|
+
defaultMessage: "Email address...",
|
|
1087
|
+
id: "checkout.email_address.placeholder",
|
|
1088
|
+
description: "The email address of the customer in the checkout form"
|
|
1089
|
+
}),
|
|
1090
|
+
countryLabel: $t({
|
|
1091
|
+
defaultMessage: "Billing country",
|
|
1092
|
+
id: "checkout.country.label",
|
|
1093
|
+
description: "The country of the customer in the checkout form"
|
|
1094
|
+
}),
|
|
1095
|
+
vatNumberLabel: $t({
|
|
1096
|
+
defaultMessage: "VAT number",
|
|
1097
|
+
id: "checkout.vat_number.label",
|
|
1098
|
+
description: "The label for the vat number in the checkout form"
|
|
1099
|
+
}),
|
|
1100
|
+
vatNumberPlaceholder: $t({
|
|
1101
|
+
defaultMessage: "VAT number...",
|
|
1102
|
+
id: "checkout.vat_number.placeholder",
|
|
1103
|
+
description: "The label for the vat number in the checkout form"
|
|
1104
|
+
}),
|
|
1105
|
+
legalNameLabel: $t({
|
|
1106
|
+
defaultMessage: "Legal entity name",
|
|
1107
|
+
id: "checkout.legal_name.label",
|
|
1108
|
+
description: "The legal name of the organization customer in the checkout form"
|
|
1109
|
+
}),
|
|
1110
|
+
legalNamePlaceholder: $t({
|
|
1111
|
+
defaultMessage: "Legal entity name...",
|
|
1112
|
+
id: "checkout.legal_name.placeholder",
|
|
1113
|
+
description: "The legal name of the organization customer in the checkout form"
|
|
1114
|
+
}),
|
|
1115
|
+
addressTitle: $t({
|
|
1116
|
+
defaultMessage: "Billing address",
|
|
1117
|
+
id: "checkout.address.title",
|
|
1118
|
+
description: "Address line 1 of the customer address in the checkout form"
|
|
1119
|
+
}),
|
|
1120
|
+
postalCodePlaceholder: $t({
|
|
1121
|
+
defaultMessage: "Postal code...",
|
|
1122
|
+
id: "checkout.address.portal_code.placeholder",
|
|
1123
|
+
description: "Postal code of the customer address in the checkout form"
|
|
1124
|
+
}),
|
|
1125
|
+
cityPlaceholder: $t({
|
|
1126
|
+
defaultMessage: "City...",
|
|
1127
|
+
id: "checkout.address.city.placeholder",
|
|
1128
|
+
description: "City of the customer address in the checkout form"
|
|
1129
|
+
}),
|
|
1130
|
+
statePlaceholder: $t({
|
|
1131
|
+
defaultMessage: "State...",
|
|
1132
|
+
id: "checkout.address.state.placeholder",
|
|
1133
|
+
description: "State of the customer address in the checkout form"
|
|
1134
|
+
})
|
|
1135
|
+
};
|
|
1136
|
+
}
|
|
1137
|
+
export {
|
|
1138
|
+
_sfc_main$1 as _,
|
|
1139
|
+
_sfc_main as a,
|
|
1140
|
+
objectDiff as o,
|
|
1141
|
+
useCustomerFormLabels as u
|
|
1142
|
+
};
|