@cling-se/widget 0.19.6 → 0.19.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/CHANGELOG.md +15 -1
- package/dist/{AddClientCallout-DtVRTCr_.js → AddClientCallout-sPxYX5tQ.js} +18 -18
- package/dist/{AnswerModal-ClyWtHBj.js → AnswerModal-o8OHHulg.js} +80 -80
- package/dist/{AttachmentItem-COoLlAum.js → AttachmentItem-CzzOlHB-.js} +16 -16
- package/dist/{BaseUpload-DlaYaxxr.js → BaseUpload-oZQfFwOj.js} +256 -256
- package/dist/{BlockMedia-IMu4YO3J.js → BlockMedia-BGPxfM2X.js} +16 -16
- package/dist/{CCallout-C32zwICP.js → CCallout-CrbMGTIj.js} +15 -15
- package/dist/{CCurrencyDropdown-D4ZxTioo.js → CCurrencyDropdown-BnNDP51j.js} +13 -13
- package/dist/{CDropdownItem-BuQONogL.js → CDropdownItem-E-kRDIiy.js} +6 -6
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-KdkAe_wn.js → CFormField.vue_vue_type_script_setup_true_lang-Bi0MjQdW.js} +25 -25
- package/dist/{CPhoneFormat-C2K78cmZ.js → CPhoneFormat-CIQAVdsB.js} +1 -1
- package/dist/{CPhoneInput-DolVFzrL.js → CPhoneInput-9AwTJm-0.js} +21 -21
- package/dist/{CPriceInput-SbRlrDnD.js → CPriceInput-agFahtr1.js} +11 -11
- package/dist/CSelect-BpautzPq.js +129 -0
- package/dist/CSkeleton-GIqd-JU4.js +47 -0
- package/dist/{ClientAutocomplete-vgxEGqNU.js → ClientAutocomplete-DOHX9Igy.js} +26 -26
- package/dist/{ClientModal-B8ip7v99.js → ClientModal-DAXKN_b3.js} +35 -35
- package/dist/{ColorPicker-BrfM9S1s.js → ColorPicker-B9F8znY_.js} +82 -82
- package/dist/{CompanyModal-DJZezqM5.js → CompanyModal-BvIMVys6.js} +27 -27
- package/dist/{ContentWrapper-zJ4MCnSC.js → ContentWrapper-DB22RaUr.js} +24 -24
- package/dist/{CoverBlockSettings-Cz0NUYXX.js → CoverBlockSettings--l4fH9mr.js} +32 -32
- package/dist/{DocAnswer-EWarWnbt.js → DocAnswer-Bq-4uVbe.js} +4 -4
- package/dist/{DocDetails-CGHN3tbO.js → DocDetails-yxmchgO5.js} +59 -59
- package/dist/{DocForm-BLTap-Bb.js → DocForm-CzrR8o22.js} +1208 -1180
- package/dist/{DocFormSend-_jCPFI9r.js → DocFormSend-Bjc1QDcK.js} +11 -11
- package/dist/{DocLinks-D9Ok4HvN.js → DocLinks-BXbC-6v3.js} +6 -6
- package/dist/{DocModalBase-fQz5UuCF.js → DocModalBase-axX_Rlp3.js} +1 -1
- package/dist/{DocPrint-Cua_U7zt.js → DocPrint-D0IdWsUM.js} +19 -19
- package/dist/{DocReceipt-Cg2hiSby.js → DocReceipt-4e-RmgeQ.js} +19 -19
- package/dist/{DocSendReminder-Dh7G9kbZ.js → DocSendReminder-L35eZxgk.js} +12 -12
- package/dist/{DocTextEditor-Ds4Cbg-2.js → DocTextEditor-KrfylSV6.js} +4493 -4435
- package/dist/{DocTimeline-DpWUMwJE.js → DocTimeline-Be5CvtcQ.js} +18 -18
- package/dist/{DocumentClient-DUqHQVSe.js → DocumentClient-Bc4kf2q9.js} +10 -10
- package/dist/DocumentLayout-Oe-ZsHML.js +595 -0
- package/dist/{DocumentLogotype-BiekV9-j.js → DocumentLogotype-BFo5UEWS.js} +20 -20
- package/dist/{DocumentVoided-D_YMyeV8.js → DocumentVoided-DlQtlO7G.js} +7 -7
- package/dist/{EmbedInput-Crx-LEGc.js → EmbedInput-B29usQZZ.js} +10 -10
- package/dist/{EmbedSettings-xIGtEN7L.js → EmbedSettings-D-9rcSn0.js} +16 -16
- package/dist/{ErrorCallout-D_fUVD4I.js → ErrorCallout--EnH1Ezu.js} +9 -9
- package/dist/{FilePreviewModal-av2lE91B.js → FilePreviewModal-H5Ilg9xN.js} +9 -9
- package/dist/{Flag-CI52SH_9.js → Flag-DgZVh3Lf.js} +4 -4
- package/dist/{HeaderSettings-Ip634NWe.js → HeaderSettings-HuM_JwJw.js} +27 -27
- package/dist/{ImageSelectModal-DNtR86H7.js → ImageSelectModal-CJ-DstAf.js} +14 -14
- package/dist/{ImageUploadWrapper-Co43CWCP.js → ImageUploadWrapper-TYs37LIQ.js} +76 -76
- package/dist/{Index-C6KPbnAq.js → Index-6N_iRlrQ.js} +10 -10
- package/dist/{Index-bvCcp9l6.js → Index-B-PDcQKh.js} +34 -34
- package/dist/{Index-CTQyX_63.js → Index-B942Auag.js} +2 -2
- package/dist/{Index-4ZURK6a8.js → Index-BLdFyt-s.js} +12 -12
- package/dist/{Index-CZqJYh7u.js → Index-BMpHXgR4.js} +16 -16
- package/dist/{Index-DGwF2cvQ.js → Index-BZ6ZDf9T.js} +11 -11
- package/dist/{Index-Ci_PUYqE.js → Index-BdnFLjgV.js} +11 -11
- package/dist/{Index-BdW5_mV-.js → Index-BeOtRIzZ.js} +21 -21
- package/dist/Index-BsRxY7vc.js +21 -0
- package/dist/{Index-xVX7aGXv.js → Index-CAMAtPVL.js} +6 -6
- package/dist/{Index-uDG1i8F-.js → Index-CC4E2CmH.js} +11 -11
- package/dist/{Index-CJi8Remu.js → Index-CGus-YwW.js} +26 -26
- package/dist/{Index-C-Suk6Qs.js → Index-CLgN5Jzf.js} +3 -3
- package/dist/{Index-C92jPUcy.js → Index-CTlB43yV.js} +7 -7
- package/dist/{Index-CmLvcWe3.js → Index-CY2sRfaY.js} +194 -218
- package/dist/{Index-PzcQhAgF.js → Index-CnrSvy6E.js} +2 -2
- package/dist/{Index-Bgm5PHos.js → Index-CrdSdXWN.js} +18 -18
- package/dist/{Index-Bj81gIof.js → Index-CtJfMiZW.js} +2 -2
- package/dist/Index-D4HNTocO.js +4 -0
- package/dist/{Index-chiZsMLh.js → Index-D5_GLLQH.js} +507 -512
- package/dist/{Index-DOiPKAhk.js → Index-D9sceHk5.js} +17 -17
- package/dist/{Index-CV5RbQn5.js → Index-DJ11Zra_.js} +42 -42
- package/dist/{Index-DQbbxV0m.js → Index-DMIjuWSa.js} +9 -9
- package/dist/{Index-BMwBpYpa.js → Index-DTm59e-A.js} +11 -11
- package/dist/{Index-CxAd29-m.js → Index-DXT_IMjq.js} +8 -8
- package/dist/{Index-BF1bZUso.js → Index-DYUvtCff.js} +8 -8
- package/dist/{Index-DKuTOk0t.js → Index-DYW8T0Hl.js} +18 -18
- package/dist/{Index-DWIpdRX-.js → Index-Dg4dwlh_.js} +59 -58
- package/dist/{Index-DOCeODtL.js → Index-N88Abomf.js} +11 -11
- package/dist/{Index-BY2kaUsM.js → Index-W-Q19E3a.js} +7 -7
- package/dist/{Index-DwIfORsz.js → Index-edWEg_rF.js} +29 -29
- package/dist/{Index-DlGSVN83.js → Index-nRqNPZ3B.js} +18 -18
- package/dist/{Index-CeJRMtmh.js → Index-nTp9wEni.js} +7 -7
- package/dist/{Index-D_X2OZA3.js → Index-yJRtT77X.js} +2 -2
- package/dist/{Index.vue_vue_type_script_lang-WK-YdZ30.js → Index.vue_vue_type_script_lang-PJPQMT2c.js} +2 -2
- package/dist/{InputToggleRow-CWvEi0HF.js → InputToggleRow-DCr_DEm4.js} +9 -9
- package/dist/{ManualPopover-BSX3bOr0.js → ManualPopover-CpVsmQvn.js} +4 -4
- package/dist/{MediaWrapper-D8BXMoDz.js → MediaWrapper-Cj3LBhdR.js} +4 -4
- package/dist/{NotBindingText-V-8_5Pln.js → NotBindingText-1J0p_k4u.js} +5 -5
- package/dist/{PackageGroup-BN5njJA7.js → PackageGroup-CqrWEfCT.js} +17 -17
- package/dist/{PdfTerms-DarzYw1g.js → PdfTerms-DmrPDtae.js} +6 -6
- package/dist/{PdfViewer-DYN758PA.js → PdfViewer-C2EEwUBa.js} +37 -37
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-B3g18l5G.js → PlainHtml.vue_vue_type_script_setup_true_lang-B6pRo08V.js} +2 -2
- package/dist/{PriceHeader-B7QoQ2ZO.js → PriceHeader-BaREzUxI.js} +32 -32
- package/dist/{SearchApi-rcvoh3Av.js → SearchApi-Bf4jeQVr.js} +6 -6
- package/dist/{SendForm-DHRq76pb.js → SendForm-D5qpHxNU.js} +713 -711
- package/dist/{Setup-BWMY9S__.js → Setup-Bw8ViFxw.js} +4 -4
- package/dist/{SmartList-BpNfmUMA.js → SmartList-CzylvV8N.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-B_f6Nh_O.js → Sortable.vue_vue_type_script_setup_true_lang-DleoAiSK.js} +92 -92
- package/dist/{TermsSettings-BTv1dj63.js → TermsSettings-EoJvsPqK.js} +20 -20
- package/dist/{ThemeColorRow-r1ECSrBU.js → ThemeColorRow-D3blQMiD.js} +12 -12
- package/dist/{ToggleBinding-BBF1duBh.js → ToggleBinding-BteBsRYr.js} +7 -7
- package/dist/{UploadModal-B_l6gvuJ.js → UploadModal-Cr5sF3M-.js} +19 -19
- package/dist/{VideoPlayerInput-8e9ooR1p.js → VideoPlayerInput-BBycKv9w.js} +5 -5
- package/dist/{VideoPlayerSettings-CFOPAFlE.js → VideoPlayerSettings-BXXpTWBf.js} +12 -12
- package/dist/{VideoSelectModal-QWkNrFQC.js → VideoSelectModal-B2VPO6q4.js} +15 -15
- package/dist/{focusDrawerMixin-hy76kTBG.js → focusDrawerMixin-CCAEZjWO.js} +1 -1
- package/dist/{formDrawerState-s4ySD850.js → formDrawerState-CJyP4ce1.js} +1 -1
- package/dist/{helpers-BHIbXt8q.js → helpers-Cf9s0P7o.js} +3 -3
- package/dist/{index-Dbe2ueXc.js → index-C3pnyYI4.js} +90 -90
- package/dist/{index-CGXCI2G7.js → index-CBn1mHmK.js} +36 -36
- package/dist/{index-BTw8ZC8k.js → index-DAJmNac8.js} +6 -6
- package/dist/{index-DpubWmXg.js → index-DYJN9yoF.js} +37 -37
- package/dist/{index-ByEyJueq.js → index-DuXECcGq.js} +31 -31
- package/dist/{index-Cwf2aXw3.js → index-XzoHqJIR.js} +9 -9
- package/dist/{index-DjHfCViH.js → index-_MfZEYgE.js} +28 -27
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +154 -159
- package/dist/{main-WDVYC60Z.js → main-BayUZ9OO.js} +14904 -14950
- package/dist/{mapFormMixin-B8xN9LiX.js → mapFormMixin-Bx5_nE7g.js} +36 -42
- package/dist/omit-BKJdPM2H.js +56 -0
- package/dist/{publicSenderState-CtB0-WJX.js → publicSenderState-CblTasKp.js} +3 -3
- package/dist/{splitpanes-CwgWVXfp.js → splitpanes-DFkgBT3z.js} +6 -6
- package/dist/{template-fVxhQbOu.js → template-CvGgzazD.js} +5 -5
- package/dist/{tippy.esm-Ikv5_i_g.js → tippy.esm-CYKcJaqz.js} +222 -224
- package/dist/{useTermsModal-DxXjznop.js → useTermsModal-DFmdeFRm.js} +5 -5
- package/dist/{utils-fXD4AHot.js → utils-DTwXcY8_.js} +1 -1
- package/dist/{validation-Bf4rZ8pa.js → validation-d_jonAPy.js} +4 -4
- package/dist/widget.css +1 -1
- package/package.json +2 -2
- package/dist/CSelect-BQsWYh8F.js +0 -98
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-aq47QhPF.js +0 -51
- package/dist/DocumentLayout-Bth5tpry.js +0 -1434
- package/dist/Index-CFSuI-QL.js +0 -21
- package/dist/Index-DHzaqQH0.js +0 -4
- package/dist/omit-BhJ-wiH8.js +0 -56
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { _ as y, S as f, N as g, O as b, P as i, b as n, d, o as r, j as u, u as V, c, e as o, Q as C, R as m, T as S, t as v, x as k } from "./main-BayUZ9OO.js";
|
|
2
|
+
const x = {
|
|
3
|
+
name: "CSelect",
|
|
4
|
+
mixins: [g, b],
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
components: {
|
|
7
|
+
Spinner: f
|
|
8
|
+
},
|
|
9
|
+
props: {
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: [String, Number, Boolean, Object, Array, Function],
|
|
12
|
+
default: null
|
|
13
|
+
},
|
|
14
|
+
placeholder: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ""
|
|
17
|
+
},
|
|
18
|
+
multiple: Boolean,
|
|
19
|
+
selectClass: {
|
|
20
|
+
type: [String, Object, Array],
|
|
21
|
+
default: ""
|
|
22
|
+
},
|
|
23
|
+
nativeSize: {
|
|
24
|
+
type: [String, Number],
|
|
25
|
+
default: null
|
|
26
|
+
},
|
|
27
|
+
filled: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !1
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
emits: ["blur", "focus", "update:modelValue"],
|
|
33
|
+
data() {
|
|
34
|
+
return {
|
|
35
|
+
selected: this.modelValue,
|
|
36
|
+
_elementRef: "select"
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
computed: {
|
|
40
|
+
computedValue: {
|
|
41
|
+
get() {
|
|
42
|
+
return this.selected;
|
|
43
|
+
},
|
|
44
|
+
set(e) {
|
|
45
|
+
this.selected = e, this.$emit("update:modelValue", e), !this.isValid && this.checkHtml5Validity();
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
spanClasses() {
|
|
49
|
+
return i(
|
|
50
|
+
"flex items-center justify-start",
|
|
51
|
+
this.size,
|
|
52
|
+
this.statusType,
|
|
53
|
+
this.expanded && "w-full",
|
|
54
|
+
this.multiple && "pr-10",
|
|
55
|
+
this.selected == null && "text-gray-400"
|
|
56
|
+
);
|
|
57
|
+
},
|
|
58
|
+
selectClasses() {
|
|
59
|
+
return i([
|
|
60
|
+
"block max-w-full text-base cursor-pointer text-gray-400",
|
|
61
|
+
"appearance-none border outline-none rounded-md",
|
|
62
|
+
"hover:border-gray-500 focus:border-blue-500 disabled:hover:border-gray-200 border-gray-300 bg-white",
|
|
63
|
+
"pl-3 pr-10 h-12 py-2",
|
|
64
|
+
this.expanded && "w-full",
|
|
65
|
+
this.filled && "bg-gray-100 hover:border-gray-300 focus:border-gray-300 border-gray-200",
|
|
66
|
+
this.multiple && "h-auto py-2 px-4 space-y-2",
|
|
67
|
+
this.rounded && "rounded-l-none rounded-r-full",
|
|
68
|
+
this.selected && "text-gray-900",
|
|
69
|
+
this.selectClass
|
|
70
|
+
]);
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
watch: {
|
|
74
|
+
/**
|
|
75
|
+
* When v-model is changed:
|
|
76
|
+
* 1. Set the selected option.
|
|
77
|
+
* 2. If it's invalid, validate again.
|
|
78
|
+
*/
|
|
79
|
+
modelValue(e) {
|
|
80
|
+
this.selected = e, !this.isValid && this.checkHtml5Validity();
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}, w = ["multiple", "size"], z = {
|
|
84
|
+
key: 0,
|
|
85
|
+
value: null,
|
|
86
|
+
disabled: "",
|
|
87
|
+
hidden: ""
|
|
88
|
+
};
|
|
89
|
+
function B(e, t, l, A, N, s) {
|
|
90
|
+
const p = n("CIcon"), h = n("Spinner");
|
|
91
|
+
return r(), d("div", m({
|
|
92
|
+
class: [{ "w-full": e.expanded, "has-icons-left": e.icon }, "relative clear-both box-border cursor-pointer text-left"]
|
|
93
|
+
}, e.rootAttrs), [
|
|
94
|
+
u("span", {
|
|
95
|
+
class: k(s.spanClasses)
|
|
96
|
+
}, [
|
|
97
|
+
V(u("select", m(e.fallthroughAttrs, {
|
|
98
|
+
ref: "select",
|
|
99
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => s.computedValue = a),
|
|
100
|
+
multiple: l.multiple,
|
|
101
|
+
size: l.nativeSize,
|
|
102
|
+
class: s.selectClasses,
|
|
103
|
+
onBlur: t[1] || (t[1] = (a) => e.$emit("blur", a) && e.checkHtml5Validity()),
|
|
104
|
+
onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a))
|
|
105
|
+
}), [
|
|
106
|
+
l.placeholder && s.computedValue == null ? (r(), d("option", z, v(l.placeholder), 1)) : o("", !0),
|
|
107
|
+
S(e.$slots, "default")
|
|
108
|
+
], 16, w), [
|
|
109
|
+
[C, s.computedValue]
|
|
110
|
+
]),
|
|
111
|
+
!l.multiple && !e.loading ? (r(), c(p, {
|
|
112
|
+
key: 0,
|
|
113
|
+
type: "chevron-down",
|
|
114
|
+
size: "14",
|
|
115
|
+
class: "relative -ml-6 text-gray-900 opacity-75"
|
|
116
|
+
})) : o("", !0),
|
|
117
|
+
e.loading ? (r(), c(h, {
|
|
118
|
+
key: 1,
|
|
119
|
+
size: "16",
|
|
120
|
+
color: "grey",
|
|
121
|
+
class: "-ml-6"
|
|
122
|
+
})) : o("", !0)
|
|
123
|
+
], 2)
|
|
124
|
+
], 16);
|
|
125
|
+
}
|
|
126
|
+
const F = /* @__PURE__ */ y(x, [["render", B]]);
|
|
127
|
+
export {
|
|
128
|
+
F as C
|
|
129
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { a7 as x, ax as B, H as l, ay as C, d as o, e as N, I as e, o as s, F as w, n as S, W as d, x as r, _ as z } from "./main-BayUZ9OO.js";
|
|
2
|
+
const F = /* @__PURE__ */ x({
|
|
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 c = i, {
|
|
17
|
+
active: v,
|
|
18
|
+
animated: f,
|
|
19
|
+
width: a,
|
|
20
|
+
height: t,
|
|
21
|
+
circle: m,
|
|
22
|
+
rounded: p,
|
|
23
|
+
count: y,
|
|
24
|
+
hidden: h,
|
|
25
|
+
color: n
|
|
26
|
+
} = B(c), _ = l(() => ({
|
|
27
|
+
height: t.value === void 0 ? void 0 : isNaN(Number(t.value)) ? t.value : `${t.value}px`,
|
|
28
|
+
width: a.value === void 0 ? void 0 : isNaN(Number(a.value)) ? a.value : `${a.value}px`,
|
|
29
|
+
borderRadius: m.value ? "50%" : void 0,
|
|
30
|
+
background: n.value ? n.value : void 0
|
|
31
|
+
})), u = C(), g = l(() => u.style), k = l(() => u.class);
|
|
32
|
+
return (I, R) => e(v) ? (s(), o("div", {
|
|
33
|
+
key: 0,
|
|
34
|
+
class: r(["w-full", { invisible: e(h) }, k.value]),
|
|
35
|
+
style: d(g.value)
|
|
36
|
+
}, [
|
|
37
|
+
(s(!0), o(w, null, S(e(y), (b) => (s(), o("div", {
|
|
38
|
+
key: b,
|
|
39
|
+
class: r(["mt-2 w-full bg-gray-100 bg-[length:400%_100%] leading-none after:content-['\\00a0']", { "rounded-sm": e(p), "animate-skeleton": e(f) }]),
|
|
40
|
+
style: d(_.value)
|
|
41
|
+
}, null, 6))), 128))
|
|
42
|
+
], 6)) : N("", !0);
|
|
43
|
+
}
|
|
44
|
+
}), A = /* @__PURE__ */ z(F, [["__scopeId", "data-v-700c0d24"]]);
|
|
45
|
+
export {
|
|
46
|
+
A as C
|
|
47
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as O } from "./SearchApi-
|
|
2
|
-
import { _ as
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
1
|
+
import { S as O } from "./SearchApi-Bf4jeQVr.js";
|
|
2
|
+
import { _ as I, N as E, O as F, a1 as H, b as g, d as c, o as d, f as V, R as S, ah as m, am as v, w as p, u as $, j as w, W as T, x as C, e as f, T as y, F as x, n as _, t as h, v as A, ak as L, aF as R, c as b, q as D } from "./main-BayUZ9OO.js";
|
|
3
|
+
import { g as P, r as N, c as q } from "./helpers-Cf9s0P7o.js";
|
|
4
|
+
const z = {
|
|
5
5
|
name: "CAutocomplete",
|
|
6
6
|
components: {
|
|
7
7
|
CInput: H
|
|
@@ -190,13 +190,13 @@ const q = {
|
|
|
190
190
|
() => this.checkIfReachedTheEndOfScroll(e)
|
|
191
191
|
);
|
|
192
192
|
}
|
|
193
|
-
this.appendToBody && (this.$data._bodyEl =
|
|
193
|
+
this.appendToBody && (this.$data._bodyEl = q(this.$refs.dropdown), this.updateAppendToBody());
|
|
194
194
|
},
|
|
195
195
|
beforeUnmount() {
|
|
196
196
|
typeof window < "u" && (document.removeEventListener("click", this.clickedOutside), this.dropdownPosition === "auto" && window.removeEventListener(
|
|
197
197
|
"resize",
|
|
198
198
|
this.calcDropdownInViewportVertical
|
|
199
|
-
)), this.checkInfiniteScroll && this.$refs.dropdown && this.$refs.dropdown.querySelector(".dropdown-content") && this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll", this.checkIfReachedTheEndOfScroll), this.appendToBody &&
|
|
199
|
+
)), this.checkInfiniteScroll && this.$refs.dropdown && this.$refs.dropdown.querySelector(".dropdown-content") && this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll", this.checkIfReachedTheEndOfScroll), this.appendToBody && N(this.$data._bodyEl), clearTimeout(this.timeOutID);
|
|
200
200
|
},
|
|
201
201
|
methods: {
|
|
202
202
|
/**
|
|
@@ -255,7 +255,7 @@ const q = {
|
|
|
255
255
|
*/
|
|
256
256
|
getValue(e) {
|
|
257
257
|
if (e !== null)
|
|
258
|
-
return typeof this.customFormatter < "u" ? this.customFormatter(e) : typeof e == "object" ?
|
|
258
|
+
return typeof this.customFormatter < "u" ? this.customFormatter(e) : typeof e == "object" ? P(e, this.field) : e;
|
|
259
259
|
},
|
|
260
260
|
/**
|
|
261
261
|
* Check if the scroll list inside the dropdown
|
|
@@ -382,23 +382,23 @@ 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(L, { name: "fade" }, {
|
|
386
386
|
default: p(() => [
|
|
387
387
|
$(w("div", {
|
|
388
388
|
ref: "dropdown",
|
|
389
|
-
class:
|
|
390
|
-
style:
|
|
389
|
+
class: C([{ "is-opened-top": o.isOpenedTop && !i.appendToBody }, "dropdown-menu"]),
|
|
390
|
+
style: T(s.style)
|
|
391
391
|
}, [
|
|
392
392
|
$(w("div", {
|
|
393
|
-
style:
|
|
393
|
+
style: T(o.contentStyle),
|
|
394
394
|
class: "dropdown-content"
|
|
395
395
|
}, [
|
|
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, _(i.data, (n, u) => (d(), c("a", {
|
|
400
400
|
key: u,
|
|
401
|
-
class:
|
|
401
|
+
class: C([{ "is-hovered": n === s.hovered }, "dropdown-item"]),
|
|
402
402
|
onClick: (k) => o.setSelected(n, void 0, k)
|
|
403
403
|
}, [
|
|
404
404
|
o.hasDefaultSlot ? y(e.$slots, "default", {
|
|
@@ -414,17 +414,17 @@ function j(e, t, i, l, s, o) {
|
|
|
414
414
|
y(e.$slots, "footer")
|
|
415
415
|
])) : f("", !0)
|
|
416
416
|
], 4), [
|
|
417
|
-
[
|
|
417
|
+
[A, s.isActive]
|
|
418
418
|
])
|
|
419
419
|
], 6), [
|
|
420
|
-
[
|
|
420
|
+
[A, o.isDropdownOpen]
|
|
421
421
|
])
|
|
422
422
|
]),
|
|
423
423
|
_: 3
|
|
424
424
|
})
|
|
425
425
|
], 16);
|
|
426
426
|
}
|
|
427
|
-
const
|
|
427
|
+
const X = /* @__PURE__ */ I(z, [["render", j]]), Y = {
|
|
428
428
|
i18nOptions: {
|
|
429
429
|
namespaces: "components",
|
|
430
430
|
keyPrefix: "account.documentForm.clients"
|
|
@@ -432,7 +432,7 @@ const J = /* @__PURE__ */ b(q, [["render", j]]), X = {
|
|
|
432
432
|
name: "ClientAutocomplete",
|
|
433
433
|
components: {
|
|
434
434
|
SearchApi: O,
|
|
435
|
-
CAutocomplete:
|
|
435
|
+
CAutocomplete: X
|
|
436
436
|
},
|
|
437
437
|
props: {
|
|
438
438
|
searchEnabled: {
|
|
@@ -455,7 +455,7 @@ const J = /* @__PURE__ */ b(q, [["render", j]]), X = {
|
|
|
455
455
|
emits: ["input", "setClient", "add"],
|
|
456
456
|
data() {
|
|
457
457
|
return {
|
|
458
|
-
convertToNewClient:
|
|
458
|
+
convertToNewClient: R,
|
|
459
459
|
results: [],
|
|
460
460
|
// results when searching for existing endCustomer
|
|
461
461
|
searchQuery: ""
|
|
@@ -472,13 +472,13 @@ const J = /* @__PURE__ */ b(q, [["render", j]]), X = {
|
|
|
472
472
|
}));
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
},
|
|
475
|
+
}, G = { style: { "line-height": "1.5" } }, J = { 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(),
|
|
481
|
+
return d(), b(u, { "custom-search": { endCustomer: !0 } }, {
|
|
482
482
|
default: p(({ fetch: k, isLoading: B }) => [
|
|
483
483
|
V(n, S({
|
|
484
484
|
placeholder: e.$t("search.placeholder"),
|
|
@@ -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", G, [
|
|
498
|
+
w("div", J, 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(), b(a, {
|
|
505
505
|
key: 0,
|
|
506
506
|
type: "secondary",
|
|
507
507
|
pattern: "tertiary",
|
|
@@ -510,7 +510,7 @@ function ie(e, t, i, l, s, o) {
|
|
|
510
510
|
onClick: t[0] || (t[0] = (r) => e.$emit("add"))
|
|
511
511
|
}, {
|
|
512
512
|
default: p(() => [
|
|
513
|
-
|
|
513
|
+
D(h(e.$t("_common:add")), 1)
|
|
514
514
|
]),
|
|
515
515
|
_: 1
|
|
516
516
|
})) : f("", !0)
|
|
@@ -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__ */ I(Y, [["render", ie]]);
|
|
529
529
|
export {
|
|
530
530
|
le as C,
|
|
531
|
-
|
|
531
|
+
X as a
|
|
532
532
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { C as L } from "./ClientAutocomplete-
|
|
2
|
-
import { _ as z,
|
|
3
|
-
import {
|
|
4
|
-
import { _ as le } from "./CFormField.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { C as ae } from "./CPhoneInput-
|
|
6
|
-
import { u as ie } from "./index-
|
|
7
|
-
import {
|
|
8
|
-
import { o as de } from "./omit-
|
|
1
|
+
import { C as L } from "./ClientAutocomplete-DOHX9Igy.js";
|
|
2
|
+
import { _ as z, b5 as j, d as h, o as f, u as Z, j as i, b6 as Y, am as N, x as y, T as G, ah as H, a as B, aq as P, aa as K, a6 as J, b as g, f as n, c as b, e as v, t as r, w as a, F as O, n as F, q as C, m as Q, ap as X, ae as k, aF as _, b7 as x, g as U, y as ee, i as te } from "./main-BayUZ9OO.js";
|
|
3
|
+
import { w as E, C as oe, a as ne } from "./CDropdownItem-E-kRDIiy.js";
|
|
4
|
+
import { _ as le } from "./CFormField.vue_vue_type_script_setup_true_lang-Bi0MjQdW.js";
|
|
5
|
+
import { C as ae } from "./CPhoneInput-9AwTJm-0.js";
|
|
6
|
+
import { u as ie } from "./index-C3pnyYI4.js";
|
|
7
|
+
import { a as $, r as se, e as re } from "./index-XzoHqJIR.js";
|
|
8
|
+
import { o as de } from "./omit-BKJdPM2H.js";
|
|
9
9
|
const me = {
|
|
10
10
|
name: "CRadio",
|
|
11
11
|
mixins: [j]
|
|
@@ -16,7 +16,7 @@ function fe(e, t, s, d, u, l) {
|
|
|
16
16
|
class: y([[`is-${e.size}`, { "is-disabled": e.disabled }], "b-radio radio"]),
|
|
17
17
|
disabled: e.disabledOrUndefined,
|
|
18
18
|
onClick: t[2] || (t[2] = (...c) => e.focus && e.focus(...c)),
|
|
19
|
-
onKeydown: t[3] || (t[3] =
|
|
19
|
+
onKeydown: t[3] || (t[3] = H(N((c) => e.$refs.label.click(), ["prevent"]), ["enter"]))
|
|
20
20
|
}, [
|
|
21
21
|
Z(i("input", {
|
|
22
22
|
ref: "input",
|
|
@@ -29,13 +29,13 @@ function fe(e, t, s, d, u, l) {
|
|
|
29
29
|
onClick: t[1] || (t[1] = N(() => {
|
|
30
30
|
}, ["stop"]))
|
|
31
31
|
}, null, 8, pe), [
|
|
32
|
-
[
|
|
32
|
+
[Y, e.computedValue]
|
|
33
33
|
]),
|
|
34
34
|
i("span", {
|
|
35
35
|
class: y([`is-${e.type}`, "check"])
|
|
36
36
|
}, null, 2),
|
|
37
37
|
i("span", ce, [
|
|
38
|
-
|
|
38
|
+
G(e.$slots, "default")
|
|
39
39
|
])
|
|
40
40
|
], 42, ue);
|
|
41
41
|
}
|
|
@@ -185,7 +185,7 @@ const he = {
|
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
}, { mapFields: ve } =
|
|
188
|
+
}, { mapFields: ve } = P({
|
|
189
189
|
getterType: "forms/getField",
|
|
190
190
|
mutationType: "forms/updateField"
|
|
191
191
|
}), ye = {
|
|
@@ -197,8 +197,8 @@ const he = {
|
|
|
197
197
|
components: {
|
|
198
198
|
ClientAutocomplete: L,
|
|
199
199
|
CCheckbox: K,
|
|
200
|
-
CDropdown:
|
|
201
|
-
CDropdownItem:
|
|
200
|
+
CDropdown: ne,
|
|
201
|
+
CDropdownItem: oe,
|
|
202
202
|
CField: le,
|
|
203
203
|
CPhoneInput: ae,
|
|
204
204
|
CRadio: ge
|
|
@@ -313,7 +313,7 @@ const he = {
|
|
|
313
313
|
reverseVat: "endCustomer.reverseVat",
|
|
314
314
|
doUpdateEndCustomer: "endCustomer.doUpdateEndCustomer"
|
|
315
315
|
}),
|
|
316
|
-
...
|
|
316
|
+
...B({
|
|
317
317
|
isPosting: "endCustomers/isPosting",
|
|
318
318
|
companyRegion: "application/companyRegion",
|
|
319
319
|
feature: "application/feature"
|
|
@@ -375,7 +375,7 @@ const he = {
|
|
|
375
375
|
}, Me = { class: "type-toggle" }, Oe = { key: 0 }, Fe = {
|
|
376
376
|
key: 0,
|
|
377
377
|
class: "dropdown-field-wrapper flex min-w-0 flex-col"
|
|
378
|
-
}, ze = { class: "my-1 text-sm text-gray-600" }, Re = { class: "py-1 leading-5" }, De = { class: "text-xs opacity-70" },
|
|
378
|
+
}, ze = { class: "my-1 text-sm text-gray-600" }, Re = { class: "py-1 leading-5" }, De = { class: "text-xs opacity-70" }, qe = { style: { "line-height": "1.25", padding: "4px 0" } }, Ue = { style: { "font-size": "12px", opacity: "0.7" } }, Ae = {
|
|
379
379
|
key: 1,
|
|
380
380
|
class: "dropdown-field-wrapper flex min-w-0 flex-col"
|
|
381
381
|
}, Be = { class: "my-1 text-sm text-gray-600" }, Pe = { class: "max-w-[calc(16_*_var(--rem))] py-1 leading-5" }, Ee = { class: "truncate text-xs opacity-70" }, Te = { style: { "line-height": "1.25", padding: "4px 0" } }, We = {
|
|
@@ -507,7 +507,7 @@ function je(e, t, s, d, u, l) {
|
|
|
507
507
|
"icon-props": {
|
|
508
508
|
stroke: "hsl(0, 0%, 50%)"
|
|
509
509
|
},
|
|
510
|
-
onClick: (
|
|
510
|
+
onClick: (q) => e.$emit("update:document-role", o)
|
|
511
511
|
}, {
|
|
512
512
|
default: a(() => [
|
|
513
513
|
i("div", Ne, [
|
|
@@ -853,12 +853,12 @@ function je(e, t, s, d, u, l) {
|
|
|
853
853
|
"icon-props": {
|
|
854
854
|
stroke: "hsl(0, 0%, 50%)"
|
|
855
855
|
},
|
|
856
|
-
onClick: (
|
|
856
|
+
onClick: (q) => e.$emit("update:document-role", o)
|
|
857
857
|
}, {
|
|
858
858
|
default: a(() => [
|
|
859
|
-
i("div",
|
|
859
|
+
i("div", qe, [
|
|
860
860
|
i("div", null, r(e.$t(`_common:documentRole.${o}.description`)), 1),
|
|
861
|
-
i("div",
|
|
861
|
+
i("div", Ue, r(e.$t(`_common:documentRole.${o}.label`)), 1)
|
|
862
862
|
])
|
|
863
863
|
]),
|
|
864
864
|
_: 2
|
|
@@ -893,7 +893,7 @@ function je(e, t, s, d, u, l) {
|
|
|
893
893
|
default: a(() => [
|
|
894
894
|
(f(!0), h(O, null, F(s.signOptions, (o) => (f(), b(I, {
|
|
895
895
|
key: o,
|
|
896
|
-
onClick: (
|
|
896
|
+
onClick: (q) => e.$emit("update:answer-method", {
|
|
897
897
|
...s.answerMethod,
|
|
898
898
|
accept: o
|
|
899
899
|
})
|
|
@@ -930,10 +930,10 @@ function je(e, t, s, d, u, l) {
|
|
|
930
930
|
], 2))
|
|
931
931
|
]);
|
|
932
932
|
}
|
|
933
|
-
const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec"]]), { mapFields:
|
|
933
|
+
const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec"]]), { mapFields: Ye } = P({
|
|
934
934
|
getterType: "forms/getField",
|
|
935
935
|
mutationType: "forms/updateField"
|
|
936
|
-
}),
|
|
936
|
+
}), Ge = {
|
|
937
937
|
name: "ClientModal",
|
|
938
938
|
i18nOptions: {
|
|
939
939
|
namespaces: "clientModal",
|
|
@@ -1017,19 +1017,19 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
|
|
|
1017
1017
|
};
|
|
1018
1018
|
},
|
|
1019
1019
|
computed: {
|
|
1020
|
-
...
|
|
1020
|
+
...Ye({
|
|
1021
1021
|
endCustomer: "endCustomer"
|
|
1022
1022
|
}),
|
|
1023
|
-
...
|
|
1023
|
+
...X("forms", {
|
|
1024
1024
|
formData: (e) => e.document2
|
|
1025
1025
|
}),
|
|
1026
|
-
...
|
|
1026
|
+
...B({
|
|
1027
1027
|
can: "application/can",
|
|
1028
1028
|
feature: "application/feature",
|
|
1029
1029
|
defaultClientType: "endCustomers/defaultClientType"
|
|
1030
1030
|
}),
|
|
1031
1031
|
validateOrgNo() {
|
|
1032
|
-
return !!(this.feature("bankId") || this.isPublicForm &&
|
|
1032
|
+
return !!(this.feature("bankId") || this.isPublicForm && ee[te.brand].defaultRegion === "SE");
|
|
1033
1033
|
},
|
|
1034
1034
|
existsOnDocument() {
|
|
1035
1035
|
return !!k(this.formData, `clients[${this.documentClientIndex}]`);
|
|
@@ -1055,13 +1055,13 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
|
|
|
1055
1055
|
);
|
|
1056
1056
|
},
|
|
1057
1057
|
methods: {
|
|
1058
|
-
...
|
|
1059
|
-
saveClient:
|
|
1060
|
-
showMessage:
|
|
1058
|
+
...Q({
|
|
1059
|
+
saveClient: U.FORM_SUBMIT_ENDCUSTOMER,
|
|
1060
|
+
showMessage: U.SHOW_MESSAGE
|
|
1061
1061
|
}),
|
|
1062
1062
|
omit: de,
|
|
1063
1063
|
loadForm(e = {}) {
|
|
1064
|
-
this.storedNewClient = Object.assign(this.storedNewClient, e), this.endCustomer =
|
|
1064
|
+
this.storedNewClient = Object.assign(this.storedNewClient, e), this.endCustomer = x({
|
|
1065
1065
|
type: this.defaultClientType(),
|
|
1066
1066
|
...e
|
|
1067
1067
|
});
|
|
@@ -1083,7 +1083,7 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
|
|
|
1083
1083
|
}
|
|
1084
1084
|
this.setFormValue({
|
|
1085
1085
|
key: `clients[${this.documentClientIndex}]`,
|
|
1086
|
-
value:
|
|
1086
|
+
value: _(
|
|
1087
1087
|
{ ...this.endCustomer, ...e && { id: e } },
|
|
1088
1088
|
{ ...this.storedNewClient }
|
|
1089
1089
|
)
|
|
@@ -1128,14 +1128,14 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
|
|
|
1128
1128
|
});
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
1131
|
-
},
|
|
1131
|
+
}, He = { class: "max-sm:h-initial relative mx-auto flex flex-col items-center rounded-xl bg-white p-10 text-lg max-sm:min-h-full max-sm:w-full max-sm:rounded-none max-sm:pt-16" };
|
|
1132
1132
|
function Ke(e, t, s, d, u, l) {
|
|
1133
1133
|
const c = g("CButton"), m = g("FormClient");
|
|
1134
1134
|
return f(), h("div", {
|
|
1135
1135
|
class: "font-primary fixed inset-0 z-[1000] grid place-items-center overflow-auto bg-black bg-opacity-10 max-sm:block max-sm:min-h-full max-sm:w-full max-sm:overflow-auto sm:py-4",
|
|
1136
1136
|
onClickPassive: t[4] || (t[4] = N((...p) => l.close && l.close(...p), ["self"]))
|
|
1137
1137
|
}, [
|
|
1138
|
-
i("div",
|
|
1138
|
+
i("div", He, [
|
|
1139
1139
|
n(c, {
|
|
1140
1140
|
class: y([u.showMore ? "" : "sm:!hidden", "z-2 absolute right-4 top-4"]),
|
|
1141
1141
|
pattern: "tertiary",
|
|
@@ -1177,7 +1177,7 @@ function Ke(e, t, s, d, u, l) {
|
|
|
1177
1177
|
])
|
|
1178
1178
|
], 32);
|
|
1179
1179
|
}
|
|
1180
|
-
const Je = /* @__PURE__ */ z(
|
|
1180
|
+
const Je = /* @__PURE__ */ z(Ge, [["render", Ke]]), lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1181
1181
|
__proto__: null,
|
|
1182
1182
|
default: Je
|
|
1183
1183
|
}, Symbol.toStringTag, { value: "Module" }));
|