@vectoriox/iox-ui 5.128.1 → 5.129.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.
- package/composite-core/index.d.ts +130 -2
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +328 -141
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-forms-core.mjs +21 -1
- package/fesm2022/vectoriox-iox-ui-forms-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +557 -59
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +20 -0
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/forms-core/index.d.ts +16 -1
- package/generation-core/index.d.ts +173 -13
- package/package.json +1 -1
- package/src/composite-core/consent.ts +235 -0
- package/src/composite-core/public-api.ts +1 -0
- package/src/forms-core/form-presets.ts +28 -0
- package/src/generation-core/audit-site.ts +167 -17
- package/src/generation-core/compose-site.ts +190 -8
- package/src/generation-core/legal.ts +213 -0
- package/src/generation-core/public-api.ts +1 -0
- package/src/generation-core/site-spec.generated.ts +41 -8
- package/src/generation-core/site-tree.ts +5 -1
|
@@ -2,6 +2,7 @@ import { readOwnedTrait, writeOwnedTrait, ROW_INDEX_ATTRIBUTE, elementStyleById,
|
|
|
2
2
|
export { ROW_INDEX_ATTRIBUTE } from '@vectoriox/iox-ui/design-core';
|
|
3
3
|
import { shopWord, ShopWord, emptyCartView, QuantityStep, stepQuantity, ShopSlot, productOptions, productVariants, defaultChoice, findVariant, quantityBounds, chooseValue, clampQuantity, variantSlotOf, optionValueStates, canStep, cartIssueWords, formatMoney, CartTransportError, CartTransportErrorCode, CART_TRANSPORT_ERROR_LABELS } from '@vectoriox/iox-ui/commerce-core';
|
|
4
4
|
import { SignInProvider, signInWord, signInLanguage, SignInLanguage, SignInWord, EMAIL_CODE_TTL_MINUTES, SIGN_IN_PROVIDERS, signInProviderName, ACCOUNT_PATH, CUSTOMER_SLOT, signInProviderMarkUri, signInRefusal, SignInSlot, siteAuthErrorCode, normalizeSignInEmail, SiteSignInRefusalCode, normalizeEmailCode, isEmailCodeShape, customerSlotOf, customerDisplayName } from '@vectoriox/iox-ui/identity-core';
|
|
5
|
+
import { ConsentCategory } from '@vectoriox/iox-ui/consent-core';
|
|
5
6
|
|
|
6
7
|
/** What a recipe asks its consumer to create: a NEW node of `type`, the way that consumer creates one
|
|
7
8
|
* (the builder's `createConfig`, generation-core's `createSerializedNode`), with these props and this
|
|
@@ -420,7 +421,7 @@ var Type$8;
|
|
|
420
421
|
Type["Icon"] = "Icon";
|
|
421
422
|
Type["Repeater"] = "Repeater";
|
|
422
423
|
})(Type$8 || (Type$8 = {}));
|
|
423
|
-
var Style$
|
|
424
|
+
var Style$9;
|
|
424
425
|
(function (Style) {
|
|
425
426
|
Style["Root"] = "box";
|
|
426
427
|
Style["Item"] = "accordion-item";
|
|
@@ -429,7 +430,7 @@ var Style$8;
|
|
|
429
430
|
Style["Icon"] = "icon";
|
|
430
431
|
Style["Panel"] = "accordion-panel";
|
|
431
432
|
Style["Answer"] = "body";
|
|
432
|
-
})(Style$
|
|
433
|
+
})(Style$9 || (Style$9 = {}));
|
|
433
434
|
const ZERO_BOX$4 = '0px 0px 0px 0px';
|
|
434
435
|
const HEADING_LEVELS = ['h2', 'h3', 'h4', 'h5', 'h6'];
|
|
435
436
|
const DEFAULT_LEVEL = 'h3';
|
|
@@ -456,7 +457,7 @@ function make$4(create, key, type, role, style, props = {}, label) {
|
|
|
456
457
|
* ITS item (`stateTriggers`). ONE builder for both kinds. */
|
|
457
458
|
function buildCompositeIcon(create, key, icon, itemId, role = AccordionRole.Icon) {
|
|
458
459
|
const glyph = ACCORDION_ICON_GLYPH[icon];
|
|
459
|
-
const node = makeCompositePart(create, { key, type: Type$8.Icon, props: { iconClass: glyph.iconClass }, elementStyle: Style$
|
|
460
|
+
const node = makeCompositePart(create, { key, type: Type$8.Icon, props: { iconClass: glyph.iconClass }, elementStyle: Style$9.Icon }, role, 'Icon', PART_BASE$3[AccordionRole.Icon]);
|
|
460
461
|
node.stateStyles = { ...(node.stateStyles ?? {}), [ITEM_OPEN_STATE]: { rotate: glyph.turn } };
|
|
461
462
|
if (itemId)
|
|
462
463
|
node.stateTriggers = { ...(node.stateTriggers ?? {}), [ITEM_OPEN_STATE]: itemId };
|
|
@@ -464,14 +465,14 @@ function buildCompositeIcon(create, key, icon, itemId, role = AccordionRole.Icon
|
|
|
464
465
|
}
|
|
465
466
|
/** One item: header (question + icon) and panel (answer). `key` makes every part's recipe key unique. */
|
|
466
467
|
function buildAccordionItem(create, words, itemKey, icon = AccordionIcon.Chevron) {
|
|
467
|
-
const item = make$4(create, `${itemKey}`, Type$8.Container, AccordionRole.Item, Style$
|
|
468
|
+
const item = make$4(create, `${itemKey}`, Type$8.Container, AccordionRole.Item, Style$9.Item, {}, 'Item');
|
|
468
469
|
item.itemKey = itemKey;
|
|
469
|
-
const trigger = make$4(create, `${itemKey}-trigger`, Type$8.LinkedContainer, AccordionRole.Trigger, Style$
|
|
470
|
-
const question = make$4(create, `${itemKey}-question`, Type$8.Heading, null, Style$
|
|
470
|
+
const trigger = make$4(create, `${itemKey}-trigger`, Type$8.LinkedContainer, AccordionRole.Trigger, Style$9.Trigger, {}, 'Header');
|
|
471
|
+
const question = make$4(create, `${itemKey}-question`, Type$8.Heading, null, Style$9.Question, { content: words.question, level: DEFAULT_LEVEL }, 'Heading');
|
|
471
472
|
writeStyles(question, QUESTION_BASE);
|
|
472
473
|
trigger.children = [question, ...(icon === AccordionIcon.None ? [] : [buildCompositeIcon(create, `${itemKey}-icon`, icon, item.id)])];
|
|
473
|
-
const panel = make$4(create, `${itemKey}-panel`, Type$8.Container, AccordionRole.Panel, Style$
|
|
474
|
-
const answer = make$4(create, `${itemKey}-answer`, Type$8.Text, null, Style$
|
|
474
|
+
const panel = make$4(create, `${itemKey}-panel`, Type$8.Container, AccordionRole.Panel, Style$9.Panel, {}, 'Panel');
|
|
475
|
+
const answer = make$4(create, `${itemKey}-answer`, Type$8.Text, null, Style$9.Answer, { content: words.answer, tag: 'p' }, 'Text');
|
|
475
476
|
writeStyles(answer, ANSWER_BASE);
|
|
476
477
|
panel.children = [answer];
|
|
477
478
|
item.children = [trigger, panel];
|
|
@@ -479,7 +480,7 @@ function buildAccordionItem(create, words, itemKey, icon = AccordionIcon.Chevron
|
|
|
479
480
|
}
|
|
480
481
|
/** A fresh Accordion: three items, one open at a time, the first open by default (board 4). */
|
|
481
482
|
function buildAccordionRecipe(create, options = {}) {
|
|
482
|
-
const root = make$4(create, 'accordion', Type$8.Container, AccordionRole.Accordion, Style$
|
|
483
|
+
const root = make$4(create, 'accordion', Type$8.Container, AccordionRole.Accordion, Style$9.Root, {}, 'Accordion');
|
|
483
484
|
writeProp(root, CompositeBehaviourTrait.Multiple, options.multiple ?? false);
|
|
484
485
|
writeProp(root, CompositeBehaviourTrait.DefaultOn, options.defaultOn ?? AccordionDefaultOn.First);
|
|
485
486
|
const words = options.items ?? ACCORDION_WORDS;
|
|
@@ -1355,14 +1356,14 @@ var Type$7;
|
|
|
1355
1356
|
Type["LinkedContainer"] = "LinkedContainer";
|
|
1356
1357
|
Type["Text"] = "Text";
|
|
1357
1358
|
})(Type$7 || (Type$7 = {}));
|
|
1358
|
-
var Style$
|
|
1359
|
+
var Style$8;
|
|
1359
1360
|
(function (Style) {
|
|
1360
1361
|
Style["Root"] = "box";
|
|
1361
1362
|
Style["Trigger"] = "accordion-trigger";
|
|
1362
1363
|
Style["Word"] = "body";
|
|
1363
1364
|
Style["Panel"] = "accordion-panel";
|
|
1364
1365
|
Style["Body"] = "body";
|
|
1365
|
-
})(Style$
|
|
1366
|
+
})(Style$8 || (Style$8 = {}));
|
|
1366
1367
|
const ZERO_BOX$3 = '0px 0px 0px 0px';
|
|
1367
1368
|
const HIDDEN = 'none';
|
|
1368
1369
|
const INHERIT = 'inherit';
|
|
@@ -1392,7 +1393,7 @@ function make$3(create, key, type, role, style, props, label) {
|
|
|
1392
1393
|
}
|
|
1393
1394
|
/** One of the trigger's two words: shown while the disclosure is closed (`more`) or open (`less`). */
|
|
1394
1395
|
function buildWord(create, role, words, rootId) {
|
|
1395
|
-
const node = make$3(create, role === DisclosureRole.More ? 'more' : 'less', Type$7.Text, role, Style$
|
|
1396
|
+
const node = make$3(create, role === DisclosureRole.More ? 'more' : 'less', Type$7.Text, role, Style$8.Word, { content: words, tag: 'span' }, 'Text');
|
|
1396
1397
|
node.stateStyles = { ...(node.stateStyles ?? {}), [ITEM_OPEN_STATE]: { display: role === DisclosureRole.More ? HIDDEN : SHOWN } };
|
|
1397
1398
|
if (rootId)
|
|
1398
1399
|
node.stateTriggers = { ...(node.stateTriggers ?? {}), [ITEM_OPEN_STATE]: rootId };
|
|
@@ -1401,18 +1402,18 @@ function buildWord(create, role, words, rootId) {
|
|
|
1401
1402
|
/** A fresh Disclosure: "Read more" opens the text below and reads "Read less" while it is open; closed by default. */
|
|
1402
1403
|
function buildDisclosureRecipe(create, options = {}) {
|
|
1403
1404
|
const words = { ...DISCLOSURE_WORDS, ...(options.words ?? {}) };
|
|
1404
|
-
const root = make$3(create, 'disclosure', Type$7.Container, DisclosureRole.Disclosure, Style$
|
|
1405
|
+
const root = make$3(create, 'disclosure', Type$7.Container, DisclosureRole.Disclosure, Style$8.Root, {}, 'Disclosure');
|
|
1405
1406
|
root.itemKey = DISCLOSURE_ITEM_KEY;
|
|
1406
1407
|
writeProp(root, CompositeBehaviourTrait.DefaultOn, options.open ? AccordionDefaultOn.First : AccordionDefaultOn.None);
|
|
1407
1408
|
const icon = options.icon ?? AccordionIcon.Chevron;
|
|
1408
|
-
const trigger = make$3(create, 'trigger', Type$7.LinkedContainer, DisclosureRole.Trigger, Style$
|
|
1409
|
+
const trigger = make$3(create, 'trigger', Type$7.LinkedContainer, DisclosureRole.Trigger, Style$8.Trigger, {}, 'Toggle');
|
|
1409
1410
|
trigger.children = [
|
|
1410
1411
|
buildWord(create, DisclosureRole.More, words.more, root.id),
|
|
1411
1412
|
buildWord(create, DisclosureRole.Less, words.less, root.id),
|
|
1412
1413
|
...(icon === AccordionIcon.None ? [] : [buildCompositeIcon(create, 'icon', icon, root.id, DisclosureRole.Icon)]),
|
|
1413
1414
|
];
|
|
1414
|
-
const panel = make$3(create, 'panel', Type$7.Container, DisclosureRole.Panel, Style$
|
|
1415
|
-
const body = make$3(create, 'body', Type$7.Text, null, Style$
|
|
1415
|
+
const panel = make$3(create, 'panel', Type$7.Container, DisclosureRole.Panel, Style$8.Panel, {}, 'Panel');
|
|
1416
|
+
const body = make$3(create, 'body', Type$7.Text, null, Style$8.Body, { content: words.body, tag: 'p' }, 'Text');
|
|
1416
1417
|
writeStyles(body, BODY_BASE$1);
|
|
1417
1418
|
panel.children = [body];
|
|
1418
1419
|
root.children = [trigger, panel];
|
|
@@ -1607,7 +1608,7 @@ var Type$6;
|
|
|
1607
1608
|
Type["Icon"] = "Icon";
|
|
1608
1609
|
Type["ButtonBlock"] = "ButtonBlock";
|
|
1609
1610
|
})(Type$6 || (Type$6 = {}));
|
|
1610
|
-
var Style$
|
|
1611
|
+
var Style$7;
|
|
1611
1612
|
(function (Style) {
|
|
1612
1613
|
Style["Card"] = "card";
|
|
1613
1614
|
Style["Box"] = "box";
|
|
@@ -1623,7 +1624,7 @@ var Style$6;
|
|
|
1623
1624
|
Style["Logo"] = "card-logo";
|
|
1624
1625
|
Style["Quote"] = "lead";
|
|
1625
1626
|
Style["Person"] = "small";
|
|
1626
|
-
})(Style$
|
|
1627
|
+
})(Style$7 || (Style$7 = {}));
|
|
1627
1628
|
var Scheme;
|
|
1628
1629
|
(function (Scheme) {
|
|
1629
1630
|
Scheme["Default"] = "default";
|
|
@@ -1635,9 +1636,9 @@ const SAVE_ICON = 'ph ph-bookmark-simple';
|
|
|
1635
1636
|
const CARD_ICON = 'ph ph-sparkle';
|
|
1636
1637
|
/** A value an element style writes — read from the contract, never retyped. */
|
|
1637
1638
|
const styleValue = (style, trait) => String(elementStyleById(style)?.base[trait] ?? '');
|
|
1638
|
-
const CARD_PAD = styleValue(Style$
|
|
1639
|
-
const IMAGE_RADIUS = styleValue(Style$
|
|
1640
|
-
const TITLE_SIZE = styleValue(Style$
|
|
1639
|
+
const CARD_PAD = styleValue(Style$7.Card, 'padding');
|
|
1640
|
+
const IMAGE_RADIUS = styleValue(Style$7.Media, 'borderRadius');
|
|
1641
|
+
const TITLE_SIZE = styleValue(Style$7.Title, 'fontSize');
|
|
1641
1642
|
const LEAD_SIZE = 'var(--iox-size-lead)';
|
|
1642
1643
|
const ZERO_BOX$2 = '0px 0px 0px 0px';
|
|
1643
1644
|
/** What every card part holds in every layout — the recipe's box. */
|
|
@@ -1670,7 +1671,7 @@ const LAYOUTS = {
|
|
|
1670
1671
|
card: { flexDirection: 'column', alignItems: 'stretch', justifyContent: 'flex-start', minHeight: 'auto', padding: CARD_PAD },
|
|
1671
1672
|
media: { ...IN_FLOW, flexBasis: 'auto' },
|
|
1672
1673
|
image: { aspectRatio: '4 / 3', height: 'auto', minHeight: 'auto', borderRadius: IMAGE_RADIUS },
|
|
1673
|
-
content: GROWING_CONTENT, contentStyle: Style$
|
|
1674
|
+
content: GROWING_CONTENT, contentStyle: Style$7.Box, contentScheme: Scheme.Default,
|
|
1674
1675
|
title: { fontSize: TITLE_SIZE },
|
|
1675
1676
|
badgeOnMedia: true,
|
|
1676
1677
|
},
|
|
@@ -1678,7 +1679,7 @@ const LAYOUTS = {
|
|
|
1678
1679
|
card: { flexDirection: 'row', alignItems: 'stretch', justifyContent: 'flex-start', minHeight: 'auto', padding: CARD_PAD },
|
|
1679
1680
|
media: { ...IN_FLOW, flexBasis: '42%' },
|
|
1680
1681
|
image: { aspectRatio: 'auto', height: '100%', minHeight: '180px', borderRadius: IMAGE_RADIUS },
|
|
1681
|
-
content: GROWING_CONTENT, contentStyle: Style$
|
|
1682
|
+
content: GROWING_CONTENT, contentStyle: Style$7.Box, contentScheme: Scheme.Default,
|
|
1682
1683
|
title: { fontSize: TITLE_SIZE },
|
|
1683
1684
|
badgeOnMedia: true,
|
|
1684
1685
|
stack: {
|
|
@@ -1692,7 +1693,7 @@ const LAYOUTS = {
|
|
|
1692
1693
|
media: { position: 'absolute', top: '0px', right: '0px', bottom: '0px', left: '0px', flexBasis: 'auto' },
|
|
1693
1694
|
image: { aspectRatio: 'auto', height: '100%', minHeight: 'auto', borderRadius: '0px' },
|
|
1694
1695
|
content: { position: 'relative', flexGrow: '0', flexShrink: '0', flexBasis: 'auto', padding: `72px ${CARD_PAD} ${CARD_PAD} ${CARD_PAD}` },
|
|
1695
|
-
contentStyle: Style$
|
|
1696
|
+
contentStyle: Style$7.Scrim, contentScheme: Scheme.Inverse,
|
|
1696
1697
|
title: { fontSize: TITLE_SIZE },
|
|
1697
1698
|
badgeOnMedia: false,
|
|
1698
1699
|
},
|
|
@@ -1700,7 +1701,7 @@ const LAYOUTS = {
|
|
|
1700
1701
|
card: { flexDirection: 'row', alignItems: 'center', justifyContent: 'flex-start', minHeight: 'auto', padding: CARD_PAD },
|
|
1701
1702
|
media: { ...IN_FLOW, flexBasis: '72px' },
|
|
1702
1703
|
image: { aspectRatio: '1 / 1', height: 'auto', minHeight: 'auto', borderRadius: IMAGE_RADIUS },
|
|
1703
|
-
content: GROWING_CONTENT, contentStyle: Style$
|
|
1704
|
+
content: GROWING_CONTENT, contentStyle: Style$7.Box, contentScheme: Scheme.Default,
|
|
1704
1705
|
title: { fontSize: LEAD_SIZE },
|
|
1705
1706
|
badgeOnMedia: false,
|
|
1706
1707
|
partsOff: [CardPart.Text, CardPart.Actions],
|
|
@@ -1721,15 +1722,15 @@ function make$2(create, key, type, role, elementStyle, props = {}, label) {
|
|
|
1721
1722
|
return node;
|
|
1722
1723
|
}
|
|
1723
1724
|
function buttonLabel(create, key, words) {
|
|
1724
|
-
const label = make$2(create, key, Type$6.Text, null, Style$
|
|
1725
|
+
const label = make$2(create, key, Type$6.Text, null, Style$7.Label, { content: words, tag: 'span' });
|
|
1725
1726
|
writeStyles(label, LABEL_BASE$2);
|
|
1726
1727
|
return label;
|
|
1727
1728
|
}
|
|
1728
1729
|
/** Each optional part (and the locked title) as the recipe builds it. */
|
|
1729
1730
|
const PART_BUILDERS = {
|
|
1730
1731
|
[CardPart.Media]: (create) => {
|
|
1731
|
-
const media = make$2(create, 'media', Type$6.Container, CardRole.Media, Style$
|
|
1732
|
-
const image = make$2(create, 'image', Type$6.Image, null, Style$
|
|
1732
|
+
const media = make$2(create, 'media', Type$6.Container, CardRole.Media, Style$7.Box, {}, 'Media');
|
|
1733
|
+
const image = make$2(create, 'image', Type$6.Image, null, Style$7.Media, { src: '', alt: '' });
|
|
1733
1734
|
writeStyles(image, IMAGE_BASE$2);
|
|
1734
1735
|
media.children = [image];
|
|
1735
1736
|
return media;
|
|
@@ -1740,19 +1741,19 @@ const PART_BUILDERS = {
|
|
|
1740
1741
|
badge.label = 'Badge';
|
|
1741
1742
|
return badge;
|
|
1742
1743
|
},
|
|
1743
|
-
[CardPart.Eyebrow]: (create, words) => make$2(create, 'eyebrow', Type$6.Text, CardRole.Eyebrow, Style$
|
|
1744
|
-
[CardPart.Text]: (create, words) => make$2(create, 'text', Type$6.Text, CardRole.Text, Style$
|
|
1745
|
-
[CardPart.Logo]: (create) => make$2(create, 'logo', Type$6.Image, CardRole.Logo, Style$
|
|
1746
|
-
[CardPart.Icon]: (create) => make$2(create, 'icon', Type$6.Icon, CardRole.Icon, Style$
|
|
1744
|
+
[CardPart.Eyebrow]: (create, words) => make$2(create, 'eyebrow', Type$6.Text, CardRole.Eyebrow, Style$7.Eyebrow, { content: words.eyebrow, tag: 'p' }, 'Eyebrow'),
|
|
1745
|
+
[CardPart.Text]: (create, words) => make$2(create, 'text', Type$6.Text, CardRole.Text, Style$7.Body, { content: words.text, tag: 'p' }, 'Text'),
|
|
1746
|
+
[CardPart.Logo]: (create) => make$2(create, 'logo', Type$6.Image, CardRole.Logo, Style$7.Logo, { src: '', alt: '' }, 'Logo'),
|
|
1747
|
+
[CardPart.Icon]: (create) => make$2(create, 'icon', Type$6.Icon, CardRole.Icon, Style$7.Icon, { iconClass: CARD_ICON }, 'Icon'),
|
|
1747
1748
|
// The marks are the page language's own (`quotes`, iox-design.css), never typed into the words.
|
|
1748
|
-
[CardPart.Quote]: (create, words) => make$2(create, 'quote', Type$6.Text, CardRole.Quote, Style$
|
|
1749
|
-
[CardPart.Person]: (create, words) => make$2(create, 'person', Type$6.Text, CardRole.Person, Style$
|
|
1749
|
+
[CardPart.Quote]: (create, words) => make$2(create, 'quote', Type$6.Text, CardRole.Quote, Style$7.Quote, { content: words.quote, tag: 'p' }, 'Quote'),
|
|
1750
|
+
[CardPart.Person]: (create, words) => make$2(create, 'person', Type$6.Text, CardRole.Person, Style$7.Person, { content: words.person, tag: 'p' }, 'Person'),
|
|
1750
1751
|
[CardPart.Actions]: (create, words) => {
|
|
1751
|
-
const actions = make$2(create, 'actions', Type$6.Container, CardRole.Actions, Style$
|
|
1752
|
-
const primary = make$2(create, 'primary', Type$6.ButtonBlock, null, Style$
|
|
1752
|
+
const actions = make$2(create, 'actions', Type$6.Container, CardRole.Actions, Style$7.Box, {}, 'Buttons');
|
|
1753
|
+
const primary = make$2(create, 'primary', Type$6.ButtonBlock, null, Style$7.Primary);
|
|
1753
1754
|
primary.children = [buttonLabel(create, 'primary-label', words.primary)];
|
|
1754
|
-
const ghost = make$2(create, 'secondary', Type$6.ButtonBlock, null, Style$
|
|
1755
|
-
const icon = make$2(create, 'secondary-icon', Type$6.Icon, null, Style$
|
|
1755
|
+
const ghost = make$2(create, 'secondary', Type$6.ButtonBlock, null, Style$7.Ghost);
|
|
1756
|
+
const icon = make$2(create, 'secondary-icon', Type$6.Icon, null, Style$7.Icon, { iconClass: SAVE_ICON });
|
|
1756
1757
|
writeStyles(icon, INLINE_ICON);
|
|
1757
1758
|
ghost.children = [icon, buttonLabel(create, 'secondary-label', words.secondary)];
|
|
1758
1759
|
actions.children = [primary, ghost];
|
|
@@ -1760,15 +1761,15 @@ const PART_BUILDERS = {
|
|
|
1760
1761
|
},
|
|
1761
1762
|
};
|
|
1762
1763
|
function buildTitle(create, words) {
|
|
1763
|
-
return make$2(create, 'title', Type$6.Heading, CardRole.Title, Style$
|
|
1764
|
+
return make$2(create, 'title', Type$6.Heading, CardRole.Title, Style$7.Title, { content: words.title, level: 'h3', [LINK_TYPE]: LinkType.None }, 'Title');
|
|
1764
1765
|
}
|
|
1765
1766
|
/** A fresh Card v2: every part a node with its role and element style, laid out by `options.layout`. */
|
|
1766
1767
|
function buildCardRecipe(create, options = {}) {
|
|
1767
1768
|
const words = { ...CARD_WORDS, ...(options.words ?? {}) };
|
|
1768
1769
|
const tone = options.badgeTone ?? BadgeTone.Accent;
|
|
1769
1770
|
const on = (part) => options.parts?.[part] ?? !CARD_PARTS_OFF_AT_START.has(part);
|
|
1770
|
-
const card = make$2(create, 'card', Type$6.Container, CardRole.Card, Style$
|
|
1771
|
-
const content = make$2(create, 'content', Type$6.Container, CardRole.Content, Style$
|
|
1771
|
+
const card = make$2(create, 'card', Type$6.Container, CardRole.Card, Style$7.Card, {}, 'Card');
|
|
1772
|
+
const content = make$2(create, 'content', Type$6.Container, CardRole.Content, Style$7.Box, {}, 'Content');
|
|
1772
1773
|
const parts = (list) => list.filter(on).map(part => PART_BUILDERS[part](create, words, tone));
|
|
1773
1774
|
content.children = [
|
|
1774
1775
|
...parts([CardPart.Logo, CardPart.Icon, CardPart.Eyebrow]),
|
|
@@ -2375,13 +2376,13 @@ var Type$4;
|
|
|
2375
2376
|
Type["Container"] = "Container";
|
|
2376
2377
|
Type["Text"] = "Text";
|
|
2377
2378
|
})(Type$4 || (Type$4 = {}));
|
|
2378
|
-
var Style$
|
|
2379
|
+
var Style$6;
|
|
2379
2380
|
(function (Style) {
|
|
2380
2381
|
Style["Control"] = "button-secondary";
|
|
2381
2382
|
Style["Icon"] = "icon";
|
|
2382
2383
|
/** The caption and the count read as small print. */
|
|
2383
2384
|
Style["Words"] = "small";
|
|
2384
|
-
})(Style$
|
|
2385
|
+
})(Style$6 || (Style$6 = {}));
|
|
2385
2386
|
/** Each part's glyph (Phosphor) and its default accessible name. */
|
|
2386
2387
|
const SLIDER_PART_GLYPH = {
|
|
2387
2388
|
[SliderRole.Pause]: 'ph ph-pause',
|
|
@@ -2452,7 +2453,7 @@ function buildSliderPart(create, role, legacy) {
|
|
|
2452
2453
|
if (role === SliderRole.Caption || role === SliderRole.Count) {
|
|
2453
2454
|
// Their words are the runtime's (the slide in view), drawn as the part's generated content: the node's own
|
|
2454
2455
|
// content stays empty, so no renderer ever fights the runtime over the element's text.
|
|
2455
|
-
return makeCompositePart(create, { key: role.split('.')[1], type: Type$4.Text, props: { content: '', tag: 'p' }, elementStyle: Style$
|
|
2456
|
+
return makeCompositePart(create, { key: role.split('.')[1], type: Type$4.Text, props: { content: '', tag: 'p' }, elementStyle: Style$6.Words }, role, PART_LABEL[role], role === SliderRole.Caption ? CAPTION_BASE$1 : COUNT_BASE);
|
|
2456
2457
|
}
|
|
2457
2458
|
if (role === SliderRole.Pagination) {
|
|
2458
2459
|
const dots = makeCompositePart(create, { key: 'pagination', type: Type$4.Container, props: {}, elementStyle: NO_ELEMENT_STYLE }, role, PART_LABEL[role], legacy?.paginationColor ? { ...PAGINATION_BASE, color: legacy.paginationColor } : PAGINATION_BASE);
|
|
@@ -2471,9 +2472,9 @@ function buildSliderPart(create, role, legacy) {
|
|
|
2471
2472
|
const props = { tag: 'button', type: 'button' };
|
|
2472
2473
|
if (role !== SliderRole.Pause)
|
|
2473
2474
|
props[SLIDER_NAME_TRAIT] = role === SliderRole.Prev ? SLIDER_WORDS.en.prev : SLIDER_WORDS.en.next;
|
|
2474
|
-
const button = makeCompositePart(create, { key, type: Type$4.ButtonBlock, props, elementStyle: legacy ? NO_ELEMENT_STYLE : Style$
|
|
2475
|
+
const button = makeCompositePart(create, { key, type: Type$4.ButtonBlock, props, elementStyle: legacy ? NO_ELEMENT_STYLE : Style$6.Control }, role, PART_LABEL[role], base);
|
|
2475
2476
|
const iconBase = legacy ? { ...ICON_BASE, fontSize: `${Math.round((legacy.navigationSize ?? 44) * 0.6)}px` } : ICON_BASE;
|
|
2476
|
-
const icon = makeCompositePart(create, { key: `${key}-icon`, type: Type$4.Icon, props: { iconClass: SLIDER_PART_GLYPH[role] }, elementStyle: legacy ? NO_ELEMENT_STYLE : Style$
|
|
2477
|
+
const icon = makeCompositePart(create, { key: `${key}-icon`, type: Type$4.Icon, props: { iconClass: SLIDER_PART_GLYPH[role] }, elementStyle: legacy ? NO_ELEMENT_STYLE : Style$6.Icon }, null, 'Icon', iconBase);
|
|
2477
2478
|
button.children = [icon];
|
|
2478
2479
|
return button;
|
|
2479
2480
|
}
|
|
@@ -3259,7 +3260,7 @@ var Type$3;
|
|
|
3259
3260
|
Type["Image"] = "Image";
|
|
3260
3261
|
Type["Repeater"] = "Repeater";
|
|
3261
3262
|
})(Type$3 || (Type$3 = {}));
|
|
3262
|
-
var Style$
|
|
3263
|
+
var Style$5;
|
|
3263
3264
|
(function (Style) {
|
|
3264
3265
|
Style["Root"] = "box";
|
|
3265
3266
|
Style["List"] = "tab-list";
|
|
@@ -3269,10 +3270,10 @@ var Style$4;
|
|
|
3269
3270
|
Style["Panel"] = "box";
|
|
3270
3271
|
Style["Media"] = "media";
|
|
3271
3272
|
Style["Body"] = "body";
|
|
3272
|
-
})(Style$
|
|
3273
|
+
})(Style$5 || (Style$5 = {}));
|
|
3273
3274
|
const ZERO_BOX$1 = '0px 0px 0px 0px';
|
|
3274
3275
|
/** The list's hairline, as its element style writes it — read from the contract, never retyped. */
|
|
3275
|
-
const LIST_EDGE = String(elementStyleById(Style$
|
|
3276
|
+
const LIST_EDGE = String(elementStyleById(Style$5.List)?.base['borderWidth'] ?? ZERO_BOX$1);
|
|
3276
3277
|
/** What each part holds — layout only; its LOOK is its element style. The list WRAPS at narrow widths (board 3). */
|
|
3277
3278
|
const PART_BASE$1 = {
|
|
3278
3279
|
[TabsRole.Tabs]: { display: 'flex', width: '100%', minHeight: 'auto', height: 'auto' },
|
|
@@ -3306,30 +3307,30 @@ function make$1(create, key, type, role, style, props = {}, label) {
|
|
|
3306
3307
|
}
|
|
3307
3308
|
/** One tab and its panel, sharing `itemKey`. */
|
|
3308
3309
|
function buildTabPair(create, words, itemKey) {
|
|
3309
|
-
const tab = make$1(create, `${itemKey}-tab`, Type$3.ButtonBlock, TabsRole.Trigger, Style$
|
|
3310
|
+
const tab = make$1(create, `${itemKey}-tab`, Type$3.ButtonBlock, TabsRole.Trigger, Style$5.Tab, {}, 'Tab');
|
|
3310
3311
|
tab.itemKey = itemKey;
|
|
3311
|
-
const label = make$1(create, `${itemKey}-label`, Type$3.Text, null, Style$
|
|
3312
|
+
const label = make$1(create, `${itemKey}-label`, Type$3.Text, null, Style$5.Label, { content: words.label, tag: 'span' }, 'Text');
|
|
3312
3313
|
writeStyles(label, LABEL_BASE$1);
|
|
3313
3314
|
tab.children = [label];
|
|
3314
|
-
const panel = make$1(create, `${itemKey}-panel`, Type$3.Container, TabsRole.Panel, Style$
|
|
3315
|
+
const panel = make$1(create, `${itemKey}-panel`, Type$3.Container, TabsRole.Panel, Style$5.Panel, {}, 'Panel');
|
|
3315
3316
|
panel.itemKey = itemKey;
|
|
3316
3317
|
writeLayerStyles(panel, TABS_STACK_BREAKPOINT, PANEL_STACK);
|
|
3317
|
-
const image = make$1(create, `${itemKey}-image`, Type$3.Image, null, Style$
|
|
3318
|
+
const image = make$1(create, `${itemKey}-image`, Type$3.Image, null, Style$5.Media, { src: '', alt: '' }, 'Image');
|
|
3318
3319
|
writeStyles(image, IMAGE_BASE);
|
|
3319
|
-
const text = make$1(create, `${itemKey}-text`, Type$3.Text, null, Style$
|
|
3320
|
+
const text = make$1(create, `${itemKey}-text`, Type$3.Text, null, Style$5.Body, { content: words.text, tag: 'p' }, 'Text');
|
|
3320
3321
|
writeStyles(text, BODY_BASE);
|
|
3321
3322
|
panel.children = [image, text];
|
|
3322
3323
|
return { tab, panel };
|
|
3323
3324
|
}
|
|
3324
3325
|
/** A fresh Tabs: three tabs, the first on, activated by a click, the list across the top (board 3). */
|
|
3325
3326
|
function buildTabsRecipe(create, options = {}) {
|
|
3326
|
-
const root = make$1(create, 'tabs', Type$3.Container, TabsRole.Tabs, Style$
|
|
3327
|
+
const root = make$1(create, 'tabs', Type$3.Container, TabsRole.Tabs, Style$5.Root, {}, 'Tabs');
|
|
3327
3328
|
writeProp(root, TabsBehaviourTrait.ActivateOn, options.activateOn ?? TabsActivateOn.Click);
|
|
3328
3329
|
writeProp(root, TabsBehaviourTrait.Orientation, options.orientation ?? TabsOrientation.Horizontal);
|
|
3329
3330
|
if (options.label)
|
|
3330
3331
|
writeProp(root, TabsBehaviourTrait.Label, options.label);
|
|
3331
|
-
const list = make$1(create, 'list', Type$3.Container, TabsRole.List, Style$
|
|
3332
|
-
const panels = make$1(create, 'panels', Type$3.Container, TabsRole.Panels, Style$
|
|
3332
|
+
const list = make$1(create, 'list', Type$3.Container, TabsRole.List, Style$5.List, {}, 'Tab list');
|
|
3333
|
+
const panels = make$1(create, 'panels', Type$3.Container, TabsRole.Panels, Style$5.Panels, {}, 'Panels');
|
|
3333
3334
|
const pairs = (options.tabs ?? TABS_WORDS).map((w, i) => buildTabPair(create, w, `k${i + 1}`));
|
|
3334
3335
|
list.children = pairs.map(p => p.tab);
|
|
3335
3336
|
panels.children = pairs.map(p => p.panel);
|
|
@@ -3769,12 +3770,12 @@ var Type$2;
|
|
|
3769
3770
|
Type["ButtonBlock"] = "ButtonBlock";
|
|
3770
3771
|
Type["Text"] = "Text";
|
|
3771
3772
|
})(Type$2 || (Type$2 = {}));
|
|
3772
|
-
var Style$
|
|
3773
|
+
var Style$4;
|
|
3773
3774
|
(function (Style) {
|
|
3774
3775
|
Style["Root"] = "segmented";
|
|
3775
3776
|
Style["Option"] = "segmented-option";
|
|
3776
3777
|
Style["Label"] = "button-label";
|
|
3777
|
-
})(Style$
|
|
3778
|
+
})(Style$4 || (Style$4 = {}));
|
|
3778
3779
|
const ZERO_BOX = '0px 0px 0px 0px';
|
|
3779
3780
|
/** What each part holds — layout only; its LOOK is its element style (the track's fill, border, radius and pad; the
|
|
3780
3781
|
* option's ink, pad, radius and 44px target). The options sit in a flex row a gap token apart (board 10); each GROWS,
|
|
@@ -3792,9 +3793,9 @@ function make(create, key, type, role, style, props = {}, label) {
|
|
|
3792
3793
|
}
|
|
3793
3794
|
/** One option: a ButtonBlock carrying its key, holding its words. */
|
|
3794
3795
|
function buildSegmentedOption(create, words) {
|
|
3795
|
-
const option = make(create, `${words.key}-option`, Type$2.ButtonBlock, SegmentedRole.Option, Style$
|
|
3796
|
+
const option = make(create, `${words.key}-option`, Type$2.ButtonBlock, SegmentedRole.Option, Style$4.Option, {}, 'Option');
|
|
3796
3797
|
option.itemKey = words.key;
|
|
3797
|
-
const label = make(create, `${words.key}-label`, Type$2.Text, null, Style$
|
|
3798
|
+
const label = make(create, `${words.key}-label`, Type$2.Text, null, Style$4.Label, { content: words.label, tag: 'span' }, 'Text');
|
|
3798
3799
|
writeStyles(label, LABEL_BASE);
|
|
3799
3800
|
option.children = [label];
|
|
3800
3801
|
return option;
|
|
@@ -3802,7 +3803,7 @@ function buildSegmentedOption(create, words) {
|
|
|
3802
3803
|
/** A fresh Segmented control: Monthly · Yearly, Monthly on, named "Billing period" (board 10 ▸ Palette). */
|
|
3803
3804
|
function buildSegmentedRecipe(create, options = {}) {
|
|
3804
3805
|
const words = options.options ?? SEGMENTED_WORDS;
|
|
3805
|
-
const root = make(create, 'segmented', Type$2.Container, SegmentedRole.Segmented, Style$
|
|
3806
|
+
const root = make(create, 'segmented', Type$2.Container, SegmentedRole.Segmented, Style$4.Root, {}, 'Segmented');
|
|
3806
3807
|
root.children = words.map(w => buildSegmentedOption(create, w));
|
|
3807
3808
|
writeProp(root, SegmentedTrait.DefaultOn, options.defaultOn && words.some(w => w.key === options.defaultOn) ? options.defaultOn : words[0]?.key ?? '');
|
|
3808
3809
|
writeProp(root, SegmentedTrait.Label, options.label ?? SEGMENTED_NAME);
|
|
@@ -4747,13 +4748,13 @@ var Type$1;
|
|
|
4747
4748
|
Type["Container"] = "Container";
|
|
4748
4749
|
Type["Text"] = "Text";
|
|
4749
4750
|
})(Type$1 || (Type$1 = {}));
|
|
4750
|
-
var Style$
|
|
4751
|
+
var Style$3;
|
|
4751
4752
|
(function (Style) {
|
|
4752
4753
|
Style["Box"] = "box";
|
|
4753
4754
|
Style["Number"] = "price";
|
|
4754
4755
|
Style["Words"] = "small";
|
|
4755
4756
|
Style["Bar"] = "progress-bar";
|
|
4756
|
-
})(Style$
|
|
4757
|
+
})(Style$3 || (Style$3 = {}));
|
|
4757
4758
|
const ZERO$1 = '0px 0px 0px 0px';
|
|
4758
4759
|
const COUNTER_BASE = { display: 'flex', flexDirection: 'column', gap: '6px', minHeight: 'auto', width: 'auto', padding: ZERO$1 };
|
|
4759
4760
|
const NUMBER_BASE = { margin: ZERO$1, width: 'auto' };
|
|
@@ -4770,9 +4771,9 @@ const COUNTER_SAMPLE_WORDS = Object.freeze({ number: '1,250+', label: 'projects
|
|
|
4770
4771
|
/** A number that counts up once, and its words (Components ▸ Interactive ▸ Counter). */
|
|
4771
4772
|
function buildCounterRecipe(create, words = {}) {
|
|
4772
4773
|
const text = { ...COUNTER_SAMPLE_WORDS, ...words };
|
|
4773
|
-
const root = makeCompositePart(create, { key: 'counter', type: Type$1.Container, props: {}, elementStyle: Style$
|
|
4774
|
-
const number = makeCompositePart(create, { key: 'counter-number', type: Type$1.Text, props: { content: text.number }, elementStyle: Style$
|
|
4775
|
-
const label = makeCompositePart(create, { key: 'counter-label', type: Type$1.Text, props: { content: text.label }, elementStyle: Style$
|
|
4774
|
+
const root = makeCompositePart(create, { key: 'counter', type: Type$1.Container, props: {}, elementStyle: Style$3.Box }, null, 'Counter', COUNTER_BASE);
|
|
4775
|
+
const number = makeCompositePart(create, { key: 'counter-number', type: Type$1.Text, props: { content: text.number }, elementStyle: Style$3.Number }, null, 'Number', NUMBER_BASE);
|
|
4776
|
+
const label = makeCompositePart(create, { key: 'counter-label', type: Type$1.Text, props: { content: text.label }, elementStyle: Style$3.Words }, null, 'Words', WORDS_BASE);
|
|
4776
4777
|
const { distance, ...entrance } = COUNTER_ENTRANCE;
|
|
4777
4778
|
number.interactions = [{
|
|
4778
4779
|
id: `${number.id ?? 'counter'}-count`, trigger: 'viewportEnter',
|
|
@@ -4787,7 +4788,7 @@ function buildCounterRecipe(create, words = {}) {
|
|
|
4787
4788
|
/** A bar that fills as the page is read (Components ▸ Interactive ▸ Reading bar). Its range may be changed to "This
|
|
4788
4789
|
* section" in the Interactions panel. */
|
|
4789
4790
|
function buildReadingBarRecipe(create) {
|
|
4790
|
-
const bar = makeCompositePart(create, { key: 'reading-bar', type: Type$1.Container, props: {}, elementStyle: Style$
|
|
4791
|
+
const bar = makeCompositePart(create, { key: 'reading-bar', type: Type$1.Container, props: {}, elementStyle: Style$3.Bar }, null, 'Reading bar', BAR_BASE);
|
|
4791
4792
|
bar.interactions = [{
|
|
4792
4793
|
id: `${bar.id ?? 'bar'}-read`, trigger: 'scrollProgress', range: 'page',
|
|
4793
4794
|
actions: [{ type: 'progressBar', target: 'self', duration: 1000, delay: 0, easing: 'linear' }],
|
|
@@ -4993,7 +4994,7 @@ var Type;
|
|
|
4993
4994
|
Type["Image"] = "Image";
|
|
4994
4995
|
Type["Dialog"] = "Dialog";
|
|
4995
4996
|
})(Type || (Type = {}));
|
|
4996
|
-
var Style$
|
|
4997
|
+
var Style$2;
|
|
4997
4998
|
(function (Style) {
|
|
4998
4999
|
Style["Price"] = "price";
|
|
4999
5000
|
Style["PriceCompare"] = "price-compare";
|
|
@@ -5015,7 +5016,7 @@ var Style$1;
|
|
|
5015
5016
|
Style["Media"] = "media";
|
|
5016
5017
|
Style["Icon"] = "icon";
|
|
5017
5018
|
Style["Title"] = "h3";
|
|
5018
|
-
})(Style$
|
|
5019
|
+
})(Style$2 || (Style$2 = {}));
|
|
5019
5020
|
/** The words a fresh recipe shows (board 10's sample) — the runtime writes the product's own over them. */
|
|
5020
5021
|
const SHOP_RECIPE_WORDS = Object.freeze({
|
|
5021
5022
|
price: '₪240.00',
|
|
@@ -5057,15 +5058,15 @@ function text(create, key, role, style, words, label, base = WORDS, tag = 'p') {
|
|
|
5057
5058
|
function icon(create, key, iconClass, size = '18px') {
|
|
5058
5059
|
return recipeIcon(create, key, iconClass, size);
|
|
5059
5060
|
}
|
|
5060
|
-
function button(create, key, role, style, label, ariaLabel = '', base = {}) {
|
|
5061
|
+
function button$1(create, key, role, style, label, ariaLabel = '', base = {}) {
|
|
5061
5062
|
return recipeButton(create, key, role, style, label, ariaLabel, base);
|
|
5062
5063
|
}
|
|
5063
5064
|
/** Price: the variant's price and, when it is higher, its earlier price struck through (board 10). */
|
|
5064
5065
|
function buildPriceRecipe(create) {
|
|
5065
5066
|
const root = part(create, 'price', Type.Container, ShopRole.Price, null, {}, SHOP_LABELS.price, { ...ROW, alignItems: 'baseline', flexWrap: 'wrap', gap: '8px' });
|
|
5066
|
-
const amount = text(create, 'price-amount', ShopRole.PriceAmount, Style$
|
|
5067
|
+
const amount = text(create, 'price-amount', ShopRole.PriceAmount, Style$2.Price, SHOP_RECIPE_WORDS.price, 'Price');
|
|
5067
5068
|
bindSlot(amount, 'content', '$variant', 'price', true);
|
|
5068
|
-
const compare = text(create, 'price-compare', ShopRole.PriceCompare, Style$
|
|
5069
|
+
const compare = text(create, 'price-compare', ShopRole.PriceCompare, Style$2.PriceCompare, SHOP_RECIPE_WORDS.compareAt, 'Price before');
|
|
5069
5070
|
bindSlot(compare, 'content', '$variant', 'compareAt', true);
|
|
5070
5071
|
root.children = [amount, compare];
|
|
5071
5072
|
return root;
|
|
@@ -5074,13 +5075,13 @@ function buildPriceRecipe(create) {
|
|
|
5074
5075
|
function buildVariantPickerRecipe(create) {
|
|
5075
5076
|
const root = part(create, 'variants', Type.Container, ShopRole.Variants, null, {}, SHOP_LABELS.variants, { ...COLUMN, gap: '16px' });
|
|
5076
5077
|
const group = part(create, 'variant-group', Type.Container, ShopRole.VariantGroup, null, {}, 'Option', { ...COLUMN, gap: '6px' });
|
|
5077
|
-
const label = text(create, 'variant-label', ShopRole.VariantLabel, Style$
|
|
5078
|
+
const label = text(create, 'variant-label', ShopRole.VariantLabel, Style$2.Small, SHOP_RECIPE_WORDS.option, 'Option name');
|
|
5078
5079
|
const values = part(create, 'variant-values', Type.Container, ShopRole.VariantValues, null, {}, 'Values', { ...ROW, flexWrap: 'wrap', gap: '8px' });
|
|
5079
|
-
const chip = button(create, 'variant-value', ShopRole.VariantValue, Style$
|
|
5080
|
-
chip.children = [text(create, 'variant-value-text', null, Style$
|
|
5081
|
-
const swatch = button(create, 'variant-swatch', ShopRole.VariantSwatch, Style$
|
|
5080
|
+
const chip = button$1(create, 'variant-value', ShopRole.VariantValue, Style$2.Chip, 'Value', '', { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: 'auto', height: 'auto' });
|
|
5081
|
+
chip.children = [text(create, 'variant-value-text', null, Style$2.Label, SHOP_RECIPE_WORDS.value, 'Text', WORDS, 'span')];
|
|
5082
|
+
const swatch = button$1(create, 'variant-swatch', ShopRole.VariantSwatch, Style$2.Swatch, 'Swatch', 'Sand', { padding: ZERO, minWidth: '0px', minHeight: '0px' });
|
|
5082
5083
|
values.children = [chip, swatch];
|
|
5083
|
-
const note = text(create, 'variant-note', ShopRole.VariantNote, Style$
|
|
5084
|
+
const note = text(create, 'variant-note', ShopRole.VariantNote, Style$2.Small, SHOP_RECIPE_WORDS.note, 'Sold-out note');
|
|
5084
5085
|
group.children = [label, values, note];
|
|
5085
5086
|
root.children = [group];
|
|
5086
5087
|
return root;
|
|
@@ -5088,37 +5089,37 @@ function buildVariantPickerRecipe(create) {
|
|
|
5088
5089
|
/** Quantity: − · the count · + (min 1, max from the variant's stock). `compact` = a cart line's. */
|
|
5089
5090
|
function buildQuantityRecipe(create, compact = false, key = 'quantity') {
|
|
5090
5091
|
const size = compact ? '30px' : 'var(--iox-stepper-size)';
|
|
5091
|
-
const root = part(create, key, Type.Container, ShopRole.Quantity, Style$
|
|
5092
|
-
const down = button(create, `${key}-down`, ShopRole.QuantityDown, Style$
|
|
5092
|
+
const root = part(create, key, Type.Container, ShopRole.Quantity, Style$2.Quantity, {}, SHOP_LABELS.quantity, { ...ROW, alignItems: 'stretch', gap: '0px', minHeight: size });
|
|
5093
|
+
const down = button$1(create, `${key}-down`, ShopRole.QuantityDown, Style$2.QuantityButton, 'Decrease', 'Decrease quantity', { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', minWidth: size, padding: ZERO });
|
|
5093
5094
|
down.children = [icon(create, `${key}-down-icon`, 'ph ph-minus', compact ? '14px' : '16px')];
|
|
5094
|
-
const value = text(create, `${key}-value`, ShopRole.QuantityValue, Style$
|
|
5095
|
-
const up = button(create, `${key}-up`, ShopRole.QuantityUp, Style$
|
|
5095
|
+
const value = text(create, `${key}-value`, ShopRole.QuantityValue, Style$2.Body, SHOP_RECIPE_WORDS.quantity, 'Count', { ...WORDS, display: 'inline-flex', alignItems: 'center', justifyContent: 'center', minWidth: compact ? '32px' : '40px', fontVariantNumeric: 'tabular-nums' }, 'span');
|
|
5096
|
+
const up = button$1(create, `${key}-up`, ShopRole.QuantityUp, Style$2.QuantityButton, 'Increase', 'Increase quantity', { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', minWidth: size, padding: ZERO });
|
|
5096
5097
|
up.children = [icon(create, `${key}-up-icon`, 'ph ph-plus', compact ? '14px' : '16px')];
|
|
5097
5098
|
root.children = [down, value, up];
|
|
5098
5099
|
return root;
|
|
5099
5100
|
}
|
|
5100
5101
|
/** Add to cart: presses on pointer-down (its element style), then reads "Added ✓" in place for ADDED_HOLD_MS. */
|
|
5101
5102
|
function buildAddToCartRecipe(create) {
|
|
5102
|
-
const root = button(create, 'add', ShopRole.Add, Style$
|
|
5103
|
+
const root = button$1(create, 'add', ShopRole.Add, Style$2.Primary, SHOP_LABELS.add, '', { display: 'inline-grid', alignItems: 'center', justifyItems: 'center', flexGrow: '1', width: 'auto', height: 'auto' });
|
|
5103
5104
|
root.children = [
|
|
5104
|
-
text(create, 'add-label', ShopRole.AddLabel, Style$
|
|
5105
|
-
text(create, 'added-label', ShopRole.AddedLabel, Style$
|
|
5105
|
+
text(create, 'add-label', ShopRole.AddLabel, Style$2.Label, SHOP_RECIPE_WORDS.add, 'Add', STACKED$1, 'span'),
|
|
5106
|
+
text(create, 'added-label', ShopRole.AddedLabel, Style$2.Label, SHOP_RECIPE_WORDS.added, 'Added', STACKED$1, 'span'),
|
|
5106
5107
|
];
|
|
5107
5108
|
onClick(root, 'addToCart');
|
|
5108
5109
|
return root;
|
|
5109
5110
|
}
|
|
5110
5111
|
/** Buy now: straight to checkout with this variant (inert on the canvas). */
|
|
5111
5112
|
function buildBuyNowRecipe(create) {
|
|
5112
|
-
const root = button(create, 'buy-now', ShopRole.BuyNow, Style$
|
|
5113
|
-
root.children = [text(create, 'buy-now-label', null, Style$
|
|
5113
|
+
const root = button$1(create, 'buy-now', ShopRole.BuyNow, Style$2.Secondary, SHOP_LABELS.buyNow, '', { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: 'auto', height: 'auto' });
|
|
5114
|
+
root.children = [text(create, 'buy-now-label', null, Style$2.Label, SHOP_RECIPE_WORDS.buyNow, 'Text', WORDS, 'span')];
|
|
5114
5115
|
onClick(root, 'startCheckout');
|
|
5115
5116
|
return root;
|
|
5116
5117
|
}
|
|
5117
5118
|
/** The bag button with its live count ($cart.count); it opens the page's cart drawer. */
|
|
5118
5119
|
function buildCartButtonRecipe(create) {
|
|
5119
|
-
const root = button(create, 'cart-button', ShopRole.CartButton, Style$
|
|
5120
|
-
const count = part(create, 'cart-count', Type.Container, ShopRole.CartCount, Style$
|
|
5121
|
-
const words = text(create, 'cart-count-text', null, Style$
|
|
5120
|
+
const root = button$1(create, 'cart-button', ShopRole.CartButton, Style$2.CartButton, SHOP_LABELS.cartButton, SHOP_RECIPE_WORDS.cart, { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: 'auto', height: 'auto', padding: '6px 6px 6px 6px', position: 'relative' });
|
|
5121
|
+
const count = part(create, 'cart-count', Type.Container, ShopRole.CartCount, Style$2.CartCount, {}, 'Count', { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: 'auto', height: 'auto', minHeight: 'var(--iox-cart-count-size)', padding: '0px 4px 0px 4px', position: 'absolute', top: '-5px', right: '-5px' });
|
|
5122
|
+
const words = text(create, 'cart-count-text', null, Style$2.Label, SHOP_RECIPE_WORDS.count, 'Text', { ...WORDS, lineHeight: '1' }, 'span');
|
|
5122
5123
|
bindSlot(words, 'content', '$cart', 'count');
|
|
5123
5124
|
count.children = [words];
|
|
5124
5125
|
root.children = [icon(create, 'cart-icon', 'ph ph-handbag'), count];
|
|
@@ -5126,47 +5127,47 @@ function buildCartButtonRecipe(create) {
|
|
|
5126
5127
|
}
|
|
5127
5128
|
/** One cart line: thumbnail · title, variant, quantity and Remove · line total (board 10). */
|
|
5128
5129
|
function buildCartLine(create) {
|
|
5129
|
-
const line = part(create, 'cart-line', Type.Container, ShopRole.CartLine, Style$
|
|
5130
|
-
const image = part(create, 'cart-line-image', Type.Image, ShopRole.CartLineImage, Style$
|
|
5130
|
+
const line = part(create, 'cart-line', Type.Container, ShopRole.CartLine, Style$2.CartLine, {}, 'Line', { display: 'grid', gridTemplateColumns: 'var(--iox-cart-thumb-size) minmax(0, 1fr) auto', alignItems: 'start', gap: '12px', width: '100%', height: 'auto', minHeight: 'auto', padding: ZERO });
|
|
5131
|
+
const image = part(create, 'cart-line-image', Type.Image, ShopRole.CartLineImage, Style$2.Media, { src: '', alt: '' }, 'Image', { width: 'var(--iox-cart-thumb-size)', height: 'var(--iox-cart-thumb-size)', minHeight: '0px', objectFit: 'cover', aspectRatio: '1 / 1' });
|
|
5131
5132
|
const info = part(create, 'cart-line-info', Type.Container, null, null, {}, 'Details', { ...COLUMN, gap: '2px', minWidth: '0px' });
|
|
5132
|
-
const title = text(create, 'cart-line-title', ShopRole.CartLineTitle, Style$
|
|
5133
|
-
const variant = text(create, 'cart-line-variant', ShopRole.CartLineVariant, Style$
|
|
5133
|
+
const title = text(create, 'cart-line-title', ShopRole.CartLineTitle, Style$2.Body, SHOP_RECIPE_WORDS.lineTitle, 'Title', { ...WORDS, fontWeight: '500' });
|
|
5134
|
+
const variant = text(create, 'cart-line-variant', ShopRole.CartLineVariant, Style$2.Small, SHOP_RECIPE_WORDS.lineVariant, 'Variant', { ...WORDS, margin: '0px 0px 6px 0px' });
|
|
5134
5135
|
const actions = part(create, 'cart-line-actions', Type.Container, null, null, {}, 'Actions', { ...ROW, gap: '12px' });
|
|
5135
|
-
const remove = button(create, 'cart-line-remove', ShopRole.CartLineRemove, Style$
|
|
5136
|
-
remove.children = [text(create, 'cart-line-remove-text', null, Style$
|
|
5136
|
+
const remove = button$1(create, 'cart-line-remove', ShopRole.CartLineRemove, Style$2.Ghost, 'Remove', '', { padding: '4px 4px 4px 4px', width: 'auto', height: 'auto', minHeight: 'auto' });
|
|
5137
|
+
remove.children = [text(create, 'cart-line-remove-text', null, Style$2.Small, SHOP_RECIPE_WORDS.remove, 'Text', WORDS, 'span')];
|
|
5137
5138
|
actions.children = [buildQuantityRecipe(create, true, 'cart-line-quantity'), remove];
|
|
5138
5139
|
info.children = [title, variant, actions];
|
|
5139
|
-
const total = text(create, 'cart-line-total', ShopRole.CartLineTotal, Style$
|
|
5140
|
+
const total = text(create, 'cart-line-total', ShopRole.CartLineTotal, Style$2.Price, SHOP_RECIPE_WORDS.lineTotal, 'Line total', { ...WORDS, fontSize: 'var(--iox-size-body)', textAlign: 'end' });
|
|
5140
5141
|
line.children = [image, info, total];
|
|
5141
5142
|
return line;
|
|
5142
5143
|
}
|
|
5143
5144
|
/** The cart drawer: a Dialog at the end edge (a bottom sheet on a phone — shared CSS), filled from the PRICED cart. */
|
|
5144
5145
|
function buildCartDrawerRecipe(create) {
|
|
5145
|
-
const drawer = part(create, 'cart-drawer', Type.Dialog, ShopRole.CartDrawer, Style$
|
|
5146
|
+
const drawer = part(create, 'cart-drawer', Type.Dialog, ShopRole.CartDrawer, Style$2.Dialog, {}, SHOP_LABELS.cartDrawer, { width: '380px', maxWidth: '100%', display: 'flex', flexDirection: 'column', gap: '14px' });
|
|
5146
5147
|
writeProp(drawer, 'placement', 'end');
|
|
5147
5148
|
writeProp(drawer, 'closeOnBackdrop', true);
|
|
5148
5149
|
writeProp(drawer, 'showCloseButton', false);
|
|
5149
5150
|
writeProp(drawer, 'ariaLabel', SHOP_RECIPE_WORDS.drawer);
|
|
5150
5151
|
const head = part(create, 'cart-head', Type.Container, null, null, {}, 'Head', { ...ROW, width: '100%', justifyContent: 'space-between', gap: '12px' });
|
|
5151
|
-
const title = part(create, 'cart-title', Type.Heading, ShopRole.CartTitle, Style$
|
|
5152
|
-
const close = button(create, 'cart-close', ShopRole.CartClose, Style$
|
|
5153
|
-
close.children = [text(create, 'cart-close-text', null, Style$
|
|
5152
|
+
const title = part(create, 'cart-title', Type.Heading, ShopRole.CartTitle, Style$2.Title, { content: SHOP_RECIPE_WORDS.drawer, level: 'h2' }, 'Title', WORDS);
|
|
5153
|
+
const close = button$1(create, 'cart-close', ShopRole.CartClose, Style$2.Ghost, 'Close', '', { padding: '4px 4px 4px 4px', width: 'auto', height: 'auto', minHeight: 'auto' });
|
|
5154
|
+
close.children = [text(create, 'cart-close-text', null, Style$2.Small, SHOP_RECIPE_WORDS.close, 'Text', WORDS, 'span')];
|
|
5154
5155
|
onClick(close, 'closeDialog', drawer.id ?? '');
|
|
5155
5156
|
head.children = [title, close];
|
|
5156
5157
|
const lines = part(create, 'cart-lines', Type.Container, ShopRole.CartLines, null, {}, 'Lines', { ...COLUMN, gap: '16px' });
|
|
5157
5158
|
lines.children = [buildCartLine(create)];
|
|
5158
|
-
const issues = text(create, 'cart-issues', ShopRole.CartIssues, Style$
|
|
5159
|
-
const empty = text(create, 'cart-empty', ShopRole.CartEmpty, Style$
|
|
5160
|
-
const note = text(create, 'cart-shipping-note', ShopRole.CartShippingNote, Style$
|
|
5159
|
+
const issues = text(create, 'cart-issues', ShopRole.CartIssues, Style$2.Small, '', 'Issues', { ...WORDS, color: 'var(--iox-danger)' });
|
|
5160
|
+
const empty = text(create, 'cart-empty', ShopRole.CartEmpty, Style$2.Body, SHOP_RECIPE_WORDS.empty, 'Empty');
|
|
5161
|
+
const note = text(create, 'cart-shipping-note', ShopRole.CartShippingNote, Style$2.CartNote, SHOP_RECIPE_WORDS.shippingNote, 'Free delivery note', { width: 'auto', minHeight: 'auto', margin: ZERO });
|
|
5161
5162
|
const summary = part(create, 'cart-summary', Type.Container, ShopRole.CartSummary, null, {}, 'Subtotal', { ...ROW, width: '100%', justifyContent: 'space-between', gap: '12px' });
|
|
5162
|
-
const subtotal = text(create, 'cart-subtotal', ShopRole.CartSubtotal, Style$
|
|
5163
|
+
const subtotal = text(create, 'cart-subtotal', ShopRole.CartSubtotal, Style$2.Body, SHOP_RECIPE_WORDS.subtotal, 'Amount', { ...WORDS, fontVariantNumeric: 'tabular-nums', fontWeight: '600' }, 'span');
|
|
5163
5164
|
bindSlot(subtotal, 'content', '$cart', 'subtotal', true);
|
|
5164
|
-
summary.children = [text(create, 'cart-subtotal-label', null, Style$
|
|
5165
|
-
const vat = text(create, 'cart-vat-note', ShopRole.CartVatNote, Style$
|
|
5166
|
-
const checkout = button(create, 'checkout', ShopRole.Checkout, Style$
|
|
5167
|
-
checkout.children = [text(create, 'checkout-label', null, Style$
|
|
5168
|
-
const keep = button(create, 'keep-shopping', ShopRole.KeepShopping, Style$
|
|
5169
|
-
keep.children = [text(create, 'keep-shopping-label', null, Style$
|
|
5165
|
+
summary.children = [text(create, 'cart-subtotal-label', null, Style$2.Body, SHOP_RECIPE_WORDS.subtotalLabel, 'Label', WORDS, 'span'), subtotal];
|
|
5166
|
+
const vat = text(create, 'cart-vat-note', ShopRole.CartVatNote, Style$2.Small, SHOP_RECIPE_WORDS.vatNote, 'VAT note');
|
|
5167
|
+
const checkout = button$1(create, 'checkout', ShopRole.Checkout, Style$2.Primary, 'Check out', '', { display: 'inline-flex', justifyContent: 'center', alignItems: 'center', width: '100%', height: 'auto' });
|
|
5168
|
+
checkout.children = [text(create, 'checkout-label', null, Style$2.Label, SHOP_RECIPE_WORDS.checkout, 'Text', WORDS, 'span')];
|
|
5169
|
+
const keep = button$1(create, 'keep-shopping', ShopRole.KeepShopping, Style$2.Secondary, 'Keep shopping', '', { display: 'inline-flex', justifyContent: 'center', alignItems: 'center', width: '100%', height: 'auto' });
|
|
5170
|
+
keep.children = [text(create, 'keep-shopping-label', null, Style$2.Label, SHOP_RECIPE_WORDS.keepShopping, 'Text', WORDS, 'span')];
|
|
5170
5171
|
onClick(keep, 'closeDialog', drawer.id ?? '');
|
|
5171
5172
|
drawer.children = [head, lines, issues, empty, note, summary, vat, checkout, keep];
|
|
5172
5173
|
return drawer;
|
|
@@ -5937,7 +5938,7 @@ function accountRecipeWords(lang = 'en') {
|
|
|
5937
5938
|
/** The English sample (the palette's — the canvas has no page language yet). */
|
|
5938
5939
|
const ACCOUNT_RECIPE_WORDS = accountRecipeWords('en');
|
|
5939
5940
|
const ACCOUNT_LABELS = Object.freeze({ account: 'Account entry', menu: 'Account menu', signIn: 'Sign-in dialog' });
|
|
5940
|
-
var Style;
|
|
5941
|
+
var Style$1;
|
|
5941
5942
|
(function (Style) {
|
|
5942
5943
|
Style["AccountButton"] = "account-button";
|
|
5943
5944
|
Style["Avatar"] = "account-avatar";
|
|
@@ -5952,7 +5953,7 @@ var Style;
|
|
|
5952
5953
|
Style["Popover"] = "popover";
|
|
5953
5954
|
Style["Title"] = "h3";
|
|
5954
5955
|
Style["Field"] = "field";
|
|
5955
|
-
})(Style || (Style = {}));
|
|
5956
|
+
})(Style$1 || (Style$1 = {}));
|
|
5956
5957
|
const PILL = { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: 'auto', height: 'auto' };
|
|
5957
5958
|
const FULL = { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: '100%', height: 'auto' };
|
|
5958
5959
|
const TEXT_BUTTON = { padding: '4px 4px 4px 4px', width: 'auto', height: 'auto', minHeight: 'auto' };
|
|
@@ -5961,24 +5962,24 @@ const STACKED = { gridColumn: '1', gridRow: '1' };
|
|
|
5961
5962
|
function words(create, key, role, style, text, label, base = WORDS, tag = 'p') {
|
|
5962
5963
|
return recipeText(create, key, role, style, text, label, base, tag);
|
|
5963
5964
|
}
|
|
5964
|
-
function labelled(create, key, role, style, text, label, base, labelStyle = Style.Label) {
|
|
5965
|
+
function labelled(create, key, role, style, text, label, base, labelStyle = Style$1.Label) {
|
|
5965
5966
|
const root = recipeButton(create, key, role, style, label, '', base);
|
|
5966
5967
|
root.children = [words(create, `${key}-label`, null, labelStyle, text, 'Text', WORDS, 'span')];
|
|
5967
5968
|
return root;
|
|
5968
5969
|
}
|
|
5969
5970
|
function field(create, key, role, name, control, label, placeholder) {
|
|
5970
|
-
return recipePart(create, key, 'Field', role, Style.Field, { control, label, name, placeholder, required: true }, label, { width: '100%', minHeight: 'auto', margin: ZERO });
|
|
5971
|
+
return recipePart(create, key, 'Field', role, Style$1.Field, { control, label, name, placeholder, required: true }, label, { width: '100%', minHeight: 'auto', margin: ZERO });
|
|
5971
5972
|
}
|
|
5972
5973
|
/** The menu a signed-in buyer opens from the account button: hello, their orders, sign out. */
|
|
5973
5974
|
function buildAccountMenuRecipe(create, lang = 'en') {
|
|
5974
5975
|
const t = accountRecipeWords(lang);
|
|
5975
|
-
const menu = recipePart(create, 'account-menu', 'Popover', AccountRole.Menu, Style.Popover, {}, ACCOUNT_LABELS.menu, { display: 'flex', flexDirection: 'column', alignItems: 'stretch', width: '220px', height: 'auto', minHeight: 'auto', gap: '4px' });
|
|
5976
|
+
const menu = recipePart(create, 'account-menu', 'Popover', AccountRole.Menu, Style$1.Popover, {}, ACCOUNT_LABELS.menu, { display: 'flex', flexDirection: 'column', alignItems: 'stretch', width: '220px', height: 'auto', minHeight: 'auto', gap: '4px' });
|
|
5976
5977
|
writeProp(menu, 'placement', 'below');
|
|
5977
5978
|
writeProp(menu, 'ariaLabel', t.title);
|
|
5978
|
-
const greeting = words(create, 'account-menu-greeting', AccountRole.MenuGreeting, Style.Body, t.greeting, 'Greeting', { ...WORDS, margin: '0px 0px 6px 0px', fontWeight: '600' });
|
|
5979
|
-
const orders = recipePart(create, 'account-orders', 'ButtonBlock', AccountRole.Orders, Style.Ghost, { tag: 'a', linkType: 'external', href: ACCOUNT_PATH, target: '_self' }, 'Your orders', { ...TEXT_BUTTON, justifyContent: 'flex-start', width: '100%' });
|
|
5980
|
-
orders.children = [words(create, 'account-orders-label', null, Style.Label, t.orders, 'Text', WORDS, 'span')];
|
|
5981
|
-
const signOut = labelled(create, 'account-sign-out', AccountRole.SignOut, Style.Ghost, t.signOut, 'Sign out', { ...TEXT_BUTTON, justifyContent: 'flex-start', width: '100%' });
|
|
5979
|
+
const greeting = words(create, 'account-menu-greeting', AccountRole.MenuGreeting, Style$1.Body, t.greeting, 'Greeting', { ...WORDS, margin: '0px 0px 6px 0px', fontWeight: '600' });
|
|
5980
|
+
const orders = recipePart(create, 'account-orders', 'ButtonBlock', AccountRole.Orders, Style$1.Ghost, { tag: 'a', linkType: 'external', href: ACCOUNT_PATH, target: '_self' }, 'Your orders', { ...TEXT_BUTTON, justifyContent: 'flex-start', width: '100%' });
|
|
5981
|
+
orders.children = [words(create, 'account-orders-label', null, Style$1.Label, t.orders, 'Text', WORDS, 'span')];
|
|
5982
|
+
const signOut = labelled(create, 'account-sign-out', AccountRole.SignOut, Style$1.Ghost, t.signOut, 'Sign out', { ...TEXT_BUTTON, justifyContent: 'flex-start', width: '100%' });
|
|
5982
5983
|
onClick(signOut, 'signOut');
|
|
5983
5984
|
menu.children = [greeting, orders, signOut];
|
|
5984
5985
|
return menu;
|
|
@@ -5990,18 +5991,18 @@ function buildAccountMenuRecipe(create, lang = 'en') {
|
|
|
5990
5991
|
function buildAccountEntryRecipe(create, lang = 'en') {
|
|
5991
5992
|
const t = accountRecipeWords(lang);
|
|
5992
5993
|
const root = recipePart(create, 'account', 'Container', AccountRole.Account, null, {}, ACCOUNT_LABELS.account, { ...ROW, gap: '0px' });
|
|
5993
|
-
const entry = recipeButton(create, 'account-entry', AccountRole.Entry, Style.AccountButton, 'Account button', t.signIn, { ...PILL, display: 'inline-grid', gridTemplateColumns: 'auto', alignItems: 'center', justifyItems: 'center' });
|
|
5994
|
+
const entry = recipeButton(create, 'account-entry', AccountRole.Entry, Style$1.AccountButton, 'Account button', t.signIn, { ...PILL, display: 'inline-grid', gridTemplateColumns: 'auto', alignItems: 'center', justifyItems: 'center' });
|
|
5994
5995
|
const signedOut = recipePart(create, 'account-signed-out', 'Container', null, null, {}, 'Signed out', { ...ROW, ...STACKED, gap: '6px' });
|
|
5995
5996
|
signedOut.children = [
|
|
5996
5997
|
recipeIcon(create, 'account-icon', 'ph ph-user-circle', '18px'),
|
|
5997
|
-
words(create, 'account-sign-in-label', AccountRole.SignInLabel, Style.Label, t.signIn, 'Sign in', WORDS, 'span'),
|
|
5998
|
+
words(create, 'account-sign-in-label', AccountRole.SignInLabel, Style$1.Label, t.signIn, 'Sign in', WORDS, 'span'),
|
|
5998
5999
|
];
|
|
5999
6000
|
const signedIn = recipePart(create, 'account-signed-in', 'Container', null, null, {}, 'Signed in', { ...ROW, ...STACKED, gap: '8px' });
|
|
6000
|
-
const avatar = recipePart(create, 'account-avatar', 'Container', AccountRole.Avatar, Style.Avatar, {}, 'Initial', { ...PILL, minHeight: 'var(--iox-account-avatar-size)', padding: ZERO });
|
|
6001
|
-
const initial = words(create, 'account-initial', AccountRole.Initial, Style.Label, t.initial, 'Initial', { ...WORDS, lineHeight: '1' }, 'span');
|
|
6001
|
+
const avatar = recipePart(create, 'account-avatar', 'Container', AccountRole.Avatar, Style$1.Avatar, {}, 'Initial', { ...PILL, minHeight: 'var(--iox-account-avatar-size)', padding: ZERO });
|
|
6002
|
+
const initial = words(create, 'account-initial', AccountRole.Initial, Style$1.Label, t.initial, 'Initial', { ...WORDS, lineHeight: '1' }, 'span');
|
|
6002
6003
|
bindSlot(initial, 'content', CUSTOMER_SLOT, 'initial');
|
|
6003
6004
|
avatar.children = [initial];
|
|
6004
|
-
const name = words(create, 'account-name', AccountRole.Name, Style.Label, t.name, 'Name', WORDS, 'span');
|
|
6005
|
+
const name = words(create, 'account-name', AccountRole.Name, Style$1.Label, t.name, 'Name', WORDS, 'span');
|
|
6005
6006
|
bindSlot(name, 'content', CUSTOMER_SLOT, 'name');
|
|
6006
6007
|
signedIn.children = [avatar, name];
|
|
6007
6008
|
entry.children = [signedOut, signedIn];
|
|
@@ -6011,35 +6012,35 @@ function buildAccountEntryRecipe(create, lang = 'en') {
|
|
|
6011
6012
|
/** The sign-in dialog (board 12): Google, or an email and the six-digit code sent to it. Never a password. */
|
|
6012
6013
|
function buildSignInDialogRecipe(create, lang = 'en') {
|
|
6013
6014
|
const t = accountRecipeWords(lang);
|
|
6014
|
-
const dialog = recipePart(create, 'sign-in', 'Dialog', AccountRole.SignIn, Style.Dialog, {}, ACCOUNT_LABELS.signIn, { width: '400px', maxWidth: '100%', display: 'flex', flexDirection: 'column', gap: '14px' });
|
|
6015
|
+
const dialog = recipePart(create, 'sign-in', 'Dialog', AccountRole.SignIn, Style$1.Dialog, {}, ACCOUNT_LABELS.signIn, { width: '400px', maxWidth: '100%', display: 'flex', flexDirection: 'column', gap: '14px' });
|
|
6015
6016
|
writeProp(dialog, 'placement', 'center');
|
|
6016
6017
|
writeProp(dialog, 'closeOnBackdrop', true);
|
|
6017
6018
|
writeProp(dialog, 'showCloseButton', false);
|
|
6018
6019
|
writeProp(dialog, 'ariaLabel', t.title);
|
|
6019
6020
|
const head = recipePart(create, 'sign-in-head', 'Container', null, null, {}, 'Head', { ...ROW, width: '100%', justifyContent: 'space-between', gap: '12px' });
|
|
6020
|
-
const title = recipePart(create, 'sign-in-title', 'Heading', AccountRole.Title, Style.Title, { content: t.title, level: 'h2' }, 'Title', WORDS);
|
|
6021
|
-
const close = labelled(create, 'sign-in-close', AccountRole.Close, Style.Ghost, t.close, 'Close', TEXT_BUTTON, Style.Small);
|
|
6021
|
+
const title = recipePart(create, 'sign-in-title', 'Heading', AccountRole.Title, Style$1.Title, { content: t.title, level: 'h2' }, 'Title', WORDS);
|
|
6022
|
+
const close = labelled(create, 'sign-in-close', AccountRole.Close, Style$1.Ghost, t.close, 'Close', TEXT_BUTTON, Style$1.Small);
|
|
6022
6023
|
onClick(close, 'closeDialog', dialog.id ?? '');
|
|
6023
6024
|
head.children = [title, close];
|
|
6024
|
-
const why = words(create, 'sign-in-why', AccountRole.Why, Style.Small, t.why, 'Why sign in');
|
|
6025
|
+
const why = words(create, 'sign-in-why', AccountRole.Why, Style$1.Small, t.why, 'Why sign in');
|
|
6025
6026
|
const providers = recipePart(create, 'sign-in-providers', 'Container', AccountRole.Providers, null, {}, 'Sign-in providers', { ...COLUMN, gap: '8px' });
|
|
6026
6027
|
providers.children = SIGN_IN_PROVIDERS.map(p => providerButton(create, p, t.providers[p]));
|
|
6027
|
-
const providerError = words(create, 'sign-in-provider-error', AccountRole.ProviderError, Style.Error, '', 'Provider error');
|
|
6028
|
-
const or = words(create, 'sign-in-or', AccountRole.Or, Style.Small, t.or, 'Or', { ...WORDS, width: '100%', textAlign: 'center' });
|
|
6028
|
+
const providerError = words(create, 'sign-in-provider-error', AccountRole.ProviderError, Style$1.Error, '', 'Provider error');
|
|
6029
|
+
const or = words(create, 'sign-in-or', AccountRole.Or, Style$1.Small, t.or, 'Or', { ...WORDS, width: '100%', textAlign: 'center' });
|
|
6029
6030
|
const emailStep = recipePart(create, 'sign-in-email-step', 'Container', AccountRole.EmailStep, null, {}, 'Email step', { ...COLUMN, gap: '10px' });
|
|
6030
|
-
const sendCode = labelled(create, 'sign-in-send-code', AccountRole.SendCode, Style.Primary, t.sendCode, 'Send me a code', FULL);
|
|
6031
|
+
const sendCode = labelled(create, 'sign-in-send-code', AccountRole.SendCode, Style$1.Primary, t.sendCode, 'Send me a code', FULL);
|
|
6031
6032
|
emailStep.children = [
|
|
6032
6033
|
field(create, 'sign-in-email', AccountRole.Email, SignInFieldName.Email, 'email', t.email, t.emailPlaceholder),
|
|
6033
6034
|
sendCode,
|
|
6034
6035
|
];
|
|
6035
6036
|
const codeStep = recipePart(create, 'sign-in-code-step', 'Container', AccountRole.CodeStep, null, {}, 'Code step', { ...COLUMN, gap: '10px' });
|
|
6036
|
-
const sent = words(create, 'sign-in-code-sent', AccountRole.CodeSent, Style.Small, t.codeSent, 'Code sent to');
|
|
6037
|
-
const verify = labelled(create, 'sign-in-verify', AccountRole.Verify, Style.Primary, t.verify, 'Sign in', FULL);
|
|
6037
|
+
const sent = words(create, 'sign-in-code-sent', AccountRole.CodeSent, Style$1.Small, t.codeSent, 'Code sent to');
|
|
6038
|
+
const verify = labelled(create, 'sign-in-verify', AccountRole.Verify, Style$1.Primary, t.verify, 'Sign in', FULL);
|
|
6038
6039
|
const again = recipePart(create, 'sign-in-again', 'Container', null, null, {}, 'Send again', { ...ROW, flexWrap: 'wrap', gap: '4px 12px' });
|
|
6039
6040
|
again.children = [
|
|
6040
|
-
words(create, 'sign-in-code-valid', AccountRole.CodeValid, Style.Small, t.codeValid, 'Valid for', WORDS, 'span'),
|
|
6041
|
-
labelled(create, 'sign-in-send-again', AccountRole.SendAgain, Style.Ghost, t.sendAgain, 'Send again', TEXT_BUTTON, Style.Small),
|
|
6042
|
-
labelled(create, 'sign-in-other-email', AccountRole.OtherEmail, Style.Ghost, t.otherEmail, 'Use another email', TEXT_BUTTON, Style.Small),
|
|
6041
|
+
words(create, 'sign-in-code-valid', AccountRole.CodeValid, Style$1.Small, t.codeValid, 'Valid for', WORDS, 'span'),
|
|
6042
|
+
labelled(create, 'sign-in-send-again', AccountRole.SendAgain, Style$1.Ghost, t.sendAgain, 'Send again', TEXT_BUTTON, Style$1.Small),
|
|
6043
|
+
labelled(create, 'sign-in-other-email', AccountRole.OtherEmail, Style$1.Ghost, t.otherEmail, 'Use another email', TEXT_BUTTON, Style$1.Small),
|
|
6043
6044
|
];
|
|
6044
6045
|
codeStep.children = [
|
|
6045
6046
|
sent,
|
|
@@ -6047,17 +6048,17 @@ function buildSignInDialogRecipe(create, lang = 'en') {
|
|
|
6047
6048
|
verify,
|
|
6048
6049
|
again,
|
|
6049
6050
|
];
|
|
6050
|
-
const dialogError = words(create, 'sign-in-dialog-error', AccountRole.DialogError, Style.Error, '', 'Error');
|
|
6051
|
+
const dialogError = words(create, 'sign-in-dialog-error', AccountRole.DialogError, Style$1.Error, '', 'Error');
|
|
6051
6052
|
dialog.children = [head, why, providers, providerError, or, emailStep, codeStep, dialogError];
|
|
6052
6053
|
return dialog;
|
|
6053
6054
|
}
|
|
6054
6055
|
/** "Continue with <brand>" with the brand's own mark (its button guidelines), wearing the look's secondary button. */
|
|
6055
6056
|
function providerButton(create, provider, label) {
|
|
6056
6057
|
const name = signInProviderName(provider);
|
|
6057
|
-
const button = recipeButton(create, `sign-in-${provider}`, PROVIDER_ROLES[provider], Style.Secondary, `Continue with ${name}`, '', { ...FULL, gap: '8px' });
|
|
6058
|
+
const button = recipeButton(create, `sign-in-${provider}`, PROVIDER_ROLES[provider], Style$1.Secondary, `Continue with ${name}`, '', { ...FULL, gap: '8px' });
|
|
6058
6059
|
button.children = [
|
|
6059
6060
|
recipePart(create, `sign-in-${provider}-mark`, 'Image', null, null, { src: signInProviderMarkUri(provider), alt: '' }, `${name} mark`, { width: '18px', height: '18px', minHeight: 'auto', flexShrink: '0' }),
|
|
6060
|
-
words(create, `sign-in-${provider}-label`, null, Style.Label, label, 'Text', WORDS, 'span'),
|
|
6061
|
+
words(create, `sign-in-${provider}-label`, null, Style$1.Label, label, 'Text', WORDS, 'span'),
|
|
6061
6062
|
];
|
|
6062
6063
|
return button;
|
|
6063
6064
|
}
|
|
@@ -6544,6 +6545,192 @@ async function runAccountAction(el, type) {
|
|
|
6544
6545
|
return false;
|
|
6545
6546
|
}
|
|
6546
6547
|
|
|
6548
|
+
/**
|
|
6549
|
+
* THE CONSENT RECIPE (consent plan C3; award-ingredients-plan AW1, H4) — the cookie banner as ordinary builder nodes, ONE
|
|
6550
|
+
* recipe for the builder's palette and generation-core's composer (each stamps it with its own node factory), so a
|
|
6551
|
+
* generated site's banner and a hand-placed one are the same structure. It moved out of iox-builder (`consent-preset.ts`,
|
|
6552
|
+
* literal Swiss colours) into composite-core with the other recipes; its LOOK is the site's element styles (dialog,
|
|
6553
|
+
* primary / secondary / text button, card), never a colour.
|
|
6554
|
+
*
|
|
6555
|
+
* Banner Dialog consent.banner (`consentRole`, placement bottom, the backdrop decides nothing, ✕ = a no)
|
|
6556
|
+
* › Container › Container (Heading consent.title · Text consent.body · Link consent.privacy?)
|
|
6557
|
+
* · Container (Container consent.choices (ButtonBlock consent.accept · ButtonBlock consent.reject)
|
|
6558
|
+
* · ButtonBlock consent.preferences?)
|
|
6559
|
+
* Preferences Dialog consent.preferences-dialog › Heading · Text · a card per category (Necessary always on;
|
|
6560
|
+
* Analytics / Marketing a `consent-<category>` switch) · row (Reject all | Done · Accept all)
|
|
6561
|
+
* Cookie settings ButtonBlock consent.settings — reopens Preferences (the footer's legal row on a generated site)
|
|
6562
|
+
*
|
|
6563
|
+
* The law in the tree (CONSENT `rules`, R-H4): Accept and Reject are the SAME type on the SAME row of the first layer —
|
|
6564
|
+
* Reject is never a link, never only inside Preferences; Preferences is the only quiet button, and only when two or more
|
|
6565
|
+
* categories are offered (`preferencesFromCategories`); clicking the backdrop decides nothing; the ✕ records a no.
|
|
6566
|
+
* The words are mechanism microcopy for the studio to edit, in the site's language — never policy (D-C7).
|
|
6567
|
+
*/
|
|
6568
|
+
var ConsentRole;
|
|
6569
|
+
(function (ConsentRole) {
|
|
6570
|
+
ConsentRole["Banner"] = "consent.banner";
|
|
6571
|
+
ConsentRole["Title"] = "consent.title";
|
|
6572
|
+
ConsentRole["Body"] = "consent.body";
|
|
6573
|
+
ConsentRole["Privacy"] = "consent.privacy";
|
|
6574
|
+
ConsentRole["Choices"] = "consent.choices";
|
|
6575
|
+
ConsentRole["Accept"] = "consent.accept";
|
|
6576
|
+
ConsentRole["Reject"] = "consent.reject";
|
|
6577
|
+
ConsentRole["Preferences"] = "consent.preferences";
|
|
6578
|
+
ConsentRole["PreferencesDialog"] = "consent.preferences-dialog";
|
|
6579
|
+
ConsentRole["Category"] = "consent.category";
|
|
6580
|
+
ConsentRole["Settings"] = "consent.settings";
|
|
6581
|
+
})(ConsentRole || (ConsentRole = {}));
|
|
6582
|
+
const CONSENT_ROLES = new Set(Object.values(ConsentRole));
|
|
6583
|
+
/** The categories a visitor may refuse (Necessary always runs). */
|
|
6584
|
+
const CONSENT_CHOICE_CATEGORIES = [ConsentCategory.Analytics, ConsentCategory.Marketing];
|
|
6585
|
+
/** CONSENT `rules.preferencesFromCategories`: Preferences is offered only with at least this many categories. */
|
|
6586
|
+
const PREFERENCES_FROM_CATEGORIES = 2;
|
|
6587
|
+
/** The action types the banner's buttons run (actions-core's names). */
|
|
6588
|
+
var ConsentActionType;
|
|
6589
|
+
(function (ConsentActionType) {
|
|
6590
|
+
ConsentActionType["Grant"] = "grantConsent";
|
|
6591
|
+
ConsentActionType["Deny"] = "denyConsent";
|
|
6592
|
+
ConsentActionType["OpenPreferences"] = "openConsentPreferences";
|
|
6593
|
+
ConsentActionType["CloseDialog"] = "closeDialog";
|
|
6594
|
+
})(ConsentActionType || (ConsentActionType = {}));
|
|
6595
|
+
var Style;
|
|
6596
|
+
(function (Style) {
|
|
6597
|
+
Style["Dialog"] = "dialog";
|
|
6598
|
+
Style["Title"] = "h3";
|
|
6599
|
+
Style["Body"] = "small";
|
|
6600
|
+
Style["Link"] = "link";
|
|
6601
|
+
Style["Primary"] = "button-primary";
|
|
6602
|
+
Style["Secondary"] = "button-secondary";
|
|
6603
|
+
Style["Ghost"] = "button-ghost";
|
|
6604
|
+
Style["Label"] = "button-label";
|
|
6605
|
+
Style["Card"] = "card";
|
|
6606
|
+
Style["Field"] = "field";
|
|
6607
|
+
})(Style || (Style = {}));
|
|
6608
|
+
/** The banner's words — mechanism microcopy (never policy), in the site's language. */
|
|
6609
|
+
const CONSENT_WORDS = {
|
|
6610
|
+
en: {
|
|
6611
|
+
title: 'Cookies on this site',
|
|
6612
|
+
body: 'Analytics and marketing cookies run only if you allow them. Necessary ones always run.',
|
|
6613
|
+
accept: 'Accept all', reject: 'Reject all', preferences: 'Preferences', settings: 'Cookie settings', done: 'Done',
|
|
6614
|
+
prefsTitle: 'Your privacy choices',
|
|
6615
|
+
prefsSub: 'Change these any time from “Cookie settings” at the foot of the site.',
|
|
6616
|
+
alwaysOn: 'Always on',
|
|
6617
|
+
categories: {
|
|
6618
|
+
[ConsentCategory.Necessary]: { name: 'Necessary', desc: 'Keeps the site working: your session, your language, this very choice.' },
|
|
6619
|
+
[ConsentCategory.Analytics]: { name: 'Analytics', desc: 'Anonymous counts of visits and pages. Off means the analytics script never loads.' },
|
|
6620
|
+
[ConsentCategory.Marketing]: { name: 'Marketing', desc: 'Ads measurement and remarketing. Off means no ad cookies and no data shared.' },
|
|
6621
|
+
},
|
|
6622
|
+
},
|
|
6623
|
+
he: {
|
|
6624
|
+
title: 'עוגיות באתר הזה',
|
|
6625
|
+
body: 'עוגיות לסטטיסטיקה ולשיווק פועלות רק באישורך. עוגיות הכרחיות פועלות תמיד.',
|
|
6626
|
+
accept: 'לאשר הכול', reject: 'לדחות הכול', preferences: 'העדפות', settings: 'הגדרות עוגיות', done: 'סיום',
|
|
6627
|
+
prefsTitle: 'הבחירות שלך לפרטיות',
|
|
6628
|
+
prefsSub: 'אפשר לשנות בכל עת ב„הגדרות עוגיות” שבתחתית האתר.',
|
|
6629
|
+
alwaysOn: 'תמיד פועלות',
|
|
6630
|
+
categories: {
|
|
6631
|
+
[ConsentCategory.Necessary]: { name: 'הכרחיות', desc: 'שומרות על פעולת האתר: החיבור, השפה והבחירה הזו.' },
|
|
6632
|
+
[ConsentCategory.Analytics]: { name: 'סטטיסטיקה', desc: 'ספירה אנונימית של ביקורים ועמודים. כבוי — הסקריפט לא נטען.' },
|
|
6633
|
+
[ConsentCategory.Marketing]: { name: 'שיווק', desc: 'מדידת פרסום ושיווק חוזר. כבוי — אין עוגיות פרסום ושום מידע לא משותף.' },
|
|
6634
|
+
},
|
|
6635
|
+
},
|
|
6636
|
+
};
|
|
6637
|
+
/** The banner's words in `lang` (English for any language it does not speak yet). */
|
|
6638
|
+
function consentRecipeWords(lang = 'en') {
|
|
6639
|
+
return lang === 'he' ? CONSENT_WORDS.he : CONSENT_WORDS.en;
|
|
6640
|
+
}
|
|
6641
|
+
const CONSENT_LABELS = Object.freeze({ banner: 'Consent banner', preferences: 'Consent preferences', settings: 'Cookie settings' });
|
|
6642
|
+
/** A click on `node` runs these actions in order. */
|
|
6643
|
+
function onClickRun(node, actions) {
|
|
6644
|
+
node.interactions = [{
|
|
6645
|
+
id: `${node.id ?? 'node'}-click`, trigger: 'click',
|
|
6646
|
+
actions: actions.map(a => ({ type: a.type, target: a.target ?? 'self', duration: 0, delay: 0, easing: 'ease' })),
|
|
6647
|
+
}];
|
|
6648
|
+
}
|
|
6649
|
+
/** A button whose words are its own Text (the shop and account recipes' shape). */
|
|
6650
|
+
function button(create, key, role, style, words, label, base = {}) {
|
|
6651
|
+
const node = recipeButton(create, key, role ?? '', style, label, '', { width: 'auto', height: 'auto', flexShrink: '0', ...base });
|
|
6652
|
+
node.children = [recipeText(create, `${key}-label`, null, Style.Label, words, 'Text', WORDS, 'span')];
|
|
6653
|
+
return node;
|
|
6654
|
+
}
|
|
6655
|
+
/** The three roots. Pure over the factory: the builder and the composer get the same tree. */
|
|
6656
|
+
function buildConsentRecipe(create, options = {}) {
|
|
6657
|
+
const t = consentRecipeWords(options.lang);
|
|
6658
|
+
const categories = (options.categories?.length ? options.categories : CONSENT_CHOICE_CATEGORIES)
|
|
6659
|
+
.filter((c, i, all) => c !== ConsentCategory.Necessary && all.indexOf(c) === i);
|
|
6660
|
+
const withPreferences = categories.length >= PREFERENCES_FROM_CATEGORIES;
|
|
6661
|
+
// ── Preferences first: the banner's buttons name it ─────────────────────────────────────────────────────────────
|
|
6662
|
+
const preferences = recipePart(create, 'consent-preferences', 'Dialog', ConsentRole.PreferencesDialog, Style.Dialog, {}, CONSENT_LABELS.preferences, { width: '480px', maxWidth: '100%', display: 'flex', flexDirection: 'column', gap: '12px' });
|
|
6663
|
+
writeProp(preferences, 'placement', 'center');
|
|
6664
|
+
writeProp(preferences, 'closeOnBackdrop', true);
|
|
6665
|
+
writeProp(preferences, 'showCloseButton', true);
|
|
6666
|
+
writeProp(preferences, 'ariaLabel', t.prefsTitle);
|
|
6667
|
+
const card = (key, category, control) => {
|
|
6668
|
+
const node = recipePart(create, key, 'Container', ConsentRole.Category, Style.Card, {}, t.categories[category].name, { ...ROW, width: '100%', alignItems: 'flex-start', gap: '12px', padding: '12px 14px 12px 14px' });
|
|
6669
|
+
const text = recipePart(create, `${key}-text`, 'Container', null, null, {}, 'Words', { ...COLUMN, flexGrow: '1', width: 'auto', gap: '2px' });
|
|
6670
|
+
text.children = [
|
|
6671
|
+
recipeText(create, `${key}-name`, null, Style.Body, t.categories[category].name, 'Name', { ...WORDS, fontWeight: '600' }),
|
|
6672
|
+
recipeText(create, `${key}-desc`, null, Style.Body, t.categories[category].desc, 'Description'),
|
|
6673
|
+
];
|
|
6674
|
+
node.children = [text, control];
|
|
6675
|
+
return node;
|
|
6676
|
+
};
|
|
6677
|
+
const switchOf = (category) => recipePart(create, `consent-${category}-switch`, 'Field', null, Style.Field,
|
|
6678
|
+
// The engine's consent runtime binds the switch to the decision by its name and records on change.
|
|
6679
|
+
{ label: t.categories[category].name, labelHidden: true, control: 'switch', name: `consent-${category}` }, t.categories[category].name, { width: 'auto', flexShrink: '0', minHeight: 'auto', margin: ZERO });
|
|
6680
|
+
const prefsReject = button(create, 'consent-preferences-reject', null, Style.Secondary, t.reject, 'Reject all');
|
|
6681
|
+
onClickRun(prefsReject, [{ type: ConsentActionType.Deny }, { type: ConsentActionType.CloseDialog, target: preferences.id }]);
|
|
6682
|
+
const prefsDone = button(create, 'consent-preferences-done', null, Style.Ghost, t.done, 'Done');
|
|
6683
|
+
onClickRun(prefsDone, [{ type: ConsentActionType.CloseDialog, target: preferences.id }]);
|
|
6684
|
+
const prefsAccept = button(create, 'consent-preferences-accept', null, Style.Primary, t.accept, 'Accept all');
|
|
6685
|
+
onClickRun(prefsAccept, [{ type: ConsentActionType.Grant }, { type: ConsentActionType.CloseDialog, target: preferences.id }]);
|
|
6686
|
+
const end = recipePart(create, 'consent-preferences-end', 'Container', null, null, {}, 'Done and accept', { ...ROW, gap: '8px' });
|
|
6687
|
+
end.children = [prefsDone, prefsAccept];
|
|
6688
|
+
const foot = recipePart(create, 'consent-preferences-foot', 'Container', null, null, {}, 'Buttons', { ...ROW, width: '100%', flexWrap: 'wrap', justifyContent: 'space-between', gap: '8px' });
|
|
6689
|
+
foot.children = [prefsReject, end];
|
|
6690
|
+
preferences.children = [
|
|
6691
|
+
recipePart(create, 'consent-preferences-title', 'Heading', null, Style.Title, { content: t.prefsTitle, level: 'h2' }, 'Title', WORDS),
|
|
6692
|
+
recipeText(create, 'consent-preferences-sub', null, Style.Body, t.prefsSub, 'Where to change it'),
|
|
6693
|
+
card('consent-necessary', ConsentCategory.Necessary, recipeText(create, 'consent-necessary-on', null, Style.Body, t.alwaysOn, 'Always on', { ...WORDS, flexShrink: '0', fontWeight: '600' }, 'span')),
|
|
6694
|
+
...categories.map(c => card(`consent-${c}`, c, switchOf(c))),
|
|
6695
|
+
foot,
|
|
6696
|
+
];
|
|
6697
|
+
// ── The banner ─────────────────────────────────────────────────────────────────────────────────────────────────
|
|
6698
|
+
const banner = recipePart(create, 'consent-banner', 'Dialog', ConsentRole.Banner, Style.Dialog, {}, CONSENT_LABELS.banner, { width: '100%', maxWidth: '100%', display: 'flex', flexDirection: 'column', gap: '0px' });
|
|
6699
|
+
writeProp(banner, 'consentRole', true);
|
|
6700
|
+
writeProp(banner, 'placement', 'bottom');
|
|
6701
|
+
writeProp(banner, 'closeOnBackdrop', false); // clicking away is not consent
|
|
6702
|
+
writeProp(banner, 'showCloseButton', true); // the runtime records ✕ as a no
|
|
6703
|
+
writeProp(banner, 'ariaLabel', t.title);
|
|
6704
|
+
const words = recipePart(create, 'consent-words', 'Container', null, null, {}, 'Words', { ...COLUMN, flexGrow: '1', width: 'auto', gap: '4px' });
|
|
6705
|
+
words.children = [
|
|
6706
|
+
recipePart(create, 'consent-title', 'Heading', ConsentRole.Title, Style.Title, { content: t.title, level: 'h2' }, 'Title', WORDS),
|
|
6707
|
+
recipeText(create, 'consent-body', ConsentRole.Body, Style.Body, t.body, 'Words', { ...WORDS, maxWidth: '560px' }),
|
|
6708
|
+
...(options.privacyRoute
|
|
6709
|
+
? [recipePart(create, 'consent-privacy', 'Link', ConsentRole.Privacy, Style.Link, { label: options.privacyLabel || 'Privacy policy', linkType: 'page', pageRoute: options.privacyRoute }, 'Privacy policy', WORDS)]
|
|
6710
|
+
: []),
|
|
6711
|
+
];
|
|
6712
|
+
const accept = button(create, 'consent-accept', ConsentRole.Accept, Style.Primary, t.accept, 'Accept all');
|
|
6713
|
+
onClickRun(accept, [{ type: ConsentActionType.Grant }, { type: ConsentActionType.CloseDialog, target: banner.id }]);
|
|
6714
|
+
const reject = button(create, 'consent-reject', ConsentRole.Reject, Style.Secondary, t.reject, 'Reject all');
|
|
6715
|
+
onClickRun(reject, [{ type: ConsentActionType.Deny }, { type: ConsentActionType.CloseDialog, target: banner.id }]);
|
|
6716
|
+
const choices = recipePart(create, 'consent-choices', 'Container', ConsentRole.Choices, null, {}, 'Accept and reject', { ...ROW, gap: '8px' });
|
|
6717
|
+
choices.children = [accept, reject];
|
|
6718
|
+
const buttons = recipePart(create, 'consent-buttons', 'Container', null, null, {}, 'Buttons', { ...COLUMN, width: 'auto', flexShrink: '0', alignItems: 'center', gap: '6px' });
|
|
6719
|
+
buttons.children = [choices];
|
|
6720
|
+
if (withPreferences) {
|
|
6721
|
+
const prefs = button(create, 'consent-open-preferences', ConsentRole.Preferences, Style.Ghost, t.preferences, 'Preferences');
|
|
6722
|
+
onClickRun(prefs, [{ type: ConsentActionType.OpenPreferences, target: preferences.id }]);
|
|
6723
|
+
buttons.children.push(prefs);
|
|
6724
|
+
}
|
|
6725
|
+
const row = recipePart(create, 'consent-row', 'Container', null, null, {}, 'Banner row', { ...ROW, width: '100%', flexWrap: 'wrap', justifyContent: 'space-between', gap: '16px' });
|
|
6726
|
+
row.children = [words, buttons];
|
|
6727
|
+
banner.children = [row];
|
|
6728
|
+
// ── The way back ───────────────────────────────────────────────────────────────────────────────────────────────
|
|
6729
|
+
const settings = button(create, 'consent-settings', ConsentRole.Settings, Style.Ghost, t.settings, CONSENT_LABELS.settings);
|
|
6730
|
+
onClickRun(settings, [{ type: ConsentActionType.OpenPreferences, target: preferences.id }]);
|
|
6731
|
+
return { banner, preferences, settings };
|
|
6732
|
+
}
|
|
6733
|
+
|
|
6547
6734
|
/**
|
|
6548
6735
|
* @vectoriox/iox-ui/composite-core — composites built from the builder's own parts (composite-components
|
|
6549
6736
|
* plan §3a). FRAMEWORK-FREE: the builder, the SSR engine and iox-cms (generation-core's composer, the site
|
|
@@ -6559,5 +6746,5 @@ async function runAccountAction(el, type) {
|
|
|
6559
6746
|
* Generated bundle index. Do not edit.
|
|
6560
6747
|
*/
|
|
6561
6748
|
|
|
6562
|
-
export { ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, ACCORDION_DEFAULT_ONS, ACCORDION_ICONS, ACCORDION_ICON_GLYPH, ACCORDION_NEW_ITEM_WORDS, ACCORDION_WORDS, ACCOUNT_GLOBAL_RECIPES, ACCOUNT_HIDDEN_ATTRIBUTE, ACCOUNT_LABELS, ACCOUNT_LIVE_CLASS, ACCOUNT_RECIPES, ACCOUNT_RECIPE_WORDS, ACCOUNT_ROLES, ACTIVATE_ON_ATTRIBUTE, ADDED_HOLD_MS, AccordionClass, AccordionDefaultOn, AccordionEditRefusal, AccordionIcon, AccordionKeyAction, AccordionRole, AccordionRuntime, AccountActionType, AccountRecipe, AccountRole, AccountRuntime, BADGE_TONES, BADGE_TONE_ICONS, BadgeTone, CARD_LAYOUTS, CARD_LAYOUT_CUSTOM, CARD_PARTS, CARD_PARTS_OFF_AT_START, CARD_PART_ROLE, CARD_STACK_BREAKPOINT, CARD_WORDS, CAROUSEL_QUOTES, CART_EMPTY_ATTRIBUTE, CART_LINE_ATTRIBUTE, CART_TITLE_COUNT_ATTRIBUTE, CHIP_ICON, CHIP_STYLE, COLOUR_OPTION_NAMES, COMPOSITE_ATTRIBUTE, COMPOSITE_KIND_ROLES, COMPOSITE_ROLE_SPECS, COUNTER_COUNT, COUNTER_ENTRANCE, COUNTER_SAMPLE_WORDS, CardLayout, CardPart, CardRole, CarouselA11y, CompositeBehaviourTrait, CompositeItemAction, CompositeKind, DEFAULT_ON_ATTRIBUTE, DISCLOSURE_ITEM_KEY, DISCLOSURE_WORDS, DisclosureRole, EXCLUSIVE_KIND_ROLES, ExclusiveRuntime, ITEM_KEY_ATTRIBUTE, ITEM_OFF_EVENT, ITEM_ON_EVENT, ITEM_OPEN_STATE, LIGHTBOX_ARROWS_HIDE_AT, LIGHTBOX_LABEL, MARQUEE_DEFAULTS, MARQUEE_DEFAULT_SPEED_PX, MARQUEE_KEYFRAMES, MARQUEE_MAX_COPIES, MARQUEE_MIN_LOOP_S, MARQUEE_NODE_ATTRIBUTES, MARQUEE_NOSCRIPT_CSS, MARQUEE_PAUSE_GLYPH, MARQUEE_PLAY_GLYPH, MARQUEE_SAMPLE_WORDS, MARQUEE_SPEED_FACTOR, MARQUEE_WORDS, MULTIPLE_ATTRIBUTE, MarqueeAttribute, MarqueeDirection, MarqueeRole, MarqueeRuntime, MarqueeSpeed, MarqueeStyle, MarqueeTrait, NAMED_SWATCHES, NO_ELEMENT_STYLE, ON_ATTRIBUTE, ON_STATE, ORIENTATION_ATTRIBUTE, PILL_LABEL_STYLE, PROVIDER_ROLES, SCOPE_ATTRIBUTE, SEGMENTED_BADGE_TONE, SEGMENTED_BADGE_WORDS, SEGMENTED_BEHAVIOUR, SEGMENTED_MAX_OPTIONS, SEGMENTED_MIN_OPTIONS, SEGMENTED_NAME, SEGMENTED_NEW_OPTION_WORDS, SEGMENTED_WORDS, SHOP_ADDED_ATTRIBUTE, SHOP_BINDS, SHOP_CHIP_MAX, SHOP_CLONE_ATTRIBUTE, SHOP_GLOBAL_RECIPES, SHOP_HIDDEN_ATTRIBUTE, SHOP_LABELS, SHOP_LIVE_CLASS, SHOP_RECIPES, SHOP_RECIPE_WORDS, SHOP_ROLES, SHOP_SELECT_CLASS, SHOP_UNUSED_ATTRIBUTE, SIGNED_IN_ATTRIBUTE, SIGN_IN_STEP_ATTRIBUTE, SLIDER_BAR_ORDER, SLIDER_NAME_TRAIT, SLIDER_PART_GLYPH, SLIDER_PART_ROLES, SLIDER_PLACEMENT_TRAIT, SLIDER_PLAY_GLYPH, SLIDER_SCROLL_PLAYS_TRAIT, SLIDER_SWAPPING_ATTRIBUTE, SLIDER_TEXT_ATTRIBUTE, SLIDER_TYPE, SLIDER_WORDS, SLIDE_CAPTION_TRAIT, SLIDE_TO_ROW, SLIDE_TYPE, SWIPER_THEME_COLOR, SceneRole, SegmentedEditRefusal, SegmentedRole, SegmentedTrait, ShopActionType, ShopBindTarget, ShopPickerKind, ShopRecipe, ShopRole, ShopRuntime, SignInFieldName, SignInStep, SliderFlag, SliderPlacement, SliderRole, StructureEdit, StructureRefusal, TABS_ACTIVATE_ONS, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, TABS_LABEL_BIND_PROP, TABS_NEW_TAB_WORDS, TABS_ORIENTATIONS, TABS_STACK_BREAKPOINT, TABS_TEXT_BIND_PROP, TABS_WORDS, TabsActivateOn, TabsBehaviourTrait, TabsEditRefusal, TabsOrientation, TabsRole, UNTIL_FOUND, acceptsRefusal, accordionAnswerOf, accordionBehaviour, accordionDomIds, accordionFocusIndex, accordionHeadingLevel, accordionItemAttributes, accordionItemLabel, accordionItemOf, accordionItemState, accordionItems, accordionKeyAction, accordionPanelAttributes, accordionPanelOf, accordionPartStyle, accordionQuestionOf, accordionRegionAttributes, accordionRemovalRefusal, accordionRootAttributes, accordionRootOf, accordionRootOfItem, accordionRuntimeOf, accordionScope, accordionToContent, accordionToManual, accordionTrackAttributes, accordionTriggerAttributes, accordionTriggerOf, accountRecipeWords, accountRuntimeOf, accountSelector, addAccordionItem, addSegmentedOption, addTabPair, applyCardLayout, attachAccordionAt, attachAccordions, attachAccount, attachCarouselA11y, attachCompositeAt, attachExclusiveAt, attachMarquees, attachShop, attachSliderBar, badgeStyleId, badgeToneOf, bindShopPart, buildAccordionItem, buildAccordionRecipe, buildAccountEntryRecipe, buildAccountMenuRecipe, buildAddToCartRecipe, buildBadge, buildBuyNowRecipe, buildCardRecipe, buildCarouselRecipe, buildCartButtonRecipe, buildCartDrawerRecipe, buildChip, buildCompositeIcon, buildCounterRecipe, buildDisclosureRecipe, buildLightboxRecipe, buildMarqueeRecipe, buildPriceRecipe, buildQuantityRecipe, buildReadingBarRecipe, buildSegmentedOption, buildSegmentedRecipe, buildSignInDialogRecipe, buildSliderPart, buildTabPair, buildTabsRecipe, buildVariantPickerRecipe, canOpenAtClickedItem, cardPartsOf, cardRootOf, cardTitleOf, carouselOf, clearLayerStyles, closeAccordionItem, closestAccordion, closestAccordionItem, closestExclusive, closestExclusiveItemPart, compositeItemOf, compositeItems, compositeKindOfRole, compositeRootOf, compositeRowKeys, compositeScopeId, detachAccordion, detectAccordionIcon, detectCardLayout, disclosureOpenByDefault, domSafeKey, exclusiveBehaviourOf, exclusiveDefaultOf, exclusiveItemLabel, exclusiveItemPartOf, exclusiveKindHasPanels, exclusiveKindOf, exclusiveLabelOf, exclusivePartAttributes, exclusiveRootAttributesOf, exclusiveRootHoldsTriggers, exclusiveRootOf, exclusiveRuntimeOf, exclusiveScopeFor, findByRole, hasLabelledRegion, hasSliderParts, headerBehaviourOfNode, initialAccordionOpen, isAccordionFromContent, isAccordionItemOn, isAccordionPart, isAccordionRoot, isAccountRole, isAnyCompositeRoot, isCardLinked, isCardRoot, isCompositeItem, isCompositeItemOn, isCompositePanel, isCompositeRoot, isCompositeTrigger, isDisclosurePart, isDisclosureRoot, isExclusiveItemOn, isExclusiveItemPart, isExclusiveKind, isExclusiveList, isExclusivePanel, isExclusivePanels, isExclusiveRoot, isExclusiveTrigger, isExclusiveTriggerDisabled, isLockedPart, isMarqueeRoot, isPartOfExclusiveScope, isPillNode, isSegmentedPart, isSegmentedRoot, isShopRole, isSlider, isSliderPart, isTabsFromContent, isTabsPart, isTabsRoot, isToggleKind, itemOpenTriggerIds, lightboxSliderOf, lookMarqueeSpeed, makeCompositePart, manualTabKeys, marqueeCopyCount, marqueeLoopSeconds, marqueePartElement, marqueePauseAttributes, marqueePauseGlyph, marqueeRootAttributes, marqueeRootOf, marqueeSettings, marqueeWords, migrateSliderControls, moveAccordionItem, moveSegmentedOption, moveTabPair, needsSliderMigration, nextAccordionState, nextItemKey, nextSegmentedKey, nextTabKey, onAccordionItemState, onCompositeItemState, onExclusiveItemState, openAccordionItem, parentInComposite, pickAccordionAutoBinds, pickTabsAutoBinds, readLayerStyle, readProp, readStyle, removeFromComposite, removeSegmentedOption, removeTabPair, renameAccordionItem, renameSegmentedOption, renameTab, repeatSourceOf, rowIndexOf, rowItemKey, rowSourceOf, runAccountAction, runCompositeItemAction, runShopAction, sameRepeatSource, segmentedAddRefusal, segmentedBadgeOf, segmentedDefaultOn, segmentedItemTriggerIds, segmentedKeyAction, segmentedKeys, segmentedLabel, segmentedOptionAttributes, segmentedOptionKey, segmentedOptionLabel, segmentedOptionLabelNodeOf, segmentedOptions, segmentedPartAttributes, segmentedRemovalRefusal, segmentedRootAttributes, segmentedRootAttributesOf, segmentedScopeFor, serializeDomAttributes, setAccordionBehaviour, setAccordionIcon, setBadgeTone, setCardLinked, setCardPart, setHeaderBehaviour, setMarqueeSettings, setSegmentedBadge, setSegmentedBehaviour, setSliderFlag, setSliderPlacement, setTabsBehaviour, shopPickerKind, shopRuntimeOf, shopSelector, shouldScrollToItem, slideIndexForRow, sliderCaptionOf, sliderCountText, sliderLiveRegion, sliderPart, sliderPartElement, sliderPauseAttributes, sliderPauseGlyph, sliderPlacementOf, sliderSlides, sliderWords, splitSliderChildren, structureRefusal, swatchFill, syncSliderParts, tabLabel, tabLabelNodeOf, tabListAttributes, tabPanelAttributes, tabPanelImageOf, tabPanelOf, tabPanelTextOf, tabPartKey, tabTriggerAttributes, tabTriggerOf, tabsBehaviour, tabsItemState, tabsItemTriggerIds, tabsKeyAction, tabsLabel, tabsListOf, tabsPanels, tabsPanelsOf, tabsPartAttributes, tabsPartnerOf, tabsRemovalRefusal, tabsRootAttributes, tabsScope, tabsScopeFor, tabsToContent, tabsToManual, tabsTriggers, variantGroupLabel, variantGroupNote, walkComposite, wantedSliderParts, writeLayerStyles, writeProp, writeStyles };
|
|
6749
|
+
export { ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, ACCORDION_DEFAULT_ONS, ACCORDION_ICONS, ACCORDION_ICON_GLYPH, ACCORDION_NEW_ITEM_WORDS, ACCORDION_WORDS, ACCOUNT_GLOBAL_RECIPES, ACCOUNT_HIDDEN_ATTRIBUTE, ACCOUNT_LABELS, ACCOUNT_LIVE_CLASS, ACCOUNT_RECIPES, ACCOUNT_RECIPE_WORDS, ACCOUNT_ROLES, ACTIVATE_ON_ATTRIBUTE, ADDED_HOLD_MS, AccordionClass, AccordionDefaultOn, AccordionEditRefusal, AccordionIcon, AccordionKeyAction, AccordionRole, AccordionRuntime, AccountActionType, AccountRecipe, AccountRole, AccountRuntime, BADGE_TONES, BADGE_TONE_ICONS, BadgeTone, CARD_LAYOUTS, CARD_LAYOUT_CUSTOM, CARD_PARTS, CARD_PARTS_OFF_AT_START, CARD_PART_ROLE, CARD_STACK_BREAKPOINT, CARD_WORDS, CAROUSEL_QUOTES, CART_EMPTY_ATTRIBUTE, CART_LINE_ATTRIBUTE, CART_TITLE_COUNT_ATTRIBUTE, CHIP_ICON, CHIP_STYLE, COLOUR_OPTION_NAMES, COMPOSITE_ATTRIBUTE, COMPOSITE_KIND_ROLES, COMPOSITE_ROLE_SPECS, CONSENT_CHOICE_CATEGORIES, CONSENT_LABELS, CONSENT_ROLES, COUNTER_COUNT, COUNTER_ENTRANCE, COUNTER_SAMPLE_WORDS, CardLayout, CardPart, CardRole, CarouselA11y, CompositeBehaviourTrait, CompositeItemAction, CompositeKind, ConsentActionType, ConsentRole, DEFAULT_ON_ATTRIBUTE, DISCLOSURE_ITEM_KEY, DISCLOSURE_WORDS, DisclosureRole, EXCLUSIVE_KIND_ROLES, ExclusiveRuntime, ITEM_KEY_ATTRIBUTE, ITEM_OFF_EVENT, ITEM_ON_EVENT, ITEM_OPEN_STATE, LIGHTBOX_ARROWS_HIDE_AT, LIGHTBOX_LABEL, MARQUEE_DEFAULTS, MARQUEE_DEFAULT_SPEED_PX, MARQUEE_KEYFRAMES, MARQUEE_MAX_COPIES, MARQUEE_MIN_LOOP_S, MARQUEE_NODE_ATTRIBUTES, MARQUEE_NOSCRIPT_CSS, MARQUEE_PAUSE_GLYPH, MARQUEE_PLAY_GLYPH, MARQUEE_SAMPLE_WORDS, MARQUEE_SPEED_FACTOR, MARQUEE_WORDS, MULTIPLE_ATTRIBUTE, MarqueeAttribute, MarqueeDirection, MarqueeRole, MarqueeRuntime, MarqueeSpeed, MarqueeStyle, MarqueeTrait, NAMED_SWATCHES, NO_ELEMENT_STYLE, ON_ATTRIBUTE, ON_STATE, ORIENTATION_ATTRIBUTE, PILL_LABEL_STYLE, PREFERENCES_FROM_CATEGORIES, PROVIDER_ROLES, SCOPE_ATTRIBUTE, SEGMENTED_BADGE_TONE, SEGMENTED_BADGE_WORDS, SEGMENTED_BEHAVIOUR, SEGMENTED_MAX_OPTIONS, SEGMENTED_MIN_OPTIONS, SEGMENTED_NAME, SEGMENTED_NEW_OPTION_WORDS, SEGMENTED_WORDS, SHOP_ADDED_ATTRIBUTE, SHOP_BINDS, SHOP_CHIP_MAX, SHOP_CLONE_ATTRIBUTE, SHOP_GLOBAL_RECIPES, SHOP_HIDDEN_ATTRIBUTE, SHOP_LABELS, SHOP_LIVE_CLASS, SHOP_RECIPES, SHOP_RECIPE_WORDS, SHOP_ROLES, SHOP_SELECT_CLASS, SHOP_UNUSED_ATTRIBUTE, SIGNED_IN_ATTRIBUTE, SIGN_IN_STEP_ATTRIBUTE, SLIDER_BAR_ORDER, SLIDER_NAME_TRAIT, SLIDER_PART_GLYPH, SLIDER_PART_ROLES, SLIDER_PLACEMENT_TRAIT, SLIDER_PLAY_GLYPH, SLIDER_SCROLL_PLAYS_TRAIT, SLIDER_SWAPPING_ATTRIBUTE, SLIDER_TEXT_ATTRIBUTE, SLIDER_TYPE, SLIDER_WORDS, SLIDE_CAPTION_TRAIT, SLIDE_TO_ROW, SLIDE_TYPE, SWIPER_THEME_COLOR, SceneRole, SegmentedEditRefusal, SegmentedRole, SegmentedTrait, ShopActionType, ShopBindTarget, ShopPickerKind, ShopRecipe, ShopRole, ShopRuntime, SignInFieldName, SignInStep, SliderFlag, SliderPlacement, SliderRole, StructureEdit, StructureRefusal, TABS_ACTIVATE_ONS, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, TABS_LABEL_BIND_PROP, TABS_NEW_TAB_WORDS, TABS_ORIENTATIONS, TABS_STACK_BREAKPOINT, TABS_TEXT_BIND_PROP, TABS_WORDS, TabsActivateOn, TabsBehaviourTrait, TabsEditRefusal, TabsOrientation, TabsRole, UNTIL_FOUND, acceptsRefusal, accordionAnswerOf, accordionBehaviour, accordionDomIds, accordionFocusIndex, accordionHeadingLevel, accordionItemAttributes, accordionItemLabel, accordionItemOf, accordionItemState, accordionItems, accordionKeyAction, accordionPanelAttributes, accordionPanelOf, accordionPartStyle, accordionQuestionOf, accordionRegionAttributes, accordionRemovalRefusal, accordionRootAttributes, accordionRootOf, accordionRootOfItem, accordionRuntimeOf, accordionScope, accordionToContent, accordionToManual, accordionTrackAttributes, accordionTriggerAttributes, accordionTriggerOf, accountRecipeWords, accountRuntimeOf, accountSelector, addAccordionItem, addSegmentedOption, addTabPair, applyCardLayout, attachAccordionAt, attachAccordions, attachAccount, attachCarouselA11y, attachCompositeAt, attachExclusiveAt, attachMarquees, attachShop, attachSliderBar, badgeStyleId, badgeToneOf, bindShopPart, buildAccordionItem, buildAccordionRecipe, buildAccountEntryRecipe, buildAccountMenuRecipe, buildAddToCartRecipe, buildBadge, buildBuyNowRecipe, buildCardRecipe, buildCarouselRecipe, buildCartButtonRecipe, buildCartDrawerRecipe, buildChip, buildCompositeIcon, buildConsentRecipe, buildCounterRecipe, buildDisclosureRecipe, buildLightboxRecipe, buildMarqueeRecipe, buildPriceRecipe, buildQuantityRecipe, buildReadingBarRecipe, buildSegmentedOption, buildSegmentedRecipe, buildSignInDialogRecipe, buildSliderPart, buildTabPair, buildTabsRecipe, buildVariantPickerRecipe, canOpenAtClickedItem, cardPartsOf, cardRootOf, cardTitleOf, carouselOf, clearLayerStyles, closeAccordionItem, closestAccordion, closestAccordionItem, closestExclusive, closestExclusiveItemPart, compositeItemOf, compositeItems, compositeKindOfRole, compositeRootOf, compositeRowKeys, compositeScopeId, consentRecipeWords, detachAccordion, detectAccordionIcon, detectCardLayout, disclosureOpenByDefault, domSafeKey, exclusiveBehaviourOf, exclusiveDefaultOf, exclusiveItemLabel, exclusiveItemPartOf, exclusiveKindHasPanels, exclusiveKindOf, exclusiveLabelOf, exclusivePartAttributes, exclusiveRootAttributesOf, exclusiveRootHoldsTriggers, exclusiveRootOf, exclusiveRuntimeOf, exclusiveScopeFor, findByRole, hasLabelledRegion, hasSliderParts, headerBehaviourOfNode, initialAccordionOpen, isAccordionFromContent, isAccordionItemOn, isAccordionPart, isAccordionRoot, isAccountRole, isAnyCompositeRoot, isCardLinked, isCardRoot, isCompositeItem, isCompositeItemOn, isCompositePanel, isCompositeRoot, isCompositeTrigger, isDisclosurePart, isDisclosureRoot, isExclusiveItemOn, isExclusiveItemPart, isExclusiveKind, isExclusiveList, isExclusivePanel, isExclusivePanels, isExclusiveRoot, isExclusiveTrigger, isExclusiveTriggerDisabled, isLockedPart, isMarqueeRoot, isPartOfExclusiveScope, isPillNode, isSegmentedPart, isSegmentedRoot, isShopRole, isSlider, isSliderPart, isTabsFromContent, isTabsPart, isTabsRoot, isToggleKind, itemOpenTriggerIds, lightboxSliderOf, lookMarqueeSpeed, makeCompositePart, manualTabKeys, marqueeCopyCount, marqueeLoopSeconds, marqueePartElement, marqueePauseAttributes, marqueePauseGlyph, marqueeRootAttributes, marqueeRootOf, marqueeSettings, marqueeWords, migrateSliderControls, moveAccordionItem, moveSegmentedOption, moveTabPair, needsSliderMigration, nextAccordionState, nextItemKey, nextSegmentedKey, nextTabKey, onAccordionItemState, onCompositeItemState, onExclusiveItemState, openAccordionItem, parentInComposite, pickAccordionAutoBinds, pickTabsAutoBinds, readLayerStyle, readProp, readStyle, removeFromComposite, removeSegmentedOption, removeTabPair, renameAccordionItem, renameSegmentedOption, renameTab, repeatSourceOf, rowIndexOf, rowItemKey, rowSourceOf, runAccountAction, runCompositeItemAction, runShopAction, sameRepeatSource, segmentedAddRefusal, segmentedBadgeOf, segmentedDefaultOn, segmentedItemTriggerIds, segmentedKeyAction, segmentedKeys, segmentedLabel, segmentedOptionAttributes, segmentedOptionKey, segmentedOptionLabel, segmentedOptionLabelNodeOf, segmentedOptions, segmentedPartAttributes, segmentedRemovalRefusal, segmentedRootAttributes, segmentedRootAttributesOf, segmentedScopeFor, serializeDomAttributes, setAccordionBehaviour, setAccordionIcon, setBadgeTone, setCardLinked, setCardPart, setHeaderBehaviour, setMarqueeSettings, setSegmentedBadge, setSegmentedBehaviour, setSliderFlag, setSliderPlacement, setTabsBehaviour, shopPickerKind, shopRuntimeOf, shopSelector, shouldScrollToItem, slideIndexForRow, sliderCaptionOf, sliderCountText, sliderLiveRegion, sliderPart, sliderPartElement, sliderPauseAttributes, sliderPauseGlyph, sliderPlacementOf, sliderSlides, sliderWords, splitSliderChildren, structureRefusal, swatchFill, syncSliderParts, tabLabel, tabLabelNodeOf, tabListAttributes, tabPanelAttributes, tabPanelImageOf, tabPanelOf, tabPanelTextOf, tabPartKey, tabTriggerAttributes, tabTriggerOf, tabsBehaviour, tabsItemState, tabsItemTriggerIds, tabsKeyAction, tabsLabel, tabsListOf, tabsPanels, tabsPanelsOf, tabsPartAttributes, tabsPartnerOf, tabsRemovalRefusal, tabsRootAttributes, tabsScope, tabsScopeFor, tabsToContent, tabsToManual, tabsTriggers, variantGroupLabel, variantGroupNote, walkComposite, wantedSliderParts, writeLayerStyles, writeProp, writeStyles };
|
|
6563
6750
|
//# sourceMappingURL=vectoriox-iox-ui-composite-core.mjs.map
|