@wpic/ui 0.8.6 → 0.8.8
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 +2 -0
- package/dist/components/WPopover.vue.d.ts +2 -0
- package/dist/wpic-ui.cjs +8 -8
- package/dist/wpic-ui.js +1111 -1110
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 0.8.8
|
|
2
|
+
|
|
3
|
+
- 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.
|
|
4
|
+
- Verify automatic panels fit without internal scrolling on desktop and narrow viewports, including reopening and Escape focus restoration.
|
|
5
|
+
|
|
6
|
+
## 0.8.7
|
|
7
|
+
|
|
8
|
+
- Increase WTable header vertical padding from 8px to 12px per side (4px to 6px in compact mode), including selection and expansion columns.
|
|
9
|
+
|
|
1
10
|
## 0.8.6
|
|
2
11
|
|
|
3
12
|
- Size WInput leading text padding from the rendered prefix, including translated and dynamically changed prefixes.
|
package/COMPONENTS.md
CHANGED
|
@@ -360,6 +360,8 @@ 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
|
+
|
|
363
365
|
**Import:** `import { WPopover } from '@wpic/ui'`
|
|
364
366
|
|
|
365
367
|
**Props:**
|
|
@@ -18,6 +18,8 @@ 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;
|
|
21
23
|
zIndex?: string | number;
|
|
22
24
|
/** Extra DOM elements (e.g. Teleport'd submenus) that should not trigger close */
|
|
23
25
|
extraPanels?: (HTMLElement | null)[];
|