@cling-se/widget 1.0.0-beta.1 → 1.0.0-beta.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 (241) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.internal.md +82 -0
  3. package/README.md +14 -40
  4. package/README.public.md +14 -0
  5. package/dist/AddClientCallout-e8d19R3f.js +101 -0
  6. package/dist/AnswerModal-BGvB8IVV.js +3291 -0
  7. package/dist/AttachmentItem-CkHbAm4l.js +171 -0
  8. package/dist/BaseUpload-BiJBcWRu.js +2472 -0
  9. package/dist/BlockMedia-CW5wgipC.js +103 -0
  10. package/dist/CCallout-Cy2eeIYd.js +104 -0
  11. package/dist/{CCurrencyDropdown-qH-3m2eP.js → CCurrencyDropdown-DE_3CTjm.js} +91 -49
  12. package/dist/CDropdownItem-Dmq5gYzA.js +751 -0
  13. package/dist/CFormField.vue_vue_type_script_setup_true_lang-D_U9coAY.js +292 -0
  14. package/dist/{CPhoneFormat-CfQayFxw.js → CPhoneFormat-BS2nP9kc.js} +13 -21
  15. package/dist/CPhoneInput-Bf6329PO.js +207 -0
  16. package/dist/CPriceInput-d1yjuMQr.js +140 -0
  17. package/dist/CSelect-DgnT07Hk.js +98 -0
  18. package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-Ckl--dyv.js +51 -0
  19. package/dist/ClientAutocomplete-9JzGcO9O.js +532 -0
  20. package/dist/ClientModal-BzWQtWSZ.js +1181 -0
  21. package/dist/ColorPicker-BvoFN8nu.js +1408 -0
  22. package/dist/CompanyModal-Bp4V_az9.js +250 -0
  23. package/dist/ContentWrapper-CuH6xKmo.js +265 -0
  24. package/dist/CoverBlockSettings-BA5L0Zee.js +861 -0
  25. package/dist/DocAnswer-BcNA_KEg.js +33 -0
  26. package/dist/DocDetails-CStEwWnU.js +448 -0
  27. package/dist/DocForm-BOoILf5E.js +6748 -0
  28. package/dist/DocFormSend-CQIf-HJY.js +171 -0
  29. package/dist/DocLinks-BRX5QzNe.js +36 -0
  30. package/dist/DocModalBase-D72yWj-x.js +29 -0
  31. package/dist/DocPrint-BI1LXUPE.js +399 -0
  32. package/dist/DocReceipt-DaZ4V76p.js +341 -0
  33. package/dist/DocSendReminder-DKGZlo7s.js +181 -0
  34. package/dist/DocTextEditor-Dm-cTZpA.js +19413 -0
  35. package/dist/DocTimeline-DCwofzuk.js +537 -0
  36. package/dist/DocumentClient-vJdxCB53.js +90 -0
  37. package/dist/DocumentLayout-CKSi42ev.js +1368 -0
  38. package/dist/DocumentLogotype-DbQlvQ-y.js +162 -0
  39. package/dist/DocumentVoided-CRX2WxWO.js +33 -0
  40. package/dist/EmbedInput-B-oeC4Wy.js +157 -0
  41. package/dist/EmbedSettings-B9Yka2yB.js +103 -0
  42. package/dist/ErrorCallout-B_ygH33E.js +34 -0
  43. package/dist/FilePreviewModal-Bf3ELTow.js +202 -0
  44. package/dist/Flag-BwTgCNHO.js +41 -0
  45. package/dist/HeaderSettings-DvC7nlyY.js +720 -0
  46. package/dist/ImageSelectModal-D3sP3lhR.js +119 -0
  47. package/dist/ImageUploadWrapper-RWNa-yIq.js +1585 -0
  48. package/dist/Index-0_3ULrWX.js +126 -0
  49. package/dist/Index-4NPe0sfX.js +629 -0
  50. package/dist/Index-B1uA0FF6.js +4 -0
  51. package/dist/Index-BBkCYm2q.js +201 -0
  52. package/dist/{Index-DIOiMm9f.js → Index-BBwvo7S9.js} +10 -18
  53. package/dist/Index-BEMlsYwJ.js +68 -0
  54. package/dist/Index-BRBhJ6kz.js +21 -0
  55. package/dist/{Index--qPMWUMT.js → Index-BTFmHjUt.js} +48 -61
  56. package/dist/Index-BcUNnxLC.js +1098 -0
  57. package/dist/Index-Bo6ExBUL.js +93 -0
  58. package/dist/Index-BvMPCgdH.js +102 -0
  59. package/dist/Index-Bx5TOI9k.js +74 -0
  60. package/dist/Index-C7GZS8EI.js +16 -0
  61. package/dist/Index-CNWhm07R.js +25 -0
  62. package/dist/{Index-DcQbh-z2.js → Index-CQpznMKV.js} +9 -17
  63. package/dist/Index-CRzsnIij.js +159 -0
  64. package/dist/Index-CeSG1C41.js +140 -0
  65. package/dist/Index-CjfjdZj5.js +52 -0
  66. package/dist/Index-CskKmZpd.js +363 -0
  67. package/dist/Index-D5qwbCo1.js +28 -0
  68. package/dist/Index-D8Ae1Txt.js +228 -0
  69. package/dist/Index-DE8aenDB.js +3452 -0
  70. package/dist/Index-DI5EB5Rt.js +39 -0
  71. package/dist/Index-DaV57YPP.js +163 -0
  72. package/dist/Index-DbwkmoyM.js +38 -0
  73. package/dist/Index-Df9skok6.js +70 -0
  74. package/dist/{Index-Bu0MGrj6.js → Index-DfLLA0ij.js} +313 -206
  75. package/dist/Index-Dw1CO5F9.js +76 -0
  76. package/dist/Index-PZXyOoVb.js +87 -0
  77. package/dist/{Index-D4XgxmbD.js → Index-ZUnH-BHj.js} +10 -18
  78. package/dist/Index-cjKGSiDi.js +136 -0
  79. package/dist/Index-m-goRuKD.js +49 -0
  80. package/dist/Index-rGeWbLcB.js +47 -0
  81. package/dist/Index-vrljNp6G.js +28 -0
  82. package/dist/Index.vue_vue_type_script_lang-aeVuChGF.js +671 -0
  83. package/dist/InputToggleRow-v6qAWPg6.js +99 -0
  84. package/dist/ManualPopover-BONBJIUA.js +57 -0
  85. package/dist/MediaWrapper-CXb2UGd9.js +18 -0
  86. package/dist/{NotBindingText-CNV2Wmdx.js → NotBindingText-BqESO13N.js} +13 -17
  87. package/dist/PackageGroup-AIysVmyh.js +1058 -0
  88. package/dist/PdfTerms-BlhHdTu3.js +34 -0
  89. package/dist/PdfViewer-DwZ1rwlN.js +392 -0
  90. package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6NNUTz0.js +17 -0
  91. package/dist/PriceHeader-C4XhnoA3.js +488 -0
  92. package/dist/SearchApi-B7lXgUY6.js +137 -0
  93. package/dist/SendForm-BcD0xSvB.js +7031 -0
  94. package/dist/Setup-C2qaYDei.js +47 -0
  95. package/dist/{SmartList-Qgu0rMrI.js → SmartList-DqG7Q5t7.js} +16 -24
  96. package/dist/Sortable.vue_vue_type_script_setup_true_lang-CzMbr8AX.js +1303 -0
  97. package/dist/{TermsSettings-CE3h_xkm.js → TermsSettings-BOCONyM4.js} +169 -49
  98. package/dist/ThemeColorRow-sjGdMzGN.js +108 -0
  99. package/dist/ToggleBinding-7oq_oXPt.js +44 -0
  100. package/dist/UploadModal-C_X2NjVY.js +134 -0
  101. package/dist/VideoPlayerInput-BsUcmpl4.js +135 -0
  102. package/dist/VideoPlayerSettings-BXMmxaZQ.js +78 -0
  103. package/dist/VideoSelectModal-CW0OweCw.js +217 -0
  104. package/dist/{anime.es-BrPTThYb.js → anime.es-gdcpA-eY.js} +1 -2
  105. package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
  106. package/dist/{debounce-C1AuSpOZ.js → debounce-DNl99Gyo.js} +7 -7
  107. package/dist/dom-CkTGWrfu.js +69 -0
  108. package/dist/{focusDrawerMixin-Be6BAK8-.js → focusDrawerMixin-BwcErMDY.js} +1 -1
  109. package/dist/{formDrawerState-DRbg5rVI.js → formDrawerState-DaurePnd.js} +2 -2
  110. package/dist/helpers-CPW--XIz.js +44 -0
  111. package/dist/index-BjiGCJPI.js +149 -0
  112. package/dist/index-CFNv6OvX.js +188 -0
  113. package/dist/index-Cx71On5Z.js +508 -0
  114. package/dist/index-DKMxIBz_.js +270 -0
  115. package/dist/index-DKf5SGLD.js +125 -0
  116. package/dist/index-E32WgUp9.js +3525 -0
  117. package/dist/index-kp-GC5I0.js +513 -0
  118. package/dist/index.es.js +2 -5
  119. package/dist/index.umd.js +306 -1505
  120. package/dist/{main-WKzC-Dnu.js → main-Cb-nyil1.js} +33252 -33755
  121. package/dist/mapFormMixin-D3BihYWW.js +1544 -0
  122. package/dist/omit--YYr41Xp.js +31 -0
  123. package/dist/{publicSenderState-BujjYsZZ.js → publicSenderState-CdRW_Wwp.js} +4 -4
  124. package/dist/regions-BdZt9Srn.js +1250 -0
  125. package/dist/splitpanes-D-ThFkeR.js +342 -0
  126. package/dist/style.css +1 -4
  127. package/dist/template-BvaNnq-g.js +1493 -0
  128. package/dist/{throttle-CWPJmFid.js → throttle-D-bUGaVh.js} +2 -2
  129. package/dist/tippy.esm-BmKNqohP.js +1994 -0
  130. package/dist/useTermsModal-Dhf6_eYb.js +87 -0
  131. package/dist/{utils-CA_Zy6u1.js → utils-CBPcYdLv.js} +8 -11
  132. package/dist/validation-DOcUOoMe.js +40 -0
  133. package/package.json +25 -31
  134. package/.eslintrc.cjs +0 -4
  135. package/dist/AddClientCallout-BWnvyBcK.js +0 -46
  136. package/dist/AnswerModal-CLGRdSnK.js +0 -3874
  137. package/dist/AttachmentItem-BPS0-wyc.js +0 -78
  138. package/dist/BaseDatePicker-BbmV_GdD.js +0 -3183
  139. package/dist/BaseUpload-9gPgI7r6.js +0 -1977
  140. package/dist/BlockMedia-DkPFWiYL.js +0 -76
  141. package/dist/CCallout-T26jwUby.js +0 -59
  142. package/dist/CDropdownItem-BE8BAMD1.js +0 -636
  143. package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
  144. package/dist/CFormField-DECEfoVq.js +0 -241
  145. package/dist/CPriceInput-C4SOB-P5.js +0 -112
  146. package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
  147. package/dist/ClientAutocomplete-DSebA1Mx.js +0 -78
  148. package/dist/ClientModal-BXFYvYCF.js +0 -625
  149. package/dist/ColorPicker-CZ_bJabP.js +0 -2879
  150. package/dist/CompanyModal-CDr3t28n.js +0 -141
  151. package/dist/ContentWrapper-BwmMoe4W.js +0 -183
  152. package/dist/CoverBlockSettings-_F11-DGc.js +0 -275
  153. package/dist/DocAnswer-BR59xzkT.js +0 -36
  154. package/dist/DocDetails-D1qbCbps.js +0 -259
  155. package/dist/DocForm-DBc2a7z5.js +0 -7272
  156. package/dist/DocFormSend-Casix-yG.js +0 -144
  157. package/dist/DocLinks-DGTaewyX.js +0 -38
  158. package/dist/DocModalBase-BbS_qvSv.js +0 -28
  159. package/dist/DocPrint-0PqX3mbJ.js +0 -240
  160. package/dist/DocReceipt-CU3VD5pt.js +0 -210
  161. package/dist/DocSendReminder-CuycBspr.js +0 -137
  162. package/dist/DocTextEditor-CntS2Bd-.js +0 -17180
  163. package/dist/DocTimeline-DJuv3yBe.js +0 -481
  164. package/dist/DocumentClient-C25XXzz6.js +0 -136
  165. package/dist/DocumentLayout-B7afHRMr.js +0 -4909
  166. package/dist/DocumentLogotype-sqI51wvM.js +0 -87
  167. package/dist/DocumentVoided-TahdTSMn.js +0 -25
  168. package/dist/EmbedInput-BY-wHSfc.js +0 -113
  169. package/dist/EmbedSettings-8pfjk4NP.js +0 -72
  170. package/dist/ErrorCallout-Dsr8PNsU.js +0 -28
  171. package/dist/FilePreviewModal-CcEinEFg.js +0 -81
  172. package/dist/Flag-PJKrghi9.js +0 -114
  173. package/dist/HeaderSettings-BqczIOsG.js +0 -392
  174. package/dist/ImageSelectModal-Cd-HhKnH.js +0 -84
  175. package/dist/ImageUploadWrapper-Dv43rGdb.js +0 -1604
  176. package/dist/Index-6b5VBKE-.js +0 -107
  177. package/dist/Index-B4pRJnbw.js +0 -84
  178. package/dist/Index-B69f8qgZ.js +0 -62
  179. package/dist/Index-B79YN9RO.js +0 -25
  180. package/dist/Index-BBrlPoe8.js +0 -58
  181. package/dist/Index-BXfWJCuq.js +0 -52
  182. package/dist/Index-Bd76vb37.js +0 -55
  183. package/dist/Index-BmbtQO5F.js +0 -150
  184. package/dist/Index-ByV_kJaH.js +0 -77
  185. package/dist/Index-CDV5rhWS.js +0 -49
  186. package/dist/Index-CIx4OOK-.js +0 -144
  187. package/dist/Index-CL1OWLt6.js +0 -223
  188. package/dist/Index-Caow0eZu.js +0 -31
  189. package/dist/Index-Cd3-3PEK.js +0 -2402
  190. package/dist/Index-CdpZBEKU.js +0 -98
  191. package/dist/Index-CmU3Sys-.js +0 -754
  192. package/dist/Index-CtRtgnpm.js +0 -32
  193. package/dist/Index-Cukkr33D.js +0 -140
  194. package/dist/Index-Cuqw0ios.js +0 -57
  195. package/dist/Index-Czm_WdqC.js +0 -25
  196. package/dist/Index-DNdYXHgr.js +0 -33
  197. package/dist/Index-DcuBxutp.js +0 -642
  198. package/dist/Index-DpWNWiyY.js +0 -291
  199. package/dist/Index-DzS1rZdF.js +0 -24
  200. package/dist/Index-N6s5pZxv.js +0 -26
  201. package/dist/Index-g_DNu4mt.js +0 -69
  202. package/dist/Index-mJ8F41GY.js +0 -154
  203. package/dist/Index-q7W9KA8m.js +0 -21
  204. package/dist/Index-rtzblZp4.js +0 -70
  205. package/dist/InputToggleRow-CZjxsDOQ.js +0 -57
  206. package/dist/ManualPopover-CZrWiT-P.js +0 -58
  207. package/dist/MediaWrapper-D37qK4KR.js +0 -23
  208. package/dist/PackageGroup-Heo_s8ct.js +0 -699
  209. package/dist/PdfTerms-AB9tXAtU.js +0 -36
  210. package/dist/PdfViewer-CIVkvOBr.js +0 -373
  211. package/dist/PlainHtml-CPmIebjY.js +0 -20
  212. package/dist/PriceHeader-DhDAruwX.js +0 -339
  213. package/dist/SearchApi-BMgdaI4s.js +0 -161
  214. package/dist/Setup-VIaIV9uT.js +0 -50
  215. package/dist/ThemeColorRow-DYJNgk6S.js +0 -67
  216. package/dist/ToggleBinding-CuwCeYpO.js +0 -38
  217. package/dist/UploadModal-BITcxG-J.js +0 -95
  218. package/dist/VideoPlayerInput-8szEX_8L.js +0 -93
  219. package/dist/VideoPlayerSettings-BIPytm6w.js +0 -61
  220. package/dist/VideoSelectModal-B-Pe34nb.js +0 -100
  221. package/dist/answerDocumentMixin-W7vE1Gp4.js +0 -51
  222. package/dist/formComponentsInstall-Bm3VMOh6.js +0 -2507
  223. package/dist/formValidationMixin-COkY8COk.js +0 -49
  224. package/dist/index-BFvjENMH.js +0 -81
  225. package/dist/index-BV2nGWay.js +0 -492
  226. package/dist/index-BgJ05dYc.js +0 -165
  227. package/dist/index-CMPAXxzs.js +0 -347
  228. package/dist/index-DNDjI5uI.js +0 -3916
  229. package/dist/index-aoff9oUi.js +0 -102
  230. package/dist/mapFormMixin-QbevCwJK.js +0 -72
  231. package/dist/omit-CTp9CXoU.js +0 -31
  232. package/dist/splitpanes-BHUVsCZF.js +0 -382
  233. package/dist/tinycolor-kTl0yxzz.js +0 -633
  234. package/dist/tippy.esm-sS5koDSU.js +0 -1799
  235. package/dist/vuedraggable.umd-BA3ZDRAp.js +0 -3161
  236. package/dist/vuex.esm-DKGl8mcw.js +0 -467
  237. package/public/favicon.ico +0 -0
  238. package/tsconfig.json +0 -26
  239. package/tsconfig.node.json +0 -10
  240. package/tsconfig.paths.json +0 -17
  241. package/vite.config.ts +0 -60
