@cling-se/widget 0.17.0 → 1.0.0-beta.2
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/AddClientCallout-e8d19R3f.js +101 -0
- package/dist/AnswerModal-BGvB8IVV.js +3291 -0
- package/dist/AttachmentItem-CkHbAm4l.js +171 -0
- package/dist/BaseUpload-BiJBcWRu.js +2472 -0
- package/dist/BlockMedia-CW5wgipC.js +103 -0
- package/dist/CCallout-Cy2eeIYd.js +104 -0
- package/dist/{CCurrencyDropdown-C2rXt2cJ.js → CCurrencyDropdown-DE_3CTjm.js} +91 -53
- package/dist/CDropdownItem-Dmq5gYzA.js +751 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-D_U9coAY.js +292 -0
- package/dist/{CPhoneFormat-C8VPsiK6.js → CPhoneFormat-BS2nP9kc.js} +13 -21
- package/dist/CPhoneInput-Bf6329PO.js +207 -0
- package/dist/CPriceInput-d1yjuMQr.js +140 -0
- package/dist/CSelect-DgnT07Hk.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-Ckl--dyv.js +51 -0
- package/dist/ClientAutocomplete-9JzGcO9O.js +532 -0
- package/dist/ClientModal-BzWQtWSZ.js +1181 -0
- package/dist/ColorPicker-BvoFN8nu.js +1408 -0
- package/dist/CompanyModal-Bp4V_az9.js +250 -0
- package/dist/ContentWrapper-CuH6xKmo.js +265 -0
- package/dist/CoverBlockSettings-BA5L0Zee.js +861 -0
- package/dist/DocAnswer-BcNA_KEg.js +33 -0
- package/dist/DocDetails-CStEwWnU.js +448 -0
- package/dist/DocForm-BOoILf5E.js +6748 -0
- package/dist/DocFormSend-CQIf-HJY.js +171 -0
- package/dist/DocLinks-BRX5QzNe.js +36 -0
- package/dist/DocModalBase-D72yWj-x.js +29 -0
- package/dist/DocPrint-BI1LXUPE.js +399 -0
- package/dist/DocReceipt-DaZ4V76p.js +341 -0
- package/dist/DocSendReminder-DKGZlo7s.js +181 -0
- package/dist/DocTextEditor-Dm-cTZpA.js +19413 -0
- package/dist/DocTimeline-DCwofzuk.js +537 -0
- package/dist/DocumentClient-vJdxCB53.js +90 -0
- package/dist/DocumentLayout-CKSi42ev.js +1368 -0
- package/dist/DocumentLogotype-DbQlvQ-y.js +162 -0
- package/dist/DocumentVoided-CRX2WxWO.js +33 -0
- package/dist/EmbedInput-B-oeC4Wy.js +157 -0
- package/dist/EmbedSettings-B9Yka2yB.js +103 -0
- package/dist/ErrorCallout-B_ygH33E.js +34 -0
- package/dist/FilePreviewModal-Bf3ELTow.js +202 -0
- package/dist/Flag-BwTgCNHO.js +41 -0
- package/dist/HeaderSettings-DvC7nlyY.js +720 -0
- package/dist/ImageSelectModal-D3sP3lhR.js +119 -0
- package/dist/ImageUploadWrapper-RWNa-yIq.js +1585 -0
- package/dist/Index-0_3ULrWX.js +126 -0
- package/dist/Index-4NPe0sfX.js +629 -0
- package/dist/Index-B1uA0FF6.js +4 -0
- package/dist/Index-BBkCYm2q.js +201 -0
- package/dist/{Index-LzN6dktq.js → Index-BBwvo7S9.js} +10 -18
- package/dist/Index-BEMlsYwJ.js +68 -0
- package/dist/Index-BRBhJ6kz.js +21 -0
- package/dist/{Index-BPUYpfLJ.js → Index-BTFmHjUt.js} +47 -60
- package/dist/Index-BcUNnxLC.js +1098 -0
- package/dist/Index-Bo6ExBUL.js +93 -0
- package/dist/Index-BvMPCgdH.js +102 -0
- package/dist/Index-Bx5TOI9k.js +74 -0
- package/dist/Index-C7GZS8EI.js +16 -0
- package/dist/Index-CNWhm07R.js +25 -0
- package/dist/{Index-BUK-1yVR.js → Index-CQpznMKV.js} +9 -17
- package/dist/Index-CRzsnIij.js +159 -0
- package/dist/Index-CeSG1C41.js +140 -0
- package/dist/Index-CjfjdZj5.js +52 -0
- package/dist/Index-CskKmZpd.js +363 -0
- package/dist/Index-D5qwbCo1.js +28 -0
- package/dist/Index-D8Ae1Txt.js +228 -0
- package/dist/Index-DE8aenDB.js +3452 -0
- package/dist/Index-DI5EB5Rt.js +39 -0
- package/dist/Index-DaV57YPP.js +163 -0
- package/dist/Index-DbwkmoyM.js +38 -0
- package/dist/Index-Df9skok6.js +70 -0
- package/dist/{Index-BHJGfHm9.js → Index-DfLLA0ij.js} +313 -206
- package/dist/Index-Dw1CO5F9.js +76 -0
- package/dist/Index-PZXyOoVb.js +87 -0
- package/dist/{Index-BioOegOO.js → Index-ZUnH-BHj.js} +10 -18
- package/dist/Index-cjKGSiDi.js +136 -0
- package/dist/Index-m-goRuKD.js +49 -0
- package/dist/Index-rGeWbLcB.js +47 -0
- package/dist/Index-vrljNp6G.js +28 -0
- package/dist/Index.vue_vue_type_script_lang-aeVuChGF.js +671 -0
- package/dist/InputToggleRow-v6qAWPg6.js +99 -0
- package/dist/ManualPopover-BONBJIUA.js +57 -0
- package/dist/MediaWrapper-CXb2UGd9.js +18 -0
- package/dist/{NotBindingText-CM3FN0A6.js → NotBindingText-BqESO13N.js} +13 -17
- package/dist/PackageGroup-AIysVmyh.js +1058 -0
- package/dist/PdfTerms-BlhHdTu3.js +34 -0
- package/dist/PdfViewer-DwZ1rwlN.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6NNUTz0.js +17 -0
- package/dist/PriceHeader-C4XhnoA3.js +488 -0
- package/dist/SearchApi-B7lXgUY6.js +137 -0
- package/dist/SendForm-BcD0xSvB.js +7031 -0
- package/dist/Setup-C2qaYDei.js +47 -0
- package/dist/{SmartList-DhhjSWLO.js → SmartList-DqG7Q5t7.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-CzMbr8AX.js +1303 -0
- package/dist/{TermsSettings-BEQwmkFH.js → TermsSettings-BOCONyM4.js} +169 -56
- package/dist/ThemeColorRow-sjGdMzGN.js +108 -0
- package/dist/ToggleBinding-7oq_oXPt.js +44 -0
- package/dist/UploadModal-C_X2NjVY.js +134 -0
- package/dist/VideoPlayerInput-BsUcmpl4.js +135 -0
- package/dist/VideoPlayerSettings-BXMmxaZQ.js +78 -0
- package/dist/VideoSelectModal-CW0OweCw.js +217 -0
- package/dist/{anime.es-BrPTThYb.js → anime.es-gdcpA-eY.js} +1 -2
- package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
- package/dist/{debounce-D0hKNU85.js → debounce-DNl99Gyo.js} +10 -10
- package/dist/dom-CkTGWrfu.js +69 -0
- package/dist/{focusDrawerMixin-C_aTLmK0.js → focusDrawerMixin-BwcErMDY.js} +1 -1
- package/dist/{formDrawerState-Da4mcbab.js → formDrawerState-DaurePnd.js} +2 -2
- package/dist/helpers-CPW--XIz.js +44 -0
- package/dist/index-BjiGCJPI.js +149 -0
- package/dist/index-CFNv6OvX.js +188 -0
- package/dist/index-Cx71On5Z.js +508 -0
- package/dist/index-DKMxIBz_.js +270 -0
- package/dist/index-DKf5SGLD.js +125 -0
- package/dist/index-E32WgUp9.js +3525 -0
- package/dist/index-kp-GC5I0.js +513 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +285 -1485
- package/dist/{main-BgzLHIoo.js → main-Cb-nyil1.js} +41414 -42507
- package/dist/mapFormMixin-D3BihYWW.js +1544 -0
- package/dist/omit--YYr41Xp.js +31 -0
- package/dist/{publicSenderState-DB4BHByV.js → publicSenderState-CdRW_Wwp.js} +4 -4
- package/dist/splitpanes-D-ThFkeR.js +342 -0
- package/dist/style.css +1 -4
- package/dist/template-BvaNnq-g.js +1493 -0
- package/dist/{throttle-DT2UVOqm.js → throttle-D-bUGaVh.js} +2 -2
- package/dist/tippy.esm-BmKNqohP.js +1994 -0
- package/dist/useTermsModal-Dhf6_eYb.js +87 -0
- package/dist/{utils-nos8CB1L.js → utils-CBPcYdLv.js} +8 -11
- package/dist/validation-DOcUOoMe.js +40 -0
- package/package.json +18 -21
- package/dist/AddClientCallout-BJzBdba1.js +0 -48
- package/dist/AnswerModal-frHq1g4s.js +0 -3874
- package/dist/AttachmentItem-BaN0OrEV.js +0 -85
- package/dist/BaseDatePicker-B-AfdrSb.js +0 -3187
- package/dist/BaseUpload-CY3lTcte.js +0 -1977
- package/dist/BlockMedia-Bb5wQIDg.js +0 -76
- package/dist/CCallout-5quI6yyk.js +0 -58
- package/dist/CDropdownItem-CaoSQX6X.js +0 -640
- package/dist/CFormField-Dd2Y71JG.js +0 -240
- package/dist/CPhoneInput-BU1t6eo_.js +0 -138
- package/dist/CPriceInput-pv2aIVkH.js +0 -116
- package/dist/CSelect-CrM45B7V.js +0 -91
- package/dist/CSkeleton-BkvONMqL.js +0 -55
- package/dist/ClientAutocomplete-BRXIKQSk.js +0 -438
- package/dist/ClientModal-CvHAptV2.js +0 -666
- package/dist/ColorPicker-RgoXRrud.js +0 -2879
- package/dist/CompanyModal-OL4bD9Gk.js +0 -147
- package/dist/ContentWrapper-8HduCnR4.js +0 -190
- package/dist/CoverBlockSettings-DUv8AcdX.js +0 -659
- package/dist/DocAnswer-DiyFfpT2.js +0 -36
- package/dist/DocDetails-BxNRfBnK.js +0 -263
- package/dist/DocForm-MGp-o0pu.js +0 -5017
- package/dist/DocFormSend-q_QuVCqh.js +0 -146
- package/dist/DocLinks-DGDdp30U.js +0 -38
- package/dist/DocModalBase-qG4RqwBn.js +0 -28
- package/dist/DocPrint-Cln3kt0g.js +0 -240
- package/dist/DocReceipt-nbsJ-ukZ.js +0 -217
- package/dist/DocSendReminder-B3qdqduf.js +0 -140
- package/dist/DocTextEditor-CQDnjnRY.js +0 -17193
- package/dist/DocTimeline-CgKHoDcG.js +0 -485
- package/dist/DocumentClient-UZlnIlz5.js +0 -136
- package/dist/DocumentLayout-Dvr4zgyF.js +0 -4880
- package/dist/DocumentLogotype-mAVgMRHr.js +0 -92
- package/dist/DocumentVoided-BXYNrf_6.js +0 -25
- package/dist/EmbedInput-YRUrw3c6.js +0 -117
- package/dist/EmbedSettings-DvRreF7H.js +0 -74
- package/dist/ErrorCallout-DVknpLVY.js +0 -27
- package/dist/FilePreviewModal-DC56FaGy.js +0 -81
- package/dist/Flag-D5iZLESg.js +0 -46
- package/dist/HeaderSettings-DXZnZL7A.js +0 -440
- package/dist/ImageSelectModal-Bu4_xZga.js +0 -86
- package/dist/ImageUploadWrapper-CtZhkAm1.js +0 -1604
- package/dist/Index-B1dJO6Bk.js +0 -54
- package/dist/Index-B3pz1coY.js +0 -150
- package/dist/Index-BHgW8EHW.js +0 -2446
- package/dist/Index-BNucs2O-.js +0 -154
- package/dist/Index-BW-EtZ1z.js +0 -55
- package/dist/Index-BjKACpun.js +0 -66
- package/dist/Index-C94BL4uU.js +0 -294
- package/dist/Index-CB57haU8.js +0 -58
- package/dist/Index-CP17iXT6.js +0 -25
- package/dist/Index-CUSbvjoD.js +0 -62
- package/dist/Index-CVnD6jo5.js +0 -25
- package/dist/Index-Ci5zdPeT.js +0 -28
- package/dist/Index-CikqSMjb.js +0 -41
- package/dist/Index-CxO4tJ3U.js +0 -26
- package/dist/Index-D4J4BpHd.js +0 -230
- package/dist/Index-DAQQQlut.js +0 -754
- package/dist/Index-DNxSR72J.js +0 -73
- package/dist/Index-DPuKRwmu.js +0 -41
- package/dist/Index-DSy8QG8T.js +0 -32
- package/dist/Index-DX6_D-J-.js +0 -77
- package/dist/Index-Dk0KaIKg.js +0 -643
- package/dist/Index-Hkzoh9QR.js +0 -24
- package/dist/Index-KsHJxWAa.js +0 -94
- package/dist/Index-TtItTuv6.js +0 -33
- package/dist/Index-YAD39Qvg.js +0 -146
- package/dist/Index-eh909lAz.js +0 -107
- package/dist/Index-otowKI_C.js +0 -56
- package/dist/Index-t_oVV8Rc.js +0 -84
- package/dist/Index-vG96oEXZ.js +0 -144
- package/dist/InputToggleRow-CcqJDguN.js +0 -57
- package/dist/ManualPopover-BE2IN-XU.js +0 -60
- package/dist/MediaWrapper-lnGUFiyc.js +0 -23
- package/dist/PackageGroup-BsmxOMLW.js +0 -704
- package/dist/PdfTerms-BgYwZoAZ.js +0 -31
- package/dist/PdfViewer-C0lDpjte.js +0 -383
- package/dist/PlainHtml-5YwYVj1v.js +0 -27
- package/dist/PriceHeader-CxqhpGS-.js +0 -338
- package/dist/SearchApi-BndaIbri.js +0 -161
- package/dist/SendForm-D7U9fG-5.js +0 -1023
- package/dist/Setup-CmAK2_ZT.js +0 -50
- package/dist/ThemeColorRow-BlnhzebY.js +0 -69
- package/dist/ToggleBinding-t_58JFya.js +0 -42
- package/dist/UploadModal-T-WpYNsN.js +0 -95
- package/dist/VideoPlayerInput-DKHKjMgX.js +0 -97
- package/dist/VideoPlayerSettings-DDMlUvSt.js +0 -61
- package/dist/VideoSelectModal-B9bbP0dd.js +0 -104
- package/dist/answerDocumentMixin-DXI_E5Kx.js +0 -51
- package/dist/dom-CWsqMElk.js +0 -71
- package/dist/formValidationMixin-WZ2lGndu.js +0 -49
- package/dist/index-B2l57ilt.js +0 -102
- package/dist/index-COKDjmM2.js +0 -167
- package/dist/index-HtKGcIng.js +0 -2700
- package/dist/index-LQ7NztTt.js +0 -81
- package/dist/index-fx5gR8fM.js +0 -351
- package/dist/index-zXXJrTvv.js +0 -492
- package/dist/mapFormMixin-CQgSN7dv.js +0 -3028
- package/dist/omit-ScS7B6c5.js +0 -31
- package/dist/simplebar.min-B0cB_p8g.js +0 -71
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/tippy.esm-CR89mtdY.js +0 -1805
- package/dist/vuedraggable.umd-CkXXkt1b.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
import { n as i, aa as l } from "./main-BgzLHIoo.js";
|
|
2
|
-
const n = {
|
|
3
|
-
name: "CFieldBody",
|
|
4
|
-
props: {
|
|
5
|
-
message: {
|
|
6
|
-
type: String,
|
|
7
|
-
default: ""
|
|
8
|
-
},
|
|
9
|
-
type: {
|
|
10
|
-
type: [String, Object],
|
|
11
|
-
default: ""
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
render(s) {
|
|
15
|
-
return s(
|
|
16
|
-
"div",
|
|
17
|
-
{ attrs: { class: "field-body" } },
|
|
18
|
-
this.$slots.default.map((e) => e.tag ? this.message ? s(
|
|
19
|
-
"c-field",
|
|
20
|
-
{ attrs: { message: this.message, type: this.type } },
|
|
21
|
-
[e]
|
|
22
|
-
) : s("c-field", { attrs: { type: this.type } }, [
|
|
23
|
-
e
|
|
24
|
-
]) : e)
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
}, r = null, o = null;
|
|
28
|
-
var u = /* @__PURE__ */ i(
|
|
29
|
-
n,
|
|
30
|
-
r,
|
|
31
|
-
o,
|
|
32
|
-
!1,
|
|
33
|
-
null,
|
|
34
|
-
null
|
|
35
|
-
);
|
|
36
|
-
const d = u.exports, p = {
|
|
37
|
-
name: "CField",
|
|
38
|
-
components: {
|
|
39
|
-
CFieldBody: d
|
|
40
|
-
},
|
|
41
|
-
props: {
|
|
42
|
-
type: {
|
|
43
|
-
type: [String, Object],
|
|
44
|
-
default: ""
|
|
45
|
-
},
|
|
46
|
-
label: {
|
|
47
|
-
type: String,
|
|
48
|
-
default: ""
|
|
49
|
-
},
|
|
50
|
-
labelFor: {
|
|
51
|
-
type: String,
|
|
52
|
-
default: ""
|
|
53
|
-
},
|
|
54
|
-
message: {
|
|
55
|
-
type: [String, Array, Object],
|
|
56
|
-
default: ""
|
|
57
|
-
},
|
|
58
|
-
grouped: Boolean,
|
|
59
|
-
groupMultiline: Boolean,
|
|
60
|
-
position: {
|
|
61
|
-
type: String,
|
|
62
|
-
default: ""
|
|
63
|
-
},
|
|
64
|
-
expanded: Boolean,
|
|
65
|
-
horizontal: Boolean,
|
|
66
|
-
addons: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: !0
|
|
69
|
-
},
|
|
70
|
-
customClass: {
|
|
71
|
-
type: String,
|
|
72
|
-
default: ""
|
|
73
|
-
},
|
|
74
|
-
labelPosition: {
|
|
75
|
-
type: String,
|
|
76
|
-
default: () => "top"
|
|
77
|
-
// config.defaultFieldLabelPosition,
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
data() {
|
|
81
|
-
return {
|
|
82
|
-
newType: this.type,
|
|
83
|
-
newMessage: this.message,
|
|
84
|
-
fieldLabelSize: null,
|
|
85
|
-
_isField: !0
|
|
86
|
-
// Used internally by Input and Select
|
|
87
|
-
};
|
|
88
|
-
},
|
|
89
|
-
computed: {
|
|
90
|
-
rootClasses() {
|
|
91
|
-
return [
|
|
92
|
-
this.newPosition,
|
|
93
|
-
{
|
|
94
|
-
"is-expanded": this.expanded,
|
|
95
|
-
"is-grouped-multiline": this.groupMultiline,
|
|
96
|
-
"is-horizontal": this.horizontal,
|
|
97
|
-
"is-floating-in-label": this.hasLabel && !this.horizontal && this.labelPosition === "inside",
|
|
98
|
-
"is-floating-label": this.hasLabel && !this.horizontal && this.labelPosition === "on-border"
|
|
99
|
-
},
|
|
100
|
-
this.numberInputClasses
|
|
101
|
-
];
|
|
102
|
-
},
|
|
103
|
-
/**
|
|
104
|
-
* Correct Bulma class for the side of the addon or group.
|
|
105
|
-
*
|
|
106
|
-
* This is not kept like the others (is-small, etc.),
|
|
107
|
-
* because since 'has-addons' is set automatically it
|
|
108
|
-
* doesn't make sense to teach users what addons are exactly.
|
|
109
|
-
*/
|
|
110
|
-
// eslint-disable-next-line vue/return-in-computed-property
|
|
111
|
-
newPosition() {
|
|
112
|
-
if (this.position === void 0)
|
|
113
|
-
return;
|
|
114
|
-
const s = this.position.split("-");
|
|
115
|
-
if (s.length < 1)
|
|
116
|
-
return;
|
|
117
|
-
const e = this.grouped ? "is-grouped-" : "has-addons-";
|
|
118
|
-
if (this.position)
|
|
119
|
-
return e + s[1];
|
|
120
|
-
},
|
|
121
|
-
/**
|
|
122
|
-
* Formatted message in case it's an array
|
|
123
|
-
* (each element is separated by <br> tag)
|
|
124
|
-
*/
|
|
125
|
-
formattedMessage() {
|
|
126
|
-
if (typeof this.newMessage == "string")
|
|
127
|
-
return this.newMessage;
|
|
128
|
-
const s = [];
|
|
129
|
-
if (Array.isArray(this.newMessage))
|
|
130
|
-
this.newMessage.forEach((e) => {
|
|
131
|
-
if (typeof e == "string")
|
|
132
|
-
s.push(e);
|
|
133
|
-
else
|
|
134
|
-
for (const t in e)
|
|
135
|
-
e[t] && s.push(t);
|
|
136
|
-
});
|
|
137
|
-
else
|
|
138
|
-
for (const e in this.newMessage)
|
|
139
|
-
this.newMessage[e] && s.push(e);
|
|
140
|
-
return s.filter((e) => {
|
|
141
|
-
if (e)
|
|
142
|
-
return e;
|
|
143
|
-
}).join(" <br> ");
|
|
144
|
-
},
|
|
145
|
-
hasLabel() {
|
|
146
|
-
return this.label || this.$slots.label;
|
|
147
|
-
},
|
|
148
|
-
numberInputClasses() {
|
|
149
|
-
if (this.$slots.default) {
|
|
150
|
-
const s = this.$slots.default.filter(
|
|
151
|
-
(e) => e.tag && e.tag.toLowerCase().indexOf("numberinput") >= 0
|
|
152
|
-
)[0];
|
|
153
|
-
if (s) {
|
|
154
|
-
const e = ["has-numberinput"], t = s.componentOptions.propsData.controlsPosition, a = s.componentOptions.propsData.size;
|
|
155
|
-
return t && e.push(`has-numberinput-${t}`), a && e.push(`has-numberinput-${a}`), e;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
return null;
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
watch: {
|
|
162
|
-
/**
|
|
163
|
-
* Set internal type when prop change.
|
|
164
|
-
*/
|
|
165
|
-
type(s) {
|
|
166
|
-
this.newType = s;
|
|
167
|
-
},
|
|
168
|
-
/**
|
|
169
|
-
* Set internal message when prop change.
|
|
170
|
-
*/
|
|
171
|
-
message(s) {
|
|
172
|
-
this.newMessage = s;
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
mounted() {
|
|
176
|
-
this.horizontal && this.$el.querySelectorAll(
|
|
177
|
-
".input, .select, .button, .textarea, .c-slider"
|
|
178
|
-
).length > 0 && (this.fieldLabelSize = "is-normal");
|
|
179
|
-
},
|
|
180
|
-
methods: {
|
|
181
|
-
/**
|
|
182
|
-
* Field has addons if there are more than one slot
|
|
183
|
-
* (element / component) in the Field.
|
|
184
|
-
* Or is grouped when prop is set.
|
|
185
|
-
* Is a method to be called when component re-render.
|
|
186
|
-
*/
|
|
187
|
-
fieldType() {
|
|
188
|
-
if (this.grouped)
|
|
189
|
-
return "is-grouped";
|
|
190
|
-
let s = 0;
|
|
191
|
-
if (this.$slots.default && (s = this.$slots.default.reduce(
|
|
192
|
-
(e, t) => t.tag ? e + 1 : e,
|
|
193
|
-
0
|
|
194
|
-
)), s > 1 && this.addons && !this.horizontal)
|
|
195
|
-
return "has-addons";
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
var f = function() {
|
|
200
|
-
var e = this, t = e._self._c;
|
|
201
|
-
return t("div", { staticClass: "field", class: [e.rootClasses, e.fieldType()] }, [e.horizontal ? t("div", { staticClass: "field-label", class: [e.customClass, e.fieldLabelSize] }, [e.hasLabel ? t("label", { staticClass: "label truncate-text", class: e.customClass, attrs: { for: e.labelFor } }, [e.$slots.label ? e._t("label") : [e._v(e._s(e.label))]], 2) : e._e()]) : [e.hasLabel ? t("label", { staticClass: "label truncate-text", class: e.customClass, attrs: { for: e.labelFor } }, [e.$slots.label ? e._t("label") : [e._v(e._s(e.label))]], 2) : e._e()], e.horizontal ? t("CFieldBody", { attrs: { message: e.newMessage ? e.formattedMessage : "", type: e.newType } }, [e._t("default")], 2) : [e._t("default")], e.newMessage && !e.horizontal ? t("p", { staticClass: "help", class: e.newType, domProps: { innerHTML: e._s(e.formattedMessage) } }) : e._e()], 2);
|
|
202
|
-
}, c = [], h = /* @__PURE__ */ i(
|
|
203
|
-
p,
|
|
204
|
-
f,
|
|
205
|
-
c,
|
|
206
|
-
!1,
|
|
207
|
-
null,
|
|
208
|
-
null
|
|
209
|
-
);
|
|
210
|
-
const _ = h.exports, g = {
|
|
211
|
-
name: "CFormField",
|
|
212
|
-
components: {
|
|
213
|
-
CField: _
|
|
214
|
-
},
|
|
215
|
-
extends: l,
|
|
216
|
-
computed: {
|
|
217
|
-
type() {
|
|
218
|
-
return this.hasErrors ? "is-danger" : this.isValid ? "is-success" : null;
|
|
219
|
-
},
|
|
220
|
-
customClass() {
|
|
221
|
-
return this.hasErrors ? "text-red-500" : this.isValid ? "text-green-500" : null;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
};
|
|
225
|
-
var m = function() {
|
|
226
|
-
var e = this, t = e._self._c;
|
|
227
|
-
return t("CField", e._b({ attrs: { label: e.label, "custom-class": e.customClass, type: e.type, message: e.firstErrorMessage } }, "CField", { ...e.$attrs, ...e.$props }, !1), [e._t("default")], 2);
|
|
228
|
-
}, b = [], y = /* @__PURE__ */ i(
|
|
229
|
-
g,
|
|
230
|
-
m,
|
|
231
|
-
b,
|
|
232
|
-
!1,
|
|
233
|
-
null,
|
|
234
|
-
null
|
|
235
|
-
);
|
|
236
|
-
const $ = y.exports;
|
|
237
|
-
export {
|
|
238
|
-
$ as C,
|
|
239
|
-
_ as a
|
|
240
|
-
};
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { n as o, j as u, k as c } from "./main-BgzLHIoo.js";
|
|
2
|
-
import { C as d, a as h } from "./CDropdownItem-CaoSQX6X.js";
|
|
3
|
-
import { a as p } from "./CFormField-Dd2Y71JG.js";
|
|
4
|
-
import { F as f } from "./Flag-D5iZLESg.js";
|
|
5
|
-
import { S as g } from "./SmartList-DhhjSWLO.js";
|
|
6
|
-
import { r as n } from "./regions-BdZt9Srn.js";
|
|
7
|
-
const m = {
|
|
8
|
-
name: "CPhoneInput",
|
|
9
|
-
components: {
|
|
10
|
-
Flag: f,
|
|
11
|
-
CInput: u,
|
|
12
|
-
CDropdown: d,
|
|
13
|
-
CDropdownItem: h,
|
|
14
|
-
CButton: c,
|
|
15
|
-
CField: p,
|
|
16
|
-
SmartList: g
|
|
17
|
-
},
|
|
18
|
-
props: {
|
|
19
|
-
value: {
|
|
20
|
-
type: [String, Number],
|
|
21
|
-
default: ""
|
|
22
|
-
},
|
|
23
|
-
region: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: ""
|
|
26
|
-
},
|
|
27
|
-
// Region to fallback to if prefix is not found in value
|
|
28
|
-
defaultRegion: {
|
|
29
|
-
type: String,
|
|
30
|
-
required: !0
|
|
31
|
-
},
|
|
32
|
-
label: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: ""
|
|
35
|
-
},
|
|
36
|
-
labelPosition: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: ""
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
data() {
|
|
42
|
-
return {
|
|
43
|
-
internalPrefix: null,
|
|
44
|
-
// Used to remember prefix when value is changed to empty
|
|
45
|
-
searchQuery: ""
|
|
46
|
-
};
|
|
47
|
-
},
|
|
48
|
-
computed: {
|
|
49
|
-
defaultPrefix() {
|
|
50
|
-
return n[this.internalRegion].callingCode;
|
|
51
|
-
},
|
|
52
|
-
currentRegion() {
|
|
53
|
-
return this.getRegionByCallingCode(this.prefix);
|
|
54
|
-
},
|
|
55
|
-
internalRegion: {
|
|
56
|
-
get() {
|
|
57
|
-
if (this.region)
|
|
58
|
-
return this.region;
|
|
59
|
-
if (this.value) {
|
|
60
|
-
const e = (Object.keys(n) || []).find(
|
|
61
|
-
(t) => n[t].callingCode && this.value && this.value.startsWith(n[t].callingCode)
|
|
62
|
-
);
|
|
63
|
-
if (e)
|
|
64
|
-
return e;
|
|
65
|
-
}
|
|
66
|
-
return this.internalPrefix ? this.getRegionByCallingCode(this.internalPrefix) : this.defaultRegion;
|
|
67
|
-
},
|
|
68
|
-
set(e) {
|
|
69
|
-
this.$emit("update:region", e), this.updateValue({ prefix: n[e].callingCode });
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
prefix() {
|
|
73
|
-
if (!this.value)
|
|
74
|
-
return this.internalPrefix || this.defaultPrefix;
|
|
75
|
-
const e = (Object.keys(n) || []).find(
|
|
76
|
-
(t) => n[t].callingCode && this.value && this.value.startsWith(n[t].callingCode)
|
|
77
|
-
);
|
|
78
|
-
return e ? n[e].callingCode : this.defaultPrefix;
|
|
79
|
-
},
|
|
80
|
-
phone: {
|
|
81
|
-
get() {
|
|
82
|
-
return this.prefix && this.value && this.value.startsWith(this.prefix) ? this.value.substring(this.prefix.length) : this.value;
|
|
83
|
-
},
|
|
84
|
-
set(e) {
|
|
85
|
-
this.updateValue({ phone: e });
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
sortedRegions() {
|
|
89
|
-
return (Object.keys(n) || []).map((e) => ({
|
|
90
|
-
key: e,
|
|
91
|
-
title: `${n[e].name} (${e})`,
|
|
92
|
-
callingCode: n[e].callingCode
|
|
93
|
-
})).sort((e, t) => e.title.localeCompare(t.title));
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
methods: {
|
|
97
|
-
getRegionByCallingCode(e) {
|
|
98
|
-
return e ? (Object.keys(n) || []).find(
|
|
99
|
-
(i) => e === n[i].callingCode
|
|
100
|
-
) : null;
|
|
101
|
-
},
|
|
102
|
-
updateValue({ prefix: e, phone: t }) {
|
|
103
|
-
const i = e !== void 0 ? e : this.prefix || "", s = t !== void 0 ? t : this.phone || "", r = `${i}${s}`;
|
|
104
|
-
r !== i ? (this.$emit("input", r), this.region || this.$emit("update:region", this.internalRegion), this.internalPrefix = null) : (this.internalPrefix = i, this.$emit("input", ""));
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
var C = function() {
|
|
109
|
-
var t = this, i = t._self._c;
|
|
110
|
-
return i("CField", { staticClass: "has-addons", attrs: { expanded: "" } }, [i("div", { staticClass: "control" }, [i("SmartList", { attrs: { query: t.searchQuery, items: t.sortedRegions }, scopedSlots: t._u([{ key: "default", fn: function({ items: s }) {
|
|
111
|
-
return [i("CDropdown", { staticClass: "control", staticStyle: { height: "100%" }, attrs: { size: t.$attrs.size, disabled: t.$attrs.disabled, "menu-styling": {
|
|
112
|
-
maxWidth: "300px"
|
|
113
|
-
}, scrollable: !0, position: "is-bottom-right", "max-height": "240px" }, scopedSlots: t._u([{ key: "trigger", fn: function() {
|
|
114
|
-
return [i("CButton", { staticStyle: { height: "100%" }, attrs: { size: t.$attrs.size, type: "none", pattern: "secondary" } }, [i("Flag", { staticStyle: { "margin-right": "0.35em" }, attrs: { region: t.internalRegion } }), t._v(" " + t._s(t.prefix) + " ")], 1)];
|
|
115
|
-
}, proxy: !0 }, { key: "header", fn: function() {
|
|
116
|
-
return [i("CInput", { staticStyle: { "margin-bottom": "0.25em" }, attrs: { placeholder: t.$t("_common:search"), filled: "" }, model: { value: t.searchQuery, callback: function(r) {
|
|
117
|
-
t.searchQuery = r;
|
|
118
|
-
}, expression: "searchQuery" } })];
|
|
119
|
-
}, proxy: !0 }], null, !0), model: { value: t.internalRegion, callback: function(r) {
|
|
120
|
-
t.internalRegion = r;
|
|
121
|
-
}, expression: "internalRegion" } }, t._l(s, function({ key: r, title: a, callingCode: l }) {
|
|
122
|
-
return i("CDropdownItem", { key: r, staticClass: "truncate-text", attrs: { value: r } }, [i("Flag", { staticStyle: { "margin-right": "0.75em", flex: "0 0 auto" }, attrs: { region: r, title: a } }), i("span", { staticClass: "truncate-text" }, [t._v(" " + t._s(a) + " (" + t._s(l) + ") ")])], 1);
|
|
123
|
-
}), 1)];
|
|
124
|
-
} }]) })], 1), i("CField", { staticClass: "control", attrs: { label: t.label, "label-position": t.labelPosition, expanded: "" } }, [i("CInput", t._b({ attrs: { size: t.$attrs.size, placeholder: t.$attrs.placeholder, type: "tel" }, model: { value: t.phone, callback: function(s) {
|
|
125
|
-
t.phone = s;
|
|
126
|
-
}, expression: "phone" } }, "CInput", { ...t.$attrs, ...t.$props }, !1))], 1)], 1);
|
|
127
|
-
}, y = [], x = /* @__PURE__ */ o(
|
|
128
|
-
m,
|
|
129
|
-
C,
|
|
130
|
-
y,
|
|
131
|
-
!1,
|
|
132
|
-
null,
|
|
133
|
-
null
|
|
134
|
-
);
|
|
135
|
-
const S = x.exports;
|
|
136
|
-
export {
|
|
137
|
-
S as C
|
|
138
|
-
};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { C as i } from "./CCurrencyDropdown-C2rXt2cJ.js";
|
|
2
|
-
import { n as s, j as u, r as a } from "./main-BgzLHIoo.js";
|
|
3
|
-
const o = {
|
|
4
|
-
name: "CPriceInput",
|
|
5
|
-
components: {
|
|
6
|
-
CInput: u,
|
|
7
|
-
CCurrencyDropdown: i
|
|
8
|
-
},
|
|
9
|
-
props: {
|
|
10
|
-
value: {
|
|
11
|
-
type: Number,
|
|
12
|
-
default: 0
|
|
13
|
-
},
|
|
14
|
-
currency: {
|
|
15
|
-
type: String,
|
|
16
|
-
required: !0
|
|
17
|
-
},
|
|
18
|
-
priceType: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: "fixed",
|
|
21
|
-
validator: (t) => ["fixed", "markup", "openAcc", "approx"].includes(t)
|
|
22
|
-
},
|
|
23
|
-
unitLabel: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: ""
|
|
26
|
-
},
|
|
27
|
-
isIncVat: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: !1
|
|
30
|
-
},
|
|
31
|
-
// Vat in percentage
|
|
32
|
-
vat: {
|
|
33
|
-
type: Number,
|
|
34
|
-
default: null
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
data() {
|
|
38
|
-
return {
|
|
39
|
-
isCurrencyDropdownOpen: !1
|
|
40
|
-
};
|
|
41
|
-
},
|
|
42
|
-
computed: {
|
|
43
|
-
internalValue: {
|
|
44
|
-
get() {
|
|
45
|
-
if (!Number.isNaN(parseFloat(this.value)) && Number.isFinite(this.value)) {
|
|
46
|
-
if (!this.value && !this.showZero)
|
|
47
|
-
return "";
|
|
48
|
-
let t = this.value;
|
|
49
|
-
return this.isIncVat && (t *= (100 + this.vat) / 100), Math.round(t) / 100;
|
|
50
|
-
}
|
|
51
|
-
return this.value;
|
|
52
|
-
},
|
|
53
|
-
set(t) {
|
|
54
|
-
let e = t;
|
|
55
|
-
e = t * 100, this.isIncVat && (e /= (100 + this.vat) / 100), e = Math.round(e), this.$emit("input", e);
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
internalCurrency: {
|
|
59
|
-
get() {
|
|
60
|
-
return this.currency;
|
|
61
|
-
},
|
|
62
|
-
set(t) {
|
|
63
|
-
this.$emit("update:currency", t);
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
suffixValue() {
|
|
67
|
-
const t = a(this.internalCurrency);
|
|
68
|
-
switch (this.priceType) {
|
|
69
|
-
case "openAcc":
|
|
70
|
-
return `${t}/${this.unitLabel || this.$t("_common:unitType.unit")}`;
|
|
71
|
-
case "markup":
|
|
72
|
-
return "%";
|
|
73
|
-
default:
|
|
74
|
-
return t;
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
showCurrencyDropdown() {
|
|
78
|
-
return !["markup"].includes(this.priceType);
|
|
79
|
-
},
|
|
80
|
-
eventListeners() {
|
|
81
|
-
return { ...this.$listeners, onInput: () => ({}), input: () => ({}) };
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
methods: {
|
|
85
|
-
focus() {
|
|
86
|
-
this.$refs.priceInput && typeof this.$refs.priceInput.focus == "function" && this.$refs.priceInput.focus();
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
var c = function() {
|
|
91
|
-
var e = this, r = e._self._c;
|
|
92
|
-
return r("CInput", e._g(e._b({ key: e.internalCurrency + e.priceType, ref: "priceInput", style: e.isCurrencyDropdownOpen && { zIndex: 99 }, attrs: { size: e.$attrs.size, placeholder: e.$attrs.placeholder, type: "number" }, scopedSlots: e._u([{ key: "prefix", fn: function() {
|
|
93
|
-
return [e.$slots.prefix ? r("div", [e._t("prefix")], 2) : e._e()];
|
|
94
|
-
}, proxy: !0 }, { key: "suffix", fn: function() {
|
|
95
|
-
return [e.$slots.suffix ? r("div", [e._t("suffix")], 2) : r("div", [e.showCurrencyDropdown ? r("CCurrencyDropdown", { on: { "active-change": function(n) {
|
|
96
|
-
e.isCurrencyDropdownOpen = n;
|
|
97
|
-
} }, scopedSlots: e._u([{ key: "default", fn: function({ selectedValue: n }) {
|
|
98
|
-
return [r("CButton", { staticClass: "is-thinner", staticStyle: { "padding-left": "0.5em", "padding-right": "0.5em", "border-radius": "0.25em" }, attrs: { size: e.$attrs.size, type: "none", pattern: "tertiary" } }, [e._v(" " + e._s(n) + " ")])];
|
|
99
|
-
} }], null, !1, 1723986040), model: { value: e.internalCurrency, callback: function(n) {
|
|
100
|
-
e.internalCurrency = n;
|
|
101
|
-
}, expression: "internalCurrency" } }) : r("div", [e._v(e._s(e.suffixValue))])], 1)];
|
|
102
|
-
}, proxy: !0 }], null, !0), model: { value: e.internalValue, callback: function(n) {
|
|
103
|
-
e.internalValue = n;
|
|
104
|
-
}, expression: "internalValue" } }, "CInput", { ...e.$attrs, ...e.$props }, !1), e.eventListeners));
|
|
105
|
-
}, p = [], l = /* @__PURE__ */ s(
|
|
106
|
-
o,
|
|
107
|
-
c,
|
|
108
|
-
p,
|
|
109
|
-
!1,
|
|
110
|
-
null,
|
|
111
|
-
null
|
|
112
|
-
);
|
|
113
|
-
const y = l.exports;
|
|
114
|
-
export {
|
|
115
|
-
y as C
|
|
116
|
-
};
|
package/dist/CSelect-CrM45B7V.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { n as r, F as c } from "./main-BgzLHIoo.js";
|
|
2
|
-
const u = {
|
|
3
|
-
name: "CSelect",
|
|
4
|
-
mixins: [c],
|
|
5
|
-
inheritAttrs: !1,
|
|
6
|
-
props: {
|
|
7
|
-
value: {
|
|
8
|
-
type: [String, Number, Boolean, Object, Array, Function],
|
|
9
|
-
default: null
|
|
10
|
-
},
|
|
11
|
-
placeholder: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: ""
|
|
14
|
-
},
|
|
15
|
-
multiple: Boolean,
|
|
16
|
-
selectClass: {
|
|
17
|
-
type: [String, Object, Array],
|
|
18
|
-
default: ""
|
|
19
|
-
},
|
|
20
|
-
nativeSize: {
|
|
21
|
-
type: [String, Number],
|
|
22
|
-
default: null
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
data() {
|
|
26
|
-
return {
|
|
27
|
-
selected: this.value,
|
|
28
|
-
_elementRef: "select"
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
computed: {
|
|
32
|
-
computedValue: {
|
|
33
|
-
get() {
|
|
34
|
-
return this.selected;
|
|
35
|
-
},
|
|
36
|
-
set(l) {
|
|
37
|
-
this.selected = l, this.$emit("input", l), !this.isValid && this.checkHtml5Validity();
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
spanClasses() {
|
|
41
|
-
return [
|
|
42
|
-
this.size,
|
|
43
|
-
this.statusType,
|
|
44
|
-
{
|
|
45
|
-
"is-fullwidth": this.expanded,
|
|
46
|
-
"is-loading": this.loading,
|
|
47
|
-
"is-multiple": this.multiple,
|
|
48
|
-
"is-rounded": this.rounded,
|
|
49
|
-
"is-empty": this.selected === null
|
|
50
|
-
}
|
|
51
|
-
];
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
watch: {
|
|
55
|
-
/**
|
|
56
|
-
* When v-model is changed:
|
|
57
|
-
* 1. Set the selected option.
|
|
58
|
-
* 2. If it's invalid, validate again.
|
|
59
|
-
*/
|
|
60
|
-
value(l) {
|
|
61
|
-
this.selected = l, !this.isValid && this.checkHtml5Validity();
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
var o = function() {
|
|
66
|
-
var e = this, i = e._self._c;
|
|
67
|
-
return i("div", { staticClass: "control", class: { "is-expanded": e.expanded, "has-icons-left": e.icon } }, [i("span", { staticClass: "select", class: e.spanClasses }, [i("select", e._b({ directives: [{ name: "model", rawName: "v-model", value: e.computedValue, expression: "computedValue" }], ref: "select", class: e.selectClass, attrs: { multiple: e.multiple, size: e.nativeSize }, on: { blur: function(t) {
|
|
68
|
-
e.$emit("blur", t) && e.checkHtml5Validity();
|
|
69
|
-
}, focus: function(t) {
|
|
70
|
-
return e.$emit("focus", t);
|
|
71
|
-
}, change: function(t) {
|
|
72
|
-
var a = Array.prototype.filter.call(t.target.options, function(s) {
|
|
73
|
-
return s.selected;
|
|
74
|
-
}).map(function(s) {
|
|
75
|
-
var n = "_value" in s ? s._value : s.value;
|
|
76
|
-
return n;
|
|
77
|
-
});
|
|
78
|
-
e.computedValue = t.target.multiple ? a : a[0];
|
|
79
|
-
} } }, "select", e.$attrs, !1), [e.placeholder && e.computedValue == null ? i("option", { attrs: { disabled: "", hidden: "" }, domProps: { value: null } }, [e._v(" " + e._s(e.placeholder) + " ")]) : e._e(), e._t("default")], 2)])]);
|
|
80
|
-
}, d = [], p = /* @__PURE__ */ r(
|
|
81
|
-
u,
|
|
82
|
-
o,
|
|
83
|
-
d,
|
|
84
|
-
!1,
|
|
85
|
-
null,
|
|
86
|
-
"23e48013"
|
|
87
|
-
);
|
|
88
|
-
const h = p.exports;
|
|
89
|
-
export {
|
|
90
|
-
h as C
|
|
91
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { u as m, w as y, x as u, y as h, n as C } from "./main-BgzLHIoo.js";
|
|
2
|
-
const k = /* @__PURE__ */ m({
|
|
3
|
-
__name: "CSkeleton",
|
|
4
|
-
props: {
|
|
5
|
-
active: { type: Boolean, default: !0 },
|
|
6
|
-
animated: { type: Boolean, default: !1 },
|
|
7
|
-
width: { default: "" },
|
|
8
|
-
height: { default: "" },
|
|
9
|
-
circle: { type: Boolean, default: !1 },
|
|
10
|
-
rounded: { type: Boolean, default: !0 },
|
|
11
|
-
count: { default: 1 },
|
|
12
|
-
hidden: { type: Boolean, default: !1 },
|
|
13
|
-
color: { default: "" }
|
|
14
|
-
},
|
|
15
|
-
setup(i) {
|
|
16
|
-
const t = i, {
|
|
17
|
-
active: s,
|
|
18
|
-
animated: e,
|
|
19
|
-
width: a,
|
|
20
|
-
height: l,
|
|
21
|
-
circle: c,
|
|
22
|
-
rounded: d,
|
|
23
|
-
count: r,
|
|
24
|
-
hidden: f,
|
|
25
|
-
color: n
|
|
26
|
-
} = y(t), v = u(() => ({
|
|
27
|
-
height: l.value === void 0 ? null : isNaN(Number(l.value)) ? l.value : `${l.value}px`,
|
|
28
|
-
width: a.value === void 0 ? null : isNaN(Number(a.value)) ? a.value : `${a.value}px`,
|
|
29
|
-
borderRadius: c.value ? "50%" : null,
|
|
30
|
-
background: n.value ? n.value : null
|
|
31
|
-
})), o = h(), _ = u(() => o.style), p = u(() => o.class);
|
|
32
|
-
return { __sfc: !0, props: t, active: s, animated: e, width: a, height: l, circle: c, rounded: d, count: r, hidden: f, color: n, itemStyle: v, attrs: o, staticStyle: _, staticClass: p };
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
var x = function() {
|
|
36
|
-
var t = this, s = t._self._c, e = t._self._setupProxy;
|
|
37
|
-
return e.active ? s("div", { class: [
|
|
38
|
-
"c-skeleton",
|
|
39
|
-
{ "is-animated": e.animated, "is-invisible": e.hidden },
|
|
40
|
-
e.staticClass
|
|
41
|
-
], style: e.staticStyle }, t._l(e.count, function(a) {
|
|
42
|
-
return s("div", { key: a, staticClass: "c-skeleton-item", class: { "is-rounded": e.rounded }, style: e.itemStyle });
|
|
43
|
-
}), 0) : t._e();
|
|
44
|
-
}, N = [], S = /* @__PURE__ */ C(
|
|
45
|
-
k,
|
|
46
|
-
x,
|
|
47
|
-
N,
|
|
48
|
-
!1,
|
|
49
|
-
null,
|
|
50
|
-
null
|
|
51
|
-
);
|
|
52
|
-
const B = S.exports;
|
|
53
|
-
export {
|
|
54
|
-
B as C
|
|
55
|
-
};
|