@yuneta/gobj-ui 7.32.6 → 7.32.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/README.md +23 -1
- package/dist/gobj-ui.cjs.js +144 -123
- package/dist/gobj-ui.es.js +144 -123
- package/package.json +1 -1
- package/src/c_yui_nav.js +12 -6
- package/src/c_yui_treedb_topics.js +1 -3
- package/src/nav_icon_size.wiring.test.js +111 -0
- package/src/tabulator_css.test.js +88 -32
- package/src/yui_toolbar.js +1 -33
- package/src/yui_toolbar_icon.js +63 -0
package/README.md
CHANGED
|
@@ -1481,7 +1481,9 @@ for a reason worth keeping: in `em` the same `1.5em` drew 24px inside a plain
|
|
|
1481
1481
|
button, 18px inside an `is-small` chip of the legend, and a labelled button
|
|
1482
1482
|
left its icon at the inherited 16px — three sizes in two strips that are read
|
|
1483
1483
|
as one thing. It is the toolbar's size and not the graph's: the JSON viewer,
|
|
1484
|
-
the treedb topics row and the treedb table row take it too
|
|
1484
|
+
the treedb topics row and the treedb table row take it too, and since
|
|
1485
|
+
`7.32.7` the tabs and the menu entries of `C_YUI_NAV` and the topic tabs of
|
|
1486
|
+
`C_YUI_TREEDB_TOPICS`. The app BAR keeps
|
|
1485
1487
|
its own, bigger glyph (`.yui-toolbar-item .icon`, 1.35rem on 44px items) —
|
|
1486
1488
|
that is a different band, not drift. The legend under the toolbar
|
|
1487
1489
|
follows it: topic name at `1rem`, count at `.875rem` (the one deliberate step
|
|
@@ -4516,6 +4518,26 @@ text is in the yunetas `CLAUDE.md` ("JS GUI conventions"); in short:
|
|
|
4516
4518
|
A Bulma `.icon` grows to hold a wide glyph. Up to 7.32.5 every box was a
|
|
4517
4519
|
1em square, and a wide glyph was drawn smaller to fit: in one row of tool
|
|
4518
4520
|
buttons, `yi-code` was 80% of the height of the others.
|
|
4521
|
+
- **The icons of a row of controls have one size**: `YUI_TOOLBAR_ICON_SIZE`
|
|
4522
|
+
(1.25rem). A toolbar, a tab, a menu entry and the paginator of a table on
|
|
4523
|
+
a phone take it (7.32.7+). Build the glyph with `yui_toolbar_icon()` in a
|
|
4524
|
+
plain Bulma `.icon`:
|
|
4525
|
+
|
|
4526
|
+
```js
|
|
4527
|
+
import {yui_toolbar_icon} from "@yuneta/gobj-ui/src/yui_toolbar_icon.js";
|
|
4528
|
+
['span', {class: 'icon'}, [yui_toolbar_icon('yi-table')]]
|
|
4529
|
+
```
|
|
4530
|
+
|
|
4531
|
+
The two names live in `yui_toolbar_icon.js`, a module with no i18n key
|
|
4532
|
+
and no CSS (7.32.8+). `yui_toolbar.js` exports them too. A view that
|
|
4533
|
+
draws no toolbar imports them from `yui_toolbar_icon.js`: an app must
|
|
4534
|
+
define the keys of every module that it imports, and `yui_toolbar.js`
|
|
4535
|
+
carries the keys of the scroll arrows.
|
|
4536
|
+
|
|
4537
|
+
The app bar, the icon bar and the cards are other bands, with their own
|
|
4538
|
+
bigger icons. The close mark of a tab is no icon of the tab and keeps the
|
|
4539
|
+
size of its text. Up to 7.32.6 a tab and a menu entry took the size of
|
|
4540
|
+
their text, 16px. Under a toolbar of 20px their icons looked smaller.
|
|
4519
4541
|
- **Bulma helpers carry `!important`** (`.is-hidden`, `.is-flex`): toggle
|
|
4520
4542
|
`is-hidden`, or use `style.setProperty('display', 'none', 'important')`.
|
|
4521
4543
|
- **Data goes into the DOM as text, never as a string.** `createElement2()`
|