@cling-se/widget 0.14.2 → 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-BP2ip0A4.js +0 -46
- package/dist/AnswerModal-C8i3ldB_.js +0 -3869
- package/dist/AttachmentItem-BrvrAMae.js +0 -78
- package/dist/BaseDatePicker-BSkAllLg.js +0 -3183
- package/dist/BaseUpload-J2v3G0-q.js +0 -1977
- package/dist/BlockMedia-CAgKbN_k.js +0 -76
- package/dist/CCallout-D5Nk5DgN.js +0 -59
- package/dist/CCurrencyDropdown-CGYQfYSD.js +0 -246
- package/dist/CDropdownItem-DGES8E6l.js +0 -538
- package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
- package/dist/CFormField-CE4rV3cr.js +0 -241
- package/dist/CPhoneFormat-DXPrTit9.js +0 -62
- package/dist/CPriceInput-CYsf1n6T.js +0 -112
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
- package/dist/ClientAutocomplete-DPgOfPg1.js +0 -78
- package/dist/ClientModal-Dznh8Vvn.js +0 -625
- package/dist/ColorPicker-CWQEE8VR.js +0 -2879
- package/dist/CompanyModal-CeZ3GgLu.js +0 -141
- package/dist/ContentWrapper-DW7VHTdA.js +0 -183
- package/dist/CoverBlockSettings-DNSdXFgF.js +0 -275
- package/dist/DocAnswer-CPttkKAJ.js +0 -36
- package/dist/DocDetails-BCwWW_kM.js +0 -246
- package/dist/DocForm-BPjC08Ic.js +0 -7273
- package/dist/DocFormSend-BaC8IJCu.js +0 -143
- package/dist/DocLinks-DN-S8MY_.js +0 -38
- package/dist/DocModalBase-bFJp0T2Y.js +0 -28
- package/dist/DocPrint-Ci7Jyh-C.js +0 -240
- package/dist/DocReceipt-BYlXr6eS.js +0 -210
- package/dist/DocSendReminder-DFx4934a.js +0 -137
- package/dist/DocTextEditor-idQMnlIF.js +0 -17177
- package/dist/DocTimeline-ZmGSVRUB.js +0 -481
- package/dist/DocumentClient-DTRlyvLO.js +0 -136
- package/dist/DocumentLayout-BJAyNjNa.js +0 -4909
- package/dist/DocumentLogotype-pDJRc6Hj.js +0 -87
- package/dist/DocumentVoided-DfKewfe4.js +0 -25
- package/dist/EmbedInput-7hLNsnEV.js +0 -113
- package/dist/EmbedSettings-CpL24RhA.js +0 -72
- package/dist/ErrorCallout-CdJCe67q.js +0 -28
- package/dist/FilePreviewModal-B7qT3I7F.js +0 -81
- package/dist/Flag-DwW19zju.js +0 -114
- package/dist/HeaderSettings-C8SuuAwv.js +0 -392
- package/dist/ImageSelectModal-CAOh3YHc.js +0 -84
- package/dist/ImageUploadWrapper-21yldsj9.js +0 -1604
- package/dist/Index-B0BgYtWI.js +0 -150
- package/dist/Index-BC1AhlQ9.js +0 -98
- package/dist/Index-BZi6r2UN.js +0 -144
- package/dist/Index-BsD09y_2.js +0 -84
- package/dist/Index-Bu9SdKLP.js +0 -31
- package/dist/Index-BvsqZh2A.js +0 -26
- package/dist/Index-Bz4qd9uO.js +0 -55
- package/dist/Index-C--GiPc1.js +0 -171
- package/dist/Index-CC7qF0br.js +0 -77
- package/dist/Index-CGxOvTF4.js +0 -2402
- package/dist/Index-CI7_ktvb.js +0 -70
- package/dist/Index-COJZmxkX.js +0 -32
- package/dist/Index-CObEQ6G-.js +0 -140
- package/dist/Index-CP2bsXd-.js +0 -52
- package/dist/Index-CSvZBLnp.js +0 -49
- package/dist/Index-Ci-hGBbC.js +0 -33
- package/dist/Index-Ckzq1cEJ.js +0 -69
- package/dist/Index-CoIh5y2F.js +0 -62
- package/dist/Index-Couda8BX.js +0 -21
- package/dist/Index-CvXt3dm6.js +0 -292
- package/dist/Index-D95MNzAZ.js +0 -58
- package/dist/Index-DB5EG4EI.js +0 -223
- package/dist/Index-DDvRihXA.js +0 -24
- package/dist/Index-DIAntwBs.js +0 -61
- package/dist/Index-DUdJNcDT.js +0 -25
- package/dist/Index-DfANvO5d.js +0 -154
- package/dist/Index-Ds1Jv5Mr.js +0 -559
- package/dist/Index-FIWsRGmh.js +0 -57
- package/dist/Index-M3b7S4YX.js +0 -25
- package/dist/Index-NoN1_539.js +0 -642
- package/dist/Index-UGFm4yxI.js +0 -107
- package/dist/Index-aCBe0dXx.js +0 -754
- package/dist/Index-kJFtpJEP.js +0 -46
- package/dist/Index-rQKoLISX.js +0 -45
- package/dist/InputToggleRow-Ct8rvqAF.js +0 -57
- package/dist/ManualPopover-B0vp9ydC.js +0 -54
- package/dist/MediaWrapper-hmofOPLv.js +0 -23
- package/dist/NotBindingText-COpJPwHe.js +0 -32
- package/dist/PackageGroup-BdtslJL-.js +0 -699
- package/dist/PdfTerms-EDStBDhn.js +0 -36
- package/dist/PdfViewer-D1_Roqu2.js +0 -374
- package/dist/PlainHtml-C3JPvt4o.js +0 -20
- package/dist/PriceHeader-BdfozyN8.js +0 -339
- package/dist/SearchApi-CQtYh98a.js +0 -161
- package/dist/Setup-DHHMT6xu.js +0 -50
- package/dist/SmartList-BXeRj5NC.js +0 -83
- package/dist/TermsSettings-D1tDAu-r.js +0 -102
- package/dist/ThemeColorRow-HUN-QPY_.js +0 -63
- package/dist/ToggleBinding-CRoVM6Nw.js +0 -38
- package/dist/UploadModal-BD3pIiPT.js +0 -95
- package/dist/VideoPlayerInput-QFJfPoCf.js +0 -93
- package/dist/VideoPlayerSettings-CGq--niu.js +0 -61
- package/dist/VideoSelectModal-B61rBqdH.js +0 -100
- package/dist/anime.es-BrPTThYb.js +0 -858
- package/dist/answerDocumentMixin-DiONfM1s.js +0 -51
- package/dist/color-TdtKxwVa.js +0 -19
- package/dist/debounce-BIchuVwa.js +0 -84
- package/dist/dom-CJxkno7i.js +0 -91
- package/dist/favicon.ico +0 -0
- package/dist/focusDrawerMixin-CzvgKsOZ.js +0 -22
- package/dist/formComponentsInstall-EQLbqYqI.js +0 -2494
- package/dist/formDrawerState-CiKGHdNH.js +0 -20
- package/dist/formValidationMixin-5BVcxu38.js +0 -49
- package/dist/i18nMessages-Chz_lxGG.js +0 -17
- package/dist/index-BYTRIZIz.js +0 -81
- package/dist/index-Be__C37A.js +0 -102
- package/dist/index-CUydiL8B.js +0 -3919
- package/dist/index-DH6SCEKQ.js +0 -166
- package/dist/index-gtVGRKIX.js +0 -347
- package/dist/index-tNIrTnCx.js +0 -492
- package/dist/index.es.js +0 -35
- package/dist/index.umd.js +0 -3148
- package/dist/main-Bp2qcma0.js +0 -56697
- package/dist/mapFormMixin-Ce3_WIKw.js +0 -72
- package/dist/omit-21u5fFMx.js +0 -31
- package/dist/publicSenderState-BcN9kJJr.js +0 -21
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/style.css +0 -4
- package/dist/throttle-CfPxqhW_.js +0 -18
- package/dist/tinycolor-DNK6zGoq.js +0 -633
- package/dist/tippy.esm-B5TcTBWX.js +0 -1799
- package/dist/utils-GzwJPAEe.js +0 -108
- package/dist/vuedraggable.umd-2pmrPYml.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
package/dist/Index-CI7_ktvb.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { m as i } from "./mapFormMixin-Ce3_WIKw.js";
|
|
2
|
-
import { S as o, n as a } from "./main-Bp2qcma0.js";
|
|
3
|
-
import { f as r } from "./focusDrawerMixin-CzvgKsOZ.js";
|
|
4
|
-
const d = {
|
|
5
|
-
// eslint-disable-next-line vue/no-reserved-component-names
|
|
6
|
-
name: "Embed",
|
|
7
|
-
i18nOptions: {
|
|
8
|
-
namespaces: "embed",
|
|
9
|
-
messages: {
|
|
10
|
-
en: {
|
|
11
|
-
subTitle: "Embed anything (PDFs, Google Docs, Calender Sheets...)"
|
|
12
|
-
},
|
|
13
|
-
sv: {
|
|
14
|
-
subTitle: "Bädda in vad som helst (PDF:er, Google Docs, Calender Sheets...)"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
components: {
|
|
19
|
-
EmbedSettings: () => import("./EmbedSettings-CpL24RhA.js"),
|
|
20
|
-
EmbedInput: () => import("./EmbedInput-7hLNsnEV.js"),
|
|
21
|
-
Spinner: o
|
|
22
|
-
},
|
|
23
|
-
mixins: [i(["embed", "size"]), r],
|
|
24
|
-
data() {
|
|
25
|
-
return {
|
|
26
|
-
showControls: !1,
|
|
27
|
-
isLoading: !0
|
|
28
|
-
};
|
|
29
|
-
},
|
|
30
|
-
methods: {
|
|
31
|
-
onAdd() {
|
|
32
|
-
const n = () => {
|
|
33
|
-
this.$refs.input.focus();
|
|
34
|
-
};
|
|
35
|
-
this.$refs.input ? n() : this.$once("triggerOnAdd", n);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
var m = function() {
|
|
40
|
-
var e = this, s = e._self._c;
|
|
41
|
-
return s("div", { staticClass: "embed-root font-inter", on: { "&mouseover": function(t) {
|
|
42
|
-
e.showControls = !0;
|
|
43
|
-
}, "&mouseleave": function(t) {
|
|
44
|
-
e.showControls = !1;
|
|
45
|
-
} } }, [s("div", { staticClass: "no-drag", class: [
|
|
46
|
-
(e.size || !(e.embed && e.embed.src)) && "auto-size",
|
|
47
|
-
`embed-is-${e.size}`
|
|
48
|
-
] }, [e.embed ? s("div", { staticClass: "embed-container" }, [!e.embed.src && e.canEdit ? s("div", { staticClass: "embed-element" }, [s("div", { staticClass: "is-placeholder" }, [s("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("subTitle")) + " ")]), s("EmbedInput", { ref: "input", staticStyle: { "padding-top": "1em" }, on: { "hook:mounted": function(t) {
|
|
49
|
-
return e.$emit("triggerOnAdd");
|
|
50
|
-
} }, model: { value: e.embed, callback: function(t) {
|
|
51
|
-
e.embed = t;
|
|
52
|
-
}, expression: "embed" } })], 1)]) : e.embed.src ? s("iframe", e._b({ ref: "iframe", staticClass: "embed-element", on: { load: function(t) {
|
|
53
|
-
e.isLoading = !1;
|
|
54
|
-
} } }, "iframe", { allowfullscreen: "", ...e.embed }, !1)) : e._e(), e.embed.src && e.isLoading ? s("div", { staticClass: "embed-loading-container" }, [s("Spinner", { attrs: { color: "hsl(0, 0%, 60%)" } })], 1) : e._e()]) : e._e()]), e.isForm ? [e.showDrawer ? s("portal", { attrs: { to: "drawer-content" } }, [s("EmbedSettings", { attrs: { size: e.size }, on: { "update:size": function(t) {
|
|
55
|
-
e.size = t;
|
|
56
|
-
} }, model: { value: e.embed, callback: function(t) {
|
|
57
|
-
e.embed = t;
|
|
58
|
-
}, expression: "embed" } })], 1) : e._e()] : e._e()], 2);
|
|
59
|
-
}, l = [], c = /* @__PURE__ */ a(
|
|
60
|
-
d,
|
|
61
|
-
m,
|
|
62
|
-
l,
|
|
63
|
-
!1,
|
|
64
|
-
null,
|
|
65
|
-
"ca826f69"
|
|
66
|
-
);
|
|
67
|
-
const p = c.exports;
|
|
68
|
-
export {
|
|
69
|
-
p as default
|
|
70
|
-
};
|
package/dist/Index-COJZmxkX.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { m as n } from "./mapFormMixin-Ce3_WIKw.js";
|
|
2
|
-
import { n as t } from "./main-Bp2qcma0.js";
|
|
3
|
-
const a = {
|
|
4
|
-
name: "ExtraWorkConstructionPricingList",
|
|
5
|
-
components: {
|
|
6
|
-
Read: () => import("./Index-C--GiPc1.js"),
|
|
7
|
-
Edit: () => import("./Index-Ckzq1cEJ.js")
|
|
8
|
-
},
|
|
9
|
-
mixins: [
|
|
10
|
-
n([
|
|
11
|
-
"workPrice",
|
|
12
|
-
"managementPrice",
|
|
13
|
-
"entrepreneurMarkupPercentage",
|
|
14
|
-
"miscMarkupPercentage"
|
|
15
|
-
])
|
|
16
|
-
]
|
|
17
|
-
};
|
|
18
|
-
var c = function() {
|
|
19
|
-
var e = this, r = e._self._c;
|
|
20
|
-
return e.canEdit ? r("Edit", e._g({ attrs: { _document: e._document, _value: e._value } }, e.$listeners)) : r("Read", { attrs: { _document: e._document, "work-price": e.workPrice, "management-price": e.managementPrice, "entrepreneur-markup-percentage": e.entrepreneurMarkupPercentage, "misc-markup-percentage": e.miscMarkupPercentage } });
|
|
21
|
-
}, m = [], i = /* @__PURE__ */ t(
|
|
22
|
-
a,
|
|
23
|
-
c,
|
|
24
|
-
m,
|
|
25
|
-
!1,
|
|
26
|
-
null,
|
|
27
|
-
"b31d846d"
|
|
28
|
-
);
|
|
29
|
-
const _ = i.exports;
|
|
30
|
-
export {
|
|
31
|
-
_ as default
|
|
32
|
-
};
|
package/dist/Index-CObEQ6G-.js
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { m as o } from "./mapFormMixin-Ce3_WIKw.js";
|
|
2
|
-
import { n as s, U as l } from "./main-Bp2qcma0.js";
|
|
3
|
-
import { v as a } from "./index-tNIrTnCx.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
|
-
};
|
package/dist/Index-CP2bsXd-.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { m as o } from "./mapFormMixin-Ce3_WIKw.js";
|
|
2
|
-
import { I as i } from "./InputToggleRow-Ct8rvqAF.js";
|
|
3
|
-
import { n as a } from "./main-Bp2qcma0.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-CSvZBLnp.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { m as s } from "./mapFormMixin-Ce3_WIKw.js";
|
|
2
|
-
import { T as i } from "./DocTextEditor-idQMnlIF.js";
|
|
3
|
-
import { z as r, A as a, B as c, n as m } from "./main-Bp2qcma0.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-Ci-hGBbC.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { m as n } from "./mapFormMixin-Ce3_WIKw.js";
|
|
2
|
-
import { n as i } from "./main-Bp2qcma0.js";
|
|
3
|
-
const r = {
|
|
4
|
-
name: "ExtraWorkTimeImpactText",
|
|
5
|
-
components: {
|
|
6
|
-
Read: () => import("./Index-DIAntwBs.js"),
|
|
7
|
-
Edit: () => import("./Index-CObEQ6G-.js")
|
|
8
|
-
},
|
|
9
|
-
mixins: [
|
|
10
|
-
n([
|
|
11
|
-
"workStartAt",
|
|
12
|
-
"workEndAt",
|
|
13
|
-
"timeUnit",
|
|
14
|
-
"noOfTimeUnits",
|
|
15
|
-
"timeDeltaDirection"
|
|
16
|
-
])
|
|
17
|
-
]
|
|
18
|
-
};
|
|
19
|
-
var o = function() {
|
|
20
|
-
var t = this, e = t._self._c;
|
|
21
|
-
return t.canEdit ? e("Edit", t._g({ attrs: { _document: t._document, _value: t._value } }, t.$listeners)) : e("Read", { attrs: { "work-start-at": t.workStartAt, "work-end-at": t.workEndAt, "time-unit": t.timeUnit, "no-of-time-units": t.noOfTimeUnits, "time-delta-direction": t.timeDeltaDirection } });
|
|
22
|
-
}, a = [], m = /* @__PURE__ */ i(
|
|
23
|
-
r,
|
|
24
|
-
o,
|
|
25
|
-
a,
|
|
26
|
-
!1,
|
|
27
|
-
null,
|
|
28
|
-
null
|
|
29
|
-
);
|
|
30
|
-
const d = m.exports;
|
|
31
|
-
export {
|
|
32
|
-
d as default
|
|
33
|
-
};
|
package/dist/Index-Ckzq1cEJ.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { m as n } from "./mapFormMixin-Ce3_WIKw.js";
|
|
2
|
-
import { I as a } from "./InputToggleRow-Ct8rvqAF.js";
|
|
3
|
-
import { C as c } from "./CPriceInput-CYsf1n6T.js";
|
|
4
|
-
import { n as o } from "./main-Bp2qcma0.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-CoIh5y2F.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { m as o } from "./mapFormMixin-Ce3_WIKw.js";
|
|
2
|
-
import { n as s } from "./main-Bp2qcma0.js";
|
|
3
|
-
const i = {
|
|
4
|
-
name: "PackageGroupBlock",
|
|
5
|
-
components: {
|
|
6
|
-
PackageGroupRead: () => import("./PackageGroup-BdtslJL-.js"),
|
|
7
|
-
PackageGroupEdit: () => import("./Index-CGxOvTF4.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-Couda8BX.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { P as n } from "./PlainHtml-C3JPvt4o.js";
|
|
2
|
-
import { n as e } from "./main-Bp2qcma0.js";
|
|
3
|
-
const o = {
|
|
4
|
-
name: "WorkAddressTextRead",
|
|
5
|
-
functional: !0,
|
|
6
|
-
render(s, r) {
|
|
7
|
-
return s(n, [r.props.street ? `${r.props.street}, ` : "", r.props.zip ? `${r.props.zip} ` : " ", r.props.city]);
|
|
8
|
-
}
|
|
9
|
-
}, p = null, t = null;
|
|
10
|
-
var l = /* @__PURE__ */ e(
|
|
11
|
-
o,
|
|
12
|
-
p,
|
|
13
|
-
t,
|
|
14
|
-
!1,
|
|
15
|
-
null,
|
|
16
|
-
null
|
|
17
|
-
);
|
|
18
|
-
const m = l.exports;
|
|
19
|
-
export {
|
|
20
|
-
m as default
|
|
21
|
-
};
|