@cling-se/widget 0.16.0 → 0.17.2

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 (128) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{AddClientCallout-y-zhsVHD.js → AddClientCallout-TF4dWJwb.js} +4 -4
  3. package/dist/{AnswerModal-D_Xn8vYp.js → AnswerModal-CLHDa2TD.js} +218 -213
  4. package/dist/{AttachmentItem-B_QXPkQd.js → AttachmentItem-ICP5nbhT.js} +4 -4
  5. package/dist/{BaseDatePicker-9mWkLSes.js → BaseDatePicker-wwmiz_b5.js} +2 -2
  6. package/dist/{BaseUpload-BYr9ceyE.js → BaseUpload-CDZOjohX.js} +2 -2
  7. package/dist/{BlockMedia-B7df7mkZ.js → BlockMedia-D1JAYF9F.js} +1 -1
  8. package/dist/{CCallout-PpBctkYi.js → CCallout-dAjcZXrm.js} +1 -1
  9. package/dist/{CCurrencyDropdown-B4r3UK5p.js → CCurrencyDropdown-CKRgncWy.js} +3 -3
  10. package/dist/{CDropdownItem-D9qExYxr.js → CDropdownItem-CkSNbSdj.js} +1 -1
  11. package/dist/{CFormField-CAu3ko8B.js → CFormField-Dw6UM1u6.js} +1 -1
  12. package/dist/{CPhoneFormat-LZmpWJgi.js → CPhoneFormat-Bd-HZuYo.js} +1 -1
  13. package/dist/{CPhoneInput-ChuZrAQD.js → CPhoneInput-Dd6cJ4jg.js} +5 -5
  14. package/dist/{CPriceInput-COrol9j1.js → CPriceInput-CjV95s8E.js} +2 -2
  15. package/dist/{CSelect-kh9nf3qC.js → CSelect-izVnsQME.js} +1 -1
  16. package/dist/{CSkeleton-D_ixq6ml.js → CSkeleton-C0TjtLtY.js} +1 -1
  17. package/dist/{ClientAutocomplete-DHipi8vn.js → ClientAutocomplete-Cfu3abEx.js} +3 -3
  18. package/dist/{ClientModal-BowPWtr4.js → ClientModal-DjSoPQ9x.js} +7 -7
  19. package/dist/{ColorPicker-CzbXZiaY.js → ColorPicker-DZP6FIdn.js} +1 -1
  20. package/dist/{CompanyModal-B9YpDL-m.js → CompanyModal-BYQWdbhG.js} +6 -6
  21. package/dist/{ContentWrapper-DaZYO-TC.js → ContentWrapper-Bci9pSEp.js} +9 -10
  22. package/dist/{CoverBlockSettings-BVjSiXAC.js → CoverBlockSettings-wD55bj3k.js} +6 -6
  23. package/dist/{DocAnswer-D2wP2fWm.js → DocAnswer-B5q-ntKP.js} +2 -2
  24. package/dist/{DocDetails-BZ7Ra1DH.js → DocDetails-BQuaNZ4b.js} +4 -4
  25. package/dist/{DocForm-Bf9B4wgW.js → DocForm-QzZ5wqsS.js} +1052 -3339
  26. package/dist/{DocFormSend-CKgGNEXF.js → DocFormSend-CORtQPhb.js} +2 -2
  27. package/dist/{DocLinks-D62I0vCP.js → DocLinks-DZPzODUe.js} +2 -2
  28. package/dist/{DocModalBase-DPDXjuJL.js → DocModalBase-TTALjv6K.js} +1 -1
  29. package/dist/{DocPrint-RJ0CtTmm.js → DocPrint-BB-KT9ut.js} +1 -1
  30. package/dist/{DocReceipt-BibIkXtI.js → DocReceipt-CGks1GLS.js} +2 -2
  31. package/dist/{DocSendReminder-8mxaYS6a.js → DocSendReminder-BBQXJbsV.js} +1 -1
  32. package/dist/{DocTextEditor-CHSTTDb5.js → DocTextEditor-DFid7uKr.js} +8 -8
  33. package/dist/{DocTimeline-Pb2mDuSl.js → DocTimeline-4jnYDmBI.js} +2 -2
  34. package/dist/{DocumentClient-CBVMXCJk.js → DocumentClient-BAAX7Dxk.js} +5 -5
  35. package/dist/{DocumentLayout-C-wJE5eC.js → DocumentLayout-C4edCFmr.js} +7 -6
  36. package/dist/{DocumentLogotype-DweKx9A7.js → DocumentLogotype-i7YSQKcH.js} +4 -4
  37. package/dist/{DocumentVoided-yGVbvKRa.js → DocumentVoided-BvZoMFB_.js} +1 -1
  38. package/dist/{EmbedInput-Cjfd1wIG.js → EmbedInput-Bij7ER30.js} +3 -3
  39. package/dist/{EmbedSettings-CdKmydes.js → EmbedSettings-D0oyq4-9.js} +3 -3
  40. package/dist/{ErrorCallout-CcZpbmta.js → ErrorCallout-CsW3WTZp.js} +1 -1
  41. package/dist/{FilePreviewModal-Cud7184s.js → FilePreviewModal-Doaawg0l.js} +2 -2
  42. package/dist/{Flag-BNvniHuq.js → Flag-C4Mf2xUU.js} +1 -1
  43. package/dist/{HeaderSettings-BJsebJRd.js → HeaderSettings-DwZ54IsK.js} +21 -22
  44. package/dist/{ImageSelectModal-DLf_eWz1.js → ImageSelectModal-ClFJ5uXM.js} +3 -3
  45. package/dist/{ImageUploadWrapper-w5ZLifwQ.js → ImageUploadWrapper-DtEp_Pg3.js} +2 -2
  46. package/dist/{Index-CSpVwK6k.js → Index-2MwnGZ_4.js} +4 -4
  47. package/dist/{Index-CcPsAtze.js → Index-3CwdeytO.js} +5 -5
  48. package/dist/{Index-BMH-ouw7.js → Index-B-bSVOoh.js} +4 -4
  49. package/dist/{Index-D4-f7mTG.js → Index-BDyMp1ib.js} +7 -7
  50. package/dist/{Index-DY9Tntfh.js → Index-BMgtwHVA.js} +3 -3
  51. package/dist/{Index-VsRsMadr.js → Index-BTD3hWbY.js} +14 -17
  52. package/dist/{Index-uY0XMOKH.js → Index-BUbd06rz.js} +8 -8
  53. package/dist/{Index-DblXQyCy.js → Index-BWnh94_i.js} +2 -2
  54. package/dist/{Index-DYkN8zVO.js → Index-BdJbs8bM.js} +2 -2
  55. package/dist/{Index-C3yLVDgc.js → Index-Bv2XrpgK.js} +4 -4
  56. package/dist/{Index-BlJJ_Hyd.js → Index-BzcZCdHj.js} +2 -2
  57. package/dist/{Index-Cj7YINSC.js → Index-C00Ay-7P.js} +4 -4
  58. package/dist/{Index-Cf2bPdtB.js → Index-CHL_6WQH.js} +13 -17
  59. package/dist/{Index-BQLpCuiY.js → Index-CLyNrkJA.js} +1 -1
  60. package/dist/{Index-BKoxPM7Q.js → Index-CV57PvUE.js} +4 -4
  61. package/dist/{Index-B9C1WkCd.js → Index-CbYLDVU5.js} +3 -3
  62. package/dist/{Index-BDbonb6D.js → Index-Crj4apcP.js} +5 -5
  63. package/dist/{Index-B5iGQq9Y.js → Index-CryBgLTa.js} +7 -7
  64. package/dist/{Index-B83yprTa.js → Index-Cv33nreP.js} +4 -4
  65. package/dist/{Index-CiPhHgfu.js → Index-D0ErQJ2M.js} +33 -34
  66. package/dist/{Index-C-2vPFaj.js → Index-D8ZnVbsP.js} +4 -4
  67. package/dist/{Index-D_wcx3Of.js → Index-DPNIJewY.js} +4 -4
  68. package/dist/{Index-CRM1JC9P.js → Index-DVXhB0Ja.js} +4 -4
  69. package/dist/{Index-f9sVo8jx.js → Index-DWhQwxeB.js} +14 -18
  70. package/dist/{Index-DuO2f-vX.js → Index-DX7tomhl.js} +8 -8
  71. package/dist/{Index-BoHaA_xe.js → Index-D_AdmLWe.js} +13 -21
  72. package/dist/{Index-CF2U1V_D.js → Index-DgTQzlfK.js} +2 -2
  73. package/dist/{Index-BvvwWlpY.js → Index-DhapmO-4.js} +5 -5
  74. package/dist/{Index-DzR0bujJ.js → Index-DjC8joRt.js} +5 -5
  75. package/dist/{Index-P6z5RLSu.js → Index-Dv4l4LKF.js} +6 -6
  76. package/dist/{Index-BlFe_sVA.js → Index-EO0rsTmx.js} +49 -34
  77. package/dist/{Index-BDdcJgub.js → Index-TTFKPIIC.js} +28 -30
  78. package/dist/{Index-DwgpBl9r.js → Index-cT8oYfLR.js} +1 -1
  79. package/dist/{Index-0FsmqoRt.js → Index-igPwrQMu.js} +1 -1
  80. package/dist/{InputToggleRow-CJYPezZy.js → InputToggleRow-BgOubdXs.js} +1 -1
  81. package/dist/{ManualPopover-Cqoi2dQR.js → ManualPopover-8suun-i9.js} +1 -1
  82. package/dist/{MediaWrapper-5ArAcMau.js → MediaWrapper-BadblLbS.js} +3 -3
  83. package/dist/{NotBindingText-DdTbb3O4.js → NotBindingText-D8Blua5a.js} +2 -2
  84. package/dist/{PackageGroup-BTU_pglB.js → PackageGroup-BxmqH6qI.js} +6 -7
  85. package/dist/PdfTerms-C6MRk0Ix.js +31 -0
  86. package/dist/{PdfViewer-DG-MYtZa.js → PdfViewer-DUoiQx_1.js} +26 -17
  87. package/dist/{PlainHtml-SN-qLxLn.js → PlainHtml-DZ9V0Yuf.js} +1 -1
  88. package/dist/{PriceHeader-BWnpaBZ0.js → PriceHeader-C3_CoKrL.js} +11 -12
  89. package/dist/{SearchApi-BnxpIqz-.js → SearchApi-Bg9FwkW0.js} +29 -42
  90. package/dist/{SendForm-CrNnUYWp.js → SendForm-D-OvqCee.js} +11 -11
  91. package/dist/{Setup-BloDBZml.js → Setup-CwK4er2y.js} +1 -1
  92. package/dist/{SmartList-_z7XCf7a.js → SmartList-DofjZjfy.js} +1 -1
  93. package/dist/{TermsSettings-CtijshXK.js → TermsSettings-B4glHd0I.js} +5 -5
  94. package/dist/{ThemeColorRow-DThMA_v6.js → ThemeColorRow-BplIaxA2.js} +3 -3
  95. package/dist/{ToggleBinding-BXdn9i32.js → ToggleBinding-6ntt38Ye.js} +4 -4
  96. package/dist/{UploadModal-CMblLwJF.js → UploadModal-B6jQzsYA.js} +2 -2
  97. package/dist/{VideoPlayerInput-Dpan3me5.js → VideoPlayerInput-ryP77WC0.js} +4 -4
  98. package/dist/{VideoPlayerSettings-Dmmoz0nE.js → VideoPlayerSettings-DJh0JNRI.js} +2 -2
  99. package/dist/{VideoSelectModal-CrFgVTrD.js → VideoSelectModal-8udQ394X.js} +3 -3
  100. package/dist/{answerDocumentMixin-C13fhvoV.js → answerDocumentMixin-CF4J_vsp.js} +3 -3
  101. package/dist/{debounce-4B1-HP-3.js → debounce-CgyZi04Q.js} +1 -1
  102. package/dist/dom-Ds4ypDrd.js +72 -0
  103. package/dist/{focusDrawerMixin-CctNs3Uo.js → focusDrawerMixin-DVCJIsb_.js} +1 -1
  104. package/dist/{formDrawerState-DEg12QaL.js → formDrawerState-BYsq1pB0.js} +1 -1
  105. package/dist/{formValidationMixin-DXSTeLwK.js → formValidationMixin-Dq7aZhBk.js} +2 -2
  106. package/dist/{index-DfRihiRe.js → index-2Q8Ejpof.js} +7 -7
  107. package/dist/{index-4BD0nKeD.js → index-B5-izJkt.js} +1 -1
  108. package/dist/{index-CtLvzhen.js → index-BQb6k0M8.js} +6 -6
  109. package/dist/{index-BTvgCLOL.js → index-CR-KQfRE.js} +1 -1
  110. package/dist/{index-MnjQHyr1.js → index-CogHiXWx.js} +6 -6
  111. package/dist/{index-D7crCb7w.js → index-lZ1sSNWc.js} +1 -1
  112. package/dist/index.es.js +3 -3
  113. package/dist/index.umd.js +1074 -1074
  114. package/dist/{main-DK3JrX1P.js → main-BpqUyMpC.js} +4689 -4743
  115. package/dist/mapFormMixin-rxtAFyFK.js +3028 -0
  116. package/dist/{omit-CqikFKvF.js → omit-C7FeydiO.js} +1 -1
  117. package/dist/{publicSenderState-DtdMgn5v.js → publicSenderState-C4cIGu3m.js} +1 -1
  118. package/dist/{simplebar.min-BEjSOYoR.js → simplebar.min-Dm388s-3.js} +1 -1
  119. package/dist/style.css +2 -2
  120. package/dist/{throttle-Bbw-Wnk7.js → throttle-CfcsX8nA.js} +2 -2
  121. package/dist/{tippy.esm-DQb1IUux.js → tippy.esm-C9mV-Rzr.js} +5 -5
  122. package/dist/{utils-DSw9IgIG.js → utils-CMs9ODO8.js} +1 -1
  123. package/dist/{vuedraggable.umd-kqbjGStS.js → vuedraggable.umd-CChGnToh.js} +1 -1
  124. package/package.json +1 -1
  125. package/dist/PdfTerms-CltyFwWM.js +0 -31
  126. package/dist/dom-CJxkno7i.js +0 -91
  127. package/dist/mapFormMixin-_bBfKoX9.js +0 -72
  128. package/dist/tinycolor-DxfarVSt.js +0 -633
