@cling-se/widget 0.14.2 → 0.14.4

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.
Files changed (134) hide show
  1. package/.eslintrc.cjs +4 -4
  2. package/README.md +40 -40
  3. package/package.json +1 -1
  4. package/tsconfig.json +26 -26
  5. package/tsconfig.node.json +10 -10
  6. package/tsconfig.paths.json +17 -17
  7. package/vite.config.ts +61 -61
  8. package/dist/AddClientCallout-BP2ip0A4.js +0 -46
  9. package/dist/AnswerModal-C8i3ldB_.js +0 -3869
  10. package/dist/AttachmentItem-BrvrAMae.js +0 -78
  11. package/dist/BaseDatePicker-BSkAllLg.js +0 -3183
  12. package/dist/BaseUpload-J2v3G0-q.js +0 -1977
  13. package/dist/BlockMedia-CAgKbN_k.js +0 -76
  14. package/dist/CCallout-D5Nk5DgN.js +0 -59
  15. package/dist/CCurrencyDropdown-CGYQfYSD.js +0 -246
  16. package/dist/CDropdownItem-DGES8E6l.js +0 -538
  17. package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
  18. package/dist/CFormField-CE4rV3cr.js +0 -241
  19. package/dist/CPhoneFormat-DXPrTit9.js +0 -62
  20. package/dist/CPriceInput-CYsf1n6T.js +0 -112
  21. package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
  22. package/dist/ClientAutocomplete-DPgOfPg1.js +0 -78
  23. package/dist/ClientModal-Dznh8Vvn.js +0 -625
  24. package/dist/ColorPicker-CWQEE8VR.js +0 -2879
  25. package/dist/CompanyModal-CeZ3GgLu.js +0 -141
  26. package/dist/ContentWrapper-DW7VHTdA.js +0 -183
  27. package/dist/CoverBlockSettings-DNSdXFgF.js +0 -275
  28. package/dist/DocAnswer-CPttkKAJ.js +0 -36
  29. package/dist/DocDetails-BCwWW_kM.js +0 -246
  30. package/dist/DocForm-BPjC08Ic.js +0 -7273
  31. package/dist/DocFormSend-BaC8IJCu.js +0 -143
  32. package/dist/DocLinks-DN-S8MY_.js +0 -38
  33. package/dist/DocModalBase-bFJp0T2Y.js +0 -28
  34. package/dist/DocPrint-Ci7Jyh-C.js +0 -240
  35. package/dist/DocReceipt-BYlXr6eS.js +0 -210
  36. package/dist/DocSendReminder-DFx4934a.js +0 -137
  37. package/dist/DocTextEditor-idQMnlIF.js +0 -17177
  38. package/dist/DocTimeline-ZmGSVRUB.js +0 -481
  39. package/dist/DocumentClient-DTRlyvLO.js +0 -136
  40. package/dist/DocumentLayout-BJAyNjNa.js +0 -4909
  41. package/dist/DocumentLogotype-pDJRc6Hj.js +0 -87
  42. package/dist/DocumentVoided-DfKewfe4.js +0 -25
  43. package/dist/EmbedInput-7hLNsnEV.js +0 -113
  44. package/dist/EmbedSettings-CpL24RhA.js +0 -72
  45. package/dist/ErrorCallout-CdJCe67q.js +0 -28
  46. package/dist/FilePreviewModal-B7qT3I7F.js +0 -81
  47. package/dist/Flag-DwW19zju.js +0 -114
  48. package/dist/HeaderSettings-C8SuuAwv.js +0 -392
  49. package/dist/ImageSelectModal-CAOh3YHc.js +0 -84
  50. package/dist/ImageUploadWrapper-21yldsj9.js +0 -1604
  51. package/dist/Index-B0BgYtWI.js +0 -150
  52. package/dist/Index-BC1AhlQ9.js +0 -98
  53. package/dist/Index-BZi6r2UN.js +0 -144
  54. package/dist/Index-BsD09y_2.js +0 -84
  55. package/dist/Index-Bu9SdKLP.js +0 -31
  56. package/dist/Index-BvsqZh2A.js +0 -26
  57. package/dist/Index-Bz4qd9uO.js +0 -55
  58. package/dist/Index-C--GiPc1.js +0 -171
  59. package/dist/Index-CC7qF0br.js +0 -77
  60. package/dist/Index-CGxOvTF4.js +0 -2402
  61. package/dist/Index-CI7_ktvb.js +0 -70
  62. package/dist/Index-COJZmxkX.js +0 -32
  63. package/dist/Index-CObEQ6G-.js +0 -140
  64. package/dist/Index-CP2bsXd-.js +0 -52
  65. package/dist/Index-CSvZBLnp.js +0 -49
  66. package/dist/Index-Ci-hGBbC.js +0 -33
  67. package/dist/Index-Ckzq1cEJ.js +0 -69
  68. package/dist/Index-CoIh5y2F.js +0 -62
  69. package/dist/Index-Couda8BX.js +0 -21
  70. package/dist/Index-CvXt3dm6.js +0 -292
  71. package/dist/Index-D95MNzAZ.js +0 -58
  72. package/dist/Index-DB5EG4EI.js +0 -223
  73. package/dist/Index-DDvRihXA.js +0 -24
  74. package/dist/Index-DIAntwBs.js +0 -61
  75. package/dist/Index-DUdJNcDT.js +0 -25
  76. package/dist/Index-DfANvO5d.js +0 -154
  77. package/dist/Index-Ds1Jv5Mr.js +0 -559
  78. package/dist/Index-FIWsRGmh.js +0 -57
  79. package/dist/Index-M3b7S4YX.js +0 -25
  80. package/dist/Index-NoN1_539.js +0 -642
  81. package/dist/Index-UGFm4yxI.js +0 -107
  82. package/dist/Index-aCBe0dXx.js +0 -754
  83. package/dist/Index-kJFtpJEP.js +0 -46
  84. package/dist/Index-rQKoLISX.js +0 -45
  85. package/dist/InputToggleRow-Ct8rvqAF.js +0 -57
  86. package/dist/ManualPopover-B0vp9ydC.js +0 -54
  87. package/dist/MediaWrapper-hmofOPLv.js +0 -23
  88. package/dist/NotBindingText-COpJPwHe.js +0 -32
  89. package/dist/PackageGroup-BdtslJL-.js +0 -699
  90. package/dist/PdfTerms-EDStBDhn.js +0 -36
  91. package/dist/PdfViewer-D1_Roqu2.js +0 -374
  92. package/dist/PlainHtml-C3JPvt4o.js +0 -20
  93. package/dist/PriceHeader-BdfozyN8.js +0 -339
  94. package/dist/SearchApi-CQtYh98a.js +0 -161
  95. package/dist/Setup-DHHMT6xu.js +0 -50
  96. package/dist/SmartList-BXeRj5NC.js +0 -83
  97. package/dist/TermsSettings-D1tDAu-r.js +0 -102
  98. package/dist/ThemeColorRow-HUN-QPY_.js +0 -63
  99. package/dist/ToggleBinding-CRoVM6Nw.js +0 -38
  100. package/dist/UploadModal-BD3pIiPT.js +0 -95
  101. package/dist/VideoPlayerInput-QFJfPoCf.js +0 -93
  102. package/dist/VideoPlayerSettings-CGq--niu.js +0 -61
  103. package/dist/VideoSelectModal-B61rBqdH.js +0 -100
  104. package/dist/anime.es-BrPTThYb.js +0 -858
  105. package/dist/answerDocumentMixin-DiONfM1s.js +0 -51
  106. package/dist/color-TdtKxwVa.js +0 -19
  107. package/dist/debounce-BIchuVwa.js +0 -84
  108. package/dist/dom-CJxkno7i.js +0 -91
  109. package/dist/favicon.ico +0 -0
  110. package/dist/focusDrawerMixin-CzvgKsOZ.js +0 -22
  111. package/dist/formComponentsInstall-EQLbqYqI.js +0 -2494
  112. package/dist/formDrawerState-CiKGHdNH.js +0 -20
  113. package/dist/formValidationMixin-5BVcxu38.js +0 -49
  114. package/dist/i18nMessages-Chz_lxGG.js +0 -17
  115. package/dist/index-BYTRIZIz.js +0 -81
  116. package/dist/index-Be__C37A.js +0 -102
  117. package/dist/index-CUydiL8B.js +0 -3919
  118. package/dist/index-DH6SCEKQ.js +0 -166
  119. package/dist/index-gtVGRKIX.js +0 -347
  120. package/dist/index-tNIrTnCx.js +0 -492
  121. package/dist/index.es.js +0 -35
  122. package/dist/index.umd.js +0 -3148
  123. package/dist/main-Bp2qcma0.js +0 -56697
  124. package/dist/mapFormMixin-Ce3_WIKw.js +0 -72
  125. package/dist/omit-21u5fFMx.js +0 -31
  126. package/dist/publicSenderState-BcN9kJJr.js +0 -21
  127. package/dist/splitpanes-BHUVsCZF.js +0 -382
  128. package/dist/style.css +0 -4
  129. package/dist/throttle-CfPxqhW_.js +0 -18
  130. package/dist/tinycolor-DNK6zGoq.js +0 -633
  131. package/dist/tippy.esm-B5TcTBWX.js +0 -1799
  132. package/dist/utils-GzwJPAEe.js +0 -108
  133. package/dist/vuedraggable.umd-2pmrPYml.js +0 -3161
  134. package/dist/vuex.esm-DKGl8mcw.js +0 -467
