@farm-investimentos/front-mfe-components 15.14.16 → 15.14.17

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.14.16",
3
+ "version": "15.14.17",
4
4
  "author": "farm investimentos",
5
5
  "private": false,
6
6
  "main": "./dist/front-mfe-components.common.js",
@@ -116,7 +116,7 @@ export default defineComponent({
116
116
  };
117
117
 
118
118
  const closeAllHandler = (event: CustomEvent) => {
119
- if (event.detail?.exceptId !== instanceContextId && inputValue.value) {
119
+ if (event.detail && event.detail.exceptId !== instanceContextId && inputValue.value) {
120
120
  inputValue.value = false;
121
121
  emit('input', false);
122
122
  }
@@ -4,7 +4,9 @@
4
4
  v-model="menuField"
5
5
  ref="contextmenu"
6
6
  maxHeight="auto"
7
- bottom
7
+ :bottom="position === 'bottom'"
8
+ :top="position === 'top'"
9
+ :fixedCentered="position === 'fixed-centered'"
8
10
  popup-width="320"
9
11
  >
10
12
  <v-date-picker
@@ -137,6 +139,14 @@ export default defineComponent({
137
139
  type: String,
138
140
  default: 'A data selecionada deve ser entre {min} e {max}',
139
141
  },
142
+ /**
143
+ * Posição do datepicker (top, bottom, fixed-centered)
144
+ */
145
+ position: {
146
+ type: String,
147
+ default: 'bottom',
148
+ validator: value => ['top', 'bottom', 'fixed-centered'].includes(value),
149
+ },
140
150
  },
141
151
  data() {
142
152
  const s = this.formatDateRange(this.value);