@farm-investimentos/front-mfe-components 15.8.1 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farm-investimentos/front-mfe-components",
3
- "version": "15.8.1",
3
+ "version": "15.8.3",
4
4
  "author": "farm investimentos",
5
5
  "private": false,
6
6
  "main": "./dist/front-mfe-components.common.js",
@@ -30,4 +30,11 @@
30
30
  opacity: 1;
31
31
  visibility: visible;
32
32
  }
33
- }
33
+
34
+ &--fixed {
35
+ position: fixed !important;
36
+ top: 50% !important;
37
+ left: 50% !important;
38
+ transform: translate(-50%, -50%) !important;
39
+ }
40
+ }
@@ -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
  /**
@@ -201,6 +202,9 @@ export default defineComponent({
201
202
  this.save();
202
203
  }
203
204
  },
205
+ pickerDate(newValue) {
206
+ this.internalPickerDate = newValue;
207
+ },
204
208
  },
205
209
  methods: {
206
210
  formatDateRange(date: string | string[]) {