layerpro 3.0.1 → 3.1.1
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/README.md +151 -24
- package/index.cjs +355 -324
- package/index.css +63 -45
- package/index.js +355 -322
- package/llms.txt +2 -2
- package/markdown/GUIDE.md +367 -315
- package/package.json +1 -1
- package/types/layerpro.d.ts +39 -25
package/llms.txt
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
- [core/dom.ts](core/dom.ts): jQuery-free chainable DOM helper (`LpEl`, `lp`, `lpAll`, `lpCreate`, `lpDoc`, `lpWin`) — the replacement for jQuery.
|
|
12
12
|
- [core/properties.ts](core/properties.ts): The `popup` object — `open`, `close`, `center`, `maximize`, `iconize`, `index`, `zIndex`, `movable`, `resizable`, `cleanupEvents`, `unmount`.
|
|
13
13
|
- [core/genLayer.ts](core/genLayer.ts): DOM builder for a popup, dock/buttons wiring, pointer/click/dblclick handlers.
|
|
14
|
-
- [core/message.ts](core/message.ts): `alert`/`confirm`/`message`/`prompt` implementations; overrides `window.alert`/`confirm`/`prompt
|
|
14
|
+
- [core/message.ts](core/message.ts): `alert`/`confirm`/`message`/`prompt` implementations; overrides `window.alert`/`confirm`/`prompt` (callback-based, NOT synchronous) and provides `layerpro.noGlobals()` to restore natives.
|
|
15
15
|
- [core/mode.ts](core/mode.ts): Close popups on orientation/size mode switch.
|
|
16
16
|
- [core/mobile.ts](core/mobile.ts): Unified pointer/mouse/touch events (`getPointerDown`/`getPointerMove`/`getPointerUp`).
|
|
17
17
|
- [core/window.ts](core/window.ts): Window-level helpers (scroll, size).
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
- **Instant resize** — CSS `transition` disabled on the popup while resizing (no lag).
|
|
43
43
|
- **Maximize is pure CSS** — `position: fixed` + insets; follows viewport with no JS listeners.
|
|
44
44
|
- **Dock = OS taskbar** — click dock icon toggles restore / focus / minimize.
|
|
45
|
-
- **z-index** — set as unitless numbers;
|
|
45
|
+
- **z-index** — set as unitless numbers; the base is read from the `--popup-z-index` CSS variable (default `1000`). Clicking the body or title bar selects (brings to front).
|
|
46
46
|
|
|
47
47
|
## Contributing
|
|
48
48
|
|