@@ -1,102 +0,0 @@
1
- import { g as s, N as l, O as r, n as d, V as n } from "./main-WKzC-Dnu.js";
2
- import { m as p, a as c } from "./vuex.esm-DKGl8mcw.js";
3
- const m = {
4
- name: "ClientLinks",
5
- props: {
6
- id: {
7
- type: String,
8
- required: !0
9
- }
10
- },
11
- i18nOptions: {
12
- namespaces: "ClientLinks",
13
- messages: {
14
- en: {
15
- title: "Document links",
16
- text: "Share the document links below with your recipients. Each recipient has their own unique link.",
17
- copied: "Link copied to clipboard",
18
- tooltip: "Copy link",
19
- placeholder: "No links available.",
20
- hint: "Note that visting a link will trigger a viewed event in the events timeline."
21
- },
22
- sv: {
23
- title: "Dokumentlänkar",
24
- text: "Dela dokumentlänkarna nedan med dina mottagare. Varje mottagare har sin egen unika länk.",
25
- copied: "Länk kopierat till urklipp",
26
- tooltip: "Kopiera länk",
27
- placeholder: "Inga länkar finns tillgängliga.",
28
- hint: "Notera att ett sidbesök på en länk kommer att skapa en visad-händelse i tidslinjen."
29
- }
30
- }
31
- },
32
- computed: {
33
- ...p({
34
- docById: "documents2/byId"
35
- }),
36
- document() {
37
- return this.docById(this.id);
38
- },
39
- clients() {
40
- if (!this.document)
41
- return [];
42
- const { clients: o } = this.document;
43
- return o.map((t) => ({
44
- ...t,
45
- primaryTitle: t.name,
46
- secondaryTitle: t.type === "company" ? t.companyName : ""
47
- }));
48
- }
49
- },
50
- created() {
51
- this.loadDocument({ id: this.id });
52
- },
53
- methods: {
54
- ...c({
55
- loadDocument: s.LOAD_DOCUMENT2
56
- }),
57
- async copyToClipboard(o) {
58
- var i, a;
59
- (i = o.target.previousElementSibling) == null || i.select();
60
- const t = (a = o.target.previousElementSibling) == null ? void 0 : a.value;
61
- if (!t)
62
- return;
63
- await l(t) && r("info", this.$t("copied"));
64
- }
65
- }
66
- };
67
- var u = function() {
68
- var t = this, e = t._self._c;
69
- return e("div", { staticClass: "font-inter", staticStyle: { "background-color": "white", "border-radius": "10px", overflow: "hidden" } }, [e("div", { staticStyle: { padding: "40px 30px", position: "relative" } }, [e("CButton", { staticStyle: { position: "absolute", right: "1em", top: "1em", color: "hsl(0, 0%, 55%)" }, attrs: { icon: "x", circle: "", size: "normal" }, on: { click: function(i) {
70
- return t.$emit("close");
71
- } } }), e("div", { staticStyle: { padding: "0 0 2.5em" } }, [e("div", { staticClass: "x-title", domProps: { textContent: t._s(t.$t("title")) } }), e("div", { staticClass: "x-text", domProps: { textContent: t._s(t.$t("text")) } })]), t.clients.length ? t._l(t.clients, function(i, a) {
72
- return e("div", { key: a, staticClass: "client-card" }, [e("div", { staticStyle: { padding: "4px 6px 8px 6px" } }, [e("div", { staticClass: "client-title truncate-text" }, [t._v(" " + t._s(i.primaryTitle) + " "), i.secondaryTitle ? e("span", { staticStyle: { opacity: "0.5", "padding-left": "0.125ch" } }, [t._v("· " + t._s(i.secondaryTitle))]) : t._e()]), i.documentRole ? e("div", { domProps: { textContent: t._s(t.$t(`_common:documentRole.${i.documentRole}.label`)) } }) : t._e(), e("div", [i.email ? e("a", { attrs: { href: `mailto:${i.email}?&body=${i.docLink}` } }, [t._v(t._s(i.email))]) : t._e(), i.email && i.cellphone ? e("span", { staticStyle: { padding: "0 0.5ch" } }, [t._v("·")]) : t._e(), i.cellphone ? e("a", { attrs: { href: `sms:${i.cellphone}?&body=${i.docLink}` } }, [e("CPhoneFormat", { attrs: { phone: i.cellphone, region: i.cellphoneRegion } })], 1) : t._e()])]), e("div", { staticStyle: { display: "flex", position: "relative" } }, [e("input", { ref: "key", refInFor: !0, staticClass: "link-field truncate-text", attrs: { placeholder: t.$t("placeholder"), type: "text", readonly: "readonly" }, domProps: { value: i.docLink } }), e("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("tooltip"), expression: "$t('tooltip')" }], staticClass: "clipboard-button", on: { click: t.copyToClipboard } }, [e("CIcon", { staticStyle: { "pointer-events": "none" }, attrs: { type: "copy", size: "17" } })], 1)])]);
73
- }) : e("div", { staticStyle: { padding: "2em", "font-size": "14px", "text-align": "center", color: "hsl(0, 0%, 55%)", border: "1px solid hsl(0, 0%, 88%)", "border-radius": "6px" }, domProps: { textContent: t._s(t.$t("placeholder")) } }), e("div", { staticClass: "x-hint" }, [e("CIcon", { staticClass: "text-primary-500", staticStyle: { flex: "0 0 auto", "margin-right": "8px", "margin-top": "3px" }, attrs: { type: "info", size: "16" } }), e("div", { domProps: { textContent: t._s(t.$t("hint")) } })], 1)], 2)]);
74
- }, h = [], y = /* @__PURE__ */ d(
75
- m,
76
- u,
77
- h,
78
- !1,
79
- null,
80
- "8273cadb"
81
- );
82
- const v = y.exports, g = v, _ = ({ id: o }) => {
83
- if (!n.prototype.$modal)
84
- throw Error("Open client modal requires plugin vue-js-modal");
85
- n.prototype.$modal.show(
86
- g,
87
- {
88
- id: o
89
- },
90
- {
91
- adaptive: !0,
92
- maxWidth: 400,
93
- width: "90%",
94
- height: "auto",
95
- scrollable: !0
96
- }
97
- );
98
- };
99
- export {
100
- g as C,
101
- _ as o
102
- };
@@ -1,72 +0,0 @@
1
- import { b as r } from "./main-WKzC-Dnu.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
- };
@@ -1,31 +0,0 @@
1
- import { W as l, _ as o, X as i, Y as _, k as u, Z as f, $ as v, a0 as c, a1 as m, a2 as O, a3 as g } from "./main-WKzC-Dnu.js";
2
- var C = l;
3
- function L(t) {
4
- return C(t) ? void 0 : t;
5
- }
6
- var b = L, F = o;
7
- function A(t) {
8
- var e = t == null ? 0 : t.length;
9
- return e ? F(t, 1) : [];
10
- }
11
- var E = A, P = E, R = i, $ = _;
12
- function d(t) {
13
- return $(R(t, void 0, P), t + "");
14
- }
15
- var y = d, S = f, D = O, G = v, M = g, N = c, T = b, h = y, j = m, p = 1, x = 2, I = 4, K = h(function(t, e) {
16
- var a = {};
17
- if (t == null)
18
- return a;
19
- var s = !1;
20
- e = S(e, function(n) {
21
- return n = M(n, t), s || (s = n.length > 1), n;
22
- }), N(t, j(t), a), s && (a = D(a, p | x | I, T));
23
- for (var r = e.length; r--; )
24
- G(a, e[r]);
25
- return a;
26
- }), U = K;
27
- const k = /* @__PURE__ */ u(U);
28
- export {
29
- y as _,
30
- k as o
31
- };
@@ -1,382 +0,0 @@
1
- var _ = Object.defineProperty, M = Object.defineProperties, g = Object.getOwnPropertyDescriptors, u = Object.getOwnPropertySymbols, v = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable, m = (e, t, i) => t in e ? _(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, y = (e, t) => {
2
- for (var i in t || (t = {}))
3
- v.call(t, i) && m(e, i, t[i]);
4
- if (u)
5
- for (var i of u(t))
6
- P.call(t, i) && m(e, i, t[i]);
7
- return e;
8
- }, C = (e, t) => M(e, g(t)), w = (e, t) => {
9
- var i = {};
10
- for (var s in e)
11
- v.call(e, s) && t.indexOf(s) < 0 && (i[s] = e[s]);
12
- if (e != null && u)
13
- for (var s of u(e))
14
- t.indexOf(s) < 0 && P.call(e, s) && (i[s] = e[s]);
15
- return i;
16
- };
17
- function S(e, t, i, s, n, a, r, h) {
18
- var o = typeof e == "function" ? e.options : e;
19
- t && (o.render = t, o.staticRenderFns = i, o._compiled = !0);
20
- var l;
21
- if (n && (l = n), l)
22
- if (o.functional) {
23
- o._injectStyles = l;
24
- var c = o.render;
25
- o.render = function(x, p) {
26
- return l.call(p), c(x, p);
27
- };
28
- } else {
29
- var d = o.beforeCreate;
30
- o.beforeCreate = d ? [].concat(d, l) : [l];
31
- }
32
- return {
33
- exports: e,
34
- options: o
35
- };
36
- }
37
- const b = {
38
- name: "splitpanes",
39
- props: {
40
- horizontal: { type: Boolean },
41
- pushOtherPanes: { type: Boolean, default: !0 },
42
- dblClickSplitter: { type: Boolean, default: !0 },
43
- rtl: { type: Boolean, default: !1 },
44
- firstSplitter: { type: Boolean }
45
- },
46
- provide() {
47
- return {
48
- requestUpdate: this.requestUpdate,
49
- onPaneAdd: this.onPaneAdd,
50
- onPaneRemove: this.onPaneRemove,
51
- onPaneClick: this.onPaneClick
52
- };
53
- },
54
- data: () => ({
55
- container: null,
56
- ready: !1,
57
- panes: [],
58
- touch: {
59
- mouseDown: !1,
60
- dragging: !1,
61
- activeSplitter: null
62
- },
63
- splitterTaps: {
64
- splitter: null,
65
- timeoutId: null
66
- }
67
- }),
68
- computed: {
69
- panesCount() {
70
- return this.panes.length;
71
- },
72
- indexedPanes() {
73
- return this.panes.reduce((e, t) => (e[t.id] = t) && e, {});
74
- }
75
- },
76
- methods: {
77
- updatePaneComponents() {
78
- this.panes.forEach((e) => {
79
- e.update && e.update({
80
- [this.horizontal ? "height" : "width"]: `${this.indexedPanes[e.id].size}%`
81
- });
82
- });
83
- },
84
- bindEvents() {
85
- document.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), document.addEventListener("mouseup", this.onMouseUp), "ontouchstart" in window && (document.addEventListener("touchmove", this.onMouseMove, { passive: !1 }), document.addEventListener("touchend", this.onMouseUp));
86
- },
87
- unbindEvents() {
88
- document.removeEventListener("mousemove", this.onMouseMove, { passive: !1 }), document.removeEventListener("mouseup", this.onMouseUp), "ontouchstart" in window && (document.removeEventListener("touchmove", this.onMouseMove, { passive: !1 }), document.removeEventListener("touchend", this.onMouseUp));
89
- },
90
- onMouseDown(e, t) {
91
- this.bindEvents(), this.touch.mouseDown = !0, this.touch.activeSplitter = t;
92
- },
93
- onMouseMove(e) {
94
- this.touch.mouseDown && (e.preventDefault(), this.touch.dragging = !0, this.calculatePanesSize(this.getCurrentMouseDrag(e)), this.$emit("resize", this.panes.map((t) => ({ min: t.min, max: t.max, size: t.size }))));
95
- },
96
- onMouseUp() {
97
- this.touch.dragging && this.$emit("resized", this.panes.map((e) => ({ min: e.min, max: e.max, size: e.size }))), this.touch.mouseDown = !1, setTimeout(() => {
98
- this.touch.dragging = !1, this.unbindEvents();
99
- }, 100);
100
- },
101
- onSplitterClick(e, t) {
102
- "ontouchstart" in window && (e.preventDefault(), this.dblClickSplitter && (this.splitterTaps.splitter === t ? (clearTimeout(this.splitterTaps.timeoutId), this.splitterTaps.timeoutId = null, this.onSplitterDblClick(e, t), this.splitterTaps.splitter = null) : (this.splitterTaps.splitter = t, this.splitterTaps.timeoutId = setTimeout(() => {
103
- this.splitterTaps.splitter = null;
104
- }, 500)))), this.touch.dragging || this.$emit("splitter-click", this.panes[t]);
105
- },
106
- onSplitterDblClick(e, t) {
107
- let i = 0;
108
- this.panes = this.panes.map((s, n) => (s.size = n === t ? s.max : s.min, n !== t && (i += s.min), s)), this.panes[t].size -= i, this.$emit("pane-maximize", this.panes[t]);
109
- },
110
- onPaneClick(e, t) {
111
- this.$emit("pane-click", this.indexedPanes[t]);
112
- },
113
- getCurrentMouseDrag(e) {
114
- const t = this.container.getBoundingClientRect(), { clientX: i, clientY: s } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
115
- return {
116
- x: i - t.left,
117
- y: s - t.top
118
- };
119
- },
120
- getCurrentDragPercentage(e) {
121
- e = e[this.horizontal ? "y" : "x"];
122
- const t = this.container[this.horizontal ? "clientHeight" : "clientWidth"];
123
- return this.rtl && !this.horizontal && (e = t - e), e * 100 / t;
124
- },
125
- calculatePanesSize(e) {
126
- const t = this.touch.activeSplitter;
127
- let i = {
128
- prevPanesSize: this.sumPrevPanesSize(t),
129
- nextPanesSize: this.sumNextPanesSize(t),
130
- prevReachedMinPanes: 0,
131
- nextReachedMinPanes: 0
132
- };
133
- const s = 0 + (this.pushOtherPanes ? 0 : i.prevPanesSize), n = 100 - (this.pushOtherPanes ? 0 : i.nextPanesSize), a = Math.max(Math.min(this.getCurrentDragPercentage(e), n), s);
134
- let r = [t, t + 1], h = this.panes[r[0]] || null, o = this.panes[r[1]] || null;
135
- const l = h.max < 100 && a >= h.max + i.prevPanesSize, c = o.max < 100 && a <= 100 - (o.max + this.sumNextPanesSize(t + 1));
136
- if (l || c) {
137
- l ? (h.size = h.max, o.size = Math.max(100 - h.max - i.prevPanesSize - i.nextPanesSize, 0)) : (h.size = Math.max(100 - o.max - i.prevPanesSize - this.sumNextPanesSize(t + 1), 0), o.size = o.max);
138
- return;
139
- }
140
- if (this.pushOtherPanes) {
141
- const d = this.doPushOtherPanes(i, a);
142
- if (!d)
143
- return;
144
- ({ sums: i, panesToResize: r } = d), h = this.panes[r[0]] || null, o = this.panes[r[1]] || null;
145
- }
146
- h !== null && (h.size = Math.min(Math.max(a - i.prevPanesSize - i.prevReachedMinPanes, h.min), h.max)), o !== null && (o.size = Math.min(Math.max(100 - a - i.nextPanesSize - i.nextReachedMinPanes, o.min), o.max));
147
- },
148
- doPushOtherPanes(e, t) {
149
- const i = this.touch.activeSplitter, s = [i, i + 1];
150
- return t < e.prevPanesSize + this.panes[s[0]].min && (s[0] = this.findPrevExpandedPane(i).index, e.prevReachedMinPanes = 0, s[0] < i && this.panes.forEach((n, a) => {
151
- a > s[0] && a <= i && (n.size = n.min, e.prevReachedMinPanes += n.min);
152
- }), e.prevPanesSize = this.sumPrevPanesSize(s[0]), s[0] === void 0) ? (e.prevReachedMinPanes = 0, this.panes[0].size = this.panes[0].min, this.panes.forEach((n, a) => {
153
- a > 0 && a <= i && (n.size = n.min, e.prevReachedMinPanes += n.min);
154
- }), this.panes[s[1]].size = 100 - e.prevReachedMinPanes - this.panes[0].min - e.prevPanesSize - e.nextPanesSize, null) : t > 100 - e.nextPanesSize - this.panes[s[1]].min && (s[1] = this.findNextExpandedPane(i).index, e.nextReachedMinPanes = 0, s[1] > i + 1 && this.panes.forEach((n, a) => {
155
- a > i && a < s[1] && (n.size = n.min, e.nextReachedMinPanes += n.min);
156
- }), e.nextPanesSize = this.sumNextPanesSize(s[1] - 1), s[1] === void 0) ? (e.nextReachedMinPanes = 0, this.panes[this.panesCount - 1].size = this.panes[this.panesCount - 1].min, this.panes.forEach((n, a) => {
157
- a < this.panesCount - 1 && a >= i + 1 && (n.size = n.min, e.nextReachedMinPanes += n.min);
158
- }), this.panes[s[0]].size = 100 - e.prevPanesSize - e.nextReachedMinPanes - this.panes[this.panesCount - 1].min - e.nextPanesSize, null) : { sums: e, panesToResize: s };
159
- },
160
- sumPrevPanesSize(e) {
161
- return this.panes.reduce((t, i, s) => t + (s < e ? i.size : 0), 0);
162
- },
163
- sumNextPanesSize(e) {
164
- return this.panes.reduce((t, i, s) => t + (s > e + 1 ? i.size : 0), 0);
165
- },
166
- findPrevExpandedPane(e) {
167
- return [...this.panes].reverse().find((i) => i.index < e && i.size > i.min) || {};
168
- },
169
- findNextExpandedPane(e) {
170
- return this.panes.find((i) => i.index > e + 1 && i.size > i.min) || {};
171
- },
172
- checkSplitpanesNodes() {
173
- Array.from(this.container.children).forEach((t) => {
174
- const i = t.classList.contains("splitpanes__pane"), s = t.classList.contains("splitpanes__splitter");
175
- if (!i && !s) {
176
- t.parentNode.removeChild(t), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.");
177
- return;
178
- }
179
- });
180
- },
181
- addSplitter(e, t, i = !1) {
182
- const s = e - 1, n = document.createElement("div");
183
- n.classList.add("splitpanes__splitter"), i || (n.onmousedown = (a) => this.onMouseDown(a, s), typeof window < "u" && "ontouchstart" in window && (n.ontouchstart = (a) => this.onMouseDown(a, s)), n.onclick = (a) => this.onSplitterClick(a, s + 1)), this.dblClickSplitter && (n.ondblclick = (a) => this.onSplitterDblClick(a, s + 1)), t.parentNode.insertBefore(n, t);
184
- },
185
- removeSplitter(e) {
186
- e.onmousedown = void 0, e.onclick = void 0, e.ondblclick = void 0, e.parentNode.removeChild(e);
187
- },
188
- redoSplitters() {
189
- const e = Array.from(this.container.children);
190
- e.forEach((i) => {
191
- i.className.includes("splitpanes__splitter") && this.removeSplitter(i);
192
- });
193
- let t = 0;
194
- e.forEach((i) => {
195
- i.className.includes("splitpanes__pane") && (!t && this.firstSplitter ? this.addSplitter(t, i, !0) : t && this.addSplitter(t, i), t++);
196
- });
197
- },
198
- requestUpdate(e) {
199
- var t = e, { target: i } = t, s = w(t, ["target"]);
200
- const n = this.indexedPanes[i._uid];
201
- Object.entries(s).forEach(([a, r]) => n[a] = r);
202
- },
203
- onPaneAdd(e) {
204
- let t = -1;
205
- Array.from(e.$el.parentNode.children).some((n) => (n.className.includes("splitpanes__pane") && t++, n === e.$el));
206
- const i = parseFloat(e.minSize), s = parseFloat(e.maxSize);
207
- this.panes.splice(t, 0, {
208
- id: e._uid,
209
- index: t,
210
- min: isNaN(i) ? 0 : i,
211
- max: isNaN(s) ? 100 : s,
212
- size: e.size === null ? null : parseFloat(e.size),
213
- givenSize: e.size,
214
- update: e.update
215
- }), this.panes.forEach((n, a) => n.index = a), this.ready && this.$nextTick(() => {
216
- this.redoSplitters(), this.resetPaneSizes({ addedPane: this.panes[t] }), this.$emit("pane-add", { index: t, panes: this.panes.map((n) => ({ min: n.min, max: n.max, size: n.size })) });
217
- });
218
- },
219
- onPaneRemove(e) {
220
- const t = this.panes.findIndex((s) => s.id === e._uid), i = this.panes.splice(t, 1)[0];
221
- this.panes.forEach((s, n) => s.index = n), this.$nextTick(() => {
222
- this.redoSplitters(), this.resetPaneSizes({ removedPane: C(y({}, i), { index: t }) }), this.$emit("pane-remove", { removed: i, panes: this.panes.map((s) => ({ min: s.min, max: s.max, size: s.size })) });
223
- });
224
- },
225
- resetPaneSizes(e = {}) {
226
- !e.addedPane && !e.removedPane ? this.initialPanesSizing() : this.panes.some((t) => t.givenSize !== null || t.min || t.max < 100) ? this.equalizeAfterAddOrRemove(e) : this.equalize(), this.ready && this.$emit("resized", this.panes.map((t) => ({ min: t.min, max: t.max, size: t.size })));
227
- },
228
- equalize() {
229
- const e = 100 / this.panesCount;
230
- let t = 0, i = [], s = [];
231
- this.panes.forEach((n) => {
232
- n.size = Math.max(Math.min(e, n.max), n.min), t -= n.size, n.size >= n.max && i.push(n.id), n.size <= n.min && s.push(n.id);
233
- }), t > 0.1 && this.readjustSizes(t, i, s);
234
- },
235
- initialPanesSizing() {
236
- 100 / this.panesCount;
237
- let e = 100, t = [], i = [], s = 0;
238
- this.panes.forEach((a) => {
239
- e -= a.size, a.size !== null && s++, a.size >= a.max && t.push(a.id), a.size <= a.min && i.push(a.id);
240
- });
241
- let n = 100;
242
- e > 0.1 && (this.panes.forEach((a) => {
243
- a.size === null && (a.size = Math.max(Math.min(e / (this.panesCount - s), a.max), a.min)), n -= a.size;
244
- }), n > 0.1 && this.readjustSizes(e, t, i));
245
- },
246
- equalizeAfterAddOrRemove({ addedPane: e, removedPane: t } = {}) {
247
- let i = 100 / this.panesCount, s = 0, n = [], a = [];
248
- e && e.givenSize !== null && (i = (100 - e.givenSize) / (this.panesCount - 1)), this.panes.forEach((r) => {
249
- s -= r.size, r.size >= r.max && n.push(r.id), r.size <= r.min && a.push(r.id);
250
- }), !(Math.abs(s) < 0.1) && (this.panes.forEach((r) => {
251
- e && e.givenSize !== null && e.id === r.id || (r.size = Math.max(Math.min(i, r.max), r.min)), s -= r.size, r.size >= r.max && n.push(r.id), r.size <= r.min && a.push(r.id);
252
- }), s > 0.1 && this.readjustSizes(s, n, a));
253
- },
254
- readjustSizes(e, t, i) {
255
- let s;
256
- e > 0 ? s = e / (this.panesCount - t.length) : s = e / (this.panesCount - i.length), this.panes.forEach((n, a) => {
257
- if (e > 0 && !t.includes(n.id)) {
258
- const r = Math.max(Math.min(n.size + s, n.max), n.min), h = r - n.size;
259
- e -= h, n.size = r;
260
- } else if (!i.includes(n.id)) {
261
- const r = Math.max(Math.min(n.size + s, n.max), n.min), h = r - n.size;
262
- e -= h, n.size = r;
263
- }
264
- n.update({
265
- [this.horizontal ? "height" : "width"]: `${this.indexedPanes[n.id].size}%`
266
- });
267
- }), Math.abs(e) > 0.1 && this.$nextTick(() => {
268
- this.ready && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
269
- });
270
- }
271
- },
272
- watch: {
273
- panes: {
274
- deep: !0,
275
- immediate: !1,
276
- handler() {
277
- this.updatePaneComponents();
278
- }
279
- },
280
- horizontal() {
281
- this.updatePaneComponents();
282
- },
283
- firstSplitter() {
284
- this.redoSplitters();
285
- },
286
- dblClickSplitter(e) {
287
- [...this.container.querySelectorAll(".splitpanes__splitter")].forEach((i, s) => {
288
- i.ondblclick = e ? (n) => this.onSplitterDblClick(n, s) : void 0;
289
- });
290
- }
291
- },
292
- beforeDestroy() {
293
- this.ready = !1;
294
- },
295
- mounted() {
296
- this.container = this.$refs.container, this.checkSplitpanesNodes(), this.redoSplitters(), this.resetPaneSizes(), this.$emit("ready"), this.ready = !0;
297
- },
298
- render(e) {
299
- return e("div", {
300
- ref: "container",
301
- class: [
302
- "splitpanes",
303
- `splitpanes--${this.horizontal ? "horizontal" : "vertical"}`,
304
- {
305
- "splitpanes--dragging": this.touch.dragging
306
- }
307
- ]
308
- }, this.$slots.default);
309
- }
310
- };
311
- let E, R;
312
- const f = {};
313
- var k = /* @__PURE__ */ S(b, E, R, !1, N);
314
- function N(e) {
315
- for (let t in f)
316
- this[t] = f[t];
317
- }
318
- var j = /* @__PURE__ */ function() {
319
- return k.exports;
320
- }(), O = function() {
321
- var e = this, t = e.$createElement, i = e._self._c || t;
322
- return i("div", { staticClass: "splitpanes__pane", style: e.style, on: { click: function(s) {
323
- return e.onPaneClick(s, e._uid);
324
- } } }, [e._t("default")], 2);
325
- }, D = [];
326
- const $ = {
327
- name: "pane",
328
- inject: ["requestUpdate", "onPaneAdd", "onPaneRemove", "onPaneClick"],
329
- props: {
330
- size: { type: [Number, String], default: null },
331
- minSize: { type: [Number, String], default: 0 },
332
- maxSize: { type: [Number, String], default: 100 }
333
- },
334
- data: () => ({
335
- style: {}
336
- }),
337
- mounted() {
338
- this.onPaneAdd(this);
339
- },
340
- beforeDestroy() {
341
- this.onPaneRemove(this);
342
- },
343
- methods: {
344
- update(e) {
345
- this.style = e;
346
- }
347
- },
348
- computed: {
349
- sizeNumber() {
350
- return this.size || this.size === 0 ? parseFloat(this.size) : null;
351
- },
352
- minSizeNumber() {
353
- return parseFloat(this.minSize);
354
- },
355
- maxSizeNumber() {
356
- return parseFloat(this.maxSize);
357
- }
358
- },
359
- watch: {
360
- sizeNumber(e) {
361
- this.requestUpdate({ target: this, size: e });
362
- },
363
- minSizeNumber(e) {
364
- this.requestUpdate({ target: this, min: e });
365
- },
366
- maxSizeNumber(e) {
367
- this.requestUpdate({ target: this, max: e });
368
- }
369
- }
370
- }, z = {};
371
- var T = /* @__PURE__ */ S($, O, D, !1, q);
372
- function q(e) {
373
- for (let t in z)
374
- this[t] = z[t];
375
- }
376
- var U = /* @__PURE__ */ function() {
377
- return T.exports;
378
- }();
379
- export {
380
- U as p,
381
- j as s
382
- };