@jsenv/navi 0.29.321 → 0.29.323
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/dist/dev/jsenv_navi.js +238 -102
- package/dist/dev/jsenv_navi.js.map +9 -9
- package/dist/jsenv_navi.js +234 -102
- package/dist/jsenv_navi.js.map +9 -9
- package/docs/popup_open.md +13 -0
- package/docs/scroll.md +6 -4
- package/package.json +1 -1
package/docs/popup_open.md
CHANGED
|
@@ -862,6 +862,19 @@ changes. A popup is open on exactly one value: what varies while it is open (a
|
|
|
862
862
|
tab inside it) is a param of its own, see
|
|
863
863
|
[navigation.md](./navigation.md#places-inside-the-layer).
|
|
864
864
|
|
|
865
|
+
The other way round — ONE sheet showing whichever card the address names — is
|
|
866
|
+
the same signal with no `value`: a popup without one reads anything the signal
|
|
867
|
+
holds as open, except `false`, `null` and `undefined`. The panel's content reads
|
|
868
|
+
the id from the signal, a card's press writes it, and the popup never writes
|
|
869
|
+
over it: opening writes `true` only into a signal that reads closed, closing
|
|
870
|
+
writes `undefined` (or `false`, where the signal held `true`).
|
|
871
|
+
|
|
872
|
+
```jsx
|
|
873
|
+
<SidePanel signal={errorOpenSignal} side="right">
|
|
874
|
+
<ErrorPanel /> {/* reads errorOpenSignal.value to know which card */}
|
|
875
|
+
</SidePanel>
|
|
876
|
+
```
|
|
877
|
+
|
|
865
878
|
### `navState` — the history entry holds it
|
|
866
879
|
|
|
867
880
|
```jsx
|
package/docs/scroll.md
CHANGED
|
@@ -346,10 +346,12 @@ sheet, a handful of tabs. A collection whose size the caller does not decide
|
|
|
346
346
|
The run draws only the rows inside the **render window** — `renderBudget` of
|
|
347
347
|
them, 100 by default — and holds the room of the others with fillers, so the
|
|
348
348
|
scrollbar says how long the collection is and the DOM says how many rows fit a
|
|
349
|
-
screen and some. The window slides as the user scrolls
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
349
|
+
screen and some. The window slides as the user scrolls: it keeps three
|
|
350
|
+
quarters of its spare rows ahead of the direction the user goes, and moves
|
|
351
|
+
once those fall under half a screen — a row crossed is not a window rebuilt,
|
|
352
|
+
and a row reached is never a blank one. So the budget has to exceed what the
|
|
353
|
+
scroller shows at once, with room for that lookahead: the list warns below
|
|
354
|
+
30, and when a budget leaves fewer than two rows beyond the screen.
|
|
353
355
|
|
|
354
356
|
### The first paint of a list that opens in a click
|
|
355
357
|
|