vue-intergrall-plugins 1.1.9 → 1.1.10
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.
|
@@ -9525,11 +9525,13 @@ var script$a = {
|
|
|
9525
9525
|
},
|
|
9526
9526
|
data() {
|
|
9527
9527
|
return {
|
|
9528
|
-
additionals: []
|
|
9528
|
+
additionals: [],
|
|
9529
|
+
hasInfos: false
|
|
9529
9530
|
};
|
|
9530
9531
|
},
|
|
9531
9532
|
mounted() {
|
|
9532
9533
|
this.additionals = this.getAdditionalInfo(JSON.parse(JSON.stringify(this.item)));
|
|
9534
|
+
this.verifyHasInfos();
|
|
9533
9535
|
},
|
|
9534
9536
|
methods: {
|
|
9535
9537
|
getInitials(name) {
|
|
@@ -9555,6 +9557,10 @@ var script$a = {
|
|
|
9555
9557
|
data: JSON.parse(JSON.stringify(this.item))
|
|
9556
9558
|
});
|
|
9557
9559
|
},
|
|
9560
|
+
verifyHasInfos() {
|
|
9561
|
+
const keysToInclude = ['addresses', 'urls', 'birthday'];
|
|
9562
|
+
this.hasInfos = Object.keys(this.item).some(key => keysToInclude.includes(key));
|
|
9563
|
+
},
|
|
9558
9564
|
getAdditionalInfo(item) {
|
|
9559
9565
|
const keysToExclude = ['name', 'org', 'phones', 'emails', 'addresses', 'urls', 'birthday'];
|
|
9560
9566
|
return Object.keys(item).filter(key => !keysToExclude.includes(key)).reduce((obj, key) => {
|
|
@@ -9611,7 +9617,7 @@ var __vue_render__$a = function () {
|
|
|
9611
9617
|
"icon": ['fas', 'user-plus']
|
|
9612
9618
|
}
|
|
9613
9619
|
})], 1) : _vm._e()]);
|
|
9614
|
-
}), 0)]), _vm._v(" "), _c('div', {
|
|
9620
|
+
}), 0)]), _vm._v(" "), _vm.item.emails && _vm.item.emails.length ? _c('div', {
|
|
9615
9621
|
staticClass: "contact-section"
|
|
9616
9622
|
}, [_c('h4', [_c('fa-icon', {
|
|
9617
9623
|
attrs: {
|
|
@@ -9636,7 +9642,7 @@ var __vue_render__$a = function () {
|
|
|
9636
9642
|
"icon": ['fas', 'user-plus']
|
|
9637
9643
|
}
|
|
9638
9644
|
})], 1) : _vm._e()]);
|
|
9639
|
-
}), 0)]), _vm._v(" "), _c('div', {
|
|
9645
|
+
}), 0)]) : _vm._e(), _vm._v(" "), _vm.hasInfos ? _c('div', {
|
|
9640
9646
|
staticClass: "contact-section"
|
|
9641
9647
|
}, [_c('h4', [_c('fa-icon', {
|
|
9642
9648
|
attrs: {
|
|
@@ -9661,21 +9667,21 @@ var __vue_render__$a = function () {
|
|
|
9661
9667
|
return _c('li', {
|
|
9662
9668
|
key: key
|
|
9663
9669
|
}, [_vm._v("\n " + _vm._s(key) + ": " + _vm._s(value) + "\n ")]);
|
|
9664
|
-
}) : _vm._e()], 2)])])]);
|
|
9670
|
+
}) : _vm._e()], 2)]) : _vm._e()])]);
|
|
9665
9671
|
};
|
|
9666
9672
|
var __vue_staticRenderFns__$a = [];
|
|
9667
9673
|
|
|
9668
9674
|
/* style */
|
|
9669
9675
|
const __vue_inject_styles__$a = function (inject) {
|
|
9670
9676
|
if (!inject) return;
|
|
9671
|
-
inject("data-v-
|
|
9672
|
-
source: ".contact-card[data-v-
|
|
9677
|
+
inject("data-v-49b6cff7_0", {
|
|
9678
|
+
source: ".contact-card[data-v-49b6cff7]{border:1px solid rgba(0,0,0,.1);background-color:rgba(255,255,255,.9);border-radius:5px;padding:5px;margin-bottom:10px}.contact-header[data-v-49b6cff7]{margin-bottom:16px}.header-content[data-v-49b6cff7]{display:flex;align-items:center;gap:5px}.header-content h3[data-v-49b6cff7]{margin:0}.contact-list[data-v-49b6cff7]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:5px;margin:10px 0}.contact-list li>button[data-v-49b6cff7]{background-color:transparent;border:none;cursor:pointer;font-size:14px;color:var(--konecta-success)}.contact-list li>button[data-v-49b6cff7]:hover{color:var(--konecta-success-hover)}.badge[data-v-49b6cff7]{display:flex;justify-content:center;align-items:center;width:30px;height:30px;border-radius:50%;background-color:var(--message-color);color:var(--text-color);text-align:center;line-height:24px;font-size:14px;font-weight:700}.contact-section[data-v-49b6cff7]{margin-bottom:16px}.contact-section h4[data-v-49b6cff7]{margin:0;font-size:14px;font-weight:700;display:flex;align-items:center;gap:5px}",
|
|
9673
9679
|
map: undefined,
|
|
9674
9680
|
media: undefined
|
|
9675
9681
|
});
|
|
9676
9682
|
};
|
|
9677
9683
|
/* scoped */
|
|
9678
|
-
const __vue_scope_id__$a = "data-v-
|
|
9684
|
+
const __vue_scope_id__$a = "data-v-49b6cff7";
|
|
9679
9685
|
/* module identifier */
|
|
9680
9686
|
const __vue_module_identifier__$a = undefined;
|
|
9681
9687
|
/* functional template */
|