@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
|
@@ -1,636 +0,0 @@
|
|
|
1
|
-
import { V as g, k as y, n as b } from "./main-WKzC-Dnu.js";
|
|
2
|
-
const d = {}, h = {};
|
|
3
|
-
function v(t) {
|
|
4
|
-
if (h[t])
|
|
5
|
-
return;
|
|
6
|
-
if (d[t])
|
|
7
|
-
return d[t];
|
|
8
|
-
let e;
|
|
9
|
-
const i = new Promise((o, s) => {
|
|
10
|
-
e = window.setTimeout(() => {
|
|
11
|
-
d[t] = null, s(new Error(`Failed to load ${t} in 20s`));
|
|
12
|
-
}, 2e4), import(
|
|
13
|
-
/* @vite-ignore */
|
|
14
|
-
t
|
|
15
|
-
).then(() => {
|
|
16
|
-
e && window.clearTimeout(e), h[t] = !0, d[t] = null, o();
|
|
17
|
-
}).catch((a) => {
|
|
18
|
-
e && window.clearTimeout(e), d[t] = null, s(a);
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
return d[t] = i, i;
|
|
22
|
-
}
|
|
23
|
-
function W(t) {
|
|
24
|
-
if (t.endsWith(".mjs"))
|
|
25
|
-
return v(t);
|
|
26
|
-
if (h[t])
|
|
27
|
-
return;
|
|
28
|
-
if (d[t])
|
|
29
|
-
return d[t];
|
|
30
|
-
const e = new Promise((i, o) => {
|
|
31
|
-
const s = document.createElement("script"), a = window.setTimeout(() => {
|
|
32
|
-
d[t] = null, o(new Error(`Failed to load ${t} in 20s`));
|
|
33
|
-
}, 2e4);
|
|
34
|
-
s.onload = (l) => {
|
|
35
|
-
a && window.clearTimeout(a), h[t] = !0, d[t] = null, i();
|
|
36
|
-
}, s.onerror = (l) => {
|
|
37
|
-
a && window.clearTimeout(a), d[t] = null, o(l);
|
|
38
|
-
}, s.src = t, document.body.appendChild(s);
|
|
39
|
-
});
|
|
40
|
-
return d[t] = e, e;
|
|
41
|
-
}
|
|
42
|
-
function q(t) {
|
|
43
|
-
const e = t.getBoundingClientRect(), i = window.innerHeight || document.documentElement.clientHeight, o = window.innerWidth || document.documentElement.clientWidth, s = e.top <= i && e.top + e.height >= 0, a = e.left <= o && e.left + e.width >= 0;
|
|
44
|
-
return s && a;
|
|
45
|
-
}
|
|
46
|
-
const _ = (t) => {
|
|
47
|
-
const e = /(auto|scroll)/, i = (n, r) => n.parentNode === null ? r : i(n.parentNode, r.concat([n])), o = (n, r) => getComputedStyle(n, null).getPropertyValue(r), s = (n) => o(n, "overflow") + o(n, "overflow-y") + o(n, "overflow-x"), a = (n) => e.test(s(n));
|
|
48
|
-
return ((n) => {
|
|
49
|
-
if (!(n instanceof HTMLElement || n instanceof SVGElement))
|
|
50
|
-
return null;
|
|
51
|
-
const r = i(n.parentNode, []);
|
|
52
|
-
for (let c = 0; c < r.length; c += 1)
|
|
53
|
-
if (a(r[c]))
|
|
54
|
-
return r[c];
|
|
55
|
-
return document.scrollingElement || document.documentElement;
|
|
56
|
-
})(t);
|
|
57
|
-
}, C = (t) => {
|
|
58
|
-
let e = 0;
|
|
59
|
-
for (; t; )
|
|
60
|
-
e += t.offsetTop, t = t.offsetParent;
|
|
61
|
-
return e;
|
|
62
|
-
};
|
|
63
|
-
function V(t, e) {
|
|
64
|
-
let i = t;
|
|
65
|
-
typeof i == "string" && (i = document.querySelector(i));
|
|
66
|
-
const o = {
|
|
67
|
-
offset: 0,
|
|
68
|
-
behavior: "smooth",
|
|
69
|
-
body: _(i),
|
|
70
|
-
// custom option used for choosing parent scroll element
|
|
71
|
-
...e
|
|
72
|
-
}, s = C(i);
|
|
73
|
-
HTMLElement.prototype.scrollTo ? o.body.scrollTo({
|
|
74
|
-
behavior: o.behavior,
|
|
75
|
-
top: s - o.offset
|
|
76
|
-
}) : o.body.scrollTop = s - o.offset;
|
|
77
|
-
}
|
|
78
|
-
const w = (t) => {
|
|
79
|
-
var o;
|
|
80
|
-
const e = (o = t == null ? void 0 : t.getRootNode) == null ? void 0 : o.call(t), i = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]";
|
|
81
|
-
return {
|
|
82
|
-
isShadow: i,
|
|
83
|
-
el: i ? e : document
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
class x {
|
|
87
|
-
constructor({ defaults: e = { width: 800, height: 600 }, delay: i = 50 } = {}) {
|
|
88
|
-
this._width = e.width, this._height = e.height, this._delay = i, this._timer = null, this._initialized = !1, this._handler = this._handleResize.bind(this);
|
|
89
|
-
}
|
|
90
|
-
_handleResize() {
|
|
91
|
-
clearTimeout(this._timer), this._timer = setTimeout(() => {
|
|
92
|
-
this.update();
|
|
93
|
-
}, this._delay);
|
|
94
|
-
}
|
|
95
|
-
get width() {
|
|
96
|
-
return this._width;
|
|
97
|
-
}
|
|
98
|
-
get height() {
|
|
99
|
-
return this._height;
|
|
100
|
-
}
|
|
101
|
-
get initialized() {
|
|
102
|
-
return this._initialized;
|
|
103
|
-
}
|
|
104
|
-
update() {
|
|
105
|
-
this._width = window.innerWidth, this._height = window.innerHeight;
|
|
106
|
-
}
|
|
107
|
-
setDelay(e) {
|
|
108
|
-
this._delay = e;
|
|
109
|
-
}
|
|
110
|
-
init() {
|
|
111
|
-
return typeof window > "u" ? this : this.initialized ? this : (this.update(), window.addEventListener("resize", this._handler, { passive: !0 }), this._initialized = !0, this);
|
|
112
|
-
}
|
|
113
|
-
destroy() {
|
|
114
|
-
return this.initialized ? (window.removeEventListener("resize", this._handler, { passive: !0 }), this._initialized = !1, this) : this;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
const S = new x().init(), p = new g({ data: { windowSize: S } }), $ = {
|
|
118
|
-
computed: {
|
|
119
|
-
windowWidth() {
|
|
120
|
-
return p.windowSize.width;
|
|
121
|
-
},
|
|
122
|
-
windowHeight() {
|
|
123
|
-
return p.windowSize.height;
|
|
124
|
-
},
|
|
125
|
-
mq() {
|
|
126
|
-
const { width: t } = p.windowSize, e = {
|
|
127
|
-
sm: 640,
|
|
128
|
-
md: 768,
|
|
129
|
-
lg: 1024,
|
|
130
|
-
xl: 1280,
|
|
131
|
-
"2xl": 1536,
|
|
132
|
-
"3xl": 1 / 0
|
|
133
|
-
};
|
|
134
|
-
let i = "lg";
|
|
135
|
-
return Object.keys(e).reverse().forEach((o) => {
|
|
136
|
-
t <= e[o] && (i = o);
|
|
137
|
-
}), i;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
var f = { exports: {} };
|
|
142
|
-
(function(t, e) {
|
|
143
|
-
Object.defineProperty(e, "__esModule", {
|
|
144
|
-
value: !0
|
|
145
|
-
}), e.default = i;
|
|
146
|
-
function i() {
|
|
147
|
-
return !!(typeof window < "u" && ("ontouchstart" in window || window.DocumentTouch && typeof document < "u" && document instanceof window.DocumentTouch)) || !!(typeof navigator < "u" && (navigator.maxTouchPoints || navigator.msMaxTouchPoints));
|
|
148
|
-
}
|
|
149
|
-
t.exports = e.default;
|
|
150
|
-
})(f, f.exports);
|
|
151
|
-
var k = f.exports;
|
|
152
|
-
const E = /* @__PURE__ */ y(k), K = E();
|
|
153
|
-
function Y(t, e) {
|
|
154
|
-
return e.split(".").reduce((o, s) => o ? o[s] : null, t);
|
|
155
|
-
}
|
|
156
|
-
function T(t) {
|
|
157
|
-
typeof t.remove < "u" ? t.remove() : typeof t.parentNode < "u" && t.parentNode !== null && t.parentNode.removeChild(t);
|
|
158
|
-
}
|
|
159
|
-
function L(t) {
|
|
160
|
-
var l;
|
|
161
|
-
const e = (l = t.getRootNode) == null ? void 0 : l.call(t), o = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.body, s = document.createElement("div");
|
|
162
|
-
s.style.position = "absolute", s.style.left = "0px", s.style.top = "0px";
|
|
163
|
-
const a = document.createElement("div");
|
|
164
|
-
return s.appendChild(a), a.appendChild(t), o.appendChild(s), s;
|
|
165
|
-
}
|
|
166
|
-
function G(t, e, i) {
|
|
167
|
-
return Math.max(e, Math.min(i, t));
|
|
168
|
-
}
|
|
169
|
-
const u = (t, e = !1) => t ? e ? t.querySelectorAll('*[tabindex="-1"]') : t.querySelectorAll(`a[href]:not([tabindex="-1"]),
|
|
170
|
-
area[href],
|
|
171
|
-
input:not([disabled]),
|
|
172
|
-
select:not([disabled]),
|
|
173
|
-
textarea:not([disabled]),
|
|
174
|
-
button:not([disabled]),
|
|
175
|
-
iframe,
|
|
176
|
-
object,
|
|
177
|
-
embed,
|
|
178
|
-
*[tabindex]:not([tabindex="-1"]),
|
|
179
|
-
*[contenteditable]`) : null;
|
|
180
|
-
let m;
|
|
181
|
-
const O = (t, { value: e = !0 }) => {
|
|
182
|
-
if (e) {
|
|
183
|
-
let i = u(t), o = u(t, !0);
|
|
184
|
-
i && i.length > 0 && (m = (s) => {
|
|
185
|
-
i = u(t), o = u(t, !0);
|
|
186
|
-
const a = i[0], l = i[i.length - 1];
|
|
187
|
-
s.target === a && s.shiftKey && s.key === "Tab" ? (s.preventDefault(), l.focus()) : (s.target === l || Array.from(o).indexOf(s.target) >= 0) && !s.shiftKey && s.key === "Tab" && (s.preventDefault(), a.focus());
|
|
188
|
-
}, t.addEventListener("keydown", m));
|
|
189
|
-
}
|
|
190
|
-
}, A = (t) => {
|
|
191
|
-
t.removeEventListener("keydown", m);
|
|
192
|
-
}, B = {
|
|
193
|
-
bind: O,
|
|
194
|
-
unbind: A
|
|
195
|
-
}, I = ["escape", "outside"], P = {
|
|
196
|
-
name: "CDropdown",
|
|
197
|
-
directives: {
|
|
198
|
-
trapFocus: B
|
|
199
|
-
},
|
|
200
|
-
mixins: [$],
|
|
201
|
-
props: {
|
|
202
|
-
value: {
|
|
203
|
-
type: [String, Number, Boolean, Object, Array, Function],
|
|
204
|
-
default: null
|
|
205
|
-
},
|
|
206
|
-
disabled: {
|
|
207
|
-
type: Boolean,
|
|
208
|
-
default: !1
|
|
209
|
-
},
|
|
210
|
-
hoverable: {
|
|
211
|
-
type: Boolean,
|
|
212
|
-
default: !1
|
|
213
|
-
},
|
|
214
|
-
inline: {
|
|
215
|
-
type: Boolean,
|
|
216
|
-
default: !1
|
|
217
|
-
},
|
|
218
|
-
scrollable: {
|
|
219
|
-
type: Boolean,
|
|
220
|
-
default: !1
|
|
221
|
-
},
|
|
222
|
-
maxHeight: {
|
|
223
|
-
type: [String, Number],
|
|
224
|
-
default: 200
|
|
225
|
-
},
|
|
226
|
-
position: {
|
|
227
|
-
type: String,
|
|
228
|
-
default: "is-bottom-left",
|
|
229
|
-
validator(t) {
|
|
230
|
-
return [
|
|
231
|
-
"is-top-right",
|
|
232
|
-
"is-top-left",
|
|
233
|
-
"is-bottom-left",
|
|
234
|
-
"is-bottom-right"
|
|
235
|
-
].indexOf(t) > -1;
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
mobileModal: {
|
|
239
|
-
type: Boolean,
|
|
240
|
-
default: () => !0
|
|
241
|
-
// config.defaultDropdownMobileModal,
|
|
242
|
-
},
|
|
243
|
-
ariaRole: {
|
|
244
|
-
type: String,
|
|
245
|
-
validator(t) {
|
|
246
|
-
return ["menu", "list", "dialog"].indexOf(t) > -1;
|
|
247
|
-
},
|
|
248
|
-
default: null
|
|
249
|
-
},
|
|
250
|
-
animation: {
|
|
251
|
-
type: String,
|
|
252
|
-
default: "fade-bounce"
|
|
253
|
-
},
|
|
254
|
-
multiple: {
|
|
255
|
-
type: Boolean,
|
|
256
|
-
default: !1
|
|
257
|
-
},
|
|
258
|
-
trapFocus: {
|
|
259
|
-
type: Boolean,
|
|
260
|
-
default: () => !1
|
|
261
|
-
// config.defaultTrapFocus,
|
|
262
|
-
},
|
|
263
|
-
closeOnClick: {
|
|
264
|
-
type: Boolean,
|
|
265
|
-
default: !0
|
|
266
|
-
},
|
|
267
|
-
canClose: {
|
|
268
|
-
type: [Array, Boolean],
|
|
269
|
-
default: !0
|
|
270
|
-
},
|
|
271
|
-
expanded: {
|
|
272
|
-
type: Boolean,
|
|
273
|
-
default: !1
|
|
274
|
-
},
|
|
275
|
-
appendToBody: {
|
|
276
|
-
type: Boolean,
|
|
277
|
-
default: !1
|
|
278
|
-
},
|
|
279
|
-
appendToBodyCopyParent: {
|
|
280
|
-
type: Boolean,
|
|
281
|
-
default: !1
|
|
282
|
-
},
|
|
283
|
-
menuStyling: {
|
|
284
|
-
type: Object,
|
|
285
|
-
default: () => ({})
|
|
286
|
-
},
|
|
287
|
-
mobileLabel: {
|
|
288
|
-
type: String,
|
|
289
|
-
default: ""
|
|
290
|
-
},
|
|
291
|
-
paddingless: {
|
|
292
|
-
type: Boolean,
|
|
293
|
-
default: !1
|
|
294
|
-
}
|
|
295
|
-
},
|
|
296
|
-
data() {
|
|
297
|
-
return {
|
|
298
|
-
selected: this.value,
|
|
299
|
-
style: {},
|
|
300
|
-
isActive: !1,
|
|
301
|
-
isHoverable: this.hoverable,
|
|
302
|
-
_isDropdown: !0,
|
|
303
|
-
// Used internally by DropdownItem
|
|
304
|
-
_bodyEl: void 0,
|
|
305
|
-
// Used to append to body
|
|
306
|
-
uniquePopoverClass: `dropdown-popover-${this._uid}`
|
|
307
|
-
// Used internally by DropdownItem
|
|
308
|
-
};
|
|
309
|
-
},
|
|
310
|
-
computed: {
|
|
311
|
-
rootClasses() {
|
|
312
|
-
return [
|
|
313
|
-
this.position,
|
|
314
|
-
{
|
|
315
|
-
"is-disabled": this.disabled,
|
|
316
|
-
"is-hoverable": this.hoverable,
|
|
317
|
-
"is-inline": this.inline,
|
|
318
|
-
"is-active": this.isActive || this.inline,
|
|
319
|
-
"is-mobile-modal": this.isMobileModal,
|
|
320
|
-
"is-expanded": this.expanded
|
|
321
|
-
}
|
|
322
|
-
];
|
|
323
|
-
},
|
|
324
|
-
isMobileModal() {
|
|
325
|
-
return this.mobileModal && this.mq === "sm";
|
|
326
|
-
},
|
|
327
|
-
cancelOptions() {
|
|
328
|
-
return typeof this.canClose == "boolean" ? this.canClose ? I : [] : this.canClose;
|
|
329
|
-
},
|
|
330
|
-
contentStyle() {
|
|
331
|
-
return {
|
|
332
|
-
maxHeight: this.scrollable ? this.maxHeight === void 0 ? null : isNaN(this.maxHeight) ? this.maxHeight : `${this.maxHeight}px` : null,
|
|
333
|
-
overflow: this.scrollable ? "auto" : null,
|
|
334
|
-
padding: this.paddingless ? "0" : null
|
|
335
|
-
};
|
|
336
|
-
}
|
|
337
|
-
},
|
|
338
|
-
watch: {
|
|
339
|
-
/**
|
|
340
|
-
* When v-model is changed set the new selected item.
|
|
341
|
-
*/
|
|
342
|
-
value(t) {
|
|
343
|
-
this.selected = t;
|
|
344
|
-
},
|
|
345
|
-
/**
|
|
346
|
-
* Emit event when isActive value is changed.
|
|
347
|
-
*/
|
|
348
|
-
isActive(t) {
|
|
349
|
-
this.$emit("active-change", t), this.appendToBody && this.$nextTick(() => {
|
|
350
|
-
this.updateAppendToBody();
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
},
|
|
354
|
-
mounted() {
|
|
355
|
-
if (typeof window < "u") {
|
|
356
|
-
const { el: t, isShadow: e } = w(this.$el);
|
|
357
|
-
t.addEventListener("click", this.clickedOutside), e && document.addEventListener("click", this.clickedOutsideShadow(t)), document.addEventListener("keyup", this.keyPress);
|
|
358
|
-
}
|
|
359
|
-
this.appendToBody && (this.$data._bodyEl = L(this.$refs.dropdownMenu), this.$data._bodyEl.style.zIndex = Number(
|
|
360
|
-
window.getComputedStyle(this.$el).getPropertyValue("--app-z-index")
|
|
361
|
-
) + 9999, this.isMobileModal && this.$data._bodyEl.appendChild(this.$refs.mobileBackground), this.updateAppendToBody());
|
|
362
|
-
},
|
|
363
|
-
beforeDestroy() {
|
|
364
|
-
if (typeof window < "u") {
|
|
365
|
-
const { el: t, isShadow: e } = w(this.$el);
|
|
366
|
-
t.removeEventListener("click", this.clickedOutside(t)), e && document.removeEventListener("click", this.clickedOutsideShadow(t)), document.removeEventListener("keyup", this.keyPress);
|
|
367
|
-
}
|
|
368
|
-
this.appendToBody && T(this.$data._bodyEl);
|
|
369
|
-
},
|
|
370
|
-
methods: {
|
|
371
|
-
/**
|
|
372
|
-
* Click listener from DropdownItem.
|
|
373
|
-
* 1. Set new selected item.
|
|
374
|
-
* 2. Emit input event to update the user v-model.
|
|
375
|
-
* 3. Close the dropdown.
|
|
376
|
-
*/
|
|
377
|
-
selectItem(t, e) {
|
|
378
|
-
if (this.multiple) {
|
|
379
|
-
if (this.selected) {
|
|
380
|
-
const i = this.selected.indexOf(t);
|
|
381
|
-
i === -1 ? this.selected.push(t) : this.selected.splice(i, 1);
|
|
382
|
-
} else
|
|
383
|
-
this.selected = [t];
|
|
384
|
-
this.$emit("change", this.selected);
|
|
385
|
-
} else
|
|
386
|
-
this.selected !== t && (this.selected = t, this.$emit("change", this.selected));
|
|
387
|
-
this.$emit("input", this.selected), this.multiple || (this.isActive = e.closeOnClick ? !this.closeOnClick : !0, this.hoverable && this.closeOnClick && (this.isHoverable = !1));
|
|
388
|
-
},
|
|
389
|
-
/**
|
|
390
|
-
* White-listed items to not close when clicked.
|
|
391
|
-
*/
|
|
392
|
-
isInWhiteList(t) {
|
|
393
|
-
if (t === this.$refs.dropdownMenu || t === this.$refs.trigger)
|
|
394
|
-
return !0;
|
|
395
|
-
if (this.$refs.dropdownMenu !== void 0) {
|
|
396
|
-
const e = this.$refs.dropdownMenu.querySelectorAll("*");
|
|
397
|
-
for (const i of e)
|
|
398
|
-
if (t === i)
|
|
399
|
-
return !0;
|
|
400
|
-
}
|
|
401
|
-
if (this.$refs.trigger !== void 0) {
|
|
402
|
-
const e = this.$refs.trigger.querySelectorAll("*");
|
|
403
|
-
for (const i of e)
|
|
404
|
-
if (t === i)
|
|
405
|
-
return !0;
|
|
406
|
-
}
|
|
407
|
-
return !1;
|
|
408
|
-
},
|
|
409
|
-
/**
|
|
410
|
-
* Close dropdown if clicked outside.
|
|
411
|
-
*/
|
|
412
|
-
clickedOutside(t) {
|
|
413
|
-
var i;
|
|
414
|
-
if (this.cancelOptions.indexOf("outside") < 0 || this.inline)
|
|
415
|
-
return;
|
|
416
|
-
const e = ((i = t.path) == null ? void 0 : i[0]) || t.target;
|
|
417
|
-
this.isInWhiteList(e) || (this.isActive = !1);
|
|
418
|
-
},
|
|
419
|
-
clickedOutsideShadow(t) {
|
|
420
|
-
return (e) => {
|
|
421
|
-
e != null && e.target && e.target !== (t == null ? void 0 : t.host) && (this.isActive = !1);
|
|
422
|
-
};
|
|
423
|
-
},
|
|
424
|
-
/**
|
|
425
|
-
* Keypress event that is bound to the document
|
|
426
|
-
*/
|
|
427
|
-
keyPress(t) {
|
|
428
|
-
if (this.isActive && t.keyCode === 27) {
|
|
429
|
-
if (this.cancelOptions.indexOf("escape") < 0)
|
|
430
|
-
return;
|
|
431
|
-
this.isActive = !1;
|
|
432
|
-
}
|
|
433
|
-
},
|
|
434
|
-
/**
|
|
435
|
-
* Toggle dropdown if it's not disabled.
|
|
436
|
-
*/
|
|
437
|
-
toggle() {
|
|
438
|
-
this.disabled || (this.isActive ? this.isActive = !this.isActive : this.$nextTick(() => {
|
|
439
|
-
const t = !this.isActive;
|
|
440
|
-
this.isActive = t, setTimeout(() => this.isActive = t);
|
|
441
|
-
}));
|
|
442
|
-
},
|
|
443
|
-
checkHoverable() {
|
|
444
|
-
this.hoverable && (this.isHoverable = !0);
|
|
445
|
-
},
|
|
446
|
-
updateAppendToBody() {
|
|
447
|
-
const t = this.$refs.dropdownMenu, e = this.$refs.trigger;
|
|
448
|
-
if (t && e) {
|
|
449
|
-
const i = this.$data._bodyEl.children[0];
|
|
450
|
-
if (i.classList.forEach((l) => i.classList.remove(l)), i.classList.add("dropdown"), i.classList.add("dropdown-menu-animation"), this.$vnode && this.$vnode.data && this.$vnode.data.staticClass && i.classList.add(this.$vnode.data.staticClass), this.rootClasses.forEach((l) => {
|
|
451
|
-
if (l && typeof l == "object")
|
|
452
|
-
for (const n in l)
|
|
453
|
-
l[n] && i.classList.add(n);
|
|
454
|
-
}), this.appendToBodyCopyParent) {
|
|
455
|
-
const l = this.$refs.dropdown.parentNode, n = this.$data._bodyEl;
|
|
456
|
-
n.classList.forEach((r) => n.classList.remove(r)), l.classList.forEach((r) => {
|
|
457
|
-
n.classList.add(r);
|
|
458
|
-
});
|
|
459
|
-
}
|
|
460
|
-
const o = e.getBoundingClientRect();
|
|
461
|
-
let s = o.top + window.scrollY, a = o.left + window.scrollX;
|
|
462
|
-
!this.position || this.position.indexOf("bottom") >= 0 ? s += e.clientHeight : s -= t.clientHeight, this.position && this.position.indexOf("left") >= 0 && (a -= t.clientWidth - e.clientWidth), this.style = {
|
|
463
|
-
position: "absolute",
|
|
464
|
-
top: `${s}px`,
|
|
465
|
-
left: `${a}px`,
|
|
466
|
-
zIndex: "1001",
|
|
467
|
-
...this.expanded && { width: `${e.clientWidth}px` }
|
|
468
|
-
};
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
};
|
|
473
|
-
var M = function() {
|
|
474
|
-
var e = this, i = e._self._c;
|
|
475
|
-
return i("div", { ref: "dropdown", staticClass: "dropdown dropdown-menu-animation", class: e.rootClasses }, [e.inline ? e._e() : i("div", { ref: "trigger", staticClass: "dropdown-trigger", attrs: { role: "button", "aria-haspopup": "true" }, on: { click: e.toggle, mouseenter: e.checkHoverable } }, [e._t("trigger", null, { active: e.isActive })], 2), i("transition", { attrs: { name: "fade-in" } }, [e.isMobileModal ? i("div", { directives: [{ name: "show", rawName: "v-show", value: e.isActive, expression: "isActive" }], ref: "mobileBackground", staticClass: "fixed inset-0 z-40 bg-black/40", attrs: { "aria-hidden": !e.isActive } }) : e._e()]), i("transition", { attrs: { name: e.isMobileModal ? "slide-in-bottom" : e.animation } }, [i("div", { directives: [{ name: "show", rawName: "v-show", value: !e.disabled && (e.isActive || e.isHoverable) || e.inline, expression: "(!disabled && (isActive || isHoverable)) || inline" }, { name: "trap-focus", rawName: "v-trap-focus", value: e.trapFocus, expression: "trapFocus" }], ref: "dropdownMenu", staticClass: "dropdown-menu", style: {
|
|
476
|
-
...e.style,
|
|
477
|
-
...e.menuStyling
|
|
478
|
-
}, attrs: { "aria-hidden": !e.isActive } }, [e.isActive ? [e._t("header"), i("div", { staticClass: "dropdown-content", class: `${e.uniquePopoverClass}`, style: e.contentStyle, attrs: { role: e.ariaRole } }, [e.isMobileModal && e.mobileLabel ? e._t("mobileLabel", function() {
|
|
479
|
-
return [i("div", { staticClass: "dropdown-content-label" }, [e._v(e._s(e.mobileLabel))])];
|
|
480
|
-
}) : e._e(), e._t("default")], 2), e._t("footer")] : e._e()], 2)])], 1);
|
|
481
|
-
}, z = [], H = /* @__PURE__ */ b(
|
|
482
|
-
P,
|
|
483
|
-
M,
|
|
484
|
-
z,
|
|
485
|
-
!1,
|
|
486
|
-
null,
|
|
487
|
-
null
|
|
488
|
-
);
|
|
489
|
-
const U = H.exports, R = {
|
|
490
|
-
name: "CDropdownItem",
|
|
491
|
-
props: {
|
|
492
|
-
value: {
|
|
493
|
-
type: [String, Number, Boolean, Object, Array, Function],
|
|
494
|
-
default: null
|
|
495
|
-
},
|
|
496
|
-
separator: Boolean,
|
|
497
|
-
disabled: Boolean,
|
|
498
|
-
custom: Boolean,
|
|
499
|
-
focusable: {
|
|
500
|
-
type: Boolean,
|
|
501
|
-
default: !0
|
|
502
|
-
},
|
|
503
|
-
paddingless: Boolean,
|
|
504
|
-
hasLink: Boolean,
|
|
505
|
-
ariaRole: {
|
|
506
|
-
type: String,
|
|
507
|
-
default: ""
|
|
508
|
-
},
|
|
509
|
-
type: {
|
|
510
|
-
type: String,
|
|
511
|
-
default: null
|
|
512
|
-
},
|
|
513
|
-
toggle: {
|
|
514
|
-
type: Boolean,
|
|
515
|
-
default: !1
|
|
516
|
-
},
|
|
517
|
-
title: {
|
|
518
|
-
type: String,
|
|
519
|
-
default: ""
|
|
520
|
-
},
|
|
521
|
-
tooltip: {
|
|
522
|
-
type: [Object, String],
|
|
523
|
-
default: null
|
|
524
|
-
},
|
|
525
|
-
closeOnClick: {
|
|
526
|
-
type: Boolean,
|
|
527
|
-
default: !0
|
|
528
|
-
},
|
|
529
|
-
iconLeft: {
|
|
530
|
-
type: String,
|
|
531
|
-
default: null
|
|
532
|
-
},
|
|
533
|
-
iconRight: {
|
|
534
|
-
type: String,
|
|
535
|
-
default: null
|
|
536
|
-
},
|
|
537
|
-
iconProps: {
|
|
538
|
-
type: Object,
|
|
539
|
-
default: () => ({})
|
|
540
|
-
},
|
|
541
|
-
to: {
|
|
542
|
-
type: Object,
|
|
543
|
-
default: null
|
|
544
|
-
},
|
|
545
|
-
// Allows for parent communication on arbitrary depth
|
|
546
|
-
customParent: {
|
|
547
|
-
type: Object,
|
|
548
|
-
default: null
|
|
549
|
-
}
|
|
550
|
-
},
|
|
551
|
-
computed: {
|
|
552
|
-
parent() {
|
|
553
|
-
return this.customParent || this.$parent;
|
|
554
|
-
},
|
|
555
|
-
anchorClasses() {
|
|
556
|
-
return {
|
|
557
|
-
"is-disabled": this.parent.disabled || this.disabled,
|
|
558
|
-
"is-paddingless": this.paddingless,
|
|
559
|
-
"is-active": this.isActive,
|
|
560
|
-
"has-toggle": this.toggle
|
|
561
|
-
};
|
|
562
|
-
},
|
|
563
|
-
itemClasses() {
|
|
564
|
-
return {
|
|
565
|
-
"dropdown-item": !this.hasLink,
|
|
566
|
-
"is-disabled": this.disabled,
|
|
567
|
-
"is-paddingless": this.paddingless,
|
|
568
|
-
"is-active": this.isActive,
|
|
569
|
-
"has-link": this.hasLink
|
|
570
|
-
};
|
|
571
|
-
},
|
|
572
|
-
ariaRoleItem() {
|
|
573
|
-
return this.ariaRole === "menuitem" || this.ariaRole === "listitem" ? this.ariaRole : null;
|
|
574
|
-
},
|
|
575
|
-
isClickable() {
|
|
576
|
-
return !this.parent.disabled && !this.separator && !this.disabled && !this.custom;
|
|
577
|
-
},
|
|
578
|
-
isActive() {
|
|
579
|
-
return this.toggle || this.parent.selected === null ? !1 : this.parent.multiple ? this.parent.selected.indexOf(this.value) >= 0 : this.value === this.parent.selected;
|
|
580
|
-
},
|
|
581
|
-
isFocusable() {
|
|
582
|
-
return this.hasLink ? !1 : this.focusable;
|
|
583
|
-
},
|
|
584
|
-
tooltipItem() {
|
|
585
|
-
if (!this.tooltip)
|
|
586
|
-
return null;
|
|
587
|
-
const t = typeof this.tooltip == "string" ? { content: this.tooltip } : this.tooltip;
|
|
588
|
-
return {
|
|
589
|
-
boundariesElement: `.${this.parent.uniquePopoverClass}`,
|
|
590
|
-
classes: "dropdown-tooltip-class",
|
|
591
|
-
offset: 7,
|
|
592
|
-
placement: "left",
|
|
593
|
-
...t
|
|
594
|
-
};
|
|
595
|
-
}
|
|
596
|
-
},
|
|
597
|
-
created() {
|
|
598
|
-
if (!this.parent.$data._isDropdown)
|
|
599
|
-
throw this.$destroy(), new Error("You should wrap cDropdownItem on a cDropdown");
|
|
600
|
-
},
|
|
601
|
-
methods: {
|
|
602
|
-
/**
|
|
603
|
-
* Click listener, select the item.
|
|
604
|
-
*/
|
|
605
|
-
selectItem() {
|
|
606
|
-
this.isClickable && (this.parent.selectItem(this.value, { closeOnClick: this.closeOnClick }), this.$emit("click"), typeof this.value == "boolean" && this.$emit("input", !this.value));
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
};
|
|
610
|
-
var D = function() {
|
|
611
|
-
var e = this, i = e._self._c;
|
|
612
|
-
return e.separator ? i("hr", { staticClass: "dropdown-divider" }) : !e.custom && !e.hasLink ? i(e.to && !e.disabled ? "router-link" : "a", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.tooltipItem, expression: "tooltipItem" }], tag: "component", staticClass: "dropdown-item truncate-text", class: [e.anchorClasses, `is-${e.type}`], attrs: { to: e.to, role: e.ariaRoleItem, tabindex: e.isFocusable ? 0 : null }, on: { click: e.selectItem } }, [e.iconLeft ? i("CIcon", e._b({ staticClass: "icon dropdown-item-icon", attrs: { type: e.iconLeft } }, "CIcon", { size: 18, ...e.iconProps }, !1)) : e._e(), e._t("default"), e.toggle ? i("CSwitch", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.tooltipItem, expression: "tooltipItem" }], staticStyle: { display: "inline-flex", "pointer-events": "none", position: "absolute", right: "0", top: "50%", transform: "translateY(-50%)", "margin-right": "0" }, attrs: { value: e.value, size: "tiny", type: "success" } }) : e._e(), e.iconRight ? i("CIcon", e._b({ staticClass: "icon dropdown-item-icon is-right", attrs: { type: e.iconRight || "chevron-up-down" } }, "CIcon", { size: 18, ...e.iconProps }, !1)) : e._e()], 2) : i("div", { staticClass: "truncate-text", class: [e.itemClasses, `is-${e.type}`], attrs: { role: e.ariaRoleItem, tabindex: e.isFocusable ? 0 : null }, on: { click: e.selectItem } }, [e.iconLeft ? i("CIcon", e._b({ staticClass: "icon dropdown-item-icon", attrs: { type: e.iconLeft } }, "CIcon", { size: 18, ...e.iconProps }, !1)) : e._e(), e._t("default"), e.iconRight ? i("CIcon", e._b({ staticClass: "icon dropdown-item-icon is-right", attrs: { type: e.iconRight } }, "CIcon", { size: 18, ...e.iconProps }, !1)) : e._e()], 2);
|
|
613
|
-
}, N = [], F = /* @__PURE__ */ b(
|
|
614
|
-
R,
|
|
615
|
-
D,
|
|
616
|
-
N,
|
|
617
|
-
!1,
|
|
618
|
-
null,
|
|
619
|
-
null
|
|
620
|
-
);
|
|
621
|
-
const X = F.exports;
|
|
622
|
-
export {
|
|
623
|
-
U as C,
|
|
624
|
-
X as a,
|
|
625
|
-
G as b,
|
|
626
|
-
L as c,
|
|
627
|
-
K as d,
|
|
628
|
-
W as e,
|
|
629
|
-
w as f,
|
|
630
|
-
Y as g,
|
|
631
|
-
_ as h,
|
|
632
|
-
q as i,
|
|
633
|
-
T as r,
|
|
634
|
-
V as s,
|
|
635
|
-
$ as w
|
|
636
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|