@wpic/ui 0.8.7 → 0.8.9
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/CHANGELOG.md +9 -0
- package/COMPONENTS.md +4 -0
- package/dist/components/WPopover.vue.d.ts +4 -0
- package/dist/wpic-ui.cjs +8 -8
- package/dist/wpic-ui.js +1109 -1107
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 0.8.9
|
|
2
|
+
|
|
3
|
+
- WPopover: add `shiftCrossAxis` so preferred-side panels remain inside narrow viewports. Perpendicular overflow is handled by shifting instead of changing sides.
|
|
4
|
+
|
|
5
|
+
## 0.8.8
|
|
6
|
+
|
|
7
|
+
- Add opt-in automatic placement to WPopover: choose among all four sides, adapt to viewport changes, and shift into view before constraining content height. Existing placement behavior is preserved.
|
|
8
|
+
- Verify automatic panels fit without internal scrolling on desktop and narrow viewports, including reopening and Escape focus restoration.
|
|
9
|
+
|
|
1
10
|
## 0.8.7
|
|
2
11
|
|
|
3
12
|
- Increase WTable header vertical padding from 8px to 12px per side (4px to 6px in compact mode), including selection and expansion columns.
|
package/COMPONENTS.md
CHANGED
|
@@ -360,6 +360,10 @@ disabled?: boolean
|
|
|
360
360
|
|
|
361
361
|
## WPopover
|
|
362
362
|
|
|
363
|
+
Set `autoPlacement` to choose among all four sides with Floating UI. Combine it with `freezePositionOnOpen=false` for panels that must adapt while scrolling or resizing. In this mode, viewport shifting can overlap the anchor when necessary to keep the panel visible; content only scrolls when taller than the viewport. The default placement/flip behavior is unchanged.
|
|
364
|
+
|
|
365
|
+
For a preferred left-side panel, use `placement="left-start"`, `shiftCrossAxis`, and `freezePositionOnOpen=false` (without `autoPlacement`). It flips right when there is insufficient horizontal space and shifts within the viewport, allowing anchor overlap on narrow screens.
|
|
366
|
+
|
|
363
367
|
**Import:** `import { WPopover } from '@wpic/ui'`
|
|
364
368
|
|
|
365
369
|
**Props:**
|
|
@@ -18,6 +18,10 @@ type __VLS_Props = {
|
|
|
18
18
|
/** Keep the first computed placement while the panel remains open */
|
|
19
19
|
freezePositionOnOpen?: boolean;
|
|
20
20
|
flip?: boolean;
|
|
21
|
+
/** Choose the side with most room, allowing overlap when needed to keep content in view. */
|
|
22
|
+
autoPlacement?: boolean;
|
|
23
|
+
/** Shift on both axes to keep a preferred side visible, allowing anchor overlap on small screens. */
|
|
24
|
+
shiftCrossAxis?: boolean;
|
|
21
25
|
zIndex?: string | number;
|
|
22
26
|
/** Extra DOM elements (e.g. Teleport'd submenus) that should not trigger close */
|
|
23
27
|
extraPanels?: (HTMLElement | null)[];
|