@cling-se/widget 0.14.3 → 0.14.4
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/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
- package/dist/AddClientCallout-DKH-LP5B.js +0 -46
- package/dist/AnswerModal-BCbq8wc4.js +0 -3869
- package/dist/AttachmentItem-60CSZnkF.js +0 -78
- package/dist/BaseDatePicker-Cl8SnC1k.js +0 -3183
- package/dist/BaseUpload-D4FCjlhL.js +0 -1977
- package/dist/BlockMedia-CqkwdGnE.js +0 -76
- package/dist/CCallout-BTBgU8f-.js +0 -59
- package/dist/CCurrencyDropdown-CL32Mo-Y.js +0 -246
- package/dist/CDropdownItem-DlWtQwO6.js +0 -538
- package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
- package/dist/CFormField-BxJv-nUO.js +0 -241
- package/dist/CPhoneFormat-CJ9kndtJ.js +0 -62
- package/dist/CPriceInput-BpXI5X2j.js +0 -112
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
- package/dist/ClientAutocomplete-D9Dj9iBW.js +0 -78
- package/dist/ClientModal-JOt8NGcR.js +0 -625
- package/dist/ColorPicker-uPKD-Gvm.js +0 -2879
- package/dist/CompanyModal-7bG0iIRd.js +0 -141
- package/dist/ContentWrapper-B2nyZHL4.js +0 -183
- package/dist/CoverBlockSettings-C1O_FAde.js +0 -275
- package/dist/DocAnswer-B9G-y4Px.js +0 -36
- package/dist/DocDetails-DYHxKChO.js +0 -246
- package/dist/DocForm-BktEXjML.js +0 -7273
- package/dist/DocFormSend-DM6QgUOj.js +0 -143
- package/dist/DocLinks-BIGwfB3H.js +0 -38
- package/dist/DocModalBase-D5GdwTI7.js +0 -28
- package/dist/DocPrint-HqbaIGms.js +0 -240
- package/dist/DocReceipt-WXo6vWyW.js +0 -210
- package/dist/DocSendReminder-C8dNEpLg.js +0 -137
- package/dist/DocTextEditor-BfOZFDTP.js +0 -17177
- package/dist/DocTimeline-CitwS9px.js +0 -481
- package/dist/DocumentClient-CQ_z8ajY.js +0 -136
- package/dist/DocumentLayout-BA7mFfZh.js +0 -4909
- package/dist/DocumentLogotype-woc_hfll.js +0 -87
- package/dist/DocumentVoided-DC4FzpxG.js +0 -25
- package/dist/EmbedInput-CheqYcNr.js +0 -113
- package/dist/EmbedSettings-YcwM8hJw.js +0 -72
- package/dist/ErrorCallout-6pCYcx00.js +0 -28
- package/dist/FilePreviewModal-T8AiphqO.js +0 -81
- package/dist/Flag-Ddm6a4Il.js +0 -114
- package/dist/HeaderSettings-DHdZweJH.js +0 -392
- package/dist/ImageSelectModal-CAoBhnI8.js +0 -84
- package/dist/ImageUploadWrapper-CNv59Lhh.js +0 -1604
- package/dist/Index-B6S9U4Z-.js +0 -26
- package/dist/Index-BHX0D5fW.js +0 -559
- package/dist/Index-BL_7m5Ca.js +0 -70
- package/dist/Index-BXMXEUfo.js +0 -223
- package/dist/Index-BhVBvMu6.js +0 -32
- package/dist/Index-Bl_SNW80.js +0 -25
- package/dist/Index-BsguntKl.js +0 -21
- package/dist/Index-CGYjPfsf.js +0 -2402
- package/dist/Index-CKrGb3of.js +0 -61
- package/dist/Index-CMNrQo5a.js +0 -140
- package/dist/Index-CU50Al5c.js +0 -642
- package/dist/Index-CdqrrZxd.js +0 -77
- package/dist/Index-CfnL9dAw.js +0 -58
- package/dist/Index-CuW0MYrT.js +0 -171
- package/dist/Index-D-z8JSn6.js +0 -154
- package/dist/Index-D8giJ_bs.js +0 -84
- package/dist/Index-DDvfqy_h.js +0 -24
- package/dist/Index-DQDalqZ-.js +0 -107
- package/dist/Index-DTIPKKkV.js +0 -150
- package/dist/Index-DWxzUBff.js +0 -754
- package/dist/Index-DaNGeDQw.js +0 -144
- package/dist/Index-DfLU_AyN.js +0 -49
- package/dist/Index-DkVav_I7.js +0 -25
- package/dist/Index-Dxp8QAtB.js +0 -57
- package/dist/Index-DzjxFkcv.js +0 -52
- package/dist/Index-EwUJJWaB.js +0 -69
- package/dist/Index-I60qAqLl.js +0 -31
- package/dist/Index-LfF-7lQK.js +0 -292
- package/dist/Index-P0_dyc2V.js +0 -45
- package/dist/Index-RQMPSeHw.js +0 -98
- package/dist/Index-oipNLl3Y.js +0 -46
- package/dist/Index-sJq2Iyvt.js +0 -62
- package/dist/Index-uubi3NHX.js +0 -33
- package/dist/Index-vNj2kYZT.js +0 -55
- package/dist/InputToggleRow-B2pWvVyx.js +0 -57
- package/dist/ManualPopover-BI_Sf1zG.js +0 -54
- package/dist/MediaWrapper-eFpWxv3n.js +0 -23
- package/dist/NotBindingText-DA5NpePz.js +0 -32
- package/dist/PackageGroup-DOSijBdN.js +0 -699
- package/dist/PdfTerms-Q5YuVtrJ.js +0 -36
- package/dist/PdfViewer-zcWl8XZT.js +0 -374
- package/dist/PlainHtml-BmA83UAm.js +0 -20
- package/dist/PriceHeader-C14L5zgG.js +0 -339
- package/dist/SearchApi-CGT7-jVf.js +0 -161
- package/dist/Setup-RJQvZlDO.js +0 -50
- package/dist/SmartList-YosKRPVn.js +0 -83
- package/dist/TermsSettings-C5JTv7rT.js +0 -102
- package/dist/ThemeColorRow-D-C_tm2f.js +0 -63
- package/dist/ToggleBinding-KEVHHvKf.js +0 -38
- package/dist/UploadModal-DOYoWELI.js +0 -95
- package/dist/VideoPlayerInput-Dxb6CNk-.js +0 -93
- package/dist/VideoPlayerSettings-DsVN4Ix-.js +0 -61
- package/dist/VideoSelectModal-BpfzNx61.js +0 -100
- package/dist/anime.es-BrPTThYb.js +0 -858
- package/dist/answerDocumentMixin-BJMGrfUs.js +0 -51
- package/dist/color-TdtKxwVa.js +0 -19
- package/dist/debounce-BN83gOVd.js +0 -84
- package/dist/dom-CJxkno7i.js +0 -91
- package/dist/favicon.ico +0 -0
- package/dist/focusDrawerMixin-CawyQaGq.js +0 -22
- package/dist/formComponentsInstall-jcnyQ1zw.js +0 -2494
- package/dist/formDrawerState-BdNohvZH.js +0 -20
- package/dist/formValidationMixin-DOwgebZk.js +0 -49
- package/dist/i18nMessages-Chz_lxGG.js +0 -17
- package/dist/index-BBJIOkm_.js +0 -347
- package/dist/index-BNq9YCWc.js +0 -166
- package/dist/index-BdhbkLLU.js +0 -81
- package/dist/index-COf8F6CL.js +0 -3916
- package/dist/index-D0WvZHX_.js +0 -102
- package/dist/index-DTzZP4yq.js +0 -492
- package/dist/index.es.js +0 -35
- package/dist/index.umd.js +0 -3148
- package/dist/main-DE5THsiR.js +0 -56739
- package/dist/mapFormMixin-y2txvLw9.js +0 -72
- package/dist/omit-BrsWQAtU.js +0 -31
- package/dist/publicSenderState-BYsq95Vt.js +0 -21
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/style.css +0 -4
- package/dist/throttle-C2srA2wa.js +0 -18
- package/dist/tinycolor-SjV_ROuP.js +0 -633
- package/dist/tippy.esm-Dj7DQppr.js +0 -1799
- package/dist/utils-16HMuRfY.js +0 -108
- package/dist/vuedraggable.umd-Cd1g2Hr7.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
package/dist/Index-DaNGeDQw.js
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { m as r } from "./mapFormMixin-y2txvLw9.js";
|
|
2
|
-
import { f as l } from "./focusDrawerMixin-CawyQaGq.js";
|
|
3
|
-
import { d as c } from "./debounce-BN83gOVd.js";
|
|
4
|
-
import { s as m, p as u } from "./splitpanes-BHUVsCZF.js";
|
|
5
|
-
import { n } from "./main-DE5THsiR.js";
|
|
6
|
-
const d = {
|
|
7
|
-
name: "HeaderItems",
|
|
8
|
-
components: {
|
|
9
|
-
MediaWrapper: () => import("./MediaWrapper-eFpWxv3n.js"),
|
|
10
|
-
ContentWrapper: () => import("./ContentWrapper-B2nyZHL4.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-C14L5zgG.js"),
|
|
76
|
-
HeaderSettings: () => import("./HeaderSettings-DHdZweJH.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
|
-
};
|
package/dist/Index-DfLU_AyN.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { m as s } from "./mapFormMixin-y2txvLw9.js";
|
|
2
|
-
import { T as i } from "./DocTextEditor-BfOZFDTP.js";
|
|
3
|
-
import { z as r, A as a, B as c, n as m } from "./main-DE5THsiR.js";
|
|
4
|
-
const d = {
|
|
5
|
-
name: "TextContent",
|
|
6
|
-
components: {
|
|
7
|
-
TextEditor: i
|
|
8
|
-
},
|
|
9
|
-
mixins: [s(["content"])],
|
|
10
|
-
computed: {
|
|
11
|
-
value: {
|
|
12
|
-
get() {
|
|
13
|
-
return this.canEdit ? r(
|
|
14
|
-
this.content,
|
|
15
|
-
this._document.textTemplateMap,
|
|
16
|
-
this._document._doc
|
|
17
|
-
) : a(this.content, this._document._doc);
|
|
18
|
-
},
|
|
19
|
-
set(e) {
|
|
20
|
-
this.content = c(e);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
methods: {
|
|
25
|
-
onAdd() {
|
|
26
|
-
const e = () => this.$refs.textEditor.focus();
|
|
27
|
-
this.$refs.textEditor ? e() : this.$once("triggerOnAdd", e);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
var l = function() {
|
|
32
|
-
var t = this, n = t._self._c;
|
|
33
|
-
return n("div", { staticClass: "quill-format", staticStyle: { "font-size": "16px" } }, [n("TextEditor", { ref: "textEditor", staticClass: "text-editor", staticStyle: { "margin-bottom": "1em" }, attrs: { placeholder: t.$t("components:account.documentForm.titleAndText.text"), mentions: () => t._document.textTemplateItems, snippets: !0, "is-absolute": !0 }, on: { "hook:mounted": function(o) {
|
|
34
|
-
return t.$emit("triggerOnAdd");
|
|
35
|
-
} }, model: { value: t.value, callback: function(o) {
|
|
36
|
-
t.value = o;
|
|
37
|
-
}, expression: "value" } })], 1);
|
|
38
|
-
}, u = [], p = /* @__PURE__ */ m(
|
|
39
|
-
d,
|
|
40
|
-
l,
|
|
41
|
-
u,
|
|
42
|
-
!1,
|
|
43
|
-
null,
|
|
44
|
-
"91c1fb62"
|
|
45
|
-
);
|
|
46
|
-
const h = p.exports;
|
|
47
|
-
export {
|
|
48
|
-
h as default
|
|
49
|
-
};
|
package/dist/Index-DkVav_I7.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { m as e } from "./mapFormMixin-y2txvLw9.js";
|
|
2
|
-
import { n as i } from "./main-DE5THsiR.js";
|
|
3
|
-
const m = {
|
|
4
|
-
name: "EstimatedTimeToComplete",
|
|
5
|
-
components: {
|
|
6
|
-
Read: () => import("./Index-P0_dyc2V.js"),
|
|
7
|
-
Edit: () => import("./Index-DzjxFkcv.js")
|
|
8
|
-
},
|
|
9
|
-
mixins: [e(["noOfTimeUnits", "timeUnit"])]
|
|
10
|
-
};
|
|
11
|
-
var o = 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: { "no-of-time-units": t.noOfTimeUnits, "time-unit": t.timeUnit } });
|
|
14
|
-
}, r = [], s = /* @__PURE__ */ i(
|
|
15
|
-
m,
|
|
16
|
-
o,
|
|
17
|
-
r,
|
|
18
|
-
!1,
|
|
19
|
-
null,
|
|
20
|
-
null
|
|
21
|
-
);
|
|
22
|
-
const d = s.exports;
|
|
23
|
-
export {
|
|
24
|
-
d as default
|
|
25
|
-
};
|
package/dist/Index-Dxp8QAtB.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { m as r } from "./mapFormMixin-y2txvLw9.js";
|
|
2
|
-
import { q as l, n as o } from "./main-DE5THsiR.js";
|
|
3
|
-
const c = {
|
|
4
|
-
name: "DocChapter",
|
|
5
|
-
components: {
|
|
6
|
-
CInput: l
|
|
7
|
-
},
|
|
8
|
-
mixins: [r(["title"])],
|
|
9
|
-
props: {
|
|
10
|
-
enableSpacingX: {
|
|
11
|
-
type: Boolean,
|
|
12
|
-
default: !0
|
|
13
|
-
},
|
|
14
|
-
enableSpacingY: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
default: !0
|
|
17
|
-
},
|
|
18
|
-
pdfSpacingX: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: !1
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
methods: {
|
|
24
|
-
// Naming convention used by generateTemplate-functions in order for it to choose whether or not to run on add
|
|
25
|
-
conditionalOnAdd() {
|
|
26
|
-
const a = () => this.$refs.input.focus();
|
|
27
|
-
this.$refs.input ? a() : this.$once("triggerOnAdd", a);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
var p = function() {
|
|
32
|
-
var i;
|
|
33
|
-
var t = this, n = t._self._c;
|
|
34
|
-
return n("div", { staticClass: "chapter" }, [n("div", { staticClass: "no-drag", class: {
|
|
35
|
-
"chapter-spacing-x": t.enableSpacingX,
|
|
36
|
-
"chapter-spacing-y": t.enableSpacingY,
|
|
37
|
-
"pdf-spacing-x": t.pdfSpacingX
|
|
38
|
-
} }, [t.canEdit && ((i = t._value) != null && i.title) ? n("CInput", { ref: "input", staticClass: "title preview-title-input", attrs: { value: t.title, spellcheck: !1, placeholder: t.$t("components:account.documentForm.titleAndText.title"), static: "" }, on: { blur: (e) => {
|
|
39
|
-
var s;
|
|
40
|
-
t.title = ((s = e.target) == null ? void 0 : s.value) || "";
|
|
41
|
-
}, "hook:mounted": function(e) {
|
|
42
|
-
return t.$emit("triggerOnAdd");
|
|
43
|
-
} }, nativeOn: { keydown: function(e) {
|
|
44
|
-
return !e.type.indexOf("key") && t._k(e.keyCode, "enter", 13, e.key, "Enter") ? null : e.target.blur();
|
|
45
|
-
} } }) : t.title ? n("div", { staticClass: "title" }, [t._v(" " + t._s(t.title) + " ")]) : t._e(), n("div", [t._t("default")], 2)], 1)]);
|
|
46
|
-
}, d = [], u = /* @__PURE__ */ o(
|
|
47
|
-
c,
|
|
48
|
-
p,
|
|
49
|
-
d,
|
|
50
|
-
!1,
|
|
51
|
-
null,
|
|
52
|
-
"7afaa603"
|
|
53
|
-
);
|
|
54
|
-
const _ = u.exports;
|
|
55
|
-
export {
|
|
56
|
-
_ as default
|
|
57
|
-
};
|
package/dist/Index-DzjxFkcv.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { m as o } from "./mapFormMixin-y2txvLw9.js";
|
|
2
|
-
import { I as i } from "./InputToggleRow-B2pWvVyx.js";
|
|
3
|
-
import { n as a } from "./main-DE5THsiR.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-EwUJJWaB.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { m as n } from "./mapFormMixin-y2txvLw9.js";
|
|
2
|
-
import { I as a } from "./InputToggleRow-B2pWvVyx.js";
|
|
3
|
-
import { C as c } from "./CPriceInput-BpXI5X2j.js";
|
|
4
|
-
import { n as o } from "./main-DE5THsiR.js";
|
|
5
|
-
const i = {
|
|
6
|
-
i18nOptions: {
|
|
7
|
-
namespaces: "ExtraWorkConstructionPricingListEdit",
|
|
8
|
-
messages: {
|
|
9
|
-
sv: {
|
|
10
|
-
workPrice: "Arbete",
|
|
11
|
-
managementPrice: "Arbetsledning",
|
|
12
|
-
entrepreneurMarkupPercentage: "Påslag för underentreprenader",
|
|
13
|
-
miscMarkupPercentage: "Påslag för material, varor och övrigt"
|
|
14
|
-
},
|
|
15
|
-
en: {
|
|
16
|
-
workPrice: "Work",
|
|
17
|
-
managementPrice: "Work management",
|
|
18
|
-
entrepreneurMarkupPercentage: "Markup for subcontractors",
|
|
19
|
-
miscMarkupPercentage: "Markup for material, goods and other",
|
|
20
|
-
travelCosts: "Travel costs for extra work"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
name: "ExtraWorkConstructionPricingListEdit",
|
|
25
|
-
components: {
|
|
26
|
-
InputToggleRow: a,
|
|
27
|
-
CPriceInput: c
|
|
28
|
-
},
|
|
29
|
-
mixins: [
|
|
30
|
-
n(
|
|
31
|
-
[
|
|
32
|
-
"workPrice",
|
|
33
|
-
"managementPrice",
|
|
34
|
-
"entrepreneurMarkupPercentage",
|
|
35
|
-
"miscMarkupPercentage"
|
|
36
|
-
],
|
|
37
|
-
{ type: "number" }
|
|
38
|
-
)
|
|
39
|
-
]
|
|
40
|
-
};
|
|
41
|
-
var s = function() {
|
|
42
|
-
var e = this, r = e._self._c;
|
|
43
|
-
return r("div", [r("div", { staticClass: "flex w-full justify-end", staticStyle: { position: "relative" } }, [e.workPrice || e.managementPrice ? r("div", { staticClass: "ex-vat" }, [e._v(" " + e._s(e.$t("_common:vat.exVat", { thing: e.$t("_common:vat.sharedTitle") }).capitalize()) + " ")]) : e._e()]), r("InputToggleRow", { attrs: { "display-value": e.workPrice ? `${e.workPrice / 100} ${e.$t("_common:currency.SEK")}/${e.$t(
|
|
44
|
-
"_common:unitType.hour"
|
|
45
|
-
)}` : e.$t("_common:add"), label: e.$t("workPrice") } }, [r("CPriceInput", { attrs: { currency: "SEK", min: "0", "suffix-class": "text-gray-400" }, scopedSlots: e._u([{ key: "suffix", fn: function() {
|
|
46
|
-
return [e._v(" " + e._s(e.$t("currency.SEK")) + "/" + e._s(e.$t("_common:unitType.hour")) + " ")];
|
|
47
|
-
}, proxy: !0 }]), model: { value: e.workPrice, callback: function(t) {
|
|
48
|
-
e.workPrice = e._n(t);
|
|
49
|
-
}, expression: "workPrice" } })], 1), r("InputToggleRow", { attrs: { "display-value": e.managementPrice ? `${e.managementPrice / 100} kr/h` : e.$t("_common:add"), label: e.$t("managementPrice") } }, [r("CPriceInput", { attrs: { currency: "SEK", min: "0", "suffix-class": "text-gray-400" }, scopedSlots: e._u([{ key: "suffix", fn: function() {
|
|
50
|
-
return [e._v(" " + e._s(e.$t("_common:currency.SEK")) + "/" + e._s(e.$t("unitType.hour")) + " ")];
|
|
51
|
-
}, proxy: !0 }]), model: { value: e.managementPrice, callback: function(t) {
|
|
52
|
-
e.managementPrice = e._n(t);
|
|
53
|
-
}, expression: "managementPrice" } })], 1), r("InputToggleRow", { attrs: { "display-value": e.entrepreneurMarkupPercentage ? `${e.entrepreneurMarkupPercentage} %` : e.$t("_common:add"), label: e.$t("entrepreneurMarkupPercentage") } }, [r("CInput", { model: { value: e.entrepreneurMarkupPercentage, callback: function(t) {
|
|
54
|
-
e.entrepreneurMarkupPercentage = e._n(t);
|
|
55
|
-
}, expression: "entrepreneurMarkupPercentage" } }, [r("template", { slot: "suffix" }, [e._v("%")])], 2)], 1), r("InputToggleRow", { attrs: { "display-value": e.miscMarkupPercentage ? `${e.miscMarkupPercentage} %` : e.$t("_common:add"), label: e.$t("miscMarkupPercentage") } }, [r("CInput", { model: { value: e.miscMarkupPercentage, callback: function(t) {
|
|
56
|
-
e.miscMarkupPercentage = e._n(t);
|
|
57
|
-
}, expression: "miscMarkupPercentage" } }, [r("template", { slot: "suffix" }, [e._v("%")])], 2)], 1)], 1);
|
|
58
|
-
}, u = [], m = /* @__PURE__ */ o(
|
|
59
|
-
i,
|
|
60
|
-
s,
|
|
61
|
-
u,
|
|
62
|
-
!1,
|
|
63
|
-
null,
|
|
64
|
-
"ee274c7d"
|
|
65
|
-
);
|
|
66
|
-
const _ = m.exports;
|
|
67
|
-
export {
|
|
68
|
-
_ as default
|
|
69
|
-
};
|
package/dist/Index-I60qAqLl.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { n as r } from "./main-DE5THsiR.js";
|
|
2
|
-
const l = {
|
|
3
|
-
name: "DocChapterSub",
|
|
4
|
-
inject: {
|
|
5
|
-
viewSettings: { default: () => ({ canEdit: !1 }) }
|
|
6
|
-
},
|
|
7
|
-
inheritAttrs: !1
|
|
8
|
-
};
|
|
9
|
-
var o = function(e, t) {
|
|
10
|
-
var i, n;
|
|
11
|
-
return t.props.hideFromEdit && t.injections.viewSettings.canEdit ? t._e() : e("div", { staticClass: "sub-chapter" }, [e("div", { staticClass: "sub-chapter-title" }, [e("span", { staticClass: "sub-chapter-counter primary-pseudo-background" }), t.injections.viewSettings.canEdit && ((n = (i = t.props) == null ? void 0 : i._value) != null && n.title) ? [e("CInput", { staticClass: "preview-title-input", attrs: { value: t.props.title, spellcheck: !1, static: "" }, on: { blur: (s) => {
|
|
12
|
-
var a;
|
|
13
|
-
t.injections.viewSettings.setFormValue && t.injections.viewSettings.setFormValue({
|
|
14
|
-
key: t.props._value.title,
|
|
15
|
-
value: ((a = s.target) == null ? void 0 : a.value) || ""
|
|
16
|
-
});
|
|
17
|
-
} }, nativeOn: { keydown: function(s) {
|
|
18
|
-
return !s.type.indexOf("key") && t._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : s.target.blur();
|
|
19
|
-
} } })] : t.props.title ? e("div", [t._v(t._s(t.props.title))]) : t._e()], 2), e("div", { staticClass: "sub-chapter-content" }, [t._t("default")], 2)]);
|
|
20
|
-
}, c = [], p = /* @__PURE__ */ r(
|
|
21
|
-
l,
|
|
22
|
-
o,
|
|
23
|
-
c,
|
|
24
|
-
!0,
|
|
25
|
-
null,
|
|
26
|
-
"cf4c14b1"
|
|
27
|
-
);
|
|
28
|
-
const f = p.exports;
|
|
29
|
-
export {
|
|
30
|
-
f as default
|
|
31
|
-
};
|