@solvimon/solvimon-web 0.1.0-alpha.28 → 0.1.0-alpha.29
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 +26 -1
- package/dist/{Alert.vue.es-lIiAWf2S.mjs → Alert.vue.es-CNrEaLvh.mjs} +58 -46
- package/dist/AuthProvider.handle-DKfNs8rr.mjs +50 -0
- package/dist/{Avatar.vue.es-Beg7umjO.mjs → Avatar.vue.es-r0NbcIib.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs} +8 -8
- package/dist/{Button.vue.es-rh6mITmN.mjs → Button.vue.es-Zw--kuaU.mjs} +4 -4
- package/dist/{ChargeOnDemandModal-CPjPa_uq.mjs → ChargeOnDemandModal-B8FDkS9U.mjs} +35 -34
- package/dist/Checkout.entry.ce-DsGl-5aR.mjs +4202 -0
- package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs +828 -0
- package/dist/{Chip.vue.es-Cn2R_0mE.mjs → Chip.vue.es-D3UDSyXC.mjs} +3 -3
- package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
- package/dist/{ContextMenu.vue.es-DRxsa7bZ.mjs → ContextMenu.vue.es-B9mFpUQK.mjs} +87 -88
- package/dist/{CustomerBillingInformation.vue.es-DQfL5RMR.mjs → CustomerBillingInformation.vue.es-B8NiQaJs.mjs} +3 -3
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs} +21 -20
- package/dist/CustomerShippingAddresses-Bj8Y17O8.mjs +397 -0
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs} +798 -792
- package/dist/{DividerText.vue.es-M0XqSz55.mjs → DividerText.vue.es-CNbgif-3.mjs} +1 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs +55 -0
- package/dist/{ErrorNotification.vue.es-CKlt4hr2.mjs → ErrorNotification.vue.es-DNd65mQq.mjs} +2 -2
- package/dist/FormMessage.vue.es-Cjv358Ab.mjs +39 -0
- package/dist/{IconButton.vue.es-oe4MVBK1.mjs → IconButton.vue.es-C8lYFx5_.mjs} +2 -2
- package/dist/{IconTitle.vue.es-BO6KBS4v.mjs → IconTitle.vue.es-O2kcqgKm.mjs} +3 -3
- package/dist/{Input.vue.es-DAlPmtE_.mjs → Input.vue.es-D8Oj8MWv.mjs} +23 -22
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs} +4 -4
- package/dist/InvoicePreview.vue.es-4Q2hzaFS.mjs +286 -0
- package/dist/InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs +124 -0
- package/dist/Label.vue.es-DtpLM1KH.mjs +113 -0
- package/dist/{Modal.vue.es-CTNACAst.mjs → Modal.vue.es-C8ZcO117.mjs} +109 -103
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs +441 -0
- package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs +48 -0
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs} +46 -88
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-BmA8jbMb.mjs → PaymentHistoryBlock-BvY2nXGV.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-D1Xw-xIt.mjs → PaymentIntegrationForm-CcfQSzKM.mjs} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs} +68 -69
- package/dist/{PaymentIntegrationFormAdyen-CfT5aD4L.mjs → PaymentIntegrationFormAdyen-DqgDfO6K.mjs} +126 -117
- package/dist/{PaymentIntegrationFormStripe-DKXJ-mjd.mjs → PaymentIntegrationFormStripe-BYdAkvLt.mjs} +193 -179
- package/dist/{PaymentMethod.vue.es-Cauxx4Xr.mjs → PaymentMethod.vue.es-b0p3a0L-.mjs} +7 -7
- package/dist/{PaymentMethodForm-CypZOYUZ.mjs → PaymentMethodForm-BsTrTwCg.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs} +7 -7
- package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs} +36 -35
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs} +7 -7
- package/dist/{PlanCustomizationEditor-Xtww2r9K.mjs → PlanCustomizationEditor-D29N4HUM.mjs} +9 -9
- package/dist/PortalLinkUnverified-B_EE2wTJ.mjs +52 -0
- package/dist/{PortalNotAvailable-B_59GUwN.mjs → PortalNotAvailable-DPE9y37H.mjs} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-C9LJW3b8.mjs → PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs} +14 -13
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs} +32 -32
- package/dist/RadioGroupExtended.vue.es-3nDXqIGi.mjs +176 -0
- package/dist/{Section.vue.es-iS8hVGWA.mjs → Section.vue.es-CvX9tg2f.mjs} +1 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs +60 -0
- package/dist/ShippingAddressesModal-C4p1IXXk.mjs +418 -0
- package/dist/{StepInput.vue.es-Dpan1RQd.mjs → StepInput.vue.es-DweyzpkL.mjs} +4 -4
- package/dist/{SubscriptionDetails.entry.ce-DufQX3uI.mjs → SubscriptionDetails.entry.ce-D5SwM0YS.mjs} +230 -225
- package/dist/{SubscriptionSchedules-DAahcNoI.mjs → SubscriptionSchedules-BZqlpAtk.mjs} +1 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs +5185 -0
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs} +3 -3
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs} +23 -22
- package/dist/TooltipParagraph.vue.es-Dw0ndjle.mjs +132 -0
- package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs +31 -0
- package/dist/{TrialChip.vue.es-B-XBSHWE.mjs → TrialChip.vue.es-DOopmaXA.mjs} +2 -2
- package/dist/{api.es-QaC926Xu.mjs → api.es-qgvzNMU-.mjs} +2 -2
- package/dist/{cn.es-2bVdkiFV.mjs → cn.es-B8acFrov.mjs} +380 -476
- package/dist/components/BillingInformation/BillingInformation.mjs +9 -7
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +57 -54
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +20 -18
- package/dist/components/Invoice/Invoice.mjs +2660 -193
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +6 -4
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +18 -17
- package/dist/components/InvoicesList/InvoicesList.mjs +13 -11
- package/dist/components/PaymentHistory/PaymentHistory.mjs +8 -6
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +19 -17
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +19 -17
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +20 -18
- package/dist/components/WalletBalances/WalletBalances.mjs +17 -15
- package/dist/customElements-BTj4ii4f.mjs +5072 -0
- package/dist/{customer-CqddTiOr.mjs → customer-BIjC0CWJ.mjs} +1 -1
- package/dist/customer.es-DQKl6wFt.mjs +24 -0
- package/dist/{de-DE-BW8dMvhW.mjs → de-DE-DBbERiFr.mjs} +38 -0
- package/dist/{de-DE-BNMj3boy.mjs → de-DE-UJ6X6jXu.mjs} +1 -1
- package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
- package/dist/{formControl-CsITfsBk.mjs → formControl-BZQLHnOO.mjs} +5 -5
- package/dist/fr-FR-Cvvbkwlj.mjs +307 -0
- package/dist/fr-FR-IWJE-urI.mjs +431 -0
- package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
- package/dist/{index.es-CXkP_k3u.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.es-CpmQmvOg.mjs +633 -0
- package/dist/index.mjs +2 -2
- package/dist/{invoices-Cf1qDAv4.mjs → invoices-e1sKLgxg.mjs} +3 -3
- package/dist/{it-IT-Byg06KWc.mjs → it-IT-B7ui2oxO.mjs} +38 -0
- package/dist/{it-IT-DRvuxM1F.mjs → it-IT-DnJP5URH.mjs} +1 -1
- package/dist/{nl-NL-x3zQqzZ7.mjs → nl-NL-Bafh2xoT.mjs} +38 -0
- package/dist/{nl-NL-DLUwWbMG.mjs → nl-NL-q9xfTZF0.mjs} +1 -1
- package/dist/{paymentMethods-BUuOmDq9.mjs → paymentMethods-B_82JGk_.mjs} +2 -2
- package/dist/paymentMethods-Nfv9HdkS.mjs +61 -0
- package/dist/{paymentOutcome-D17VD4MV.mjs → paymentOutcome-BXEU5-84.mjs} +5 -5
- package/dist/payments-BnxbzQUC.mjs +68 -0
- package/dist/pricing-BOhvWWMj.mjs +29 -0
- package/dist/{pricingPlanScheduleOverrides-COr9F8DO.mjs → pricingPlanScheduleOverrides-Dxv5FOBd.mjs} +2 -2
- package/dist/{pricingPlanSchedules-BK_o9p6h.mjs → pricingPlanSchedules-Dv7ZCgNp.mjs} +1 -1
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +128 -83
- package/dist/screens/PayInvoice/PayInvoice.mjs +572 -218
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +21 -19
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +261 -266
- package/dist/{sorting.es-qtEN8J8T.mjs → sorting.es-CVyKw23D.mjs} +1 -1
- package/dist/subscriptions-BWXZGK0E.mjs +66 -0
- package/dist/taxId.es-DkD3Ltr8.mjs +243 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -0
- package/dist/types/components/customer/ShippingAddressForm/ShippingAddressForm.types.d.ts +9 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressCard.types.d.ts +11 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressList.types.d.ts +9 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressesModal.types.d.ts +26 -0
- package/dist/types/components/invoices/InvoiceOrderSummary/InvoiceOrderSummary.types.d.ts +5 -0
- package/dist/types/components/payments/PayButton/PayButton.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +11 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +4 -1
- package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +23 -1
- package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +12 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
- package/dist/types/components/providers/Provider/Provider.types.d.ts +1 -1
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -1
- package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +16 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +2 -0
- package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
- package/dist/types/public/core/types.d.ts +5 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +3 -1
- package/dist/types/translations/supported.d.ts +1 -1
- package/dist/types/types/portalAuthentication.d.ts +2 -0
- package/dist/types/types/portalToken.d.ts +9 -0
- package/dist/types/types/shippingAddress.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +27 -6
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +9 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +16 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +12 -3
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +71 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +35 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
- package/dist/{useActionDispatchProvider-DC_fUykI.mjs → useActionDispatchProvider-3W2vEyIg.mjs} +1 -1
- package/dist/{useCustomer-C3kTh7wn.mjs → useCustomer-cObBvDOu.mjs} +2 -2
- package/dist/useCustomerFormLabels-DJWf2O17.mjs +1173 -0
- package/dist/{useIncrementalLoading-C_sHmW7d.mjs → useIncrementalLoading-CATuO36d.mjs} +2 -2
- package/dist/{useInvoiceData-BIh8-h8b.mjs → useInvoiceData-DD44HTl7.mjs} +2 -2
- package/dist/{useInvoicesList-Y6p0Pqpy.mjs → useInvoicesList-CpB-41MQ.mjs} +10 -10
- package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
- package/dist/useLoadInitialData-qzdnBoui.mjs +15 -0
- package/dist/{usePaymentFormHold-FfNc578l.mjs → usePaymentFormHold-ByUZi3A-.mjs} +28 -36
- package/dist/{usePaymentMethodAvailability-CnYTvG15.mjs → usePaymentMethodAvailability-DUdrs0Ji.mjs} +4 -4
- package/dist/usePaymentMethods-ByaKF7mf.mjs +21 -0
- package/dist/{usePayments-CykCZPG2.mjs → usePayments-BXABv-lF.mjs} +9 -9
- package/dist/{usePortal-CxzKGhbK.mjs → usePortal-CwR_FxTb.mjs} +1 -1
- package/dist/{useService-B0OQJmif.mjs → useService-BZcbUZHI.mjs} +3 -3
- package/dist/{useTimePeriod.es-JkXdHNWr.mjs → useTimePeriod.es-BpdiVwg8.mjs} +1 -1
- package/package.json +7 -7
- package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +0 -50
- package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +0 -5279
- package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +0 -38
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +0 -362
- package/dist/FormMessage.vue.es-jG3fQZms.mjs +0 -29
- package/dist/InvoiceSummary.vue.es-DbNoGfYN.mjs +0 -2596
- package/dist/RadioGroupExtended.vue.es-UtKsdmiv.mjs +0 -163
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs +0 -688
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs +0 -5221
- package/dist/TooltipParagraph.vue.es-BjCn2BF6.mjs +0 -129
- package/dist/customElements-Di3zwlEU.mjs +0 -6447
- package/dist/customer.es-B5ppZf0j.mjs +0 -20
- package/dist/floating-ui.vue.es-CYt0fSY7.mjs +0 -1108
- package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +0 -4
- package/dist/payments-Ci8bF4C6.mjs +0 -45
- package/dist/subscriptions-CwogJODR.mjs +0 -54
- package/dist/useCustomerFormLabels-CK7K50nB.mjs +0 -1369
- package/dist/useLoadInitialData-4k_Cyqef.mjs +0 -15
- package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +0 -40
- package/dist/usePaymentMethods-gvr-rmwE.mjs +0 -15
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { defineComponent as h, openBlock as i, createElementBlock as p, createVNode as m, withCtx as c, createElementVNode as d, renderSlot as u, toDisplayString as a, createCommentVNode as f, createBlock as s, unref as t, createSlots as v, createTextVNode as o } from "vue";
|
|
2
|
+
import { _ as y } from "./Chip.vue.es-D3UDSyXC.mjs";
|
|
3
|
+
import { a as k } from "./Button.vue.es-Zw--kuaU.mjs";
|
|
4
|
+
import { a as _ } from "./customElements-BTj4ii4f.mjs";
|
|
5
|
+
import { f as D } from "./formatting.es-RclXHhKo.mjs";
|
|
6
|
+
const C = { class: "flex gap-4" }, $ = { class: "flex items-center gap-2" }, r = /* @__PURE__ */ h({
|
|
7
|
+
__name: "PricingClauseChip",
|
|
8
|
+
props: {
|
|
9
|
+
iconName: {}
|
|
10
|
+
},
|
|
11
|
+
setup(e) {
|
|
12
|
+
return (n, g) => (i(), p("div", C, [
|
|
13
|
+
m(y, null, {
|
|
14
|
+
default: c(() => [
|
|
15
|
+
d("div", $, [
|
|
16
|
+
m(k, {
|
|
17
|
+
icon: e.iconName,
|
|
18
|
+
size: "xs"
|
|
19
|
+
}, null, 8, ["icon"]),
|
|
20
|
+
d("span", null, [
|
|
21
|
+
u(n.$slots, "chip-content")
|
|
22
|
+
])
|
|
23
|
+
])
|
|
24
|
+
]),
|
|
25
|
+
_: 3
|
|
26
|
+
}),
|
|
27
|
+
u(n.$slots, "chip-postfix")
|
|
28
|
+
]));
|
|
29
|
+
}
|
|
30
|
+
}), M = { class: "flex flex-col gap-2" }, T = { key: 0 }, A = /* @__PURE__ */ h({
|
|
31
|
+
__name: "InvoicePricingClauseChip",
|
|
32
|
+
props: {
|
|
33
|
+
clauseType: {},
|
|
34
|
+
priceDetailsBand: {},
|
|
35
|
+
invoiceLineDescription: {}
|
|
36
|
+
},
|
|
37
|
+
setup(e) {
|
|
38
|
+
const n = _();
|
|
39
|
+
return (g, B) => (i(), p("div", M, [
|
|
40
|
+
e.invoiceLineDescription ? (i(), p("span", T, a(e.invoiceLineDescription), 1)) : f("", !0),
|
|
41
|
+
e.clauseType === "DISCOUNT" && e.priceDetailsBand ? (i(), s(t(r), {
|
|
42
|
+
key: 1,
|
|
43
|
+
"icon-name": "south_east"
|
|
44
|
+
}, v({ _: 2 }, [
|
|
45
|
+
e.priceDetailsBand.amount ? {
|
|
46
|
+
name: "chip-content",
|
|
47
|
+
fn: c(() => [
|
|
48
|
+
o(a(t(n).$t(
|
|
49
|
+
{
|
|
50
|
+
id: "invoice.amount_discount",
|
|
51
|
+
defaultMessage: "{amount} discount",
|
|
52
|
+
description: "Represents a certain amount of discount, where {amount} is replaced with the amount"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
amount: t(D)(e.priceDetailsBand.amount)
|
|
56
|
+
}
|
|
57
|
+
)), 1)
|
|
58
|
+
]),
|
|
59
|
+
key: "0"
|
|
60
|
+
} : e.priceDetailsBand.percentage ? {
|
|
61
|
+
name: "chip-content",
|
|
62
|
+
fn: c(() => [
|
|
63
|
+
o(a(t(n).$t(
|
|
64
|
+
{
|
|
65
|
+
id: "invoice.percentage_discount",
|
|
66
|
+
defaultMessage: "{percentage}% discount",
|
|
67
|
+
description: "Represents a certain percentage of discount, where {percentage} is replaced with the percentage (number only)"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
percentage: e.priceDetailsBand.percentage ?? "0"
|
|
71
|
+
}
|
|
72
|
+
)), 1)
|
|
73
|
+
]),
|
|
74
|
+
key: "1"
|
|
75
|
+
} : void 0
|
|
76
|
+
]), 1024)) : e.clauseType === "ADJUSTMENT" ? (i(), s(t(r), {
|
|
77
|
+
key: 2,
|
|
78
|
+
"icon-name": "info"
|
|
79
|
+
}, {
|
|
80
|
+
"chip-content": c(() => [
|
|
81
|
+
o(a(t(n).$t({
|
|
82
|
+
id: "invoice.adjustment_chip_body",
|
|
83
|
+
defaultMessage: "Adjustment",
|
|
84
|
+
description: "Used on invoice lines to mark as adjusted"
|
|
85
|
+
}).toUpperCase()), 1)
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
})) : e.clauseType === "MARKUP" ? (i(), s(t(r), {
|
|
89
|
+
key: 3,
|
|
90
|
+
"icon-name": "north_east"
|
|
91
|
+
}, {
|
|
92
|
+
"chip-content": c(() => {
|
|
93
|
+
var l;
|
|
94
|
+
return [
|
|
95
|
+
o(a(t(n).$t(
|
|
96
|
+
{
|
|
97
|
+
id: "invoice.markup_percentage",
|
|
98
|
+
defaultMessage: "{percentage}% markup",
|
|
99
|
+
description: "Markup percentage, where {percentage} is replaced with the percentage (number only)"
|
|
100
|
+
},
|
|
101
|
+
{ percentage: ((l = e.priceDetailsBand) == null ? void 0 : l.percentage) ?? "0" }
|
|
102
|
+
).toUpperCase()), 1)
|
|
103
|
+
];
|
|
104
|
+
}),
|
|
105
|
+
_: 1
|
|
106
|
+
})) : e.clauseType === "COMMITMENT" ? (i(), s(t(r), {
|
|
107
|
+
key: 4,
|
|
108
|
+
"icon-name": "sell"
|
|
109
|
+
}, {
|
|
110
|
+
"chip-content": c(() => [
|
|
111
|
+
o(a(t(n).$t({
|
|
112
|
+
id: "invoice.commitment",
|
|
113
|
+
defaultMessage: "commitment",
|
|
114
|
+
description: "Used on invoice lines to mark as commitment"
|
|
115
|
+
}).toUpperCase()), 1)
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
})) : f("", !0)
|
|
119
|
+
]));
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
export {
|
|
123
|
+
A as _
|
|
124
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { defineComponent as c, inject as y, computed as $, openBlock as a, createBlock as i, resolveDynamicComponent as h, mergeProps as d, withCtx as o, renderSlot as n, createElementBlock as u, normalizeClass as p, toDisplayString as v, createCommentVNode as b, createElementVNode as g, createVNode as f, normalizeProps as k } from "vue";
|
|
2
|
+
import { I as B } from "./customElements-BTj4ii4f.mjs";
|
|
3
|
+
import { a as _ } from "./Button.vue.es-Zw--kuaU.mjs";
|
|
4
|
+
import { _ as C } from "./TooltipParagraph.vue.es-Dw0ndjle.mjs";
|
|
5
|
+
function R(t = "") {
|
|
6
|
+
return `${t}${crypto.randomUUID()}`;
|
|
7
|
+
}
|
|
8
|
+
const m = /* @__PURE__ */ c({
|
|
9
|
+
__name: "LabelContent",
|
|
10
|
+
props: {
|
|
11
|
+
tag: { default: "label" },
|
|
12
|
+
required: { type: Boolean },
|
|
13
|
+
name: {},
|
|
14
|
+
screenReaderOnly: { type: Boolean },
|
|
15
|
+
disabled: { type: Boolean },
|
|
16
|
+
i18n: {},
|
|
17
|
+
optionalLabel: {}
|
|
18
|
+
},
|
|
19
|
+
setup(t) {
|
|
20
|
+
const e = t, r = y(B, null), s = $(
|
|
21
|
+
() => {
|
|
22
|
+
var l;
|
|
23
|
+
return ((l = e.i18n) == null ? void 0 : l.optionalLabel) ?? (r ? r.formatMessage({
|
|
24
|
+
id: "label.optional_label",
|
|
25
|
+
defaultMessage: "optional",
|
|
26
|
+
description: "Shown in brackets after a form field label when the field is optional"
|
|
27
|
+
}) : "optional");
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
return (l, w) => (a(), i(h(t.tag), d(l.$attrs, {
|
|
31
|
+
class: ["block text-sm font-medium", {
|
|
32
|
+
"sr-only": t.screenReaderOnly,
|
|
33
|
+
"text-disabled": t.disabled,
|
|
34
|
+
"text-default": !t.disabled
|
|
35
|
+
}]
|
|
36
|
+
}), {
|
|
37
|
+
default: o(() => [
|
|
38
|
+
n(l.$slots, "default"),
|
|
39
|
+
t.required ? b("", !0) : (a(), u("span", {
|
|
40
|
+
key: 0,
|
|
41
|
+
class: p(["text-xs font-normal", t.disabled ? "text-disabled" : "text-subtle"])
|
|
42
|
+
}, " (" + v(s.value) + ") ", 3))
|
|
43
|
+
]),
|
|
44
|
+
_: 3
|
|
45
|
+
}, 16, ["class"]));
|
|
46
|
+
}
|
|
47
|
+
}), L = { class: "flex items-center gap-1" }, I = {
|
|
48
|
+
key: 0,
|
|
49
|
+
class: "leading-none"
|
|
50
|
+
}, N = {
|
|
51
|
+
inheritAttrs: !1
|
|
52
|
+
}, z = /* @__PURE__ */ c({
|
|
53
|
+
...N,
|
|
54
|
+
__name: "Label",
|
|
55
|
+
props: {
|
|
56
|
+
tag: { default: "label" },
|
|
57
|
+
required: { type: Boolean },
|
|
58
|
+
name: {},
|
|
59
|
+
screenReaderOnly: { type: Boolean },
|
|
60
|
+
disabled: { type: Boolean },
|
|
61
|
+
i18n: {}
|
|
62
|
+
},
|
|
63
|
+
setup(t) {
|
|
64
|
+
return (e, r) => (a(), u("div", {
|
|
65
|
+
class: p(
|
|
66
|
+
t.screenReaderOnly && !e.$slots.suffix ? "sr-only" : "mb-1 flex items-center justify-between"
|
|
67
|
+
)
|
|
68
|
+
}, [
|
|
69
|
+
g("div", L, [
|
|
70
|
+
e.$slots.tooltip ? (a(), i(C, {
|
|
71
|
+
key: 0,
|
|
72
|
+
variant: "outline",
|
|
73
|
+
class: "flex items-center"
|
|
74
|
+
}, {
|
|
75
|
+
default: o(() => {
|
|
76
|
+
var s;
|
|
77
|
+
return [
|
|
78
|
+
f(m, d({ ...e.$props, ...e.$attrs }, {
|
|
79
|
+
i18n: { optionalLabel: (s = t.i18n) == null ? void 0 : s.optionalLabel }
|
|
80
|
+
}), {
|
|
81
|
+
default: o(() => [
|
|
82
|
+
n(e.$slots, "default")
|
|
83
|
+
]),
|
|
84
|
+
_: 3
|
|
85
|
+
}, 16, ["i18n"]),
|
|
86
|
+
f(_, {
|
|
87
|
+
icon: "help",
|
|
88
|
+
size: "2xs",
|
|
89
|
+
class: "ml-1 rounded drop-shadow-sm hover:cursor-default hover:bg-gray-50"
|
|
90
|
+
})
|
|
91
|
+
];
|
|
92
|
+
}),
|
|
93
|
+
tooltip: o(() => [
|
|
94
|
+
n(e.$slots, "tooltip")
|
|
95
|
+
]),
|
|
96
|
+
_: 3
|
|
97
|
+
})) : (a(), i(m, k(d({ key: 1 }, { ...e.$props, ...e.$attrs })), {
|
|
98
|
+
default: o(() => [
|
|
99
|
+
n(e.$slots, "default")
|
|
100
|
+
]),
|
|
101
|
+
_: 3
|
|
102
|
+
}, 16))
|
|
103
|
+
]),
|
|
104
|
+
e.$slots.suffix ? (a(), u("div", I, [
|
|
105
|
+
n(e.$slots, "suffix")
|
|
106
|
+
])) : b("", !0)
|
|
107
|
+
], 2));
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
export {
|
|
111
|
+
z as _,
|
|
112
|
+
R as u
|
|
113
|
+
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { o as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { b as
|
|
1
|
+
import { defineComponent as R, openBlock as a, createElementBlock as u, normalizeStyle as Y, normalizeClass as m, renderSlot as b, createBlock as T, unref as s, createCommentVNode as r, createElementVNode as c, createTextVNode as k, toDisplayString as w, withCtx as g, useSlots as de, computed as x, ref as h, useId as re, watch as ue, onMounted as ce, onBeforeUnmount as fe, createVNode as v, Transition as me, withModifiers as be, nextTick as ye } from "vue";
|
|
2
|
+
import { o as P } from "./index.es-C7J3WGGo.mjs";
|
|
3
|
+
import { _ as ve, F as xe } from "./ContextMenu.vue.es-B9mFpUQK.mjs";
|
|
4
|
+
import { b as he, _ as X } from "./Button.vue.es-Zw--kuaU.mjs";
|
|
5
5
|
import { i as N } from "./slots.es-BA4MyEAa.mjs";
|
|
6
|
-
import { _ as
|
|
7
|
-
import {
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
10
|
-
const A = 60, Z = "z-index-tracker",
|
|
6
|
+
import { _ as ge } from "./Avatar.vue.es-r0NbcIib.mjs";
|
|
7
|
+
import { d as we, a as ze } from "./customElements-BTj4ii4f.mjs";
|
|
8
|
+
import { _ as ke } from "./IconButton.vue.es-C8lYFx5_.mjs";
|
|
9
|
+
import { _ as Be } from "./useLazyFloating.es-CycqRyeb.mjs";
|
|
10
|
+
const A = 60, Z = "z-index-tracker", $e = () => ({
|
|
11
11
|
defaultZIndex: A,
|
|
12
12
|
getZIndex: () => {
|
|
13
|
-
const
|
|
13
|
+
const o = document.querySelectorAll(`.${Z}`);
|
|
14
14
|
let f = A;
|
|
15
|
-
return (
|
|
15
|
+
return (o ?? []).forEach((i) => {
|
|
16
16
|
const d = window.getComputedStyle(i).getPropertyValue("z-index");
|
|
17
17
|
d && +d >= f && (f = +d + 1);
|
|
18
18
|
}), f;
|
|
19
19
|
},
|
|
20
20
|
getTopZIndex: () => {
|
|
21
|
-
const
|
|
21
|
+
const o = document.querySelectorAll(`.${Z}`);
|
|
22
22
|
let f = A;
|
|
23
|
-
return (
|
|
23
|
+
return (o ?? []).forEach((i) => {
|
|
24
24
|
const d = window.getComputedStyle(i).getPropertyValue("z-index");
|
|
25
25
|
d && +d > f && (f = +d);
|
|
26
26
|
}), f;
|
|
27
27
|
},
|
|
28
28
|
trackingClass: Z
|
|
29
|
-
}),
|
|
29
|
+
}), Te = /* @__PURE__ */ R({
|
|
30
30
|
__name: "Backdrop",
|
|
31
31
|
props: {
|
|
32
32
|
blurred: { type: Boolean, default: !1 },
|
|
@@ -34,19 +34,19 @@ const A = 60, Z = "z-index-tracker", Be = () => ({
|
|
|
34
34
|
zIndex: {}
|
|
35
35
|
},
|
|
36
36
|
setup(e) {
|
|
37
|
-
return (n,
|
|
37
|
+
return (n, o) => (a(), u("div", {
|
|
38
38
|
class: m(["fixed inset-0", {
|
|
39
39
|
"bg-white/90 backdrop-blur": e.blurred && e.color === "white",
|
|
40
40
|
"bg-white/80": !e.blurred && e.color === "white",
|
|
41
41
|
"bg-gray-200/90 backdrop-blur": e.blurred && e.color === "gray",
|
|
42
42
|
"bg-gray-200/80": !e.blurred && e.color === "gray"
|
|
43
43
|
}]),
|
|
44
|
-
style:
|
|
44
|
+
style: Y({ zIndex: e.zIndex })
|
|
45
45
|
}, [
|
|
46
46
|
b(n.$slots, "default")
|
|
47
47
|
], 6));
|
|
48
48
|
}
|
|
49
|
-
}),
|
|
49
|
+
}), Ee = { class: "grow overflow-hidden text-ellipsis" }, pe = /* @__PURE__ */ R({
|
|
50
50
|
__name: "Title",
|
|
51
51
|
props: {
|
|
52
52
|
title: {},
|
|
@@ -59,7 +59,7 @@ const A = 60, Z = "z-index-tracker", Be = () => ({
|
|
|
59
59
|
resourceId: {}
|
|
60
60
|
},
|
|
61
61
|
setup(e) {
|
|
62
|
-
return (n,
|
|
62
|
+
return (n, o) => (a(), u("div", {
|
|
63
63
|
class: m(["flex text-left", {
|
|
64
64
|
"gap-4": ["md", "lg"].includes(e.size),
|
|
65
65
|
"gap-3": e.size === "sm",
|
|
@@ -67,13 +67,13 @@ const A = 60, Z = "z-index-tracker", Be = () => ({
|
|
|
67
67
|
"gap-1": e.size === "xs" && e.variant === "transparent"
|
|
68
68
|
}])
|
|
69
69
|
}, [
|
|
70
|
-
e.avatar && e.title ? (a(), T(s(
|
|
70
|
+
e.avatar && e.title ? (a(), T(s(ge), {
|
|
71
71
|
key: 0,
|
|
72
72
|
initials: e.title.slice(0, 1),
|
|
73
73
|
"color-hash": e.title,
|
|
74
74
|
size: ["sm", "xs"].includes(e.size) ? "lg" : "xl"
|
|
75
75
|
}, null, 8, ["initials", "color-hash", "size"])) : r("", !0),
|
|
76
|
-
c("div",
|
|
76
|
+
c("div", Ee, [
|
|
77
77
|
e.title || n.$slots.default ? (a(), u("div", {
|
|
78
78
|
key: 0,
|
|
79
79
|
class: m([{
|
|
@@ -94,7 +94,7 @@ const A = 60, Z = "z-index-tracker", Be = () => ({
|
|
|
94
94
|
k(w(e.suffix), 1)
|
|
95
95
|
])
|
|
96
96
|
], 2)) : r("", !0),
|
|
97
|
-
e.subTitle || n.$slots.subTitle && !s(N)(n.$slots.subTitle({})) ? (a(), T(s(
|
|
97
|
+
e.subTitle || n.$slots.subTitle && !s(N)(n.$slots.subTitle({})) ? (a(), T(s(we), {
|
|
98
98
|
key: 1,
|
|
99
99
|
variant: "body-sm",
|
|
100
100
|
color: "secondary",
|
|
@@ -111,28 +111,28 @@ const A = 60, Z = "z-index-tracker", Be = () => ({
|
|
|
111
111
|
])
|
|
112
112
|
], 2));
|
|
113
113
|
}
|
|
114
|
-
}), Ce = ["aria-label", "aria-labelledby", "aria-busy"],
|
|
114
|
+
}), Ce = ["aria-label", "aria-labelledby", "aria-busy"], Ie = {
|
|
115
115
|
key: 0,
|
|
116
116
|
role: "status",
|
|
117
117
|
class: "absolute bottom-0 left-0 right-0 top-0 z-10 flex items-center justify-center bg-white/80"
|
|
118
|
-
},
|
|
118
|
+
}, Se = { class: "sr-only" }, Me = {
|
|
119
119
|
key: 1,
|
|
120
120
|
"data-testid": "modal-top-bar",
|
|
121
121
|
class: "flex justify-end border-b border-gray-200 py-2 pr-2"
|
|
122
|
-
},
|
|
122
|
+
}, Le = {
|
|
123
123
|
"aria-hidden": "true",
|
|
124
124
|
class: "sticky top-0 z-10 -mx-6 h-0"
|
|
125
|
-
},
|
|
125
|
+
}, Ae = {
|
|
126
126
|
"data-testid": "modal-body-content",
|
|
127
127
|
class: "py-6"
|
|
128
|
-
},
|
|
128
|
+
}, Ze = ["id"], Ne = {
|
|
129
129
|
"aria-hidden": "true",
|
|
130
130
|
class: "sticky bottom-0 z-10 -mx-6 h-0"
|
|
131
|
-
},
|
|
131
|
+
}, Re = { key: 0 }, Ve = {
|
|
132
132
|
key: 3,
|
|
133
133
|
"data-testid": "modal-footer",
|
|
134
134
|
class: "border-t border-gray-200 px-6 py-3 [&_button]:w-full"
|
|
135
|
-
}, De = { class: "flex flex-col gap-2" }, Fe = /* @__PURE__ */
|
|
135
|
+
}, De = { class: "flex flex-col gap-2" }, Fe = /* @__PURE__ */ R({
|
|
136
136
|
__name: "Modal",
|
|
137
137
|
props: {
|
|
138
138
|
children: { default: () => [] },
|
|
@@ -154,19 +154,19 @@ const A = 60, Z = "z-index-tracker", Be = () => ({
|
|
|
154
154
|
},
|
|
155
155
|
emits: ["confirm", "close"],
|
|
156
156
|
setup(e, { emit: n }) {
|
|
157
|
-
const
|
|
158
|
-
var t,
|
|
159
|
-
return !!((t = i.body) != null && t.call(i)) && !N((
|
|
160
|
-
}), B =
|
|
161
|
-
var t,
|
|
162
|
-
return !!
|
|
163
|
-
}),
|
|
164
|
-
if (
|
|
165
|
-
if (!
|
|
166
|
-
}),
|
|
157
|
+
const o = e, f = n, i = de(), { $t: d } = ze(), V = x(() => {
|
|
158
|
+
var t, l;
|
|
159
|
+
return !!((t = i.body) != null && t.call(i)) && !N((l = i.body) == null ? void 0 : l.call(i, {}));
|
|
160
|
+
}), B = x(() => {
|
|
161
|
+
var t, l;
|
|
162
|
+
return !!o.title || !!((t = i.header) != null && t.call(i)) && !N((l = i.header) == null ? void 0 : l.call(i, {}));
|
|
163
|
+
}), J = x(() => V.value || B.value), { getZIndex: Q, getTopZIndex: W, trackingClass: _, defaultZIndex: D } = $e(), E = h(), z = h(), $ = h(D), F = re(), O = x(() => {
|
|
164
|
+
if (o.ariaLabelledby) return o.ariaLabelledby;
|
|
165
|
+
if (!o.ariaLabel && !o.title && B.value) return F;
|
|
166
|
+
}), ee = x(() => {
|
|
167
167
|
if (!O.value)
|
|
168
|
-
return
|
|
169
|
-
}), q = h(!1), K = h(!1),
|
|
168
|
+
return o.ariaLabel || o.title || void 0;
|
|
169
|
+
}), q = h(!1), K = h(!1), te = x(() => o.blurred || o.isEmbedded), le = {
|
|
170
170
|
xs: "max-w-xs",
|
|
171
171
|
sm: "max-w-sm",
|
|
172
172
|
md: "max-w-md",
|
|
@@ -178,7 +178,7 @@ const A = 60, Z = "z-index-tracker", Be = () => ({
|
|
|
178
178
|
"5xl": "max-w-5xl",
|
|
179
179
|
"6xl": "max-w-6xl",
|
|
180
180
|
"7xl": "max-w-7xl"
|
|
181
|
-
},
|
|
181
|
+
}, oe = [
|
|
182
182
|
"a[href]",
|
|
183
183
|
"button:not([disabled])",
|
|
184
184
|
'input:not([disabled]):not([type="hidden"])',
|
|
@@ -186,72 +186,78 @@ const A = 60, Z = "z-index-tracker", Be = () => ({
|
|
|
186
186
|
"textarea:not([disabled])",
|
|
187
187
|
'[contenteditable="true"]',
|
|
188
188
|
'[tabindex]:not([tabindex^="-"])'
|
|
189
|
-
].join(","),
|
|
190
|
-
z.value.querySelectorAll(
|
|
191
|
-
).filter((t) => !t.closest('[aria-hidden="true"]')) : [],
|
|
189
|
+
].join(","), p = h(null), j = () => z.value ? Array.from(
|
|
190
|
+
z.value.querySelectorAll(oe)
|
|
191
|
+
).filter((t) => !t.closest('[aria-hidden="true"]')) : [], ae = () => {
|
|
192
192
|
const t = z.value;
|
|
193
193
|
if (!t) return;
|
|
194
194
|
(t.querySelector("[autofocus]") ?? j()[0] ?? t).focus();
|
|
195
|
-
}, U = () =>
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
195
|
+
}, U = () => {
|
|
196
|
+
var t;
|
|
197
|
+
let l = document.activeElement;
|
|
198
|
+
for (; (t = l == null ? void 0 : l.shadowRoot) != null && t.activeElement; )
|
|
199
|
+
l = l.shadowRoot.activeElement;
|
|
200
|
+
return l;
|
|
201
|
+
}, H = () => o.showModal && $.value >= W(), C = () => f("close"), se = () => {
|
|
202
|
+
o.noBackdropClose || C();
|
|
203
|
+
}, ne = () => {
|
|
204
|
+
if (!E.value) return;
|
|
205
|
+
const { scrollTop: t, scrollHeight: l, clientHeight: y } = E.value;
|
|
206
|
+
q.value = t > 0, K.value = t + y < l - 1;
|
|
201
207
|
};
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}),
|
|
205
|
-
const
|
|
206
|
-
if (!
|
|
208
|
+
P("Escape", () => {
|
|
209
|
+
o.noClickAway || !H() || C();
|
|
210
|
+
}), P("Tab", (t) => {
|
|
211
|
+
const l = z.value;
|
|
212
|
+
if (!l || !H()) return;
|
|
207
213
|
const y = j();
|
|
208
214
|
if (!y.length) {
|
|
209
|
-
t.preventDefault(),
|
|
215
|
+
t.preventDefault(), l.focus();
|
|
210
216
|
return;
|
|
211
217
|
}
|
|
212
|
-
const S = y[0], M = y[y.length - 1], L =
|
|
213
|
-
if (!
|
|
218
|
+
const S = y[0], M = y[y.length - 1], L = U();
|
|
219
|
+
if (!l.contains(L)) {
|
|
214
220
|
t.preventDefault(), (t.shiftKey ? M : S).focus();
|
|
215
221
|
return;
|
|
216
222
|
}
|
|
217
223
|
t.shiftKey && L === S ? (t.preventDefault(), M.focus()) : !t.shiftKey && L === M && (t.preventDefault(), S.focus());
|
|
218
224
|
});
|
|
219
225
|
const I = (t) => {
|
|
220
|
-
const
|
|
221
|
-
|
|
222
|
-
},
|
|
223
|
-
$.value =
|
|
224
|
-
},
|
|
226
|
+
const l = document.querySelector("body");
|
|
227
|
+
l && (l.style.overflowY = t);
|
|
228
|
+
}, G = async () => {
|
|
229
|
+
$.value = Q(), I("hidden"), p.value = U(), await ye(), ae();
|
|
230
|
+
}, ie = () => {
|
|
225
231
|
var t;
|
|
226
|
-
$.value =
|
|
232
|
+
$.value = D, I("unset"), (t = p.value) == null || t.focus(), p.value = null;
|
|
227
233
|
};
|
|
228
|
-
return
|
|
229
|
-
() =>
|
|
230
|
-
(t) => t ?
|
|
231
|
-
),
|
|
232
|
-
|
|
233
|
-
}),
|
|
234
|
+
return ue(
|
|
235
|
+
() => o.showModal,
|
|
236
|
+
(t) => t ? G() : ie()
|
|
237
|
+
), ce(() => {
|
|
238
|
+
o.showModal && G();
|
|
239
|
+
}), fe(() => {
|
|
234
240
|
I("unset");
|
|
235
|
-
}), (t,
|
|
241
|
+
}), (t, l) => (a(), T(s(ve), { to: "modal" }, {
|
|
236
242
|
default: g(() => [
|
|
237
|
-
|
|
243
|
+
v(me, {
|
|
238
244
|
name: "modal",
|
|
239
245
|
appear: ""
|
|
240
246
|
}, {
|
|
241
247
|
default: g(() => [
|
|
242
248
|
e.showModal ? (a(), u("div", {
|
|
243
249
|
key: 0,
|
|
244
|
-
class: m(["h-modal z-60 fixed left-0 right-0 top-0 flex w-full items-center justify-center overflow-y-auto overflow-x-hidden md:inset-0 md:h-full", s(
|
|
245
|
-
style:
|
|
250
|
+
class: m(["h-modal z-60 fixed left-0 right-0 top-0 flex w-full items-center justify-center overflow-y-auto overflow-x-hidden md:inset-0 md:h-full", s(_)]),
|
|
251
|
+
style: Y({ zIndex: $.value })
|
|
246
252
|
}, [
|
|
247
|
-
|
|
253
|
+
v(s(Te), {
|
|
248
254
|
"aria-hidden": "true",
|
|
249
|
-
blurred:
|
|
250
|
-
color:
|
|
251
|
-
onMousedown:
|
|
255
|
+
blurred: te.value,
|
|
256
|
+
color: o.isEmbedded ? "white" : void 0,
|
|
257
|
+
onMousedown: be(se, ["self"])
|
|
252
258
|
}, null, 8, ["blurred", "color"]),
|
|
253
259
|
c("div", {
|
|
254
|
-
class: m(["modal-panel relative h-full w-full p-4 md:h-auto", `${
|
|
260
|
+
class: m(["modal-panel relative h-full w-full p-4 md:h-auto", `${le[e.size]}`])
|
|
255
261
|
}, [
|
|
256
262
|
c("div", {
|
|
257
263
|
ref_key: "dialogElementRef",
|
|
@@ -259,24 +265,24 @@ const A = 60, Z = "z-index-tracker", Be = () => ({
|
|
|
259
265
|
role: "dialog",
|
|
260
266
|
"aria-modal": "true",
|
|
261
267
|
tabindex: "-1",
|
|
262
|
-
"aria-label":
|
|
268
|
+
"aria-label": ee.value,
|
|
263
269
|
"aria-labelledby": O.value,
|
|
264
270
|
"aria-busy": e.isLoading,
|
|
265
271
|
class: "relative flex max-h-[min(95vh,920px)] flex-col rounded-xl bg-white shadow-lg focus:outline-none"
|
|
266
272
|
}, [
|
|
267
|
-
e.isLoading ? (a(), u("div",
|
|
268
|
-
|
|
273
|
+
e.isLoading ? (a(), u("div", Ie, [
|
|
274
|
+
v(he, {
|
|
269
275
|
size: "6",
|
|
270
276
|
"aria-hidden": "true"
|
|
271
277
|
}),
|
|
272
|
-
c("span",
|
|
278
|
+
c("span", Se, w(s(d)({
|
|
273
279
|
defaultMessage: "Loading",
|
|
274
280
|
id: "h+GlcT",
|
|
275
281
|
description: "Modal loading state"
|
|
276
282
|
})), 1)
|
|
277
283
|
])) : r("", !0),
|
|
278
|
-
e.noCloseButton ? r("", !0) : (a(), u("div",
|
|
279
|
-
|
|
284
|
+
e.noCloseButton ? r("", !0) : (a(), u("div", Me, [
|
|
285
|
+
v(s(ke), {
|
|
280
286
|
icon: "close",
|
|
281
287
|
size: "xs",
|
|
282
288
|
intent: "secondary",
|
|
@@ -286,25 +292,25 @@ const A = 60, Z = "z-index-tracker", Be = () => ({
|
|
|
286
292
|
id: "U+ONwt",
|
|
287
293
|
description: "Modal close button"
|
|
288
294
|
}),
|
|
289
|
-
onClick:
|
|
295
|
+
onClick: C
|
|
290
296
|
}, null, 8, ["aria-label"])
|
|
291
297
|
])),
|
|
292
|
-
|
|
298
|
+
J.value ? (a(), u("div", {
|
|
293
299
|
key: 2,
|
|
294
300
|
ref_key: "contentElementRef",
|
|
295
|
-
ref:
|
|
301
|
+
ref: E,
|
|
296
302
|
class: m(["overflow-auto px-6", { "overflow-visible": e.overflowVisible }]),
|
|
297
|
-
onScroll:
|
|
303
|
+
onScroll: ne
|
|
298
304
|
}, [
|
|
299
|
-
c("div",
|
|
305
|
+
c("div", Le, [
|
|
300
306
|
c("div", {
|
|
301
307
|
class: m(["transition-duration-700 pointer-events-none h-6 w-full bg-gradient-to-b from-black/[.06] to-transparent transition-opacity", q.value ? "opacity-100" : "opacity-0"])
|
|
302
308
|
}, null, 2)
|
|
303
309
|
]),
|
|
304
|
-
c("div",
|
|
310
|
+
c("div", Ae, [
|
|
305
311
|
B.value ? (a(), u("div", {
|
|
306
312
|
key: 0,
|
|
307
|
-
id: s(
|
|
313
|
+
id: s(F)
|
|
308
314
|
}, [
|
|
309
315
|
b(t.$slots, "header", {}, () => [
|
|
310
316
|
e.title ? (a(), T(pe, {
|
|
@@ -314,23 +320,23 @@ const A = 60, Z = "z-index-tracker", Be = () => ({
|
|
|
314
320
|
size: "md"
|
|
315
321
|
}, null, 8, ["title", "sub-title"])) : r("", !0)
|
|
316
322
|
], !0)
|
|
317
|
-
], 8,
|
|
318
|
-
|
|
323
|
+
], 8, Ze)) : r("", !0),
|
|
324
|
+
V.value ? (a(), u("div", {
|
|
319
325
|
key: 1,
|
|
320
326
|
class: m({ "mt-4": B.value })
|
|
321
327
|
}, [
|
|
322
328
|
b(t.$slots, "body", {}, void 0, !0)
|
|
323
329
|
], 2)) : r("", !0)
|
|
324
330
|
]),
|
|
325
|
-
c("div",
|
|
331
|
+
c("div", Ne, [
|
|
326
332
|
c("div", {
|
|
327
333
|
class: m(["transition-duration-700 pointer-events-none h-6 w-full -translate-y-6 bg-gradient-to-t from-black/[.06] to-transparent transition-opacity", K.value ? "opacity-100" : "opacity-0"])
|
|
328
334
|
}, null, 2)
|
|
329
335
|
])
|
|
330
336
|
], 34)) : r("", !0),
|
|
331
|
-
|
|
337
|
+
v(xe, null, {
|
|
332
338
|
default: g(() => [
|
|
333
|
-
t.$slots.error ? (a(), u("div",
|
|
339
|
+
t.$slots.error ? (a(), u("div", Re, [
|
|
334
340
|
b(t.$slots, "error", {}, void 0, !0)
|
|
335
341
|
])) : r("", !0)
|
|
336
342
|
]),
|
|
@@ -339,11 +345,11 @@ const A = 60, Z = "z-index-tracker", Be = () => ({
|
|
|
339
345
|
t.$slots.footer || e.confirmButtonText || e.cancelButtonText ? (a(), u("div", Ve, [
|
|
340
346
|
b(t.$slots, "footer", {}, () => [
|
|
341
347
|
c("div", De, [
|
|
342
|
-
|
|
348
|
+
v(s(X), {
|
|
343
349
|
size: "md",
|
|
344
350
|
autofocus: "",
|
|
345
351
|
loading: e.isLoading,
|
|
346
|
-
onClick:
|
|
352
|
+
onClick: l[0] || (l[0] = (y) => t.$emit("confirm"))
|
|
347
353
|
}, {
|
|
348
354
|
default: g(() => [
|
|
349
355
|
k(w(e.confirmButtonText || s(d)({
|
|
@@ -354,10 +360,10 @@ const A = 60, Z = "z-index-tracker", Be = () => ({
|
|
|
354
360
|
]),
|
|
355
361
|
_: 1
|
|
356
362
|
}, 8, ["loading"]),
|
|
357
|
-
|
|
363
|
+
v(s(X), {
|
|
358
364
|
size: "md",
|
|
359
365
|
intent: "secondary",
|
|
360
|
-
onClick:
|
|
366
|
+
onClick: l[1] || (l[1] = (y) => t.$emit("close"))
|
|
361
367
|
}, {
|
|
362
368
|
default: g(() => [
|
|
363
369
|
k(w(e.cancelButtonText || s(d)({
|
|
@@ -381,7 +387,7 @@ const A = 60, Z = "z-index-tracker", Be = () => ({
|
|
|
381
387
|
_: 3
|
|
382
388
|
}));
|
|
383
389
|
}
|
|
384
|
-
}),
|
|
390
|
+
}), Ye = /* @__PURE__ */ Be(Fe, [["__scopeId", "data-v-4ca9d1da"]]);
|
|
385
391
|
export {
|
|
386
|
-
|
|
392
|
+
Ye as M
|
|
387
393
|
};
|