@cling-se/widget 0.19.6 → 0.19.7
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 +7 -1
- package/dist/{AddClientCallout-DtVRTCr_.js → AddClientCallout-BdGevuQo.js} +6 -6
- package/dist/{AnswerModal-ClyWtHBj.js → AnswerModal-DfjF-RVP.js} +3 -3
- package/dist/{AttachmentItem-COoLlAum.js → AttachmentItem-BEd3qVAo.js} +17 -17
- package/dist/{BaseUpload-DlaYaxxr.js → BaseUpload-Zm4EX8ir.js} +2 -2
- package/dist/{BlockMedia-IMu4YO3J.js → BlockMedia-ZHaA4OMV.js} +14 -14
- package/dist/{CCallout-C32zwICP.js → CCallout-BlglVZrm.js} +3 -3
- package/dist/{CCurrencyDropdown-D4ZxTioo.js → CCurrencyDropdown-BzvKsm1N.js} +9 -9
- package/dist/{CDropdownItem-BuQONogL.js → CDropdownItem-B5rgSee7.js} +7 -7
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-KdkAe_wn.js → CFormField.vue_vue_type_script_setup_true_lang-CVy64zGe.js} +18 -18
- package/dist/{CPhoneFormat-C2K78cmZ.js → CPhoneFormat-DaDNMlmK.js} +1 -1
- package/dist/{CPhoneInput-DolVFzrL.js → CPhoneInput-BUogm59J.js} +18 -18
- package/dist/{CPriceInput-SbRlrDnD.js → CPriceInput-Cd5OHMJS.js} +11 -11
- package/dist/CSelect-CmoAbVkP.js +129 -0
- package/dist/CSkeleton-BF6EYj8H.js +47 -0
- package/dist/{ClientAutocomplete-vgxEGqNU.js → ClientAutocomplete-CHfp4YiV.js} +18 -18
- package/dist/{ClientModal-B8ip7v99.js → ClientModal-Com23Qgc.js} +31 -31
- package/dist/{ColorPicker-BrfM9S1s.js → ColorPicker-BzdHtZep.js} +26 -26
- package/dist/{CompanyModal-DJZezqM5.js → CompanyModal-CGjSgTEJ.js} +16 -16
- package/dist/{ContentWrapper-zJ4MCnSC.js → ContentWrapper-CS-Bh4Bk.js} +17 -17
- package/dist/{CoverBlockSettings-Cz0NUYXX.js → CoverBlockSettings-DDHQzLdc.js} +28 -28
- package/dist/{DocAnswer-EWarWnbt.js → DocAnswer-Cmdsw_CW.js} +2 -2
- package/dist/{DocDetails-CGHN3tbO.js → DocDetails-C5Vzh550.js} +28 -28
- package/dist/{DocForm-BLTap-Bb.js → DocForm-DEUVV11n.js} +994 -960
- package/dist/{DocFormSend-_jCPFI9r.js → DocFormSend-Dt7N3wCz.js} +2 -2
- package/dist/{DocLinks-D9Ok4HvN.js → DocLinks-C6-Er0rk.js} +2 -2
- package/dist/{DocModalBase-fQz5UuCF.js → DocModalBase-DbuJwHXi.js} +1 -1
- package/dist/{DocPrint-Cua_U7zt.js → DocPrint-D_uxg7qD.js} +6 -6
- package/dist/{DocReceipt-Cg2hiSby.js → DocReceipt-D6LP9UAa.js} +16 -16
- package/dist/{DocSendReminder-Dh7G9kbZ.js → DocSendReminder-DopLhyjz.js} +8 -8
- package/dist/{DocTextEditor-Ds4Cbg-2.js → DocTextEditor-DeZtzbgm.js} +8 -8
- package/dist/{DocTimeline-DpWUMwJE.js → DocTimeline-DAWZu_KT.js} +25 -25
- package/dist/{DocumentClient-DUqHQVSe.js → DocumentClient-kxnT6k9s.js} +7 -7
- package/dist/{DocumentLayout-Bth5tpry.js → DocumentLayout-DaVz9SGF.js} +68 -68
- package/dist/{DocumentLogotype-BiekV9-j.js → DocumentLogotype-G-a7gBIC.js} +6 -6
- package/dist/{DocumentVoided-D_YMyeV8.js → DocumentVoided-SG_ShMmc.js} +5 -5
- package/dist/{EmbedInput-Crx-LEGc.js → EmbedInput-CJL5y3Zj.js} +9 -9
- package/dist/{EmbedSettings-xIGtEN7L.js → EmbedSettings-B0X6A9Uy.js} +9 -9
- package/dist/{ErrorCallout-D_fUVD4I.js → ErrorCallout-xCSfpQWV.js} +7 -7
- package/dist/{FilePreviewModal-av2lE91B.js → FilePreviewModal-Da_pMUoO.js} +6 -6
- package/dist/{Flag-CI52SH_9.js → Flag-wXawyyMO.js} +1 -1
- package/dist/{HeaderSettings-Ip634NWe.js → HeaderSettings-CD3y6-uY.js} +37 -37
- package/dist/{ImageSelectModal-DNtR86H7.js → ImageSelectModal-DatnXHH1.js} +5 -5
- package/dist/{ImageUploadWrapper-Co43CWCP.js → ImageUploadWrapper-CwKe3Iq7.js} +33 -33
- package/dist/{Index-CeJRMtmh.js → Index-1WPEpaVr.js} +4 -4
- package/dist/{Index-BY2kaUsM.js → Index-9ZFW8Ka7.js} +4 -4
- package/dist/{Index-DlGSVN83.js → Index-B53eUt7Y.js} +10 -10
- package/dist/{Index-bvCcp9l6.js → Index-BJf4YdYB.js} +14 -14
- package/dist/{Index-DWIpdRX-.js → Index-BTDQax0X.js} +16 -16
- package/dist/{Index-BMwBpYpa.js → Index-Bb6JZC8l.js} +4 -4
- package/dist/{Index-DwIfORsz.js → Index-BbVHxVFJ.js} +20 -20
- package/dist/{Index-DOCeODtL.js → Index-BlownK7_.js} +6 -6
- package/dist/{Index-DKuTOk0t.js → Index-BvAqglwa.js} +33 -33
- package/dist/{Index-CTQyX_63.js → Index-C-EUJjuk.js} +2 -2
- package/dist/{Index-uDG1i8F-.js → Index-C2-s62x7.js} +5 -5
- package/dist/{Index-DGwF2cvQ.js → Index-COF0evH4.js} +10 -10
- package/dist/{Index-CxAd29-m.js → Index-CQboLS2e.js} +5 -5
- package/dist/{Index-CFSuI-QL.js → Index-CTrX3VRa.js} +5 -5
- package/dist/{Index-CZqJYh7u.js → Index-CXjLkK_n.js} +13 -13
- package/dist/{Index-C-Suk6Qs.js → Index-Ciy9lnhS.js} +3 -3
- package/dist/{Index-C92jPUcy.js → Index-Cjg3X74T.js} +4 -4
- package/dist/{Index-chiZsMLh.js → Index-Ck-_9woY.js} +29 -29
- package/dist/{Index-Bj81gIof.js → Index-Ct735UtM.js} +2 -2
- package/dist/{Index-xVX7aGXv.js → Index-D-gJQEAD.js} +3 -3
- package/dist/{Index-BdW5_mV-.js → Index-DAkq_7Ws.js} +11 -11
- package/dist/{Index-DQbbxV0m.js → Index-DOeHci16.js} +6 -6
- package/dist/{Index-PzcQhAgF.js → Index-DfuzxXzD.js} +2 -2
- package/dist/{Index-CV5RbQn5.js → Index-Dfy0PsiW.js} +25 -25
- package/dist/{Index-Bgm5PHos.js → Index-DjfbgA_7.js} +19 -19
- package/dist/{Index-CmLvcWe3.js → Index-DkQ8_VkX.js} +8 -8
- package/dist/{Index-CJi8Remu.js → Index-Dxg4gEKd.js} +18 -18
- package/dist/{Index-DOiPKAhk.js → Index-DzdEqsZB.js} +8 -8
- package/dist/{Index-BF1bZUso.js → Index-GPliVrhC.js} +5 -5
- package/dist/{Index-4ZURK6a8.js → Index-NnBwJv9v.js} +6 -6
- package/dist/{Index-C6KPbnAq.js → Index-ezY0DbcB.js} +10 -10
- package/dist/Index-qFx0G3fC.js +4 -0
- package/dist/{Index-D_X2OZA3.js → Index-yS5OPrJJ.js} +2 -2
- package/dist/{Index-Ci_PUYqE.js → Index-y_AJP61r.js} +12 -12
- package/dist/{Index.vue_vue_type_script_lang-WK-YdZ30.js → Index.vue_vue_type_script_lang-B3RoDZmC.js} +2 -2
- package/dist/{InputToggleRow-CWvEi0HF.js → InputToggleRow-D5rvQpAw.js} +11 -11
- package/dist/{ManualPopover-BSX3bOr0.js → ManualPopover-Bd-GsLGT.js} +6 -6
- package/dist/{MediaWrapper-D8BXMoDz.js → MediaWrapper-Ci0XPCcb.js} +3 -3
- package/dist/{NotBindingText-V-8_5Pln.js → NotBindingText-DhndGZE3.js} +2 -2
- package/dist/{PackageGroup-BN5njJA7.js → PackageGroup-4Jt9ClVO.js} +17 -17
- package/dist/{PdfTerms-DarzYw1g.js → PdfTerms-CGeJDJpQ.js} +5 -5
- package/dist/{PdfViewer-DYN758PA.js → PdfViewer-o2vb6Fya.js} +78 -78
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-B3g18l5G.js → PlainHtml.vue_vue_type_script_setup_true_lang-BtnMqKcE.js} +1 -1
- package/dist/{PriceHeader-B7QoQ2ZO.js → PriceHeader-BsObxLHK.js} +31 -31
- package/dist/{SearchApi-rcvoh3Av.js → SearchApi-ZczKsBb7.js} +1 -1
- package/dist/{SendForm-DHRq76pb.js → SendForm-D5jqkofo.js} +8 -8
- package/dist/{Setup-BWMY9S__.js → Setup-CdZzn0qW.js} +1 -1
- package/dist/{SmartList-BpNfmUMA.js → SmartList-B36ffGAZ.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-Di1urzqu.js} +31 -31
- package/dist/{TermsSettings-BTv1dj63.js → TermsSettings-CmAHVOuX.js} +14 -14
- package/dist/{ThemeColorRow-r1ECSrBU.js → ThemeColorRow-CScTIcPB.js} +6 -6
- package/dist/{ToggleBinding-BBF1duBh.js → ToggleBinding-CVZZlpBR.js} +4 -4
- package/dist/{UploadModal-B_l6gvuJ.js → UploadModal-2tXsmGMM.js} +4 -4
- package/dist/{VideoPlayerInput-8e9ooR1p.js → VideoPlayerInput-BDzjZ2St.js} +9 -9
- package/dist/{VideoPlayerSettings-CFOPAFlE.js → VideoPlayerSettings-BLAEZw4C.js} +6 -6
- package/dist/{VideoSelectModal-QWkNrFQC.js → VideoSelectModal-iqgmg85K.js} +16 -16
- package/dist/{focusDrawerMixin-hy76kTBG.js → focusDrawerMixin-BmyahQiE.js} +1 -1
- package/dist/{formDrawerState-s4ySD850.js → formDrawerState-B7ASfNsk.js} +1 -1
- package/dist/{helpers-BHIbXt8q.js → helpers-BVP2Pul1.js} +5 -5
- package/dist/{index-Dbe2ueXc.js → index-B86TZXOh.js} +32 -32
- package/dist/{index-ByEyJueq.js → index-BDb4bM0D.js} +17 -17
- package/dist/{index-Cwf2aXw3.js → index-BH5vwOzR.js} +3 -3
- package/dist/{index-DpubWmXg.js → index-Cd4S4J-L.js} +56 -56
- package/dist/{index-DjHfCViH.js → index-CsbYpQqP.js} +44 -43
- package/dist/{index-CGXCI2G7.js → index-D0Qee2OX.js} +34 -34
- package/dist/{index-BTw8ZC8k.js → index-DXNrJnEc.js} +7 -7
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +135 -135
- package/dist/{main-WDVYC60Z.js → main-C2Q8_T2Y.js} +3196 -3193
- package/dist/{mapFormMixin-B8xN9LiX.js → mapFormMixin-CjfqZnmd.js} +6 -6
- package/dist/{omit-BhJ-wiH8.js → omit-DzlbtNCX.js} +4 -4
- package/dist/{publicSenderState-CtB0-WJX.js → publicSenderState-C3ELW8Cw.js} +3 -3
- package/dist/{splitpanes-CwgWVXfp.js → splitpanes-CuxtOZyV.js} +1 -1
- package/dist/{template-fVxhQbOu.js → template-DzrGrOEa.js} +1 -1
- package/dist/{tippy.esm-Ikv5_i_g.js → tippy.esm-Bf86qEue.js} +89 -89
- package/dist/{useTermsModal-DxXjznop.js → useTermsModal-Be4HLDDm.js} +6 -6
- package/dist/{utils-fXD4AHot.js → utils-a_Odlqb5.js} +1 -1
- package/dist/{validation-Bf4rZ8pa.js → validation-38muBV6x.js} +2 -2
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/dist/CSelect-BQsWYh8F.js +0 -98
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-aq47QhPF.js +0 -51
- package/dist/Index-DHzaqQH0.js +0 -4
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { _ as y, $ as f, a0 as g, S as b, a1 as i, o as r, b as n, j as d, I as V, a2 as C, D as u, t as S, f as o, B as v, c, y as k, e as m } from "./main-C2Q8_T2Y.js";
|
|
2
|
+
const w = {
|
|
3
|
+
name: "CSelect",
|
|
4
|
+
mixins: [f, g],
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
components: {
|
|
7
|
+
Spinner: b
|
|
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
|
+
}, x = ["multiple", "size"], B = {
|
|
84
|
+
key: 0,
|
|
85
|
+
value: null,
|
|
86
|
+
disabled: "",
|
|
87
|
+
hidden: ""
|
|
88
|
+
};
|
|
89
|
+
function z(e, t, l, A, j, s) {
|
|
90
|
+
const p = m("CIcon"), h = m("Spinner");
|
|
91
|
+
return r(), n("div", u({
|
|
92
|
+
class: [{ "w-full": e.expanded, "has-icons-left": e.icon }, "relative clear-both box-border cursor-pointer text-left"]
|
|
93
|
+
}, e.rootAttrs), [
|
|
94
|
+
d("span", {
|
|
95
|
+
class: k(s.spanClasses)
|
|
96
|
+
}, [
|
|
97
|
+
V(d("select", u(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(), n("option", B, S(l.placeholder), 1)) : o("", !0),
|
|
107
|
+
v(e.$slots, "default")
|
|
108
|
+
], 16, x), [
|
|
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 M = /* @__PURE__ */ y(w, [["render", z]]);
|
|
127
|
+
export {
|
|
128
|
+
M as C
|
|
129
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { aj as B, as as C, Q as l, at as N, U as e, o as n, b as s, F as w, G as x, y as d, Y as r, f as S, _ as z } from "./main-C2Q8_T2Y.js";
|
|
2
|
+
const F = /* @__PURE__ */ B({
|
|
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: f,
|
|
18
|
+
animated: m,
|
|
19
|
+
width: a,
|
|
20
|
+
height: t,
|
|
21
|
+
circle: v,
|
|
22
|
+
rounded: p,
|
|
23
|
+
count: y,
|
|
24
|
+
hidden: h,
|
|
25
|
+
color: o
|
|
26
|
+
} = C(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: v.value ? "50%" : void 0,
|
|
30
|
+
background: o.value ? o.value : void 0
|
|
31
|
+
})), u = N(), g = l(() => u.style), b = l(() => u.class);
|
|
32
|
+
return (R, $) => e(f) ? (n(), s("div", {
|
|
33
|
+
key: 0,
|
|
34
|
+
class: d(["w-full", { invisible: e(h) }, b.value]),
|
|
35
|
+
style: r(g.value)
|
|
36
|
+
}, [
|
|
37
|
+
(n(!0), s(w, null, x(e(y), (k) => (n(), s("div", {
|
|
38
|
+
key: k,
|
|
39
|
+
class: d(["mt-2 w-full bg-gray-100 bg-[length:400%_100%] leading-none after:content-['\\00a0']", { "rounded-sm": e(p), "animate-skeleton": e(m) }]),
|
|
40
|
+
style: r(_.value)
|
|
41
|
+
}, null, 6))), 128))
|
|
42
|
+
], 6)) : S("", !0);
|
|
43
|
+
}
|
|
44
|
+
}), A = /* @__PURE__ */ z(F, [["__scopeId", "data-v-700c0d24"]]);
|
|
45
|
+
export {
|
|
46
|
+
A as C
|
|
47
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { S as O } from "./SearchApi-
|
|
2
|
-
import { _ as b,
|
|
3
|
-
import { c as P, r as z, g as N } from "./helpers-
|
|
1
|
+
import { S as O } from "./SearchApi-ZczKsBb7.js";
|
|
2
|
+
import { _ as b, z as E, $ as H, a0 as F, o as d, b as c, d as V, D as S, A as m, ab as v, w as p, I as $, J as T, j as w, Y as A, B as y, f, F as x, G as _, y as C, Z as L, e as g, t as h, aI as D, c as I, x as R } from "./main-C2Q8_T2Y.js";
|
|
3
|
+
import { c as P, r as z, g as N } from "./helpers-BVP2Pul1.js";
|
|
4
4
|
const q = {
|
|
5
5
|
name: "CAutocomplete",
|
|
6
6
|
components: {
|
|
7
|
-
CInput:
|
|
7
|
+
CInput: E
|
|
8
8
|
},
|
|
9
|
-
mixins: [
|
|
9
|
+
mixins: [H, F],
|
|
10
10
|
props: {
|
|
11
11
|
modelValue: {
|
|
12
12
|
type: [Number, String],
|
|
@@ -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: A(s.style)
|
|
391
391
|
}, [
|
|
392
392
|
$(w("div", {
|
|
393
|
-
style:
|
|
393
|
+
style: A(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", {
|
|
@@ -424,7 +424,7 @@ function j(e, t, i, l, s, o) {
|
|
|
424
424
|
})
|
|
425
425
|
], 16);
|
|
426
426
|
}
|
|
427
|
-
const
|
|
427
|
+
const Y = /* @__PURE__ */ b(q, [["render", j]]), G = {
|
|
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: Y
|
|
436
436
|
},
|
|
437
437
|
props: {
|
|
438
438
|
searchEnabled: {
|
|
@@ -472,7 +472,7 @@ const J = /* @__PURE__ */ b(q, [["render", j]]), X = {
|
|
|
472
472
|
}));
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
},
|
|
475
|
+
}, J = { style: { "line-height": "1.5" } }, X = { 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 };
|
|
@@ -494,8 +494,8 @@ 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", J, [
|
|
498
|
+
w("div", X, 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
|
]),
|
|
@@ -525,8 +525,8 @@ function ie(e, t, i, l, s, o) {
|
|
|
525
525
|
_: 1
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
|
-
const le = /* @__PURE__ */ b(
|
|
528
|
+
const le = /* @__PURE__ */ b(G, [["render", ie]]);
|
|
529
529
|
export {
|
|
530
530
|
le as C,
|
|
531
|
-
|
|
531
|
+
Y as a
|
|
532
532
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { C as L } from "./ClientAutocomplete-
|
|
2
|
-
import { _ as z,
|
|
3
|
-
import { C as oe, a as ne, w as E } from "./CDropdownItem-
|
|
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 { r as se, a as $, e as re } from "./index-
|
|
8
|
-
import { o as de } from "./omit-
|
|
1
|
+
import { C as L } from "./ClientAutocomplete-CHfp4YiV.js";
|
|
2
|
+
import { _ as z, aV as j, o as f, b as h, I as Z, aW as G, j as i, ab as N, y, B as Y, A as H, ag as B, ao as K, m as P, ai as J, t as r, d as n, w as a, c as b, f as v, F as O, G as F, x as C, e as g, n as k, ah as Q, H as X, h as _, a as x, g as q, bf as ee, aI as te } from "./main-C2Q8_T2Y.js";
|
|
3
|
+
import { C as oe, a as ne, w as E } from "./CDropdownItem-B5rgSee7.js";
|
|
4
|
+
import { _ as le } from "./CFormField.vue_vue_type_script_setup_true_lang-CVy64zGe.js";
|
|
5
|
+
import { C as ae } from "./CPhoneInput-BUogm59J.js";
|
|
6
|
+
import { u as ie } from "./index-B86TZXOh.js";
|
|
7
|
+
import { r as se, a as $, e as re } from "./index-BH5vwOzR.js";
|
|
8
|
+
import { o as de } from "./omit-DzlbtNCX.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,7 +29,7 @@ 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
|
+
[G, e.computedValue]
|
|
33
33
|
]),
|
|
34
34
|
i("span", {
|
|
35
35
|
class: y([`is-${e.type}`, "check"])
|
|
@@ -40,7 +40,7 @@ function fe(e, t, s, d, u, l) {
|
|
|
40
40
|
], 42, ue);
|
|
41
41
|
}
|
|
42
42
|
const ge = /* @__PURE__ */ z(me, [["render", fe]]);
|
|
43
|
-
function
|
|
43
|
+
function W(e) {
|
|
44
44
|
if (typeof e > "u") throw Error("Missing param inputParam");
|
|
45
45
|
let t = e;
|
|
46
46
|
Number.isInteger(t) && (t = t.toString());
|
|
@@ -53,7 +53,7 @@ function T(e) {
|
|
|
53
53
|
}
|
|
54
54
|
function A(e) {
|
|
55
55
|
let t = e.replace(/ /g, "");
|
|
56
|
-
return t = t.replace(/-/g, ""), !
|
|
56
|
+
return t = t.replace(/-/g, ""), !W(t) || (t = [t.slice(0, 6), "-", t.slice(6)].join(""), !t.match(/^(\d{6})-(\d{4})$/)) ? !1 : t;
|
|
57
57
|
}
|
|
58
58
|
function V(e) {
|
|
59
59
|
if (typeof e > "u" || e === null || e === "")
|
|
@@ -68,7 +68,7 @@ function V(e) {
|
|
|
68
68
|
);
|
|
69
69
|
parseInt(u, 10) === 19 || parseInt(u, 10) === 20 || (parseInt(u, 10) >= 0 && parseInt(u, 10) <= c ? t = `20${t}` : t = `19${t}`);
|
|
70
70
|
}
|
|
71
|
-
return (/* @__PURE__ */ new Date()).getFullYear() - parseInt(t.substring(0, 4), 10) < 16 ? !1 :
|
|
71
|
+
return (/* @__PURE__ */ new Date()).getFullYear() - parseInt(t.substring(0, 4), 10) < 16 ? !1 : W(t.substring(2)) ? t : !1;
|
|
72
72
|
}
|
|
73
73
|
const he = {
|
|
74
74
|
sv: {
|
|
@@ -369,7 +369,7 @@ const he = {
|
|
|
369
369
|
}, be = { class: "form-client" }, Ce = { class: "space-between flex flex-wrap items-center pb-6" }, we = {
|
|
370
370
|
class: "flex-grow",
|
|
371
371
|
style: { "font-weight": "600", "font-size": "20px" }
|
|
372
|
-
}, ke = { class: "type-toggle" }, $e = { style: { "line-height": "1.25", padding: "4px 0" } }, Ve = { style: { "font-size": "12px", opacity: "0.7" } }, Ne = { style: { "line-height": "1.25", padding: "4px 0" } },
|
|
372
|
+
}, ke = { class: "type-toggle" }, $e = { style: { "line-height": "1.25", padding: "4px 0" } }, Ve = { style: { "font-size": "12px", opacity: "0.7" } }, Ne = { style: { "line-height": "1.25", padding: "4px 0" } }, Ie = { style: { "font-size": "12px", opacity: "0.7" } }, Se = {
|
|
373
373
|
class: "flex items-center justify-center",
|
|
374
374
|
style: { "margin-bottom": "calc(2.5 * var(--rem))" }
|
|
375
375
|
}, Me = { class: "type-toggle" }, Oe = { key: 0 }, Fe = {
|
|
@@ -378,12 +378,12 @@ const he = {
|
|
|
378
378
|
}, ze = { class: "my-1 text-sm text-gray-600" }, Re = { class: "py-1 leading-5" }, De = { class: "text-xs opacity-70" }, Ue = { style: { "line-height": "1.25", padding: "4px 0" } }, qe = { 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
|
-
}, 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" },
|
|
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" }, We = { style: { "line-height": "1.25", padding: "4px 0" } }, Te = {
|
|
382
382
|
class: "max-w-[calc(12_*_var(--rem))] truncate",
|
|
383
383
|
style: { "font-size": "12px", opacity: "0.7", "text-wrap": "wrap" }
|
|
384
384
|
}, Le = { style: { "margin-top": "calc(3 * var(--rem))" } };
|
|
385
385
|
function je(e, t, s, d, u, l) {
|
|
386
|
-
const c = g("ClientAutocomplete"), m = g("CField"), p = g("CInput"),
|
|
386
|
+
const c = g("ClientAutocomplete"), m = g("CField"), p = g("CInput"), I = g("Animation"), R = g("CPhoneInput"), w = g("CButton"), S = g("CDropdownItem"), M = g("CDropdown"), T = g("CCheckbox"), D = g("CRadio");
|
|
387
387
|
return f(), h("div", be, [
|
|
388
388
|
s.simpleForm ? (f(), h("form", {
|
|
389
389
|
key: 0,
|
|
@@ -422,7 +422,7 @@ function je(e, t, s, d, u, l) {
|
|
|
422
422
|
]),
|
|
423
423
|
_: 1
|
|
424
424
|
}, 8, ["label", "validator", "messages"]),
|
|
425
|
-
n(
|
|
425
|
+
n(I, null, {
|
|
426
426
|
default: a(() => [
|
|
427
427
|
l.isIndivid ? v("", !0) : (f(), b(m, {
|
|
428
428
|
key: 0,
|
|
@@ -501,7 +501,7 @@ function je(e, t, s, d, u, l) {
|
|
|
501
501
|
}, 8, ["icon-left"])
|
|
502
502
|
]),
|
|
503
503
|
default: a(() => [
|
|
504
|
-
(f(), h(O, null, F(["signee", "recipient", "approver"], (o) => n(
|
|
504
|
+
(f(), h(O, null, F(["signee", "recipient", "approver"], (o) => n(S, {
|
|
505
505
|
key: o,
|
|
506
506
|
"icon-left": o === "signee" ? "pen-tool" : "eye",
|
|
507
507
|
"icon-props": {
|
|
@@ -512,7 +512,7 @@ function je(e, t, s, d, u, l) {
|
|
|
512
512
|
default: a(() => [
|
|
513
513
|
i("div", Ne, [
|
|
514
514
|
i("div", null, r(e.$t(`_common:documentRole.${o}.description`)), 1),
|
|
515
|
-
i("div",
|
|
515
|
+
i("div", Ie, r(e.$t(`_common:documentRole.${o}.label`)), 1)
|
|
516
516
|
])
|
|
517
517
|
]),
|
|
518
518
|
_: 2
|
|
@@ -550,7 +550,7 @@ function je(e, t, s, d, u, l) {
|
|
|
550
550
|
key: 1,
|
|
551
551
|
class: y({ "column-only": e.windowWidth <= 600 })
|
|
552
552
|
}, [
|
|
553
|
-
i("div",
|
|
553
|
+
i("div", Se, [
|
|
554
554
|
i("div", Me, [
|
|
555
555
|
i("div", {
|
|
556
556
|
class: y([{ active: e.type === "individual" }, "type-toggle-button"]),
|
|
@@ -607,7 +607,7 @@ function je(e, t, s, d, u, l) {
|
|
|
607
607
|
]),
|
|
608
608
|
_: 1
|
|
609
609
|
}),
|
|
610
|
-
n(
|
|
610
|
+
n(I, null, {
|
|
611
611
|
default: a(() => [
|
|
612
612
|
e.type && !l.isIndivid ? (f(), b(m, {
|
|
613
613
|
key: 0,
|
|
@@ -632,7 +632,7 @@ function je(e, t, s, d, u, l) {
|
|
|
632
632
|
style: { "padding-left": "0.5em", "margin-bottom": "calc(2 * var(--rem))" }
|
|
633
633
|
}, {
|
|
634
634
|
default: a(() => [
|
|
635
|
-
n(
|
|
635
|
+
n(T, {
|
|
636
636
|
modelValue: e.reverseVat,
|
|
637
637
|
"onUpdate:modelValue": t[16] || (t[16] = (o) => e.reverseVat = o),
|
|
638
638
|
size: "normal"
|
|
@@ -761,7 +761,7 @@ function je(e, t, s, d, u, l) {
|
|
|
761
761
|
]),
|
|
762
762
|
_: 1
|
|
763
763
|
}),
|
|
764
|
-
n(
|
|
764
|
+
n(I, null, {
|
|
765
765
|
default: a(() => [
|
|
766
766
|
e.type && e.separateWorkAddress ? (f(), h("div", Oe, [
|
|
767
767
|
n(m, {
|
|
@@ -847,7 +847,7 @@ function je(e, t, s, d, u, l) {
|
|
|
847
847
|
}, 8, ["icon-left"])
|
|
848
848
|
]),
|
|
849
849
|
default: a(() => [
|
|
850
|
-
(f(), h(O, null, F(["signee", "recipient", "approver"], (o) => n(
|
|
850
|
+
(f(), h(O, null, F(["signee", "recipient", "approver"], (o) => n(S, {
|
|
851
851
|
key: o,
|
|
852
852
|
"icon-left": o === "signee" ? "pen-tool" : "eye",
|
|
853
853
|
"icon-props": {
|
|
@@ -891,7 +891,7 @@ function je(e, t, s, d, u, l) {
|
|
|
891
891
|
})
|
|
892
892
|
]),
|
|
893
893
|
default: a(() => [
|
|
894
|
-
(f(!0), h(O, null, F(s.signOptions, (o) => (f(), b(
|
|
894
|
+
(f(!0), h(O, null, F(s.signOptions, (o) => (f(), b(S, {
|
|
895
895
|
key: o,
|
|
896
896
|
onClick: (U) => e.$emit("update:answer-method", {
|
|
897
897
|
...s.answerMethod,
|
|
@@ -899,9 +899,9 @@ function je(e, t, s, d, u, l) {
|
|
|
899
899
|
})
|
|
900
900
|
}, {
|
|
901
901
|
default: a(() => [
|
|
902
|
-
i("div",
|
|
902
|
+
i("div", We, [
|
|
903
903
|
i("div", null, r(e.$t(`signMethod.${o}.title`)), 1),
|
|
904
|
-
i("div",
|
|
904
|
+
i("div", Te, r(e.$t(`signMethod.${o}.content`)), 1)
|
|
905
905
|
])
|
|
906
906
|
]),
|
|
907
907
|
_: 2
|
|
@@ -930,7 +930,7 @@ 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: Ge } = B({
|
|
934
934
|
getterType: "forms/getField",
|
|
935
935
|
mutationType: "forms/updateField"
|
|
936
936
|
}), Ye = {
|
|
@@ -1017,7 +1017,7 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
|
|
|
1017
1017
|
};
|
|
1018
1018
|
},
|
|
1019
1019
|
computed: {
|
|
1020
|
-
...
|
|
1020
|
+
...Ge({
|
|
1021
1021
|
endCustomer: "endCustomer"
|
|
1022
1022
|
}),
|
|
1023
1023
|
...Q("forms", {
|
|
@@ -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",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as f, b as m,
|
|
1
|
+
import { o as f, b as m, Y as k, e as S, j as h, d as v, I as R, bY as ee, t as Y, y as J, c as U, f as p, J as T, _ as te } from "./main-C2Q8_T2Y.js";
|
|
2
2
|
const re = "";
|
|
3
3
|
function H(e, t) {
|
|
4
4
|
t === void 0 && (t = {});
|
|
@@ -293,7 +293,7 @@ function we(e) {
|
|
|
293
293
|
b: e & 255
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
|
-
var
|
|
296
|
+
var P = {
|
|
297
297
|
aliceblue: "#f0f8ff",
|
|
298
298
|
antiquewhite: "#faebd7",
|
|
299
299
|
aqua: "#00ffff",
|
|
@@ -454,14 +454,14 @@ function ye(e) {
|
|
|
454
454
|
a: r
|
|
455
455
|
};
|
|
456
456
|
}
|
|
457
|
-
var Ce = "[-\\+]?\\d+%?", _e = "[-\\+]?\\d*\\.\\d+%?", C = "(?:".concat(_e, ")|(?:").concat(Ce, ")"),
|
|
457
|
+
var Ce = "[-\\+]?\\d+%?", _e = "[-\\+]?\\d*\\.\\d+%?", C = "(?:".concat(_e, ")|(?:").concat(Ce, ")"), $ = "[\\s|\\(]+(".concat(C, ")[,|\\s]+(").concat(C, ")[,|\\s]+(").concat(C, ")\\s*\\)?"), j = "[\\s|\\(]+(".concat(C, ")[,|\\s]+(").concat(C, ")[,|\\s]+(").concat(C, ")[,|\\s]+(").concat(C, ")\\s*\\)?"), b = {
|
|
458
458
|
CSS_UNIT: new RegExp(C),
|
|
459
|
-
rgb: new RegExp("rgb" +
|
|
460
|
-
rgba: new RegExp("rgba" +
|
|
461
|
-
hsl: new RegExp("hsl" +
|
|
462
|
-
hsla: new RegExp("hsla" +
|
|
463
|
-
hsv: new RegExp("hsv" +
|
|
464
|
-
hsva: new RegExp("hsva" +
|
|
459
|
+
rgb: new RegExp("rgb" + $),
|
|
460
|
+
rgba: new RegExp("rgba" + j),
|
|
461
|
+
hsl: new RegExp("hsl" + $),
|
|
462
|
+
hsla: new RegExp("hsla" + j),
|
|
463
|
+
hsv: new RegExp("hsv" + $),
|
|
464
|
+
hsva: new RegExp("hsva" + j),
|
|
465
465
|
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
466
466
|
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
467
467
|
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
@@ -471,8 +471,8 @@ function ke(e) {
|
|
|
471
471
|
if (e = e.trim().toLowerCase(), e.length === 0)
|
|
472
472
|
return !1;
|
|
473
473
|
var t = !1;
|
|
474
|
-
if (
|
|
475
|
-
e =
|
|
474
|
+
if (P[e])
|
|
475
|
+
e = P[e], t = !0;
|
|
476
476
|
else if (e === "transparent")
|
|
477
477
|
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
478
478
|
var r = b.rgb.exec(e);
|
|
@@ -584,7 +584,7 @@ var Me = (
|
|
|
584
584
|
return "transparent";
|
|
585
585
|
if (this.a < 1)
|
|
586
586
|
return !1;
|
|
587
|
-
for (var t = "#" + K(this.r, this.g, this.b, !1), r = 0, n = Object.entries(
|
|
587
|
+
for (var t = "#" + K(this.r, this.g, this.b, !1), r = 0, n = Object.entries(P); r < n.length; r++) {
|
|
588
588
|
var a = n[r], i = a[0], s = a[1];
|
|
589
589
|
if (t === s)
|
|
590
590
|
return i;
|
|
@@ -682,7 +682,7 @@ var Me = (
|
|
|
682
682
|
function y(...e) {
|
|
683
683
|
return new Me(...e);
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function X(e, t) {
|
|
686
686
|
const r = e && e.a;
|
|
687
687
|
let n;
|
|
688
688
|
e && e.hsl ? n = y(e.hsl) : e && e.hex && e.hex.length > 0 ? n = y(e.hex) : e && e.hsv ? n = y(e.hsv) : e && e.rgba ? n = y(e.rgba) : e && e.rgb ? n = y(e.rgb) : n = y(e), n && (n._a === void 0 || n._a === null) && n.setAlpha(r || n.getAlpha());
|
|
@@ -706,7 +706,7 @@ var Se = {
|
|
|
706
706
|
props: ["modelValue"],
|
|
707
707
|
data() {
|
|
708
708
|
return {
|
|
709
|
-
val:
|
|
709
|
+
val: X(this.modelValue)
|
|
710
710
|
};
|
|
711
711
|
},
|
|
712
712
|
computed: {
|
|
@@ -721,12 +721,12 @@ var Se = {
|
|
|
721
721
|
},
|
|
722
722
|
watch: {
|
|
723
723
|
modelValue(e) {
|
|
724
|
-
this.val =
|
|
724
|
+
this.val = X(e);
|
|
725
725
|
}
|
|
726
726
|
},
|
|
727
727
|
methods: {
|
|
728
728
|
colorChange(e, t) {
|
|
729
|
-
this.oldHue = this.colors.hsl.h, this.colors =
|
|
729
|
+
this.oldHue = this.colors.hsl.h, this.colors = X(e, t || this.oldHue);
|
|
730
730
|
},
|
|
731
731
|
isValidHex(e) {
|
|
732
732
|
return y(e).isValid;
|
|
@@ -842,7 +842,7 @@ H(Le);
|
|
|
842
842
|
F.render = Te;
|
|
843
843
|
F.__file = "src/components/editable-input/editable-input.vue";
|
|
844
844
|
F.install = A;
|
|
845
|
-
function
|
|
845
|
+
function W(e, t, r) {
|
|
846
846
|
return t < r ? e < t ? t : e > r ? r : e : e < r ? r : e > t ? t : e;
|
|
847
847
|
}
|
|
848
848
|
var B = {
|
|
@@ -870,7 +870,7 @@ var B = {
|
|
|
870
870
|
const { container: r } = this.$refs;
|
|
871
871
|
if (!r)
|
|
872
872
|
return;
|
|
873
|
-
const n = r.clientWidth, a = r.clientHeight, i = r.getBoundingClientRect().left + window.pageXOffset, s = r.getBoundingClientRect().top + window.pageYOffset, o = e.pageX || (e.touches ? e.touches[0].pageX : 0), u = e.pageY || (e.touches ? e.touches[0].pageY : 0), x =
|
|
873
|
+
const n = r.clientWidth, a = r.clientHeight, i = r.getBoundingClientRect().left + window.pageXOffset, s = r.getBoundingClientRect().top + window.pageYOffset, o = e.pageX || (e.touches ? e.touches[0].pageX : 0), u = e.pageY || (e.touches ? e.touches[0].pageY : 0), x = W(o - i, 0, n), c = W(u - s, 0, a), l = x / n, M = W(-(c / a) + 1, 0, 1);
|
|
874
874
|
this.onChange({
|
|
875
875
|
h: this.colors.hsv.h,
|
|
876
876
|
s: l,
|
|
@@ -1033,7 +1033,7 @@ const Ue = ["aria-valuenow"], Ve = /* @__PURE__ */ h(
|
|
|
1033
1033
|
), ze = [
|
|
1034
1034
|
Ve
|
|
1035
1035
|
];
|
|
1036
|
-
function
|
|
1036
|
+
function $e(e, t, r, n, a, i) {
|
|
1037
1037
|
return f(), m(
|
|
1038
1038
|
"div",
|
|
1039
1039
|
{
|
|
@@ -1068,9 +1068,9 @@ function Xe(e, t, r, n, a, i) {
|
|
|
1068
1068
|
/* CLASS */
|
|
1069
1069
|
);
|
|
1070
1070
|
}
|
|
1071
|
-
var
|
|
1072
|
-
H(
|
|
1073
|
-
N.render =
|
|
1071
|
+
var je = ".vc-hue{border-radius:2px;bottom:0;left:0;position:absolute;right:0;top:0}.vc-hue--horizontal{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue--vertical{background:linear-gradient(0deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue-container{cursor:pointer;height:100%;margin:0 2px;position:relative}.vc-hue-pointer{position:absolute;z-index:2}.vc-hue-picker{background:#fff;border-radius:1px;box-shadow:0 0 2px rgba(0,0,0,.6);cursor:pointer;height:8px;margin-top:1px;transform:translateX(-2px);width:4px}";
|
|
1072
|
+
H(je);
|
|
1073
|
+
N.render = $e;
|
|
1074
1074
|
N.__file = "src/components/hue/hue.vue";
|
|
1075
1075
|
N.install = A;
|
|
1076
1076
|
var O = {
|
|
@@ -1181,7 +1181,7 @@ var O = {
|
|
|
1181
1181
|
}
|
|
1182
1182
|
}
|
|
1183
1183
|
};
|
|
1184
|
-
const
|
|
1184
|
+
const Xe = { class: "vc-chrome-saturation-wrap" }, We = { class: "vc-chrome-body" }, Pe = { class: "vc-chrome-controls" }, Ye = { class: "vc-chrome-color-wrap" }, Ge = ["aria-label"], qe = { class: "vc-chrome-sliders" }, Ke = { class: "vc-chrome-hue-wrap" }, Ze = {
|
|
1185
1185
|
key: 0,
|
|
1186
1186
|
class: "vc-chrome-alpha-wrap"
|
|
1187
1187
|
}, Je = {
|
|
@@ -1215,14 +1215,14 @@ function pt(e, t, r, n, a, i) {
|
|
|
1215
1215
|
class: J(["vc-chrome", [r.disableAlpha ? "vc-chrome__disable-alpha" : ""]])
|
|
1216
1216
|
},
|
|
1217
1217
|
[
|
|
1218
|
-
h("div",
|
|
1218
|
+
h("div", Xe, [
|
|
1219
1219
|
v(s, {
|
|
1220
1220
|
value: e.colors,
|
|
1221
1221
|
onChange: i.childChange
|
|
1222
1222
|
}, null, 8, ["value", "onChange"])
|
|
1223
1223
|
]),
|
|
1224
|
-
h("div",
|
|
1225
|
-
h("div",
|
|
1224
|
+
h("div", We, [
|
|
1225
|
+
h("div", Pe, [
|
|
1226
1226
|
h("div", Ye, [
|
|
1227
1227
|
h("div", {
|
|
1228
1228
|
"aria-label": `current color is ${e.colors.hex}`,
|