@farm-investimentos/front-mfe-components 11.3.0 → 11.3.1
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/front-mfe-components.common.js +136 -134
- package/dist/front-mfe-components.common.js.map +1 -1
- package/dist/front-mfe-components.css +1 -1
- package/dist/front-mfe-components.umd.js +136 -134
- package/dist/front-mfe-components.umd.js.map +1 -1
- package/dist/front-mfe-components.umd.min.js +1 -1
- package/dist/front-mfe-components.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Buttons/MultiImportButton/MultiImportButton.vue +0 -42
- package/src/components/ContextMenu/ContextMenu.vue +5 -2
- package/src/components/IdCaption/IdCaption.stories.js +18 -1
- package/src/components/IdCaption/IdCaption.vue +2 -2
- package/src/helpers/calculateMainZindex.js +1 -1
package/package.json
CHANGED
|
@@ -1,46 +1,4 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<!--
|
|
3
|
-
<v-menu content-class="elevation-1" v-model="togglePopover" :offset-y="true" :rounded="'b t-0'">
|
|
4
|
-
<template v-slot:activator="{ on, attrs }">
|
|
5
|
-
<farm-btn
|
|
6
|
-
v-bind="attrs"
|
|
7
|
-
v-on="on"
|
|
8
|
-
dense
|
|
9
|
-
class="farm-btn--responsive farm-btn--import"
|
|
10
|
-
outlined
|
|
11
|
-
color="secondary"
|
|
12
|
-
title="Importar"
|
|
13
|
-
@onClick="togglePopover = true"
|
|
14
|
-
>
|
|
15
|
-
Importar
|
|
16
|
-
<i
|
|
17
|
-
:class="{
|
|
18
|
-
'ml-2': true,
|
|
19
|
-
'mr-0': true,
|
|
20
|
-
mdi: true,
|
|
21
|
-
'mdi-chevron-up': togglePopover,
|
|
22
|
-
'mdi-chevron-down': !togglePopover,
|
|
23
|
-
}"
|
|
24
|
-
>
|
|
25
|
-
</i>
|
|
26
|
-
</farm-btn>
|
|
27
|
-
</template>
|
|
28
|
-
|
|
29
|
-
<v-list dense class="pa-0">
|
|
30
|
-
<v-list-item
|
|
31
|
-
v-for="option in optionsList"
|
|
32
|
-
:key="option.listenerKey"
|
|
33
|
-
link
|
|
34
|
-
:title="option.title"
|
|
35
|
-
@click="$emit('onClick', option.listenerKey)"
|
|
36
|
-
>
|
|
37
|
-
<v-list-item-content>
|
|
38
|
-
<v-list-item-title>{{ option.title }}</v-list-item-title>
|
|
39
|
-
</v-list-item-content>
|
|
40
|
-
</v-list-item>
|
|
41
|
-
</v-list>
|
|
42
|
-
</v-menu>
|
|
43
|
-
-->
|
|
44
2
|
<farm-contextmenu v-model="value" :bottom="true">
|
|
45
3
|
<template v-slot:activator="{}">
|
|
46
4
|
<farm-btn outlined title="Importar" color="secondary" @click="toggleValue">
|
|
@@ -82,15 +82,18 @@ export default Vue.extend({
|
|
|
82
82
|
|
|
83
83
|
const calculatePosition = () => {
|
|
84
84
|
const parentBoundingClientRect = parent.value.getBoundingClientRect();
|
|
85
|
+
const activatorBoundingClientRect = activator.value.children[0].getBoundingClientRect();
|
|
85
86
|
const popupClientRect = popup.value.getBoundingClientRect();
|
|
86
87
|
|
|
88
|
+
console.log(activatorBoundingClientRect);
|
|
89
|
+
|
|
87
90
|
let offsetTop =
|
|
88
91
|
parentBoundingClientRect.top +
|
|
89
92
|
window.scrollY +
|
|
90
|
-
(!bottom.value ? 0 :
|
|
93
|
+
(!bottom.value ? 0 : activatorBoundingClientRect.height);
|
|
91
94
|
|
|
92
95
|
let offsetLeft = parentBoundingClientRect.left;
|
|
93
|
-
if (popupClientRect.width >
|
|
96
|
+
if (popupClientRect.width > activatorBoundingClientRect.width) {
|
|
94
97
|
offsetLeft =
|
|
95
98
|
offsetLeft + parentBoundingClientRect.width / 2 - popupClientRect.width / 2;
|
|
96
99
|
}
|
|
@@ -4,7 +4,7 @@ import IdCaption from './';
|
|
|
4
4
|
export default {
|
|
5
5
|
title: 'Display/IdCaption',
|
|
6
6
|
component: IdCaption,
|
|
7
|
-
|
|
7
|
+
decorators: [withDesign],
|
|
8
8
|
parameters: {
|
|
9
9
|
docs: {
|
|
10
10
|
description: {
|
|
@@ -132,3 +132,20 @@ export const IconBoxCustomColor = () => ({
|
|
|
132
132
|
</farm-idcaption>
|
|
133
133
|
`,
|
|
134
134
|
});
|
|
135
|
+
|
|
136
|
+
export const CustomTag = () => ({
|
|
137
|
+
template: `
|
|
138
|
+
<farm-idcaption
|
|
139
|
+
icon="account-box-outline"
|
|
140
|
+
copyText="texto a copiar"
|
|
141
|
+
:link="true"
|
|
142
|
+
>
|
|
143
|
+
<template v-slot:title>
|
|
144
|
+
<b>Upper Line Text</b>
|
|
145
|
+
</template>
|
|
146
|
+
<template v-slot:subtitle>
|
|
147
|
+
<b>Lower:</b> Line Text Line Text Line Text
|
|
148
|
+
</template>
|
|
149
|
+
</farm-idcaption>
|
|
150
|
+
`,
|
|
151
|
+
});
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
>
|
|
7
7
|
<farm-caption variation="medium" v-if="hasTitle">
|
|
8
8
|
<span>
|
|
9
|
-
|
|
9
|
+
<slot name="title"></slot>
|
|
10
10
|
<farm-btn icon color="gray" v-if="link" @click="$emit('onLinkClick')">
|
|
11
11
|
<farm-icon size="xs">open-in-new</farm-icon>
|
|
12
12
|
</farm-btn>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
<farm-caption variation="regular" color="gray" v-if="hasSubtitle">
|
|
17
17
|
<span>
|
|
18
|
-
|
|
18
|
+
<slot name="subtitle"></slot>
|
|
19
19
|
<farm-copytoclipboard v-if="copyText" :toCopy="copyText" />
|
|
20
20
|
</span>
|
|
21
21
|
</farm-caption>
|