@cling-se/widget 0.19.4 → 0.19.6
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 +12 -0
- package/dist/{AddClientCallout-BfBl04bU.js → AddClientCallout-DtVRTCr_.js} +4 -4
- package/dist/{AnswerModal-BSakBDNJ.js → AnswerModal-ClyWtHBj.js} +3 -3
- package/dist/{AttachmentItem-BLGn1ILf.js → AttachmentItem-COoLlAum.js} +12 -12
- package/dist/{BaseUpload-CUaYnXBn.js → BaseUpload-DlaYaxxr.js} +2 -2
- package/dist/{BlockMedia-CbsL1ZZR.js → BlockMedia-IMu4YO3J.js} +1 -1
- package/dist/CCallout-C32zwICP.js +124 -0
- package/dist/{CCurrencyDropdown-xdp_13tB.js → CCurrencyDropdown-D4ZxTioo.js} +8 -8
- package/dist/{CDropdownItem-CjTBhP8h.js → CDropdownItem-BuQONogL.js} +8 -8
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-Cif8PyTV.js → CFormField.vue_vue_type_script_setup_true_lang-KdkAe_wn.js} +51 -51
- package/dist/{CPhoneFormat-CdD0NkFL.js → CPhoneFormat-C2K78cmZ.js} +1 -1
- package/dist/{CPhoneInput-CgV-rBLW.js → CPhoneInput-DolVFzrL.js} +28 -28
- package/dist/{CPriceInput-VMyB3kTX.js → CPriceInput-SbRlrDnD.js} +2 -2
- package/dist/{CSelect-BpZYcMEc.js → CSelect-BQsWYh8F.js} +1 -1
- package/dist/{CSkeleton.vue_vue_type_script_setup_true_lang-vOwtNEFo.js → CSkeleton.vue_vue_type_script_setup_true_lang-aq47QhPF.js} +1 -1
- package/dist/{ClientAutocomplete-DAlOBlRj.js → ClientAutocomplete-vgxEGqNU.js} +3 -3
- package/dist/{ClientModal-B5J8NblQ.js → ClientModal-B8ip7v99.js} +8 -8
- package/dist/{ColorPicker-BBPCRucQ.js → ColorPicker-BrfM9S1s.js} +1 -1
- package/dist/{CompanyModal-D0iOqYPp.js → CompanyModal-DJZezqM5.js} +7 -7
- package/dist/{ContentWrapper-Jp2A9A1G.js → ContentWrapper-zJ4MCnSC.js} +12 -14
- package/dist/{CoverBlockSettings-UVNE3YWj.js → CoverBlockSettings-Cz0NUYXX.js} +7 -7
- package/dist/{DocAnswer-BDqoRdYy.js → DocAnswer-EWarWnbt.js} +2 -2
- package/dist/{DocDetails-CQHUQYVe.js → DocDetails-CGHN3tbO.js} +4 -4
- package/dist/{DocForm-BU4Mx9Fi.js → DocForm-BLTap-Bb.js} +24 -24
- package/dist/{DocFormSend-DXtfCSEG.js → DocFormSend-_jCPFI9r.js} +2 -2
- package/dist/{DocLinks-zF-W4hpD.js → DocLinks-D9Ok4HvN.js} +2 -2
- package/dist/{DocModalBase-CneXY73m.js → DocModalBase-fQz5UuCF.js} +1 -1
- package/dist/{DocPrint-DQkI5BgD.js → DocPrint-Cua_U7zt.js} +1 -1
- package/dist/{DocReceipt-DJfBiwUr.js → DocReceipt-Cg2hiSby.js} +2 -2
- package/dist/{DocSendReminder-CSxB-KWG.js → DocSendReminder-Dh7G9kbZ.js} +1 -1
- package/dist/{DocTextEditor-CSqqlABA.js → DocTextEditor-Ds4Cbg-2.js} +8 -8
- package/dist/{DocTimeline-CDTh_czd.js → DocTimeline-DpWUMwJE.js} +2 -2
- package/dist/{DocumentClient-COSPT21G.js → DocumentClient-DUqHQVSe.js} +5 -5
- package/dist/{DocumentLayout-CweRWvIc.js → DocumentLayout-Bth5tpry.js} +5 -5
- package/dist/{DocumentLogotype-D0cjO9XC.js → DocumentLogotype-BiekV9-j.js} +4 -4
- package/dist/{DocumentVoided-BuNs74Da.js → DocumentVoided-D_YMyeV8.js} +1 -1
- package/dist/{EmbedInput-BohNHou7.js → EmbedInput-Crx-LEGc.js} +3 -3
- package/dist/{EmbedSettings-DrgFPrd-.js → EmbedSettings-xIGtEN7L.js} +3 -3
- package/dist/{ErrorCallout-BVWDsp2J.js → ErrorCallout-D_fUVD4I.js} +1 -1
- package/dist/{FilePreviewModal-BVEsg1jk.js → FilePreviewModal-av2lE91B.js} +8 -8
- package/dist/{Flag-B0cEHRlt.js → Flag-CI52SH_9.js} +1 -1
- package/dist/{HeaderSettings-CGaJ7akp.js → HeaderSettings-Ip634NWe.js} +9 -9
- package/dist/{ImageSelectModal-D2A6akvb.js → ImageSelectModal-DNtR86H7.js} +3 -3
- package/dist/{ImageUploadWrapper-BHqbK12Z.js → ImageUploadWrapper-Co43CWCP.js} +2 -2
- package/dist/{Index-B518kuyT.js → Index-4ZURK6a8.js} +5 -6
- package/dist/{Index-6zEMdU6I.js → Index-BF1bZUso.js} +4 -4
- package/dist/{Index-I98TuKi1.js → Index-BMwBpYpa.js} +4 -4
- package/dist/{Index-DPVl5ugc.js → Index-BY2kaUsM.js} +4 -4
- package/dist/{Index-CXMNxdAF.js → Index-BdW5_mV-.js} +6 -6
- package/dist/{Index--WcKCsGG.js → Index-Bgm5PHos.js} +5 -5
- package/dist/{Index-D5YE8uWt.js → Index-Bj81gIof.js} +2 -2
- package/dist/{Index-BPKB1HUJ.js → Index-C-Suk6Qs.js} +1 -1
- package/dist/{Index-CAG_M3hA.js → Index-C6KPbnAq.js} +5 -5
- package/dist/{Index-BGKHEKp8.js → Index-C92jPUcy.js} +4 -4
- package/dist/{Index-Dbmv21li.js → Index-CFSuI-QL.js} +3 -3
- package/dist/{Index-CLFDz6SJ.js → Index-CJi8Remu.js} +11 -12
- package/dist/{Index-DmOHKqoS.js → Index-CTQyX_63.js} +2 -2
- package/dist/{Index-DRaKysrP.js → Index-CV5RbQn5.js} +8 -8
- package/dist/{Index-to2qkBy9.js → Index-CZqJYh7u.js} +1 -1
- package/dist/{Index-eczQUYpI.js → Index-CeJRMtmh.js} +4 -4
- package/dist/{Index-C_pXu_0v.js → Index-Ci_PUYqE.js} +3 -3
- package/dist/{Index-3Yts7KXY.js → Index-CmLvcWe3.js} +4 -4
- package/dist/{Index-BNzgoLmd.js → Index-CxAd29-m.js} +5 -5
- package/dist/{Index-CFpRQnNq.js → Index-DGwF2cvQ.js} +4 -4
- package/dist/Index-DHzaqQH0.js +4 -0
- package/dist/{Index-D05FW5AK.js → Index-DKuTOk0t.js} +8 -8
- package/dist/{Index-C4ajjo5G.js → Index-DOCeODtL.js} +1 -1
- package/dist/{Index-Cxc5s2dg.js → Index-DOiPKAhk.js} +2 -2
- package/dist/{Index-Y4-687rr.js → Index-DQbbxV0m.js} +4 -4
- package/dist/{Index-CN6ts_Xp.js → Index-DWIpdRX-.js} +8 -8
- package/dist/{Index-DylKlBB9.js → Index-D_X2OZA3.js} +2 -2
- package/dist/{Index-CSiHZutC.js → Index-DlGSVN83.js} +6 -6
- package/dist/{Index-LuLYEISf.js → Index-DwIfORsz.js} +10 -10
- package/dist/{Index-DU1wpDH9.js → Index-PzcQhAgF.js} +2 -2
- package/dist/{Index-BSlfSspe.js → Index-bvCcp9l6.js} +5 -5
- package/dist/{Index-K56XRGlg.js → Index-chiZsMLh.js} +17 -18
- package/dist/{Index-CEBnyO4l.js → Index-uDG1i8F-.js} +5 -5
- package/dist/{Index-CzTIqHwe.js → Index-xVX7aGXv.js} +3 -3
- package/dist/{Index.vue_vue_type_script_lang-V786MsVt.js → Index.vue_vue_type_script_lang-WK-YdZ30.js} +2 -2
- package/dist/{InputToggleRow-TizMrUy3.js → InputToggleRow-CWvEi0HF.js} +1 -1
- package/dist/{ManualPopover-D5s82nTD.js → ManualPopover-BSX3bOr0.js} +1 -1
- package/dist/{MediaWrapper-B8QJIu96.js → MediaWrapper-D8BXMoDz.js} +3 -3
- package/dist/{NotBindingText-CRNgx9DB.js → NotBindingText-V-8_5Pln.js} +2 -2
- package/dist/{PackageGroup-BSF-af5b.js → PackageGroup-BN5njJA7.js} +5 -5
- package/dist/{PdfTerms-DZiOm01r.js → PdfTerms-DarzYw1g.js} +2 -2
- package/dist/{PdfViewer-C4KmWufw.js → PdfViewer-DYN758PA.js} +2 -2
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-Tt5bu7Nw.js → PlainHtml.vue_vue_type_script_setup_true_lang-B3g18l5G.js} +1 -1
- package/dist/{PriceHeader-9PyzP2JW.js → PriceHeader-B7QoQ2ZO.js} +7 -7
- package/dist/{SearchApi-Dqw0KfAD.js → SearchApi-rcvoh3Av.js} +1 -1
- package/dist/{SendForm-DwIGeVAZ.js → SendForm-DHRq76pb.js} +10 -10
- package/dist/{Setup-2CQuTokL.js → Setup-BWMY9S__.js} +1 -1
- package/dist/{SmartList-DlivOpMQ.js → SmartList-BpNfmUMA.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-B8DZEh_u.js → Sortable.vue_vue_type_script_setup_true_lang-B_f6Nh_O.js} +1 -1
- package/dist/{TermsSettings-C3HFNpbX.js → TermsSettings-BTv1dj63.js} +20 -20
- package/dist/{ThemeColorRow-j7lkaEKS.js → ThemeColorRow-r1ECSrBU.js} +3 -3
- package/dist/{ToggleBinding-BTBbFc-F.js → ToggleBinding-BBF1duBh.js} +4 -4
- package/dist/{UploadModal-DEwQZ_8a.js → UploadModal-B_l6gvuJ.js} +8 -8
- package/dist/{VideoPlayerInput-32LiwyOw.js → VideoPlayerInput-8e9ooR1p.js} +4 -4
- package/dist/{VideoPlayerSettings-DkzjgwLt.js → VideoPlayerSettings-CFOPAFlE.js} +2 -2
- package/dist/{VideoSelectModal-DmEmB4Cx.js → VideoSelectModal-QWkNrFQC.js} +3 -3
- package/dist/{focusDrawerMixin-D13Ms6Jk.js → focusDrawerMixin-hy76kTBG.js} +1 -1
- package/dist/{formDrawerState-CRhWaymS.js → formDrawerState-s4ySD850.js} +1 -1
- package/dist/{helpers-B86zZNtk.js → helpers-BHIbXt8q.js} +1 -1
- package/dist/{index-h9L0RGv3.js → index-BTw8ZC8k.js} +1 -1
- package/dist/{index-Kb9qkTlP.js → index-ByEyJueq.js} +8 -8
- package/dist/{index-BiwH6W9z.js → index-CGXCI2G7.js} +3 -3
- package/dist/{index-DAIb9mjE.js → index-Cwf2aXw3.js} +1 -1
- package/dist/{index-tXDuIxx9.js → index-Dbe2ueXc.js} +1 -1
- package/dist/{index-Db7Oe7W3.js → index-DjHfCViH.js} +6 -6
- package/dist/{index-D3TD9uhN.js → index-DpubWmXg.js} +55 -63
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +40 -40
- package/dist/{main-Dr3neB7n.js → main-WDVYC60Z.js} +9048 -9014
- package/dist/{mapFormMixin-Bkpm1wEf.js → mapFormMixin-B8xN9LiX.js} +2 -2
- package/dist/{omit-Ciu7kNcD.js → omit-BhJ-wiH8.js} +1 -1
- package/dist/{publicSenderState-CEfzhj0R.js → publicSenderState-CtB0-WJX.js} +1 -1
- package/dist/{splitpanes-AhZAy_Th.js → splitpanes-CwgWVXfp.js} +1 -1
- package/dist/{template-MfjSWRyx.js → template-fVxhQbOu.js} +1 -1
- package/dist/{tippy.esm-CJxvo3UM.js → tippy.esm-Ikv5_i_g.js} +7 -7
- package/dist/{useTermsModal-Bp1LFsXg.js → useTermsModal-DxXjznop.js} +4 -4
- package/dist/{utils-DgTzzSIp.js → utils-fXD4AHot.js} +1 -1
- package/dist/{validation-J27tpgZs.js → validation-Bf4rZ8pa.js} +2 -2
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/dist/CCallout-BezZlOfm.js +0 -104
- package/dist/Index-yMgZ5Gcs.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as C, a as f, g as b, at as $, au as w, _ as T, e as h, ac as D, o as i, b as s, s as n, d, v as a, F as L, k as N, H as B, f as l, O as I, av as u } from "./main-
|
|
1
|
+
import { m as C, a as f, g as b, at as $, au as w, _ as T, e as h, ac as D, o as i, b as s, s as n, d, v as a, F as L, k as N, H as B, f as l, O as I, av as u } from "./main-WDVYC60Z.js";
|
|
2
2
|
const E = {
|
|
3
3
|
name: "ClientLinks",
|
|
4
4
|
emits: ["close"],
|
|
@@ -54,9 +54,9 @@ const E = {
|
|
|
54
54
|
loadDocument: b.LOAD_DOCUMENT2
|
|
55
55
|
}),
|
|
56
56
|
async copyToClipboard(t) {
|
|
57
|
-
var
|
|
58
|
-
(
|
|
59
|
-
const o = (
|
|
57
|
+
var p, c;
|
|
58
|
+
(p = t.target.previousElementSibling) == null || p.select();
|
|
59
|
+
const o = (c = t.target.previousElementSibling) == null ? void 0 : c.value;
|
|
60
60
|
if (!o) return;
|
|
61
61
|
await $(o) && w("info", this.$t("copied"));
|
|
62
62
|
}
|
|
@@ -64,14 +64,14 @@ const E = {
|
|
|
64
64
|
}, S = {
|
|
65
65
|
class: "font-inter",
|
|
66
66
|
style: { "background-color": "white", "border-radius": "10px", overflow: "hidden" }
|
|
67
|
-
}, O = { style: { padding: "40px 30px", position: "relative" } }, V = { style: { padding: "0 0 2.5em" } }, z = ["textContent"], F = ["textContent"], M = ["textContent"], R = { style: { padding: "4px 6px 8px 6px" } }, j = { class: "client-title truncate
|
|
67
|
+
}, O = { style: { padding: "40px 30px", position: "relative" } }, V = { style: { padding: "0 0 2.5em" } }, z = ["textContent"], F = ["textContent"], M = ["textContent"], R = { style: { padding: "4px 6px 8px 6px" } }, j = { class: "client-title w-full truncate" }, q = {
|
|
68
68
|
key: 0,
|
|
69
69
|
style: { opacity: "0.5", "padding-left": "0.125ch" }
|
|
70
70
|
}, P = ["textContent"], A = ["href"], G = {
|
|
71
71
|
key: 1,
|
|
72
72
|
style: { padding: "0 0.5ch" }
|
|
73
73
|
}, H = ["href"], K = { style: { display: "flex", position: "relative" } }, U = ["value", "placeholder"], W = { class: "x-hint" }, J = ["textContent"];
|
|
74
|
-
function Q(t, o, y,
|
|
74
|
+
function Q(t, o, y, p, c, r) {
|
|
75
75
|
const k = h("CButton"), _ = h("CPhoneFormat"), m = h("CIcon"), v = D("tooltip");
|
|
76
76
|
return i(), s("div", S, [
|
|
77
77
|
n("div", O, [
|
|
@@ -130,7 +130,7 @@ function Q(t, o, y, c, p, r) {
|
|
|
130
130
|
placeholder: t.$t("placeholder"),
|
|
131
131
|
type: "text",
|
|
132
132
|
readonly: "readonly",
|
|
133
|
-
class: "link-field truncate
|
|
133
|
+
class: "link-field w-full truncate"
|
|
134
134
|
}, null, 8, U),
|
|
135
135
|
I((i(), s("div", {
|
|
136
136
|
class: "clipboard-button",
|
|
@@ -164,7 +164,7 @@ function Q(t, o, y, c, p, r) {
|
|
|
164
164
|
])
|
|
165
165
|
]);
|
|
166
166
|
}
|
|
167
|
-
const X = /* @__PURE__ */ T(E, [["render", Q], ["__scopeId", "data-v-
|
|
167
|
+
const X = /* @__PURE__ */ T(E, [["render", Q], ["__scopeId", "data-v-d4e8613a"]]), Y = X, ee = ({ id: t }) => {
|
|
168
168
|
var o;
|
|
169
169
|
if (!u.$modal)
|
|
170
170
|
throw Error("Open client modal requires plugin vue-js-modal");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as L } from "./Flag-
|
|
2
|
-
import { w as S } from "./CDropdownItem-
|
|
3
|
-
import { aJ as V, ae as B, ab as E, aK as R, _ as b, e as a, o, b as i, s as n, d as h, ad as y, w as x, F as v, k, f as r, l as F, v as m, c as q, H as w, K as g } from "./main-
|
|
1
|
+
import { F as L } from "./Flag-CI52SH_9.js";
|
|
2
|
+
import { w as S } from "./CDropdownItem-BuQONogL.js";
|
|
3
|
+
import { aJ as V, ae as B, ab as E, aK as R, _ as b, e as a, o, b as i, s as n, d as h, ad as y, w as x, F as v, k, f as r, l as F, v as m, c as q, H as w, K as g } from "./main-WDVYC60Z.js";
|
|
4
4
|
import { i as P } from "./dom-DOcGU3-g.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
const H = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Q as ie, R as O, T as ce, U as P, V as A, r as D, W as de, i as h, X as $e, Y as fe, j as g, Z as z, x as B, $ as M } from "./main-
|
|
1
|
+
import { Q as ie, R as O, T as ce, U as P, V as A, r as D, W as de, i as h, X as $e, Y as fe, j as g, Z as z, x as B, $ as M } from "./main-WDVYC60Z.js";
|
|
2
2
|
function W(t, a) {
|
|
3
3
|
var n = Object.keys(t);
|
|
4
4
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _, o as c, b as d, s, K as H, d as h, w as f, l as ce, f as k, a1 as ue, e as v, v as l, H as g, da as ee, A as L, cW as W, db as ve, dc as be, dd as Ce, de as ke, df as Pe, aD as J, dg as _e, p as T, ap as we, m as B, M as A, N as E, dh as Se, a as N, g as S, n as Z, F as $, k as V, O as D, P as Q, c as w, J as $e, ac as de, di as U, aj as Te, az as z, a7 as xe, dj as Ie, dk as Ee, dl as Me, dm as te, a8 as Le, y as X, ak as G, dn as ne, au as Ve, dp as He, cR as Be, h as Fe, ay as Ue } from "./main-
|
|
1
|
+
import { _, o as c, b as d, s, K as H, d as h, w as f, l as ce, f as k, a1 as ue, e as v, v as l, H as g, da as ee, A as L, cW as W, db as ve, dc as be, dd as Ce, de as ke, df as Pe, aD as J, dg as _e, p as T, ap as we, m as B, M as A, N as E, dh as Se, a as N, g as S, n as Z, F as $, k as V, O as D, P as Q, c as w, J as $e, ac as de, di as U, aj as Te, az as z, a7 as xe, dj as Ie, dk as Ee, dl as Me, dm as te, a8 as Le, y as X, ak as G, dn as ne, au as Ve, dp as He, cR as Be, h as Fe, ay as Ue } from "./main-WDVYC60Z.js";
|
|
2
2
|
import { a as P } from "./anime.es-4wvNItHq.js";
|
|
3
|
-
import { _ as De } from "./CFormField.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { C as Re } from "./CSelect-
|
|
5
|
-
import { b as Ae } from "./CDropdownItem-
|
|
3
|
+
import { _ as De } from "./CFormField.vue_vue_type_script_setup_true_lang-KdkAe_wn.js";
|
|
4
|
+
import { C as Re } from "./CSelect-BQsWYh8F.js";
|
|
5
|
+
import { b as Ae } from "./CDropdownItem-BuQONogL.js";
|
|
6
6
|
import { r as q } from "./regions-BdZt9Srn.js";
|
|
7
|
-
import { u as Oe } from "./index-
|
|
8
|
-
import { e as ze, r as qe, c as je, n as Ze, a as Ne, s as Ye } from "./index-
|
|
7
|
+
import { u as Oe } from "./index-Dbe2ueXc.js";
|
|
8
|
+
import { e as ze, r as qe, c as je, n as Ze, a as Ne, s as Ye } from "./index-Cwf2aXw3.js";
|
|
9
9
|
import { a as We } from "./dom-DOcGU3-g.js";
|
|
10
10
|
const Qe = {
|
|
11
11
|
props: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { h as I, bh as q, R as
|
|
2
|
-
import { i as H } from "./DocumentLayout-
|
|
3
|
-
import { _ as W } from "./CFormField.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { B as A } from "./DocTextEditor-
|
|
5
|
-
import { u as K } from "./index-
|
|
6
|
-
import { r as
|
|
7
|
-
import { S as Q } from "./SmartList-
|
|
8
|
-
import { w as X } from "./CDropdownItem-
|
|
1
|
+
import { h as I, bh as q, R as V, e as r, j as w, o, b as f, s as i, K as $, c as g, ad as k, bi as L, f as C, w as p, L as N, _ as x, ai as P, S as G, m as D, a as B, g as T, y as b, d as m, H as M, v as _, a7 as O, aj as R, F as j, k as z, n as U } from "./main-WDVYC60Z.js";
|
|
2
|
+
import { i as H } from "./DocumentLayout-Bth5tpry.js";
|
|
3
|
+
import { _ as W } from "./CFormField.vue_vue_type_script_setup_true_lang-KdkAe_wn.js";
|
|
4
|
+
import { B as A } from "./DocTextEditor-Ds4Cbg-2.js";
|
|
5
|
+
import { u as K } from "./index-Dbe2ueXc.js";
|
|
6
|
+
import { r as F, b as J } from "./index-Cwf2aXw3.js";
|
|
7
|
+
import { S as Q } from "./SmartList-BpNfmUMA.js";
|
|
8
|
+
import { w as X } from "./CDropdownItem-BuQONogL.js";
|
|
9
9
|
const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-container" }, te = /* @__PURE__ */ I({
|
|
10
10
|
__name: "ContextModal",
|
|
11
11
|
props: {
|
|
@@ -13,18 +13,18 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
|
|
|
13
13
|
},
|
|
14
14
|
emits: ["show", "hide"],
|
|
15
15
|
setup(e, { emit: t }) {
|
|
16
|
-
const v = t, { rootChild: u } = q(), s =
|
|
16
|
+
const v = t, { rootChild: u } = q(), s = V(!1), a = () => {
|
|
17
17
|
s.value = !0, v("show");
|
|
18
18
|
}, n = () => {
|
|
19
19
|
s.value = !1, v("hide");
|
|
20
20
|
};
|
|
21
21
|
return (d, c) => {
|
|
22
22
|
const h = r("VDropdown");
|
|
23
|
-
return w(H) ? (
|
|
24
|
-
i("div", { onClick:
|
|
23
|
+
return w(H) ? (o(), f("div", Y, [
|
|
24
|
+
i("div", { onClick: a }, [
|
|
25
25
|
$(d.$slots, "default", {}, void 0, !0)
|
|
26
26
|
]),
|
|
27
|
-
s.value ? (
|
|
27
|
+
s.value ? (o(), g(L, {
|
|
28
28
|
key: 0,
|
|
29
29
|
to: w(u)
|
|
30
30
|
}, [
|
|
@@ -37,18 +37,18 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
|
|
|
37
37
|
])
|
|
38
38
|
])
|
|
39
39
|
], 8, ["to"])) : C("", !0)
|
|
40
|
-
])) : (
|
|
40
|
+
])) : (o(), g(h, N({ key: 1 }, d.$props, {
|
|
41
41
|
placement: d.placement,
|
|
42
42
|
shown: s.value,
|
|
43
43
|
"onUpdate:shown": c[0] || (c[0] = (y) => s.value = y),
|
|
44
44
|
"popper-class": "context-modal-popper",
|
|
45
|
-
onShow:
|
|
45
|
+
onShow: a,
|
|
46
46
|
onHide: n,
|
|
47
47
|
"auto-hide": !1
|
|
48
48
|
}), {
|
|
49
49
|
popper: p(() => [
|
|
50
50
|
i("div", ee, [
|
|
51
|
-
s.value ? (
|
|
51
|
+
s.value ? (o(), g(L, {
|
|
52
52
|
key: 0,
|
|
53
53
|
to: w(u)
|
|
54
54
|
}, [
|
|
@@ -67,10 +67,10 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
|
|
|
67
67
|
}, 16, ["placement", "shown"]));
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
}), se = /* @__PURE__ */
|
|
70
|
+
}), se = /* @__PURE__ */ x(te, [["__scopeId", "data-v-71def6ac"]]), { mapFields: oe } = P({
|
|
71
71
|
getterType: "forms/getField",
|
|
72
72
|
mutationType: "forms/updateField"
|
|
73
|
-
}),
|
|
73
|
+
}), ae = {
|
|
74
74
|
i18nOptions: {
|
|
75
75
|
namespaces: "TextTemplatesForm",
|
|
76
76
|
messages: {
|
|
@@ -147,11 +147,11 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
|
|
|
147
147
|
},
|
|
148
148
|
validations: {
|
|
149
149
|
name: {
|
|
150
|
-
required:
|
|
150
|
+
required: F,
|
|
151
151
|
maxLength: J(255)
|
|
152
152
|
},
|
|
153
153
|
textContent: {
|
|
154
|
-
required:
|
|
154
|
+
required: F
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
computed: {
|
|
@@ -160,7 +160,7 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
|
|
|
160
160
|
isFetching: "templateMessages/isFetching",
|
|
161
161
|
checkFormChanged: "forms/hasChanged"
|
|
162
162
|
}),
|
|
163
|
-
...
|
|
163
|
+
...oe({
|
|
164
164
|
templateMessage: "templateMessage",
|
|
165
165
|
name: "templateMessage.name",
|
|
166
166
|
textContent: "templateMessage.message"
|
|
@@ -234,22 +234,22 @@ const Y = { key: 0 }, Z = { class: "modal-container" }, ee = { class: "popover-c
|
|
|
234
234
|
class: "flex w-full items-center justify-center",
|
|
235
235
|
style: { padding: "calc(3 * var(--rem)) 0" }
|
|
236
236
|
}, ie = { key: 2 };
|
|
237
|
-
function re(e, t, v, u, s,
|
|
237
|
+
function re(e, t, v, u, s, a) {
|
|
238
238
|
const n = r("CButton"), d = r("Spinner"), c = r("CInput"), h = r("CField"), y = r("BaseTextEditor");
|
|
239
|
-
return
|
|
240
|
-
v.showFixedCloseButton ? (
|
|
239
|
+
return o(), f("div", ne, [
|
|
240
|
+
v.showFixedCloseButton ? (o(), g(n, {
|
|
241
241
|
key: 0,
|
|
242
242
|
class: "fixed-close-button",
|
|
243
243
|
circle: "",
|
|
244
244
|
icon: "x",
|
|
245
245
|
onClick: t[0] || (t[0] = (l) => e.$emit("close"))
|
|
246
246
|
})) : C("", !0),
|
|
247
|
-
e.isFetching ? (
|
|
247
|
+
e.isFetching ? (o(), f("div", le, [
|
|
248
248
|
m(d)
|
|
249
|
-
])) : e.templateMessage !== void 0 ? (
|
|
249
|
+
])) : e.templateMessage !== void 0 ? (o(), f("form", ie, [
|
|
250
250
|
m(h, {
|
|
251
251
|
validator: u.v$.name,
|
|
252
|
-
messages:
|
|
252
|
+
messages: a.messages.name,
|
|
253
253
|
label: e.$t("name.label")
|
|
254
254
|
}, {
|
|
255
255
|
default: p(() => [
|
|
@@ -264,7 +264,7 @@ function re(e, t, v, u, s, o) {
|
|
|
264
264
|
}, 8, ["validator", "messages", "label"]),
|
|
265
265
|
m(h, {
|
|
266
266
|
validator: u.v$.textContent,
|
|
267
|
-
messages:
|
|
267
|
+
messages: a.messages.textContent,
|
|
268
268
|
label: e.$t("textLabel")
|
|
269
269
|
}, {
|
|
270
270
|
default: p(() => [
|
|
@@ -280,36 +280,36 @@ function re(e, t, v, u, s, o) {
|
|
|
280
280
|
}, 8, ["validator", "messages", "label"]),
|
|
281
281
|
m(n, {
|
|
282
282
|
loading: e.isPosting,
|
|
283
|
-
disabled: !
|
|
283
|
+
disabled: !a.hasChanged,
|
|
284
284
|
type: "secondary",
|
|
285
285
|
style: { "margin-top": "calc(1 * var(--rem))" },
|
|
286
286
|
icon: "save",
|
|
287
287
|
wide: "",
|
|
288
|
-
onClick: t[5] || (t[5] = (l) =>
|
|
288
|
+
onClick: t[5] || (t[5] = (l) => a.validateBeforeSubmit())
|
|
289
289
|
}, {
|
|
290
290
|
default: p(() => [
|
|
291
|
-
|
|
291
|
+
M(_(e.$t("_common:save")), 1)
|
|
292
292
|
]),
|
|
293
293
|
_: 1
|
|
294
294
|
}, 8, ["loading", "disabled"]),
|
|
295
|
-
v.id ? (
|
|
295
|
+
v.id ? (o(), g(n, {
|
|
296
296
|
key: 0,
|
|
297
297
|
loading: e.isPosting,
|
|
298
298
|
type: "secondary",
|
|
299
299
|
pattern: "tertiary",
|
|
300
300
|
style: { "margin-top": "calc(1 * var(--rem))" },
|
|
301
301
|
wide: "",
|
|
302
|
-
onClick: t[6] || (t[6] = (l) =>
|
|
302
|
+
onClick: t[6] || (t[6] = (l) => a.remove())
|
|
303
303
|
}, {
|
|
304
304
|
default: p(() => [
|
|
305
|
-
|
|
305
|
+
M(_(e.$t("_common:remove")), 1)
|
|
306
306
|
]),
|
|
307
307
|
_: 1
|
|
308
308
|
}, 8, ["loading"])) : C("", !0)
|
|
309
309
|
])) : C("", !0)
|
|
310
310
|
]);
|
|
311
311
|
}
|
|
312
|
-
const de = /* @__PURE__ */
|
|
312
|
+
const de = /* @__PURE__ */ x(ae, [["render", re], ["__scopeId", "data-v-286de2c9"]]), me = {
|
|
313
313
|
name: "TextTemplatesModal",
|
|
314
314
|
components: {
|
|
315
315
|
SmartList: Q,
|
|
@@ -327,7 +327,7 @@ const de = /* @__PURE__ */ M(oe, [["render", re], ["__scopeId", "data-v-286de2c9
|
|
|
327
327
|
};
|
|
328
328
|
},
|
|
329
329
|
computed: {
|
|
330
|
-
...
|
|
330
|
+
...R("templateMessages", {
|
|
331
331
|
templateMessages: (e) => e.data
|
|
332
332
|
}),
|
|
333
333
|
templates() {
|
|
@@ -369,10 +369,10 @@ const de = /* @__PURE__ */ M(oe, [["render", re], ["__scopeId", "data-v-286de2c9
|
|
|
369
369
|
key: 0,
|
|
370
370
|
class: "t-text quill-format"
|
|
371
371
|
}, ge = { key: 1 }, Ce = { class: "t-footer flex w-full items-center justify-between" };
|
|
372
|
-
function Te(e, t, v, u, s,
|
|
372
|
+
function Te(e, t, v, u, s, a) {
|
|
373
373
|
const n = r("CInput"), d = r("BaseTextEditor"), c = r("CIcon"), h = r("CButton"), y = r("SmartList");
|
|
374
|
-
return
|
|
375
|
-
items:
|
|
374
|
+
return o(), g(y, {
|
|
375
|
+
items: a.templates,
|
|
376
376
|
"sort-key": "position",
|
|
377
377
|
query: s.query
|
|
378
378
|
}, {
|
|
@@ -393,28 +393,28 @@ function Te(e, t, v, u, s, o) {
|
|
|
393
393
|
]),
|
|
394
394
|
i("div", ce, [
|
|
395
395
|
i("div", he, [
|
|
396
|
-
(
|
|
396
|
+
(o(!0), f(j, null, z(l, (S, E) => (o(), f("div", {
|
|
397
397
|
key: S.id,
|
|
398
|
-
class: U([{ selected: E === s.selectedIndex }, "t-list-item truncate
|
|
398
|
+
class: U([{ selected: E === s.selectedIndex }, "t-list-item w-full truncate"]),
|
|
399
399
|
onMouseoverPassive: () => s.selectedIndex = E,
|
|
400
|
-
onClick: (
|
|
400
|
+
onClick: (xe) => a.onSelect(l[s.selectedIndex].message || "")
|
|
401
401
|
}, _(S.name), 43, fe))), 128))
|
|
402
402
|
]),
|
|
403
|
-
e.mq !== "sm" ? (
|
|
404
|
-
l[s.selectedIndex] ? (
|
|
403
|
+
e.mq !== "sm" ? (o(), f("div", ve, [
|
|
404
|
+
l[s.selectedIndex] ? (o(), g(d, {
|
|
405
405
|
key: 0,
|
|
406
406
|
"model-value": l[s.selectedIndex].message || "",
|
|
407
407
|
editable: !1,
|
|
408
408
|
extensions: "all",
|
|
409
409
|
"class-list": "document-form",
|
|
410
410
|
unstyled: ""
|
|
411
|
-
}, null, 8, ["model-value"])) : (
|
|
411
|
+
}, null, 8, ["model-value"])) : (o(), f("div", ge, _(e.$t("noResults")), 1))
|
|
412
412
|
])) : C("", !0)
|
|
413
413
|
]),
|
|
414
414
|
i("div", Ce, [
|
|
415
415
|
t[2] || (t[2] = i("div", { style: { display: "inline-flex", "align-items": "center" } }, null, -1)),
|
|
416
416
|
i("div", null, [
|
|
417
|
-
u.viewContext !== "widget" ? (
|
|
417
|
+
u.viewContext !== "widget" ? (o(), g(h, {
|
|
418
418
|
key: 0,
|
|
419
419
|
to: { name: "settingsTemplates" },
|
|
420
420
|
class: "t-footer-button",
|
|
@@ -422,7 +422,7 @@ function Te(e, t, v, u, s, o) {
|
|
|
422
422
|
size: "small"
|
|
423
423
|
}, {
|
|
424
424
|
default: p(() => [
|
|
425
|
-
|
|
425
|
+
M(_(e.$t("handle")) + " ", 1),
|
|
426
426
|
m(c, {
|
|
427
427
|
type: "new-window",
|
|
428
428
|
size: "16",
|
|
@@ -434,10 +434,10 @@ function Te(e, t, v, u, s, o) {
|
|
|
434
434
|
m(h, {
|
|
435
435
|
class: "t-footer-button",
|
|
436
436
|
size: "small",
|
|
437
|
-
onClick:
|
|
437
|
+
onClick: a.openCreateModal
|
|
438
438
|
}, {
|
|
439
439
|
default: p(() => [
|
|
440
|
-
|
|
440
|
+
M(_(e.$t("create", { thing: e.$t("template") })), 1)
|
|
441
441
|
]),
|
|
442
442
|
_: 1
|
|
443
443
|
}, 8, ["onClick"])
|
|
@@ -448,18 +448,13 @@ function Te(e, t, v, u, s, o) {
|
|
|
448
448
|
_: 1
|
|
449
449
|
}, 8, ["items", "query"]);
|
|
450
450
|
}
|
|
451
|
-
const _e = /* @__PURE__ */
|
|
451
|
+
const _e = /* @__PURE__ */ x(me, [["render", Te], ["__scopeId", "data-v-e354b48d"]]), ye = {
|
|
452
452
|
name: "TextTemplates",
|
|
453
453
|
components: {
|
|
454
454
|
ContextModal: se,
|
|
455
455
|
TextTemplatesModal: _e
|
|
456
456
|
},
|
|
457
457
|
emits: ["open", "close", "select"],
|
|
458
|
-
inject: {
|
|
459
|
-
viewSettings: {
|
|
460
|
-
default: () => ({ isPublicForm: !1 })
|
|
461
|
-
}
|
|
462
|
-
},
|
|
463
458
|
props: {
|
|
464
459
|
placement: {
|
|
465
460
|
type: String,
|
|
@@ -467,20 +462,17 @@ const _e = /* @__PURE__ */ M(me, [["render", Te], ["__scopeId", "data-v-f299b0c2
|
|
|
467
462
|
}
|
|
468
463
|
},
|
|
469
464
|
created() {
|
|
470
|
-
this.
|
|
465
|
+
this.loadTemplateMessages();
|
|
471
466
|
},
|
|
472
467
|
methods: {
|
|
473
468
|
...B({
|
|
474
469
|
loadTemplateMessages: T.LOAD_TEMPLATE_MESSAGES
|
|
475
470
|
})
|
|
476
471
|
}
|
|
477
|
-
}, Se = {
|
|
478
|
-
|
|
479
|
-
class: "t-list"
|
|
480
|
-
}, $e = { class: "t-option main" };
|
|
481
|
-
function xe(e, t, v, u, s, o) {
|
|
472
|
+
}, Se = { class: "t-list" }, $e = { class: "t-option main" };
|
|
473
|
+
function Me(e, t, v, u, s, a) {
|
|
482
474
|
const n = r("TextTemplatesModal"), d = r("ContextModal");
|
|
483
|
-
return o
|
|
475
|
+
return o(), f("div", Se, [
|
|
484
476
|
m(d, {
|
|
485
477
|
"break-point": 1e3,
|
|
486
478
|
placement: v.placement,
|
|
@@ -500,9 +492,9 @@ function xe(e, t, v, u, s, o) {
|
|
|
500
492
|
]),
|
|
501
493
|
_: 3
|
|
502
494
|
}, 8, ["placement"])
|
|
503
|
-
])
|
|
495
|
+
]);
|
|
504
496
|
}
|
|
505
|
-
const Ie = /* @__PURE__ */
|
|
497
|
+
const Ie = /* @__PURE__ */ x(ye, [["render", Me]]);
|
|
506
498
|
export {
|
|
507
499
|
Ie as default
|
|
508
500
|
};
|