@cling-se/widget 0.14.3 → 0.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +4 -4
- package/README.md +40 -40
- package/package.json +1 -1
- package/tsconfig.json +26 -26
- package/tsconfig.node.json +10 -10
- package/tsconfig.paths.json +17 -17
- package/vite.config.ts +61 -61
- package/dist/AddClientCallout-DKH-LP5B.js +0 -46
- package/dist/AnswerModal-BCbq8wc4.js +0 -3869
- package/dist/AttachmentItem-60CSZnkF.js +0 -78
- package/dist/BaseDatePicker-Cl8SnC1k.js +0 -3183
- package/dist/BaseUpload-D4FCjlhL.js +0 -1977
- package/dist/BlockMedia-CqkwdGnE.js +0 -76
- package/dist/CCallout-BTBgU8f-.js +0 -59
- package/dist/CCurrencyDropdown-CL32Mo-Y.js +0 -246
- package/dist/CDropdownItem-DlWtQwO6.js +0 -538
- package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
- package/dist/CFormField-BxJv-nUO.js +0 -241
- package/dist/CPhoneFormat-CJ9kndtJ.js +0 -62
- package/dist/CPriceInput-BpXI5X2j.js +0 -112
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
- package/dist/ClientAutocomplete-D9Dj9iBW.js +0 -78
- package/dist/ClientModal-JOt8NGcR.js +0 -625
- package/dist/ColorPicker-uPKD-Gvm.js +0 -2879
- package/dist/CompanyModal-7bG0iIRd.js +0 -141
- package/dist/ContentWrapper-B2nyZHL4.js +0 -183
- package/dist/CoverBlockSettings-C1O_FAde.js +0 -275
- package/dist/DocAnswer-B9G-y4Px.js +0 -36
- package/dist/DocDetails-DYHxKChO.js +0 -246
- package/dist/DocForm-BktEXjML.js +0 -7273
- package/dist/DocFormSend-DM6QgUOj.js +0 -143
- package/dist/DocLinks-BIGwfB3H.js +0 -38
- package/dist/DocModalBase-D5GdwTI7.js +0 -28
- package/dist/DocPrint-HqbaIGms.js +0 -240
- package/dist/DocReceipt-WXo6vWyW.js +0 -210
- package/dist/DocSendReminder-C8dNEpLg.js +0 -137
- package/dist/DocTextEditor-BfOZFDTP.js +0 -17177
- package/dist/DocTimeline-CitwS9px.js +0 -481
- package/dist/DocumentClient-CQ_z8ajY.js +0 -136
- package/dist/DocumentLayout-BA7mFfZh.js +0 -4909
- package/dist/DocumentLogotype-woc_hfll.js +0 -87
- package/dist/DocumentVoided-DC4FzpxG.js +0 -25
- package/dist/EmbedInput-CheqYcNr.js +0 -113
- package/dist/EmbedSettings-YcwM8hJw.js +0 -72
- package/dist/ErrorCallout-6pCYcx00.js +0 -28
- package/dist/FilePreviewModal-T8AiphqO.js +0 -81
- package/dist/Flag-Ddm6a4Il.js +0 -114
- package/dist/HeaderSettings-DHdZweJH.js +0 -392
- package/dist/ImageSelectModal-CAoBhnI8.js +0 -84
- package/dist/ImageUploadWrapper-CNv59Lhh.js +0 -1604
- package/dist/Index-B6S9U4Z-.js +0 -26
- package/dist/Index-BHX0D5fW.js +0 -559
- package/dist/Index-BL_7m5Ca.js +0 -70
- package/dist/Index-BXMXEUfo.js +0 -223
- package/dist/Index-BhVBvMu6.js +0 -32
- package/dist/Index-Bl_SNW80.js +0 -25
- package/dist/Index-BsguntKl.js +0 -21
- package/dist/Index-CGYjPfsf.js +0 -2402
- package/dist/Index-CKrGb3of.js +0 -61
- package/dist/Index-CMNrQo5a.js +0 -140
- package/dist/Index-CU50Al5c.js +0 -642
- package/dist/Index-CdqrrZxd.js +0 -77
- package/dist/Index-CfnL9dAw.js +0 -58
- package/dist/Index-CuW0MYrT.js +0 -171
- package/dist/Index-D-z8JSn6.js +0 -154
- package/dist/Index-D8giJ_bs.js +0 -84
- package/dist/Index-DDvfqy_h.js +0 -24
- package/dist/Index-DQDalqZ-.js +0 -107
- package/dist/Index-DTIPKKkV.js +0 -150
- package/dist/Index-DWxzUBff.js +0 -754
- package/dist/Index-DaNGeDQw.js +0 -144
- package/dist/Index-DfLU_AyN.js +0 -49
- package/dist/Index-DkVav_I7.js +0 -25
- package/dist/Index-Dxp8QAtB.js +0 -57
- package/dist/Index-DzjxFkcv.js +0 -52
- package/dist/Index-EwUJJWaB.js +0 -69
- package/dist/Index-I60qAqLl.js +0 -31
- package/dist/Index-LfF-7lQK.js +0 -292
- package/dist/Index-P0_dyc2V.js +0 -45
- package/dist/Index-RQMPSeHw.js +0 -98
- package/dist/Index-oipNLl3Y.js +0 -46
- package/dist/Index-sJq2Iyvt.js +0 -62
- package/dist/Index-uubi3NHX.js +0 -33
- package/dist/Index-vNj2kYZT.js +0 -55
- package/dist/InputToggleRow-B2pWvVyx.js +0 -57
- package/dist/ManualPopover-BI_Sf1zG.js +0 -54
- package/dist/MediaWrapper-eFpWxv3n.js +0 -23
- package/dist/NotBindingText-DA5NpePz.js +0 -32
- package/dist/PackageGroup-DOSijBdN.js +0 -699
- package/dist/PdfTerms-Q5YuVtrJ.js +0 -36
- package/dist/PdfViewer-zcWl8XZT.js +0 -374
- package/dist/PlainHtml-BmA83UAm.js +0 -20
- package/dist/PriceHeader-C14L5zgG.js +0 -339
- package/dist/SearchApi-CGT7-jVf.js +0 -161
- package/dist/Setup-RJQvZlDO.js +0 -50
- package/dist/SmartList-YosKRPVn.js +0 -83
- package/dist/TermsSettings-C5JTv7rT.js +0 -102
- package/dist/ThemeColorRow-D-C_tm2f.js +0 -63
- package/dist/ToggleBinding-KEVHHvKf.js +0 -38
- package/dist/UploadModal-DOYoWELI.js +0 -95
- package/dist/VideoPlayerInput-Dxb6CNk-.js +0 -93
- package/dist/VideoPlayerSettings-DsVN4Ix-.js +0 -61
- package/dist/VideoSelectModal-BpfzNx61.js +0 -100
- package/dist/anime.es-BrPTThYb.js +0 -858
- package/dist/answerDocumentMixin-BJMGrfUs.js +0 -51
- package/dist/color-TdtKxwVa.js +0 -19
- package/dist/debounce-BN83gOVd.js +0 -84
- package/dist/dom-CJxkno7i.js +0 -91
- package/dist/favicon.ico +0 -0
- package/dist/focusDrawerMixin-CawyQaGq.js +0 -22
- package/dist/formComponentsInstall-jcnyQ1zw.js +0 -2494
- package/dist/formDrawerState-BdNohvZH.js +0 -20
- package/dist/formValidationMixin-DOwgebZk.js +0 -49
- package/dist/i18nMessages-Chz_lxGG.js +0 -17
- package/dist/index-BBJIOkm_.js +0 -347
- package/dist/index-BNq9YCWc.js +0 -166
- package/dist/index-BdhbkLLU.js +0 -81
- package/dist/index-COf8F6CL.js +0 -3916
- package/dist/index-D0WvZHX_.js +0 -102
- package/dist/index-DTzZP4yq.js +0 -492
- package/dist/index.es.js +0 -35
- package/dist/index.umd.js +0 -3148
- package/dist/main-DE5THsiR.js +0 -56739
- package/dist/mapFormMixin-y2txvLw9.js +0 -72
- package/dist/omit-BrsWQAtU.js +0 -31
- package/dist/publicSenderState-BYsq95Vt.js +0 -21
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/style.css +0 -4
- package/dist/throttle-C2srA2wa.js +0 -18
- package/dist/tinycolor-SjV_ROuP.js +0 -633
- package/dist/tippy.esm-Dj7DQppr.js +0 -1799
- package/dist/utils-16HMuRfY.js +0 -108
- package/dist/vuedraggable.umd-Cd1g2Hr7.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
package/dist/Index-CKrGb3of.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { P as r } from "./PlainHtml-BmA83UAm.js";
|
|
2
|
-
import { n as o } from "./main-DE5THsiR.js";
|
|
3
|
-
const s = {
|
|
4
|
-
name: "ExtraWorkTimeImpactTextRead",
|
|
5
|
-
props: {
|
|
6
|
-
workStartAt: {
|
|
7
|
-
type: String,
|
|
8
|
-
default: null
|
|
9
|
-
},
|
|
10
|
-
workEndAt: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: null
|
|
13
|
-
},
|
|
14
|
-
timeDeltaDirection: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: "increase"
|
|
17
|
-
},
|
|
18
|
-
noOfTimeUnits: {
|
|
19
|
-
type: Number,
|
|
20
|
-
default: 0
|
|
21
|
-
},
|
|
22
|
-
timeUnit: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: "days"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
i18nOptions: {
|
|
28
|
-
namespaces: "ExtraWorkTimeImpactTextRead",
|
|
29
|
-
sv: {
|
|
30
|
-
description1: "Arbetet kommer att påbörjas den",
|
|
31
|
-
description2: "och ska senast vara klar den ",
|
|
32
|
-
description3: " På grund av ändringar och / eller tilläggsarbete",
|
|
33
|
-
description4: " den ursprungliga kontraktstiden med"
|
|
34
|
-
},
|
|
35
|
-
en: {
|
|
36
|
-
description1: "The work will commence",
|
|
37
|
-
description2: "and be complete at the latest ",
|
|
38
|
-
description3: " Because of amendments and / or additional work, the original contract period will",
|
|
39
|
-
description4: " by"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
43
|
-
render(t) {
|
|
44
|
-
const e = this.$formatDate(this.workStartAt), n = this.$formatDate(this.workEndAt), i = this.$tc(`_common:${this.timeUnit}`, {
|
|
45
|
-
count: this.noOfTimeUnits
|
|
46
|
-
});
|
|
47
|
-
return t(r, [this.$t("description1"), " ", t("strong", [e]), " ", this.$t("description2"), t("strong", [n]), ".", this.$t("description3"), " ", t("strong", [this.$t(`_common:${this.timeDeltaDirection}`)]), this.$t("description4"), " ", t("strong", [i]), "."]);
|
|
48
|
-
}
|
|
49
|
-
}, a = null, c = null;
|
|
50
|
-
var d = /* @__PURE__ */ o(
|
|
51
|
-
s,
|
|
52
|
-
a,
|
|
53
|
-
c,
|
|
54
|
-
!1,
|
|
55
|
-
null,
|
|
56
|
-
null
|
|
57
|
-
);
|
|
58
|
-
const p = d.exports;
|
|
59
|
-
export {
|
|
60
|
-
p as default
|
|
61
|
-
};
|
package/dist/Index-CMNrQo5a.js
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { m as o } from "./mapFormMixin-y2txvLw9.js";
|
|
2
|
-
import { n as s, U as l } from "./main-DE5THsiR.js";
|
|
3
|
-
import { v as a } from "./index-DTzZP4yq.js";
|
|
4
|
-
const c = (e, t) => e ? l(t.workStartAt || /* @__PURE__ */ new Date(), e) >= 0 : !0, u = {
|
|
5
|
-
name: "ExtraWorkTimeImpactTextEdit",
|
|
6
|
-
i18nOptions: {
|
|
7
|
-
namespaces: "ExtraWorkTimeImpactTextEdit",
|
|
8
|
-
messages: {
|
|
9
|
-
en: {
|
|
10
|
-
placeholders: {
|
|
11
|
-
workStartAt: "Start date",
|
|
12
|
-
workEndAt: "End date"
|
|
13
|
-
},
|
|
14
|
-
inlineForm: {
|
|
15
|
-
1: "Work will start",
|
|
16
|
-
2: "and will be completed no later than",
|
|
17
|
-
3: "Due to the work the original project time"
|
|
18
|
-
},
|
|
19
|
-
error: "End date needs to be after start date"
|
|
20
|
-
},
|
|
21
|
-
sv: {
|
|
22
|
-
placeholders: {
|
|
23
|
-
workStartAt: "Startdatum",
|
|
24
|
-
workEndAt: "Slutdatum"
|
|
25
|
-
},
|
|
26
|
-
inlineForm: {
|
|
27
|
-
1: "Arbetet kommer påbörjas",
|
|
28
|
-
2: "och är senast klar",
|
|
29
|
-
3: "Med anledning av arbetet kommer den ursprungliga kontraktstiden"
|
|
30
|
-
},
|
|
31
|
-
error: "Slutdatumet måste vara efter startdatumet."
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
mixins: [
|
|
36
|
-
o([
|
|
37
|
-
"workStartAt",
|
|
38
|
-
"workEndAt",
|
|
39
|
-
"timeUnit",
|
|
40
|
-
"noOfTimeUnits",
|
|
41
|
-
"timeDeltaDirection"
|
|
42
|
-
])
|
|
43
|
-
],
|
|
44
|
-
data() {
|
|
45
|
-
return {
|
|
46
|
-
isOpen: !1,
|
|
47
|
-
// Variable to store the old content when the card is disabled
|
|
48
|
-
hiddenModuleDateDelay: null
|
|
49
|
-
};
|
|
50
|
-
},
|
|
51
|
-
validations: {
|
|
52
|
-
workStartAt: {
|
|
53
|
-
required: a.requiredIf(
|
|
54
|
-
(e) => e.workStartAt || e.workEndAt || e.timeDeltaDirection || e.noOfTimeUnits || e.timeUnit
|
|
55
|
-
)
|
|
56
|
-
},
|
|
57
|
-
workEndAt: {
|
|
58
|
-
required: a.requiredIf(
|
|
59
|
-
(e) => e.workStartAt || e.workEndAt || e.timeDeltaDirection || e.noOfTimeUnits || e.timeUnit
|
|
60
|
-
),
|
|
61
|
-
endDateMustBeGreater: c
|
|
62
|
-
},
|
|
63
|
-
timeDeltaDirection: {
|
|
64
|
-
required: a.requiredIf(
|
|
65
|
-
(e) => e.workStartAt || e.workEndAt || e.timeDeltaDirection || e.noOfTimeUnits || e.timeUnit
|
|
66
|
-
)
|
|
67
|
-
},
|
|
68
|
-
noOfTimeUnits: {
|
|
69
|
-
required: a.requiredIf(
|
|
70
|
-
(e) => e.workStartAt || e.workEndAt || e.timeDeltaDirection || e.noOfTimeUnits || e.timeUnit
|
|
71
|
-
)
|
|
72
|
-
},
|
|
73
|
-
timeUnit: {
|
|
74
|
-
required: a.requiredIf(
|
|
75
|
-
(e) => e.workStartAt || e.workEndAt || e.timeDeltaDirection || e.noOfTimeUnits || e.timeUnit
|
|
76
|
-
)
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
mounted() {
|
|
80
|
-
const {
|
|
81
|
-
workStartAt: e,
|
|
82
|
-
workEndAt: t,
|
|
83
|
-
timeUnit: r,
|
|
84
|
-
noOfTimeUnits: i,
|
|
85
|
-
timeDeltaDirection: n
|
|
86
|
-
} = this;
|
|
87
|
-
(e || t || r || i || n) && (this.isOpen = !0);
|
|
88
|
-
},
|
|
89
|
-
methods: {
|
|
90
|
-
getDateValue(e) {
|
|
91
|
-
return e ? this.$formatDate(e, "yyyy-MM-dd") : null;
|
|
92
|
-
},
|
|
93
|
-
// Method to handle internal data when open/closed
|
|
94
|
-
toggleOpen(e) {
|
|
95
|
-
return e ? !0 : (this.clearRoot(), this.$v.$touch(), !1);
|
|
96
|
-
},
|
|
97
|
-
// Method to set the root object to null to clear data
|
|
98
|
-
clearRoot() {
|
|
99
|
-
const e = this._value.workStartAt.split(".");
|
|
100
|
-
e.pop();
|
|
101
|
-
const t = e.join(".");
|
|
102
|
-
this.$emit("input", { key: t, value: void 0 });
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
var m = function() {
|
|
107
|
-
var t = this, r = t._self._c;
|
|
108
|
-
return r("div", { staticStyle: { position: "relative" } }, [r("CSwitch", { staticStyle: { position: "absolute", right: "0", top: "calc(-0.5 * var(--rem))", transform: "translateY(-100%)" }, on: { input: t.toggleOpen }, model: { value: t.isOpen, callback: function(i) {
|
|
109
|
-
t.isOpen = i;
|
|
110
|
-
}, expression: "isOpen" } }), t.isOpen ? r("div", [r("div", { staticClass: "inline-form" }, [t._v(" " + t._s(t.$t("inlineForm.1")) + " "), r("input", { staticClass: "ml-1 bg-gray-100", attrs: { type: "date", max: t.getDateValue(t.workEndAt) }, domProps: { value: t.getDateValue(t.workStartAt) }, on: { input: function(i) {
|
|
111
|
-
var n;
|
|
112
|
-
t.workStartAt = (n = i.target) != null && n.value ? new Date(i.target.value).toISOString() : null;
|
|
113
|
-
} } }), t._v(" " + t._s(t.$t("inlineForm.2")) + " "), r("input", { staticClass: "ml-1 bg-gray-100", attrs: { type: "date", min: t.getDateValue(t.workStartAt) }, domProps: { value: t.getDateValue(t.workEndAt) }, on: { input: function(i) {
|
|
114
|
-
var n;
|
|
115
|
-
t.workEndAt = (n = i.target) != null && n.value ? new Date(i.target.value).toISOString() : null;
|
|
116
|
-
} } }), t._v(". " + t._s(t.$t("inlineForm.3")) + " "), r("CSelect", { staticClass: "select-width input-inline-language", attrs: { placeholder: t.$t("_common:select") }, model: { value: t.timeDeltaDirection, callback: function(i) {
|
|
117
|
-
t.timeDeltaDirection = i;
|
|
118
|
-
}, expression: "timeDeltaDirection" } }, [r("option", { attrs: { value: "extend" } }, [t._v(" " + t._s(t.$t("_common:extend").toLowerCase()) + " ")]), r("option", { attrs: { value: "shorten" } }, [t._v(" " + t._s(t.$t("_common:shorten").toLowerCase()) + " ")])]), t._v(" " + t._s(t.$t("_common:with")) + " "), r("CSelect", { staticClass: "select-width quantity input-inline-language", staticStyle: { width: "calc(2 * var(--rem))", "margin-right": "calc(0.5 * var(--rem))" }, attrs: { placeholder: t.$t("_common:select") }, model: { value: t.noOfTimeUnits, callback: function(i) {
|
|
119
|
-
t.noOfTimeUnits = i;
|
|
120
|
-
}, expression: "noOfTimeUnits" } }, t._l(31, function(i, n) {
|
|
121
|
-
return r("option", { key: n, staticStyle: { "font-size": "calc(calc(1 * var(--rem)) + 1px)", "text-align": "center" }, domProps: { value: i - 1 } }, [t._v(" " + t._s(i - 1) + " ")]);
|
|
122
|
-
}), 0), r("CSelect", { staticClass: "select-width unit input-inline-language", attrs: { placeholder: t.$t("_common:select") }, on: { blur: function(i) {
|
|
123
|
-
return t.$v.timeUnit.$touch();
|
|
124
|
-
} }, model: { value: t.timeUnit, callback: function(i) {
|
|
125
|
-
t.timeUnit = i;
|
|
126
|
-
}, expression: "timeUnit" } }, [r("option", { attrs: { value: "days" } }, [t._v(t._s(t.$t("_common:day_plural")))]), r("option", { attrs: { value: "weeks" } }, [t._v(t._s(t.$t("_common:week_plural")))]), r("option", { attrs: { value: "months" } }, [t._v(" " + t._s(t.$t("_common:month_plural")) + " ")])]), t._v(". ")], 1), t.$v.$invalid && t.$v.$dirty ? r("div", { staticClass: "error-wrapper", on: { click: function(i) {
|
|
127
|
-
return t.$v.$touch();
|
|
128
|
-
} } }, [r("svg", { attrs: { name: "info-icon", width: "14", height: "14", viewBox: "0 0 125 125", xmlns: "http://www.w3.org/2000/svg" } }, [r("path", { attrs: { d: "M62.5 125C27.9822 125 0 97.0178 0 62.5S27.9822 0 62.5 0 125 27.9822 125 62.5 97.0178 125 62.5 125zM52.44694 65.23395v26.93183c0 5.43129 4.40293 9.83422 9.83422 9.83422 5.4461 0 9.87524-4.38793 9.92615-9.83379l.25177-26.93269c.05142-5.50025-4.36573-10.00077-9.86598-10.05219a9.963143 9.963143 0 0 0-.0931-.00043c-5.55215 0-10.05306 4.5009-10.05306 10.05305zm.43768-31.76657c0 5.25109 4.2545 9.50584 9.5027 9.50584h.22536c5.2467 0 9.5027-4.25591 9.5027-9.50584 0-5.25109-4.2545-9.50584-9.5027-9.50584h-.22536c-5.2467 0-9.5027 4.25591-9.5027 9.50584z", fill: "currentColor", "fill-rule": "evenodd" } })]), t._v(" " + t._s(t.$t("error")) + " ")]) : t._e()]) : t._e()], 1);
|
|
129
|
-
}, d = [], p = /* @__PURE__ */ s(
|
|
130
|
-
u,
|
|
131
|
-
m,
|
|
132
|
-
d,
|
|
133
|
-
!1,
|
|
134
|
-
null,
|
|
135
|
-
"2ca06e45"
|
|
136
|
-
);
|
|
137
|
-
const k = p.exports;
|
|
138
|
-
export {
|
|
139
|
-
k as default
|
|
140
|
-
};
|