@solvimon/solvimon-web 0.1.0-alpha.7 → 0.1.0-alpha.8
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/dist/ApiStatus-CyNDp_op.mjs +9 -0
- package/dist/ApiStatus-oqvUEWJx.js +1 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C-C0i6i6.js +1 -0
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CupcH8TZ.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CT0Tjsnw.mjs} +2 -4
- package/dist/{ContentWithAsideLayout-Ct24RV-2.mjs → ContentWithAsideLayout-BTdixy3L.mjs} +2 -11
- package/dist/ContentWithAsideLayout-oAYVrLvL.js +1 -0
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZJ0xukI.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CK73bYUe.mjs} +2 -5
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CLU7Yiyx.js +1 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B_WLgBur.js +1 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DsrBsrtk.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dt_Vb7Wz.mjs} +1 -2
- package/dist/PaymentHistoryBlock-DHM-3fh-.js +1 -0
- package/dist/PaymentHistoryBlock-YzJ6bxKr.mjs +4 -0
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BnKwmJ2s.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D6Cr2Uga.mjs} +1 -5
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DFw8lrDv.js +1 -0
- package/dist/PaymentIntegrationForm-Cl5ua8v8.js +1 -0
- package/dist/PaymentIntegrationForm-ID4QnvA3.mjs +4 -0
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BE1lWOk9.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CVWPT3Ni.mjs} +32 -189
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DifRn1ok.js +1 -0
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CKNMt-JH.js +1 -0
- package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-BbvDXvIS.mjs → PricingGroupContent.vue_vue_type_script_setup_true_lang-CzS32ZUt.mjs} +5 -31
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DVhJy0t8.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BIxGqr9U.mjs} +4 -7
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CpEqDnO3.js +1 -0
- package/dist/adyenLoader-CEH4A2b2.js +1 -0
- package/dist/adyenLoader-gsbzSjYV.mjs +177 -0
- package/dist/component-C2Gc-wsE.js +1 -0
- package/dist/component-CM9g6tbD.mjs +804 -0
- package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
- package/dist/components/BillingInformation/BillingInformation.es.js +3 -7
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +9 -17
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +3 -7
- package/dist/components/Invoice/Invoice.cjs.js +1 -1
- package/dist/components/Invoice/Invoice.es.js +42 -2659
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -7
- package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
- package/dist/components/InvoicesList/InvoicesList.es.js +2 -6
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -7
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +7 -33
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +8 -4824
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +4 -8
- package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
- package/dist/components/WalletBalances/WalletBalances.es.js +3 -7
- package/dist/core/index.cjs.js +1 -1
- package/dist/core/index.es.js +1 -1
- package/dist/core/types.d.ts +2 -0
- package/dist/{customer-CcQR-JIm.js → customer-C_Hz_npf.js} +1 -1
- package/dist/{customer-CJrpbGX4.mjs → customer-TIi7iZFw.mjs} +1 -1
- package/dist/en-US-CBoPxQwX.mjs +199 -0
- package/dist/en-US-DJq-9dD8.js +1 -0
- package/dist/index-CzL1ZcGi.mjs +85 -0
- package/dist/index-DRdBmZ2-.js +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +4 -1
- package/dist/{invoices-CNK1Ushv.mjs → invoices-BuVOuTOm.mjs} +2 -15
- package/dist/invoices-DbvwXAsm.js +1 -0
- package/dist/nl-NL-BB7KbK-h.mjs +181 -0
- package/dist/nl-NL-CtU1Lg2F.js +1 -0
- package/dist/paymentMethods-B4AYGf0K.js +1 -0
- package/dist/{paymentMethods-C-ApE-G4.mjs → paymentMethods-Di32oJ39.mjs} +2 -2
- package/dist/{payments-CE9U7aKK.mjs → payments-C5fD1PXB.mjs} +1 -1
- package/dist/{payments-CLt0SExf.js → payments-DeutKq9x.js} +1 -1
- package/dist/{registry-B99ZnfEn.mjs → registry-BLwMl1bK.mjs} +6 -4
- package/dist/registry-CMSmkLcy.js +1 -0
- package/dist/screens/Checkout/Checkout.cjs.js +1 -1
- package/dist/screens/Checkout/Checkout.es.js +420 -2388
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +13 -14
- package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +3 -0
- package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -0
- package/dist/screens/PayInvoice/PayInvoice.es.js +456 -0
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +79 -61
- package/dist/solvimon-web.css +1 -1
- package/dist/source-DKDKBlUm.mjs +179 -0
- package/dist/source-dkMNFWDc.js +1 -0
- package/dist/{subscriptions-CoeCrY1I.mjs → subscriptions-mOgjjzUi.mjs} +2 -2
- package/dist/subscriptions-wdMADcQZ.js +1 -0
- package/dist/{useActionDispatchProvider-eO2qFPGv.mjs → useActionDispatchProvider-B4gszz0Q.mjs} +1 -1
- package/dist/{useActionDispatchProvider-CWVV_xsi.js → useActionDispatchProvider-DfS2P0bd.js} +1 -1
- package/dist/{useCustomer-PthyTFLl.js → useCustomer-DanZzn-l.js} +1 -1
- package/dist/{useCustomer--jycAz--.mjs → useCustomer-cbhDyWJL.mjs} +2 -2
- package/dist/useIncrementalLoading-DFe5Yh8M.js +1 -0
- package/dist/{useIncrementalLoading-CcnL3flF.mjs → useIncrementalLoading-RRicokf1.mjs} +3 -8
- package/dist/useInvoiceData-CxxHa5R2.js +1 -0
- package/dist/{useInvoiceData-BiMMoVoW.mjs → useInvoiceData-fS6G_244.mjs} +6 -12
- package/dist/{useInvoicesList-DFhF_gp7.mjs → useInvoicesList-BQQxcPdz.mjs} +23 -260
- package/dist/useInvoicesList-CtJqmblZ.js +1 -0
- package/dist/usePaymentMethodOptions-2MloZ9bY.mjs +26 -0
- package/dist/usePaymentMethodOptions-D01YWW3G.js +1 -0
- package/dist/{usePaymentMethods-BRQ7-dUr.js → usePaymentMethods-Cm9WdSW0.js} +1 -1
- package/dist/{usePaymentMethods-BX2RnHZN.mjs → usePaymentMethods-DZvfWSlx.mjs} +2 -2
- package/dist/usePayments-B13S_yai.js +1 -0
- package/dist/usePayments-D4uGKBsV.mjs +36 -0
- package/dist/usePortal-DJDJNLbo.mjs +12 -0
- package/dist/usePortal-DWJEVkTj.js +1 -0
- package/dist/useService-9fCKPTmu.js +1 -0
- package/dist/useService-BuWWE5ND.mjs +68 -0
- package/dist/useViewport-Bu0cyeSi.mjs +38 -0
- package/dist/useViewport-CKRY1CKR.js +1 -0
- package/dist/useWalletBalanceItems-B53Gkjro.mjs +106 -0
- package/dist/useWalletBalanceItems-BMaVT4TW.js +1 -0
- package/dist/useWatchDebounced-2ZLnfgvG.js +1 -0
- package/dist/useWatchDebounced-D1xuIX6_.mjs +12 -0
- package/dist/vendor-ui-BwxuPDg8.mjs +28598 -0
- package/dist/vendor-ui-Ce_Yp7xA.js +1 -0
- package/package.json +17 -10
- package/dist/Alert.vue.es-DMPvSykx.js +0 -1
- package/dist/Alert.vue.es-DsJ1ckRU.mjs +0 -172
- package/dist/Amount.vue.es-C6JE5rL8.mjs +0 -23
- package/dist/Amount.vue.es-h8wulbBG.js +0 -1
- package/dist/Avatar.vue.es-Ba8ZGfm4.mjs +0 -93
- package/dist/Avatar.vue.es-BbyE0AjW.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C4Ndo83E.js +0 -1
- package/dist/Button.vue.es-6sBk5tBL.mjs +0 -408
- package/dist/Button.vue.es-BC4_TItq.js +0 -1
- package/dist/CardContent.vue.es-ChEMrFCc.mjs +0 -115
- package/dist/CardContent.vue.es-i9ivuGKG.js +0 -1
- package/dist/Chip.vue.es-D0fkSe8a.js +0 -1
- package/dist/Chip.vue.es-DcW2CjUA.mjs +0 -1576
- package/dist/Comparators.vue.es-BdxDqU8o.js +0 -1
- package/dist/Comparators.vue.es-DdTKGB80.mjs +0 -406
- package/dist/ContentWithAsideLayout-UHovpjZu.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-9rP7-RzN.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-DBMl01Es.mjs +0 -175
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CYTCcMgP.js +0 -1
- package/dist/Divider.vue.es-ClFG8QtG.js +0 -1
- package/dist/Divider.vue.es-wKkIVBgb.mjs +0 -24
- package/dist/DividerText.vue.es-B7oa5Xpn.mjs +0 -72
- package/dist/DividerText.vue.es-yiFdPQvo.js +0 -1
- package/dist/ErrorNotification.vue.es-Bgw0MIl8.mjs +0 -30
- package/dist/ErrorNotification.vue.es-FpRyg0De.js +0 -1
- package/dist/FormMessage.vue.es-DFQXxiSC.mjs +0 -46
- package/dist/FormMessage.vue.es-LeWoj774.js +0 -1
- package/dist/IconButton.vue.es-DNCwwH_j.mjs +0 -825
- package/dist/IconButton.vue.es-DiSiGPWO.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BDitcx8B.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-6yi47YWd.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CC3hm3nx.js +0 -1
- package/dist/PaymentMethod.vue.es-DYlnmZh7.js +0 -1
- package/dist/PaymentMethod.vue.es-nXZoQjG3.mjs +0 -1255
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CmQILA3q.js +0 -1
- package/dist/Section.vue.es-3-H1pUTB.mjs +0 -79
- package/dist/Section.vue.es-BuzTXRLP.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Pq3d7DTb.js +0 -1
- package/dist/TooltipParagraph.vue.es-DVJLF9Kv.mjs +0 -136
- package/dist/TooltipParagraph.vue.es-kTbRGoPF.js +0 -1
- package/dist/TrialChip.vue.es-BHYbW8b6.mjs +0 -759
- package/dist/TrialChip.vue.es-C6Xg_5rR.js +0 -1
- package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
- package/dist/_Uint8Array-DxISR7XF.js +0 -1
- package/dist/_flatRest.es-BHFPCqZh.mjs +0 -642
- package/dist/_flatRest.es-dFffnTpX.js +0 -1
- package/dist/api.es-B4qAAJKr.js +0 -1
- package/dist/api.es-UkfpLiLL.mjs +0 -83
- package/dist/cloneDeep-Hs8Pp07F.js +0 -1
- package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
- package/dist/cn.es-C7xoIs3C.js +0 -1
- package/dist/cn.es-tfxVlz02.mjs +0 -3191
- package/dist/component-ZRZIt3ZW.js +0 -1
- package/dist/component-dpA83LIN.mjs +0 -6569
- package/dist/countryData.es--zJAd6LA.mjs +0 -252
- package/dist/countryData.es-D3MFzU92.js +0 -1
- package/dist/customer.es-D42Md24r.js +0 -1
- package/dist/customer.es-LIW2YmLL.mjs +0 -30
- package/dist/formatting.es-9hM8aHSg.js +0 -1
- package/dist/formatting.es-D5H_ySFv.mjs +0 -68
- package/dist/getCountryNameByCode.es-fP52nO_7.js +0 -1
- package/dist/getCountryNameByCode.es-ymC9R46j.mjs +0 -8
- package/dist/index-2jo9BSPM.js +0 -1
- package/dist/index-BFZ0dPh9.mjs +0 -179
- package/dist/index-CI71bVGE.mjs +0 -2521
- package/dist/index-CWSXne1Q.js +0 -1
- package/dist/index-D3v7hAtc.mjs +0 -253
- package/dist/index-WLSPwi90.js +0 -1
- package/dist/index.es-BBJF2O2l.js +0 -1
- package/dist/index.es-LCAKs4tH.mjs +0 -438
- package/dist/invoices-3kVHsAXr.js +0 -1
- package/dist/isEmpty.es-Bp1SbWFu.mjs +0 -131
- package/dist/isEmpty.es-Dycf-CD_.js +0 -1
- package/dist/paymentMethods-DZRf0WRl.js +0 -1
- package/dist/pick.es-BgDAfhAl.js +0 -1
- package/dist/pick.es-DdVOyp0Q.mjs +0 -45
- package/dist/registry-ClZ43bQn.js +0 -1
- package/dist/sprite.svg.es-CCc3Mz1x.js +0 -1
- package/dist/sprite.svg.es-DZD704h3.mjs +0 -4
- package/dist/subscriptions-CS8HTxzC.js +0 -1
- package/dist/typeGuards.es-C4nR5FkL.js +0 -1
- package/dist/typeGuards.es-fwUoeMCe.mjs +0 -12
- package/dist/useIncrementalLoading-CAdNW-Bf.js +0 -1
- package/dist/useInvoiceData-DvQO_nKz.js +0 -1
- package/dist/useInvoicesList-CHkwSNO9.js +0 -1
- package/dist/useService-B67YWAcN.js +0 -1
- package/dist/useService-DG_zedHV.mjs +0 -282
- package/dist/useWalletBalanceItems-B5FMmoU2.mjs +0 -308
- package/dist/useWalletBalanceItems-BY3gq0fc.js +0 -1
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { computed, defineComponent, openBlock, createElementBlock, normalizeClass, unref, createCommentVNode, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { _ as _sfc_main$1 } from "./component-dpA83LIN.mjs";
|
|
3
|
-
const dividerBaseClasses = "relative translate-y-1/2 top-1/2 border-t border-gray-100";
|
|
4
|
-
const useDividerTextClasses = (props) => {
|
|
5
|
-
const leftDividerClasses = computed(() => {
|
|
6
|
-
let classes = `${dividerBaseClasses}`;
|
|
7
|
-
if (props.hasOuterDivider && props.textPosition === "left") {
|
|
8
|
-
classes += " w-2";
|
|
9
|
-
} else {
|
|
10
|
-
classes += " grow";
|
|
11
|
-
}
|
|
12
|
-
return classes;
|
|
13
|
-
});
|
|
14
|
-
const rightDividerClasses = computed(() => {
|
|
15
|
-
let classes = `${dividerBaseClasses}`;
|
|
16
|
-
if (props.hasOuterDivider && props.textPosition === "right") {
|
|
17
|
-
classes += " w-2";
|
|
18
|
-
} else {
|
|
19
|
-
classes += " grow";
|
|
20
|
-
}
|
|
21
|
-
return classes;
|
|
22
|
-
});
|
|
23
|
-
return { leftDividerClasses, rightDividerClasses };
|
|
24
|
-
};
|
|
25
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
26
|
-
__name: "DividerText",
|
|
27
|
-
props: {
|
|
28
|
-
spacing: { default: "none" },
|
|
29
|
-
textPosition: { default: "left" },
|
|
30
|
-
hasOuterDivider: { type: Boolean, default: false },
|
|
31
|
-
text: {}
|
|
32
|
-
},
|
|
33
|
-
setup(__props) {
|
|
34
|
-
const props = __props;
|
|
35
|
-
const { leftDividerClasses, rightDividerClasses } = useDividerTextClasses(props);
|
|
36
|
-
return (_ctx, _cache) => {
|
|
37
|
-
return openBlock(), createElementBlock("div", {
|
|
38
|
-
class: normalizeClass(["flex gap-2", {
|
|
39
|
-
"my-2": __props.spacing === "xs",
|
|
40
|
-
"my-4": __props.spacing === "sm",
|
|
41
|
-
"my-6": __props.spacing === "md",
|
|
42
|
-
"my-8": __props.spacing === "lg",
|
|
43
|
-
"my-10": __props.spacing === "xl"
|
|
44
|
-
}])
|
|
45
|
-
}, [
|
|
46
|
-
__props.textPosition === "left" && __props.hasOuterDivider || ["center", "right"].includes(__props.textPosition) ? (openBlock(), createElementBlock("span", {
|
|
47
|
-
key: 0,
|
|
48
|
-
class: normalizeClass(unref(leftDividerClasses))
|
|
49
|
-
}, null, 2)) : createCommentVNode("", true),
|
|
50
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
51
|
-
createVNode(unref(_sfc_main$1), {
|
|
52
|
-
tag: "span",
|
|
53
|
-
"no-spacing": "",
|
|
54
|
-
variant: "caps-heading"
|
|
55
|
-
}, {
|
|
56
|
-
default: withCtx(() => [
|
|
57
|
-
createTextVNode(toDisplayString(__props.text), 1)
|
|
58
|
-
]),
|
|
59
|
-
_: 1
|
|
60
|
-
})
|
|
61
|
-
]),
|
|
62
|
-
__props.textPosition === "right" && __props.hasOuterDivider || ["center", "left"].includes(__props.textPosition) ? (openBlock(), createElementBlock("span", {
|
|
63
|
-
key: 1,
|
|
64
|
-
class: normalizeClass(unref(rightDividerClasses))
|
|
65
|
-
}, null, 2)) : createCommentVNode("", true)
|
|
66
|
-
], 2);
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
export {
|
|
71
|
-
_sfc_main as _
|
|
72
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("vue"),t=require("./component-ZRZIt3ZW.js"),i="relative translate-y-1/2 top-1/2 border-t border-gray-100",s=e.defineComponent({__name:"DividerText",props:{spacing:{default:"none"},textPosition:{default:"left"},hasOuterDivider:{type:Boolean,default:!1},text:{}},setup(s){const r=s,{leftDividerClasses:n,rightDividerClasses:a}=(t=>({leftDividerClasses:e.computed(()=>{let e=`${i}`;return t.hasOuterDivider&&"left"===t.textPosition?e+=" w-2":e+=" grow",e}),rightDividerClasses:e.computed(()=>{let e=`${i}`;return t.hasOuterDivider&&"right"===t.textPosition?e+=" w-2":e+=" grow",e})}))(r);return(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex gap-2",{"my-2":"xs"===s.spacing,"my-4":"sm"===s.spacing,"my-6":"md"===s.spacing,"my-8":"lg"===s.spacing,"my-10":"xl"===s.spacing}])},["left"===s.textPosition&&s.hasOuterDivider||["center","right"].includes(s.textPosition)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(n))},null,2)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"default",{},()=>[e.createVNode(e.unref(t._sfc_main),{tag:"span","no-spacing":"",variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.text),1)]),_:1})]),"right"===s.textPosition&&s.hasOuterDivider||["center","left"].includes(s.textPosition)?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(a))},null,2)):e.createCommentVNode("",!0)],2))}});exports._sfc_main=s;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createBlock, mergeProps } from "vue";
|
|
2
|
-
import { _ as _sfc_main$1 } from "./Alert.vue.es-DsJ1ckRU.mjs";
|
|
3
|
-
import { a as useIntl } from "./component-dpA83LIN.mjs";
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "ErrorNotification",
|
|
6
|
-
props: {
|
|
7
|
-
title: {},
|
|
8
|
-
description: {}
|
|
9
|
-
},
|
|
10
|
-
setup(__props) {
|
|
11
|
-
const { formatMessage } = useIntl();
|
|
12
|
-
const props = __props;
|
|
13
|
-
const title = computed(
|
|
14
|
-
() => props.title ?? formatMessage({
|
|
15
|
-
defaultMessage: "Something went wrong",
|
|
16
|
-
id: "error_notification.default_error_message",
|
|
17
|
-
description: "The default message to display"
|
|
18
|
-
})
|
|
19
|
-
);
|
|
20
|
-
return (_ctx, _cache) => {
|
|
21
|
-
return openBlock(), createBlock(_sfc_main$1, mergeProps({
|
|
22
|
-
type: "danger",
|
|
23
|
-
title: title.value
|
|
24
|
-
}, _ctx.$attrs), null, 16, ["title"]);
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
export {
|
|
29
|
-
_sfc_main as _
|
|
30
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("vue"),t=require("./Alert.vue.es-DMPvSykx.js"),r=require("./component-ZRZIt3ZW.js"),o=e.defineComponent({__name:"ErrorNotification",props:{title:{},description:{}},setup(o){const{formatMessage:s}=r.useIntl(),i=o,n=e.computed(()=>i.title??s({defaultMessage:"Something went wrong",id:"error_notification.default_error_message",description:"The default message to display"}));return(r,o)=>(e.openBlock(),e.createBlock(t._sfc_main,e.mergeProps({type:"danger",title:n.value},r.$attrs),null,16,["title"]))}});exports._sfc_main=o;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, renderSlot, createTextVNode, createCommentVNode } from "vue";
|
|
2
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
-
__name: "FormMessage",
|
|
4
|
-
props: {
|
|
5
|
-
message: {},
|
|
6
|
-
variant: { default: "error" },
|
|
7
|
-
capitalizeFirstLetter: { type: Boolean, default: true }
|
|
8
|
-
},
|
|
9
|
-
setup(__props) {
|
|
10
|
-
const props = __props;
|
|
11
|
-
const classNames = computed(() => {
|
|
12
|
-
let result = "text-xs";
|
|
13
|
-
if (props.variant === "default") {
|
|
14
|
-
result += " text-slate-400";
|
|
15
|
-
}
|
|
16
|
-
if (props.variant === "error") {
|
|
17
|
-
result += " text-red-600";
|
|
18
|
-
}
|
|
19
|
-
if (props.variant === "warning") {
|
|
20
|
-
result += " text-yellow-600";
|
|
21
|
-
}
|
|
22
|
-
if (props.capitalizeFirstLetter) {
|
|
23
|
-
result += " first-letter:capitalize";
|
|
24
|
-
}
|
|
25
|
-
return result;
|
|
26
|
-
});
|
|
27
|
-
return (_ctx, _cache) => {
|
|
28
|
-
return typeof __props.message === "object" && !("value" in __props.message) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.message, ({ $uid, $message }) => {
|
|
29
|
-
return openBlock(), createElementBlock("p", {
|
|
30
|
-
key: $uid,
|
|
31
|
-
class: normalizeClass(classNames.value)
|
|
32
|
-
}, toDisplayString($message), 3);
|
|
33
|
-
}), 128)) : __props.message || _ctx.$slots.default ? (openBlock(), createElementBlock("p", {
|
|
34
|
-
key: 1,
|
|
35
|
-
class: normalizeClass(classNames.value)
|
|
36
|
-
}, [
|
|
37
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
38
|
-
createTextVNode(toDisplayString(__props.message), 1)
|
|
39
|
-
])
|
|
40
|
-
], 2)) : createCommentVNode("", true);
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
export {
|
|
45
|
-
_sfc_main as _
|
|
46
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("vue"),t=e.defineComponent({__name:"FormMessage",props:{message:{},variant:{default:"error"},capitalizeFirstLetter:{type:Boolean,default:!0}},setup(t){const a=t,s=e.computed(()=>{let e="text-xs";return"default"===a.variant&&(e+=" text-slate-400"),"error"===a.variant&&(e+=" text-red-600"),"warning"===a.variant&&(e+=" text-yellow-600"),a.capitalizeFirstLetter&&(e+=" first-letter:capitalize"),e});return(a,r)=>"object"!=typeof t.message||"value"in t.message?t.message||a.$slots.default?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(s.value)},[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.message),1)])],2)):e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.message,({$uid:t,$message:a})=>(e.openBlock(),e.createElementBlock("p",{key:t,class:e.normalizeClass(s.value)},e.toDisplayString(a),3))),128))}});exports._sfc_main=t;
|