@vectoriox/iox-ui 5.149.0 → 5.151.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/fesm2022/vectoriox-iox-ui-generation-core.mjs +944 -133
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +76 -21
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/generation-core/index.d.ts +365 -10
- package/harness-core/index.d.ts +32 -0
- package/package.json +1 -1
- package/src/generation-core/audit-site.ts +55 -40
- package/src/generation-core/audit-words.ts +295 -0
- package/src/generation-core/check-list.ts +62 -49
- package/src/generation-core/compose-layout.ts +42 -4
- package/src/generation-core/compose-site.ts +5 -2
- package/src/generation-core/layout-language.ts +17 -0
- package/src/generation-core/list-keep.ts +179 -0
- package/src/generation-core/list-panel.ts +15 -4
- package/src/generation-core/list-table.ts +9 -3
- package/src/generation-core/list-words.ts +340 -0
- package/src/generation-core/nav-shape.ts +37 -31
- package/src/generation-core/public-api.ts +3 -0
- package/src/generation-core/site-spec.generated.ts +47 -0
- package/src/harness-core/business-types.ts +2 -0
- package/src/harness-core/harness-spec.generated.ts +76 -21
- package/styles/iox-design.css +26 -6
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import { CommerceLabel, CommerceLanguage, commerceLanguage } from '@vectoriox/iox-ui/commerce-core';
|
|
2
|
+
|
|
3
|
+
import type { LayoutIssue, LayoutIssueWords, LayoutWordRef, LayoutWordsValue } from './layout-language';
|
|
4
|
+
import { ListIngredient, listMeaning } from './list-table';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* What THE LIST JUDGE says, in the owner's language (vectoriox/iox-ui#123, board bindings-list BL-D6). Every mend and
|
|
8
|
+
* refusal `checkList` makes has ONE entry here: a code, the values it names (`params`), and its sentence in English and
|
|
9
|
+
* Hebrew — the audit's approach (`audit-words.ts`), with commerce-core's ONE language rule (`commerceLanguage`: `he`,
|
|
10
|
+
* `he-IL`, `iw` read Hebrew, anything else English). The English sentence is the issue's `message`, word for word what
|
|
11
|
+
* the model and the log read; a screen says `listSentence(issue, lang)`.
|
|
12
|
+
*
|
|
13
|
+
* A word of the list table travels as `{ k, w }` (`LayoutWordRef`), never as its English: the English sentence quotes the
|
|
14
|
+
* word or its meaning as it always did, the Hebrew one says the word's Hebrew meaning (the contract's `LIST.meaningsHe`).
|
|
15
|
+
*/
|
|
16
|
+
export enum ListSayCode {
|
|
17
|
+
/** A word the product draws in a later phase, drawn as its stand-in meanwhile (or left out). */
|
|
18
|
+
Waits = 'list-waits',
|
|
19
|
+
/** A round-two word on a site below the award plan: its stand-in instead (or left out). */
|
|
20
|
+
AwardOnly = 'list-award-only',
|
|
21
|
+
/** The mix shows roles the list does not hold. */
|
|
22
|
+
NoSuchParts = 'list-no-such-parts',
|
|
23
|
+
PhotoNoPictures = 'list-photo-no-pictures',
|
|
24
|
+
PhotoPictureOnly = 'list-photo-picture-only',
|
|
25
|
+
/** A round-two item that needs a picture, on a list with none. */
|
|
26
|
+
ItemNeedsPictures = 'list-item-needs-pictures',
|
|
27
|
+
TitleTooLong = 'list-title-too-long',
|
|
28
|
+
PackshotNotPlain = 'list-packshot-not-plain',
|
|
29
|
+
TitleOnPhotoParts = 'list-title-on-photo-parts',
|
|
30
|
+
StripsNeedPictures = 'list-strips-need-pictures',
|
|
31
|
+
StripsAtMost = 'list-strips-at-most',
|
|
32
|
+
/** The business type's lists never take this arrangement (L-D12). */
|
|
33
|
+
NeverArrange = 'list-never-arrange',
|
|
34
|
+
TooFewFor = 'list-too-few-for',
|
|
35
|
+
ShowsFirst = 'list-shows-first',
|
|
36
|
+
BentoTooFew = 'list-bento-too-few',
|
|
37
|
+
BentoTrim = 'list-bento-trim',
|
|
38
|
+
TiltedLong = 'list-tilted-long',
|
|
39
|
+
GridLong = 'list-grid-long',
|
|
40
|
+
StripOpenFirst = 'list-strip-open-first',
|
|
41
|
+
StripWider = 'list-strip-wider',
|
|
42
|
+
NoneStandsOut = 'list-none-stands-out',
|
|
43
|
+
RowsOnlyWho = 'list-rows-only-who',
|
|
44
|
+
StripsOnlyHow = 'list-strips-only-how',
|
|
45
|
+
RowsStandout = 'list-rows-standout',
|
|
46
|
+
/** The business type's lists never move this way (L-D12). */
|
|
47
|
+
NeverMove = 'list-never-move',
|
|
48
|
+
FanDragOnly = 'list-fan-drag-only',
|
|
49
|
+
FanTooFew = 'list-fan-too-few',
|
|
50
|
+
DriftNeedsPictures = 'list-drift-needs-pictures',
|
|
51
|
+
StillNoMove = 'list-still-no-move',
|
|
52
|
+
RowOnlyMove = 'list-row-only-move',
|
|
53
|
+
PageAlone = 'list-page-alone',
|
|
54
|
+
DriftAlone = 'list-drift-alone',
|
|
55
|
+
DriftPicturesOnly = 'list-drift-pictures-only',
|
|
56
|
+
DragDefault = 'list-drag-default',
|
|
57
|
+
StripsOnlyHover = 'list-strips-only-hover',
|
|
58
|
+
HoverSecondPicture = 'list-hover-second-picture',
|
|
59
|
+
HoverPicture = 'list-hover-picture',
|
|
60
|
+
TiltMoving = 'list-tilt-moving',
|
|
61
|
+
TiltCardOnly = 'list-tilt-card-only',
|
|
62
|
+
FirstScreen = 'list-first-screen',
|
|
63
|
+
NoSwipe = 'list-no-swipe',
|
|
64
|
+
StageSwipes = 'list-stage-swipes',
|
|
65
|
+
FanSwipes = 'list-fan-swipes',
|
|
66
|
+
// Refusals — the model's (or the owner's) next turn.
|
|
67
|
+
TooFewItems = 'list-too-few-items',
|
|
68
|
+
ArrangeNeedsPictures = 'list-arrange-needs-pictures',
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type ListSayParams = Readonly<Record<string, LayoutWordsValue>>;
|
|
72
|
+
|
|
73
|
+
/** What the judge says: a code and its values. */
|
|
74
|
+
export interface ListSaid extends LayoutIssueWords {
|
|
75
|
+
readonly code: `${ListSayCode}`;
|
|
76
|
+
readonly params: ListSayParams;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/** A word of the list table, as a value a sentence names. */
|
|
80
|
+
export const listWordRef = (k: ListIngredient, w: string): LayoutWordRef => ({ k, w });
|
|
81
|
+
export const listWordRefs = (k: ListIngredient, ws: ReadonlyArray<string>): LayoutWordRef[] => ws.map(w => listWordRef(k, w));
|
|
82
|
+
|
|
83
|
+
/** The roles in Hebrew (the English sentence names the role itself, as it always did). */
|
|
84
|
+
const ROLE_HE: Readonly<Record<string, string>> = {
|
|
85
|
+
title: 'שם', summary: 'תקציר', image: 'תמונה', meta: 'פרט', date: 'תאריך', gallery: 'גלריה', logo: 'לוגו', icon: 'אייקון',
|
|
86
|
+
quote: 'ציטוט', person: 'אדם', link: 'קישור', colour: 'צבע', price: 'מחיר', compareAt: 'מחיר קודם',
|
|
87
|
+
};
|
|
88
|
+
/** Why a type's lists were mended, when its rule carries no sentence of its own. */
|
|
89
|
+
const NEVER_WHY: CommerceLabel = { en: 'this business never shows a list that way', he: 'העסק הזה אף פעם לא מציג רשימה כך' };
|
|
90
|
+
|
|
91
|
+
/** How one language reads the values. */
|
|
92
|
+
interface Reader {
|
|
93
|
+
/** A plain value: a name, a count, a list of them. */
|
|
94
|
+
v(key: string): string;
|
|
95
|
+
/** A word: English quotes it as it is, Hebrew says its meaning. */
|
|
96
|
+
word(key: string): string;
|
|
97
|
+
/** A word's meaning (the phrase the English sentence was always said in). */
|
|
98
|
+
m(key: string): string;
|
|
99
|
+
/** Roles, listed (`and`: the last two joined by "and"). */
|
|
100
|
+
roles(key: string, and?: boolean): string;
|
|
101
|
+
/** The type rule's reason. */
|
|
102
|
+
why(): string;
|
|
103
|
+
}
|
|
104
|
+
type Sentence = (r: Reader) => string;
|
|
105
|
+
interface ListWordsEntry {
|
|
106
|
+
readonly en: Sentence;
|
|
107
|
+
readonly he: Sentence;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/** Every code's sentence. Typed by the codes' values, so a new code without words does not compile. */
|
|
111
|
+
export const LIST_SAY_WORDS: Readonly<Record<`${ListSayCode}`, ListWordsEntry>> = {
|
|
112
|
+
'list-waits': {
|
|
113
|
+
en: r => `${r.v('k')} ${r.word('word')} is drawn in ${r.v('phase')}: ${r.v('as') ? `${r.word('as')} meanwhile` : 'left out meanwhile'}`,
|
|
114
|
+
he: r => `"${r.m('word')}" יצויר ב־${r.v('phase')}: ${r.v('as') ? `בינתיים "${r.m('as')}"` : 'בינתיים בלעדיו'}`,
|
|
115
|
+
},
|
|
116
|
+
'list-award-only': {
|
|
117
|
+
en: r => `${r.v('k')} ${r.word('word')} comes with the award plan: ${r.v('as') ? `${r.word('as')} instead` : 'left out'}`,
|
|
118
|
+
he: r => `"${r.m('word')}" מגיע עם תוכנית Pro: ${r.v('as') ? `במקומו "${r.m('as')}"` : 'הוא לא יוצג'}`,
|
|
119
|
+
},
|
|
120
|
+
'list-no-such-parts': {
|
|
121
|
+
en: r => `"${r.v('alias')}" holds no ${r.v('parts')} — left out`,
|
|
122
|
+
he: r => `ב־"${r.v('alias')}" אין ${r.roles('parts')} — לא יוצג בכרטיס`,
|
|
123
|
+
},
|
|
124
|
+
'list-photo-no-pictures': {
|
|
125
|
+
en: r => `"${r.v('alias')}" has no pictures — its items are cards`,
|
|
126
|
+
he: r => `ב־"${r.v('alias')}" אין תמונות — הפריטים יהיו כרטיסים`,
|
|
127
|
+
},
|
|
128
|
+
'list-photo-picture-only': {
|
|
129
|
+
en: () => 'a photo item shows its picture only',
|
|
130
|
+
he: () => 'פריט תמונה מציג רק את התמונה שלו',
|
|
131
|
+
},
|
|
132
|
+
'list-item-needs-pictures': {
|
|
133
|
+
en: r => `"${r.v('alias')}" has no pictures — ${r.m('item')} needs one: its items are cards`,
|
|
134
|
+
he: r => `ב־"${r.v('alias')}" אין תמונות, ו"${r.m('item')}" צריך תמונה — הפריטים יהיו כרטיסים`,
|
|
135
|
+
},
|
|
136
|
+
'list-title-too-long': {
|
|
137
|
+
en: r => `"${r.v('alias')}" has names of ${r.v('words')} words — more than ${r.v('max')} would cover the picture: its items are cards`,
|
|
138
|
+
he: r => `ב־"${r.v('alias')}" השמות באורך ${r.v('words')} מילים — יותר מ־${r.v('max')} יכסו את התמונה, אז הפריטים יהיו כרטיסים`,
|
|
139
|
+
},
|
|
140
|
+
'list-packshot-not-plain': {
|
|
141
|
+
en: r => `"${r.v('alias')}"'s pictures do not stand on a plain ground — a packshot needs one: its items are cards`,
|
|
142
|
+
he: r => `התמונות של "${r.v('alias')}" לא עומדות על רקע אחיד, וצילום מוצר צריך רקע כזה — הפריטים יהיו כרטיסים`,
|
|
143
|
+
},
|
|
144
|
+
'list-title-on-photo-parts': {
|
|
145
|
+
en: () => 'a name on its picture shows the picture, the name and a short detail only',
|
|
146
|
+
he: () => 'שם על התמונה מציג רק את התמונה, את השם ופרט קצר',
|
|
147
|
+
},
|
|
148
|
+
'list-strips-need-pictures': {
|
|
149
|
+
en: () => 'strips need a picture in every item — a still grid instead',
|
|
150
|
+
he: () => 'רצועות צריכות תמונה בכל פריט — במקומן רשת שעומדת במקום',
|
|
151
|
+
},
|
|
152
|
+
'list-strips-at-most': {
|
|
153
|
+
en: r => `${r.v('max')} strips fit at most — "${r.v('alias')}" has ${r.v('items')}: ${r.m('instead')}`,
|
|
154
|
+
he: r => `נכנסות לכל היותר ${r.v('max')} רצועות — ב־"${r.v('alias')}" יש ${r.v('items')}: ${r.m('instead')}`,
|
|
155
|
+
},
|
|
156
|
+
'list-never-arrange': {
|
|
157
|
+
en: r => `${r.why()} — ${r.m('instead')}`,
|
|
158
|
+
he: r => `${r.why()} — ${r.m('instead')}`,
|
|
159
|
+
},
|
|
160
|
+
'list-too-few-for': {
|
|
161
|
+
en: r => `${r.m('arrange')} needs ${r.v('fewest')} items — "${r.v('alias')}" has ${r.v('items')}: ${r.m('instead')}`,
|
|
162
|
+
he: r => `"${r.m('arrange')}" צריך ${r.v('fewest')} פריטים — ב־"${r.v('alias')}" יש ${r.v('items')}: ${r.m('instead')}`,
|
|
163
|
+
},
|
|
164
|
+
'list-shows-first': {
|
|
165
|
+
en: r => `${r.m('arrange')} shows the first ${r.v('most')} of "${r.v('alias')}"'s ${r.v('items')}, then the link to all of them`,
|
|
166
|
+
he: r => `"${r.m('arrange')}" מציג את ${r.v('most')} הראשונים מתוך ${r.v('items')} של "${r.v('alias')}", ואחריהם הקישור לכולם`,
|
|
167
|
+
},
|
|
168
|
+
'list-bento-too-few': {
|
|
169
|
+
en: r => `a bento needs ${r.v('fewest')} items — ${r.m('instead')}`,
|
|
170
|
+
he: r => `בנטו צריך ${r.v('fewest')} פריטים — ${r.m('instead')}`,
|
|
171
|
+
},
|
|
172
|
+
'list-bento-trim': {
|
|
173
|
+
en: r => `a bento fits ${r.v('fills')} — "${r.v('alias')}" has ${r.v('items')}, so it shows ${r.v('shows')} and the link to all of them`,
|
|
174
|
+
he: r => `בנטו מתאים ל־${r.v('fillsOr')} פריטים — ב־"${r.v('alias')}" יש ${r.v('items')}, אז יוצגו ${r.v('shows')} והקישור לכולם`,
|
|
175
|
+
},
|
|
176
|
+
'list-tilted-long': {
|
|
177
|
+
en: r => `its ${r.roles('roles', true)} run long — a turned card shows their first lines`,
|
|
178
|
+
he: r => `${r.roles('roles', true)} ארוכים — כרטיס מוטה מציג רק את השורות הראשונות`,
|
|
179
|
+
},
|
|
180
|
+
'list-grid-long': {
|
|
181
|
+
en: r => `its ${r.roles('roles', true)} run long — a grid would cut them: ${r.m('instead')}`,
|
|
182
|
+
he: r => `${r.roles('roles', true)} ארוכים — רשת הייתה חותכת אותם: ${r.m('instead')}`,
|
|
183
|
+
},
|
|
184
|
+
'list-strip-open-first': {
|
|
185
|
+
en: () => 'one strip is always open — the first',
|
|
186
|
+
he: () => 'רצועה אחת תמיד פתוחה — הראשונה',
|
|
187
|
+
},
|
|
188
|
+
'list-strip-wider': {
|
|
189
|
+
en: () => 'the open strip is the wider one',
|
|
190
|
+
he: () => 'הרצועה הפתוחה היא הרחבה',
|
|
191
|
+
},
|
|
192
|
+
'list-none-stands-out': {
|
|
193
|
+
en: () => 'nothing stands out — no way to stand out',
|
|
194
|
+
he: () => 'אף אחד לא בולט — ולכן אין גם דרך לבלוט',
|
|
195
|
+
},
|
|
196
|
+
'list-rows-only-who': {
|
|
197
|
+
en: r => `${r.word('who')} is a row's — the first stands out`,
|
|
198
|
+
he: r => `"${r.m('who')}" שייך לשורה — הראשון בולט במקומו`,
|
|
199
|
+
},
|
|
200
|
+
'list-strips-only-how': {
|
|
201
|
+
en: r => `${r.word('how')} is a strip's — bigger instead`,
|
|
202
|
+
he: r => `"${r.m('how')}" שייך לרצועות — במקום זה גדול יותר`,
|
|
203
|
+
},
|
|
204
|
+
'list-rows-standout': {
|
|
205
|
+
en: () => 'numbered rows stand out one way: the one pointed at, the rest dimmed',
|
|
206
|
+
he: () => 'שורות ממוספרות בולטות בדרך אחת: זו שמצביעים עליה, והשאר מעומעמות',
|
|
207
|
+
},
|
|
208
|
+
'list-never-move': {
|
|
209
|
+
en: r => `${r.why()} — no ${r.v('moves')}`,
|
|
210
|
+
he: r => `${r.why()} — בלי ${r.m('moves')}`,
|
|
211
|
+
},
|
|
212
|
+
'list-fan-drag-only': {
|
|
213
|
+
en: r => `a fan is only dragged — no ${r.v('moves')}`,
|
|
214
|
+
he: r => `מניפה רק נגררת — בלי ${r.m('moves')}`,
|
|
215
|
+
},
|
|
216
|
+
'list-fan-too-few': {
|
|
217
|
+
en: r => `a fan of fewer than ${r.v('fewest')} cards stays still`,
|
|
218
|
+
he: r => `מניפה של פחות מ־${r.v('fewest')} כרטיסים עומדת במקום`,
|
|
219
|
+
},
|
|
220
|
+
'list-drift-needs-pictures': {
|
|
221
|
+
en: r => `"${r.v('alias')}" has no pictures — no drifting rows`,
|
|
222
|
+
he: r => `ב־"${r.v('alias')}" אין תמונות — בלי שורות נסחפות`,
|
|
223
|
+
},
|
|
224
|
+
'list-still-no-move': {
|
|
225
|
+
en: r => `${r.m('arrange')} does not move — no ${r.v('moves')}`,
|
|
226
|
+
he: r => `"${r.m('arrange')}" לא זז — בלי ${r.m('moves')}`,
|
|
227
|
+
},
|
|
228
|
+
'list-row-only-move': {
|
|
229
|
+
en: r => `"${r.v('moves')}" carries a row only`,
|
|
230
|
+
he: r => `"${r.m('moves')}" מזיז רק שורה`,
|
|
231
|
+
},
|
|
232
|
+
'list-page-alone': {
|
|
233
|
+
en: () => 'the page\'s scroll carries the row alone',
|
|
234
|
+
he: () => 'הגלילה של הדף מזיזה את השורה לבדה',
|
|
235
|
+
},
|
|
236
|
+
'list-drift-alone': {
|
|
237
|
+
en: () => 'drifting rows move by themselves alone',
|
|
238
|
+
he: () => 'שורות נסחפות זזות מעצמן, בלי שום תנועה נוספת',
|
|
239
|
+
},
|
|
240
|
+
'list-drift-pictures-only': {
|
|
241
|
+
en: () => 'drifting rows hold pictures only',
|
|
242
|
+
he: () => 'שורות נסחפות מחזיקות רק תמונות',
|
|
243
|
+
},
|
|
244
|
+
'list-drag-default': {
|
|
245
|
+
en: r => `${r.m('arrange')} — the visitor drags it`,
|
|
246
|
+
he: r => `"${r.m('arrange')}" — המבקר גורר אותו`,
|
|
247
|
+
},
|
|
248
|
+
'list-strips-only-hover': {
|
|
249
|
+
en: r => `"${r.v('hovers')}" is a strip's`,
|
|
250
|
+
he: r => `"${r.m('hovers')}" שייך לרצועות`,
|
|
251
|
+
},
|
|
252
|
+
'list-hover-second-picture': {
|
|
253
|
+
en: r => `${r.word('hover')} needs a second picture — "${r.v('alias')}" has one per item`,
|
|
254
|
+
he: r => `"${r.m('hover')}" צריך תמונה שנייה — ב־"${r.v('alias')}" יש אחת לכל פריט`,
|
|
255
|
+
},
|
|
256
|
+
'list-hover-picture': {
|
|
257
|
+
en: r => `${r.word('hover')} needs a picture — "${r.v('alias')}" has none`,
|
|
258
|
+
he: r => `"${r.m('hover')}" צריך תמונה — ב־"${r.v('alias')}" אין תמונות`,
|
|
259
|
+
},
|
|
260
|
+
'list-tilt-moving': {
|
|
261
|
+
en: r => `${r.m('arrange')} moves — its card rises instead of turning`,
|
|
262
|
+
he: r => `"${r.m('arrange')}" זז — הכרטיס שלו עולה במקום להסתובב`,
|
|
263
|
+
},
|
|
264
|
+
'list-tilt-card-only': {
|
|
265
|
+
en: () => 'only a card turns its ground — it rises instead',
|
|
266
|
+
he: () => 'רק כרטיס מסובב את הרקע שלו — הפריט עולה במקום',
|
|
267
|
+
},
|
|
268
|
+
'list-first-screen': {
|
|
269
|
+
en: r => `the first screen shows its items at once — ${r.word('arrive')} plays further down the page`,
|
|
270
|
+
he: r => `המסך הראשון מציג את הפריטים מיד — "${r.m('arrive')}" מתנגן בהמשך הדף`,
|
|
271
|
+
},
|
|
272
|
+
'list-no-swipe': {
|
|
273
|
+
en: r => `${r.m('arrange')} does not swipe on a phone — it stacks`,
|
|
274
|
+
he: r => `"${r.m('arrange')}" לא מחליק בטלפון — הפריטים נערמים זה מתחת לזה`,
|
|
275
|
+
},
|
|
276
|
+
'list-stage-swipes': {
|
|
277
|
+
en: () => 'a stage is a row of cards you swipe on a phone',
|
|
278
|
+
he: () => 'בטלפון במה היא שורת כרטיסים שמחליקים',
|
|
279
|
+
},
|
|
280
|
+
'list-fan-swipes': {
|
|
281
|
+
en: () => 'a fan is a row you swipe on a phone',
|
|
282
|
+
he: () => 'בטלפון מניפה היא שורה שמחליקים',
|
|
283
|
+
},
|
|
284
|
+
'list-too-few-items': {
|
|
285
|
+
en: r => `a list section shows at least ${r.v('min')} items — "${r.v('alias')}" has ${r.v('items')}; show it another way`,
|
|
286
|
+
he: r => `מקטע רשימה מציג לפחות ${r.v('min')} פריטים — ב־"${r.v('alias')}" יש ${r.v('items')}; הציגו אותו בדרך אחרת`,
|
|
287
|
+
},
|
|
288
|
+
'list-arrange-needs-pictures': {
|
|
289
|
+
en: r => `${r.m('arrange')} needs a picture in every item — "${r.v('alias')}" has none; arrange it another way`,
|
|
290
|
+
he: r => `"${r.m('arrange')}" צריך תמונה בכל פריט — ב־"${r.v('alias')}" אין תמונות; סדרו אותה בדרך אחרת`,
|
|
291
|
+
},
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
const isRef = (v: unknown): v is LayoutWordRef => !!v && typeof v === 'object' && !Array.isArray(v) && 'k' in v && 'w' in v;
|
|
295
|
+
const refs = (v: LayoutWordsValue | undefined): LayoutWordRef[] => (Array.isArray(v) ? v.filter(isRef) : isRef(v) ? [v] : []);
|
|
296
|
+
const join = (list: ReadonlyArray<string>, last: string): string => (list.length < 2 ? list.join('') : `${list.slice(0, -1).join(', ')}${last}${list[list.length - 1]}`);
|
|
297
|
+
|
|
298
|
+
function readerFor(said: Pick<ListSaid, 'params'>, lang: CommerceLanguage): Reader {
|
|
299
|
+
const p = said.params ?? {};
|
|
300
|
+
const he = lang === CommerceLanguage.He;
|
|
301
|
+
const meaning = (r: LayoutWordRef) => listMeaning(r.k as ListIngredient, r.w, he ? CommerceLanguage.He : CommerceLanguage.En);
|
|
302
|
+
return {
|
|
303
|
+
v: key => {
|
|
304
|
+
const value = p[key];
|
|
305
|
+
if (value === undefined || value === null) return '';
|
|
306
|
+
if (isRef(value)) return value.w;
|
|
307
|
+
if (Array.isArray(value)) return (value as ReadonlyArray<unknown>).map(x => (isRef(x) ? x.w : String(x))).join(', ');
|
|
308
|
+
return String(value);
|
|
309
|
+
},
|
|
310
|
+
word: key => refs(p[key]).map(r => `"${r.w}"`).join(', '),
|
|
311
|
+
m: key => refs(p[key]).map(meaning).join(', '),
|
|
312
|
+
roles: (key, and) => {
|
|
313
|
+
const list = (Array.isArray(p[key]) ? (p[key] as ReadonlyArray<unknown>) : [p[key]]).filter(x => x !== undefined).map(String);
|
|
314
|
+
const said = he ? list.map(r => ROLE_HE[r] ?? r) : list;
|
|
315
|
+
return and ? join(said, he ? ' ו' : ' and ') : said.join(', ');
|
|
316
|
+
},
|
|
317
|
+
why: () => {
|
|
318
|
+
const own = String(p[he ? 'whyHe' : 'why'] ?? '').trim();
|
|
319
|
+
return own || (he ? NEVER_WHY.he : NEVER_WHY.en);
|
|
320
|
+
},
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/** What the judge said, in a language — English (the issue's `message`) unless the language reads Hebrew. */
|
|
325
|
+
export function listSaidSentence(said: Pick<ListSaid, 'code' | 'params'>, lang: string | null | undefined): string {
|
|
326
|
+
const entry = LIST_SAY_WORDS[said.code];
|
|
327
|
+
const language = commerceLanguage(lang);
|
|
328
|
+
return entry ? entry[language](readerFor(said, language)) : said.code;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/** An issue of the list judge in the admin's language; an issue it did not word (or an older one) keeps its message. */
|
|
332
|
+
export function listSentence(issue: Pick<LayoutIssue, 'message' | 'words'>, lang: string | null | undefined): string {
|
|
333
|
+
const words = issue.words;
|
|
334
|
+
return words && words.code in LIST_SAY_WORDS ? listSaidSentence(words as ListSaid, lang) : issue.message;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/** The values a bento-trim sentence names, Hebrew's "or" included (`3, 5 או 7`). */
|
|
338
|
+
export function bentoFillsParams(fills: ReadonlyArray<number>): ListSayParams {
|
|
339
|
+
return { fills: fills.map(String), fillsOr: join(fills.map(String), ' או ') };
|
|
340
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AccountRole, ShopRole } from '@vectoriox/iox-ui/composite-core';
|
|
2
|
+
import { commerceLanguage } from '@vectoriox/iox-ui/commerce-core';
|
|
2
3
|
import { LinkType, MenuButtonKind, menuButtonOf, menuButtonProps, menuDialogProps, MenuLook, MenuTrait } from '@vectoriox/iox-ui/design-core';
|
|
3
4
|
|
|
4
5
|
import { PatternGlobalPosition } from './patterns';
|
|
@@ -94,7 +95,7 @@ export interface NavShapeOptions {
|
|
|
94
95
|
* traits on the drawer, the menu button and the drawer's Close; a default writes nothing (R-H4). Absent: the parts
|
|
95
96
|
* keep what they have. */
|
|
96
97
|
look?: Partial<MenuLook>;
|
|
97
|
-
/** The site's language, for the words
|
|
98
|
+
/** The site's language, for the words the menu's parts show and are named by (`menuWords`). Default English. */
|
|
98
99
|
locale?: string;
|
|
99
100
|
}
|
|
100
101
|
|
|
@@ -134,15 +135,18 @@ export const NAV_SHAPE_COPY = {
|
|
|
134
135
|
home: 'Home',
|
|
135
136
|
} as const;
|
|
136
137
|
|
|
137
|
-
/** The words
|
|
138
|
-
*
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
138
|
+
/** The words the menu's parts say, in the site's language — a `word` menu button's visible Menu ⇄ Close (HI2a) and the
|
|
139
|
+
* names a screen reader hears (the menu button, the drawer, its Close, the bar's More, the drawer's Home link). A site
|
|
140
|
+
* in a language the table does not hold speaks English, as it always did (vectoriox/iox-ui#100). */
|
|
141
|
+
export interface MenuWords { menu: string; close: string; closeMenu: string; more: string; home: string }
|
|
142
|
+
|
|
143
|
+
const MENU_WORDS: Readonly<Record<string, MenuWords>> = {
|
|
144
|
+
en: { ...NAV_SHAPE_COPY },
|
|
145
|
+
he: { menu: 'תפריט', close: 'סגירה', closeMenu: 'סגירת התפריט', more: 'עוד', home: 'בית' },
|
|
142
146
|
};
|
|
143
147
|
|
|
144
|
-
export function menuWords(locale: string | undefined):
|
|
145
|
-
return MENU_WORDS[locale
|
|
148
|
+
export function menuWords(locale: string | undefined): MenuWords {
|
|
149
|
+
return MENU_WORDS[commerceLanguage(locale)] ?? MENU_WORDS['en'];
|
|
146
150
|
}
|
|
147
151
|
|
|
148
152
|
/** The layer names of the parts (R2: the tree, the breadcrumb and the toolbar read them). */
|
|
@@ -397,8 +401,8 @@ function labelText(kit: Kit, suffix: string, words: string): SerializedNode {
|
|
|
397
401
|
// lines makes the row taller, and two centred buttons in rows of different heights part (iox-ui#60).
|
|
398
402
|
const MENU_BUTTON_LAY = { width: '48px', height: '48px', alignItems: 'center', justifyContent: 'center', alignSelf: 'flex-start', flexShrink: '0' };
|
|
399
403
|
|
|
400
|
-
function menuButton(kit: Kit, drawerId: string, at: string): SerializedNode {
|
|
401
|
-
const btn = part(kit, 'menu', BUTTON, { tag: 'button', ariaLabel:
|
|
404
|
+
function menuButton(kit: Kit, drawerId: string, at: string, words: MenuWords): SerializedNode {
|
|
405
|
+
const btn = part(kit, 'menu', BUTTON, { tag: 'button', ariaLabel: words.menu }, 'button-ghost', NavRole.MenuButton, { ...MENU_BUTTON_LAY });
|
|
402
406
|
btn.children = [iconNode(kit, 'menu-icon', MENU_ICON)];
|
|
403
407
|
btn.interactions = [clickTo(kit, 'menu', NavDialogAction.Toggle, drawerId)];
|
|
404
408
|
phoneOnly(btn, at, MENU_DISPLAY);
|
|
@@ -409,14 +413,14 @@ function pageLink(kit: Kit, suffix: string, page: NavPage, role: NavRole, lay: R
|
|
|
409
413
|
return part(kit, suffix, LINK, { label: page.label, linkType: LinkType.Page, pageRoute: page.route }, 'link', role, lay);
|
|
410
414
|
}
|
|
411
415
|
|
|
412
|
-
function drawer(kit: Kit, root: SerializedNode, pages: NavPage[], at: string): SerializedNode {
|
|
416
|
+
function drawer(kit: Kit, root: SerializedNode, pages: NavPage[], at: string, words: MenuWords): SerializedNode {
|
|
413
417
|
const dr = part(kit, 'drawer', DIALOG, {
|
|
414
|
-
placement: 'end', closeOnBackdrop: true, showCloseButton: false, ariaLabel:
|
|
418
|
+
placement: 'end', closeOnBackdrop: true, showCloseButton: false, ariaLabel: words.menu, closeAbove: at,
|
|
415
419
|
}, 'dialog', NavRole.Drawer, { width: '86vw', maxWidth: '360px', display: 'flex', flexDirection: 'column', gap: '20px' });
|
|
416
420
|
const brandWords = textOf(find([root], NavRole.Brand) ?? root) || NAV_PART_LABELS[NavRole.Root];
|
|
417
421
|
const head = part(kit, 'drawer-head', CONTAINER, {}, 'box', NavRole.DrawerHead,
|
|
418
422
|
{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', gap: '12px' });
|
|
419
|
-
const close = part(kit, 'drawer-close', BUTTON, { tag: 'button', ariaLabel:
|
|
423
|
+
const close = part(kit, 'drawer-close', BUTTON, { tag: 'button', ariaLabel: words.closeMenu }, 'button-ghost', NavRole.DrawerClose, { ...MENU_BUTTON_LAY });
|
|
420
424
|
close.children = [iconNode(kit, 'drawer-close-icon', CLOSE_ICON)];
|
|
421
425
|
close.interactions = [clickTo(kit, 'drawer-close', NavDialogAction.Close, dr.id)];
|
|
422
426
|
head.children = [part(kit, 'drawer-brand', HEADING, { content: brandWords, level: 'h3' }, 'h3'), close];
|
|
@@ -426,7 +430,7 @@ function drawer(kit: Kit, root: SerializedNode, pages: NavPage[], at: string): S
|
|
|
426
430
|
// beat one inherited from the list). The links rest at the body weight and the CURRENT page reads by its ink and
|
|
427
431
|
// weight (no line since 2026-11-22) — the shared CSS keys that on the list's role (iox-design.css), so no Link holds
|
|
428
432
|
// a literal over its element style.
|
|
429
|
-
list.children = withHome(root, pages).map((p, i) => pageLink(kit, `drawer-link-${i}`, p, NavRole.DrawerLink,
|
|
433
|
+
list.children = withHome(root, pages, words).map((p, i) => pageLink(kit, `drawer-link-${i}`, p, NavRole.DrawerLink,
|
|
430
434
|
{ display: 'flex', alignItems: 'center', minHeight: '48px', fontSize: 'var(--iox-size-lead)' }));
|
|
431
435
|
dr.children = [head, list];
|
|
432
436
|
const cta = find([root], NavRole.Cta);
|
|
@@ -510,35 +514,35 @@ const BAR_ITEM_LAY = {
|
|
|
510
514
|
flexGrow: '1', flexShrink: '1', flexBasis: '0px', minWidth: '0px', minHeight: '52px', padding: '4px 2px', textDecoration: 'none',
|
|
511
515
|
};
|
|
512
516
|
|
|
513
|
-
function moreItem(kit: Kit, drawerId: string): SerializedNode {
|
|
517
|
+
function moreItem(kit: Kit, drawerId: string, words: MenuWords): SerializedNode {
|
|
514
518
|
const more = part(kit, 'bar-more', BUTTON, { tag: 'button' }, 'bottom-bar-item', NavRole.More, BAR_ITEM_LAY);
|
|
515
|
-
more.children = [iconNode(kit, 'bar-more-icon', MORE_ICON), labelText(kit, 'bar-more-label',
|
|
519
|
+
more.children = [iconNode(kit, 'bar-more-icon', MORE_ICON), labelText(kit, 'bar-more-label', words.more)];
|
|
516
520
|
more.interactions = [clickTo(kit, 'bar-more', NavDialogAction.Toggle, drawerId)];
|
|
517
521
|
return more;
|
|
518
522
|
}
|
|
519
523
|
|
|
520
524
|
/** Home first, then the header's pages: the header reaches Home through its brand, a phone menu names it. */
|
|
521
|
-
function withHome(root: SerializedNode, pages: NavPage[]): NavPage[] {
|
|
525
|
+
function withHome(root: SerializedNode, pages: NavPage[], words: MenuWords): NavPage[] {
|
|
522
526
|
const brand = find([root], NavRole.Brand);
|
|
523
527
|
const home = brand && isPageLink(brand) && prop(brand, 'pageRoute') === HOME_ROUTE && !pages.some(p => p.route === HOME_ROUTE)
|
|
524
|
-
? [{ label:
|
|
528
|
+
? [{ label: words.home, route: HOME_ROUTE }] : [];
|
|
525
529
|
return [...home, ...pages];
|
|
526
530
|
}
|
|
527
531
|
|
|
528
532
|
/** The bar's pages: Home first (a bottom bar's customary first stop), capped. */
|
|
529
|
-
function barPages(root: SerializedNode, pages: NavPage[], count: number): NavPage[] {
|
|
530
|
-
return withHome(root, pages).slice(0, count);
|
|
533
|
+
function barPages(root: SerializedNode, pages: NavPage[], count: number, words: MenuWords): NavPage[] {
|
|
534
|
+
return withHome(root, pages, words).slice(0, count);
|
|
531
535
|
}
|
|
532
536
|
|
|
533
|
-
function bar(kit: Kit, root: SerializedNode, pages: NavPage[], shape: NavShape, count: number, drawerId: string | null, at: string): SerializedNode {
|
|
537
|
+
function bar(kit: Kit, root: SerializedNode, pages: NavPage[], shape: NavShape, count: number, drawerId: string | null, at: string, words: MenuWords): SerializedNode {
|
|
534
538
|
// The node IS fixed (not only its element style): the builder canvas forces a node's own `position`
|
|
535
539
|
// with !important, so a stored `static` default would pin the bar into the flow there.
|
|
536
540
|
const b = part(kit, 'bar', CONTAINER, { htmlTag: 'nav' }, 'bottom-bar', NavRole.Bar,
|
|
537
541
|
{ position: 'fixed', justifyContent: 'space-around', alignItems: 'stretch', gap: '4px', padding: '6px 8px', width: 'auto' });
|
|
538
542
|
phoneOnly(b, at, 'flex');
|
|
539
543
|
const itemCount = shape === NavShape.Both ? count - 1 : count;
|
|
540
|
-
b.children = barPages(root, pages, itemCount).map((p, i) => barItem(kit, i, p));
|
|
541
|
-
if (shape === NavShape.Both && drawerId) b.children.push(moreItem(kit, drawerId));
|
|
544
|
+
b.children = barPages(root, pages, itemCount, words).map((p, i) => barItem(kit, i, p));
|
|
545
|
+
if (shape === NavShape.Both && drawerId) b.children.push(moreItem(kit, drawerId, words));
|
|
542
546
|
b.isGlobal = true;
|
|
543
547
|
b.globalPosition = PatternGlobalPosition.After;
|
|
544
548
|
return b;
|
|
@@ -651,6 +655,7 @@ export function planNavShape(globals: ReadonlyArray<SerializedNode>, shape: NavS
|
|
|
651
655
|
const everyWidth = shape === NavShape.Drawer && (options.everyWidth ?? wasEveryWidth);
|
|
652
656
|
if (options.everyWidth && shape !== NavShape.Drawer) throw new NavShapeError('only a drawer menu shows at every width');
|
|
653
657
|
const kit = makeKit(out, root.id, options.newId);
|
|
658
|
+
const words = menuWords(options.locale);
|
|
654
659
|
|
|
655
660
|
adoptRoles(root);
|
|
656
661
|
const { pages } = phoneMenuPages(root, options.pages);
|
|
@@ -663,7 +668,7 @@ export function planNavShape(globals: ReadonlyArray<SerializedNode>, shape: NavS
|
|
|
663
668
|
const topIndex = out.findIndex(g => g.role === NavRole.Drawer);
|
|
664
669
|
if (!dr && topIndex >= 0) dr = out.splice(topIndex, 1)[0];
|
|
665
670
|
if (dr) { delete dr.isGlobal; delete dr.globalPosition; }
|
|
666
|
-
if (wantDrawer && !dr) dr = drawer(kit, root, pages, at);
|
|
671
|
+
if (wantDrawer && !dr) dr = drawer(kit, root, pages, at, words);
|
|
667
672
|
if (!wantDrawer) dr = null;
|
|
668
673
|
// A drawer reached at every width never closes itself above a breakpoint.
|
|
669
674
|
if (dr) dr.props = { ...dr.props, closeAbove: everyWidth ? '' : at };
|
|
@@ -672,7 +677,7 @@ export function planNavShape(globals: ReadonlyArray<SerializedNode>, shape: NavS
|
|
|
672
677
|
if (options.menuSide !== undefined && !(Object.values(MenuSide) as string[]).includes(options.menuSide)) throw new NavShapeError(`a menu button cannot sit at "${options.menuSide}"`);
|
|
673
678
|
const was = menuPlace(root);
|
|
674
679
|
const existingMenu = removeRole(root, NavRole.MenuButton);
|
|
675
|
-
const menu = wantMenuButton ? (existingMenu ? asToggle(existingMenu) : menuButton(kit, dr!.id, at)) : null;
|
|
680
|
+
const menu = wantMenuButton ? (existingMenu ? asToggle(existingMenu) : menuButton(kit, dr!.id, at, words)) : null;
|
|
676
681
|
|
|
677
682
|
for (const p of phoneHiddenParts(root)) {
|
|
678
683
|
if (everyWidth && !KEPT_AT_EVERY_WIDTH.has(roleOf(p))) { displayEverywhere(p, NONE); continue; }
|
|
@@ -713,7 +718,7 @@ export function planNavShape(globals: ReadonlyArray<SerializedNode>, shape: NavS
|
|
|
713
718
|
let more: SerializedNode | null = null;
|
|
714
719
|
if (wantBar) {
|
|
715
720
|
const count = clampBarCount(options.barItems, shape);
|
|
716
|
-
if (!b) b = bar(kit, root, pages, shape, count, dr?.id ?? null, at);
|
|
721
|
+
if (!b) b = bar(kit, root, pages, shape, count, dr?.id ?? null, at, words);
|
|
717
722
|
else {
|
|
718
723
|
moveDisplayOverride(b, at);
|
|
719
724
|
more = (b.children ?? []).find(c => c.role === NavRole.More) ?? null;
|
|
@@ -721,11 +726,11 @@ export function planNavShape(globals: ReadonlyArray<SerializedNode>, shape: NavS
|
|
|
721
726
|
if (options.barItems !== undefined) {
|
|
722
727
|
const items = b.children;
|
|
723
728
|
const want = shape === NavShape.Both ? count - 1 : count;
|
|
724
|
-
const extra = barPages(root, pages, BAR_ITEMS_MAX).filter(p => !items.some(c => prop(c, 'pageRoute') === p.route));
|
|
729
|
+
const extra = barPages(root, pages, BAR_ITEMS_MAX, words).filter(p => !items.some(c => prop(c, 'pageRoute') === p.route));
|
|
725
730
|
while (items.length > want) items.pop();
|
|
726
731
|
while (items.length < want && extra.length) items.push(barItem(kit, items.length, extra.shift()!));
|
|
727
732
|
}
|
|
728
|
-
if (shape === NavShape.Both && dr) b.children.push(retarget(more ?? moreItem(kit, dr.id), dr.id));
|
|
733
|
+
if (shape === NavShape.Both && dr) b.children.push(retarget(more ?? moreItem(kit, dr.id, words), dr.id));
|
|
729
734
|
}
|
|
730
735
|
out.push(b);
|
|
731
736
|
}
|
|
@@ -776,7 +781,7 @@ export interface AddBarItemResult {
|
|
|
776
781
|
* The bar's Items list "Add item" (board 2): one more item, before More — the next navigation page the
|
|
777
782
|
* bar does not link to yet (Home when every page is there). Refused at five (Q2). Input not mutated.
|
|
778
783
|
*/
|
|
779
|
-
export function addBarItem(globals: ReadonlyArray<SerializedNode>, options: Pick<NavShapeOptions, 'newId' | 'pages'> = {}): AddBarItemResult {
|
|
784
|
+
export function addBarItem(globals: ReadonlyArray<SerializedNode>, options: Pick<NavShapeOptions, 'newId' | 'pages' | 'locale'> = {}): AddBarItemResult {
|
|
780
785
|
const out = clone(globals) as SerializedNode[];
|
|
781
786
|
const root = findNavRoot(out);
|
|
782
787
|
const b = find(out, NavRole.Bar);
|
|
@@ -784,8 +789,9 @@ export function addBarItem(globals: ReadonlyArray<SerializedNode>, options: Pick
|
|
|
784
789
|
const kids = b.children ?? (b.children = []);
|
|
785
790
|
if (kids.length >= BAR_ITEMS_MAX) return { globals: out, added: false };
|
|
786
791
|
const linked = new Set(kids.filter(c => c.role === NavRole.BarItem).map(c => prop(c, 'pageRoute')));
|
|
787
|
-
const
|
|
788
|
-
|
|
792
|
+
const words = menuWords(options.locale);
|
|
793
|
+
const page = barPages(root, phoneMenuPages(root, options.pages).pages, BAR_ITEMS_MAX + 1, words).find(p => !linked.has(p.route))
|
|
794
|
+
?? { label: words.home, route: HOME_ROUTE };
|
|
789
795
|
const item = barItem(makeKit(out, root.id, options.newId), kids.length, page);
|
|
790
796
|
const more = kids.findIndex(c => c.role === NavRole.More);
|
|
791
797
|
if (more >= 0) kids.splice(more, 0, item); else kids.push(item);
|
|
@@ -45,6 +45,7 @@ export * from './strict-schema';
|
|
|
45
45
|
export * from './plan-edits';
|
|
46
46
|
export * from './plan-words';
|
|
47
47
|
export * from './audit-site';
|
|
48
|
+
export * from './audit-words';
|
|
48
49
|
export * from './stock-match';
|
|
49
50
|
export * from './stock-photos';
|
|
50
51
|
export * from './film';
|
|
@@ -63,6 +64,8 @@ export * from './photo-inventory';
|
|
|
63
64
|
export * from './check-layout';
|
|
64
65
|
export * from './check-list';
|
|
65
66
|
export * from './list-table';
|
|
67
|
+
export * from './list-words';
|
|
68
|
+
export * from './list-keep';
|
|
66
69
|
export * from './layout-space';
|
|
67
70
|
export * from './list-space';
|
|
68
71
|
export * from './list-panel';
|
|
@@ -7613,6 +7613,53 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
7613
7613
|
"hover.tilt": "the card's ground turns, its content settles smaller",
|
|
7614
7614
|
"arrive.clip-up": "each card opens from its bottom edge, its content rising inside"
|
|
7615
7615
|
},
|
|
7616
|
+
"meaningsHe": {
|
|
7617
|
+
"item.photo": "תמונות בלבד",
|
|
7618
|
+
"item.card": "כרטיס שבנוי מהשדות של הרשימה (החלקים שלה)",
|
|
7619
|
+
"arrange.row": "זה לצד זה בשורה אחת שעוברים לאורכה",
|
|
7620
|
+
"arrange.grid": "רשת שעומדת במקום",
|
|
7621
|
+
"arrange.masonry": "קיר שעומד במקום ושומר על הצורה של כל תמונה",
|
|
7622
|
+
"arrange.strips": "רצועות גבוהות, אחת תמיד פתוחה לרוחב עם כל הסיפור שלה",
|
|
7623
|
+
"arrange.deck": "ערימה: כרטיס אחד למעלה, והשאר מחכים מאחוריו",
|
|
7624
|
+
"who.none": "אף אחד לא בולט",
|
|
7625
|
+
"who.middle": "זה שבאמצע השורה",
|
|
7626
|
+
"who.first": "הראשון",
|
|
7627
|
+
"who.pointed": "זה שהמבקר מצביע עליו או נוגע בו",
|
|
7628
|
+
"how.bigger": "גדול מהשאר",
|
|
7629
|
+
"how.wider": "פתוח לרוחב (רצועות בלבד)",
|
|
7630
|
+
"how.raised": "מורם מעל השאר",
|
|
7631
|
+
"how.brighter": "השאר מעומעמים",
|
|
7632
|
+
"move.arrows": "כפתורי חצים",
|
|
7633
|
+
"move.drag": "גרירה בעכבר או באצבע",
|
|
7634
|
+
"move.auto": "מתחלף מעצמו (עוצר מתחת לעכבר)",
|
|
7635
|
+
"move.page": "הגלילה של הדף מזיזה אותו הצידה (לבד)",
|
|
7636
|
+
"hover.rise": "פריט עולה מתחת לעכבר",
|
|
7637
|
+
"hover.open": "רצועה נפתחת מתחת לעכבר (רצועות בלבד)",
|
|
7638
|
+
"hover.zoom": "התמונה גדלה בתוך המסגרת שלה",
|
|
7639
|
+
"hover.dim": "האחרים מתעמעמים",
|
|
7640
|
+
"arrive.together": "כולם יחד",
|
|
7641
|
+
"arrive.one-by-one": "אחד אחרי השני",
|
|
7642
|
+
"arrive.slide-in": "מחליקים פנימה מהצד",
|
|
7643
|
+
"phone.swipe": "שורה שמחליקים",
|
|
7644
|
+
"phone.stack": "אחד מתחת לשני",
|
|
7645
|
+
"phone.two-up": "שניים בשורה",
|
|
7646
|
+
"item.title-on-photo": "שם הפריט על התמונה שלו",
|
|
7647
|
+
"item.packshot": "כל פריט על אריח באותו צבע",
|
|
7648
|
+
"item.colour-block": "כל פריט על רקע בצבע משלו (מהתוכן, עם בדיקת ניגודיות לכל פריט)",
|
|
7649
|
+
"item.numbered": "מספר גדול מאחורי כל פריט או מעליו",
|
|
7650
|
+
"arrange.hang": "קיר: פריטים בשניים או שלושה גדלים ובגבהים שונים, חלקם מעבר לקצה המקטע",
|
|
7651
|
+
"arrange.bento": "אריח אחד בגובה שתי שורות לצד אריחים קטנים",
|
|
7652
|
+
"arrange.rows": "שורות ממוספרות עם קו דק ביניהן; הפעולה של שורה מופיעה מתחת לעכבר",
|
|
7653
|
+
"arrange.stage": "רשימה בצד אחד מניעה תמונה גדולה אחת בצד השני",
|
|
7654
|
+
"arrange.fan": "כרטיסים פרושים בקשת סביב נקודה אחת",
|
|
7655
|
+
"arrange.tilted": "כל פריט מוטה בכמה מעלות, כמו תמונות מפוזרות",
|
|
7656
|
+
"move.rows": "כמה שורות תמונות שנסחפות הצידה במהירויות שונות",
|
|
7657
|
+
"hover.swap": "התמונה מתחלפת לתמונה השנייה של הפריט",
|
|
7658
|
+
"hover.unveil": "תמונה שנייה נפתחת מאחד הקצוות",
|
|
7659
|
+
"hover.fill": "מסגרת ריקה בכרטיס מתמלאת בתמונה",
|
|
7660
|
+
"hover.tilt": "הרקע של הכרטיס מסתובב, והתוכן מתכווץ מעט",
|
|
7661
|
+
"arrive.clip-up": "כל כרטיס נפתח מהקצה התחתון שלו, והתוכן עולה בתוכו"
|
|
7662
|
+
},
|
|
7616
7663
|
"waits": {},
|
|
7617
7664
|
"belowPro": {
|
|
7618
7665
|
"item.title-on-photo": "photo",
|
|
@@ -111,6 +111,8 @@ export interface BusinessTypeLists {
|
|
|
111
111
|
readonly arranges: ReadonlyArray<string>;
|
|
112
112
|
readonly moves: ReadonlyArray<string>;
|
|
113
113
|
readonly say: ReadonlyArray<string>;
|
|
114
|
+
/** One Hebrew sentence for each English one (vectoriox/iox-ui#123 — a mended list is said in the owner's words). */
|
|
115
|
+
readonly sayHe: ReadonlyArray<string>;
|
|
114
116
|
}
|
|
115
117
|
|
|
116
118
|
/** Award §0c (AW-D34): the column words a type's pages are never offered (contract harness `businessTypes[].column`,
|