@cling-se/widget 0.19.3 → 0.19.5
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/CHANGELOG.md +18 -2
- package/dist/{AddClientCallout-DuuNDL4D.js → AddClientCallout-B3NbV9vX.js} +10 -10
- package/dist/{AnswerModal-D3EqaCFZ.js → AnswerModal-C_at-56v.js} +3 -3
- package/dist/{AttachmentItem-kRFxlzlC.js → AttachmentItem-C4kyomn3.js} +19 -19
- package/dist/{BaseUpload-BxYInU7o.js → BaseUpload-Z3O2bebR.js} +2 -2
- package/dist/{BlockMedia--73N_Of0.js → BlockMedia-BSGtFCsS.js} +14 -14
- package/dist/{CCallout-ChKgPAm2.js → CCallout-DRBCakh2.js} +2 -2
- package/dist/{CCurrencyDropdown-GcQqVqCs.js → CCurrencyDropdown-CyFge_fD.js} +10 -10
- package/dist/{CDropdownItem-CrGOya-D.js → CDropdownItem-BWmAQwpG.js} +20 -20
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-CyUMgjqE.js → CFormField.vue_vue_type_script_setup_true_lang-DzcNo15Q.js} +59 -59
- package/dist/{CPhoneFormat-d9r8v4kT.js → CPhoneFormat-D-BGsI3p.js} +1 -1
- package/dist/{CPhoneInput-DbDLU0AC.js → CPhoneInput-Dl7BSG8y.js} +34 -34
- package/dist/{CPriceInput-BqOw7bdS.js → CPriceInput-C8Os9b3V.js} +5 -5
- package/dist/{CSelect-BwpgSn0z.js → CSelect-DXAAKhB6.js} +6 -6
- package/dist/{CSkeleton.vue_vue_type_script_setup_true_lang-C3CzyV_p.js → CSkeleton.vue_vue_type_script_setup_true_lang-D_ZP_7FL.js} +1 -1
- package/dist/{ClientAutocomplete-CvpqyHTG.js → ClientAutocomplete-0XPP0tZr.js} +19 -19
- package/dist/{ClientModal-CYTMaWid.js → ClientModal-Ddv5YiOD.js} +24 -24
- package/dist/{ColorPicker-CEpFbxOm.js → ColorPicker-ClWlJZqh.js} +17 -17
- package/dist/{CompanyModal-BN3P5pxH.js → CompanyModal-CdisHhTQ.js} +10 -10
- package/dist/{ContentWrapper-CxL1K8Pf.js → ContentWrapper-BZ_ff5l9.js} +20 -22
- package/dist/{CoverBlockSettings-buQlTBr8.js → CoverBlockSettings-C3F4jTwa.js} +33 -33
- package/dist/{DocAnswer-DniRIWLM.js → DocAnswer-BkbWkje5.js} +2 -2
- package/dist/{DocDetails-DQlItuAy.js → DocDetails-DxUXsbDV.js} +57 -57
- package/dist/{DocForm-DPnYrMM6.js → DocForm-CABBteE8.js} +26 -26
- package/dist/{DocFormSend-DDWp03Z4.js → DocFormSend-xGIxXjxv.js} +2 -2
- package/dist/{DocLinks-B_WHyJXJ.js → DocLinks-D01zyA-z.js} +2 -2
- package/dist/{DocModalBase-DMoFbE_V.js → DocModalBase-DfrPL4tZ.js} +1 -1
- package/dist/{DocPrint-CJnCR4sj.js → DocPrint-BSKYDCQc.js} +11 -11
- package/dist/{DocReceipt-CLEzesSd.js → DocReceipt-D5Oqb1cC.js} +12 -12
- package/dist/{DocSendReminder-eVB0EpW3.js → DocSendReminder-IbCLg9tW.js} +13 -13
- package/dist/{DocTextEditor-DiiBwSqL.js → DocTextEditor-BVba4QPz.js} +8 -8
- package/dist/{DocTimeline-bTf4PXFt.js → DocTimeline-CaX19zwg.js} +19 -19
- package/dist/{DocumentClient-BliWFKWD.js → DocumentClient-DSQnO5KJ.js} +5 -5
- package/dist/{DocumentLayout-BYF8MkQ6.js → DocumentLayout-CkNcKcB_.js} +31 -31
- package/dist/{DocumentLogotype-CoAoOKFT.js → DocumentLogotype-DAVtl6S_.js} +4 -4
- package/dist/{DocumentVoided-BoE_3xZ-.js → DocumentVoided-DZYqqkrE.js} +1 -1
- package/dist/{EmbedInput-BY9Tk0Fn.js → EmbedInput-BpVkRhg5.js} +8 -8
- package/dist/{EmbedSettings-o4XPxFEg.js → EmbedSettings-BHjex6QD.js} +3 -3
- package/dist/{ErrorCallout-YB_Cq8zQ.js → ErrorCallout-B9TlMH-g.js} +1 -1
- package/dist/{FilePreviewModal-Bb88xu1a.js → FilePreviewModal-DP6yokyq.js} +13 -13
- package/dist/{Flag-BxyVrkyQ.js → Flag-D3GdVwWB.js} +1 -1
- package/dist/{HeaderSettings-bLIJeluc.js → HeaderSettings-sb4vPDsi.js} +35 -35
- package/dist/{ImageSelectModal-BvJoFbVg.js → ImageSelectModal-CicYONc-.js} +3 -3
- package/dist/{ImageUploadWrapper-Cg5PXmyH.js → ImageUploadWrapper-CLq06imX.js} +2 -2
- package/dist/{Index-DxOS1Bcc.js → Index--erm1oIh.js} +4 -4
- package/dist/{Index-7wOqPn5F.js → Index-0JuAv1tp.js} +16 -16
- package/dist/Index-0imHv6b4.js +52 -0
- package/dist/{Index-BfTkhsEB.js → Index-2jg0DL-m.js} +4 -4
- package/dist/{Index-8buSki3l.js → Index-6H0VT88W.js} +1 -1
- package/dist/{Index-BBIJa9tx.js → Index-AjcnSKQD.js} +19 -19
- package/dist/Index-B5zszB2v.js +4 -0
- package/dist/{Index-BHE3BADD.js → Index-BHvpY8xR.js} +2 -2
- package/dist/{Index-Y--RuSty.js → Index-BIrwUJlj.js} +12 -12
- package/dist/{Index-CKm-Ab2J.js → Index-BU2qksFA.js} +3 -3
- package/dist/{Index-DaDw8sm-.js → Index-BWTeXf8h.js} +4 -4
- package/dist/{Index-Cfuzo8uM.js → Index-Be0qeiZi.js} +10 -10
- package/dist/{Index-yczwn2__.js → Index-BePivEDQ.js} +3 -3
- package/dist/{Index-PIl16ugG.js → Index-Bf3O-9-j.js} +6 -6
- package/dist/{Index-CmKBuzvS.js → Index-BpObvjSu.js} +5 -5
- package/dist/{Index-D6qezTjd.js → Index-BrIFaQcB.js} +13 -13
- package/dist/{Index-tSL4w68e.js → Index-BsM0XvZj.js} +24 -23
- package/dist/{Index-u8OyhXD6.js → Index-BtECdggQ.js} +5 -5
- package/dist/{Index-4EhAq9jD.js → Index-CmDRJ5Xr.js} +17 -17
- package/dist/{Index-D0m02lsA.js → Index-CoadaoP0.js} +1 -1
- package/dist/{Index-nbUT4Y0t.js → Index-CpGzRzMp.js} +3 -3
- package/dist/{Index-Bpz-Fyp-.js → Index-CzqNrUn3.js} +2 -2
- package/dist/{Index-B9QJAmKi.js → Index-DGLmjotr.js} +2 -2
- package/dist/{Index-I_htzZi9.js → Index-DH9dMzsw.js} +6 -6
- package/dist/{Index-B1W3BsnU.js → Index-DO8qwrXi.js} +10 -10
- package/dist/{Index-CLmpmEm1.js → Index-DPF_0b3a.js} +14 -15
- package/dist/{Index-DA_DXCrr.js → Index-DdlkzMzM.js} +22 -22
- package/dist/{Index-Btz58lgU.js → Index-DijI5XXh.js} +2 -2
- package/dist/{Index-2i28IE9s.js → Index-DnnRIESN.js} +7 -7
- package/dist/{Index-DFutxc_k.js → Index-Dv0eryvg.js} +4 -4
- package/dist/{Index-Sdko3L9J.js → Index-KZslz-16.js} +23 -24
- package/dist/{Index-BV5EPUqw.js → Index-RhHHrJtM.js} +6 -7
- package/dist/{Index-BVvlz0QZ.js → Index-SXJlaLRr.js} +19 -19
- package/dist/{Index-BPkIQhtP.js → Index-szvZl8G-.js} +4 -4
- package/dist/{Index.vue_vue_type_script_lang-DQvhsOS6.js → Index.vue_vue_type_script_lang-CXjOi3FM.js} +2 -2
- package/dist/{InputToggleRow-d20mUVX2.js → InputToggleRow-3992FkvA.js} +5 -5
- package/dist/{ManualPopover-Cj5mxzND.js → ManualPopover-UiHhIKuw.js} +5 -5
- package/dist/{MediaWrapper-DWUR2K0S.js → MediaWrapper-BlaBWAWe.js} +5 -5
- package/dist/{NotBindingText-Dj7llcNG.js → NotBindingText-C14r7OLr.js} +2 -2
- package/dist/{PackageGroup-BNuMEute.js → PackageGroup-ClZiyb95.js} +23 -23
- package/dist/{PdfTerms-DdHFdJF8.js → PdfTerms-CbVKGNxc.js} +6 -6
- package/dist/{PdfViewer-w58AEZEU.js → PdfViewer-B_7DfQr7.js} +59 -59
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-DAy6tOo4.js → PlainHtml.vue_vue_type_script_setup_true_lang-BM9WSi7y.js} +1 -1
- package/dist/{PriceHeader-BBSS5378.js → PriceHeader-DRkCMuGD.js} +74 -74
- package/dist/{SearchApi-DiNXQk3K.js → SearchApi-6-uNsMl8.js} +3 -3
- package/dist/{SendForm-CRCrqy3V.js → SendForm-DnwHPbWV.js} +13 -13
- package/dist/{Setup-ClnyQJWX.js → Setup-Dz3ZCvFw.js} +1 -1
- package/dist/{SmartList-ICs2gnpw.js → SmartList-7RooD2fY.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-DJO7tWIs.js → Sortable.vue_vue_type_script_setup_true_lang-cAzUeXVM.js} +92 -92
- package/dist/{TermsSettings-BDBrMOTk.js → TermsSettings-BEB2t3Ut.js} +29 -29
- package/dist/{ThemeColorRow-ye4CbnQe.js → ThemeColorRow-XE9QcVAy.js} +8 -8
- package/dist/{ToggleBinding-CCVOOpHC.js → ToggleBinding-BeXQfpcK.js} +4 -4
- package/dist/{UploadModal-CE3Gyz8g.js → UploadModal-pRlJXk-Y.js} +12 -12
- package/dist/{VideoPlayerInput-DcYaE3Xn.js → VideoPlayerInput-qankN5Ed.js} +7 -7
- package/dist/{VideoPlayerSettings-DTP_f2k2.js → VideoPlayerSettings-WijGYtE2.js} +2 -2
- package/dist/{VideoSelectModal-D4VpAg8Z.js → VideoSelectModal-Dhb7CmVu.js} +10 -10
- package/dist/{focusDrawerMixin-Dmt0M_ez.js → focusDrawerMixin-DELQ4Leq.js} +1 -1
- package/dist/{formDrawerState-BTI6RBrh.js → formDrawerState-D_OOByIg.js} +1 -1
- package/dist/{helpers-BipYFMq7.js → helpers-BnYWgq30.js} +1 -1
- package/dist/{index-BsNrnPKD.js → index-6175cimw.js} +5 -5
- package/dist/{index-CrYE_wD5.js → index-BGFTOrwb.js} +69 -77
- package/dist/{index-CAX6ZePf.js → index-BIWUM14f.js} +1 -1
- package/dist/{index-BLB7xfoK.js → index-CFD_4fv_.js} +41 -41
- package/dist/{index-mN_zKU2T.js → index-DRINkuNg.js} +7 -18
- package/dist/{index-k3WjZPJe.js → index-KcSRVleg.js} +26 -26
- package/dist/{index-Bei9XuEH.js → index-P4A85Ytd.js} +27 -27
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +145 -145
- package/dist/{main-C3pW_mbm.js → main-q_EWffDQ.js} +9169 -9201
- package/dist/{mapFormMixin-CxDDheFN.js → mapFormMixin-DjPlsXfr.js} +15 -15
- package/dist/omit-DWur9Ujv.js +56 -0
- package/dist/{publicSenderState-CDeVVN6w.js → publicSenderState-BkZVvtJm.js} +1 -1
- package/dist/{splitpanes-Co3TdG3A.js → splitpanes-BR5qxnsj.js} +1 -1
- package/dist/{template-CERxPxb1.js → template-CQlJbqXR.js} +1 -1
- package/dist/{tippy.esm-x-zxHTNy.js → tippy.esm-BABwSp3j.js} +7 -7
- package/dist/{useTermsModal-C01kFCTx.js → useTermsModal-Bj2B-TdQ.js} +6 -6
- package/dist/{utils-BIrpSTl7.js → utils-C53ntVIe.js} +1 -1
- package/dist/{validation-uD43rMVf.js → validation-u_PNxOm8.js} +2 -2
- package/dist/widget.css +1 -1
- package/package.json +5 -5
- package/dist/Index-C8LrEVrS.js +0 -52
- package/dist/Index-CtDVS-ts.js +0 -4
- package/dist/omit-CCSRNlMn.js +0 -56
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
import { F as f,
|
|
1
|
+
import { i as S, a as _ } from "./helpers-BnYWgq30.js";
|
|
2
|
+
import { F as f, ay as g, aM as F, aN as k, e as C, _ as v, o as i, b as r, n as u, K as d, H as m, v as b, f as h, c as w, w as M, h as z, i as p, L as B, j as L } from "./main-q_EWffDQ.js";
|
|
3
3
|
const T = {
|
|
4
4
|
name: "CFieldBody",
|
|
5
5
|
inject: {
|
|
@@ -19,28 +19,28 @@ const T = {
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
render() {
|
|
22
|
-
let
|
|
23
|
-
return e != null && e.length === 1 && e[0].type === f && (e = e[0].children),
|
|
22
|
+
let s = !0, e = typeof this.$slots.default == "function" ? this.$slots.default() : this.$slots.default;
|
|
23
|
+
return e != null && e.length === 1 && e[0].type === f && (e = e[0].children), g(
|
|
24
24
|
"div",
|
|
25
25
|
{ class: "field-body" },
|
|
26
26
|
{
|
|
27
|
-
default: () => e != null && e.map((
|
|
28
|
-
if (
|
|
29
|
-
return
|
|
27
|
+
default: () => e != null && e.map((t) => {
|
|
28
|
+
if (t.type === F || t.type === k)
|
|
29
|
+
return t;
|
|
30
30
|
let o;
|
|
31
|
-
return
|
|
31
|
+
return s && (o = this.message, s = !1), g(
|
|
32
32
|
this.parent ? this.parent.$.type : C("c-field"),
|
|
33
33
|
{
|
|
34
34
|
type: this.type,
|
|
35
35
|
message: o
|
|
36
36
|
},
|
|
37
|
-
() =>
|
|
37
|
+
() => t
|
|
38
38
|
);
|
|
39
39
|
})
|
|
40
40
|
}
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
|
-
},
|
|
43
|
+
}, $ = {
|
|
44
44
|
name: "CField",
|
|
45
45
|
components: {
|
|
46
46
|
CFieldBody: T
|
|
@@ -122,10 +122,10 @@ const T = {
|
|
|
122
122
|
*/
|
|
123
123
|
newPosition() {
|
|
124
124
|
if (this.position === void 0) return;
|
|
125
|
-
const
|
|
126
|
-
if (
|
|
125
|
+
const s = this.position.split("-");
|
|
126
|
+
if (s.length < 1) return;
|
|
127
127
|
const e = this.grouped ? "is-grouped-" : "has-addons-";
|
|
128
|
-
if (this.position) return e +
|
|
128
|
+
if (this.position) return e + s[1];
|
|
129
129
|
},
|
|
130
130
|
/**
|
|
131
131
|
* Formatted message in case it's an array
|
|
@@ -134,19 +134,19 @@ const T = {
|
|
|
134
134
|
formattedMessage() {
|
|
135
135
|
if (typeof this.newMessage == "string")
|
|
136
136
|
return this.newMessage;
|
|
137
|
-
const
|
|
137
|
+
const s = [];
|
|
138
138
|
if (Array.isArray(this.newMessage))
|
|
139
139
|
this.newMessage.forEach((e) => {
|
|
140
140
|
if (typeof e == "string")
|
|
141
|
-
|
|
141
|
+
s.push(e);
|
|
142
142
|
else
|
|
143
|
-
for (const
|
|
144
|
-
e[
|
|
143
|
+
for (const t in e)
|
|
144
|
+
e[t] && s.push(t);
|
|
145
145
|
});
|
|
146
146
|
else
|
|
147
147
|
for (const e in this.newMessage)
|
|
148
|
-
this.newMessage[e] &&
|
|
149
|
-
return
|
|
148
|
+
this.newMessage[e] && s.push(e);
|
|
149
|
+
return s.filter((e) => !!e).join(" <br> ");
|
|
150
150
|
},
|
|
151
151
|
hasLabel() {
|
|
152
152
|
return this.label || this.$slots.label;
|
|
@@ -156,14 +156,14 @@ const T = {
|
|
|
156
156
|
/**
|
|
157
157
|
* Set internal type when prop change.
|
|
158
158
|
*/
|
|
159
|
-
type(
|
|
160
|
-
this.newType =
|
|
159
|
+
type(s) {
|
|
160
|
+
this.newType = s;
|
|
161
161
|
},
|
|
162
162
|
/**
|
|
163
163
|
* Set internal message when prop change.
|
|
164
164
|
*/
|
|
165
|
-
message(
|
|
166
|
-
JSON.stringify(
|
|
165
|
+
message(s) {
|
|
166
|
+
JSON.stringify(s) !== JSON.stringify(this.newMessage) && (this.newMessage = s);
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
169
|
mounted() {
|
|
@@ -182,80 +182,80 @@ const T = {
|
|
|
182
182
|
if (this.grouped) return "is-grouped";
|
|
183
183
|
if (this.hasAddons()) return "has-addons";
|
|
184
184
|
},
|
|
185
|
-
getSlotNodes(
|
|
186
|
-
return
|
|
187
|
-
(e) =>
|
|
185
|
+
getSlotNodes(s) {
|
|
186
|
+
return s.flatMap(
|
|
187
|
+
(e) => S(e) ? this.getSlotNodes(e.children) : [e]
|
|
188
188
|
);
|
|
189
189
|
},
|
|
190
190
|
hasAddons() {
|
|
191
|
-
let
|
|
192
|
-
return this.$slots.default && (
|
|
193
|
-
(e,
|
|
191
|
+
let s = 0;
|
|
192
|
+
return this.$slots.default && (s = this.getSlotNodes(this.$slots.default()).reduce(
|
|
193
|
+
(e, t) => _(t) ? e + 1 : e,
|
|
194
194
|
0
|
|
195
|
-
)),
|
|
195
|
+
)), s > 1 && this.addons && !this.horizontal;
|
|
196
196
|
},
|
|
197
197
|
// called by a number input if it is a direct child.
|
|
198
|
-
wrapNumberinput({ controlsPosition:
|
|
199
|
-
const
|
|
200
|
-
|
|
198
|
+
wrapNumberinput({ controlsPosition: s, size: e }) {
|
|
199
|
+
const t = ["has-numberinput"];
|
|
200
|
+
s && t.push(`has-numberinput-${s}`), e && t.push(`has-numberinput-${e}`), this.numberInputClasses = t;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
}, N = ["for"], A = ["for"], j = ["innerHTML"];
|
|
204
|
-
function
|
|
204
|
+
function O(s, e, t, o, n, a) {
|
|
205
205
|
const l = C("CFieldBody");
|
|
206
206
|
return i(), r("div", {
|
|
207
207
|
class: u([[a.rootClasses, a.fieldType()], "field"])
|
|
208
208
|
}, [
|
|
209
|
-
|
|
209
|
+
t.horizontal ? (i(), r("div", {
|
|
210
210
|
key: 0,
|
|
211
|
-
class: u([[
|
|
211
|
+
class: u([[t.customClass, n.fieldLabelSize], "field-label"])
|
|
212
212
|
}, [
|
|
213
213
|
a.hasLabel ? (i(), r("label", {
|
|
214
214
|
key: 0,
|
|
215
|
-
for:
|
|
216
|
-
class: u([
|
|
215
|
+
for: t.labelFor,
|
|
216
|
+
class: u([t.customClass, "label w-full truncate"])
|
|
217
217
|
}, [
|
|
218
|
-
|
|
219
|
-
m(b(
|
|
218
|
+
s.$slots.label ? d(s.$slots, "label", { key: 0 }) : (i(), r(f, { key: 1 }, [
|
|
219
|
+
m(b(t.label), 1)
|
|
220
220
|
], 64))
|
|
221
221
|
], 10, N)) : h("", !0)
|
|
222
222
|
], 2)) : (i(), r(f, { key: 1 }, [
|
|
223
223
|
a.hasLabel ? (i(), r("label", {
|
|
224
224
|
key: 0,
|
|
225
|
-
for:
|
|
226
|
-
class: u([
|
|
225
|
+
for: t.labelFor,
|
|
226
|
+
class: u([t.customClass, "label w-full truncate"])
|
|
227
227
|
}, [
|
|
228
|
-
|
|
229
|
-
m(b(
|
|
228
|
+
s.$slots.label ? d(s.$slots, "label", { key: 0 }) : (i(), r(f, { key: 1 }, [
|
|
229
|
+
m(b(t.label), 1)
|
|
230
230
|
], 64))
|
|
231
231
|
], 10, A)) : h("", !0)
|
|
232
232
|
], 64)),
|
|
233
|
-
|
|
233
|
+
t.horizontal ? (i(), w(l, {
|
|
234
234
|
key: 2,
|
|
235
235
|
message: n.newMessage ? a.formattedMessage : "",
|
|
236
236
|
type: n.newType
|
|
237
237
|
}, {
|
|
238
|
-
default:
|
|
239
|
-
d(
|
|
238
|
+
default: M(() => [
|
|
239
|
+
d(s.$slots, "default")
|
|
240
240
|
]),
|
|
241
241
|
_: 3
|
|
242
|
-
}, 8, ["message", "type"])) : d(
|
|
243
|
-
n.newMessage && !
|
|
242
|
+
}, 8, ["message", "type"])) : d(s.$slots, "default", { key: 3 }),
|
|
243
|
+
n.newMessage && !t.horizontal ? (i(), r("p", {
|
|
244
244
|
key: 4,
|
|
245
245
|
class: u([n.newType, "help"]),
|
|
246
246
|
innerHTML: a.formattedMessage
|
|
247
247
|
}, null, 10, j)) : h("", !0)
|
|
248
248
|
], 2);
|
|
249
249
|
}
|
|
250
|
-
const
|
|
250
|
+
const P = /* @__PURE__ */ v($, [["render", O]]), H = /* @__PURE__ */ z({
|
|
251
251
|
__name: "CFormField",
|
|
252
252
|
props: {
|
|
253
253
|
label: {},
|
|
254
254
|
validator: {},
|
|
255
255
|
messages: {}
|
|
256
256
|
},
|
|
257
|
-
setup(
|
|
258
|
-
const e =
|
|
257
|
+
setup(s) {
|
|
258
|
+
const e = s, t = p(() => {
|
|
259
259
|
var a, l;
|
|
260
260
|
if ((a = e.validator) != null && a.$error)
|
|
261
261
|
return "is-danger";
|
|
@@ -268,18 +268,18 @@ const O = /* @__PURE__ */ v(L, [["render", x]]), I = /* @__PURE__ */ z({
|
|
|
268
268
|
if ((l = e.validator) != null && l.$dirty)
|
|
269
269
|
return "text-green-500";
|
|
270
270
|
}), n = p(() => {
|
|
271
|
-
var c,
|
|
271
|
+
var c, y;
|
|
272
272
|
if (!((c = e.validator) != null && c.$errors.length)) return "";
|
|
273
273
|
const l = e.validator.$errors[0].$validator;
|
|
274
|
-
return ((
|
|
274
|
+
return ((y = e.messages) == null ? void 0 : y[l]) ?? "";
|
|
275
275
|
});
|
|
276
|
-
return (a, l) => (i(), w(
|
|
276
|
+
return (a, l) => (i(), w(L(P), B({ ...a.$attrs, ...a.$props }, {
|
|
277
277
|
label: a.label,
|
|
278
278
|
"custom-class": o.value,
|
|
279
|
-
type:
|
|
279
|
+
type: t.value,
|
|
280
280
|
message: n.value
|
|
281
281
|
}), {
|
|
282
|
-
default:
|
|
282
|
+
default: M(() => [
|
|
283
283
|
d(a.$slots, "default")
|
|
284
284
|
]),
|
|
285
285
|
_: 3
|
|
@@ -287,6 +287,6 @@ const O = /* @__PURE__ */ v(L, [["render", x]]), I = /* @__PURE__ */ z({
|
|
|
287
287
|
}
|
|
288
288
|
});
|
|
289
289
|
export {
|
|
290
|
-
|
|
291
|
-
|
|
290
|
+
P as C,
|
|
291
|
+
H as _
|
|
292
292
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { _ as w,
|
|
2
|
-
import { C as D, a as v } from "./CDropdownItem-
|
|
3
|
-
import { C as
|
|
4
|
-
import { F as
|
|
5
|
-
import { S as
|
|
6
|
-
import { r as
|
|
1
|
+
import { _ as w, I as B, a0 as S, o as m, c as y, w as i, s as V, d as o, H as z, v as p, b as F, k as I, F as k, L as $, e as s } from "./main-q_EWffDQ.js";
|
|
2
|
+
import { C as D, a as v } from "./CDropdownItem-BWmAQwpG.js";
|
|
3
|
+
import { C as L } from "./CFormField.vue_vue_type_script_setup_true_lang-DzcNo15Q.js";
|
|
4
|
+
import { F as j } from "./Flag-D3GdVwWB.js";
|
|
5
|
+
import { S as K } from "./SmartList-7RooD2fY.js";
|
|
6
|
+
import { r as l } from "./regions-BdZt9Srn.js";
|
|
7
7
|
const N = {
|
|
8
8
|
name: "CPhoneInput",
|
|
9
9
|
components: {
|
|
10
|
-
Flag:
|
|
10
|
+
Flag: j,
|
|
11
11
|
CInput: B,
|
|
12
12
|
CDropdown: D,
|
|
13
13
|
CDropdownItem: v,
|
|
14
14
|
CButton: S,
|
|
15
|
-
CField:
|
|
16
|
-
SmartList:
|
|
15
|
+
CField: L,
|
|
16
|
+
SmartList: K
|
|
17
17
|
},
|
|
18
18
|
props: {
|
|
19
19
|
modelValue: {
|
|
@@ -48,7 +48,7 @@ const N = {
|
|
|
48
48
|
},
|
|
49
49
|
computed: {
|
|
50
50
|
defaultPrefix() {
|
|
51
|
-
return
|
|
51
|
+
return l[this.internalRegion].callingCode;
|
|
52
52
|
},
|
|
53
53
|
currentRegion() {
|
|
54
54
|
return this.getRegionByCallingCode(this.prefix);
|
|
@@ -57,23 +57,23 @@ const N = {
|
|
|
57
57
|
get() {
|
|
58
58
|
if (this.region) return this.region;
|
|
59
59
|
if (this.modelValue) {
|
|
60
|
-
const e = (Object.keys(
|
|
61
|
-
(t) =>
|
|
60
|
+
const e = (Object.keys(l) || []).find(
|
|
61
|
+
(t) => l[t].callingCode && this.modelValue && this.modelValue.startsWith(l[t].callingCode)
|
|
62
62
|
);
|
|
63
63
|
if (e) return e;
|
|
64
64
|
}
|
|
65
65
|
return this.internalPrefix ? this.getRegionByCallingCode(this.internalPrefix) : this.defaultRegion;
|
|
66
66
|
},
|
|
67
67
|
set(e) {
|
|
68
|
-
this.$emit("update:region", e), this.updateValue({ prefix:
|
|
68
|
+
this.$emit("update:region", e), this.updateValue({ prefix: l[e].callingCode });
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
prefix() {
|
|
72
72
|
if (!this.modelValue) return this.internalPrefix || this.defaultPrefix;
|
|
73
|
-
const e = (Object.keys(
|
|
74
|
-
(t) =>
|
|
73
|
+
const e = (Object.keys(l) || []).find(
|
|
74
|
+
(t) => l[t].callingCode && this.modelValue && this.modelValue.startsWith(l[t].callingCode)
|
|
75
75
|
);
|
|
76
|
-
return e ?
|
|
76
|
+
return e ? l[e].callingCode : this.defaultPrefix;
|
|
77
77
|
},
|
|
78
78
|
phone: {
|
|
79
79
|
get() {
|
|
@@ -84,27 +84,27 @@ const N = {
|
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
sortedRegions() {
|
|
87
|
-
return (Object.keys(
|
|
87
|
+
return (Object.keys(l) || []).map((e) => ({
|
|
88
88
|
key: e,
|
|
89
|
-
title: `${
|
|
90
|
-
callingCode:
|
|
89
|
+
title: `${l[e].name} (${e})`,
|
|
90
|
+
callingCode: l[e].callingCode
|
|
91
91
|
})).sort((e, t) => e.title.localeCompare(t.title));
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
methods: {
|
|
95
95
|
getRegionByCallingCode(e) {
|
|
96
|
-
return e ? (Object.keys(
|
|
97
|
-
(
|
|
96
|
+
return e ? (Object.keys(l) || []).find(
|
|
97
|
+
(n) => e === l[n].callingCode
|
|
98
98
|
) : null;
|
|
99
99
|
},
|
|
100
100
|
updateValue({ prefix: e, phone: t }) {
|
|
101
|
-
const
|
|
102
|
-
d !==
|
|
101
|
+
const n = e !== void 0 ? e : this.prefix || "", h = t !== void 0 ? t : this.phone || "", d = `${n}${h}`;
|
|
102
|
+
d !== n ? (this.$emit("update:modelValue", d), this.region || this.$emit("update:region", this.internalRegion), this.internalPrefix = null) : (this.internalPrefix = n, this.$emit("update:modelValue", ""));
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
}, O = { class: "control" }, Q = { class: "truncate
|
|
106
|
-
function W(e, t,
|
|
107
|
-
const g = s("Flag"),
|
|
105
|
+
}, O = { class: "control" }, Q = { class: "w-full truncate" };
|
|
106
|
+
function W(e, t, n, h, d, r) {
|
|
107
|
+
const g = s("Flag"), b = s("CButton"), c = s("CInput"), x = s("CDropdownItem"), _ = s("CDropdown"), P = s("SmartList"), f = s("CField");
|
|
108
108
|
return m(), y(f, {
|
|
109
109
|
class: "has-addons",
|
|
110
110
|
expanded: ""
|
|
@@ -131,7 +131,7 @@ function W(e, t, l, h, d, r) {
|
|
|
131
131
|
style: { height: "100%" }
|
|
132
132
|
}, {
|
|
133
133
|
trigger: i(() => [
|
|
134
|
-
o(
|
|
134
|
+
o(b, {
|
|
135
135
|
size: e.$attrs.size,
|
|
136
136
|
type: "none",
|
|
137
137
|
pattern: "secondary",
|
|
@@ -158,10 +158,10 @@ function W(e, t, l, h, d, r) {
|
|
|
158
158
|
}, null, 8, ["modelValue", "placeholder"])
|
|
159
159
|
]),
|
|
160
160
|
default: i(() => [
|
|
161
|
-
(m(!0), F(k, null,
|
|
161
|
+
(m(!0), F(k, null, I(u, ({ key: a, title: C, callingCode: R }) => (m(), y(x, {
|
|
162
162
|
key: a,
|
|
163
163
|
value: a,
|
|
164
|
-
class: "truncate
|
|
164
|
+
class: "w-full truncate"
|
|
165
165
|
}, {
|
|
166
166
|
default: i(() => [
|
|
167
167
|
o(g, {
|
|
@@ -181,13 +181,13 @@ function W(e, t, l, h, d, r) {
|
|
|
181
181
|
}, 8, ["query", "items"])
|
|
182
182
|
]),
|
|
183
183
|
o(f, {
|
|
184
|
-
label:
|
|
185
|
-
"label-position":
|
|
184
|
+
label: n.label,
|
|
185
|
+
"label-position": n.labelPosition,
|
|
186
186
|
class: "control",
|
|
187
187
|
expanded: ""
|
|
188
188
|
}, {
|
|
189
189
|
default: i(() => [
|
|
190
|
-
o(c,
|
|
190
|
+
o(c, $({ ...e.$attrs, ...e.$props }, {
|
|
191
191
|
modelValue: r.phone,
|
|
192
192
|
"onUpdate:modelValue": t[2] || (t[2] = (u) => r.phone = u),
|
|
193
193
|
size: e.$attrs.size,
|
|
@@ -201,7 +201,7 @@ function W(e, t, l, h, d, r) {
|
|
|
201
201
|
_: 1
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
|
-
const
|
|
204
|
+
const G = /* @__PURE__ */ w(N, [["render", W]]);
|
|
205
205
|
export {
|
|
206
|
-
|
|
206
|
+
G as C
|
|
207
207
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as h } from "./CCurrencyDropdown-
|
|
2
|
-
import { _ as C,
|
|
1
|
+
import { C as h } from "./CCurrencyDropdown-CyFge_fD.js";
|
|
2
|
+
import { _ as C, I as V, al as I, e as o, o as s, c as l, w as i, b as u, K as p, f as g, d as w, H as k, v as d, L as _ } from "./main-q_EWffDQ.js";
|
|
3
3
|
const $ = {
|
|
4
4
|
name: "CPriceInput",
|
|
5
5
|
inheritAttrs: !1,
|
|
@@ -65,7 +65,7 @@ const $ = {
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
suffixValue() {
|
|
68
|
-
const e =
|
|
68
|
+
const e = I(this.internalCurrency);
|
|
69
69
|
switch (this.priceType) {
|
|
70
70
|
// case 'approx':
|
|
71
71
|
// return `${this.$t('_common:approx')} ${currencyString}`;
|
|
@@ -103,7 +103,7 @@ function x(e, t, c, z, a, r) {
|
|
|
103
103
|
prefix: i(() => [
|
|
104
104
|
e.$slots.prefix ? (s(), u("div", b, [
|
|
105
105
|
p(e.$slots, "prefix")
|
|
106
|
-
])) :
|
|
106
|
+
])) : g("", !0)
|
|
107
107
|
]),
|
|
108
108
|
suffix: i(() => [
|
|
109
109
|
e.$slots.suffix ? (s(), u("div", v, [
|
|
@@ -116,7 +116,7 @@ function x(e, t, c, z, a, r) {
|
|
|
116
116
|
onActiveChange: t[1] || (t[1] = (n) => a.isCurrencyDropdownOpen = n)
|
|
117
117
|
}, {
|
|
118
118
|
default: i(({ selectedValue: n }) => [
|
|
119
|
-
|
|
119
|
+
w(f, {
|
|
120
120
|
size: e.$attrs.size,
|
|
121
121
|
type: "none",
|
|
122
122
|
pattern: "tertiary",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as u,
|
|
2
|
-
const
|
|
1
|
+
import { _ as u, a2 as r, a3 as m, o as i, b as d, s as n, O as c, a4 as p, L as o, v as h, f, K as V, n as y } from "./main-q_EWffDQ.js";
|
|
2
|
+
const g = {
|
|
3
3
|
name: "CSelect",
|
|
4
4
|
mixins: [r, m],
|
|
5
5
|
inheritAttrs: !1,
|
|
@@ -62,13 +62,13 @@ const S = {
|
|
|
62
62
|
this.selected = e, !this.isValid && this.checkHtml5Validity();
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
},
|
|
65
|
+
}, S = ["multiple", "size"], C = {
|
|
66
66
|
key: 0,
|
|
67
67
|
value: null,
|
|
68
68
|
disabled: "",
|
|
69
69
|
hidden: ""
|
|
70
70
|
};
|
|
71
|
-
function b(e, t, l,
|
|
71
|
+
function b(e, t, l, v, k, a) {
|
|
72
72
|
return i(), d("div", o({
|
|
73
73
|
class: [{ "is-expanded": e.expanded, "has-icons-left": e.icon }, "control"]
|
|
74
74
|
}, e.rootAttrs), [
|
|
@@ -86,13 +86,13 @@ function b(e, t, l, k, v, a) {
|
|
|
86
86
|
}), [
|
|
87
87
|
l.placeholder && a.computedValue == null ? (i(), d("option", C, h(l.placeholder), 1)) : f("", !0),
|
|
88
88
|
V(e.$slots, "default", {}, void 0, !0)
|
|
89
|
-
], 16,
|
|
89
|
+
], 16, S), [
|
|
90
90
|
[p, a.computedValue]
|
|
91
91
|
])
|
|
92
92
|
], 2)
|
|
93
93
|
], 16);
|
|
94
94
|
}
|
|
95
|
-
const B = /* @__PURE__ */ u(
|
|
95
|
+
const B = /* @__PURE__ */ u(g, [["render", b], ["__scopeId", "data-v-097f661c"]]);
|
|
96
96
|
export {
|
|
97
97
|
B as C
|
|
98
98
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as b, t as g, i as l, u as C, j as e, o as s, b as n, F as x, k as S, n as i, l as d, f as w } from "./main-
|
|
1
|
+
import { h as b, t as g, i as l, u as C, j as e, o as s, b as n, F as x, k as S, n as i, l as d, f as w } from "./main-q_EWffDQ.js";
|
|
2
2
|
const $ = /* @__PURE__ */ b({
|
|
3
3
|
__name: "CSkeleton",
|
|
4
4
|
props: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { c as P, r as z, g as N } from "./helpers-
|
|
1
|
+
import { S as O } from "./SearchApi-6-uNsMl8.js";
|
|
2
|
+
import { _ as b, I as H, a2 as E, a3 as F, o as d, b as c, d as V, L as S, J as m, ad as v, w as p, O as $, P as T, s as w, l as C, K as y, f, F as x, k as L, n as A, a1 as _, e as g, v as h, aH as D, c as I, H as R } from "./main-q_EWffDQ.js";
|
|
3
|
+
import { c as P, r as z, g as N } from "./helpers-BnYWgq30.js";
|
|
4
4
|
const q = {
|
|
5
5
|
name: "CAutocomplete",
|
|
6
6
|
components: {
|
|
7
|
-
CInput:
|
|
7
|
+
CInput: H
|
|
8
8
|
},
|
|
9
|
-
mixins: [
|
|
9
|
+
mixins: [E, F],
|
|
10
10
|
props: {
|
|
11
11
|
modelValue: {
|
|
12
12
|
type: [Number, String],
|
|
@@ -382,7 +382,7 @@ function j(e, t, i, l, s, o) {
|
|
|
382
382
|
onIconRightClick: o.rightIconClick,
|
|
383
383
|
onIconClick: t[4] || (t[4] = (n) => e.$emit("icon-click", n))
|
|
384
384
|
}), null, 16, ["modelValue", "size", "loading", "rounded", "icon", "icon-right", "icon-right-clickable", "icon-pack", "maxlength", "autocomplete", "onUpdate:modelValue", "onFocus", "onBlur", "onKeydown", "onIconRightClick"]),
|
|
385
|
-
V(
|
|
385
|
+
V(_, { name: "fade" }, {
|
|
386
386
|
default: p(() => [
|
|
387
387
|
$(w("div", {
|
|
388
388
|
ref: "dropdown",
|
|
@@ -396,7 +396,7 @@ function j(e, t, i, l, s, o) {
|
|
|
396
396
|
o.hasHeaderSlot ? (d(), c("div", M, [
|
|
397
397
|
y(e.$slots, "header")
|
|
398
398
|
])) : f("", !0),
|
|
399
|
-
(d(!0), c(x, null,
|
|
399
|
+
(d(!0), c(x, null, L(i.data, (n, u) => (d(), c("a", {
|
|
400
400
|
key: u,
|
|
401
401
|
class: A([{ "is-hovered": n === s.hovered }, "dropdown-item"]),
|
|
402
402
|
onClick: (k) => o.setSelected(n, void 0, k)
|
|
@@ -424,15 +424,15 @@ function j(e, t, i, l, s, o) {
|
|
|
424
424
|
})
|
|
425
425
|
], 16);
|
|
426
426
|
}
|
|
427
|
-
const
|
|
427
|
+
const J = /* @__PURE__ */ b(q, [["render", j]]), X = {
|
|
428
428
|
i18nOptions: {
|
|
429
429
|
namespaces: "components",
|
|
430
430
|
keyPrefix: "account.documentForm.clients"
|
|
431
431
|
},
|
|
432
432
|
name: "ClientAutocomplete",
|
|
433
433
|
components: {
|
|
434
|
-
SearchApi:
|
|
435
|
-
CAutocomplete:
|
|
434
|
+
SearchApi: O,
|
|
435
|
+
CAutocomplete: J
|
|
436
436
|
},
|
|
437
437
|
props: {
|
|
438
438
|
searchEnabled: {
|
|
@@ -472,21 +472,21 @@ const Y = /* @__PURE__ */ B(q, [["render", j]]), G = {
|
|
|
472
472
|
}));
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
},
|
|
475
|
+
}, Y = { style: { "line-height": "1.5" } }, G = { style: { "font-weight": "500" } }, Z = {
|
|
476
476
|
class: "text-gray-600",
|
|
477
477
|
style: { "font-size": "14px" }
|
|
478
478
|
}, ee = { key: 0 }, te = { key: 0 };
|
|
479
479
|
function ie(e, t, i, l, s, o) {
|
|
480
480
|
const a = g("CButton"), n = g("CAutocomplete"), u = g("SearchApi");
|
|
481
|
-
return d(),
|
|
482
|
-
default: p(({ fetch: k, isLoading:
|
|
481
|
+
return d(), I(u, { "custom-search": { endCustomer: !0 } }, {
|
|
482
|
+
default: p(({ fetch: k, isLoading: B }) => [
|
|
483
483
|
V(n, S({
|
|
484
484
|
placeholder: e.$t("search.placeholder"),
|
|
485
485
|
...e.$attrs,
|
|
486
486
|
...e.$props
|
|
487
487
|
}, {
|
|
488
488
|
data: s.results,
|
|
489
|
-
loading: i.showLoading &&
|
|
489
|
+
loading: i.showLoading && B,
|
|
490
490
|
filled: i.filled,
|
|
491
491
|
expanded: "",
|
|
492
492
|
"keep-first": "",
|
|
@@ -494,14 +494,14 @@ function ie(e, t, i, l, s, o) {
|
|
|
494
494
|
onSelect: t[1] || (t[1] = (r) => e.$emit("setClient", s.convertToNewClient(r)))
|
|
495
495
|
}), {
|
|
496
496
|
default: p(({ option: r }) => [
|
|
497
|
-
w("div",
|
|
498
|
-
w("div",
|
|
497
|
+
w("div", Y, [
|
|
498
|
+
w("div", G, h(r.name || r.email), 1),
|
|
499
499
|
w("div", Z, h(r.reference ? `${r.reference} · ` : "") + " " + h(r.workStreet || r.street || " "), 1)
|
|
500
500
|
])
|
|
501
501
|
]),
|
|
502
502
|
footer: p(() => [
|
|
503
503
|
i.searchEnabled && i.showEmpty ? (d(), c("div", ee, [
|
|
504
|
-
s.searchQuery && !s.results.length ? (d(),
|
|
504
|
+
s.searchQuery && !s.results.length ? (d(), I(a, {
|
|
505
505
|
key: 0,
|
|
506
506
|
type: "secondary",
|
|
507
507
|
pattern: "tertiary",
|
|
@@ -525,8 +525,8 @@ function ie(e, t, i, l, s, o) {
|
|
|
525
525
|
_: 1
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
|
-
const le = /* @__PURE__ */
|
|
528
|
+
const le = /* @__PURE__ */ b(X, [["render", ie]]);
|
|
529
529
|
export {
|
|
530
530
|
le as C,
|
|
531
|
-
|
|
531
|
+
J as a
|
|
532
532
|
};
|