@cling-se/widget 1.0.0-beta.1 → 1.0.0-beta.3
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-DRcy9Dqb.js +101 -0
- package/dist/AnswerModal-Dc3cgkap.js +3291 -0
- package/dist/AttachmentItem-Bef5zdHr.js +171 -0
- package/dist/BaseUpload--paElAyr.js +2472 -0
- package/dist/BlockMedia-DbVE3vsb.js +103 -0
- package/dist/CCallout-81NkOge7.js +104 -0
- package/dist/{CCurrencyDropdown-qH-3m2eP.js → CCurrencyDropdown-M3hi1VVi.js} +91 -49
- package/dist/CDropdownItem-DvaU14-V.js +749 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-B4s_Zfsp.js +292 -0
- package/dist/{CPhoneFormat-CfQayFxw.js → CPhoneFormat-BBQ_UIc_.js} +13 -21
- package/dist/CPhoneInput-Dw_LJDgc.js +207 -0
- package/dist/CPriceInput-BfWZZv0f.js +140 -0
- package/dist/CSelect-B1AAIFbK.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-D56L_PYT.js +51 -0
- package/dist/ClientAutocomplete-D5veIKyZ.js +532 -0
- package/dist/ClientModal-D8_TPzkv.js +1181 -0
- package/dist/ColorPicker-C0OahiVg.js +1408 -0
- package/dist/CompanyModal-CjzwQU4B.js +250 -0
- package/dist/ContentWrapper-DrmiaFOz.js +265 -0
- package/dist/CoverBlockSettings-C9DWvA-C.js +861 -0
- package/dist/DocAnswer-BEsvAMEp.js +33 -0
- package/dist/DocDetails--LO0-S5d.js +448 -0
- package/dist/DocForm-D6_tGw06.js +6748 -0
- package/dist/DocFormSend-CdFL6rOD.js +171 -0
- package/dist/DocLinks-CIQFUh7c.js +36 -0
- package/dist/DocModalBase-DtPJK9sp.js +29 -0
- package/dist/DocPrint-qX88Ue2I.js +399 -0
- package/dist/DocReceipt-BbXoCmpz.js +341 -0
- package/dist/DocSendReminder-DZqOkd63.js +181 -0
- package/dist/DocTextEditor-Cw-Skmd4.js +19413 -0
- package/dist/DocTimeline-CdbSOVD1.js +537 -0
- package/dist/DocumentClient-DtTv7gkF.js +90 -0
- package/dist/DocumentLayout-BRfEjoYq.js +1368 -0
- package/dist/DocumentLogotype-CUNzyewq.js +162 -0
- package/dist/DocumentVoided-CgDt-JFI.js +33 -0
- package/dist/EmbedInput-rPvTnpXn.js +157 -0
- package/dist/EmbedSettings-BtmFxYGB.js +103 -0
- package/dist/ErrorCallout-B6YrdUsG.js +34 -0
- package/dist/FilePreviewModal-BfIqIIbb.js +202 -0
- package/dist/Flag-CE3K7-8a.js +41 -0
- package/dist/HeaderSettings-5QR7MmVf.js +720 -0
- package/dist/ImageSelectModal-E3hGi8ty.js +119 -0
- package/dist/ImageUploadWrapper-BaexFAAh.js +1585 -0
- package/dist/Index--gv5fH24.js +201 -0
- package/dist/{Index-D4XgxmbD.js → Index-B3ycPjAI.js} +10 -18
- package/dist/Index-B7ECpXAa.js +28 -0
- package/dist/Index-BIXfUsHH.js +52 -0
- package/dist/Index-BM658CCq.js +93 -0
- package/dist/{Index--qPMWUMT.js → Index-B_DCM_bL.js} +48 -61
- package/dist/Index-BcMATT2_.js +47 -0
- package/dist/Index-BpWFU3Td.js +68 -0
- package/dist/Index-BulSI5iO.js +38 -0
- package/dist/Index-CHInIRw5.js +228 -0
- package/dist/Index-COYqsxs9.js +25 -0
- package/dist/Index-CSGk060H.js +1098 -0
- package/dist/Index-CV2O2fWT.js +21 -0
- package/dist/{Index-Bu0MGrj6.js → Index-CXqdBSZ3.js} +313 -206
- package/dist/Index-CavttI66.js +126 -0
- package/dist/Index-CbZ65-O3.js +629 -0
- package/dist/Index-CqrTij2j.js +70 -0
- package/dist/Index-CrsGxDWC.js +16 -0
- package/dist/Index-CxY5Ii6K.js +49 -0
- package/dist/Index-D7Z2w9cd.js +163 -0
- package/dist/Index-D7ixmzBH.js +76 -0
- package/dist/Index-D7pzv-AR.js +74 -0
- package/dist/Index-D9keESQi.js +159 -0
- package/dist/Index-Dd6ueeUc.js +136 -0
- package/dist/{Index-DIOiMm9f.js → Index-DexIUz3R.js} +10 -18
- package/dist/Index-Dnmt6W0u.js +140 -0
- package/dist/Index-DtcV6rl1.js +4 -0
- package/dist/Index-DuDVafLn.js +3452 -0
- package/dist/Index-L913X8Ly.js +102 -0
- package/dist/Index-Mdn0niR_.js +28 -0
- package/dist/Index-_ellB2fs.js +363 -0
- package/dist/{Index-DcQbh-z2.js → Index-baSB5tPv.js} +9 -17
- package/dist/Index-bgKndj-l.js +39 -0
- package/dist/Index-lNYXAFUH.js +87 -0
- package/dist/Index.vue_vue_type_script_lang-DLogex2i.js +671 -0
- package/dist/InputToggleRow-BCvMVbW-.js +99 -0
- package/dist/ManualPopover-BzBvSl_x.js +57 -0
- package/dist/MediaWrapper-_LPau2Ks.js +18 -0
- package/dist/{NotBindingText-CNV2Wmdx.js → NotBindingText-DgcOjUmQ.js} +13 -17
- package/dist/PackageGroup-1X3jUipj.js +1058 -0
- package/dist/PdfTerms-Bf4TlzP5.js +34 -0
- package/dist/PdfViewer-BdhwFfc6.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-BgsfquR_.js +17 -0
- package/dist/PriceHeader-DyC8xssf.js +488 -0
- package/dist/SearchApi-C__orGkO.js +137 -0
- package/dist/SendForm-Be8uiuaJ.js +7031 -0
- package/dist/Setup-DbXs2Zar.js +47 -0
- package/dist/{SmartList-Qgu0rMrI.js → SmartList-BmmtZoZ0.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-D0mloJIN.js +1303 -0
- package/dist/{TermsSettings-CE3h_xkm.js → TermsSettings-DsN6v5yj.js} +169 -49
- package/dist/ThemeColorRow-BL6p09pN.js +108 -0
- package/dist/ToggleBinding-B-tVioQ9.js +44 -0
- package/dist/UploadModal-BnA1xLMy.js +134 -0
- package/dist/VideoPlayerInput-D38S1IDH.js +135 -0
- package/dist/VideoPlayerSettings-B5iXoj5E.js +78 -0
- package/dist/VideoSelectModal-BNCoMFKU.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-CBRJalZI.js} +7 -7
- package/dist/dom-CkTGWrfu.js +69 -0
- package/dist/{focusDrawerMixin-Be6BAK8-.js → focusDrawerMixin-T94b2Y6F.js} +1 -1
- package/dist/{formDrawerState-DRbg5rVI.js → formDrawerState-jssoGOce.js} +2 -2
- package/dist/helpers-Vo_6Zz3M.js +44 -0
- package/dist/index-8g2jwLJx.js +513 -0
- package/dist/index-B0udVHyo.js +125 -0
- package/dist/index-D63IJVsJ.js +3525 -0
- package/dist/index-DCYCN_FR.js +508 -0
- package/dist/index-FRHGChx1.js +149 -0
- package/dist/index-HXiq8Yxs.js +270 -0
- package/dist/index-jOufDnZ8.js +188 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +306 -1505
- package/dist/{main-WKzC-Dnu.js → main-C4OdoeS2.js} +36750 -37369
- package/dist/mapFormMixin-v-nbaWcx.js +1544 -0
- package/dist/omit-GuxX6Zt-.js +31 -0
- package/dist/{publicSenderState-BujjYsZZ.js → publicSenderState-C-7OMKKW.js} +4 -4
- package/dist/regions-BdZt9Srn.js +1250 -0
- package/dist/splitpanes-DChJiJ8d.js +342 -0
- package/dist/style.css +1 -4
- package/dist/template-m1V22cUt.js +1493 -0
- package/dist/{throttle-CWPJmFid.js → throttle-WWMDZKby.js} +2 -2
- package/dist/tippy.esm-Dz-faEsS.js +1994 -0
- package/dist/useTermsModal-C_eLdGLi.js +87 -0
- package/dist/{utils-CA_Zy6u1.js → utils-vnvZGRwQ.js} +8 -11
- package/dist/validation-C-dQpENM.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,68 @@
|
|
|
1
|
+
import { m as c } from "./mapFormMixin-v-nbaWcx.js";
|
|
2
|
+
import { _ as u, X as f, b as m, o, d as i, s as d, c as g, af as v, v as y, f as h, S, n as B, Z as b } from "./main-C4OdoeS2.js";
|
|
3
|
+
const C = {
|
|
4
|
+
name: "DocChapter",
|
|
5
|
+
components: {
|
|
6
|
+
CInput: f
|
|
7
|
+
},
|
|
8
|
+
mixins: [c(["title"])],
|
|
9
|
+
props: {
|
|
10
|
+
enableSpacingX: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !0
|
|
13
|
+
},
|
|
14
|
+
enableSpacingY: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !0
|
|
17
|
+
},
|
|
18
|
+
pdfSpacingX: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
methods: {
|
|
24
|
+
onAdd() {
|
|
25
|
+
var e;
|
|
26
|
+
this._isNodeRecentlyAdded() && ((e = this.$refs.input) == null || e.focus());
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}, k = {
|
|
30
|
+
key: 1,
|
|
31
|
+
class: "title"
|
|
32
|
+
};
|
|
33
|
+
function I(e, t, n, X, A, r) {
|
|
34
|
+
var s;
|
|
35
|
+
const p = m("CInput");
|
|
36
|
+
return o(), i("div", b(e.$attrs, { class: "chapter" }), [
|
|
37
|
+
d("div", {
|
|
38
|
+
class: B(["no-drag", {
|
|
39
|
+
"chapter-spacing-x": n.enableSpacingX,
|
|
40
|
+
"chapter-spacing-y": n.enableSpacingY,
|
|
41
|
+
"pdf-spacing-x": n.pdfSpacingX
|
|
42
|
+
}])
|
|
43
|
+
}, [
|
|
44
|
+
e.canEdit && ((s = e._value) != null && s.title) ? (o(), g(p, {
|
|
45
|
+
key: 0,
|
|
46
|
+
ref: "input",
|
|
47
|
+
"model-value": e.title,
|
|
48
|
+
spellcheck: !1,
|
|
49
|
+
placeholder: e.$t("components:account.documentForm.titleAndText.title"),
|
|
50
|
+
static: "",
|
|
51
|
+
class: "title preview-title-input",
|
|
52
|
+
onKeydown: t[0] || (t[0] = v((a) => a.target.blur(), ["enter"])),
|
|
53
|
+
onBlur: t[1] || (t[1] = (a) => {
|
|
54
|
+
var l;
|
|
55
|
+
e.title = ((l = a.target) == null ? void 0 : l.value) || "";
|
|
56
|
+
}),
|
|
57
|
+
onVnodeMounted: r.onAdd
|
|
58
|
+
}, null, 8, ["model-value", "placeholder", "onVnodeMounted"])) : e.title ? (o(), i("div", k, y(e.title), 1)) : h("", !0),
|
|
59
|
+
d("div", null, [
|
|
60
|
+
S(e.$slots, "default", {}, void 0, !0)
|
|
61
|
+
])
|
|
62
|
+
], 2)
|
|
63
|
+
], 16);
|
|
64
|
+
}
|
|
65
|
+
const $ = /* @__PURE__ */ u(C, [["render", I], ["__scopeId", "data-v-fe61ce8b"]]);
|
|
66
|
+
export {
|
|
67
|
+
$ as default
|
|
68
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { m as c } from "./mapFormMixin-v-nbaWcx.js";
|
|
2
|
+
import { _ as u, z as r, b as t, o, c as a } from "./main-C4OdoeS2.js";
|
|
3
|
+
const s = {
|
|
4
|
+
name: "ExtraWorkConstructionPricingList",
|
|
5
|
+
components: {
|
|
6
|
+
Read: r(() => import("./Index-B_DCM_bL.js")),
|
|
7
|
+
Edit: r(() => import("./Index-Dnmt6W0u.js"))
|
|
8
|
+
},
|
|
9
|
+
emits: ["input"],
|
|
10
|
+
mixins: [
|
|
11
|
+
c([
|
|
12
|
+
"workPrice",
|
|
13
|
+
"managementPrice",
|
|
14
|
+
"entrepreneurMarkupPercentage",
|
|
15
|
+
"miscMarkupPercentage"
|
|
16
|
+
])
|
|
17
|
+
]
|
|
18
|
+
};
|
|
19
|
+
function d(e, n, k, g, l, _) {
|
|
20
|
+
const m = t("Edit"), p = t("Read");
|
|
21
|
+
return e.canEdit ? (o(), a(m, {
|
|
22
|
+
key: 0,
|
|
23
|
+
_document: e._document,
|
|
24
|
+
_value: e._value,
|
|
25
|
+
onInput: n[0] || (n[0] = (i) => e.$emit("input", i))
|
|
26
|
+
}, null, 8, ["_document", "_value"])) : (o(), a(p, {
|
|
27
|
+
key: 1,
|
|
28
|
+
_document: e._document,
|
|
29
|
+
"work-price": e.workPrice,
|
|
30
|
+
"management-price": e.managementPrice,
|
|
31
|
+
"entrepreneur-markup-percentage": e.entrepreneurMarkupPercentage,
|
|
32
|
+
"misc-markup-percentage": e.miscMarkupPercentage
|
|
33
|
+
}, null, 8, ["_document", "work-price", "management-price", "entrepreneur-markup-percentage", "misc-markup-percentage"]));
|
|
34
|
+
}
|
|
35
|
+
const E = /* @__PURE__ */ u(s, [["render", d]]);
|
|
36
|
+
export {
|
|
37
|
+
E as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { m as D } from "./mapFormMixin-v-nbaWcx.js";
|
|
2
|
+
import { C as S } from "./CSelect-B1AAIFbK.js";
|
|
3
|
+
import { b as A } from "./CDropdownItem-DvaU14-V.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-C4OdoeS2.js";
|
|
5
|
+
import { u as O } from "./index-8g2jwLJx.js";
|
|
6
|
+
import { a as d } from "./index-FRHGChx1.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
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { m as r } from "./mapFormMixin-v-nbaWcx.js";
|
|
2
|
+
import { _ as c, z as e, b as i, o as m, c as a, f as u } from "./main-C4OdoeS2.js";
|
|
3
|
+
const _ = {
|
|
4
|
+
name: "NotBinding",
|
|
5
|
+
components: {
|
|
6
|
+
Edit: e(() => import("./ToggleBinding-B-tVioQ9.js")),
|
|
7
|
+
Read: e(() => import("./NotBindingText-DgcOjUmQ.js"))
|
|
8
|
+
},
|
|
9
|
+
emits: ["input"],
|
|
10
|
+
mixins: [r()]
|
|
11
|
+
};
|
|
12
|
+
function f(n, o, l, B, $, g) {
|
|
13
|
+
var t;
|
|
14
|
+
const d = i("Edit"), s = i("Read");
|
|
15
|
+
return n.canEdit ? (m(), a(d, {
|
|
16
|
+
key: 0,
|
|
17
|
+
_document: n._document,
|
|
18
|
+
_value: { notBinding: "data.notBinding" },
|
|
19
|
+
onInput: o[0] || (o[0] = (p) => n.$emit("input", p))
|
|
20
|
+
}, null, 8, ["_document"])) : (t = n._document.data) != null && t.notBinding ? (m(), a(s, { key: 1 })) : u("", !0);
|
|
21
|
+
}
|
|
22
|
+
const y = /* @__PURE__ */ c(_, [["render", f]]);
|
|
23
|
+
export {
|
|
24
|
+
y as default
|
|
25
|
+
};
|