@cling-se/widget 0.17.2 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/AddClientCallout-Bod9Eqx4.js +101 -0
- package/dist/AnswerModal-a2cyKFbt.js +3371 -0
- package/dist/AttachmentItem-DBUqckCS.js +171 -0
- package/dist/BaseUpload-DrWzuvbS.js +6503 -0
- package/dist/BlockMedia-DuE_K9hR.js +103 -0
- package/dist/CCallout-CM1VsH30.js +104 -0
- package/dist/{CCurrencyDropdown-CKRgncWy.js → CCurrencyDropdown-C_lAaq4P.js} +91 -53
- package/dist/CDropdownItem-DMUAJ90n.js +749 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-BqAyWe3T.js +292 -0
- package/dist/{CPhoneFormat-Bd-HZuYo.js → CPhoneFormat-Dnn_cKk7.js} +13 -21
- package/dist/CPhoneInput-DuGkDiv-.js +207 -0
- package/dist/CPriceInput-B7DYzKcF.js +142 -0
- package/dist/CSelect-BZZDr27O.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-D2jDhnYI.js +51 -0
- package/dist/ClientAutocomplete-DuaJ5zDf.js +532 -0
- package/dist/ClientModal-CaMSjLkD.js +1188 -0
- package/dist/ColorPicker-BISZPQ6j.js +1408 -0
- package/dist/CompanyModal-ClTcmU4Y.js +250 -0
- package/dist/ContentWrapper-Bj7jbWU0.js +265 -0
- package/dist/CoverBlockSettings-AXyiLxrF.js +861 -0
- package/dist/DocAnswer-Bu09V33D.js +33 -0
- package/dist/DocDetails-B6-2LKsO.js +452 -0
- package/dist/DocForm-CFN8LWSd.js +6772 -0
- package/dist/DocFormSend-D1CUhy4n.js +171 -0
- package/dist/DocLinks-CuliFqtN.js +36 -0
- package/dist/DocModalBase-BxKsnwN-.js +29 -0
- package/dist/DocPrint-B_HJ_RET.js +399 -0
- package/dist/DocReceipt-D-A1TaTI.js +341 -0
- package/dist/DocSendReminder-BKTJonzh.js +181 -0
- package/dist/{DocTextEditor-DFid7uKr.js → DocTextEditor-CEPcJT2o.js} +7907 -5579
- package/dist/DocTimeline-CF9S4YDZ.js +537 -0
- package/dist/DocumentClient-7mbq2QA4.js +90 -0
- package/dist/DocumentLayout-DkFlHgW6.js +1434 -0
- package/dist/DocumentLogotype-BTYMdpNi.js +162 -0
- package/dist/DocumentVoided-CWr5WMUv.js +33 -0
- package/dist/EmbedInput-SevVEpwc.js +156 -0
- package/dist/EmbedSettings-YMbUmp1O.js +103 -0
- package/dist/ErrorCallout-CQo2iF9c.js +34 -0
- package/dist/FilePreviewModal-C0xBeoAz.js +202 -0
- package/dist/Flag-BObij6SN.js +41 -0
- package/dist/HeaderSettings-C77pR78n.js +720 -0
- package/dist/ImageSelectModal-DKdU-0uq.js +119 -0
- package/dist/ImageUploadWrapper-BGkS5Cll.js +1585 -0
- package/dist/Index-B3y-jq9s.js +1098 -0
- package/dist/Index-B41pUREi.js +47 -0
- package/dist/Index-BEyeS1OG.js +52 -0
- package/dist/Index-BG5j8ZFP.js +93 -0
- package/dist/Index-BOT65yQR.js +68 -0
- package/dist/Index-BQNl-cXP.js +28 -0
- package/dist/Index-BY6xsS7C.js +38 -0
- package/dist/Index-Bh0Xv5ry.js +163 -0
- package/dist/Index-Bn4FSQcx.js +228 -0
- package/dist/Index-BrRIAede.js +87 -0
- package/dist/Index-C-6um0kX.js +76 -0
- package/dist/{Index-EO0rsTmx.js → Index-C-gHa5xk.js} +319 -214
- package/dist/Index-C0wcjKCH.js +629 -0
- package/dist/Index-C6BbUFYw.js +160 -0
- package/dist/Index-C8xwJ0m1.js +200 -0
- package/dist/Index-CKgFEJF4.js +140 -0
- package/dist/{Index-CbYLDVU5.js → Index-CQwmu4f1.js} +47 -60
- package/dist/Index-CXchTpBa.js +74 -0
- package/dist/{Index-BzcZCdHj.js → Index-CYoRt8PA.js} +9 -17
- package/dist/Index-CZZNQ4q5.js +39 -0
- package/dist/Index-CkaAs5ms.js +136 -0
- package/dist/Index-CtpXaBz8.js +363 -0
- package/dist/Index-CxDsSGtZ.js +126 -0
- package/dist/Index-DFkTBm02.js +102 -0
- package/dist/Index-DP3ll8F-.js +70 -0
- package/dist/{Index-BdJbs8bM.js → Index-DPDzMKQa.js} +10 -18
- package/dist/Index-DvxSig3z.js +25 -0
- package/dist/Index-Dzrn3Y6p.js +16 -0
- package/dist/{Index-BWnh94_i.js → Index-LQb0omFE.js} +10 -18
- package/dist/Index-Mt4mSaNT.js +4 -0
- package/dist/Index-_xN_cczo.js +3477 -0
- package/dist/Index-gAz45qgR.js +21 -0
- package/dist/Index-xXLFalgR.js +49 -0
- package/dist/Index-zyZRPz3H.js +28 -0
- package/dist/Index.vue_vue_type_script_lang-Ddo1wo-D.js +671 -0
- package/dist/InputToggleRow-CokEYwm2.js +99 -0
- package/dist/ManualPopover-Dukly7GP.js +65 -0
- package/dist/MediaWrapper-B8msCrQm.js +18 -0
- package/dist/{NotBindingText-D8Blua5a.js → NotBindingText-DcQd8Eej.js} +13 -17
- package/dist/PackageGroup-clUIUoik.js +1060 -0
- package/dist/PdfTerms-DpzMVRfN.js +34 -0
- package/dist/PdfViewer-CSf4Rtbj.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6KSjjMA.js +17 -0
- package/dist/PriceHeader-Dyweu8aH.js +488 -0
- package/dist/{SearchApi-Bg9FwkW0.js → SearchApi-Y1fDQn0u.js} +37 -49
- package/dist/SendForm-B9l24WwR.js +6689 -0
- package/dist/Setup-DyzbPFM4.js +47 -0
- package/dist/{SmartList-DofjZjfy.js → SmartList-CWGKoAJh.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-C2Gwp6Q-.js +1349 -0
- package/dist/{TermsSettings-B4glHd0I.js → TermsSettings-BeQH307A.js} +169 -56
- package/dist/ThemeColorRow-DFIsPy55.js +105 -0
- package/dist/ToggleBinding-DlH4y1IM.js +44 -0
- package/dist/UploadModal-BZ0mPBBB.js +134 -0
- package/dist/VideoPlayerInput-DBxcTUb7.js +134 -0
- package/dist/VideoPlayerSettings-Dg1OxjOa.js +78 -0
- package/dist/VideoSelectModal-BhbanMix.js +217 -0
- package/dist/{anime.es-BrPTThYb.js → anime.es-4wvNItHq.js} +205 -201
- package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
- package/dist/{dom-Ds4ypDrd.js → dom-CkTGWrfu.js} +3 -6
- package/dist/{focusDrawerMixin-DVCJIsb_.js → focusDrawerMixin-BVbTYOGr.js} +1 -1
- package/dist/{formDrawerState-BYsq1pB0.js → formDrawerState-CogZ-GVm.js} +2 -2
- package/dist/helpers-B4GUxtdD.js +46 -0
- package/dist/index-BZDey7B-.js +268 -0
- package/dist/index-Bd8_ZHHq.js +188 -0
- package/dist/index-BvyoYp1e.js +508 -0
- package/dist/index-CJZoubA3.js +3525 -0
- package/dist/index-D7yQWP4d.js +125 -0
- package/dist/index-D8hGHka6.js +513 -0
- package/dist/index-Dxy4tf7x.js +149 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +303 -1486
- package/dist/main-Bn5XkQPb.js +57570 -0
- package/dist/mapFormMixin-C7FJLnbO.js +1528 -0
- package/dist/omit-DrWpFvRJ.js +56 -0
- package/dist/{publicSenderState-C4cIGu3m.js → publicSenderState-tdtCFPMx.js} +4 -4
- package/dist/splitpanes-BApidgjj.js +342 -0
- package/dist/template-CHdf2K2I.js +1572 -0
- package/dist/tippy.esm-Co6FYzEM.js +1994 -0
- package/dist/useTermsModal-VDnO1Lro.js +87 -0
- package/dist/{utils-CMs9ODO8.js → utils-DZkn0Q9c.js} +8 -11
- package/dist/validation-CqBkar3f.js +40 -0
- package/dist/widget.css +1 -0
- package/package.json +20 -25
- package/dist/AddClientCallout-TF4dWJwb.js +0 -48
- package/dist/AnswerModal-CLHDa2TD.js +0 -3879
- package/dist/AttachmentItem-ICP5nbhT.js +0 -85
- package/dist/BaseDatePicker-wwmiz_b5.js +0 -3187
- package/dist/BaseUpload-CDZOjohX.js +0 -1977
- package/dist/BlockMedia-D1JAYF9F.js +0 -76
- package/dist/CCallout-dAjcZXrm.js +0 -58
- package/dist/CDropdownItem-CkSNbSdj.js +0 -640
- package/dist/CFormField-Dw6UM1u6.js +0 -240
- package/dist/CPhoneInput-Dd6cJ4jg.js +0 -138
- package/dist/CPriceInput-CjV95s8E.js +0 -116
- package/dist/CSelect-izVnsQME.js +0 -91
- package/dist/CSkeleton-C0TjtLtY.js +0 -55
- package/dist/ClientAutocomplete-Cfu3abEx.js +0 -438
- package/dist/ClientModal-DjSoPQ9x.js +0 -666
- package/dist/ColorPicker-DZP6FIdn.js +0 -2879
- package/dist/CompanyModal-BYQWdbhG.js +0 -147
- package/dist/ContentWrapper-Bci9pSEp.js +0 -190
- package/dist/CoverBlockSettings-wD55bj3k.js +0 -659
- package/dist/DocAnswer-B5q-ntKP.js +0 -36
- package/dist/DocDetails-BQuaNZ4b.js +0 -263
- package/dist/DocForm-QzZ5wqsS.js +0 -5017
- package/dist/DocFormSend-CORtQPhb.js +0 -146
- package/dist/DocLinks-DZPzODUe.js +0 -38
- package/dist/DocModalBase-TTALjv6K.js +0 -28
- package/dist/DocPrint-BB-KT9ut.js +0 -240
- package/dist/DocReceipt-CGks1GLS.js +0 -217
- package/dist/DocSendReminder-BBQXJbsV.js +0 -140
- package/dist/DocTimeline-4jnYDmBI.js +0 -485
- package/dist/DocumentClient-BAAX7Dxk.js +0 -136
- package/dist/DocumentLayout-C4edCFmr.js +0 -4880
- package/dist/DocumentLogotype-i7YSQKcH.js +0 -92
- package/dist/DocumentVoided-BvZoMFB_.js +0 -25
- package/dist/EmbedInput-Bij7ER30.js +0 -117
- package/dist/EmbedSettings-D0oyq4-9.js +0 -74
- package/dist/ErrorCallout-CsW3WTZp.js +0 -27
- package/dist/FilePreviewModal-Doaawg0l.js +0 -81
- package/dist/Flag-C4Mf2xUU.js +0 -46
- package/dist/HeaderSettings-DwZ54IsK.js +0 -440
- package/dist/ImageSelectModal-ClFJ5uXM.js +0 -86
- package/dist/ImageUploadWrapper-DtEp_Pg3.js +0 -1604
- package/dist/Index-2MwnGZ_4.js +0 -25
- package/dist/Index-3CwdeytO.js +0 -107
- package/dist/Index-B-bSVOoh.js +0 -73
- package/dist/Index-BDyMp1ib.js +0 -643
- package/dist/Index-BMgtwHVA.js +0 -24
- package/dist/Index-BTD3hWbY.js +0 -54
- package/dist/Index-BUbd06rz.js +0 -144
- package/dist/Index-Bv2XrpgK.js +0 -25
- package/dist/Index-C00Ay-7P.js +0 -62
- package/dist/Index-CHL_6WQH.js +0 -66
- package/dist/Index-CLyNrkJA.js +0 -28
- package/dist/Index-CV57PvUE.js +0 -26
- package/dist/Index-Crj4apcP.js +0 -146
- package/dist/Index-CryBgLTa.js +0 -294
- package/dist/Index-Cv33nreP.js +0 -33
- package/dist/Index-D0ErQJ2M.js +0 -2445
- package/dist/Index-D8ZnVbsP.js +0 -32
- package/dist/Index-DPNIJewY.js +0 -56
- package/dist/Index-DVXhB0Ja.js +0 -58
- package/dist/Index-DWhQwxeB.js +0 -94
- package/dist/Index-DX7tomhl.js +0 -230
- package/dist/Index-D_AdmLWe.js +0 -41
- package/dist/Index-DgTQzlfK.js +0 -754
- package/dist/Index-DhapmO-4.js +0 -55
- package/dist/Index-DjC8joRt.js +0 -150
- package/dist/Index-Dv4l4LKF.js +0 -154
- package/dist/Index-TTFKPIIC.js +0 -84
- package/dist/Index-cT8oYfLR.js +0 -41
- package/dist/Index-igPwrQMu.js +0 -77
- package/dist/InputToggleRow-BgOubdXs.js +0 -57
- package/dist/ManualPopover-8suun-i9.js +0 -60
- package/dist/MediaWrapper-BadblLbS.js +0 -23
- package/dist/PackageGroup-BxmqH6qI.js +0 -704
- package/dist/PdfTerms-C6MRk0Ix.js +0 -31
- package/dist/PdfViewer-DUoiQx_1.js +0 -383
- package/dist/PlainHtml-DZ9V0Yuf.js +0 -27
- package/dist/PriceHeader-C3_CoKrL.js +0 -338
- package/dist/SendForm-D-OvqCee.js +0 -1023
- package/dist/Setup-CwK4er2y.js +0 -50
- package/dist/ThemeColorRow-BplIaxA2.js +0 -69
- package/dist/ToggleBinding-6ntt38Ye.js +0 -42
- package/dist/UploadModal-B6jQzsYA.js +0 -95
- package/dist/VideoPlayerInput-ryP77WC0.js +0 -97
- package/dist/VideoPlayerSettings-DJh0JNRI.js +0 -61
- package/dist/VideoSelectModal-8udQ394X.js +0 -104
- package/dist/answerDocumentMixin-CF4J_vsp.js +0 -51
- package/dist/debounce-CgyZi04Q.js +0 -84
- package/dist/formValidationMixin-Dq7aZhBk.js +0 -49
- package/dist/index-2Q8Ejpof.js +0 -167
- package/dist/index-B5-izJkt.js +0 -102
- package/dist/index-BQb6k0M8.js +0 -351
- package/dist/index-CR-KQfRE.js +0 -81
- package/dist/index-CogHiXWx.js +0 -2700
- package/dist/index-lZ1sSNWc.js +0 -492
- package/dist/main-BpqUyMpC.js +0 -57349
- package/dist/mapFormMixin-rxtAFyFK.js +0 -3028
- package/dist/omit-C7FeydiO.js +0 -31
- package/dist/simplebar.min-Dm388s-3.js +0 -71
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/style.css +0 -4
- package/dist/throttle-CfcsX8nA.js +0 -18
- package/dist/tippy.esm-C9mV-Rzr.js +0 -1805
- package/dist/vuedraggable.umd-CChGnToh.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
package/dist/Index-CryBgLTa.js
DELETED
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
import { w as c } from "./CDropdownItem-CkSNbSdj.js";
|
|
2
|
-
import { g as a, h as m, n as d, b as l, e as u } from "./main-BpqUyMpC.js";
|
|
3
|
-
import { s as p, i as v } from "./dom-Ds4ypDrd.js";
|
|
4
|
-
import { D as _ } from "./DocModalBase-TTALjv6K.js";
|
|
5
|
-
import { C as g } from "./CFormField-Dw6UM1u6.js";
|
|
6
|
-
import { v as n } from "./index-lZ1sSNWc.js";
|
|
7
|
-
import { a as h } from "./vuex.esm-DKGl8mcw.js";
|
|
8
|
-
import { a as C } from "./answerDocumentMixin-CF4J_vsp.js";
|
|
9
|
-
const w = {
|
|
10
|
-
i18nOptions: {
|
|
11
|
-
namespaces: "components",
|
|
12
|
-
keyPrefix: "document.propertyDesignationModal"
|
|
13
|
-
},
|
|
14
|
-
components: {
|
|
15
|
-
DocModalBase: _,
|
|
16
|
-
CField: g
|
|
17
|
-
},
|
|
18
|
-
mixins: [c],
|
|
19
|
-
props: {
|
|
20
|
-
senderName: {
|
|
21
|
-
type: String,
|
|
22
|
-
required: !0
|
|
23
|
-
},
|
|
24
|
-
propertyDesignation: {
|
|
25
|
-
type: Object,
|
|
26
|
-
default: null
|
|
27
|
-
},
|
|
28
|
-
fullScreen: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: !1
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
data() {
|
|
34
|
-
return {
|
|
35
|
-
cornerRadius: 0,
|
|
36
|
-
spacing: 0,
|
|
37
|
-
view: "start",
|
|
38
|
-
form: "",
|
|
39
|
-
realEstateId: "",
|
|
40
|
-
condominiumId: null,
|
|
41
|
-
condominiumOrgNo: null
|
|
42
|
-
// messages: {
|
|
43
|
-
// condominiumId: {
|
|
44
|
-
// required: 'Ange ditt lägenhetsnummer',
|
|
45
|
-
// minLength: 'Det ska vara 4 siffror',
|
|
46
|
-
// maxLength: 'Det ska vara 4 siffror',
|
|
47
|
-
// },
|
|
48
|
-
// condominiumOrgNo: {
|
|
49
|
-
// required: 'Ange din bostadensrätts org-nr',
|
|
50
|
-
// },
|
|
51
|
-
// realEstateId: {
|
|
52
|
-
// required: 'Ange din fastighetsbeteckning',
|
|
53
|
-
// },
|
|
54
|
-
// },
|
|
55
|
-
};
|
|
56
|
-
},
|
|
57
|
-
validations: {
|
|
58
|
-
condominiumId: {
|
|
59
|
-
required: n.requiredIf((i) => i.form === "condominium"),
|
|
60
|
-
minLength: n.minLength(4),
|
|
61
|
-
maxLength: n.maxLength(4)
|
|
62
|
-
},
|
|
63
|
-
condominiumOrgNo: {
|
|
64
|
-
required: n.requiredIf((i) => i.form === "condominium")
|
|
65
|
-
},
|
|
66
|
-
realEstateId: {
|
|
67
|
-
required: n.requiredIf((i) => i.form === "realEstate")
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
computed: {
|
|
71
|
-
messages() {
|
|
72
|
-
const i = (e) => this.$t(`validations.${e}`);
|
|
73
|
-
return {
|
|
74
|
-
condominiumId: {
|
|
75
|
-
required: i("condominiumId.required"),
|
|
76
|
-
minLength: i("condominiumId.minLength"),
|
|
77
|
-
maxLength: i("condominiumId.maxLength")
|
|
78
|
-
},
|
|
79
|
-
condominiumOrgNo: {
|
|
80
|
-
required: i("condominiumOrgNo.required")
|
|
81
|
-
},
|
|
82
|
-
realEstateId: {
|
|
83
|
-
required: i("realEstateId.required")
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
created() {
|
|
89
|
-
if (this.propertyDesignation) {
|
|
90
|
-
const {
|
|
91
|
-
propertyType: i = "",
|
|
92
|
-
propertyId: e = "",
|
|
93
|
-
condominiumOrgNo: t = null
|
|
94
|
-
} = this.propertyDesignation;
|
|
95
|
-
this.form = i, i === "realEstate" ? this.realEstateId = e : this.condominiumId = e, this.condominiumOrgNo = t;
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
mounted() {
|
|
99
|
-
this.spacing = window.getComputedStyle(this.$refs.root.$el).paddingTop, this.cornerRadius = window.getComputedStyle(
|
|
100
|
-
this.$refs.root.$el
|
|
101
|
-
).borderRadius;
|
|
102
|
-
},
|
|
103
|
-
methods: {
|
|
104
|
-
...h({
|
|
105
|
-
putCurrentDoc: a.PUT_CURRENT_PUBLIC_DOCUMENT,
|
|
106
|
-
reloadCurrentDocument: a.RELOAD_CURRENT_DOCUMENT
|
|
107
|
-
}),
|
|
108
|
-
async updateClientPropertyDesignation() {
|
|
109
|
-
if (this.$v.$touch(), this.$v.$invalid)
|
|
110
|
-
return;
|
|
111
|
-
const i = {
|
|
112
|
-
propertyType: this.form,
|
|
113
|
-
propertyId: this.form === "realEstate" ? this.realEstateId : this.condominiumId,
|
|
114
|
-
...this.form === "condominium" && {
|
|
115
|
-
condominiumOrgNo: this.condominiumOrgNo
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
try {
|
|
119
|
-
await this.putCurrentDoc({
|
|
120
|
-
body: {
|
|
121
|
-
["clients[0].region.propertyDesignation"]: i
|
|
122
|
-
}
|
|
123
|
-
}), this.reloadCurrentDocument(), this.view = "complete";
|
|
124
|
-
} catch (e) {
|
|
125
|
-
m(e);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
var f = function() {
|
|
131
|
-
var e = this, t = e._self._c;
|
|
132
|
-
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(s) {
|
|
133
|
-
return e.$emit("close");
|
|
134
|
-
} } }) : 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: {
|
|
135
|
-
paddingTop: e.spacing,
|
|
136
|
-
marginTop: `-${e.spacing}`,
|
|
137
|
-
borderRadius: `${e.cornerRadius} ${e.cornerRadius} 0 0`
|
|
138
|
-
} }, [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(s) {
|
|
139
|
-
e.view = "start";
|
|
140
|
-
} } }), 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(s) {
|
|
141
|
-
e.view = "form", e.form = "realEstate";
|
|
142
|
-
} } }, [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(s) {
|
|
143
|
-
e.view = "form", e.form = "condominium";
|
|
144
|
-
} } }, [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", { staticClass: "space-y-6" }, [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(s) {
|
|
145
|
-
e.realEstateId = s;
|
|
146
|
-
}, 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(s) {
|
|
147
|
-
e.condominiumId = s;
|
|
148
|
-
}, 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", { staticClass: "mt-3", attrs: { placeholder: e.$t("condominiumOrgNoPlaceholder"), type: "number" }, model: { value: e.condominiumOrgNo, callback: function(s) {
|
|
149
|
-
e.condominiumOrgNo = s;
|
|
150
|
-
}, expression: "condominiumOrgNo" } })], 1) : e._e(), t("div", [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(s) {
|
|
151
|
-
return e.$emit("close");
|
|
152
|
-
} } }, [e._v(" " + e._s(e.$t("_common:close")) + " ")])], 1)])]) : e._e()])], 1);
|
|
153
|
-
}, y = [], $ = /* @__PURE__ */ d(
|
|
154
|
-
w,
|
|
155
|
-
f,
|
|
156
|
-
y,
|
|
157
|
-
!1,
|
|
158
|
-
null,
|
|
159
|
-
null
|
|
160
|
-
);
|
|
161
|
-
const b = $.exports, x = {
|
|
162
|
-
i18nOptions: {
|
|
163
|
-
namespaces: "docAnswer",
|
|
164
|
-
messages: {
|
|
165
|
-
en: {
|
|
166
|
-
previewTooltip: "Only your clients can answer"
|
|
167
|
-
},
|
|
168
|
-
sv: {
|
|
169
|
-
previewTooltip: "Enbart din mottagare kan besvara"
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
name: "DocumentAnswerRead",
|
|
174
|
-
mixins: [C({ documentKey: "_document" }), c],
|
|
175
|
-
inject: {
|
|
176
|
-
isPdf: {
|
|
177
|
-
default: !1
|
|
178
|
-
},
|
|
179
|
-
customHtmlAccept: {
|
|
180
|
-
default: ""
|
|
181
|
-
},
|
|
182
|
-
customHtmlDeny: {
|
|
183
|
-
default: ""
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
props: {
|
|
187
|
-
_document: {
|
|
188
|
-
type: Object,
|
|
189
|
-
required: !0
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
data() {
|
|
193
|
-
return {
|
|
194
|
-
isInViewport: !1,
|
|
195
|
-
scrollToElement: p
|
|
196
|
-
};
|
|
197
|
-
},
|
|
198
|
-
computed: {
|
|
199
|
-
viewerId() {
|
|
200
|
-
var i;
|
|
201
|
-
return ((i = this._document._doc) == null ? void 0 : i.viewerId) || null;
|
|
202
|
-
},
|
|
203
|
-
isPreview() {
|
|
204
|
-
return this._document.isPreview;
|
|
205
|
-
},
|
|
206
|
-
modalHeight() {
|
|
207
|
-
return this.mq === "sm" ? "100%" : "auto";
|
|
208
|
-
},
|
|
209
|
-
allowPropertyDesignation() {
|
|
210
|
-
const { prices: i } = this._document;
|
|
211
|
-
if (!i || !i.region)
|
|
212
|
-
return !1;
|
|
213
|
-
const { houseWorkType: e } = i.region;
|
|
214
|
-
return ["rot", "greenRot15", "greenRot20", "greenRot50"].includes(
|
|
215
|
-
e
|
|
216
|
-
);
|
|
217
|
-
},
|
|
218
|
-
propertyDesignation() {
|
|
219
|
-
return l(this._document, "clients[0].region.propertyDesignation", null);
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
watch: {
|
|
223
|
-
$route: {
|
|
224
|
-
immediate: !0,
|
|
225
|
-
handler(i) {
|
|
226
|
-
i != null && i.hash && this.onAnswer("accept", { calcHeight: !0 });
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
isInViewport: {
|
|
230
|
-
immediate: !0,
|
|
231
|
-
handler(i, e) {
|
|
232
|
-
i !== e && u.trigger("ui:document.block.answer.visible", i);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
mounted() {
|
|
237
|
-
window.addEventListener("scroll", this.scrollHandler, {
|
|
238
|
-
capture: !0,
|
|
239
|
-
passive: !0
|
|
240
|
-
}), this.$route.name === "docPropertyDesignation" && this.showPropertyDesignation();
|
|
241
|
-
},
|
|
242
|
-
destroyed() {
|
|
243
|
-
window.removeEventListener("scroll", this.scrollHandler);
|
|
244
|
-
},
|
|
245
|
-
methods: {
|
|
246
|
-
scrollHandler() {
|
|
247
|
-
this.$refs.answerButtons && (this.isInViewport = v(this.$refs.answerButtons));
|
|
248
|
-
},
|
|
249
|
-
showPropertyDesignation() {
|
|
250
|
-
this.$modal.show(
|
|
251
|
-
b,
|
|
252
|
-
{
|
|
253
|
-
senderName: this._document.sender.user.name,
|
|
254
|
-
propertyDesignation: this.propertyDesignation,
|
|
255
|
-
fullScreen: this.modalHeight === "100%"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
adaptive: !0,
|
|
259
|
-
height: this.modalHeight,
|
|
260
|
-
width: "100%",
|
|
261
|
-
maxWidth: this.modalHeight === "100%" ? 999 : 400,
|
|
262
|
-
classes: "overflow-visible",
|
|
263
|
-
transition: "fade-in-slide-up"
|
|
264
|
-
}
|
|
265
|
-
);
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
};
|
|
269
|
-
var H = function() {
|
|
270
|
-
var s, o;
|
|
271
|
-
var e = this, t = e._self._c;
|
|
272
|
-
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 = (s = e._document.viewer) == null ? void 0 : s.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) {
|
|
273
|
-
return e.onAnswer("decline");
|
|
274
|
-
} } }) : 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) {
|
|
275
|
-
return e.onAnswer("decline");
|
|
276
|
-
} } }, [e._v(" " + e._s(e._document.$t("deny").capitalize()) + " ")]), e.customHtmlAccept ? t("div", { domProps: { innerHTML: e._s(e.customHtmlAccept) }, on: { click: function(r) {
|
|
277
|
-
return e.onAnswer("accept");
|
|
278
|
-
} } }) : 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) {
|
|
279
|
-
return e.onAnswer("accept");
|
|
280
|
-
} } }, [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) {
|
|
281
|
-
return e.showPropertyDesignation();
|
|
282
|
-
} } }, [e._v(" " + e._s(e._document.$t(`chapters.answerButtons.${e.propertyDesignation ? "editPropDes" : "enterPropDes"}`)) + " ")])]) : e._e()]) : e._e();
|
|
283
|
-
}, D = [], I = /* @__PURE__ */ d(
|
|
284
|
-
x,
|
|
285
|
-
H,
|
|
286
|
-
D,
|
|
287
|
-
!1,
|
|
288
|
-
null,
|
|
289
|
-
"a09f8d01"
|
|
290
|
-
);
|
|
291
|
-
const B = I.exports;
|
|
292
|
-
export {
|
|
293
|
-
B as default
|
|
294
|
-
};
|
package/dist/Index-Cv33nreP.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { m as n } from "./mapFormMixin-rxtAFyFK.js";
|
|
2
|
-
import { n as i } from "./main-BpqUyMpC.js";
|
|
3
|
-
const r = {
|
|
4
|
-
name: "ExtraWorkTimeImpactText",
|
|
5
|
-
components: {
|
|
6
|
-
Read: () => import("./Index-BdJbs8bM.js"),
|
|
7
|
-
Edit: () => import("./Index-Crj4apcP.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
|
-
};
|