@@ -1,5 +1,5 @@
1
- import { l as n, o as l } from "./main-DK3JrX1P.js";
2
- import { a as o } from "./debounce-4B1-HP-3.js";
1
+ import { l as n, o as l } from "./main-BpqUyMpC.js";
2
+ import { a as o } from "./debounce-CgyZi04Q.js";
3
3
  var g = o, c = l, f = "Expected a function";
4
4
  function u(a, i, t) {
5
5
  var r = !0, e = !0;
@@ -1,8 +1,8 @@
1
- import { F as dr } from "./DocumentLayout-C-wJE5eC.js";
2
- import { C as vr, b as mr } from "./CDropdownItem-D9qExYxr.js";
3
- import { n as hr } from "./main-DK3JrX1P.js";
4
- import { C as gr } from "./ColorPicker-CzbXZiaY.js";
5
- import { C as yr } from "./CCurrencyDropdown-B4r3UK5p.js";
1
+ import { F as dr } from "./DocumentLayout-C4edCFmr.js";
2
+ import { C as vr, b as mr } from "./CDropdownItem-CkSNbSdj.js";
3
+ import { n as hr } from "./main-BpqUyMpC.js";
4
+ import { C as gr } from "./ColorPicker-DZP6FIdn.js";
5
+ import { C as yr } from "./CCurrencyDropdown-CKRgncWy.js";
6
6
  const br = {
7
7
  components: {
8
8
  ColorPicker: gr,
@@ -1,4 +1,4 @@
1
- import { q as d, c as m } from "./main-DK3JrX1P.js";
1
+ import { q as d, c as m } from "./main-BpqUyMpC.js";
2
2
  const s = {
3
3
  youtube: {
4
4
  reg: /^(?:https?:\/\/)?(?:(?:www|m)\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((?:\w|-){11})(?:\S+)?$/,
@@ -1,4 +1,4 @@
1
- import { ac as nn, ad as rn, l as on } from "./main-DK3JrX1P.js";
1
+ import { ac as nn, ad as rn, l as on } from "./main-BpqUyMpC.js";
2
2
  var We = { exports: {} };
3
3
  /**!
4
4
  * Sortable 1.10.2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cling-se/widget",
3
- "version": "0.16.0",
3
+ "version": "0.17.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
@@ -1,31 +0,0 @@
1
- import { u as c, x as r, $ as i, n as _ } from "./main-DK3JrX1P.js";
2
- import { V as l } from "./PdfViewer-DG-MYtZa.js";
3
- const f = /* @__PURE__ */ c({
4
- __name: "PdfTerms",
5
- props: {
6
- text: null,
7
- file: null
8
- },
9
- setup(n) {
10
- const t = n, s = r(() => t.text), e = r(() => {
11
- var o;
12
- return (o = t.file) == null ? void 0 : o.url;
13
- }), a = r(() => i.t("_common:terms.general"));
14
- return { __sfc: !0, props: t, text: s, src: e, terms: a, VuePdf: l };
15
- }
16
- });
17
- var m = function() {
18
- var t = this, s = t._self._c, e = t._self._setupProxy;
19
- return e.text ? s("div", { staticClass: "root" }, [s("div", { staticClass: "root-title page-break" }, [t._v(" " + t._s(e.terms) + " ")]), s("div", { staticClass: "term-text quill-format", domProps: { innerHTML: t._s(e.text) } })]) : t.file ? s("div", [s(e.VuePdf, { staticClass: "pdf-container", attrs: { src: e.src, "doc-file-path": e.src } })], 1) : s("div");
20
- }, p = [], d = /* @__PURE__ */ _(
21
- f,
22
- m,
23
- p,
24
- !1,
25
- null,
26
- "b82e7989"
27
- );
28
- const x = d.exports;
29
- export {
30
- x as default
31
- };
@@ -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
- };
@@ -1,72 +0,0 @@
1
- import { b as r } from "./main-DK3JrX1P.js";
2
- const f = (a = [], { event: o = "input", type: c = void 0, useEmit: d = !0, setFnName: l } = {}) => ({
3
- inheritAttrs: !1,
4
- props: {
5
- _document: {
6
- type: Object,
7
- default: () => ({})
8
- },
9
- _value: {
10
- type: Object,
11
- default: () => ({})
12
- }
13
- },
14
- inject: {
15
- viewSettings: {
16
- default: () => ({
17
- canEdit: !1,
18
- isForm: !1,
19
- setFormValue: null,
20
- removeFormValue: null,
21
- isPublicForm: !1
22
- })
23
- },
24
- containerType: {
25
- default: () => ({})
26
- }
27
- },
28
- computed: {
29
- canEdit() {
30
- return r(this, "viewSettings.canEdit");
31
- },
32
- device() {
33
- return r(this, "containerType.device", "");
34
- },
35
- isForm() {
36
- return r(this, "viewSettings.isForm");
37
- },
38
- ...a.reduce((i, e) => {
39
- const t = e, s = {
40
- get() {
41
- return this._value ? r(this._document, (this._value || {})[e]) : r(this.$attrs, e);
42
- },
43
- set(u) {
44
- this.setField({ field: e, value: u, type: c });
45
- }
46
- };
47
- return i[t] = s, i;
48
- }, {})
49
- },
50
- methods: {
51
- // Setter method exposed to host component, in case extra setter options are needed
52
- // Providing either 'key' or 'field' optional, but one required
53
- // key > field
54
- // 'field' refers to name of computed field registered for the mixin
55
- setField({ key: i, field: e, value: t, options: s, type: u }) {
56
- const n = i || (this._value || {})[e];
57
- if (!n)
58
- return;
59
- const m = l ? this[l] : this.viewSettings.setFormValue;
60
- !d && typeof m == "function" ? m({ key: n, value: t, options: s }) : o ? (u === "number" && Number.isNaN(parseFloat(t)) && (t = null), this.$emit(o, { key: n, value: t, options: s })) : this.$emit({ key: n, value: t, options: s });
61
- },
62
- // Forward of document remove method
63
- // Note: does not yet support emit option like the setter
64
- removeField(i) {
65
- var e, t;
66
- (t = (e = this.viewSettings) == null ? void 0 : e.removeFormValue) == null || t.call(e, i);
67
- }
68
- }
69
- });
70
- export {
71
- f as m
72
- };