@vectoriox/iox-ui 5.125.0 → 5.127.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/actions-core/index.d.ts +74 -2
- package/design-core/index.d.ts +148 -2
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs +64 -1
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +191 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +3435 -158
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +482 -0
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +8 -2
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +2982 -178
- package/harness-core/index.d.ts +270 -0
- package/package.json +1 -1
- package/src/actions-core/public-api.ts +1 -0
- package/src/actions-core/reveal-origin.ts +102 -0
- package/src/design-core/flavor-spec.generated.ts +47 -0
- package/src/design-core/menu-look.ts +157 -0
- package/src/design-core/public-api.ts +1 -0
- package/src/generation-core/check-list.ts +28 -9
- package/src/generation-core/compose-site.ts +10 -5
- package/src/generation-core/footer-mix.ts +67 -8
- package/src/generation-core/header-mix.ts +38 -4
- package/src/generation-core/layout-language.ts +18 -0
- package/src/generation-core/nav-shape.ts +80 -1
- package/src/generation-core/site-spec.generated.ts +3117 -39
- package/src/harness-core/harness-spec.generated.ts +482 -0
- package/styles/iox-design.css +374 -2
|
@@ -1078,6 +1078,11 @@ export const SPEC_TIERS = {
|
|
|
1078
1078
|
"type": "color",
|
|
1079
1079
|
"default": "var(--iox-line)"
|
|
1080
1080
|
},
|
|
1081
|
+
{
|
|
1082
|
+
"name": "menu-edge",
|
|
1083
|
+
"type": "color",
|
|
1084
|
+
"default": "var(--iox-accent)"
|
|
1085
|
+
},
|
|
1081
1086
|
{
|
|
1082
1087
|
"name": "image-radius",
|
|
1083
1088
|
"type": "radius",
|
|
@@ -7153,6 +7158,13 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
7153
7158
|
"group": "components",
|
|
7154
7159
|
"value": "var(--iox-line)"
|
|
7155
7160
|
},
|
|
7161
|
+
{
|
|
7162
|
+
"name": "menu-edge",
|
|
7163
|
+
"tier": "component",
|
|
7164
|
+
"type": "color",
|
|
7165
|
+
"group": "components",
|
|
7166
|
+
"value": "var(--iox-accent)"
|
|
7167
|
+
},
|
|
7156
7168
|
{
|
|
7157
7169
|
"name": "image-radius",
|
|
7158
7170
|
"tier": "component",
|
|
@@ -9504,6 +9516,13 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
9504
9516
|
"group": "components",
|
|
9505
9517
|
"value": "var(--iox-line)"
|
|
9506
9518
|
},
|
|
9519
|
+
{
|
|
9520
|
+
"name": "menu-edge",
|
|
9521
|
+
"tier": "component",
|
|
9522
|
+
"type": "color",
|
|
9523
|
+
"group": "components",
|
|
9524
|
+
"value": "var(--iox-accent)"
|
|
9525
|
+
},
|
|
9507
9526
|
{
|
|
9508
9527
|
"name": "image-radius",
|
|
9509
9528
|
"tier": "component",
|
|
@@ -11859,6 +11878,13 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
11859
11878
|
"group": "components",
|
|
11860
11879
|
"value": "var(--iox-line)"
|
|
11861
11880
|
},
|
|
11881
|
+
{
|
|
11882
|
+
"name": "menu-edge",
|
|
11883
|
+
"tier": "component",
|
|
11884
|
+
"type": "color",
|
|
11885
|
+
"group": "components",
|
|
11886
|
+
"value": "var(--iox-accent)"
|
|
11887
|
+
},
|
|
11862
11888
|
{
|
|
11863
11889
|
"name": "image-radius",
|
|
11864
11890
|
"tier": "component",
|
|
@@ -14238,6 +14264,13 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
14238
14264
|
"group": "components",
|
|
14239
14265
|
"value": "var(--iox-line)"
|
|
14240
14266
|
},
|
|
14267
|
+
{
|
|
14268
|
+
"name": "menu-edge",
|
|
14269
|
+
"tier": "component",
|
|
14270
|
+
"type": "color",
|
|
14271
|
+
"group": "components",
|
|
14272
|
+
"value": "var(--iox-accent)"
|
|
14273
|
+
},
|
|
14241
14274
|
{
|
|
14242
14275
|
"name": "image-radius",
|
|
14243
14276
|
"tier": "component",
|
|
@@ -16598,6 +16631,13 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
16598
16631
|
"group": "components",
|
|
16599
16632
|
"value": "var(--iox-line)"
|
|
16600
16633
|
},
|
|
16634
|
+
{
|
|
16635
|
+
"name": "menu-edge",
|
|
16636
|
+
"tier": "component",
|
|
16637
|
+
"type": "color",
|
|
16638
|
+
"group": "components",
|
|
16639
|
+
"value": "var(--iox-accent)"
|
|
16640
|
+
},
|
|
16601
16641
|
{
|
|
16602
16642
|
"name": "image-radius",
|
|
16603
16643
|
"tier": "component",
|
|
@@ -18954,6 +18994,13 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
18954
18994
|
"group": "components",
|
|
18955
18995
|
"value": "var(--iox-line)"
|
|
18956
18996
|
},
|
|
18997
|
+
{
|
|
18998
|
+
"name": "menu-edge",
|
|
18999
|
+
"tier": "component",
|
|
19000
|
+
"type": "color",
|
|
19001
|
+
"group": "components",
|
|
19002
|
+
"value": "var(--iox-accent)"
|
|
19003
|
+
},
|
|
18957
19004
|
{
|
|
18958
19005
|
"name": "image-radius",
|
|
18959
19006
|
"tier": "component",
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a site's MENU looks and moves (header-ingredients-plan.md HI2a; HB-D1/HB-D2, header-builder board v2). The header
|
|
3
|
+
* table's menu words — its form (drawer · full · top panel · card · mega), how it opens (slide · fade · zoom · circle ·
|
|
4
|
+
* torn), the button that opens it (lines · word · dots) and what the mouse does in it (line · dim · row · none) — become
|
|
5
|
+
* TRAITS on the menu's own nodes (the Dialog, the menu button and its Close) and ONE answer every renderer applies: the
|
|
6
|
+
* attributes below, which the shared CSS (`iox-design.css`) reads. A menu with none of them renders exactly as the drawer
|
|
7
|
+
* always did (R-H4): today's look is every default, and a default writes nothing.
|
|
8
|
+
*
|
|
9
|
+
* Framework-free: the composer (generation-core), the builder and both engine paths read it.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export enum MenuForm {
|
|
13
|
+
/** A sheet from the menu button's edge — the menu every site had before HI2. */
|
|
14
|
+
Drawer = 'drawer',
|
|
15
|
+
/** The whole screen: an index of the page names. */
|
|
16
|
+
Full = 'full',
|
|
17
|
+
/** A panel that drops from the top, as tall as its content (past 80dvh it scrolls inside itself — T7). */
|
|
18
|
+
Panel = 'panel',
|
|
19
|
+
/** A card that opens from the menu button's corner. */
|
|
20
|
+
Card = 'card',
|
|
21
|
+
/** A wide panel under the bar, its pages in columns. */
|
|
22
|
+
Mega = 'mega',
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export enum MenuReveal {
|
|
26
|
+
/** A drawer from its edge; any other menu a short drop (today's motion). */
|
|
27
|
+
Slide = 'slide',
|
|
28
|
+
Fade = 'fade',
|
|
29
|
+
/** Grows from the menu button's centre (transform-origin = the opener). */
|
|
30
|
+
Zoom = 'zoom',
|
|
31
|
+
/** `clip-path: circle()` grown from the menu button. */
|
|
32
|
+
Circle = 'circle',
|
|
33
|
+
/** Our own ragged edge (HB-D7) grown from the menu button, rimmed in the look's `menu-edge`. */
|
|
34
|
+
Torn = 'torn',
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export enum MenuButtonKind {
|
|
38
|
+
/** Three lines that become a cross (the list icon, the drawer's Close an X — today's). */
|
|
39
|
+
Lines = 'lines',
|
|
40
|
+
/** The word Menu, which becomes Close. */
|
|
41
|
+
Word = 'word',
|
|
42
|
+
/** Nine dots that spread under the mouse and become a cross. */
|
|
43
|
+
Dots = 'dots',
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export enum MenuHover {
|
|
47
|
+
/** A line draws under the page name (today's: the drawn underline of a navigation's links). */
|
|
48
|
+
Line = 'line',
|
|
49
|
+
/** The other page names dim. */
|
|
50
|
+
Dim = 'dim',
|
|
51
|
+
/** The row under the mouse lights up. */
|
|
52
|
+
Row = 'row',
|
|
53
|
+
None = 'none',
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** What a card, top panel or mega menu becomes on a phone: the drawer, or the full-screen index (the phone ingredient). */
|
|
57
|
+
export enum MenuPhoneForm {
|
|
58
|
+
Drawer = 'drawer',
|
|
59
|
+
Full = 'full',
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** The traits, stored in the node's props (no default: a node saved before HI2 saves none). */
|
|
63
|
+
export enum MenuTrait {
|
|
64
|
+
/** On the menu (the Dialog). */
|
|
65
|
+
Form = 'menuForm',
|
|
66
|
+
Reveal = 'menuReveal',
|
|
67
|
+
Hover = 'menuHover',
|
|
68
|
+
Phone = 'menuPhone',
|
|
69
|
+
/** On the menu button AND the menu's Close (the same button, open). */
|
|
70
|
+
Button = 'menuButton',
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export enum MenuAttribute {
|
|
74
|
+
Form = 'data-iox-menu',
|
|
75
|
+
Reveal = 'data-iox-reveal',
|
|
76
|
+
Hover = 'data-iox-menu-hover',
|
|
77
|
+
Phone = 'data-iox-menu-phone',
|
|
78
|
+
Button = 'data-iox-menu-button',
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/** Every attribute a menu part may carry (what a renderer's attribute sync owns). */
|
|
82
|
+
export const MENU_ATTRIBUTES: ReadonlyArray<string> = Object.values(MenuAttribute);
|
|
83
|
+
|
|
84
|
+
/** A menu's whole look. */
|
|
85
|
+
export interface MenuLook {
|
|
86
|
+
form: MenuForm;
|
|
87
|
+
reveal: MenuReveal;
|
|
88
|
+
button: MenuButtonKind;
|
|
89
|
+
hover: MenuHover;
|
|
90
|
+
phone: MenuPhoneForm;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** Today's menu, every default (R-H4: it writes nothing). */
|
|
94
|
+
export const DEFAULT_MENU_LOOK: Readonly<MenuLook> = Object.freeze({
|
|
95
|
+
form: MenuForm.Drawer,
|
|
96
|
+
reveal: MenuReveal.Slide,
|
|
97
|
+
button: MenuButtonKind.Lines,
|
|
98
|
+
hover: MenuHover.Line,
|
|
99
|
+
phone: MenuPhoneForm.Drawer,
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
const valueOf = <E extends string>(values: ReadonlyArray<E>, fallback: E) => (v: unknown): E =>
|
|
103
|
+
typeof v === 'string' && (values as ReadonlyArray<string>).includes(v) ? v as E : fallback;
|
|
104
|
+
|
|
105
|
+
export const menuFormOf = valueOf(Object.values(MenuForm), DEFAULT_MENU_LOOK.form);
|
|
106
|
+
export const menuRevealOf = valueOf(Object.values(MenuReveal), DEFAULT_MENU_LOOK.reveal);
|
|
107
|
+
export const menuButtonOf = valueOf(Object.values(MenuButtonKind), DEFAULT_MENU_LOOK.button);
|
|
108
|
+
export const menuHoverOf = valueOf(Object.values(MenuHover), DEFAULT_MENU_LOOK.hover);
|
|
109
|
+
export const menuPhoneOf = valueOf(Object.values(MenuPhoneForm), DEFAULT_MENU_LOOK.phone);
|
|
110
|
+
|
|
111
|
+
/** Reads a trait (`props` on a serialized node). */
|
|
112
|
+
export type MenuTraitReader = (name: MenuTrait) => unknown;
|
|
113
|
+
|
|
114
|
+
/** The attributes a MENU (the Dialog) renders from its traits — `{}` for today's drawer. */
|
|
115
|
+
export function menuDialogAttributes(read: MenuTraitReader): Record<string, string> {
|
|
116
|
+
const out: Record<string, string> = {};
|
|
117
|
+
const form = menuFormOf(read(MenuTrait.Form));
|
|
118
|
+
const reveal = menuRevealOf(read(MenuTrait.Reveal));
|
|
119
|
+
const hover = menuHoverOf(read(MenuTrait.Hover));
|
|
120
|
+
const phone = menuPhoneOf(read(MenuTrait.Phone));
|
|
121
|
+
if (form !== DEFAULT_MENU_LOOK.form) out[MenuAttribute.Form] = form;
|
|
122
|
+
if (reveal !== DEFAULT_MENU_LOOK.reveal) out[MenuAttribute.Reveal] = reveal;
|
|
123
|
+
if (hover !== DEFAULT_MENU_LOOK.hover) out[MenuAttribute.Hover] = hover;
|
|
124
|
+
if (phone !== DEFAULT_MENU_LOOK.phone) out[MenuAttribute.Phone] = phone;
|
|
125
|
+
return out;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/** The attribute a menu BUTTON (or the menu's Close) renders — `{}` for today's list icon. */
|
|
129
|
+
export function menuButtonAttributes(read: MenuTraitReader): Record<string, string> {
|
|
130
|
+
const kind = menuButtonOf(read(MenuTrait.Button));
|
|
131
|
+
return kind === DEFAULT_MENU_LOOK.button ? {} : { [MenuAttribute.Button]: kind };
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/** The traits a menu's Dialog is stamped with for a look: only what differs from today's (R-H4). */
|
|
135
|
+
export function menuDialogProps(look: Partial<MenuLook>): Record<string, string> {
|
|
136
|
+
const out: Record<string, string> = {};
|
|
137
|
+
if (look.form && look.form !== DEFAULT_MENU_LOOK.form) out[MenuTrait.Form] = look.form;
|
|
138
|
+
if (look.reveal && look.reveal !== DEFAULT_MENU_LOOK.reveal) out[MenuTrait.Reveal] = look.reveal;
|
|
139
|
+
if (look.hover && look.hover !== DEFAULT_MENU_LOOK.hover) out[MenuTrait.Hover] = look.hover;
|
|
140
|
+
if (look.phone && look.phone !== DEFAULT_MENU_LOOK.phone) out[MenuTrait.Phone] = look.phone;
|
|
141
|
+
return out;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/** The trait a menu button (and the Close) is stamped with for a kind: none for today's. */
|
|
145
|
+
export function menuButtonProps(kind: MenuButtonKind | undefined): Record<string, string> {
|
|
146
|
+
return kind && kind !== DEFAULT_MENU_LOOK.button ? { [MenuTrait.Button]: kind } : {};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/** True when the form shows its own place only above the phone width (a card, a top panel, a mega panel — R-H10: on a
|
|
150
|
+
* phone each becomes the phone menu). A drawer and the full screen are the same at every width. */
|
|
151
|
+
export function menuFormSwitchesOnPhone(form: MenuForm): boolean {
|
|
152
|
+
return form === MenuForm.Panel || form === MenuForm.Card || form === MenuForm.Mega;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/** The width (CSS px) at and below which a card, panel or mega menu becomes its phone form — the shared CSS's
|
|
156
|
+
* `@media (max-width: 767px)` and the canvas's container query (Mobile landscape, the phone menu's default). */
|
|
157
|
+
export const MENU_PHONE_MAX_WIDTH = 767;
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
LayoutIssue, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHow, LayoutListHover, LayoutListItem, LayoutListMix,
|
|
3
3
|
LayoutListMove, LayoutListPhone, LayoutListShape, LayoutListWho, LayoutMendKind, LayoutPage,
|
|
4
4
|
} from './layout-language';
|
|
5
|
-
import { listMeaning } from './list-table';
|
|
5
|
+
import { listBuiltWords, listMeaning, listWait } from './list-table';
|
|
6
6
|
import { SPEC_SITE_LAYOUT } from './site-spec.generated';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -16,6 +16,8 @@ const R = SPEC_SITE_LAYOUT.list.rules;
|
|
|
16
16
|
const IMAGE = 'image';
|
|
17
17
|
const inList = (values: ReadonlyArray<string>, v: unknown): boolean => typeof v === 'string' && values.includes(v);
|
|
18
18
|
const enumValues = (e: object): string[] => Object.values(e);
|
|
19
|
+
/** The words a refusal names: the DRAWN ones only — a refusal is the model's next turn, and a waiting word is never offered. */
|
|
20
|
+
const allowed = (k: Parameters<typeof listBuiltWords>[0]): string => listBuiltWords(k).join(' | ');
|
|
19
21
|
const has = <T extends string>(list: ReadonlyArray<T>, v: string): boolean => (list as ReadonlyArray<string>).includes(v);
|
|
20
22
|
|
|
21
23
|
/** The words a repaired mix is said in (the brief and the owner read them). */
|
|
@@ -46,16 +48,16 @@ export function checkList(mix: LayoutListMix, shape: LayoutListShape | null, lay
|
|
|
46
48
|
|
|
47
49
|
// Values outside the contract are the model's to answer: nothing is repaired over a mix that is not a mix.
|
|
48
50
|
if (!mix || typeof mix !== 'object') return [{ code: LayoutIssueCode.Shape, path: at, message: 'a list section names its mix' }];
|
|
49
|
-
if (!inList(enumValues(LayoutListItem), mix.item)) refuse(LayoutIssueCode.Value, `${at}.item`,
|
|
50
|
-
if (!inList(enumValues(LayoutListArrange), mix.arrange)) refuse(LayoutIssueCode.Value, `${at}.arrange`,
|
|
51
|
-
if (!inList(enumValues(LayoutListArrive), mix.arrive)) refuse(LayoutIssueCode.Value, `${at}.arrive`,
|
|
52
|
-
if (!inList(enumValues(LayoutListPhone), mix.phone)) refuse(LayoutIssueCode.Value, `${at}.phone`,
|
|
51
|
+
if (!inList(enumValues(LayoutListItem), mix.item)) refuse(LayoutIssueCode.Value, `${at}.item`, allowed('item'));
|
|
52
|
+
if (!inList(enumValues(LayoutListArrange), mix.arrange)) refuse(LayoutIssueCode.Value, `${at}.arrange`, allowed('arrange'));
|
|
53
|
+
if (!inList(enumValues(LayoutListArrive), mix.arrive)) refuse(LayoutIssueCode.Value, `${at}.arrive`, allowed('arrive'));
|
|
54
|
+
if (!inList(enumValues(LayoutListPhone), mix.phone)) refuse(LayoutIssueCode.Value, `${at}.phone`, allowed('phone'));
|
|
53
55
|
if (!Array.isArray(mix.parts) || mix.parts.some(p => typeof p !== 'string')) refuse(LayoutIssueCode.Shape, `${at}.parts`, 'the roles each item shows');
|
|
54
|
-
if (!Array.isArray(mix.move) || mix.move.some(m => !inList(enumValues(LayoutListMove), m))) refuse(LayoutIssueCode.Value, `${at}.move`,
|
|
55
|
-
if (!Array.isArray(mix.hover) || mix.hover.some(h => !inList(enumValues(LayoutListHover), h))) refuse(LayoutIssueCode.Value, `${at}.hover`,
|
|
56
|
+
if (!Array.isArray(mix.move) || mix.move.some(m => !inList(enumValues(LayoutListMove), m))) refuse(LayoutIssueCode.Value, `${at}.move`, allowed('move'));
|
|
57
|
+
if (!Array.isArray(mix.hover) || mix.hover.some(h => !inList(enumValues(LayoutListHover), h))) refuse(LayoutIssueCode.Value, `${at}.hover`, allowed('hover'));
|
|
56
58
|
if (mix.standout !== undefined) {
|
|
57
|
-
if (!inList(enumValues(LayoutListWho), mix.standout?.who)) refuse(LayoutIssueCode.Value, `${at}.standout.who`,
|
|
58
|
-
if (mix.standout?.how !== undefined && !inList(enumValues(LayoutListHow), mix.standout.how)) refuse(LayoutIssueCode.Value, `${at}.standout.how`,
|
|
59
|
+
if (!inList(enumValues(LayoutListWho), mix.standout?.who)) refuse(LayoutIssueCode.Value, `${at}.standout.who`, allowed('who'));
|
|
60
|
+
if (mix.standout?.how !== undefined && !inList(enumValues(LayoutListHow), mix.standout.how)) refuse(LayoutIssueCode.Value, `${at}.standout.how`, allowed('how'));
|
|
59
61
|
}
|
|
60
62
|
if (refused.length || !shape) return refused;
|
|
61
63
|
|
|
@@ -66,6 +68,23 @@ export function checkList(mix: LayoutListMix, shape: LayoutListShape | null, lay
|
|
|
66
68
|
const next: LayoutListMix = structuredClone(mix);
|
|
67
69
|
const said: string[] = [];
|
|
68
70
|
const repair = (message: string) => said.push(message);
|
|
71
|
+
|
|
72
|
+
// A word the product draws in a later phase (the contract's list table, award AW0): drawn as its stand-in meanwhile,
|
|
73
|
+
// and said — first, so every rule below judges the mix the product will draw. The wire never offers one.
|
|
74
|
+
const waiting = (k: 'item' | 'arrange' | 'arrive' | 'move' | 'hover', w: string): string | null | undefined => {
|
|
75
|
+
const wait = listWait(k, w);
|
|
76
|
+
if (!wait) return undefined;
|
|
77
|
+
repair(`${k} "${w}" is drawn in ${wait.phase}: ${wait.drawnAs ? `"${wait.drawnAs}" meanwhile` : 'left out meanwhile'}`);
|
|
78
|
+
return wait.drawnAs;
|
|
79
|
+
};
|
|
80
|
+
for (const k of ['item', 'arrange', 'arrive'] as const) {
|
|
81
|
+
const stand = waiting(k, next[k]);
|
|
82
|
+
if (stand !== undefined) (next as unknown as Record<string, string>)[k] = stand ?? (k === 'arrive' ? LayoutListArrive.Together : k === 'item' ? LayoutListItem.Card : LayoutListArrange.Row);
|
|
83
|
+
}
|
|
84
|
+
for (const k of ['move', 'hover'] as const) {
|
|
85
|
+
const drawn = (next[k] as string[]).map(w => { const stand = waiting(k, w); return stand === undefined ? w : stand; }).filter((w): w is string => !!w);
|
|
86
|
+
(next as unknown as Record<string, string[]>)[k] = [...new Set(drawn)];
|
|
87
|
+
}
|
|
69
88
|
const roles = shape.roles as ReadonlyArray<string>;
|
|
70
89
|
const pictured = roles.includes(IMAGE);
|
|
71
90
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
AnimateId, COLOR_SCHEME_TRAIT, COLOR_SCHEMES, ColorScheme, colorSchemeClass, DesignChoices, LinkType, resolveDesignChoices, setColorScheme,
|
|
2
|
+
AnimateId, COLOR_SCHEME_TRAIT, COLOR_SCHEMES, ColorScheme, colorSchemeClass, DEFAULT_MENU_LOOK, DesignChoices, LinkType, MenuLook, resolveDesignChoices, setColorScheme,
|
|
3
3
|
} from '@vectoriox/iox-ui/design-core';
|
|
4
4
|
import { SEO_DESCRIPTION_MAX, SEO_TITLE_MAX, SeoRawDoc } from '@vectoriox/iox-ui/seo-core';
|
|
5
5
|
import { channelOpensNewTab, FORM_ACTIONS_ROLE, FORM_CHANNEL_ROLE, FormPresetChannel, FormPresetDef, FormPresetField, formPresetById } from '@vectoriox/iox-ui/forms-core';
|
|
@@ -1571,7 +1571,7 @@ export function composeSite(plan: SitePlan, context: ComposeContext): ComposedSi
|
|
|
1571
1571
|
// pages are behind its menu shows the menu at every width, on the side the mix names.
|
|
1572
1572
|
for (const [slot, pattern] of slotPatterns) {
|
|
1573
1573
|
if (!pattern.phoneMenu) continue;
|
|
1574
|
-
globals = planNavShape(globals, pattern.phoneMenu as NavShape, headerShapeOptions(slot === GlobalSlot.Header ? header.recipe : null), slot).globals;
|
|
1574
|
+
globals = planNavShape(globals, pattern.phoneMenu as NavShape, headerShapeOptions(slot === GlobalSlot.Header ? header.recipe : null, plan.locale), slot).globals;
|
|
1575
1575
|
}
|
|
1576
1576
|
// Premium M4 (T2): a header pattern's behaviour as the page scrolls — the same edit the Header section makes.
|
|
1577
1577
|
for (const [slot, pattern] of slotPatterns) {
|
|
@@ -1605,9 +1605,14 @@ export function planHeader(plan: SitePlan): { recipe: HeaderRecipe; context: Hea
|
|
|
1605
1605
|
|
|
1606
1606
|
/** The phone-menu options a header recipe asks for: its menu at every width and on its side (none for the defaults, so a
|
|
1607
1607
|
* stored header's edit is the one it always was). */
|
|
1608
|
-
function headerShapeOptions(recipe: HeaderRecipe | null): { everyWidth?: boolean; menuSide?: MenuSide } {
|
|
1608
|
+
function headerShapeOptions(recipe: HeaderRecipe | null, locale?: string): { everyWidth?: boolean; menuSide?: MenuSide; look?: Partial<MenuLook>; locale?: string } {
|
|
1609
1609
|
if (!recipe) return {};
|
|
1610
|
-
|
|
1610
|
+
// HI2a: the menu's look, only what differs from today's menu (a stored header composes as it always did — R-H4).
|
|
1611
|
+
const look = Object.fromEntries(Object.entries(recipe.menu).filter(([k, v]) => DEFAULT_MENU_LOOK[k as keyof MenuLook] !== v)) as Partial<MenuLook>;
|
|
1612
|
+
return {
|
|
1613
|
+
...(recipe.everyWidth ? { everyWidth: true } : {}), ...(recipe.menuSide === MenuSide.Start ? { menuSide: MenuSide.Start } : {}),
|
|
1614
|
+
...(Object.keys(look).length ? { look, ...(locale ? { locale } : {}) } : {}),
|
|
1615
|
+
};
|
|
1611
1616
|
}
|
|
1612
1617
|
|
|
1613
1618
|
// ── The site header on its own (CC1.1) ──────────────────────────────────────────────────────────
|
|
@@ -1707,7 +1712,7 @@ export function composeNavHeader(input: NavHeaderInput, options: NavHeaderOption
|
|
|
1707
1712
|
root.isGlobal = true;
|
|
1708
1713
|
root.globalPosition = pattern.global;
|
|
1709
1714
|
const shape = pattern.phoneMenu as NavShape | undefined;
|
|
1710
|
-
const header = shape ? planNavShape([root], shape, { newId: options.newId, ...headerShapeOptions(recipe) }, root.id).globals[0] : root;
|
|
1715
|
+
const header = shape ? planNavShape([root], shape, { newId: options.newId, ...headerShapeOptions(recipe, input.locale) }, root.id).globals[0] : root;
|
|
1711
1716
|
if (pattern.header) setHeaderBehaviour(header as unknown as CompositeNode, pattern.header.behaviour, pattern.header.edge ?? null);
|
|
1712
1717
|
return { header, issues, mix: checked.mix };
|
|
1713
1718
|
}
|
|
@@ -24,22 +24,37 @@ export enum FooterIngredient {
|
|
|
24
24
|
Ground = 'ground',
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
/** The words, by the table (a word that waits for its phase too — `footerWords` offers only the drawn ones). */
|
|
27
28
|
export enum FooterArrange {
|
|
28
29
|
Columns = 'columns',
|
|
29
30
|
Centred = 'centred',
|
|
30
31
|
Line = 'line',
|
|
32
|
+
Ruled = 'ruled',
|
|
33
|
+
ListBig = 'list-big',
|
|
31
34
|
}
|
|
32
35
|
|
|
33
36
|
export enum FooterHold {
|
|
34
37
|
Pages = 'pages',
|
|
35
38
|
Visit = 'visit',
|
|
36
39
|
Contact = 'contact',
|
|
40
|
+
Newsletter = 'newsletter',
|
|
41
|
+
Legal = 'legal',
|
|
42
|
+
Payments = 'payments',
|
|
43
|
+
Clock = 'clock',
|
|
44
|
+
Marquee = 'marquee',
|
|
45
|
+
Badges = 'badges',
|
|
46
|
+
Region = 'region',
|
|
47
|
+
Search = 'search',
|
|
37
48
|
}
|
|
38
49
|
|
|
39
50
|
export enum FooterClosing {
|
|
40
51
|
None = 'none',
|
|
41
52
|
Call = 'call',
|
|
42
53
|
Name = 'name',
|
|
54
|
+
Statement = 'statement',
|
|
55
|
+
Word = 'word',
|
|
56
|
+
Newsletter = 'newsletter',
|
|
57
|
+
NameAndAction = 'name-and-action',
|
|
43
58
|
}
|
|
44
59
|
|
|
45
60
|
export enum FooterGround {
|
|
@@ -47,6 +62,10 @@ export enum FooterGround {
|
|
|
47
62
|
Plain = 'plain',
|
|
48
63
|
Subtle = 'subtle',
|
|
49
64
|
Accent = 'accent',
|
|
65
|
+
Film = 'film',
|
|
66
|
+
Scene = 'scene',
|
|
67
|
+
Pattern = 'pattern',
|
|
68
|
+
Inset = 'inset',
|
|
50
69
|
}
|
|
51
70
|
|
|
52
71
|
/** One word per ingredient; `holds` several, in the table's order. */
|
|
@@ -62,22 +81,37 @@ export class FooterMixError extends Error {}
|
|
|
62
81
|
const INGREDIENTS = F.ingredients as unknown as Readonly<Record<string, ReadonlyArray<string>>>;
|
|
63
82
|
const MEANINGS = F.meanings as Readonly<Record<string, string>>;
|
|
64
83
|
const MANY: ReadonlyArray<string> = F.many;
|
|
84
|
+
/** A word the product does not draw yet (award-ingredients-plan.md AW0): the phase it waits for and the built word it is
|
|
85
|
+
* drawn as meanwhile (null: drawn without it). */
|
|
86
|
+
export interface FooterWait { phase: string; drawnAs: string | null }
|
|
87
|
+
const WAITS = F.waits as unknown as Readonly<Record<string, FooterWait>>;
|
|
65
88
|
|
|
66
89
|
/** The footer pattern a plan names when it names none the table knows (the Studio footer). */
|
|
67
90
|
export const DEFAULT_FOOTER_PATTERN = 'footer.three-column';
|
|
68
91
|
|
|
69
|
-
/**
|
|
70
|
-
export function
|
|
92
|
+
/** Every word of an ingredient in the table, waiting ones too. */
|
|
93
|
+
export function footerTableWords(ingredient: `${FooterIngredient}`): ReadonlyArray<string> {
|
|
71
94
|
return INGREDIENTS[ingredient] ?? [];
|
|
72
95
|
}
|
|
73
96
|
|
|
97
|
+
/** The wait of a word, or null when the product draws it. */
|
|
98
|
+
export function footerWait(ingredient: `${FooterIngredient}`, word: string): FooterWait | null {
|
|
99
|
+
return WAITS[`${ingredient}.${word}`] ?? null;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/** The words an ingredient may take — the DRAWN ones, the only ones the wire, the brief and the mender offer
|
|
103
|
+
* (ingredients.md §3.3: offering a waiting word would put its stand-in on every site that asked for it). */
|
|
104
|
+
export function footerWords(ingredient: `${FooterIngredient}`): ReadonlyArray<string> {
|
|
105
|
+
return footerTableWords(ingredient).filter(w => !footerWait(ingredient, w));
|
|
106
|
+
}
|
|
107
|
+
|
|
74
108
|
/** What a word means, as the brief and the builder say it. */
|
|
75
109
|
export function footerMeaning(ingredient: `${FooterIngredient}`, word: string): string {
|
|
76
110
|
return MEANINGS[`${ingredient}.${word}`] ?? word;
|
|
77
111
|
}
|
|
78
112
|
|
|
79
113
|
/** A word list in the table's order, each once. */
|
|
80
|
-
const inOrder = (k: string, words: ReadonlyArray<string>): string[] =>
|
|
114
|
+
const inOrder = (k: string, words: ReadonlyArray<string>): string[] => footerTableWords(k as FooterIngredient).filter(w => words.includes(w));
|
|
81
115
|
|
|
82
116
|
/** A whole mix from part of one: what is not named is the default. Refuses a word the table lacks. */
|
|
83
117
|
export function footerMix(partial: Partial<FooterMix> = {}): FooterMix {
|
|
@@ -87,7 +121,7 @@ export function footerMix(partial: Partial<FooterMix> = {}): FooterMix {
|
|
|
87
121
|
if (!INGREDIENTS[k]) throw new FooterMixError(`no footer ingredient "${k}"`);
|
|
88
122
|
const words = typeof v === 'string' ? [v] : v as ReadonlyArray<string>;
|
|
89
123
|
if (MANY.includes(k) !== (typeof v !== 'string')) throw new FooterMixError(`a footer's ${k} is ${MANY.includes(k) ? 'a list of words' : 'one word'}`);
|
|
90
|
-
for (const w of words) if (!INGREDIENTS[k].includes(w)) throw new FooterMixError(`a footer's ${k} cannot be "${w}" (${
|
|
124
|
+
for (const w of words) if (!INGREDIENTS[k].includes(w)) throw new FooterMixError(`a footer's ${k} cannot be "${w}" (${footerWords(k as FooterIngredient).join(' · ')})`);
|
|
91
125
|
mix[k] = MANY.includes(k) ? inOrder(k, words) : words[0];
|
|
92
126
|
}
|
|
93
127
|
return mix as unknown as FooterMix;
|
|
@@ -113,9 +147,27 @@ export function footerMixWords(mix: FooterMix): string[] {
|
|
|
113
147
|
return Object.values(FooterIngredient).flatMap(k => (MANY.includes(k) ? mix[k] as ReadonlyArray<string> : [mix[k] as string]).map(w => `${k}:${w}`));
|
|
114
148
|
}
|
|
115
149
|
|
|
116
|
-
/** Every `<ingredient>:<word>` the wire may carry
|
|
150
|
+
/** Every `<ingredient>:<word>` the wire may carry: the drawn words only. */
|
|
117
151
|
export function footerWireWords(): string[] {
|
|
118
|
-
return Object.values(FooterIngredient).flatMap(k => footerWords(k).
|
|
152
|
+
return Object.values(FooterIngredient).flatMap(k => footerWords(k).map(w => `${k}:${w}`));
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/** A mix as the product can draw it today: every waiting word drawn as its stand-in (a held block with none is left
|
|
156
|
+
* out), and the words that waited, for the check to say. A drawn mix comes back unchanged. Pure. */
|
|
157
|
+
export function drawnFooterMix(mix: FooterMix): { mix: FooterMix; waited: Array<{ ingredient: FooterIngredient; word: string } & FooterWait> } {
|
|
158
|
+
const waited: Array<{ ingredient: FooterIngredient; word: string } & FooterWait> = [];
|
|
159
|
+
const drawn = (k: FooterIngredient, w: string): string | null => {
|
|
160
|
+
const wait = footerWait(k, w);
|
|
161
|
+
if (!wait) return w;
|
|
162
|
+
waited.push({ ingredient: k, word: w, ...wait });
|
|
163
|
+
return wait.drawnAs;
|
|
164
|
+
};
|
|
165
|
+
const one = (k: FooterIngredient): string => drawn(k, mix[k] as string) ?? (F.defaults as unknown as FooterMix)[k] as string;
|
|
166
|
+
// In the table's order, so the words that waited are said as the table reads.
|
|
167
|
+
const arrange = one(FooterIngredient.Arrange);
|
|
168
|
+
const holds = inOrder(FooterIngredient.Holds, mix.holds.map(h => drawn(FooterIngredient.Holds, h)).filter((h): h is string => !!h));
|
|
169
|
+
const out = { arrange, holds, closing: one(FooterIngredient.Closing), ground: one(FooterIngredient.Ground) };
|
|
170
|
+
return { mix: waited.length ? out : mix, waited };
|
|
119
171
|
}
|
|
120
172
|
|
|
121
173
|
/** The words back into a mix: an ingredient not named is the default; a `holds` named is the whole list. Refuses an unknown
|
|
@@ -168,6 +220,8 @@ export enum FooterRepairCode {
|
|
|
168
220
|
NameTooLong = 'name-too-long',
|
|
169
221
|
/** Another site already wears this footer: the nearest free one (`distinctFooter`). */
|
|
170
222
|
Worn = 'worn',
|
|
223
|
+
/** A word the product draws in a later phase: drawn as its stand-in meanwhile (the table's `waits`). */
|
|
224
|
+
Waits = 'waits',
|
|
171
225
|
}
|
|
172
226
|
|
|
173
227
|
export interface FooterRepair {
|
|
@@ -195,8 +249,12 @@ const nameWidthEm = (ctx: FooterContext): number => textWidthEm(ctx.name, elemen
|
|
|
195
249
|
* The ONE judge of a footer mix: what the table's rules refuse is mended to the nearest mix that keeps them, and each mend
|
|
196
250
|
* is said. Never throws on a well-formed mix. Pure.
|
|
197
251
|
*/
|
|
198
|
-
export function checkFooter(
|
|
252
|
+
export function checkFooter(given: FooterMix, ctx: FooterContext): { mix: FooterMix; repairs: FooterRepair[] } {
|
|
199
253
|
const repairs: FooterRepair[] = [];
|
|
254
|
+
const { mix, waited } = drawnFooterMix(given);
|
|
255
|
+
if (waited.length) {
|
|
256
|
+
repairs.push({ code: FooterRepairCode.Waits, said: waited.map(w => `the footer's ${w.ingredient} "${w.word}" is drawn in ${w.phase}: ${w.drawnAs ? `"${w.drawnAs}" meanwhile` : 'left out meanwhile'}`).join('; ') });
|
|
257
|
+
}
|
|
200
258
|
let holds = inOrder(FooterIngredient.Holds, mix.holds);
|
|
201
259
|
let closing = mix.closing;
|
|
202
260
|
if (mix.arrange === FooterArrange.Line) {
|
|
@@ -284,7 +342,8 @@ function bodyOf(mix: FooterMix, ctx: FooterContext): PatternNode[] {
|
|
|
284
342
|
}
|
|
285
343
|
|
|
286
344
|
/** A footer mix as a pattern: what the composer stamps as the site's footer (global, after the page). Check it first. */
|
|
287
|
-
export function footerPattern(
|
|
345
|
+
export function footerPattern(given: FooterMix, ctx: FooterContext): SitePattern {
|
|
346
|
+
const mix = drawnFooterMix(given).mix;
|
|
288
347
|
const plain = mix.ground === FooterGround.Plain;
|
|
289
348
|
const call = mix.closing === FooterClosing.Call ? [mix.arrange === FooterArrange.Columns ? part('call') : centred(part('call'))] : [];
|
|
290
349
|
const name = mix.closing === FooterClosing.Name ? [closingName(ctx)] : [];
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
DesignChoices, elementStyleFace, MenuForm, menuButtonOf, menuFormOf, menuHoverOf, MenuLook, MenuPhoneForm, menuRevealOf, resolveDesignChoices, textWidthEm,
|
|
3
|
+
} from '@vectoriox/iox-ui/design-core';
|
|
2
4
|
|
|
3
5
|
import { MenuSide, NavRole, NavShape } from './nav-shape';
|
|
4
6
|
import { PatternGlobalPosition, PatternNode, SITE_PATTERNS, SitePattern } from './patterns';
|
|
@@ -30,6 +32,16 @@ export enum HeaderIngredient {
|
|
|
30
32
|
Scroll = 'scroll',
|
|
31
33
|
Edge = 'edge',
|
|
32
34
|
Phone = 'phone',
|
|
35
|
+
/** HB-D1 (HI2a): how the menu opens. */
|
|
36
|
+
Reveal = 'reveal',
|
|
37
|
+
/** HB-D1 (HI2a): the button that opens it. */
|
|
38
|
+
Button = 'button',
|
|
39
|
+
/** HB-D1 (HI2a): what the mouse does in it. */
|
|
40
|
+
MenuHover = 'menuHover',
|
|
41
|
+
/** HB-D1 (HI3): what sits above the bar. */
|
|
42
|
+
Above = 'above',
|
|
43
|
+
/** HB-D1 (HI3 / HI6): what more sits in the bar. */
|
|
44
|
+
InBar = 'inBar',
|
|
33
45
|
}
|
|
34
46
|
|
|
35
47
|
export enum HeaderArrange {
|
|
@@ -365,9 +377,26 @@ export interface HeaderRecipe {
|
|
|
365
377
|
/** The pages are behind a menu at every width (HI-D8). */
|
|
366
378
|
everyWidth: boolean;
|
|
367
379
|
menuSide: MenuSide;
|
|
380
|
+
/** HI2a: the menu's look — what `planNavShape` writes on the drawer, the menu button and its Close. */
|
|
381
|
+
menu: MenuLook;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/** The menu's look for a mix (HI2a): with its pages behind the menu, the `menu` form at every width and the `phone`
|
|
385
|
+
* ingredient's form on a phone; with its pages in the bar, the menu exists on a phone only, so its form IS the phone's
|
|
386
|
+
* (the drawer, or the full screen). How it opens, its button and its hover come from their own ingredients. */
|
|
387
|
+
export function menuLookOf(mix: HeaderMix): MenuLook {
|
|
388
|
+
const phoneFull = mix.phone === 'full';
|
|
389
|
+
const form = behindMenu(mix) ? menuFormOf(mix.menu) : phoneFull ? MenuForm.Full : MenuForm.Drawer;
|
|
390
|
+
return {
|
|
391
|
+
form,
|
|
392
|
+
reveal: menuRevealOf(mix.reveal),
|
|
393
|
+
button: menuButtonOf(mix.button),
|
|
394
|
+
hover: menuHoverOf(mix.menuHover),
|
|
395
|
+
phone: phoneFull && form !== MenuForm.Full ? MenuPhoneForm.Full : MenuPhoneForm.Drawer,
|
|
396
|
+
};
|
|
368
397
|
}
|
|
369
398
|
|
|
370
|
-
/** The phone ingredient as the phone menu's shape (`full`
|
|
399
|
+
/** The phone ingredient as the phone menu's shape (`full` is the drawer's Dialog, dressed as the full screen — HI2a). */
|
|
371
400
|
const PHONE_SHAPE: Readonly<Record<string, NavShape>> = { drawer: NavShape.Drawer, bar: NavShape.Bar, both: NavShape.Both, full: NavShape.Drawer };
|
|
372
401
|
|
|
373
402
|
/** A header mix as a pattern: what the composer stamps as the site's header (global, before the page). A mix that IS a
|
|
@@ -388,14 +417,19 @@ export function headerRecipe(mix: HeaderMix, ctx: HeaderContext): HeaderRecipe {
|
|
|
388
417
|
header: { behaviour: mix.scroll, edge: mix.edge },
|
|
389
418
|
node,
|
|
390
419
|
} as SitePattern;
|
|
391
|
-
return { pattern, everyWidth, menuSide };
|
|
420
|
+
return { pattern, everyWidth, menuSide, menu: menuLookOf(mix) };
|
|
392
421
|
}
|
|
393
422
|
|
|
394
423
|
// ── No sameness: another site's header is never worn again (§7, R-H2) ──────────────────────────────────────────────
|
|
395
424
|
|
|
396
425
|
/** The ingredients `distinctHeader` may change, in the order it tries them: how the pages are reached before where the
|
|
397
426
|
* name sits (the model chose the arrangement; the fingerprint sees both). */
|
|
398
|
-
const MEND_ORDER: ReadonlyArray<HeaderIngredient.Pages | HeaderIngredient.Arrange
|
|
427
|
+
const MEND_ORDER: ReadonlyArray<HeaderIngredient.Pages | HeaderIngredient.Arrange | HeaderIngredient.Reveal | HeaderIngredient.Button> = [
|
|
428
|
+
HeaderIngredient.Pages, HeaderIngredient.Arrange,
|
|
429
|
+
// HB-D6: how the menu opens and its button are in the fingerprint — the least visible change of all, tried after the
|
|
430
|
+
// two the model chose with the site in mind.
|
|
431
|
+
HeaderIngredient.Reveal, HeaderIngredient.Button,
|
|
432
|
+
];
|
|
399
433
|
|
|
400
434
|
/** The words of an ingredient the product draws. */
|
|
401
435
|
const drawnWords = (k: `${HeaderIngredient}`): string[] => headerWords(k).filter(w => !WAITS[`${k}.${w}`]);
|
|
@@ -168,9 +168,15 @@ export enum LayoutNavKind {
|
|
|
168
168
|
|
|
169
169
|
/** List ingredients (list-ingredients-plan.md §2): the seven choices a list section mixes. Held equal to the contract's
|
|
170
170
|
* `site.layout.list` by layout-language.spec. */
|
|
171
|
+
/** The list words, by the contract's table — a word that waits for its phase too (only `listBuiltWords` are offered;
|
|
172
|
+
* `checkList` draws a waiting one as its stand-in). */
|
|
171
173
|
export enum LayoutListItem {
|
|
172
174
|
Photo = 'photo',
|
|
173
175
|
Card = 'card',
|
|
176
|
+
TitleOnPhoto = 'title-on-photo',
|
|
177
|
+
Packshot = 'packshot',
|
|
178
|
+
ColourBlock = 'colour-block',
|
|
179
|
+
Numbered = 'numbered',
|
|
174
180
|
}
|
|
175
181
|
|
|
176
182
|
export enum LayoutListArrange {
|
|
@@ -179,6 +185,12 @@ export enum LayoutListArrange {
|
|
|
179
185
|
Masonry = 'masonry',
|
|
180
186
|
Strips = 'strips',
|
|
181
187
|
Deck = 'deck',
|
|
188
|
+
Hang = 'hang',
|
|
189
|
+
Bento = 'bento',
|
|
190
|
+
Rows = 'rows',
|
|
191
|
+
Stage = 'stage',
|
|
192
|
+
Fan = 'fan',
|
|
193
|
+
Tilted = 'tilted',
|
|
182
194
|
}
|
|
183
195
|
|
|
184
196
|
export enum LayoutListWho {
|
|
@@ -200,6 +212,7 @@ export enum LayoutListMove {
|
|
|
200
212
|
Drag = 'drag',
|
|
201
213
|
Auto = 'auto',
|
|
202
214
|
Page = 'page',
|
|
215
|
+
Rows = 'rows',
|
|
203
216
|
}
|
|
204
217
|
|
|
205
218
|
export enum LayoutListHover {
|
|
@@ -207,12 +220,17 @@ export enum LayoutListHover {
|
|
|
207
220
|
Open = 'open',
|
|
208
221
|
Zoom = 'zoom',
|
|
209
222
|
Dim = 'dim',
|
|
223
|
+
Swap = 'swap',
|
|
224
|
+
Unveil = 'unveil',
|
|
225
|
+
Fill = 'fill',
|
|
226
|
+
Tilt = 'tilt',
|
|
210
227
|
}
|
|
211
228
|
|
|
212
229
|
export enum LayoutListArrive {
|
|
213
230
|
Together = 'together',
|
|
214
231
|
OneByOne = 'one-by-one',
|
|
215
232
|
SlideIn = 'slide-in',
|
|
233
|
+
ClipUp = 'clip-up',
|
|
216
234
|
}
|
|
217
235
|
|
|
218
236
|
export enum LayoutListPhone {
|