@vectoriox/iox-ui 5.123.0 → 5.124.0
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.
|
@@ -16069,8 +16069,9 @@ function bodyOf(mix, ctx) {
|
|
|
16069
16069
|
const other = actions ? [actions] : [];
|
|
16070
16070
|
return { lay: flex, c: [cell('start', start ? menuSide : other), brand, links([]), cell('end', start ? other : menuSide)] };
|
|
16071
16071
|
}
|
|
16072
|
-
// The name and the menu: the name at the
|
|
16073
|
-
|
|
16072
|
+
// The name and the menu. At the end: the name at the start, what the bar keeps by the button. At the start (Vonder):
|
|
16073
|
+
// the button and the pinned page at the start, the name in the middle, the actions at the end — two equal side cells.
|
|
16074
|
+
return { lay: flex, c: start ? [cell('start', pinned ? [pinned] : []), brand, links([]), cell('end', actions ? [actions] : [])] : [brand, links([]), cell('end', kept)] };
|
|
16074
16075
|
}
|
|
16075
16076
|
/** The phone ingredient as the phone menu's shape (`full` waits for HI2 and is drawn as the drawer). */
|
|
16076
16077
|
const PHONE_SHAPE = { drawer: NavShape.Drawer, bar: NavShape.Bar, both: NavShape.Both, full: NavShape.Drawer };
|
|
@@ -19974,13 +19975,18 @@ function withStore(globals, locale) {
|
|
|
19974
19975
|
const out = [...globals];
|
|
19975
19976
|
const header = out.find(g => g.id === GlobalSlot.Header);
|
|
19976
19977
|
if (header) {
|
|
19977
|
-
const
|
|
19978
|
+
const top = header.children ?? (header.children = []);
|
|
19978
19979
|
const account = ACCOUNT_RECIPES[AccountRecipe.Entry](recipeFactory(ACCOUNT_ENTRY_ID, ACCOUNT_ENTRY_KEY), locale);
|
|
19979
19980
|
const bag = SHOP_RECIPES[ShopRecipe.CartButton](recipeFactory(SHOP_CART_BUTTON_ID, CART_BUTTON_KEY));
|
|
19981
|
+
// HI1: a bar of side cells (between, a centred name, a name-and-menu) takes the slots in its END cell — the cells
|
|
19982
|
+
// share the free space, so the name stays where its arrangement puts it. Otherwise the root's, as before (R-H4).
|
|
19983
|
+
const cells = top.filter(k => k.role === NavRole.Cell);
|
|
19984
|
+
const host = cells.length ? cells[cells.length - 1] : header;
|
|
19985
|
+
const kids = host.children ?? (host.children = []);
|
|
19980
19986
|
const menu = kids.findIndex(k => k.role === NavRole.MenuButton);
|
|
19981
19987
|
kids.splice(menu >= 0 ? menu : kids.length, 0, account, bag);
|
|
19982
|
-
const brand =
|
|
19983
|
-
if (brand)
|
|
19988
|
+
const brand = top.find(k => k.role === NavRole.Brand);
|
|
19989
|
+
if (brand && !cells.length)
|
|
19984
19990
|
setStyleProps(brand, { flexGrow: '1' });
|
|
19985
19991
|
}
|
|
19986
19992
|
const drawer = SHOP_RECIPES[ShopRecipe.CartDrawer](recipeFactory(SHOP_CART_DRAWER_ID, CART_DRAWER_KEY));
|