@cling-se/widget 1.0.0-beta.1 → 1.0.0-beta.2
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 +25 -0
- package/README.internal.md +82 -0
- package/README.md +14 -40
- package/README.public.md +14 -0
- package/dist/AddClientCallout-e8d19R3f.js +101 -0
- package/dist/AnswerModal-BGvB8IVV.js +3291 -0
- package/dist/AttachmentItem-CkHbAm4l.js +171 -0
- package/dist/BaseUpload-BiJBcWRu.js +2472 -0
- package/dist/BlockMedia-CW5wgipC.js +103 -0
- package/dist/CCallout-Cy2eeIYd.js +104 -0
- package/dist/{CCurrencyDropdown-qH-3m2eP.js → CCurrencyDropdown-DE_3CTjm.js} +91 -49
- package/dist/CDropdownItem-Dmq5gYzA.js +751 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-D_U9coAY.js +292 -0
- package/dist/{CPhoneFormat-CfQayFxw.js → CPhoneFormat-BS2nP9kc.js} +13 -21
- package/dist/CPhoneInput-Bf6329PO.js +207 -0
- package/dist/CPriceInput-d1yjuMQr.js +140 -0
- package/dist/CSelect-DgnT07Hk.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-Ckl--dyv.js +51 -0
- package/dist/ClientAutocomplete-9JzGcO9O.js +532 -0
- package/dist/ClientModal-BzWQtWSZ.js +1181 -0
- package/dist/ColorPicker-BvoFN8nu.js +1408 -0
- package/dist/CompanyModal-Bp4V_az9.js +250 -0
- package/dist/ContentWrapper-CuH6xKmo.js +265 -0
- package/dist/CoverBlockSettings-BA5L0Zee.js +861 -0
- package/dist/DocAnswer-BcNA_KEg.js +33 -0
- package/dist/DocDetails-CStEwWnU.js +448 -0
- package/dist/DocForm-BOoILf5E.js +6748 -0
- package/dist/DocFormSend-CQIf-HJY.js +171 -0
- package/dist/DocLinks-BRX5QzNe.js +36 -0
- package/dist/DocModalBase-D72yWj-x.js +29 -0
- package/dist/DocPrint-BI1LXUPE.js +399 -0
- package/dist/DocReceipt-DaZ4V76p.js +341 -0
- package/dist/DocSendReminder-DKGZlo7s.js +181 -0
- package/dist/DocTextEditor-Dm-cTZpA.js +19413 -0
- package/dist/DocTimeline-DCwofzuk.js +537 -0
- package/dist/DocumentClient-vJdxCB53.js +90 -0
- package/dist/DocumentLayout-CKSi42ev.js +1368 -0
- package/dist/DocumentLogotype-DbQlvQ-y.js +162 -0
- package/dist/DocumentVoided-CRX2WxWO.js +33 -0
- package/dist/EmbedInput-B-oeC4Wy.js +157 -0
- package/dist/EmbedSettings-B9Yka2yB.js +103 -0
- package/dist/ErrorCallout-B_ygH33E.js +34 -0
- package/dist/FilePreviewModal-Bf3ELTow.js +202 -0
- package/dist/Flag-BwTgCNHO.js +41 -0
- package/dist/HeaderSettings-DvC7nlyY.js +720 -0
- package/dist/ImageSelectModal-D3sP3lhR.js +119 -0
- package/dist/ImageUploadWrapper-RWNa-yIq.js +1585 -0
- package/dist/Index-0_3ULrWX.js +126 -0
- package/dist/Index-4NPe0sfX.js +629 -0
- package/dist/Index-B1uA0FF6.js +4 -0
- package/dist/Index-BBkCYm2q.js +201 -0
- package/dist/{Index-DIOiMm9f.js → Index-BBwvo7S9.js} +10 -18
- package/dist/Index-BEMlsYwJ.js +68 -0
- package/dist/Index-BRBhJ6kz.js +21 -0
- package/dist/{Index--qPMWUMT.js → Index-BTFmHjUt.js} +48 -61
- package/dist/Index-BcUNnxLC.js +1098 -0
- package/dist/Index-Bo6ExBUL.js +93 -0
- package/dist/Index-BvMPCgdH.js +102 -0
- package/dist/Index-Bx5TOI9k.js +74 -0
- package/dist/Index-C7GZS8EI.js +16 -0
- package/dist/Index-CNWhm07R.js +25 -0
- package/dist/{Index-DcQbh-z2.js → Index-CQpznMKV.js} +9 -17
- package/dist/Index-CRzsnIij.js +159 -0
- package/dist/Index-CeSG1C41.js +140 -0
- package/dist/Index-CjfjdZj5.js +52 -0
- package/dist/Index-CskKmZpd.js +363 -0
- package/dist/Index-D5qwbCo1.js +28 -0
- package/dist/Index-D8Ae1Txt.js +228 -0
- package/dist/Index-DE8aenDB.js +3452 -0
- package/dist/Index-DI5EB5Rt.js +39 -0
- package/dist/Index-DaV57YPP.js +163 -0
- package/dist/Index-DbwkmoyM.js +38 -0
- package/dist/Index-Df9skok6.js +70 -0
- package/dist/{Index-Bu0MGrj6.js → Index-DfLLA0ij.js} +313 -206
- package/dist/Index-Dw1CO5F9.js +76 -0
- package/dist/Index-PZXyOoVb.js +87 -0
- package/dist/{Index-D4XgxmbD.js → Index-ZUnH-BHj.js} +10 -18
- package/dist/Index-cjKGSiDi.js +136 -0
- package/dist/Index-m-goRuKD.js +49 -0
- package/dist/Index-rGeWbLcB.js +47 -0
- package/dist/Index-vrljNp6G.js +28 -0
- package/dist/Index.vue_vue_type_script_lang-aeVuChGF.js +671 -0
- package/dist/InputToggleRow-v6qAWPg6.js +99 -0
- package/dist/ManualPopover-BONBJIUA.js +57 -0
- package/dist/MediaWrapper-CXb2UGd9.js +18 -0
- package/dist/{NotBindingText-CNV2Wmdx.js → NotBindingText-BqESO13N.js} +13 -17
- package/dist/PackageGroup-AIysVmyh.js +1058 -0
- package/dist/PdfTerms-BlhHdTu3.js +34 -0
- package/dist/PdfViewer-DwZ1rwlN.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6NNUTz0.js +17 -0
- package/dist/PriceHeader-C4XhnoA3.js +488 -0
- package/dist/SearchApi-B7lXgUY6.js +137 -0
- package/dist/SendForm-BcD0xSvB.js +7031 -0
- package/dist/Setup-C2qaYDei.js +47 -0
- package/dist/{SmartList-Qgu0rMrI.js → SmartList-DqG7Q5t7.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-CzMbr8AX.js +1303 -0
- package/dist/{TermsSettings-CE3h_xkm.js → TermsSettings-BOCONyM4.js} +169 -49
- package/dist/ThemeColorRow-sjGdMzGN.js +108 -0
- package/dist/ToggleBinding-7oq_oXPt.js +44 -0
- package/dist/UploadModal-C_X2NjVY.js +134 -0
- package/dist/VideoPlayerInput-BsUcmpl4.js +135 -0
- package/dist/VideoPlayerSettings-BXMmxaZQ.js +78 -0
- package/dist/VideoSelectModal-CW0OweCw.js +217 -0
- package/dist/{anime.es-BrPTThYb.js → anime.es-gdcpA-eY.js} +1 -2
- package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
- package/dist/{debounce-C1AuSpOZ.js → debounce-DNl99Gyo.js} +7 -7
- package/dist/dom-CkTGWrfu.js +69 -0
- package/dist/{focusDrawerMixin-Be6BAK8-.js → focusDrawerMixin-BwcErMDY.js} +1 -1
- package/dist/{formDrawerState-DRbg5rVI.js → formDrawerState-DaurePnd.js} +2 -2
- package/dist/helpers-CPW--XIz.js +44 -0
- package/dist/index-BjiGCJPI.js +149 -0
- package/dist/index-CFNv6OvX.js +188 -0
- package/dist/index-Cx71On5Z.js +508 -0
- package/dist/index-DKMxIBz_.js +270 -0
- package/dist/index-DKf5SGLD.js +125 -0
- package/dist/index-E32WgUp9.js +3525 -0
- package/dist/index-kp-GC5I0.js +513 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +306 -1505
- package/dist/{main-WKzC-Dnu.js → main-Cb-nyil1.js} +33252 -33755
- package/dist/mapFormMixin-D3BihYWW.js +1544 -0
- package/dist/omit--YYr41Xp.js +31 -0
- package/dist/{publicSenderState-BujjYsZZ.js → publicSenderState-CdRW_Wwp.js} +4 -4
- package/dist/regions-BdZt9Srn.js +1250 -0
- package/dist/splitpanes-D-ThFkeR.js +342 -0
- package/dist/style.css +1 -4
- package/dist/template-BvaNnq-g.js +1493 -0
- package/dist/{throttle-CWPJmFid.js → throttle-D-bUGaVh.js} +2 -2
- package/dist/tippy.esm-BmKNqohP.js +1994 -0
- package/dist/useTermsModal-Dhf6_eYb.js +87 -0
- package/dist/{utils-CA_Zy6u1.js → utils-CBPcYdLv.js} +8 -11
- package/dist/validation-DOcUOoMe.js +40 -0
- package/package.json +25 -31
- package/.eslintrc.cjs +0 -4
- package/dist/AddClientCallout-BWnvyBcK.js +0 -46
- package/dist/AnswerModal-CLGRdSnK.js +0 -3874
- package/dist/AttachmentItem-BPS0-wyc.js +0 -78
- package/dist/BaseDatePicker-BbmV_GdD.js +0 -3183
- package/dist/BaseUpload-9gPgI7r6.js +0 -1977
- package/dist/BlockMedia-DkPFWiYL.js +0 -76
- package/dist/CCallout-T26jwUby.js +0 -59
- package/dist/CDropdownItem-BE8BAMD1.js +0 -636
- package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
- package/dist/CFormField-DECEfoVq.js +0 -241
- package/dist/CPriceInput-C4SOB-P5.js +0 -112
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
- package/dist/ClientAutocomplete-DSebA1Mx.js +0 -78
- package/dist/ClientModal-BXFYvYCF.js +0 -625
- package/dist/ColorPicker-CZ_bJabP.js +0 -2879
- package/dist/CompanyModal-CDr3t28n.js +0 -141
- package/dist/ContentWrapper-BwmMoe4W.js +0 -183
- package/dist/CoverBlockSettings-_F11-DGc.js +0 -275
- package/dist/DocAnswer-BR59xzkT.js +0 -36
- package/dist/DocDetails-D1qbCbps.js +0 -259
- package/dist/DocForm-DBc2a7z5.js +0 -7272
- package/dist/DocFormSend-Casix-yG.js +0 -144
- package/dist/DocLinks-DGTaewyX.js +0 -38
- package/dist/DocModalBase-BbS_qvSv.js +0 -28
- package/dist/DocPrint-0PqX3mbJ.js +0 -240
- package/dist/DocReceipt-CU3VD5pt.js +0 -210
- package/dist/DocSendReminder-CuycBspr.js +0 -137
- package/dist/DocTextEditor-CntS2Bd-.js +0 -17180
- package/dist/DocTimeline-DJuv3yBe.js +0 -481
- package/dist/DocumentClient-C25XXzz6.js +0 -136
- package/dist/DocumentLayout-B7afHRMr.js +0 -4909
- package/dist/DocumentLogotype-sqI51wvM.js +0 -87
- package/dist/DocumentVoided-TahdTSMn.js +0 -25
- package/dist/EmbedInput-BY-wHSfc.js +0 -113
- package/dist/EmbedSettings-8pfjk4NP.js +0 -72
- package/dist/ErrorCallout-Dsr8PNsU.js +0 -28
- package/dist/FilePreviewModal-CcEinEFg.js +0 -81
- package/dist/Flag-PJKrghi9.js +0 -114
- package/dist/HeaderSettings-BqczIOsG.js +0 -392
- package/dist/ImageSelectModal-Cd-HhKnH.js +0 -84
- package/dist/ImageUploadWrapper-Dv43rGdb.js +0 -1604
- package/dist/Index-6b5VBKE-.js +0 -107
- package/dist/Index-B4pRJnbw.js +0 -84
- package/dist/Index-B69f8qgZ.js +0 -62
- package/dist/Index-B79YN9RO.js +0 -25
- package/dist/Index-BBrlPoe8.js +0 -58
- package/dist/Index-BXfWJCuq.js +0 -52
- package/dist/Index-Bd76vb37.js +0 -55
- package/dist/Index-BmbtQO5F.js +0 -150
- package/dist/Index-ByV_kJaH.js +0 -77
- package/dist/Index-CDV5rhWS.js +0 -49
- package/dist/Index-CIx4OOK-.js +0 -144
- package/dist/Index-CL1OWLt6.js +0 -223
- package/dist/Index-Caow0eZu.js +0 -31
- package/dist/Index-Cd3-3PEK.js +0 -2402
- package/dist/Index-CdpZBEKU.js +0 -98
- package/dist/Index-CmU3Sys-.js +0 -754
- package/dist/Index-CtRtgnpm.js +0 -32
- package/dist/Index-Cukkr33D.js +0 -140
- package/dist/Index-Cuqw0ios.js +0 -57
- package/dist/Index-Czm_WdqC.js +0 -25
- package/dist/Index-DNdYXHgr.js +0 -33
- package/dist/Index-DcuBxutp.js +0 -642
- package/dist/Index-DpWNWiyY.js +0 -291
- package/dist/Index-DzS1rZdF.js +0 -24
- package/dist/Index-N6s5pZxv.js +0 -26
- package/dist/Index-g_DNu4mt.js +0 -69
- package/dist/Index-mJ8F41GY.js +0 -154
- package/dist/Index-q7W9KA8m.js +0 -21
- package/dist/Index-rtzblZp4.js +0 -70
- package/dist/InputToggleRow-CZjxsDOQ.js +0 -57
- package/dist/ManualPopover-CZrWiT-P.js +0 -58
- package/dist/MediaWrapper-D37qK4KR.js +0 -23
- package/dist/PackageGroup-Heo_s8ct.js +0 -699
- package/dist/PdfTerms-AB9tXAtU.js +0 -36
- package/dist/PdfViewer-CIVkvOBr.js +0 -373
- package/dist/PlainHtml-CPmIebjY.js +0 -20
- package/dist/PriceHeader-DhDAruwX.js +0 -339
- package/dist/SearchApi-BMgdaI4s.js +0 -161
- package/dist/Setup-VIaIV9uT.js +0 -50
- package/dist/ThemeColorRow-DYJNgk6S.js +0 -67
- package/dist/ToggleBinding-CuwCeYpO.js +0 -38
- package/dist/UploadModal-BITcxG-J.js +0 -95
- package/dist/VideoPlayerInput-8szEX_8L.js +0 -93
- package/dist/VideoPlayerSettings-BIPytm6w.js +0 -61
- package/dist/VideoSelectModal-B-Pe34nb.js +0 -100
- package/dist/answerDocumentMixin-W7vE1Gp4.js +0 -51
- package/dist/formComponentsInstall-Bm3VMOh6.js +0 -2507
- package/dist/formValidationMixin-COkY8COk.js +0 -49
- package/dist/index-BFvjENMH.js +0 -81
- package/dist/index-BV2nGWay.js +0 -492
- package/dist/index-BgJ05dYc.js +0 -165
- package/dist/index-CMPAXxzs.js +0 -347
- package/dist/index-DNDjI5uI.js +0 -3916
- package/dist/index-aoff9oUi.js +0 -102
- package/dist/mapFormMixin-QbevCwJK.js +0 -72
- package/dist/omit-CTp9CXoU.js +0 -31
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/tinycolor-kTl0yxzz.js +0 -633
- package/dist/tippy.esm-sS5koDSU.js +0 -1799
- package/dist/vuedraggable.umd-BA3ZDRAp.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
- package/public/favicon.ico +0 -0
- package/tsconfig.json +0 -26
- package/tsconfig.node.json +0 -10
- package/tsconfig.paths.json +0 -17
- package/vite.config.ts +0 -60
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { h, P as o, i as c, z as k, o as r, d as i, c as v, aq as B, n as T, j as a, s as l, B as x, v as d, ao as y, _ as C } from "./main-Cb-nyil1.js";
|
|
2
|
+
import { u as P } from "./useTermsModal-Dhf6_eYb.js";
|
|
3
|
+
const b = {
|
|
4
|
+
key: 1,
|
|
5
|
+
class: "terms-disclaimer"
|
|
6
|
+
}, g = { class: "terms-disclaimer__divider" }, w = /* @__PURE__ */ h({
|
|
7
|
+
__name: "Index",
|
|
8
|
+
props: {
|
|
9
|
+
href: {},
|
|
10
|
+
termType: {},
|
|
11
|
+
file: {},
|
|
12
|
+
text: {},
|
|
13
|
+
_document: {}
|
|
14
|
+
},
|
|
15
|
+
setup(e) {
|
|
16
|
+
const { showTermsModal: m } = P(), s = o("isPdf", !1), f = o("_firstBlock", !1), p = o("_lastBlock", !1), n = c(
|
|
17
|
+
() => s ? k(() => import("./PdfTerms-BlhHdTu3.js")) : null
|
|
18
|
+
), u = c(() => s && n), _ = () => {
|
|
19
|
+
m({
|
|
20
|
+
text: e.text,
|
|
21
|
+
_document: e._document,
|
|
22
|
+
termType: e.termType,
|
|
23
|
+
file: e.file,
|
|
24
|
+
href: e.href
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
return (t, D) => u.value ? (r(), i("div", {
|
|
28
|
+
key: 0,
|
|
29
|
+
class: T({
|
|
30
|
+
"break-before-page": a(s) && !a(f),
|
|
31
|
+
"break-after-page": a(s) && !a(p)
|
|
32
|
+
})
|
|
33
|
+
}, [
|
|
34
|
+
(r(), v(B(n.value), {
|
|
35
|
+
text: t.text,
|
|
36
|
+
file: t.file
|
|
37
|
+
}, null, 8, ["text", "file"]))
|
|
38
|
+
], 2)) : (r(), i("div", b, [
|
|
39
|
+
l("div", g, [
|
|
40
|
+
x(d(t._document.$t("chapters.termsDisclaimer.description")) + " ", 1),
|
|
41
|
+
l("a", {
|
|
42
|
+
onClick: y(_, ["prevent"]),
|
|
43
|
+
target: "_blank",
|
|
44
|
+
rel: "noopener"
|
|
45
|
+
}, d(t._document.$t("chapters.termsDisclaimer.termsAndConditions")), 1)
|
|
46
|
+
])
|
|
47
|
+
]));
|
|
48
|
+
}
|
|
49
|
+
}), j = /* @__PURE__ */ C(w, [["__scopeId", "data-v-7c03eed7"]]);
|
|
50
|
+
export {
|
|
51
|
+
j as default
|
|
52
|
+
};
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
import { m as A } from "./mapFormMixin-D3BihYWW.js";
|
|
2
|
+
import { C as E } from "./CCallout-Cy2eeIYd.js";
|
|
3
|
+
import { C as B, a as K } from "./CDropdownItem-Dmq5gYzA.js";
|
|
4
|
+
import { _ as z, b as h, o as n, d as c, s as g, v as u, c as f, F as C, B as w, n as V, z as M, aa as N, w as y, e as b, k as I, f as v } from "./main-Cb-nyil1.js";
|
|
5
|
+
import { C as O } from "./CPhoneFormat-BS2nP9kc.js";
|
|
6
|
+
const $ = {
|
|
7
|
+
name: "DocPartiesItem",
|
|
8
|
+
components: {
|
|
9
|
+
CPhoneFormat: O
|
|
10
|
+
},
|
|
11
|
+
emits: ["click"],
|
|
12
|
+
props: {
|
|
13
|
+
label: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: !0
|
|
16
|
+
},
|
|
17
|
+
data: {
|
|
18
|
+
type: [String, Object],
|
|
19
|
+
required: !0
|
|
20
|
+
},
|
|
21
|
+
type: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ""
|
|
24
|
+
},
|
|
25
|
+
canEdit: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !1
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}, q = { class: "client-row" }, L = { class: "label" };
|
|
31
|
+
function j(e, o, t, a, s, l) {
|
|
32
|
+
const p = h("CPhoneFormat");
|
|
33
|
+
return n(), c("div", q, [
|
|
34
|
+
g("div", L, u(t.label), 1),
|
|
35
|
+
g("div", {
|
|
36
|
+
class: V([{
|
|
37
|
+
"is-editable": t.canEdit
|
|
38
|
+
}, "data"])
|
|
39
|
+
}, [
|
|
40
|
+
g("span", {
|
|
41
|
+
onClick: o[0] || (o[0] = (k) => e.$emit("click"))
|
|
42
|
+
}, [
|
|
43
|
+
t.type === "phone" ? (n(), f(p, {
|
|
44
|
+
key: 0,
|
|
45
|
+
phone: t.data.cellphone,
|
|
46
|
+
region: t.data.region
|
|
47
|
+
}, null, 8, ["phone", "region"])) : (n(), c(C, { key: 1 }, [
|
|
48
|
+
w(u(t.data), 1)
|
|
49
|
+
], 64))
|
|
50
|
+
])
|
|
51
|
+
], 2)
|
|
52
|
+
]);
|
|
53
|
+
}
|
|
54
|
+
const R = /* @__PURE__ */ z($, [["render", j], ["__scopeId", "data-v-5a104f72"]]), T = {
|
|
55
|
+
client: M(
|
|
56
|
+
() => import("./ClientModal-BzWQtWSZ.js").then((e) => e.b)
|
|
57
|
+
),
|
|
58
|
+
company: M(
|
|
59
|
+
() => import("./CompanyModal-Bp4V_az9.js")
|
|
60
|
+
)
|
|
61
|
+
}, G = {
|
|
62
|
+
i18nOptions: {
|
|
63
|
+
namespaces: "components"
|
|
64
|
+
},
|
|
65
|
+
name: "DocParties",
|
|
66
|
+
components: {
|
|
67
|
+
DocPartiesItem: R,
|
|
68
|
+
CCallout: E,
|
|
69
|
+
CDropdown: B,
|
|
70
|
+
CDropdownItem: K,
|
|
71
|
+
AddClientCallout: M(
|
|
72
|
+
() => import("./AddClientCallout-e8d19R3f.js")
|
|
73
|
+
)
|
|
74
|
+
},
|
|
75
|
+
emits: ["input"],
|
|
76
|
+
mixins: [A()],
|
|
77
|
+
props: {
|
|
78
|
+
// todo: atm custom behaviour for path 'data.sender' through doc-class
|
|
79
|
+
parties: {
|
|
80
|
+
type: [Array, Object],
|
|
81
|
+
default: () => []
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
data() {
|
|
85
|
+
return {
|
|
86
|
+
type: "client",
|
|
87
|
+
hoverIndex: null
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
computed: {
|
|
91
|
+
mappedParties() {
|
|
92
|
+
const e = (t, a = {}) => this._document.$t(t, { postProcess: "capitalize", ...a });
|
|
93
|
+
return (Array.isArray(this.parties) ? this.parties : [this.parties]).map((t) => {
|
|
94
|
+
const {
|
|
95
|
+
orgNo: a,
|
|
96
|
+
socialNo: s,
|
|
97
|
+
companyName: l,
|
|
98
|
+
name: p,
|
|
99
|
+
type: k,
|
|
100
|
+
cellphone: S,
|
|
101
|
+
cellphoneRegion: P,
|
|
102
|
+
email: F,
|
|
103
|
+
addresses: _,
|
|
104
|
+
hasFSkatt: r,
|
|
105
|
+
hasInsurance: d
|
|
106
|
+
} = t, i = k === "individual", m = _ && (_.standard || _.work);
|
|
107
|
+
m && (m.formKey = _.standard ? "street" : "workStreet");
|
|
108
|
+
const x = [
|
|
109
|
+
l && {
|
|
110
|
+
label: e("company"),
|
|
111
|
+
value: l,
|
|
112
|
+
formKey: "name"
|
|
113
|
+
},
|
|
114
|
+
a && {
|
|
115
|
+
label: e("orgNoShort"),
|
|
116
|
+
value: a,
|
|
117
|
+
formKey: "orgNo"
|
|
118
|
+
},
|
|
119
|
+
p && {
|
|
120
|
+
label: e(i ? "name" : "reference"),
|
|
121
|
+
value: p,
|
|
122
|
+
formKey: i ? "name" : "reference"
|
|
123
|
+
},
|
|
124
|
+
s && i && {
|
|
125
|
+
label: e("socialNo"),
|
|
126
|
+
value: s,
|
|
127
|
+
formKey: "orgNo"
|
|
128
|
+
},
|
|
129
|
+
F && {
|
|
130
|
+
label: e("email"),
|
|
131
|
+
value: F,
|
|
132
|
+
formKey: "email"
|
|
133
|
+
},
|
|
134
|
+
S && {
|
|
135
|
+
label: e("phone"),
|
|
136
|
+
type: "phone",
|
|
137
|
+
value: {
|
|
138
|
+
cellphone: S,
|
|
139
|
+
region: P || N(this._document, "sender.company.region", "")
|
|
140
|
+
},
|
|
141
|
+
formKey: "cellphone"
|
|
142
|
+
},
|
|
143
|
+
m && {
|
|
144
|
+
label: e("address"),
|
|
145
|
+
value: this.parseStreet(m.street, m.city, m.zip),
|
|
146
|
+
formKey: m.formKey
|
|
147
|
+
}
|
|
148
|
+
], D = [];
|
|
149
|
+
return r && D.push({
|
|
150
|
+
label: this._document.$t("chapters.parties.fTax"),
|
|
151
|
+
value: r
|
|
152
|
+
}), d && D.push({
|
|
153
|
+
label: this._document.$t("chapters.parties.allRiskAndLiability"),
|
|
154
|
+
value: d
|
|
155
|
+
}), {
|
|
156
|
+
main: x,
|
|
157
|
+
checks: D
|
|
158
|
+
};
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
created() {
|
|
163
|
+
N(this, "_value.parties", "") !== "clients" && (this.type = "company");
|
|
164
|
+
},
|
|
165
|
+
methods: {
|
|
166
|
+
openModal({ formKey: e, index: o } = {}) {
|
|
167
|
+
var s;
|
|
168
|
+
let t = "name", a = !1;
|
|
169
|
+
e && (t = e, ["name", "email", "cellphone", "reference"].includes(e) || (a = !0)), this.$modal.show(T[this.type], {
|
|
170
|
+
inputFocusOnMount: t,
|
|
171
|
+
forceExpand: a,
|
|
172
|
+
documentClientIndex: o,
|
|
173
|
+
signOptions: (s = this._document) == null ? void 0 : s.signOptions,
|
|
174
|
+
setFormValue: this.viewSettings.setFormValue,
|
|
175
|
+
removeFormValue: this.viewSettings.removeFormValue,
|
|
176
|
+
isPublicForm: this.viewSettings.isPublicForm
|
|
177
|
+
});
|
|
178
|
+
},
|
|
179
|
+
removeClient(e) {
|
|
180
|
+
this.parties[e] && this.removeField(`clients[${e}]`);
|
|
181
|
+
},
|
|
182
|
+
parseStreet(e, o, t) {
|
|
183
|
+
let a = "";
|
|
184
|
+
return e && (a += e), e && (t || o) && (a += ", "), t && (a += ` ${t}`), o && (a += ` ${o}`), a;
|
|
185
|
+
},
|
|
186
|
+
searchEndCustomers(e, o) {
|
|
187
|
+
e({
|
|
188
|
+
q: o,
|
|
189
|
+
cb: ({ endCustomer: t }) => {
|
|
190
|
+
this.results = t;
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
},
|
|
194
|
+
setClient(e) {
|
|
195
|
+
this.$emit("input", {
|
|
196
|
+
key: `clients[${this.parties.length}]`,
|
|
197
|
+
value: e
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}, H = { style: { position: "relative" } }, J = {
|
|
202
|
+
key: 0,
|
|
203
|
+
class: "edit-button"
|
|
204
|
+
}, Q = { style: { "padding-bottom": "1em" } }, U = ["onMouseoverPassive"], W = {
|
|
205
|
+
key: 0,
|
|
206
|
+
class: "controls",
|
|
207
|
+
style: { position: "absolute", left: "100%", top: "0", "padding-left": "calc(0.5 * var(--rem))" }
|
|
208
|
+
}, X = {
|
|
209
|
+
key: 1,
|
|
210
|
+
style: { width: "100%", "padding-top": "calc(1 * var(--rem))" }
|
|
211
|
+
};
|
|
212
|
+
function Y(e, o, t, a, s, l) {
|
|
213
|
+
const p = h("CButton"), k = h("CDropdownItem"), S = h("CDropdown"), P = h("AddClientCallout"), F = h("CCallout"), _ = h("DocPartiesItem");
|
|
214
|
+
return n(), c("div", H, [
|
|
215
|
+
e.viewSettings.canEdit ? (n(), c("div", J, [
|
|
216
|
+
s.type === "company" ? (n(), f(p, {
|
|
217
|
+
key: 0,
|
|
218
|
+
type: "none",
|
|
219
|
+
size: "small",
|
|
220
|
+
pattern: "secondary",
|
|
221
|
+
onClick: l.openModal
|
|
222
|
+
}, {
|
|
223
|
+
default: y(() => [
|
|
224
|
+
w(u(e.$t("_common:edit").capitalize()), 1)
|
|
225
|
+
]),
|
|
226
|
+
_: 1
|
|
227
|
+
}, 8, ["onClick"])) : t.parties.length && s.type === "client" ? (n(), f(S, {
|
|
228
|
+
key: 1,
|
|
229
|
+
ref: "dropdown",
|
|
230
|
+
position: "is-bottom-left"
|
|
231
|
+
}, {
|
|
232
|
+
trigger: y(() => [
|
|
233
|
+
b(p, {
|
|
234
|
+
type: "none",
|
|
235
|
+
size: "small",
|
|
236
|
+
pattern: "secondary",
|
|
237
|
+
"icon-right": "chevron-down"
|
|
238
|
+
}, {
|
|
239
|
+
default: y(() => [
|
|
240
|
+
w(u(e.$t("_common:more").capitalize()), 1)
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
})
|
|
244
|
+
]),
|
|
245
|
+
default: y(() => [
|
|
246
|
+
b(k, {
|
|
247
|
+
"icon-props": {
|
|
248
|
+
class: "text-primary-500"
|
|
249
|
+
},
|
|
250
|
+
"icon-left": "plus-circle",
|
|
251
|
+
onClick: o[0] || (o[0] = (r) => l.openModal({ index: t.parties.length }))
|
|
252
|
+
}, {
|
|
253
|
+
default: y(() => [
|
|
254
|
+
w(u(e.$t("components:account.documentForm.clients.add.extra")), 1)
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
}),
|
|
258
|
+
b(k, { separator: "" }),
|
|
259
|
+
(n(!0), c(C, null, I(t.parties, (r, d) => (n(), f(k, {
|
|
260
|
+
key: d,
|
|
261
|
+
"icon-props": {
|
|
262
|
+
class: "text-gray-400"
|
|
263
|
+
},
|
|
264
|
+
"icon-left": "edit",
|
|
265
|
+
onClick: (i) => l.openModal({ index: d })
|
|
266
|
+
}, {
|
|
267
|
+
default: y(() => [
|
|
268
|
+
w(u(r.type === "individual" ? r.name : r.companyName || r.name), 1)
|
|
269
|
+
]),
|
|
270
|
+
_: 2
|
|
271
|
+
}, 1032, ["onClick"]))), 128))
|
|
272
|
+
]),
|
|
273
|
+
_: 1
|
|
274
|
+
}, 512)) : v("", !0)
|
|
275
|
+
])) : v("", !0),
|
|
276
|
+
e.viewSettings.canEdit ? (n(), c(C, { key: 1 }, [
|
|
277
|
+
s.type === "client" && !(t.parties && t.parties.length) ? (n(), f(P, {
|
|
278
|
+
key: 0,
|
|
279
|
+
onAdd: o[1] || (o[1] = (r) => l.openModal({ index: t.parties.length })),
|
|
280
|
+
onSetClient: l.setClient
|
|
281
|
+
}, null, 8, ["onSetClient"])) : v("", !0),
|
|
282
|
+
s.type === "company" && e.viewSettings.isPublicForm && !(t.parties.companyName || t.parties.email) ? (n(), f(F, {
|
|
283
|
+
key: 1,
|
|
284
|
+
title: e.$t("document.chapters.parties.missingSender.title")
|
|
285
|
+
}, {
|
|
286
|
+
default: y(() => [
|
|
287
|
+
g("div", Q, u(e.$t("document.chapters.parties.missingSender.description")), 1),
|
|
288
|
+
b(p, {
|
|
289
|
+
"icon-left": "plus",
|
|
290
|
+
type: "secondary",
|
|
291
|
+
onClick: l.openModal
|
|
292
|
+
}, {
|
|
293
|
+
default: y(() => [
|
|
294
|
+
w(u(e.$t("_common:add", { thing: e.$t("_common:info") })), 1)
|
|
295
|
+
]),
|
|
296
|
+
_: 1
|
|
297
|
+
}, 8, ["onClick"])
|
|
298
|
+
]),
|
|
299
|
+
_: 1
|
|
300
|
+
}, 8, ["title"])) : v("", !0)
|
|
301
|
+
], 64)) : v("", !0),
|
|
302
|
+
(n(!0), c(C, null, I(l.mappedParties, (r, d) => (n(), c("div", {
|
|
303
|
+
key: d,
|
|
304
|
+
class: "party-wrapper print-avoid-break-inside",
|
|
305
|
+
onMouseoverPassive: (i) => s.hoverIndex = d,
|
|
306
|
+
onMouseleavePassive: o[2] || (o[2] = (i) => s.hoverIndex = null)
|
|
307
|
+
}, [
|
|
308
|
+
e.viewSettings.canEdit && s.type !== "company" && s.hoverIndex === d ? (n(), c("div", W, [
|
|
309
|
+
b(p, {
|
|
310
|
+
circle: "",
|
|
311
|
+
size: "small",
|
|
312
|
+
icon: "edit",
|
|
313
|
+
type: "none",
|
|
314
|
+
pattern: "tertiary",
|
|
315
|
+
onClick: (i) => l.openModal({ index: d })
|
|
316
|
+
}, null, 8, ["onClick"]),
|
|
317
|
+
b(p, {
|
|
318
|
+
circle: "",
|
|
319
|
+
size: "small",
|
|
320
|
+
icon: "x",
|
|
321
|
+
type: "none",
|
|
322
|
+
pattern: "tertiary",
|
|
323
|
+
onClick: (i) => l.removeClient(d)
|
|
324
|
+
}, null, 8, ["onClick"])
|
|
325
|
+
])) : v("", !0),
|
|
326
|
+
(n(!0), c(C, null, I(r.main, (i, m) => (n(), c(C, { key: m }, [
|
|
327
|
+
i ? (n(), f(_, {
|
|
328
|
+
key: 0,
|
|
329
|
+
label: i.label,
|
|
330
|
+
data: i.value,
|
|
331
|
+
type: i.type,
|
|
332
|
+
"can-edit": e.viewSettings.canEdit,
|
|
333
|
+
onClick: (x) => e.viewSettings.canEdit ? l.openModal({ formKey: i.formKey, index: d }) : null
|
|
334
|
+
}, null, 8, ["label", "data", "type", "can-edit", "onClick"])) : v("", !0)
|
|
335
|
+
], 64))), 128)),
|
|
336
|
+
r.checks && r.checks.length ? (n(), c("div", X, [
|
|
337
|
+
(n(!0), c(C, null, I(r.checks, (i, m) => (n(), c("div", {
|
|
338
|
+
key: m,
|
|
339
|
+
class: "check-text"
|
|
340
|
+
}, [
|
|
341
|
+
o[3] || (o[3] = g("svg", {
|
|
342
|
+
width: "11",
|
|
343
|
+
height: "11",
|
|
344
|
+
viewBox: "0 0 218 185",
|
|
345
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
346
|
+
}, [
|
|
347
|
+
g("path", {
|
|
348
|
+
class: "primary-svg-fill",
|
|
349
|
+
d: "M217.931476 30.821773L180.506583.515692 85.82601 117.436462 29.993388 72.224097.068524 109.178227l93.257515 75.518447z",
|
|
350
|
+
fill: "#D8D8D8",
|
|
351
|
+
"fill-rule": "evenodd"
|
|
352
|
+
})
|
|
353
|
+
], -1)),
|
|
354
|
+
g("div", null, u(i.label), 1)
|
|
355
|
+
]))), 128))
|
|
356
|
+
])) : v("", !0)
|
|
357
|
+
], 40, U))), 128))
|
|
358
|
+
]);
|
|
359
|
+
}
|
|
360
|
+
const ie = /* @__PURE__ */ z(G, [["render", Y], ["__scopeId", "data-v-54bc3f52"]]);
|
|
361
|
+
export {
|
|
362
|
+
ie as default
|
|
363
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { m as u } from "./mapFormMixin-D3BihYWW.js";
|
|
2
|
+
import { _ as r, z as t, b as o, o as i, c as m } from "./main-Cb-nyil1.js";
|
|
3
|
+
const d = {
|
|
4
|
+
name: "EstimatedTimeToComplete",
|
|
5
|
+
components: {
|
|
6
|
+
Read: t(() => import("./Index-BBwvo7S9.js")),
|
|
7
|
+
Edit: t(() => import("./Index-Dw1CO5F9.js"))
|
|
8
|
+
},
|
|
9
|
+
emits: ["input"],
|
|
10
|
+
mixins: [u(["noOfTimeUnits", "timeUnit"])]
|
|
11
|
+
};
|
|
12
|
+
function c(n, e, f, l, _, E) {
|
|
13
|
+
const s = o("Edit"), a = o("Read");
|
|
14
|
+
return n.canEdit ? (i(), m(s, {
|
|
15
|
+
key: 0,
|
|
16
|
+
_document: n._document,
|
|
17
|
+
_value: n._value,
|
|
18
|
+
onInput: e[0] || (e[0] = (p) => n.$emit("input", p))
|
|
19
|
+
}, null, 8, ["_document", "_value"])) : (i(), m(a, {
|
|
20
|
+
key: 1,
|
|
21
|
+
"no-of-time-units": n.noOfTimeUnits,
|
|
22
|
+
"time-unit": n.timeUnit
|
|
23
|
+
}, null, 8, ["no-of-time-units", "time-unit"]));
|
|
24
|
+
}
|
|
25
|
+
const v = /* @__PURE__ */ r(d, [["render", c]]);
|
|
26
|
+
export {
|
|
27
|
+
v as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { m as D } from "./mapFormMixin-D3BihYWW.js";
|
|
2
|
+
import { C as S } from "./CSelect-DgnT07Hk.js";
|
|
3
|
+
import { b as A } from "./CDropdownItem-Dmq5gYzA.js";
|
|
4
|
+
import { _ as U, b as v, o as u, d as p, e as h, s as i, B as l, v as n, w as k, F as V, k as y, f, aI as E } from "./main-Cb-nyil1.js";
|
|
5
|
+
import { u as O } from "./index-kp-GC5I0.js";
|
|
6
|
+
import { a as d } from "./index-BjiGCJPI.js";
|
|
7
|
+
const $ = (t, e) => t ? E(e.workStartAt || /* @__PURE__ */ new Date(), t) >= 0 : !0, C = {
|
|
8
|
+
name: "ExtraWorkTimeImpactTextEdit",
|
|
9
|
+
i18nOptions: {
|
|
10
|
+
namespaces: "ExtraWorkTimeImpactTextEdit",
|
|
11
|
+
messages: {
|
|
12
|
+
en: {
|
|
13
|
+
placeholders: {
|
|
14
|
+
workStartAt: "Start date",
|
|
15
|
+
workEndAt: "End date"
|
|
16
|
+
},
|
|
17
|
+
inlineForm: {
|
|
18
|
+
1: "Work will start",
|
|
19
|
+
2: "and will be completed no later than",
|
|
20
|
+
3: "Due to the work the original project time"
|
|
21
|
+
},
|
|
22
|
+
error: "End date needs to be after start date"
|
|
23
|
+
},
|
|
24
|
+
sv: {
|
|
25
|
+
placeholders: {
|
|
26
|
+
workStartAt: "Startdatum",
|
|
27
|
+
workEndAt: "Slutdatum"
|
|
28
|
+
},
|
|
29
|
+
inlineForm: {
|
|
30
|
+
1: "Arbetet kommer påbörjas",
|
|
31
|
+
2: "och är senast klar",
|
|
32
|
+
3: "Med anledning av arbetet kommer den ursprungliga kontraktstiden"
|
|
33
|
+
},
|
|
34
|
+
error: "Slutdatumet måste vara efter startdatumet."
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
components: {
|
|
39
|
+
CSelect: S,
|
|
40
|
+
CSwitch: A
|
|
41
|
+
},
|
|
42
|
+
emits: ["input"],
|
|
43
|
+
mixins: [
|
|
44
|
+
D([
|
|
45
|
+
"workStartAt",
|
|
46
|
+
"workEndAt",
|
|
47
|
+
"timeUnit",
|
|
48
|
+
"noOfTimeUnits",
|
|
49
|
+
"timeDeltaDirection"
|
|
50
|
+
])
|
|
51
|
+
],
|
|
52
|
+
setup() {
|
|
53
|
+
return {
|
|
54
|
+
v$: O()
|
|
55
|
+
};
|
|
56
|
+
},
|
|
57
|
+
data() {
|
|
58
|
+
return {
|
|
59
|
+
isOpen: !1,
|
|
60
|
+
// Variable to store the old content when the card is disabled
|
|
61
|
+
hiddenModuleDateDelay: null
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
validations() {
|
|
65
|
+
return {
|
|
66
|
+
workStartAt: {
|
|
67
|
+
required: d(
|
|
68
|
+
this.workStartAt || this.workEndAt || this.timeDeltaDirection || this.noOfTimeUnits || this.timeUnit
|
|
69
|
+
)
|
|
70
|
+
},
|
|
71
|
+
workEndAt: {
|
|
72
|
+
required: d(
|
|
73
|
+
this.workStartAt || this.workEndAt || this.timeDeltaDirection || this.noOfTimeUnits || this.timeUnit
|
|
74
|
+
),
|
|
75
|
+
endDateMustBeGreater: $
|
|
76
|
+
},
|
|
77
|
+
timeDeltaDirection: {
|
|
78
|
+
required: d(
|
|
79
|
+
this.workStartAt || this.workEndAt || this.timeDeltaDirection || this.noOfTimeUnits || this.timeUnit
|
|
80
|
+
)
|
|
81
|
+
},
|
|
82
|
+
noOfTimeUnits: {
|
|
83
|
+
required: d(
|
|
84
|
+
this.workStartAt || this.workEndAt || this.timeDeltaDirection || this.noOfTimeUnits || this.timeUnit
|
|
85
|
+
)
|
|
86
|
+
},
|
|
87
|
+
timeUnit: {
|
|
88
|
+
required: d(
|
|
89
|
+
this.workStartAt || this.workEndAt || this.timeDeltaDirection || this.noOfTimeUnits || this.timeUnit
|
|
90
|
+
)
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
},
|
|
94
|
+
mounted() {
|
|
95
|
+
const {
|
|
96
|
+
workStartAt: t,
|
|
97
|
+
workEndAt: e,
|
|
98
|
+
timeUnit: w,
|
|
99
|
+
noOfTimeUnits: a,
|
|
100
|
+
timeDeltaDirection: s
|
|
101
|
+
} = this;
|
|
102
|
+
(t || e || w || a || s) && (this.isOpen = !0);
|
|
103
|
+
},
|
|
104
|
+
methods: {
|
|
105
|
+
getDateValue(t) {
|
|
106
|
+
return t ? this.$formatDate(t, "yyyy-MM-dd") : null;
|
|
107
|
+
},
|
|
108
|
+
// Method to handle internal data when open/closed
|
|
109
|
+
toggleOpen(t) {
|
|
110
|
+
return t ? !0 : (this.clearRoot(), this.v$.$touch(), !1);
|
|
111
|
+
},
|
|
112
|
+
// Method to set the root object to null to clear data
|
|
113
|
+
clearRoot() {
|
|
114
|
+
const t = this._value.workStartAt.split(".");
|
|
115
|
+
t.pop();
|
|
116
|
+
const e = t.join(".");
|
|
117
|
+
this.$emit("input", { key: e, value: void 0 });
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}, T = { style: { position: "relative" } }, b = { key: 0 }, I = { class: "inline-form" }, F = ["value", "max"], M = ["value", "min"], _ = { value: "extend" }, q = { value: "shorten" }, B = ["value"], z = { value: "days" }, N = { value: "weeks" }, j = { value: "months" };
|
|
121
|
+
function L(t, e, w, a, s, m) {
|
|
122
|
+
const g = v("CSwitch"), c = v("CSelect");
|
|
123
|
+
return u(), p("div", T, [
|
|
124
|
+
h(g, {
|
|
125
|
+
modelValue: s.isOpen,
|
|
126
|
+
"onUpdate:modelValue": [
|
|
127
|
+
e[0] || (e[0] = (o) => s.isOpen = o),
|
|
128
|
+
m.toggleOpen
|
|
129
|
+
],
|
|
130
|
+
style: { position: "absolute", right: "0", top: "calc(-0.5 * var(--rem))", transform: "translateY(-100%)" }
|
|
131
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
132
|
+
s.isOpen ? (u(), p("div", b, [
|
|
133
|
+
i("div", I, [
|
|
134
|
+
l(n(t.$t("inlineForm.1")) + " ", 1),
|
|
135
|
+
i("input", {
|
|
136
|
+
type: "date",
|
|
137
|
+
class: "ml-1 bg-gray-100",
|
|
138
|
+
value: m.getDateValue(t.workStartAt),
|
|
139
|
+
max: m.getDateValue(t.workEndAt),
|
|
140
|
+
onInput: e[1] || (e[1] = (o) => {
|
|
141
|
+
var r;
|
|
142
|
+
return t.workStartAt = (r = o.target) != null && r.value ? new Date(o.target.value).toISOString() : null;
|
|
143
|
+
})
|
|
144
|
+
}, null, 40, F),
|
|
145
|
+
l(" " + n(t.$t("inlineForm.2")) + " ", 1),
|
|
146
|
+
i("input", {
|
|
147
|
+
type: "date",
|
|
148
|
+
class: "ml-1 bg-gray-100",
|
|
149
|
+
value: m.getDateValue(t.workEndAt),
|
|
150
|
+
min: m.getDateValue(t.workStartAt),
|
|
151
|
+
onInput: e[2] || (e[2] = (o) => {
|
|
152
|
+
var r;
|
|
153
|
+
return t.workEndAt = (r = o.target) != null && r.value ? new Date(o.target.value).toISOString() : null;
|
|
154
|
+
})
|
|
155
|
+
}, null, 40, M),
|
|
156
|
+
l(". " + n(t.$t("inlineForm.3")) + " ", 1),
|
|
157
|
+
h(c, {
|
|
158
|
+
modelValue: t.timeDeltaDirection,
|
|
159
|
+
"onUpdate:modelValue": e[3] || (e[3] = (o) => t.timeDeltaDirection = o),
|
|
160
|
+
placeholder: t.$t("_common:select"),
|
|
161
|
+
class: "select-width input-inline-language"
|
|
162
|
+
}, {
|
|
163
|
+
default: k(() => [
|
|
164
|
+
i("option", _, n(t.$t("_common:extend").toLowerCase()), 1),
|
|
165
|
+
i("option", q, n(t.$t("_common:shorten").toLowerCase()), 1)
|
|
166
|
+
]),
|
|
167
|
+
_: 1
|
|
168
|
+
}, 8, ["modelValue", "placeholder"]),
|
|
169
|
+
l(" " + n(t.$t("_common:with")) + " ", 1),
|
|
170
|
+
h(c, {
|
|
171
|
+
modelValue: t.noOfTimeUnits,
|
|
172
|
+
"onUpdate:modelValue": e[4] || (e[4] = (o) => t.noOfTimeUnits = o),
|
|
173
|
+
placeholder: t.$t("_common:select"),
|
|
174
|
+
class: "select-width quantity input-inline-language",
|
|
175
|
+
style: { width: "calc(2 * var(--rem))", "margin-right": "calc(0.5 * var(--rem))" }
|
|
176
|
+
}, {
|
|
177
|
+
default: k(() => [
|
|
178
|
+
(u(), p(V, null, y(31, (o, r) => i("option", {
|
|
179
|
+
key: r,
|
|
180
|
+
value: o - 1,
|
|
181
|
+
style: { "font-size": "calc(calc(1 * var(--rem)) + 1px)", "text-align": "center" }
|
|
182
|
+
}, n(o - 1), 9, B)), 64))
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
}, 8, ["modelValue", "placeholder"]),
|
|
186
|
+
h(c, {
|
|
187
|
+
modelValue: t.timeUnit,
|
|
188
|
+
"onUpdate:modelValue": e[5] || (e[5] = (o) => t.timeUnit = o),
|
|
189
|
+
placeholder: t.$t("_common:select"),
|
|
190
|
+
class: "select-width unit input-inline-language",
|
|
191
|
+
onBlur: e[6] || (e[6] = (o) => a.v$.timeUnit.$touch())
|
|
192
|
+
}, {
|
|
193
|
+
default: k(() => [
|
|
194
|
+
i("option", z, n(t.$t("_common:day_plural")), 1),
|
|
195
|
+
i("option", N, n(t.$t("_common:week_plural")), 1),
|
|
196
|
+
i("option", j, n(t.$t("_common:month_plural")), 1)
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
}, 8, ["modelValue", "placeholder"]),
|
|
200
|
+
e[8] || (e[8] = l(". "))
|
|
201
|
+
]),
|
|
202
|
+
a.v$.$invalid && a.v$.$dirty ? (u(), p("div", {
|
|
203
|
+
key: 0,
|
|
204
|
+
class: "error-wrapper",
|
|
205
|
+
onClick: e[7] || (e[7] = (o) => a.v$.$touch())
|
|
206
|
+
}, [
|
|
207
|
+
e[9] || (e[9] = i("svg", {
|
|
208
|
+
name: "info-icon",
|
|
209
|
+
width: "14",
|
|
210
|
+
height: "14",
|
|
211
|
+
viewBox: "0 0 125 125",
|
|
212
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
213
|
+
}, [
|
|
214
|
+
i("path", {
|
|
215
|
+
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",
|
|
216
|
+
fill: "currentColor",
|
|
217
|
+
"fill-rule": "evenodd"
|
|
218
|
+
})
|
|
219
|
+
], -1)),
|
|
220
|
+
l(" " + n(t.$t("error")), 1)
|
|
221
|
+
])) : f("", !0)
|
|
222
|
+
])) : f("", !0)
|
|
223
|
+
]);
|
|
224
|
+
}
|
|
225
|
+
const K = /* @__PURE__ */ U(C, [["render", L], ["__scopeId", "data-v-057b0b51"]]);
|
|
226
|
+
export {
|
|
227
|
+
K as default
|
|
228
|
+
};
|