@cling-se/widget 0.14.4 → 0.14.5
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/.eslintrc.cjs +4 -4
- package/README.md +40 -40
- package/dist/AddClientCallout-BMc-v9rJ.js +46 -0
- package/dist/AnswerModal-Cu0Ke5pl.js +3874 -0
- package/dist/AttachmentItem-Co8pVvtv.js +78 -0
- package/dist/BaseDatePicker-P5iq-XAp.js +3183 -0
- package/dist/BaseUpload-BDWnWTxr.js +1977 -0
- package/dist/BlockMedia-B_UiePCr.js +76 -0
- package/dist/CCallout-Bbp9ya9n.js +59 -0
- package/dist/CCurrencyDropdown-Cw39vJWw.js +246 -0
- package/dist/CDropdownItem-BjYnhZJr.js +538 -0
- package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +1 -0
- package/dist/CFormField-CeJ58aN2.js +241 -0
- package/dist/CPhoneFormat-BZnmeEeW.js +62 -0
- package/dist/CPriceInput-B07d19qq.js +112 -0
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +1 -0
- package/dist/ClientAutocomplete-9iM1pR9l.js +78 -0
- package/dist/ClientModal-fw8f6UvL.js +625 -0
- package/dist/ColorPicker-uu6vKe8o.js +2879 -0
- package/dist/CompanyModal-5t4yhKL4.js +141 -0
- package/dist/ContentWrapper-DwcOQ21l.js +183 -0
- package/dist/CoverBlockSettings-cCCXzAZ0.js +275 -0
- package/dist/DocAnswer-9lbgqHRX.js +36 -0
- package/dist/DocDetails-CoLL_tHs.js +246 -0
- package/dist/DocForm-DUjcuHJe.js +7273 -0
- package/dist/DocFormSend-LawcXcM2.js +143 -0
- package/dist/DocLinks-pJT9HpjR.js +38 -0
- package/dist/DocModalBase-xUoskL63.js +28 -0
- package/dist/DocPrint-ClEJBiAg.js +240 -0
- package/dist/DocReceipt-x_YsXPnG.js +210 -0
- package/dist/DocSendReminder-Dbz8CkAz.js +137 -0
- package/dist/DocTextEditor-AqBE7jZj.js +17181 -0
- package/dist/DocTimeline-hq2asPzr.js +481 -0
- package/dist/DocumentClient-TmtHqfiw.js +136 -0
- package/dist/DocumentLayout-CRAp8mfk.js +4909 -0
- package/dist/DocumentLogotype-emSjQ21f.js +87 -0
- package/dist/DocumentVoided-BOjiWBK6.js +25 -0
- package/dist/EmbedInput-B3LFGEee.js +113 -0
- package/dist/EmbedSettings-BYPJTGQf.js +72 -0
- package/dist/ErrorCallout-CwgYHBkg.js +28 -0
- package/dist/FilePreviewModal-81sSrDGg.js +81 -0
- package/dist/Flag-DGFvUTQZ.js +114 -0
- package/dist/HeaderSettings-BGpkzcbj.js +392 -0
- package/dist/ImageSelectModal-Cimviyuy.js +84 -0
- package/dist/ImageUploadWrapper-qJDHCf8T.js +1604 -0
- package/dist/Index-18w_qMQH.js +25 -0
- package/dist/Index-9_R8_myc.js +77 -0
- package/dist/Index-BKoXW7GK.js +84 -0
- package/dist/Index-BL3-tRGt.js +642 -0
- package/dist/Index-BNfAA-ZJ.js +154 -0
- package/dist/Index-BOxSvAug.js +144 -0
- package/dist/Index-BQgW1jlH.js +45 -0
- package/dist/Index-BXAqgXVi.js +150 -0
- package/dist/Index-BgK_WC0d.js +140 -0
- package/dist/Index-BkUzlQaQ.js +107 -0
- package/dist/Index-BpyYa9LR.js +171 -0
- package/dist/Index-ByzGXUoc.js +292 -0
- package/dist/Index-C1lsSfnX.js +52 -0
- package/dist/Index-C9sq_RDg.js +223 -0
- package/dist/Index-CDEh3GAi.js +26 -0
- package/dist/Index-CEG-Hiv6.js +69 -0
- package/dist/Index-CMUg61_b.js +33 -0
- package/dist/Index-CObGPoQv.js +62 -0
- package/dist/Index-CPNUsaOS.js +57 -0
- package/dist/Index-CegW1Rim.js +98 -0
- package/dist/Index-CoSt-Bws.js +31 -0
- package/dist/Index-CpDgldnz.js +70 -0
- package/dist/Index-CqImx-rG.js +55 -0
- package/dist/Index-CrOD4_xj.js +58 -0
- package/dist/Index-DBCNVVm5.js +24 -0
- package/dist/Index-DGG1S8uJ.js +559 -0
- package/dist/Index-DRWS2z82.js +2402 -0
- package/dist/Index-DXRgZZNj.js +61 -0
- package/dist/Index-DY5gAUnE.js +754 -0
- package/dist/Index-Dr7mVlBb.js +49 -0
- package/dist/Index-Dx944wv-.js +21 -0
- package/dist/Index-Eq3JlTKK.js +46 -0
- package/dist/Index-Sr3emNkE.js +25 -0
- package/dist/Index-VshOfaom.js +32 -0
- package/dist/InputToggleRow-CQsaayf-.js +57 -0
- package/dist/ManualPopover-CFXm5cQy.js +58 -0
- package/dist/MediaWrapper-Cn0Yr4ce.js +23 -0
- package/dist/NotBindingText-CNiszGqn.js +32 -0
- package/dist/PackageGroup-BVys9ouj.js +699 -0
- package/dist/PdfTerms-Bbns-jMY.js +36 -0
- package/dist/PdfViewer-B1zzZU4Y.js +374 -0
- package/dist/PlainHtml-CARRbTxi.js +20 -0
- package/dist/PriceHeader-CqeC9Lhb.js +339 -0
- package/dist/SearchApi-bB9FLxUq.js +161 -0
- package/dist/Setup-p3Du_uf8.js +50 -0
- package/dist/SmartList-P5ZfTWBb.js +83 -0
- package/dist/TermsSettings-CQ8TGwBV.js +102 -0
- package/dist/ThemeColorRow-DMWVlFRU.js +67 -0
- package/dist/ToggleBinding-BPaYWgqP.js +38 -0
- package/dist/UploadModal-9O4HTVZm.js +95 -0
- package/dist/VideoPlayerInput-5KybfY7N.js +93 -0
- package/dist/VideoPlayerSettings-xSW8tcTZ.js +61 -0
- package/dist/VideoSelectModal-BbaNAxGH.js +100 -0
- package/dist/anime.es-BrPTThYb.js +858 -0
- package/dist/answerDocumentMixin-S-Bmv15G.js +51 -0
- package/dist/color-TdtKxwVa.js +19 -0
- package/dist/debounce-B_0g8OVh.js +84 -0
- package/dist/dom-CJxkno7i.js +91 -0
- package/dist/favicon.ico +0 -0
- package/dist/focusDrawerMixin-DhsqWZUo.js +22 -0
- package/dist/formComponentsInstall-UG7a9vjZ.js +2499 -0
- package/dist/formDrawerState-BMQrWaBt.js +20 -0
- package/dist/formValidationMixin-DUu0omWT.js +49 -0
- package/dist/i18nMessages-Chz_lxGG.js +17 -0
- package/dist/index-B3R_uKML.js +347 -0
- package/dist/index-B4aiQXsr.js +166 -0
- package/dist/index-C50JSDKO.js +3916 -0
- package/dist/index-CJ9AvuZH.js +102 -0
- package/dist/index-Czyda2Ej.js +492 -0
- package/dist/index-myOYAnwV.js +81 -0
- package/dist/index.es.js +35 -0
- package/dist/index.umd.js +3148 -0
- package/dist/main-B9t0ybqW.js +56739 -0
- package/dist/mapFormMixin-ETYhBLl2.js +72 -0
- package/dist/omit-DtTfKAed.js +31 -0
- package/dist/publicSenderState-DD1lN9CR.js +21 -0
- package/dist/splitpanes-BHUVsCZF.js +382 -0
- package/dist/style.css +4 -0
- package/dist/throttle-qziKkJJX.js +18 -0
- package/dist/tinycolor-CMC8Xp7x.js +633 -0
- package/dist/tippy.esm-DjbYjfS2.js +1799 -0
- package/dist/utils-C5Rg0fQC.js +108 -0
- package/dist/vuedraggable.umd-CE3WmaEQ.js +3161 -0
- package/dist/vuex.esm-DKGl8mcw.js +467 -0
- package/package.json +1 -1
- package/tsconfig.json +26 -26
- package/tsconfig.node.json +10 -10
- package/tsconfig.paths.json +17 -17
- package/vite.config.ts +61 -61
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { m as n } from "./mapFormMixin-ETYhBLl2.js";
|
|
2
|
+
import { D as l } from "./DocModalBase-xUoskL63.js";
|
|
3
|
+
import { a as o } from "./DocumentLayout-CRAp8mfk.js";
|
|
4
|
+
import { n as a } from "./main-B9t0ybqW.js";
|
|
5
|
+
const c = {
|
|
6
|
+
name: "TermsModal",
|
|
7
|
+
components: {
|
|
8
|
+
DocModalBase: l,
|
|
9
|
+
DocumentStyleContainer: o
|
|
10
|
+
},
|
|
11
|
+
mixins: [n([])],
|
|
12
|
+
props: {
|
|
13
|
+
text: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: !0
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
var m = function() {
|
|
20
|
+
var i;
|
|
21
|
+
var e = this, t = e._self._c;
|
|
22
|
+
return t("div", [t("div", { staticStyle: { height: "200px", "max-height": "15vh" }, on: { click: function(r) {
|
|
23
|
+
return e.$emit("close");
|
|
24
|
+
} } }), t("DocModalBase", { staticClass: "terms-root" }, [t("div", { staticClass: "sticky-btn" }, [t("CButton", { staticStyle: { "margin-top": "calc(0.5 * var(--rem))" }, attrs: { circle: "", icon: "x" }, on: { click: function(r) {
|
|
25
|
+
return e.$emit("close");
|
|
26
|
+
} } })], 1), t("div", { staticStyle: { padding: "0 calc(1 * var(--rem))" } }, [t("DocumentStyleContainer", { staticStyle: { width: "100%", height: "100%" }, attrs: { "input-style": ((i = e._document.data) == null ? void 0 : i.css) || null } }, [t("div", { staticClass: "term-text quill-format", domProps: { innerHTML: e._s(e.text) } })])], 1)])], 1);
|
|
27
|
+
}, d = [], f = /* @__PURE__ */ a(
|
|
28
|
+
c,
|
|
29
|
+
m,
|
|
30
|
+
d,
|
|
31
|
+
!1,
|
|
32
|
+
null,
|
|
33
|
+
null
|
|
34
|
+
);
|
|
35
|
+
const p = f.exports, u = {
|
|
36
|
+
name: "TermsDisclaimer",
|
|
37
|
+
mixins: [n([])],
|
|
38
|
+
inject: {
|
|
39
|
+
isPdf: {
|
|
40
|
+
default: !1
|
|
41
|
+
},
|
|
42
|
+
_firstBlock: {
|
|
43
|
+
default: !1
|
|
44
|
+
},
|
|
45
|
+
_lastBlock: {
|
|
46
|
+
default: !1
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
props: {
|
|
50
|
+
href: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: null
|
|
53
|
+
},
|
|
54
|
+
termType: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: null
|
|
57
|
+
},
|
|
58
|
+
file: {
|
|
59
|
+
type: Object,
|
|
60
|
+
default: () => ({})
|
|
61
|
+
},
|
|
62
|
+
text: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: null
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
computed: {
|
|
68
|
+
printPdfTerms() {
|
|
69
|
+
return this.isPdf ? () => import("./PdfTerms-Bbns-jMY.js") : void 0;
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
methods: {
|
|
73
|
+
openTerms() {
|
|
74
|
+
this.$modal.show(
|
|
75
|
+
p,
|
|
76
|
+
{
|
|
77
|
+
text: this.text,
|
|
78
|
+
_document: this._document
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
adaptive: !0,
|
|
82
|
+
height: "auto",
|
|
83
|
+
scrollable: !0,
|
|
84
|
+
maxWidth: 700,
|
|
85
|
+
width: "100%",
|
|
86
|
+
classes: "overflow-visible mobile-margin-bottom-0",
|
|
87
|
+
transition: "fade-in-slide-up"
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
render(s) {
|
|
93
|
+
let e = {};
|
|
94
|
+
const t = this.termType;
|
|
95
|
+
if (t === "href" ? e = {
|
|
96
|
+
href: this.href,
|
|
97
|
+
target: "_blank",
|
|
98
|
+
rel: "noopener"
|
|
99
|
+
} : t === "file" && (e = {
|
|
100
|
+
// Some documents with file terms are missing url
|
|
101
|
+
href: (this.file.url || "").replace(/\+/g, "%2B"),
|
|
102
|
+
target: "_blank",
|
|
103
|
+
rel: "noopener"
|
|
104
|
+
}), this.$scopedSlots.default)
|
|
105
|
+
return this.$scopedSlots.default({
|
|
106
|
+
openTerms: t === "text" ? this.openTerms : () => window.open(e.href)
|
|
107
|
+
});
|
|
108
|
+
if (this.printPdfTerms) {
|
|
109
|
+
const r = {
|
|
110
|
+
...t === "text" && { text: this.text },
|
|
111
|
+
...t === "file" && { file: this.file }
|
|
112
|
+
};
|
|
113
|
+
return s(
|
|
114
|
+
"div",
|
|
115
|
+
{
|
|
116
|
+
class: {
|
|
117
|
+
"break-before-page": this.isPdf && !this._firstBlock,
|
|
118
|
+
"break-after-page": this.isPdf && !this._lastBlock
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
[s(this.printPdfTerms, { attrs: r })]
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
const i = {};
|
|
125
|
+
return t && (i.attrs = e), t === "text" && (i.on = { click: this.openTerms }), s(
|
|
126
|
+
"div",
|
|
127
|
+
{
|
|
128
|
+
staticClass: "terms-disclaimer"
|
|
129
|
+
},
|
|
130
|
+
[
|
|
131
|
+
s("div", { staticClass: "terms-disclaimer__divider" }),
|
|
132
|
+
this._document.$t("chapters.termsDisclaimer.description"),
|
|
133
|
+
s(
|
|
134
|
+
"a",
|
|
135
|
+
i,
|
|
136
|
+
this._document.$t("chapters.termsDisclaimer.termsAndConditions")
|
|
137
|
+
),
|
|
138
|
+
"."
|
|
139
|
+
]
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
}, h = null, _ = null;
|
|
143
|
+
var v = /* @__PURE__ */ a(
|
|
144
|
+
u,
|
|
145
|
+
h,
|
|
146
|
+
_,
|
|
147
|
+
!1,
|
|
148
|
+
null,
|
|
149
|
+
"7623e4d6"
|
|
150
|
+
);
|
|
151
|
+
const k = v.exports;
|
|
152
|
+
export {
|
|
153
|
+
k as default
|
|
154
|
+
};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { m as r } from "./mapFormMixin-ETYhBLl2.js";
|
|
2
|
+
import { f as l } from "./focusDrawerMixin-DhsqWZUo.js";
|
|
3
|
+
import { d as c } from "./debounce-B_0g8OVh.js";
|
|
4
|
+
import { s as m, p as u } from "./splitpanes-BHUVsCZF.js";
|
|
5
|
+
import { n } from "./main-B9t0ybqW.js";
|
|
6
|
+
const d = {
|
|
7
|
+
name: "HeaderItems",
|
|
8
|
+
components: {
|
|
9
|
+
MediaWrapper: () => import("./MediaWrapper-Cn0Yr4ce.js"),
|
|
10
|
+
ContentWrapper: () => import("./ContentWrapper-DwcOQ21l.js"),
|
|
11
|
+
Splitpanes: m,
|
|
12
|
+
Pane: u
|
|
13
|
+
},
|
|
14
|
+
mixins: [r(["layout", "items", "baseStyle"])],
|
|
15
|
+
props: {
|
|
16
|
+
showControls: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !1
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
computed: {
|
|
22
|
+
forceHorizontal() {
|
|
23
|
+
return this.device === "mobile";
|
|
24
|
+
},
|
|
25
|
+
canResize() {
|
|
26
|
+
return this.device === "desktop" || this.device === "tablet";
|
|
27
|
+
},
|
|
28
|
+
useSplitPane() {
|
|
29
|
+
return this.canEdit && this.canResize;
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
created() {
|
|
33
|
+
["layout", "canEdit"].forEach(
|
|
34
|
+
(t) => this.$watch(t, {
|
|
35
|
+
immediate: !0,
|
|
36
|
+
handler: this.addNoDragClass
|
|
37
|
+
})
|
|
38
|
+
);
|
|
39
|
+
},
|
|
40
|
+
methods: {
|
|
41
|
+
addNoDragClass() {
|
|
42
|
+
!this.canEdit || !["vertical", "horizontal"].includes(this.layout) || setTimeout(() => {
|
|
43
|
+
const t = this.$el.querySelector(".splitpanes__splitter");
|
|
44
|
+
t && !t.classList.contains("no-drag") && t.classList.add("no-drag");
|
|
45
|
+
}, 0);
|
|
46
|
+
},
|
|
47
|
+
onResize: c(function([{ size: e }]) {
|
|
48
|
+
const a = Math.round(e), o = 100 - a;
|
|
49
|
+
this.items = this.items.map((s, i) => ({ ...s, size: [a, o][i] }));
|
|
50
|
+
}, 100)
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
var h = function() {
|
|
54
|
+
var e = this, a = e._self._c;
|
|
55
|
+
return e.layout === "center" ? a("div", { staticStyle: { position: "relative", "min-height": "calc(100 * var(--vh, 1vh))" } }, e._l(e.items, function(o, s) {
|
|
56
|
+
return a(`${o.type}Wrapper`, e._g({ key: s, tag: "component", staticClass: "item", staticStyle: { position: "absolute", left: "0", top: "0", right: "0", bottom: "0" }, attrs: { size: o.size, _document: e._document, _value: { ...e._value, item: `${e._value.items}.${s}` }, "has-hover": e.showControls } }, e.$listeners));
|
|
57
|
+
}), 1) : a(e.useSplitPane ? "splitpanes" : "div", { tag: "component", staticClass: "layout-wrapper", style: !e.canEdit && {
|
|
58
|
+
"flex-direction": e.forceHorizontal || e.layout === "horizontal" ? "column" : "row"
|
|
59
|
+
}, attrs: { horizontal: e.forceHorizontal ? !0 : e.layout === "horizontal", vertical: e.forceHorizontal ? !1 : e.layout === "vertical" }, on: { resize: e.onResize } }, e._l(e.items, function(o, s) {
|
|
60
|
+
return a(e.useSplitPane ? "pane" : "div", { key: s, tag: "component", style: !e.useSplitPane && {
|
|
61
|
+
flex: `1 1 ${o.size}%`
|
|
62
|
+
}, attrs: { size: o.size } }, [a(`${o.type}Wrapper`, e._g({ tag: "component", staticClass: "item", attrs: { _document: e._document, _value: { ...e._value, item: `${e._value.items}.${s}` }, "has-hover": e.showControls } }, e.$listeners))], 1);
|
|
63
|
+
}), 1);
|
|
64
|
+
}, _ = [], p = /* @__PURE__ */ n(
|
|
65
|
+
d,
|
|
66
|
+
h,
|
|
67
|
+
_,
|
|
68
|
+
!1,
|
|
69
|
+
null,
|
|
70
|
+
"683ee6d3"
|
|
71
|
+
);
|
|
72
|
+
const v = p.exports, f = {
|
|
73
|
+
name: "HeaderBlock",
|
|
74
|
+
components: {
|
|
75
|
+
PriceHeader: () => import("./PriceHeader-CqeC9Lhb.js"),
|
|
76
|
+
HeaderSettings: () => import("./HeaderSettings-BGpkzcbj.js"),
|
|
77
|
+
HeaderItems: v
|
|
78
|
+
},
|
|
79
|
+
mixins: [r(["header"]), l],
|
|
80
|
+
data() {
|
|
81
|
+
return {
|
|
82
|
+
showControls: !1
|
|
83
|
+
};
|
|
84
|
+
},
|
|
85
|
+
computed: {
|
|
86
|
+
layout() {
|
|
87
|
+
var t;
|
|
88
|
+
return (t = this.header) == null ? void 0 : t.layout;
|
|
89
|
+
},
|
|
90
|
+
items() {
|
|
91
|
+
var t;
|
|
92
|
+
return ((t = this.header) == null ? void 0 : t.items) || [];
|
|
93
|
+
},
|
|
94
|
+
mediaPath() {
|
|
95
|
+
const t = this.items.findIndex(({ type: e }) => e === "media");
|
|
96
|
+
return t !== -1 ? `${this._value.header}.items.${t}.media` : "";
|
|
97
|
+
},
|
|
98
|
+
contentPath() {
|
|
99
|
+
const t = this.items.findIndex(({ type: e }) => e === "content");
|
|
100
|
+
return t !== -1 ? `${this._value.header}.items.${t}` : "";
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
var $ = function() {
|
|
105
|
+
var e = this, a = e._self._c;
|
|
106
|
+
return a("div", { staticClass: "header-root", class: {
|
|
107
|
+
"has-parent-nav": e.viewSettings.isForm,
|
|
108
|
+
"has-hover": e.showControls
|
|
109
|
+
}, on: { "&mouseover": function(o) {
|
|
110
|
+
e.showControls = !0;
|
|
111
|
+
}, "&mouseleave": function(o) {
|
|
112
|
+
e.showControls = !1;
|
|
113
|
+
} } }, [e.layout === "price" ? a("PriceHeader", e._g({ attrs: { _document: e._document, _value: {
|
|
114
|
+
media: e.mediaPath,
|
|
115
|
+
backgroundColor: `${e.contentPath}.media.backgroundColor`,
|
|
116
|
+
documentName: `${e.contentPath}.value.documentName`,
|
|
117
|
+
showLogo: `${e.contentPath}.value.showLogo`,
|
|
118
|
+
logotype: `${e.contentPath}.value.logotype`,
|
|
119
|
+
showPriceSummary: `${e._value.header}.showPriceSummary`
|
|
120
|
+
}, "has-hover": e.showControls } }, e.$listeners)) : a("HeaderItems", e._g({ attrs: { _document: e._document, _value: {
|
|
121
|
+
layout: `${e._value.header}.layout`,
|
|
122
|
+
items: `${e._value.header}.items`,
|
|
123
|
+
baseStyle: `${e._value.header}.baseStyle`
|
|
124
|
+
}, "show-controls": e.showControls } }, e.$listeners)), e.isForm ? [e.showDrawer ? a("portal", { attrs: { to: "drawer-content" } }, [a("HeaderSettings", { attrs: { _document: e._document, _value: {
|
|
125
|
+
layout: `${e._value.header}.layout`,
|
|
126
|
+
items: `${e._value.header}.items`,
|
|
127
|
+
showPriceSummary: `${e._value.header}.showPriceSummary`,
|
|
128
|
+
media: e.mediaPath,
|
|
129
|
+
backgroundColor: `${e.contentPath}.media.backgroundColor`,
|
|
130
|
+
textAlign: `${e._value.header}.baseStyle.textAlign`,
|
|
131
|
+
textColor: `${e._value.header}.baseStyle.textColor`
|
|
132
|
+
} } })], 1) : e._e()] : e._e()], 2);
|
|
133
|
+
}, y = [], g = /* @__PURE__ */ n(
|
|
134
|
+
f,
|
|
135
|
+
$,
|
|
136
|
+
y,
|
|
137
|
+
!1,
|
|
138
|
+
null,
|
|
139
|
+
null
|
|
140
|
+
);
|
|
141
|
+
const x = g.exports;
|
|
142
|
+
export {
|
|
143
|
+
x as default
|
|
144
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { P as n } from "./PlainHtml-CARRbTxi.js";
|
|
2
|
+
import { n as s } from "./main-B9t0ybqW.js";
|
|
3
|
+
const o = {
|
|
4
|
+
name: "EstimatedTimeToCompleteTextRead",
|
|
5
|
+
props: {
|
|
6
|
+
noOfTimeUnits: {
|
|
7
|
+
type: Number,
|
|
8
|
+
default: 0
|
|
9
|
+
},
|
|
10
|
+
timeUnit: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "days"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
i18nOptions: {
|
|
16
|
+
namespaces: "estimatedTimeToCompleteText",
|
|
17
|
+
messages: {
|
|
18
|
+
en: {
|
|
19
|
+
text: "Calendar dates from start to completion of project is estimated to"
|
|
20
|
+
},
|
|
21
|
+
sv: {
|
|
22
|
+
text: "Uppskattad kalendertid för att genomföra projektet från start tills att projektet är genomfört beräknas ungefär till"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
27
|
+
render(t) {
|
|
28
|
+
const e = this.$tc(`_common:${this.timeUnit}`, {
|
|
29
|
+
count: this.noOfTimeUnits
|
|
30
|
+
});
|
|
31
|
+
return t(n, [this.$t("text"), " ", t("strong", [e]), "."]);
|
|
32
|
+
}
|
|
33
|
+
}, r = null, a = null;
|
|
34
|
+
var i = /* @__PURE__ */ s(
|
|
35
|
+
o,
|
|
36
|
+
r,
|
|
37
|
+
a,
|
|
38
|
+
!1,
|
|
39
|
+
null,
|
|
40
|
+
null
|
|
41
|
+
);
|
|
42
|
+
const p = i.exports;
|
|
43
|
+
export {
|
|
44
|
+
p as default
|
|
45
|
+
};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { m as c } from "./mapFormMixin-ETYhBLl2.js";
|
|
2
|
+
import l from "./FilePreviewModal-81sSrDGg.js";
|
|
3
|
+
import { n as m, t as p } from "./main-B9t0ybqW.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-BDWnWTxr.js"),
|
|
71
|
+
AttachmentItem: () => import("./AttachmentItem-Co8pVvtv.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
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { m as o } from "./mapFormMixin-ETYhBLl2.js";
|
|
2
|
+
import { n as s, U as l } from "./main-B9t0ybqW.js";
|
|
3
|
+
import { v as a } from "./index-Czyda2Ej.js";
|
|
4
|
+
const c = (e, t) => e ? l(t.workStartAt || /* @__PURE__ */ new Date(), e) >= 0 : !0, u = {
|
|
5
|
+
name: "ExtraWorkTimeImpactTextEdit",
|
|
6
|
+
i18nOptions: {
|
|
7
|
+
namespaces: "ExtraWorkTimeImpactTextEdit",
|
|
8
|
+
messages: {
|
|
9
|
+
en: {
|
|
10
|
+
placeholders: {
|
|
11
|
+
workStartAt: "Start date",
|
|
12
|
+
workEndAt: "End date"
|
|
13
|
+
},
|
|
14
|
+
inlineForm: {
|
|
15
|
+
1: "Work will start",
|
|
16
|
+
2: "and will be completed no later than",
|
|
17
|
+
3: "Due to the work the original project time"
|
|
18
|
+
},
|
|
19
|
+
error: "End date needs to be after start date"
|
|
20
|
+
},
|
|
21
|
+
sv: {
|
|
22
|
+
placeholders: {
|
|
23
|
+
workStartAt: "Startdatum",
|
|
24
|
+
workEndAt: "Slutdatum"
|
|
25
|
+
},
|
|
26
|
+
inlineForm: {
|
|
27
|
+
1: "Arbetet kommer påbörjas",
|
|
28
|
+
2: "och är senast klar",
|
|
29
|
+
3: "Med anledning av arbetet kommer den ursprungliga kontraktstiden"
|
|
30
|
+
},
|
|
31
|
+
error: "Slutdatumet måste vara efter startdatumet."
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
mixins: [
|
|
36
|
+
o([
|
|
37
|
+
"workStartAt",
|
|
38
|
+
"workEndAt",
|
|
39
|
+
"timeUnit",
|
|
40
|
+
"noOfTimeUnits",
|
|
41
|
+
"timeDeltaDirection"
|
|
42
|
+
])
|
|
43
|
+
],
|
|
44
|
+
data() {
|
|
45
|
+
return {
|
|
46
|
+
isOpen: !1,
|
|
47
|
+
// Variable to store the old content when the card is disabled
|
|
48
|
+
hiddenModuleDateDelay: null
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
validations: {
|
|
52
|
+
workStartAt: {
|
|
53
|
+
required: a.requiredIf(
|
|
54
|
+
(e) => e.workStartAt || e.workEndAt || e.timeDeltaDirection || e.noOfTimeUnits || e.timeUnit
|
|
55
|
+
)
|
|
56
|
+
},
|
|
57
|
+
workEndAt: {
|
|
58
|
+
required: a.requiredIf(
|
|
59
|
+
(e) => e.workStartAt || e.workEndAt || e.timeDeltaDirection || e.noOfTimeUnits || e.timeUnit
|
|
60
|
+
),
|
|
61
|
+
endDateMustBeGreater: c
|
|
62
|
+
},
|
|
63
|
+
timeDeltaDirection: {
|
|
64
|
+
required: a.requiredIf(
|
|
65
|
+
(e) => e.workStartAt || e.workEndAt || e.timeDeltaDirection || e.noOfTimeUnits || e.timeUnit
|
|
66
|
+
)
|
|
67
|
+
},
|
|
68
|
+
noOfTimeUnits: {
|
|
69
|
+
required: a.requiredIf(
|
|
70
|
+
(e) => e.workStartAt || e.workEndAt || e.timeDeltaDirection || e.noOfTimeUnits || e.timeUnit
|
|
71
|
+
)
|
|
72
|
+
},
|
|
73
|
+
timeUnit: {
|
|
74
|
+
required: a.requiredIf(
|
|
75
|
+
(e) => e.workStartAt || e.workEndAt || e.timeDeltaDirection || e.noOfTimeUnits || e.timeUnit
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
mounted() {
|
|
80
|
+
const {
|
|
81
|
+
workStartAt: e,
|
|
82
|
+
workEndAt: t,
|
|
83
|
+
timeUnit: r,
|
|
84
|
+
noOfTimeUnits: i,
|
|
85
|
+
timeDeltaDirection: n
|
|
86
|
+
} = this;
|
|
87
|
+
(e || t || r || i || n) && (this.isOpen = !0);
|
|
88
|
+
},
|
|
89
|
+
methods: {
|
|
90
|
+
getDateValue(e) {
|
|
91
|
+
return e ? this.$formatDate(e, "yyyy-MM-dd") : null;
|
|
92
|
+
},
|
|
93
|
+
// Method to handle internal data when open/closed
|
|
94
|
+
toggleOpen(e) {
|
|
95
|
+
return e ? !0 : (this.clearRoot(), this.$v.$touch(), !1);
|
|
96
|
+
},
|
|
97
|
+
// Method to set the root object to null to clear data
|
|
98
|
+
clearRoot() {
|
|
99
|
+
const e = this._value.workStartAt.split(".");
|
|
100
|
+
e.pop();
|
|
101
|
+
const t = e.join(".");
|
|
102
|
+
this.$emit("input", { key: t, value: void 0 });
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
var m = function() {
|
|
107
|
+
var t = this, r = t._self._c;
|
|
108
|
+
return r("div", { staticStyle: { position: "relative" } }, [r("CSwitch", { staticStyle: { position: "absolute", right: "0", top: "calc(-0.5 * var(--rem))", transform: "translateY(-100%)" }, on: { input: t.toggleOpen }, model: { value: t.isOpen, callback: function(i) {
|
|
109
|
+
t.isOpen = i;
|
|
110
|
+
}, expression: "isOpen" } }), t.isOpen ? r("div", [r("div", { staticClass: "inline-form" }, [t._v(" " + t._s(t.$t("inlineForm.1")) + " "), r("input", { staticClass: "ml-1 bg-gray-100", attrs: { type: "date", max: t.getDateValue(t.workEndAt) }, domProps: { value: t.getDateValue(t.workStartAt) }, on: { input: function(i) {
|
|
111
|
+
var n;
|
|
112
|
+
t.workStartAt = (n = i.target) != null && n.value ? new Date(i.target.value).toISOString() : null;
|
|
113
|
+
} } }), t._v(" " + t._s(t.$t("inlineForm.2")) + " "), r("input", { staticClass: "ml-1 bg-gray-100", attrs: { type: "date", min: t.getDateValue(t.workStartAt) }, domProps: { value: t.getDateValue(t.workEndAt) }, on: { input: function(i) {
|
|
114
|
+
var n;
|
|
115
|
+
t.workEndAt = (n = i.target) != null && n.value ? new Date(i.target.value).toISOString() : null;
|
|
116
|
+
} } }), t._v(". " + t._s(t.$t("inlineForm.3")) + " "), r("CSelect", { staticClass: "select-width input-inline-language", attrs: { placeholder: t.$t("_common:select") }, model: { value: t.timeDeltaDirection, callback: function(i) {
|
|
117
|
+
t.timeDeltaDirection = i;
|
|
118
|
+
}, expression: "timeDeltaDirection" } }, [r("option", { attrs: { value: "extend" } }, [t._v(" " + t._s(t.$t("_common:extend").toLowerCase()) + " ")]), r("option", { attrs: { value: "shorten" } }, [t._v(" " + t._s(t.$t("_common:shorten").toLowerCase()) + " ")])]), t._v(" " + t._s(t.$t("_common:with")) + " "), r("CSelect", { staticClass: "select-width quantity input-inline-language", staticStyle: { width: "calc(2 * var(--rem))", "margin-right": "calc(0.5 * var(--rem))" }, attrs: { placeholder: t.$t("_common:select") }, model: { value: t.noOfTimeUnits, callback: function(i) {
|
|
119
|
+
t.noOfTimeUnits = i;
|
|
120
|
+
}, expression: "noOfTimeUnits" } }, t._l(31, function(i, n) {
|
|
121
|
+
return r("option", { key: n, staticStyle: { "font-size": "calc(calc(1 * var(--rem)) + 1px)", "text-align": "center" }, domProps: { value: i - 1 } }, [t._v(" " + t._s(i - 1) + " ")]);
|
|
122
|
+
}), 0), r("CSelect", { staticClass: "select-width unit input-inline-language", attrs: { placeholder: t.$t("_common:select") }, on: { blur: function(i) {
|
|
123
|
+
return t.$v.timeUnit.$touch();
|
|
124
|
+
} }, model: { value: t.timeUnit, callback: function(i) {
|
|
125
|
+
t.timeUnit = i;
|
|
126
|
+
}, expression: "timeUnit" } }, [r("option", { attrs: { value: "days" } }, [t._v(t._s(t.$t("_common:day_plural")))]), r("option", { attrs: { value: "weeks" } }, [t._v(t._s(t.$t("_common:week_plural")))]), r("option", { attrs: { value: "months" } }, [t._v(" " + t._s(t.$t("_common:month_plural")) + " ")])]), t._v(". ")], 1), t.$v.$invalid && t.$v.$dirty ? r("div", { staticClass: "error-wrapper", on: { click: function(i) {
|
|
127
|
+
return t.$v.$touch();
|
|
128
|
+
} } }, [r("svg", { attrs: { name: "info-icon", width: "14", height: "14", viewBox: "0 0 125 125", xmlns: "http://www.w3.org/2000/svg" } }, [r("path", { attrs: { d: "M62.5 125C27.9822 125 0 97.0178 0 62.5S27.9822 0 62.5 0 125 27.9822 125 62.5 97.0178 125 62.5 125zM52.44694 65.23395v26.93183c0 5.43129 4.40293 9.83422 9.83422 9.83422 5.4461 0 9.87524-4.38793 9.92615-9.83379l.25177-26.93269c.05142-5.50025-4.36573-10.00077-9.86598-10.05219a9.963143 9.963143 0 0 0-.0931-.00043c-5.55215 0-10.05306 4.5009-10.05306 10.05305zm.43768-31.76657c0 5.25109 4.2545 9.50584 9.5027 9.50584h.22536c5.2467 0 9.5027-4.25591 9.5027-9.50584 0-5.25109-4.2545-9.50584-9.5027-9.50584h-.22536c-5.2467 0-9.5027 4.25591-9.5027 9.50584z", fill: "currentColor", "fill-rule": "evenodd" } })]), t._v(" " + t._s(t.$t("error")) + " ")]) : t._e()]) : t._e()], 1);
|
|
129
|
+
}, d = [], p = /* @__PURE__ */ s(
|
|
130
|
+
u,
|
|
131
|
+
m,
|
|
132
|
+
d,
|
|
133
|
+
!1,
|
|
134
|
+
null,
|
|
135
|
+
"2ca06e45"
|
|
136
|
+
);
|
|
137
|
+
const k = p.exports;
|
|
138
|
+
export {
|
|
139
|
+
k as default
|
|
140
|
+
};
|