@cling-se/widget 0.9.22 → 0.9.24
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/dist/{AddClientCallout-f30100da.js → AddClientCallout-4afb07ff.js} +5 -5
- package/dist/{AnswerModal-d30e03bd.js → AnswerModal-2b11381b.js} +84 -27
- package/dist/{AttachmentItem-446bb069.js → AttachmentItem-c666fb74.js} +7 -5
- package/dist/{BaseDatePicker-6a365a09.js → BaseDatePicker-e1efcf48.js} +1 -1
- package/dist/{BaseInput-7ed92f6a.js → BaseInput-44c3af54.js} +6 -2
- package/dist/{BaseUpload-636eeec3.js → BaseUpload-740b1f88.js} +28 -11
- package/dist/{BlockMedia-3cb86ebf.js → BlockMedia-f5086397.js} +5 -3
- package/dist/{CCallout-44e44f26.js → CCallout-1a1feea0.js} +6 -9
- package/dist/{CDropdownItem-52cf4f0e.js → CDropdownItem-cc274799.js} +3 -3
- package/dist/{CField-a80001b1.js → CField-372bd9c7.js} +18 -4
- package/dist/{CPhoneFormat-3db8947d.js → CPhoneFormat-b273a499.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-42fea525.js → CSlider.vue_vue_type_style_index_0_lang-ef031b7b.js} +4 -2
- package/dist/{ClientAutocomplete-84cfcc88.js → ClientAutocomplete-0f51c1cd.js} +3 -3
- package/dist/{ClientModal-5c684c95.js → ClientModal-1bec5a45.js} +34 -19
- package/dist/{ColorPicker-043d7a04.js → ColorPicker-43c741fb.js} +2 -2
- package/dist/{CompanyModal-64d16864.js → CompanyModal-adec1d7e.js} +8 -5
- package/dist/{ContentWrapper-f3c1c1cb.js → ContentWrapper-48e69342.js} +40 -27
- package/dist/{CoverBlockSettings-8f28a3a5.js → CoverBlockSettings-c0a57bee.js} +49 -34
- package/dist/{DocAnswer-2402eee3.js → DocAnswer-f0f7d55d.js} +4 -4
- package/dist/{DocDetails-ec7f2a02.js → DocDetails-0e25552f.js} +71 -46
- package/dist/{DocForm-c9df5aa0.js → DocForm-2ab0c521.js} +515 -291
- package/dist/{DocFormSend-31f95da1.js → DocFormSend-e60808ca.js} +18 -18
- package/dist/{DocLinks-93f538c9.js → DocLinks-20719644.js} +2 -2
- package/dist/{DocModalBase-5c9138cc.js → DocModalBase-039f53c2.js} +4 -4
- package/dist/{DocPrint-a4475559.js → DocPrint-aafc72e2.js} +2 -2
- package/dist/{DocReceipt-4e571cee.js → DocReceipt-641b141c.js} +33 -10
- package/dist/{DocSendReminder-fe49cd44.js → DocSendReminder-aabc0994.js} +30 -5
- package/dist/{DocTextEditor-2bb318af.js → DocTextEditor-3eb97671.js} +86 -37
- package/dist/{DocTimeline-9f47bab8.js → DocTimeline-9d765ded.js} +29 -16
- package/dist/{DocumentClient-99d7039b.js → DocumentClient-8d59d823.js} +7 -7
- package/dist/{DocumentLayout-11af5e3b.js → DocumentLayout-a659ce2a.js} +31 -11
- package/dist/{DocumentLogotype-1931e1ad.js → DocumentLogotype-393d1610.js} +8 -8
- package/dist/{DocumentVoided-6351a1df.js → DocumentVoided-9294f5d4.js} +1 -1
- package/dist/{EmbedInput-7d0562fc.js → EmbedInput-e6a9ee21.js} +2 -2
- package/dist/{EmbedSettings-9df99e76.js → EmbedSettings-e31ccfdc.js} +7 -7
- package/dist/ErrorCallout-d6c77efa.js +30 -0
- package/dist/{FilePreviewModal-095408ae.js → FilePreviewModal-84d6ab65.js} +6 -6
- package/dist/{HeaderSettings-6d350190.js → HeaderSettings-51d44d2d.js} +65 -63
- package/dist/{ImageSelectModal-971708e1.js → ImageSelectModal-051e0929.js} +27 -27
- package/dist/{ImageUploadWrapper-3fac23f0.js → ImageUploadWrapper-dcceec48.js} +11 -5
- package/dist/{Index-9b1e35fa.js → Index-06045b22.js} +9 -10
- package/dist/{Index-8b39f885.js → Index-0932b744.js} +32 -20
- package/dist/{Index-ffff3ae8.js → Index-20c0168b.js} +15 -15
- package/dist/{Index-6e6d2653.js → Index-3571dbbe.js} +2 -2
- package/dist/{Index-d3667461.js → Index-36ba2c7c.js} +20 -16
- package/dist/{Index-7b9b5dee.js → Index-39d0e781.js} +17 -17
- package/dist/{Index-88af8453.js → Index-3bdfc806.js} +3 -3
- package/dist/{Index-fad050d0.js → Index-3cb4cf49.js} +4 -4
- package/dist/Index-42639492.js +28 -0
- package/dist/{Index-eb9a3a06.js → Index-494c3112.js} +300 -147
- package/dist/{Index-ffd8211f.js → Index-51ceb867.js} +20 -16
- package/dist/{Index-70f16919.js → Index-54695ef1.js} +13 -11
- package/dist/{Index-2abd5d2b.js → Index-5b2c568a.js} +13 -11
- package/dist/{Index-77bcf959.js → Index-5def7508.js} +17 -12
- package/dist/{Index-8c335677.js → Index-5ead0dc5.js} +2 -2
- package/dist/{Index-57d5951b.js → Index-652a82d0.js} +6 -6
- package/dist/{Index-4fa057f8.js → Index-75922cfc.js} +13 -13
- package/dist/{Index-7477a320.js → Index-9a162ce6.js} +2 -2
- package/dist/{Index-938d67eb.js → Index-a94f257f.js} +56 -31
- package/dist/{Index-5a0d7d8c.js → Index-a98c290d.js} +21 -18
- package/dist/{Index-1e62aedf.js → Index-b33109a3.js} +13 -9
- package/dist/{Index-d9001d15.js → Index-c1aa1453.js} +3 -3
- package/dist/{Index-e27c2fdf.js → Index-c2008029.js} +2 -2
- package/dist/{Index-d617c13f.js → Index-c4942c4e.js} +22 -27
- package/dist/{Index-567e408c.js → Index-c5983b2b.js} +13 -15
- package/dist/{Index-c8e36c6e.js → Index-c8ded03a.js} +2 -2
- package/dist/{Index-8f883e55.js → Index-cc56dad6.js} +7 -7
- package/dist/{Index-8c04b710.js → Index-d77ba606.js} +51 -43
- package/dist/{Index-868d52a9.js → Index-d7a7de69.js} +24 -17
- package/dist/{Index-356bc162.js → Index-e8a3b12b.js} +4 -4
- package/dist/{Index-20d85e3a.js → Index-e9da5a9c.js} +3 -3
- package/dist/{Index-79f564d7.js → Index-f36accd7.js} +4 -4
- package/dist/{Index-bf0c487f.js → Index-fd6da129.js} +7 -7
- package/dist/{Index-a1f74882.js → Index-fdb53118.js} +6 -9
- package/dist/{InputToggleRow-e6ceba8d.js → InputToggleRow-79bbd6c6.js} +4 -4
- package/dist/{IsPremiumPreStep-5760ca12.js → IsPremiumPreStep-f0524e76.js} +81 -36
- package/dist/{ManualPopover-814d1319.js → ManualPopover-8a1e53a5.js} +5 -2
- package/dist/{MediaWrapper-e67928b8.js → MediaWrapper-b128c707.js} +3 -3
- package/dist/{NotBindingText-f72244ab.js → NotBindingText-561df6d3.js} +2 -2
- package/dist/{PackageGroup-b457cbbb.js → PackageGroup-3eaff6a7.js} +184 -69
- package/dist/{PdfTerms-fa51699a.js → PdfTerms-27d7ea41.js} +8 -8
- package/dist/{PdfViewer-93b67f36.js → PdfViewer-5b2bcbb5.js} +2 -2
- package/dist/{PlainHtml-4decb4b1.js → PlainHtml-c743e90e.js} +1 -1
- package/dist/{PriceHeader-85923b9b.js → PriceHeader-287b8219.js} +48 -32
- package/dist/{SearchApi-e49da25f.js → SearchApi-1cd32dd3.js} +40 -20
- package/dist/{Setup-9e46ec76.js → Setup-647c8d19.js} +1 -1
- package/dist/{TermsSettings-79755d10.js → TermsSettings-28e00bdf.js} +11 -11
- package/dist/{ThemeColorRow-ce0c5083.js → ThemeColorRow-87aad7e1.js} +4 -4
- package/dist/{ToggleBinding-cda92aa3.js → ToggleBinding-86912659.js} +3 -3
- package/dist/{UploadModal-0e80a0f2.js → UploadModal-4065d410.js} +16 -14
- package/dist/{VideoPlayerInput-6145c645.js → VideoPlayerInput-1b402e91.js} +3 -3
- package/dist/{VideoPlayerSettings-b6d55453.js → VideoPlayerSettings-4dcca863.js} +5 -5
- package/dist/{VideoSelectModal-61d97f65.js → VideoSelectModal-4f9def15.js} +32 -36
- package/dist/{answerDocumentMixin-8edab24a.js → answerDocumentMixin-6b6cfdb6.js} +3 -3
- package/dist/{debounce-62af9d61.js → debounce-97bb38ac.js} +1 -1
- package/dist/{focusDrawerMixin-745d4e52.js → focusDrawerMixin-0d00dfeb.js} +1 -1
- package/dist/{formComponentsInstall-dc68b7e8.js → formComponentsInstall-0e28cca8.js} +210 -168
- package/dist/{formDrawerState-6408853b.js → formDrawerState-68670778.js} +1 -1
- package/dist/{formValidationMixin-a27a1b47.js → formValidationMixin-cb6f10e2.js} +1 -1
- package/dist/{image-7f7c16da.js → image-456aa00c.js} +1 -1
- package/dist/{index-2a4b06f7.js → index-1f6e36c5.js} +4 -4
- package/dist/{index-474d6e34.js → index-2710ab1c.js} +3 -3
- package/dist/{index-a72b19e9.js → index-63ab2d14.js} +12 -12
- package/dist/{index-1cf2de3c.js → index-b8207e2a.js} +1 -1
- package/dist/{index-14df19cb.js → index-e4f936ec.js} +8 -6
- package/dist/{index-cc6b4d3a.js → index-ea1c7f84.js} +17 -9
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +167 -138
- package/dist/{main-b72127b8.js → main-b5eb6366.js} +2374 -2298
- package/dist/{mapFormMixin-52ec1660.js → mapFormMixin-e0c45bbd.js} +1 -1
- package/dist/{publicSenderState-1a30e0c5.js → publicSenderState-4163b1b6.js} +1 -1
- package/dist/{simplebar.min-c28f1a61.js → simplebar.min-147772cd.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{template-c65478b1.js → template-6e93622c.js} +7 -7
- package/dist/{throttle-040bd305.js → throttle-7a7a1299.js} +2 -2
- package/dist/{tinycolor-10bcd30d.js → tinycolor-bb8652ea.js} +1 -1
- package/dist/{tippy.esm-0ef95919.js → tippy.esm-f533f77b.js} +8 -8
- package/dist/{utils-6073fc98.js → utils-066c47a5.js} +1 -1
- package/dist/{vuedraggable.umd-d2790aec.js → vuedraggable.umd-76911d11.js} +1 -1
- package/package.json +2 -2
- package/dist/ErrorCallout-106838ce.js +0 -30
- package/dist/Index-a65bded3.js +0 -28
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { b as H, m as g } from "./vuex.esm-4a0fff7c.js";
|
|
2
|
-
import { s as q } from "./simplebar.min-
|
|
3
|
-
import { m } from "./mapFormMixin-
|
|
4
|
-
import { B as I } from "./BaseDatePicker-
|
|
5
|
-
import { E as j } from "./ErrorCallout-
|
|
6
|
-
import { I as K, a as W, r as l } from "./IsPremiumPreStep-
|
|
7
|
-
import { n as o, ar as O, as as v, h as X, b as c, at as U, o as Q, au as Y, av as G, q as P, aw as T, ax as R, d as M, E as y } from "./main-
|
|
8
|
-
import J from "./AddClientCallout-
|
|
9
|
-
import Z from "./ClientModal-
|
|
10
|
-
import { c as ee, r as te, g as ie, C as h, a as f, b as p } from "./CDropdownItem-
|
|
11
|
-
import { S as se } from "./CSlider.vue_vue_type_style_index_0_lang-
|
|
12
|
-
import { C as _ } from "./CCallout-
|
|
13
|
-
import { C as z } from "./CField-
|
|
2
|
+
import { s as q } from "./simplebar.min-147772cd.js";
|
|
3
|
+
import { m } from "./mapFormMixin-e0c45bbd.js";
|
|
4
|
+
import { B as I } from "./BaseDatePicker-e1efcf48.js";
|
|
5
|
+
import { E as j } from "./ErrorCallout-d6c77efa.js";
|
|
6
|
+
import { I as K, a as W, r as l } from "./IsPremiumPreStep-f0524e76.js";
|
|
7
|
+
import { n as o, ar as O, as as v, h as X, b as c, at as U, o as Q, au as Y, av as G, q as P, aw as T, ax as R, d as M, E as y } from "./main-b5eb6366.js";
|
|
8
|
+
import J from "./AddClientCallout-4afb07ff.js";
|
|
9
|
+
import Z from "./ClientModal-1bec5a45.js";
|
|
10
|
+
import { c as ee, r as te, g as ie, C as h, a as f, b as p } from "./CDropdownItem-cc274799.js";
|
|
11
|
+
import { S as se } from "./CSlider.vue_vue_type_style_index_0_lang-ef031b7b.js";
|
|
12
|
+
import { C as _ } from "./CCallout-1a1feea0.js";
|
|
13
|
+
import { C as z } from "./CField-372bd9c7.js";
|
|
14
14
|
const ne = {
|
|
15
15
|
name: "DocumentSendReminderItem",
|
|
16
16
|
props: {
|
|
@@ -95,7 +95,9 @@ const le = oe.exports, de = {
|
|
|
95
95
|
getDefaultReminders() {
|
|
96
96
|
if (!this._document.template)
|
|
97
97
|
return [];
|
|
98
|
-
const t = this._document.template.getDefaultData({
|
|
98
|
+
const t = this._document.template.getDefaultData({
|
|
99
|
+
path: "properties.data.properties.reminders"
|
|
100
|
+
});
|
|
99
101
|
return t && Array.isArray(t) ? t : [];
|
|
100
102
|
},
|
|
101
103
|
setReminder(t, e) {
|
|
@@ -105,13 +107,18 @@ const le = oe.exports, de = {
|
|
|
105
107
|
return;
|
|
106
108
|
}
|
|
107
109
|
if (typeof t == "string") {
|
|
108
|
-
let s = this.getDefaultReminders().find(
|
|
110
|
+
let s = this.getDefaultReminders().find(
|
|
111
|
+
(n) => n.type === t
|
|
112
|
+
);
|
|
109
113
|
if (s || (s = O.default.find((n) => n.type === t)), !s)
|
|
110
114
|
throw new Error("Could not find default reminder");
|
|
111
115
|
s[i] = e, this.setFormValue({ key: "data.reminders", value: s });
|
|
112
116
|
return;
|
|
113
117
|
}
|
|
114
|
-
this.setFormValue({
|
|
118
|
+
this.setFormValue({
|
|
119
|
+
key: `data.reminders[${t.index}].${i}`,
|
|
120
|
+
value: e
|
|
121
|
+
});
|
|
115
122
|
}
|
|
116
123
|
}
|
|
117
124
|
};
|
|
@@ -141,7 +148,9 @@ var ce = function() {
|
|
|
141
148
|
const pe = me.exports;
|
|
142
149
|
function E(t, e) {
|
|
143
150
|
const i = new Date(t.getTime());
|
|
144
|
-
return i.setDate(
|
|
151
|
+
return i.setDate(
|
|
152
|
+
t.getDate() + (7 + e - t.getDay() - 1) % 7 + 1
|
|
153
|
+
), i.setHours(8, 0, 0, 0), i;
|
|
145
154
|
}
|
|
146
155
|
function N(t) {
|
|
147
156
|
const e = new Date(t.getTime());
|
|
@@ -255,7 +264,9 @@ const he = {
|
|
|
255
264
|
sendAt: t,
|
|
256
265
|
deliveryTypes: this.reminderDeliveryTypes,
|
|
257
266
|
tries: 0
|
|
258
|
-
}, i = this.formData.reminders.findIndex(
|
|
267
|
+
}, i = this.formData.reminders.findIndex(
|
|
268
|
+
(n) => n.type === "first"
|
|
269
|
+
), s = i >= 0 ? `data.reminders[${i}]` : "data.reminders";
|
|
259
270
|
this.setFormValue({ key: s, value: e }), await this.onSaveDocument({ doSend: !0 }), this.backupSentFlag = !1;
|
|
260
271
|
} catch (e) {
|
|
261
272
|
X(e);
|
|
@@ -283,7 +294,7 @@ var fe = function() {
|
|
|
283
294
|
ge,
|
|
284
295
|
!1,
|
|
285
296
|
null,
|
|
286
|
-
"
|
|
297
|
+
"2227cf72",
|
|
287
298
|
null,
|
|
288
299
|
null
|
|
289
300
|
);
|
|
@@ -355,7 +366,7 @@ var be = function() {
|
|
|
355
366
|
Ce,
|
|
356
367
|
!1,
|
|
357
368
|
null,
|
|
358
|
-
"
|
|
369
|
+
"f79634fd",
|
|
359
370
|
null,
|
|
360
371
|
null
|
|
361
372
|
);
|
|
@@ -383,10 +394,10 @@ const xe = {
|
|
|
383
394
|
RecipientBlockItem: L
|
|
384
395
|
},
|
|
385
396
|
mixins: [
|
|
386
|
-
m(
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
)
|
|
397
|
+
m(["senderClient"], {
|
|
398
|
+
useEmit: !1,
|
|
399
|
+
setFnName: "setFormValue"
|
|
400
|
+
})
|
|
390
401
|
],
|
|
391
402
|
props: {
|
|
392
403
|
setFormValue: {
|
|
@@ -419,7 +430,10 @@ const xe = {
|
|
|
419
430
|
methods: {
|
|
420
431
|
get: c,
|
|
421
432
|
generateSenderClient() {
|
|
422
|
-
const { company: t, user: e } = this._document.sender || {}, i = c(
|
|
433
|
+
const { company: t, user: e } = this._document.sender || {}, i = c(
|
|
434
|
+
this._document,
|
|
435
|
+
"data.defaultAnswerMethod"
|
|
436
|
+
);
|
|
423
437
|
this.senderClientData = {
|
|
424
438
|
...U(),
|
|
425
439
|
documentRole: "recipient",
|
|
@@ -450,7 +464,7 @@ const xe = {
|
|
|
450
464
|
};
|
|
451
465
|
var Se = function() {
|
|
452
466
|
var e = this, i = e._self._c;
|
|
453
|
-
return e.senderClientData ? i("RecipientBlockItem", { staticClass: "first-of-group last-of-group", staticStyle: { display: "inline-flex", width: "auto", "padding-right": "2em", "min-width": "220px" }, attrs: { client: e.senderClientData, "right-button": e.allowSenderSign, "is-sender": !0 } }, [i("template", { slot: "dropdownOptions" }, [i("CDropdownItem", { attrs: { value: !!e.senderClient, "close-on-click": !1, toggle: "" }, on: { input: e.toggleSenderSign } }, [e._v(" " + e._s(e.$t("toggle.label")) + " ")]), e.senderClient ? [i("CDropdownItem", { attrs: { separator: "" } }), i("div", { staticClass: "text-gray-400", staticStyle: { "font-size": "13px", padding: "calc(0.5 * var(--rem)) 0 calc(0.25 * var(--rem))
|
|
467
|
+
return e.senderClientData ? i("RecipientBlockItem", { staticClass: "first-of-group last-of-group", staticStyle: { display: "inline-flex", width: "auto", "padding-right": "2em", "min-width": "220px" }, attrs: { client: e.senderClientData, "right-button": e.allowSenderSign, "is-sender": !0 } }, [i("template", { slot: "dropdownOptions" }, [i("CDropdownItem", { attrs: { value: !!e.senderClient, "close-on-click": !1, toggle: "" }, on: { input: e.toggleSenderSign } }, [e._v(" " + e._s(e.$t("toggle.label")) + " ")]), e.senderClient ? [i("CDropdownItem", { attrs: { separator: "" } }), i("div", { staticClass: "text-gray-400", staticStyle: { "font-size": "13px", padding: "calc(0.5 * var(--rem)) 0 calc(0.25 * var(--rem))", "font-weight": "500" } }, [e._v(" " + e._s(e.$t("_common:signMethod.title")) + " ")]), e._l([
|
|
454
468
|
"login",
|
|
455
469
|
"signature",
|
|
456
470
|
...e.feature("bankId") ? ["bankId"] : []
|
|
@@ -465,7 +479,7 @@ var Se = function() {
|
|
|
465
479
|
$e,
|
|
466
480
|
!1,
|
|
467
481
|
null,
|
|
468
|
-
"
|
|
482
|
+
"efe65a3e",
|
|
469
483
|
null,
|
|
470
484
|
null
|
|
471
485
|
);
|
|
@@ -566,13 +580,10 @@ const Ae = {
|
|
|
566
580
|
SenderBlockItem: De
|
|
567
581
|
},
|
|
568
582
|
mixins: [
|
|
569
|
-
m(
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
setFnName: "setFormValue"
|
|
574
|
-
}
|
|
575
|
-
)
|
|
583
|
+
m(["clients"], {
|
|
584
|
+
useEmit: !1,
|
|
585
|
+
setFnName: "setFormValue"
|
|
586
|
+
})
|
|
576
587
|
],
|
|
577
588
|
props: {
|
|
578
589
|
compact: {
|
|
@@ -623,7 +634,9 @@ const Ae = {
|
|
|
623
634
|
toggleSignOrder(t) {
|
|
624
635
|
let e = [];
|
|
625
636
|
if (t) {
|
|
626
|
-
const i = !this.clients.every(
|
|
637
|
+
const i = !this.clients.every(
|
|
638
|
+
({ signOrder: s }) => !s
|
|
639
|
+
);
|
|
627
640
|
this.clients = this.clients.map((s, n) => ({
|
|
628
641
|
...s,
|
|
629
642
|
signOrder: i ? s.signOrder : n + 1
|
|
@@ -637,17 +650,14 @@ const Ae = {
|
|
|
637
650
|
},
|
|
638
651
|
openClientModal(t = 0) {
|
|
639
652
|
const e = c(this, `clients[${t}].signOrder`);
|
|
640
|
-
this.$modal.show(
|
|
641
|
-
|
|
642
|
-
{
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
isPublicForm: this.isPublicForm
|
|
649
|
-
}
|
|
650
|
-
);
|
|
653
|
+
this.$modal.show(Z, {
|
|
654
|
+
documentClientIndex: t,
|
|
655
|
+
...this.useSignOrder && {
|
|
656
|
+
signOrder: Y(e) === "number" ? e : this.maxSignOrder + 1
|
|
657
|
+
},
|
|
658
|
+
setFormValue: this.setFormValue,
|
|
659
|
+
isPublicForm: this.isPublicForm
|
|
660
|
+
});
|
|
651
661
|
},
|
|
652
662
|
setClient(t) {
|
|
653
663
|
this.setFormValue({ key: `clients[${this.clients.length}]`, value: t });
|
|
@@ -689,7 +699,7 @@ var Be = function() {
|
|
|
689
699
|
Ie,
|
|
690
700
|
!1,
|
|
691
701
|
null,
|
|
692
|
-
"
|
|
702
|
+
"d0f5a170",
|
|
693
703
|
null,
|
|
694
704
|
null
|
|
695
705
|
);
|
|
@@ -710,13 +720,7 @@ const Te = {
|
|
|
710
720
|
},
|
|
711
721
|
mixins: [
|
|
712
722
|
m(
|
|
713
|
-
[
|
|
714
|
-
"expiresAt",
|
|
715
|
-
"clients",
|
|
716
|
-
"defaultAnswerMethod",
|
|
717
|
-
"reminders",
|
|
718
|
-
"name"
|
|
719
|
-
],
|
|
723
|
+
["expiresAt", "clients", "defaultAnswerMethod", "reminders", "name"],
|
|
720
724
|
{
|
|
721
725
|
useEmit: !1,
|
|
722
726
|
setFnName: "setFormValue"
|
|
@@ -783,7 +787,10 @@ const Te = {
|
|
|
783
787
|
return ((t = this._document) == null ? void 0 : t.useSignOrder) || !1;
|
|
784
788
|
},
|
|
785
789
|
noOfReminders() {
|
|
786
|
-
return Object.values(this.reminders || []).reduce(
|
|
790
|
+
return Object.values(this.reminders || []).reduce(
|
|
791
|
+
(t, e) => e && (e.sendDays || e.sendAt) && e.type !== "first" ? t + 1 : t,
|
|
792
|
+
0
|
|
793
|
+
);
|
|
787
794
|
},
|
|
788
795
|
smsActivated() {
|
|
789
796
|
return this.deliveryTypes.sms;
|
|
@@ -805,11 +812,13 @@ const Te = {
|
|
|
805
812
|
},
|
|
806
813
|
signMethods() {
|
|
807
814
|
return [
|
|
808
|
-
...this.feature("bankId") ? [
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
815
|
+
...this.feature("bankId") ? [
|
|
816
|
+
{
|
|
817
|
+
value: "bankId",
|
|
818
|
+
title: this.$t("signMethod.bankId.title"),
|
|
819
|
+
content: this.$t("signMethod.bankId.content")
|
|
820
|
+
}
|
|
821
|
+
] : [],
|
|
813
822
|
{
|
|
814
823
|
value: "signature",
|
|
815
824
|
title: this.$t("signMethod.signature.title"),
|
|
@@ -862,7 +871,10 @@ const Te = {
|
|
|
862
871
|
i[t] = e;
|
|
863
872
|
const s = Object.keys(i).filter((n) => i[n]);
|
|
864
873
|
(this.clients || []).forEach((n, a) => {
|
|
865
|
-
this.setFormValue({
|
|
874
|
+
this.setFormValue({
|
|
875
|
+
key: `clients[${a}].deliveryTypes`,
|
|
876
|
+
value: s
|
|
877
|
+
});
|
|
866
878
|
});
|
|
867
879
|
},
|
|
868
880
|
setAnswerMethod(t, e = {}) {
|
|
@@ -932,12 +944,14 @@ var Re = function() {
|
|
|
932
944
|
}, expression: "name" } })], 1) : e._e(), i("div", { staticClass: "mb-6" }, [i("RecipientBlock", { attrs: { _value: {
|
|
933
945
|
clients: "clients"
|
|
934
946
|
}, _document: e._document, "set-form-value": e.setFormValue, "remove-form-value": e.removeFormValue, "default-add-sender-client": e.documentSenderSign, "is-public-form": e.isPublicForm } })], 1), e._t("default"), e.defaultAnswerMethod && e.signMethods.length > 1 ? i("div", { staticClass: "mb-8" }, [i("div", { staticClass: "block-title text-gray-900 text-xs font-medium pb-0.5" }, [e._v(" " + e._s(e.$t("signMethod.title")) + " "), i("BaseIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("signMethod.tooltip"), expression: "$t('signMethod.tooltip')" }], staticClass: "ml-px text-gray-500", attrs: { type: "info", size: "14" } })], 1), i("div", { staticClass: "cb-card-group" }, e._l(e.signMethods, function(r) {
|
|
935
|
-
return i("div", { key: r.value, staticClass: "flex border-2 border-transparent hover:bg-gray-200 hover:border-gray-300/30 cb-card", class: {
|
|
947
|
+
return i("div", { key: r.value, staticClass: "flex border-2 border-transparent hover:bg-gray-200 hover:border-gray-300/30 cb-card", class: {
|
|
948
|
+
checked: e.defaultAnswerMethod.accept === r.value
|
|
949
|
+
}, on: { click: function(d) {
|
|
936
950
|
e.defaultAnswerMethod.accept !== r.value && e.setAnswerMethod(r.value);
|
|
937
951
|
} } }, [i("CRadio", { staticClass: "mr-3 pointer-events-none sign-radio", attrs: { value: e.defaultAnswerMethod.accept, "native-value": r.value, type: "secondary", size: "small" } }), i("div", { staticClass: "flex-grow" }, [i("div", { staticClass: "cb-card-title flex items-center justify-between" }, [e._v(" " + e._s(r.title) + " "), r.value === "bankId" && !s ? i("div", { staticClass: "ml-2 text-[10px] font-semibold text-white py-1 px-1.5 leading-none rounded-full bg-primary-500" }, [e._v(" Pro ")]) : e._e()]), i("div", { directives: [{ name: "show", rawName: "v-show", value: e.defaultAnswerMethod.accept === r.value, expression: "defaultAnswerMethod.accept === signMethod.value" }], staticClass: "cb-card-body" }, [e._v(" " + e._s(r.content) + " ")])])], 1);
|
|
938
952
|
}), 0)]) : e._e(), i("div", { staticClass: "grid items-center gap-2", staticStyle: { "grid-template-columns": "repeat(auto-fit, minmax(200px, 1fr))" } }, [i("div", [i("BaseDatePicker", { staticClass: "relative psuedo-input", attrs: { "custom-el": !0, direction: "end", tabindex: "0" }, model: { value: e.expiresAt, callback: function(r) {
|
|
939
953
|
e.expiresAt = r;
|
|
940
|
-
}, expression: "expiresAt" } }, [i("div", { staticClass: "psuedo-input-label" }, [e._v(e._s(e.$t("validityPeriod")))]), i("div", [e._v(e._s(e.expiresAt ? e.$formatDate(e.expiresAt) : e.$t("_common:disabled").capitalize()))]), e.expiresAt ? i("CButton", { staticClass: "absolute right-3 top-3", attrs: { icon: "x", size: "small", type: "none", pattern: "secondary" }, on: { click: function(r) {
|
|
954
|
+
}, expression: "expiresAt" } }, [i("div", { staticClass: "psuedo-input-label" }, [e._v(e._s(e.$t("validityPeriod")))]), i("div", [e._v(" " + e._s(e.expiresAt ? e.$formatDate(e.expiresAt) : e.$t("_common:disabled").capitalize()) + " ")]), e.expiresAt ? i("CButton", { staticClass: "absolute right-3 top-3", attrs: { icon: "x", size: "small", type: "none", pattern: "secondary" }, on: { click: function(r) {
|
|
941
955
|
r.preventDefault(), r.stopPropagation(), e.expiresAt = void 0, e._document.setDirty("expiresAt");
|
|
942
956
|
} } }) : e._e()], 1)], 1), i("CDropdown", { staticStyle: { flex: "1 0 200px" }, attrs: { disabled: !e.clients.length, "mobile-label": e.$t("sendAs"), expanded: "" } }, [i("div", { staticClass: "psuedo-input", attrs: { slot: "trigger", tabindex: "0" }, slot: "trigger" }, [i("div", { staticClass: "psuedo-input-label" }, [e._v(e._s(e.$t("sendAs")))]), i("div", { domProps: { innerHTML: e._s(e.sendTypesText) } })]), i("CDropdownItem", { attrs: { value: e.emailActivated, "close-on-click": !1, toggle: "" }, on: { click: function(r) {
|
|
943
957
|
return e.setDeliveryMethod("email", !e.emailActivated);
|
|
@@ -947,11 +961,17 @@ var Re = function() {
|
|
|
947
961
|
content: e.$t("manualDeliveryTooltip")
|
|
948
962
|
} }, domProps: { textContent: e._s(e.$t("manualDelivery")) }, on: { click: () => {
|
|
949
963
|
e.setDeliveryMethod("sms", !1), e.setDeliveryMethod("email", !1), e._document.setDirty("isManualDelivery");
|
|
950
|
-
} } }) : e._e()], 1), !e.useSignOrder && !e.isManualDelivery ? i("div", { staticClass: "relative psuedo-input", attrs: { tabindex: "0" }, on: { click: e.openReminders } }, [i("div", { staticClass: "psuedo-input-label" }, [e._v(e._s(e.$t("_common:reminder_plural").capitalize()))]), i("div", [e._v(" " + e._s(e.noOfReminders ? `${e.noOfReminders} ${e.$i18n.lang === "sv" ? e.$t("_common:unitType.unit") : ""}` : e.$t("_common:disabled").capitalize()) + " ")]), e.noOfReminders ? i("CButton", { staticClass: "absolute right-3 top-3", attrs: { icon: "x", size: "small", type: "none", pattern: "secondary" }, on: { click: function(r) {
|
|
964
|
+
} } }) : e._e()], 1), !e.useSignOrder && !e.isManualDelivery ? i("div", { staticClass: "relative psuedo-input", attrs: { tabindex: "0" }, on: { click: e.openReminders } }, [i("div", { staticClass: "psuedo-input-label" }, [e._v(" " + e._s(e.$t("_common:reminder_plural").capitalize()) + " ")]), i("div", [e._v(" " + e._s(e.noOfReminders ? `${e.noOfReminders} ${e.$i18n.lang === "sv" ? e.$t("_common:unitType.unit") : ""}` : e.$t("_common:disabled").capitalize()) + " ")]), e.noOfReminders ? i("CButton", { staticClass: "absolute right-3 top-3", attrs: { icon: "x", size: "small", type: "none", pattern: "secondary" }, on: { click: function(r) {
|
|
951
965
|
r.preventDefault(), r.stopPropagation(), e.reminders = [];
|
|
952
966
|
} } }) : e._e()], 1) : e._e()], 1), e.clientsAreMissingContactInfo || (a = e.$v.isManualDelivery) != null && a.$invalid ? i("ErrorCallout", { attrs: { message: e.clientsAreMissingContactInfo ? e.$t("clientsAreMissingContactInfo") : e.$t("missingDeliveryMethod"), size: "small" } }) : e._e(), e._t("content")], 2)]), i("div", { staticClass: "px-4 pb-4 @md:px-8 @xl:px-16" }, [e._t("send", function() {
|
|
953
967
|
return [i("IsPremiumPreStep", { attrs: { feature: "bankIdAndSms" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: r }) {
|
|
954
|
-
return [i("div", { staticClass: "flex" }, [e.showSave ? i("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("_common:save", {
|
|
968
|
+
return [i("div", { staticClass: "flex" }, [e.showSave ? i("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("_common:save", {
|
|
969
|
+
thing: e.$t("_common:document").toLowerCase()
|
|
970
|
+
}), expression: `
|
|
971
|
+
$t('_common:save', {
|
|
972
|
+
thing: $t('_common:document').toLowerCase()
|
|
973
|
+
})
|
|
974
|
+
` }], staticClass: "w-12 mr-2", attrs: { loading: e.isPosting, type: "none", icon: "save", pattern: "secondary" }, on: { click: function(d) {
|
|
955
975
|
return e.doSaveDocument({ doSend: !1 });
|
|
956
976
|
} } }) : e._e(), e.showSchedule && !e.useSignOrder && !e.isManualDelivery ? i("CButton", { staticClass: "mr-2 w-12 @md:w-auto", staticStyle: { padding: "14px 16px", "border-radius": "8px", height: "initial", "font-size": "14px", "font-weight": "600" }, attrs: { disabled: e.isPosting || !e.clients.length, type: "none", pattern: "secondary" }, on: { click: e.openSendLater } }, [i("span", { staticClass: "!hidden @md:!block", domProps: { textContent: e._s(e.$t("scheduledTooltip")) } }), i("BaseIcon", { staticClass: "@md:!hidden", attrs: { type: "calendar", size: "16" } })], 1) : e._e(), i("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$v.$invalid ? {
|
|
957
977
|
content: e.clients.length ? e.$t("missingDeliveryMethod") : e.$t(
|
|
@@ -967,7 +987,7 @@ var Re = function() {
|
|
|
967
987
|
: $t('missingDeliveryMethod')
|
|
968
988
|
}
|
|
969
989
|
: {}
|
|
970
|
-
` }], staticClass: "flex-auto" }, [i("CButton", { staticStyle: { padding: "14px 16px", "border-radius": "8px", height: "100%", "font-size": "14px", "font-weight": "600", "box-shadow": "0 2px 4px -1px rgba(0,0,0,0.1)" }, attrs: { disabled: e.$v.$invalid, loading: e.isPosting, type: "secondary", wide: "" }, on: { click: function(d) {
|
|
990
|
+
` }], staticClass: "flex-auto" }, [i("CButton", { staticStyle: { padding: "14px 16px", "border-radius": "8px", height: "100%", "font-size": "14px", "font-weight": "600", "box-shadow": "0 2px 4px -1px rgba(0, 0, 0, 0.1)" }, attrs: { disabled: e.$v.$invalid, loading: e.isPosting, type: "secondary", wide: "" }, on: { click: function(d) {
|
|
971
991
|
e.shouldShowUpgradeModal({ canUseBankId: s, canUseSms: n }) ? r() : e.doSendDocument();
|
|
972
992
|
} } }, [e._v(" " + e._s(e.$t("sendButton")) + " ")])], 1)], 1)];
|
|
973
993
|
} }], null, !0) })];
|
|
@@ -979,7 +999,7 @@ var Re = function() {
|
|
|
979
999
|
Me,
|
|
980
1000
|
!1,
|
|
981
1001
|
null,
|
|
982
|
-
"
|
|
1002
|
+
"2e84470c",
|
|
983
1003
|
null,
|
|
984
1004
|
null
|
|
985
1005
|
);
|
|
@@ -1048,26 +1068,31 @@ const qe = He.exports, je = {
|
|
|
1048
1068
|
return;
|
|
1049
1069
|
const i = [], s = e.props.width, n = e.props.height;
|
|
1050
1070
|
for (let a = 0; a < e.props.count; a++)
|
|
1051
|
-
i.push(
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1071
|
+
i.push(
|
|
1072
|
+
t("div", {
|
|
1073
|
+
staticClass: "c-skeleton-item",
|
|
1074
|
+
class: { "is-rounded": e.props.rounded },
|
|
1075
|
+
key: a,
|
|
1076
|
+
style: {
|
|
1077
|
+
height: n === void 0 ? null : isNaN(n) ? n : n + "px",
|
|
1078
|
+
width: s === void 0 ? null : isNaN(s) ? s : s + "px",
|
|
1079
|
+
borderRadius: e.props.circle ? "50%" : null,
|
|
1080
|
+
background: e.props.color ? e.props.color : null
|
|
1081
|
+
}
|
|
1082
|
+
})
|
|
1083
|
+
);
|
|
1062
1084
|
return t(
|
|
1063
1085
|
"div",
|
|
1064
1086
|
{
|
|
1065
1087
|
staticStyle: e.data.staticStyle,
|
|
1066
1088
|
staticClass: "c-skeleton",
|
|
1067
|
-
class: [
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1089
|
+
class: [
|
|
1090
|
+
e.data.staticClass,
|
|
1091
|
+
{
|
|
1092
|
+
"is-animated": e.props.animated,
|
|
1093
|
+
"is-invisible": e.props.hidden
|
|
1094
|
+
}
|
|
1095
|
+
]
|
|
1071
1096
|
},
|
|
1072
1097
|
i
|
|
1073
1098
|
);
|
|
@@ -1134,9 +1159,9 @@ const w = Xe.exports, Ue = {
|
|
|
1134
1159
|
},
|
|
1135
1160
|
computed: {
|
|
1136
1161
|
/**
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1162
|
+
* White-listed items to not close when clicked.
|
|
1163
|
+
* Add input, dropdown and all children.
|
|
1164
|
+
*/
|
|
1140
1165
|
whiteList() {
|
|
1141
1166
|
const t = [];
|
|
1142
1167
|
if (t.push(this.$refs.input.$el.querySelector("input")), t.push(this.$refs.dropdown), this.$refs.dropdown !== void 0) {
|
|
@@ -1153,32 +1178,32 @@ const w = Xe.exports, Ue = {
|
|
|
1153
1178
|
return t;
|
|
1154
1179
|
},
|
|
1155
1180
|
/**
|
|
1156
|
-
|
|
1157
|
-
|
|
1181
|
+
* Check if exists default slot
|
|
1182
|
+
*/
|
|
1158
1183
|
hasDefaultSlot() {
|
|
1159
1184
|
return !!this.$scopedSlots.default;
|
|
1160
1185
|
},
|
|
1161
1186
|
/**
|
|
1162
|
-
|
|
1163
|
-
|
|
1187
|
+
* Check if exists "empty" slot
|
|
1188
|
+
*/
|
|
1164
1189
|
hasEmptySlot() {
|
|
1165
1190
|
return !!this.$slots.empty;
|
|
1166
1191
|
},
|
|
1167
1192
|
/**
|
|
1168
|
-
|
|
1169
|
-
|
|
1193
|
+
* Check if exists "header" slot
|
|
1194
|
+
*/
|
|
1170
1195
|
hasHeaderSlot() {
|
|
1171
1196
|
return !!this.$slots.header;
|
|
1172
1197
|
},
|
|
1173
1198
|
/**
|
|
1174
|
-
|
|
1175
|
-
|
|
1199
|
+
* Check if exists "footer" slot
|
|
1200
|
+
*/
|
|
1176
1201
|
hasFooterSlot() {
|
|
1177
1202
|
return !!this.$slots.footer;
|
|
1178
1203
|
},
|
|
1179
1204
|
/**
|
|
1180
|
-
|
|
1181
|
-
|
|
1205
|
+
* Apply dropdownPosition property
|
|
1206
|
+
*/
|
|
1182
1207
|
isOpenedTop() {
|
|
1183
1208
|
return this.dropdownPosition === "top" || this.dropdownPosition === "auto" && !this.isListInViewportVertically;
|
|
1184
1209
|
},
|
|
@@ -1199,36 +1224,36 @@ const w = Xe.exports, Ue = {
|
|
|
1199
1224
|
},
|
|
1200
1225
|
watch: {
|
|
1201
1226
|
/**
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1227
|
+
* When dropdown is toggled, check the visibility to know when
|
|
1228
|
+
* to open upwards.
|
|
1229
|
+
*/
|
|
1205
1230
|
isActive(t) {
|
|
1206
1231
|
this.dropdownPosition === "auto" && (t ? this.calcDropdownInViewportVertical() : setTimeout(() => {
|
|
1207
1232
|
this.calcDropdownInViewportVertical();
|
|
1208
1233
|
}, 100)), t && this.$nextTick(() => this.setHovered(null));
|
|
1209
1234
|
},
|
|
1210
1235
|
/**
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1236
|
+
* When updating input's value
|
|
1237
|
+
* 1. Emit changes
|
|
1238
|
+
* 2. If value isn't the same as selected, set null
|
|
1239
|
+
* 3. Close dropdown if value is clear or else open it
|
|
1240
|
+
*/
|
|
1216
1241
|
newValue(t) {
|
|
1217
1242
|
this.$emit("input", t);
|
|
1218
1243
|
const e = this.getValue(this.selected);
|
|
1219
1244
|
e && e !== t && this.setSelected(null, !1), this.hasFocus && (!this.openOnFocus || t) && (this.isActive = !!t);
|
|
1220
1245
|
},
|
|
1221
1246
|
/**
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1247
|
+
* When v-model is changed:
|
|
1248
|
+
* 1. Update internal value.
|
|
1249
|
+
* 2. If it's invalid, validate again.
|
|
1250
|
+
*/
|
|
1226
1251
|
value(t) {
|
|
1227
1252
|
this.newValue = t;
|
|
1228
1253
|
},
|
|
1229
1254
|
/**
|
|
1230
|
-
|
|
1231
|
-
|
|
1255
|
+
* Select first option if "keep-first
|
|
1256
|
+
*/
|
|
1232
1257
|
data(t) {
|
|
1233
1258
|
this.keepFirst && this.selectFirstOption(t);
|
|
1234
1259
|
}
|
|
@@ -1239,49 +1264,55 @@ const w = Xe.exports, Ue = {
|
|
|
1239
1264
|
mounted() {
|
|
1240
1265
|
if (this.checkInfiniteScroll && this.$refs.dropdown && this.$refs.dropdown.querySelector(".dropdown-content")) {
|
|
1241
1266
|
const t = this.$refs.dropdown.querySelector(".dropdown-content");
|
|
1242
|
-
t.addEventListener(
|
|
1267
|
+
t.addEventListener(
|
|
1268
|
+
"scroll",
|
|
1269
|
+
() => this.checkIfReachedTheEndOfScroll(t)
|
|
1270
|
+
);
|
|
1243
1271
|
}
|
|
1244
1272
|
this.appendToBody && (this.$data._bodyEl = ee(this.$refs.dropdown), this.updateAppendToBody());
|
|
1245
1273
|
},
|
|
1246
1274
|
beforeDestroy() {
|
|
1247
|
-
typeof window < "u" && (document.removeEventListener("click", this.clickedOutside), this.dropdownPosition === "auto" && window.removeEventListener(
|
|
1275
|
+
typeof window < "u" && (document.removeEventListener("click", this.clickedOutside), this.dropdownPosition === "auto" && window.removeEventListener(
|
|
1276
|
+
"resize",
|
|
1277
|
+
this.calcDropdownInViewportVertical
|
|
1278
|
+
)), this.checkInfiniteScroll && this.$refs.dropdown && this.$refs.dropdown.querySelector(".dropdown-content") && this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll", this.checkIfReachedTheEndOfScroll), this.appendToBody && te(this.$data._bodyEl);
|
|
1248
1279
|
},
|
|
1249
1280
|
methods: {
|
|
1250
1281
|
/**
|
|
1251
|
-
|
|
1252
|
-
|
|
1282
|
+
* Set which option is currently hovered.
|
|
1283
|
+
*/
|
|
1253
1284
|
setHovered(t) {
|
|
1254
1285
|
t !== void 0 && (this.hovered = t);
|
|
1255
1286
|
},
|
|
1256
1287
|
/**
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1288
|
+
* Set which option is currently selected, update v-model,
|
|
1289
|
+
* update input value and close dropdown.
|
|
1290
|
+
*/
|
|
1260
1291
|
setSelected(t, e = !0) {
|
|
1261
1292
|
t !== void 0 && (this.selected = t, this.$emit("select", this.selected), this.selected !== null && (this.newValue = this.clearOnSelect ? "" : this.getValue(this.selected), this.setHovered(this.clearOnSelect ? null : this.hovered)), e && this.$nextTick(() => {
|
|
1262
1293
|
this.isActive = !1;
|
|
1263
1294
|
}), this.checkValidity());
|
|
1264
1295
|
},
|
|
1265
1296
|
/**
|
|
1266
|
-
|
|
1267
|
-
|
|
1297
|
+
* Select first option
|
|
1298
|
+
*/
|
|
1268
1299
|
selectFirstOption(t) {
|
|
1269
1300
|
this.$nextTick(() => {
|
|
1270
1301
|
t.length ? (this.openOnFocus || this.newValue !== "" && this.hovered !== t[0]) && this.setHovered(t[0]) : this.setHovered(null);
|
|
1271
1302
|
});
|
|
1272
1303
|
},
|
|
1273
1304
|
/**
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1305
|
+
* Enter key listener.
|
|
1306
|
+
* Select the hovered option.
|
|
1307
|
+
*/
|
|
1277
1308
|
enterPressed(t) {
|
|
1278
1309
|
this.isDropdownOpen && (t.preventDefault(), this.hovered !== null && this.setSelected(this.hovered, !this.keepOpen));
|
|
1279
1310
|
},
|
|
1280
1311
|
/**
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1312
|
+
* Tab key listener.
|
|
1313
|
+
* Select hovered option if it exists, close dropdown, then allow
|
|
1314
|
+
* native handling to move to next tabbable element.
|
|
1315
|
+
*/
|
|
1285
1316
|
tabPressed() {
|
|
1286
1317
|
if (this.hovered === null) {
|
|
1287
1318
|
this.isActive = !1;
|
|
@@ -1290,32 +1321,32 @@ const w = Xe.exports, Ue = {
|
|
|
1290
1321
|
this.setSelected(this.hovered, !this.keepOpen);
|
|
1291
1322
|
},
|
|
1292
1323
|
/**
|
|
1293
|
-
|
|
1294
|
-
|
|
1324
|
+
* Close dropdown if clicked outside.
|
|
1325
|
+
*/
|
|
1295
1326
|
clickedOutside(t) {
|
|
1296
1327
|
var i;
|
|
1297
1328
|
const e = ((i = t.path) == null ? void 0 : i[0]) || t.target;
|
|
1298
1329
|
this.whiteList.indexOf(e) < 0 && (this.isActive = !1);
|
|
1299
1330
|
},
|
|
1300
1331
|
/**
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1332
|
+
* Return display text for the input.
|
|
1333
|
+
* If object, get value from path, or else just the value.
|
|
1334
|
+
*/
|
|
1304
1335
|
getValue(t) {
|
|
1305
1336
|
if (t !== null)
|
|
1306
1337
|
return typeof this.customFormatter < "u" ? this.customFormatter(t) : typeof t == "object" ? ie(t, this.field) : t;
|
|
1307
1338
|
},
|
|
1308
1339
|
/**
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1340
|
+
* Check if the scroll list inside the dropdown
|
|
1341
|
+
* reached it's end.
|
|
1342
|
+
*/
|
|
1312
1343
|
checkIfReachedTheEndOfScroll(t) {
|
|
1313
1344
|
t.clientHeight !== t.scrollHeight && t.scrollTop + t.clientHeight >= t.scrollHeight && this.$emit("infinite-scroll");
|
|
1314
1345
|
},
|
|
1315
1346
|
/**
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1347
|
+
* Calculate if the dropdown is vertically visible when activated,
|
|
1348
|
+
* otherwise it is openened upwards.
|
|
1349
|
+
*/
|
|
1319
1350
|
calcDropdownInViewportVertical() {
|
|
1320
1351
|
this.$nextTick(() => {
|
|
1321
1352
|
if (this.$refs.dropdown === void 0)
|
|
@@ -1325,15 +1356,17 @@ const w = Xe.exports, Ue = {
|
|
|
1325
1356
|
});
|
|
1326
1357
|
},
|
|
1327
1358
|
/**
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1359
|
+
* Arrows keys listener.
|
|
1360
|
+
* If dropdown is active, set hovered option, or else just open.
|
|
1361
|
+
*/
|
|
1331
1362
|
keyArrows(t) {
|
|
1332
1363
|
const e = t === "down" ? 1 : -1;
|
|
1333
1364
|
if (this.isActive) {
|
|
1334
1365
|
let i = this.data.indexOf(this.hovered) + e;
|
|
1335
1366
|
i = i > this.data.length - 1 ? this.data.length : i, i = i < 0 ? 0 : i, this.setHovered(this.data[i]);
|
|
1336
|
-
const s = this.$refs.dropdown.querySelector(".dropdown-content"), n = s.querySelectorAll(
|
|
1367
|
+
const s = this.$refs.dropdown.querySelector(".dropdown-content"), n = s.querySelectorAll(
|
|
1368
|
+
"a.dropdown-item:not(.is-disabled)"
|
|
1369
|
+
)[i];
|
|
1337
1370
|
if (!n)
|
|
1338
1371
|
return;
|
|
1339
1372
|
const a = s.scrollTop, r = s.scrollTop + s.clientHeight - n.clientHeight;
|
|
@@ -1342,15 +1375,15 @@ const w = Xe.exports, Ue = {
|
|
|
1342
1375
|
this.isActive = !0;
|
|
1343
1376
|
},
|
|
1344
1377
|
/**
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1378
|
+
* Focus listener.
|
|
1379
|
+
* If value is the same as selected, select all text.
|
|
1380
|
+
*/
|
|
1348
1381
|
focused(t) {
|
|
1349
1382
|
this.getValue(this.selected) === this.newValue && this.$el.querySelector("input").select(), this.openOnFocus && (this.isActive = !0, this.keepFirst && this.selectFirstOption(this.data)), this.hasFocus = !0, this.$emit("focus", t);
|
|
1350
1383
|
},
|
|
1351
1384
|
/**
|
|
1352
|
-
|
|
1353
|
-
|
|
1385
|
+
* Blur listener.
|
|
1386
|
+
*/
|
|
1354
1387
|
onBlur(t) {
|
|
1355
1388
|
this.hasFocus = !1, this.$emit("blur", t);
|
|
1356
1389
|
},
|
|
@@ -1461,9 +1494,7 @@ const x = it.exports, st = {
|
|
|
1461
1494
|
};
|
|
1462
1495
|
var nt = function() {
|
|
1463
1496
|
var e = this, i = e._self._c;
|
|
1464
|
-
return i("div", { staticClass: "control", class: { "is-expanded": e.expanded } }, [i("CButton", { ref: "label", staticClass: "c-radio radio button", class: [
|
|
1465
|
-
{ "is-disabled": e.disabled, "is-focused": e.isFocused }
|
|
1466
|
-
], attrs: { tag: "label", type: e.newValue === e.nativeValue ? e.type : null, size: e.size, disabled: e.disabled }, on: { click: e.focus, keydown: function(s) {
|
|
1497
|
+
return i("div", { staticClass: "control", class: { "is-expanded": e.expanded } }, [i("CButton", { ref: "label", staticClass: "c-radio radio button", class: [{ "is-disabled": e.disabled, "is-focused": e.isFocused }], attrs: { tag: "label", type: e.newValue === e.nativeValue ? e.type : null, size: e.size, disabled: e.disabled }, on: { click: e.focus, keydown: function(s) {
|
|
1467
1498
|
return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : (s.preventDefault(), e.$refs.$el.label.click());
|
|
1468
1499
|
} } }, [e._t("default"), i("input", { directives: [{ name: "model", rawName: "v-model", value: e.computedValue, expression: "computedValue" }], ref: "input", attrs: { disabled: e.disabled, required: e.required, name: e.name, type: "radio" }, domProps: { value: e.nativeValue, checked: e._q(e.computedValue, e.nativeValue) }, on: { click: function(s) {
|
|
1469
1500
|
s.stopPropagation();
|
|
@@ -1559,7 +1590,7 @@ var lt = function() {
|
|
|
1559
1590
|
dt,
|
|
1560
1591
|
!1,
|
|
1561
1592
|
null,
|
|
1562
|
-
"
|
|
1593
|
+
"e050ad8b",
|
|
1563
1594
|
null,
|
|
1564
1595
|
null
|
|
1565
1596
|
);
|
|
@@ -1647,7 +1678,7 @@ var mt = function() {
|
|
|
1647
1678
|
pt,
|
|
1648
1679
|
!1,
|
|
1649
1680
|
null,
|
|
1650
|
-
"
|
|
1681
|
+
"e8ba33eb",
|
|
1651
1682
|
null,
|
|
1652
1683
|
null
|
|
1653
1684
|
);
|
|
@@ -1713,11 +1744,7 @@ const k = ht.exports, ft = {
|
|
|
1713
1744
|
position: {
|
|
1714
1745
|
type: String,
|
|
1715
1746
|
validator(t) {
|
|
1716
|
-
return [
|
|
1717
|
-
"left",
|
|
1718
|
-
"right",
|
|
1719
|
-
"center"
|
|
1720
|
-
].indexOf(t) > -1;
|
|
1747
|
+
return ["left", "right", "center"].indexOf(t) > -1;
|
|
1721
1748
|
},
|
|
1722
1749
|
default: null
|
|
1723
1750
|
},
|
|
@@ -1763,7 +1790,9 @@ const k = ht.exports, ft = {
|
|
|
1763
1790
|
];
|
|
1764
1791
|
},
|
|
1765
1792
|
tabItems() {
|
|
1766
|
-
return this.defaultSlots.filter(
|
|
1793
|
+
return this.defaultSlots.filter(
|
|
1794
|
+
(t) => t.componentInstance && t.componentInstance.$data && t.componentInstance.$data._isTabItem
|
|
1795
|
+
).map((t) => t.componentInstance);
|
|
1767
1796
|
}
|
|
1768
1797
|
},
|
|
1769
1798
|
watch: {
|
|
@@ -1807,7 +1836,9 @@ const k = ht.exports, ft = {
|
|
|
1807
1836
|
this.defaultSlots = this.$slots.default || [];
|
|
1808
1837
|
},
|
|
1809
1838
|
getIndexByValue(t) {
|
|
1810
|
-
const e = this.tabItems.map(
|
|
1839
|
+
const e = this.tabItems.map(
|
|
1840
|
+
(i) => i.$options.propsData ? i.$options.propsData.value : void 0
|
|
1841
|
+
).indexOf(t);
|
|
1811
1842
|
return e >= 0 ? e : t;
|
|
1812
1843
|
},
|
|
1813
1844
|
getValueByIndex(t) {
|
|
@@ -1834,7 +1865,7 @@ var vt = function() {
|
|
|
1834
1865
|
yt,
|
|
1835
1866
|
!1,
|
|
1836
1867
|
null,
|
|
1837
|
-
"
|
|
1868
|
+
"e8891cc0",
|
|
1838
1869
|
null,
|
|
1839
1870
|
null
|
|
1840
1871
|
);
|
|
@@ -1945,16 +1976,14 @@ const V = xt.exports, St = {
|
|
|
1945
1976
|
}
|
|
1946
1977
|
};
|
|
1947
1978
|
var $t = function(e, i) {
|
|
1948
|
-
return e("div", { class: [i.data.class, i.data.staticClass], staticStyle: { padding: "0.75em 1em", display: "flex", "align-items": "flex-start", "border-radius": "0.6em", "background-color": "hsl(var(--gray-color-100) / 1)" }, style: { ...i.data.staticStyle } }, [e("div", { class: [
|
|
1949
|
-
`has-background-${i.props.type}`
|
|
1950
|
-
], staticStyle: { display: "inline-block", padding: "0.5em", "border-radius": "0.45em", "font-weight": "700", color: "white", "line-height": "1", "font-size": "12px", "margin-right": "1.25em" } }, [i._v(" " + i._s(i.props.badge || i.parent.$t("components:cling.message.tip")) + " ")]), e("div", { staticStyle: { color: "hsl(0, 0%, 25%)" } }, [i.props.text ? [i._v(" " + i._s(i.props.text) + " ")] : i._e(), i._t("default")], 2)]);
|
|
1979
|
+
return e("div", { class: [i.data.class, i.data.staticClass], staticStyle: { padding: "0.75em 1em", display: "flex", "align-items": "flex-start", "border-radius": "0.6em", "background-color": "hsl(var(--gray-color-100) / 1)" }, style: { ...i.data.staticStyle } }, [e("div", { class: [`has-background-${i.props.type}`], staticStyle: { display: "inline-block", padding: "0.5em", "border-radius": "0.45em", "font-weight": "700", color: "white", "line-height": "1", "font-size": "12px", "margin-right": "1.25em" } }, [i._v(" " + i._s(i.props.badge || i.parent.$t("components:cling.message.tip")) + " ")]), e("div", { staticStyle: { color: "hsl(0, 0%, 25%)" } }, [i.props.text ? [i._v(" " + i._s(i.props.text) + " ")] : i._e(), i._t("default")], 2)]);
|
|
1951
1980
|
}, kt = [], Dt = /* @__PURE__ */ o(
|
|
1952
1981
|
St,
|
|
1953
1982
|
$t,
|
|
1954
1983
|
kt,
|
|
1955
1984
|
!0,
|
|
1956
1985
|
null,
|
|
1957
|
-
"
|
|
1986
|
+
"9be3b227",
|
|
1958
1987
|
null,
|
|
1959
1988
|
null
|
|
1960
1989
|
);
|
|
@@ -2054,7 +2083,9 @@ const It = Bt.exports, Ot = {
|
|
|
2054
2083
|
if (this.region)
|
|
2055
2084
|
return this.region;
|
|
2056
2085
|
if (this.value) {
|
|
2057
|
-
const t = (Object.keys(l) || []).find(
|
|
2086
|
+
const t = (Object.keys(l) || []).find(
|
|
2087
|
+
(e) => l[e].callingCode && this.value && this.value.startsWith(l[e].callingCode)
|
|
2088
|
+
);
|
|
2058
2089
|
if (t)
|
|
2059
2090
|
return t;
|
|
2060
2091
|
}
|
|
@@ -2067,7 +2098,9 @@ const It = Bt.exports, Ot = {
|
|
|
2067
2098
|
prefix() {
|
|
2068
2099
|
if (!this.value)
|
|
2069
2100
|
return this.internalPrefix || this.defaultPrefix;
|
|
2070
|
-
const t = (Object.keys(l) || []).find(
|
|
2101
|
+
const t = (Object.keys(l) || []).find(
|
|
2102
|
+
(e) => l[e].callingCode && this.value && this.value.startsWith(l[e].callingCode)
|
|
2103
|
+
);
|
|
2071
2104
|
return t ? l[t].callingCode : this.defaultPrefix;
|
|
2072
2105
|
},
|
|
2073
2106
|
phone: {
|
|
@@ -2079,12 +2112,18 @@ const It = Bt.exports, Ot = {
|
|
|
2079
2112
|
}
|
|
2080
2113
|
},
|
|
2081
2114
|
sortedRegions() {
|
|
2082
|
-
return (Object.keys(l) || []).map((t) => ({
|
|
2115
|
+
return (Object.keys(l) || []).map((t) => ({
|
|
2116
|
+
key: t,
|
|
2117
|
+
title: `${l[t].name} (${t})`,
|
|
2118
|
+
callingCode: l[t].callingCode
|
|
2119
|
+
})).sort((t, e) => t.title.localeCompare(e.title));
|
|
2083
2120
|
}
|
|
2084
2121
|
},
|
|
2085
2122
|
methods: {
|
|
2086
2123
|
getRegionByCallingCode(t) {
|
|
2087
|
-
return t ? (Object.keys(l) || []).find(
|
|
2124
|
+
return t ? (Object.keys(l) || []).find(
|
|
2125
|
+
(i) => t === l[i].callingCode
|
|
2126
|
+
) : null;
|
|
2088
2127
|
},
|
|
2089
2128
|
updateValue({ prefix: t, phone: e }) {
|
|
2090
2129
|
const i = t !== void 0 ? t : this.prefix || "", s = e !== void 0 ? e : this.phone || "", n = `${i}${s}`;
|
|
@@ -2395,8 +2434,8 @@ const Wt = Kt.exports, Xt = {
|
|
|
2395
2434
|
},
|
|
2396
2435
|
watch: {
|
|
2397
2436
|
/**
|
|
2398
|
-
|
|
2399
|
-
|
|
2437
|
+
* When v-model is changed set the new active step.
|
|
2438
|
+
*/
|
|
2400
2439
|
value(t) {
|
|
2401
2440
|
this.setValues(t);
|
|
2402
2441
|
},
|
|
@@ -2463,7 +2502,10 @@ const Wt = Kt.exports, Xt = {
|
|
|
2463
2502
|
}, 0), this.dragging = !1, this.$emit("dragend"), this.lazy && this.emitValue("input");
|
|
2464
2503
|
},
|
|
2465
2504
|
emitValue(t) {
|
|
2466
|
-
this.$emit(
|
|
2505
|
+
this.$emit(
|
|
2506
|
+
t,
|
|
2507
|
+
this.isRange ? [this.minValue, this.maxValue] : this.value1
|
|
2508
|
+
);
|
|
2467
2509
|
}
|
|
2468
2510
|
}
|
|
2469
2511
|
};
|