@fiscozen/composables 0.1.34 → 0.1.35-beta
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": "@fiscozen/composables",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.35-beta",
|
|
4
4
|
"description": "Design System utility composables",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"vite": "^5.0.10",
|
|
26
26
|
"vitest": "^1.2.0",
|
|
27
27
|
"vue-tsc": "^1.8.25",
|
|
28
|
+
"@fiscozen/eslint-config": "^0.1.0",
|
|
28
29
|
"@fiscozen/prettier-config": "^0.1.0",
|
|
29
|
-
"@fiscozen/tsconfig": "^0.1.0"
|
|
30
|
-
"@fiscozen/eslint-config": "^0.1.0"
|
|
30
|
+
"@fiscozen/tsconfig": "^0.1.0"
|
|
31
31
|
},
|
|
32
32
|
"license": "ISC",
|
|
33
33
|
"scripts": {
|
|
@@ -40,6 +40,7 @@ export const useFloating = (
|
|
|
40
40
|
|
|
41
41
|
const setPosition = () =>
|
|
42
42
|
nextTick(() => {
|
|
43
|
+
console.log("ENTRO")
|
|
43
44
|
actualPosition.value = args.position ? args.position.value : 'auto'
|
|
44
45
|
safeElementDomRef.value = (
|
|
45
46
|
typeof args.element.value.domRef.value === 'string'
|
|
@@ -297,6 +298,9 @@ export const useFloating = (
|
|
|
297
298
|
translateY = 0
|
|
298
299
|
}
|
|
299
300
|
|
|
301
|
+
if(float.position.y < 0) float.position.y = 0
|
|
302
|
+
if(float.position.x < 0) float.position.x = 0
|
|
303
|
+
|
|
300
304
|
safeElementDomRef.value.style.top = `${float.position.y}px`
|
|
301
305
|
safeElementDomRef.value.style.left = `${float.position.x}px`
|
|
302
306
|
safeElementDomRef.value.style.position = 'fixed'
|