@cling-se/widget 0.17.0 → 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.
- package/dist/AddClientCallout-e8d19R3f.js +101 -0
- package/dist/AnswerModal-BGvB8IVV.js +3291 -0
- package/dist/AttachmentItem-CkHbAm4l.js +171 -0
- package/dist/BaseUpload-BiJBcWRu.js +2472 -0
- package/dist/BlockMedia-CW5wgipC.js +103 -0
- package/dist/CCallout-Cy2eeIYd.js +104 -0
- package/dist/{CCurrencyDropdown-C2rXt2cJ.js → CCurrencyDropdown-DE_3CTjm.js} +91 -53
- package/dist/CDropdownItem-Dmq5gYzA.js +751 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-D_U9coAY.js +292 -0
- package/dist/{CPhoneFormat-C8VPsiK6.js → CPhoneFormat-BS2nP9kc.js} +13 -21
- package/dist/CPhoneInput-Bf6329PO.js +207 -0
- package/dist/CPriceInput-d1yjuMQr.js +140 -0
- package/dist/CSelect-DgnT07Hk.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-Ckl--dyv.js +51 -0
- package/dist/ClientAutocomplete-9JzGcO9O.js +532 -0
- package/dist/ClientModal-BzWQtWSZ.js +1181 -0
- package/dist/ColorPicker-BvoFN8nu.js +1408 -0
- package/dist/CompanyModal-Bp4V_az9.js +250 -0
- package/dist/ContentWrapper-CuH6xKmo.js +265 -0
- package/dist/CoverBlockSettings-BA5L0Zee.js +861 -0
- package/dist/DocAnswer-BcNA_KEg.js +33 -0
- package/dist/DocDetails-CStEwWnU.js +448 -0
- package/dist/DocForm-BOoILf5E.js +6748 -0
- package/dist/DocFormSend-CQIf-HJY.js +171 -0
- package/dist/DocLinks-BRX5QzNe.js +36 -0
- package/dist/DocModalBase-D72yWj-x.js +29 -0
- package/dist/DocPrint-BI1LXUPE.js +399 -0
- package/dist/DocReceipt-DaZ4V76p.js +341 -0
- package/dist/DocSendReminder-DKGZlo7s.js +181 -0
- package/dist/DocTextEditor-Dm-cTZpA.js +19413 -0
- package/dist/DocTimeline-DCwofzuk.js +537 -0
- package/dist/DocumentClient-vJdxCB53.js +90 -0
- package/dist/DocumentLayout-CKSi42ev.js +1368 -0
- package/dist/DocumentLogotype-DbQlvQ-y.js +162 -0
- package/dist/DocumentVoided-CRX2WxWO.js +33 -0
- package/dist/EmbedInput-B-oeC4Wy.js +157 -0
- package/dist/EmbedSettings-B9Yka2yB.js +103 -0
- package/dist/ErrorCallout-B_ygH33E.js +34 -0
- package/dist/FilePreviewModal-Bf3ELTow.js +202 -0
- package/dist/Flag-BwTgCNHO.js +41 -0
- package/dist/HeaderSettings-DvC7nlyY.js +720 -0
- package/dist/ImageSelectModal-D3sP3lhR.js +119 -0
- package/dist/ImageUploadWrapper-RWNa-yIq.js +1585 -0
- package/dist/Index-0_3ULrWX.js +126 -0
- package/dist/Index-4NPe0sfX.js +629 -0
- package/dist/Index-B1uA0FF6.js +4 -0
- package/dist/Index-BBkCYm2q.js +201 -0
- package/dist/{Index-LzN6dktq.js → Index-BBwvo7S9.js} +10 -18
- package/dist/Index-BEMlsYwJ.js +68 -0
- package/dist/Index-BRBhJ6kz.js +21 -0
- package/dist/{Index-BPUYpfLJ.js → Index-BTFmHjUt.js} +47 -60
- package/dist/Index-BcUNnxLC.js +1098 -0
- package/dist/Index-Bo6ExBUL.js +93 -0
- package/dist/Index-BvMPCgdH.js +102 -0
- package/dist/Index-Bx5TOI9k.js +74 -0
- package/dist/Index-C7GZS8EI.js +16 -0
- package/dist/Index-CNWhm07R.js +25 -0
- package/dist/{Index-BUK-1yVR.js → Index-CQpznMKV.js} +9 -17
- package/dist/Index-CRzsnIij.js +159 -0
- package/dist/Index-CeSG1C41.js +140 -0
- package/dist/Index-CjfjdZj5.js +52 -0
- package/dist/Index-CskKmZpd.js +363 -0
- package/dist/Index-D5qwbCo1.js +28 -0
- package/dist/Index-D8Ae1Txt.js +228 -0
- package/dist/Index-DE8aenDB.js +3452 -0
- package/dist/Index-DI5EB5Rt.js +39 -0
- package/dist/Index-DaV57YPP.js +163 -0
- package/dist/Index-DbwkmoyM.js +38 -0
- package/dist/Index-Df9skok6.js +70 -0
- package/dist/{Index-BHJGfHm9.js → Index-DfLLA0ij.js} +313 -206
- package/dist/Index-Dw1CO5F9.js +76 -0
- package/dist/Index-PZXyOoVb.js +87 -0
- package/dist/{Index-BioOegOO.js → Index-ZUnH-BHj.js} +10 -18
- package/dist/Index-cjKGSiDi.js +136 -0
- package/dist/Index-m-goRuKD.js +49 -0
- package/dist/Index-rGeWbLcB.js +47 -0
- package/dist/Index-vrljNp6G.js +28 -0
- package/dist/Index.vue_vue_type_script_lang-aeVuChGF.js +671 -0
- package/dist/InputToggleRow-v6qAWPg6.js +99 -0
- package/dist/ManualPopover-BONBJIUA.js +57 -0
- package/dist/MediaWrapper-CXb2UGd9.js +18 -0
- package/dist/{NotBindingText-CM3FN0A6.js → NotBindingText-BqESO13N.js} +13 -17
- package/dist/PackageGroup-AIysVmyh.js +1058 -0
- package/dist/PdfTerms-BlhHdTu3.js +34 -0
- package/dist/PdfViewer-DwZ1rwlN.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6NNUTz0.js +17 -0
- package/dist/PriceHeader-C4XhnoA3.js +488 -0
- package/dist/SearchApi-B7lXgUY6.js +137 -0
- package/dist/SendForm-BcD0xSvB.js +7031 -0
- package/dist/Setup-C2qaYDei.js +47 -0
- package/dist/{SmartList-DhhjSWLO.js → SmartList-DqG7Q5t7.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-CzMbr8AX.js +1303 -0
- package/dist/{TermsSettings-BEQwmkFH.js → TermsSettings-BOCONyM4.js} +169 -56
- package/dist/ThemeColorRow-sjGdMzGN.js +108 -0
- package/dist/ToggleBinding-7oq_oXPt.js +44 -0
- package/dist/UploadModal-C_X2NjVY.js +134 -0
- package/dist/VideoPlayerInput-BsUcmpl4.js +135 -0
- package/dist/VideoPlayerSettings-BXMmxaZQ.js +78 -0
- package/dist/VideoSelectModal-CW0OweCw.js +217 -0
- package/dist/{anime.es-BrPTThYb.js → anime.es-gdcpA-eY.js} +1 -2
- package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
- package/dist/{debounce-D0hKNU85.js → debounce-DNl99Gyo.js} +10 -10
- package/dist/dom-CkTGWrfu.js +69 -0
- package/dist/{focusDrawerMixin-C_aTLmK0.js → focusDrawerMixin-BwcErMDY.js} +1 -1
- package/dist/{formDrawerState-Da4mcbab.js → formDrawerState-DaurePnd.js} +2 -2
- package/dist/helpers-CPW--XIz.js +44 -0
- package/dist/index-BjiGCJPI.js +149 -0
- package/dist/index-CFNv6OvX.js +188 -0
- package/dist/index-Cx71On5Z.js +508 -0
- package/dist/index-DKMxIBz_.js +270 -0
- package/dist/index-DKf5SGLD.js +125 -0
- package/dist/index-E32WgUp9.js +3525 -0
- package/dist/index-kp-GC5I0.js +513 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +285 -1485
- package/dist/{main-BgzLHIoo.js → main-Cb-nyil1.js} +41414 -42507
- package/dist/mapFormMixin-D3BihYWW.js +1544 -0
- package/dist/omit--YYr41Xp.js +31 -0
- package/dist/{publicSenderState-DB4BHByV.js → publicSenderState-CdRW_Wwp.js} +4 -4
- package/dist/splitpanes-D-ThFkeR.js +342 -0
- package/dist/style.css +1 -4
- package/dist/template-BvaNnq-g.js +1493 -0
- package/dist/{throttle-DT2UVOqm.js → throttle-D-bUGaVh.js} +2 -2
- package/dist/tippy.esm-BmKNqohP.js +1994 -0
- package/dist/useTermsModal-Dhf6_eYb.js +87 -0
- package/dist/{utils-nos8CB1L.js → utils-CBPcYdLv.js} +8 -11
- package/dist/validation-DOcUOoMe.js +40 -0
- package/package.json +18 -21
- package/dist/AddClientCallout-BJzBdba1.js +0 -48
- package/dist/AnswerModal-frHq1g4s.js +0 -3874
- package/dist/AttachmentItem-BaN0OrEV.js +0 -85
- package/dist/BaseDatePicker-B-AfdrSb.js +0 -3187
- package/dist/BaseUpload-CY3lTcte.js +0 -1977
- package/dist/BlockMedia-Bb5wQIDg.js +0 -76
- package/dist/CCallout-5quI6yyk.js +0 -58
- package/dist/CDropdownItem-CaoSQX6X.js +0 -640
- package/dist/CFormField-Dd2Y71JG.js +0 -240
- package/dist/CPhoneInput-BU1t6eo_.js +0 -138
- package/dist/CPriceInput-pv2aIVkH.js +0 -116
- package/dist/CSelect-CrM45B7V.js +0 -91
- package/dist/CSkeleton-BkvONMqL.js +0 -55
- package/dist/ClientAutocomplete-BRXIKQSk.js +0 -438
- package/dist/ClientModal-CvHAptV2.js +0 -666
- package/dist/ColorPicker-RgoXRrud.js +0 -2879
- package/dist/CompanyModal-OL4bD9Gk.js +0 -147
- package/dist/ContentWrapper-8HduCnR4.js +0 -190
- package/dist/CoverBlockSettings-DUv8AcdX.js +0 -659
- package/dist/DocAnswer-DiyFfpT2.js +0 -36
- package/dist/DocDetails-BxNRfBnK.js +0 -263
- package/dist/DocForm-MGp-o0pu.js +0 -5017
- package/dist/DocFormSend-q_QuVCqh.js +0 -146
- package/dist/DocLinks-DGDdp30U.js +0 -38
- package/dist/DocModalBase-qG4RqwBn.js +0 -28
- package/dist/DocPrint-Cln3kt0g.js +0 -240
- package/dist/DocReceipt-nbsJ-ukZ.js +0 -217
- package/dist/DocSendReminder-B3qdqduf.js +0 -140
- package/dist/DocTextEditor-CQDnjnRY.js +0 -17193
- package/dist/DocTimeline-CgKHoDcG.js +0 -485
- package/dist/DocumentClient-UZlnIlz5.js +0 -136
- package/dist/DocumentLayout-Dvr4zgyF.js +0 -4880
- package/dist/DocumentLogotype-mAVgMRHr.js +0 -92
- package/dist/DocumentVoided-BXYNrf_6.js +0 -25
- package/dist/EmbedInput-YRUrw3c6.js +0 -117
- package/dist/EmbedSettings-DvRreF7H.js +0 -74
- package/dist/ErrorCallout-DVknpLVY.js +0 -27
- package/dist/FilePreviewModal-DC56FaGy.js +0 -81
- package/dist/Flag-D5iZLESg.js +0 -46
- package/dist/HeaderSettings-DXZnZL7A.js +0 -440
- package/dist/ImageSelectModal-Bu4_xZga.js +0 -86
- package/dist/ImageUploadWrapper-CtZhkAm1.js +0 -1604
- package/dist/Index-B1dJO6Bk.js +0 -54
- package/dist/Index-B3pz1coY.js +0 -150
- package/dist/Index-BHgW8EHW.js +0 -2446
- package/dist/Index-BNucs2O-.js +0 -154
- package/dist/Index-BW-EtZ1z.js +0 -55
- package/dist/Index-BjKACpun.js +0 -66
- package/dist/Index-C94BL4uU.js +0 -294
- package/dist/Index-CB57haU8.js +0 -58
- package/dist/Index-CP17iXT6.js +0 -25
- package/dist/Index-CUSbvjoD.js +0 -62
- package/dist/Index-CVnD6jo5.js +0 -25
- package/dist/Index-Ci5zdPeT.js +0 -28
- package/dist/Index-CikqSMjb.js +0 -41
- package/dist/Index-CxO4tJ3U.js +0 -26
- package/dist/Index-D4J4BpHd.js +0 -230
- package/dist/Index-DAQQQlut.js +0 -754
- package/dist/Index-DNxSR72J.js +0 -73
- package/dist/Index-DPuKRwmu.js +0 -41
- package/dist/Index-DSy8QG8T.js +0 -32
- package/dist/Index-DX6_D-J-.js +0 -77
- package/dist/Index-Dk0KaIKg.js +0 -643
- package/dist/Index-Hkzoh9QR.js +0 -24
- package/dist/Index-KsHJxWAa.js +0 -94
- package/dist/Index-TtItTuv6.js +0 -33
- package/dist/Index-YAD39Qvg.js +0 -146
- package/dist/Index-eh909lAz.js +0 -107
- package/dist/Index-otowKI_C.js +0 -56
- package/dist/Index-t_oVV8Rc.js +0 -84
- package/dist/Index-vG96oEXZ.js +0 -144
- package/dist/InputToggleRow-CcqJDguN.js +0 -57
- package/dist/ManualPopover-BE2IN-XU.js +0 -60
- package/dist/MediaWrapper-lnGUFiyc.js +0 -23
- package/dist/PackageGroup-BsmxOMLW.js +0 -704
- package/dist/PdfTerms-BgYwZoAZ.js +0 -31
- package/dist/PdfViewer-C0lDpjte.js +0 -383
- package/dist/PlainHtml-5YwYVj1v.js +0 -27
- package/dist/PriceHeader-CxqhpGS-.js +0 -338
- package/dist/SearchApi-BndaIbri.js +0 -161
- package/dist/SendForm-D7U9fG-5.js +0 -1023
- package/dist/Setup-CmAK2_ZT.js +0 -50
- package/dist/ThemeColorRow-BlnhzebY.js +0 -69
- package/dist/ToggleBinding-t_58JFya.js +0 -42
- package/dist/UploadModal-T-WpYNsN.js +0 -95
- package/dist/VideoPlayerInput-DKHKjMgX.js +0 -97
- package/dist/VideoPlayerSettings-DDMlUvSt.js +0 -61
- package/dist/VideoSelectModal-B9bbP0dd.js +0 -104
- package/dist/answerDocumentMixin-DXI_E5Kx.js +0 -51
- package/dist/dom-CWsqMElk.js +0 -71
- package/dist/formValidationMixin-WZ2lGndu.js +0 -49
- package/dist/index-B2l57ilt.js +0 -102
- package/dist/index-COKDjmM2.js +0 -167
- package/dist/index-HtKGcIng.js +0 -2700
- package/dist/index-LQ7NztTt.js +0 -81
- package/dist/index-fx5gR8fM.js +0 -351
- package/dist/index-zXXJrTvv.js +0 -492
- package/dist/mapFormMixin-CQgSN7dv.js +0 -3028
- package/dist/omit-ScS7B6c5.js +0 -31
- package/dist/simplebar.min-B0cB_p8g.js +0 -71
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/tippy.esm-CR89mtdY.js +0 -1805
- package/dist/vuedraggable.umd-CkXXkt1b.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { a } from "./publicSenderState-DB4BHByV.js";
|
|
2
|
-
import { C as s, a as r } from "./CDropdownItem-CaoSQX6X.js";
|
|
3
|
-
import { g as l, n as p } from "./main-BgzLHIoo.js";
|
|
4
|
-
import { m as c, a as m } from "./vuex.esm-DKGl8mcw.js";
|
|
5
|
-
const u = {
|
|
6
|
-
name: "DocumentLogotype",
|
|
7
|
-
components: {
|
|
8
|
-
CDropdown: s,
|
|
9
|
-
CDropdownItem: r,
|
|
10
|
-
ImageUploadWrapper: () => import("./ImageUploadWrapper-CtZhkAm1.js")
|
|
11
|
-
},
|
|
12
|
-
inject: {
|
|
13
|
-
viewSettings: {
|
|
14
|
-
default: () => ({
|
|
15
|
-
canEdit: !1,
|
|
16
|
-
isPublicForm: !1
|
|
17
|
-
})
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
props: {
|
|
21
|
-
value: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: null
|
|
24
|
-
},
|
|
25
|
-
companyLogotype: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: null
|
|
28
|
-
},
|
|
29
|
-
showLogo: {
|
|
30
|
-
type: Boolean,
|
|
31
|
-
default: !0
|
|
32
|
-
},
|
|
33
|
-
hasHover: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: !1
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
computed: {
|
|
39
|
-
...c({
|
|
40
|
-
isPosting: "companies/isPosting"
|
|
41
|
-
}),
|
|
42
|
-
logotype() {
|
|
43
|
-
return this.value || this.companyLogotype || "";
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
methods: {
|
|
47
|
-
...m({
|
|
48
|
-
updateCompany: l.DO_UPDATE_CURRENT_COMPANY
|
|
49
|
-
}),
|
|
50
|
-
initUpload() {
|
|
51
|
-
this.$refs.uploadWrapper && this.$refs.uploadWrapper.onClick();
|
|
52
|
-
},
|
|
53
|
-
async setLogotype({ response: e }) {
|
|
54
|
-
const { publicId: t, url: o } = e || {};
|
|
55
|
-
o && this.$emit("input", o), !this.companyLogotype && t && await this.postLogo(t);
|
|
56
|
-
},
|
|
57
|
-
async postLogo(e) {
|
|
58
|
-
if (this.isPosting)
|
|
59
|
-
return;
|
|
60
|
-
const t = { LogotypePublicId: e };
|
|
61
|
-
this.viewSettings.isPublicForm ? a({ company: t }) : await this.updateCompany({ body: t });
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
var d = function() {
|
|
66
|
-
var t = this, o = t._self._c;
|
|
67
|
-
return t.viewSettings.canEdit ? o("ImageUploadWrapper", { ref: "uploadWrapper", staticStyle: { display: "inline-block", width: "fit-content", "will-change": "opacity", "z-index": "3" }, attrs: { "on-image-upload": t.setLogotype, "upload-options": { maxWidth: 500, maxHeight: 300 } }, scopedSlots: t._u([{ key: "default", fn: function({ progress: n }) {
|
|
68
|
-
return [o("CDropdown", { attrs: { position: "is-bottom-right" }, nativeOn: { click: function(i) {
|
|
69
|
-
i.stopPropagation();
|
|
70
|
-
} }, scopedSlots: t._u([{ key: "trigger", fn: function() {
|
|
71
|
-
return [t.logotype && t.showLogo ? o("div", { staticClass: "logo", staticStyle: { "min-height": "35px" } }, [o("img", { staticClass: "hover:outline-primary-500 hover:outline hover:outline-2", attrs: { src: t.logotype, alt: "", width: "150" } })]) : o("CButton", { staticClass: "button-logo", style: !t.hasHover && {
|
|
72
|
-
visibility: "hidden",
|
|
73
|
-
pointerEvents: "none"
|
|
74
|
-
}, attrs: { loading: !!n && n < 100 || t.isPosting, type: "text", size: "normal", pattern: "secondary" } }, [t._v(" " + t._s(t.$t("_common:logo").capitalize()) + " ")])];
|
|
75
|
-
}, proxy: !0 }], null, !0) }, [o("CDropdownItem", { attrs: { value: t.showLogo, "close-on-click": !1, toggle: "" }, on: { input: function(i) {
|
|
76
|
-
return t.$emit("update:show-logo", i);
|
|
77
|
-
} } }, [t._v(" " + t._s(t.$t("_common:show", { thing: t.$t("_common:logotype") })) + " ")]), t.showLogo ? [o("CDropdownItem", { attrs: { separator: !0 } }), o("CDropdownItem", { on: { click: t.initUpload } }, [t._v(" " + t._s(t.$t("_common:change", { thing: t.$t("_common:logotype") })) + " ")]), o("CDropdownItem", { attrs: { disabled: !t.value }, on: { click: function(i) {
|
|
78
|
-
return t.$emit("input", "");
|
|
79
|
-
} } }, [t._v(" " + t._s(t.$t("_common:reset")) + " ")])] : t._e()], 2)];
|
|
80
|
-
} }], null, !1, 4142946360) }) : t.showLogo ? o("div", { staticStyle: { display: "inline-block" } }, [o("img", { attrs: { src: t.logotype, alt: "", width: "150" } })]) : t._e();
|
|
81
|
-
}, g = [], y = /* @__PURE__ */ p(
|
|
82
|
-
u,
|
|
83
|
-
d,
|
|
84
|
-
g,
|
|
85
|
-
!1,
|
|
86
|
-
null,
|
|
87
|
-
"0bf1f99b"
|
|
88
|
-
);
|
|
89
|
-
const w = y.exports;
|
|
90
|
-
export {
|
|
91
|
-
w as default
|
|
92
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { n } from "./main-BgzLHIoo.js";
|
|
2
|
-
const s = {
|
|
3
|
-
name: "DocumentVoided",
|
|
4
|
-
props: {
|
|
5
|
-
document: {
|
|
6
|
-
type: Object,
|
|
7
|
-
required: !0
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
var o = function() {
|
|
12
|
-
var t = this, e = t._self._c;
|
|
13
|
-
return e("div", { staticClass: "grid h-full place-items-center text-center" }, [e("div", { staticClass: "py-12" }, [e("CIcon", { staticClass: "text-primary-500 mb-2", attrs: { type: "info" } }), e("div", { staticClass: "text-lg font-medium", domProps: { textContent: t._s(t.document.$t("documentVoided.title")) } }), e("div", { staticClass: "text-gray-700", domProps: { textContent: t._s(t.document.$t("documentVoided.description")) } })], 1)]);
|
|
14
|
-
}, r = [], c = /* @__PURE__ */ n(
|
|
15
|
-
s,
|
|
16
|
-
o,
|
|
17
|
-
r,
|
|
18
|
-
!1,
|
|
19
|
-
null,
|
|
20
|
-
null
|
|
21
|
-
);
|
|
22
|
-
const a = c.exports;
|
|
23
|
-
export {
|
|
24
|
-
a as D
|
|
25
|
-
};
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { C as d } from "./CFormField-Dd2Y71JG.js";
|
|
2
|
-
import { d as o } from "./debounce-D0hKNU85.js";
|
|
3
|
-
import { b as l, n as m } from "./main-BgzLHIoo.js";
|
|
4
|
-
const u = (t) => {
|
|
5
|
-
const i = new DOMParser().parseFromString(t, "text/html"), [s] = l(i, "body.children") || [];
|
|
6
|
-
return !s || s.tagName !== "IFRAME" ? {} : Array.from(s.attributes).reduce(
|
|
7
|
-
(a, { name: r, value: n }) => ({ ...a, [r]: n }),
|
|
8
|
-
{}
|
|
9
|
-
);
|
|
10
|
-
}, c = (t) => {
|
|
11
|
-
if (typeof t != "object" || !t)
|
|
12
|
-
return "";
|
|
13
|
-
const e = document.createElement("iframe");
|
|
14
|
-
return Object.keys(t).forEach((i) => e.setAttribute(i, t[i])), e.hasAttribute("src") ? e.outerHTML : "";
|
|
15
|
-
}, p = (t) => /^(?:https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/gi.test(
|
|
16
|
-
t
|
|
17
|
-
), f = {
|
|
18
|
-
name: "EmbedInput",
|
|
19
|
-
i18nOptions: {
|
|
20
|
-
namespaces: "embedInput",
|
|
21
|
-
messages: {
|
|
22
|
-
en: {
|
|
23
|
-
placeholder: "Paste embed link",
|
|
24
|
-
validations: {
|
|
25
|
-
embed: {
|
|
26
|
-
isValid: "No supported source found"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
sv: {
|
|
31
|
-
placeholder: "Klista in inbäddningslänk",
|
|
32
|
-
validations: {
|
|
33
|
-
embed: {
|
|
34
|
-
isValid: "Ingen källa kunde hittas"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
components: {
|
|
41
|
-
CField: d
|
|
42
|
-
},
|
|
43
|
-
props: {
|
|
44
|
-
value: {
|
|
45
|
-
type: Object,
|
|
46
|
-
default: () => ({})
|
|
47
|
-
},
|
|
48
|
-
isDrawerMode: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: !1
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
data() {
|
|
54
|
-
return {
|
|
55
|
-
isLoading: !1,
|
|
56
|
-
embed: {},
|
|
57
|
-
// TODO: could remove the template string in the input and only parse/validate input strings
|
|
58
|
-
// TODO: would
|
|
59
|
-
iFrameTplString: "",
|
|
60
|
-
inputPlaceholder: '<iframe style="border: 1px solid rgba(0, 0, 0, 0.1)...'
|
|
61
|
-
};
|
|
62
|
-
},
|
|
63
|
-
validations() {
|
|
64
|
-
return {
|
|
65
|
-
embed: { isValid: (t) => t && p(t.src) }
|
|
66
|
-
};
|
|
67
|
-
},
|
|
68
|
-
computed: {
|
|
69
|
-
messages() {
|
|
70
|
-
return {
|
|
71
|
-
embed: { isValid: this.$t("validations.embed.isValid") }
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
watch: {
|
|
76
|
-
value: {
|
|
77
|
-
immediate: !0,
|
|
78
|
-
handler(t) {
|
|
79
|
-
this.embed = Object.assign({}, t), this.iFrameTplString = c(this.embed);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
methods: {
|
|
84
|
-
onInput: o(function(e) {
|
|
85
|
-
this.$v.$reset(), e && this.validateInput(e);
|
|
86
|
-
}, 500),
|
|
87
|
-
async validateInput(t) {
|
|
88
|
-
this.isLoading = !0, this.embed = await u(t), this.embed.src || (this.embed.src = t), this.$v.$invalid || this.$emit("input", this.embed), this.isLoading = !1, this.$v.$touch();
|
|
89
|
-
},
|
|
90
|
-
focus() {
|
|
91
|
-
this.$refs.input && this.$refs.input.focus();
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
var h = function() {
|
|
96
|
-
var e = this, i = e._self._c;
|
|
97
|
-
return i("CField", { style: e.isDrawerMode && {
|
|
98
|
-
display: "flex",
|
|
99
|
-
flexDirection: "column",
|
|
100
|
-
alignItems: "flex-start"
|
|
101
|
-
}, attrs: { grouped: !e.isDrawerMode } }, [i("CField", { staticStyle: { width: "100%" }, attrs: { validator: e.$v.embed, messages: e.messages.embed, expanded: "" } }, [i("CInput", { ref: "input", attrs: { placeholder: e.inputPlaceholder, size: e.isDrawerMode ? "small" : void 0, loading: e.isLoading, filled: e.isDrawerMode, "auto-resize": !0, type: "textarea", expanded: "" }, on: { input: e.onInput }, model: { value: e.iFrameTplString, callback: function(s) {
|
|
102
|
-
e.iFrameTplString = s;
|
|
103
|
-
}, expression: "iFrameTplString" } })], 1), i("CButton", { attrs: { disabled: e.isLoading, size: e.isDrawerMode ? "small" : void 0, type: "secondary" }, on: { click: function(s) {
|
|
104
|
-
return e.validateInput(e.iFrameTplString);
|
|
105
|
-
} } }, [e._v(" " + e._s(e.$t("_common:add")) + " ")])], 1);
|
|
106
|
-
}, b = [], w = /* @__PURE__ */ m(
|
|
107
|
-
f,
|
|
108
|
-
h,
|
|
109
|
-
b,
|
|
110
|
-
!1,
|
|
111
|
-
null,
|
|
112
|
-
null
|
|
113
|
-
);
|
|
114
|
-
const F = w.exports;
|
|
115
|
-
export {
|
|
116
|
-
F as default
|
|
117
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { b as n } from "./CDropdownItem-CaoSQX6X.js";
|
|
2
|
-
import l from "./EmbedInput-YRUrw3c6.js";
|
|
3
|
-
import { n as o } from "./main-BgzLHIoo.js";
|
|
4
|
-
const r = {
|
|
5
|
-
i18nOptions: {
|
|
6
|
-
namespaces: "embedSettings",
|
|
7
|
-
messages: {
|
|
8
|
-
en: {
|
|
9
|
-
title: "Embed - iFrame",
|
|
10
|
-
subTitle: "Embed anything (PDFs, Google Docs, Calender Sheets...)",
|
|
11
|
-
responsiveSize: "Responsive size"
|
|
12
|
-
},
|
|
13
|
-
sv: {
|
|
14
|
-
title: "Bädda in - iFrame",
|
|
15
|
-
subTitle: "Bädda in vad som helst (PDF:er, Google Docs, Calender Sheets...)",
|
|
16
|
-
responsiveSize: "Responsiv storlek"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
name: "EmbedSettings",
|
|
21
|
-
components: {
|
|
22
|
-
EmbedInput: l,
|
|
23
|
-
CSwitch: n
|
|
24
|
-
},
|
|
25
|
-
props: {
|
|
26
|
-
value: {
|
|
27
|
-
type: Object,
|
|
28
|
-
default: () => ({})
|
|
29
|
-
},
|
|
30
|
-
size: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: "small"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
computed: {
|
|
36
|
-
sizeOptions() {
|
|
37
|
-
return [
|
|
38
|
-
{
|
|
39
|
-
value: "small",
|
|
40
|
-
svg: '<g fill-rule="nonzero" fill="none"><path d="M0 0h99v65H0z"/><path d="M22 16h56a2 2 0 012 2v30a2 2 0 01-2 2H22a2 2 0 01-2-2V18a2 2 0 012-2zm0 40h56a2 2 0 012 2v7H20v-7a2 2 0 012-2zM20 0h60v7a2 2 0 01-2 2H22a2 2 0 01-2-2V0z" fill="currentColor"/></g>'
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
value: "medium",
|
|
44
|
-
svg: '<g fill-rule="nonzero" fill="none"><path d="M0 0h99v65H0z"/><path d="M11 14h76a2 2 0 012 2v33a2 2 0 01-2 2H11a2 2 0 01-2-2V16a2 2 0 012-2zm8-14h60v6a2 2 0 01-2 2H21a2 2 0 01-2-2V0zm2 58h56a2 2 0 012 2v5H19v-5a2 2 0 012-2z" fill="currentColor"/></g>'
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
value: "large",
|
|
48
|
-
svg: '<g fill-rule="nonzero" fill="none"><path d="M0 0h99v65H0z"/><path d="M8 7h84a2 2 0 012 2v42a2 2 0 01-2 2H8a2 2 0 01-2-2V9a2 2 0 012-2zm13 51h56a2 2 0 012 2v5H19v-5a2 2 0 012-2z" fill="currentColor"/></g>'
|
|
49
|
-
}
|
|
50
|
-
];
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
var d = function() {
|
|
55
|
-
var e = this, t = e._self._c;
|
|
56
|
-
return t("div", { staticClass: "d-root" }, [t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [e._v(e._s(e.$t("title").capitalize()))]), t("div", { staticClass: "text-gray-600", staticStyle: { "padding-bottom": "1em" } }, [e._v(" " + e._s(e.$t("subTitle")) + " ")]), t("EmbedInput", { attrs: { value: e.value, "is-drawer-mode": !0 }, on: { input: function(i) {
|
|
57
|
-
return e.$emit("input", i);
|
|
58
|
-
} } })], 1), t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [t("div", { staticStyle: { flex: "1 1 auto" } }, [e._v(" " + e._s(e.$t("responsiveSize")) + " ")]), t("CSwitch", { staticStyle: { "margin-right": "0" }, attrs: { value: !!e.size, size: "small", type: "secondary" }, on: { input: (i) => e.$emit("update:size", i ? "small" : null) } })], 1), e.size ? t("div", { staticStyle: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "padding-top": "5px" } }, e._l(e.sizeOptions, function({ value: i, svg: s }, a) {
|
|
59
|
-
return t("div", { key: a, staticClass: "size-option", on: { click: function(c) {
|
|
60
|
-
return e.$emit("update:size", i);
|
|
61
|
-
} } }, [t("svg", { staticClass: "size-option-image", class: { "is-active": e.size === i }, attrs: { viewBox: "0 0 99 65" }, domProps: { innerHTML: e._s(s) } })]);
|
|
62
|
-
}), 0) : e._e()])]);
|
|
63
|
-
}, v = [], p = /* @__PURE__ */ o(
|
|
64
|
-
r,
|
|
65
|
-
d,
|
|
66
|
-
v,
|
|
67
|
-
!1,
|
|
68
|
-
null,
|
|
69
|
-
"a62790ae"
|
|
70
|
-
);
|
|
71
|
-
const g = p.exports;
|
|
72
|
-
export {
|
|
73
|
-
g as default
|
|
74
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { u as c, y as l, x as r, n } from "./main-BgzLHIoo.js";
|
|
2
|
-
const o = /* @__PURE__ */ c({
|
|
3
|
-
__name: "ErrorCallout",
|
|
4
|
-
props: {
|
|
5
|
-
message: null,
|
|
6
|
-
size: { default: "normal" }
|
|
7
|
-
},
|
|
8
|
-
setup(a) {
|
|
9
|
-
const s = l(), t = r(() => s.style), e = r(() => s.class);
|
|
10
|
-
return { __sfc: !0, attrs: s, staticStyle: t, staticClass: e };
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
var i = function() {
|
|
14
|
-
var s = this, t = s._self._c, e = s._self._setupProxy;
|
|
15
|
-
return t("div", { staticClass: "flex items-center", class: [e.staticClass], staticStyle: { "margin-top": "calc(1 * var(--rem))" }, style: [e.staticStyle] }, [t("div", { staticClass: "error-wrapper bg-red-50 text-red-500", class: [`is-${s.size}`], staticStyle: { margin: "calc(1 * var(--rem)) 0" } }, [t("CIcon", { staticStyle: { "margin-right": "0.5em", flex: "0 0 18px" }, attrs: { type: "alert", size: "18" } }), t("div", [s._v(" " + s._s(s.message) + " ")])], 1)]);
|
|
16
|
-
}, _ = [], m = /* @__PURE__ */ n(
|
|
17
|
-
o,
|
|
18
|
-
i,
|
|
19
|
-
_,
|
|
20
|
-
!1,
|
|
21
|
-
null,
|
|
22
|
-
"f8619ad7"
|
|
23
|
-
);
|
|
24
|
-
const u = m.exports;
|
|
25
|
-
export {
|
|
26
|
-
u as E
|
|
27
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { V as n } from "./PdfViewer-C0lDpjte.js";
|
|
2
|
-
import { n as o, S as r } from "./main-BgzLHIoo.js";
|
|
3
|
-
const a = {
|
|
4
|
-
name: "FilesPreviewModal",
|
|
5
|
-
components: {
|
|
6
|
-
Spinner: r,
|
|
7
|
-
VuePdf: n
|
|
8
|
-
},
|
|
9
|
-
props: {
|
|
10
|
-
index: {
|
|
11
|
-
type: Number,
|
|
12
|
-
default: 0
|
|
13
|
-
},
|
|
14
|
-
list: {
|
|
15
|
-
type: Array,
|
|
16
|
-
required: !0
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
data() {
|
|
20
|
-
return {
|
|
21
|
-
isLoading: !0,
|
|
22
|
-
currentIndex: this.index
|
|
23
|
-
};
|
|
24
|
-
},
|
|
25
|
-
computed: {
|
|
26
|
-
isPdf() {
|
|
27
|
-
return this.list[this.currentIndex].mime === "application/pdf";
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
mounted() {
|
|
31
|
-
window.addEventListener("keyup", this.handleKey, { capture: !0 }), this.toggleIsLoading();
|
|
32
|
-
},
|
|
33
|
-
beforeDestroy() {
|
|
34
|
-
window.removeEventListener("keyup", this.handleKey, { capture: !0 });
|
|
35
|
-
},
|
|
36
|
-
methods: {
|
|
37
|
-
onGo(i) {
|
|
38
|
-
const t = this.currentIndex + i;
|
|
39
|
-
this.list[t] && (this.currentIndex = t, this.toggleIsLoading());
|
|
40
|
-
},
|
|
41
|
-
toggleIsLoading() {
|
|
42
|
-
this.isLoading = !0, setTimeout(() => {
|
|
43
|
-
this.isLoading = !1;
|
|
44
|
-
}, 1e3);
|
|
45
|
-
},
|
|
46
|
-
handleKey(i) {
|
|
47
|
-
i.stopPropagation(), parseInt(i.keyCode, 10) === 37 && this.onGo(-1), parseInt(i.keyCode, 10) === 39 && this.onGo(1);
|
|
48
|
-
const t = i.key || i.keyCode;
|
|
49
|
-
(t === "Escape" || t === "Esc" || t === 27) && this.$emit("close");
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
var l = function() {
|
|
54
|
-
var t = this, e = t._self._c;
|
|
55
|
-
return e("div", { staticClass: "flex w-full flex-col", staticStyle: { height: "100%" } }, [e("div", { staticClass: "image-modal-overlay" }), e("div", { staticClass: "image-modal-nav", staticStyle: { "z-index": "2" } }, [e("div", { staticClass: "truncate-text", staticStyle: { "align-items": "center", display: "flex" } }, [e("div", { staticClass: "truncate-text" }, [t._v(t._s(t.list[t.currentIndex].name))])]), e("div", { staticStyle: { display: "flex" } }, [e("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("show", { thing: t.$t("previous") }), expression: "$t('show', { thing: $t('previous') })" }], staticClass: "image-modal-nav-button", class: { disabled: !t.list[t.currentIndex - 1] }, on: { click: function(s) {
|
|
56
|
-
return t.onGo(-1);
|
|
57
|
-
} } }, [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("path", { attrs: { d: "M19 12H6M12 5l-7 7 7 7" } })])]), e("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("show", { thing: t.$t("next") }), expression: "$t('show', { thing: $t('next') })" }], staticClass: "image-modal-nav-button", class: { disabled: !t.list[t.currentIndex + 1] }, on: { click: function(s) {
|
|
58
|
-
return t.onGo(1);
|
|
59
|
-
} } }, [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("path", { attrs: { d: "M5 12h13M12 5l7 7-7 7" } })])]), e("a", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("download"), expression: "$t('download')" }], staticClass: "image-modal-nav-button", attrs: { href: t.list[t.currentIndex].url, target: "_blank", download: "" } }, [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("path", { attrs: { d: "M3 15v4c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2v-4M17 9l-5 5-5-5M12 12.8V2.5" } })])]), e("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("close"), expression: "$t('close')" }], staticClass: "image-modal-nav-button", on: { click: function(s) {
|
|
60
|
-
return t.$emit("close");
|
|
61
|
-
} } }, [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("line", { attrs: { x1: "18", y1: "6", x2: "6", y2: "18" } }), e("line", { attrs: { x1: "6", y1: "6", x2: "18", y2: "18" } })])])])]), e("div", { staticClass: "content-container flex w-full items-center justify-center", staticStyle: { position: "relative" }, on: { click: function(s) {
|
|
62
|
-
return t.$emit("close");
|
|
63
|
-
} } }, [t.isLoading ? e("Spinner", { staticStyle: { position: "absolute", left: "50%", top: "50%", transform: "translate(-50%, -50%)" }, attrs: { size: "50px" } }) : t._e(), t.isPdf ? e("div", { staticClass: "pdf-root" }, [e("VuePdf", { staticClass: "pdf-page", attrs: { src: t.list[t.currentIndex].url }, on: { rendered: () => {
|
|
64
|
-
t.isLoading = !1;
|
|
65
|
-
} }, nativeOn: { click: function(s) {
|
|
66
|
-
s.stopPropagation();
|
|
67
|
-
} } })], 1) : t.isLoading ? t._e() : e("img", { staticClass: "modal-image", attrs: { src: t.list[t.currentIndex].url }, on: { load: function(s) {
|
|
68
|
-
t.isLoading = !1;
|
|
69
|
-
} } })], 1)]);
|
|
70
|
-
}, d = [], c = /* @__PURE__ */ o(
|
|
71
|
-
a,
|
|
72
|
-
l,
|
|
73
|
-
d,
|
|
74
|
-
!1,
|
|
75
|
-
null,
|
|
76
|
-
"76622471"
|
|
77
|
-
);
|
|
78
|
-
const p = c.exports;
|
|
79
|
-
export {
|
|
80
|
-
p as default
|
|
81
|
-
};
|
package/dist/Flag-D5iZLESg.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { n as r } from "./main-BgzLHIoo.js";
|
|
2
|
-
const i = {
|
|
3
|
-
name: "FlagIcon",
|
|
4
|
-
props: {
|
|
5
|
-
region: {
|
|
6
|
-
type: String,
|
|
7
|
-
default: null
|
|
8
|
-
},
|
|
9
|
-
title: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: null
|
|
12
|
-
},
|
|
13
|
-
isSquared: {
|
|
14
|
-
type: Boolean,
|
|
15
|
-
default: !1
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
mounted() {
|
|
19
|
-
var a, l;
|
|
20
|
-
const n = "FLAG_ICONS", e = (l = (a = this.$el).getRootNode) == null ? void 0 : l.call(a), o = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.head;
|
|
21
|
-
if (o.querySelector(`#${n}`))
|
|
22
|
-
return;
|
|
23
|
-
const t = document.createElement("link");
|
|
24
|
-
t.id = n, t.rel = "stylesheet", t.type = "text/css", t.href = "https://www.unpkg.com/flag-icons@6.6.6/css/flag-icons.min.css", t.media = "all", o.appendChild(t);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
var c = function() {
|
|
28
|
-
var e = this, s = e._self._c;
|
|
29
|
-
return e.region ? s("span", { staticClass: "fi", class: [
|
|
30
|
-
`fi-${e.region.toLowerCase()}`,
|
|
31
|
-
{
|
|
32
|
-
fis: e.isSquared
|
|
33
|
-
}
|
|
34
|
-
], attrs: { title: e.title || e.region } }) : e._e();
|
|
35
|
-
}, d = [], f = /* @__PURE__ */ r(
|
|
36
|
-
i,
|
|
37
|
-
c,
|
|
38
|
-
d,
|
|
39
|
-
!1,
|
|
40
|
-
null,
|
|
41
|
-
null
|
|
42
|
-
);
|
|
43
|
-
const u = f.exports;
|
|
44
|
-
export {
|
|
45
|
-
u as F
|
|
46
|
-
};
|