@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-CvXt3dm6.js
DELETED
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
import { w as c } from "./CDropdownItem-DGES8E6l.js";
|
|
2
|
-
import { g as a, h as m, n as d, b as l, e as u } from "./main-Bp2qcma0.js";
|
|
3
|
-
import { s as p, i as v } from "./dom-CJxkno7i.js";
|
|
4
|
-
import { D as _ } from "./DocModalBase-bFJp0T2Y.js";
|
|
5
|
-
import { v as s } from "./index-tNIrTnCx.js";
|
|
6
|
-
import { a as g } from "./vuex.esm-DKGl8mcw.js";
|
|
7
|
-
import { a as h } from "./answerDocumentMixin-DiONfM1s.js";
|
|
8
|
-
const w = {
|
|
9
|
-
i18nOptions: {
|
|
10
|
-
namespaces: "components",
|
|
11
|
-
keyPrefix: "document.propertyDesignationModal"
|
|
12
|
-
},
|
|
13
|
-
components: {
|
|
14
|
-
DocModalBase: _
|
|
15
|
-
},
|
|
16
|
-
mixins: [c],
|
|
17
|
-
props: {
|
|
18
|
-
senderName: {
|
|
19
|
-
type: String,
|
|
20
|
-
required: !0
|
|
21
|
-
},
|
|
22
|
-
propertyDesignation: {
|
|
23
|
-
type: Object,
|
|
24
|
-
default: null
|
|
25
|
-
},
|
|
26
|
-
fullScreen: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !1
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
data() {
|
|
32
|
-
return {
|
|
33
|
-
cornerRadius: 0,
|
|
34
|
-
spacing: 0,
|
|
35
|
-
view: "start",
|
|
36
|
-
form: "",
|
|
37
|
-
realEstateId: "",
|
|
38
|
-
condominiumId: null,
|
|
39
|
-
condominiumOrgNo: null
|
|
40
|
-
// messages: {
|
|
41
|
-
// condominiumId: {
|
|
42
|
-
// required: 'Ange ditt lägenhetsnummer',
|
|
43
|
-
// minLength: 'Det ska vara 4 siffror',
|
|
44
|
-
// maxLength: 'Det ska vara 4 siffror',
|
|
45
|
-
// },
|
|
46
|
-
// condominiumOrgNo: {
|
|
47
|
-
// required: 'Ange din bostadensrätts org-nr',
|
|
48
|
-
// },
|
|
49
|
-
// realEstateId: {
|
|
50
|
-
// required: 'Ange din fastighetsbeteckning',
|
|
51
|
-
// },
|
|
52
|
-
// },
|
|
53
|
-
};
|
|
54
|
-
},
|
|
55
|
-
validations: {
|
|
56
|
-
condominiumId: {
|
|
57
|
-
required: s.requiredIf((i) => i.form === "condominium"),
|
|
58
|
-
minLength: s.minLength(4),
|
|
59
|
-
maxLength: s.maxLength(4)
|
|
60
|
-
},
|
|
61
|
-
condominiumOrgNo: {
|
|
62
|
-
required: s.requiredIf((i) => i.form === "condominium")
|
|
63
|
-
},
|
|
64
|
-
realEstateId: {
|
|
65
|
-
required: s.requiredIf((i) => i.form === "realEstate")
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
computed: {
|
|
69
|
-
messages() {
|
|
70
|
-
const i = (e) => this.$t(`validations.${e}`);
|
|
71
|
-
return {
|
|
72
|
-
condominiumId: {
|
|
73
|
-
required: i("condominiumId.required"),
|
|
74
|
-
minLength: i("condominiumId.minLength"),
|
|
75
|
-
maxLength: i("condominiumId.maxLength")
|
|
76
|
-
},
|
|
77
|
-
condominiumOrgNo: {
|
|
78
|
-
required: i("condominiumOrgNo.required")
|
|
79
|
-
},
|
|
80
|
-
realEstateId: {
|
|
81
|
-
required: i("realEstateId.required")
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
created() {
|
|
87
|
-
if (this.propertyDesignation) {
|
|
88
|
-
const {
|
|
89
|
-
propertyType: i = "",
|
|
90
|
-
propertyId: e = "",
|
|
91
|
-
condominiumOrgNo: t = null
|
|
92
|
-
} = this.propertyDesignation;
|
|
93
|
-
this.form = i, i === "realEstate" ? this.realEstateId = e : this.condominiumId = e, this.condominiumOrgNo = t;
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
mounted() {
|
|
97
|
-
this.spacing = window.getComputedStyle(this.$refs.root.$el).paddingTop, this.cornerRadius = window.getComputedStyle(
|
|
98
|
-
this.$refs.root.$el
|
|
99
|
-
).borderRadius;
|
|
100
|
-
},
|
|
101
|
-
methods: {
|
|
102
|
-
...g({
|
|
103
|
-
putCurrentDoc: a.PUT_CURRENT_PUBLIC_DOCUMENT,
|
|
104
|
-
reloadCurrentDocument: a.RELOAD_CURRENT_DOCUMENT
|
|
105
|
-
}),
|
|
106
|
-
async updateClientPropertyDesignation() {
|
|
107
|
-
if (this.$v.$touch(), this.$v.$invalid)
|
|
108
|
-
return;
|
|
109
|
-
const i = {
|
|
110
|
-
propertyType: this.form,
|
|
111
|
-
propertyId: this.form === "realEstate" ? this.realEstateId : this.condominiumId,
|
|
112
|
-
...this.form === "condominium" && {
|
|
113
|
-
condominiumOrgNo: this.condominiumOrgNo
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
try {
|
|
117
|
-
await this.putCurrentDoc({
|
|
118
|
-
body: {
|
|
119
|
-
["clients[0].region.propertyDesignation"]: i
|
|
120
|
-
}
|
|
121
|
-
}), this.reloadCurrentDocument(), this.view = "complete";
|
|
122
|
-
} catch (e) {
|
|
123
|
-
m(e);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
var C = function() {
|
|
129
|
-
var e = this, t = e._self._c;
|
|
130
|
-
return t("doc-modal-base", { ref: "root", class: [{ "full-screen": e.mq === "sm" }] }, [e.fullScreen ? t("CButton", { staticClass: "absolute right-4 top-4 z-50", attrs: { icon: "x", circle: "" }, on: { click: function(n) {
|
|
131
|
-
return e.$emit("close");
|
|
132
|
-
} } }) : e._e(), t("div", [e.view !== "complete" ? t("div", { staticClass: "negate-padding relative mb-8 border-b border-gray-100 bg-gray-50 pb-8 text-center", style: {
|
|
133
|
-
paddingTop: e.spacing,
|
|
134
|
-
marginTop: `-${e.spacing}`,
|
|
135
|
-
borderRadius: `${e.cornerRadius} ${e.cornerRadius} 0 0`
|
|
136
|
-
} }, [e.view === "start" ? t("div", { key: 1 }, [t("div", { staticClass: "mb-2 text-lg font-semibold" }, [e._v(e._s(e.$t("title")))]), t("div", { staticClass: "text-gray-700" }, [e._v(" " + e._s(e.$t("subTitle", { senderName: e.senderName })) + " ")])]) : e._e(), e.view === "form" ? t("div", { key: 2 }, [t("CButton", { staticClass: "absolute left-4 top-4", attrs: { circle: "", icon: "arrow-left" }, on: { click: function(n) {
|
|
137
|
-
e.view = "start";
|
|
138
|
-
} } }), t("div", { staticClass: "mb-2 text-lg font-semibold" }, [e._v(e._s(e.$t("howToFind")))]), t("div", { staticClass: "text-gray-700" }, [e._v(" " + e._s(e.$t("goto1")) + " "), t("a", { staticStyle: { "text-decoration": "underline" }, attrs: { href: "https://www.lantmateriet.se/", target: "_blank", rel: "noopener" } }, [e._v(" " + e._s(e.$t("goto2")) + " ")]), e._v(" " + e._s(e.$t("goto3")) + " ")])], 1) : e._e()]) : e._e(), e.view === "start" ? t("div", { key: 1, staticClass: "mb-12 text-center" }, [t("div", { staticClass: "mb-4 text-base font-medium" }, [e._v(e._s(e.$t("whereTitle")))]), t("div", { staticClass: "flex justify-center" }, [t("div", { staticClass: "mx-4" }, [t("div", { staticClass: "mb-2 flex h-24 w-24 cursor-pointer items-center justify-center rounded-xl border border-gray-300 bg-gray-50 hover:bg-gray-100 active:bg-gray-200", on: { click: function(n) {
|
|
139
|
-
e.view = "form", e.form = "realEstate";
|
|
140
|
-
} } }, [t("svg", { staticClass: "text-gray-400", attrs: { width: "59", height: "41", viewBox: "0 0 59 59", xmlns: "http://www.w3.org/2000/svg" } }, [t("g", { attrs: { fill: "currentColor", "fill-rule": "evenodd" } }, [t("path", { attrs: { d: "M6 28h47v29H6V28zm6 7.998101V40.0019C12 41.113294 12.89458 42 13.998101 42H18.0019C19.113294 42 20 41.10542 20 40.001899V35.9981C20 34.886706 19.10542 34 18.001899 34H13.9981C12.886706 34 12 34.89458 12 35.998101zm22-.007306V54h11V35.990795C45 34.898212 44.108144 34 43.007983 34h-7.015966C34.900177 34 34 34.89131 34 35.990795zM27.189354 1.837583C28.46549.536998 30.53366.53613 31.813677 1.840673L56.5 27h-54l9.85551-10.044348V7.141778h6.733007v2.95186l8.100837-8.256055zM25.5 15.861211v4.003797c0 1.111395.89458 1.998102 1.998101 1.998102H31.5019c1.111395 0 1.998101-.89458 1.998101-1.998102v-4.003797c0-1.111395-.89458-1.998101-1.998101-1.998101H27.4981c-1.111395 0-1.998101.89458-1.998101 1.998101z" } }), t("path", { attrs: { d: "M0 56.004882C0 54.897616.90314 54 1.996843 54h55.006314C58.105983 54 59 54.8939 59 56.004882V59H0v-2.995118z" } })])])]), t("div", { staticClass: "text-sm leading-tight text-gray-700" }, [e._v(" " + e._s(e.$t("house"))), t("br"), e._v("/ " + e._s(e.$t("realEstate")) + " ")])]), t("div", { staticClass: "mx-4" }, [t("div", { staticClass: "mb-2 flex h-24 w-24 cursor-pointer items-center justify-center rounded-xl border border-gray-300 bg-gray-50 hover:bg-gray-100 active:bg-gray-200", on: { click: function(n) {
|
|
141
|
-
e.view = "form", e.form = "condominium";
|
|
142
|
-
} } }, [t("svg", { staticClass: "text-gray-400", attrs: { width: "59", height: "50", viewBox: "0 0 59 73", xmlns: "http://www.w3.org/2000/svg" } }, [t("g", { attrs: { fill: "currentColor", "fill-rule": "evenodd" } }, [t("path", { attrs: { d: "M6 9.004723C6 7.34526 7.343394 6 8.993614 6h41.012771C51.659714 6 53 7.342697 53 9.004723V71H6V9.004723zm5 4.993378V18.0019C11 19.113294 11.89458 20 12.998101 20H17.0019C18.113294 20 19 19.10542 19 18.001899V13.9981C19 12.886706 18.10542 12 17.001899 12H12.9981C11.886706 12 11 12.89458 11 13.998101zm14.5 0V18.0019C25.5 19.113294 26.39458 20 27.498101 20H31.5019C32.613294 20 33.5 19.10542 33.5 18.001899V13.9981C33.5 12.886706 32.60542 12 31.501899 12H27.4981C26.386706 12 25.5 12.89458 25.5 13.998101zm14.5 0V18.0019C40 19.113294 40.89458 20 41.998101 20H46.0019C47.113294 20 48 19.10542 48 18.001899V13.9981C48 12.886706 47.10542 12 46.001899 12H41.9981C40.886706 12 40 12.89458 40 13.998101zm-29 12V30.0019C11 31.113294 11.89458 32 12.998101 32H17.0019C18.113294 32 19 31.10542 19 30.001899V25.9981C19 24.886706 18.10542 24 17.001899 24H12.9981C11.886706 24 11 24.89458 11 25.998101zm14.5 0V30.0019C25.5 31.113294 26.39458 32 27.498101 32H31.5019C32.613294 32 33.5 31.10542 33.5 30.001899V25.9981C33.5 24.886706 32.60542 24 31.501899 24H27.4981C26.386706 24 25.5 24.89458 25.5 25.998101zm14.5 0V30.0019C40 31.113294 40.89458 32 41.998101 32H46.0019C47.113294 32 48 31.10542 48 30.001899V25.9981C48 24.886706 47.10542 24 46.001899 24H41.9981C40.886706 24 40 24.89458 40 25.998101zm-29 12V42.0019C11 43.113294 11.89458 44 12.998101 44H17.0019C18.113294 44 19 43.10542 19 42.001899V37.9981C19 36.886706 18.10542 36 17.001899 36H12.9981C11.886706 36 11 36.89458 11 37.998101zm14.5 0V42.0019C25.5 43.113294 26.39458 44 27.498101 44H31.5019C32.613294 44 33.5 43.10542 33.5 42.001899V37.9981C33.5 36.886706 32.60542 36 31.501899 36H27.4981C26.386706 36 25.5 36.89458 25.5 37.998101zm14.5 0V42.0019C40 43.113294 40.89458 44 41.998101 44H46.0019C47.113294 44 48 43.10542 48 42.001899V37.9981C48 36.886706 47.10542 36 46.001899 36H41.9981C40.886706 36 40 36.89458 40 37.998101zm-29 12V54.0019C11 55.113294 11.89458 56 12.998101 56H17.0019C18.113294 56 19 55.10542 19 54.001899V49.9981C19 48.886706 18.10542 48 17.001899 48H12.9981C11.886706 48 11 48.89458 11 49.998101zm14.5 0V54.0019C25.5 55.113294 26.39458 56 27.498101 56H31.5019C32.613294 56 33.5 55.10542 33.5 54.001899V49.9981C33.5 48.886706 32.60542 48 31.501899 48H27.4981C26.386706 48 25.5 48.89458 25.5 49.998101zM21 60.997391V68h17v-7.002608C38 59.895858 37.104522 59 35.999894 59H23.000106C21.890058 59 21 59.894263 21 60.997392zm19-10.99929V54.0019C40 55.113294 40.89458 56 41.998101 56H46.0019C47.113294 56 48 55.10542 48 54.001899V49.9981C48 48.886706 47.10542 48 46.001899 48H41.9981C40.886706 48 40 48.89458 40 49.998101zM10 2.5C10 1.119288 11.125134 0 12.498953 0h34.002094C47.88118 0 49 1.109662 49 2.5V5H10V2.5z" } }), t("path", { attrs: { d: "M0 70.004881C0 68.897616.90314 68 1.996843 68h55.006314C58.105983 68 59 68.8939 59 70.004881V73H0v-2.995119z" } })])])]), t("div", { staticClass: "text-sm leading-tight text-gray-700" }, [e._v(" " + e._s(e.$t("condominium"))), t("br"), e._v("/ " + e._s(e.$t("apartment")) + " ")])])])]) : e._e(), e.view === "form" ? t("div", { key: 2 }, [t("div", [e.form === "realEstate" ? t("CField", { attrs: { vuelidate: e.$v.realEstateId, "vuelidate-messages": e.messages.realEstateId, label: e.$t("propertyDesignation") } }, [t("CInput", { attrs: { placeholder: e.$t("propertyDesignationPlaceholder") }, model: { value: e.realEstateId, callback: function(n) {
|
|
143
|
-
e.realEstateId = n;
|
|
144
|
-
}, expression: "realEstateId" } })], 1) : e._e(), e.form === "condominium" ? t("CField", { attrs: { vuelidate: e.$v.condominiumId, "vuelidate-messages": e.messages.condominiumId, label: e.$t("condominiumId") } }, [t("CInput", { attrs: { placeholder: e.$t("condominiumIdPlaceholder"), type: "number" }, model: { value: e.condominiumId, callback: function(n) {
|
|
145
|
-
e.condominiumId = n;
|
|
146
|
-
}, expression: "condominiumId" } })], 1) : e._e(), e.form === "condominium" ? t("CField", { attrs: { vuelidate: e.$v.condominiumOrgNo, "vuelidate-messages": e.messages.condominiumOrgNo, label: e.$t("condominiumOrgNo") } }, [t("CInput", { attrs: { placeholder: e.$t("condominiumOrgNoPlaceholder"), type: "number" }, model: { value: e.condominiumOrgNo, callback: function(n) {
|
|
147
|
-
e.condominiumOrgNo = n;
|
|
148
|
-
}, expression: "condominiumOrgNo" } })], 1) : e._e(), t("div", { staticClass: "mt-8" }, [t("CButton", { attrs: { type: "secondary", wide: "" }, on: { click: e.updateClientPropertyDesignation } }, [e._v(e._s(e.$t("_common:save")))])], 1)], 1)]) : e._e(), e.view === "complete" ? t("div", { key: 3 }, [t("div", { staticClass: "flex flex-col items-center justify-center text-center" }, [t("div", { staticClass: "bg-primary-50 mb-4 flex h-12 w-12 items-center justify-center rounded-full" }, [t("CIcon", { staticClass: "text-primary-500", attrs: { type: "check" } })], 1), t("div", { staticClass: "mb-1 text-base font-semibold" }, [e._v(" " + e._s(e.$t("savedTitle")) + " ")]), t("div", { staticClass: "mb-6 text-base text-gray-700" }, [e._v(" " + e._s(e.$t("savedSubTitle", { senderName: e.senderName })) + " ")]), t("div", { staticClass: "mt-4 w-full" }, [t("CButton", { attrs: { type: "secondary", wide: "" }, on: { click: function(n) {
|
|
149
|
-
return e.$emit("close");
|
|
150
|
-
} } }, [e._v(e._s(e.$t("_common:close")))])], 1)])]) : e._e()])], 1);
|
|
151
|
-
}, f = [], y = /* @__PURE__ */ d(
|
|
152
|
-
w,
|
|
153
|
-
C,
|
|
154
|
-
f,
|
|
155
|
-
!1,
|
|
156
|
-
null,
|
|
157
|
-
null
|
|
158
|
-
);
|
|
159
|
-
const $ = y.exports, b = {
|
|
160
|
-
i18nOptions: {
|
|
161
|
-
namespaces: "docAnswer",
|
|
162
|
-
messages: {
|
|
163
|
-
en: {
|
|
164
|
-
previewTooltip: "Only your clients can answer"
|
|
165
|
-
},
|
|
166
|
-
sv: {
|
|
167
|
-
previewTooltip: "Enbart din mottagare kan besvara"
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
name: "DocumentAnswerRead",
|
|
172
|
-
mixins: [h({ documentKey: "_document" }), c],
|
|
173
|
-
inject: {
|
|
174
|
-
isPdf: {
|
|
175
|
-
default: !1
|
|
176
|
-
},
|
|
177
|
-
customHtmlAccept: {
|
|
178
|
-
default: ""
|
|
179
|
-
},
|
|
180
|
-
customHtmlDeny: {
|
|
181
|
-
default: ""
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
props: {
|
|
185
|
-
_document: {
|
|
186
|
-
type: Object,
|
|
187
|
-
required: !0
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
data() {
|
|
191
|
-
return {
|
|
192
|
-
isInViewport: !1,
|
|
193
|
-
scrollToElement: p
|
|
194
|
-
};
|
|
195
|
-
},
|
|
196
|
-
computed: {
|
|
197
|
-
viewerId() {
|
|
198
|
-
var i;
|
|
199
|
-
return ((i = this._document._doc) == null ? void 0 : i.viewerId) || null;
|
|
200
|
-
},
|
|
201
|
-
isPreview() {
|
|
202
|
-
return this._document.isPreview;
|
|
203
|
-
},
|
|
204
|
-
modalHeight() {
|
|
205
|
-
return this.mq === "sm" ? "100%" : "auto";
|
|
206
|
-
},
|
|
207
|
-
allowPropertyDesignation() {
|
|
208
|
-
const { prices: i } = this._document;
|
|
209
|
-
if (!i || !i.region)
|
|
210
|
-
return !1;
|
|
211
|
-
const { houseWorkType: e } = i.region;
|
|
212
|
-
return ["rot", "greenRot15", "greenRot20", "greenRot50"].includes(
|
|
213
|
-
e
|
|
214
|
-
);
|
|
215
|
-
},
|
|
216
|
-
propertyDesignation() {
|
|
217
|
-
return l(this._document, "clients[0].region.propertyDesignation", null);
|
|
218
|
-
}
|
|
219
|
-
},
|
|
220
|
-
watch: {
|
|
221
|
-
$route: {
|
|
222
|
-
immediate: !0,
|
|
223
|
-
handler(i) {
|
|
224
|
-
i != null && i.hash && this.onAnswer("accept", { calcHeight: !0 });
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
isInViewport: {
|
|
228
|
-
immediate: !0,
|
|
229
|
-
handler(i, e) {
|
|
230
|
-
i !== e && u.trigger("ui:document.block.answer.visible", i);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
mounted() {
|
|
235
|
-
window.addEventListener("scroll", this.scrollHandler, {
|
|
236
|
-
capture: !0,
|
|
237
|
-
passive: !0
|
|
238
|
-
}), this.$route.name === "docPropertyDesignation" && this.showPropertyDesignation();
|
|
239
|
-
},
|
|
240
|
-
destroyed() {
|
|
241
|
-
window.removeEventListener("scroll", this.scrollHandler);
|
|
242
|
-
},
|
|
243
|
-
methods: {
|
|
244
|
-
scrollHandler() {
|
|
245
|
-
this.$refs.answerButtons && (this.isInViewport = v(this.$refs.answerButtons));
|
|
246
|
-
},
|
|
247
|
-
showPropertyDesignation() {
|
|
248
|
-
this.$modal.show(
|
|
249
|
-
$,
|
|
250
|
-
{
|
|
251
|
-
senderName: this._document.sender.user.name,
|
|
252
|
-
propertyDesignation: this.propertyDesignation,
|
|
253
|
-
fullScreen: this.modalHeight === "100%"
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
adaptive: !0,
|
|
257
|
-
height: this.modalHeight,
|
|
258
|
-
width: "100%",
|
|
259
|
-
maxWidth: this.modalHeight === "100%" ? 999 : 400,
|
|
260
|
-
classes: "overflow-visible",
|
|
261
|
-
transition: "fade-in-slide-up"
|
|
262
|
-
}
|
|
263
|
-
);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
};
|
|
267
|
-
var x = function() {
|
|
268
|
-
var n, o;
|
|
269
|
-
var e = this, t = e._self._c;
|
|
270
|
-
return e._document.answerActions.showActions && !e.isPdf ? t("div", { staticStyle: { padding: "calc(3 * var(--rem)) 0" } }, [t("div", { ref: "answerButtons", staticClass: "flex w-full justify-center" }, [t("transition", { attrs: { name: "fade", mode: "out-in" } }, [((o = (n = e._document.viewer) == null ? void 0 : n.answerMethod) == null ? void 0 : o.accept) === "inPerson" ? t("div", { key: 0, staticStyle: { "max-width": "720px", margin: "0 auto", padding: "0 calc(3 * var(--rem))" }, style: e.mq === "sm" ? { padding: "0 calc(1.5 * var(--rem))" } : null }, [e._v(" " + e._s(e._document.$t("chapters.answerButtons.inPersonSignatureHint")) + " "), t(e._document.sender.user.email ? "a" : "span", { tag: "component", attrs: { href: `mailto:${e._document.sender.user.email}` } }, [e._v(" " + e._s(e._document.sender.company.name || e._document.$t("theSender")) + " ")])], 1) : (e._document.answerActions.canAnswer || e.isPreview) && e._document.answerActions.showActions ? t("div", { key: 1, staticClass: "flex w-full justify-center" }, [e.customHtmlDeny ? t("div", { domProps: { innerHTML: e._s(e.customHtmlDeny) }, on: { click: function(r) {
|
|
271
|
-
return e.onAnswer("decline");
|
|
272
|
-
} } }) : t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.isPreview && e.$t("previewTooltip"), expression: "isPreview && $t('previewTooltip')" }], staticClass: "text-gray-400", attrs: { disabled: e.isPreview, size: "medium" }, on: { click: function(r) {
|
|
273
|
-
return e.onAnswer("decline");
|
|
274
|
-
} } }, [e._v(" " + e._s(e._document.$t("deny").capitalize()) + " ")]), e.customHtmlAccept ? t("div", { domProps: { innerHTML: e._s(e.customHtmlAccept) }, on: { click: function(r) {
|
|
275
|
-
return e.onAnswer("accept");
|
|
276
|
-
} } }) : t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.isPreview && e.$t("previewTooltip"), expression: "isPreview && $t('previewTooltip')" }], staticStyle: { "margin-left": "1em", "padding-left": "1.5em", "padding-right": "1.5em", background: "var(--block-answer-accept-bg, hsl(114deg, 75%, 43%))" }, attrs: { "icon-props": { strokeWidth: 2.5 }, disabled: e.isPreview, type: "success", size: "medium", "icon-left": "check", raised: "" }, on: { click: function(r) {
|
|
277
|
-
return e.onAnswer("accept");
|
|
278
|
-
} } }, [e._v(" " + e._s(e._document.$t("sign").capitalize()) + " ")])], 1) : e._document.answerActions.hasAnswered && e._document.answerActions.waitingForOthers ? t("div", { key: 2, staticClass: "text-center" }, [t("div", { staticStyle: { "font-weight": "600", "font-size": "calc(calc(1 * var(--rem)) + 2px)", "margin-bottom": "calc(0.5 * var(--rem))" } }, [e._v(" " + e._s(e._document.$t("chapters.answerButtons.youHave")) + " "), t("span", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: `${e.$formatDate(e._document.viewer.answer.didAnswerAt, "Pp")}`, expression: "\n `${$formatDate(_document.viewer.answer.didAnswerAt, 'Pp')}`\n " }], staticStyle: { "text-decoration": "underline" } }, [e._v(e._s(e._document.viewer.answer.didAccept ? e._document.$t("approved") : e._document.$t("denied")))]), e._v(" " + e._s(" " + e._document.$t("theDocument")) + ". ")]), t("div", [e._v(" " + e._s(e._document.$t("chapters.answerButtons.waitingDescription", { remaining: e._document.remainingSignatures })) + " ")])]) : e._document.status === "accepted" ? t("div", { key: 3 }, [t("div", { staticClass: "callout accepted" }, [t("div", { staticClass: "title" }, [e._v(" " + e._s(e._document.$t("chapters.answerButtons.approveTitle")) + " ")]), t("div", [e._v(" " + e._s(e._document.$t("chapters.answerButtons.approveDescription", { sender: e._document.sender.company.name || e._document.$t("theSender") })) + " ")])])]) : e._document.status === "denied" ? t("div", { key: 4, staticClass: "callout denied" }, [t("div", { staticClass: "title" }, [e._v(" " + e._s(e._document.$t("chapters.answerButtons.denyTitle")) + " ")]), t("div", [e._v(" " + e._s(e._document.$t("chapters.answerButtons.denyDescription", { sender: e._document.sender.company.name || e._document.$t("theSender") })) + " ")])]) : e._document.status === "expired" ? t("div", { key: 5, staticClass: "callout expired" }, [t("div", { staticClass: "title" }, [e._v(" " + e._s(e._document.$t("chapters.answerButtons.expiredTitle")) + " ")]), t("div", [e._v(" " + e._s(e._document.$t("chapters.answerButtons.expiredDescription", { sender: e._document.sender.company.name || e._document.$t("theSender") })) + " ")])]) : e._e()])], 1), e._document.status === "accepted" && e.allowPropertyDesignation && e._document.answerActions.hasAnswered ? t("div", { staticClass: "flex justify-center" }, [t("div", { staticClass: "answer button accept", staticStyle: { "padding-left": "calc(1.5 * var(--rem))", "padding-right": "calc(1.5 * var(--rem))" }, on: { click: function(r) {
|
|
279
|
-
return e.showPropertyDesignation();
|
|
280
|
-
} } }, [e._v(" " + e._s(e._document.$t(`chapters.answerButtons.${e.propertyDesignation ? "editPropDes" : "enterPropDes"}`)) + " ")])]) : e._e()]) : e._e();
|
|
281
|
-
}, H = [], D = /* @__PURE__ */ d(
|
|
282
|
-
b,
|
|
283
|
-
x,
|
|
284
|
-
H,
|
|
285
|
-
!1,
|
|
286
|
-
null,
|
|
287
|
-
"a09f8d01"
|
|
288
|
-
);
|
|
289
|
-
const N = D.exports;
|
|
290
|
-
export {
|
|
291
|
-
N as default
|
|
292
|
-
};
|
package/dist/Index-D95MNzAZ.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { m as r } from "./mapFormMixin-Ce3_WIKw.js";
|
|
2
|
-
import { I as n } from "./InputToggleRow-Ct8rvqAF.js";
|
|
3
|
-
import { B as s } from "./BaseDatePicker-BSkAllLg.js";
|
|
4
|
-
import { n as l } from "./main-Bp2qcma0.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-DB5EG4EI.js
DELETED
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
import { m as C } from "./mapFormMixin-Ce3_WIKw.js";
|
|
2
|
-
import { n as f, b as _ } from "./main-Bp2qcma0.js";
|
|
3
|
-
import { C as b } from "./CPhoneFormat-DXPrTit9.js";
|
|
4
|
-
const $ = {
|
|
5
|
-
name: "DocPartiesItem",
|
|
6
|
-
components: {
|
|
7
|
-
CPhoneFormat: b
|
|
8
|
-
},
|
|
9
|
-
props: {
|
|
10
|
-
label: {
|
|
11
|
-
type: String,
|
|
12
|
-
required: !0
|
|
13
|
-
},
|
|
14
|
-
data: {
|
|
15
|
-
type: [String, Object],
|
|
16
|
-
required: !0
|
|
17
|
-
},
|
|
18
|
-
type: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: ""
|
|
21
|
-
},
|
|
22
|
-
canEdit: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: !1
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
var w = function() {
|
|
29
|
-
var e = this, t = e._self._c;
|
|
30
|
-
return t("div", { staticClass: "client-row" }, [t("div", { staticClass: "label" }, [e._v(" " + e._s(e.label) + " ")]), t("div", { staticClass: "data", class: {
|
|
31
|
-
"is-editable": e.canEdit
|
|
32
|
-
} }, [t("span", { on: { click: function(a) {
|
|
33
|
-
return e.$emit("click");
|
|
34
|
-
} } }, [e.type === "phone" ? t("CPhoneFormat", { attrs: { phone: e.data.cellphone, region: e.data.region } }) : [e._v(e._s(e.data))]], 2)])]);
|
|
35
|
-
}, k = [], x = /* @__PURE__ */ f(
|
|
36
|
-
$,
|
|
37
|
-
w,
|
|
38
|
-
k,
|
|
39
|
-
!1,
|
|
40
|
-
null,
|
|
41
|
-
"9bad68ca"
|
|
42
|
-
);
|
|
43
|
-
const S = x.exports, F = {
|
|
44
|
-
client: () => import("./ClientModal-Dznh8Vvn.js"),
|
|
45
|
-
company: () => import("./CompanyModal-CeZ3GgLu.js")
|
|
46
|
-
}, I = {
|
|
47
|
-
i18nOptions: {
|
|
48
|
-
namespaces: "components"
|
|
49
|
-
},
|
|
50
|
-
name: "DocParties",
|
|
51
|
-
components: {
|
|
52
|
-
DocPartiesItem: S,
|
|
53
|
-
AddClientCallout: () => import("./AddClientCallout-BP2ip0A4.js")
|
|
54
|
-
},
|
|
55
|
-
mixins: [C()],
|
|
56
|
-
props: {
|
|
57
|
-
// todo: atm custom behaviour for path 'data.sender' through doc-class
|
|
58
|
-
parties: {
|
|
59
|
-
type: [Array, Object],
|
|
60
|
-
default: () => []
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
data() {
|
|
64
|
-
return {
|
|
65
|
-
type: "client",
|
|
66
|
-
hoverIndex: null
|
|
67
|
-
};
|
|
68
|
-
},
|
|
69
|
-
computed: {
|
|
70
|
-
mappedParties() {
|
|
71
|
-
const n = (t, a = {}) => this._document.$t(t, { postProcess: "capitalize", ...a });
|
|
72
|
-
return (Array.isArray(this.parties) ? this.parties : [this.parties]).map((t) => {
|
|
73
|
-
const {
|
|
74
|
-
orgNo: a,
|
|
75
|
-
socialNo: i,
|
|
76
|
-
companyName: s,
|
|
77
|
-
name: r,
|
|
78
|
-
type: d,
|
|
79
|
-
cellphone: m,
|
|
80
|
-
cellphoneRegion: y,
|
|
81
|
-
email: u,
|
|
82
|
-
addresses: l,
|
|
83
|
-
hasFSkatt: v,
|
|
84
|
-
hasInsurance: h
|
|
85
|
-
} = t, c = d === "individual", o = l && (l.standard || l.work);
|
|
86
|
-
o && (o.formKey = l.standard ? "street" : "workStreet");
|
|
87
|
-
const g = [
|
|
88
|
-
s && {
|
|
89
|
-
label: n("company"),
|
|
90
|
-
value: s,
|
|
91
|
-
formKey: "name"
|
|
92
|
-
},
|
|
93
|
-
a && {
|
|
94
|
-
label: n("orgNoShort"),
|
|
95
|
-
value: a,
|
|
96
|
-
formKey: "orgNo"
|
|
97
|
-
},
|
|
98
|
-
r && {
|
|
99
|
-
label: n(c ? "name" : "reference"),
|
|
100
|
-
value: r,
|
|
101
|
-
formKey: c ? "name" : "reference"
|
|
102
|
-
},
|
|
103
|
-
i && c && {
|
|
104
|
-
label: n("socialNo"),
|
|
105
|
-
value: i,
|
|
106
|
-
formKey: "orgNo"
|
|
107
|
-
},
|
|
108
|
-
u && {
|
|
109
|
-
label: n("email"),
|
|
110
|
-
value: u,
|
|
111
|
-
formKey: "email"
|
|
112
|
-
},
|
|
113
|
-
m && {
|
|
114
|
-
label: n("phone"),
|
|
115
|
-
type: "phone",
|
|
116
|
-
value: {
|
|
117
|
-
cellphone: m,
|
|
118
|
-
region: y || _(this._document, "sender.company.region", "")
|
|
119
|
-
},
|
|
120
|
-
formKey: "cellphone"
|
|
121
|
-
},
|
|
122
|
-
o && {
|
|
123
|
-
label: n("address"),
|
|
124
|
-
value: this.parseStreet(o.street, o.city, o.zip),
|
|
125
|
-
formKey: o.formKey
|
|
126
|
-
}
|
|
127
|
-
], p = [];
|
|
128
|
-
return v && p.push({
|
|
129
|
-
label: this._document.$t("chapters.parties.fTax"),
|
|
130
|
-
value: v
|
|
131
|
-
}), h && p.push({
|
|
132
|
-
label: this._document.$t("chapters.parties.allRiskAndLiability"),
|
|
133
|
-
value: h
|
|
134
|
-
}), {
|
|
135
|
-
main: g,
|
|
136
|
-
checks: p
|
|
137
|
-
};
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
created() {
|
|
142
|
-
_(this, "_value.parties", "") !== "clients" && (this.type = "company");
|
|
143
|
-
},
|
|
144
|
-
methods: {
|
|
145
|
-
openModal({ formKey: n, index: e } = {}) {
|
|
146
|
-
var i;
|
|
147
|
-
let t = "name", a = !1;
|
|
148
|
-
n && (t = n, ["name", "email", "cellphone", "reference"].includes(n) || (a = !0)), this.$modal.show(F[this.type], {
|
|
149
|
-
inputFocusOnMount: t,
|
|
150
|
-
forceExpand: a,
|
|
151
|
-
documentClientIndex: e,
|
|
152
|
-
signOptions: (i = this._document) == null ? void 0 : i.signOptions,
|
|
153
|
-
setFormValue: this.viewSettings.setFormValue,
|
|
154
|
-
removeFormValue: this.viewSettings.removeFormValue,
|
|
155
|
-
isPublicForm: this.viewSettings.isPublicForm
|
|
156
|
-
});
|
|
157
|
-
},
|
|
158
|
-
removeClient(n) {
|
|
159
|
-
this.parties[n] && this.removeField(`clients[${n}]`);
|
|
160
|
-
},
|
|
161
|
-
parseStreet(n, e, t) {
|
|
162
|
-
let a = "";
|
|
163
|
-
return n && (a += n), n && (t || e) && (a += ", "), t && (a += ` ${t}`), e && (a += ` ${e}`), a;
|
|
164
|
-
},
|
|
165
|
-
searchEndCustomers(n, e) {
|
|
166
|
-
n({
|
|
167
|
-
q: e,
|
|
168
|
-
cb: ({ endCustomer: t }) => {
|
|
169
|
-
this.results = t;
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
},
|
|
173
|
-
setClient(n) {
|
|
174
|
-
this.$emit("input", {
|
|
175
|
-
key: `clients[${this.parties.length}]`,
|
|
176
|
-
value: n
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
var P = function() {
|
|
182
|
-
var e = this, t = e._self._c;
|
|
183
|
-
return t("div", { staticStyle: { position: "relative" } }, [e.viewSettings.canEdit ? t("div", { staticClass: "edit-button" }, [e.type === "company" ? t("CButton", { attrs: { type: "none", size: "small", pattern: "secondary" }, on: { click: e.openModal } }, [e._v(" " + e._s(e.$t("_common:edit").capitalize()) + " ")]) : e.parties.length && e.type === "client" ? t("CDropdown", { ref: "dropdown", attrs: { position: "is-bottom-left" } }, [t("CButton", { attrs: { slot: "trigger", type: "none", size: "small", pattern: "secondary", "icon-right": "chevron-down" }, slot: "trigger" }, [e._v(" " + e._s(e.$t("_common:more").capitalize()) + " ")]), t("CDropdownItem", { attrs: { "icon-props": {
|
|
184
|
-
class: "text-primary-500"
|
|
185
|
-
}, "icon-left": "plus-circle" }, on: { click: function(a) {
|
|
186
|
-
return e.openModal({ index: e.parties.length });
|
|
187
|
-
} } }, [e._v(" " + e._s(e.$t("components:account.documentForm.clients.add.extra")) + " ")]), t("CDropdownItem", { attrs: { separator: "" } }), e._l(e.parties, function(a, i) {
|
|
188
|
-
return t("CDropdownItem", { key: i, attrs: { "icon-props": {
|
|
189
|
-
class: "text-gray-400"
|
|
190
|
-
}, "icon-left": "edit" }, on: { click: function(s) {
|
|
191
|
-
return e.openModal({ index: i });
|
|
192
|
-
} } }, [e._v(" " + e._s(a.type === "individual" ? a.name : a.companyName || a.name) + " ")]);
|
|
193
|
-
})], 2) : e._e()], 1) : e._e(), e.viewSettings.canEdit ? [e.type === "client" && !(e.parties && e.parties.length) ? t("AddClientCallout", { on: { add: function(a) {
|
|
194
|
-
return e.openModal({ index: e.parties.length });
|
|
195
|
-
}, setClient: e.setClient } }) : e._e(), e.type === "company" && e.viewSettings.isPublicForm && !(e.parties.companyName || e.parties.email) ? t("CCallout", { attrs: { title: e.$t("document.chapters.parties.missingSender.title") } }, [t("div", { staticStyle: { "padding-bottom": "1em" } }, [e._v(" " + e._s(e.$t("document.chapters.parties.missingSender.description")) + " ")]), t("CButton", { attrs: { "icon-left": "plus", type: "secondary" }, on: { click: e.openModal } }, [e._v(" " + e._s(e.$t("_common:add", { thing: e.$t("_common:info") })) + " ")])], 1) : e._e()] : e._e(), e._l(e.mappedParties, function(a, i) {
|
|
196
|
-
return t("div", { key: i, staticClass: "party-wrapper print-avoid-break-inside", on: { "&mouseover": function(s) {
|
|
197
|
-
e.hoverIndex = i;
|
|
198
|
-
}, "&mouseleave": function(s) {
|
|
199
|
-
e.hoverIndex = null;
|
|
200
|
-
} } }, [e.viewSettings.canEdit && e.type !== "company" && e.hoverIndex === i ? t("div", { staticClass: "controls", staticStyle: { position: "absolute", left: "100%", top: "0", "padding-left": "calc(0.5 * var(--rem))" } }, [t("CButton", { attrs: { circle: "", size: "small", icon: "edit", type: "none", pattern: "tertiary" }, on: { click: function(s) {
|
|
201
|
-
return e.openModal({ index: i });
|
|
202
|
-
} } }), t("CButton", { attrs: { circle: "", size: "small", icon: "x", type: "none", pattern: "tertiary" }, on: { click: function(s) {
|
|
203
|
-
return e.removeClient(i);
|
|
204
|
-
} } })], 1) : e._e(), e._l(a.main, function(s, r) {
|
|
205
|
-
return [s ? t("DocPartiesItem", { key: r, attrs: { label: s.label, data: s.value, type: s.type, "can-edit": e.viewSettings.canEdit }, on: { click: function(d) {
|
|
206
|
-
e.viewSettings.canEdit && e.openModal({ formKey: s.formKey, index: i });
|
|
207
|
-
} } }) : e._e()];
|
|
208
|
-
}), a.checks && a.checks.length ? t("div", { staticStyle: { width: "100%", "padding-top": "calc(1 * var(--rem))" } }, e._l(a.checks, function(s, r) {
|
|
209
|
-
return t("div", { key: r, staticClass: "check-text" }, [t("svg", { attrs: { width: "11", height: "11", viewBox: "0 0 218 185", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { staticClass: "primary-svg-fill", attrs: { d: "M217.931476 30.821773L180.506583.515692 85.82601 117.436462 29.993388 72.224097.068524 109.178227l93.257515 75.518447z", fill: "#D8D8D8", "fill-rule": "evenodd" } })]), t("div", [e._v(e._s(s.label))])]);
|
|
210
|
-
}), 0) : e._e()], 2);
|
|
211
|
-
})], 2);
|
|
212
|
-
}, D = [], M = /* @__PURE__ */ f(
|
|
213
|
-
I,
|
|
214
|
-
P,
|
|
215
|
-
D,
|
|
216
|
-
!1,
|
|
217
|
-
null,
|
|
218
|
-
"b2458bb1"
|
|
219
|
-
);
|
|
220
|
-
const N = M.exports;
|
|
221
|
-
export {
|
|
222
|
-
N as default
|
|
223
|
-
};
|
package/dist/Index-DDvRihXA.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { m as r } from "./mapFormMixin-Ce3_WIKw.js";
|
|
2
|
-
import { n } from "./main-Bp2qcma0.js";
|
|
3
|
-
const s = {
|
|
4
|
-
name: "WorkAddressText",
|
|
5
|
-
components: {
|
|
6
|
-
Read: () => import("./Index-Couda8BX.js")
|
|
7
|
-
},
|
|
8
|
-
mixins: [r(["street", "city", "zip"])]
|
|
9
|
-
};
|
|
10
|
-
var o = function() {
|
|
11
|
-
var e = this, t = e._self._c;
|
|
12
|
-
return t("Read", { attrs: { street: e.street, city: e.city, zip: e.zip } });
|
|
13
|
-
}, i = [], a = /* @__PURE__ */ n(
|
|
14
|
-
s,
|
|
15
|
-
o,
|
|
16
|
-
i,
|
|
17
|
-
!1,
|
|
18
|
-
null,
|
|
19
|
-
null
|
|
20
|
-
);
|
|
21
|
-
const p = a.exports;
|
|
22
|
-
export {
|
|
23
|
-
p as default
|
|
24
|
-
};
|
package/dist/Index-DIAntwBs.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { P as r } from "./PlainHtml-C3JPvt4o.js";
|
|
2
|
-
import { n as o } from "./main-Bp2qcma0.js";
|
|
3
|
-
const s = {
|
|
4
|
-
name: "ExtraWorkTimeImpactTextRead",
|
|
5
|
-
props: {
|
|
6
|
-
workStartAt: {
|
|
7
|
-
type: String,
|
|
8
|
-
default: null
|
|
9
|
-
},
|
|
10
|
-
workEndAt: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: null
|
|
13
|
-
},
|
|
14
|
-
timeDeltaDirection: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: "increase"
|
|
17
|
-
},
|
|
18
|
-
noOfTimeUnits: {
|
|
19
|
-
type: Number,
|
|
20
|
-
default: 0
|
|
21
|
-
},
|
|
22
|
-
timeUnit: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: "days"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
i18nOptions: {
|
|
28
|
-
namespaces: "ExtraWorkTimeImpactTextRead",
|
|
29
|
-
sv: {
|
|
30
|
-
description1: "Arbetet kommer att påbörjas den",
|
|
31
|
-
description2: "och ska senast vara klar den ",
|
|
32
|
-
description3: " På grund av ändringar och / eller tilläggsarbete",
|
|
33
|
-
description4: " den ursprungliga kontraktstiden med"
|
|
34
|
-
},
|
|
35
|
-
en: {
|
|
36
|
-
description1: "The work will commence",
|
|
37
|
-
description2: "and be complete at the latest ",
|
|
38
|
-
description3: " Because of amendments and / or additional work, the original contract period will",
|
|
39
|
-
description4: " by"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
// eslint-disable-next-line no-unused-vars
|
|
43
|
-
render(t) {
|
|
44
|
-
const e = this.$formatDate(this.workStartAt), n = this.$formatDate(this.workEndAt), i = this.$tc(`_common:${this.timeUnit}`, {
|
|
45
|
-
count: this.noOfTimeUnits
|
|
46
|
-
});
|
|
47
|
-
return t(r, [this.$t("description1"), " ", t("strong", [e]), " ", this.$t("description2"), t("strong", [n]), ".", this.$t("description3"), " ", t("strong", [this.$t(`_common:${this.timeDeltaDirection}`)]), this.$t("description4"), " ", t("strong", [i]), "."]);
|
|
48
|
-
}
|
|
49
|
-
}, a = null, c = null;
|
|
50
|
-
var d = /* @__PURE__ */ o(
|
|
51
|
-
s,
|
|
52
|
-
a,
|
|
53
|
-
c,
|
|
54
|
-
!1,
|
|
55
|
-
null,
|
|
56
|
-
null
|
|
57
|
-
);
|
|
58
|
-
const p = d.exports;
|
|
59
|
-
export {
|
|
60
|
-
p as default
|
|
61
|
-
};
|