@solvimon/solvimon-web 0.1.0-alpha.30 → 0.1.0-alpha.31
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 +152 -91
- package/dist/AddPaymentMethodModal-Bs_aOOCX.mjs +97 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs +89 -0
- package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-xhsk_7Gn.mjs} +1 -1
- package/dist/AuthProvider.handle-CUO6Qj-5.mjs +46 -0
- package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-DrbtUiLO.mjs} +1 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C3JYNZuR.mjs +64 -0
- package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
- package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs +340 -0
- package/dist/BillingInformationModal-crgTNGf4.mjs +85 -0
- package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-BHbanjR0.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-DYiFtw1n.mjs} +44 -43
- package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-Dc6-PjEn.mjs} +2 -2
- package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
- package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-CvX6O2IM.mjs} +10 -10
- package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-DQWt9osz.mjs} +3 -3
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-hNVtamwL.mjs +217 -0
- package/dist/CustomerShippingAddresses-C0c-4D2W.mjs +282 -0
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs} +992 -1100
- package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-ChN6fnrH.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs} +3 -3
- package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-CWIVt5q9.mjs} +2 -2
- package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-CQ64C8dt.mjs} +1 -1
- package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-BXzwMvVk.mjs} +2 -2
- package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-GyanM-JQ.mjs} +3 -3
- package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-CxiwRZYs.mjs} +4 -4
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Ca0qflBR.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Dw73a5Yt.mjs} +7 -7
- package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-BvnikfEH.mjs} +6 -6
- package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-DxcyTRGr.mjs} +3 -3
- package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-3ACRco55.mjs} +3 -3
- package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-1qpRh-0S.mjs +20 -0
- package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CDjfZDDx.mjs} +138 -127
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-CnZwxJ5b.mjs +789 -0
- package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs} +2 -2
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs} +4 -4
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-HUazLER6.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DdmUoiet.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-ZnIjTyda.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DU5wu66t.mjs +161 -0
- package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-sbw3AoKS.mjs} +302 -282
- package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-4JmKEwbS.mjs} +126 -117
- package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-DAabE41t.mjs} +23 -21
- package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-MmCUSJLE.mjs} +1 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-DyiXLYRj.mjs +165 -0
- package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Bv34aiZ6.mjs} +6 -6
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DZ2Z-RMv.mjs} +28 -26
- package/dist/PaymentMethodsModal-CjpNw4kX.mjs +192 -0
- package/dist/PlanCustomizationEditor-BDWm_z2w.mjs +864 -0
- package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-B7YYhv97.mjs} +3 -3
- package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-DIyeKrAp.mjs} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-C6J8C7JS.mjs} +7 -7
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CiQ-C9Hh.mjs} +16 -15
- package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-hDmUAKIA.mjs} +5 -5
- package/dist/{Section.vue.es-Oqn1wGPZ.mjs → Section.vue.es-CwKTCeZ1.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs} +2 -2
- package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-y7yOKwR3.mjs +144 -0
- package/dist/ShippingAddressesModal-CNXxkxnJ.mjs +283 -0
- package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-GkrOtOVa.mjs} +4 -4
- package/dist/SubscriptionCancellationModal-C_xFPx1I.mjs +4 -0
- package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-DdTC33Qh.mjs +240 -0
- package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-CQ-ZOzVI.mjs +64 -0
- package/dist/SubscriptionDetails.entry.ce-DuP8TtKu.mjs +764 -0
- package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-DosBeXD7.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-5tyDFxEh.mjs} +1948 -1965
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C26HShPu.mjs +90 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BUDuQk2e.mjs} +133 -108
- package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
- package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-4HaXi8RP.mjs} +18 -18
- package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-C5Y6Kg-_.mjs} +1 -1
- package/dist/TrialChip.vue.es-CUfJ4SK3.mjs +47 -0
- package/dist/addonQuantity-BvoYTajN.mjs +128 -0
- package/dist/adyen-D4em6EgU.mjs +99 -0
- package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
- package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
- package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
- package/dist/components/Invoice/Invoice.mjs +426 -426
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
- package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
- package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
- package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
- package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
- package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
- package/dist/core/events.types.d.ts +1 -0
- package/dist/core/index.mjs +51 -34
- package/dist/{customElements-DK4GKNJG.mjs → customElements-d7Bhfqi_.mjs} +773 -746
- package/dist/{customer-lf6S5DBR.mjs → customer-CNCSN_G5.mjs} +1 -1
- package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-D-sV3avS.mjs} +8 -5
- package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-wZp39RC-.mjs} +68 -5
- package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-BYHycSxz.mjs} +3 -0
- package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-BrNXJ7gR.mjs} +68 -5
- package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
- package/dist/index.es-BEZ2mumY.mjs +633 -0
- package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.mjs +37 -33
- package/dist/invoices-CXvL8KQx.mjs +143 -0
- package/dist/{it-IT-DObZEc-U.mjs → it-IT-Bd1qsMVU.mjs} +68 -5
- package/dist/{it-IT-DnJP5URH.mjs → it-IT-zpPyT9PH.mjs} +8 -5
- package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-BOr4MR7L.mjs} +8 -5
- package/dist/{nl-NL-C02xHilF.mjs → nl-NL-C6Y6fqaW.mjs} +68 -5
- package/dist/paymentIntegrationFormLoaders-wi1vMgf_.mjs +31 -0
- package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-CG1fcG2v.mjs} +22 -21
- package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-D59QkGfm.mjs} +1 -1
- package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
- package/dist/payments-Dy81gmkC.mjs +71 -0
- package/dist/preloadPaymentIntegrationForms-C_9p7Jbi.mjs +9 -0
- package/dist/pricing-CBJT8C6L.mjs +42 -0
- package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-AYq_hYeD.mjs} +1 -1
- package/dist/pricingPlanScheduleOverrides-GON_34ep.mjs +291 -0
- package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
- package/dist/screens/Checkout/Checkout.mjs +1098 -3
- package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
- package/dist/screens/CheckoutSession/CheckoutSession.mjs +1316 -0
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
- package/dist/screens/PayInvoice/PayInvoice.mjs +282 -274
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
- package/dist/{sorting.es-C0pdMgX0.mjs → sorting.es-kM0f1VX0.mjs} +1 -1
- package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
- package/dist/subscriptions-Bm1eu9wc.mjs +99 -0
- package/dist/taxId.es-Zu2Ff1gL.mjs +510 -0
- package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
- package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
- package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
- package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
- package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
- package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
- package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
- package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
- package/dist/types/index.d.ts +5 -1
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
- package/dist/types/public/core/action-request.types.d.ts +18 -24
- package/dist/types/public/core/events.types.d.ts +99 -0
- package/dist/types/public/core/index.d.ts +3 -1
- package/dist/types/public/core/types.d.ts +11 -2
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
- package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
- package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
- package/dist/types/services/paymentMethods.types.d.ts +12 -1
- package/dist/types/types/EntryBaseProps.d.ts +10 -6
- package/dist/types/types/branding.d.ts +15 -0
- package/dist/types/types/checkoutSession.d.ts +189 -0
- package/dist/types/types/errors.d.ts +2 -0
- package/dist/types/types/pricingPlanGroup.d.ts +25 -0
- package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BWna0S6N.mjs} +1 -1
- package/dist/useAddressFormats-Dw7IEdxg.mjs +1997 -0
- package/dist/useCheckoutForm-BaV2j_ob.mjs +3310 -0
- package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-RUtEzDOY.mjs} +2 -2
- package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
- package/dist/useExperimentalFeature-DAKAF_a2.mjs +6 -0
- package/dist/useHostEvent-pjoWJ7ZH.mjs +12 -0
- package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-B3gp58X-.mjs} +2 -2
- package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-Dya4mmvf.mjs} +2 -2
- package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-Dp3c_cb3.mjs} +9 -9
- package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-CwySdYZM.mjs} +1 -1
- package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
- package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-B7NV0ZtX.mjs} +4 -4
- package/dist/usePaymentMethodOptions-DDRjVvDJ.mjs +67 -0
- package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-DBGyQA_I.mjs} +2 -2
- package/dist/{usePayments-hWS7fnOx.mjs → usePayments-ChGtK_As.mjs} +9 -9
- package/dist/usePortal--Uzbpbgr.mjs +14 -0
- package/dist/{useService-BwzIBIRp.mjs → useService-DayNZhPh.mjs} +1 -1
- package/dist/useShippingAddresses-TXVeGFPm.mjs +122 -0
- package/dist/useSubscription-lIGMFLG1.mjs +35 -0
- package/dist/useSubscriptionActions-BSlJVB4p.mjs +44 -0
- package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
- package/package.json +12 -5
- package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
- package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
- package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
- package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
- package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
- package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
- package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
- package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
- package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
- package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
- package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
- package/dist/invoices-DdREPDXV.mjs +0 -123
- package/dist/paymentMethods-Goa25rTs.mjs +0 -61
- package/dist/payments-CKpU1K3t.mjs +0 -68
- package/dist/pricing-CEaZGgKe.mjs +0 -29
- package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
- package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
- package/dist/subscriptions-B5bH8hsI.mjs +0 -66
- package/dist/taxId.es-e6NEvprh.mjs +0 -243
- package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
- package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
- package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
- package/dist/usePortal-DUfD6hrA.mjs +0 -7
- package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
|
@@ -0,0 +1,633 @@
|
|
|
1
|
+
import { openBlock as n, createElementBlock as b, createElementVNode as c, renderSlot as P, defineComponent as ee, computed as p, withKeys as ke, normalizeClass as k, Fragment as j, mergeProps as z, createBlock as i, resolveDynamicComponent as O, createCommentVNode as s, createVNode as E, normalizeProps as T, withCtx as m, createTextVNode as q, toDisplayString as F, renderList as ce, getCurrentInstance as Ce, ref as G, inject as we, unref as x, isRef as Se, createSlots as $e, guardReactiveProps as Ie, Teleport as Oe, normalizeStyle as re, nextTick as Ee } from "vue";
|
|
2
|
+
import { u as Z, a as Le, b as Me } from "./index.es-C7J3WGGo.mjs";
|
|
3
|
+
import { _ as Re, u as Be } from "./useLazyFloating.es-CycqRyeb.mjs";
|
|
4
|
+
import { e as De } from "./sanitization.es-C6dbuxUJ.mjs";
|
|
5
|
+
import { _ as U, s as Ve, u as Ae } from "./sorting.es-kM0f1VX0.mjs";
|
|
6
|
+
import { d as W, S as Pe } from "./customElements-d7Bhfqi_.mjs";
|
|
7
|
+
import { u as ze } from "./Label.vue.es-3ACRco55.mjs";
|
|
8
|
+
import { a as Te, _ } from "./Button.vue.es-BHbanjR0.mjs";
|
|
9
|
+
import { _ as qe } from "./IconButton.vue.es-BXzwMvVk.mjs";
|
|
10
|
+
import { _ as Ne } from "./Chip.vue.es-Dc6-PjEn.mjs";
|
|
11
|
+
import { a as Ke, i as Fe } from "./useService-DayNZhPh.mjs";
|
|
12
|
+
import { _ as Ue } from "./Input.vue.es-CxiwRZYs.mjs";
|
|
13
|
+
const je = (e) => `checkbox-item-${e}`, He = "select-search-done-button", Ge = {}, We = { class: "flex items-center pt-1" }, Ye = { class: "px-1.5 text-xs font-semibold text-subtle" };
|
|
14
|
+
function Je(e, C) {
|
|
15
|
+
return n(), b("div", We, [
|
|
16
|
+
C[0] || (C[0] = c("div", { class: "w-2 border-t" }, null, -1)),
|
|
17
|
+
c("span", Ye, [
|
|
18
|
+
P(e.$slots, "default")
|
|
19
|
+
]),
|
|
20
|
+
C[1] || (C[1] = c("div", { class: "grow border-t" }, null, -1))
|
|
21
|
+
]);
|
|
22
|
+
}
|
|
23
|
+
const Qe = /* @__PURE__ */ Re(Ge, [["render", Je]]), Xe = ["aria-selected", "aria-disabled", "data-testid"], Ze = ["id", "value", "checked", "disabled"], _e = ["for"], el = { class: "flex items-center gap-1" }, ll = { class: "flex flex-grow flex-col" }, tl = { class: "flex flex-grow gap-2" }, nl = { class: "flex flex-grow flex-col" }, al = { class: "flex flex-grow items-start justify-between gap-2" }, ol = { class: "flex items-center gap-2" }, sl = /* @__PURE__ */ ee({
|
|
24
|
+
__name: "SelectExtendedOption",
|
|
25
|
+
props: {
|
|
26
|
+
multiple: { type: Boolean },
|
|
27
|
+
inputValue: {},
|
|
28
|
+
condensed: { type: Boolean },
|
|
29
|
+
label: {},
|
|
30
|
+
checked: { type: Boolean },
|
|
31
|
+
disabled: { type: Boolean },
|
|
32
|
+
subLabel: {},
|
|
33
|
+
labelPrefixComponent: {},
|
|
34
|
+
labelSuffixComponent: {},
|
|
35
|
+
labelInlineComponent: {},
|
|
36
|
+
value: {},
|
|
37
|
+
labelSrOnly: { type: Boolean }
|
|
38
|
+
},
|
|
39
|
+
emits: ["value-changed"],
|
|
40
|
+
setup(e, { emit: C }) {
|
|
41
|
+
const L = C, o = e, $ = (h) => {
|
|
42
|
+
const R = h.target;
|
|
43
|
+
L("value-changed", {
|
|
44
|
+
value: R.value,
|
|
45
|
+
checked: R.checked
|
|
46
|
+
});
|
|
47
|
+
}, M = () => {
|
|
48
|
+
o.multiple || o.disabled || L("value-changed", { value: o.value });
|
|
49
|
+
}, y = p(() => je(o.value)), u = p(() => De(o.inputValue ?? ""));
|
|
50
|
+
return (h, R) => (n(), b("li", {
|
|
51
|
+
role: "option",
|
|
52
|
+
"aria-selected": e.checked,
|
|
53
|
+
"aria-disabled": e.disabled,
|
|
54
|
+
class: k([{ "hover:bg-gray-50": !e.disabled }, "relative flex"]),
|
|
55
|
+
"data-testid": y.value,
|
|
56
|
+
tabindex: "0",
|
|
57
|
+
onClick: M,
|
|
58
|
+
onKeydown: ke(M, ["enter"])
|
|
59
|
+
}, [
|
|
60
|
+
e.multiple ? (n(), b(j, { key: 0 }, [
|
|
61
|
+
c("input", z(h.$attrs, {
|
|
62
|
+
id: y.value,
|
|
63
|
+
ref: "inputRef",
|
|
64
|
+
value: e.value,
|
|
65
|
+
checked: e.checked,
|
|
66
|
+
disabled: e.disabled,
|
|
67
|
+
type: "checkbox",
|
|
68
|
+
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", e.disabled ? "text-disabled" : "text-primary-600"],
|
|
69
|
+
tabindex: "-1",
|
|
70
|
+
onChange: $
|
|
71
|
+
}), null, 16, Ze),
|
|
72
|
+
c("label", {
|
|
73
|
+
for: y.value,
|
|
74
|
+
class: k([e.disabled ? "text-disabled" : "rounded text-default", "w-full px-4 py-3 pl-10 text-sm font-medium"])
|
|
75
|
+
}, [
|
|
76
|
+
c("div", el, [
|
|
77
|
+
e.labelPrefixComponent ? (n(), i(O(e.labelPrefixComponent.component), { key: 0 })) : s("", !0),
|
|
78
|
+
c("div", ll, [
|
|
79
|
+
c("div", tl, [
|
|
80
|
+
E(U, {
|
|
81
|
+
text: e.label,
|
|
82
|
+
search: u.value,
|
|
83
|
+
class: k(["font-semibold", { "sr-only": e.labelSrOnly }])
|
|
84
|
+
}, null, 8, ["text", "search", "class"]),
|
|
85
|
+
e.labelInlineComponent ? (n(), i(O(e.labelInlineComponent.component), T(z({ key: 0 }, e.labelInlineComponent.props)), null, 16)) : s("", !0),
|
|
86
|
+
e.subLabel && e.condensed ? (n(), i(U, {
|
|
87
|
+
key: 1,
|
|
88
|
+
class: "text-xs text-secondary",
|
|
89
|
+
text: e.subLabel,
|
|
90
|
+
search: u.value
|
|
91
|
+
}, null, 8, ["text", "search"])) : s("", !0)
|
|
92
|
+
]),
|
|
93
|
+
e.subLabel && !e.condensed ? (n(), i(U, {
|
|
94
|
+
key: 0,
|
|
95
|
+
class: "text-xs text-secondary",
|
|
96
|
+
text: e.subLabel,
|
|
97
|
+
search: u.value
|
|
98
|
+
}, null, 8, ["text", "search"])) : s("", !0)
|
|
99
|
+
]),
|
|
100
|
+
e.labelSuffixComponent ? (n(), i(O(e.labelSuffixComponent.component), T(z({ key: 1 }, e.labelSuffixComponent.props)), null, 16)) : s("", !0)
|
|
101
|
+
])
|
|
102
|
+
], 10, _e)
|
|
103
|
+
], 64)) : (n(), b("div", {
|
|
104
|
+
key: 1,
|
|
105
|
+
class: k(["flex w-full items-start gap-3 px-4 text-sm font-medium", [
|
|
106
|
+
e.condensed ? "p-2" : "py-3",
|
|
107
|
+
e.disabled ?? "cursor-not-allowed",
|
|
108
|
+
!e.disabled && "cursor-pointer"
|
|
109
|
+
]])
|
|
110
|
+
}, [
|
|
111
|
+
e.labelPrefixComponent ? (n(), i(O(e.labelPrefixComponent.component), T(z({ key: 0 }, e.labelPrefixComponent.props)), null, 16)) : s("", !0),
|
|
112
|
+
c("div", nl, [
|
|
113
|
+
c("div", al, [
|
|
114
|
+
E(U, {
|
|
115
|
+
text: e.label,
|
|
116
|
+
search: u.value,
|
|
117
|
+
class: k(["font-semibold", { "text-disabled": e.disabled }])
|
|
118
|
+
}, null, 8, ["text", "search", "class"]),
|
|
119
|
+
c("div", ol, [
|
|
120
|
+
e.labelInlineComponent ? (n(), i(O(e.labelInlineComponent.component), T(z({ key: 0 }, e.labelInlineComponent.props)), null, 16)) : s("", !0),
|
|
121
|
+
e.labelSuffixComponent ? (n(), i(O(e.labelSuffixComponent.component), T(z({ key: 1 }, e.labelSuffixComponent.props)), null, 16)) : s("", !0)
|
|
122
|
+
])
|
|
123
|
+
]),
|
|
124
|
+
e.subLabel && e.condensed ? (n(), i(U, {
|
|
125
|
+
key: 0,
|
|
126
|
+
class: "text-xs text-secondary",
|
|
127
|
+
text: e.subLabel,
|
|
128
|
+
search: u.value
|
|
129
|
+
}, null, 8, ["text", "search"])) : s("", !0),
|
|
130
|
+
e.subLabel && !e.condensed ? (n(), i(U, {
|
|
131
|
+
key: 1,
|
|
132
|
+
class: "text-xs text-secondary",
|
|
133
|
+
text: e.subLabel,
|
|
134
|
+
search: u.value
|
|
135
|
+
}, null, 8, ["text", "search"])) : s("", !0)
|
|
136
|
+
])
|
|
137
|
+
], 2))
|
|
138
|
+
], 42, Xe));
|
|
139
|
+
}
|
|
140
|
+
}), ul = { class: "flex flex-col rounded-bl rounded-br" }, il = { key: 0 }, dl = {
|
|
141
|
+
key: 2,
|
|
142
|
+
class: "border-t border-gray-200"
|
|
143
|
+
}, rl = /* @__PURE__ */ ee({
|
|
144
|
+
__name: "SelectExtendedOptions",
|
|
145
|
+
props: {
|
|
146
|
+
model: {},
|
|
147
|
+
multiple: { type: Boolean },
|
|
148
|
+
condensed: { type: Boolean },
|
|
149
|
+
hasLargeDropdown: { type: Boolean },
|
|
150
|
+
inputValue: {},
|
|
151
|
+
addOnly: { type: Boolean },
|
|
152
|
+
options: {}
|
|
153
|
+
},
|
|
154
|
+
emits: ["value-changed"],
|
|
155
|
+
setup(e, { emit: C }) {
|
|
156
|
+
const L = e, o = C, $ = (u) => o("value-changed", u), M = p(
|
|
157
|
+
() => Ve(L.options, "group").reduce((u, h) => h.value === "" ? u : { ...u, [h.value]: h.group }, {})
|
|
158
|
+
), y = p(() => L.options.length === 0);
|
|
159
|
+
return (u, h) => (n(), b("div", ul, [
|
|
160
|
+
y.value ? (n(), i(W, {
|
|
161
|
+
key: 0,
|
|
162
|
+
tag: "div",
|
|
163
|
+
"no-spacing": "",
|
|
164
|
+
variant: "body-sm",
|
|
165
|
+
color: "secondary",
|
|
166
|
+
class: "px-5 py-5"
|
|
167
|
+
}, {
|
|
168
|
+
default: m(() => [...h[0] || (h[0] = [
|
|
169
|
+
q("No results", -1)
|
|
170
|
+
])]),
|
|
171
|
+
_: 1
|
|
172
|
+
})) : (n(), b("ul", {
|
|
173
|
+
key: 1,
|
|
174
|
+
class: k(["list-none overflow-y-auto", [e.hasLargeDropdown ? "max-h-76" : "max-h-48"]])
|
|
175
|
+
}, [
|
|
176
|
+
e.addOnly ? (n(), b("div", il, [
|
|
177
|
+
E(W, {
|
|
178
|
+
tag: "p",
|
|
179
|
+
"no-spacing": "",
|
|
180
|
+
variant: "body-sm",
|
|
181
|
+
color: "secondary",
|
|
182
|
+
class: "mt-1 px-3 py-2"
|
|
183
|
+
}, {
|
|
184
|
+
default: m(() => [...h[1] || (h[1] = [
|
|
185
|
+
q(F("You can only select currently unselected options."), -1)
|
|
186
|
+
])]),
|
|
187
|
+
_: 1
|
|
188
|
+
})
|
|
189
|
+
])) : s("", !0),
|
|
190
|
+
(n(!0), b(j, null, ce(e.options, ({
|
|
191
|
+
label: R,
|
|
192
|
+
subLabel: N,
|
|
193
|
+
value: d,
|
|
194
|
+
checked: g,
|
|
195
|
+
disabled: f,
|
|
196
|
+
labelInlineComponent: Y,
|
|
197
|
+
labelSuffixComponent: B,
|
|
198
|
+
labelSrOnly: w,
|
|
199
|
+
labelPrefixComponent: H,
|
|
200
|
+
hidden: J
|
|
201
|
+
}) => (n(), b(j, { key: d }, [
|
|
202
|
+
M.value[d] ? (n(), i(Qe, { key: 0 }, {
|
|
203
|
+
default: m(() => [
|
|
204
|
+
q(F(M.value[d]), 1)
|
|
205
|
+
]),
|
|
206
|
+
_: 2
|
|
207
|
+
}, 1024)) : s("", !0),
|
|
208
|
+
J ? s("", !0) : (n(), i(sl, {
|
|
209
|
+
key: 1,
|
|
210
|
+
label: R,
|
|
211
|
+
"sub-label": N,
|
|
212
|
+
value: d,
|
|
213
|
+
checked: g,
|
|
214
|
+
disabled: f,
|
|
215
|
+
multiple: e.multiple,
|
|
216
|
+
condensed: e.condensed,
|
|
217
|
+
"label-suffix-component": B,
|
|
218
|
+
"label-prefix-component": H,
|
|
219
|
+
"label-inline-component": Y,
|
|
220
|
+
"label-sr-only": w,
|
|
221
|
+
"input-value": e.inputValue,
|
|
222
|
+
onValueChanged: $
|
|
223
|
+
}, null, 8, ["label", "sub-label", "value", "checked", "disabled", "multiple", "condensed", "label-suffix-component", "label-prefix-component", "label-inline-component", "label-sr-only", "input-value"]))
|
|
224
|
+
], 64))), 128))
|
|
225
|
+
], 2)),
|
|
226
|
+
u.$slots["list-footer-content"] ? (n(), b("div", dl, [
|
|
227
|
+
P(u.$slots, "list-footer-content")
|
|
228
|
+
])) : s("", !0)
|
|
229
|
+
]));
|
|
230
|
+
}
|
|
231
|
+
}), cl = ["aria-expanded", "aria-controls"], fl = { class: "flex items-center gap-2" }, vl = { key: 1 }, ml = { class: "flex items-center gap-2" }, bl = {
|
|
232
|
+
key: 0,
|
|
233
|
+
class: "mt-2 flex flex-wrap gap-2"
|
|
234
|
+
}, pl = ["innerHTML"], yl = ["id"], hl = /* @__PURE__ */ ee({
|
|
235
|
+
__name: "SelectExtended",
|
|
236
|
+
props: {
|
|
237
|
+
addOnly: { type: Boolean, default: !1 },
|
|
238
|
+
disabled: { type: Boolean },
|
|
239
|
+
label: {},
|
|
240
|
+
labelScreenReaderOnly: { type: Boolean },
|
|
241
|
+
inputModel: {},
|
|
242
|
+
singleModelValue: {},
|
|
243
|
+
multiModelValue: {},
|
|
244
|
+
options: { default: () => [] },
|
|
245
|
+
optionsOrder: { default: () => ["asc", "asc"] },
|
|
246
|
+
optionsOrderProperties: { default: () => ["group", "label"] },
|
|
247
|
+
required: { type: Boolean, default: !1 },
|
|
248
|
+
rootClass: {},
|
|
249
|
+
size: { default: "md" },
|
|
250
|
+
withChips: { type: Boolean, default: !1 },
|
|
251
|
+
error: {},
|
|
252
|
+
hasReset: { type: Boolean },
|
|
253
|
+
name: {},
|
|
254
|
+
hasLargeDropdown: { type: Boolean, default: !1 },
|
|
255
|
+
showSuffixInClosedInput: { type: Boolean },
|
|
256
|
+
showSuffixLabelInInput: { type: Boolean },
|
|
257
|
+
showSubLabelInInput: { type: Boolean, default: !1 },
|
|
258
|
+
condensed: { type: Boolean },
|
|
259
|
+
form: {},
|
|
260
|
+
isInputReadOnly: { type: Boolean, default: !0 },
|
|
261
|
+
textContent: { default: () => ({
|
|
262
|
+
placeholderSingleOpen: "Search",
|
|
263
|
+
placeholderSingleEmpty: "Select an option",
|
|
264
|
+
placeholderMultipleOpen: "Search",
|
|
265
|
+
placeholderMultipleEmpty: "Select one or more options",
|
|
266
|
+
buttonAddLabel: "Add",
|
|
267
|
+
buttonClearLabel: "Reset",
|
|
268
|
+
buttonDoneLabel: "Done"
|
|
269
|
+
}) }
|
|
270
|
+
},
|
|
271
|
+
emits: ["update:inputModel", "update:singleModelValue", "update:multiModelValue", "blur", "change", "focus", "add-option"],
|
|
272
|
+
setup(e, { emit: C }) {
|
|
273
|
+
var L;
|
|
274
|
+
const o = e, $ = C, M = (L = Ce()) == null ? void 0 : L.vnode.props, y = Z(o, "inputModel", $), u = Z(o, "singleModelValue", $), h = Z(o, "multiModelValue", $), R = p(() => d.value ? h.value ?? [] : u.value ? [u.value] : []), N = G(o.multiModelValue ?? []), d = p(() => Array.isArray(o.multiModelValue)), g = p({
|
|
275
|
+
get: () => d.value ? N.value ?? [] : typeof u.value == "string" ? [u.value] : [],
|
|
276
|
+
set(l) {
|
|
277
|
+
d.value ? N.value = l : u.value = (l == null ? void 0 : l[0]) ?? "";
|
|
278
|
+
}
|
|
279
|
+
}), f = G(!1), Y = Ae(), B = G(), w = G(), H = we(Pe), J = (l) => o.options.filter((t) => l.some((r) => t.value === r)), K = p(() => J(g.value)), v = p(() => K.value[0]), fe = p(() => de.value[0]), le = p(
|
|
280
|
+
() => {
|
|
281
|
+
var l;
|
|
282
|
+
return !f.value && !d.value && ((l = v.value) == null ? void 0 : l.labelPrefixComponent);
|
|
283
|
+
}
|
|
284
|
+
), ve = !!(M != null && M.onAddOption), me = () => {
|
|
285
|
+
$("add-option"), D();
|
|
286
|
+
}, be = p(() => {
|
|
287
|
+
var l, t, r, a;
|
|
288
|
+
if (!d.value) {
|
|
289
|
+
if (v.value)
|
|
290
|
+
return (l = v.value) == null ? void 0 : l.label;
|
|
291
|
+
if (K.value.length === 0)
|
|
292
|
+
return o.textContent.placeholderSingleEmpty;
|
|
293
|
+
}
|
|
294
|
+
if (d.value) {
|
|
295
|
+
if (K.value.length === 1)
|
|
296
|
+
return (t = v.value) == null ? void 0 : t.label;
|
|
297
|
+
if (K.value.length >= 2)
|
|
298
|
+
return `${(r = v.value) == null ? void 0 : r.label} +${K.value.length - 1}`;
|
|
299
|
+
if (K.value.length === 0)
|
|
300
|
+
return o.textContent.placeholderMultipleEmpty;
|
|
301
|
+
}
|
|
302
|
+
return (a = fe.value) == null ? void 0 : a.label;
|
|
303
|
+
}), D = () => {
|
|
304
|
+
d.value, f.value = !1;
|
|
305
|
+
}, te = ({
|
|
306
|
+
value: l,
|
|
307
|
+
checked: t
|
|
308
|
+
}) => {
|
|
309
|
+
let r;
|
|
310
|
+
d.value ? r = t ? [...g.value, l] : g.value.filter((a) => a !== l) : (r = [l], f.value = !1), g.value = r, $("change");
|
|
311
|
+
}, ne = p(() => o.disabled ? !1 : !!(o.addOnly && !Ke(N.value, o.multiModelValue) || !o.addOnly && g.value.length > 0 && !(g.value.length === 1 && g.value[0] === ""))), ae = () => {
|
|
312
|
+
if (o.addOnly) {
|
|
313
|
+
N.value = R.value, y.value = "", D();
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
g.value = [], N.value = [], y.value && (y.value = ""), D();
|
|
317
|
+
}, oe = () => B.value ? Array.from(
|
|
318
|
+
B.value.querySelectorAll('li[tabindex="0"], button:not([disabled])')
|
|
319
|
+
) : [], se = () => {
|
|
320
|
+
var l;
|
|
321
|
+
let t = document.activeElement;
|
|
322
|
+
for (; (l = t == null ? void 0 : t.shadowRoot) != null && l.activeElement; )
|
|
323
|
+
t = t.shadowRoot.activeElement;
|
|
324
|
+
return t;
|
|
325
|
+
}, Q = () => {
|
|
326
|
+
if (!w.value) return null;
|
|
327
|
+
let l = w.value.querySelector("input");
|
|
328
|
+
if (l) return l;
|
|
329
|
+
const t = w.value.querySelectorAll("*");
|
|
330
|
+
for (const r of t)
|
|
331
|
+
if (r.shadowRoot && (l = r.shadowRoot.querySelector("input"), l))
|
|
332
|
+
return l;
|
|
333
|
+
return null;
|
|
334
|
+
}, pe = (l) => {
|
|
335
|
+
var t, r;
|
|
336
|
+
if (!f.value) return;
|
|
337
|
+
const a = oe(), I = Q();
|
|
338
|
+
if (se() === I)
|
|
339
|
+
switch (l.key) {
|
|
340
|
+
case "ArrowDown":
|
|
341
|
+
a.length > 0 && (l.preventDefault(), (t = a[0]) == null || t.focus());
|
|
342
|
+
break;
|
|
343
|
+
case "Tab":
|
|
344
|
+
!l.shiftKey && a.length > 0 && (l.preventDefault(), (r = a[0]) == null || r.focus());
|
|
345
|
+
break;
|
|
346
|
+
case "Escape":
|
|
347
|
+
l.preventDefault(), D();
|
|
348
|
+
break;
|
|
349
|
+
}
|
|
350
|
+
}, ye = (l) => {
|
|
351
|
+
var t, r, a, I;
|
|
352
|
+
const S = oe(), X = se(), V = S.indexOf(X), A = Q();
|
|
353
|
+
switch (l.key) {
|
|
354
|
+
case "ArrowDown":
|
|
355
|
+
V < S.length - 1 && (l.preventDefault(), (t = S[V + 1]) == null || t.focus());
|
|
356
|
+
break;
|
|
357
|
+
case "ArrowUp":
|
|
358
|
+
l.preventDefault(), V <= 0 ? A == null || A.focus() : (r = S[V - 1]) == null || r.focus();
|
|
359
|
+
break;
|
|
360
|
+
case "Tab":
|
|
361
|
+
l.shiftKey ? V <= 0 ? (l.preventDefault(), A == null || A.focus()) : (l.preventDefault(), (a = S[V - 1]) == null || a.focus()) : V >= S.length - 1 ? (l.preventDefault(), D(), A == null || A.focus()) : (l.preventDefault(), (I = S[V + 1]) == null || I.focus());
|
|
362
|
+
break;
|
|
363
|
+
case "Escape":
|
|
364
|
+
l.preventDefault(), D(), Ee(() => {
|
|
365
|
+
A == null || A.focus();
|
|
366
|
+
});
|
|
367
|
+
break;
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
Le("mousedown", (l) => {
|
|
371
|
+
const t = l.composedPath();
|
|
372
|
+
B.value && t.includes(B.value) || w.value && t.includes(w.value) || f.value && D();
|
|
373
|
+
});
|
|
374
|
+
const { floatingStyles: he } = Be(w, B, {
|
|
375
|
+
placement: "bottom",
|
|
376
|
+
middleware: ({ offset: l, flip: t }) => [
|
|
377
|
+
l(4),
|
|
378
|
+
t({
|
|
379
|
+
mainAxis: !0
|
|
380
|
+
})
|
|
381
|
+
]
|
|
382
|
+
}), ue = ze("search-select-options-"), { width: xe } = Me(w), ge = () => {
|
|
383
|
+
const l = Q();
|
|
384
|
+
l && l.focus();
|
|
385
|
+
}, ie = p(() => o.options.map((l) => ({
|
|
386
|
+
...l,
|
|
387
|
+
checked: K.value.some((t) => t.value === l.value),
|
|
388
|
+
disabled: o.disabled || !o.disabled && o.addOnly && !!R.value.includes(l.value)
|
|
389
|
+
}))), de = p(
|
|
390
|
+
() => ie.value.filter((l) => {
|
|
391
|
+
var t;
|
|
392
|
+
return (t = g.value) == null ? void 0 : t.includes(l.value);
|
|
393
|
+
})
|
|
394
|
+
);
|
|
395
|
+
return (l, t) => {
|
|
396
|
+
var r;
|
|
397
|
+
return n(), b(j, null, [
|
|
398
|
+
c("div", {
|
|
399
|
+
ref_key: "wrapperRef",
|
|
400
|
+
ref: w,
|
|
401
|
+
class: k(["relative flex items-end", {
|
|
402
|
+
rootClass: e.rootClass,
|
|
403
|
+
"z-30": f.value,
|
|
404
|
+
"cursor-text": !e.disabled
|
|
405
|
+
}]),
|
|
406
|
+
role: "combobox",
|
|
407
|
+
"aria-expanded": f.value,
|
|
408
|
+
"aria-haspopup": !0,
|
|
409
|
+
"aria-controls": x(ue),
|
|
410
|
+
onKeydown: pe,
|
|
411
|
+
onClick: ge
|
|
412
|
+
}, [
|
|
413
|
+
E(x(Ue), {
|
|
414
|
+
modelValue: x(y),
|
|
415
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => Se(y) ? y.value = a : null),
|
|
416
|
+
readonly: e.isInputReadOnly,
|
|
417
|
+
required: e.required,
|
|
418
|
+
label: e.label,
|
|
419
|
+
name: e.name,
|
|
420
|
+
form: e.form,
|
|
421
|
+
"label-screen-reader-only": e.labelScreenReaderOnly,
|
|
422
|
+
placeholder: be.value,
|
|
423
|
+
class: k(["grow !outline-none", { "cursor-default": e.isInputReadOnly }]),
|
|
424
|
+
"wrapper-class": {
|
|
425
|
+
"border-transparent border-b-gray-200 focus-within:border-b relative z-10": f.value
|
|
426
|
+
},
|
|
427
|
+
"input-class": !f.value && (!d.value && x(u) || d.value && !x(Fe)(e.multiModelValue)) ? "placeholder:text-default" : "",
|
|
428
|
+
"suffix-class": "border-l-0 pl-0",
|
|
429
|
+
disabled: e.disabled,
|
|
430
|
+
size: e.size,
|
|
431
|
+
error: e.error,
|
|
432
|
+
"prefix-has-border": !1,
|
|
433
|
+
"aria-autocomplete": "list",
|
|
434
|
+
onFocus: t[1] || (t[1] = () => f.value = !0),
|
|
435
|
+
onBlur: t[2] || (t[2] = (a) => l.$emit("blur"))
|
|
436
|
+
}, $e({
|
|
437
|
+
"label-suffix": m(() => [
|
|
438
|
+
P(l.$slots, "label-suffix")
|
|
439
|
+
]),
|
|
440
|
+
suffix: m(() => {
|
|
441
|
+
var a, I;
|
|
442
|
+
return [
|
|
443
|
+
c("div", ml, [
|
|
444
|
+
!f.value && !d.value && ((a = v.value) != null && a.labelInlineComponent) && (!e.showSuffixInClosedInput || e.showSuffixLabelInInput) ? (n(), i(O(v.value.labelInlineComponent.component), T(z({ key: 0 }, v.value.labelInlineComponent.props)), null, 16)) : s("", !0),
|
|
445
|
+
!f.value && !d.value && ((I = v.value) != null && I.labelSuffixComponent) && e.showSuffixInClosedInput ? (n(), i(O(v.value.labelSuffixComponent.component), T(z({ key: 1 }, v.value.labelSuffixComponent.props)), null, 16)) : s("", !0),
|
|
446
|
+
!e.disabled && (x(y) || ne.value && e.hasReset) ? (n(), i(qe, {
|
|
447
|
+
key: 2,
|
|
448
|
+
icon: "close",
|
|
449
|
+
size: "xs",
|
|
450
|
+
intent: "subtle",
|
|
451
|
+
type: "button",
|
|
452
|
+
onClick: ae
|
|
453
|
+
})) : s("", !0),
|
|
454
|
+
E(Te, {
|
|
455
|
+
icon: "keyboard_arrow_down",
|
|
456
|
+
size: "xs",
|
|
457
|
+
class: k(["transition-transform", { "rotate-180": f.value }])
|
|
458
|
+
}, null, 8, ["class"])
|
|
459
|
+
])
|
|
460
|
+
];
|
|
461
|
+
}),
|
|
462
|
+
_: 2
|
|
463
|
+
}, [
|
|
464
|
+
e.showSubLabelInInput && ((r = v.value) != null && r.subLabel) ? {
|
|
465
|
+
name: "input",
|
|
466
|
+
fn: m(() => [
|
|
467
|
+
c("div", {
|
|
468
|
+
class: k(["pointer-events-none absolute inset-0 bg-white", { "px-4 py-3": e.size === "xl" }])
|
|
469
|
+
}, [
|
|
470
|
+
E(W, {
|
|
471
|
+
tag: "span",
|
|
472
|
+
class: "block",
|
|
473
|
+
variant: "body-sm",
|
|
474
|
+
weight: "semibold"
|
|
475
|
+
}, {
|
|
476
|
+
default: m(() => {
|
|
477
|
+
var a;
|
|
478
|
+
return [
|
|
479
|
+
q(F((a = v.value) == null ? void 0 : a.label), 1)
|
|
480
|
+
];
|
|
481
|
+
}),
|
|
482
|
+
_: 1
|
|
483
|
+
}),
|
|
484
|
+
E(W, {
|
|
485
|
+
tag: "span",
|
|
486
|
+
class: "block",
|
|
487
|
+
variant: "body-xs",
|
|
488
|
+
color: "secondary"
|
|
489
|
+
}, {
|
|
490
|
+
default: m(() => {
|
|
491
|
+
var a;
|
|
492
|
+
return [
|
|
493
|
+
q(F((a = v.value) == null ? void 0 : a.subLabel), 1)
|
|
494
|
+
];
|
|
495
|
+
}),
|
|
496
|
+
_: 1
|
|
497
|
+
})
|
|
498
|
+
], 2)
|
|
499
|
+
]),
|
|
500
|
+
key: "0"
|
|
501
|
+
} : void 0,
|
|
502
|
+
l.$slots.tooltip ? {
|
|
503
|
+
name: "tooltip",
|
|
504
|
+
fn: m(() => [
|
|
505
|
+
P(l.$slots, "tooltip")
|
|
506
|
+
]),
|
|
507
|
+
key: "1"
|
|
508
|
+
} : void 0,
|
|
509
|
+
le.value || l.$slots.prefix ? {
|
|
510
|
+
name: "prefix",
|
|
511
|
+
fn: m(() => {
|
|
512
|
+
var a;
|
|
513
|
+
return [
|
|
514
|
+
c("div", fl, [
|
|
515
|
+
l.$slots.prefix ? P(l.$slots, "prefix", {}, void 0, void 0, 0) : le.value && ((a = v.value) != null && a.labelPrefixComponent) ? (n(), b("div", vl, [
|
|
516
|
+
(n(), i(O(v.value.labelPrefixComponent.component), T(Ie(v.value.labelPrefixComponent.props)), null, 16))
|
|
517
|
+
])) : s("", !0)
|
|
518
|
+
])
|
|
519
|
+
];
|
|
520
|
+
}),
|
|
521
|
+
key: "2"
|
|
522
|
+
} : void 0,
|
|
523
|
+
l.$slots.helper ? {
|
|
524
|
+
name: "helper",
|
|
525
|
+
fn: m(() => [
|
|
526
|
+
P(l.$slots, "helper")
|
|
527
|
+
]),
|
|
528
|
+
key: "3"
|
|
529
|
+
} : void 0
|
|
530
|
+
]), 1032, ["modelValue", "readonly", "required", "label", "name", "form", "label-screen-reader-only", "placeholder", "wrapper-class", "input-class", "class", "disabled", "size", "error"])
|
|
531
|
+
], 42, cl),
|
|
532
|
+
e.withChips ? (n(), b("div", bl, [
|
|
533
|
+
(n(!0), b(j, null, ce(de.value, ({ value: a, label: I, disabled: S }) => (n(), i(Ne, {
|
|
534
|
+
key: a,
|
|
535
|
+
removable: !e.disabled && !S,
|
|
536
|
+
onRemoved: (X) => te({ value: a, checked: !1 })
|
|
537
|
+
}, {
|
|
538
|
+
default: m(() => [
|
|
539
|
+
c("span", { innerHTML: I }, null, 8, pl)
|
|
540
|
+
]),
|
|
541
|
+
_: 2
|
|
542
|
+
}, 1032, ["removable", "onRemoved"]))), 128))
|
|
543
|
+
])) : s("", !0),
|
|
544
|
+
x(Y) && x(H) ? (n(), i(Oe, {
|
|
545
|
+
key: 1,
|
|
546
|
+
to: x(H)
|
|
547
|
+
}, [
|
|
548
|
+
f.value && !e.disabled ? (n(), b("div", {
|
|
549
|
+
key: 0,
|
|
550
|
+
id: x(ue),
|
|
551
|
+
ref_key: "optionsRef",
|
|
552
|
+
ref: B,
|
|
553
|
+
role: "listbox",
|
|
554
|
+
style: re(x(he)),
|
|
555
|
+
class: "z-70 rounded bg-white drop-shadow-md",
|
|
556
|
+
onMouseenter: t[3] || (t[3] = (a) => f.value = !0),
|
|
557
|
+
onKeydown: ye
|
|
558
|
+
}, [
|
|
559
|
+
c("div", {
|
|
560
|
+
class: "rounded pt-0",
|
|
561
|
+
style: re({ width: `${x(xe)}px` })
|
|
562
|
+
}, [
|
|
563
|
+
E(rl, {
|
|
564
|
+
options: ie.value,
|
|
565
|
+
multiple: d.value,
|
|
566
|
+
model: g.value,
|
|
567
|
+
"add-only": e.addOnly,
|
|
568
|
+
"allows-multiple-values": !!d.value,
|
|
569
|
+
condensed: e.condensed,
|
|
570
|
+
"has-large-dropdown": e.hasLargeDropdown,
|
|
571
|
+
"input-value": x(y),
|
|
572
|
+
onValueChanged: te
|
|
573
|
+
}, {
|
|
574
|
+
"list-footer-content": m(() => [
|
|
575
|
+
ve ? (n(), i(_, {
|
|
576
|
+
key: 0,
|
|
577
|
+
intent: "subtle",
|
|
578
|
+
class: "w-full",
|
|
579
|
+
type: "button",
|
|
580
|
+
"icon-prefix": "add",
|
|
581
|
+
onClick: me
|
|
582
|
+
}, {
|
|
583
|
+
default: m(() => [
|
|
584
|
+
q(F(e.textContent.buttonAddLabel), 1)
|
|
585
|
+
]),
|
|
586
|
+
_: 1
|
|
587
|
+
})) : s("", !0),
|
|
588
|
+
d.value ? (n(), b("div", {
|
|
589
|
+
key: 1,
|
|
590
|
+
class: k(["flex items-center justify-between", { "py-2": !l.$slots["list-footer-content"] }])
|
|
591
|
+
}, [
|
|
592
|
+
ne.value ? (n(), i(_, {
|
|
593
|
+
key: 0,
|
|
594
|
+
type: "button",
|
|
595
|
+
intent: "subtle",
|
|
596
|
+
size: "sm",
|
|
597
|
+
class: "ml-2",
|
|
598
|
+
onClick: ae
|
|
599
|
+
}, {
|
|
600
|
+
default: m(() => [
|
|
601
|
+
q(F(e.textContent.buttonClearLabel), 1)
|
|
602
|
+
]),
|
|
603
|
+
_: 1
|
|
604
|
+
})) : s("", !0),
|
|
605
|
+
c("div", null, [
|
|
606
|
+
P(l.$slots, "list-footer-content")
|
|
607
|
+
]),
|
|
608
|
+
E(_, {
|
|
609
|
+
type: "button",
|
|
610
|
+
size: "sm",
|
|
611
|
+
class: "mr-2",
|
|
612
|
+
"data-testid": x(He),
|
|
613
|
+
onClick: D
|
|
614
|
+
}, {
|
|
615
|
+
default: m(() => [
|
|
616
|
+
q(F(e.textContent.buttonDoneLabel), 1)
|
|
617
|
+
]),
|
|
618
|
+
_: 1
|
|
619
|
+
}, 8, ["data-testid"])
|
|
620
|
+
], 2)) : P(l.$slots, "list-footer-content", {}, void 0, void 0, 2)
|
|
621
|
+
]),
|
|
622
|
+
_: 3
|
|
623
|
+
}, 8, ["options", "multiple", "model", "add-only", "allows-multiple-values", "condensed", "has-large-dropdown", "input-value"])
|
|
624
|
+
], 4)
|
|
625
|
+
], 44, yl)) : s("", !0)
|
|
626
|
+
], 8, ["to"])) : s("", !0)
|
|
627
|
+
], 64);
|
|
628
|
+
};
|
|
629
|
+
}
|
|
630
|
+
}), Bl = hl;
|
|
631
|
+
export {
|
|
632
|
+
Bl as S
|
|
633
|
+
};
|