@farm-investimentos/front-mfe-components 15.8.2 → 15.8.3
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 +137 -127
- 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 +137 -127
- 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/ContextMenu/ContextMenu.scss +8 -1
- package/src/components/ContextMenu/ContextMenu.vue +8 -0
- package/src/components/DatePicker/DatePicker.vue +2 -1
package/package.json
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
:class="{
|
|
10
10
|
'farm-contextmenu__popup': true,
|
|
11
11
|
'farm-contextmenu__popup--visible': inputValue,
|
|
12
|
+
'farm-contextmenu__popup--fixed': fixedCentered,
|
|
12
13
|
}"
|
|
13
14
|
:style="styles"
|
|
14
15
|
>
|
|
@@ -66,6 +67,13 @@ export default defineComponent({
|
|
|
66
67
|
type: [Number, String],
|
|
67
68
|
default: null,
|
|
68
69
|
},
|
|
70
|
+
/**
|
|
71
|
+
* Should be in the center of the screen
|
|
72
|
+
*/
|
|
73
|
+
fixedCentered: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
default: false,
|
|
76
|
+
},
|
|
69
77
|
},
|
|
70
78
|
setup(props, { emit }) {
|
|
71
79
|
const parent = ref(null);
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
maxHeight="auto"
|
|
7
7
|
:bottom="position === 'bottom'"
|
|
8
8
|
:top="position === 'top'"
|
|
9
|
+
:fixedCentered="position === 'fixed-centered'"
|
|
9
10
|
popup-width="320"
|
|
10
11
|
>
|
|
11
12
|
<v-date-picker
|
|
@@ -105,7 +106,7 @@ export default defineComponent({
|
|
|
105
106
|
* Min date (ISO format)
|
|
106
107
|
*/
|
|
107
108
|
position: {
|
|
108
|
-
type: String as PropType<'top' | 'bottom' | 'center'>,
|
|
109
|
+
type: String as PropType<'top' | 'bottom' | 'center' | 'fixed-centered'>,
|
|
109
110
|
default: 'bottom',
|
|
110
111
|
},
|
|
111
112
|
/**
|