@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.
- package/CHANGELOG.md +25 -0
- package/README.internal.md +82 -0
- package/README.md +14 -40
- package/README.public.md +14 -0
- 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-qH-3m2eP.js → CCurrencyDropdown-DE_3CTjm.js} +91 -49
- 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-CfQayFxw.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-DIOiMm9f.js → Index-BBwvo7S9.js} +10 -18
- package/dist/Index-BEMlsYwJ.js +68 -0
- package/dist/Index-BRBhJ6kz.js +21 -0
- package/dist/{Index--qPMWUMT.js → Index-BTFmHjUt.js} +48 -61
- 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-DcQbh-z2.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-Bu0MGrj6.js → Index-DfLLA0ij.js} +313 -206
- package/dist/Index-Dw1CO5F9.js +76 -0
- package/dist/Index-PZXyOoVb.js +87 -0
- package/dist/{Index-D4XgxmbD.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-CNV2Wmdx.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-Qgu0rMrI.js → SmartList-DqG7Q5t7.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-CzMbr8AX.js +1303 -0
- package/dist/{TermsSettings-CE3h_xkm.js → TermsSettings-BOCONyM4.js} +169 -49
- 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-C1AuSpOZ.js → debounce-DNl99Gyo.js} +7 -7
- package/dist/dom-CkTGWrfu.js +69 -0
- package/dist/{focusDrawerMixin-Be6BAK8-.js → focusDrawerMixin-BwcErMDY.js} +1 -1
- package/dist/{formDrawerState-DRbg5rVI.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 +306 -1505
- package/dist/{main-WKzC-Dnu.js → main-Cb-nyil1.js} +33252 -33755
- package/dist/mapFormMixin-D3BihYWW.js +1544 -0
- package/dist/omit--YYr41Xp.js +31 -0
- package/dist/{publicSenderState-BujjYsZZ.js → publicSenderState-CdRW_Wwp.js} +4 -4
- package/dist/regions-BdZt9Srn.js +1250 -0
- 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-CWPJmFid.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-CA_Zy6u1.js → utils-CBPcYdLv.js} +8 -11
- package/dist/validation-DOcUOoMe.js +40 -0
- package/package.json +25 -31
- package/.eslintrc.cjs +0 -4
- package/dist/AddClientCallout-BWnvyBcK.js +0 -46
- package/dist/AnswerModal-CLGRdSnK.js +0 -3874
- package/dist/AttachmentItem-BPS0-wyc.js +0 -78
- package/dist/BaseDatePicker-BbmV_GdD.js +0 -3183
- package/dist/BaseUpload-9gPgI7r6.js +0 -1977
- package/dist/BlockMedia-DkPFWiYL.js +0 -76
- package/dist/CCallout-T26jwUby.js +0 -59
- package/dist/CDropdownItem-BE8BAMD1.js +0 -636
- package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
- package/dist/CFormField-DECEfoVq.js +0 -241
- package/dist/CPriceInput-C4SOB-P5.js +0 -112
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
- package/dist/ClientAutocomplete-DSebA1Mx.js +0 -78
- package/dist/ClientModal-BXFYvYCF.js +0 -625
- package/dist/ColorPicker-CZ_bJabP.js +0 -2879
- package/dist/CompanyModal-CDr3t28n.js +0 -141
- package/dist/ContentWrapper-BwmMoe4W.js +0 -183
- package/dist/CoverBlockSettings-_F11-DGc.js +0 -275
- package/dist/DocAnswer-BR59xzkT.js +0 -36
- package/dist/DocDetails-D1qbCbps.js +0 -259
- package/dist/DocForm-DBc2a7z5.js +0 -7272
- package/dist/DocFormSend-Casix-yG.js +0 -144
- package/dist/DocLinks-DGTaewyX.js +0 -38
- package/dist/DocModalBase-BbS_qvSv.js +0 -28
- package/dist/DocPrint-0PqX3mbJ.js +0 -240
- package/dist/DocReceipt-CU3VD5pt.js +0 -210
- package/dist/DocSendReminder-CuycBspr.js +0 -137
- package/dist/DocTextEditor-CntS2Bd-.js +0 -17180
- package/dist/DocTimeline-DJuv3yBe.js +0 -481
- package/dist/DocumentClient-C25XXzz6.js +0 -136
- package/dist/DocumentLayout-B7afHRMr.js +0 -4909
- package/dist/DocumentLogotype-sqI51wvM.js +0 -87
- package/dist/DocumentVoided-TahdTSMn.js +0 -25
- package/dist/EmbedInput-BY-wHSfc.js +0 -113
- package/dist/EmbedSettings-8pfjk4NP.js +0 -72
- package/dist/ErrorCallout-Dsr8PNsU.js +0 -28
- package/dist/FilePreviewModal-CcEinEFg.js +0 -81
- package/dist/Flag-PJKrghi9.js +0 -114
- package/dist/HeaderSettings-BqczIOsG.js +0 -392
- package/dist/ImageSelectModal-Cd-HhKnH.js +0 -84
- package/dist/ImageUploadWrapper-Dv43rGdb.js +0 -1604
- package/dist/Index-6b5VBKE-.js +0 -107
- package/dist/Index-B4pRJnbw.js +0 -84
- package/dist/Index-B69f8qgZ.js +0 -62
- package/dist/Index-B79YN9RO.js +0 -25
- package/dist/Index-BBrlPoe8.js +0 -58
- package/dist/Index-BXfWJCuq.js +0 -52
- package/dist/Index-Bd76vb37.js +0 -55
- package/dist/Index-BmbtQO5F.js +0 -150
- package/dist/Index-ByV_kJaH.js +0 -77
- package/dist/Index-CDV5rhWS.js +0 -49
- package/dist/Index-CIx4OOK-.js +0 -144
- package/dist/Index-CL1OWLt6.js +0 -223
- package/dist/Index-Caow0eZu.js +0 -31
- package/dist/Index-Cd3-3PEK.js +0 -2402
- package/dist/Index-CdpZBEKU.js +0 -98
- package/dist/Index-CmU3Sys-.js +0 -754
- package/dist/Index-CtRtgnpm.js +0 -32
- package/dist/Index-Cukkr33D.js +0 -140
- package/dist/Index-Cuqw0ios.js +0 -57
- package/dist/Index-Czm_WdqC.js +0 -25
- package/dist/Index-DNdYXHgr.js +0 -33
- package/dist/Index-DcuBxutp.js +0 -642
- package/dist/Index-DpWNWiyY.js +0 -291
- package/dist/Index-DzS1rZdF.js +0 -24
- package/dist/Index-N6s5pZxv.js +0 -26
- package/dist/Index-g_DNu4mt.js +0 -69
- package/dist/Index-mJ8F41GY.js +0 -154
- package/dist/Index-q7W9KA8m.js +0 -21
- package/dist/Index-rtzblZp4.js +0 -70
- package/dist/InputToggleRow-CZjxsDOQ.js +0 -57
- package/dist/ManualPopover-CZrWiT-P.js +0 -58
- package/dist/MediaWrapper-D37qK4KR.js +0 -23
- package/dist/PackageGroup-Heo_s8ct.js +0 -699
- package/dist/PdfTerms-AB9tXAtU.js +0 -36
- package/dist/PdfViewer-CIVkvOBr.js +0 -373
- package/dist/PlainHtml-CPmIebjY.js +0 -20
- package/dist/PriceHeader-DhDAruwX.js +0 -339
- package/dist/SearchApi-BMgdaI4s.js +0 -161
- package/dist/Setup-VIaIV9uT.js +0 -50
- package/dist/ThemeColorRow-DYJNgk6S.js +0 -67
- package/dist/ToggleBinding-CuwCeYpO.js +0 -38
- package/dist/UploadModal-BITcxG-J.js +0 -95
- package/dist/VideoPlayerInput-8szEX_8L.js +0 -93
- package/dist/VideoPlayerSettings-BIPytm6w.js +0 -61
- package/dist/VideoSelectModal-B-Pe34nb.js +0 -100
- package/dist/answerDocumentMixin-W7vE1Gp4.js +0 -51
- package/dist/formComponentsInstall-Bm3VMOh6.js +0 -2507
- package/dist/formValidationMixin-COkY8COk.js +0 -49
- package/dist/index-BFvjENMH.js +0 -81
- package/dist/index-BV2nGWay.js +0 -492
- package/dist/index-BgJ05dYc.js +0 -165
- package/dist/index-CMPAXxzs.js +0 -347
- package/dist/index-DNDjI5uI.js +0 -3916
- package/dist/index-aoff9oUi.js +0 -102
- package/dist/mapFormMixin-QbevCwJK.js +0 -72
- package/dist/omit-CTp9CXoU.js +0 -31
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/tinycolor-kTl0yxzz.js +0 -633
- package/dist/tippy.esm-sS5koDSU.js +0 -1799
- package/dist/vuedraggable.umd-BA3ZDRAp.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
- package/public/favicon.ico +0 -0
- package/tsconfig.json +0 -26
- package/tsconfig.node.json +0 -10
- package/tsconfig.paths.json +0 -17
- package/vite.config.ts +0 -60
package/dist/Index-6b5VBKE-.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { m as i } from "./mapFormMixin-QbevCwJK.js";
|
|
2
|
-
import { V as n } from "./PdfViewer-CIVkvOBr.js";
|
|
3
|
-
import { c as l, d as o, n as d } from "./main-WKzC-Dnu.js";
|
|
4
|
-
const u = {
|
|
5
|
-
i18nOptions: {
|
|
6
|
-
namespaces: "pdfBlock",
|
|
7
|
-
messages: {
|
|
8
|
-
en: {
|
|
9
|
-
embedded: "Embedded",
|
|
10
|
-
numOfPages: "- {{numPages}} pages",
|
|
11
|
-
upload: "Upload PDF"
|
|
12
|
-
},
|
|
13
|
-
sv: {
|
|
14
|
-
embedded: "Inbäddat",
|
|
15
|
-
numOfPages: "- {{numPages}} sidor",
|
|
16
|
-
upload: "Ladda upp en pdf"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
name: "Pdf",
|
|
21
|
-
components: {
|
|
22
|
-
PdfViewer: n,
|
|
23
|
-
FileIcon: () => import("./Index-CmU3Sys-.js"),
|
|
24
|
-
BaseUpload: () => import("./BaseUpload-9gPgI7r6.js")
|
|
25
|
-
},
|
|
26
|
-
mixins: [i(["file"])],
|
|
27
|
-
inject: {
|
|
28
|
-
isPdf: {
|
|
29
|
-
default: !1
|
|
30
|
-
},
|
|
31
|
-
_firstBlock: {
|
|
32
|
-
default: !1
|
|
33
|
-
},
|
|
34
|
-
_lastBlock: {
|
|
35
|
-
default: !1
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
data() {
|
|
39
|
-
return {
|
|
40
|
-
uploadProgress: null,
|
|
41
|
-
isHover: !1,
|
|
42
|
-
numPages: null,
|
|
43
|
-
maxFileSize: 1e3 * 1e3 * 30
|
|
44
|
-
// 30 MB
|
|
45
|
-
};
|
|
46
|
-
},
|
|
47
|
-
computed: {
|
|
48
|
-
showControls() {
|
|
49
|
-
return !this.file || this.isHover || this.uploadProgress !== null;
|
|
50
|
-
},
|
|
51
|
-
// Fetch the file from API instead of AWS directly
|
|
52
|
-
fileUrl() {
|
|
53
|
-
if (!this.file || !this.file.url)
|
|
54
|
-
return null;
|
|
55
|
-
if (this.file.url.startsWith(l.api.baseUrl))
|
|
56
|
-
return this.file.url;
|
|
57
|
-
try {
|
|
58
|
-
const { hostname: a } = new URL(this.file.url);
|
|
59
|
-
if (Object.keys(o).some(
|
|
60
|
-
(s) => a.includes(o[s].domain)
|
|
61
|
-
))
|
|
62
|
-
return this.file.url;
|
|
63
|
-
} catch {
|
|
64
|
-
}
|
|
65
|
-
return `${l.api.baseUrl}/public/fileProxy?url=${encodeURIComponent(
|
|
66
|
-
this.file.url
|
|
67
|
-
)}`;
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
methods: {
|
|
71
|
-
onUploadSuccess(a) {
|
|
72
|
-
const { id: e, displayName: s, url: t, mime: r } = a.response;
|
|
73
|
-
if (!e)
|
|
74
|
-
throw new Error("Could not read id from uploaded file");
|
|
75
|
-
this.file = {
|
|
76
|
-
fileId: e,
|
|
77
|
-
name: s,
|
|
78
|
-
mime: r,
|
|
79
|
-
url: t
|
|
80
|
-
}, this.$refs.uploader.remove(a), this.uploadProgress = null;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
var f = function() {
|
|
85
|
-
var e = this, s = e._self._c;
|
|
86
|
-
return s("div", { staticClass: "font-inter print-no-margin", staticStyle: { position: "relative" }, on: { mouseover: function(t) {
|
|
87
|
-
e.isHover = !0;
|
|
88
|
-
}, mouseleave: function(t) {
|
|
89
|
-
e.isHover = !1;
|
|
90
|
-
} } }, [e.canEdit ? s("div", { directives: [{ name: "show", rawName: "v-show", value: e.showControls, expression: "showControls" }], staticClass: "chapter-spacing-x pointer-events-none mx-auto flex max-w-full items-center justify-center", class: !!e.file && "absolute left-0 right-0 top-2 z-10" }, [s("div", { staticClass: "pointer-events-auto flex w-full max-w-[95%] items-center rounded-lg bg-gray-100 !p-4 text-left", class: !!e.file && "border border-gray-200 !p-2 shadow-lg" }, [s("FileIcon", { attrs: { mime: "application/pdf" } }), s("div", { staticClass: "flex-auto pl-4" }, [s("div", { staticClass: "font-medium" }, [e._v("PDF")]), s("div", { staticClass: "text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("embedded")) + " " + e._s(e.numPages ? e.$t("numOfPages", { numPages: e.numPages }) : "") + " ")])]), s("BaseUpload", { ref: "uploader", attrs: { "autostart-upload": !0, "background-drop": !1, extensions: "pdf", accept: "application/pdf", "max-size": e.maxFileSize }, on: { input: ([t]) => e.uploadProgress = t ? parseInt(t.progress, 10) : null, "upload-success": e.onUploadSuccess }, scopedSlots: e._u([{ key: "default", fn: function({ openFilePicker: t }) {
|
|
91
|
-
return [s("CButton", { staticStyle: { "z-index": "2" }, attrs: { type: e.file ? "none" : "secondary", pattern: e.file ? "secondary" : "primary", disabled: e.uploadProgress !== null }, on: { click: t } }, [e.uploadProgress !== null ? [e._v(" " + e._s(`${e.uploadProgress}% ${e.$t("_common:uploading")}`) + " ")] : [e._v(" " + e._s(e.file ? e.$t("_common:change", { thing: e.$t("_common:file") }) : e.$t("upload")) + " ")]], 2)];
|
|
92
|
-
} }], null, !1, 3134809537) })], 1)]) : e._e(), e.file ? s("div", [s("div", { class: {
|
|
93
|
-
"break-before-page": e.isPdf && !e._firstBlock,
|
|
94
|
-
"break-after-page": e.isPdf && !e._lastBlock
|
|
95
|
-
} }, [e.file && e.file.url ? s("PdfViewer", { attrs: { src: e.fileUrl, toolbar: !e.canEdit, "doc-file-path": `${e._value.file}.url` }, on: { numPages: (t) => e.numPages = t } }) : e._e()], 1)]) : e._e()]);
|
|
96
|
-
}, c = [], p = /* @__PURE__ */ d(
|
|
97
|
-
u,
|
|
98
|
-
f,
|
|
99
|
-
c,
|
|
100
|
-
!1,
|
|
101
|
-
null,
|
|
102
|
-
null
|
|
103
|
-
);
|
|
104
|
-
const _ = p.exports;
|
|
105
|
-
export {
|
|
106
|
-
_ as default
|
|
107
|
-
};
|
package/dist/Index-B4pRJnbw.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { m as s } from "./mapFormMixin-QbevCwJK.js";
|
|
2
|
-
import { B as c } from "./BlockMedia-DkPFWiYL.js";
|
|
3
|
-
import { T as a } from "./DocTextEditor-CntS2Bd-.js";
|
|
4
|
-
import { f as n } from "./focusDrawerMixin-Be6BAK8-.js";
|
|
5
|
-
import { b as i, z as l, A as v, B as d, P as u, n as m } from "./main-WKzC-Dnu.js";
|
|
6
|
-
const _ = {
|
|
7
|
-
name: "CoverBlock",
|
|
8
|
-
components: {
|
|
9
|
-
BlockMedia: c,
|
|
10
|
-
TextEditor: a,
|
|
11
|
-
CoverBlockSettings: () => import("./CoverBlockSettings-_F11-DGc.js")
|
|
12
|
-
},
|
|
13
|
-
mixins: [s(["coverBlock"]), n],
|
|
14
|
-
inject: ["parentSize"],
|
|
15
|
-
data() {
|
|
16
|
-
return {
|
|
17
|
-
showControls: !1
|
|
18
|
-
};
|
|
19
|
-
},
|
|
20
|
-
computed: {
|
|
21
|
-
text: {
|
|
22
|
-
get() {
|
|
23
|
-
const t = i(this, "coverBlock.text", "");
|
|
24
|
-
return this.canEdit ? l(
|
|
25
|
-
t,
|
|
26
|
-
this._document.textTemplateMap,
|
|
27
|
-
this._document._doc
|
|
28
|
-
) : v(t, this._document._doc);
|
|
29
|
-
},
|
|
30
|
-
set(t) {
|
|
31
|
-
this.setValue({ key: "text", value: d(t) });
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
media() {
|
|
35
|
-
const { type: t, cover: e } = this.coverBlock || {};
|
|
36
|
-
return { ...e, ...t && { type: t } };
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
methods: {
|
|
40
|
-
setValue({ key: t, value: e }) {
|
|
41
|
-
this.coverBlock = u(this.coverBlock, t, e);
|
|
42
|
-
},
|
|
43
|
-
onAdd() {
|
|
44
|
-
const t = () => this.$refs.editor.focus();
|
|
45
|
-
this.$refs.editor ? t() : this.$once("triggerOnAdd", t);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var p = function() {
|
|
50
|
-
var e = this, o = e._self._c;
|
|
51
|
-
return o("div", { staticClass: "cover-root font-inter", class: { "is-700-plus": e.parentSize.width >= 700 }, on: { "&mouseover": function(r) {
|
|
52
|
-
e.showControls = !0;
|
|
53
|
-
}, "&mouseleave": function(r) {
|
|
54
|
-
e.showControls = !1;
|
|
55
|
-
} } }, [o("div", { staticClass: "cover-base" }, [o("BlockMedia", { attrs: { media: e.media } }), o("div", { staticClass: "cover-text-wrapper no-drag" }, [o("div", { staticClass: "cover-text" }, [o("TextEditor", { key: e.canEdit, ref: "editor", attrs: { editable: e.canEdit, mentions: () => e._document.textTemplateItems, snippets: !0, extensions: "all", unstyled: "" }, on: { "hook:mounted": function(r) {
|
|
56
|
-
return e.$emit("triggerOnAdd");
|
|
57
|
-
} }, model: { value: e.text, callback: function(r) {
|
|
58
|
-
e.text = r;
|
|
59
|
-
}, expression: "text" } })], 1)])], 1), e.isForm ? [e.showDrawer ? o("portal", { attrs: { to: "drawer-content" } }, [o("CoverBlockSettings", { attrs: { _document: e._document, _value: {
|
|
60
|
-
type: `${e._value.coverBlock}.type`,
|
|
61
|
-
video: `${e._value.coverBlock}.cover.video`,
|
|
62
|
-
resourceUrl: `${e._value.coverBlock}.cover.resourceUrl`,
|
|
63
|
-
filter: `${e._value.coverBlock}.cover.filter`,
|
|
64
|
-
blur: `${e._value.coverBlock}.cover.blur`,
|
|
65
|
-
position: `${e._value.coverBlock}.cover.position`,
|
|
66
|
-
overlay: `${e._value.coverBlock}.cover.overlay`,
|
|
67
|
-
overlayColor: `${e._value.coverBlock}.cover.overlayColor`,
|
|
68
|
-
gradient: `${e._value.coverBlock}.cover.gradient`,
|
|
69
|
-
backgroundColor: `${e._value.coverBlock}.cover.backgroundColor`
|
|
70
|
-
} } }), o("div", { staticClass: "footer-button", attrs: { slot: "footer" }, slot: "footer" }, [o("CButton", { attrs: { type: "danger", pattern: "tertiary", wide: "" }, on: { click: function(r) {
|
|
71
|
-
return e.$emit("section-remove");
|
|
72
|
-
} } }, [e._v(" " + e._s(e.$t("_common:remove")) + " ")])], 1)], 1) : e._e()] : e._e()], 2);
|
|
73
|
-
}, f = [], k = /* @__PURE__ */ m(
|
|
74
|
-
_,
|
|
75
|
-
p,
|
|
76
|
-
f,
|
|
77
|
-
!1,
|
|
78
|
-
null,
|
|
79
|
-
"a29fb39a"
|
|
80
|
-
);
|
|
81
|
-
const g = k.exports;
|
|
82
|
-
export {
|
|
83
|
-
g as default
|
|
84
|
-
};
|
package/dist/Index-B69f8qgZ.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { m as o } from "./mapFormMixin-QbevCwJK.js";
|
|
2
|
-
import { n as s } from "./main-WKzC-Dnu.js";
|
|
3
|
-
const i = {
|
|
4
|
-
name: "PackageGroupBlock",
|
|
5
|
-
components: {
|
|
6
|
-
PackageGroupRead: () => import("./PackageGroup-Heo_s8ct.js"),
|
|
7
|
-
PackageGroupEdit: () => import("./Index-Cd3-3PEK.js")
|
|
8
|
-
},
|
|
9
|
-
mixins: [o(["type", "packages"])],
|
|
10
|
-
data() {
|
|
11
|
-
return {
|
|
12
|
-
persistedGroup: {
|
|
13
|
-
type: "",
|
|
14
|
-
packages: [],
|
|
15
|
-
articles: []
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
},
|
|
19
|
-
computed: {
|
|
20
|
-
valuePaths() {
|
|
21
|
-
return {
|
|
22
|
-
...this._value,
|
|
23
|
-
...this._value.groupId && {
|
|
24
|
-
hideGroupPrice: `data.packageGroup.${this._value.groupId}.hideGroupPrice`
|
|
25
|
-
},
|
|
26
|
-
articles: "articles"
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
validations() {
|
|
31
|
-
return this.isForm ? {
|
|
32
|
-
type: {
|
|
33
|
-
required: (r) => !!r
|
|
34
|
-
},
|
|
35
|
-
packages: {
|
|
36
|
-
required: (r) => r && r.length
|
|
37
|
-
// packages cannot be left empty
|
|
38
|
-
}
|
|
39
|
-
} : {
|
|
40
|
-
// No validation for read mode
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
var p = function() {
|
|
45
|
-
var e = this, t = e._self._c;
|
|
46
|
-
return e.canEdit ? t("PackageGroupEdit", e._g({ attrs: { _document: e._document, _value: e.valuePaths, "persisted-group": e.persistedGroup, validator: e.$v }, on: { "update:persistedGroup": function(a) {
|
|
47
|
-
e.persistedGroup = a;
|
|
48
|
-
}, "update:persisted-group": function(a) {
|
|
49
|
-
e.persistedGroup = a;
|
|
50
|
-
} } }, e.$listeners)) : t("PackageGroupRead", { attrs: { _document: e._document, _value: e.valuePaths, validator: e.$v } });
|
|
51
|
-
}, u = [], n = /* @__PURE__ */ s(
|
|
52
|
-
i,
|
|
53
|
-
p,
|
|
54
|
-
u,
|
|
55
|
-
!1,
|
|
56
|
-
null,
|
|
57
|
-
"7cd7cb23"
|
|
58
|
-
);
|
|
59
|
-
const _ = n.exports;
|
|
60
|
-
export {
|
|
61
|
-
_ as default
|
|
62
|
-
};
|
package/dist/Index-B79YN9RO.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { m as e } from "./mapFormMixin-QbevCwJK.js";
|
|
2
|
-
import { n as r } from "./main-WKzC-Dnu.js";
|
|
3
|
-
const a = {
|
|
4
|
-
name: "EstimatedWorkStartAndEndAtText",
|
|
5
|
-
components: {
|
|
6
|
-
Read: () => import("./Index-DcQbh-z2.js"),
|
|
7
|
-
Edit: () => import("./Index-BBrlPoe8.js")
|
|
8
|
-
},
|
|
9
|
-
mixins: [e(["startAt", "endAt"])]
|
|
10
|
-
};
|
|
11
|
-
var s = function() {
|
|
12
|
-
var t = this, n = t._self._c;
|
|
13
|
-
return t.canEdit ? n("Edit", t._g({ attrs: { _document: t._document, _value: t._value } }, t.$listeners)) : n("Read", { attrs: { "start-at": t.startAt, "end-at": t.endAt } });
|
|
14
|
-
}, o = [], m = /* @__PURE__ */ r(
|
|
15
|
-
a,
|
|
16
|
-
s,
|
|
17
|
-
o,
|
|
18
|
-
!1,
|
|
19
|
-
null,
|
|
20
|
-
null
|
|
21
|
-
);
|
|
22
|
-
const c = m.exports;
|
|
23
|
-
export {
|
|
24
|
-
c as default
|
|
25
|
-
};
|
package/dist/Index-BBrlPoe8.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { m as r } from "./mapFormMixin-QbevCwJK.js";
|
|
2
|
-
import { I as n } from "./InputToggleRow-CZjxsDOQ.js";
|
|
3
|
-
import { B as s } from "./BaseDatePicker-BbmV_GdD.js";
|
|
4
|
-
import { n as l } from "./main-WKzC-Dnu.js";
|
|
5
|
-
const c = {
|
|
6
|
-
i18nOptions: {
|
|
7
|
-
namespaces: "estimatedTimeStartEnd",
|
|
8
|
-
messages: {
|
|
9
|
-
en: {
|
|
10
|
-
title: "Start and end date",
|
|
11
|
-
label: "Work start and ends",
|
|
12
|
-
placeholders: {
|
|
13
|
-
start: "Start date",
|
|
14
|
-
end: "End date"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
sv: {
|
|
18
|
-
title: "Start- och slutdatum",
|
|
19
|
-
label: "Arbetet påbörjas och avslutas",
|
|
20
|
-
placeholders: {
|
|
21
|
-
start: "Startdatum",
|
|
22
|
-
end: "Slutdatum"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
name: "EstimatedWorkStartAndEndAtTextEdit",
|
|
28
|
-
components: {
|
|
29
|
-
InputToggleRow: n,
|
|
30
|
-
BaseDatePicker: s
|
|
31
|
-
},
|
|
32
|
-
mixins: [r(["startAt", "endAt"])]
|
|
33
|
-
};
|
|
34
|
-
var i = function() {
|
|
35
|
-
var t = this, a = t._self._c;
|
|
36
|
-
return a("InputToggleRow", { attrs: { "display-value": t.startAt && t.endAt ? `${t.$formatDate(t.startAt)} → ${t.$formatDate(t.endAt)}` : t.$t("_common:add"), label: t.$t("label"), "show-clear": !!(t.startAt && t.endAt) }, on: { remove: function(e) {
|
|
37
|
-
t.startAt = null, t.endAt = null;
|
|
38
|
-
} } }, [a("div", { staticStyle: { display: "inline-flex" } }, [a("BaseDatePicker", { staticClass: "datepicker-simple", staticStyle: { width: "calc(8 * var(--rem))" }, attrs: { placeholder: t.$t("placeholders.start") }, on: { click: function(e) {
|
|
39
|
-
e.preventDefault();
|
|
40
|
-
} }, model: { value: t.startAt, callback: function(e) {
|
|
41
|
-
t.startAt = e;
|
|
42
|
-
}, expression: "startAt" } }), a("div", { staticStyle: { "line-height": "calc(3 * var(--rem))", margin: "0 calc(0.5 * var(--rem))", "font-size": "calc(calc(1 * var(--rem)) + 2px)" } }, [t._v(" → ")]), a("BaseDatePicker", { staticClass: "datepicker-simple", staticStyle: { width: "calc(8 * var(--rem))" }, attrs: { static: !0, placeholder: t.$t("placeholders.end") }, on: { click: function(e) {
|
|
43
|
-
e.preventDefault();
|
|
44
|
-
} }, model: { value: t.endAt, callback: function(e) {
|
|
45
|
-
t.endAt = e;
|
|
46
|
-
}, expression: "endAt" } })], 1)]);
|
|
47
|
-
}, o = [], d = /* @__PURE__ */ l(
|
|
48
|
-
c,
|
|
49
|
-
i,
|
|
50
|
-
o,
|
|
51
|
-
!1,
|
|
52
|
-
null,
|
|
53
|
-
null
|
|
54
|
-
);
|
|
55
|
-
const A = d.exports;
|
|
56
|
-
export {
|
|
57
|
-
A as default
|
|
58
|
-
};
|
package/dist/Index-BXfWJCuq.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { m as o } from "./mapFormMixin-QbevCwJK.js";
|
|
2
|
-
import { I as i } from "./InputToggleRow-CZjxsDOQ.js";
|
|
3
|
-
import { n as a } from "./main-WKzC-Dnu.js";
|
|
4
|
-
const m = {
|
|
5
|
-
i18nOptions: {
|
|
6
|
-
namespaces: "estimatedTimeToCompleteText",
|
|
7
|
-
messages: {
|
|
8
|
-
en: {
|
|
9
|
-
label: "Time to complete work",
|
|
10
|
-
placeholder: "Time unit"
|
|
11
|
-
},
|
|
12
|
-
sv: {
|
|
13
|
-
label: "Tid för att klargöra arbetet",
|
|
14
|
-
placeholder: "Tidsenhet"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
name: "EstimatedTimeToCompleteEdit",
|
|
19
|
-
components: {
|
|
20
|
-
InputToggleRow: i
|
|
21
|
-
},
|
|
22
|
-
mixins: [
|
|
23
|
-
o(["timeUnit"]),
|
|
24
|
-
o(["noOfTimeUnits"], { type: "number" })
|
|
25
|
-
],
|
|
26
|
-
created() {
|
|
27
|
-
this.timeUnit || (this.timeUnit = "day");
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
var l = function() {
|
|
31
|
-
var t = this, e = t._self._c;
|
|
32
|
-
return e("InputToggleRow", { attrs: { "display-value": t.noOfTimeUnits && t.timeUnit ? `${t.noOfTimeUnits} ${t.$t(`_common:${t.timeUnit}`, {
|
|
33
|
-
count: t.noOfTimeUnits
|
|
34
|
-
})}` : t.$t("_common:add"), label: t.$t("label"), "show-clear": !!(t.noOfTimeUnits && t.timeUnit) }, on: { remove: function(n) {
|
|
35
|
-
t.noOfTimeUnits = null;
|
|
36
|
-
} } }, [e("CInput", { staticStyle: { width: "calc(15 * var(--rem))" }, attrs: { type: "number" }, model: { value: t.noOfTimeUnits, callback: function(n) {
|
|
37
|
-
t.noOfTimeUnits = t._n(n);
|
|
38
|
-
}, expression: "noOfTimeUnits" } }, [e("CSelect", { staticClass: "select-width plain", staticStyle: { width: "120px" }, attrs: { slot: "append", placeholder: t.$t("placeholder") }, slot: "append", model: { value: t.timeUnit, callback: function(n) {
|
|
39
|
-
t.timeUnit = n;
|
|
40
|
-
}, expression: "timeUnit" } }, [e("option", { attrs: { value: "hour" } }, [t._v(t._s(t.$t("_common:hour_plural")))]), e("option", { attrs: { value: "day" } }, [t._v(t._s(t.$t("_common:day_plural")))]), e("option", { attrs: { value: "week" } }, [t._v(t._s(t.$t("_common:week_plural")))]), e("option", { attrs: { value: "month" } }, [t._v(t._s(t.$t("_common:month_plural")))])])], 1)], 1);
|
|
41
|
-
}, s = [], r = /* @__PURE__ */ a(
|
|
42
|
-
m,
|
|
43
|
-
l,
|
|
44
|
-
s,
|
|
45
|
-
!1,
|
|
46
|
-
null,
|
|
47
|
-
null
|
|
48
|
-
);
|
|
49
|
-
const d = r.exports;
|
|
50
|
-
export {
|
|
51
|
-
d as default
|
|
52
|
-
};
|
package/dist/Index-Bd76vb37.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { m as n } from "./mapFormMixin-QbevCwJK.js";
|
|
2
|
-
import { f as o } from "./focusDrawerMixin-Be6BAK8-.js";
|
|
3
|
-
import { n as i } from "./main-WKzC-Dnu.js";
|
|
4
|
-
const a = {
|
|
5
|
-
name: "Terms",
|
|
6
|
-
i18nOptions: {
|
|
7
|
-
namespaces: "terms",
|
|
8
|
-
messages: {
|
|
9
|
-
en: {
|
|
10
|
-
noneSelected: "No terms selected"
|
|
11
|
-
},
|
|
12
|
-
sv: {
|
|
13
|
-
noneSelected: "Inga villkor valda"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
components: {
|
|
18
|
-
Read: () => import("./Index-mJ8F41GY.js"),
|
|
19
|
-
TermsSettings: () => import("./TermsSettings-CE3h_xkm.js")
|
|
20
|
-
},
|
|
21
|
-
mixins: [
|
|
22
|
-
n(["href", "termType", "file", "text"]),
|
|
23
|
-
o
|
|
24
|
-
],
|
|
25
|
-
data() {
|
|
26
|
-
return {
|
|
27
|
-
showControls: !1
|
|
28
|
-
};
|
|
29
|
-
},
|
|
30
|
-
computed: {
|
|
31
|
-
hasTerms() {
|
|
32
|
-
const s = ["href", "file"].includes(this.termType) && this.href, e = this.termType === "text" && this.text, t = this.termType === "file" && this.file;
|
|
33
|
-
return s || e || t;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
var m = function() {
|
|
38
|
-
var e = this, t = e._self._c;
|
|
39
|
-
return e.isForm || e.hasTerms ? t("div", { on: { "&mouseover": function(r) {
|
|
40
|
-
e.showControls = !0;
|
|
41
|
-
}, "&mouseleave": function(r) {
|
|
42
|
-
e.showControls = !1;
|
|
43
|
-
} } }, [t("Read", e._g({ attrs: { _document: e._document, href: e.href, "term-type": e.termType, file: e.file, text: e.text } }, e.$listeners)), e.isForm ? [e.hasTerms ? e._e() : t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("noneSelected"), expression: "$t('noneSelected')" }], staticStyle: { position: "absolute", left: "calc(1 * var(--rem))", top: "calc(1 * var(--rem))", width: "2em", height: "2em" }, attrs: { "icon-props": { size: 18 }, pattern: "secondary", icon: "info", circle: "", size: "small", type: "danger" }, on: { click: e.openDrawer } }), e.showDrawer ? t("portal", { attrs: { to: "drawer-content" } }, [t("TermsSettings", e._g({ attrs: { _document: e._document, _value: { term: "data.terms" } } }, e.$listeners))], 1) : e._e()] : e._e()], 2) : e._e();
|
|
44
|
-
}, l = [], c = /* @__PURE__ */ i(
|
|
45
|
-
a,
|
|
46
|
-
m,
|
|
47
|
-
l,
|
|
48
|
-
!1,
|
|
49
|
-
null,
|
|
50
|
-
null
|
|
51
|
-
);
|
|
52
|
-
const _ = c.exports;
|
|
53
|
-
export {
|
|
54
|
-
_ as default
|
|
55
|
-
};
|
package/dist/Index-BmbtQO5F.js
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { m as c } from "./mapFormMixin-QbevCwJK.js";
|
|
2
|
-
import l from "./FilePreviewModal-CcEinEFg.js";
|
|
3
|
-
import { n as m, t as p } from "./main-WKzC-Dnu.js";
|
|
4
|
-
const d = {
|
|
5
|
-
name: "FilePreviewWrapper",
|
|
6
|
-
components: {
|
|
7
|
-
FilePreviewModal: l
|
|
8
|
-
},
|
|
9
|
-
props: {
|
|
10
|
-
list: {
|
|
11
|
-
type: Array,
|
|
12
|
-
default: () => [],
|
|
13
|
-
validator: (t) => t.length ? !(!t[0].hasOwnProperty("url") || !t[0].hasOwnProperty("name") || !t[0].hasOwnProperty("mime")) : !0
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
computed: {
|
|
17
|
-
fileList() {
|
|
18
|
-
return this.list.reduce(
|
|
19
|
-
(t, e) => this.isImage(e.mime) || this.isPdf(e.mime) ? [...t, e] : t,
|
|
20
|
-
[]
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
methods: {
|
|
25
|
-
isImage(t) {
|
|
26
|
-
const e = t.toLowerCase(t);
|
|
27
|
-
return /image\/(gif|jpg|jpeg|png|bmp|svg|svg\+xml|tiff)$/.test(e);
|
|
28
|
-
},
|
|
29
|
-
isPdf(t) {
|
|
30
|
-
return t === "application/pdf";
|
|
31
|
-
},
|
|
32
|
-
FilePreviewModal(t) {
|
|
33
|
-
this.$modal.show(
|
|
34
|
-
l,
|
|
35
|
-
{
|
|
36
|
-
index: this.fileList.indexOf(this.list[t]),
|
|
37
|
-
// Translate src index to img list index
|
|
38
|
-
list: this.fileList
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
adaptive: !0,
|
|
42
|
-
height: "100%",
|
|
43
|
-
width: "100%",
|
|
44
|
-
classes: "",
|
|
45
|
-
// Don't remove. In place to not apply default modal class
|
|
46
|
-
transition: ""
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
render() {
|
|
52
|
-
return this.$scopedSlots.default({
|
|
53
|
-
openModal: (t) => this.FilePreviewModal(t),
|
|
54
|
-
isImageOrPdf: (t) => this.isImage(t) || this.isPdf(t)
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
}, u = null, f = null;
|
|
58
|
-
var h = /* @__PURE__ */ m(
|
|
59
|
-
d,
|
|
60
|
-
u,
|
|
61
|
-
f,
|
|
62
|
-
!1,
|
|
63
|
-
null,
|
|
64
|
-
null
|
|
65
|
-
);
|
|
66
|
-
const w = h.exports, v = {
|
|
67
|
-
name: "AttachmentList",
|
|
68
|
-
components: {
|
|
69
|
-
FilePreviewWrapper: w,
|
|
70
|
-
BaseUpload: () => import("./BaseUpload-9gPgI7r6.js"),
|
|
71
|
-
AttachmentItem: () => import("./AttachmentItem-BPS0-wyc.js")
|
|
72
|
-
},
|
|
73
|
-
mixins: [c(["attachments"])],
|
|
74
|
-
data() {
|
|
75
|
-
return {
|
|
76
|
-
hoverIndex: null,
|
|
77
|
-
newFiles: [],
|
|
78
|
-
maxFileSize: 1e3 * 1e3 * 30
|
|
79
|
-
// 30 MB
|
|
80
|
-
};
|
|
81
|
-
},
|
|
82
|
-
computed: {
|
|
83
|
-
cAttachments() {
|
|
84
|
-
return [
|
|
85
|
-
...this.attachments,
|
|
86
|
-
...this.newFiles.map(
|
|
87
|
-
({ displayName: t, type: e, url: s, progress: n }) => ({
|
|
88
|
-
name: t,
|
|
89
|
-
mime: e,
|
|
90
|
-
url: s,
|
|
91
|
-
progress: parseInt(n, 10)
|
|
92
|
-
})
|
|
93
|
-
)
|
|
94
|
-
];
|
|
95
|
-
},
|
|
96
|
-
showRecentModal() {
|
|
97
|
-
return !this.viewSettings.isPublicForm;
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
methods: {
|
|
101
|
-
immutable: p,
|
|
102
|
-
async onUploadSuccess(t) {
|
|
103
|
-
const { id: e, displayName: s, url: n, mime: i } = t.response;
|
|
104
|
-
if (!e)
|
|
105
|
-
throw new Error("Could not read id from uploaded file");
|
|
106
|
-
this.attachments = [
|
|
107
|
-
...this.attachments,
|
|
108
|
-
{
|
|
109
|
-
fileId: e,
|
|
110
|
-
name: s,
|
|
111
|
-
mime: i,
|
|
112
|
-
url: n
|
|
113
|
-
}
|
|
114
|
-
], this.$refs.uploader.remove(t);
|
|
115
|
-
},
|
|
116
|
-
remove(t) {
|
|
117
|
-
if (!this.attachments[t])
|
|
118
|
-
return;
|
|
119
|
-
const e = this.attachments.slice();
|
|
120
|
-
e.splice(t, 1), this.attachments = e;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
var g = function() {
|
|
125
|
-
var e = this, s = e._self._c;
|
|
126
|
-
return s("div", { staticClass: "font-inter" }, [s("FilePreviewWrapper", { attrs: { list: e.cAttachments }, scopedSlots: e._u([{ key: "default", fn: function({ openModal: n, isImageOrPdf: i }) {
|
|
127
|
-
return [s("div", e._l(e.cAttachments, function(o, r) {
|
|
128
|
-
return s("AttachmentItem", { key: r, attrs: { "is-image-or-pdf": i(o.mime), attachment: o, "can-edit": e.canEdit, "upload-progress": o.progress }, on: { click: function(a) {
|
|
129
|
-
i(o.mime) && n(r);
|
|
130
|
-
}, remove: function(a) {
|
|
131
|
-
return e.remove(r);
|
|
132
|
-
}, input: function(a) {
|
|
133
|
-
e.attachments = e.immutable(e.attachments).set(a, r);
|
|
134
|
-
} } });
|
|
135
|
-
}), 1)];
|
|
136
|
-
} }]) }), e.canEdit ? [s("BaseUpload", { ref: "uploader", attrs: { "recent-modal": e.showRecentModal, "autostart-upload": !0, "max-size": e.maxFileSize, extensions: "png,gif,jpg,jpeg,svg,bmp,heic,heif,pdf,txt,odp,ods,odt,rtf,doc,docx,xls,xlsx,ppt,pptx,csv,ogv,mp4,webm,m4v,ogg,mp3,wav,zip,rar,json,7z,mpeg,oga,ogv,vsd,weba,webm,webp,xml,gz,tif,jfif,dwg,dwf,dwfx,dwt,msg,ai,psd,md,markdown,mdown,markdn", accept: "*" }, on: { "upload-success": e.onUploadSuccess }, model: { value: e.newFiles, callback: function(n) {
|
|
137
|
-
e.newFiles = n;
|
|
138
|
-
}, expression: "newFiles" } }), s("CButton", { attrs: { type: "none", pattern: "secondary", wide: "", "icon-left": "upload-cloud" }, on: { click: () => e.$refs.uploader ? e.$refs.uploader.open() : null } }, [e._v(" " + e._s(e.$t("_common:upload", { thing: e.$t("_common:file") })) + " ")])] : e._e()], 2);
|
|
139
|
-
}, _ = [], x = /* @__PURE__ */ m(
|
|
140
|
-
v,
|
|
141
|
-
g,
|
|
142
|
-
_,
|
|
143
|
-
!1,
|
|
144
|
-
null,
|
|
145
|
-
null
|
|
146
|
-
);
|
|
147
|
-
const P = x.exports;
|
|
148
|
-
export {
|
|
149
|
-
P as default
|
|
150
|
-
};
|
package/dist/Index-ByV_kJaH.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { n, w as l } from "./main-WKzC-Dnu.js";
|
|
2
|
-
const d = {
|
|
3
|
-
name: "MultiGroupPricing",
|
|
4
|
-
props: {
|
|
5
|
-
_document: {
|
|
6
|
-
type: Object,
|
|
7
|
-
default: () => ({})
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
computed: {
|
|
11
|
-
docPriceItems() {
|
|
12
|
-
const { total: c, subTotal: t } = this._document.prices || {};
|
|
13
|
-
return [
|
|
14
|
-
{
|
|
15
|
-
label: this._document.$t("price.net"),
|
|
16
|
-
value: this.priceFormat(t)
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
label: this._document.$t("price.total"),
|
|
20
|
-
value: this.priceFormat(c)
|
|
21
|
-
}
|
|
22
|
-
];
|
|
23
|
-
},
|
|
24
|
-
pkgGroups() {
|
|
25
|
-
var t;
|
|
26
|
-
return (((t = this._document.packageGroups) == null ? void 0 : t.groups) || []).map(({ title: e, prices: r, selectedPackages: i }) => {
|
|
27
|
-
const { total: a, subTotal: s } = r || {};
|
|
28
|
-
return {
|
|
29
|
-
title: e,
|
|
30
|
-
noOfSelectedPackages: i.length,
|
|
31
|
-
priceItems: [
|
|
32
|
-
{
|
|
33
|
-
label: this._document.$t("price.net"),
|
|
34
|
-
value: this.priceFormat(s)
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
label: this._document.$t("price.total"),
|
|
38
|
-
value: this.priceFormat(a)
|
|
39
|
-
}
|
|
40
|
-
]
|
|
41
|
-
};
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
methods: {
|
|
46
|
-
priceFormat(c, t) {
|
|
47
|
-
return l(c, {
|
|
48
|
-
currency: this._document.currency,
|
|
49
|
-
showZero: !0,
|
|
50
|
-
decimals: 2,
|
|
51
|
-
hideZeroDecimals: !0,
|
|
52
|
-
...t
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
var p = function() {
|
|
58
|
-
var t = this, e = t._self._c;
|
|
59
|
-
return e("div", [t._l(t.pkgGroups, function(r, i) {
|
|
60
|
-
return e("div", { key: i, staticStyle: { padding: "calc(0.5 * var(--rem)) 0" } }, [e("div", { staticStyle: { display: "flex", "font-size": "calc(1.1 * var(--rem))", "font-weight": "600", "padding-bottom": "3px", "border-bottom": "1px solid rgba(0, 0, 0, 0.2)" } }, [t._v(" " + t._s(r.title) + " "), e("span", { staticClass: "text-gray-400", staticStyle: { "margin-left": "auto", "font-size": "calc(1 * var(--rem))" } }, [t._v(" " + t._s(r.noOfSelectedPackages) + " paket ")])]), t._l(r.priceItems, function({ label: a, value: s }, o) {
|
|
61
|
-
return e("div", { key: a + o, staticStyle: { display: "flex", "justify-content": "space-between", "font-size": "calc(1 * var(--rem))" } }, [e("div", [t._v(t._s(a))]), e("div", [t._v(t._s(s))])]);
|
|
62
|
-
})], 2);
|
|
63
|
-
}), e("div", { staticStyle: { "margin-top": "calc(1 * var(--rem))" } }, [e("div", { staticStyle: { "font-size": "calc(1.1 * var(--rem))", "font-weight": "600", "padding-bottom": "3px", "border-bottom": "1px solid rgba(0, 0, 0, 0.2)" } }, [t._v(" Doc summary ")]), t._l(t.docPriceItems, function({ label: r, value: i }, a) {
|
|
64
|
-
return e("div", { key: a + r, staticStyle: { display: "flex", "justify-content": "space-between", "font-size": "calc(1 * var(--rem))" } }, [e("div", [t._v(t._s(r))]), e("div", [t._v(t._s(i))])]);
|
|
65
|
-
})], 2)], 2);
|
|
66
|
-
}, m = [], u = /* @__PURE__ */ n(
|
|
67
|
-
d,
|
|
68
|
-
p,
|
|
69
|
-
m,
|
|
70
|
-
!1,
|
|
71
|
-
null,
|
|
72
|
-
"adf5d470"
|
|
73
|
-
);
|
|
74
|
-
const v = u.exports;
|
|
75
|
-
export {
|
|
76
|
-
v as default
|
|
77
|
-
};
|