@@ -1,51 +0,0 @@
1
- import { w as a } from "./CDropdownItem-DGES8E6l.js";
2
- import { b as r } from "./main-Bp2qcma0.js";
3
- const m = ({ documentKey: s = "document" } = {}) => ({
4
- mixins: [a],
5
- inject: {
6
- formValidation: { default: null }
7
- },
8
- methods: {
9
- isValid() {
10
- const { isFormValid: t, scrollToInvalidInput: i } = this.formValidation || this;
11
- return !t || !i || t() ? !0 : i({ offset: 120 });
12
- },
13
- isAnswerModalOpen() {
14
- const t = this.$modal.getOpenInstances();
15
- return t && t.length && t.some((i) => {
16
- var e;
17
- return ((e = i.modalAttrs) == null ? void 0 : e.name) === "AnswerModal";
18
- });
19
- },
20
- onAnswer(t = "accept", i = {}) {
21
- if (this.isAnswerModalOpen())
22
- return;
23
- const e = r(this, s);
24
- if (!e || e.isPreview || !(t === "decline" ? !0 : this.isValid()))
25
- return;
26
- const o = this.mq === "sm" ? "100%" : "auto", n = () => import("./AnswerModal-C8i3ldB_.js");
27
- this.$modal.show(
28
- n,
29
- {
30
- mode: t,
31
- _document: e,
32
- fullScreen: o === "100%",
33
- calcHeight: !!i.calcHeight
34
- },
35
- {
36
- name: "AnswerModal",
37
- adaptive: !0,
38
- height: "auto",
39
- width: "90%",
40
- maxWidth: 420,
41
- classes: "overflow-visible",
42
- transition: "modal-soft",
43
- clickToClose: !1
44
- }
45
- );
46
- }
47
- }
48
- });
49
- export {
50
- m as a
51
- };
@@ -1,19 +0,0 @@
1
- const l = ({
2
- type: n = "linear",
3
- degree: r = 0,
4
- colors: e = []
5
- }) => {
6
- let t = "";
7
- return !e || e.length < 2 || (t = n === "linear" ? `linear-gradient(${r}deg,` : "radial-gradient(", e.forEach(({ color: a, percent: h }, i) => {
8
- t += `${a} ${h}%`, i !== e.length - 1 && (t += ",");
9
- }), t += ")"), t;
10
- }, s = (n) => {
11
- if (!n)
12
- return "";
13
- const r = Math.round(n.h * 100) / 100, e = Math.round(n.s * 100 * 100) / 100, t = Math.round(n.l * 100 * 100) / 100, a = Math.round(n.a * 100 * 100) / 100 / 100;
14
- return `hsla(${r},${e}%,${t}%,${a})`;
15
- };
16
- export {
17
- l as g,
18
- s as h
19
- };
@@ -1,84 +0,0 @@
1
- import { a7 as C, l as k, a8 as j, k as A } from "./main-Bp2qcma0.js";
2
- var L = C, M = function() {
3
- return L.Date.now();
4
- }, B = M, F = /\s/;
5
- function R(e) {
6
- for (var r = e.length; r-- && F.test(e.charAt(r)); )
7
- ;
8
- return r;
9
- }
10
- var D = R, H = D, P = /^\s+/;
11
- function U(e) {
12
- return e && e.slice(0, H(e) + 1).replace(P, "");
13
- }
14
- var X = U, q = X, y = k, w = j, _ = NaN, z = /^[-+]0x[0-9a-f]+$/i, G = /^0b[01]+$/i, J = /^0o[0-7]+$/i, K = parseInt;
15
- function Q(e) {
16
- if (typeof e == "number")
17
- return e;
18
- if (w(e))
19
- return _;
20
- if (y(e)) {
21
- var r = typeof e.valueOf == "function" ? e.valueOf() : e;
22
- e = y(r) ? r + "" : r;
23
- }
24
- if (typeof e != "string")
25
- return e === 0 ? e : +e;
26
- e = q(e);
27
- var i = G.test(e);
28
- return i || J.test(e) ? K(e.slice(2), i ? 2 : 8) : z.test(e) ? _ : +e;
29
- }
30
- var V = Q, Y = k, T = B, $ = V, Z = "Expected a function", ee = Math.max, ne = Math.min;
31
- function re(e, r, i) {
32
- var u, o, l, s, t, f, d = 0, I = !1, c = !1, b = !0;
33
- if (typeof e != "function")
34
- throw new TypeError(Z);
35
- r = $(r) || 0, Y(i) && (I = !!i.leading, c = "maxWait" in i, l = c ? ee($(i.maxWait) || 0, r) : l, b = "trailing" in i ? !!i.trailing : b);
36
- function g(n) {
37
- var a = u, m = o;
38
- return u = o = void 0, d = n, s = e.apply(m, a), s;
39
- }
40
- function O(n) {
41
- return d = n, t = setTimeout(v, r), I ? g(n) : s;
42
- }
43
- function S(n) {
44
- var a = n - f, m = n - d, p = r - a;
45
- return c ? ne(p, l - m) : p;
46
- }
47
- function h(n) {
48
- var a = n - f, m = n - d;
49
- return f === void 0 || a >= r || a < 0 || c && m >= l;
50
- }
51
- function v() {
52
- var n = T();
53
- if (h(n))
54
- return E(n);
55
- t = setTimeout(v, S(n));
56
- }
57
- function E(n) {
58
- return t = void 0, b && u ? g(n) : (u = o = void 0, s);
59
- }
60
- function N() {
61
- t !== void 0 && clearTimeout(t), d = 0, u = f = o = t = void 0;
62
- }
63
- function W() {
64
- return t === void 0 ? s : E(T());
65
- }
66
- function x() {
67
- var n = T(), a = h(n);
68
- if (u = arguments, o = this, f = n, a) {
69
- if (t === void 0)
70
- return O(f);
71
- if (c)
72
- return clearTimeout(t), t = setTimeout(v, r), g(f);
73
- }
74
- return t === void 0 && (t = setTimeout(v, r)), s;
75
- }
76
- return x.cancel = N, x.flush = W, x;
77
- }
78
- var te = re;
79
- const ae = /* @__PURE__ */ A(te);
80
- export {
81
- te as a,
82
- ae as d,
83
- V as t
84
- };
@@ -1,91 +0,0 @@
1
- const s = {}, a = {};
2
- function u(t) {
3
- if (a[t])
4
- return;
5
- if (s[t])
6
- return s[t];
7
- let o;
8
- const n = new Promise((e, r) => {
9
- o = window.setTimeout(() => {
10
- s[t] = null, r(new Error(`Failed to load ${t} in 20s`));
11
- }, 2e4), import(
12
- /* @vite-ignore */
13
- t
14
- ).then(() => {
15
- o && window.clearTimeout(o), a[t] = !0, s[t] = null, e();
16
- }).catch((c) => {
17
- o && window.clearTimeout(o), s[t] = null, r(c);
18
- });
19
- });
20
- return s[t] = n, n;
21
- }
22
- function p(t) {
23
- if (t.endsWith(".mjs"))
24
- return u(t);
25
- if (a[t])
26
- return;
27
- if (s[t])
28
- return s[t];
29
- const o = new Promise((n, e) => {
30
- const r = document.createElement("script"), c = window.setTimeout(() => {
31
- s[t] = null, e(new Error(`Failed to load ${t} in 20s`));
32
- }, 2e4);
33
- r.onload = (f) => {
34
- c && window.clearTimeout(c), a[t] = !0, s[t] = null, n();
35
- }, r.onerror = (f) => {
36
- c && window.clearTimeout(c), s[t] = null, e(f);
37
- }, r.src = t, document.body.appendChild(r);
38
- });
39
- return s[t] = o, o;
40
- }
41
- function h(t) {
42
- const o = t.getBoundingClientRect(), n = window.innerHeight || document.documentElement.clientHeight, e = window.innerWidth || document.documentElement.clientWidth, r = o.top <= n && o.top + o.height >= 0, c = o.left <= e && o.left + o.width >= 0;
43
- return r && c;
44
- }
45
- const m = (t) => {
46
- const o = /(auto|scroll)/, n = (i, l) => i.parentNode === null ? l : n(i.parentNode, l.concat([i])), e = (i, l) => getComputedStyle(i, null).getPropertyValue(l), r = (i) => e(i, "overflow") + e(i, "overflow-y") + e(i, "overflow-x"), c = (i) => o.test(r(i));
47
- return ((i) => {
48
- if (!(i instanceof HTMLElement || i instanceof SVGElement))
49
- return null;
50
- const l = n(i.parentNode, []);
51
- for (let d = 0; d < l.length; d += 1)
52
- if (c(l[d]))
53
- return l[d];
54
- return document.scrollingElement || document.documentElement;
55
- })(t);
56
- }, w = (t) => {
57
- let o = 0;
58
- for (; t; )
59
- o += t.offsetTop, t = t.offsetParent;
60
- return o;
61
- };
62
- function g(t, o) {
63
- let n = t;
64
- typeof n == "string" && (n = document.querySelector(n));
65
- const e = {
66
- offset: 0,
67
- behavior: "smooth",
68
- body: m(n),
69
- // custom option used for choosing parent scroll element
70
- ...o
71
- }, r = w(n);
72
- HTMLElement.prototype.scrollTo ? e.body.scrollTo({
73
- behavior: e.behavior,
74
- top: r - e.offset
75
- }) : e.body.scrollTop = r - e.offset;
76
- }
77
- const T = (t) => {
78
- var e;
79
- const o = (e = t == null ? void 0 : t.getRootNode) == null ? void 0 : e.call(t), n = (o == null ? void 0 : o.toString()) === "[object ShadowRoot]";
80
- return {
81
- isShadow: n,
82
- el: n ? o : document
83
- };
84
- };
85
- export {
86
- m as a,
87
- p as e,
88
- T as g,
89
- h as i,
90
- g as s
91
- };
package/dist/favicon.ico DELETED
Binary file
@@ -1,22 +0,0 @@
1
- import { s as o } from "./formDrawerState-CiKGHdNH.js";
2
- const t = {
3
- inject: {
4
- sectionTopNode: {
5
- type: [String, Number],
6
- default: null
7
- }
8
- },
9
- computed: {
10
- showDrawer() {
11
- return this.sectionTopNode && o.openSection && this.sectionTopNode === o.openSection;
12
- }
13
- },
14
- methods: {
15
- openDrawer() {
16
- this.sectionTopNode && (o.openSection = this.sectionTopNode);
17
- }
18
- }
19
- };
20
- export {
21
- t as f
22
- };