@yomotech/view-toolkit 1.0.81 → 1.0.83
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/yomotech-view-toolkit-catalog.mjs +40 -12
- package/fesm2022/yomotech-view-toolkit-catalog.mjs.map +1 -1
- package/fesm2022/yomotech-view-toolkit.mjs +9 -4
- package/fesm2022/yomotech-view-toolkit.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yomotech-view-toolkit-catalog.d.ts +8 -3
- package/types/yomotech-view-toolkit.d.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yomotech-view-toolkit-catalog.mjs","sources":["../../../projects/view-toolkit/catalog/src/field-catalog.ts","../../../projects/view-toolkit/catalog/src/test-flow.ts","../../../projects/view-toolkit/catalog/src/test-signin.ts","../../../projects/view-toolkit/catalog/src/app-settings-catalog.ts","../../../projects/view-toolkit/catalog/src/action-catalog.ts","../../../projects/view-toolkit/catalog/src/caption-text.ts","../../../projects/view-toolkit/catalog/src/test-probe.ts","../../../projects/view-toolkit/catalog/src/style-keys.ts","../../../projects/view-toolkit/catalog/src/design-values.ts","../../../projects/view-toolkit/catalog/src/opening-hours.ts","../../../projects/view-toolkit/catalog/src/map-place.ts","../../../projects/view-toolkit/catalog/src/price.ts","../../../projects/view-toolkit/catalog/src/public-api.ts","../../../projects/view-toolkit/catalog/src/yomotech-view-toolkit-catalog.ts"],"sourcesContent":["// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17\n// - new: data type \"duration\" (hours and minutes, HH:mm in every language) - a basic type, typed with the time picker\n// and the time keyboard, travels as text\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17\n// - new: combobox and autocomplete settings openOnFocus (a tap into the field opens the whole list) and search\n// (startsWith - default - or contains): the app sets them, the selection list follows (tm-guided B4)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09\n// - new: control price for a text field - a price as data (option.amount, currency, from; 213/36)\n// - new: control map for a text field - where the business is (option.lat, option.lon, option.address, option.zoom;\n// point 213 worklist 42, 2026-11-09)\n// - new: control openingHours for a text field - the week's opening times (option.hours, option.timeZone)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07\n// - new: control textBlock for a text - its caption (and value) as a paragraph, no box (point 213 worklist 15a)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n// - new: display style iso for date fields - 2026-10-30 (with time 14:00) in every language (OFFENE-PUNKTE 80)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\n// - new: maxLinesOf (option.maxLines - a shown text ends with … after n lines), alignRowsOf (card list: the cards of a\n// row equally high, buttons at the bottom; center.option.alignRows, on for new card lists)\n// - new: ENTER_KEYS, enterKeyFor - the key at the bottom right of the app keyboard (option.enterKey: done, search, next)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\n// - new: CARD_LAYOUTS / cardLayoutOf - the card field in one, two or three rows (option.cardLayout, OFFENE-PUNKTE 103)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\n// - new: controlChoicesFor - the controls a field can be switched to in the Designer (plain text also as check box,\n// switch, radio buttons, dropdown); the editor keeps no list of its own (review of Shuaib's c157aa5c)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\n// - new: DATA_OBJECT_NAME_PLACES / renameDataObject - where a page names a data object, a rename changes all\n// - new: DATA_OBJECT_KEYS / DATA_OBJECT_PLACES - a data object holds names and types; where the rest is set\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\n// - new: the period - type dateRange (stored [from, to]) with its control dateRangepicker, the date\n// keyboard, placeholder and the date display settings (#166 E4)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-17\n// - new: the field catalog - the ONE place that says which controls exist, which data they fit,\n// which settings they offer, how dates/times/decimals/currencies are encoded and how a field\n// layout is checked. The Designer, the renderer, the AI contract (capabilities.json, schemas,\n// validator, prompt) are to read it from here instead of keeping their own copies (CONTROLS-PLAN.md,\n// step 1, #165).\n// Taken over unchanged from the Designer's field-settings.ts (shuaib, the most complete rules so\n// far) - so the Designer behaves exactly as before once it reads them from here - plus:\n// - basicType: the aliases of the data types (image -> media, checkbox -> boolean, date&time ->\n// datetime, decimal -> bigdecimal), from the developer's field-policy.ts (12248aef, reverted)\n// - placeholder for every control a value is typed or chosen in (before: textInput, textArea,\n// password, dropdown, combobox only)\n// - the keyboard: option.keyboardType per field (string, alpha, numeric, email, date, time; native\n// or none keep the system keyboard); without one the control's default, then the data type's\n// It only describes and checks; nothing renders from it yet (step 2).\n// - change 2026-10-18: effectiveControl - the control the app really uses when option.control is\n// missing (most fields of TM, Paperfeed, Luv2shop, Hotel): the old switches (password, email,\n// timeOnly), DTO types that are a control themselves (dropdown, creditCard, quantity), then the\n// data type. A date with its own pattern (format \"yy-mm-dd\") stays a date. The old option.keyboard\n// counts when keyboardType is missing (#166)\n\n/** Pure policy shared by inspectors and layout validation. No DTO mutation. */\nexport type Bag = Record<string, any>;\nexport interface Setting { key: string; label: string; kind: 'text' | 'number' | 'select' | 'json'; values?: string[]; hint?: string; }\nexport const clone = <T>(value: T): T => JSON.parse(JSON.stringify(value));\nconst own = (o: Bag, k: string) => Object.prototype.hasOwnProperty.call(o, k);\nexport function resolveProperty(root: Bag | any, reference: string): Bag {\n const parts = (reference || '').replace(/^#\\/?/, '').split('/').filter(Boolean).map(p => p.replace(/~1/g, '/').replace(/~0/g, '~'));\n let node: any = root;\n for (const part of parts) node = node?.[part] ?? node?.properties?.[part];\n if (node?.type) return node;\n const name = parts[parts.length - 1];\n const objectName: any = parts.find(p => p !== 'properties');\n return root?.[objectName]?.[name] ?? root?.[objectName]?.properties?.[name] ?? root?.properties?.[name] ?? {};\n}\nexport function normalizeFormat(value: string): string {\n return ({ date: 'iso-date', time: 'iso-time', duration: 'iso-time', 'date-time': 'iso-datetime', datetime: 'iso-datetime', 'date&time': 'iso-datetime', bigdecimal: 'decimal' } as Bag)[String(value).toLowerCase()] || value || '';\n}\nexport function baseType(schema: Bag | any, fallback: string): string {\n const t = String(schema.type || fallback || '').toLowerCase();\n if (t === 'dropdown') return 'string';\n if (t === 'quantity') return 'integer';\n return ['date', 'time', 'duration', 'datetime', 'date-time', 'date&time'].includes(t) ? 'string' : ['decimal', 'bigdecimal'].includes(t) ? 'string' : t;\n}\nexport function effectiveFormat(schema: Bag | any, fallback: string, data: Bag | any): string {\n const semantic = String(schema.type || fallback || '').toLowerCase();\n const temporal = ['date', 'time', 'duration', 'datetime', 'date-time', 'date&time', 'decimal', 'bigdecimal'].includes(semantic);\n const declared = normalizeFormat(schema.format || data.format || '');\n // A date with its own display pattern (format \"yy-mm-dd\") is still a date.\n if (temporal && declared && !(DATA_FORMATS as readonly string[]).includes(declared)) return normalizeFormat(semantic);\n return declared || (temporal ? normalizeFormat(semantic) : '');\n}\nexport function rulesFor(schema: Bag | any, data: Bag | any): Bag {\n // The document's array enum is an item enum, unlike JSON Schema's whole-array enum.\n const source = schema.type === 'array' ? { ...schema, enum: schema.items?.enum } : schema;\n const rules = { ...(data.validation || {}) };\n for (const k of ['enum', 'pattern', 'minLength', 'maxLength', 'minimum', 'maximum', 'multipleOf', 'minItems', 'maxItems', 'uniqueItems']) {\n if (source[k] !== undefined) rules[k] = source[k];\n }\n return rules;\n}\nexport function controlsFor(schema: Bag, fallback: string, option: Bag | any): { value: string; label: string }[] {\n const d = option.fieldData || {}, t = baseType(schema, fallback), f = effectiveFormat(schema, fallback, d), r: any = rulesFor(schema, d);\n let values: string[] = [];\n const declared = String(schema[\"type\"] || fallback || '').toLowerCase();\n if (declared === 'creditcard') values = ['creditCard'];\n else if (declared === 'quantity') values = ['quantity', 'spinner', 'textInput'];\n else if (declared === 'dropdown') values = ['dropdown', 'combobox', 'autocomplete', 'radiobutton'];\n // a period from - to, stored as the pair [from, to] (#166 E4)\n else if (declared === 'daterange') values = ['dateRangepicker'];\n // a picture, or several changing by themselves (2026-11-07, worklist 213 15c)\n else if (declared === 'media' || declared === 'image') values = ['image', 'slideshow'];\n else if (f === 'flag' || t === 'boolean') values = ['checkbox', 'switch', 'radiobutton'];\n else if (f === 'iso-date') values = ['datepicker', 'textInput'];\n else if (f === 'iso-time') values = ['timepicker', 'textInput'];\n else if (f === 'iso-datetime') values = ['dateTimepicker', 'textInput'];\n else if (f === 'decimal') values = ['textInput', 'spinner'];\n else if (t === 'array') values = ['picklist', 'multiselect'];\n else if (r.enum) values = ['dropdown', 'radiobutton', 'combobox', 'autocomplete'];\n else if (t === 'string') values = ['textInput', 'textArea', 'password', 'combobox', 'autocomplete', 'email', 'textBlock', 'openingHours', 'map', 'price'];\n else if (t === 'integer' || t === 'number') values = ['textInput', 'spinner', 'slider'];\n if (values.length) values.push('output');\n const labels: Bag = { textInput: 'Text field', textArea: 'Text area', dateTimepicker: 'Date and time picker', dateRangepicker: 'Date range picker', radiobutton: 'Radio buttons', datepicker: 'Date picker', timepicker: 'Time picker', output: 'Read-only output', creditCard: 'Credit card', quantity: 'Quantity', textBlock: 'Text block', image: 'Image', slideshow: 'Slideshow', openingHours: 'Opening hours', map: 'Map', price: 'Price' };\n return values.map(value => ({ value, label: labels[value] || value[0].toUpperCase() + value.slice(1) }));\n}\n/**\n * The controls a field can be switched to in the Designer (decision 2026-10-24: the editor keeps no list of its\n * own): those that fit now (controlsFor) and those that fit once the field is set up for them - a plain text as\n * check box or switch (it then becomes a two-state flag) or as radio buttons or dropdown (it then needs its\n * values); a list of two texts as check box or switch. \"Read-only output\" is no choice here - read only is set\n * with protected.\n */\nexport function controlChoicesFor(schema: Bag, fallback: string, option: Bag | any): { value: string; label: string }[] {\n const s = schema || {};\n const declared = String(s[\"type\"] || fallback || '').toLowerCase();\n const plainText = declared === 'string' && baseType(s, fallback) === 'string' && !effectiveFormat(s, fallback, {});\n const fieldData = { ...((option || {}).fieldData || {}) };\n if (plainText) delete fieldData.format; // the choices of the field itself, not of a choice already made\n const choices = controlsFor(s, fallback, { ...(option || {}), fieldData }).filter(c => c.value !== 'output');\n const add = (...values: string[]) => {\n for (const value of values) if (!choices.some(c => c.value === value)) choices.push(controlLabel(value));\n };\n if (plainText && Array.isArray(s[\"enum\"])) {\n if (s[\"enum\"].length === 2 && s[\"enum\"].every((v: any) => typeof v === 'string')) add('checkbox', 'switch');\n } else if (plainText) {\n add('checkbox', 'switch', 'radiobutton', 'dropdown');\n }\n return choices;\n}\n\n/** A control with its label as the catalog names it. */\nfunction controlLabel(value: string): { value: string; label: string } {\n const labels: Bag = { textInput: 'Text field', textArea: 'Text area', dateTimepicker: 'Date and time picker', dateRangepicker: 'Date range picker', radiobutton: 'Radio buttons', datepicker: 'Date picker', timepicker: 'Time picker', output: 'Read-only output', creditCard: 'Credit card', quantity: 'Quantity', textBlock: 'Text block', image: 'Image', slideshow: 'Slideshow', openingHours: 'Opening hours', map: 'Map', price: 'Price' };\n return { value, label: labels[value] || value[0].toUpperCase() + value.slice(1) };\n}\n\nexport const canonicalControl = (c: string) => ({ textfield: 'textInput', textarea: 'textArea', radioButton: 'radiobutton', datetimepicker: 'dateTimepicker', daterangepicker: 'dateRangepicker', date: 'datepicker', time: 'timepicker' } as Bag)[c] || c;\n\n// ---------------------------------------------------------------------------------------------\n// Data types, controls, placeholder and keyboard\n// ---------------------------------------------------------------------------------------------\n\n/** The data types of a property after its aliases. */\n/**\n * A data object (objects/*.json) holds names and types only (decision 2026-10-24): each property has\n * just these keys. Everything else is set on the layout field - DATA_OBJECT_PLACES says where.\n */\nexport const DATA_OBJECT_KEYS = ['type'] as const;\n\n/** Where what older data objects carried is set now: on the layout field that shows the property. */\nexport const DATA_OBJECT_PLACES: Bag = {\n caption: 'label.caption',\n placeholder: 'option.placeholder',\n tooltip: 'option.tooltip',\n required: 'option.required',\n validation: 'option.required, option.fieldData.validation (minLength, maxLength, pattern, minimum, maximum; between fields: notBefore, notAfter, requiredWhen, minDuration, maxDuration)',\n value: 'option.fieldData.default (start value; a placeholder such as {{quantity}} or {{id}} too)',\n default: 'option.fieldData.default',\n data: 'option.fieldData.validation.enum and option.labels (a fixed list of choices)',\n loginUser: 'option.fieldData.default \"{{user.x}}\" (a field of the signed-in user\\'s record, environment.login.user; option.fromUser is gone)',\n currency: 'option.numberStyle \"currency\" and option.fieldData.currency',\n decimalPoint: 'option.decimals',\n format: 'option.displayFormat \"custom\" and option.customDisplayFormat (a date pattern)',\n};\n\n/**\n * Where a page names a data object (objects/<name>.json) - a rename has to change every one of them,\n * the Designer's rename and the AI contract use this list. The app's test flows name fields by their\n * property alone, without the data object.\n */\nexport const DATA_OBJECT_NAME_PLACES: Bag = {\n 'scope.reference': 'a field or column: #/<name>/properties/<property>',\n 'option.property_url': 'the data objects a page loads: objects/<name>.json (one text or a list)',\n 'option.propertyKey': 'the data object a sign-in or register form sends',\n 'option.innerAction.from / to': 'the data objects of a calculation such as copy ({ action, from, to })',\n};\n\n/**\n * Renames the data object oldName to newName at every place of DATA_OBJECT_NAME_PLACES inside a page\n * layout (changed in place). Returns how many values were changed.\n */\nexport function renameDataObject(layout: any, oldName: string, newName: string): number {\n if (!oldName || !newName || oldName === newName) return 0;\n const file = `objects/${oldName}.json`;\n const fileNew = `objects/${newName}.json`;\n const refOld = `#/${oldName}/`;\n let changed = 0;\n const renameFile = (value: string) => value.endsWith(file) && (value === file || value.endsWith('/' + file))\n ? value.slice(0, value.length - file.length) + fileNew : value;\n const walk = (node: any): void => {\n if (Array.isArray(node)) { node.forEach(walk); return; }\n if (!node || typeof node !== 'object') return;\n for (const key of Object.keys(node)) {\n const value = node[key];\n if (key === 'reference' && typeof value === 'string' && value.startsWith(refOld)) {\n node[key] = `#/${newName}/` + value.slice(refOld.length); changed++;\n } else if (key === 'property_url' && typeof value === 'string' && renameFile(value) !== value) {\n node[key] = renameFile(value); changed++;\n } else if (key === 'property_url' && Array.isArray(value)) {\n value.forEach((item, i) => {\n if (typeof item === 'string' && renameFile(item) !== item) { value[i] = renameFile(item); changed++; }\n });\n } else if (key === 'propertyKey' && value === oldName) {\n node[key] = newName; changed++;\n } else if ((key === 'innerAction' || key === 'action') && value && typeof value === 'object' && !Array.isArray(value)) {\n for (const end of ['from', 'to']) if (value[end] === oldName) { value[end] = newName; changed++; }\n walk(value);\n } else {\n walk(value);\n }\n }\n };\n walk(layout);\n return changed;\n}\n\nexport const BASIC_TYPES = ['string', 'number', 'integer', 'bigdecimal', 'boolean', 'date', 'time', 'duration', 'datetime', 'dateRange', 'media', 'array'] as const;\n\n/** Older or other names of a data type and the type they mean. */\nexport const TYPE_ALIASES: Bag = { daterange: 'dateRange', image: 'media', checkbox: 'boolean', 'date-time': 'datetime', 'date&time': 'datetime', decimal: 'bigdecimal' };\n\n/** The data type of a property, aliases resolved (\"image\" -> \"media\"). */\nexport function basicType(property: Bag | any): string {\n const value = String(property?.type || 'string').toLowerCase();\n return TYPE_ALIASES[value] || value;\n}\n\n/** Every control the Designer offers (option.control), with the name it is shown under. */\nexport const CONTROLS: Bag = {\n textInput: 'Text field', textArea: 'Text area', password: 'Password', email: 'Email',\n combobox: 'Combobox', autocomplete: 'Autocomplete', dropdown: 'Dropdown',\n checkbox: 'Checkbox', switch: 'Switch', radiobutton: 'Radio buttons',\n spinner: 'Spinner', slider: 'Slider',\n datepicker: 'Date picker', timepicker: 'Time picker', dateTimepicker: 'Date and time picker',\n dateRangepicker: 'Date range picker',\n picklist: 'Picklist', multiselect: 'Multiselect', output: 'Read-only output',\n creditCard: 'Credit card', quantity: 'Quantity',\n};\n\n/** DTO types that name their control themselves (older projects). */\nexport const CONTROL_TYPES: Bag = { dropdown: 'dropdown', creditcard: 'creditCard', quantity: 'quantity' };\n\n/**\n * The control a field is shown with: option.control; without one what the app uses - an old switch\n * (password, email, timeOnly), a DTO type that is a control (dropdown, creditCard, quantity), else\n * the first control that fits the data (date -> datepicker, boolean -> checkbox, text -> textInput).\n * '' when nothing fits (media, objects).\n */\nexport function effectiveControl(option: Bag | any, schema: Bag | any = {}, fallback = ''): string {\n const o = option || {};\n if (o.control) return canonicalControl(o.control);\n // a picture without a control stays as before (''): the slideshow only when chosen\n if (['media', 'image'].includes(String(schema?.type || fallback || '').toLowerCase())) return '';\n const allowed = controlsFor(schema || {}, fallback, o).map(c => c.value);\n const legacy = o.password ? 'password' : o.email ? 'email' : o.timeOnly ? 'timepicker' : '';\n if (legacy && allowed.includes(legacy)) return legacy;\n const own = CONTROL_TYPES[String(schema?.type || fallback || '').toLowerCase()];\n if (own) return own;\n return allowed.find(c => c !== 'output') || '';\n}\n\n/** Controls a value is typed or chosen in - they take a placeholder. */\nexport const PLACEHOLDER_CONTROLS: string[] = [\n 'textInput', 'textArea', 'password', 'email', 'dropdown', 'combobox', 'autocomplete',\n 'spinner', 'datepicker', 'timepicker', 'dateTimepicker', 'dateRangepicker', 'multiselect',\n];\n\n/**\n * How the card field (creditCard) lays out its parts (option.cardLayout): oneRow - Stripe's single line (card number,\n * MM / YY, CVC; the default), twoRows - the number alone, below it expiry and CVC side by side, threeRows - all three\n * below each other. A phone cut the single line off (OFFENE-PUNKTE 103).\n */\nexport const CARD_LAYOUTS = ['oneRow', 'twoRows', 'threeRows'] as const;\nexport type CardLayout = typeof CARD_LAYOUTS[number];\n/** The card field's layout, oneRow when the layout names none or an unknown one. */\nexport function cardLayoutOf(option: Bag | any): CardLayout {\n const value = option?.cardLayout;\n return (CARD_LAYOUTS as readonly string[]).includes(value) ? value : 'oneRow';\n}\n\n/**\n * The key at the bottom right of the app keyboard (option.enterKey), set in the Designer per field:\n * done closes the keyboard (default), search sends Enter so the field's action runs (a search starts),\n * next moves on to the next field. The header's search field has search as its default.\n */\nexport const ENTER_KEYS = ['done', 'search', 'next'] as const;\nexport type EnterKey = (typeof ENTER_KEYS)[number];\n\n/** A field's key at the bottom right: its option.enterKey when known, else the given default. */\nexport function enterKeyFor(option: Bag | any, fallback: EnterKey = 'done'): EnterKey {\n const own = option?.enterKey;\n return (ENTER_KEYS as readonly string[]).includes(own) ? own : fallback;\n}\n\n/** The toolkit keyboards a field can ask for (option.keyboardType). */\nexport const KEYBOARD_TYPES = ['string', 'alpha', 'numeric', 'email', 'date', 'time'] as const;\n/** keyboardType values that keep the device's system keyboard. */\nexport const SYSTEM_KEYBOARDS = ['native', 'none'] as const;\n\n/** Controls a keyboard is chosen for. */\nexport const KEYBOARD_CONTROLS: string[] = [\n 'textInput', 'textArea', 'password', 'email', 'combobox', 'autocomplete',\n 'spinner', 'datepicker', 'timepicker', 'dateTimepicker', 'dateRangepicker', 'quantity',\n];\n\n/** The keyboard a control brings when the field names none (as the Designer preselects it). */\nexport function defaultKeyboard(control: string, schema: Bag | any = {}, fallback = '', data: Bag | any = {}): string {\n const c = canonicalControl(control), t = baseType(schema, fallback), f = effectiveFormat(schema, fallback, data);\n if (c === 'email') return 'email';\n if (c === 'timepicker') return 'time';\n if (['datepicker', 'dateTimepicker', 'dateRangepicker'].includes(c)) return 'date';\n if (['textArea', 'password', 'combobox', 'autocomplete'].includes(c)) return 'string';\n if (f === 'iso-time') return 'time';\n if (['iso-date', 'iso-datetime'].includes(f)) return 'date';\n if (['spinner', 'quantity'].includes(c) || ['number', 'integer'].includes(t) || f === 'decimal') return 'numeric';\n return 'string';\n}\n\n/**\n * The keyboard of a field: its keyboardType; native/none (and a password without one) keep the\n * system keyboard (null); without keyboardType the control's default; without a control the data\n * type's (date, time, number/integer, string, email format). The per-type keyboards are only the\n * fallback.\n */\nexport function keyboardFor(option: Bag | any, property: Bag | any = {}): string | null {\n const explicit = option?.keyboardType ?? option?.keyboard;\n if ((SYSTEM_KEYBOARDS as readonly string[]).includes(explicit)) return null;\n if ((KEYBOARD_TYPES as readonly string[]).includes(explicit)) return explicit;\n const control = canonicalControl(option?.control || '');\n if (control === 'password' || option?.password) return null;\n if (control && KEYBOARD_CONTROLS.includes(control)) return defaultKeyboard(control, property, '', option?.fieldData || {});\n if (option?.email || property?.format === 'email') return 'email';\n switch (basicType(property)) {\n case 'date': return 'date';\n case 'time': case 'duration': return 'time';\n case 'number': case 'integer': case 'bigdecimal': return 'numeric';\n case 'string': return 'string';\n default: return null;\n }\n}\n\n// ---------------------------------------------------------------------------------------------\n// Date and time: type = what is shown and entered, storage = how the value travels\n// (CONTROLS-PLAN.md C1, decided 2026-10-18). Descriptive only - the renderer reads it in step 3+.\n// ---------------------------------------------------------------------------------------------\n\n/** What a date/time property shows and takes: date and time stay separate fields. */\nexport type TemporalPart = 'date' | 'time' | 'datetime';\n\n/** The part of a date/time a property shows and takes (DTO type date / time / date&time), else null. */\nexport function temporalPart(property: Bag | any): TemporalPart | null {\n const t = basicType(property);\n return t === 'date' || t === 'time' || t === 'datetime' ? t : null;\n}\n\n/**\n * How date and time values travel - the same for every project:\n * - every value is a string (JSON has no date type); the app turns it into a date for showing and\n * back into a string for sending, steered by the DTO type alone\n * - read: ISO, date and time, a value without timezone is local wall time; Z or an offset is\n * dropped (wall time) - P5W1 sends 2025-11-04T16:30:00\n * - send: ISO with the device's offset, 2026-10-18T08:00:00+02:00 (the daily split of the time\n * recording, its add-on, stays as it is)\n * - shown and typed: the app language, year with four digits (de 18.10.2026, time 08:05);\n * lists: displayFormat short / medium (default) / long / iso (2026-10-30 in every language) / custom\n */\nexport const TEMPORAL_TRANSFER = {\n read: 'iso, local wall time, offset dropped',\n send: 'iso with local offset',\n show: 'app language, four-digit year',\n listStyles: ['short', 'medium', 'long', 'iso', 'custom'],\n listDefault: 'medium',\n} as const;\n\n/** The encodings a field can declare (option.fieldData.format). */\nexport const DATA_FORMATS = ['iso-date', 'iso-time', 'iso-datetime', 'flag', 'decimal'] as const;\n/** How a date or time is shown (option.displayFormat). */\nexport const DISPLAY_FORMATS = ['short', 'medium', 'long', 'iso', 'custom'] as const;\n/** How a number is shown (option.numberStyle). */\nexport const NUMBER_STYLES = ['decimal', 'currency', 'percent'] as const;\nconst setting = (key: string, label: string, kind: Setting['kind'] = 'text', values?: string[], hint?: string): Setting => ({ key, label, kind, values, hint });\nconst yesNo = (key: string, label: string) => setting(key, label, 'select', ['true', 'false']);\nexport function displaySettings(schema: Bag, fallback: string, option: Bag | any): Setting[] {\n const c = canonicalControl(option.control), t = baseType(schema, fallback), f = effectiveFormat(schema, fallback, option.fieldData || {}), r = rulesFor(schema, option.fieldData || {});\n const result = [yesNo('readonly', 'Read only'), setting('messages', 'Validation messages', 'json', undefined, 'JSON object: validation rule names mapped to messages or translation keys.')];\n if (PLACEHOLDER_CONTROLS.includes(c)) result.push(setting('placeholder', 'Placeholder'));\n if (c === 'textInput') result.push(setting('mask', 'Input mask'));\n if (c === 'textArea') result.push(setting('rows', 'Visible rows', 'number'));\n if (['spinner', 'slider'].includes(c)) result.push(setting('step', 'Step', 'number'));\n if (c === 'slider') result.push(yesNo('showValue', 'Show slider value'));\n if (['checkbox','switch'].includes(c)) result.push(setting('labelPosition', 'Label position', 'select', ['left', 'right']));\n if (c === 'switch') result.push(setting('labelOn', 'On label'), setting('labelOff', 'Off label'));\n if (['checkbox', 'switch', 'radiobutton'].includes(c) && t === 'boolean') result.push(setting('checkedBooleanValue', 'Value represented by the active state', 'select', ['true', 'false'], 'Stores a Boolean. Choose false to invert the visual state; this does not change the DTO type.'));\n if (['checkbox', 'switch', 'radiobutton'].includes(c) && f === 'flag') result.push(setting('checkedValue', 'Active value'), setting('uncheckedValue', 'Inactive value'));\n if (['radiobutton', 'dropdown', 'combobox', 'autocomplete', 'picklist', 'multiselect'].includes(c)) result.push(setting('labels', 'Value labels', 'json', undefined, 'JSON object mapping allowed stored values to captions or translation keys.'));\n if (c === 'radiobutton') result.push(setting('orientation', 'Orientation', 'select', ['horizontal', 'vertical']));\n if (c === 'combobox') result.push(yesNo('allowCustom', 'Allow values outside the list'));\n if (['combobox', 'autocomplete'].includes(c)) result.push(\n yesNo('openOnFocus', 'Open the whole list on a tap into the field'),\n setting('search', 'Typing keeps entries that', 'select', ['startsWith', 'contains'], 'startsWith (default): \"02\" finds 02000001, \"12\" nothing. contains: the text anywhere in the entry.'));\n if (c === 'autocomplete') result.push(setting('source', 'Suggestion source URL'), setting('minChars', 'Minimum characters', 'number'));\n if (c === 'picklist') result.push(yesNo('sortable', 'Allow item reordering'));\n if (c === 'multiselect') result.push(setting('maxVisible', 'Visible selected items', 'number'));\n if ((['iso-date', 'iso-time', 'iso-datetime'].includes(f) && ['textInput', 'datepicker', 'timepicker', 'dateTimepicker', 'output'].includes(c)) || c === 'dateRangepicker') {\n // iso: 2026-10-30 (with a time 14:00) in every language\n result.push(setting('displayFormat', 'Display style', 'select', ['short', 'medium', 'long', 'iso', 'custom']));\n if (option.displayFormat === 'custom') result.push(setting('customDisplayFormat', 'Fixed display pattern', 'text', undefined, 'Use only when every locale must show the same pattern.'));\n result.push(setting('displayTimezone', 'Display timezone', 'text', undefined, 'local, UTC, or an IANA timezone such as Asia/Karachi.'));\n }\n if ((['integer', 'number'].includes(t) || f === 'decimal') && ['textInput', 'spinner', 'slider', 'output'].includes(c)) {\n result.push(setting('numberStyle', 'Number style', 'select', ['decimal', 'currency', 'percent']), yesNo('grouping', 'Group digits'));\n if (!option.numberStyle || option.numberStyle === 'decimal') result.push(setting('decimals', 'Displayed decimal places', 'number'));\n result.push(setting('unit', 'Standard unit', 'text', undefined, 'An Intl unit identifier, for example kilogram or liter.'), setting('unitLabel', 'Custom unit translation key'));\n }\n if (c === 'dropdown') result.push(setting('optionlabel', 'Response label field'), setting('optionvalue', 'Response value field'));\n return result;\n}\nexport function dataSettings(schema: Bag, fallback: string, option: Bag | any): Setting[] {\n const t = baseType(schema, fallback), f = effectiveFormat(schema, fallback, option.fieldData || {});\n const result: Setting[] = [];\n if (['integer', 'number'].includes(t) || f === 'decimal') {\n result.push(setting('currency', 'Fixed currency code', 'text', undefined, 'ISO currency code. Independent of the user locale.'), setting('currencyField', 'Currency property reference'));\n if (t === 'integer') result.push(yesNo('minorUnits', 'Store in currency minor units'));\n }\n return result;\n}\nexport function validationSettings(schema: Bag, fallback: string, option: Bag | any): Setting[] {\n const t = baseType(schema, fallback), f = effectiveFormat(schema, fallback, option.fieldData || {});\n const result = [setting('enum', 'Allowed values', 'json', undefined, t === 'array' ? 'JSON array of allowed item values.' : 'JSON array; preserve each value’s data type.')];\n if (t === 'string') result.push(setting('minLength', 'Minimum length', 'number'), setting('maxLength', 'Maximum length', 'number'), setting('pattern', 'Validation pattern'));\n if (['integer', 'number'].includes(t) || f === 'decimal') result.push(setting('minimum', 'Minimum value', f === 'decimal' ? 'text' : 'number'), setting('maximum', 'Maximum value', f === 'decimal' ? 'text' : 'number'), setting('multipleOf', 'Value increment', f === 'decimal' ? 'text' : 'number'));\n if (t === 'array') result.push(setting('minItems', 'Minimum items', 'number'), setting('maxItems', 'Maximum items', 'number'), yesNo('uniqueItems', 'Require unique items'));\n return result;\n}\nfunction decimalParts(value: any): [bigint, number] | null {\n const m = /^(-?)(\\d+)(?:\\.(\\d+))?$/.exec(String(value));\n return m ? [BigInt((m[1] || '') + m[2] + (m[3] || '')), (m[3] || '').length] : null;\n}\nfunction decimalPair(a: any, b: any): [bigint, bigint] | null {\n const x = decimalParts(a), y = decimalParts(b); if (!x || !y) return null;\n const scale = Math.max(x[1], y[1]); return [x[0] * 10n ** BigInt(scale - x[1]), y[0] * 10n ** BigInt(scale - y[1])];\n}\nfunction validDate(v: string): boolean {\n const m = /^(\\d{4})-(\\d{2})-(\\d{2})$/.exec(v); if (!m) return false;\n const year = +m[1], month = +m[2], day = +m[3];\n const leap = year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n return month >= 1 && month <= 12 && day >= 1 && day <= [31, leap ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month - 1];\n}\nfunction validTime(v: string): boolean {\n const m = /^(\\d{2}):(\\d{2}):(\\d{2})(?:\\.\\d+)?(Z|[+-](\\d{2}):(\\d{2}))$/.exec(v);\n return !!m && +m[1] < 24 && +m[2] < 60 && +m[3] < 60 && (!m[5] || (+m[5] < 24 && +m[6] < 60));\n}\nexport function validateSettings(schema: Bag | any, fallback: string, option: Bag | any, context?: { propertySchema: Bag; reference: string; allowPendingValues?: boolean }): string[] {\n const errors: string[] = [], d = option.fieldData || {}, r: any = rulesFor(schema, d), t = baseType(schema, fallback), f = effectiveFormat(schema, fallback, d), c = canonicalControl(option.control);\n const fail = (condition: boolean, message: string) => { if (condition) errors.push(message); };\n fail(!t, 'The property type could not be resolved. Provide propertySchema or propertyType.');\n fail(d.format !== undefined && !['iso-date', 'iso-time', 'iso-datetime', 'flag', 'decimal'].includes(d.format), 'Choose a supported data meaning.');\n fail(['iso-date', 'iso-time', 'iso-datetime', 'flag'].includes(f) && t !== 'string', 'Date, time, and flag formats require a string property.');\n fail(f === 'decimal' && !['string', 'number'].includes(t), 'Exact decimal format requires string or number.');\n fail(!!schema.format && !!d.format && normalizeFormat(schema.format) !== normalizeFormat(d.format), 'The format conflicts with the property schema.');\n for (const k of Object.keys(d.validation || {})) {\n const source = t === 'array' && k === 'enum' ? schema.items?.enum : schema[k];\n fail(source !== undefined && JSON.stringify(source) !== JSON.stringify(d.validation[k]), `${k} conflicts with the property schema; keep the source constraint.`);\n }\n const pendingDropdown = context?.allowPendingValues && c === 'dropdown' && t === 'string' && !f && r.enum === undefined;\n fail(!pendingDropdown && !controlsFor(schema, fallback, option).some(x => x.value === c), 'Select a control compatible with the effective data type.');\n fail(!!r.pattern && t !== 'string', 'Patterns are only supported for strings.');\n try { if (r.pattern) new RegExp(r.pattern); } catch { errors.push('The validation pattern is not a valid regular expression.'); }\n for (const k of ['minimum', 'maximum', 'multipleOf']) fail(r[k] !== undefined && !(['integer', 'number'].includes(t) || f === 'decimal'), `${k} requires a numeric or decimal property.`);\n for (const k of ['minLength', 'maxLength']) fail(r[k] !== undefined && t !== 'string', `${k} requires a string property.`);\n for (const k of ['minItems', 'maxItems', 'uniqueItems']) fail(r[k] !== undefined && t !== 'array', `${k} requires an array property.`);\n for (const k of ['minLength', 'maxLength', 'minItems', 'maxItems']) fail(r[k] !== undefined && (!Number.isInteger(r[k]) || r[k] < 0), `${k} must be a nonnegative integer.`);\n for (const [a, b] of [['minLength', 'maxLength'], ['minItems', 'maxItems']]) fail(r[a] !== undefined && r[b] !== undefined && r[a] > r[b], `${a} cannot exceed ${b}.`);\n for (const k of ['minimum', 'maximum', 'multipleOf']) if (r[k] !== undefined) fail(f === 'decimal' ? !decimalParts(r[k]) : typeof r[k] !== 'number' || !Number.isFinite(r[k]), `${k} must be a valid numeric value.`);\n if (r.minimum !== undefined && r.maximum !== undefined) { const pair = decimalPair(r.minimum, r.maximum); fail(pair ? pair[0] > pair[1] : r.minimum > r.maximum, 'Minimum cannot exceed maximum.'); }\n if (r.multipleOf !== undefined) { const p = decimalParts(r.multipleOf); fail(!p || p[0] <= 0n, 'Value increment must be greater than zero.'); }\n if (r.enum !== undefined) {\n fail(!Array.isArray(r.enum) || !r.enum.length, 'Allowed values must be a nonempty JSON array.');\n if (Array.isArray(r.enum)) {\n fail(new Set(r.enum.map((v: any) => JSON.stringify(v))).size !== r.enum.length, 'Allowed values must not contain duplicates.');\n const et = t === 'array' ? schema.items?.type || 'string' : t;\n fail(r.enum.some((v: any) => et === 'integer' ? !Number.isInteger(v) : et === 'array' ? !Array.isArray(v) : typeof v !== et), 'Allowed values must match the property or item type.');\n }\n }\n fail(c === 'combobox' && !!r.enum && option.allowCustom === true, 'Custom values cannot be enabled for an enum.');\n fail(!!d.currency && !!d.currencyField, 'Choose a fixed currency OR a currency property, not both.');\n fail(option.numberStyle === 'currency' && !d.currency && !d.currencyField, 'Currency display requires a currency code or currency property.');\n fail(d.minorUnits === true && (t !== 'integer' || (!d.currency && !d.currencyField)), 'Minor units require integer storage and a currency.');\n fail(option.numberStyle !== 'decimal' && !!option.numberStyle && option.decimals !== undefined, 'Decimal places apply only to decimal display; currency precision comes from the currency.');\n fail(!!option.unit && !!option.unitLabel, 'Choose a standard unit OR a custom unit translation key.');\n if (d.currency) {\n const currencies: string[] | undefined = (Intl as any).supportedValuesOf?.('currency');\n fail(!/^[A-Z]{3}$/.test(d.currency) || (!!currencies && !currencies.includes(d.currency)), 'Choose a supported uppercase ISO currency code.');\n }\n if (d.currencyField && context?.propertySchema) {\n const siblingRef = context.reference.slice(0, context.reference.lastIndexOf('/') + 1) + String(d.currencyField).replace(/~/g, '~0').replace(/\\//g, '~1');\n const currencyProperty: any = resolveProperty(context.propertySchema, String(d.currencyField).includes('/') ? d.currencyField : siblingRef);\n fail(currencyProperty.type !== 'string', 'The currency property must exist in the property schema and have string storage.');\n }\n fail(option.checkedBooleanValue !== undefined && typeof option.checkedBooleanValue !== 'boolean', 'The active Boolean value must be true or false.');\n for (const k of ['required', 'readonly', 'allowCustom', 'openOnFocus', 'showValue', 'grouping']) fail(option[k] !== undefined && typeof option[k] !== 'boolean', `${k} must be a Boolean.`);\n for (const k of ['minorUnits']) fail(d[k] !== undefined && typeof d[k] !== 'boolean', `${k} must be a Boolean.`);\n fail(r.uniqueItems !== undefined && typeof r.uniqueItems !== 'boolean', 'uniqueItems must be a Boolean.');\n if (option.unit) { try { new Intl.NumberFormat('en', { style: 'unit', unit: option.unit }); } catch { errors.push('The standard unit is not supported by Intl.'); } }\n if (option.displayTimezone && option.displayTimezone !== 'local') { try { new Intl.DateTimeFormat('en', { timeZone: option.displayTimezone }); } catch { errors.push('Enter a valid display timezone.'); } }\n fail(option.displayFormat === 'custom' && !option.customDisplayFormat, 'Enter a fixed display pattern.');\n for (const k of ['rows', 'maxVisible', 'step']) fail(option[k] !== undefined && (typeof option[k] !== 'number' || !Number.isFinite(option[k]) || option[k] <= 0), `${k} must be greater than zero.`);\n for (const k of ['rows', 'maxVisible', 'minChars', 'decimals']) fail(option[k] !== undefined && (!Number.isInteger(option[k]) || option[k] < 0), `${k} must be a nonnegative integer.`);\n fail(t === 'integer' && option.step !== undefined && !Number.isInteger(option.step), 'Integer controls require a whole-number step.');\n if (f === 'flag') {\n fail(!Array.isArray(r.enum) || r.enum.length !== 2, 'A flag requires exactly two allowed string values.');\n fail(option.checkedValue === undefined || option.uncheckedValue === undefined || option.checkedValue === option.uncheckedValue, 'Set different active and inactive flag values.');\n if (Array.isArray(r.enum)) for (const k of ['checkedValue', 'uncheckedValue']) fail(!r.enum.includes(option[k]), `${k} must exist in the allowed values.`);\n }\n if (option.labels !== undefined) {\n fail(!option.labels || typeof option.labels !== 'object' || Array.isArray(option.labels), 'Value labels must be a JSON object.');\n if (option.labels && typeof option.labels === 'object') fail(Object.values(option.labels).some(v => typeof v !== 'string'), 'Label captions must be strings.');\n const values = t === 'boolean' ? [true, false] : r.enum;\n if (values && option.labels) fail(Object.keys(option.labels).some(k => !values.some((v: any) => String(v) === k)), 'Every label key must match an allowed value.');\n }\n if (option.messages && typeof option.messages === 'object') fail(Object.values(option.messages).some(v => typeof v !== 'string'), 'Validation messages must contain string captions or translation keys.');\n for (const [key, values] of [['labelPosition', ['left', 'right']], ['orientation', ['horizontal', 'vertical']], ['numberStyle', ['decimal', 'currency', 'percent']], ['search', ['startsWith', 'contains']]] as [string, string[]][]) fail(option[key] !== undefined && !values.includes(option[key]), `Choose a supported ${key}.`);\n fail(option.messages !== undefined && (!option.messages || typeof option.messages !== 'object' || Array.isArray(option.messages)), 'Validation messages must be a JSON object.');\n const allowed = new Set(displaySettings(schema, fallback, option).map(s => s.key));\n for (const k of ['placeholder', 'rows', 'mask', 'step', 'showValue', 'labelPosition', 'labelOn', 'labelOff', 'orientation', 'allowCustom', 'openOnFocus', 'search', 'source', 'minChars', 'labels', 'maxVisible', 'displayFormat', 'displayTimezone', 'customDisplayFormat', 'numberStyle', 'decimals', 'grouping', 'unit', 'unitLabel', 'checkedValue', 'uncheckedValue', 'checkedBooleanValue']) fail(option[k] !== undefined && !allowed.has(k), `${k} is not applicable to this control and data meaning.`);\n for (const k of ['currency', 'currencyField', 'minorUnits']) fail(d[k] !== undefined && !dataSettings(schema, fallback, option).some(s => s.key === k), `${k} requires the appropriate numeric type.`);\n const validateValue = (value: any, name: string, valueType: string, item = false) => {\n fail(valueType === 'integer' ? !Number.isInteger(value) : valueType === 'array' ? !Array.isArray(value) : typeof value !== valueType, `${name} must match ${valueType} storage.`);\n if (Array.isArray(r.enum) && !r.enum.some((v: any) => JSON.stringify(v) === JSON.stringify(value))) fail(valueType !== 'array', `${name} is outside the allowed values.`);\n if (valueType === 'string') {\n const v = String(value);\n if (!item) {\n fail(f === 'iso-date' && !validDate(v), `${name} must be an existing ISO date.`);\n fail(f === 'iso-time' && !validTime(v), `${name} must be an ISO time with timezone.`);\n const parts = v.split('T');\n fail(f === 'iso-datetime' && (parts.length !== 2 || !validDate(parts[0]) || !validTime(parts[1])), `${name} must be an ISO date and time with timezone.`);\n fail(r.minLength !== undefined && [...v].length < r.minLength, `${name} is too short.`);\n fail(r.maxLength !== undefined && [...v].length > r.maxLength, `${name} is too long.`);\n try { if (r.pattern) fail(!new RegExp(r.pattern).test(v), `${name} does not match the pattern.`); } catch { }\n }\n }\n if (!item && (['integer', 'number'].includes(valueType) || f === 'decimal')) {\n fail(valueType !== 'string' && !Number.isFinite(value), `${name} must be finite.`);\n fail(f === 'decimal' && !decimalParts(value), `${name} must be a plain decimal value.`);\n for (const k of ['minimum', 'maximum', 'multipleOf']) if (r[k] !== undefined) { const p = decimalPair(value, r[k]); if (p) fail(k === 'minimum' ? p[0] < p[1] : k === 'maximum' ? p[0] > p[1] : p[1] !== 0n && p[0] % p[1] !== 0n, `${name} violates ${k}.`); }\n }\n if (valueType === 'array' && Array.isArray(value)) {\n fail(r.minItems !== undefined && value.length < r.minItems, `${name} has too few items.`);\n fail(r.maxItems !== undefined && value.length > r.maxItems, `${name} has too many items.`);\n fail(r.uniqueItems === true && new Set(value.map(v => JSON.stringify(v))).size !== value.length, `${name} contains duplicate items.`);\n value.forEach(v => validateValue(v, `${name} item`, schema.items?.type || 'string', true));\n }\n };\n if (option.cardLayout !== undefined) {\n fail(!(CARD_LAYOUTS as readonly string[]).includes(option.cardLayout), 'Choose one, two or three rows for the card field.');\n fail(!!c && c !== 'creditCard', 'Only the card field has a card layout.');\n }\n if (option.keyboardType !== undefined) {\n fail(![...KEYBOARD_TYPES, ...SYSTEM_KEYBOARDS].includes(option.keyboardType), 'Choose a supported keyboard.');\n fail(!!c && !KEYBOARD_CONTROLS.includes(c), 'This control has no keyboard.');\n }\n if (own(d, 'default') && own(schema, 'default')) fail(JSON.stringify(d.default) !== JSON.stringify(schema.default), 'Default conflicts with the property schema.');\n const defaultValue = own(schema, 'default') ? schema.default : d.default;\n if (own(schema, 'default') || own(d, 'default')) validateValue(defaultValue, 'Default value', t);\n return [...new Set(errors)];\n}\n\n/** Call before activating a saved field layout; throws rather than warning. */\nexport function assertFieldSettings(schema: Bag, fallback: string, option: Bag, context?: { propertySchema: Bag; reference: string; allowPendingValues?: boolean }): void {\n const errors = validateSettings(schema, fallback, option, context);\n if (errors.length) throw new Error('Invalid field layout: ' + errors.join(' '));\n}\n\n/**\n * A text shown in a list (card, grid) ends with … after this many lines (option.maxLines, set in the Designer: 1-20);\n * 0 = no limit. The whole text stays on the detail page (user 2026-11-01).\n */\nexport function maxLinesOf(option: any): number {\n const n = Math.floor(Number(option?.maxLines));\n return Number.isFinite(n) && n >= 1 && n <= 20 ? n : 0;\n}\n\n/**\n * A card list's cards of a row are equally high and their buttons stand at the bottom, in line across the row\n * (center.option.alignRows, set in the Designer; on for new card lists, user 2026-11-01).\n */\nexport function alignRowsOf(center: any): boolean {\n return center?.option?.alignRows === true;\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-18\n// - change: close means the X in front - PDF viewer, an open dialog, else the page X\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-14\n// - new: layout rule colour - an open app keyboard or docked calendar has the page's colour (or the project's own\n// keyboard colour); hotel's keyboard took the green of a Book button behind the dialog\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-12\n// - new: pick by position (1 = first entry) and check filled - a list of live data, the entries are not known\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07\n// - new: simulatorOnly - a flow that only the simulators run, the preview leaves it out (point 204, user)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-05\n// - new: step goToPage - a list with page numbers (point 186)\n// - new: step ifRecords, checks listLoaded and pdf - a list of live data may be empty, the PDF viewer (point 186)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-04\n// - change: tempo in seconds (DEFAULT_TEMPO_SECONDS 0.2) - the pause before each step is set at \"Run tests\"; the names\n// fast, normal, slow stay valid\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n// - new: step signOut - signed out from here on, like a person with the sign-out of the user in the side menu\n// - new: dateDisplay \"iso\" (a field in display style iso) - localeKeys types a date as yyyymmdd and localeRenderings\n// expects 2026-10-30 (with a time 14:00) in every language; \"any\" takes the ISO form besides the language's\n// - new: stripeTestPaymentMethod - a test run pays with Stripe's test payment method of a test card (pm_card_visa for\n// 4242 4242 4242 4242) - nobody can type into Stripe's frame; only with a test key (pk_test_), never a live one\n// - new: hasAppKeyboard - only mobile and tablet type on the app's keyboard; a laptop or desktop types on its own, the\n// keyboard checks (isKeyboardCheck: keyboard, fieldVisible, restored, inFrame keyboard) are not for them (luv2shop a05\n// and a09 on the laptop, 2026-11-02) - one list, the runners ask it\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\n// - change: signIn takes true (the default test user) or a test user's name (Vault, test-signin.ts)\n// - new: TEST_TEMPOS, tempoPause - how fast a run goes, chosen only at \"Run tests\" (fast, normal, slow)\n// - new: layout rule align - with card.alignRows the buttons of a card row stand on one line\n// - fix: overlap - a box scrolled under the fixed header is hidden, not covering (inBar)\n// - new: layout rule header - a fixed header stays in sight; a note when the header scrolls along\n// - new: layout - content in an area that scrolls sideways (a wide table) is reached, not beyond; layoutNotes;\n// StepResult.notes\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\n// - new: lists in one place (point 5): RTL_LANGUAGES with ckb and dv (the editor had them, sd was missing there),\n// deviceChoices(), PLACEHOLDER_SOURCE and matchesTemplate (fallback {{x | y}} too, as validate.py)\n// - new: StepResult.details - a failed step's measurements\n// - change: the test device \"phone\" is called \"mobile\" (the preview's word); \"phone\" is still taken as old spelling\n// - new: step signIn - signed in from here on (a person in the preview, the test user on the simulators)\n// - change: expect shows takes a language key too - shown in the language of the run\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\n// - new: languages and locale - a flow runs in each of its languages (languages: [\"en\",\"de\"] or \"all\" = the app's\n// left-to-right languages; right-to-left is left out until it is supported); step language (switch on the way),\n// step reload; typed values may be language-neutral (2026-10-30, 14:00, 12.50) - localeKeys gives the keys in the\n// language's order and form; expect formatted (date / time / datetime / number / currency in the language's form,\n// localeRenderings) and translated (no text of the page missing in the language)\n// - new: keyboard - expect fieldVisible (the field stays visible above an open keyboard) and restored (the page stands\n// as before the keyboard opened); layout - expect layout and layoutProblems (rules on what the page shows: nothing\n// beyond the frame, no sideways scrolling, no overlapping fields or buttons, no text squeezed into a narrow column,\n// fields of one row on one line) - the runners measure, these rules judge (OFFENE-PUNKTE 143)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\n// - new: expect cardRows - the card field's rows (1-3), none of its parts wider than the field (OFFENE-PUNKTE 103)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\n// - new: type … at: n - the n-th input of a field (the end of a period)\n// - new: expect checked / unchecked - whether a check box or switch is on, also read-only on a card or grid row\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\n// - new: the app's test data (.liveforge/test-data.json, TEST_DATA_FILE): steps name its values as {{data.customer.firstName}};\n// withTestData puts them in before a run (both runners), testDataRefs lists them, checkTestFlow(flow, data) reports\n// dataUnknown / dataRefInvalid\n// - new: steps for scenarios through an app (OFFENE-PUNKTE 114): menu (a menu entry), scroll (n pages on in the\n// list), openRecord (a record by position or name), close (the X in front: PDF viewer, dialog, else the page), cart (the header's cart); expect page,\n// records / recordsAtLeast, samePlace (back at the same place), cartCount (absolute or \"+1\"), toast. One\n// description, two runners: the app's test runner (preview) and viewdefinition-e2e (real taps on iPhone, iPad,\n// Pixel 9, Pixel Tablet). New check codes: scrollOutOfRange, recordMissing, notTrue, countNotNumber\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-19\n// - new: the format of an app's test flows (#166). Every app brings its own test suite in its hidden\n// system folder .liveforge/tests/ - one JSON file per flow. The same steps are run by the test\n// runner inside the app (Designer preview, \"Run tests\") and by viewdefinition-e2e on simulators.\n// Pages and fields are named by their name in the project (page folder, field key), never by a\n// caption - a test runs in every language. Buttons by their action (Save, Add, Delete).\n// A flow that writes real data says so (\"books\": true) and only runs after an explicit confirmation.\n// checkTestFlow returns codes with parameters, the editor translates them.\n// - new: a run can be stopped (FlowResult.stopped, TestRun.stopped)\n// - new: expect blocked - a writing button is there and the flow may not press it\n\nexport const TESTS_DIR = '.liveforge/tests';\nexport const RESULTS_DIR = '.liveforge/results';\n/** The app's test data, shared by its tests: { customer: { firstName: \"Max\" }, card: { number: \"4242…\" } } */\nexport const TEST_DATA_FILE = '.liveforge/test-data.json';\n\nexport const TEST_DEVICES = ['mobile', 'tablet', 'laptop', 'desktop'] as const;\n/** Old spellings of a device, still taken: \"phone\" is \"mobile\" (2026-10-31, the preview's word). */\nexport const OLD_DEVICE_NAMES: Record<string, string> = { phone: 'mobile' };\nexport const ORIENTATIONS = ['portrait', 'landscape'] as const;\nexport const STEP_KINDS = ['open', 'menu', 'tap', 'type', 'pick', 'press', 'scroll', 'openRecord', 'ifRecords', 'goToPage', 'close', 'cart', 'rotate', 'device', 'wait', 'language', 'reload', 'signIn', 'signOut', 'expect'] as const;\n/** What an expect step can check - one of them per step. */\nexport const EXPECT_KINDS = ['value', 'shows', 'keyboard', 'list', 'message', 'visible', 'hidden', 'locked', 'blocked', 'inFrame',\n 'page', 'records', 'recordsAtLeast', 'listLoaded', 'pdf', 'samePlace', 'cartCount', 'toast', 'checked', 'unchecked', 'cardRows',\n 'formatted', 'translated', 'fieldVisible', 'restored', 'layout', 'filled'] as const;\n/** How a value is shown in the language's form (expect formatted). */\nexport const FORMATS = ['date', 'time', 'datetime', 'number', 'currency'] as const;\n/** Languages written right to left - not tested until right-to-left is supported (decision 2026-10-30). */\nexport const RTL_LANGUAGES = ['ar', 'fa', 'he', 'ur', 'ps', 'sd', 'yi', 'ckb', 'dv'];\n/** What has to stay inside the page frame (safe areas, top gap). */\nexport const FRAME_PARTS = ['keyboard', 'dialog', 'calendar', 'list', 'menu'] as const;\nexport const LIST_STATES = ['open', 'closed'] as const;\n\nexport type TestDevice = typeof TEST_DEVICES[number];\nexport type Orientation = typeof ORIENTATIONS[number];\n\nexport interface TestExpect {\n field?: string;\n /** stored value of the field */\n value?: unknown;\n /** text the field shows (formatted: \"12,34 €\", \"01:00 PM\"); a language key (caption) is shown in the run's language */\n shows?: string;\n /** keyboard type that is open (string, alpha, numeric, email, date, time) or \"none\" */\n keyboard?: string;\n list?: typeof LIST_STATES[number];\n /** message key of a check (required, minLength, dateOrder …) */\n message?: string;\n visible?: string;\n hidden?: string;\n locked?: string;\n /** a button that writes real data is there and this flow may not press it (the runner's lock) */\n blocked?: string;\n inFrame?: typeof FRAME_PARTS[number];\n /** the open page: its folder under pages/ (\"sidemenu/books\") */\n page?: string;\n /** the records the open list shows now (exactly / at least) */\n records?: number;\n recordsAtLeast?: number;\n /** the open list has finished loading without a failure - it may be empty (live data) */\n listLoaded?: true;\n /** true: the PDF viewer shows a page; false: no viewer open */\n pdf?: boolean;\n /** back with the X the list stands where it was left (records and scroll position before openRecord) */\n samePlace?: true;\n /** items in the cart (the header's count); \"+1\" = one more than at the flow's last cart check */\n cartCount?: number | string;\n /** a message shown to the user (its text or its translation key) */\n toast?: string;\n /** the card field (creditCard) stands in so many rows (1-3) and none of its parts is wider than the field */\n cardRows?: number;\n /** a check box / switch (its key) is on - also read-only on a card or in a grid row */\n checked?: string;\n /** a check box / switch (its key) is off */\n unchecked?: string;\n /** with field and value: the field shows the language-neutral value (2026-10-30, 14:00, 12.50) in the language's form */\n formatted?: typeof FORMATS[number];\n /** ISO currency of formatted: currency (EUR, USD) */\n currency?: string;\n /** every text of the page is in the language of the run - none missing, no raw key */\n translated?: true;\n /** the field (its key) stays visible above the open keyboard - not covered */\n fieldVisible?: string;\n /** after the keyboard closed the page stands as before it opened - same place, no empty space */\n restored?: true;\n /** the page passes the layout rules (layoutProblems) */\n layout?: true;\n /** the field (its key) holds something - whatever it is (a suggestion filled it from live data) */\n filled?: string;\n}\n\nexport interface TestStep {\n open?: string;\n /** a menu entry by its caption key in Main (a new start: the page history is emptied) */\n menu?: string;\n tap?: string;\n type?: string;\n into?: string;\n /** with type: the field's n-th input (1-based) - the end of a period (daterange) is 2 */\n at?: number;\n /** an entry of the field's list by its shown text, or by position (1 = first) - live data: the entries are not known */\n pick?: string | number;\n in?: string;\n press?: string;\n /** pages to go on in the open list (swipe up / its end into view), 1-20 */\n scroll?: number;\n /** a list with page numbers: the number n is pressed; fewer pages than n is noted, not failed */\n goToPage?: number;\n /** a record of the open list by its position (1 = first) or by its shown name - its link opens its page */\n openRecord?: number | string;\n /** the page X - back to the page before */\n close?: true;\n /** with an empty list the rest of the flow is skipped - noted, not failed */\n ifRecords?: true;\n /** the cart in the header */\n cart?: true;\n rotate?: Orientation;\n device?: string;\n /** switch the app's language on the way (code: de, en, fr) */\n language?: string;\n /** load the app anew - the language and the sign-in stay */\n reload?: true;\n /** signed in from here on: already signed in - done; else a person signs in (preview, the runner waits) or the\n * runner signs in with the test user (simulators, signin.mjs). A test never types a name or password. */\n signIn?: true | string;\n /** signed out from here on - the sign-out of the user in the side menu, like a person; signed out already: done */\n signOut?: true;\n /** milliseconds */\n wait?: number;\n expect?: TestExpect;\n}\n\nexport interface TestFlow {\n name: string;\n description?: string;\n /** writes real data - runs only after an explicit confirmation */\n books?: boolean;\n /** runs only on the simulators and devices (viewdefinition-e2e), the preview leaves it out - e.g. Stripe's card field,\n * whose frame the app keyboard cannot reach in a browser */\n simulatorOnly?: boolean;\n /** \"mobile\", \"tablet:landscape\" … - without orientation portrait; none means mobile and tablet (\"phone\" is still taken) */\n devices?: string[];\n /** the languages the flow runs in: codes, or \"all\" (the app's left-to-right languages); none: the main language */\n languages?: string[] | 'all';\n steps: TestStep[];\n}\n\nexport interface TestProblem {\n code: string;\n step?: number;\n params?: Record<string, string>;\n}\n\n/** One step's outcome in a run. image: screenshot of a failed step (data URL or file in results). */\nexport interface StepResult {\n step: number;\n ok: boolean;\n reason?: string;\n image?: string;\n /** a failed step's measurements - what is needed to find the cause (samePlace: place, largest place, records when\n * left and back; layout: the boxes; visible/translated: what the page holds instead). Read by people and the AI. */\n details?: Record<string, unknown>;\n /** a passing step's hints - nothing failed, worth a look (layout: a table scrolls sideways) */\n notes?: string[];\n}\n\nexport interface FlowResult {\n file: string;\n name: string;\n device: string;\n /** the language the flow ran in */\n language?: string;\n ok: boolean;\n skipped?: 'books' | 'simulator';\n /** stopped by the person (\"Stop\") after this flow's last step in steps */\n stopped?: boolean;\n steps: StepResult[];\n}\n\n/** One run, stored as .liveforge/results/<date-time>.json (the backend keeps the latest runs). */\nexport interface TestRun {\n project: string;\n tenant: string;\n startedAt: string;\n finishedAt?: string;\n /** the person stopped the run - flows after it did not run */\n stopped?: boolean;\n flows: FlowResult[];\n}\n\nexport const DEFAULT_DEVICES = ['mobile', 'tablet'];\n\n/** Every device a test can name: each device, portrait and (for mobile and tablet) landscape - the editor's choices. */\nexport function deviceChoices(): string[] {\n return TEST_DEVICES.flatMap((d) => (d === 'mobile' || d === 'tablet' ? [d, `${d}:landscape`] : [d]));\n}\n\n/**\n * A placeholder in a text: {{name}} or {{name | fallback}} (the same pattern as validate.py's, via the contract).\n * As a source, so every runner and the Python validator build their own RegExp from it.\n */\nexport const PLACEHOLDER_SOURCE = '\\\\{\\\\{\\\\s*([^}|]+?)\\\\s*(?:\\\\|[^}]*)?\\\\}\\\\}';\n\n/** Whether a shown text is a text with placeholders filled in (\"Order 4711 saved\" for \"Order {{id}} saved\"). */\nexport function matchesTemplate(text: string, template: string): boolean {\n const parts = String(template).split(new RegExp(PLACEHOLDER_SOURCE));\n // split with a group keeps the names - every other part is a name\n const fixed = parts.filter((_, i) => i % 2 === 0).map((p) => p.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&'));\n return new RegExp(fixed.join('.+?')).test(String(text));\n}\n\n/**\n * How many runs the backend keeps in .liveforge/results - defaults, the project configuration can\n * change them: at most `max` runs; while they together are bigger than `maxBytes` (mostly images of\n * failed steps) the oldest go, but `min` runs always stay. Results are not exported.\n */\nexport const RESULTS_KEEP = { max: 10, min: 5, maxBytes: 20 * 1024 * 1024 };\n\n/** The runs to delete, oldest first; runs: name (sortable by date-time) and size in bytes. */\nexport function resultsToDelete(runs: { name: string; size: number }[], keep = RESULTS_KEEP): string[] {\n const sorted = [...runs].sort((a, b) => a.name.localeCompare(b.name));\n const gone: string[] = [];\n let total = sorted.reduce((sum, r) => sum + r.size, 0);\n while (sorted.length > keep.min && (sorted.length > keep.max || total > keep.maxBytes)) {\n const old = sorted.shift()!;\n total -= old.size;\n gone.push(old.name);\n }\n return gone;\n}\n\n/** \"tablet:landscape\" → { device: 'tablet', orientation: 'landscape' }; null when unknown. */\nexport function parseDevice(text: string): { device: TestDevice; orientation: Orientation } | null {\n const [written, orientation = 'portrait'] = String(text || '').split(':');\n const device = OLD_DEVICE_NAMES[written] ?? written;\n if (!(TEST_DEVICES as readonly string[]).includes(device)) return null;\n if (!(ORIENTATIONS as readonly string[]).includes(orientation)) return null;\n return { device: device as TestDevice, orientation: orientation as Orientation };\n}\n\n/**\n * Stripe's test cards and the test payment methods Stripe has for them (stripe.com/docs/testing). A test run cannot\n * type into Stripe's card frame (another site's frame) - the card field pays with the test payment method instead.\n */\nexport const STRIPE_TEST_CARDS: Readonly<Record<string, string>> = {\n '4242424242424242': 'pm_card_visa',\n '4000056655665556': 'pm_card_visa_debit',\n '5555555555554444': 'pm_card_mastercard',\n '378282246310005': 'pm_card_amex',\n '4000000000000002': 'pm_card_chargeDeclined',\n '4000000000009995': 'pm_card_chargeDeclinedInsufficientFunds',\n};\n\n/**\n * The Stripe test payment method for a card number typed in a test (\"4242 4242 4242 4242\"), or null: only a test\n * card of STRIPE_TEST_CARDS and only with a test key (pk_test_) - a live key never pays this way.\n */\nexport function stripeTestPaymentMethod(cardNumber: string, publishableKey: string): string | null {\n if (!/^pk_test_/.test(String(publishableKey || ''))) return null;\n return STRIPE_TEST_CARDS[String(cardNumber || '').replace(/[\\s-]/g, '')] ?? null;\n}\n\n/** The devices that type on the app's own keyboard. A laptop or desktop types on its own keyboard - nothing opens. */\nexport const APP_KEYBOARD_DEVICES: readonly TestDevice[] = ['mobile', 'tablet'];\n\n/** Does the device (\"tablet:landscape\") type on the app's keyboard? The keyboard checks are only for those. */\nexport function hasAppKeyboard(device: string): boolean {\n const parsed = parseDevice(device);\n return !!parsed && APP_KEYBOARD_DEVICES.includes(parsed.device);\n}\n\n/** A check about the app's keyboard - made only where the app keyboard opens (hasAppKeyboard). */\nexport function isKeyboardCheck(e: TestExpect | undefined): boolean {\n return !!e && (e.keyboard !== undefined || !!e.fieldVisible || !!e.restored || e.inFrame === 'keyboard');\n}\n\n/** The devices a flow runs on. */\nexport function flowDevices(flow: TestFlow): string[] {\n // an old spelling (\"phone\") as today's name (\"mobile\")\n return (flow.devices?.length ? flow.devices : DEFAULT_DEVICES).map((d) => {\n const [name, orientation] = String(d).split(':');\n const now = OLD_DEVICE_NAMES[name] ?? name;\n return orientation ? `${now}:${orientation}` : now;\n });\n}\n\n/** The kind of a step - the first step key it has. */\nexport function stepKind(step: TestStep): string | null {\n return (STEP_KINDS as readonly string[]).find((k) => step && Object.prototype.hasOwnProperty.call(step, k)) || null;\n}\n\nconst text = (v: unknown) => typeof v === 'string' && v.trim().length > 0;\n\n/** The problems of a flow; an empty list means it can run. */\n/** Step and check keys that hold a number. */\nconst NUMBER_KEYS = new Set(['scroll', 'goToPage', 'openRecord', 'wait', 'records', 'recordsAtLeast', 'cartCount', 'cardRows']);\n\n/** The languages a flow runs in: its own (right-to-left left out), \"all\" = the app's left-to-right ones, none = the main one. */\nexport function flowLanguages(flow: TestFlow, appLanguages: string[], main: string): string[] {\n const ltr = (codes: string[]) => [...new Set(codes.map((c) => String(c).slice(0, 2).toLowerCase()))].filter((c) => c && !RTL_LANGUAGES.includes(c));\n if (flow.languages === 'all') return ltr(appLanguages.length ? appLanguages : [main]);\n if (Array.isArray(flow.languages) && flow.languages.length) return ltr(flow.languages);\n return ltr([main]);\n}\n\nconst NEUTRAL_DATE = /^(\\d{4})-(\\d{2})-(\\d{2})$/;\nconst NEUTRAL_TIME = /^(\\d{2}):(\\d{2})$/;\nconst NEUTRAL_DATETIME = /^(\\d{4})-(\\d{2})-(\\d{2})[T ](\\d{2}):(\\d{2})$/;\nconst NEUTRAL_NUMBER = /^-?\\d+\\.\\d+$/;\n\n/** 12 hours with AM/PM in this language? */\nexport function uses12Hours(lang: string): boolean {\n try { return new Intl.DateTimeFormat(lang, { hour: 'numeric' }).resolvedOptions().hour12 === true; } catch { return false; }\n}\n\n/** The order of day, month, year in the language's numeric date (\"dmy\", \"mdy\", \"ymd\"). */\nexport function dateOrder(lang: string): string {\n try {\n return new Intl.DateTimeFormat(lang, { year: 'numeric', month: '2-digit', day: '2-digit' }).formatToParts(new Date(2026, 9, 30))\n .filter((p) => p.type === 'day' || p.type === 'month' || p.type === 'year').map((p) => p.type[0]).join('');\n } catch { return 'mdy'; }\n}\n\n/**\n * The keys a person types for a language-neutral value in this language: a date's digits in the language's order\n * (en 10302026, de 30102026), a time as digits with P/A in a 12-hour language (0200P) or 24 hours (1400), a number\n * with the language's decimal sign (de 12,50). Any other text stays as it is - older flows typed the keys themselves.\n */\nexport function localeKeys(value: string, lang: string, dateDisplay: string = 'language'): string {\n const text = String(value);\n // a field in display style iso takes the date as year, month, day in every language\n const order = dateDisplay === 'iso' ? 'ymd' : dateOrder(lang);\n const date = (y: string, m: string, d: string) => order.split('').map((k) => (k === 'd' ? d : k === 'm' ? m : y)).join('');\n const time = (h: string, min: string) => {\n if (!uses12Hours(lang)) return `${h}${min}`;\n const hour = Number(h);\n const h12 = String(hour % 12 === 0 ? 12 : hour % 12).padStart(2, '0');\n return `${h12}${min}${hour < 12 ? 'A' : 'P'}`;\n };\n let m = NEUTRAL_DATETIME.exec(text);\n if (m) return `${date(m[1], m[2], m[3])}${time(m[4], m[5])}`;\n m = NEUTRAL_DATE.exec(text);\n if (m) return date(m[1], m[2], m[3]);\n m = NEUTRAL_TIME.exec(text);\n if (m) return time(m[1], m[2]);\n if (NEUTRAL_NUMBER.test(text)) {\n const sign = new Intl.NumberFormat(lang).formatToParts(1.5).find((p) => p.type === 'decimal')?.value || '.';\n return text.replace('.', sign);\n }\n return text;\n}\n\n/** Every way the language writes this value (expect formatted) - the field must show one of them; spaces are made plain. */\nexport function localeRenderings(value: string, as: typeof FORMATS[number], lang: string, currency?: string, dateDisplay: string = 'language'): string[] {\n const out = new Set<string>();\n const add = (s: string) => out.add(s.replace(/[\\u00a0\\u202f]/g, ' ').trim());\n const d = NEUTRAL_DATETIME.exec(value) || NEUTRAL_DATE.exec(value);\n const t = NEUTRAL_TIME.exec(value);\n // a field in display style iso: 2026-10-30, with a time 14:00, in every language;\n // \"any\" - a check that does not know the field's switch takes the ISO form besides the language's\n if ((dateDisplay === 'iso' || dateDisplay === 'any') && d && (as === 'date' || (as === 'datetime' && d[4]))) {\n const iso = `${d[1]}-${d[2]}-${d[3]}`;\n const form = as === 'date' ? iso : `${iso} ${d[4].padStart(2, '0')}:${d[5]}`;\n if (dateDisplay === 'iso') return [form];\n add(form);\n }\n try {\n if (as === 'date' && d) {\n const day = new Date(Number(d[1]), Number(d[2]) - 1, Number(d[3]));\n for (const style of [{ year: 'numeric', month: '2-digit', day: '2-digit' }, { year: 'numeric', month: 'numeric', day: 'numeric' },\n { dateStyle: 'medium' }, { dateStyle: 'long' }, { dateStyle: 'short' }] as any[]) add(new Intl.DateTimeFormat(lang, style).format(day));\n } else if ((as === 'time' && t) || (as === 'datetime' && d && d[4])) {\n const at = t ? new Date(2026, 0, 1, Number(t[1]), Number(t[2])) : new Date(Number(d![1]), Number(d![2]) - 1, Number(d![3]), Number(d![4]), Number(d![5]));\n for (const hour of ['2-digit', 'numeric'] as const) {\n const time = new Intl.DateTimeFormat(lang, { hour, minute: '2-digit' }).format(at);\n if (as === 'time') add(time);\n else for (const style of [{ year: 'numeric', month: '2-digit', day: '2-digit' }, { dateStyle: 'medium' }] as any[]) {\n const date = new Intl.DateTimeFormat(lang, style).format(at);\n add(`${date} ${time}`); add(`${date}, ${time}`);\n }\n }\n } else if (as === 'number' && /^-?\\d+(\\.\\d+)?$/.test(value)) {\n const n = Number(value), decimals = (value.split('.')[1] || '').length;\n add(new Intl.NumberFormat(lang, { minimumFractionDigits: decimals, maximumFractionDigits: decimals }).format(n));\n add(new Intl.NumberFormat(lang).format(n));\n } else if (as === 'currency' && /^-?\\d+(\\.\\d+)?$/.test(value) && currency) {\n add(new Intl.NumberFormat(lang, { style: 'currency', currency }).format(Number(value)));\n add(new Intl.NumberFormat(lang, { style: 'currency', currency, currencyDisplay: 'narrowSymbol' }).format(Number(value)));\n }\n } catch { /* an unknown language or currency: no rendering - the check fails with the shown text */ }\n return [...out];\n}\n\n/** One element on the page as the runner measured it (layoutProblems). */\nexport interface LayoutBox {\n /** what it is: field, button, label, text */\n kind: string;\n /** its name for the report (field key, button action, the first words) */\n name: string;\n left: number; top: number; right: number; bottom: number;\n /** characters that fit in a line of its width at its font size (text only) */\n charsPerLine?: number;\n /** the row it belongs to (fields side by side in one layout row) */\n row?: string;\n /** the sideways scrolling area it stands in (a wide table) - reached by swiping there, so it may leave the frame */\n scroller?: string;\n /** it stands in the top bar (header, page X) - the page scrolls under a fixed one */\n inBar?: boolean;\n}\n\n/** An area that scrolls sideways on its own (a table wider than the screen): its place and how wide its content is. */\nexport interface LayoutScroller {\n name: string;\n left: number; right: number;\n /** the content's width and the width shown */\n content: number; shown: number;\n}\n\n/** What the page shows, measured by a runner: the frame, sideways scrolling, the elements. */\nexport interface LayoutSnapshot {\n width: number;\n height: number;\n /** the page scrolls sideways (document wider than the frame) */\n scrollsSideways: boolean;\n boxes: LayoutBox[];\n /** the areas that scroll sideways on their own */\n scrollers?: LayoutScroller[];\n /** the top bar (header + page X): its place, its behaviour (header.option.scroll) and how far the page is scrolled */\n header?: { top: number; bottom: number; scroll: string; pageTop: number };\n /** card lists with aligned rows (card.alignRows): per row of cards, the tops of their button elements */\n cardRows?: number[][];\n /** an open app keyboard / docked calendar: its background and the colour it should have (the page's, or the\n * project's own keyboard colour) */\n panels?: { name: string; background: string; expected: string }[];\n}\n\n/**\n * The layout rules (OFFENE-PUNKTE 143), judged on what a runner measured: beyond (an element leaves the frame\n * sideways), sideways (the page scrolls sideways), overlap (two fields / buttons cover each other), narrow (a text\n * gets fewer than 3 characters a line), row (fields of one row do not stand on one line), colour (an open keyboard or\n * calendar not in the page's colour). Pixels tolerate 2.\n */\nexport function layoutProblems(snap: LayoutSnapshot): { rule: string; detail: string }[] {\n const problems: { rule: string; detail: string }[] = [];\n const tol = 2;\n if (snap.scrollsSideways) problems.push({ rule: 'sideways', detail: 'the page scrolls sideways' });\n const boxes = snap.boxes.filter((b) => b.right - b.left > 0 && b.bottom - b.top > 0);\n // a fixed header stays in sight however far the page is scrolled (user 2026-11-01)\n const h = snap.header;\n if (h && h.scroll === 'fixed' && (h.top < -tol || h.bottom <= 0)) problems.push({ rule: 'header', detail: `the header left the screen (${Math.round(h.top)}–${Math.round(h.bottom)}) although it is fixed` });\n // aligned card rows (card.alignRows): the buttons of a row stand on one line (user 2026-11-01)\n (snap.cardRows || []).forEach((tops, i) => {\n if (Math.max(...tops) - Math.min(...tops) > tol) problems.push({ rule: 'align', detail: `the buttons of card row ${i + 1} do not stand on one line (${tops.map((t) => Math.round(t)).join(', ')})` });\n });\n // keyboard and calendar have the page's colour (or the project's own keyboard colour) - not a button's (2026-11-14)\n const rgb = (c: string) => (String(c).match(/[\\d.]+/g) || []).slice(0, 3).map(Number).join(',');\n for (const p of snap.panels || []) {\n if (rgb(p.background) !== rgb(p.expected)) problems.push({ rule: 'colour', detail: `${p.name} background ${p.background} differs from the page ${p.expected}` });\n }\n for (const s of snap.scrollers || []) {\n if (s.left < -tol || s.right > snap.width + tol) problems.push({ rule: 'beyond', detail: `area \"${s.name}\" leaves the frame (${Math.round(s.left)}–${Math.round(s.right)} of ${snap.width})` });\n }\n for (const b of boxes) {\n // in an area that scrolls sideways (a wide table) it is reached by swiping there - not lost (user 2026-11-01)\n if (!b.scroller && (b.left < -tol || b.right > snap.width + tol)) problems.push({ rule: 'beyond', detail: `${b.kind} \"${b.name}\" leaves the frame (${Math.round(b.left)}–${Math.round(b.right)} of ${snap.width})` });\n if (b.kind === 'text' && b.charsPerLine !== undefined && b.charsPerLine < 3) problems.push({ rule: 'narrow', detail: `text \"${b.name}\" gets ${b.charsPerLine} characters a line` });\n }\n // what the page scrolled under a fixed header is hidden by it, not covering it (user 2026-11-01): a box outside the\n // top bar counts only below it\n const barBottom = h && h.scroll !== 'scrollsAlong' ? h.bottom : 0;\n // only the part below the header counts - the rest is hidden by it\n const solid = boxes.filter((b) => (b.kind === 'field' || b.kind === 'button') && (b.inBar || b.bottom > barBottom + tol))\n .map((b) => (b.inBar ? b : { ...b, top: Math.max(b.top, barBottom) }));\n for (let i = 0; i < solid.length; i++) {\n for (let j = i + 1; j < solid.length; j++) {\n const a = solid[i], c = solid[j];\n const w = Math.min(a.right, c.right) - Math.max(a.left, c.left);\n const h = Math.min(a.bottom, c.bottom) - Math.max(a.top, c.top);\n if (w > tol && h > tol) problems.push({ rule: 'overlap', detail: `${a.kind} \"${a.name}\" and ${c.kind} \"${c.name}\" cover each other` });\n }\n }\n const rows = new Map<string, LayoutBox[]>();\n for (const b of boxes.filter((x) => x.kind === 'field' && x.row)) rows.set(b.row!, [...(rows.get(b.row!) || []), b]);\n for (const [row, members] of rows) {\n if (members.length < 2) continue;\n const tops = members.map((m) => m.top);\n if (Math.max(...tops) - Math.min(...tops) > 8) problems.push({ rule: 'row', detail: `fields of row \"${row}\" do not stand on one line (${members.map((m) => m.name).join(', ')})` });\n }\n return problems;\n}\n\n/** Hints that fail nothing: the areas that scroll sideways (a wide table) - shown with a passing layout check. */\nexport function layoutNotes(snap: LayoutSnapshot): string[] {\n const notes = (snap.scrollers || []).map((s) => `${s.name} scrolls sideways (${Math.round(s.content)} of ${Math.round(s.shown)} px)`);\n if (snap.header?.scroll === 'scrollsAlong') notes.push('the header scrolls along - cart, search and the page X are out of reach after scrolling');\n return notes;\n}\n\n/** {{data.customer.firstName}} - a value of the test data; anything else in braces is no test data. */\nconst DATA_REF = /\\{\\{\\s*([^}]*?)\\s*\\}\\}/g;\n\nfunction stringsOf(node: any, out: string[] = []): string[] {\n if (typeof node === 'string') out.push(node);\n else if (Array.isArray(node)) node.forEach((v) => stringsOf(v, out));\n else if (node && typeof node === 'object') Object.values(node).forEach((v) => stringsOf(v, out));\n return out;\n}\n\nfunction dataValue(data: any, ref: string): unknown {\n return ref.split('.').reduce((v: any, k) => (v && typeof v === 'object' ? v[k] : undefined), data);\n}\n\n/** The test data a flow uses, per step: [{ step, ref: \"customer.firstName\" }]; ref without \"data.\". */\nexport function testDataRefs(flow: any): { step: number; ref: string; raw: string }[] {\n const refs: { step: number; ref: string; raw: string }[] = [];\n (Array.isArray(flow?.steps) ? flow.steps : []).forEach((step: any, i: number) => {\n for (const text of stringsOf(step)) {\n for (const m of text.matchAll(DATA_REF)) refs.push({ step: i + 1, ref: m[1].replace(/^data\\./, ''), raw: m[1] });\n }\n });\n return refs;\n}\n\n/**\n * The flow with its test data put in: \"{{data.customer.firstName}}\" -> \"Max\"; a whole value that is one placeholder\n * keeps the data's type (a number stays a number). Both runners call it before a run; missing lists what is not in data.\n */\nexport function withTestData(flow: TestFlow, data: any): { flow: TestFlow; missing: string[] } {\n const missing: string[] = [];\n const put = (node: any): any => {\n if (typeof node === 'string') {\n const whole = /^\\{\\{\\s*data\\.([^}]+?)\\s*\\}\\}$/.exec(node);\n if (whole) {\n const v = dataValue(data, whole[1]);\n if (v === undefined) missing.push(whole[1]);\n return v === undefined ? node : v;\n }\n return node.replace(DATA_REF, (all, ref) => {\n if (!ref.startsWith('data.')) return all;\n const v = dataValue(data, ref.slice(5));\n if (v === undefined || typeof v === 'object') { missing.push(ref.slice(5)); return all; }\n return String(v);\n });\n }\n if (Array.isArray(node)) return node.map(put);\n if (node && typeof node === 'object') return Object.fromEntries(Object.entries(node).map(([k, v]) => [k, put(v)]));\n return node;\n };\n return { flow: { ...flow, steps: put(flow.steps) }, missing: [...new Set(missing)] };\n}\n\n/**\n * The problems of a flow; an empty list means it can run. With the app's test data, a placeholder that names nothing\n * in it is a problem too (dataUnknown); a placeholder that is no {{data.…}} is one always (dataRefInvalid).\n */\nexport function checkTestFlow(flow: any, data?: any): TestProblem[] {\n const problems: TestProblem[] = [];\n const add = (code: string, step?: number, params?: Record<string, string>) => problems.push({ code, step, params });\n if (!flow || typeof flow !== 'object' || Array.isArray(flow)) return [{ code: 'notAnObject' }];\n for (const r of testDataRefs(flow)) {\n if (!r.raw.startsWith('data.')) add('dataRefInvalid', r.step, { ref: r.raw });\n else if (data !== undefined && dataValue(data, r.ref) === undefined) add('dataUnknown', r.step, { ref: r.ref });\n }\n // the form is checked with the data put in; a placeholder still standing where a number belongs counts as one\n if (Array.isArray(flow.steps)) {\n const filled = withTestData(flow, data ?? {}).flow;\n const asNumber = (node: any): any => Array.isArray(node) ? node.map(asNumber)\n : node && typeof node === 'object' ? Object.fromEntries(Object.entries(node).map(([k, v]) =>\n [k, typeof v === 'string' && NUMBER_KEYS.has(k) && /^\\{\\{\\s*data\\.[^}]+\\}\\}$/.test(v) ? 1 : asNumber(v)]))\n : node;\n flow = { ...flow, steps: asNumber(filled.steps) };\n }\n if (!text(flow.name)) add('nameMissing');\n if (flow.books !== undefined && typeof flow.books !== 'boolean') add('booksNotBoolean');\n if (flow.simulatorOnly !== undefined && typeof flow.simulatorOnly !== 'boolean') add('simulatorOnlyNotBoolean');\n if (flow.languages !== undefined && flow.languages !== 'all'\n && !(Array.isArray(flow.languages) && flow.languages.every((l: unknown) => /^[a-z]{2}$/i.test(String(l))))) add('languagesInvalid');\n if (flow.devices !== undefined) {\n if (!Array.isArray(flow.devices)) add('devicesNotList');\n else flow.devices.filter((d: string) => !parseDevice(d)).forEach((d: string) => add('unknownDevice', undefined, { device: String(d) }));\n }\n if (!Array.isArray(flow.steps) || !flow.steps.length) {\n add('stepsMissing');\n return problems;\n }\n flow.steps.forEach((step: any, i: number) => {\n const n = i + 1;\n if (!step || typeof step !== 'object' || Array.isArray(step)) { add('stepNotAnObject', n); return; }\n const kinds = (STEP_KINDS as readonly string[]).filter((k) => k in step);\n if (kinds.length !== 1) { add(kinds.length ? 'stepSeveralKinds' : 'stepUnknown', n, { keys: Object.keys(step).join(', ') }); return; }\n const kind = kinds[0];\n switch (kind) {\n case 'open': case 'menu': case 'tap': case 'press':\n if (!text(step[kind])) add('stepNameMissing', n, { kind });\n break;\n case 'goToPage':\n if (!(Number.isInteger(step.goToPage) && step.goToPage >= 1)) add('countNotNumber', n, { kind });\n break;\n case 'scroll':\n if (!Number.isInteger(step.scroll) || step.scroll < 1 || step.scroll > 20) add('scrollOutOfRange', n);\n break;\n case 'openRecord':\n if (!(Number.isInteger(step.openRecord) && step.openRecord >= 1) && !text(step.openRecord)) add('recordMissing', n);\n break;\n case 'close': case 'cart': case 'ifRecords':\n if (step[kind] !== true) add('notTrue', n, { kind });\n break;\n case 'type':\n if (typeof step.type !== 'string') add('typeNotText', n);\n if (!text(step.into)) add('intoMissing', n);\n break;\n case 'pick':\n if (!(Number.isInteger(step.pick) && step.pick >= 1) && !text(step.pick)) add('stepNameMissing', n, { kind });\n if (!text(step.in)) add('inMissing', n);\n break;\n case 'rotate':\n if (!(ORIENTATIONS as readonly string[]).includes(step.rotate)) add('unknownOrientation', n, { orientation: String(step.rotate) });\n break;\n case 'device':\n if (!parseDevice(step.device)) add('unknownDevice', n, { device: String(step.device) });\n break;\n case 'wait':\n if (typeof step.wait !== 'number' || step.wait < 0 || step.wait > 60000) add('waitOutOfRange', n);\n break;\n case 'language':\n if (!/^[a-z]{2}$/i.test(String(step.language || ''))) add('languageUnknown', n, { language: String(step.language) });\n break;\n case 'reload':\n case 'signOut':\n if (step[kind] !== true) add('notTrue', n, { kind });\n break;\n case 'signIn':\n // true: the test user \"default\"; a name: that test user - both stand in the app's test data (testUsers, with\n // their Vault entry); nothing about them is in the code\n if (step.signIn !== true && !(typeof step.signIn === 'string' && /^[a-zA-Z0-9_-]{1,40}$/.test(step.signIn))) add('signInInvalid', n);\n else if (data !== undefined && !data?.testUsers?.[step.signIn === true ? 'default' : step.signIn]?.vault) {\n add('testUserUnknown', n, { user: step.signIn === true ? 'default' : String(step.signIn) });\n }\n break;\n case 'expect':\n checkExpect(step.expect, n, add);\n break;\n }\n });\n return problems;\n}\n\nfunction checkExpect(e: any, n: number, add: (code: string, step?: number, params?: Record<string, string>) => void) {\n if (!e || typeof e !== 'object' || Array.isArray(e)) { add('expectNotAnObject', n); return; }\n // formatted carries its value (the language-neutral one) - that value is no check of its own\n const kinds = (EXPECT_KINDS as readonly string[]).filter((k) => k in e && !(k === 'value' && 'formatted' in e));\n if (kinds.length !== 1) { add(kinds.length ? 'expectSeveralKinds' : 'expectUnknown', n, { keys: Object.keys(e).join(', ') }); return; }\n const kind = kinds[0];\n if ((kind === 'value' || kind === 'shows') && !text(e.field)) add('fieldMissing', n, { kind });\n if (kind === 'shows' && typeof e.shows !== 'string') add('showsNotText', n);\n if (kind === 'keyboard' && !text(e.keyboard)) add('keyboardMissing', n);\n if (kind === 'list' && !(LIST_STATES as readonly string[]).includes(e.list)) add('unknownListState', n, { list: String(e.list) });\n if (kind === 'message' && !text(e.message)) add('messageMissing', n);\n if ((kind === 'visible' || kind === 'hidden' || kind === 'locked' || kind === 'blocked') && !text(e[kind])) add('stepNameMissing', n, { kind });\n if (kind === 'inFrame' && !(FRAME_PARTS as readonly string[]).includes(e.inFrame)) add('unknownFramePart', n, { part: String(e.inFrame) });\n if ((kind === 'page' || kind === 'toast' || kind === 'checked' || kind === 'unchecked') && !text(e[kind])) add('stepNameMissing', n, { kind });\n if ((kind === 'records' || kind === 'recordsAtLeast') && !(Number.isInteger(e[kind]) && e[kind] >= 0)) add('countNotNumber', n, { kind });\n if ((kind === 'samePlace' || kind === 'listLoaded') && e[kind] !== true) add('notTrue', n, { kind });\n if (kind === 'pdf' && typeof e.pdf !== 'boolean') add('notTrue', n, { kind });\n if (kind === 'cardRows' && !(Number.isInteger(e.cardRows) && e.cardRows >= 1 && e.cardRows <= 3)) add('countNotNumber', n, { kind });\n if (kind === 'formatted') {\n if (!text(e.field)) add('fieldMissing', n, { kind });\n if (!(FORMATS as readonly string[]).includes(e.formatted)) add('formatUnknown', n, { format: String(e.formatted) });\n if (typeof e.value !== 'string' && typeof e.value !== 'number') add('valueMissing', n, { kind });\n if (e.formatted === 'currency' && !/^[A-Z]{3}$/.test(String(e.currency || ''))) add('currencyMissing', n);\n }\n if ((kind === 'fieldVisible' || kind === 'filled') && !text(e[kind])) add('stepNameMissing', n, { kind });\n if ((kind === 'translated' || kind === 'restored' || kind === 'layout') && e[kind] !== true) add('notTrue', n, { kind });\n if (kind === 'cartCount' && !(Number.isInteger(e.cartCount) && e.cartCount >= 0) && !/^[+-]\\d+$/.test(String(e.cartCount))) add('countNotNumber', n, { kind });\n}\n\n/**\n * How fast a run goes - chosen only where the run is started (preview: the choice beside \"Run tests\"; devices:\n * --tempo=…), never in a test (user 2026-11-01): the seconds before each step (user 2026-11-04), or one of the names\n * fast (no pause), normal (a short pause), slow (a long pause, to watch it). The checks' time limits start after the pause.\n */\nexport const TEST_TEMPOS = ['fast', 'normal', 'slow'] as const;\nexport type TestTempo = (typeof TEST_TEMPOS)[number];\n\n/**\n * The seconds before each step when nobody chose. A form takes a typed value only in a later task of the browser: a step\n * right after the typing found the field still empty; a person's next click is always later (measured 2026-11-04: 0.1 is\n * enough, 0.2 leaves a margin).\n */\nexport const DEFAULT_TEMPO_SECONDS = 0.2;\n\n/** The pause before a step in ms - from seconds or a name; unknown tempo: fast. */\nexport function tempoPause(tempo: string | number | undefined): number {\n if (tempo === 'normal') return 600;\n if (tempo === 'slow') return 1800;\n const seconds = typeof tempo === 'string' && tempo.trim() === '' ? NaN : Number(tempo);\n return Number.isFinite(seconds) && seconds > 0 ? Math.round(seconds * 1000) : 0;\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\n// - new: the test sign-in without the ui-backend (user 2026-11-01: \"stelle dir vor es existiert kein ui-backend für\n// die tests\"): a runner signs in to Vault itself (a Vault token, or a JWT - the GitLab job's ID token, the\n// Designer person's Keycloak token), reads the test user of the app (liveforge/tenants/<tenant>/e2e/<app>/<name>)\n// - the sign-in data only: the app signs in at its Keycloak itself, the runner fills the app's own window like a\n// person (user 2026-11-01: \"die App muss sich beim Keycloak authentifizieren und bekommt von uns nur die\n// Anmeldedaten\"). totp gives the authenticator code. fetch and crypto.subtle are passed in or global.\n\n/**\n * The app's test users (.liveforge/test-data.json testUsers) - name -> where its sign-in data stand in Vault, e.g.\n * { \"default\": { \"vault\": \"liveforge/tenants/dev/e2e/tm-test/default\", \"description\": \"employee\" } }. Nothing of it\n * is built into the code (user 2026-11-01: nothing hard-coded); a step names the user: signIn true = \"default\".\n */\nexport interface TestUserEntry {\n /** the Vault entry: KV v2 mount, then the path (liveforge/tenants/dev/e2e/tm-test/default) */\n vault: string;\n description?: string;\n}\n\n/** The test user a step names (signIn true -> \"default\") from the app's test data; null when the app has none. */\nexport function testUserEntry(data: any, name: string | true): TestUserEntry | null {\n const key = name === true ? 'default' : String(name || 'default');\n const entry = data?.testUsers?.[key];\n return entry && typeof entry.vault === 'string' && entry.vault.includes('/') ? entry : null;\n}\n\n/** \"liveforge/tenants/dev/e2e/tm-test/default\" -> the KV v2 mount and the path inside it. */\nexport function vaultPlace(vault: string): { mount: string; path: string } {\n const [mount, ...rest] = String(vault).replace(/^\\/+|\\/+$/g, '').split('/');\n return { mount, path: rest.join('/') };\n}\n\n/** The test user as Vault holds it. */\nexport interface TestUser {\n username: string;\n password: string;\n /** the authenticator key (base32) when the test user has a second factor */\n otpSecret?: string;\n /** the tenant key a freshly installed app asks for (device runners) */\n tenantKey?: string;\n}\n\ntype Fetch = (url: string, init?: any) => Promise<{ ok: boolean; status: number; json(): Promise<any>; text(): Promise<string> }>;\n\n/** base32 (RFC 4648, the authenticator apps' form) to bytes. */\nexport function base32Bytes(secret: string): Uint8Array {\n const alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';\n const clean = String(secret || '').toUpperCase().replace(/[^A-Z2-7]/g, '');\n const out: number[] = [];\n let bits = 0;\n let value = 0;\n for (const ch of clean) {\n value = (value << 5) | alphabet.indexOf(ch);\n bits += 5;\n if (bits >= 8) {\n out.push((value >>> (bits - 8)) & 0xff);\n bits -= 8;\n }\n }\n return new Uint8Array(out);\n}\n\n/** The authenticator code (TOTP, RFC 6238: HMAC-SHA1, 30 s, 6 digits) of a key at a time. */\nexport async function totp(secret: string, now = Date.now(), subtle: any = (globalThis as any).crypto?.subtle): Promise<string> {\n const counter = Math.floor(now / 1000 / 30);\n const msg = new Uint8Array(8);\n let c = counter;\n for (let i = 7; i >= 0; i--) { msg[i] = c & 0xff; c = Math.floor(c / 256); }\n const key = await subtle.importKey('raw', base32Bytes(secret), { name: 'HMAC', hash: 'SHA-1' }, false, ['sign']);\n const mac = new Uint8Array(await subtle.sign('HMAC', key, msg));\n const offset = mac[mac.length - 1] & 0x0f;\n const code = ((mac[offset] & 0x7f) << 24) | (mac[offset + 1] << 16) | (mac[offset + 2] << 8) | mac[offset + 3];\n return String(code % 1_000_000).padStart(6, '0');\n}\n\n/** A Vault token from a JWT (auth/<mount>/login, role): the GitLab job's ID token or a person's Keycloak token. */\nexport async function vaultJwtLogin(fetchFn: Fetch, addr: string, mount: string, role: string, jwt: string): Promise<string> {\n const answer = await fetchFn(`${addr.replace(/\\/+$/, '')}/v1/auth/${mount}/login`, {\n method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ role, jwt }),\n });\n if (!answer.ok) throw new Error(`Vault sign-in refused (${answer.status})`);\n const token = (await answer.json())?.auth?.client_token;\n if (!token) throw new Error('Vault gave no token');\n return token;\n}\n\n/** A test user from Vault (KV v2 mount and path, vaultPlace of the test data entry). The values never leave this function but in the result. */\nexport async function readTestUser(fetchFn: Fetch, addr: string, token: string, mount: string, path: string): Promise<TestUser> {\n const answer = await fetchFn(`${addr.replace(/\\/+$/, '')}/v1/${mount}/data/${path}`, { headers: { 'x-vault-token': token } });\n if (answer.status === 404) throw new Error(`no test user in Vault at ${mount}/${path}`);\n if (!answer.ok) throw new Error(`Vault refused reading the test user (${answer.status})`);\n const data = (await answer.json())?.data?.data || {};\n if (!data.username || !data.password) throw new Error(`the test user at ${mount}/${path} has no username or password`);\n return { username: String(data.username), password: String(data.password), otpSecret: data.otpSecret ? String(data.otpSecret) : undefined,\n tenantKey: data.tenantKey ? String(data.tenantKey) : undefined };\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08\n// - new: appSettings.menu.style - folder (default) or footer: languages as buttons, imprint / privacy / terms as links\n// and the version at the foot of the side menu (appSettingsFooter); the rest stays in the folder (point 213)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\n// - new: HEADER_SCROLLS, headerScrollOf - what the header does when the page scrolls (header.option.scroll):\n// fixed (default), hideOnScroll (away while scrolling down, back at once when scrolling up), scrollsAlong\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-23\n// - new: start page, roles and storage of the sign-in (OFFENE-PUNKTE 109): the start page is center.option\n// and holds for every sign-in setting; a role may have its own start page (login.roles, in the\n// Designer's order), without one - or an unknown role - the general start page holds. roleKey says where\n// the role stands: a field of the sign-in answer (JWT) or a claim of the token (Keycloak\n// \"realm_access.roles\", Okta \"groups\"); several roles: the first role in login.roles that the user has.\n// loginPage is the page before the sign-in (hotel: the sign-in form), no role. storage: localStorage\n// (stay signed in) or sessionStorage (signed out when the app closes). login written as a plain string\n// ('optional', the first form) is still read.\n// - new: pagination for the whole app with the page overriding single values (decision 2026-10-23):\n// placement (top | bottom), align (left | center | right | split), defaultPageSize, pageSizeOptions,\n// pageSize (offer the size choice). paginationFor(main, page): page, then Main, then the default; the old\n// page keys top / bottom / position are read until the apps are converted\n// - new: startPage, startPageFor, rolesOf, paginationFor\n// - change: a language entry has no icon (flag is not registered in the app, and a flag is no language)\n// - new: appSettings.menu (decision 2026-10-24, \"variant 3\"): the setting entries stay automatic, but Main\n// decides the folder's caption (menu.caption, default \"Setting\", a text of the app) and every entry's order\n// and on/off (menu.entries, MENU_ENTRY_KINDS), and an entry's own caption instead of its fixed text; on/off\n// only for Home, Languages, Project Version - Login, Pagination Type and Terms are decided in their own\n// building block (MENU_SWITCHABLE, MENU_DECIDED_BY: one place per decision);\n// appSettingsMenu follows it\n// - new: appSettingsMenu - the entries the library adds to the side menu by itself (OFFENE-PUNKTE 106/108):\n// Home, Project Version, Languages (more than one), Login (sign-in at any time, not signed in), Pagination\n// Type (the user may choose), Terms & Conditions (switched on) - into the top-level folder \"Setting\", or a\n// folder \"Setting\" at the end. Captions are the English keys the language files translate\n// - new: pagination.caption, the label beside the size choice, for the whole app and per page (the page's own wins)\n// - change: the default type of a list is scroll (decision of the user 2026-10-23)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-23\n// - new: the app settings catalog - the ONE place that says which app-wide settings an app has, which\n// values they take, their defaults and where they stand in the Main layout (main/layout_schema.json),\n// like the field catalog for the fields (#166, OFFENE-PUNKTE 106/108). The Designer (Main: Login,\n// Pagination, Terms & Conditions), the runtime and the AI contract (capabilities.json, validator) are to\n// read it from here instead of keeping their own copies. No Angular, no texts - the Designer keeps its\n// texts under these keys.\n// Taken over from the Designer's app-settings.store.ts (shuaib 56615e0 / 4627a44):\n// - center.appSettings: login, pagination, terms\n// - the sign-in method comes from the Configuration (environment.login.type) and writes its flag into\n// center.option (keycloakLogin / oktaLogin / jwtLogin) when the sign-in is required at the start\n// It only describes, reads and checks; nothing renders from it yet.\n\nimport type { Bag } from './field-catalog';\n\n/** The building blocks of the app settings in Main, in the order they are shown. */\n/** How the setting entries stand in the side menu: a folder at the end, or a foot of the menu. */\nexport const MENU_STYLES = ['folder', 'footer'] as const;\nexport type MenuStyle = typeof MENU_STYLES[number];\n\nexport const APP_SETTING_BLOCKS = ['startPage', 'login', 'pagination', 'terms', 'menu'] as const;\n\n/** The entries the library may add to the side menu, in their default order (appSettings.menu.entries). */\nexport const MENU_ENTRY_KINDS = ['home', 'languages', 'login', 'paginationType', 'terms', 'projectVersion'] as const;\nexport type MenuEntryKind = typeof MENU_ENTRY_KINDS[number];\n/**\n * The entries Main switches on or off in the menu settings. The others are decided where they belong - one\n * place per decision: Login by login.when (at any time), Pagination Type by pagination.userChoice, Terms &\n * Conditions by terms.enabled; their \"on\" in menu.entries is not read.\n */\nexport const MENU_SWITCHABLE: readonly MenuEntryKind[] = ['home', 'languages', 'projectVersion'];\n/** Where the other entries are decided: the building block of the app settings. */\nexport const MENU_DECIDED_BY: Partial<Record<MenuEntryKind, AppSettingBlock>> = { login: 'login', paginationType: 'pagination', terms: 'terms' };\nexport type AppSettingBlock = typeof APP_SETTING_BLOCKS[number];\n\n/** When the user signs in: never, at any time (menu entry), required at the start. */\nexport const LOGIN_WHEN = ['none', 'optional', 'start'] as const;\nexport type LoginWhen = typeof LOGIN_WHEN[number];\n\n/** Where the sign-in answer is kept: stay signed in, or signed out when the app closes. */\nexport const LOGIN_STORAGES = ['localStorage', 'sessionStorage'] as const;\nexport type LoginStorage = typeof LOGIN_STORAGES[number];\n\n/** The sign-in methods of the Configuration (environment.login.type) and the flag each writes into center.option. */\nexport const LOGIN_METHODS: Record<string, { method: 'keycloak' | 'okta' | 'jwt'; flag: string }> = {\n keycloak: { method: 'keycloak', flag: 'keycloakLogin' },\n oktaAuth: { method: 'okta', flag: 'oktaLogin' },\n jwtToken: { method: 'jwt', flag: 'jwtLogin' },\n};\n\n/** All flags a sign-in at the start may set in center.option. */\nexport const LOGIN_FLAGS: string[] = Object.values(LOGIN_METHODS).map(m => m.flag);\n\n/** The keys of center.option that describe a page (the start page, a role's page, the page before the sign-in). */\nexport const START_PAGE_KEYS = [\n 'action', 'visible', 'layout_url', 'property_url', 'data_url', 'dataKey', 'storageType',\n 'protected', 'setImageUrl', 'passToken', 'form', 'card', 'grid', 'modal',\n] as const;\n\n/** How a list pages: page by page with a bar, or loading the next page while scrolling. */\nexport const PAGINATION_TYPES = ['numbered', 'scroll'] as const;\nexport type PaginationType = typeof PAGINATION_TYPES[number];\n/** Where the page bar stands and how it is aligned. */\nexport const PAGINATION_PLACEMENTS = ['top', 'bottom'] as const;\nexport const PAGINATION_ALIGNS = ['left', 'center', 'right', 'split'] as const;\nexport type PaginationPlacement = typeof PAGINATION_PLACEMENTS[number];\nexport type PaginationAlign = typeof PAGINATION_ALIGNS[number];\n\n/** The documents of Terms & Conditions and how each is given: written text, a link, a PDF. */\nexport const TERMS_DOCUMENTS = ['imprint', 'privacy', 'agb'] as const;\nexport type TermsDocument = typeof TERMS_DOCUMENTS[number];\nexport const DOCUMENT_KINDS = ['text', 'link', 'pdf'] as const;\nexport type DocumentKind = typeof DOCUMENT_KINDS[number];\n\n/** Where the app settings stand in main/layout_schema.json; the start page is center.option. */\nexport const APP_SETTINGS_PATH = 'center.appSettings';\nexport const START_PAGE_PATH = 'center.option';\n\nexport interface AppSettingDef {\n /** the building block the setting belongs to */\n block: AppSettingBlock;\n /** its place inside center.appSettings, dotted */\n key: string;\n kind: 'choice' | 'flag' | 'text' | 'number' | 'numbers' | 'pages' | 'page' | 'documents' | 'entries';\n values?: readonly string[];\n default: any;\n}\n\n/** Every app setting, with its values and default. The start page itself is center.option (START_PAGE_KEYS). */\nexport const APP_SETTINGS: AppSettingDef[] = [\n { block: 'login', key: 'login.when', kind: 'choice', values: LOGIN_WHEN, default: 'none' },\n { block: 'login', key: 'login.storage', kind: 'choice', values: LOGIN_STORAGES, default: 'localStorage' },\n { block: 'login', key: 'login.roleKey', kind: 'text', default: '' },\n { block: 'login', key: 'login.roles', kind: 'pages', default: {} },\n { block: 'login', key: 'login.loginPage', kind: 'page', default: null },\n // scroll: the user's decision 2026-10-23 for every app\n { block: 'pagination', key: 'pagination.default', kind: 'choice', values: PAGINATION_TYPES, default: 'scroll' },\n { block: 'pagination', key: 'pagination.userChoice', kind: 'flag', default: false },\n { block: 'pagination', key: 'pagination.placement', kind: 'choice', values: PAGINATION_PLACEMENTS, default: 'bottom' },\n { block: 'pagination', key: 'pagination.align', kind: 'choice', values: PAGINATION_ALIGNS, default: 'center' },\n // the sizes the reference apps use (luv2shop, tm-test)\n { block: 'pagination', key: 'pagination.defaultPageSize', kind: 'number', default: 5 },\n { block: 'pagination', key: 'pagination.pageSizeOptions', kind: 'numbers', default: [5, 10, 15, 20] },\n { block: 'pagination', key: 'pagination.pageSize', kind: 'flag', default: true },\n // the label beside the size choice (\"Page Size\") - a text of the app, translated in the language editor\n { block: 'pagination', key: 'pagination.caption', kind: 'text', default: '' },\n { block: 'terms', key: 'terms.enabled', kind: 'flag', default: false },\n { block: 'terms', key: 'terms.confirmOnStart', kind: 'flag', default: false },\n { block: 'terms', key: 'terms.documents', kind: 'documents', values: TERMS_DOCUMENTS, default: {} },\n // the state of the terms - a new one asks everybody again (without a backend this one counts)\n { block: 'terms', key: 'terms.version', kind: 'text', default: '' },\n // keep the acceptance in the app's backend too (after the sign-in): ask for the state, send an acceptance\n { block: 'terms', key: 'terms.backend.enabled', kind: 'flag', default: false },\n { block: 'terms', key: 'terms.backend.statusUrl', kind: 'text', default: '' },\n { block: 'terms', key: 'terms.backend.acceptUrl', kind: 'text', default: '' },\n // the folder of the entries the library adds - its caption is a text of the app like any caption\n { block: 'menu', key: 'menu.caption', kind: 'text', default: 'Setting' },\n { block: 'menu', key: 'menu.style', kind: 'choice', values: MENU_STYLES, default: 'folder' },\n { block: 'menu', key: 'menu.entries', kind: 'entries', values: MENU_ENTRY_KINDS, default: MENU_ENTRY_KINDS.map(kind => ({ kind, on: true, caption: '' })) },\n];\n\nconst defaultOf = (key: string) => APP_SETTINGS.find(s => s.key === key)?.default;\n\nexport interface Pagination {\n default: PaginationType;\n userChoice: boolean;\n placement: PaginationPlacement;\n align: PaginationAlign;\n defaultPageSize: number;\n pageSizeOptions: number[];\n pageSize: boolean;\n caption: string;\n}\n\nexport interface AppSettings {\n login: {\n when: LoginWhen;\n storage: LoginStorage;\n roleKey: string;\n /** role -> its own start page, in the Designer's order */\n roles: Record<string, Bag>;\n loginPage: Bag | null;\n };\n pagination: Pagination;\n terms: {\n enabled: boolean;\n /** confirmed before anything else - before the sign-in */\n confirmOnStart: boolean;\n documents: Partial<Record<TermsDocument, { kind: DocumentKind; value: string }>>;\n /** the state of the terms ('' = the texts themselves decide) */\n version: string;\n /** the app's backend keeps the acceptance: GET statusUrl -> { version, accepted }, POST acceptUrl */\n backend: { enabled: boolean; statusUrl: string; acceptUrl: string };\n };\n /** The setting entries: the folder's caption and every kind in the Designer's order, each on or off. */\n menu: { caption: string; style: MenuStyle; entries: { kind: MenuEntryKind; on: boolean; caption: string }[] };\n}\n\nconst isIn = <T extends string>(list: readonly T[], value: any): value is T => list.includes(value);\n// a plain check, no type guard: the values stay `any`, so the library's noPropertyAccessFromIndexSignature\n// does not demand ['key'] for every setting read\nconst isObject = (value: any): boolean => !!value && typeof value === 'object' && !Array.isArray(value);\nconst isSize = (value: any) => Number.isInteger(value) && value > 0;\nconst isSizes = (value: any) => Array.isArray(value) && value.length > 0 && value.every(isSize);\n\n/** The sign-in method of a Configuration (environment.json \"environment\") and its flag; null without one. */\nexport function loginMethod(environment: Bag | any): { method: 'keycloak' | 'okta' | 'jwt'; flag: string } | null {\n return LOGIN_METHODS[environment?.login?.type] ?? null;\n}\n\n/** Only the page keys of an option object (center.option, a role's page, the page before the sign-in). */\nexport function pageOf(option: Bag | any): Bag {\n const page: Bag = {};\n if (!isObject(option)) return page;\n for (const key of START_PAGE_KEYS) if (option[key] !== undefined) page[key] = option[key];\n return page;\n}\n\n/** The general start page of a Main layout: the page keys of center.option. */\nexport function startPage(layout: Bag | any): Bag {\n return pageOf(layout?.center?.option);\n}\n\n/** A value at a dotted path (\"realm_access.roles\"); undefined when a step is missing. */\nfunction valueAt(source: any, path: string): any {\n return String(path || '').split('.').filter(Boolean).reduce((node, part) => node?.[part], source);\n}\n\n/**\n * The roles of a signed-in user: what stands at roleKey in the sign-in answer or the token's claims - a\n * text or a list. Empty without roleKey or user.\n */\nexport function rolesOf(user: Bag | any, roleKey: string): string[] {\n if (!user || !roleKey) return [];\n const value = valueAt(user, roleKey);\n const list = Array.isArray(value) ? value : value === undefined || value === null || value === '' ? [] : [value];\n return list.map(v => String(v));\n}\n\n/**\n * The start page for a signed-in user: the page of the first role in login.roles (the Designer's order) the\n * user has, compared without case; else the general start page.\n */\nexport function startPageFor(layout: Bag | any, user?: Bag | any): Bag {\n const { login } = readAppSettings(layout);\n const mine = rolesOf(user, login.roleKey).map(r => r.toLowerCase());\n for (const [role, page] of Object.entries(login.roles)) {\n if (mine.includes(role.toLowerCase())) return { action: 'get', visible: true, ...pageOf(page) };\n }\n return startPage(layout);\n}\n\n/** The pagination keys a page or Main writes - the old page keys top / bottom / position translated. */\nfunction paginationValues(source: Bag | any): Partial<Pagination> {\n const values: Partial<Pagination> = {};\n if (!isObject(source)) return values;\n if (isIn(PAGINATION_TYPES, source.default)) values.default = source.default;\n if (typeof source.userChoice === 'boolean') values.userChoice = source.userChoice;\n if (isIn(PAGINATION_PLACEMENTS, source.placement)) values.placement = source.placement;\n else if (source.top === true) values.placement = 'top';\n else if (source.bottom === true) values.placement = 'bottom';\n if (isIn(PAGINATION_ALIGNS, source.align)) values.align = source.align;\n else if (source.position === 'space-between') values.align = 'split';\n else if (isIn(PAGINATION_ALIGNS, source.position)) values.align = source.position;\n if (isSize(source.defaultPageSize)) values.defaultPageSize = source.defaultPageSize;\n else if (isSize(source.pageSize)) values.defaultPageSize = source.pageSize;\n if (isSizes(source.pageSizeOptions)) values.pageSizeOptions = [...source.pageSizeOptions];\n if (typeof source.pageSize === 'boolean') values.pageSize = source.pageSize;\n if (typeof source.caption === 'string' && source.caption.trim()) values.caption = source.caption.trim();\n return values;\n}\n\n/** The pagination of the whole app (Main), every missing or unknown value replaced by its default. */\nfunction appPagination(raw: Bag | any): Pagination {\n return {\n default: defaultOf('pagination.default'),\n userChoice: defaultOf('pagination.userChoice'),\n placement: defaultOf('pagination.placement'),\n align: defaultOf('pagination.align'),\n defaultPageSize: defaultOf('pagination.defaultPageSize'),\n pageSizeOptions: [...defaultOf('pagination.pageSizeOptions')],\n pageSize: defaultOf('pagination.pageSize'),\n caption: defaultOf('pagination.caption'),\n ...paginationValues(raw),\n };\n}\n\n/**\n * The pagination of one list: each value from the page (center.pagination of its layout) if it is there,\n * else from Main, else the default. visible: a page with center.pagination pages unless it says\n * visible false; a page without it does not page.\n */\nexport function paginationFor(main: Bag | any, page: Bag | any): Pagination & { visible: boolean } {\n const own = page?.center?.pagination;\n return {\n ...readAppSettings(main).pagination,\n ...paginationValues(own),\n visible: isObject(own) && own.visible !== false,\n };\n}\n\n/**\n * The app settings of a Main layout (main/layout_schema.json), every missing or unknown value replaced by\n * its default. A Main whose center.option carries a sign-in flag counts as \"required at the start\".\n */\nexport function readAppSettings(layout: Bag | any): AppSettings {\n const center = layout?.center ?? {};\n const raw = isObject(center.appSettings) ? center.appSettings : {};\n const option = center.option ?? {};\n // the first form wrote login as a plain string\n const rawLogin = typeof raw.login === 'string' ? { when: raw.login } : isObject(raw.login) ? raw.login : {};\n\n const when: LoginWhen = LOGIN_FLAGS.some(flag => option[flag])\n ? 'start'\n : isIn(LOGIN_WHEN, rawLogin.when) ? rawLogin.when : 'none';\n const roles: Record<string, Bag> = {};\n if (isObject(rawLogin.roles)) {\n for (const [role, page] of Object.entries(rawLogin.roles)) if (role.trim() && isObject(page)) roles[role] = pageOf(page);\n }\n\n const documents: AppSettings['terms']['documents'] = {};\n for (const key of TERMS_DOCUMENTS) {\n const doc = raw.terms?.documents?.[key];\n const value = typeof doc?.value === 'string' ? doc.value.trim() : '';\n if (value) documents[key] = { kind: isIn(DOCUMENT_KINDS, doc.kind) ? doc.kind : 'text', value };\n }\n\n return {\n login: {\n when,\n storage: isIn(LOGIN_STORAGES, rawLogin.storage) ? rawLogin.storage : 'localStorage',\n roleKey: typeof rawLogin.roleKey === 'string' ? rawLogin.roleKey.trim() : '',\n roles,\n loginPage: isObject(rawLogin.loginPage) ? pageOf(rawLogin.loginPage) : null,\n },\n pagination: appPagination(raw.pagination),\n terms: {\n enabled: raw.terms?.enabled === true,\n confirmOnStart: raw.terms?.confirmOnStart === true,\n documents,\n version: typeof raw.terms?.version === 'string' ? raw.terms.version.trim() : '',\n backend: {\n enabled: raw.terms?.backend?.enabled === true,\n statusUrl: typeof raw.terms?.backend?.statusUrl === 'string' ? raw.terms.backend.statusUrl.trim() : '',\n acceptUrl: typeof raw.terms?.backend?.acceptUrl === 'string' ? raw.terms.backend.acceptUrl.trim() : '',\n },\n },\n menu: readMenu(raw.menu),\n };\n}\n\n/** The setting entries in the given order; unknown kinds are left out, missing ones follow switched on. */\nfunction readMenu(raw: any): AppSettings['menu'] {\n const caption = typeof raw?.caption === 'string' && raw.caption.trim() ? raw.caption.trim() : 'Setting';\n const entries: { kind: MenuEntryKind; on: boolean; caption: string }[] = [];\n for (const entry of Array.isArray(raw?.entries) ? raw.entries : []) {\n if (isIn(MENU_ENTRY_KINDS, entry?.kind) && !entries.some(e => e.kind === entry.kind)) {\n const on = MENU_SWITCHABLE.includes(entry.kind) ? entry.on !== false : true;\n entries.push({ kind: entry.kind, on, caption: typeof entry.caption === 'string' ? entry.caption.trim() : '' });\n }\n }\n for (const kind of MENU_ENTRY_KINDS) if (!entries.some(e => e.kind === kind)) entries.push({ kind, on: true, caption: '' });\n return { caption, style: isIn(MENU_STYLES, raw?.style) ? raw.style : 'folder', entries };\n}\n\nexport interface AppSettingsProblem { code: string; key: string; }\n\nconst LAYOUT_URL = /^pages\\/.+\\/layout_schema\\.json$/;\n\n/** What is wrong with a page description (start page, role page, page before the sign-in). */\nfunction checkPage(page: Bag | any, key: string, problems: AppSettingsProblem[]): void {\n if (!isObject(page)) { problems.push({ code: 'notAPage', key }); return; }\n if (typeof page.layout_url !== 'string' || !LAYOUT_URL.test(page.layout_url)) problems.push({ code: 'pageWithoutLayout', key });\n}\n\n/** What is wrong with a pagination (Main's or a page's override). */\nfunction checkPagination(pagination: Bag | any, key: string, problems: AppSettingsProblem[]): void {\n if (pagination.default !== undefined && !isIn(PAGINATION_TYPES, pagination.default)) problems.push({ code: 'unknownValue', key: `${key}.default` });\n if (pagination.userChoice !== undefined && typeof pagination.userChoice !== 'boolean') problems.push({ code: 'notAFlag', key: `${key}.userChoice` });\n if (pagination.placement !== undefined && !isIn(PAGINATION_PLACEMENTS, pagination.placement)) problems.push({ code: 'unknownValue', key: `${key}.placement` });\n if (pagination.align !== undefined && !isIn(PAGINATION_ALIGNS, pagination.align)) problems.push({ code: 'unknownValue', key: `${key}.align` });\n if (pagination.defaultPageSize !== undefined && !isSize(pagination.defaultPageSize)) problems.push({ code: 'notASize', key: `${key}.defaultPageSize` });\n if (pagination.pageSizeOptions !== undefined && !isSizes(pagination.pageSizeOptions)) problems.push({ code: 'notSizes', key: `${key}.pageSizeOptions` });\n if (pagination.caption !== undefined && typeof pagination.caption !== 'string') problems.push({ code: 'notAText', key: `${key}.caption` });\n if (isSize(pagination.defaultPageSize) && isSizes(pagination.pageSizeOptions) && !pagination.pageSizeOptions.includes(pagination.defaultPageSize)) {\n problems.push({ code: 'sizeNotOffered', key: `${key}.defaultPageSize` });\n }\n}\n\n/**\n * What is wrong with the app settings of a Main layout - an empty list when nothing is. The environment\n * (environment.json \"environment\") is needed for the sign-in checks; without it they are skipped.\n */\nexport function checkAppSettings(layout: Bag | any, environment?: Bag | any): AppSettingsProblem[] {\n const problems: AppSettingsProblem[] = [];\n const center = layout?.center ?? {};\n const raw = center.appSettings;\n const option = center.option ?? {};\n const flags = LOGIN_FLAGS.filter(flag => option[flag]);\n\n if (raw !== undefined && !isObject(raw)) return [{ code: 'notAnObject', key: APP_SETTINGS_PATH }];\n const settings = raw ?? {};\n\n checkPage(startPage(layout), START_PAGE_PATH, problems);\n\n const login = typeof settings.login === 'string' ? { when: settings.login } : settings.login;\n if (login !== undefined && !isObject(login)) problems.push({ code: 'notAnObject', key: 'login' });\n const loginBag = isObject(login) ? login : {};\n const when = loginBag.when;\n if (when !== undefined && !isIn(LOGIN_WHEN, when)) problems.push({ code: 'unknownValue', key: 'login.when' });\n if (loginBag.storage !== undefined && !isIn(LOGIN_STORAGES, loginBag.storage)) problems.push({ code: 'unknownValue', key: 'login.storage' });\n if (loginBag.roleKey !== undefined && typeof loginBag.roleKey !== 'string') problems.push({ code: 'notAText', key: 'login.roleKey' });\n if (loginBag.roles !== undefined) {\n if (!isObject(loginBag.roles)) problems.push({ code: 'notAnObject', key: 'login.roles' });\n else {\n for (const [role, page] of Object.entries(loginBag.roles)) checkPage(page, `login.roles.${role}`, problems);\n if (Object.keys(loginBag.roles).length && !String(loginBag.roleKey ?? '').trim()) problems.push({ code: 'rolesWithoutRoleKey', key: 'login.roleKey' });\n }\n }\n if (loginBag.loginPage !== undefined) checkPage(loginBag.loginPage, 'login.loginPage', problems);\n\n if (flags.length > 1) problems.push({ code: 'severalLoginFlags', key: 'login.when' });\n if (when === 'start' && !flags.length) problems.push({ code: 'startWithoutLoginFlag', key: 'login.when' });\n if (flags.length && when !== undefined && when !== 'start') problems.push({ code: 'loginFlagWithoutStart', key: 'login.when' });\n if (environment) {\n const method = loginMethod(environment);\n const wantsLogin = flags.length || when === 'start' || when === 'optional';\n if (wantsLogin && !method) problems.push({ code: 'noLoginMethod', key: 'login.when' });\n if (method && flags.length && !flags.includes(method.flag)) problems.push({ code: 'loginFlagNotMethod', key: 'login.when' });\n }\n\n if (settings.pagination !== undefined) {\n if (!isObject(settings.pagination)) problems.push({ code: 'notAnObject', key: 'pagination' });\n else checkPagination(settings.pagination, 'pagination', problems);\n }\n\n const terms = settings.terms;\n if (terms !== undefined) {\n for (const key of ['enabled', 'confirmOnStart']) {\n if (terms[key] !== undefined && typeof terms[key] !== 'boolean') problems.push({ code: 'notAFlag', key: `terms.${key}` });\n }\n const documents = terms.documents ?? {};\n for (const [name, doc] of Object.entries<any>(documents)) {\n const key = `terms.documents.${name}`;\n if (!isIn(TERMS_DOCUMENTS, name)) { problems.push({ code: 'unknownDocument', key }); continue; }\n if (!isIn(DOCUMENT_KINDS, doc?.kind)) problems.push({ code: 'unknownValue', key: `${key}.kind` });\n if (typeof doc?.value !== 'string' || !doc.value.trim()) problems.push({ code: 'emptyDocument', key });\n }\n if (terms.enabled === true && !TERMS_DOCUMENTS.some(name => documents[name]?.value?.trim?.())) {\n problems.push({ code: 'termsWithoutDocument', key: 'terms.documents' });\n }\n if (terms.confirmOnStart === true && terms.enabled !== true) problems.push({ code: 'confirmWithoutTerms', key: 'terms.confirmOnStart' });\n if (terms.version !== undefined && typeof terms.version !== 'string') problems.push({ code: 'notAText', key: 'terms.version' });\n const backend = terms.backend;\n if (backend !== undefined) {\n if (!isObject(backend)) problems.push({ code: 'notAnObject', key: 'terms.backend' });\n else {\n if (backend.enabled !== undefined && typeof backend.enabled !== 'boolean') problems.push({ code: 'notAFlag', key: 'terms.backend.enabled' });\n if (backend.enabled === true) {\n for (const key of ['statusUrl', 'acceptUrl']) {\n if (typeof backend[key] !== 'string' || !backend[key].trim()) problems.push({ code: 'backendWithoutUrl', key: `terms.backend.${key}` });\n }\n }\n }\n }\n }\n\n const menu = settings.menu;\n if (menu !== undefined) {\n if (!isObject(menu)) problems.push({ code: 'notAnObject', key: 'menu' });\n else {\n if (menu.caption !== undefined && (typeof menu.caption !== 'string' || !menu.caption.trim())) problems.push({ code: 'notAText', key: 'menu.caption' });\n if (menu.entries !== undefined && !Array.isArray(menu.entries)) problems.push({ code: 'notAList', key: 'menu.entries' });\n if (menu.style !== undefined && !isIn(MENU_STYLES, menu.style)) problems.push({ code: 'unknownValue', key: 'menu.style' });\n const seen = new Set<string>();\n for (const [i, entry] of (Array.isArray(menu.entries) ? menu.entries : []).entries()) {\n const key = `menu.entries.${i}`;\n if (!isIn(MENU_ENTRY_KINDS, entry?.kind)) { problems.push({ code: 'unknownValue', key: `${key}.kind` }); continue; }\n if (seen.has(entry.kind)) problems.push({ code: 'duplicateEntry', key: `${key}.kind` });\n seen.add(entry.kind);\n if (entry.on !== undefined && typeof entry.on !== 'boolean') problems.push({ code: 'notAFlag', key: `${key}.on` });\n else if (entry.on !== undefined && !MENU_SWITCHABLE.includes(entry.kind)) problems.push({ code: 'decidedElsewhere', key: `${key}.on` });\n if (entry.caption !== undefined && typeof entry.caption !== 'string') problems.push({ code: 'notAText', key: `${key}.caption` });\n }\n }\n }\n\n return problems;\n}\n\n/** What is wrong with the page bar of one page (center.pagination of its layout): the same values as Main's. */\nexport function checkPagePagination(page: Bag | any): AppSettingsProblem[] {\n const problems: AppSettingsProblem[] = [];\n const own = page?.center?.pagination;\n if (own === undefined) return problems;\n if (!isObject(own)) return [{ code: 'notAnObject', key: 'center.pagination' }];\n checkPagination(own, 'center.pagination', problems);\n for (const old of ['top', 'bottom', 'position']) if (own[old] !== undefined) problems.push({ code: 'oldKey', key: `center.pagination.${old}` });\n if (isSize(own.pageSize)) problems.push({ code: 'oldKey', key: 'center.pagination.pageSize' });\n return problems;\n}\n\n/** The captions of the entries the library adds - keys of the app's language files (English text). */\nexport const SETTING_MENU_TEXTS = {\n setting: 'Setting', home: 'Home', projectVersion: 'Project Version', languages: 'Languages', login: 'Login',\n paginationType: 'Pagination Type', scroll: 'Scroll', numbered: 'Numbered', terms: 'Terms & Conditions',\n imprint: 'Imprint', privacy: 'Privacy', agb: 'Terms',\n} as const;\n\n/** The name of a language in that language (\"de\" -> \"Deutsch\"); the code when it is unknown. */\nexport function languageName(code: string): string {\n try {\n const name = new Intl.DisplayNames([code], { type: 'language' }).of(code);\n return name ? name.charAt(0).toUpperCase() + name.slice(1) : code;\n } catch {\n return code;\n }\n}\n\n/**\n * The side menu with the entries the library adds by itself for an app with app settings: into the\n * top-level folder \"Setting\" (caption, any case), else a folder \"Setting\" at the end. languages: the codes\n * of the project's language files (\"en\", \"de\"); signedIn: whether a user is signed in. The given menu is\n * not changed; without app settings it comes back as it is.\n */\nexport function appSettingsMenu(menu: any[], center: Bag | any, context: { languages?: string[]; signedIn?: boolean } = {}): any[] {\n const items = Array.isArray(menu) ? menu : [];\n if (!isObject(center?.appSettings)) return items;\n const settings = readAppSettings({ center });\n const t = SETTING_MENU_TEXTS;\n const entry = (caption: string, icon: string, option: Bag) => ({ label: { caption }, icon, option: { visible: true, ...option } });\n const languages = [...new Set(context.languages ?? [])];\n const documents = TERMS_DOCUMENTS.filter(name => settings.terms.documents[name]);\n\n // each kind: its entry, or null when it does not apply (one language, signed in, switched off in Main …)\n const build: Record<MenuEntryKind, () => any> = {\n home: () => entry(t.home, 'home', { home: true }),\n languages: () => languages.length > 1 ? {\n label: { caption: t.languages }, icon: 'global', option: { visible: true },\n // no icon: a country's flag does not stand for a language\n submenu: languages.map(code => entry(languageName(code), '', { changeLang: true, data_url: `${code}.json` })),\n } : null,\n login: () => settings.login.when === 'optional' && !context.signedIn ? entry(t.login, 'login', { action: 'login', form: true }) : null,\n paginationType: () => settings.pagination.userChoice ? {\n label: { caption: t.paginationType }, icon: 'ordered-list', option: { visible: true },\n submenu: [entry(t.scroll, 'down', { scrollPagination: true }), entry(t.numbered, 'ordered-list', { numberedPagination: true })],\n } : null,\n terms: () => settings.terms.enabled && documents.length ? {\n label: { caption: t.terms }, icon: 'file-text', option: { visible: true },\n submenu: documents.map(name => entry(t[name], 'file-text', { terms: true, document: { ...settings.terms.documents[name] } })),\n } : null,\n projectVersion: () => entry(t.projectVersion, 'info-circle', { projectVersion: true }),\n };\n // an entry's own caption (Main) wins over the fixed text; it is a text of the app like any caption\n // footer: languages, terms and the version stand at the foot of the menu (appSettingsFooter); home is the menu's\n // own start entry there - only sign-in and paging stay in the folder, when they apply\n const inFooter = new Set<MenuEntryKind>(settings.menu.style === 'footer' ? ['languages', 'terms', 'projectVersion', 'home'] : []);\n const added = settings.menu.entries.filter(e => e.on && !inFooter.has(e.kind)).map(e => {\n const item = build[e.kind]();\n return item && e.caption ? { ...item, label: { ...item.label, caption: e.caption } } : item;\n }).filter(Boolean);\n if (!added.length) return items;\n\n const caption = settings.menu.caption;\n const at = items.findIndex(item => Array.isArray(item?.submenu) && String(item?.label?.caption ?? '').trim().toLowerCase() === caption.toLowerCase());\n if (at >= 0) {\n const folder = items[at];\n return items.map((item, i) => (i === at ? { ...folder, submenu: [...folder.submenu, ...added] } : item));\n }\n return [...items, { label: { caption }, icon: 'setting', option: { visible: true }, submenu: added }];\n}\n\n/** The foot of the side menu (menu.style footer): the languages, the documents of the terms and whether the version shows. */\nexport interface AppSettingsFooter {\n languages: { code: string; name: string; option: Bag }[];\n documents: { name: TermsDocument; caption: string; option: Bag }[];\n version: boolean;\n}\n\n/** The foot of the side menu for menu.style footer; null for the folder or without app settings. */\nexport function appSettingsFooter(center: Bag | any, context: { languages?: string[] } = {}): AppSettingsFooter | null {\n if (!isObject(center?.appSettings)) return null;\n const settings = readAppSettings({ center });\n if (settings.menu.style !== 'footer') return null;\n const on = (kind: MenuEntryKind) => settings.menu.entries.find(e => e.kind === kind)?.on !== false;\n const own = (kind: MenuEntryKind) => settings.menu.entries.find(e => e.kind === kind)?.caption || '';\n const languages = on('languages') ? [...new Set(context.languages ?? [])] : [];\n const t = SETTING_MENU_TEXTS;\n return {\n languages: languages.length > 1 ? languages.map(code => ({ code, name: languageName(code), option: { changeLang: true, data_url: `${code}.json` } })) : [],\n documents: settings.terms.enabled ? TERMS_DOCUMENTS.filter(name => settings.terms.documents[name])\n .map(name => ({ name, caption: t[name], option: { terms: true, document: { ...settings.terms.documents[name] } } })) : [],\n version: on('projectVersion'),\n };\n}\n\n// ---------------------------------------------------------------- finding a menu entry (2026-10-31)\n// One way for the app's test runner and the device runner (before: three, searching to different depths and\n// reading the caption differently - a page under elements / children was not found by the device runner).\n\n/** An entry's caption as written in Main: label.caption, a plain label, or caption. */\nexport function menuCaption(item: any): string {\n const label = item?.label;\n return String((label && typeof label === 'object' ? label.caption : label) ?? item?.caption ?? '');\n}\n\n/** The page an entry opens as tests name it (\"pages/sidemenu/books/layout_schema.json\" -> \"sidemenu/books\"); '' without. */\nexport function menuPage(item: any): string {\n return /^pages\\/(.+)\\/layout_schema\\.json$/.exec(String(item?.option?.layout_url ?? ''))?.[1] ?? '';\n}\n\n/** Every entry of a menu, at any depth (submenu, elements, children), with its path of captions. */\nexport function menuEntries(items: any[] | null | undefined, path: string[] = []): { item: any; caption: string; page: string; path: string[] }[] {\n const out: { item: any; caption: string; page: string; path: string[] }[] = [];\n for (const item of Array.isArray(items) ? items : []) {\n if (!item || typeof item !== 'object') continue;\n const caption = menuCaption(item);\n out.push({ item, caption, page: menuPage(item), path: [...path, caption] });\n for (const key of ['submenu', 'elements', 'children']) {\n if (Array.isArray(item[key])) out.push(...menuEntries(item[key], [...path, caption]));\n }\n }\n return out;\n}\n\n/** The entry that opens a page (its folder under pages/), at any depth. */\nexport function menuEntryForPage(items: any[] | null | undefined, page: string): any {\n return menuEntries(items).find((e) => e.page === page)?.item ?? null;\n}\n\n/**\n * The entry with this caption that opens a page, at any depth: the caption as written in Main, or - the app shows\n * it translated - the text the language file has for it (texts: written text -> shown text).\n */\nexport function menuEntryByCaption(items: any[] | null | undefined, caption: string, texts: Record<string, string> = {}): any {\n const want = [caption, texts[caption]].filter((t): t is string => typeof t === 'string' && !!t);\n return menuEntries(items).find((e) => e.page && want.includes(e.caption))?.item ?? null;\n}\n\n/**\n * What the header does when the page scrolls (main/layout_schema.json header.option.scroll, user 2026-11-01):\n * fixed - stays at the top (default, usual for shops and apps on every device); hideOnScroll - moves away while\n * scrolling down and comes back at once when scrolling up (\"quick return\", room on a phone); scrollsAlong - scrolls\n * away with the page: cart, search and the page X are out of reach after scrolling, and going back from them puts\n * a list at its top (found 2026-11-01, luv2shop a06).\n */\nexport const HEADER_SCROLLS = ['fixed', 'hideOnScroll', 'scrollsAlong'] as const;\nexport type HeaderScroll = (typeof HEADER_SCROLLS)[number];\n\n/** The header's behaviour when the page scrolls - its option.scroll when known, else fixed. */\nexport function headerScrollOf(header: any): HeaderScroll {\n const own = header?.option?.scroll;\n return (HEADER_SCROLLS as readonly string[]).includes(own) ? own : 'fixed';\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17\n// - new: keepFilter on a load from the backend - a filter page opened again shows the last filter values and its list\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-13\n// - new: check \"addon:<name>\" on save (backend), saveAll and submit (browser and backend) - the add-on checks the record\n// before it is kept or sent (OFFENE-PUNKTE 225 B)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-12\n// - new: perUser belongs to every browser source with data_url - records kept per signed-in user (record-format.ts)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-10\n// - new: waitsForFilter - a source that names its filters (dataSource.filters) waits for them\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07\n// - change: route opens the directions from where the user is, not only the place (point 213 worklist 41, 2026-11-09)\n// - new: innerAction contact - phone, WhatsApp, e-mail, SMS, route, web on the user's device (contactLink, CONTACT_KINDS;\n// point 213 worklist 16)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-03\n// - new: convertOlderForms - an app's pages and Main written in the new form (OFFENE-PUNKTE 105/145 step 5): every\n// element's action as withElementAction writes it, a menu entry's call moved into its page (dataSource) when that\n// page is opened by nothing else (a sign-out entry showing the page afterwards takes its source); what stays (header search field, cart, a page opened in several ways) is listed\n// - fix: an unknown innerAction is no action (old names it for the check) - it was taken as one\n// - change: callKindOf reads the new form too (action saveAll / loginForm, innerAction openPage) through elementAction\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n// - new: action and innerAction (OFFENE-PUNKTE 105/145): innerAction runs in the app, action calls the backend;\n// INNER_ACTIONS, BACKEND_ACTIONS, elementAction (reads every older form), withElementAction, checkElementAction,\n// actionName / actionParams for the code; withPageSource - a page's own data source (dataSource, 145);\n// loginForm - a sign-in form sending to the backend is a backend action (innerAction login with an address before;\n// not signIn - that is the test step that signs a test user in)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-30\n// - new: rowAction (an icon of a grid row: any method, default GET - hotel approves with GET), OLD_CALL_KEYS and\n// successMessageOf (notifcation.success of older data)\n// - new: the action catalog - the ONE place that says what an element does with its records and which\n// attributes count for it (OFFENE-PUNKTE 144). Three questions, three places in an option:\n// what action / innerAction (get, save, delete, saveAll, submit, login …) - CALL_KIND_OF\n// where storageType: browser (localstorage / sessionstorage) or backend (database) - STORAGES\n// how only the attributes of that storage and that kind - CALL_KINDS[kind].browser / .backend\n// The older storageType \"filter\" is a backend that waits for its filter fields (database + loadOnFilter).\n// The library, the Designer (<app-call-settings>), the AI contract (capabilities.json) and validate.py read\n// it from here instead of keeping their own lists. No Angular, no texts.\n\n/** Where records are kept. The first two stay in the browser, database is the backend. */\nexport const STORAGES = ['localstorage', 'sessionstorage', 'database'] as const;\nexport type Storage = (typeof STORAGES)[number];\nexport const BROWSER_STORAGES: readonly string[] = ['localstorage', 'sessionstorage'];\n\n/** Storage values of older data and what they mean now. */\nexport const OLD_STORAGES: Readonly<Record<string, { storageType: Storage; loadOnFilter?: boolean }>> = {\n filter: { storageType: 'database', loadOnFilter: true },\n};\n\n/** What an element does with its records - it decides which attributes are offered. */\nexport type CallKind = 'load' | 'link' | 'select' | 'save' | 'saveAll' | 'submit' | 'delete' | 'login' | 'rowAction';\n\nexport interface CallKindRule {\n /** what it does (for the contract and the Designer's help) */\n does: string;\n /** the storages it may use; one only: no choice is offered */\n storages: readonly Storage[];\n /** the storage when none is written */\n defaultStorage: Storage;\n /** the key the address is written under */\n addressKey: 'data_url' | 'url';\n /** the methods, the default first (it is not written) */\n methods: readonly string[];\n /** the attributes with a browser storage (besides storageType) */\n browser: readonly string[];\n /** the attributes with the backend (besides storageType) */\n backend: readonly string[];\n}\n\nconst MESSAGES = ['successMessage', 'errorMessage'] as const;\n\nexport const CALL_KINDS: Readonly<Record<CallKind, CallKindRule>> = {\n load: {\n does: 'A menu entry or page shows records: from the browser storage, or loaded from the backend (optionally only once the filter fields are filled).',\n storages: ['localstorage', 'sessionstorage', 'database'], defaultStorage: 'database', addressKey: 'data_url',\n methods: ['GET', 'POST'],\n browser: ['data_url', 'perUser'],\n backend: ['data_url', 'proxy', 'method', 'passToken', 'params', 'body', 'dateFormat', 'dataKey', 'loadOnFilter', 'keepFilter', 'emptyMessage', 'errorMessage'],\n },\n link: {\n does: 'A button opens a detail page that loads its record from the address; the button itself calls nothing.',\n storages: ['database'], defaultStorage: 'database', addressKey: 'data_url',\n methods: [],\n browser: [],\n backend: ['data_url', 'proxy', 'dataKey'],\n },\n select: {\n does: 'A selection list loads its choices from the backend (option.autocomplete).',\n storages: ['database'], defaultStorage: 'database', addressKey: 'url',\n methods: ['POST', 'GET'],\n browser: [],\n // option.autocomplete writes url; a selection field of its own (luv2shop countries) data_url\n backend: ['url', 'data_url', 'proxy', 'method', 'passToken', 'params', 'body', 'dataKey', 'errorMessage'],\n },\n save: {\n does: 'A card button sends this one record to the backend, or keeps it in a browser list (data_url = its name): with key a second click takes it out again, maxRecords keeps the newest.',\n storages: ['localstorage', 'sessionstorage', 'database'], defaultStorage: 'database', addressKey: 'data_url',\n methods: ['POST', 'PUT'],\n browser: ['data_url', 'perUser', 'key', 'maxRecords', 'deleteMessage', ...MESSAGES],\n backend: ['data_url', 'proxy', 'method', 'passToken', 'params', 'body', 'dateFormat', 'check', 'transform', 'afterSuccess', ...MESSAGES],\n },\n saveAll: {\n does: 'A header button sends all records of the page to the backend, one by one or in one call.',\n storages: ['database'], defaultStorage: 'database', addressKey: 'data_url',\n methods: ['POST', 'PUT'],\n browser: [],\n backend: ['data_url', 'proxy', 'method', 'passToken', 'params', 'body', 'dateFormat', 'check', 'transform', 'sendMode', 'afterSuccess', ...MESSAGES],\n },\n submit: {\n does: 'A form or dialog button keeps its record in the browser storage (with key: a record of the same key value is replaced) or sends it to the backend.',\n storages: ['localstorage', 'sessionstorage', 'database'], defaultStorage: 'localstorage', addressKey: 'data_url',\n methods: ['POST', 'PUT'],\n browser: ['data_url', 'perUser', 'key', 'check', 'afterSuccessPage', ...MESSAGES],\n backend: ['data_url', 'proxy', 'method', 'passToken', 'params', 'body', 'dateFormat', 'check', 'transform', 'afterSuccess', 'afterSuccessPage', ...MESSAGES],\n },\n delete: {\n does: 'A button deletes the record - from the browser storage or at the backend; it asks first.',\n storages: ['localstorage', 'sessionstorage', 'database'], defaultStorage: 'database', addressKey: 'data_url',\n methods: ['DELETE', 'POST'],\n browser: ['data_url', 'perUser', 'confirmDelete', 'deleteMessage', ...MESSAGES],\n backend: ['data_url', 'proxy', 'method', 'passToken', 'params', 'key', 'confirmDelete', 'deleteMessage', ...MESSAGES],\n },\n rowAction: {\n does: 'An icon of a grid row (action column save / delete) calls its address with the row\\'s fields ({{field}}) and changes only this row after success - the answer, else afterSuccessSet. A key \"{{field}}\" with a value shows the icon only on rows where that field has that value (hotel: \"{{reservationStatus}}\": \"PENDING\").',\n storages: ['localstorage', 'sessionstorage', 'database'], defaultStorage: 'database', addressKey: 'data_url',\n methods: ['GET', 'POST', 'PUT', 'DELETE'],\n browser: ['data_url', 'perUser', 'key', 'maxRecords', 'deleteMessage', ...MESSAGES],\n backend: ['data_url', 'proxy', 'method', 'passToken', 'key', 'afterSuccessSet', ...MESSAGES],\n },\n login: {\n does: 'A sign-in form sends its fields to the backend and keeps the answer (loginResponse, userRoleMapping beside it).',\n storages: ['database'], defaultStorage: 'database', addressKey: 'url',\n methods: ['POST'],\n browser: [],\n backend: ['url', 'proxy', 'method', 'errorMessage'],\n },\n};\n\n/** Every attribute of storage and call - an option key outside this list is no business of the catalog. */\nexport const CALL_KEYS: readonly string[] = [...new Set(['storageType',\n ...Object.values(CALL_KINDS).flatMap((rule) => [...rule.browser, ...rule.backend])])];\n\n/** Keys of older data and what they are now - read as before, the Designer writes the new key. */\nexport const OLD_CALL_KEYS: Readonly<Record<string, string>> = {\n 'notifcation.success': 'successMessage',\n 'notification.success': 'successMessage',\n};\n\n/** The message after success: successMessage, else the older notification(s).success. */\nexport function successMessageOf(option: any): string {\n return String(option?.successMessage ?? option?.notification?.success ?? option?.notifcation?.success ?? '').trim();\n}\n\n/** Actions that keep no records and call nothing - no storage, no attributes of this catalog. */\nexport const NO_CALL_ACTIONS: Readonly<Record<string, string>> = {\n 'action:login': 'starts the Keycloak sign-in (a redirect, no call of the app)',\n 'action:logout': 'signs out',\n 'action:cart': 'shows the cart; its data_url is the browser key of the cart (cartInfo)',\n 'innerAction:showModal': 'opens a dialog',\n 'innerAction:cancel': 'closes a dialog',\n 'innerAction:addToCart': 'adds to the cart in the browser',\n};\n\n/** The kind of an element by its action / innerAction and where it stands (a menu entry or page loads). */\nexport function callKindOf(option: any, place: 'menu' | 'page' | 'button' | 'autocomplete' = 'button'): CallKind | null {\n if (place === 'autocomplete') return 'select';\n // what it does in the new form - older forms read the same (innerAction saveAll is action saveAll …)\n const found = elementAction(option, place === 'button' ? 'button' : 'menu');\n if (found.action) return BACKEND_ACTIONS[found.action].kind;\n if (found.innerAction === 'openPage') return 'link';\n if (found.innerAction) return null;\n if (place === 'menu' || place === 'page') return 'load';\n return null;\n}\n\n/** The storage an option means: its storageType (any case, an old value translated), else the kind's default. */\nexport function storageOf(option: any, kind: CallKind): Storage {\n const type = String(option?.storageType ?? '').trim().toLowerCase();\n if ((STORAGES as readonly string[]).includes(type)) return type as Storage;\n if (OLD_STORAGES[type]) return OLD_STORAGES[type].storageType;\n // older data: a method without storageType means the backend (luv2shop's purchase: method post, no storageType)\n if (!type && option?.method) return 'database';\n if (!type && option?.localStorage === true) return 'localstorage';\n if (!type && option?.sessionStorage === true) return 'sessionstorage';\n return CALL_KINDS[kind].defaultStorage;\n}\n\n/** True when the option waits for its filter fields before loading (loadOnFilter, or the older storageType \"filter\"). */\nexport function waitsForFilter(option: any): boolean {\n const type = String(option?.storageType ?? '').trim().toLowerCase();\n // a page that names its filters (dataSource.filters) waits for them too (2026-11-10, filters without data fields)\n return option?.loadOnFilter === true || OLD_STORAGES[type]?.loadOnFilter === true\n || (Array.isArray(option?.filters) && option.filters.length > 0);\n}\n\n/** The attributes that count for this kind with this storage. */\nexport function callAttributes(kind: CallKind, storage: Storage): readonly string[] {\n const rule = CALL_KINDS[kind];\n return BROWSER_STORAGES.includes(storage) ? rule.browser : rule.backend;\n}\n\n/** The method an option uses: its own (upper case), else the kind's default; '' when the kind has none. */\nexport function methodOf(option: any, kind: CallKind): string {\n return String(option?.method || CALL_KINDS[kind].methods[0] || '').toUpperCase();\n}\n\nexport interface CallProblem {\n code: 'storage-unknown' | 'storage-old' | 'storage-not-allowed' | 'attribute-not-for-storage' | 'method-unknown' | 'address-missing';\n key?: string;\n message: string;\n}\n\n/**\n * Checks one option against its kind: a known storage the kind may use, only attributes of that storage, a method of\n * the kind, an address for the backend. Keys outside CALL_KEYS (style, visible, …) are not looked at.\n */\nexport function checkCall(option: any, kind: CallKind): CallProblem[] {\n const problems: CallProblem[] = [];\n const rule = CALL_KINDS[kind];\n const raw = String(option?.storageType ?? '').trim().toLowerCase();\n if (raw && !(STORAGES as readonly string[]).includes(raw) && !OLD_STORAGES[raw]) {\n problems.push({ code: 'storage-unknown', key: 'storageType', message: `storageType \"${option.storageType}\" is unknown - ${STORAGES.join(' | ')}` });\n }\n if (OLD_STORAGES[raw]) {\n problems.push({ code: 'storage-old', key: 'storageType', message: `storageType \"${raw}\" is the older form of storageType \"${OLD_STORAGES[raw].storageType}\"${OLD_STORAGES[raw].loadOnFilter ? ' with loadOnFilter: true' : ''}` });\n }\n const storage = storageOf(option, kind);\n if (!rule.storages.includes(storage)) {\n problems.push({ code: 'storage-not-allowed', key: 'storageType', message: `${kind} keeps no records in \"${storage}\" - ${rule.storages.join(' | ')}` });\n // the attributes follow the storage - with a wrong one they say nothing more\n return problems;\n }\n const allowed = new Set(['storageType', ...callAttributes(kind, storage)]);\n for (const key of Object.keys(option ?? {})) {\n if (CALL_KEYS.includes(key) && !allowed.has(key) && option[key] !== undefined && option[key] !== null && option[key] !== '') {\n problems.push({ code: 'attribute-not-for-storage', key, message: `${key} means nothing for ${kind} with storage \"${storage}\"` });\n }\n }\n if (option?.method && rule.methods.length && !rule.methods.includes(String(option.method).toUpperCase())) {\n problems.push({ code: 'method-unknown', key: 'method', message: `method \"${option.method}\" - ${kind} uses ${rule.methods.join(' | ')}` });\n }\n // a page without records (a form only) needs no address - only what sends or picks from the backend\n if (storage === 'database' && kind !== 'link' && kind !== 'load' && !String(option?.[rule.addressKey] ?? option?.data_url ?? option?.url ?? '').trim()) {\n problems.push({ code: 'address-missing', key: rule.addressKey, message: `${kind} with the backend needs an address (${rule.addressKey})` });\n }\n return problems;\n}\n\n// ---- action and innerAction (OFFENE-PUNKTE 105/145, user 2026-11-02) ----\n// innerAction: runs only in the app, nothing goes to the backend. action: calls the backend - how (address, GET or\n// POST, token, parameters) is the field group of the call (CALL_KINDS), never the name of the action. A menu entry\n// has none: it opens its page, and the page loads its own records.\n\n/** Where an action stands. A field is a checkbox or input of a form, a column a column of a table. */\nexport type ActionPlace = 'menu' | 'button' | 'field' | 'column';\n\nexport interface ActionRule {\n /** what it does, for the (i) */\n does: string;\n /** where it may stand */\n places: readonly ActionPlace[];\n /** the option keys that belong to it besides the action itself */\n keys: readonly string[];\n}\n\n/** Actions that stay in the app. */\nexport const INNER_ACTIONS: Readonly<Record<string, ActionRule>> = {\n openPage: { does: 'Opens a page (a detail page of the record) - the page loads its records itself; values of the record go along as {{record.<field>}}.', places: ['button'], keys: ['layout_url'] },\n filter: { does: 'A form button opens a page with the form\\'s fields as filter values: {{filter.<field>}} in the data_url of the button.', places: ['button'], keys: ['layout_url', 'property_url', 'data_url', 'dataKey'] },\n addToCart: { does: 'Puts the record into the cart in the browser.', places: ['button'], keys: [] },\n showModal: { does: 'Opens a dialog.', places: ['button'], keys: ['layout_url'] },\n cancel: { does: 'Closes the dialog without saving; on a form page the fields go back to their start.', places: ['button'], keys: [] },\n openPdf: { does: 'Shows the PDF whose address stands in a field of the record (propertyKey) inside the app; without an address the button stays away.', places: ['button'], keys: ['propertyKey'] },\n login: { does: 'Starts the sign-in at Keycloak or Okta (a redirect to their sign-in page) - a form that sends user name and password to the app\\'s backend is action loginForm.', places: ['button', 'menu'], keys: [] },\n logout: { does: 'Signs out.', places: ['button', 'menu'], keys: [] },\n cart: { does: 'Shows the cart.', places: ['button', 'menu'], keys: [] },\n copy: { does: 'Copies the values of one data object into another, e.g. the shipping address into the billing address.', places: ['field'], keys: ['from', 'to'] },\n calculate: { does: 'Shows a value calculated from fields of the record, e.g. quantity × price.', places: ['column'], keys: ['operator', 'fields'] },\n contact: { does: 'Opens the phone, WhatsApp, e-mail, SMS, a route in the maps app or a web page on the user\\'s device - the app sends nothing itself. contactKind: phone | whatsapp | email | sms | route | web; contactValue: the number (WhatsApp with its country code, e.g. +49 221 1234567), the e-mail address, the street address or the web address; contactText (optional): a prepared message or subject.', places: ['button', 'menu'], keys: ['contactKind', 'contactValue', 'contactText'] },\n};\n\n/** The kinds of the action contact (2026-11-07, point 213 worklist 16). */\nexport const CONTACT_KINDS = ['phone', 'whatsapp', 'email', 'sms', 'route', 'web'] as const;\nexport type ContactKind = typeof CONTACT_KINDS[number];\n\n/** The icon a contact button shows when it names none itself (ant-design names; the app registers them). */\nexport const CONTACT_ICONS: Readonly<Record<ContactKind, string>> = {\n phone: 'phone', whatsapp: 'whats-app', email: 'mail', sms: 'message', route: 'environment', web: 'global',\n};\n\n/**\n * The link the action contact opens, or '' when the value does not fit the kind:\n * phone tel:, whatsapp https://wa.me/<digits> (country code needed), email mailto:, sms sms:, route the directions in the maps app (from where the user is),\n * web an http(s) address. A message (contactText) goes with WhatsApp, e-mail (subject) and SMS.\n */\nexport function contactLink(kind: unknown, value: unknown, text?: unknown): string {\n const v = String(value ?? '').trim();\n const t = String(text ?? '').trim();\n if (!v) return '';\n const digits = v.replace(/[^\\d+]/g, '');\n switch (kind) {\n case 'phone':\n return /^\\+?\\d{3,}$/.test(digits) ? `tel:${digits}` : '';\n case 'sms':\n return /^\\+?\\d{3,}$/.test(digits) ? `sms:${digits}${t ? `?&body=${encodeURIComponent(t)}` : ''}` : '';\n case 'whatsapp': {\n // wa.me takes the international number without + and without leading zeros: +49 221 … -> 49221…\n const intl = digits.startsWith('+') ? digits.slice(1) : digits.startsWith('00') ? digits.slice(2) : '';\n return /^\\d{6,}$/.test(intl) ? `https://wa.me/${intl}${t ? `?text=${encodeURIComponent(t)}` : ''}` : '';\n }\n case 'email':\n return /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(v) ? `mailto:${v}${t ? `?subject=${encodeURIComponent(t)}` : ''}` : '';\n case 'route':\n // directions from where the user is (point 213 / 41): the maps app on the phone, Google Maps in a browser\n return `https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(v)}`;\n case 'web':\n return /^https?:\\/\\/[^\\s]+$/i.test(v) ? v : '';\n default:\n return '';\n }\n}\n\n/** Actions that call the backend - each with its kind of call (CALL_KINDS). */\nexport const BACKEND_ACTIONS: Readonly<Record<string, ActionRule & { kind: CallKind }>> = {\n save: { does: 'Saves the record.', places: ['button'], keys: [], kind: 'save' },\n saveAll: { does: 'Saves all records of the list.', places: ['button'], keys: [], kind: 'saveAll' },\n submit: { does: 'Sends the form (e.g. an order).', places: ['button'], keys: [], kind: 'submit' },\n delete: { does: 'Deletes the record.', places: ['button'], keys: [], kind: 'delete' },\n loginForm: { does: 'Signs in with the form\\'s user name and password at the app\\'s backend (a JWT sign-in form).', places: ['button'], keys: ['propertyKey', 'loginResponse', 'userRoleMapping'], kind: 'login' },\n};\n\n/** The operators of calculate. */\nexport const CALCULATE_OPERATORS = ['multiply', 'add', 'subtract', 'divide'] as const;\n\n/** What an element does, in the new form - read from the new form and from every older one. */\nexport interface ElementAction {\n /** the backend action (save, saveAll, submit, delete) */\n action?: string;\n /** the app action (openPage, addToCart, showModal, cancel, login, logout, cart, copy, calculate) */\n innerAction?: string;\n /** the keys that belong to it (from, to, operator, fields) */\n params: Record<string, any>;\n /** the value as it stood, when it is not the new form (for the check and the conversion) */\n old?: string;\n}\n\n/**\n * What an element does. Older forms are understood: a menu entry's action \"get\" (opens its page - no action),\n * its cart / login / logout; a button's action \"get\" (openPage); innerAction saveAll / submit (backend actions);\n * innerAction as an object { action: copy | multiply, from, to }.\n */\nexport function elementAction(option: any, place: ActionPlace): ElementAction {\n const action = option?.action;\n const inner = option?.innerAction;\n // innerAction as an object: { action: 'copy' | 'multiply', from, to }\n if (inner && typeof inner === 'object') {\n const kind = String(inner.action ?? '');\n if (kind === 'copy') return { innerAction: 'copy', params: { from: inner.from, to: inner.to }, old: 'innerAction:{copy}' };\n if (kind === 'multiply') return { innerAction: 'calculate', params: { operator: 'multiply', fields: [inner.from, inner.to] }, old: 'innerAction:{multiply}' };\n return { params: {}, old: `innerAction:{${kind}}` };\n }\n // the keys that belong to the action it turns out to be\n const params = (name?: string): Record<string, any> => {\n const out: Record<string, any> = {};\n for (const key of (name ? (INNER_ACTIONS[name] ?? BACKEND_ACTIONS[name])?.keys : undefined) ?? []) {\n if (option?.[key] !== undefined) out[key] = option[key];\n }\n return out;\n };\n if (typeof inner === 'string' && inner) {\n // saveAll and submit call the backend - they belong to action\n if (BACKEND_ACTIONS[inner]) return { action: inner, params: params(inner), old: `innerAction:${inner}` };\n // a sign-in button that sends the form to a backend address is the backend action loginForm (hotel: POST auth/login)\n if (inner === 'login' && place === 'button' && String(option?.url ?? option?.data_url ?? '').trim()) {\n return { action: 'loginForm', params: params('loginForm'), old: 'innerAction:login' };\n }\n if (INNER_ACTIONS[inner]) return { innerAction: inner, params: params(inner) };\n // a value no catalog knows does nothing - named for the check, never run\n return { params: {}, old: `innerAction:${inner}` };\n }\n if (typeof action === 'string' && action) {\n if (BACKEND_ACTIONS[action]) return { action, params: params(action) };\n if (action === 'get') {\n // a menu entry opens its page - no action; a button opens a (detail) page\n return place === 'menu' ? { params: {}, old: 'action:get' } : { innerAction: 'openPage', params: params('openPage'), old: 'action:get' };\n }\n // cart / login / logout run in the app\n if (INNER_ACTIONS[action]) return { innerAction: action, params: params(action), old: `action:${action}` };\n return { params: {}, old: `action:${action}` };\n }\n return { params: {} };\n}\n\n/** The option written in the new form - keys of the old form removed, everything else kept. */\nexport function withElementAction(option: any, place: ActionPlace): any {\n const found = elementAction(option, place);\n if (!found.old) return option;\n const out: any = { ...option };\n delete out.action;\n delete out.innerAction;\n if (found.action) out.action = found.action;\n if (found.innerAction) out.innerAction = found.innerAction;\n Object.assign(out, found.params);\n return out;\n}\n\n/** Problems of an element's action for the check: an unknown value or one in the wrong place. */\nexport function checkElementAction(option: any, place: ActionPlace): string[] {\n const found = elementAction(option, place);\n const problems: string[] = [];\n if (found.old && !found.action && !found.innerAction && !(place === 'menu' && found.old === 'action:get')) {\n problems.push(`unknown action \"${found.old}\"`);\n } else if (found.old) {\n problems.push(`older form \"${found.old}\" - write ${found.action ? `action \"${found.action}\"` : found.innerAction ? `innerAction \"${found.innerAction}\"` : 'no action'}`);\n }\n const rule = found.innerAction ? INNER_ACTIONS[found.innerAction] : found.action ? BACKEND_ACTIONS[found.action] : undefined;\n if (rule && !rule.places.includes(place)) problems.push(`\"${found.innerAction ?? found.action}\" does not belong to a ${place}`);\n return problems;\n}\n\n/**\n * The name of what an element does, in the new form ('' = nothing): save, saveAll, submit, delete, openPage,\n * addToCart, showModal, cancel, login, logout, cart, copy, calculate. Code asks this instead of comparing action or\n * innerAction with a value, so older forms (a button's \"get\", innerAction \"saveAll\") mean the same.\n */\nexport function actionName(option: any, place: ActionPlace = 'button'): string {\n const found = elementAction(option, place);\n return found.action ?? found.innerAction ?? '';\n}\n\n/** The keys of what an element does (copy: from, to; calculate: operator, fields; openPage: layout_url). */\nexport function actionParams(option: any, place: ActionPlace = 'button'): Record<string, any> {\n return elementAction(option, place).params;\n}\n\n/**\n * The page's own data source (OFFENE-PUNKTE 145): a page loads its records itself - \"dataSource\" in its\n * layout_schema.json holds the call (storageType, data_url, method, passToken, params, body, dateFormat, dataKey,\n * loadOnFilter, proxy, messages) and its data object (property_url). Opened from a menu entry or a button, the\n * page's source wins; without one the opener's keys count as before.\n */\nexport function withPageSource(option: any, pageLayout: any): any {\n const source = pageLayout?.dataSource;\n if (!source || typeof source !== 'object') return option;\n const out: any = { ...(option || {}) };\n for (const key of [...CALL_KEYS, ...Object.keys(OLD_CALL_KEYS), 'property_url']) delete out[key];\n return { ...out, ...source };\n}\n\n/** One line of the conversion list: where, what it was, what it is now - or why it stays. */\nexport interface ConversionChange {\n /** the file, e.g. main/layout_schema.json or pages/books/layout_schema.json */\n file: string;\n /** the element in the file, e.g. left.elements[0] */\n where: string;\n caption?: string;\n old: string;\n new: string;\n /** false: left as it is - reason says why */\n done: boolean;\n reason?: string;\n /** why it stays, for the Designer's own texts: searchField, cart, noPage, hasSource, severalWays, openedByButtons, unknown */\n reasonCode?: 'searchField' | 'cart' | 'noPage' | 'hasSource' | 'severalWays' | 'openedByButtons' | 'unknown';\n}\n\n/** The setting entries of the menu (the library adds them; they are no pages and carry no call). */\nconst SETTING_ENTRY_FLAGS = ['changeLang', 'projectVersion', 'scrollPagination', 'numberedPagination', 'terms', 'projectPrivacy'];\n\n/** The keys of a page's call - they move from the menu entry into the page's dataSource. */\nconst PAGE_SOURCE_KEYS: readonly string[] = [...CALL_KEYS, ...Object.keys(OLD_CALL_KEYS).map((key) => key.split('.')[0]), 'property_url'];\n\nconst captionOf = (node: any): string | undefined => {\n const caption = typeof node?.label === 'object' ? node.label?.caption : node?.caption;\n if (caption) return String(caption);\n const reference = String(node?.scope?.reference ?? '');\n if (reference) return reference.split('/').pop();\n // an entry with only an icon (luv2shop's sign-out)\n return node?.icon ? `(${node.icon})` : undefined;\n};\n\n/** An unknown value is left as it is (the Designer decides); everything else is written in the new form. */\nconst known = (found: ElementAction, place: ActionPlace): boolean =>\n !found.old || !!(found.action || found.innerAction) || (place === 'menu' && found.old === 'action:get');\nconst converted = (option: any, place: ActionPlace): any => known(elementAction(option, place), place) ? withElementAction(option, place) : option;\n\nconst describe = (found: ElementAction): string => found.action ? `action ${found.action}`\n : found.innerAction ? `innerAction ${found.innerAction}` : 'no action (the entry opens its page)';\n\n/** Every node with an option, with where it stands (left.elements[0].submenu[1]). */\nfunction eachOption(node: any, where: string, visit: (node: any, where: string) => void): void {\n if (Array.isArray(node)) {\n node.forEach((item, index) => eachOption(item, `${where}[${index}]`, visit));\n return;\n }\n if (!node || typeof node !== 'object') return;\n if (node.option && typeof node.option === 'object' && !Array.isArray(node.option)) visit(node, where);\n for (const [key, value] of Object.entries(node)) {\n if (key !== 'option' && key !== 'dataSource') eachOption(value, where ? `${where}.${key}` : key, visit);\n }\n}\n\n/**\n * An app written in the new form (OFFENE-PUNKTE 105/145 step 5). files: Main and the pages by their path\n * (main/layout_schema.json, pages/<path>/layout_schema.json). Returns the changed files (copies - the given ones are\n * not touched) and the list of every change and of what stays:\n * - every element's action in the new form (withElementAction: button get -> innerAction openPage, innerAction\n * submit / saveAll -> action, menu logout / login / cart -> innerAction, copy / multiply -> copy / calculate, a\n * sign-in form with an address -> action loginForm; a menu entry's get is dropped);\n * - a menu entry's call (data_url, storageType, method, dataKey, property_url …) moved into its page as dataSource -\n * only when the menu entries opening that page all carry the same call and nothing else opens it (the page's source\n * would win over any other opener). It stays at the header search field (its call depends on the typed text), at\n * the cart (data_url is the cart's storage name) and at a page that has a dataSource already.\n */\nexport function convertOlderForms(files: Record<string, any>): { files: Record<string, any>; changes: ConversionChange[] } {\n const out: Record<string, any> = {};\n const changes: ConversionChange[] = [];\n const copyOf = (file: string) => (out[file] ??= JSON.parse(JSON.stringify(files[file])));\n const main = 'main/layout_schema.json';\n const pages = Object.keys(files).filter((file) => file.startsWith('pages/') && file.endsWith('layout_schema.json')).sort();\n const pathOf = (layout: any) => String(layout ?? '').trim().replace(/^\\/+/, '');\n const isSetting = (option: any) => SETTING_ENTRY_FLAGS.some((flag) => option?.[flag]);\n\n // who opens which page: menu entries (with their call) and elements of pages\n const menuOpeners = new Map<string, { where: string; node: any; call: Record<string, any> }[]>();\n const otherOpeners = new Map<string, string[]>();\n if (files[main]) {\n for (const area of ['header', 'left']) {\n eachOption(files[main][area], area, (node, where) => {\n const option = node.option;\n const page = pathOf(option.layout_url);\n if (!page || isSetting(option)) return;\n const call: Record<string, any> = {};\n for (const key of PAGE_SOURCE_KEYS) if (option[key] !== undefined) call[key] = option[key];\n const list = menuOpeners.get(page) ?? [];\n list.push({ where, node, call });\n menuOpeners.set(page, list);\n });\n }\n }\n for (const file of pages) {\n eachOption(files[file], '', (node, where) => {\n const page = pathOf(node.option.layout_url);\n if (page) otherOpeners.set(page, [...(otherOpeners.get(page) ?? []), `${file} ${where}`]);\n });\n }\n\n // 1. the menu: its actions, then its calls into the pages\n if (files[main]) {\n for (const area of ['header', 'left']) {\n eachOption(files[main][area], area, (node, where) => {\n if (isSetting(node.option)) return;\n const found = elementAction(node.option, 'menu');\n if (!found.old) return;\n const done = known(found, 'menu');\n changes.push({ file: main, where, caption: captionOf(node), old: found.old, new: done ? describe(found) : '-', done,\n reason: done ? undefined : 'unknown action - decide in the Designer', reasonCode: done ? undefined : 'unknown' });\n });\n }\n for (const [page, all] of menuOpeners) {\n // a sign-out / sign-in entry showing a page afterwards takes the page as it loads itself - it decides nothing\n const after = all.filter((opener) => ['logout', 'login'].includes(actionName(opener.node.option, 'menu')));\n const openers = all.filter((opener) => !after.includes(opener));\n const withCall = openers.filter((opener) => String(opener.call['data_url'] ?? '').trim());\n if (!withCall.length) continue;\n const first = withCall[0];\n const stay = (reasonCode: ConversionChange['reasonCode'], reason: string) => withCall.forEach((opener) => changes.push({\n file: main, where: opener.where, caption: captionOf(opener.node), old: 'call at the menu entry',\n new: `dataSource in ${page}`, done: false, reason, reasonCode }));\n if (withCall.some((opener) => opener.node.scope)) { stay('searchField', 'the header search field - its call depends on the typed text'); continue; }\n if (withCall.some((opener) => actionName(opener.node.option, 'menu') === 'cart')) { stay('cart', 'the cart - data_url is the storage name of the cart'); continue; }\n if (!files[page]) { stay('noPage', 'the page does not exist'); continue; }\n if (files[page].dataSource) { stay('hasSource', 'the page has a dataSource already'); continue; }\n const same = JSON.stringify(first.call);\n if (openers.length !== withCall.length || withCall.some((opener) => JSON.stringify(opener.call) !== same)) {\n stay('severalWays', `the page is opened by ${openers.length} menu entries in different ways - one data source cannot serve them`);\n continue;\n }\n if (otherOpeners.has(page)) { stay('openedByButtons', `the page is opened by buttons too (${otherOpeners.get(page)!.join(', ')})`); continue; }\n copyOf(page).dataSource = { ...first.call };\n for (const opener of [...withCall, ...after.filter((entry) => String(entry.call['data_url'] ?? '').trim())]) {\n changes.push({ file: main, where: opener.where, caption: captionOf(opener.node), old: 'call at the menu entry',\n new: `dataSource in ${page}`, done: true });\n }\n }\n }\n\n // write Main: actions in the new form, moved calls removed from the entries\n const moved = new Set(changes.filter((c) => c.file === main && c.done && c.old === 'call at the menu entry').map((c) => c.where));\n if (changes.some((c) => c.file === main && c.done)) {\n const target = copyOf(main);\n for (const area of ['header', 'left']) {\n eachOption(target[area], area, (node, where) => {\n if (isSetting(node.option)) return;\n let option = converted(node.option, 'menu');\n if (moved.has(where)) {\n option = { ...option };\n for (const key of PAGE_SOURCE_KEYS) delete option[key];\n }\n node.option = option;\n });\n }\n }\n\n // 2. the pages: every element's action in the new form\n for (const file of pages) {\n const found: { where: string; caption?: string; was: ElementAction }[] = [];\n eachOption(files[file], '', (node, where) => {\n const was = elementAction(node.option, 'button');\n if (was.old) found.push({ where, caption: captionOf(node), was });\n });\n if (!found.length) continue;\n for (const { where, caption, was } of found) {\n const done = known(was, 'button');\n changes.push({ file, where, caption, old: was.old!, new: done ? describe(was) : '-', done,\n reason: done ? undefined : 'unknown action - decide in the Designer', reasonCode: done ? undefined : 'unknown' });\n }\n eachOption(copyOf(file), '', (node) => { node.option = converted(node.option, 'button'); });\n }\n return { files: out, changes };\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\n// - new: one way to put a layout's texts into the app's language, for every container (form, card, grid, dialog,\n// header). Before, five walkers did it differently: the card skipped a button's own caption (\"Add To Cart\" stayed\n// English), the dialog skipped tooltips, form and grid changed the schema in place, so a second language switch\n// looked up texts that were already translated. Here the text a field was written with is remembered, so every\n// switch starts from it - in place or on a copy.\n\n/** The keys whose text is shown to a person: a caption (label.caption or an element's own), placeholder, tooltip, dialog title. */\nexport const SHOWN_TEXT_KEYS = ['caption', 'placeholder', 'tooltip', 'modalTitle'] as const;\n\n/** object -> the texts it was written with, per key - a switch to another language starts from them. */\nconst written = new WeakMap<object, Record<string, string>>();\n\nfunction original(obj: Record<string, any>, key: string): string {\n let seen = written.get(obj);\n if (!seen) written.set(obj, (seen = {}));\n if (!(key in seen)) seen[key] = obj[key];\n return seen[key];\n}\n\n/**\n * The texts of a layout (or property schema) in the language of `texts` (the language file: written text -> its\n * translation). With values: also a property's start value (a text without {{ }}), as the grid's footer needs.\n * inPlace: changes the given schema (its first texts are remembered); else works on a copy. Missing translation:\n * the written text.\n */\nexport function translateCaptions<T>(schema: T, texts: Record<string, string> | null | undefined,\n { inPlace = false, values = false }: { inPlace?: boolean; values?: boolean } = {}): T {\n if (!schema || typeof schema !== 'object') return schema;\n const target: any = inPlace ? schema : JSON.parse(JSON.stringify(schema));\n const dict = texts || {};\n const walk = (obj: any) => {\n if (!obj || typeof obj !== 'object') return;\n if (Array.isArray(obj)) { obj.forEach(walk); return; }\n for (const key of [...SHOWN_TEXT_KEYS, ...(values ? ['value'] : [])]) {\n if (typeof obj[key] !== 'string') continue;\n const first = original(obj, key);\n if (key === 'value' && first.includes('{{')) continue;\n const own = first.trim();\n obj[key] = (own && dict[own]) || first;\n }\n // records (data arrays, autocomplete lists) are data, not layout - not walked\n for (const [key, value] of Object.entries(obj)) if (value && typeof value === 'object' && !(key === 'data' && Array.isArray(value))) walk(value);\n };\n walk(target);\n return target;\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-14\n// - fix: \"text gets N characters a line\" only for a text that wraps - a short word on one line\n// (\"jj\", \"ffff\") was reported as too narrow (hotel test G-01/A-01/C-01)\n// - fix: with a dialog open only what stands in it is measured - a button of the page behind was reported as\n// covering a dialog field (hotel C-02)\n// - new: panels - background of an open app keyboard / docked calendar and the colour the page asks for\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\n// - new: boxes say whether they stand in the top bar (inBar)\n// - new: cardRows - in a card list with aligned rows, per row the tops of the cards' button elements\n// - fix: probeFieldVisible - covered by the keyboard only where both overlap sideways too (landscape: keyboard beside)\n// - new: probeLayoutSnapshot measures the top bar (header.option.scroll, its place, the page's scroll)\n// - change: probeLayoutSnapshot names the areas that scroll sideways (scrollers) and what stands in them\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\n// - new: what the test runners measure on the page, written once (before: the app's runner and the device runner\n// each had a copy, and they had drifted - the device runner flagged record values as untranslated, found fields\n// without the visibility check and never put the person's app data back). Every probe is self-contained: it uses\n// only the page's own objects, so the device runner can send it into the app's web view as it is\n// (driver.execute(probe, ...args)) and the app's runner calls it directly. Nothing outside a probe may be used in it.\n\n/** Storage keys kept when a flow starts with empty app data: sign-in, tenant, project, accepted terms, the recorder, the runner's own. */\nexport const APP_DATA_KEEP = 'token|expires|nonce|pkce|session_state|keycloak|logined|granted_scopes|id_token|okta|tenant|project|terms|networkLogs|vl-test';\n\n/** Texts on the page still in the main language although the language file has them, or raw keys (\"termsShowAgain\"). */\nexport function probeUntranslated(texts: Record<string, string>, lang: string, main: string): string[] {\n const doc = (globalThis as any).document;\n const shown = (el: any) => { const r = el.getBoundingClientRect(); const s = getComputedStyle(el); return r.width > 0 && r.height > 0 && s.visibility !== 'hidden' && s.display !== 'none'; };\n const found = new Set<string>();\n const walker = doc.createTreeWalker(doc.body, 4 /* NodeFilter.SHOW_TEXT */);\n for (let node = walker.nextNode(); node; node = walker.nextNode()) {\n const el = node.parentElement;\n const t = String(node.textContent || '').trim();\n // a record's value is data, not a text of the app\n if (!el || !t || !shown(el) || el.closest('[data-vl-record] [data-vl-field] .vl-control__value, [data-vl-record] td, input, textarea, script, style')) continue;\n if (/^[a-z]+(?:[A-Z][a-z0-9]+)+$/.test(t)) found.add(t);\n else if (lang !== main && texts[t] !== undefined && texts[t] !== t) found.add(t);\n }\n return [...found];\n}\n\n/** What the page shows, measured for the layout rules (layoutProblems): fields, buttons, texts with their boxes. */\nexport function probeLayoutSnapshot(): { width: number; height: number; scrollsSideways: boolean; boxes: any[]; scrollers: any[]; header?: any; cardRows: number[][]; panels: any[] } {\n const doc = (globalThis as any).document;\n const win = globalThis as any;\n const shown = (el: any) => { const r = el.getBoundingClientRect(); const s = getComputedStyle(el); return r.width > 0 && r.height > 0 && s.visibility !== 'hidden' && s.display !== 'none'; };\n // an open dialog covers the page: only what stands in it is measured (the page behind is hidden by design)\n const dialog = [...doc.querySelectorAll('.p-dialog')].find((d: any) => shown(d));\n const measured = (el: any) => shown(el) && (!dialog || dialog.contains(el));\n const rowOf = (el: any) => {\n const parent = el.parentElement;\n if (!parent) return undefined;\n const cs = getComputedStyle(parent);\n return cs.display.includes('flex') && !cs.flexDirection.startsWith('column') && !cs.flexWrap.startsWith('wrap')\n ? `${parent.tagName.toLowerCase()}#${[...(parent.parentElement?.children || [])].indexOf(parent)}` : undefined;\n };\n // areas that scroll sideways on their own (a wide table): what stands in them is reached by swiping there\n const scrollers: any[] = [];\n const scrollerOf = (el: any) => {\n for (let p = el.parentElement; p && p !== doc.body; p = p.parentElement) {\n const s = getComputedStyle(p);\n if (/(auto|scroll)/.test(s.overflowX) && p.scrollWidth > p.clientWidth + 2) {\n let known = scrollers.find((x) => x.el === p);\n if (!known) {\n const r = p.getBoundingClientRect();\n const name = p.closest('[data-vl-container]')?.getAttribute('data-vl-container') || (p.querySelector('table') ? 'table' : 'area');\n known = { el: p, name: `${name} ${scrollers.length + 1}`, left: r.left, right: r.right, content: p.scrollWidth, shown: p.clientWidth };\n scrollers.push(known);\n }\n return known.name;\n }\n }\n return undefined;\n };\n const boxes: any[] = [];\n for (const el of [...doc.querySelectorAll('[data-vl-field]')]) {\n if (!measured(el) || el.closest('[data-vl-record]')) continue;\n const r = el.getBoundingClientRect();\n boxes.push({ kind: 'field', name: el.getAttribute('data-vl-field') || '', left: r.left, top: r.top, right: r.right, bottom: r.bottom, row: rowOf(el), scroller: scrollerOf(el), inBar: !!el.closest('.vl-top-bar') });\n }\n for (const el of [...doc.querySelectorAll('[data-vl-action], button')]) {\n if (!measured(el) || el.closest('[data-vl-field], section[data-vl-custom-keyboard], .left-wrap')) continue;\n const r = el.getBoundingClientRect();\n boxes.push({ kind: 'button', name: el.getAttribute('data-vl-action') || String(el.innerText || '').trim().slice(0, 20), left: r.left, top: r.top, right: r.right, bottom: r.bottom, scroller: scrollerOf(el), inBar: !!el.closest('.vl-top-bar') });\n }\n for (const el of [...doc.querySelectorAll('label, .vl-control__label, .vl-control__value')]) {\n const t = String(el.innerText || '').trim();\n if (!t || !measured(el)) continue;\n const r = el.getBoundingClientRect();\n const css = getComputedStyle(el);\n const size = parseFloat(css.fontSize) || 14;\n // a text on one line is never too narrow (short words like \"jj\" are as wide as themselves);\n // characters a line are counted only when the text wraps onto more lines\n const line = parseFloat(css.lineHeight) || size * 1.2;\n const wraps = r.height > line * 1.5;\n // no key at all on one line: an undefined value comes back from the device as null\n boxes.push({ kind: 'text', name: t.slice(0, 20), left: r.left, top: r.top, right: r.right, bottom: r.bottom,\n ...(wraps ? { charsPerLine: Math.floor(r.width / (size * 0.55)) } : {}), scroller: scrollerOf(el) });\n }\n // the top bar (header + page X): where it stands, what it should do, and whether the page is scrolled\n const bar = doc.querySelector('.vl-top-bar');\n const page = doc.querySelector('.center-wrap');\n const header = bar && shown(bar) ? { top: bar.getBoundingClientRect().top, bottom: bar.getBoundingClientRect().bottom,\n scroll: bar.getAttribute('data-vl-header-scroll') || 'fixed', pageTop: page ? page.scrollTop : 0 } : undefined;\n // card lists with aligned rows (alignRows): per row of cards, the top of each card's first element with buttons\n const cardRows: number[][] = [];\n for (const grid of [...doc.querySelectorAll('.vl-cards--aligned')]) {\n const rows = new Map<number, number[]>();\n for (const card of [...grid.children].filter((c: any) => shown(c))) {\n const action = card.querySelector('.card-layout-item--action');\n if (!action || !shown(action)) continue;\n const top = Math.round(card.getBoundingClientRect().top);\n const key = [...rows.keys()].find((k) => Math.abs(k - top) <= 2) ?? top;\n rows.set(key, [...(rows.get(key) || []), action.getBoundingClientRect().top]);\n }\n for (const tops of rows.values()) if (tops.length > 1) cardRows.push(tops);\n }\n // keyboard and calendar panel look like the page (user 2026-10-13): their background against the page's - the page\n // area (.center-wrap) or the first coloured element above it, white at last; a project's own keyboard colour\n // (--vl-keyboard-background) is what it asked for (2026-11-14: hotel's keyboard took the green of a Book button)\n const colourOf = (start: any) => {\n for (let e = start; e; e = e.parentElement) {\n const c = getComputedStyle(e).backgroundColor;\n if (c && c !== 'transparent' && !/rgba\\(.*,\\s*0\\)$/.test(c)) return c;\n }\n return 'rgb(255, 255, 255)';\n };\n let expected = colourOf(doc.querySelector('.center-wrap') || doc.body);\n const own = doc.body ? String(getComputedStyle(doc.body).getPropertyValue('--vl-keyboard-background') || '').trim() : '';\n if (own && doc.createElement) {\n const probe = doc.createElement('i');\n probe.style.backgroundColor = own;\n doc.body.appendChild(probe);\n expected = getComputedStyle(probe).backgroundColor || expected;\n probe.remove();\n }\n const panels: any[] = [];\n for (const [name, selector] of [['keyboard', 'section[data-vl-custom-keyboard]'], ['calendar', '.model-datepicker-panel--docked']]) {\n const el = [...doc.querySelectorAll(selector)].find((x: any) => shown(x));\n if (el) panels.push({ name, background: getComputedStyle(el).backgroundColor, expected });\n }\n return { width: win.innerWidth, height: win.innerHeight, scrollsSideways: doc.documentElement.scrollWidth > win.innerWidth + 2, boxes,\n scrollers: scrollers.map(({ el, ...s }) => s), header, cardRows, panels };\n}\n\n/** Whether a field (data-vl-path with a dot, else data-vl-field) stands visible above an open keyboard: '' or why not. */\nexport function probeFieldVisible(key: string): string {\n const doc = (globalThis as any).document;\n const win = globalThis as any;\n const shown = (el: any) => { const r = el.getBoundingClientRect(); const s = getComputedStyle(el); return r.width > 0 && r.height > 0 && s.visibility !== 'hidden' && s.display !== 'none'; };\n const esc = (v: string) => String(v).replace(/[\"\\\\]/g, '\\\\$&');\n const all = [...doc.querySelectorAll(key.includes('.') ? `[data-vl-path=\"${esc(key)}\"]` : `[data-vl-field=\"${esc(key)}\"]`)].filter(shown);\n const w = all[all.length - 1];\n if (!w) return 'not there';\n const r = w.getBoundingClientRect();\n const kbEl = doc.querySelector('section[data-vl-custom-keyboard]');\n const kb = kbEl && shown(kbEl) ? kbEl.getBoundingClientRect() : null;\n if (r.top < 0) return `above the frame (${Math.round(r.top)})`;\n // covered only where field and keyboard overlap - in landscape the keyboard stands beside the page, not below it\n const overlapX = kb ? Math.min(r.right, kb.right) - Math.max(r.left, kb.left) > 1 : false;\n if (kb && overlapX && r.bottom > kb.top + 1) return `covered by the keyboard (field to ${Math.round(r.bottom)}, keyboard from ${Math.round(kb.top)})`;\n if (r.bottom > win.innerHeight + 1) return `below the frame (${Math.round(r.bottom)} of ${win.innerHeight})`;\n return '';\n}\n\n/** Where the page stands: the window's and the scrolling content's place, the page's height (expect restored). */\nexport function probePagePlace(): { scrollY: number; scrollTop: number; height: number } {\n const doc = (globalThis as any).document;\n const win = globalThis as any;\n const box = [...doc.querySelectorAll('.ant-layout-content, .layout-content, .center-wrap, main, .p-dialog-content')].find((el: any) => el.scrollHeight > el.clientHeight + 2) as any;\n return { scrollY: win.scrollY, scrollTop: box ? box.scrollTop : 0, height: doc.documentElement.scrollHeight };\n}\n\n/** The app's data in the browser (local and session), without what is kept (keep: APP_DATA_KEEP) - put back after a flow. */\nexport function probeStorageSnapshot(keep: string): { local: [string, string][]; session: [string, string][] } {\n const win = globalThis as any;\n const kept = new RegExp(keep, 'i');\n const copy = (store: any) => Object.keys(store).filter((k) => !kept.test(k)).map((k) => [k, store.getItem(k)] as [string, string]);\n return { local: copy(win.localStorage), session: copy(win.sessionStorage) };\n}\n\n/** Empties the app's data in the browser (not what is kept); true when something was removed. */\nexport function probeClearAppData(keep: string): boolean {\n const win = globalThis as any;\n const kept = new RegExp(keep, 'i');\n let changed = false;\n for (const store of [win.localStorage, win.sessionStorage]) {\n for (const key of Object.keys(store)) {\n if (kept.test(key)) continue;\n store.removeItem(key);\n changed = true;\n }\n }\n return changed;\n}\n\n/** Puts the app's data back as it was before the flow (probeStorageSnapshot); true when something had changed. */\nexport function probeRestoreStorage(snapshot: { local: [string, string][]; session: [string, string][] }, keep: string): boolean {\n const win = globalThis as any;\n const kept = new RegExp(keep, 'i');\n let changed = false;\n const put = (store: any, before: [string, string][]) => {\n const was = new Map(before);\n for (const key of Object.keys(store)) {\n if (kept.test(key) || was.has(key)) continue;\n store.removeItem(key);\n changed = true;\n }\n for (const [key, value] of was) {\n if (store.getItem(key) !== value) { store.setItem(key, value); changed = true; }\n }\n };\n put(win.localStorage, snapshot.local);\n put(win.sessionStorage, snapshot.session);\n return changed;\n}\n\n/** The parts that must stay inside the screen (expect inFrame), as selectors of the page. */\nexport const FRAME_SELECTORS: Record<string, string> = {\n keyboard: 'section[data-vl-custom-keyboard]',\n dialog: '.ant-modal-content, .p-dialog, .cdk-overlay-pane .modal-content',\n calendar: '.p-datepicker-panel, .p-datepicker:not(.p-datepicker-inline) .p-datepicker-calendar-container',\n list: '.p-autocomplete-overlay, .p-select-overlay',\n menu: '.left-wrap',\n};\n\n/** A frame part (its selector from FRAME_SELECTORS): null when not shown, else whether it stays inside the screen and its box. */\nexport function probeInFrame(selector: string): { in: boolean; box: number[]; width: number; height: number } | null {\n const doc = (globalThis as any).document;\n const win = globalThis as any;\n const shown = (el: any) => { const r = el.getBoundingClientRect(); const s = getComputedStyle(el); return r.width > 0 && r.height > 0 && s.visibility !== 'hidden' && s.display !== 'none'; };\n const all = [...doc.querySelectorAll(selector)].filter(shown);\n const el = all[all.length - 1];\n if (!el) return null;\n const b = el.getBoundingClientRect();\n return { in: b.top >= -1 && b.left >= -1 && b.bottom <= win.innerHeight + 1 && b.right <= win.innerWidth + 1,\n box: [Math.round(b.left), Math.round(b.top), Math.round(b.right), Math.round(b.bottom)], width: win.innerWidth, height: win.innerHeight };\n}\n\n/**\n * A field as tests name it (data-vl-path with a dot, else data-vl-field; only shown ones; a key in two DTOs on the page\n * is ambiguous): what it shows and whether it is locked. null when not there; { ambiguous } when the key is not enough.\n */\nexport function probeField(key: string): { text: string; locked: boolean } | { ambiguous: string[] } | null {\n const doc = (globalThis as any).document;\n const shown = (el: any) => { const r = el.getBoundingClientRect(); const s = getComputedStyle(el); return r.width > 0 && r.height > 0 && s.visibility !== 'hidden' && s.display !== 'none'; };\n const esc = (v: string) => String(v).replace(/[\"\\\\]/g, '\\\\$&');\n let w: any;\n if (key.includes('.')) {\n const all = [...doc.querySelectorAll(`[data-vl-path=\"${esc(key)}\"]`)].filter(shown);\n w = all[all.length - 1];\n } else {\n const all = [...doc.querySelectorAll(`[data-vl-field=\"${esc(key)}\"]`)].filter(shown);\n const paths = [...new Set(all.map((el: any) => el.getAttribute('data-vl-path')).filter(Boolean))] as string[];\n if (paths.length > 1) return { ambiguous: paths };\n w = all[all.length - 1];\n }\n if (!w) return null;\n const i = w.querySelector('input:not([type=hidden]), textarea');\n const locked = !i || i.disabled || i.readOnly || !!w.querySelector('.p-disabled, [aria-disabled=true]');\n return { text: i ? String(i.value) : String((w.querySelector('.p-select-label, .p-select') || w).innerText || '').trim(), locked };\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n// - new: one spelling for style properties - the CSS one (font-size, not fontSize), as in style.css and the\n// templates (user 2026-11-02, replaces camelCase of 2026-10-28). Read both, write CSS. styleSpellingFindings and\n// normalizeStyleSpelling find and change camelCase in an app's pages (the Designer's \"Unify styles\"); the look\n// stays the same - where a block holds a property twice, the value the app shows today is kept.\n\ntype Bag = Record<string, any>;\n\n/** \"fontSize\" -> \"font-size\", \"WebkitLineClamp\" -> \"-webkit-line-clamp\"; a CSS name (and --var) stays. */\nexport function cssStyleKey(key: string): string {\n const k = String(key ?? '').trim();\n if (k.startsWith('--') || !/[A-Z]/.test(k)) return k;\n return k.replace(/^(Webkit|Moz|ms|O)(?=[A-Z])/, (p) => '-' + p.toLowerCase()).replace(/[A-Z]/g, (c) => '-' + c.toLowerCase());\n}\n\n/** \"font-size\" -> \"fontSize\" - for code that reads a property in both spellings. */\nexport function camelStyleKey(key: string): string {\n const k = String(key ?? '').trim();\n if (k.startsWith('--')) return k;\n return k.replace(/^-(webkit|moz|ms|o)-/, (_m, p: string) => (p === 'ms' ? 'ms-' : p[0].toUpperCase() + p.slice(1) + '-'))\n .replace(/-([a-z])/g, (_m, c: string) => c.toUpperCase());\n}\n\n/** A property of a style object in either spelling: styleValue(style, 'align-items'). */\nexport function styleValue(style: Bag | null | undefined, cssName: string): any {\n if (!style || typeof style !== 'object') return undefined;\n return style[cssName] ?? style[camelStyleKey(cssName)];\n}\n\n/**\n * The style object in CSS spelling. A property written twice keeps the later one - the browser applies the keys\n * in their order, so that is the value the app shows today. classes and non-property values (objects) stay.\n */\nexport function cssStyle<T extends Bag | null | undefined>(style: T): T {\n if (!style || typeof style !== 'object' || Array.isArray(style)) return style;\n const out: Bag = {};\n for (const [k, v] of Object.entries(style)) {\n const name = k === 'classes' || (v !== null && typeof v === 'object') ? k : cssStyleKey(k);\n if (name in out) delete out[name]; // keep the order of the winning key\n out[name] = v;\n }\n return out as T;\n}\n\n/** A key that holds a style object in a page: style, stylePerCard and every …Style (wrapperStyle, labelStyle …). */\nexport function isStyleHolder(key: string, value: unknown): boolean {\n return !!value && typeof value === 'object' && !Array.isArray(value) && (key === 'style' || key === 'stylePerCard' || /Style$/.test(key));\n}\n\nexport interface StyleSpellingFinding {\n /** where in the page: center.formSections[0].formFields[2].style */\n path: string;\n /** the camelCase name as written */\n key: string;\n /** its CSS name */\n css: string;\n /** the block holds the property in both spellings - the later value is kept */\n twice: boolean;\n}\n\n/** Style properties of a page written in camelCase. */\nexport function styleSpellingFindings(doc: unknown): StyleSpellingFinding[] {\n const found: StyleSpellingFinding[] = [];\n visitStyles(doc, '', (style, path) => {\n for (const [k, v] of Object.entries(style)) {\n if (k === 'classes' || (v !== null && typeof v === 'object')) continue;\n const css = cssStyleKey(k);\n if (css !== k) found.push({ path, key: k, css, twice: css in style });\n }\n });\n return found;\n}\n\n/** The page with every style object in CSS spelling, and what was changed. The page is not changed in place. */\nexport function normalizeStyleSpelling<T>(doc: T): { doc: T; findings: StyleSpellingFinding[] } {\n const findings = styleSpellingFindings(doc);\n if (!findings.length) return { doc, findings };\n const copy = JSON.parse(JSON.stringify(doc));\n visitStyles(copy, '', (style, _path, set) => set(cssStyle(style)));\n return { doc: copy, findings };\n}\n\nfunction visitStyles(node: unknown, path: string, visit: (style: Bag, path: string, set: (s: Bag) => void) => void): void {\n if (Array.isArray(node)) {\n node.forEach((x, i) => visitStyles(x, `${path}[${i}]`, visit));\n return;\n }\n if (!node || typeof node !== 'object') return;\n const bag = node as Bag;\n for (const [k, v] of Object.entries(bag)) {\n const here = path ? `${path}.${k}` : k;\n if (isStyleHolder(k, v)) {\n const values = Object.values(v);\n // responsiveStyle / responsiveWrapperStyle: one style object per device\n if (values.length && values.every((x) => x && typeof x === 'object' && !Array.isArray(x))) {\n for (const [device, s] of Object.entries(v)) visit(s as Bag, `${here}.${device}`, (n) => { (v as Bag)[device] = n; });\n } else {\n visit(v, here, (n) => { bag[k] = n; });\n }\n // a style object can hold another (style.responsiveStyle) - its scalar properties are done, objects go on\n visitStyles(bag[k], here, visit);\n continue;\n }\n visitStyles(v, here, visit);\n }\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-18\n// - new: sizes per device, roundings per part, logo and pictures, font roles named like the Designer (point 173 step 2.1,\n// sketch dev/skizzen/theme-groessen.html) - \"standard\" is today's look (shown, never put on the page), \"devices\" lets a\n// value differ on tablet / web (key@tablet, key@web), \"options\" are the allowed values of a choice\n// - new: DESIGN_DEVICE_MEDIA (tablet: 600 wide and high - a phone turned stays mobile; web: from 1280) and themeDeviceCss -\n// the device values of a theme and the app as @media rules (point 173 step 2.2)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09\n// - fix: an app's own menu colours bring the derived ones (muted text, hover, divider) - the theme's stayed on a light menu\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08\n// - new: THEME_FONTS - the fonts an app brings along (latin, no loading from Google - user 2026-11-08), themeFontKnown -\n// font.family / font.heading-family name one of them first (point 213, worklist 22 step 2)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07\n// - new: an app's own design values over its theme (themeVariables(id, own), safeDesignValues, isSafeDesignValue)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-06\n// - new: four seasonal standard themes: autumn 2026, winter 2026, spring 2027, summer 2027 (point 173)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-05\n// - new: the design values of an app's look (point 173) - the one list for the library's styles, the Designer and the\n// AI contract. Two levels: \"basic\" is what a person chooses, \"advanced\" follows from the basic values (from) unless\n// a theme sets it. A style uses var(--vl-..., today's value): without a theme an app looks as before.\n// - new: STANDARD_THEMES, themeVariables - the platform's themes; an app names one in center.theme of Main\n\nexport type DesignValueGroup = 'colors' | 'status' | 'header' | 'menu' | 'buttons' | 'fonts' | 'shape' | 'spacing' | 'depth'\n | 'sizes' | 'logo' | 'images' | 'text';\nexport type DesignValueKind = 'color' | 'font' | 'size' | 'shadow' | 'weight' | 'choice';\n/** The devices a value may differ on: mobile is the key itself, the others key@tablet / key@web. */\nexport const DESIGN_DEVICES = ['tablet', 'web'] as const;\n/** Where a device starts (CSS media query) - the same for the runtime's theme and the library's styles. */\nexport const DESIGN_DEVICE_MEDIA: Record<'tablet' | 'web', string> = {\n tablet: '(min-width: 600px) and (min-height: 600px)',\n web: '(min-width: 1280px)',\n};\n/** Today's look of a value: one for all devices, or per device (mobile first; a device left out takes mobile's). */\nexport type DesignStandard = string | { mobile: string; tablet?: string; web?: string };\n\nexport interface DesignValue {\n /** The name in a theme file, e.g. color.primary. */\n key: string;\n /** The CSS variable the styles read. */\n cssVar: string;\n group: DesignValueGroup;\n kind: DesignValueKind;\n level: 'basic' | 'advanced';\n /** An advanced value not set by the theme takes the value of this key. */\n from?: string;\n /** Today's look (what the styles fall back to) - shown in the Designer and the contract, never put on the page. */\n standard?: DesignStandard;\n /** The value may differ per device: key@tablet, key@web (mobile is the key itself). */\n devices?: true;\n /** A choice: the allowed values (CSS-ready). */\n options?: string[];\n}\n\nconst value = (key: string, group: DesignValueGroup, kind: DesignValueKind, from?: string): DesignValue => ({\n key,\n cssVar: `--vl-${key.replace(/\\./g, '-')}`,\n group,\n kind,\n level: from ? 'advanced' : 'basic',\n ...(from ? { from } : {}),\n});\n\n/** A value of the advanced level with today's look as its standard (no \"from\": nothing else leads to it). */\nconst extra = (key: string, group: DesignValueGroup, kind: DesignValueKind, standard: DesignStandard,\n more: { devices?: true; options?: string[]; from?: string } = {}): DesignValue => ({\n key, cssVar: `--vl-${key.replace(/\\./g, '-')}`, group, kind, level: 'advanced', standard, ...more,\n});\n\n/** The font roles, named like the Designer: [key part, family from, size, weight, capitals]. */\nconst FONT_ROLES: Array<[string, string, string, string, string]> = [\n ['header', 'font.heading-family', '1.05rem', '700', 'uppercase'],\n ['page-title', 'font.heading-family', '1.6rem', '700', 'none'],\n ['section-title', 'font.heading-family', '1.15rem', '700', 'none'],\n ['label', 'font.family', '0.7rem', '500', 'uppercase'],\n ['value', 'font.family', '1rem', '400', 'none'],\n ['value-strong', 'font.heading-family', '1.15rem', '700', 'none'],\n ['field', 'font.family', '1rem', '400', 'none'],\n ['button', 'font.family', '0.95rem', '500', 'none'],\n ['message', 'font.family', '0.85rem', '400', 'none'],\n];\nconst fontRole = ([role, family, size, weight, capitals]: [string, string, string, string, string]): DesignValue[] => [\n extra(`text.${role}.family`, 'text', 'font', '', { from: family }),\n extra(`text.${role}.size`, 'text', 'size', size),\n extra(`text.${role}.weight`, 'text', 'weight', weight),\n extra(`text.${role}.case`, 'text', 'choice', capitals, { options: ['none', 'uppercase'] }),\n extra(`text.${role}.style`, 'text', 'choice', 'normal', { options: ['normal', 'italic'] }),\n extra(`text.${role}.decoration`, 'text', 'choice', 'none', { options: ['none', 'underline'] }),\n];\n\nexport const DESIGN_VALUES: DesignValue[] = [\n value('color.primary', 'colors', 'color'),\n value('color.text', 'colors', 'color'),\n value('color.background', 'colors', 'color'),\n value('color.surface', 'colors', 'color'),\n value('color.on-primary', 'colors', 'color', 'color.surface'),\n value('color.text-muted', 'colors', 'color', 'color.text'),\n value('color.border', 'colors', 'color', 'color.text-muted'),\n value('color.success', 'status', 'color', 'color.primary'),\n value('color.warning', 'status', 'color', 'color.primary'),\n value('color.danger', 'status', 'color', 'color.primary'),\n value('color.info', 'status', 'color', 'color.primary'),\n value('header.background', 'header', 'color', 'color.surface'),\n value('header.text', 'header', 'color', 'color.text'),\n value('menu.background', 'menu', 'color', 'color.primary'),\n value('menu.text', 'menu', 'color', 'color.on-primary'),\n value('menu.text-muted', 'menu', 'color', 'menu.text'),\n value('menu.hover', 'menu', 'color', 'menu.background'),\n value('menu.divider', 'menu', 'color', 'menu.text-muted'),\n value('button.level1-background', 'buttons', 'color', 'color.primary'),\n value('button.level1-text', 'buttons', 'color', 'color.on-primary'),\n value('button.level2-background', 'buttons', 'color', 'color.surface'),\n value('button.level2-text', 'buttons', 'color', 'color.primary'),\n value('button.level3-text', 'buttons', 'color', 'color.primary'),\n value('font.family', 'fonts', 'font'),\n value('font.heading-family', 'fonts', 'font', 'font.family'),\n value('font.size', 'fonts', 'size'),\n value('shape.radius', 'shape', 'size'),\n value('shape.button-radius', 'shape', 'size', 'shape.radius'),\n value('space.small', 'spacing', 'size'),\n value('space.medium', 'spacing', 'size', 'space.small'),\n value('space.large', 'spacing', 'size', 'space.medium'),\n value('shadow.small', 'depth', 'shadow'),\n value('shadow.large', 'depth', 'shadow', 'shadow.small'),\n // sizes per device (point 173, 2026-11-18) - today's numbers of the accepted tm-guided card\n extra('size.button-height', 'sizes', 'size', { mobile: '44px', web: '40px' }, { devices: true }),\n extra('size.icon-button', 'sizes', 'size', { mobile: '36px', web: '32px' }, { devices: true }),\n extra('size.field-height', 'sizes', 'size', { mobile: '44px', web: '40px' }, { devices: true }),\n extra('size.touch-min', 'sizes', 'size', { mobile: '44px', web: '0' }, { devices: true }),\n extra('space.card', 'sizes', 'size', '16px', { devices: true }),\n extra('space.card-gap', 'sizes', 'size', '16px', { devices: true }),\n // roundings per part - all follow shape.radius unless set\n extra('shape.card-radius', 'shape', 'size', '8px', { from: 'shape.radius' }),\n extra('shape.field-radius', 'shape', 'size', '8px', { from: 'shape.radius' }),\n extra('shape.icon-radius', 'shape', 'size', '8px', { from: 'shape.button-radius' }),\n // logo and pictures: how they stand - which logo and which pictures stay in Media\n extra('logo.height', 'logo', 'size', { mobile: '30px', tablet: '36px', web: '40px' }, { devices: true }),\n extra('logo.position', 'logo', 'choice', 'start', { options: ['start', 'center'] }),\n extra('logo.with-name', 'logo', 'choice', 'show', { options: ['show', 'hide'] }),\n extra('logo.background', 'logo', 'choice', 'none', { options: ['none', 'card'] }),\n extra('header.height', 'header', 'size', { mobile: '56px', tablet: '64px', web: '64px' }, { devices: true }),\n extra('image.radius', 'images', 'size', '8px', { from: 'shape.radius' }),\n extra('image.ratio', 'images', 'choice', '4 / 3', { options: ['4 / 3', '1 / 1', '16 / 9', 'auto'] }),\n extra('image.fit', 'images', 'choice', 'cover', { options: ['cover', 'contain'] }),\n extra('image.inset', 'images', 'choice', 'none', { options: ['none', 'card'] }),\n extra('image.placeholder', 'images', 'color', '', { from: 'color.border' }),\n // font roles: family, size, weight, capitals, italic, underline per role\n ...FONT_ROLES.flatMap(fontRole),\n];\n\n/** The value of a key, or undefined; a device key (size.button-height@web) names its value when that value has devices. */\nexport function designValue(key: string): DesignValue | undefined {\n const [base, device] = String(key).split('@');\n const item = DESIGN_VALUES.find((v) => v.key === base);\n if (device === undefined) return item;\n return item?.devices && (DESIGN_DEVICES as readonly string[]).includes(device) ? item : undefined;\n}\n\n/** The standard of a value on a device (mobile, tablet, web) - today's look; '' when it only follows another value. */\nexport function designStandard(item: DesignValue, device: 'mobile' | 'tablet' | 'web' = 'mobile'): string {\n const standard = item.standard ?? '';\n if (typeof standard === 'string') return standard;\n return standard[device] ?? standard.mobile;\n}\n\n/**\n * The device values of a theme (key@tablet, key@web) as CSS variables per device; {} for a device without any. The\n * key itself is mobile's and comes from designVariables - a device leaves out what it does not change.\n */\nexport function designDeviceVariables(values: Record<string, string>): Record<'tablet' | 'web', Record<string, string>> {\n const result: Record<'tablet' | 'web', Record<string, string>> = { tablet: {}, web: {} };\n for (const [key, raw] of Object.entries(values)) {\n const device = key.split('@')[1];\n const item = device ? designValue(key) : undefined;\n if (item && (device === 'tablet' || device === 'web')) result[device][item.cssVar] = raw;\n }\n return result;\n}\n\n/**\n * The CSS variables of a theme's values: what the theme leaves out follows its \"from\" chain; a value nothing leads to\n * stays out, so the style's own fallback - today's look - applies.\n */\nexport function designVariables(values: Record<string, string>): Record<string, string> {\n const resolve = (item: DesignValue | undefined): string | undefined => {\n if (!item) return undefined;\n return values[item.key] ?? resolve(item.from ? designValue(item.from) : undefined);\n };\n const variables: Record<string, string> = {};\n for (const item of DESIGN_VALUES) {\n const resolved = resolve(item);\n if (resolved !== undefined) variables[item.cssVar] = resolved;\n }\n return variables;\n}\n\nexport interface AppTheme {\n id: string;\n name: { en: string; de: string; fr: string };\n style: 'clean' | 'elegant' | 'natural' | 'dark';\n background: 'light' | 'dark';\n values: Record<string, string>;\n}\n\n/** Where Main names the app's theme. */\nexport const THEME_PATH = 'center.theme';\n\nconst lightStatus = { 'color.success': '#2e7d32', 'color.warning': '#b26a00', 'color.danger': '#c62828', 'color.info': '#0277bd' };\n\nexport const STANDARD_THEMES: AppTheme[] = [\n {\n id: 'clear', name: { en: 'Clear', de: 'Klar', fr: 'Clair' }, style: 'clean', background: 'light',\n values: {\n ...lightStatus, 'color.primary': '#2f6fed', 'color.text': '#1f2937', 'color.text-muted': '#6b7280', 'color.background': '#f7f8fa',\n 'color.surface': '#ffffff', 'color.border': '#e2e6ec', 'menu.background': '#16243a', 'menu.text': '#f2f5fa',\n 'menu.text-muted': '#b6c2d3', 'menu.hover': '#223552', 'menu.divider': '#2d4262',\n },\n },\n {\n id: 'forest', name: { en: 'Forest', de: 'Wald', fr: 'Forêt' }, style: 'natural', background: 'light',\n values: {\n ...lightStatus, 'color.primary': '#2f7d5b', 'color.text': '#1d2a24', 'color.text-muted': '#66756d', 'color.background': '#f5f7f4',\n 'color.surface': '#ffffff', 'color.border': '#dfe6e0', 'menu.background': '#1f3a2f', 'menu.text': '#f1f6f3',\n 'menu.text-muted': '#b5c7bd', 'menu.hover': '#2b4b3e', 'menu.divider': '#37594b',\n },\n },\n {\n id: 'copper', name: { en: 'Copper', de: 'Kupfer', fr: 'Cuivre' }, style: 'elegant', background: 'light',\n values: {\n ...lightStatus, 'color.primary': '#b4552d', 'color.text': '#2b2320', 'color.text-muted': '#776a63', 'color.background': '#faf6f1',\n 'color.surface': '#ffffff', 'color.border': '#ebe2d8', 'menu.background': '#3b2a22', 'menu.text': '#fbf4ec',\n 'menu.text-muted': '#d2c2b4', 'menu.hover': '#4e3a30', 'menu.divider': '#5e483c',\n },\n },\n {\n id: 'night', name: { en: 'Night', de: 'Nacht', fr: 'Nuit' }, style: 'dark', background: 'dark',\n values: {\n 'color.success': '#66bb6a', 'color.warning': '#ffb74d', 'color.danger': '#ef5350', 'color.info': '#4fc3f7',\n 'color.primary': '#5aa9ff', 'color.on-primary': '#0d1420', 'color.text': '#e8edf4', 'color.text-muted': '#9fb0c3',\n 'color.background': '#10151c', 'color.surface': '#1a212b', 'color.border': '#33404f', 'menu.background': '#0b1016',\n 'menu.text': '#e8edf4', 'menu.text-muted': '#9fb0c3', 'menu.hover': '#1a212b', 'menu.divider': '#2a3543',\n },\n },\n {\n id: 'autumn-2026', name: { en: 'Autumn 2026', de: 'Herbst 2026', fr: 'Automne 2026' }, style: 'natural', background: 'light',\n values: {\n ...lightStatus, 'color.primary': '#a4471c', 'color.text': '#2e231c', 'color.text-muted': '#75655a', 'color.background': '#faf4ec',\n 'color.surface': '#ffffff', 'color.border': '#eadfd2', 'menu.background': '#3a2418', 'menu.text': '#fbf3ea',\n 'menu.text-muted': '#d4c1b1', 'menu.hover': '#4d3325', 'menu.divider': '#5f4332',\n },\n },\n {\n id: 'winter-2026', name: { en: 'Winter 2026', de: 'Winter 2026', fr: 'Hiver 2026' }, style: 'clean', background: 'light',\n values: {\n ...lightStatus, 'color.primary': '#1f5f8b', 'color.text': '#1b2a36', 'color.text-muted': '#5f7180', 'color.background': '#f1f5f9',\n 'color.surface': '#ffffff', 'color.border': '#dbe3ea', 'menu.background': '#14283a', 'menu.text': '#eef4f9',\n 'menu.text-muted': '#b4c6d6', 'menu.hover': '#1f3a52', 'menu.divider': '#2c4a64',\n },\n },\n {\n id: 'spring-2027', name: { en: 'Spring 2027', de: 'Frühjahr 2027', fr: 'Printemps 2027' }, style: 'natural', background: 'light',\n values: {\n ...lightStatus, 'color.primary': '#2f7d4f', 'color.text': '#22302a', 'color.text-muted': '#5f7268', 'color.background': '#f5faf3',\n 'color.surface': '#ffffff', 'color.border': '#dde8dc', 'menu.background': '#1e3b2b', 'menu.text': '#f1f7f2',\n 'menu.text-muted': '#b8cdbf', 'menu.hover': '#2a4e3a', 'menu.divider': '#365f48',\n },\n },\n {\n id: 'summer-2027', name: { en: 'Summer 2027', de: 'Sommer 2027', fr: 'Été 2027' }, style: 'clean', background: 'light',\n values: {\n ...lightStatus, 'color.primary': '#0a7c86', 'color.text': '#1f2d33', 'color.text-muted': '#5c6f76', 'color.background': '#fffaf0',\n 'color.surface': '#ffffff', 'color.border': '#efe5d3', 'menu.background': '#0f3a42', 'menu.text': '#effafa',\n 'menu.text-muted': '#b3d0d3', 'menu.hover': '#1a4d56', 'menu.divider': '#285f68',\n },\n },\n];\n\n/** The theme of an id, or undefined (no theme: the app keeps its own look). */\nexport function appTheme(id: unknown): AppTheme | undefined {\n return STANDARD_THEMES.find((theme) => theme.id === id);\n}\n\n/** A font an app brings along (packages in the app, latin with umlauts): its name, its CSS value, what it suits. */\nexport interface ThemeFont {\n name: string;\n css: string;\n use: Array<'heading' | 'text'>;\n}\n\n/** The fonts of the platform - a theme or an app's own look takes font.family / font.heading-family from these. */\nexport const THEME_FONTS: ThemeFont[] = [\n { name: 'Roboto', css: \"Roboto, sans-serif\", use: ['heading', 'text'] },\n { name: 'Oswald', css: \"'Oswald', sans-serif\", use: ['heading'] },\n { name: 'Bebas Neue', css: \"'Bebas Neue', sans-serif\", use: ['heading'] },\n { name: 'Playfair Display', css: \"'Playfair Display', serif\", use: ['heading'] },\n { name: 'Montserrat', css: \"'Montserrat', sans-serif\", use: ['heading', 'text'] },\n { name: 'Poppins', css: \"'Poppins', sans-serif\", use: ['heading', 'text'] },\n { name: 'Inter', css: \"'Inter', sans-serif\", use: ['text', 'heading'] },\n { name: 'Lato', css: \"'Lato', sans-serif\", use: ['text'] },\n { name: 'Open Sans', css: \"'Open Sans', sans-serif\", use: ['text'] },\n { name: 'Nunito', css: \"'Nunito', sans-serif\", use: ['text'] },\n { name: 'Lora', css: \"'Lora', serif\", use: ['text', 'heading'] },\n];\n\n/** Whether a font value names a font the app has first (or only a generic family such as sans-serif). */\nexport function themeFontKnown(raw: unknown): boolean {\n const first = String(raw ?? '').split(',')[0].trim().replace(/^['\"]|['\"]$/g, '').toLowerCase();\n if (!first) return false;\n if (['sans-serif', 'serif', 'system-ui', 'monospace', 'inherit'].includes(first)) return true;\n return THEME_FONTS.some((font) => font.name.toLowerCase() === first);\n}\n\n/**\n * Whether a design value may go on the page: a colour (#rgb, #rrggbb, #rrggbbaa, rgb()/rgba()/hsl()), a size\n * (px, rem, em, % or 0), a font list (letters, digits, spaces, commas, quotes, hyphens) or a shadow made of\n * those - never anything that ends a CSS declaration (; { } < >) or loads something (url, expression, @).\n */\nexport function isSafeDesignValue(key: string, raw: unknown): boolean {\n const item = designValue(key);\n const v = String(raw ?? '').trim();\n if (!item || !v || v.length > 200 || /[;{}<>\\\\@]|url\\(|expression|javascript:/i.test(v)) return false;\n const color = /^(#[0-9a-f]{3,4}|#[0-9a-f]{6}|#[0-9a-f]{8}|(rgb|rgba|hsl|hsla)\\([0-9.,%\\s/]+\\))$/i;\n const size = /^(0|-?[0-9.]+(px|rem|em|%))$/i;\n if (item.kind === 'color') return color.test(v);\n if (item.kind === 'size') return size.test(v);\n if (item.kind === 'font') return /^[\\w\\s,'\"-]+$/.test(v);\n if (item.kind === 'weight') return /^[1-9]00$/.test(v);\n if (item.kind === 'choice') return (item.options ?? []).includes(v);\n return /^[\\w\\s#.,%()/-]+$/.test(v);\n}\n\n/** The app's own design values (Main center.themeValues) that pass isSafeDesignValue - the others are left out. */\nexport function safeDesignValues(own: unknown): Record<string, string> {\n if (!own || typeof own !== 'object') return {};\n return Object.fromEntries(Object.entries(own as Record<string, unknown>)\n .filter(([key, v]) => isSafeDesignValue(key, v)).map(([key, v]) => [key, String(v).trim()]));\n}\n\n/**\n * The CSS variables of a theme and the app's own values over it (point 213 worklist 13: the AI or the customer gives\n * an app its own look as design values, never as CSS); {} when neither gives anything.\n */\nexport function themeVariables(id: unknown, own?: unknown): Record<string, string> {\n const theme = appTheme(id);\n const mine = safeDesignValues(own);\n if (!theme && !Object.keys(mine).length) return {};\n // the app's own menu colours: what the theme derives from them (muted text, hover, divider) follows them, unless the app\n // gives those too - the theme's were made for its own menu (a dark one) and stayed on a light menu (2026-11-09)\n const derived: Record<string, string> = {};\n if (mine['menu.background'] || mine['menu.text']) {\n const bg = mine['menu.background'] ?? theme?.values?.['menu.background'];\n const text = mine['menu.text'] ?? theme?.values?.['menu.text'];\n if (bg && text) {\n derived['menu.text-muted'] = `color-mix(in srgb, ${text} 72%, ${bg})`;\n derived['menu.hover'] = `color-mix(in srgb, ${text} 8%, ${bg})`;\n derived['menu.divider'] = `color-mix(in srgb, ${text} 18%, ${bg})`;\n }\n }\n return designVariables({ ...(theme?.values ?? {}), ...derived, ...mine });\n}\n\n/**\n * The device values of a theme and the app's own values over it (key@tablet, key@web) as CSS: one @media rule per device\n * that has any, tablet before web; '' when none. Values pass isSafeDesignValue first (safeDesignValues).\n */\nexport function themeDeviceCss(id: unknown, own?: unknown): string {\n const theme = appTheme(id);\n const devices = designDeviceVariables({ ...(theme?.values ?? {}), ...safeDesignValues(own) });\n return (['tablet', 'web'] as const)\n .filter((device) => Object.keys(devices[device]).length)\n .map((device) => `@media ${DESIGN_DEVICE_MEDIA[device]} { :root { ${Object.entries(devices[device]).map(([name, v]) => `${name}: ${v};`).join(' ')} } }`)\n .join('\\n');\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09\n// - new: opening hours as data (point 213 worklist 29, user decision A): a week of times per day (day, from, to; a day\n// without a time is closed; several times a day for a lunch break; to after midnight = into the next day) and the\n// business's time zone. openingStatus says whether it is open now and when it closes or opens again - always in\n// the business's time zone (summer time from the device's time zone rules, Intl), not the phone's.\n\nexport const WEEK_DAYS = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'] as const;\nexport type WeekDay = typeof WEEK_DAYS[number];\n\n/** One time a day: from and to as \"HH:MM\" (24 h); to \"24:00\" or before from = until the next morning. */\nexport interface OpeningTime { day: WeekDay; from: string; to: string; }\n\nexport interface OpeningStatus {\n open: boolean;\n /** open: the day and time it closes; closed: the day and time it opens next (null: never - no times at all) */\n next: { day: WeekDay; time: string; today: boolean; tomorrow: boolean } | null;\n /** the business's day of the week now */\n today: WeekDay;\n}\n\nconst minutes = (hhmm: string): number | null => {\n const m = /^(\\d{1,2}):(\\d{2})$/.exec(String(hhmm ?? '').trim());\n if (!m) return null;\n const h = Number(m[1]), min = Number(m[2]);\n return h <= 24 && min < 60 && h * 60 + min <= 1440 ? h * 60 + min : null;\n};\n\n/** What is wrong with opening times: unknown day, a time not \"HH:MM\", from equal to. Empty: fine. */\nexport function openingProblems(times: unknown, timeZone?: unknown): { index: number; code: string }[] {\n const problems: { index: number; code: string }[] = [];\n if (!Array.isArray(times)) return [{ index: -1, code: 'notAList' }];\n times.forEach((t: any, index) => {\n if (!WEEK_DAYS.includes(t?.day)) problems.push({ index, code: 'unknownDay' });\n const from = minutes(t?.from), to = minutes(t?.to);\n if (from === null || to === null) problems.push({ index, code: 'notATime' });\n else if (from === to) problems.push({ index, code: 'emptyTime' });\n });\n if (timeZone !== undefined && !validTimeZone(timeZone)) problems.push({ index: -1, code: 'unknownTimeZone' });\n return problems;\n}\n\n/** Whether the device knows the time zone (IANA name such as Europe/Berlin). */\nexport function validTimeZone(zone: unknown): boolean {\n try {\n new Intl.DateTimeFormat('en', { timeZone: String(zone) });\n return typeof zone === 'string' && zone.length > 0;\n } catch {\n return false;\n }\n}\n\n/** The day of the week and the minute of the day in a time zone. */\nexport function zonedNow(now: Date, timeZone: string): { day: WeekDay; minute: number } {\n const parts = new Intl.DateTimeFormat('en-US', { timeZone, weekday: 'short', hour: '2-digit', minute: '2-digit', hourCycle: 'h23' })\n .formatToParts(now);\n const get = (type: string) => parts.find((p) => p.type === type)?.value ?? '';\n const day = get('weekday').slice(0, 3).toLowerCase() as WeekDay;\n return { day: WEEK_DAYS.includes(day) ? day : 'mon', minute: Number(get('hour')) * 60 + Number(get('minute')) };\n}\n\n/** Open now? And when does it close, or open next - in the business's time zone. */\nexport function openingStatus(times: OpeningTime[], timeZone = 'Europe/Berlin', now: Date = new Date()): OpeningStatus {\n const { day, minute } = zonedNow(now, validTimeZone(timeZone) ? timeZone : 'Europe/Berlin');\n const todayIndex = WEEK_DAYS.indexOf(day);\n // the week as intervals in minutes from Monday 00:00 (an end before its start runs into the next day)\n const week = 7 * 1440;\n const spans = (Array.isArray(times) ? times : []).flatMap((t) => {\n const from = minutes(t.from), to = minutes(t.to);\n const d = WEEK_DAYS.indexOf(t.day);\n if (from === null || to === null || d < 0 || from === to) return [];\n const start = d * 1440 + from;\n const end = d * 1440 + (to > from ? to : to + 1440);\n return [{ start, end }];\n });\n const at = todayIndex * 1440 + minute;\n const label = (abs: number) => {\n const m = ((abs % week) + week) % week;\n const d = Math.floor(m / 1440), rest = m % 1440;\n const time = `${String(Math.floor(rest / 60)).padStart(2, '0')}:${String(rest % 60).padStart(2, '0')}`;\n const ahead = Math.floor(abs / 1440) - todayIndex;\n return { day: WEEK_DAYS[d], time, today: ahead === 0, tomorrow: ahead === 1 };\n };\n // open: inside a span (this week, or a span of last Sunday running past midnight)\n for (const s of spans) {\n for (const shift of [0, -week]) {\n if (at >= s.start + shift && at < s.end + shift) {\n // a span ending exactly where the next starts (24:00 then 00:00) counts as one\n let end = s.end + shift;\n for (let more = true; more;) {\n more = false;\n for (const t of spans) for (const sh of [0, week]) if (t.start + sh === end) { end = t.end + sh; more = true; }\n }\n return { open: true, next: label(end), today: day };\n }\n }\n }\n if (!spans.length) return { open: false, next: null, today: day };\n const starts = spans.flatMap((s) => [s.start, s.start + week]).filter((x) => x > at).sort((a, b) => a - b);\n return { open: false, next: label(starts[0]), today: day };\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09\n// - new: the place of a map as data (point 213 worklist 42): lat/lon in degrees (WGS84), checked; the OpenStreetMap\n// embed link with a pin, the section around it fitting the zoom. Used by the app (vl-map), the Designer and the checks.\n\n/** Whether lat and lon are a place on earth (numbers, lat -90..90, lon -180..180, not both 0). */\nexport function validPlace(lat: unknown, lon: unknown): boolean {\n if (lat === null || lat === undefined || lat === '' || lon === null || lon === undefined || lon === '') return false;\n const a = Number(lat), o = Number(lon);\n return Number.isFinite(a) && Number.isFinite(o) && a >= -90 && a <= 90 && o >= -180 && o <= 180 && !(a === 0 && o === 0);\n}\n\n/** The OpenStreetMap embed address with a pin at lat/lon; zoom 1..19 (16: a few streets around). '' for no place. */\nexport function mapEmbedUrl(lat: number, lon: number, zoom = 16): string {\n if (!validPlace(lat, lon)) return '';\n const z = Math.min(19, Math.max(1, Math.round(Number(zoom) || 16)));\n // half the width in degrees at this zoom (a 256-px tile spans 360 / 2^z degrees); the height follows the latitude\n const dLon = (360 / 2 ** z) * 0.8;\n const dLat = dLon * Math.cos((lat * Math.PI) / 180) * 0.6;\n const f = (n: number) => n.toFixed(6);\n const bbox = [f(lon - dLon), f(lat - dLat), f(lon + dLon), f(lat + dLat)].join('%2C');\n return `https://www.openstreetmap.org/export/embed.html?bbox=${bbox}&layer=mapnik&marker=${f(lat)}%2C${f(lon)}`;\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09\n// - new: a price as data (point 213 worklist 36, user decision): amount (a number), currency (ISO 4217, e.g. EUR) and\n// from (\"from 70 €\"). The app writes it in the reader's language (32 € in German, €32 in English), whole amounts\n// without cents. Used by the app (vl-price), the Designer and the checks.\n\nexport const PRICE_CURRENCIES = ['EUR', 'CHF', 'USD', 'GBP'] as const;\n\n/** Whether the amount is a price: a number from 0 up. */\nexport function validAmount(amount: unknown): boolean {\n return typeof amount === 'number' && Number.isFinite(amount) && amount >= 0;\n}\n\n/** Whether the code is a currency the device can write (three letters, known to Intl). */\nexport function validCurrency(code: unknown): boolean {\n if (typeof code !== 'string' || !/^[A-Z]{3}$/.test(code)) return false;\n try { new Intl.NumberFormat('en', { style: 'currency', currency: code }); return true; } catch { return false; }\n}\n\n/** The price in a language: \"32 €\" (de), \"€32\" (en), with the word for \"from\" before it; '' for no amount. */\nexport function formatPrice(amount: unknown, currency: unknown, lang: string, fromWord = ''): string {\n if (!validAmount(amount)) return '';\n const code = validCurrency(currency) ? String(currency) : 'EUR';\n const whole = Number.isInteger(amount as number);\n let text: string;\n try {\n text = new Intl.NumberFormat(lang || 'en', { style: 'currency', currency: code, minimumFractionDigits: whole ? 0 : 2, maximumFractionDigits: 2 }).format(amount as number);\n } catch {\n text = `${amount} ${code}`;\n }\n return fromWord ? `${fromWord} ${text}` : text;\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-05\n// - new: the design values of an app's look (point 173)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n// - new: style-keys - one spelling for style properties (CSS: font-size)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-30\n// - new: the action catalog - what / where / how of a storage or backend call (OFFENE-PUNKTE 144)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-23\n// - new: the app settings catalog - Login, Pagination, Terms & Conditions of Main (#166)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-19\n// - new: the test flow format of an app's .liveforge/tests (#166)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\n// - new: @yomotech/view-toolkit/catalog - the field catalog without Angular, for the Designer,\n// node tests and the AI contract tools (#166)\nexport * from './field-catalog';\nexport * from './test-flow';\nexport * from './test-signin';\nexport * from './app-settings-catalog';\nexport * from './action-catalog';\nexport * from './caption-text';\nexport * from './test-probe';\nexport * from './style-keys';\nexport * from './design-values';\nexport * from './opening-hours';\nexport * from './map-place';\nexport * from './price';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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A,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAAE,QAAA,OAAO,IAAI;IAAE;AAAE,IAAA,MAAM;AAAE,QAAA,OAAO,KAAK;IAAE;AACjH;AAEA;AACM,SAAU,WAAW,CAAC,MAAe,EAAE,QAAiB,EAAE,IAAY,EAAE,QAAQ,GAAG,EAAE,EAAA;AACzF,IAAA,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC;AAAE,QAAA,OAAO,EAAE;AACnC,IAAA,MAAM,IAAI,GAAG,aAAa,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK;IAC/D,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,MAAgB,CAAC;AAChD,IAAA,IAAI,IAAY;AAChB,IAAA,IAAI;AACF,QAAA,IAAI,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,IAAI,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,qBAAqB,EAAE,KAAK,GAAG,CAAC,GAAG,CAAC,EAAE,qBAAqB,EAAE,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,MAAgB,CAAC;IAC5K;AAAE,IAAA,MAAM;AACN,QAAA,IAAI,GAAG,CAAA,EAAG,MAAM,CAAA,CAAA,EAAI,IAAI,EAAE;IAC5B;AACA,IAAA,OAAO,QAAQ,GAAG,CAAA,EAAG,QAAQ,CAAA,CAAA,EAAI,IAAI,CAAA,CAAE,GAAG,IAAI;AAChD;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"yomotech-view-toolkit-catalog.mjs","sources":["../../../projects/view-toolkit/catalog/src/field-catalog.ts","../../../projects/view-toolkit/catalog/src/test-flow.ts","../../../projects/view-toolkit/catalog/src/test-signin.ts","../../../projects/view-toolkit/catalog/src/app-settings-catalog.ts","../../../projects/view-toolkit/catalog/src/action-catalog.ts","../../../projects/view-toolkit/catalog/src/caption-text.ts","../../../projects/view-toolkit/catalog/src/test-probe.ts","../../../projects/view-toolkit/catalog/src/style-keys.ts","../../../projects/view-toolkit/catalog/src/design-values.ts","../../../projects/view-toolkit/catalog/src/opening-hours.ts","../../../projects/view-toolkit/catalog/src/map-place.ts","../../../projects/view-toolkit/catalog/src/price.ts","../../../projects/view-toolkit/catalog/src/public-api.ts","../../../projects/view-toolkit/catalog/src/yomotech-view-toolkit-catalog.ts"],"sourcesContent":["// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-18\n// - new: buttonsColumnOf - the card's buttons in a column on the right only when center.option.buttonsColumn says so (238)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17\n// - new: data type \"duration\" (hours and minutes, HH:mm in every language) - a basic type, typed with the time picker\n// and the time keyboard, travels as text\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17\n// - new: combobox and autocomplete settings openOnFocus (a tap into the field opens the whole list) and search\n// (startsWith - default - or contains): the app sets them, the selection list follows (tm-guided B4)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09\n// - new: control price for a text field - a price as data (option.amount, currency, from; 213/36)\n// - new: control map for a text field - where the business is (option.lat, option.lon, option.address, option.zoom;\n// point 213 worklist 42, 2026-11-09)\n// - new: control openingHours for a text field - the week's opening times (option.hours, option.timeZone)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07\n// - new: control textBlock for a text - its caption (and value) as a paragraph, no box (point 213 worklist 15a)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n// - new: display style iso for date fields - 2026-10-30 (with time 14:00) in every language (OFFENE-PUNKTE 80)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\n// - new: maxLinesOf (option.maxLines - a shown text ends with … after n lines), alignRowsOf (card list: the cards of a\n// row equally high, buttons at the bottom; center.option.alignRows, on for new card lists)\n// - new: ENTER_KEYS, enterKeyFor - the key at the bottom right of the app keyboard (option.enterKey: done, search, next)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\n// - new: CARD_LAYOUTS / cardLayoutOf - the card field in one, two or three rows (option.cardLayout, OFFENE-PUNKTE 103)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\n// - new: controlChoicesFor - the controls a field can be switched to in the Designer (plain text also as check box,\n// switch, radio buttons, dropdown); the editor keeps no list of its own (review of Shuaib's c157aa5c)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-24\n// - new: DATA_OBJECT_NAME_PLACES / renameDataObject - where a page names a data object, a rename changes all\n// - new: DATA_OBJECT_KEYS / DATA_OBJECT_PLACES - a data object holds names and types; where the rest is set\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\n// - new: the period - type dateRange (stored [from, to]) with its control dateRangepicker, the date\n// keyboard, placeholder and the date display settings (#166 E4)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-17\n// - new: the field catalog - the ONE place that says which controls exist, which data they fit,\n// which settings they offer, how dates/times/decimals/currencies are encoded and how a field\n// layout is checked. The Designer, the renderer, the AI contract (capabilities.json, schemas,\n// validator, prompt) are to read it from here instead of keeping their own copies (CONTROLS-PLAN.md,\n// step 1, #165).\n// Taken over unchanged from the Designer's field-settings.ts (shuaib, the most complete rules so\n// far) - so the Designer behaves exactly as before once it reads them from here - plus:\n// - basicType: the aliases of the data types (image -> media, checkbox -> boolean, date&time ->\n// datetime, decimal -> bigdecimal), from the developer's field-policy.ts (12248aef, reverted)\n// - placeholder for every control a value is typed or chosen in (before: textInput, textArea,\n// password, dropdown, combobox only)\n// - the keyboard: option.keyboardType per field (string, alpha, numeric, email, date, time; native\n// or none keep the system keyboard); without one the control's default, then the data type's\n// It only describes and checks; nothing renders from it yet (step 2).\n// - change 2026-10-18: effectiveControl - the control the app really uses when option.control is\n// missing (most fields of TM, Paperfeed, Luv2shop, Hotel): the old switches (password, email,\n// timeOnly), DTO types that are a control themselves (dropdown, creditCard, quantity), then the\n// data type. A date with its own pattern (format \"yy-mm-dd\") stays a date. The old option.keyboard\n// counts when keyboardType is missing (#166)\n\n/** Pure policy shared by inspectors and layout validation. No DTO mutation. */\nexport type Bag = Record<string, any>;\nexport interface Setting { key: string; label: string; kind: 'text' | 'number' | 'select' | 'json'; values?: string[]; hint?: string; }\nexport const clone = <T>(value: T): T => JSON.parse(JSON.stringify(value));\nconst own = (o: Bag, k: string) => Object.prototype.hasOwnProperty.call(o, k);\nexport function resolveProperty(root: Bag | any, reference: string): Bag {\n const parts = (reference || '').replace(/^#\\/?/, '').split('/').filter(Boolean).map(p => p.replace(/~1/g, '/').replace(/~0/g, '~'));\n let node: any = root;\n for (const part of parts) node = node?.[part] ?? node?.properties?.[part];\n if (node?.type) return node;\n const name = parts[parts.length - 1];\n const objectName: any = parts.find(p => p !== 'properties');\n return root?.[objectName]?.[name] ?? root?.[objectName]?.properties?.[name] ?? root?.properties?.[name] ?? {};\n}\nexport function normalizeFormat(value: string): string {\n return ({ date: 'iso-date', time: 'iso-time', duration: 'iso-time', 'date-time': 'iso-datetime', datetime: 'iso-datetime', 'date&time': 'iso-datetime', bigdecimal: 'decimal' } as Bag)[String(value).toLowerCase()] || value || '';\n}\nexport function baseType(schema: Bag | any, fallback: string): string {\n const t = String(schema.type || fallback || '').toLowerCase();\n if (t === 'dropdown') return 'string';\n if (t === 'quantity') return 'integer';\n return ['date', 'time', 'duration', 'datetime', 'date-time', 'date&time'].includes(t) ? 'string' : ['decimal', 'bigdecimal'].includes(t) ? 'string' : t;\n}\nexport function effectiveFormat(schema: Bag | any, fallback: string, data: Bag | any): string {\n const semantic = String(schema.type || fallback || '').toLowerCase();\n const temporal = ['date', 'time', 'duration', 'datetime', 'date-time', 'date&time', 'decimal', 'bigdecimal'].includes(semantic);\n const declared = normalizeFormat(schema.format || data.format || '');\n // A date with its own display pattern (format \"yy-mm-dd\") is still a date.\n if (temporal && declared && !(DATA_FORMATS as readonly string[]).includes(declared)) return normalizeFormat(semantic);\n return declared || (temporal ? normalizeFormat(semantic) : '');\n}\nexport function rulesFor(schema: Bag | any, data: Bag | any): Bag {\n // The document's array enum is an item enum, unlike JSON Schema's whole-array enum.\n const source = schema.type === 'array' ? { ...schema, enum: schema.items?.enum } : schema;\n const rules = { ...(data.validation || {}) };\n for (const k of ['enum', 'pattern', 'minLength', 'maxLength', 'minimum', 'maximum', 'multipleOf', 'minItems', 'maxItems', 'uniqueItems']) {\n if (source[k] !== undefined) rules[k] = source[k];\n }\n return rules;\n}\nexport function controlsFor(schema: Bag, fallback: string, option: Bag | any): { value: string; label: string }[] {\n const d = option.fieldData || {}, t = baseType(schema, fallback), f = effectiveFormat(schema, fallback, d), r: any = rulesFor(schema, d);\n let values: string[] = [];\n const declared = String(schema[\"type\"] || fallback || '').toLowerCase();\n if (declared === 'creditcard') values = ['creditCard'];\n else if (declared === 'quantity') values = ['quantity', 'spinner', 'textInput'];\n else if (declared === 'dropdown') values = ['dropdown', 'combobox', 'autocomplete', 'radiobutton'];\n // a period from - to, stored as the pair [from, to] (#166 E4)\n else if (declared === 'daterange') values = ['dateRangepicker'];\n // a picture, or several changing by themselves (2026-11-07, worklist 213 15c)\n else if (declared === 'media' || declared === 'image') values = ['image', 'slideshow'];\n else if (f === 'flag' || t === 'boolean') values = ['checkbox', 'switch', 'radiobutton'];\n else if (f === 'iso-date') values = ['datepicker', 'textInput'];\n else if (f === 'iso-time') values = ['timepicker', 'textInput'];\n else if (f === 'iso-datetime') values = ['dateTimepicker', 'textInput'];\n else if (f === 'decimal') values = ['textInput', 'spinner'];\n else if (t === 'array') values = ['picklist', 'multiselect'];\n else if (r.enum) values = ['dropdown', 'radiobutton', 'combobox', 'autocomplete'];\n else if (t === 'string') values = ['textInput', 'textArea', 'password', 'combobox', 'autocomplete', 'email', 'textBlock', 'openingHours', 'map', 'price'];\n else if (t === 'integer' || t === 'number') values = ['textInput', 'spinner', 'slider'];\n if (values.length) values.push('output');\n const labels: Bag = { textInput: 'Text field', textArea: 'Text area', dateTimepicker: 'Date and time picker', dateRangepicker: 'Date range picker', radiobutton: 'Radio buttons', datepicker: 'Date picker', timepicker: 'Time picker', output: 'Read-only output', creditCard: 'Credit card', quantity: 'Quantity', textBlock: 'Text block', image: 'Image', slideshow: 'Slideshow', openingHours: 'Opening hours', map: 'Map', price: 'Price' };\n return values.map(value => ({ value, label: labels[value] || value[0].toUpperCase() + value.slice(1) }));\n}\n/**\n * The controls a field can be switched to in the Designer (decision 2026-10-24: the editor keeps no list of its\n * own): those that fit now (controlsFor) and those that fit once the field is set up for them - a plain text as\n * check box or switch (it then becomes a two-state flag) or as radio buttons or dropdown (it then needs its\n * values); a list of two texts as check box or switch. \"Read-only output\" is no choice here - read only is set\n * with protected.\n */\nexport function controlChoicesFor(schema: Bag, fallback: string, option: Bag | any): { value: string; label: string }[] {\n const s = schema || {};\n const declared = String(s[\"type\"] || fallback || '').toLowerCase();\n const plainText = declared === 'string' && baseType(s, fallback) === 'string' && !effectiveFormat(s, fallback, {});\n const fieldData = { ...((option || {}).fieldData || {}) };\n if (plainText) delete fieldData.format; // the choices of the field itself, not of a choice already made\n const choices = controlsFor(s, fallback, { ...(option || {}), fieldData }).filter(c => c.value !== 'output');\n const add = (...values: string[]) => {\n for (const value of values) if (!choices.some(c => c.value === value)) choices.push(controlLabel(value));\n };\n if (plainText && Array.isArray(s[\"enum\"])) {\n if (s[\"enum\"].length === 2 && s[\"enum\"].every((v: any) => typeof v === 'string')) add('checkbox', 'switch');\n } else if (plainText) {\n add('checkbox', 'switch', 'radiobutton', 'dropdown');\n }\n return choices;\n}\n\n/** A control with its label as the catalog names it. */\nfunction controlLabel(value: string): { value: string; label: string } {\n const labels: Bag = { textInput: 'Text field', textArea: 'Text area', dateTimepicker: 'Date and time picker', dateRangepicker: 'Date range picker', radiobutton: 'Radio buttons', datepicker: 'Date picker', timepicker: 'Time picker', output: 'Read-only output', creditCard: 'Credit card', quantity: 'Quantity', textBlock: 'Text block', image: 'Image', slideshow: 'Slideshow', openingHours: 'Opening hours', map: 'Map', price: 'Price' };\n return { value, label: labels[value] || value[0].toUpperCase() + value.slice(1) };\n}\n\nexport const canonicalControl = (c: string) => ({ textfield: 'textInput', textarea: 'textArea', radioButton: 'radiobutton', datetimepicker: 'dateTimepicker', daterangepicker: 'dateRangepicker', date: 'datepicker', time: 'timepicker' } as Bag)[c] || c;\n\n// ---------------------------------------------------------------------------------------------\n// Data types, controls, placeholder and keyboard\n// ---------------------------------------------------------------------------------------------\n\n/** The data types of a property after its aliases. */\n/**\n * A data object (objects/*.json) holds names and types only (decision 2026-10-24): each property has\n * just these keys. Everything else is set on the layout field - DATA_OBJECT_PLACES says where.\n */\nexport const DATA_OBJECT_KEYS = ['type'] as const;\n\n/** Where what older data objects carried is set now: on the layout field that shows the property. */\nexport const DATA_OBJECT_PLACES: Bag = {\n caption: 'label.caption',\n placeholder: 'option.placeholder',\n tooltip: 'option.tooltip',\n required: 'option.required',\n validation: 'option.required, option.fieldData.validation (minLength, maxLength, pattern, minimum, maximum; between fields: notBefore, notAfter, requiredWhen, minDuration, maxDuration)',\n value: 'option.fieldData.default (start value; a placeholder such as {{quantity}} or {{id}} too)',\n default: 'option.fieldData.default',\n data: 'option.fieldData.validation.enum and option.labels (a fixed list of choices)',\n loginUser: 'option.fieldData.default \"{{user.x}}\" (a field of the signed-in user\\'s record, environment.login.user; option.fromUser is gone)',\n currency: 'option.numberStyle \"currency\" and option.fieldData.currency',\n decimalPoint: 'option.decimals',\n format: 'option.displayFormat \"custom\" and option.customDisplayFormat (a date pattern)',\n};\n\n/**\n * Where a page names a data object (objects/<name>.json) - a rename has to change every one of them,\n * the Designer's rename and the AI contract use this list. The app's test flows name fields by their\n * property alone, without the data object.\n */\nexport const DATA_OBJECT_NAME_PLACES: Bag = {\n 'scope.reference': 'a field or column: #/<name>/properties/<property>',\n 'option.property_url': 'the data objects a page loads: objects/<name>.json (one text or a list)',\n 'option.propertyKey': 'the data object a sign-in or register form sends',\n 'option.innerAction.from / to': 'the data objects of a calculation such as copy ({ action, from, to })',\n};\n\n/**\n * Renames the data object oldName to newName at every place of DATA_OBJECT_NAME_PLACES inside a page\n * layout (changed in place). Returns how many values were changed.\n */\nexport function renameDataObject(layout: any, oldName: string, newName: string): number {\n if (!oldName || !newName || oldName === newName) return 0;\n const file = `objects/${oldName}.json`;\n const fileNew = `objects/${newName}.json`;\n const refOld = `#/${oldName}/`;\n let changed = 0;\n const renameFile = (value: string) => value.endsWith(file) && (value === file || value.endsWith('/' + file))\n ? value.slice(0, value.length - file.length) + fileNew : value;\n const walk = (node: any): void => {\n if (Array.isArray(node)) { node.forEach(walk); return; }\n if (!node || typeof node !== 'object') return;\n for (const key of Object.keys(node)) {\n const value = node[key];\n if (key === 'reference' && typeof value === 'string' && value.startsWith(refOld)) {\n node[key] = `#/${newName}/` + value.slice(refOld.length); changed++;\n } else if (key === 'property_url' && typeof value === 'string' && renameFile(value) !== value) {\n node[key] = renameFile(value); changed++;\n } else if (key === 'property_url' && Array.isArray(value)) {\n value.forEach((item, i) => {\n if (typeof item === 'string' && renameFile(item) !== item) { value[i] = renameFile(item); changed++; }\n });\n } else if (key === 'propertyKey' && value === oldName) {\n node[key] = newName; changed++;\n } else if ((key === 'innerAction' || key === 'action') && value && typeof value === 'object' && !Array.isArray(value)) {\n for (const end of ['from', 'to']) if (value[end] === oldName) { value[end] = newName; changed++; }\n walk(value);\n } else {\n walk(value);\n }\n }\n };\n walk(layout);\n return changed;\n}\n\nexport const BASIC_TYPES = ['string', 'number', 'integer', 'bigdecimal', 'boolean', 'date', 'time', 'duration', 'datetime', 'dateRange', 'media', 'array'] as const;\n\n/** Older or other names of a data type and the type they mean. */\nexport const TYPE_ALIASES: Bag = { daterange: 'dateRange', image: 'media', checkbox: 'boolean', 'date-time': 'datetime', 'date&time': 'datetime', decimal: 'bigdecimal' };\n\n/** The data type of a property, aliases resolved (\"image\" -> \"media\"). */\nexport function basicType(property: Bag | any): string {\n const value = String(property?.type || 'string').toLowerCase();\n return TYPE_ALIASES[value] || value;\n}\n\n/** Every control the Designer offers (option.control), with the name it is shown under. */\nexport const CONTROLS: Bag = {\n textInput: 'Text field', textArea: 'Text area', password: 'Password', email: 'Email',\n combobox: 'Combobox', autocomplete: 'Autocomplete', dropdown: 'Dropdown',\n checkbox: 'Checkbox', switch: 'Switch', radiobutton: 'Radio buttons',\n spinner: 'Spinner', slider: 'Slider',\n datepicker: 'Date picker', timepicker: 'Time picker', dateTimepicker: 'Date and time picker',\n dateRangepicker: 'Date range picker',\n picklist: 'Picklist', multiselect: 'Multiselect', output: 'Read-only output',\n creditCard: 'Credit card', quantity: 'Quantity',\n};\n\n/** DTO types that name their control themselves (older projects). */\nexport const CONTROL_TYPES: Bag = { dropdown: 'dropdown', creditcard: 'creditCard', quantity: 'quantity' };\n\n/**\n * The control a field is shown with: option.control; without one what the app uses - an old switch\n * (password, email, timeOnly), a DTO type that is a control (dropdown, creditCard, quantity), else\n * the first control that fits the data (date -> datepicker, boolean -> checkbox, text -> textInput).\n * '' when nothing fits (media, objects).\n */\nexport function effectiveControl(option: Bag | any, schema: Bag | any = {}, fallback = ''): string {\n const o = option || {};\n if (o.control) return canonicalControl(o.control);\n // a picture without a control stays as before (''): the slideshow only when chosen\n if (['media', 'image'].includes(String(schema?.type || fallback || '').toLowerCase())) return '';\n const allowed = controlsFor(schema || {}, fallback, o).map(c => c.value);\n const legacy = o.password ? 'password' : o.email ? 'email' : o.timeOnly ? 'timepicker' : '';\n if (legacy && allowed.includes(legacy)) return legacy;\n const own = CONTROL_TYPES[String(schema?.type || fallback || '').toLowerCase()];\n if (own) return own;\n return allowed.find(c => c !== 'output') || '';\n}\n\n/** Controls a value is typed or chosen in - they take a placeholder. */\nexport const PLACEHOLDER_CONTROLS: string[] = [\n 'textInput', 'textArea', 'password', 'email', 'dropdown', 'combobox', 'autocomplete',\n 'spinner', 'datepicker', 'timepicker', 'dateTimepicker', 'dateRangepicker', 'multiselect',\n];\n\n/**\n * How the card field (creditCard) lays out its parts (option.cardLayout): oneRow - Stripe's single line (card number,\n * MM / YY, CVC; the default), twoRows - the number alone, below it expiry and CVC side by side, threeRows - all three\n * below each other. A phone cut the single line off (OFFENE-PUNKTE 103).\n */\nexport const CARD_LAYOUTS = ['oneRow', 'twoRows', 'threeRows'] as const;\nexport type CardLayout = typeof CARD_LAYOUTS[number];\n/** The card field's layout, oneRow when the layout names none or an unknown one. */\nexport function cardLayoutOf(option: Bag | any): CardLayout {\n const value = option?.cardLayout;\n return (CARD_LAYOUTS as readonly string[]).includes(value) ? value : 'oneRow';\n}\n\n/**\n * The key at the bottom right of the app keyboard (option.enterKey), set in the Designer per field:\n * done closes the keyboard (default), search sends Enter so the field's action runs (a search starts),\n * next moves on to the next field. The header's search field has search as its default.\n */\nexport const ENTER_KEYS = ['done', 'search', 'next'] as const;\nexport type EnterKey = (typeof ENTER_KEYS)[number];\n\n/** A field's key at the bottom right: its option.enterKey when known, else the given default. */\nexport function enterKeyFor(option: Bag | any, fallback: EnterKey = 'done'): EnterKey {\n const own = option?.enterKey;\n return (ENTER_KEYS as readonly string[]).includes(own) ? own : fallback;\n}\n\n/** The toolkit keyboards a field can ask for (option.keyboardType). */\nexport const KEYBOARD_TYPES = ['string', 'alpha', 'numeric', 'email', 'date', 'time'] as const;\n/** keyboardType values that keep the device's system keyboard. */\nexport const SYSTEM_KEYBOARDS = ['native', 'none'] as const;\n\n/** Controls a keyboard is chosen for. */\nexport const KEYBOARD_CONTROLS: string[] = [\n 'textInput', 'textArea', 'password', 'email', 'combobox', 'autocomplete',\n 'spinner', 'datepicker', 'timepicker', 'dateTimepicker', 'dateRangepicker', 'quantity',\n];\n\n/** The keyboard a control brings when the field names none (as the Designer preselects it). */\nexport function defaultKeyboard(control: string, schema: Bag | any = {}, fallback = '', data: Bag | any = {}): string {\n const c = canonicalControl(control), t = baseType(schema, fallback), f = effectiveFormat(schema, fallback, data);\n if (c === 'email') return 'email';\n if (c === 'timepicker') return 'time';\n if (['datepicker', 'dateTimepicker', 'dateRangepicker'].includes(c)) return 'date';\n if (['textArea', 'password', 'combobox', 'autocomplete'].includes(c)) return 'string';\n if (f === 'iso-time') return 'time';\n if (['iso-date', 'iso-datetime'].includes(f)) return 'date';\n if (['spinner', 'quantity'].includes(c) || ['number', 'integer'].includes(t) || f === 'decimal') return 'numeric';\n return 'string';\n}\n\n/**\n * The keyboard of a field: its keyboardType; native/none (and a password without one) keep the\n * system keyboard (null); without keyboardType the control's default; without a control the data\n * type's (date, time, number/integer, string, email format). The per-type keyboards are only the\n * fallback.\n */\nexport function keyboardFor(option: Bag | any, property: Bag | any = {}): string | null {\n const explicit = option?.keyboardType ?? option?.keyboard;\n if ((SYSTEM_KEYBOARDS as readonly string[]).includes(explicit)) return null;\n if ((KEYBOARD_TYPES as readonly string[]).includes(explicit)) return explicit;\n const control = canonicalControl(option?.control || '');\n if (control === 'password' || option?.password) return null;\n if (control && KEYBOARD_CONTROLS.includes(control)) return defaultKeyboard(control, property, '', option?.fieldData || {});\n if (option?.email || property?.format === 'email') return 'email';\n switch (basicType(property)) {\n case 'date': return 'date';\n case 'time': case 'duration': return 'time';\n case 'number': case 'integer': case 'bigdecimal': return 'numeric';\n case 'string': return 'string';\n default: return null;\n }\n}\n\n// ---------------------------------------------------------------------------------------------\n// Date and time: type = what is shown and entered, storage = how the value travels\n// (CONTROLS-PLAN.md C1, decided 2026-10-18). Descriptive only - the renderer reads it in step 3+.\n// ---------------------------------------------------------------------------------------------\n\n/** What a date/time property shows and takes: date and time stay separate fields. */\nexport type TemporalPart = 'date' | 'time' | 'datetime';\n\n/** The part of a date/time a property shows and takes (DTO type date / time / date&time), else null. */\nexport function temporalPart(property: Bag | any): TemporalPart | null {\n const t = basicType(property);\n return t === 'date' || t === 'time' || t === 'datetime' ? t : null;\n}\n\n/**\n * How date and time values travel - the same for every project:\n * - every value is a string (JSON has no date type); the app turns it into a date for showing and\n * back into a string for sending, steered by the DTO type alone\n * - read: ISO, date and time, a value without timezone is local wall time; Z or an offset is\n * dropped (wall time) - P5W1 sends 2025-11-04T16:30:00\n * - send: ISO with the device's offset, 2026-10-18T08:00:00+02:00 (the daily split of the time\n * recording, its add-on, stays as it is)\n * - shown and typed: the app language, year with four digits (de 18.10.2026, time 08:05);\n * lists: displayFormat short / medium (default) / long / iso (2026-10-30 in every language) / custom\n */\nexport const TEMPORAL_TRANSFER = {\n read: 'iso, local wall time, offset dropped',\n send: 'iso with local offset',\n show: 'app language, four-digit year',\n listStyles: ['short', 'medium', 'long', 'iso', 'custom'],\n listDefault: 'medium',\n} as const;\n\n/** The encodings a field can declare (option.fieldData.format). */\nexport const DATA_FORMATS = ['iso-date', 'iso-time', 'iso-datetime', 'flag', 'decimal'] as const;\n/** How a date or time is shown (option.displayFormat). */\nexport const DISPLAY_FORMATS = ['short', 'medium', 'long', 'iso', 'custom'] as const;\n/** How a number is shown (option.numberStyle). */\nexport const NUMBER_STYLES = ['decimal', 'currency', 'percent'] as const;\nconst setting = (key: string, label: string, kind: Setting['kind'] = 'text', values?: string[], hint?: string): Setting => ({ key, label, kind, values, hint });\nconst yesNo = (key: string, label: string) => setting(key, label, 'select', ['true', 'false']);\nexport function displaySettings(schema: Bag, fallback: string, option: Bag | any): Setting[] {\n const c = canonicalControl(option.control), t = baseType(schema, fallback), f = effectiveFormat(schema, fallback, option.fieldData || {}), r = rulesFor(schema, option.fieldData || {});\n const result = [yesNo('readonly', 'Read only'), setting('messages', 'Validation messages', 'json', undefined, 'JSON object: validation rule names mapped to messages or translation keys.')];\n if (PLACEHOLDER_CONTROLS.includes(c)) result.push(setting('placeholder', 'Placeholder'));\n if (c === 'textInput') result.push(setting('mask', 'Input mask'));\n if (c === 'textArea') result.push(setting('rows', 'Visible rows', 'number'));\n if (['spinner', 'slider'].includes(c)) result.push(setting('step', 'Step', 'number'));\n if (c === 'slider') result.push(yesNo('showValue', 'Show slider value'));\n if (['checkbox','switch'].includes(c)) result.push(setting('labelPosition', 'Label position', 'select', ['left', 'right']));\n if (c === 'switch') result.push(setting('labelOn', 'On label'), setting('labelOff', 'Off label'));\n if (['checkbox', 'switch', 'radiobutton'].includes(c) && t === 'boolean') result.push(setting('checkedBooleanValue', 'Value represented by the active state', 'select', ['true', 'false'], 'Stores a Boolean. Choose false to invert the visual state; this does not change the DTO type.'));\n if (['checkbox', 'switch', 'radiobutton'].includes(c) && f === 'flag') result.push(setting('checkedValue', 'Active value'), setting('uncheckedValue', 'Inactive value'));\n if (['radiobutton', 'dropdown', 'combobox', 'autocomplete', 'picklist', 'multiselect'].includes(c)) result.push(setting('labels', 'Value labels', 'json', undefined, 'JSON object mapping allowed stored values to captions or translation keys.'));\n if (c === 'radiobutton') result.push(setting('orientation', 'Orientation', 'select', ['horizontal', 'vertical']));\n if (c === 'combobox') result.push(yesNo('allowCustom', 'Allow values outside the list'));\n if (['combobox', 'autocomplete'].includes(c)) result.push(\n yesNo('openOnFocus', 'Open the whole list on a tap into the field'),\n setting('search', 'Typing keeps entries that', 'select', ['startsWith', 'contains'], 'startsWith (default): \"02\" finds 02000001, \"12\" nothing. contains: the text anywhere in the entry.'));\n if (c === 'autocomplete') result.push(setting('source', 'Suggestion source URL'), setting('minChars', 'Minimum characters', 'number'));\n if (c === 'picklist') result.push(yesNo('sortable', 'Allow item reordering'));\n if (c === 'multiselect') result.push(setting('maxVisible', 'Visible selected items', 'number'));\n if ((['iso-date', 'iso-time', 'iso-datetime'].includes(f) && ['textInput', 'datepicker', 'timepicker', 'dateTimepicker', 'output'].includes(c)) || c === 'dateRangepicker') {\n // iso: 2026-10-30 (with a time 14:00) in every language\n result.push(setting('displayFormat', 'Display style', 'select', ['short', 'medium', 'long', 'iso', 'custom']));\n if (option.displayFormat === 'custom') result.push(setting('customDisplayFormat', 'Fixed display pattern', 'text', undefined, 'Use only when every locale must show the same pattern.'));\n result.push(setting('displayTimezone', 'Display timezone', 'text', undefined, 'local, UTC, or an IANA timezone such as Asia/Karachi.'));\n }\n if ((['integer', 'number'].includes(t) || f === 'decimal') && ['textInput', 'spinner', 'slider', 'output'].includes(c)) {\n result.push(setting('numberStyle', 'Number style', 'select', ['decimal', 'currency', 'percent']), yesNo('grouping', 'Group digits'));\n if (!option.numberStyle || option.numberStyle === 'decimal') result.push(setting('decimals', 'Displayed decimal places', 'number'));\n result.push(setting('unit', 'Standard unit', 'text', undefined, 'An Intl unit identifier, for example kilogram or liter.'), setting('unitLabel', 'Custom unit translation key'));\n }\n if (c === 'dropdown') result.push(setting('optionlabel', 'Response label field'), setting('optionvalue', 'Response value field'));\n return result;\n}\nexport function dataSettings(schema: Bag, fallback: string, option: Bag | any): Setting[] {\n const t = baseType(schema, fallback), f = effectiveFormat(schema, fallback, option.fieldData || {});\n const result: Setting[] = [];\n if (['integer', 'number'].includes(t) || f === 'decimal') {\n result.push(setting('currency', 'Fixed currency code', 'text', undefined, 'ISO currency code. Independent of the user locale.'), setting('currencyField', 'Currency property reference'));\n if (t === 'integer') result.push(yesNo('minorUnits', 'Store in currency minor units'));\n }\n return result;\n}\nexport function validationSettings(schema: Bag, fallback: string, option: Bag | any): Setting[] {\n const t = baseType(schema, fallback), f = effectiveFormat(schema, fallback, option.fieldData || {});\n const result = [setting('enum', 'Allowed values', 'json', undefined, t === 'array' ? 'JSON array of allowed item values.' : 'JSON array; preserve each value’s data type.')];\n if (t === 'string') result.push(setting('minLength', 'Minimum length', 'number'), setting('maxLength', 'Maximum length', 'number'), setting('pattern', 'Validation pattern'));\n if (['integer', 'number'].includes(t) || f === 'decimal') result.push(setting('minimum', 'Minimum value', f === 'decimal' ? 'text' : 'number'), setting('maximum', 'Maximum value', f === 'decimal' ? 'text' : 'number'), setting('multipleOf', 'Value increment', f === 'decimal' ? 'text' : 'number'));\n if (t === 'array') result.push(setting('minItems', 'Minimum items', 'number'), setting('maxItems', 'Maximum items', 'number'), yesNo('uniqueItems', 'Require unique items'));\n return result;\n}\nfunction decimalParts(value: any): [bigint, number] | null {\n const m = /^(-?)(\\d+)(?:\\.(\\d+))?$/.exec(String(value));\n return m ? [BigInt((m[1] || '') + m[2] + (m[3] || '')), (m[3] || '').length] : null;\n}\nfunction decimalPair(a: any, b: any): [bigint, bigint] | null {\n const x = decimalParts(a), y = decimalParts(b); if (!x || !y) return null;\n const scale = Math.max(x[1], y[1]); return [x[0] * 10n ** BigInt(scale - x[1]), y[0] * 10n ** BigInt(scale - y[1])];\n}\nfunction validDate(v: string): boolean {\n const m = /^(\\d{4})-(\\d{2})-(\\d{2})$/.exec(v); if (!m) return false;\n const year = +m[1], month = +m[2], day = +m[3];\n const leap = year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n return month >= 1 && month <= 12 && day >= 1 && day <= [31, leap ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month - 1];\n}\nfunction validTime(v: string): boolean {\n const m = /^(\\d{2}):(\\d{2}):(\\d{2})(?:\\.\\d+)?(Z|[+-](\\d{2}):(\\d{2}))$/.exec(v);\n return !!m && +m[1] < 24 && +m[2] < 60 && +m[3] < 60 && (!m[5] || (+m[5] < 24 && +m[6] < 60));\n}\nexport function validateSettings(schema: Bag | any, fallback: string, option: Bag | any, context?: { propertySchema: Bag; reference: string; allowPendingValues?: boolean }): string[] {\n const errors: string[] = [], d = option.fieldData || {}, r: any = rulesFor(schema, d), t = baseType(schema, fallback), f = effectiveFormat(schema, fallback, d), c = canonicalControl(option.control);\n const fail = (condition: boolean, message: string) => { if (condition) errors.push(message); };\n fail(!t, 'The property type could not be resolved. Provide propertySchema or propertyType.');\n fail(d.format !== undefined && !['iso-date', 'iso-time', 'iso-datetime', 'flag', 'decimal'].includes(d.format), 'Choose a supported data meaning.');\n fail(['iso-date', 'iso-time', 'iso-datetime', 'flag'].includes(f) && t !== 'string', 'Date, time, and flag formats require a string property.');\n fail(f === 'decimal' && !['string', 'number'].includes(t), 'Exact decimal format requires string or number.');\n fail(!!schema.format && !!d.format && normalizeFormat(schema.format) !== normalizeFormat(d.format), 'The format conflicts with the property schema.');\n for (const k of Object.keys(d.validation || {})) {\n const source = t === 'array' && k === 'enum' ? schema.items?.enum : schema[k];\n fail(source !== undefined && JSON.stringify(source) !== JSON.stringify(d.validation[k]), `${k} conflicts with the property schema; keep the source constraint.`);\n }\n const pendingDropdown = context?.allowPendingValues && c === 'dropdown' && t === 'string' && !f && r.enum === undefined;\n fail(!pendingDropdown && !controlsFor(schema, fallback, option).some(x => x.value === c), 'Select a control compatible with the effective data type.');\n fail(!!r.pattern && t !== 'string', 'Patterns are only supported for strings.');\n try { if (r.pattern) new RegExp(r.pattern); } catch { errors.push('The validation pattern is not a valid regular expression.'); }\n for (const k of ['minimum', 'maximum', 'multipleOf']) fail(r[k] !== undefined && !(['integer', 'number'].includes(t) || f === 'decimal'), `${k} requires a numeric or decimal property.`);\n for (const k of ['minLength', 'maxLength']) fail(r[k] !== undefined && t !== 'string', `${k} requires a string property.`);\n for (const k of ['minItems', 'maxItems', 'uniqueItems']) fail(r[k] !== undefined && t !== 'array', `${k} requires an array property.`);\n for (const k of ['minLength', 'maxLength', 'minItems', 'maxItems']) fail(r[k] !== undefined && (!Number.isInteger(r[k]) || r[k] < 0), `${k} must be a nonnegative integer.`);\n for (const [a, b] of [['minLength', 'maxLength'], ['minItems', 'maxItems']]) fail(r[a] !== undefined && r[b] !== undefined && r[a] > r[b], `${a} cannot exceed ${b}.`);\n for (const k of ['minimum', 'maximum', 'multipleOf']) if (r[k] !== undefined) fail(f === 'decimal' ? !decimalParts(r[k]) : typeof r[k] !== 'number' || !Number.isFinite(r[k]), `${k} must be a valid numeric value.`);\n if (r.minimum !== undefined && r.maximum !== undefined) { const pair = decimalPair(r.minimum, r.maximum); fail(pair ? pair[0] > pair[1] : r.minimum > r.maximum, 'Minimum cannot exceed maximum.'); }\n if (r.multipleOf !== undefined) { const p = decimalParts(r.multipleOf); fail(!p || p[0] <= 0n, 'Value increment must be greater than zero.'); }\n if (r.enum !== undefined) {\n fail(!Array.isArray(r.enum) || !r.enum.length, 'Allowed values must be a nonempty JSON array.');\n if (Array.isArray(r.enum)) {\n fail(new Set(r.enum.map((v: any) => JSON.stringify(v))).size !== r.enum.length, 'Allowed values must not contain duplicates.');\n const et = t === 'array' ? schema.items?.type || 'string' : t;\n fail(r.enum.some((v: any) => et === 'integer' ? !Number.isInteger(v) : et === 'array' ? !Array.isArray(v) : typeof v !== et), 'Allowed values must match the property or item type.');\n }\n }\n fail(c === 'combobox' && !!r.enum && option.allowCustom === true, 'Custom values cannot be enabled for an enum.');\n fail(!!d.currency && !!d.currencyField, 'Choose a fixed currency OR a currency property, not both.');\n fail(option.numberStyle === 'currency' && !d.currency && !d.currencyField, 'Currency display requires a currency code or currency property.');\n fail(d.minorUnits === true && (t !== 'integer' || (!d.currency && !d.currencyField)), 'Minor units require integer storage and a currency.');\n fail(option.numberStyle !== 'decimal' && !!option.numberStyle && option.decimals !== undefined, 'Decimal places apply only to decimal display; currency precision comes from the currency.');\n fail(!!option.unit && !!option.unitLabel, 'Choose a standard unit OR a custom unit translation key.');\n if (d.currency) {\n const currencies: string[] | undefined = (Intl as any).supportedValuesOf?.('currency');\n fail(!/^[A-Z]{3}$/.test(d.currency) || (!!currencies && !currencies.includes(d.currency)), 'Choose a supported uppercase ISO currency code.');\n }\n if (d.currencyField && context?.propertySchema) {\n const siblingRef = context.reference.slice(0, context.reference.lastIndexOf('/') + 1) + String(d.currencyField).replace(/~/g, '~0').replace(/\\//g, '~1');\n const currencyProperty: any = resolveProperty(context.propertySchema, String(d.currencyField).includes('/') ? d.currencyField : siblingRef);\n fail(currencyProperty.type !== 'string', 'The currency property must exist in the property schema and have string storage.');\n }\n fail(option.checkedBooleanValue !== undefined && typeof option.checkedBooleanValue !== 'boolean', 'The active Boolean value must be true or false.');\n for (const k of ['required', 'readonly', 'allowCustom', 'openOnFocus', 'showValue', 'grouping']) fail(option[k] !== undefined && typeof option[k] !== 'boolean', `${k} must be a Boolean.`);\n for (const k of ['minorUnits']) fail(d[k] !== undefined && typeof d[k] !== 'boolean', `${k} must be a Boolean.`);\n fail(r.uniqueItems !== undefined && typeof r.uniqueItems !== 'boolean', 'uniqueItems must be a Boolean.');\n if (option.unit) { try { new Intl.NumberFormat('en', { style: 'unit', unit: option.unit }); } catch { errors.push('The standard unit is not supported by Intl.'); } }\n if (option.displayTimezone && option.displayTimezone !== 'local') { try { new Intl.DateTimeFormat('en', { timeZone: option.displayTimezone }); } catch { errors.push('Enter a valid display timezone.'); } }\n fail(option.displayFormat === 'custom' && !option.customDisplayFormat, 'Enter a fixed display pattern.');\n for (const k of ['rows', 'maxVisible', 'step']) fail(option[k] !== undefined && (typeof option[k] !== 'number' || !Number.isFinite(option[k]) || option[k] <= 0), `${k} must be greater than zero.`);\n for (const k of ['rows', 'maxVisible', 'minChars', 'decimals']) fail(option[k] !== undefined && (!Number.isInteger(option[k]) || option[k] < 0), `${k} must be a nonnegative integer.`);\n fail(t === 'integer' && option.step !== undefined && !Number.isInteger(option.step), 'Integer controls require a whole-number step.');\n if (f === 'flag') {\n fail(!Array.isArray(r.enum) || r.enum.length !== 2, 'A flag requires exactly two allowed string values.');\n fail(option.checkedValue === undefined || option.uncheckedValue === undefined || option.checkedValue === option.uncheckedValue, 'Set different active and inactive flag values.');\n if (Array.isArray(r.enum)) for (const k of ['checkedValue', 'uncheckedValue']) fail(!r.enum.includes(option[k]), `${k} must exist in the allowed values.`);\n }\n if (option.labels !== undefined) {\n fail(!option.labels || typeof option.labels !== 'object' || Array.isArray(option.labels), 'Value labels must be a JSON object.');\n if (option.labels && typeof option.labels === 'object') fail(Object.values(option.labels).some(v => typeof v !== 'string'), 'Label captions must be strings.');\n const values = t === 'boolean' ? [true, false] : r.enum;\n if (values && option.labels) fail(Object.keys(option.labels).some(k => !values.some((v: any) => String(v) === k)), 'Every label key must match an allowed value.');\n }\n if (option.messages && typeof option.messages === 'object') fail(Object.values(option.messages).some(v => typeof v !== 'string'), 'Validation messages must contain string captions or translation keys.');\n for (const [key, values] of [['labelPosition', ['left', 'right']], ['orientation', ['horizontal', 'vertical']], ['numberStyle', ['decimal', 'currency', 'percent']], ['search', ['startsWith', 'contains']]] as [string, string[]][]) fail(option[key] !== undefined && !values.includes(option[key]), `Choose a supported ${key}.`);\n fail(option.messages !== undefined && (!option.messages || typeof option.messages !== 'object' || Array.isArray(option.messages)), 'Validation messages must be a JSON object.');\n const allowed = new Set(displaySettings(schema, fallback, option).map(s => s.key));\n for (const k of ['placeholder', 'rows', 'mask', 'step', 'showValue', 'labelPosition', 'labelOn', 'labelOff', 'orientation', 'allowCustom', 'openOnFocus', 'search', 'source', 'minChars', 'labels', 'maxVisible', 'displayFormat', 'displayTimezone', 'customDisplayFormat', 'numberStyle', 'decimals', 'grouping', 'unit', 'unitLabel', 'checkedValue', 'uncheckedValue', 'checkedBooleanValue']) fail(option[k] !== undefined && !allowed.has(k), `${k} is not applicable to this control and data meaning.`);\n for (const k of ['currency', 'currencyField', 'minorUnits']) fail(d[k] !== undefined && !dataSettings(schema, fallback, option).some(s => s.key === k), `${k} requires the appropriate numeric type.`);\n const validateValue = (value: any, name: string, valueType: string, item = false) => {\n fail(valueType === 'integer' ? !Number.isInteger(value) : valueType === 'array' ? !Array.isArray(value) : typeof value !== valueType, `${name} must match ${valueType} storage.`);\n if (Array.isArray(r.enum) && !r.enum.some((v: any) => JSON.stringify(v) === JSON.stringify(value))) fail(valueType !== 'array', `${name} is outside the allowed values.`);\n if (valueType === 'string') {\n const v = String(value);\n if (!item) {\n fail(f === 'iso-date' && !validDate(v), `${name} must be an existing ISO date.`);\n fail(f === 'iso-time' && !validTime(v), `${name} must be an ISO time with timezone.`);\n const parts = v.split('T');\n fail(f === 'iso-datetime' && (parts.length !== 2 || !validDate(parts[0]) || !validTime(parts[1])), `${name} must be an ISO date and time with timezone.`);\n fail(r.minLength !== undefined && [...v].length < r.minLength, `${name} is too short.`);\n fail(r.maxLength !== undefined && [...v].length > r.maxLength, `${name} is too long.`);\n try { if (r.pattern) fail(!new RegExp(r.pattern).test(v), `${name} does not match the pattern.`); } catch { }\n }\n }\n if (!item && (['integer', 'number'].includes(valueType) || f === 'decimal')) {\n fail(valueType !== 'string' && !Number.isFinite(value), `${name} must be finite.`);\n fail(f === 'decimal' && !decimalParts(value), `${name} must be a plain decimal value.`);\n for (const k of ['minimum', 'maximum', 'multipleOf']) if (r[k] !== undefined) { const p = decimalPair(value, r[k]); if (p) fail(k === 'minimum' ? p[0] < p[1] : k === 'maximum' ? p[0] > p[1] : p[1] !== 0n && p[0] % p[1] !== 0n, `${name} violates ${k}.`); }\n }\n if (valueType === 'array' && Array.isArray(value)) {\n fail(r.minItems !== undefined && value.length < r.minItems, `${name} has too few items.`);\n fail(r.maxItems !== undefined && value.length > r.maxItems, `${name} has too many items.`);\n fail(r.uniqueItems === true && new Set(value.map(v => JSON.stringify(v))).size !== value.length, `${name} contains duplicate items.`);\n value.forEach(v => validateValue(v, `${name} item`, schema.items?.type || 'string', true));\n }\n };\n if (option.cardLayout !== undefined) {\n fail(!(CARD_LAYOUTS as readonly string[]).includes(option.cardLayout), 'Choose one, two or three rows for the card field.');\n fail(!!c && c !== 'creditCard', 'Only the card field has a card layout.');\n }\n if (option.keyboardType !== undefined) {\n fail(![...KEYBOARD_TYPES, ...SYSTEM_KEYBOARDS].includes(option.keyboardType), 'Choose a supported keyboard.');\n fail(!!c && !KEYBOARD_CONTROLS.includes(c), 'This control has no keyboard.');\n }\n if (own(d, 'default') && own(schema, 'default')) fail(JSON.stringify(d.default) !== JSON.stringify(schema.default), 'Default conflicts with the property schema.');\n const defaultValue = own(schema, 'default') ? schema.default : d.default;\n if (own(schema, 'default') || own(d, 'default')) validateValue(defaultValue, 'Default value', t);\n return [...new Set(errors)];\n}\n\n/** Call before activating a saved field layout; throws rather than warning. */\nexport function assertFieldSettings(schema: Bag, fallback: string, option: Bag, context?: { propertySchema: Bag; reference: string; allowPendingValues?: boolean }): void {\n const errors = validateSettings(schema, fallback, option, context);\n if (errors.length) throw new Error('Invalid field layout: ' + errors.join(' '));\n}\n\n/**\n * A text shown in a list (card, grid) ends with … after this many lines (option.maxLines, set in the Designer: 1-20);\n * 0 = no limit. The whole text stays on the detail page (user 2026-11-01).\n */\nexport function maxLinesOf(option: any): number {\n const n = Math.floor(Number(option?.maxLines));\n return Number.isFinite(n) && n >= 1 && n <= 20 ? n : 0;\n}\n\n/**\n * A card list's cards of a row are equally high and their buttons stand at the bottom, in line across the row\n * (center.option.alignRows, set in the Designer; on for new card lists, user 2026-11-01).\n */\nexport function alignRowsOf(center: any): boolean {\n return center?.option?.alignRows === true;\n}\n\n/**\n * The card's buttons as one narrow column on the right (center.option.buttonsColumn, set in the Designer) - only when the\n * page says so: the library never moves buttons by itself (OFFENE-PUNKTE 238, user 2026-11-18).\n */\nexport function buttonsColumnOf(center: any): boolean {\n return center?.option?.buttonsColumn === true;\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-18\n// - change: close means the X in front - PDF viewer, an open dialog, else the page X\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-14\n// - new: layout rule colour - an open app keyboard or docked calendar has the page's colour (or the project's own\n// keyboard colour); hotel's keyboard took the green of a Book button behind the dialog\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-12\n// - new: pick by position (1 = first entry) and check filled - a list of live data, the entries are not known\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07\n// - new: simulatorOnly - a flow that only the simulators run, the preview leaves it out (point 204, user)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-05\n// - new: step goToPage - a list with page numbers (point 186)\n// - new: step ifRecords, checks listLoaded and pdf - a list of live data may be empty, the PDF viewer (point 186)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-04\n// - change: tempo in seconds (DEFAULT_TEMPO_SECONDS 0.2) - the pause before each step is set at \"Run tests\"; the names\n// fast, normal, slow stay valid\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n// - new: step signOut - signed out from here on, like a person with the sign-out of the user in the side menu\n// - new: dateDisplay \"iso\" (a field in display style iso) - localeKeys types a date as yyyymmdd and localeRenderings\n// expects 2026-10-30 (with a time 14:00) in every language; \"any\" takes the ISO form besides the language's\n// - new: stripeTestPaymentMethod - a test run pays with Stripe's test payment method of a test card (pm_card_visa for\n// 4242 4242 4242 4242) - nobody can type into Stripe's frame; only with a test key (pk_test_), never a live one\n// - new: hasAppKeyboard - only mobile and tablet type on the app's keyboard; a laptop or desktop types on its own, the\n// keyboard checks (isKeyboardCheck: keyboard, fieldVisible, restored, inFrame keyboard) are not for them (luv2shop a05\n// and a09 on the laptop, 2026-11-02) - one list, the runners ask it\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\n// - change: signIn takes true (the default test user) or a test user's name (Vault, test-signin.ts)\n// - new: TEST_TEMPOS, tempoPause - how fast a run goes, chosen only at \"Run tests\" (fast, normal, slow)\n// - new: layout rule align - with card.alignRows the buttons of a card row stand on one line\n// - fix: overlap - a box scrolled under the fixed header is hidden, not covering (inBar)\n// - new: layout rule header - a fixed header stays in sight; a note when the header scrolls along\n// - new: layout - content in an area that scrolls sideways (a wide table) is reached, not beyond; layoutNotes;\n// StepResult.notes\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\n// - new: lists in one place (point 5): RTL_LANGUAGES with ckb and dv (the editor had them, sd was missing there),\n// deviceChoices(), PLACEHOLDER_SOURCE and matchesTemplate (fallback {{x | y}} too, as validate.py)\n// - new: StepResult.details - a failed step's measurements\n// - change: the test device \"phone\" is called \"mobile\" (the preview's word); \"phone\" is still taken as old spelling\n// - new: step signIn - signed in from here on (a person in the preview, the test user on the simulators)\n// - change: expect shows takes a language key too - shown in the language of the run\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\n// - new: languages and locale - a flow runs in each of its languages (languages: [\"en\",\"de\"] or \"all\" = the app's\n// left-to-right languages; right-to-left is left out until it is supported); step language (switch on the way),\n// step reload; typed values may be language-neutral (2026-10-30, 14:00, 12.50) - localeKeys gives the keys in the\n// language's order and form; expect formatted (date / time / datetime / number / currency in the language's form,\n// localeRenderings) and translated (no text of the page missing in the language)\n// - new: keyboard - expect fieldVisible (the field stays visible above an open keyboard) and restored (the page stands\n// as before the keyboard opened); layout - expect layout and layoutProblems (rules on what the page shows: nothing\n// beyond the frame, no sideways scrolling, no overlapping fields or buttons, no text squeezed into a narrow column,\n// fields of one row on one line) - the runners measure, these rules judge (OFFENE-PUNKTE 143)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\n// - new: expect cardRows - the card field's rows (1-3), none of its parts wider than the field (OFFENE-PUNKTE 103)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-29\n// - new: type … at: n - the n-th input of a field (the end of a period)\n// - new: expect checked / unchecked - whether a check box or switch is on, also read-only on a card or grid row\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-26\n// - new: the app's test data (.liveforge/test-data.json, TEST_DATA_FILE): steps name its values as {{data.customer.firstName}};\n// withTestData puts them in before a run (both runners), testDataRefs lists them, checkTestFlow(flow, data) reports\n// dataUnknown / dataRefInvalid\n// - new: steps for scenarios through an app (OFFENE-PUNKTE 114): menu (a menu entry), scroll (n pages on in the\n// list), openRecord (a record by position or name), close (the X in front: PDF viewer, dialog, else the page), cart (the header's cart); expect page,\n// records / recordsAtLeast, samePlace (back at the same place), cartCount (absolute or \"+1\"), toast. One\n// description, two runners: the app's test runner (preview) and viewdefinition-e2e (real taps on iPhone, iPad,\n// Pixel 9, Pixel Tablet). New check codes: scrollOutOfRange, recordMissing, notTrue, countNotNumber\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-19\n// - new: the format of an app's test flows (#166). Every app brings its own test suite in its hidden\n// system folder .liveforge/tests/ - one JSON file per flow. The same steps are run by the test\n// runner inside the app (Designer preview, \"Run tests\") and by viewdefinition-e2e on simulators.\n// Pages and fields are named by their name in the project (page folder, field key), never by a\n// caption - a test runs in every language. Buttons by their action (Save, Add, Delete).\n// A flow that writes real data says so (\"books\": true) and only runs after an explicit confirmation.\n// checkTestFlow returns codes with parameters, the editor translates them.\n// - new: a run can be stopped (FlowResult.stopped, TestRun.stopped)\n// - new: expect blocked - a writing button is there and the flow may not press it\n\nexport const TESTS_DIR = '.liveforge/tests';\nexport const RESULTS_DIR = '.liveforge/results';\n/** The app's test data, shared by its tests: { customer: { firstName: \"Max\" }, card: { number: \"4242…\" } } */\nexport const TEST_DATA_FILE = '.liveforge/test-data.json';\n\nexport const TEST_DEVICES = ['mobile', 'tablet', 'laptop', 'desktop'] as const;\n/** Old spellings of a device, still taken: \"phone\" is \"mobile\" (2026-10-31, the preview's word). */\nexport const OLD_DEVICE_NAMES: Record<string, string> = { phone: 'mobile' };\nexport const ORIENTATIONS = ['portrait', 'landscape'] as const;\nexport const STEP_KINDS = ['open', 'menu', 'tap', 'type', 'pick', 'press', 'scroll', 'openRecord', 'ifRecords', 'goToPage', 'close', 'cart', 'rotate', 'device', 'wait', 'language', 'reload', 'signIn', 'signOut', 'expect'] as const;\n/** What an expect step can check - one of them per step. */\nexport const EXPECT_KINDS = ['value', 'shows', 'keyboard', 'list', 'message', 'visible', 'hidden', 'locked', 'blocked', 'inFrame',\n 'page', 'records', 'recordsAtLeast', 'listLoaded', 'pdf', 'samePlace', 'cartCount', 'toast', 'checked', 'unchecked', 'cardRows',\n 'formatted', 'translated', 'fieldVisible', 'restored', 'layout', 'filled'] as const;\n/** How a value is shown in the language's form (expect formatted). */\nexport const FORMATS = ['date', 'time', 'datetime', 'number', 'currency'] as const;\n/** Languages written right to left - not tested until right-to-left is supported (decision 2026-10-30). */\nexport const RTL_LANGUAGES = ['ar', 'fa', 'he', 'ur', 'ps', 'sd', 'yi', 'ckb', 'dv'];\n/** What has to stay inside the page frame (safe areas, top gap). */\nexport const FRAME_PARTS = ['keyboard', 'dialog', 'calendar', 'list', 'menu'] as const;\nexport const LIST_STATES = ['open', 'closed'] as const;\n\nexport type TestDevice = typeof TEST_DEVICES[number];\nexport type Orientation = typeof ORIENTATIONS[number];\n\nexport interface TestExpect {\n field?: string;\n /** stored value of the field */\n value?: unknown;\n /** text the field shows (formatted: \"12,34 €\", \"01:00 PM\"); a language key (caption) is shown in the run's language */\n shows?: string;\n /** keyboard type that is open (string, alpha, numeric, email, date, time) or \"none\" */\n keyboard?: string;\n list?: typeof LIST_STATES[number];\n /** message key of a check (required, minLength, dateOrder …) */\n message?: string;\n visible?: string;\n hidden?: string;\n locked?: string;\n /** a button that writes real data is there and this flow may not press it (the runner's lock) */\n blocked?: string;\n inFrame?: typeof FRAME_PARTS[number];\n /** the open page: its folder under pages/ (\"sidemenu/books\") */\n page?: string;\n /** the records the open list shows now (exactly / at least) */\n records?: number;\n recordsAtLeast?: number;\n /** the open list has finished loading without a failure - it may be empty (live data) */\n listLoaded?: true;\n /** true: the PDF viewer shows a page; false: no viewer open */\n pdf?: boolean;\n /** back with the X the list stands where it was left (records and scroll position before openRecord) */\n samePlace?: true;\n /** items in the cart (the header's count); \"+1\" = one more than at the flow's last cart check */\n cartCount?: number | string;\n /** a message shown to the user (its text or its translation key) */\n toast?: string;\n /** the card field (creditCard) stands in so many rows (1-3) and none of its parts is wider than the field */\n cardRows?: number;\n /** a check box / switch (its key) is on - also read-only on a card or in a grid row */\n checked?: string;\n /** a check box / switch (its key) is off */\n unchecked?: string;\n /** with field and value: the field shows the language-neutral value (2026-10-30, 14:00, 12.50) in the language's form */\n formatted?: typeof FORMATS[number];\n /** ISO currency of formatted: currency (EUR, USD) */\n currency?: string;\n /** every text of the page is in the language of the run - none missing, no raw key */\n translated?: true;\n /** the field (its key) stays visible above the open keyboard - not covered */\n fieldVisible?: string;\n /** after the keyboard closed the page stands as before it opened - same place, no empty space */\n restored?: true;\n /** the page passes the layout rules (layoutProblems) */\n layout?: true;\n /** the field (its key) holds something - whatever it is (a suggestion filled it from live data) */\n filled?: string;\n}\n\nexport interface TestStep {\n open?: string;\n /** a menu entry by its caption key in Main (a new start: the page history is emptied) */\n menu?: string;\n tap?: string;\n type?: string;\n into?: string;\n /** with type: the field's n-th input (1-based) - the end of a period (daterange) is 2 */\n at?: number;\n /** an entry of the field's list by its shown text, or by position (1 = first) - live data: the entries are not known */\n pick?: string | number;\n in?: string;\n press?: string;\n /** pages to go on in the open list (swipe up / its end into view), 1-20 */\n scroll?: number;\n /** a list with page numbers: the number n is pressed; fewer pages than n is noted, not failed */\n goToPage?: number;\n /** a record of the open list by its position (1 = first) or by its shown name - its link opens its page */\n openRecord?: number | string;\n /** the page X - back to the page before */\n close?: true;\n /** with an empty list the rest of the flow is skipped - noted, not failed */\n ifRecords?: true;\n /** the cart in the header */\n cart?: true;\n rotate?: Orientation;\n device?: string;\n /** switch the app's language on the way (code: de, en, fr) */\n language?: string;\n /** load the app anew - the language and the sign-in stay */\n reload?: true;\n /** signed in from here on: already signed in - done; else a person signs in (preview, the runner waits) or the\n * runner signs in with the test user (simulators, signin.mjs). A test never types a name or password. */\n signIn?: true | string;\n /** signed out from here on - the sign-out of the user in the side menu, like a person; signed out already: done */\n signOut?: true;\n /** milliseconds */\n wait?: number;\n expect?: TestExpect;\n}\n\nexport interface TestFlow {\n name: string;\n description?: string;\n /** writes real data - runs only after an explicit confirmation */\n books?: boolean;\n /** runs only on the simulators and devices (viewdefinition-e2e), the preview leaves it out - e.g. Stripe's card field,\n * whose frame the app keyboard cannot reach in a browser */\n simulatorOnly?: boolean;\n /** \"mobile\", \"tablet:landscape\" … - without orientation portrait; none means mobile and tablet (\"phone\" is still taken) */\n devices?: string[];\n /** the languages the flow runs in: codes, or \"all\" (the app's left-to-right languages); none: the main language */\n languages?: string[] | 'all';\n steps: TestStep[];\n}\n\nexport interface TestProblem {\n code: string;\n step?: number;\n params?: Record<string, string>;\n}\n\n/** One step's outcome in a run. image: screenshot of a failed step (data URL or file in results). */\nexport interface StepResult {\n step: number;\n ok: boolean;\n reason?: string;\n image?: string;\n /** a failed step's measurements - what is needed to find the cause (samePlace: place, largest place, records when\n * left and back; layout: the boxes; visible/translated: what the page holds instead). Read by people and the AI. */\n details?: Record<string, unknown>;\n /** a passing step's hints - nothing failed, worth a look (layout: a table scrolls sideways) */\n notes?: string[];\n}\n\nexport interface FlowResult {\n file: string;\n name: string;\n device: string;\n /** the language the flow ran in */\n language?: string;\n ok: boolean;\n skipped?: 'books' | 'simulator';\n /** stopped by the person (\"Stop\") after this flow's last step in steps */\n stopped?: boolean;\n steps: StepResult[];\n}\n\n/** One run, stored as .liveforge/results/<date-time>.json (the backend keeps the latest runs). */\nexport interface TestRun {\n project: string;\n tenant: string;\n startedAt: string;\n finishedAt?: string;\n /** the person stopped the run - flows after it did not run */\n stopped?: boolean;\n flows: FlowResult[];\n}\n\nexport const DEFAULT_DEVICES = ['mobile', 'tablet'];\n\n/** Every device a test can name: each device, portrait and (for mobile and tablet) landscape - the editor's choices. */\nexport function deviceChoices(): string[] {\n return TEST_DEVICES.flatMap((d) => (d === 'mobile' || d === 'tablet' ? [d, `${d}:landscape`] : [d]));\n}\n\n/**\n * A placeholder in a text: {{name}} or {{name | fallback}} (the same pattern as validate.py's, via the contract).\n * As a source, so every runner and the Python validator build their own RegExp from it.\n */\nexport const PLACEHOLDER_SOURCE = '\\\\{\\\\{\\\\s*([^}|]+?)\\\\s*(?:\\\\|[^}]*)?\\\\}\\\\}';\n\n/** Whether a shown text is a text with placeholders filled in (\"Order 4711 saved\" for \"Order {{id}} saved\"). */\nexport function matchesTemplate(text: string, template: string): boolean {\n const parts = String(template).split(new RegExp(PLACEHOLDER_SOURCE));\n // split with a group keeps the names - every other part is a name\n const fixed = parts.filter((_, i) => i % 2 === 0).map((p) => p.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&'));\n return new RegExp(fixed.join('.+?')).test(String(text));\n}\n\n/**\n * How many runs the backend keeps in .liveforge/results - defaults, the project configuration can\n * change them: at most `max` runs; while they together are bigger than `maxBytes` (mostly images of\n * failed steps) the oldest go, but `min` runs always stay. Results are not exported.\n */\nexport const RESULTS_KEEP = { max: 10, min: 5, maxBytes: 20 * 1024 * 1024 };\n\n/** The runs to delete, oldest first; runs: name (sortable by date-time) and size in bytes. */\nexport function resultsToDelete(runs: { name: string; size: number }[], keep = RESULTS_KEEP): string[] {\n const sorted = [...runs].sort((a, b) => a.name.localeCompare(b.name));\n const gone: string[] = [];\n let total = sorted.reduce((sum, r) => sum + r.size, 0);\n while (sorted.length > keep.min && (sorted.length > keep.max || total > keep.maxBytes)) {\n const old = sorted.shift()!;\n total -= old.size;\n gone.push(old.name);\n }\n return gone;\n}\n\n/** \"tablet:landscape\" → { device: 'tablet', orientation: 'landscape' }; null when unknown. */\nexport function parseDevice(text: string): { device: TestDevice; orientation: Orientation } | null {\n const [written, orientation = 'portrait'] = String(text || '').split(':');\n const device = OLD_DEVICE_NAMES[written] ?? written;\n if (!(TEST_DEVICES as readonly string[]).includes(device)) return null;\n if (!(ORIENTATIONS as readonly string[]).includes(orientation)) return null;\n return { device: device as TestDevice, orientation: orientation as Orientation };\n}\n\n/**\n * Stripe's test cards and the test payment methods Stripe has for them (stripe.com/docs/testing). A test run cannot\n * type into Stripe's card frame (another site's frame) - the card field pays with the test payment method instead.\n */\nexport const STRIPE_TEST_CARDS: Readonly<Record<string, string>> = {\n '4242424242424242': 'pm_card_visa',\n '4000056655665556': 'pm_card_visa_debit',\n '5555555555554444': 'pm_card_mastercard',\n '378282246310005': 'pm_card_amex',\n '4000000000000002': 'pm_card_chargeDeclined',\n '4000000000009995': 'pm_card_chargeDeclinedInsufficientFunds',\n};\n\n/**\n * The Stripe test payment method for a card number typed in a test (\"4242 4242 4242 4242\"), or null: only a test\n * card of STRIPE_TEST_CARDS and only with a test key (pk_test_) - a live key never pays this way.\n */\nexport function stripeTestPaymentMethod(cardNumber: string, publishableKey: string): string | null {\n if (!/^pk_test_/.test(String(publishableKey || ''))) return null;\n return STRIPE_TEST_CARDS[String(cardNumber || '').replace(/[\\s-]/g, '')] ?? null;\n}\n\n/** The devices that type on the app's own keyboard. A laptop or desktop types on its own keyboard - nothing opens. */\nexport const APP_KEYBOARD_DEVICES: readonly TestDevice[] = ['mobile', 'tablet'];\n\n/** Does the device (\"tablet:landscape\") type on the app's keyboard? The keyboard checks are only for those. */\nexport function hasAppKeyboard(device: string): boolean {\n const parsed = parseDevice(device);\n return !!parsed && APP_KEYBOARD_DEVICES.includes(parsed.device);\n}\n\n/** A check about the app's keyboard - made only where the app keyboard opens (hasAppKeyboard). */\nexport function isKeyboardCheck(e: TestExpect | undefined): boolean {\n return !!e && (e.keyboard !== undefined || !!e.fieldVisible || !!e.restored || e.inFrame === 'keyboard');\n}\n\n/** The devices a flow runs on. */\nexport function flowDevices(flow: TestFlow): string[] {\n // an old spelling (\"phone\") as today's name (\"mobile\")\n return (flow.devices?.length ? flow.devices : DEFAULT_DEVICES).map((d) => {\n const [name, orientation] = String(d).split(':');\n const now = OLD_DEVICE_NAMES[name] ?? name;\n return orientation ? `${now}:${orientation}` : now;\n });\n}\n\n/** The kind of a step - the first step key it has. */\nexport function stepKind(step: TestStep): string | null {\n return (STEP_KINDS as readonly string[]).find((k) => step && Object.prototype.hasOwnProperty.call(step, k)) || null;\n}\n\nconst text = (v: unknown) => typeof v === 'string' && v.trim().length > 0;\n\n/** The problems of a flow; an empty list means it can run. */\n/** Step and check keys that hold a number. */\nconst NUMBER_KEYS = new Set(['scroll', 'goToPage', 'openRecord', 'wait', 'records', 'recordsAtLeast', 'cartCount', 'cardRows']);\n\n/** The languages a flow runs in: its own (right-to-left left out), \"all\" = the app's left-to-right ones, none = the main one. */\nexport function flowLanguages(flow: TestFlow, appLanguages: string[], main: string): string[] {\n const ltr = (codes: string[]) => [...new Set(codes.map((c) => String(c).slice(0, 2).toLowerCase()))].filter((c) => c && !RTL_LANGUAGES.includes(c));\n if (flow.languages === 'all') return ltr(appLanguages.length ? appLanguages : [main]);\n if (Array.isArray(flow.languages) && flow.languages.length) return ltr(flow.languages);\n return ltr([main]);\n}\n\nconst NEUTRAL_DATE = /^(\\d{4})-(\\d{2})-(\\d{2})$/;\nconst NEUTRAL_TIME = /^(\\d{2}):(\\d{2})$/;\nconst NEUTRAL_DATETIME = /^(\\d{4})-(\\d{2})-(\\d{2})[T ](\\d{2}):(\\d{2})$/;\nconst NEUTRAL_NUMBER = /^-?\\d+\\.\\d+$/;\n\n/** 12 hours with AM/PM in this language? */\nexport function uses12Hours(lang: string): boolean {\n try { return new Intl.DateTimeFormat(lang, { hour: 'numeric' }).resolvedOptions().hour12 === true; } catch { return false; }\n}\n\n/** The order of day, month, year in the language's numeric date (\"dmy\", \"mdy\", \"ymd\"). */\nexport function dateOrder(lang: string): string {\n try {\n return new Intl.DateTimeFormat(lang, { year: 'numeric', month: '2-digit', day: '2-digit' }).formatToParts(new Date(2026, 9, 30))\n .filter((p) => p.type === 'day' || p.type === 'month' || p.type === 'year').map((p) => p.type[0]).join('');\n } catch { return 'mdy'; }\n}\n\n/**\n * The keys a person types for a language-neutral value in this language: a date's digits in the language's order\n * (en 10302026, de 30102026), a time as digits with P/A in a 12-hour language (0200P) or 24 hours (1400), a number\n * with the language's decimal sign (de 12,50). Any other text stays as it is - older flows typed the keys themselves.\n */\nexport function localeKeys(value: string, lang: string, dateDisplay: string = 'language'): string {\n const text = String(value);\n // a field in display style iso takes the date as year, month, day in every language\n const order = dateDisplay === 'iso' ? 'ymd' : dateOrder(lang);\n const date = (y: string, m: string, d: string) => order.split('').map((k) => (k === 'd' ? d : k === 'm' ? m : y)).join('');\n const time = (h: string, min: string) => {\n if (!uses12Hours(lang)) return `${h}${min}`;\n const hour = Number(h);\n const h12 = String(hour % 12 === 0 ? 12 : hour % 12).padStart(2, '0');\n return `${h12}${min}${hour < 12 ? 'A' : 'P'}`;\n };\n let m = NEUTRAL_DATETIME.exec(text);\n if (m) return `${date(m[1], m[2], m[3])}${time(m[4], m[5])}`;\n m = NEUTRAL_DATE.exec(text);\n if (m) return date(m[1], m[2], m[3]);\n m = NEUTRAL_TIME.exec(text);\n if (m) return time(m[1], m[2]);\n if (NEUTRAL_NUMBER.test(text)) {\n const sign = new Intl.NumberFormat(lang).formatToParts(1.5).find((p) => p.type === 'decimal')?.value || '.';\n return text.replace('.', sign);\n }\n return text;\n}\n\n/** Every way the language writes this value (expect formatted) - the field must show one of them; spaces are made plain. */\nexport function localeRenderings(value: string, as: typeof FORMATS[number], lang: string, currency?: string, dateDisplay: string = 'language'): string[] {\n const out = new Set<string>();\n const add = (s: string) => out.add(s.replace(/[\\u00a0\\u202f]/g, ' ').trim());\n const d = NEUTRAL_DATETIME.exec(value) || NEUTRAL_DATE.exec(value);\n const t = NEUTRAL_TIME.exec(value);\n // a field in display style iso: 2026-10-30, with a time 14:00, in every language;\n // \"any\" - a check that does not know the field's switch takes the ISO form besides the language's\n if ((dateDisplay === 'iso' || dateDisplay === 'any') && d && (as === 'date' || (as === 'datetime' && d[4]))) {\n const iso = `${d[1]}-${d[2]}-${d[3]}`;\n const form = as === 'date' ? iso : `${iso} ${d[4].padStart(2, '0')}:${d[5]}`;\n if (dateDisplay === 'iso') return [form];\n add(form);\n }\n try {\n if (as === 'date' && d) {\n const day = new Date(Number(d[1]), Number(d[2]) - 1, Number(d[3]));\n for (const style of [{ year: 'numeric', month: '2-digit', day: '2-digit' }, { year: 'numeric', month: 'numeric', day: 'numeric' },\n { dateStyle: 'medium' }, { dateStyle: 'long' }, { dateStyle: 'short' }] as any[]) add(new Intl.DateTimeFormat(lang, style).format(day));\n } else if ((as === 'time' && t) || (as === 'datetime' && d && d[4])) {\n const at = t ? new Date(2026, 0, 1, Number(t[1]), Number(t[2])) : new Date(Number(d![1]), Number(d![2]) - 1, Number(d![3]), Number(d![4]), Number(d![5]));\n for (const hour of ['2-digit', 'numeric'] as const) {\n const time = new Intl.DateTimeFormat(lang, { hour, minute: '2-digit' }).format(at);\n if (as === 'time') add(time);\n else for (const style of [{ year: 'numeric', month: '2-digit', day: '2-digit' }, { dateStyle: 'medium' }] as any[]) {\n const date = new Intl.DateTimeFormat(lang, style).format(at);\n add(`${date} ${time}`); add(`${date}, ${time}`);\n }\n }\n } else if (as === 'number' && /^-?\\d+(\\.\\d+)?$/.test(value)) {\n const n = Number(value), decimals = (value.split('.')[1] || '').length;\n add(new Intl.NumberFormat(lang, { minimumFractionDigits: decimals, maximumFractionDigits: decimals }).format(n));\n add(new Intl.NumberFormat(lang).format(n));\n } else if (as === 'currency' && /^-?\\d+(\\.\\d+)?$/.test(value) && currency) {\n add(new Intl.NumberFormat(lang, { style: 'currency', currency }).format(Number(value)));\n add(new Intl.NumberFormat(lang, { style: 'currency', currency, currencyDisplay: 'narrowSymbol' }).format(Number(value)));\n }\n } catch { /* an unknown language or currency: no rendering - the check fails with the shown text */ }\n return [...out];\n}\n\n/** One element on the page as the runner measured it (layoutProblems). */\nexport interface LayoutBox {\n /** what it is: field, button, label, text */\n kind: string;\n /** its name for the report (field key, button action, the first words) */\n name: string;\n left: number; top: number; right: number; bottom: number;\n /** characters that fit in a line of its width at its font size (text only) */\n charsPerLine?: number;\n /** the row it belongs to (fields side by side in one layout row) */\n row?: string;\n /** the sideways scrolling area it stands in (a wide table) - reached by swiping there, so it may leave the frame */\n scroller?: string;\n /** it stands in the top bar (header, page X) - the page scrolls under a fixed one */\n inBar?: boolean;\n}\n\n/** An area that scrolls sideways on its own (a table wider than the screen): its place and how wide its content is. */\nexport interface LayoutScroller {\n name: string;\n left: number; right: number;\n /** the content's width and the width shown */\n content: number; shown: number;\n}\n\n/** What the page shows, measured by a runner: the frame, sideways scrolling, the elements. */\nexport interface LayoutSnapshot {\n width: number;\n height: number;\n /** the page scrolls sideways (document wider than the frame) */\n scrollsSideways: boolean;\n boxes: LayoutBox[];\n /** the areas that scroll sideways on their own */\n scrollers?: LayoutScroller[];\n /** the top bar (header + page X): its place, its behaviour (header.option.scroll) and how far the page is scrolled */\n header?: { top: number; bottom: number; scroll: string; pageTop: number };\n /** card lists with aligned rows (card.alignRows): per row of cards, the tops of their button elements */\n cardRows?: number[][];\n /** an open app keyboard / docked calendar: its background and the colour it should have (the page's, or the\n * project's own keyboard colour) */\n panels?: { name: string; background: string; expected: string }[];\n}\n\n/**\n * The layout rules (OFFENE-PUNKTE 143), judged on what a runner measured: beyond (an element leaves the frame\n * sideways), sideways (the page scrolls sideways), overlap (two fields / buttons cover each other), narrow (a text\n * gets fewer than 3 characters a line), row (fields of one row do not stand on one line), colour (an open keyboard or\n * calendar not in the page's colour). Pixels tolerate 2.\n */\nexport function layoutProblems(snap: LayoutSnapshot): { rule: string; detail: string }[] {\n const problems: { rule: string; detail: string }[] = [];\n const tol = 2;\n if (snap.scrollsSideways) problems.push({ rule: 'sideways', detail: 'the page scrolls sideways' });\n const boxes = snap.boxes.filter((b) => b.right - b.left > 0 && b.bottom - b.top > 0);\n // a fixed header stays in sight however far the page is scrolled (user 2026-11-01)\n const h = snap.header;\n if (h && h.scroll === 'fixed' && (h.top < -tol || h.bottom <= 0)) problems.push({ rule: 'header', detail: `the header left the screen (${Math.round(h.top)}–${Math.round(h.bottom)}) although it is fixed` });\n // aligned card rows (card.alignRows): the buttons of a row stand on one line (user 2026-11-01)\n (snap.cardRows || []).forEach((tops, i) => {\n if (Math.max(...tops) - Math.min(...tops) > tol) problems.push({ rule: 'align', detail: `the buttons of card row ${i + 1} do not stand on one line (${tops.map((t) => Math.round(t)).join(', ')})` });\n });\n // keyboard and calendar have the page's colour (or the project's own keyboard colour) - not a button's (2026-11-14)\n const rgb = (c: string) => (String(c).match(/[\\d.]+/g) || []).slice(0, 3).map(Number).join(',');\n for (const p of snap.panels || []) {\n if (rgb(p.background) !== rgb(p.expected)) problems.push({ rule: 'colour', detail: `${p.name} background ${p.background} differs from the page ${p.expected}` });\n }\n for (const s of snap.scrollers || []) {\n if (s.left < -tol || s.right > snap.width + tol) problems.push({ rule: 'beyond', detail: `area \"${s.name}\" leaves the frame (${Math.round(s.left)}–${Math.round(s.right)} of ${snap.width})` });\n }\n for (const b of boxes) {\n // in an area that scrolls sideways (a wide table) it is reached by swiping there - not lost (user 2026-11-01)\n if (!b.scroller && (b.left < -tol || b.right > snap.width + tol)) problems.push({ rule: 'beyond', detail: `${b.kind} \"${b.name}\" leaves the frame (${Math.round(b.left)}–${Math.round(b.right)} of ${snap.width})` });\n if (b.kind === 'text' && b.charsPerLine !== undefined && b.charsPerLine < 3) problems.push({ rule: 'narrow', detail: `text \"${b.name}\" gets ${b.charsPerLine} characters a line` });\n }\n // what the page scrolled under a fixed header is hidden by it, not covering it (user 2026-11-01): a box outside the\n // top bar counts only below it\n const barBottom = h && h.scroll !== 'scrollsAlong' ? h.bottom : 0;\n // only the part below the header counts - the rest is hidden by it\n const solid = boxes.filter((b) => (b.kind === 'field' || b.kind === 'button') && (b.inBar || b.bottom > barBottom + tol))\n .map((b) => (b.inBar ? b : { ...b, top: Math.max(b.top, barBottom) }));\n for (let i = 0; i < solid.length; i++) {\n for (let j = i + 1; j < solid.length; j++) {\n const a = solid[i], c = solid[j];\n const w = Math.min(a.right, c.right) - Math.max(a.left, c.left);\n const h = Math.min(a.bottom, c.bottom) - Math.max(a.top, c.top);\n if (w > tol && h > tol) problems.push({ rule: 'overlap', detail: `${a.kind} \"${a.name}\" and ${c.kind} \"${c.name}\" cover each other` });\n }\n }\n const rows = new Map<string, LayoutBox[]>();\n for (const b of boxes.filter((x) => x.kind === 'field' && x.row)) rows.set(b.row!, [...(rows.get(b.row!) || []), b]);\n for (const [row, members] of rows) {\n if (members.length < 2) continue;\n const tops = members.map((m) => m.top);\n if (Math.max(...tops) - Math.min(...tops) > 8) problems.push({ rule: 'row', detail: `fields of row \"${row}\" do not stand on one line (${members.map((m) => m.name).join(', ')})` });\n }\n return problems;\n}\n\n/** Hints that fail nothing: the areas that scroll sideways (a wide table) - shown with a passing layout check. */\nexport function layoutNotes(snap: LayoutSnapshot): string[] {\n const notes = (snap.scrollers || []).map((s) => `${s.name} scrolls sideways (${Math.round(s.content)} of ${Math.round(s.shown)} px)`);\n if (snap.header?.scroll === 'scrollsAlong') notes.push('the header scrolls along - cart, search and the page X are out of reach after scrolling');\n return notes;\n}\n\n/** {{data.customer.firstName}} - a value of the test data; anything else in braces is no test data. */\nconst DATA_REF = /\\{\\{\\s*([^}]*?)\\s*\\}\\}/g;\n\nfunction stringsOf(node: any, out: string[] = []): string[] {\n if (typeof node === 'string') out.push(node);\n else if (Array.isArray(node)) node.forEach((v) => stringsOf(v, out));\n else if (node && typeof node === 'object') Object.values(node).forEach((v) => stringsOf(v, out));\n return out;\n}\n\nfunction dataValue(data: any, ref: string): unknown {\n return ref.split('.').reduce((v: any, k) => (v && typeof v === 'object' ? v[k] : undefined), data);\n}\n\n/** The test data a flow uses, per step: [{ step, ref: \"customer.firstName\" }]; ref without \"data.\". */\nexport function testDataRefs(flow: any): { step: number; ref: string; raw: string }[] {\n const refs: { step: number; ref: string; raw: string }[] = [];\n (Array.isArray(flow?.steps) ? flow.steps : []).forEach((step: any, i: number) => {\n for (const text of stringsOf(step)) {\n for (const m of text.matchAll(DATA_REF)) refs.push({ step: i + 1, ref: m[1].replace(/^data\\./, ''), raw: m[1] });\n }\n });\n return refs;\n}\n\n/**\n * The flow with its test data put in: \"{{data.customer.firstName}}\" -> \"Max\"; a whole value that is one placeholder\n * keeps the data's type (a number stays a number). Both runners call it before a run; missing lists what is not in data.\n */\nexport function withTestData(flow: TestFlow, data: any): { flow: TestFlow; missing: string[] } {\n const missing: string[] = [];\n const put = (node: any): any => {\n if (typeof node === 'string') {\n const whole = /^\\{\\{\\s*data\\.([^}]+?)\\s*\\}\\}$/.exec(node);\n if (whole) {\n const v = dataValue(data, whole[1]);\n if (v === undefined) missing.push(whole[1]);\n return v === undefined ? node : v;\n }\n return node.replace(DATA_REF, (all, ref) => {\n if (!ref.startsWith('data.')) return all;\n const v = dataValue(data, ref.slice(5));\n if (v === undefined || typeof v === 'object') { missing.push(ref.slice(5)); return all; }\n return String(v);\n });\n }\n if (Array.isArray(node)) return node.map(put);\n if (node && typeof node === 'object') return Object.fromEntries(Object.entries(node).map(([k, v]) => [k, put(v)]));\n return node;\n };\n return { flow: { ...flow, steps: put(flow.steps) }, missing: [...new Set(missing)] };\n}\n\n/**\n * The problems of a flow; an empty list means it can run. With the app's test data, a placeholder that names nothing\n * in it is a problem too (dataUnknown); a placeholder that is no {{data.…}} is one always (dataRefInvalid).\n */\nexport function checkTestFlow(flow: any, data?: any): TestProblem[] {\n const problems: TestProblem[] = [];\n const add = (code: string, step?: number, params?: Record<string, string>) => problems.push({ code, step, params });\n if (!flow || typeof flow !== 'object' || Array.isArray(flow)) return [{ code: 'notAnObject' }];\n for (const r of testDataRefs(flow)) {\n if (!r.raw.startsWith('data.')) add('dataRefInvalid', r.step, { ref: r.raw });\n else if (data !== undefined && dataValue(data, r.ref) === undefined) add('dataUnknown', r.step, { ref: r.ref });\n }\n // the form is checked with the data put in; a placeholder still standing where a number belongs counts as one\n if (Array.isArray(flow.steps)) {\n const filled = withTestData(flow, data ?? {}).flow;\n const asNumber = (node: any): any => Array.isArray(node) ? node.map(asNumber)\n : node && typeof node === 'object' ? Object.fromEntries(Object.entries(node).map(([k, v]) =>\n [k, typeof v === 'string' && NUMBER_KEYS.has(k) && /^\\{\\{\\s*data\\.[^}]+\\}\\}$/.test(v) ? 1 : asNumber(v)]))\n : node;\n flow = { ...flow, steps: asNumber(filled.steps) };\n }\n if (!text(flow.name)) add('nameMissing');\n if (flow.books !== undefined && typeof flow.books !== 'boolean') add('booksNotBoolean');\n if (flow.simulatorOnly !== undefined && typeof flow.simulatorOnly !== 'boolean') add('simulatorOnlyNotBoolean');\n if (flow.languages !== undefined && flow.languages !== 'all'\n && !(Array.isArray(flow.languages) && flow.languages.every((l: unknown) => /^[a-z]{2}$/i.test(String(l))))) add('languagesInvalid');\n if (flow.devices !== undefined) {\n if (!Array.isArray(flow.devices)) add('devicesNotList');\n else flow.devices.filter((d: string) => !parseDevice(d)).forEach((d: string) => add('unknownDevice', undefined, { device: String(d) }));\n }\n if (!Array.isArray(flow.steps) || !flow.steps.length) {\n add('stepsMissing');\n return problems;\n }\n flow.steps.forEach((step: any, i: number) => {\n const n = i + 1;\n if (!step || typeof step !== 'object' || Array.isArray(step)) { add('stepNotAnObject', n); return; }\n const kinds = (STEP_KINDS as readonly string[]).filter((k) => k in step);\n if (kinds.length !== 1) { add(kinds.length ? 'stepSeveralKinds' : 'stepUnknown', n, { keys: Object.keys(step).join(', ') }); return; }\n const kind = kinds[0];\n switch (kind) {\n case 'open': case 'menu': case 'tap': case 'press':\n if (!text(step[kind])) add('stepNameMissing', n, { kind });\n break;\n case 'goToPage':\n if (!(Number.isInteger(step.goToPage) && step.goToPage >= 1)) add('countNotNumber', n, { kind });\n break;\n case 'scroll':\n if (!Number.isInteger(step.scroll) || step.scroll < 1 || step.scroll > 20) add('scrollOutOfRange', n);\n break;\n case 'openRecord':\n if (!(Number.isInteger(step.openRecord) && step.openRecord >= 1) && !text(step.openRecord)) add('recordMissing', n);\n break;\n case 'close': case 'cart': case 'ifRecords':\n if (step[kind] !== true) add('notTrue', n, { kind });\n break;\n case 'type':\n if (typeof step.type !== 'string') add('typeNotText', n);\n if (!text(step.into)) add('intoMissing', n);\n break;\n case 'pick':\n if (!(Number.isInteger(step.pick) && step.pick >= 1) && !text(step.pick)) add('stepNameMissing', n, { kind });\n if (!text(step.in)) add('inMissing', n);\n break;\n case 'rotate':\n if (!(ORIENTATIONS as readonly string[]).includes(step.rotate)) add('unknownOrientation', n, { orientation: String(step.rotate) });\n break;\n case 'device':\n if (!parseDevice(step.device)) add('unknownDevice', n, { device: String(step.device) });\n break;\n case 'wait':\n if (typeof step.wait !== 'number' || step.wait < 0 || step.wait > 60000) add('waitOutOfRange', n);\n break;\n case 'language':\n if (!/^[a-z]{2}$/i.test(String(step.language || ''))) add('languageUnknown', n, { language: String(step.language) });\n break;\n case 'reload':\n case 'signOut':\n if (step[kind] !== true) add('notTrue', n, { kind });\n break;\n case 'signIn':\n // true: the test user \"default\"; a name: that test user - both stand in the app's test data (testUsers, with\n // their Vault entry); nothing about them is in the code\n if (step.signIn !== true && !(typeof step.signIn === 'string' && /^[a-zA-Z0-9_-]{1,40}$/.test(step.signIn))) add('signInInvalid', n);\n else if (data !== undefined && !data?.testUsers?.[step.signIn === true ? 'default' : step.signIn]?.vault) {\n add('testUserUnknown', n, { user: step.signIn === true ? 'default' : String(step.signIn) });\n }\n break;\n case 'expect':\n checkExpect(step.expect, n, add);\n break;\n }\n });\n return problems;\n}\n\nfunction checkExpect(e: any, n: number, add: (code: string, step?: number, params?: Record<string, string>) => void) {\n if (!e || typeof e !== 'object' || Array.isArray(e)) { add('expectNotAnObject', n); return; }\n // formatted carries its value (the language-neutral one) - that value is no check of its own\n const kinds = (EXPECT_KINDS as readonly string[]).filter((k) => k in e && !(k === 'value' && 'formatted' in e));\n if (kinds.length !== 1) { add(kinds.length ? 'expectSeveralKinds' : 'expectUnknown', n, { keys: Object.keys(e).join(', ') }); return; }\n const kind = kinds[0];\n if ((kind === 'value' || kind === 'shows') && !text(e.field)) add('fieldMissing', n, { kind });\n if (kind === 'shows' && typeof e.shows !== 'string') add('showsNotText', n);\n if (kind === 'keyboard' && !text(e.keyboard)) add('keyboardMissing', n);\n if (kind === 'list' && !(LIST_STATES as readonly string[]).includes(e.list)) add('unknownListState', n, { list: String(e.list) });\n if (kind === 'message' && !text(e.message)) add('messageMissing', n);\n if ((kind === 'visible' || kind === 'hidden' || kind === 'locked' || kind === 'blocked') && !text(e[kind])) add('stepNameMissing', n, { kind });\n if (kind === 'inFrame' && !(FRAME_PARTS as readonly string[]).includes(e.inFrame)) add('unknownFramePart', n, { part: String(e.inFrame) });\n if ((kind === 'page' || kind === 'toast' || kind === 'checked' || kind === 'unchecked') && !text(e[kind])) add('stepNameMissing', n, { kind });\n if ((kind === 'records' || kind === 'recordsAtLeast') && !(Number.isInteger(e[kind]) && e[kind] >= 0)) add('countNotNumber', n, { kind });\n if ((kind === 'samePlace' || kind === 'listLoaded') && e[kind] !== true) add('notTrue', n, { kind });\n if (kind === 'pdf' && typeof e.pdf !== 'boolean') add('notTrue', n, { kind });\n if (kind === 'cardRows' && !(Number.isInteger(e.cardRows) && e.cardRows >= 1 && e.cardRows <= 3)) add('countNotNumber', n, { kind });\n if (kind === 'formatted') {\n if (!text(e.field)) add('fieldMissing', n, { kind });\n if (!(FORMATS as readonly string[]).includes(e.formatted)) add('formatUnknown', n, { format: String(e.formatted) });\n if (typeof e.value !== 'string' && typeof e.value !== 'number') add('valueMissing', n, { kind });\n if (e.formatted === 'currency' && !/^[A-Z]{3}$/.test(String(e.currency || ''))) add('currencyMissing', n);\n }\n if ((kind === 'fieldVisible' || kind === 'filled') && !text(e[kind])) add('stepNameMissing', n, { kind });\n if ((kind === 'translated' || kind === 'restored' || kind === 'layout') && e[kind] !== true) add('notTrue', n, { kind });\n if (kind === 'cartCount' && !(Number.isInteger(e.cartCount) && e.cartCount >= 0) && !/^[+-]\\d+$/.test(String(e.cartCount))) add('countNotNumber', n, { kind });\n}\n\n/**\n * How fast a run goes - chosen only where the run is started (preview: the choice beside \"Run tests\"; devices:\n * --tempo=…), never in a test (user 2026-11-01): the seconds before each step (user 2026-11-04), or one of the names\n * fast (no pause), normal (a short pause), slow (a long pause, to watch it). The checks' time limits start after the pause.\n */\nexport const TEST_TEMPOS = ['fast', 'normal', 'slow'] as const;\nexport type TestTempo = (typeof TEST_TEMPOS)[number];\n\n/**\n * The seconds before each step when nobody chose. A form takes a typed value only in a later task of the browser: a step\n * right after the typing found the field still empty; a person's next click is always later (measured 2026-11-04: 0.1 is\n * enough, 0.2 leaves a margin).\n */\nexport const DEFAULT_TEMPO_SECONDS = 0.2;\n\n/** The pause before a step in ms - from seconds or a name; unknown tempo: fast. */\nexport function tempoPause(tempo: string | number | undefined): number {\n if (tempo === 'normal') return 600;\n if (tempo === 'slow') return 1800;\n const seconds = typeof tempo === 'string' && tempo.trim() === '' ? NaN : Number(tempo);\n return Number.isFinite(seconds) && seconds > 0 ? Math.round(seconds * 1000) : 0;\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\n// - new: the test sign-in without the ui-backend (user 2026-11-01: \"stelle dir vor es existiert kein ui-backend für\n// die tests\"): a runner signs in to Vault itself (a Vault token, or a JWT - the GitLab job's ID token, the\n// Designer person's Keycloak token), reads the test user of the app (liveforge/tenants/<tenant>/e2e/<app>/<name>)\n// - the sign-in data only: the app signs in at its Keycloak itself, the runner fills the app's own window like a\n// person (user 2026-11-01: \"die App muss sich beim Keycloak authentifizieren und bekommt von uns nur die\n// Anmeldedaten\"). totp gives the authenticator code. fetch and crypto.subtle are passed in or global.\n\n/**\n * The app's test users (.liveforge/test-data.json testUsers) - name -> where its sign-in data stand in Vault, e.g.\n * { \"default\": { \"vault\": \"liveforge/tenants/dev/e2e/tm-test/default\", \"description\": \"employee\" } }. Nothing of it\n * is built into the code (user 2026-11-01: nothing hard-coded); a step names the user: signIn true = \"default\".\n */\nexport interface TestUserEntry {\n /** the Vault entry: KV v2 mount, then the path (liveforge/tenants/dev/e2e/tm-test/default) */\n vault: string;\n description?: string;\n}\n\n/** The test user a step names (signIn true -> \"default\") from the app's test data; null when the app has none. */\nexport function testUserEntry(data: any, name: string | true): TestUserEntry | null {\n const key = name === true ? 'default' : String(name || 'default');\n const entry = data?.testUsers?.[key];\n return entry && typeof entry.vault === 'string' && entry.vault.includes('/') ? entry : null;\n}\n\n/** \"liveforge/tenants/dev/e2e/tm-test/default\" -> the KV v2 mount and the path inside it. */\nexport function vaultPlace(vault: string): { mount: string; path: string } {\n const [mount, ...rest] = String(vault).replace(/^\\/+|\\/+$/g, '').split('/');\n return { mount, path: rest.join('/') };\n}\n\n/** The test user as Vault holds it. */\nexport interface TestUser {\n username: string;\n password: string;\n /** the authenticator key (base32) when the test user has a second factor */\n otpSecret?: string;\n /** the tenant key a freshly installed app asks for (device runners) */\n tenantKey?: string;\n}\n\ntype Fetch = (url: string, init?: any) => Promise<{ ok: boolean; status: number; json(): Promise<any>; text(): Promise<string> }>;\n\n/** base32 (RFC 4648, the authenticator apps' form) to bytes. */\nexport function base32Bytes(secret: string): Uint8Array {\n const alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';\n const clean = String(secret || '').toUpperCase().replace(/[^A-Z2-7]/g, '');\n const out: number[] = [];\n let bits = 0;\n let value = 0;\n for (const ch of clean) {\n value = (value << 5) | alphabet.indexOf(ch);\n bits += 5;\n if (bits >= 8) {\n out.push((value >>> (bits - 8)) & 0xff);\n bits -= 8;\n }\n }\n return new Uint8Array(out);\n}\n\n/** The authenticator code (TOTP, RFC 6238: HMAC-SHA1, 30 s, 6 digits) of a key at a time. */\nexport async function totp(secret: string, now = Date.now(), subtle: any = (globalThis as any).crypto?.subtle): Promise<string> {\n const counter = Math.floor(now / 1000 / 30);\n const msg = new Uint8Array(8);\n let c = counter;\n for (let i = 7; i >= 0; i--) { msg[i] = c & 0xff; c = Math.floor(c / 256); }\n const key = await subtle.importKey('raw', base32Bytes(secret), { name: 'HMAC', hash: 'SHA-1' }, false, ['sign']);\n const mac = new Uint8Array(await subtle.sign('HMAC', key, msg));\n const offset = mac[mac.length - 1] & 0x0f;\n const code = ((mac[offset] & 0x7f) << 24) | (mac[offset + 1] << 16) | (mac[offset + 2] << 8) | mac[offset + 3];\n return String(code % 1_000_000).padStart(6, '0');\n}\n\n/** A Vault token from a JWT (auth/<mount>/login, role): the GitLab job's ID token or a person's Keycloak token. */\nexport async function vaultJwtLogin(fetchFn: Fetch, addr: string, mount: string, role: string, jwt: string): Promise<string> {\n const answer = await fetchFn(`${addr.replace(/\\/+$/, '')}/v1/auth/${mount}/login`, {\n method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ role, jwt }),\n });\n if (!answer.ok) throw new Error(`Vault sign-in refused (${answer.status})`);\n const token = (await answer.json())?.auth?.client_token;\n if (!token) throw new Error('Vault gave no token');\n return token;\n}\n\n/** A test user from Vault (KV v2 mount and path, vaultPlace of the test data entry). The values never leave this function but in the result. */\nexport async function readTestUser(fetchFn: Fetch, addr: string, token: string, mount: string, path: string): Promise<TestUser> {\n const answer = await fetchFn(`${addr.replace(/\\/+$/, '')}/v1/${mount}/data/${path}`, { headers: { 'x-vault-token': token } });\n if (answer.status === 404) throw new Error(`no test user in Vault at ${mount}/${path}`);\n if (!answer.ok) throw new Error(`Vault refused reading the test user (${answer.status})`);\n const data = (await answer.json())?.data?.data || {};\n if (!data.username || !data.password) throw new Error(`the test user at ${mount}/${path} has no username or password`);\n return { username: String(data.username), password: String(data.password), otpSecret: data.otpSecret ? String(data.otpSecret) : undefined,\n tenantKey: data.tenantKey ? String(data.tenantKey) : undefined };\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08\n// - new: appSettings.menu.style - folder (default) or footer: languages as buttons, imprint / privacy / terms as links\n// and the version at the foot of the side menu (appSettingsFooter); the rest stays in the folder (point 213)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\n// - new: HEADER_SCROLLS, headerScrollOf - what the header does when the page scrolls (header.option.scroll):\n// fixed (default), hideOnScroll (away while scrolling down, back at once when scrolling up), scrollsAlong\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-23\n// - new: start page, roles and storage of the sign-in (OFFENE-PUNKTE 109): the start page is center.option\n// and holds for every sign-in setting; a role may have its own start page (login.roles, in the\n// Designer's order), without one - or an unknown role - the general start page holds. roleKey says where\n// the role stands: a field of the sign-in answer (JWT) or a claim of the token (Keycloak\n// \"realm_access.roles\", Okta \"groups\"); several roles: the first role in login.roles that the user has.\n// loginPage is the page before the sign-in (hotel: the sign-in form), no role. storage: localStorage\n// (stay signed in) or sessionStorage (signed out when the app closes). login written as a plain string\n// ('optional', the first form) is still read.\n// - new: pagination for the whole app with the page overriding single values (decision 2026-10-23):\n// placement (top | bottom), align (left | center | right | split), defaultPageSize, pageSizeOptions,\n// pageSize (offer the size choice). paginationFor(main, page): page, then Main, then the default; the old\n// page keys top / bottom / position are read until the apps are converted\n// - new: startPage, startPageFor, rolesOf, paginationFor\n// - change: a language entry has no icon (flag is not registered in the app, and a flag is no language)\n// - new: appSettings.menu (decision 2026-10-24, \"variant 3\"): the setting entries stay automatic, but Main\n// decides the folder's caption (menu.caption, default \"Setting\", a text of the app) and every entry's order\n// and on/off (menu.entries, MENU_ENTRY_KINDS), and an entry's own caption instead of its fixed text; on/off\n// only for Home, Languages, Project Version - Login, Pagination Type and Terms are decided in their own\n// building block (MENU_SWITCHABLE, MENU_DECIDED_BY: one place per decision);\n// appSettingsMenu follows it\n// - new: appSettingsMenu - the entries the library adds to the side menu by itself (OFFENE-PUNKTE 106/108):\n// Home, Project Version, Languages (more than one), Login (sign-in at any time, not signed in), Pagination\n// Type (the user may choose), Terms & Conditions (switched on) - into the top-level folder \"Setting\", or a\n// folder \"Setting\" at the end. Captions are the English keys the language files translate\n// - new: pagination.caption, the label beside the size choice, for the whole app and per page (the page's own wins)\n// - change: the default type of a list is scroll (decision of the user 2026-10-23)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-23\n// - new: the app settings catalog - the ONE place that says which app-wide settings an app has, which\n// values they take, their defaults and where they stand in the Main layout (main/layout_schema.json),\n// like the field catalog for the fields (#166, OFFENE-PUNKTE 106/108). The Designer (Main: Login,\n// Pagination, Terms & Conditions), the runtime and the AI contract (capabilities.json, validator) are to\n// read it from here instead of keeping their own copies. No Angular, no texts - the Designer keeps its\n// texts under these keys.\n// Taken over from the Designer's app-settings.store.ts (shuaib 56615e0 / 4627a44):\n// - center.appSettings: login, pagination, terms\n// - the sign-in method comes from the Configuration (environment.login.type) and writes its flag into\n// center.option (keycloakLogin / oktaLogin / jwtLogin) when the sign-in is required at the start\n// It only describes, reads and checks; nothing renders from it yet.\n\nimport type { Bag } from './field-catalog';\n\n/** The building blocks of the app settings in Main, in the order they are shown. */\n/** How the setting entries stand in the side menu: a folder at the end, or a foot of the menu. */\nexport const MENU_STYLES = ['folder', 'footer'] as const;\nexport type MenuStyle = typeof MENU_STYLES[number];\n\nexport const APP_SETTING_BLOCKS = ['startPage', 'login', 'pagination', 'terms', 'menu'] as const;\n\n/** The entries the library may add to the side menu, in their default order (appSettings.menu.entries). */\nexport const MENU_ENTRY_KINDS = ['home', 'languages', 'login', 'paginationType', 'terms', 'projectVersion'] as const;\nexport type MenuEntryKind = typeof MENU_ENTRY_KINDS[number];\n/**\n * The entries Main switches on or off in the menu settings. The others are decided where they belong - one\n * place per decision: Login by login.when (at any time), Pagination Type by pagination.userChoice, Terms &\n * Conditions by terms.enabled; their \"on\" in menu.entries is not read.\n */\nexport const MENU_SWITCHABLE: readonly MenuEntryKind[] = ['home', 'languages', 'projectVersion'];\n/** Where the other entries are decided: the building block of the app settings. */\nexport const MENU_DECIDED_BY: Partial<Record<MenuEntryKind, AppSettingBlock>> = { login: 'login', paginationType: 'pagination', terms: 'terms' };\nexport type AppSettingBlock = typeof APP_SETTING_BLOCKS[number];\n\n/** When the user signs in: never, at any time (menu entry), required at the start. */\nexport const LOGIN_WHEN = ['none', 'optional', 'start'] as const;\nexport type LoginWhen = typeof LOGIN_WHEN[number];\n\n/** Where the sign-in answer is kept: stay signed in, or signed out when the app closes. */\nexport const LOGIN_STORAGES = ['localStorage', 'sessionStorage'] as const;\nexport type LoginStorage = typeof LOGIN_STORAGES[number];\n\n/** The sign-in methods of the Configuration (environment.login.type) and the flag each writes into center.option. */\nexport const LOGIN_METHODS: Record<string, { method: 'keycloak' | 'okta' | 'jwt'; flag: string }> = {\n keycloak: { method: 'keycloak', flag: 'keycloakLogin' },\n oktaAuth: { method: 'okta', flag: 'oktaLogin' },\n jwtToken: { method: 'jwt', flag: 'jwtLogin' },\n};\n\n/** All flags a sign-in at the start may set in center.option. */\nexport const LOGIN_FLAGS: string[] = Object.values(LOGIN_METHODS).map(m => m.flag);\n\n/** The keys of center.option that describe a page (the start page, a role's page, the page before the sign-in). */\nexport const START_PAGE_KEYS = [\n 'action', 'visible', 'layout_url', 'property_url', 'data_url', 'dataKey', 'storageType',\n 'protected', 'setImageUrl', 'passToken', 'form', 'card', 'grid', 'modal',\n] as const;\n\n/** How a list pages: page by page with a bar, or loading the next page while scrolling. */\nexport const PAGINATION_TYPES = ['numbered', 'scroll'] as const;\nexport type PaginationType = typeof PAGINATION_TYPES[number];\n/** Where the page bar stands and how it is aligned. */\nexport const PAGINATION_PLACEMENTS = ['top', 'bottom'] as const;\nexport const PAGINATION_ALIGNS = ['left', 'center', 'right', 'split'] as const;\nexport type PaginationPlacement = typeof PAGINATION_PLACEMENTS[number];\nexport type PaginationAlign = typeof PAGINATION_ALIGNS[number];\n\n/** The documents of Terms & Conditions and how each is given: written text, a link, a PDF. */\nexport const TERMS_DOCUMENTS = ['imprint', 'privacy', 'agb'] as const;\nexport type TermsDocument = typeof TERMS_DOCUMENTS[number];\nexport const DOCUMENT_KINDS = ['text', 'link', 'pdf'] as const;\nexport type DocumentKind = typeof DOCUMENT_KINDS[number];\n\n/** Where the app settings stand in main/layout_schema.json; the start page is center.option. */\nexport const APP_SETTINGS_PATH = 'center.appSettings';\nexport const START_PAGE_PATH = 'center.option';\n\nexport interface AppSettingDef {\n /** the building block the setting belongs to */\n block: AppSettingBlock;\n /** its place inside center.appSettings, dotted */\n key: string;\n kind: 'choice' | 'flag' | 'text' | 'number' | 'numbers' | 'pages' | 'page' | 'documents' | 'entries';\n values?: readonly string[];\n default: any;\n}\n\n/** Every app setting, with its values and default. The start page itself is center.option (START_PAGE_KEYS). */\nexport const APP_SETTINGS: AppSettingDef[] = [\n { block: 'login', key: 'login.when', kind: 'choice', values: LOGIN_WHEN, default: 'none' },\n { block: 'login', key: 'login.storage', kind: 'choice', values: LOGIN_STORAGES, default: 'localStorage' },\n { block: 'login', key: 'login.roleKey', kind: 'text', default: '' },\n { block: 'login', key: 'login.roles', kind: 'pages', default: {} },\n { block: 'login', key: 'login.loginPage', kind: 'page', default: null },\n // scroll: the user's decision 2026-10-23 for every app\n { block: 'pagination', key: 'pagination.default', kind: 'choice', values: PAGINATION_TYPES, default: 'scroll' },\n { block: 'pagination', key: 'pagination.userChoice', kind: 'flag', default: false },\n { block: 'pagination', key: 'pagination.placement', kind: 'choice', values: PAGINATION_PLACEMENTS, default: 'bottom' },\n { block: 'pagination', key: 'pagination.align', kind: 'choice', values: PAGINATION_ALIGNS, default: 'center' },\n // the sizes the reference apps use (luv2shop, tm-test)\n { block: 'pagination', key: 'pagination.defaultPageSize', kind: 'number', default: 5 },\n { block: 'pagination', key: 'pagination.pageSizeOptions', kind: 'numbers', default: [5, 10, 15, 20] },\n { block: 'pagination', key: 'pagination.pageSize', kind: 'flag', default: true },\n // the label beside the size choice (\"Page Size\") - a text of the app, translated in the language editor\n { block: 'pagination', key: 'pagination.caption', kind: 'text', default: '' },\n { block: 'terms', key: 'terms.enabled', kind: 'flag', default: false },\n { block: 'terms', key: 'terms.confirmOnStart', kind: 'flag', default: false },\n { block: 'terms', key: 'terms.documents', kind: 'documents', values: TERMS_DOCUMENTS, default: {} },\n // the state of the terms - a new one asks everybody again (without a backend this one counts)\n { block: 'terms', key: 'terms.version', kind: 'text', default: '' },\n // keep the acceptance in the app's backend too (after the sign-in): ask for the state, send an acceptance\n { block: 'terms', key: 'terms.backend.enabled', kind: 'flag', default: false },\n { block: 'terms', key: 'terms.backend.statusUrl', kind: 'text', default: '' },\n { block: 'terms', key: 'terms.backend.acceptUrl', kind: 'text', default: '' },\n // the folder of the entries the library adds - its caption is a text of the app like any caption\n { block: 'menu', key: 'menu.caption', kind: 'text', default: 'Setting' },\n { block: 'menu', key: 'menu.style', kind: 'choice', values: MENU_STYLES, default: 'folder' },\n { block: 'menu', key: 'menu.entries', kind: 'entries', values: MENU_ENTRY_KINDS, default: MENU_ENTRY_KINDS.map(kind => ({ kind, on: true, caption: '' })) },\n];\n\nconst defaultOf = (key: string) => APP_SETTINGS.find(s => s.key === key)?.default;\n\nexport interface Pagination {\n default: PaginationType;\n userChoice: boolean;\n placement: PaginationPlacement;\n align: PaginationAlign;\n defaultPageSize: number;\n pageSizeOptions: number[];\n pageSize: boolean;\n caption: string;\n}\n\nexport interface AppSettings {\n login: {\n when: LoginWhen;\n storage: LoginStorage;\n roleKey: string;\n /** role -> its own start page, in the Designer's order */\n roles: Record<string, Bag>;\n loginPage: Bag | null;\n };\n pagination: Pagination;\n terms: {\n enabled: boolean;\n /** confirmed before anything else - before the sign-in */\n confirmOnStart: boolean;\n documents: Partial<Record<TermsDocument, { kind: DocumentKind; value: string }>>;\n /** the state of the terms ('' = the texts themselves decide) */\n version: string;\n /** the app's backend keeps the acceptance: GET statusUrl -> { version, accepted }, POST acceptUrl */\n backend: { enabled: boolean; statusUrl: string; acceptUrl: string };\n };\n /** The setting entries: the folder's caption and every kind in the Designer's order, each on or off. */\n menu: { caption: string; style: MenuStyle; entries: { kind: MenuEntryKind; on: boolean; caption: string }[] };\n}\n\nconst isIn = <T extends string>(list: readonly T[], value: any): value is T => list.includes(value);\n// a plain check, no type guard: the values stay `any`, so the library's noPropertyAccessFromIndexSignature\n// does not demand ['key'] for every setting read\nconst isObject = (value: any): boolean => !!value && typeof value === 'object' && !Array.isArray(value);\nconst isSize = (value: any) => Number.isInteger(value) && value > 0;\nconst isSizes = (value: any) => Array.isArray(value) && value.length > 0 && value.every(isSize);\n\n/** The sign-in method of a Configuration (environment.json \"environment\") and its flag; null without one. */\nexport function loginMethod(environment: Bag | any): { method: 'keycloak' | 'okta' | 'jwt'; flag: string } | null {\n return LOGIN_METHODS[environment?.login?.type] ?? null;\n}\n\n/** Only the page keys of an option object (center.option, a role's page, the page before the sign-in). */\nexport function pageOf(option: Bag | any): Bag {\n const page: Bag = {};\n if (!isObject(option)) return page;\n for (const key of START_PAGE_KEYS) if (option[key] !== undefined) page[key] = option[key];\n return page;\n}\n\n/** The general start page of a Main layout: the page keys of center.option. */\nexport function startPage(layout: Bag | any): Bag {\n return pageOf(layout?.center?.option);\n}\n\n/** A value at a dotted path (\"realm_access.roles\"); undefined when a step is missing. */\nfunction valueAt(source: any, path: string): any {\n return String(path || '').split('.').filter(Boolean).reduce((node, part) => node?.[part], source);\n}\n\n/**\n * The roles of a signed-in user: what stands at roleKey in the sign-in answer or the token's claims - a\n * text or a list. Empty without roleKey or user.\n */\nexport function rolesOf(user: Bag | any, roleKey: string): string[] {\n if (!user || !roleKey) return [];\n const value = valueAt(user, roleKey);\n const list = Array.isArray(value) ? value : value === undefined || value === null || value === '' ? [] : [value];\n return list.map(v => String(v));\n}\n\n/**\n * The start page for a signed-in user: the page of the first role in login.roles (the Designer's order) the\n * user has, compared without case; else the general start page.\n */\nexport function startPageFor(layout: Bag | any, user?: Bag | any): Bag {\n const { login } = readAppSettings(layout);\n const mine = rolesOf(user, login.roleKey).map(r => r.toLowerCase());\n for (const [role, page] of Object.entries(login.roles)) {\n if (mine.includes(role.toLowerCase())) return { action: 'get', visible: true, ...pageOf(page) };\n }\n return startPage(layout);\n}\n\n/** The pagination keys a page or Main writes - the old page keys top / bottom / position translated. */\nfunction paginationValues(source: Bag | any): Partial<Pagination> {\n const values: Partial<Pagination> = {};\n if (!isObject(source)) return values;\n if (isIn(PAGINATION_TYPES, source.default)) values.default = source.default;\n if (typeof source.userChoice === 'boolean') values.userChoice = source.userChoice;\n if (isIn(PAGINATION_PLACEMENTS, source.placement)) values.placement = source.placement;\n else if (source.top === true) values.placement = 'top';\n else if (source.bottom === true) values.placement = 'bottom';\n if (isIn(PAGINATION_ALIGNS, source.align)) values.align = source.align;\n else if (source.position === 'space-between') values.align = 'split';\n else if (isIn(PAGINATION_ALIGNS, source.position)) values.align = source.position;\n if (isSize(source.defaultPageSize)) values.defaultPageSize = source.defaultPageSize;\n else if (isSize(source.pageSize)) values.defaultPageSize = source.pageSize;\n if (isSizes(source.pageSizeOptions)) values.pageSizeOptions = [...source.pageSizeOptions];\n if (typeof source.pageSize === 'boolean') values.pageSize = source.pageSize;\n if (typeof source.caption === 'string' && source.caption.trim()) values.caption = source.caption.trim();\n return values;\n}\n\n/** The pagination of the whole app (Main), every missing or unknown value replaced by its default. */\nfunction appPagination(raw: Bag | any): Pagination {\n return {\n default: defaultOf('pagination.default'),\n userChoice: defaultOf('pagination.userChoice'),\n placement: defaultOf('pagination.placement'),\n align: defaultOf('pagination.align'),\n defaultPageSize: defaultOf('pagination.defaultPageSize'),\n pageSizeOptions: [...defaultOf('pagination.pageSizeOptions')],\n pageSize: defaultOf('pagination.pageSize'),\n caption: defaultOf('pagination.caption'),\n ...paginationValues(raw),\n };\n}\n\n/**\n * The pagination of one list: each value from the page (center.pagination of its layout) if it is there,\n * else from Main, else the default. visible: a page with center.pagination pages unless it says\n * visible false; a page without it does not page.\n */\nexport function paginationFor(main: Bag | any, page: Bag | any): Pagination & { visible: boolean } {\n const own = page?.center?.pagination;\n return {\n ...readAppSettings(main).pagination,\n ...paginationValues(own),\n visible: isObject(own) && own.visible !== false,\n };\n}\n\n/**\n * The app settings of a Main layout (main/layout_schema.json), every missing or unknown value replaced by\n * its default. A Main whose center.option carries a sign-in flag counts as \"required at the start\".\n */\nexport function readAppSettings(layout: Bag | any): AppSettings {\n const center = layout?.center ?? {};\n const raw = isObject(center.appSettings) ? center.appSettings : {};\n const option = center.option ?? {};\n // the first form wrote login as a plain string\n const rawLogin = typeof raw.login === 'string' ? { when: raw.login } : isObject(raw.login) ? raw.login : {};\n\n const when: LoginWhen = LOGIN_FLAGS.some(flag => option[flag])\n ? 'start'\n : isIn(LOGIN_WHEN, rawLogin.when) ? rawLogin.when : 'none';\n const roles: Record<string, Bag> = {};\n if (isObject(rawLogin.roles)) {\n for (const [role, page] of Object.entries(rawLogin.roles)) if (role.trim() && isObject(page)) roles[role] = pageOf(page);\n }\n\n const documents: AppSettings['terms']['documents'] = {};\n for (const key of TERMS_DOCUMENTS) {\n const doc = raw.terms?.documents?.[key];\n const value = typeof doc?.value === 'string' ? doc.value.trim() : '';\n if (value) documents[key] = { kind: isIn(DOCUMENT_KINDS, doc.kind) ? doc.kind : 'text', value };\n }\n\n return {\n login: {\n when,\n storage: isIn(LOGIN_STORAGES, rawLogin.storage) ? rawLogin.storage : 'localStorage',\n roleKey: typeof rawLogin.roleKey === 'string' ? rawLogin.roleKey.trim() : '',\n roles,\n loginPage: isObject(rawLogin.loginPage) ? pageOf(rawLogin.loginPage) : null,\n },\n pagination: appPagination(raw.pagination),\n terms: {\n enabled: raw.terms?.enabled === true,\n confirmOnStart: raw.terms?.confirmOnStart === true,\n documents,\n version: typeof raw.terms?.version === 'string' ? raw.terms.version.trim() : '',\n backend: {\n enabled: raw.terms?.backend?.enabled === true,\n statusUrl: typeof raw.terms?.backend?.statusUrl === 'string' ? raw.terms.backend.statusUrl.trim() : '',\n acceptUrl: typeof raw.terms?.backend?.acceptUrl === 'string' ? raw.terms.backend.acceptUrl.trim() : '',\n },\n },\n menu: readMenu(raw.menu),\n };\n}\n\n/** The setting entries in the given order; unknown kinds are left out, missing ones follow switched on. */\nfunction readMenu(raw: any): AppSettings['menu'] {\n const caption = typeof raw?.caption === 'string' && raw.caption.trim() ? raw.caption.trim() : 'Setting';\n const entries: { kind: MenuEntryKind; on: boolean; caption: string }[] = [];\n for (const entry of Array.isArray(raw?.entries) ? raw.entries : []) {\n if (isIn(MENU_ENTRY_KINDS, entry?.kind) && !entries.some(e => e.kind === entry.kind)) {\n const on = MENU_SWITCHABLE.includes(entry.kind) ? entry.on !== false : true;\n entries.push({ kind: entry.kind, on, caption: typeof entry.caption === 'string' ? entry.caption.trim() : '' });\n }\n }\n for (const kind of MENU_ENTRY_KINDS) if (!entries.some(e => e.kind === kind)) entries.push({ kind, on: true, caption: '' });\n return { caption, style: isIn(MENU_STYLES, raw?.style) ? raw.style : 'folder', entries };\n}\n\nexport interface AppSettingsProblem { code: string; key: string; }\n\nconst LAYOUT_URL = /^pages\\/.+\\/layout_schema\\.json$/;\n\n/** What is wrong with a page description (start page, role page, page before the sign-in). */\nfunction checkPage(page: Bag | any, key: string, problems: AppSettingsProblem[]): void {\n if (!isObject(page)) { problems.push({ code: 'notAPage', key }); return; }\n if (typeof page.layout_url !== 'string' || !LAYOUT_URL.test(page.layout_url)) problems.push({ code: 'pageWithoutLayout', key });\n}\n\n/** What is wrong with a pagination (Main's or a page's override). */\nfunction checkPagination(pagination: Bag | any, key: string, problems: AppSettingsProblem[]): void {\n if (pagination.default !== undefined && !isIn(PAGINATION_TYPES, pagination.default)) problems.push({ code: 'unknownValue', key: `${key}.default` });\n if (pagination.userChoice !== undefined && typeof pagination.userChoice !== 'boolean') problems.push({ code: 'notAFlag', key: `${key}.userChoice` });\n if (pagination.placement !== undefined && !isIn(PAGINATION_PLACEMENTS, pagination.placement)) problems.push({ code: 'unknownValue', key: `${key}.placement` });\n if (pagination.align !== undefined && !isIn(PAGINATION_ALIGNS, pagination.align)) problems.push({ code: 'unknownValue', key: `${key}.align` });\n if (pagination.defaultPageSize !== undefined && !isSize(pagination.defaultPageSize)) problems.push({ code: 'notASize', key: `${key}.defaultPageSize` });\n if (pagination.pageSizeOptions !== undefined && !isSizes(pagination.pageSizeOptions)) problems.push({ code: 'notSizes', key: `${key}.pageSizeOptions` });\n if (pagination.caption !== undefined && typeof pagination.caption !== 'string') problems.push({ code: 'notAText', key: `${key}.caption` });\n if (isSize(pagination.defaultPageSize) && isSizes(pagination.pageSizeOptions) && !pagination.pageSizeOptions.includes(pagination.defaultPageSize)) {\n problems.push({ code: 'sizeNotOffered', key: `${key}.defaultPageSize` });\n }\n}\n\n/**\n * What is wrong with the app settings of a Main layout - an empty list when nothing is. The environment\n * (environment.json \"environment\") is needed for the sign-in checks; without it they are skipped.\n */\nexport function checkAppSettings(layout: Bag | any, environment?: Bag | any): AppSettingsProblem[] {\n const problems: AppSettingsProblem[] = [];\n const center = layout?.center ?? {};\n const raw = center.appSettings;\n const option = center.option ?? {};\n const flags = LOGIN_FLAGS.filter(flag => option[flag]);\n\n if (raw !== undefined && !isObject(raw)) return [{ code: 'notAnObject', key: APP_SETTINGS_PATH }];\n const settings = raw ?? {};\n\n checkPage(startPage(layout), START_PAGE_PATH, problems);\n\n const login = typeof settings.login === 'string' ? { when: settings.login } : settings.login;\n if (login !== undefined && !isObject(login)) problems.push({ code: 'notAnObject', key: 'login' });\n const loginBag = isObject(login) ? login : {};\n const when = loginBag.when;\n if (when !== undefined && !isIn(LOGIN_WHEN, when)) problems.push({ code: 'unknownValue', key: 'login.when' });\n if (loginBag.storage !== undefined && !isIn(LOGIN_STORAGES, loginBag.storage)) problems.push({ code: 'unknownValue', key: 'login.storage' });\n if (loginBag.roleKey !== undefined && typeof loginBag.roleKey !== 'string') problems.push({ code: 'notAText', key: 'login.roleKey' });\n if (loginBag.roles !== undefined) {\n if (!isObject(loginBag.roles)) problems.push({ code: 'notAnObject', key: 'login.roles' });\n else {\n for (const [role, page] of Object.entries(loginBag.roles)) checkPage(page, `login.roles.${role}`, problems);\n if (Object.keys(loginBag.roles).length && !String(loginBag.roleKey ?? '').trim()) problems.push({ code: 'rolesWithoutRoleKey', key: 'login.roleKey' });\n }\n }\n if (loginBag.loginPage !== undefined) checkPage(loginBag.loginPage, 'login.loginPage', problems);\n\n if (flags.length > 1) problems.push({ code: 'severalLoginFlags', key: 'login.when' });\n if (when === 'start' && !flags.length) problems.push({ code: 'startWithoutLoginFlag', key: 'login.when' });\n if (flags.length && when !== undefined && when !== 'start') problems.push({ code: 'loginFlagWithoutStart', key: 'login.when' });\n if (environment) {\n const method = loginMethod(environment);\n const wantsLogin = flags.length || when === 'start' || when === 'optional';\n if (wantsLogin && !method) problems.push({ code: 'noLoginMethod', key: 'login.when' });\n if (method && flags.length && !flags.includes(method.flag)) problems.push({ code: 'loginFlagNotMethod', key: 'login.when' });\n }\n\n if (settings.pagination !== undefined) {\n if (!isObject(settings.pagination)) problems.push({ code: 'notAnObject', key: 'pagination' });\n else checkPagination(settings.pagination, 'pagination', problems);\n }\n\n const terms = settings.terms;\n if (terms !== undefined) {\n for (const key of ['enabled', 'confirmOnStart']) {\n if (terms[key] !== undefined && typeof terms[key] !== 'boolean') problems.push({ code: 'notAFlag', key: `terms.${key}` });\n }\n const documents = terms.documents ?? {};\n for (const [name, doc] of Object.entries<any>(documents)) {\n const key = `terms.documents.${name}`;\n if (!isIn(TERMS_DOCUMENTS, name)) { problems.push({ code: 'unknownDocument', key }); continue; }\n if (!isIn(DOCUMENT_KINDS, doc?.kind)) problems.push({ code: 'unknownValue', key: `${key}.kind` });\n if (typeof doc?.value !== 'string' || !doc.value.trim()) problems.push({ code: 'emptyDocument', key });\n }\n if (terms.enabled === true && !TERMS_DOCUMENTS.some(name => documents[name]?.value?.trim?.())) {\n problems.push({ code: 'termsWithoutDocument', key: 'terms.documents' });\n }\n if (terms.confirmOnStart === true && terms.enabled !== true) problems.push({ code: 'confirmWithoutTerms', key: 'terms.confirmOnStart' });\n if (terms.version !== undefined && typeof terms.version !== 'string') problems.push({ code: 'notAText', key: 'terms.version' });\n const backend = terms.backend;\n if (backend !== undefined) {\n if (!isObject(backend)) problems.push({ code: 'notAnObject', key: 'terms.backend' });\n else {\n if (backend.enabled !== undefined && typeof backend.enabled !== 'boolean') problems.push({ code: 'notAFlag', key: 'terms.backend.enabled' });\n if (backend.enabled === true) {\n for (const key of ['statusUrl', 'acceptUrl']) {\n if (typeof backend[key] !== 'string' || !backend[key].trim()) problems.push({ code: 'backendWithoutUrl', key: `terms.backend.${key}` });\n }\n }\n }\n }\n }\n\n const menu = settings.menu;\n if (menu !== undefined) {\n if (!isObject(menu)) problems.push({ code: 'notAnObject', key: 'menu' });\n else {\n if (menu.caption !== undefined && (typeof menu.caption !== 'string' || !menu.caption.trim())) problems.push({ code: 'notAText', key: 'menu.caption' });\n if (menu.entries !== undefined && !Array.isArray(menu.entries)) problems.push({ code: 'notAList', key: 'menu.entries' });\n if (menu.style !== undefined && !isIn(MENU_STYLES, menu.style)) problems.push({ code: 'unknownValue', key: 'menu.style' });\n const seen = new Set<string>();\n for (const [i, entry] of (Array.isArray(menu.entries) ? menu.entries : []).entries()) {\n const key = `menu.entries.${i}`;\n if (!isIn(MENU_ENTRY_KINDS, entry?.kind)) { problems.push({ code: 'unknownValue', key: `${key}.kind` }); continue; }\n if (seen.has(entry.kind)) problems.push({ code: 'duplicateEntry', key: `${key}.kind` });\n seen.add(entry.kind);\n if (entry.on !== undefined && typeof entry.on !== 'boolean') problems.push({ code: 'notAFlag', key: `${key}.on` });\n else if (entry.on !== undefined && !MENU_SWITCHABLE.includes(entry.kind)) problems.push({ code: 'decidedElsewhere', key: `${key}.on` });\n if (entry.caption !== undefined && typeof entry.caption !== 'string') problems.push({ code: 'notAText', key: `${key}.caption` });\n }\n }\n }\n\n return problems;\n}\n\n/** What is wrong with the page bar of one page (center.pagination of its layout): the same values as Main's. */\nexport function checkPagePagination(page: Bag | any): AppSettingsProblem[] {\n const problems: AppSettingsProblem[] = [];\n const own = page?.center?.pagination;\n if (own === undefined) return problems;\n if (!isObject(own)) return [{ code: 'notAnObject', key: 'center.pagination' }];\n checkPagination(own, 'center.pagination', problems);\n for (const old of ['top', 'bottom', 'position']) if (own[old] !== undefined) problems.push({ code: 'oldKey', key: `center.pagination.${old}` });\n if (isSize(own.pageSize)) problems.push({ code: 'oldKey', key: 'center.pagination.pageSize' });\n return problems;\n}\n\n/** The captions of the entries the library adds - keys of the app's language files (English text). */\nexport const SETTING_MENU_TEXTS = {\n setting: 'Setting', home: 'Home', projectVersion: 'Project Version', languages: 'Languages', login: 'Login',\n paginationType: 'Pagination Type', scroll: 'Scroll', numbered: 'Numbered', terms: 'Terms & Conditions',\n imprint: 'Imprint', privacy: 'Privacy', agb: 'Terms',\n} as const;\n\n/** The name of a language in that language (\"de\" -> \"Deutsch\"); the code when it is unknown. */\nexport function languageName(code: string): string {\n try {\n const name = new Intl.DisplayNames([code], { type: 'language' }).of(code);\n return name ? name.charAt(0).toUpperCase() + name.slice(1) : code;\n } catch {\n return code;\n }\n}\n\n/**\n * The side menu with the entries the library adds by itself for an app with app settings: into the\n * top-level folder \"Setting\" (caption, any case), else a folder \"Setting\" at the end. languages: the codes\n * of the project's language files (\"en\", \"de\"); signedIn: whether a user is signed in. The given menu is\n * not changed; without app settings it comes back as it is.\n */\nexport function appSettingsMenu(menu: any[], center: Bag | any, context: { languages?: string[]; signedIn?: boolean } = {}): any[] {\n const items = Array.isArray(menu) ? menu : [];\n if (!isObject(center?.appSettings)) return items;\n const settings = readAppSettings({ center });\n const t = SETTING_MENU_TEXTS;\n const entry = (caption: string, icon: string, option: Bag) => ({ label: { caption }, icon, option: { visible: true, ...option } });\n const languages = [...new Set(context.languages ?? [])];\n const documents = TERMS_DOCUMENTS.filter(name => settings.terms.documents[name]);\n\n // each kind: its entry, or null when it does not apply (one language, signed in, switched off in Main …)\n const build: Record<MenuEntryKind, () => any> = {\n home: () => entry(t.home, 'home', { home: true }),\n languages: () => languages.length > 1 ? {\n label: { caption: t.languages }, icon: 'global', option: { visible: true },\n // no icon: a country's flag does not stand for a language\n submenu: languages.map(code => entry(languageName(code), '', { changeLang: true, data_url: `${code}.json` })),\n } : null,\n login: () => settings.login.when === 'optional' && !context.signedIn ? entry(t.login, 'login', { action: 'login', form: true }) : null,\n paginationType: () => settings.pagination.userChoice ? {\n label: { caption: t.paginationType }, icon: 'ordered-list', option: { visible: true },\n submenu: [entry(t.scroll, 'down', { scrollPagination: true }), entry(t.numbered, 'ordered-list', { numberedPagination: true })],\n } : null,\n terms: () => settings.terms.enabled && documents.length ? {\n label: { caption: t.terms }, icon: 'file-text', option: { visible: true },\n submenu: documents.map(name => entry(t[name], 'file-text', { terms: true, document: { ...settings.terms.documents[name] } })),\n } : null,\n projectVersion: () => entry(t.projectVersion, 'info-circle', { projectVersion: true }),\n };\n // an entry's own caption (Main) wins over the fixed text; it is a text of the app like any caption\n // footer: languages, terms and the version stand at the foot of the menu (appSettingsFooter); home is the menu's\n // own start entry there - only sign-in and paging stay in the folder, when they apply\n const inFooter = new Set<MenuEntryKind>(settings.menu.style === 'footer' ? ['languages', 'terms', 'projectVersion', 'home'] : []);\n const added = settings.menu.entries.filter(e => e.on && !inFooter.has(e.kind)).map(e => {\n const item = build[e.kind]();\n return item && e.caption ? { ...item, label: { ...item.label, caption: e.caption } } : item;\n }).filter(Boolean);\n if (!added.length) return items;\n\n const caption = settings.menu.caption;\n const at = items.findIndex(item => Array.isArray(item?.submenu) && String(item?.label?.caption ?? '').trim().toLowerCase() === caption.toLowerCase());\n if (at >= 0) {\n const folder = items[at];\n return items.map((item, i) => (i === at ? { ...folder, submenu: [...folder.submenu, ...added] } : item));\n }\n return [...items, { label: { caption }, icon: 'setting', option: { visible: true }, submenu: added }];\n}\n\n/** The foot of the side menu (menu.style footer): the languages, the documents of the terms and whether the version shows. */\nexport interface AppSettingsFooter {\n languages: { code: string; name: string; option: Bag }[];\n documents: { name: TermsDocument; caption: string; option: Bag }[];\n version: boolean;\n}\n\n/** The foot of the side menu for menu.style footer; null for the folder or without app settings. */\nexport function appSettingsFooter(center: Bag | any, context: { languages?: string[] } = {}): AppSettingsFooter | null {\n if (!isObject(center?.appSettings)) return null;\n const settings = readAppSettings({ center });\n if (settings.menu.style !== 'footer') return null;\n const on = (kind: MenuEntryKind) => settings.menu.entries.find(e => e.kind === kind)?.on !== false;\n const own = (kind: MenuEntryKind) => settings.menu.entries.find(e => e.kind === kind)?.caption || '';\n const languages = on('languages') ? [...new Set(context.languages ?? [])] : [];\n const t = SETTING_MENU_TEXTS;\n return {\n languages: languages.length > 1 ? languages.map(code => ({ code, name: languageName(code), option: { changeLang: true, data_url: `${code}.json` } })) : [],\n documents: settings.terms.enabled ? TERMS_DOCUMENTS.filter(name => settings.terms.documents[name])\n .map(name => ({ name, caption: t[name], option: { terms: true, document: { ...settings.terms.documents[name] } } })) : [],\n version: on('projectVersion'),\n };\n}\n\n// ---------------------------------------------------------------- finding a menu entry (2026-10-31)\n// One way for the app's test runner and the device runner (before: three, searching to different depths and\n// reading the caption differently - a page under elements / children was not found by the device runner).\n\n/** An entry's caption as written in Main: label.caption, a plain label, or caption. */\nexport function menuCaption(item: any): string {\n const label = item?.label;\n return String((label && typeof label === 'object' ? label.caption : label) ?? item?.caption ?? '');\n}\n\n/** The page an entry opens as tests name it (\"pages/sidemenu/books/layout_schema.json\" -> \"sidemenu/books\"); '' without. */\nexport function menuPage(item: any): string {\n return /^pages\\/(.+)\\/layout_schema\\.json$/.exec(String(item?.option?.layout_url ?? ''))?.[1] ?? '';\n}\n\n/** Every entry of a menu, at any depth (submenu, elements, children), with its path of captions. */\nexport function menuEntries(items: any[] | null | undefined, path: string[] = []): { item: any; caption: string; page: string; path: string[] }[] {\n const out: { item: any; caption: string; page: string; path: string[] }[] = [];\n for (const item of Array.isArray(items) ? items : []) {\n if (!item || typeof item !== 'object') continue;\n const caption = menuCaption(item);\n out.push({ item, caption, page: menuPage(item), path: [...path, caption] });\n for (const key of ['submenu', 'elements', 'children']) {\n if (Array.isArray(item[key])) out.push(...menuEntries(item[key], [...path, caption]));\n }\n }\n return out;\n}\n\n/** The entry that opens a page (its folder under pages/), at any depth. */\nexport function menuEntryForPage(items: any[] | null | undefined, page: string): any {\n return menuEntries(items).find((e) => e.page === page)?.item ?? null;\n}\n\n/**\n * The entry with this caption that opens a page, at any depth: the caption as written in Main, or - the app shows\n * it translated - the text the language file has for it (texts: written text -> shown text).\n */\nexport function menuEntryByCaption(items: any[] | null | undefined, caption: string, texts: Record<string, string> = {}): any {\n const want = [caption, texts[caption]].filter((t): t is string => typeof t === 'string' && !!t);\n return menuEntries(items).find((e) => e.page && want.includes(e.caption))?.item ?? null;\n}\n\n/**\n * What the header does when the page scrolls (main/layout_schema.json header.option.scroll, user 2026-11-01):\n * fixed - stays at the top (default, usual for shops and apps on every device); hideOnScroll - moves away while\n * scrolling down and comes back at once when scrolling up (\"quick return\", room on a phone); scrollsAlong - scrolls\n * away with the page: cart, search and the page X are out of reach after scrolling, and going back from them puts\n * a list at its top (found 2026-11-01, luv2shop a06).\n */\nexport const HEADER_SCROLLS = ['fixed', 'hideOnScroll', 'scrollsAlong'] as const;\nexport type HeaderScroll = (typeof HEADER_SCROLLS)[number];\n\n/** The header's behaviour when the page scrolls - its option.scroll when known, else fixed. */\nexport function headerScrollOf(header: any): HeaderScroll {\n const own = header?.option?.scroll;\n return (HEADER_SCROLLS as readonly string[]).includes(own) ? own : 'fixed';\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-17\n// - new: keepFilter on a load from the backend - a filter page opened again shows the last filter values and its list\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-13\n// - new: check \"addon:<name>\" on save (backend), saveAll and submit (browser and backend) - the add-on checks the record\n// before it is kept or sent (OFFENE-PUNKTE 225 B)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-12\n// - new: perUser belongs to every browser source with data_url - records kept per signed-in user (record-format.ts)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-10\n// - new: waitsForFilter - a source that names its filters (dataSource.filters) waits for them\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07\n// - change: route opens the directions from where the user is, not only the place (point 213 worklist 41, 2026-11-09)\n// - new: innerAction contact - phone, WhatsApp, e-mail, SMS, route, web on the user's device (contactLink, CONTACT_KINDS;\n// point 213 worklist 16)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-03\n// - new: convertOlderForms - an app's pages and Main written in the new form (OFFENE-PUNKTE 105/145 step 5): every\n// element's action as withElementAction writes it, a menu entry's call moved into its page (dataSource) when that\n// page is opened by nothing else (a sign-out entry showing the page afterwards takes its source); what stays (header search field, cart, a page opened in several ways) is listed\n// - fix: an unknown innerAction is no action (old names it for the check) - it was taken as one\n// - change: callKindOf reads the new form too (action saveAll / loginForm, innerAction openPage) through elementAction\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n// - new: action and innerAction (OFFENE-PUNKTE 105/145): innerAction runs in the app, action calls the backend;\n// INNER_ACTIONS, BACKEND_ACTIONS, elementAction (reads every older form), withElementAction, checkElementAction,\n// actionName / actionParams for the code; withPageSource - a page's own data source (dataSource, 145);\n// loginForm - a sign-in form sending to the backend is a backend action (innerAction login with an address before;\n// not signIn - that is the test step that signs a test user in)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-30\n// - new: rowAction (an icon of a grid row: any method, default GET - hotel approves with GET), OLD_CALL_KEYS and\n// successMessageOf (notifcation.success of older data)\n// - new: the action catalog - the ONE place that says what an element does with its records and which\n// attributes count for it (OFFENE-PUNKTE 144). Three questions, three places in an option:\n// what action / innerAction (get, save, delete, saveAll, submit, login …) - CALL_KIND_OF\n// where storageType: browser (localstorage / sessionstorage) or backend (database) - STORAGES\n// how only the attributes of that storage and that kind - CALL_KINDS[kind].browser / .backend\n// The older storageType \"filter\" is a backend that waits for its filter fields (database + loadOnFilter).\n// The library, the Designer (<app-call-settings>), the AI contract (capabilities.json) and validate.py read\n// it from here instead of keeping their own lists. No Angular, no texts.\n\n/** Where records are kept. The first two stay in the browser, database is the backend. */\nexport const STORAGES = ['localstorage', 'sessionstorage', 'database'] as const;\nexport type Storage = (typeof STORAGES)[number];\nexport const BROWSER_STORAGES: readonly string[] = ['localstorage', 'sessionstorage'];\n\n/** Storage values of older data and what they mean now. */\nexport const OLD_STORAGES: Readonly<Record<string, { storageType: Storage; loadOnFilter?: boolean }>> = {\n filter: { storageType: 'database', loadOnFilter: true },\n};\n\n/** What an element does with its records - it decides which attributes are offered. */\nexport type CallKind = 'load' | 'link' | 'select' | 'save' | 'saveAll' | 'submit' | 'delete' | 'login' | 'rowAction';\n\nexport interface CallKindRule {\n /** what it does (for the contract and the Designer's help) */\n does: string;\n /** the storages it may use; one only: no choice is offered */\n storages: readonly Storage[];\n /** the storage when none is written */\n defaultStorage: Storage;\n /** the key the address is written under */\n addressKey: 'data_url' | 'url';\n /** the methods, the default first (it is not written) */\n methods: readonly string[];\n /** the attributes with a browser storage (besides storageType) */\n browser: readonly string[];\n /** the attributes with the backend (besides storageType) */\n backend: readonly string[];\n}\n\nconst MESSAGES = ['successMessage', 'errorMessage'] as const;\n\nexport const CALL_KINDS: Readonly<Record<CallKind, CallKindRule>> = {\n load: {\n does: 'A menu entry or page shows records: from the browser storage, or loaded from the backend (optionally only once the filter fields are filled).',\n storages: ['localstorage', 'sessionstorage', 'database'], defaultStorage: 'database', addressKey: 'data_url',\n methods: ['GET', 'POST'],\n browser: ['data_url', 'perUser'],\n backend: ['data_url', 'proxy', 'method', 'passToken', 'params', 'body', 'dateFormat', 'dataKey', 'loadOnFilter', 'keepFilter', 'emptyMessage', 'errorMessage'],\n },\n link: {\n does: 'A button opens a detail page that loads its record from the address; the button itself calls nothing.',\n storages: ['database'], defaultStorage: 'database', addressKey: 'data_url',\n methods: [],\n browser: [],\n backend: ['data_url', 'proxy', 'dataKey'],\n },\n select: {\n does: 'A selection list loads its choices from the backend (option.autocomplete).',\n storages: ['database'], defaultStorage: 'database', addressKey: 'url',\n methods: ['POST', 'GET'],\n browser: [],\n // option.autocomplete writes url; a selection field of its own (luv2shop countries) data_url\n backend: ['url', 'data_url', 'proxy', 'method', 'passToken', 'params', 'body', 'dataKey', 'errorMessage'],\n },\n save: {\n does: 'A card button sends this one record to the backend, or keeps it in a browser list (data_url = its name): with key a second click takes it out again, maxRecords keeps the newest.',\n storages: ['localstorage', 'sessionstorage', 'database'], defaultStorage: 'database', addressKey: 'data_url',\n methods: ['POST', 'PUT'],\n browser: ['data_url', 'perUser', 'key', 'maxRecords', 'deleteMessage', ...MESSAGES],\n backend: ['data_url', 'proxy', 'method', 'passToken', 'params', 'body', 'dateFormat', 'check', 'transform', 'afterSuccess', ...MESSAGES],\n },\n saveAll: {\n does: 'A header button sends all records of the page to the backend, one by one or in one call.',\n storages: ['database'], defaultStorage: 'database', addressKey: 'data_url',\n methods: ['POST', 'PUT'],\n browser: [],\n backend: ['data_url', 'proxy', 'method', 'passToken', 'params', 'body', 'dateFormat', 'check', 'transform', 'sendMode', 'afterSuccess', ...MESSAGES],\n },\n submit: {\n does: 'A form or dialog button keeps its record in the browser storage (with key: a record of the same key value is replaced) or sends it to the backend.',\n storages: ['localstorage', 'sessionstorage', 'database'], defaultStorage: 'localstorage', addressKey: 'data_url',\n methods: ['POST', 'PUT'],\n browser: ['data_url', 'perUser', 'key', 'check', 'afterSuccessPage', ...MESSAGES],\n backend: ['data_url', 'proxy', 'method', 'passToken', 'params', 'body', 'dateFormat', 'check', 'transform', 'afterSuccess', 'afterSuccessPage', ...MESSAGES],\n },\n delete: {\n does: 'A button deletes the record - from the browser storage or at the backend; it asks first.',\n storages: ['localstorage', 'sessionstorage', 'database'], defaultStorage: 'database', addressKey: 'data_url',\n methods: ['DELETE', 'POST'],\n browser: ['data_url', 'perUser', 'confirmDelete', 'deleteMessage', ...MESSAGES],\n backend: ['data_url', 'proxy', 'method', 'passToken', 'params', 'key', 'confirmDelete', 'deleteMessage', ...MESSAGES],\n },\n rowAction: {\n does: 'An icon of a grid row (action column save / delete) calls its address with the row\\'s fields ({{field}}) and changes only this row after success - the answer, else afterSuccessSet. A key \"{{field}}\" with a value shows the icon only on rows where that field has that value (hotel: \"{{reservationStatus}}\": \"PENDING\").',\n storages: ['localstorage', 'sessionstorage', 'database'], defaultStorage: 'database', addressKey: 'data_url',\n methods: ['GET', 'POST', 'PUT', 'DELETE'],\n browser: ['data_url', 'perUser', 'key', 'maxRecords', 'deleteMessage', ...MESSAGES],\n backend: ['data_url', 'proxy', 'method', 'passToken', 'key', 'afterSuccessSet', ...MESSAGES],\n },\n login: {\n does: 'A sign-in form sends its fields to the backend and keeps the answer (loginResponse, userRoleMapping beside it).',\n storages: ['database'], defaultStorage: 'database', addressKey: 'url',\n methods: ['POST'],\n browser: [],\n backend: ['url', 'proxy', 'method', 'errorMessage'],\n },\n};\n\n/** Every attribute of storage and call - an option key outside this list is no business of the catalog. */\nexport const CALL_KEYS: readonly string[] = [...new Set(['storageType',\n ...Object.values(CALL_KINDS).flatMap((rule) => [...rule.browser, ...rule.backend])])];\n\n/** Keys of older data and what they are now - read as before, the Designer writes the new key. */\nexport const OLD_CALL_KEYS: Readonly<Record<string, string>> = {\n 'notifcation.success': 'successMessage',\n 'notification.success': 'successMessage',\n};\n\n/** The message after success: successMessage, else the older notification(s).success. */\nexport function successMessageOf(option: any): string {\n return String(option?.successMessage ?? option?.notification?.success ?? option?.notifcation?.success ?? '').trim();\n}\n\n/** Actions that keep no records and call nothing - no storage, no attributes of this catalog. */\nexport const NO_CALL_ACTIONS: Readonly<Record<string, string>> = {\n 'action:login': 'starts the Keycloak sign-in (a redirect, no call of the app)',\n 'action:logout': 'signs out',\n 'action:cart': 'shows the cart; its data_url is the browser key of the cart (cartInfo)',\n 'innerAction:showModal': 'opens a dialog',\n 'innerAction:cancel': 'closes a dialog',\n 'innerAction:addToCart': 'adds to the cart in the browser',\n};\n\n/** The kind of an element by its action / innerAction and where it stands (a menu entry or page loads). */\nexport function callKindOf(option: any, place: 'menu' | 'page' | 'button' | 'autocomplete' = 'button'): CallKind | null {\n if (place === 'autocomplete') return 'select';\n // what it does in the new form - older forms read the same (innerAction saveAll is action saveAll …)\n const found = elementAction(option, place === 'button' ? 'button' : 'menu');\n if (found.action) return BACKEND_ACTIONS[found.action].kind;\n if (found.innerAction === 'openPage') return 'link';\n if (found.innerAction) return null;\n if (place === 'menu' || place === 'page') return 'load';\n return null;\n}\n\n/** The storage an option means: its storageType (any case, an old value translated), else the kind's default. */\nexport function storageOf(option: any, kind: CallKind): Storage {\n const type = String(option?.storageType ?? '').trim().toLowerCase();\n if ((STORAGES as readonly string[]).includes(type)) return type as Storage;\n if (OLD_STORAGES[type]) return OLD_STORAGES[type].storageType;\n // older data: a method without storageType means the backend (luv2shop's purchase: method post, no storageType)\n if (!type && option?.method) return 'database';\n if (!type && option?.localStorage === true) return 'localstorage';\n if (!type && option?.sessionStorage === true) return 'sessionstorage';\n return CALL_KINDS[kind].defaultStorage;\n}\n\n/** True when the option waits for its filter fields before loading (loadOnFilter, or the older storageType \"filter\"). */\nexport function waitsForFilter(option: any): boolean {\n const type = String(option?.storageType ?? '').trim().toLowerCase();\n // a page that names its filters (dataSource.filters) waits for them too (2026-11-10, filters without data fields)\n return option?.loadOnFilter === true || OLD_STORAGES[type]?.loadOnFilter === true\n || (Array.isArray(option?.filters) && option.filters.length > 0);\n}\n\n/** The attributes that count for this kind with this storage. */\nexport function callAttributes(kind: CallKind, storage: Storage): readonly string[] {\n const rule = CALL_KINDS[kind];\n return BROWSER_STORAGES.includes(storage) ? rule.browser : rule.backend;\n}\n\n/** The method an option uses: its own (upper case), else the kind's default; '' when the kind has none. */\nexport function methodOf(option: any, kind: CallKind): string {\n return String(option?.method || CALL_KINDS[kind].methods[0] || '').toUpperCase();\n}\n\nexport interface CallProblem {\n code: 'storage-unknown' | 'storage-old' | 'storage-not-allowed' | 'attribute-not-for-storage' | 'method-unknown' | 'address-missing';\n key?: string;\n message: string;\n}\n\n/**\n * Checks one option against its kind: a known storage the kind may use, only attributes of that storage, a method of\n * the kind, an address for the backend. Keys outside CALL_KEYS (style, visible, …) are not looked at.\n */\nexport function checkCall(option: any, kind: CallKind): CallProblem[] {\n const problems: CallProblem[] = [];\n const rule = CALL_KINDS[kind];\n const raw = String(option?.storageType ?? '').trim().toLowerCase();\n if (raw && !(STORAGES as readonly string[]).includes(raw) && !OLD_STORAGES[raw]) {\n problems.push({ code: 'storage-unknown', key: 'storageType', message: `storageType \"${option.storageType}\" is unknown - ${STORAGES.join(' | ')}` });\n }\n if (OLD_STORAGES[raw]) {\n problems.push({ code: 'storage-old', key: 'storageType', message: `storageType \"${raw}\" is the older form of storageType \"${OLD_STORAGES[raw].storageType}\"${OLD_STORAGES[raw].loadOnFilter ? ' with loadOnFilter: true' : ''}` });\n }\n const storage = storageOf(option, kind);\n if (!rule.storages.includes(storage)) {\n problems.push({ code: 'storage-not-allowed', key: 'storageType', message: `${kind} keeps no records in \"${storage}\" - ${rule.storages.join(' | ')}` });\n // the attributes follow the storage - with a wrong one they say nothing more\n return problems;\n }\n const allowed = new Set(['storageType', ...callAttributes(kind, storage)]);\n for (const key of Object.keys(option ?? {})) {\n if (CALL_KEYS.includes(key) && !allowed.has(key) && option[key] !== undefined && option[key] !== null && option[key] !== '') {\n problems.push({ code: 'attribute-not-for-storage', key, message: `${key} means nothing for ${kind} with storage \"${storage}\"` });\n }\n }\n if (option?.method && rule.methods.length && !rule.methods.includes(String(option.method).toUpperCase())) {\n problems.push({ code: 'method-unknown', key: 'method', message: `method \"${option.method}\" - ${kind} uses ${rule.methods.join(' | ')}` });\n }\n // a page without records (a form only) needs no address - only what sends or picks from the backend\n if (storage === 'database' && kind !== 'link' && kind !== 'load' && !String(option?.[rule.addressKey] ?? option?.data_url ?? option?.url ?? '').trim()) {\n problems.push({ code: 'address-missing', key: rule.addressKey, message: `${kind} with the backend needs an address (${rule.addressKey})` });\n }\n return problems;\n}\n\n// ---- action and innerAction (OFFENE-PUNKTE 105/145, user 2026-11-02) ----\n// innerAction: runs only in the app, nothing goes to the backend. action: calls the backend - how (address, GET or\n// POST, token, parameters) is the field group of the call (CALL_KINDS), never the name of the action. A menu entry\n// has none: it opens its page, and the page loads its own records.\n\n/** Where an action stands. A field is a checkbox or input of a form, a column a column of a table. */\nexport type ActionPlace = 'menu' | 'button' | 'field' | 'column';\n\nexport interface ActionRule {\n /** what it does, for the (i) */\n does: string;\n /** where it may stand */\n places: readonly ActionPlace[];\n /** the option keys that belong to it besides the action itself */\n keys: readonly string[];\n}\n\n/** Actions that stay in the app. */\nexport const INNER_ACTIONS: Readonly<Record<string, ActionRule>> = {\n openPage: { does: 'Opens a page (a detail page of the record) - the page loads its records itself; values of the record go along as {{record.<field>}}.', places: ['button'], keys: ['layout_url'] },\n filter: { does: 'A form button opens a page with the form\\'s fields as filter values: {{filter.<field>}} in the data_url of the button.', places: ['button'], keys: ['layout_url', 'property_url', 'data_url', 'dataKey'] },\n addToCart: { does: 'Puts the record into the cart in the browser.', places: ['button'], keys: [] },\n showModal: { does: 'Opens a dialog.', places: ['button'], keys: ['layout_url'] },\n cancel: { does: 'Closes the dialog without saving; on a form page the fields go back to their start.', places: ['button'], keys: [] },\n openPdf: { does: 'Shows the PDF whose address stands in a field of the record (propertyKey) inside the app; without an address the button stays away.', places: ['button'], keys: ['propertyKey'] },\n login: { does: 'Starts the sign-in at Keycloak or Okta (a redirect to their sign-in page) - a form that sends user name and password to the app\\'s backend is action loginForm.', places: ['button', 'menu'], keys: [] },\n logout: { does: 'Signs out.', places: ['button', 'menu'], keys: [] },\n cart: { does: 'Shows the cart.', places: ['button', 'menu'], keys: [] },\n copy: { does: 'Copies the values of one data object into another, e.g. the shipping address into the billing address.', places: ['field'], keys: ['from', 'to'] },\n calculate: { does: 'Shows a value calculated from fields of the record, e.g. quantity × price.', places: ['column'], keys: ['operator', 'fields'] },\n contact: { does: 'Opens the phone, WhatsApp, e-mail, SMS, a route in the maps app or a web page on the user\\'s device - the app sends nothing itself. contactKind: phone | whatsapp | email | sms | route | web; contactValue: the number (WhatsApp with its country code, e.g. +49 221 1234567), the e-mail address, the street address or the web address; contactText (optional): a prepared message or subject.', places: ['button', 'menu'], keys: ['contactKind', 'contactValue', 'contactText'] },\n};\n\n/** The kinds of the action contact (2026-11-07, point 213 worklist 16). */\nexport const CONTACT_KINDS = ['phone', 'whatsapp', 'email', 'sms', 'route', 'web'] as const;\nexport type ContactKind = typeof CONTACT_KINDS[number];\n\n/** The icon a contact button shows when it names none itself (ant-design names; the app registers them). */\nexport const CONTACT_ICONS: Readonly<Record<ContactKind, string>> = {\n phone: 'phone', whatsapp: 'whats-app', email: 'mail', sms: 'message', route: 'environment', web: 'global',\n};\n\n/**\n * The link the action contact opens, or '' when the value does not fit the kind:\n * phone tel:, whatsapp https://wa.me/<digits> (country code needed), email mailto:, sms sms:, route the directions in the maps app (from where the user is),\n * web an http(s) address. A message (contactText) goes with WhatsApp, e-mail (subject) and SMS.\n */\nexport function contactLink(kind: unknown, value: unknown, text?: unknown): string {\n const v = String(value ?? '').trim();\n const t = String(text ?? '').trim();\n if (!v) return '';\n const digits = v.replace(/[^\\d+]/g, '');\n switch (kind) {\n case 'phone':\n return /^\\+?\\d{3,}$/.test(digits) ? `tel:${digits}` : '';\n case 'sms':\n return /^\\+?\\d{3,}$/.test(digits) ? `sms:${digits}${t ? `?&body=${encodeURIComponent(t)}` : ''}` : '';\n case 'whatsapp': {\n // wa.me takes the international number without + and without leading zeros: +49 221 … -> 49221…\n const intl = digits.startsWith('+') ? digits.slice(1) : digits.startsWith('00') ? digits.slice(2) : '';\n return /^\\d{6,}$/.test(intl) ? `https://wa.me/${intl}${t ? `?text=${encodeURIComponent(t)}` : ''}` : '';\n }\n case 'email':\n return /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(v) ? `mailto:${v}${t ? `?subject=${encodeURIComponent(t)}` : ''}` : '';\n case 'route':\n // directions from where the user is (point 213 / 41): the maps app on the phone, Google Maps in a browser\n return `https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(v)}`;\n case 'web':\n return /^https?:\\/\\/[^\\s]+$/i.test(v) ? v : '';\n default:\n return '';\n }\n}\n\n/** Actions that call the backend - each with its kind of call (CALL_KINDS). */\nexport const BACKEND_ACTIONS: Readonly<Record<string, ActionRule & { kind: CallKind }>> = {\n save: { does: 'Saves the record.', places: ['button'], keys: [], kind: 'save' },\n saveAll: { does: 'Saves all records of the list.', places: ['button'], keys: [], kind: 'saveAll' },\n submit: { does: 'Sends the form (e.g. an order).', places: ['button'], keys: [], kind: 'submit' },\n delete: { does: 'Deletes the record.', places: ['button'], keys: [], kind: 'delete' },\n loginForm: { does: 'Signs in with the form\\'s user name and password at the app\\'s backend (a JWT sign-in form).', places: ['button'], keys: ['propertyKey', 'loginResponse', 'userRoleMapping'], kind: 'login' },\n};\n\n/** The operators of calculate. */\nexport const CALCULATE_OPERATORS = ['multiply', 'add', 'subtract', 'divide'] as const;\n\n/** What an element does, in the new form - read from the new form and from every older one. */\nexport interface ElementAction {\n /** the backend action (save, saveAll, submit, delete) */\n action?: string;\n /** the app action (openPage, addToCart, showModal, cancel, login, logout, cart, copy, calculate) */\n innerAction?: string;\n /** the keys that belong to it (from, to, operator, fields) */\n params: Record<string, any>;\n /** the value as it stood, when it is not the new form (for the check and the conversion) */\n old?: string;\n}\n\n/**\n * What an element does. Older forms are understood: a menu entry's action \"get\" (opens its page - no action),\n * its cart / login / logout; a button's action \"get\" (openPage); innerAction saveAll / submit (backend actions);\n * innerAction as an object { action: copy | multiply, from, to }.\n */\nexport function elementAction(option: any, place: ActionPlace): ElementAction {\n const action = option?.action;\n const inner = option?.innerAction;\n // innerAction as an object: { action: 'copy' | 'multiply', from, to }\n if (inner && typeof inner === 'object') {\n const kind = String(inner.action ?? '');\n if (kind === 'copy') return { innerAction: 'copy', params: { from: inner.from, to: inner.to }, old: 'innerAction:{copy}' };\n if (kind === 'multiply') return { innerAction: 'calculate', params: { operator: 'multiply', fields: [inner.from, inner.to] }, old: 'innerAction:{multiply}' };\n return { params: {}, old: `innerAction:{${kind}}` };\n }\n // the keys that belong to the action it turns out to be\n const params = (name?: string): Record<string, any> => {\n const out: Record<string, any> = {};\n for (const key of (name ? (INNER_ACTIONS[name] ?? BACKEND_ACTIONS[name])?.keys : undefined) ?? []) {\n if (option?.[key] !== undefined) out[key] = option[key];\n }\n return out;\n };\n if (typeof inner === 'string' && inner) {\n // saveAll and submit call the backend - they belong to action\n if (BACKEND_ACTIONS[inner]) return { action: inner, params: params(inner), old: `innerAction:${inner}` };\n // a sign-in button that sends the form to a backend address is the backend action loginForm (hotel: POST auth/login)\n if (inner === 'login' && place === 'button' && String(option?.url ?? option?.data_url ?? '').trim()) {\n return { action: 'loginForm', params: params('loginForm'), old: 'innerAction:login' };\n }\n if (INNER_ACTIONS[inner]) return { innerAction: inner, params: params(inner) };\n // a value no catalog knows does nothing - named for the check, never run\n return { params: {}, old: `innerAction:${inner}` };\n }\n if (typeof action === 'string' && action) {\n if (BACKEND_ACTIONS[action]) return { action, params: params(action) };\n if (action === 'get') {\n // a menu entry opens its page - no action; a button opens a (detail) page\n return place === 'menu' ? { params: {}, old: 'action:get' } : { innerAction: 'openPage', params: params('openPage'), old: 'action:get' };\n }\n // cart / login / logout run in the app\n if (INNER_ACTIONS[action]) return { innerAction: action, params: params(action), old: `action:${action}` };\n return { params: {}, old: `action:${action}` };\n }\n return { params: {} };\n}\n\n/** The option written in the new form - keys of the old form removed, everything else kept. */\nexport function withElementAction(option: any, place: ActionPlace): any {\n const found = elementAction(option, place);\n if (!found.old) return option;\n const out: any = { ...option };\n delete out.action;\n delete out.innerAction;\n if (found.action) out.action = found.action;\n if (found.innerAction) out.innerAction = found.innerAction;\n Object.assign(out, found.params);\n return out;\n}\n\n/** Problems of an element's action for the check: an unknown value or one in the wrong place. */\nexport function checkElementAction(option: any, place: ActionPlace): string[] {\n const found = elementAction(option, place);\n const problems: string[] = [];\n if (found.old && !found.action && !found.innerAction && !(place === 'menu' && found.old === 'action:get')) {\n problems.push(`unknown action \"${found.old}\"`);\n } else if (found.old) {\n problems.push(`older form \"${found.old}\" - write ${found.action ? `action \"${found.action}\"` : found.innerAction ? `innerAction \"${found.innerAction}\"` : 'no action'}`);\n }\n const rule = found.innerAction ? INNER_ACTIONS[found.innerAction] : found.action ? BACKEND_ACTIONS[found.action] : undefined;\n if (rule && !rule.places.includes(place)) problems.push(`\"${found.innerAction ?? found.action}\" does not belong to a ${place}`);\n return problems;\n}\n\n/**\n * The name of what an element does, in the new form ('' = nothing): save, saveAll, submit, delete, openPage,\n * addToCart, showModal, cancel, login, logout, cart, copy, calculate. Code asks this instead of comparing action or\n * innerAction with a value, so older forms (a button's \"get\", innerAction \"saveAll\") mean the same.\n */\nexport function actionName(option: any, place: ActionPlace = 'button'): string {\n const found = elementAction(option, place);\n return found.action ?? found.innerAction ?? '';\n}\n\n/** The keys of what an element does (copy: from, to; calculate: operator, fields; openPage: layout_url). */\nexport function actionParams(option: any, place: ActionPlace = 'button'): Record<string, any> {\n return elementAction(option, place).params;\n}\n\n/**\n * The page's own data source (OFFENE-PUNKTE 145): a page loads its records itself - \"dataSource\" in its\n * layout_schema.json holds the call (storageType, data_url, method, passToken, params, body, dateFormat, dataKey,\n * loadOnFilter, proxy, messages) and its data object (property_url). Opened from a menu entry or a button, the\n * page's source wins; without one the opener's keys count as before.\n */\nexport function withPageSource(option: any, pageLayout: any): any {\n const source = pageLayout?.dataSource;\n if (!source || typeof source !== 'object') return option;\n const out: any = { ...(option || {}) };\n for (const key of [...CALL_KEYS, ...Object.keys(OLD_CALL_KEYS), 'property_url']) delete out[key];\n return { ...out, ...source };\n}\n\n/** One line of the conversion list: where, what it was, what it is now - or why it stays. */\nexport interface ConversionChange {\n /** the file, e.g. main/layout_schema.json or pages/books/layout_schema.json */\n file: string;\n /** the element in the file, e.g. left.elements[0] */\n where: string;\n caption?: string;\n old: string;\n new: string;\n /** false: left as it is - reason says why */\n done: boolean;\n reason?: string;\n /** why it stays, for the Designer's own texts: searchField, cart, noPage, hasSource, severalWays, openedByButtons, unknown */\n reasonCode?: 'searchField' | 'cart' | 'noPage' | 'hasSource' | 'severalWays' | 'openedByButtons' | 'unknown';\n}\n\n/** The setting entries of the menu (the library adds them; they are no pages and carry no call). */\nconst SETTING_ENTRY_FLAGS = ['changeLang', 'projectVersion', 'scrollPagination', 'numberedPagination', 'terms', 'projectPrivacy'];\n\n/** The keys of a page's call - they move from the menu entry into the page's dataSource. */\nconst PAGE_SOURCE_KEYS: readonly string[] = [...CALL_KEYS, ...Object.keys(OLD_CALL_KEYS).map((key) => key.split('.')[0]), 'property_url'];\n\nconst captionOf = (node: any): string | undefined => {\n const caption = typeof node?.label === 'object' ? node.label?.caption : node?.caption;\n if (caption) return String(caption);\n const reference = String(node?.scope?.reference ?? '');\n if (reference) return reference.split('/').pop();\n // an entry with only an icon (luv2shop's sign-out)\n return node?.icon ? `(${node.icon})` : undefined;\n};\n\n/** An unknown value is left as it is (the Designer decides); everything else is written in the new form. */\nconst known = (found: ElementAction, place: ActionPlace): boolean =>\n !found.old || !!(found.action || found.innerAction) || (place === 'menu' && found.old === 'action:get');\nconst converted = (option: any, place: ActionPlace): any => known(elementAction(option, place), place) ? withElementAction(option, place) : option;\n\nconst describe = (found: ElementAction): string => found.action ? `action ${found.action}`\n : found.innerAction ? `innerAction ${found.innerAction}` : 'no action (the entry opens its page)';\n\n/** Every node with an option, with where it stands (left.elements[0].submenu[1]). */\nfunction eachOption(node: any, where: string, visit: (node: any, where: string) => void): void {\n if (Array.isArray(node)) {\n node.forEach((item, index) => eachOption(item, `${where}[${index}]`, visit));\n return;\n }\n if (!node || typeof node !== 'object') return;\n if (node.option && typeof node.option === 'object' && !Array.isArray(node.option)) visit(node, where);\n for (const [key, value] of Object.entries(node)) {\n if (key !== 'option' && key !== 'dataSource') eachOption(value, where ? `${where}.${key}` : key, visit);\n }\n}\n\n/**\n * An app written in the new form (OFFENE-PUNKTE 105/145 step 5). files: Main and the pages by their path\n * (main/layout_schema.json, pages/<path>/layout_schema.json). Returns the changed files (copies - the given ones are\n * not touched) and the list of every change and of what stays:\n * - every element's action in the new form (withElementAction: button get -> innerAction openPage, innerAction\n * submit / saveAll -> action, menu logout / login / cart -> innerAction, copy / multiply -> copy / calculate, a\n * sign-in form with an address -> action loginForm; a menu entry's get is dropped);\n * - a menu entry's call (data_url, storageType, method, dataKey, property_url …) moved into its page as dataSource -\n * only when the menu entries opening that page all carry the same call and nothing else opens it (the page's source\n * would win over any other opener). It stays at the header search field (its call depends on the typed text), at\n * the cart (data_url is the cart's storage name) and at a page that has a dataSource already.\n */\nexport function convertOlderForms(files: Record<string, any>): { files: Record<string, any>; changes: ConversionChange[] } {\n const out: Record<string, any> = {};\n const changes: ConversionChange[] = [];\n const copyOf = (file: string) => (out[file] ??= JSON.parse(JSON.stringify(files[file])));\n const main = 'main/layout_schema.json';\n const pages = Object.keys(files).filter((file) => file.startsWith('pages/') && file.endsWith('layout_schema.json')).sort();\n const pathOf = (layout: any) => String(layout ?? '').trim().replace(/^\\/+/, '');\n const isSetting = (option: any) => SETTING_ENTRY_FLAGS.some((flag) => option?.[flag]);\n\n // who opens which page: menu entries (with their call) and elements of pages\n const menuOpeners = new Map<string, { where: string; node: any; call: Record<string, any> }[]>();\n const otherOpeners = new Map<string, string[]>();\n if (files[main]) {\n for (const area of ['header', 'left']) {\n eachOption(files[main][area], area, (node, where) => {\n const option = node.option;\n const page = pathOf(option.layout_url);\n if (!page || isSetting(option)) return;\n const call: Record<string, any> = {};\n for (const key of PAGE_SOURCE_KEYS) if (option[key] !== undefined) call[key] = option[key];\n const list = menuOpeners.get(page) ?? [];\n list.push({ where, node, call });\n menuOpeners.set(page, list);\n });\n }\n }\n for (const file of pages) {\n eachOption(files[file], '', (node, where) => {\n const page = pathOf(node.option.layout_url);\n if (page) otherOpeners.set(page, [...(otherOpeners.get(page) ?? []), `${file} ${where}`]);\n });\n }\n\n // 1. the menu: its actions, then its calls into the pages\n if (files[main]) {\n for (const area of ['header', 'left']) {\n eachOption(files[main][area], area, (node, where) => {\n if (isSetting(node.option)) return;\n const found = elementAction(node.option, 'menu');\n if (!found.old) return;\n const done = known(found, 'menu');\n changes.push({ file: main, where, caption: captionOf(node), old: found.old, new: done ? describe(found) : '-', done,\n reason: done ? undefined : 'unknown action - decide in the Designer', reasonCode: done ? undefined : 'unknown' });\n });\n }\n for (const [page, all] of menuOpeners) {\n // a sign-out / sign-in entry showing a page afterwards takes the page as it loads itself - it decides nothing\n const after = all.filter((opener) => ['logout', 'login'].includes(actionName(opener.node.option, 'menu')));\n const openers = all.filter((opener) => !after.includes(opener));\n const withCall = openers.filter((opener) => String(opener.call['data_url'] ?? '').trim());\n if (!withCall.length) continue;\n const first = withCall[0];\n const stay = (reasonCode: ConversionChange['reasonCode'], reason: string) => withCall.forEach((opener) => changes.push({\n file: main, where: opener.where, caption: captionOf(opener.node), old: 'call at the menu entry',\n new: `dataSource in ${page}`, done: false, reason, reasonCode }));\n if (withCall.some((opener) => opener.node.scope)) { stay('searchField', 'the header search field - its call depends on the typed text'); continue; }\n if (withCall.some((opener) => actionName(opener.node.option, 'menu') === 'cart')) { stay('cart', 'the cart - data_url is the storage name of the cart'); continue; }\n if (!files[page]) { stay('noPage', 'the page does not exist'); continue; }\n if (files[page].dataSource) { stay('hasSource', 'the page has a dataSource already'); continue; }\n const same = JSON.stringify(first.call);\n if (openers.length !== withCall.length || withCall.some((opener) => JSON.stringify(opener.call) !== same)) {\n stay('severalWays', `the page is opened by ${openers.length} menu entries in different ways - one data source cannot serve them`);\n continue;\n }\n if (otherOpeners.has(page)) { stay('openedByButtons', `the page is opened by buttons too (${otherOpeners.get(page)!.join(', ')})`); continue; }\n copyOf(page).dataSource = { ...first.call };\n for (const opener of [...withCall, ...after.filter((entry) => String(entry.call['data_url'] ?? '').trim())]) {\n changes.push({ file: main, where: opener.where, caption: captionOf(opener.node), old: 'call at the menu entry',\n new: `dataSource in ${page}`, done: true });\n }\n }\n }\n\n // write Main: actions in the new form, moved calls removed from the entries\n const moved = new Set(changes.filter((c) => c.file === main && c.done && c.old === 'call at the menu entry').map((c) => c.where));\n if (changes.some((c) => c.file === main && c.done)) {\n const target = copyOf(main);\n for (const area of ['header', 'left']) {\n eachOption(target[area], area, (node, where) => {\n if (isSetting(node.option)) return;\n let option = converted(node.option, 'menu');\n if (moved.has(where)) {\n option = { ...option };\n for (const key of PAGE_SOURCE_KEYS) delete option[key];\n }\n node.option = option;\n });\n }\n }\n\n // 2. the pages: every element's action in the new form\n for (const file of pages) {\n const found: { where: string; caption?: string; was: ElementAction }[] = [];\n eachOption(files[file], '', (node, where) => {\n const was = elementAction(node.option, 'button');\n if (was.old) found.push({ where, caption: captionOf(node), was });\n });\n if (!found.length) continue;\n for (const { where, caption, was } of found) {\n const done = known(was, 'button');\n changes.push({ file, where, caption, old: was.old!, new: done ? describe(was) : '-', done,\n reason: done ? undefined : 'unknown action - decide in the Designer', reasonCode: done ? undefined : 'unknown' });\n }\n eachOption(copyOf(file), '', (node) => { node.option = converted(node.option, 'button'); });\n }\n return { files: out, changes };\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\n// - new: one way to put a layout's texts into the app's language, for every container (form, card, grid, dialog,\n// header). Before, five walkers did it differently: the card skipped a button's own caption (\"Add To Cart\" stayed\n// English), the dialog skipped tooltips, form and grid changed the schema in place, so a second language switch\n// looked up texts that were already translated. Here the text a field was written with is remembered, so every\n// switch starts from it - in place or on a copy.\n\n/** The keys whose text is shown to a person: a caption (label.caption or an element's own), placeholder, tooltip, dialog title. */\nexport const SHOWN_TEXT_KEYS = ['caption', 'placeholder', 'tooltip', 'modalTitle'] as const;\n\n/** object -> the texts it was written with, per key - a switch to another language starts from them. */\nconst written = new WeakMap<object, Record<string, string>>();\n\nfunction original(obj: Record<string, any>, key: string): string {\n let seen = written.get(obj);\n if (!seen) written.set(obj, (seen = {}));\n if (!(key in seen)) seen[key] = obj[key];\n return seen[key];\n}\n\n/**\n * The texts of a layout (or property schema) in the language of `texts` (the language file: written text -> its\n * translation). With values: also a property's start value (a text without {{ }}), as the grid's footer needs.\n * inPlace: changes the given schema (its first texts are remembered); else works on a copy. Missing translation:\n * the written text.\n */\nexport function translateCaptions<T>(schema: T, texts: Record<string, string> | null | undefined,\n { inPlace = false, values = false }: { inPlace?: boolean; values?: boolean } = {}): T {\n if (!schema || typeof schema !== 'object') return schema;\n const target: any = inPlace ? schema : JSON.parse(JSON.stringify(schema));\n const dict = texts || {};\n const walk = (obj: any) => {\n if (!obj || typeof obj !== 'object') return;\n if (Array.isArray(obj)) { obj.forEach(walk); return; }\n for (const key of [...SHOWN_TEXT_KEYS, ...(values ? ['value'] : [])]) {\n if (typeof obj[key] !== 'string') continue;\n const first = original(obj, key);\n if (key === 'value' && first.includes('{{')) continue;\n const own = first.trim();\n obj[key] = (own && dict[own]) || first;\n }\n // records (data arrays, autocomplete lists) are data, not layout - not walked\n for (const [key, value] of Object.entries(obj)) if (value && typeof value === 'object' && !(key === 'data' && Array.isArray(value))) walk(value);\n };\n walk(target);\n return target;\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-14\n// - fix: \"text gets N characters a line\" only for a text that wraps - a short word on one line\n// (\"jj\", \"ffff\") was reported as too narrow (hotel test G-01/A-01/C-01)\n// - fix: with a dialog open only what stands in it is measured - a button of the page behind was reported as\n// covering a dialog field (hotel C-02)\n// - new: panels - background of an open app keyboard / docked calendar and the colour the page asks for\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-01\n// - new: boxes say whether they stand in the top bar (inBar)\n// - new: cardRows - in a card list with aligned rows, per row the tops of the cards' button elements\n// - fix: probeFieldVisible - covered by the keyboard only where both overlap sideways too (landscape: keyboard beside)\n// - new: probeLayoutSnapshot measures the top bar (header.option.scroll, its place, the page's scroll)\n// - change: probeLayoutSnapshot names the areas that scroll sideways (scrollers) and what stands in them\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-31\n// - new: what the test runners measure on the page, written once (before: the app's runner and the device runner\n// each had a copy, and they had drifted - the device runner flagged record values as untranslated, found fields\n// without the visibility check and never put the person's app data back). Every probe is self-contained: it uses\n// only the page's own objects, so the device runner can send it into the app's web view as it is\n// (driver.execute(probe, ...args)) and the app's runner calls it directly. Nothing outside a probe may be used in it.\n\n/** Storage keys kept when a flow starts with empty app data: sign-in, tenant, project, accepted terms, the recorder, the runner's own. */\nexport const APP_DATA_KEEP = 'token|expires|nonce|pkce|session_state|keycloak|logined|granted_scopes|id_token|okta|tenant|project|terms|networkLogs|vl-test';\n\n/** Texts on the page still in the main language although the language file has them, or raw keys (\"termsShowAgain\"). */\nexport function probeUntranslated(texts: Record<string, string>, lang: string, main: string): string[] {\n const doc = (globalThis as any).document;\n const shown = (el: any) => { const r = el.getBoundingClientRect(); const s = getComputedStyle(el); return r.width > 0 && r.height > 0 && s.visibility !== 'hidden' && s.display !== 'none'; };\n const found = new Set<string>();\n const walker = doc.createTreeWalker(doc.body, 4 /* NodeFilter.SHOW_TEXT */);\n for (let node = walker.nextNode(); node; node = walker.nextNode()) {\n const el = node.parentElement;\n const t = String(node.textContent || '').trim();\n // a record's value is data, not a text of the app\n if (!el || !t || !shown(el) || el.closest('[data-vl-record] [data-vl-field] .vl-control__value, [data-vl-record] td, input, textarea, script, style')) continue;\n if (/^[a-z]+(?:[A-Z][a-z0-9]+)+$/.test(t)) found.add(t);\n else if (lang !== main && texts[t] !== undefined && texts[t] !== t) found.add(t);\n }\n return [...found];\n}\n\n/** What the page shows, measured for the layout rules (layoutProblems): fields, buttons, texts with their boxes. */\nexport function probeLayoutSnapshot(): { width: number; height: number; scrollsSideways: boolean; boxes: any[]; scrollers: any[]; header?: any; cardRows: number[][]; panels: any[] } {\n const doc = (globalThis as any).document;\n const win = globalThis as any;\n const shown = (el: any) => { const r = el.getBoundingClientRect(); const s = getComputedStyle(el); return r.width > 0 && r.height > 0 && s.visibility !== 'hidden' && s.display !== 'none'; };\n // an open dialog covers the page: only what stands in it is measured (the page behind is hidden by design)\n const dialog = [...doc.querySelectorAll('.p-dialog')].find((d: any) => shown(d));\n const measured = (el: any) => shown(el) && (!dialog || dialog.contains(el));\n const rowOf = (el: any) => {\n const parent = el.parentElement;\n if (!parent) return undefined;\n const cs = getComputedStyle(parent);\n return cs.display.includes('flex') && !cs.flexDirection.startsWith('column') && !cs.flexWrap.startsWith('wrap')\n ? `${parent.tagName.toLowerCase()}#${[...(parent.parentElement?.children || [])].indexOf(parent)}` : undefined;\n };\n // areas that scroll sideways on their own (a wide table): what stands in them is reached by swiping there\n const scrollers: any[] = [];\n const scrollerOf = (el: any) => {\n for (let p = el.parentElement; p && p !== doc.body; p = p.parentElement) {\n const s = getComputedStyle(p);\n if (/(auto|scroll)/.test(s.overflowX) && p.scrollWidth > p.clientWidth + 2) {\n let known = scrollers.find((x) => x.el === p);\n if (!known) {\n const r = p.getBoundingClientRect();\n const name = p.closest('[data-vl-container]')?.getAttribute('data-vl-container') || (p.querySelector('table') ? 'table' : 'area');\n known = { el: p, name: `${name} ${scrollers.length + 1}`, left: r.left, right: r.right, content: p.scrollWidth, shown: p.clientWidth };\n scrollers.push(known);\n }\n return known.name;\n }\n }\n return undefined;\n };\n const boxes: any[] = [];\n for (const el of [...doc.querySelectorAll('[data-vl-field]')]) {\n if (!measured(el) || el.closest('[data-vl-record]')) continue;\n const r = el.getBoundingClientRect();\n boxes.push({ kind: 'field', name: el.getAttribute('data-vl-field') || '', left: r.left, top: r.top, right: r.right, bottom: r.bottom, row: rowOf(el), scroller: scrollerOf(el), inBar: !!el.closest('.vl-top-bar') });\n }\n for (const el of [...doc.querySelectorAll('[data-vl-action], button')]) {\n if (!measured(el) || el.closest('[data-vl-field], section[data-vl-custom-keyboard], .left-wrap')) continue;\n const r = el.getBoundingClientRect();\n boxes.push({ kind: 'button', name: el.getAttribute('data-vl-action') || String(el.innerText || '').trim().slice(0, 20), left: r.left, top: r.top, right: r.right, bottom: r.bottom, scroller: scrollerOf(el), inBar: !!el.closest('.vl-top-bar') });\n }\n for (const el of [...doc.querySelectorAll('label, .vl-control__label, .vl-control__value')]) {\n const t = String(el.innerText || '').trim();\n if (!t || !measured(el)) continue;\n const r = el.getBoundingClientRect();\n const css = getComputedStyle(el);\n const size = parseFloat(css.fontSize) || 14;\n // a text on one line is never too narrow (short words like \"jj\" are as wide as themselves);\n // characters a line are counted only when the text wraps onto more lines\n const line = parseFloat(css.lineHeight) || size * 1.2;\n const wraps = r.height > line * 1.5;\n // no key at all on one line: an undefined value comes back from the device as null\n boxes.push({ kind: 'text', name: t.slice(0, 20), left: r.left, top: r.top, right: r.right, bottom: r.bottom,\n ...(wraps ? { charsPerLine: Math.floor(r.width / (size * 0.55)) } : {}), scroller: scrollerOf(el) });\n }\n // the top bar (header + page X): where it stands, what it should do, and whether the page is scrolled\n const bar = doc.querySelector('.vl-top-bar');\n const page = doc.querySelector('.center-wrap');\n const header = bar && shown(bar) ? { top: bar.getBoundingClientRect().top, bottom: bar.getBoundingClientRect().bottom,\n scroll: bar.getAttribute('data-vl-header-scroll') || 'fixed', pageTop: page ? page.scrollTop : 0 } : undefined;\n // card lists with aligned rows (alignRows): per row of cards, the top of each card's first element with buttons\n const cardRows: number[][] = [];\n for (const grid of [...doc.querySelectorAll('.vl-cards--aligned')]) {\n const rows = new Map<number, number[]>();\n for (const card of [...grid.children].filter((c: any) => shown(c))) {\n const action = card.querySelector('.card-layout-item--action');\n if (!action || !shown(action)) continue;\n const top = Math.round(card.getBoundingClientRect().top);\n const key = [...rows.keys()].find((k) => Math.abs(k - top) <= 2) ?? top;\n rows.set(key, [...(rows.get(key) || []), action.getBoundingClientRect().top]);\n }\n for (const tops of rows.values()) if (tops.length > 1) cardRows.push(tops);\n }\n // keyboard and calendar panel look like the page (user 2026-10-13): their background against the page's - the page\n // area (.center-wrap) or the first coloured element above it, white at last; a project's own keyboard colour\n // (--vl-keyboard-background) is what it asked for (2026-11-14: hotel's keyboard took the green of a Book button)\n const colourOf = (start: any) => {\n for (let e = start; e; e = e.parentElement) {\n const c = getComputedStyle(e).backgroundColor;\n if (c && c !== 'transparent' && !/rgba\\(.*,\\s*0\\)$/.test(c)) return c;\n }\n return 'rgb(255, 255, 255)';\n };\n let expected = colourOf(doc.querySelector('.center-wrap') || doc.body);\n const own = doc.body ? String(getComputedStyle(doc.body).getPropertyValue('--vl-keyboard-background') || '').trim() : '';\n if (own && doc.createElement) {\n const probe = doc.createElement('i');\n probe.style.backgroundColor = own;\n doc.body.appendChild(probe);\n expected = getComputedStyle(probe).backgroundColor || expected;\n probe.remove();\n }\n const panels: any[] = [];\n for (const [name, selector] of [['keyboard', 'section[data-vl-custom-keyboard]'], ['calendar', '.model-datepicker-panel--docked']]) {\n const el = [...doc.querySelectorAll(selector)].find((x: any) => shown(x));\n if (el) panels.push({ name, background: getComputedStyle(el).backgroundColor, expected });\n }\n return { width: win.innerWidth, height: win.innerHeight, scrollsSideways: doc.documentElement.scrollWidth > win.innerWidth + 2, boxes,\n scrollers: scrollers.map(({ el, ...s }) => s), header, cardRows, panels };\n}\n\n/** Whether a field (data-vl-path with a dot, else data-vl-field) stands visible above an open keyboard: '' or why not. */\nexport function probeFieldVisible(key: string): string {\n const doc = (globalThis as any).document;\n const win = globalThis as any;\n const shown = (el: any) => { const r = el.getBoundingClientRect(); const s = getComputedStyle(el); return r.width > 0 && r.height > 0 && s.visibility !== 'hidden' && s.display !== 'none'; };\n const esc = (v: string) => String(v).replace(/[\"\\\\]/g, '\\\\$&');\n const all = [...doc.querySelectorAll(key.includes('.') ? `[data-vl-path=\"${esc(key)}\"]` : `[data-vl-field=\"${esc(key)}\"]`)].filter(shown);\n const w = all[all.length - 1];\n if (!w) return 'not there';\n const r = w.getBoundingClientRect();\n const kbEl = doc.querySelector('section[data-vl-custom-keyboard]');\n const kb = kbEl && shown(kbEl) ? kbEl.getBoundingClientRect() : null;\n if (r.top < 0) return `above the frame (${Math.round(r.top)})`;\n // covered only where field and keyboard overlap - in landscape the keyboard stands beside the page, not below it\n const overlapX = kb ? Math.min(r.right, kb.right) - Math.max(r.left, kb.left) > 1 : false;\n if (kb && overlapX && r.bottom > kb.top + 1) return `covered by the keyboard (field to ${Math.round(r.bottom)}, keyboard from ${Math.round(kb.top)})`;\n if (r.bottom > win.innerHeight + 1) return `below the frame (${Math.round(r.bottom)} of ${win.innerHeight})`;\n return '';\n}\n\n/** Where the page stands: the window's and the scrolling content's place, the page's height (expect restored). */\nexport function probePagePlace(): { scrollY: number; scrollTop: number; height: number } {\n const doc = (globalThis as any).document;\n const win = globalThis as any;\n const box = [...doc.querySelectorAll('.ant-layout-content, .layout-content, .center-wrap, main, .p-dialog-content')].find((el: any) => el.scrollHeight > el.clientHeight + 2) as any;\n return { scrollY: win.scrollY, scrollTop: box ? box.scrollTop : 0, height: doc.documentElement.scrollHeight };\n}\n\n/** The app's data in the browser (local and session), without what is kept (keep: APP_DATA_KEEP) - put back after a flow. */\nexport function probeStorageSnapshot(keep: string): { local: [string, string][]; session: [string, string][] } {\n const win = globalThis as any;\n const kept = new RegExp(keep, 'i');\n const copy = (store: any) => Object.keys(store).filter((k) => !kept.test(k)).map((k) => [k, store.getItem(k)] as [string, string]);\n return { local: copy(win.localStorage), session: copy(win.sessionStorage) };\n}\n\n/** Empties the app's data in the browser (not what is kept); true when something was removed. */\nexport function probeClearAppData(keep: string): boolean {\n const win = globalThis as any;\n const kept = new RegExp(keep, 'i');\n let changed = false;\n for (const store of [win.localStorage, win.sessionStorage]) {\n for (const key of Object.keys(store)) {\n if (kept.test(key)) continue;\n store.removeItem(key);\n changed = true;\n }\n }\n return changed;\n}\n\n/** Puts the app's data back as it was before the flow (probeStorageSnapshot); true when something had changed. */\nexport function probeRestoreStorage(snapshot: { local: [string, string][]; session: [string, string][] }, keep: string): boolean {\n const win = globalThis as any;\n const kept = new RegExp(keep, 'i');\n let changed = false;\n const put = (store: any, before: [string, string][]) => {\n const was = new Map(before);\n for (const key of Object.keys(store)) {\n if (kept.test(key) || was.has(key)) continue;\n store.removeItem(key);\n changed = true;\n }\n for (const [key, value] of was) {\n if (store.getItem(key) !== value) { store.setItem(key, value); changed = true; }\n }\n };\n put(win.localStorage, snapshot.local);\n put(win.sessionStorage, snapshot.session);\n return changed;\n}\n\n/** The parts that must stay inside the screen (expect inFrame), as selectors of the page. */\nexport const FRAME_SELECTORS: Record<string, string> = {\n keyboard: 'section[data-vl-custom-keyboard]',\n dialog: '.ant-modal-content, .p-dialog, .cdk-overlay-pane .modal-content',\n calendar: '.p-datepicker-panel, .p-datepicker:not(.p-datepicker-inline) .p-datepicker-calendar-container',\n list: '.p-autocomplete-overlay, .p-select-overlay',\n menu: '.left-wrap',\n};\n\n/** A frame part (its selector from FRAME_SELECTORS): null when not shown, else whether it stays inside the screen and its box. */\nexport function probeInFrame(selector: string): { in: boolean; box: number[]; width: number; height: number } | null {\n const doc = (globalThis as any).document;\n const win = globalThis as any;\n const shown = (el: any) => { const r = el.getBoundingClientRect(); const s = getComputedStyle(el); return r.width > 0 && r.height > 0 && s.visibility !== 'hidden' && s.display !== 'none'; };\n const all = [...doc.querySelectorAll(selector)].filter(shown);\n const el = all[all.length - 1];\n if (!el) return null;\n const b = el.getBoundingClientRect();\n return { in: b.top >= -1 && b.left >= -1 && b.bottom <= win.innerHeight + 1 && b.right <= win.innerWidth + 1,\n box: [Math.round(b.left), Math.round(b.top), Math.round(b.right), Math.round(b.bottom)], width: win.innerWidth, height: win.innerHeight };\n}\n\n/**\n * A field as tests name it (data-vl-path with a dot, else data-vl-field; only shown ones; a key in two DTOs on the page\n * is ambiguous): what it shows and whether it is locked. null when not there; { ambiguous } when the key is not enough.\n */\nexport function probeField(key: string): { text: string; locked: boolean } | { ambiguous: string[] } | null {\n const doc = (globalThis as any).document;\n const shown = (el: any) => { const r = el.getBoundingClientRect(); const s = getComputedStyle(el); return r.width > 0 && r.height > 0 && s.visibility !== 'hidden' && s.display !== 'none'; };\n const esc = (v: string) => String(v).replace(/[\"\\\\]/g, '\\\\$&');\n let w: any;\n if (key.includes('.')) {\n const all = [...doc.querySelectorAll(`[data-vl-path=\"${esc(key)}\"]`)].filter(shown);\n w = all[all.length - 1];\n } else {\n const all = [...doc.querySelectorAll(`[data-vl-field=\"${esc(key)}\"]`)].filter(shown);\n const paths = [...new Set(all.map((el: any) => el.getAttribute('data-vl-path')).filter(Boolean))] as string[];\n if (paths.length > 1) return { ambiguous: paths };\n w = all[all.length - 1];\n }\n if (!w) return null;\n const i = w.querySelector('input:not([type=hidden]), textarea');\n const locked = !i || i.disabled || i.readOnly || !!w.querySelector('.p-disabled, [aria-disabled=true]');\n return { text: i ? String(i.value) : String((w.querySelector('.p-select-label, .p-select') || w).innerText || '').trim(), locked };\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n// - new: one spelling for style properties - the CSS one (font-size, not fontSize), as in style.css and the\n// templates (user 2026-11-02, replaces camelCase of 2026-10-28). Read both, write CSS. styleSpellingFindings and\n// normalizeStyleSpelling find and change camelCase in an app's pages (the Designer's \"Unify styles\"); the look\n// stays the same - where a block holds a property twice, the value the app shows today is kept.\n\ntype Bag = Record<string, any>;\n\n/** \"fontSize\" -> \"font-size\", \"WebkitLineClamp\" -> \"-webkit-line-clamp\"; a CSS name (and --var) stays. */\nexport function cssStyleKey(key: string): string {\n const k = String(key ?? '').trim();\n if (k.startsWith('--') || !/[A-Z]/.test(k)) return k;\n return k.replace(/^(Webkit|Moz|ms|O)(?=[A-Z])/, (p) => '-' + p.toLowerCase()).replace(/[A-Z]/g, (c) => '-' + c.toLowerCase());\n}\n\n/** \"font-size\" -> \"fontSize\" - for code that reads a property in both spellings. */\nexport function camelStyleKey(key: string): string {\n const k = String(key ?? '').trim();\n if (k.startsWith('--')) return k;\n return k.replace(/^-(webkit|moz|ms|o)-/, (_m, p: string) => (p === 'ms' ? 'ms-' : p[0].toUpperCase() + p.slice(1) + '-'))\n .replace(/-([a-z])/g, (_m, c: string) => c.toUpperCase());\n}\n\n/** A property of a style object in either spelling: styleValue(style, 'align-items'). */\nexport function styleValue(style: Bag | null | undefined, cssName: string): any {\n if (!style || typeof style !== 'object') return undefined;\n return style[cssName] ?? style[camelStyleKey(cssName)];\n}\n\n/**\n * The style object in CSS spelling. A property written twice keeps the later one - the browser applies the keys\n * in their order, so that is the value the app shows today. classes and non-property values (objects) stay.\n */\nexport function cssStyle<T extends Bag | null | undefined>(style: T): T {\n if (!style || typeof style !== 'object' || Array.isArray(style)) return style;\n const out: Bag = {};\n for (const [k, v] of Object.entries(style)) {\n const name = k === 'classes' || (v !== null && typeof v === 'object') ? k : cssStyleKey(k);\n if (name in out) delete out[name]; // keep the order of the winning key\n out[name] = v;\n }\n return out as T;\n}\n\n/** A key that holds a style object in a page: style, stylePerCard and every …Style (wrapperStyle, labelStyle …). */\nexport function isStyleHolder(key: string, value: unknown): boolean {\n return !!value && typeof value === 'object' && !Array.isArray(value) && (key === 'style' || key === 'stylePerCard' || /Style$/.test(key));\n}\n\nexport interface StyleSpellingFinding {\n /** where in the page: center.formSections[0].formFields[2].style */\n path: string;\n /** the camelCase name as written */\n key: string;\n /** its CSS name */\n css: string;\n /** the block holds the property in both spellings - the later value is kept */\n twice: boolean;\n}\n\n/** Style properties of a page written in camelCase. */\nexport function styleSpellingFindings(doc: unknown): StyleSpellingFinding[] {\n const found: StyleSpellingFinding[] = [];\n visitStyles(doc, '', (style, path) => {\n for (const [k, v] of Object.entries(style)) {\n if (k === 'classes' || (v !== null && typeof v === 'object')) continue;\n const css = cssStyleKey(k);\n if (css !== k) found.push({ path, key: k, css, twice: css in style });\n }\n });\n return found;\n}\n\n/** The page with every style object in CSS spelling, and what was changed. The page is not changed in place. */\nexport function normalizeStyleSpelling<T>(doc: T): { doc: T; findings: StyleSpellingFinding[] } {\n const findings = styleSpellingFindings(doc);\n if (!findings.length) return { doc, findings };\n const copy = JSON.parse(JSON.stringify(doc));\n visitStyles(copy, '', (style, _path, set) => set(cssStyle(style)));\n return { doc: copy, findings };\n}\n\nfunction visitStyles(node: unknown, path: string, visit: (style: Bag, path: string, set: (s: Bag) => void) => void): void {\n if (Array.isArray(node)) {\n node.forEach((x, i) => visitStyles(x, `${path}[${i}]`, visit));\n return;\n }\n if (!node || typeof node !== 'object') return;\n const bag = node as Bag;\n for (const [k, v] of Object.entries(bag)) {\n const here = path ? `${path}.${k}` : k;\n if (isStyleHolder(k, v)) {\n const values = Object.values(v);\n // responsiveStyle / responsiveWrapperStyle: one style object per device\n if (values.length && values.every((x) => x && typeof x === 'object' && !Array.isArray(x))) {\n for (const [device, s] of Object.entries(v)) visit(s as Bag, `${here}.${device}`, (n) => { (v as Bag)[device] = n; });\n } else {\n visit(v, here, (n) => { bag[k] = n; });\n }\n // a style object can hold another (style.responsiveStyle) - its scalar properties are done, objects go on\n visitStyles(bag[k], here, visit);\n continue;\n }\n visitStyles(v, here, visit);\n }\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-18\n// - new: sizes per device, roundings per part, logo and pictures, font roles named like the Designer (point 173 step 2.1,\n// sketch dev/skizzen/theme-groessen.html) - \"standard\" is today's look (shown, never put on the page), \"devices\" lets a\n// value differ on tablet / web (key@tablet, key@web), \"options\" are the allowed values of a choice\n// - new: borders, shadows per part, focus outline, gap between fields, page margin; per font role line height, letter\n// spacing and text shadow; kind \"number\" (a plain number such as a line height) - sketch areas 6 (point 173)\n// - new: DESIGN_DEVICE_MEDIA (tablet: 600 wide and high - a phone turned stays mobile; web: from 1280) and themeDeviceCss -\n// the device values of a theme and the app as @media rules (point 173 step 2.2)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09\n// - fix: an app's own menu colours bring the derived ones (muted text, hover, divider) - the theme's stayed on a light menu\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-08\n// - new: THEME_FONTS - the fonts an app brings along (latin, no loading from Google - user 2026-11-08), themeFontKnown -\n// font.family / font.heading-family name one of them first (point 213, worklist 22 step 2)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-07\n// - new: an app's own design values over its theme (themeVariables(id, own), safeDesignValues, isSafeDesignValue)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-06\n// - new: four seasonal standard themes: autumn 2026, winter 2026, spring 2027, summer 2027 (point 173)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-05\n// - new: the design values of an app's look (point 173) - the one list for the library's styles, the Designer and the\n// AI contract. Two levels: \"basic\" is what a person chooses, \"advanced\" follows from the basic values (from) unless\n// a theme sets it. A style uses var(--vl-..., today's value): without a theme an app looks as before.\n// - new: STANDARD_THEMES, themeVariables - the platform's themes; an app names one in center.theme of Main\n\nexport type DesignValueGroup = 'colors' | 'status' | 'header' | 'menu' | 'buttons' | 'fonts' | 'shape' | 'spacing' | 'depth'\n | 'sizes' | 'logo' | 'images' | 'text' | 'border' | 'focus';\nexport type DesignValueKind = 'color' | 'font' | 'size' | 'shadow' | 'weight' | 'choice' | 'number';\n/** The devices a value may differ on: mobile is the key itself, the others key@tablet / key@web. */\nexport const DESIGN_DEVICES = ['tablet', 'web'] as const;\n/** Where a device starts (CSS media query) - the same for the runtime's theme and the library's styles. */\nexport const DESIGN_DEVICE_MEDIA: Record<'tablet' | 'web', string> = {\n tablet: '(min-width: 600px) and (min-height: 600px)',\n web: '(min-width: 1280px)',\n};\n/** Today's look of a value: one for all devices, or per device (mobile first; a device left out takes mobile's). */\nexport type DesignStandard = string | { mobile: string; tablet?: string; web?: string };\n\nexport interface DesignValue {\n /** The name in a theme file, e.g. color.primary. */\n key: string;\n /** The CSS variable the styles read. */\n cssVar: string;\n group: DesignValueGroup;\n kind: DesignValueKind;\n level: 'basic' | 'advanced';\n /** An advanced value not set by the theme takes the value of this key. */\n from?: string;\n /** Today's look (what the styles fall back to) - shown in the Designer and the contract, never put on the page. */\n standard?: DesignStandard;\n /** The value may differ per device: key@tablet, key@web (mobile is the key itself). */\n devices?: true;\n /** A choice: the allowed values (CSS-ready). */\n options?: string[];\n}\n\nconst value = (key: string, group: DesignValueGroup, kind: DesignValueKind, from?: string): DesignValue => ({\n key,\n cssVar: `--vl-${key.replace(/\\./g, '-')}`,\n group,\n kind,\n level: from ? 'advanced' : 'basic',\n ...(from ? { from } : {}),\n});\n\n/** A value of the advanced level with today's look as its standard (no \"from\": nothing else leads to it). */\nconst extra = (key: string, group: DesignValueGroup, kind: DesignValueKind, standard: DesignStandard,\n more: { devices?: true; options?: string[]; from?: string } = {}): DesignValue => ({\n key, cssVar: `--vl-${key.replace(/\\./g, '-')}`, group, kind, level: 'advanced', standard, ...more,\n});\n\n/** The font roles, named like the Designer: [key part, family from, size, weight, capitals, letter spacing]. */\nconst FONT_ROLES: Array<[string, string, string, string, string, string]> = [\n ['header', 'font.heading-family', '1.05rem', '700', 'uppercase', '0.06em'],\n ['page-title', 'font.heading-family', '1.6rem', '700', 'none', '0'],\n ['section-title', 'font.heading-family', '1.15rem', '700', 'none', '0'],\n ['label', 'font.family', '0.7rem', '500', 'uppercase', '0.08em'],\n ['value', 'font.family', '1rem', '400', 'none', '0'],\n ['value-strong', 'font.heading-family', '1.15rem', '700', 'none', '0.03em'],\n ['field', 'font.family', '1rem', '400', 'none', '0'],\n ['button', 'font.family', '0.95rem', '500', 'none', '0'],\n ['message', 'font.family', '0.85rem', '400', 'none', '0'],\n];\nconst fontRole = ([role, family, size, weight, capitals, spacing]: [string, string, string, string, string, string]): DesignValue[] => [\n extra(`text.${role}.family`, 'text', 'font', '', { from: family }),\n extra(`text.${role}.size`, 'text', 'size', size),\n extra(`text.${role}.weight`, 'text', 'weight', weight),\n extra(`text.${role}.case`, 'text', 'choice', capitals, { options: ['none', 'uppercase'] }),\n extra(`text.${role}.style`, 'text', 'choice', 'normal', { options: ['normal', 'italic'] }),\n extra(`text.${role}.decoration`, 'text', 'choice', 'none', { options: ['none', 'underline'] }),\n extra(`text.${role}.line-height`, 'text', 'number', '1.3'),\n extra(`text.${role}.letter-spacing`, 'text', 'size', spacing),\n extra(`text.${role}.shadow`, 'text', 'shadow', 'none'),\n];\n\nexport const DESIGN_VALUES: DesignValue[] = [\n value('color.primary', 'colors', 'color'),\n value('color.text', 'colors', 'color'),\n value('color.background', 'colors', 'color'),\n value('color.surface', 'colors', 'color'),\n value('color.on-primary', 'colors', 'color', 'color.surface'),\n value('color.text-muted', 'colors', 'color', 'color.text'),\n value('color.border', 'colors', 'color', 'color.text-muted'),\n value('color.success', 'status', 'color', 'color.primary'),\n value('color.warning', 'status', 'color', 'color.primary'),\n value('color.danger', 'status', 'color', 'color.primary'),\n value('color.info', 'status', 'color', 'color.primary'),\n value('header.background', 'header', 'color', 'color.surface'),\n value('header.text', 'header', 'color', 'color.text'),\n value('menu.background', 'menu', 'color', 'color.primary'),\n value('menu.text', 'menu', 'color', 'color.on-primary'),\n value('menu.text-muted', 'menu', 'color', 'menu.text'),\n value('menu.hover', 'menu', 'color', 'menu.background'),\n value('menu.divider', 'menu', 'color', 'menu.text-muted'),\n value('button.level1-background', 'buttons', 'color', 'color.primary'),\n value('button.level1-text', 'buttons', 'color', 'color.on-primary'),\n value('button.level2-background', 'buttons', 'color', 'color.surface'),\n value('button.level2-text', 'buttons', 'color', 'color.primary'),\n value('button.level3-text', 'buttons', 'color', 'color.primary'),\n value('font.family', 'fonts', 'font'),\n value('font.heading-family', 'fonts', 'font', 'font.family'),\n value('font.size', 'fonts', 'size'),\n value('shape.radius', 'shape', 'size'),\n value('shape.button-radius', 'shape', 'size', 'shape.radius'),\n value('space.small', 'spacing', 'size'),\n value('space.medium', 'spacing', 'size', 'space.small'),\n value('space.large', 'spacing', 'size', 'space.medium'),\n value('shadow.small', 'depth', 'shadow'),\n value('shadow.large', 'depth', 'shadow', 'shadow.small'),\n // sizes per device (point 173, 2026-11-18) - today's numbers of the accepted tm-guided card\n extra('size.button-height', 'sizes', 'size', { mobile: '44px', web: '40px' }, { devices: true }),\n extra('size.icon-button', 'sizes', 'size', { mobile: '36px', web: '32px' }, { devices: true }),\n extra('size.field-height', 'sizes', 'size', { mobile: '44px', web: '40px' }, { devices: true }),\n extra('size.touch-min', 'sizes', 'size', { mobile: '44px', web: '0' }, { devices: true }),\n extra('space.card', 'sizes', 'size', '16px', { devices: true }),\n extra('space.card-gap', 'sizes', 'size', '16px', { devices: true }),\n extra('space.field-gap', 'sizes', 'size', '12px', { devices: true }),\n extra('space.page', 'sizes', 'size', { mobile: '16px', tablet: '20px', web: '24px' }, { devices: true }),\n // roundings per part - all follow shape.radius unless set\n extra('shape.card-radius', 'shape', 'size', '8px', { from: 'shape.radius' }),\n extra('shape.field-radius', 'shape', 'size', '8px', { from: 'shape.radius' }),\n extra('shape.icon-radius', 'shape', 'size', '8px', { from: 'shape.button-radius' }),\n // borders and shadows per part, the outline of a field while it is used (focus)\n extra('border.card-width', 'border', 'size', '1px'),\n extra('border.field-width', 'border', 'size', '1px'),\n extra('border.button-width', 'border', 'size', '1px'),\n extra('shadow.card', 'depth', 'shadow', 'none'),\n extra('shadow.dialog', 'depth', 'shadow', '0 6px 20px rgba(0,0,0,.12)'),\n extra('shadow.button', 'depth', 'shadow', 'none'),\n extra('shadow.image', 'depth', 'shadow', 'none'),\n extra('focus.color', 'focus', 'color', '', { from: 'color.primary' }),\n extra('focus.width', 'focus', 'size', '2px'),\n // logo and pictures: how they stand - which logo and which pictures stay in Media\n extra('logo.height', 'logo', 'size', { mobile: '30px', tablet: '36px', web: '40px' }, { devices: true }),\n extra('logo.position', 'logo', 'choice', 'start', { options: ['start', 'center'] }),\n extra('logo.with-name', 'logo', 'choice', 'show', { options: ['show', 'hide'] }),\n extra('logo.background', 'logo', 'choice', 'none', { options: ['none', 'card'] }),\n extra('header.height', 'header', 'size', { mobile: '56px', tablet: '64px', web: '64px' }, { devices: true }),\n extra('image.radius', 'images', 'size', '8px', { from: 'shape.radius' }),\n extra('image.ratio', 'images', 'choice', '4 / 3', { options: ['4 / 3', '1 / 1', '16 / 9', 'auto'] }),\n extra('image.fit', 'images', 'choice', 'cover', { options: ['cover', 'contain'] }),\n extra('image.inset', 'images', 'choice', 'none', { options: ['none', 'card'] }),\n extra('image.placeholder', 'images', 'color', '', { from: 'color.border' }),\n // font roles: family, size, weight, capitals, italic, underline per role\n ...FONT_ROLES.flatMap(fontRole),\n];\n\n/** The value of a key, or undefined; a device key (size.button-height@web) names its value when that value has devices. */\nexport function designValue(key: string): DesignValue | undefined {\n const [base, device] = String(key).split('@');\n const item = DESIGN_VALUES.find((v) => v.key === base);\n if (device === undefined) return item;\n return item?.devices && (DESIGN_DEVICES as readonly string[]).includes(device) ? item : undefined;\n}\n\n/** The standard of a value on a device (mobile, tablet, web) - today's look; '' when it only follows another value. */\nexport function designStandard(item: DesignValue, device: 'mobile' | 'tablet' | 'web' = 'mobile'): string {\n const standard = item.standard ?? '';\n if (typeof standard === 'string') return standard;\n return standard[device] ?? standard.mobile;\n}\n\n/**\n * The device values of a theme (key@tablet, key@web) as CSS variables per device; {} for a device without any. The\n * key itself is mobile's and comes from designVariables - a device leaves out what it does not change.\n */\nexport function designDeviceVariables(values: Record<string, string>): Record<'tablet' | 'web', Record<string, string>> {\n const result: Record<'tablet' | 'web', Record<string, string>> = { tablet: {}, web: {} };\n for (const [key, raw] of Object.entries(values)) {\n const device = key.split('@')[1];\n const item = device ? designValue(key) : undefined;\n if (item && (device === 'tablet' || device === 'web')) result[device][item.cssVar] = raw;\n }\n return result;\n}\n\n/**\n * The CSS variables of a theme's values: what the theme leaves out follows its \"from\" chain; a value nothing leads to\n * stays out, so the style's own fallback - today's look - applies.\n */\nexport function designVariables(values: Record<string, string>): Record<string, string> {\n const resolve = (item: DesignValue | undefined): string | undefined => {\n if (!item) return undefined;\n return values[item.key] ?? resolve(item.from ? designValue(item.from) : undefined);\n };\n const variables: Record<string, string> = {};\n for (const item of DESIGN_VALUES) {\n const resolved = resolve(item);\n if (resolved !== undefined) variables[item.cssVar] = resolved;\n }\n return variables;\n}\n\nexport interface AppTheme {\n id: string;\n name: { en: string; de: string; fr: string };\n style: 'clean' | 'elegant' | 'natural' | 'dark';\n background: 'light' | 'dark';\n values: Record<string, string>;\n}\n\n/** Where Main names the app's theme. */\nexport const THEME_PATH = 'center.theme';\n\nconst lightStatus = { 'color.success': '#2e7d32', 'color.warning': '#b26a00', 'color.danger': '#c62828', 'color.info': '#0277bd' };\n\nexport const STANDARD_THEMES: AppTheme[] = [\n {\n id: 'clear', name: { en: 'Clear', de: 'Klar', fr: 'Clair' }, style: 'clean', background: 'light',\n values: {\n ...lightStatus, 'color.primary': '#2f6fed', 'color.text': '#1f2937', 'color.text-muted': '#6b7280', 'color.background': '#f7f8fa',\n 'color.surface': '#ffffff', 'color.border': '#e2e6ec', 'menu.background': '#16243a', 'menu.text': '#f2f5fa',\n 'menu.text-muted': '#b6c2d3', 'menu.hover': '#223552', 'menu.divider': '#2d4262',\n },\n },\n {\n id: 'forest', name: { en: 'Forest', de: 'Wald', fr: 'Forêt' }, style: 'natural', background: 'light',\n values: {\n ...lightStatus, 'color.primary': '#2f7d5b', 'color.text': '#1d2a24', 'color.text-muted': '#66756d', 'color.background': '#f5f7f4',\n 'color.surface': '#ffffff', 'color.border': '#dfe6e0', 'menu.background': '#1f3a2f', 'menu.text': '#f1f6f3',\n 'menu.text-muted': '#b5c7bd', 'menu.hover': '#2b4b3e', 'menu.divider': '#37594b',\n },\n },\n {\n id: 'copper', name: { en: 'Copper', de: 'Kupfer', fr: 'Cuivre' }, style: 'elegant', background: 'light',\n values: {\n ...lightStatus, 'color.primary': '#b4552d', 'color.text': '#2b2320', 'color.text-muted': '#776a63', 'color.background': '#faf6f1',\n 'color.surface': '#ffffff', 'color.border': '#ebe2d8', 'menu.background': '#3b2a22', 'menu.text': '#fbf4ec',\n 'menu.text-muted': '#d2c2b4', 'menu.hover': '#4e3a30', 'menu.divider': '#5e483c',\n },\n },\n {\n id: 'night', name: { en: 'Night', de: 'Nacht', fr: 'Nuit' }, style: 'dark', background: 'dark',\n values: {\n 'color.success': '#66bb6a', 'color.warning': '#ffb74d', 'color.danger': '#ef5350', 'color.info': '#4fc3f7',\n 'color.primary': '#5aa9ff', 'color.on-primary': '#0d1420', 'color.text': '#e8edf4', 'color.text-muted': '#9fb0c3',\n 'color.background': '#10151c', 'color.surface': '#1a212b', 'color.border': '#33404f', 'menu.background': '#0b1016',\n 'menu.text': '#e8edf4', 'menu.text-muted': '#9fb0c3', 'menu.hover': '#1a212b', 'menu.divider': '#2a3543',\n },\n },\n {\n id: 'autumn-2026', name: { en: 'Autumn 2026', de: 'Herbst 2026', fr: 'Automne 2026' }, style: 'natural', background: 'light',\n values: {\n ...lightStatus, 'color.primary': '#a4471c', 'color.text': '#2e231c', 'color.text-muted': '#75655a', 'color.background': '#faf4ec',\n 'color.surface': '#ffffff', 'color.border': '#eadfd2', 'menu.background': '#3a2418', 'menu.text': '#fbf3ea',\n 'menu.text-muted': '#d4c1b1', 'menu.hover': '#4d3325', 'menu.divider': '#5f4332',\n },\n },\n {\n id: 'winter-2026', name: { en: 'Winter 2026', de: 'Winter 2026', fr: 'Hiver 2026' }, style: 'clean', background: 'light',\n values: {\n ...lightStatus, 'color.primary': '#1f5f8b', 'color.text': '#1b2a36', 'color.text-muted': '#5f7180', 'color.background': '#f1f5f9',\n 'color.surface': '#ffffff', 'color.border': '#dbe3ea', 'menu.background': '#14283a', 'menu.text': '#eef4f9',\n 'menu.text-muted': '#b4c6d6', 'menu.hover': '#1f3a52', 'menu.divider': '#2c4a64',\n },\n },\n {\n id: 'spring-2027', name: { en: 'Spring 2027', de: 'Frühjahr 2027', fr: 'Printemps 2027' }, style: 'natural', background: 'light',\n values: {\n ...lightStatus, 'color.primary': '#2f7d4f', 'color.text': '#22302a', 'color.text-muted': '#5f7268', 'color.background': '#f5faf3',\n 'color.surface': '#ffffff', 'color.border': '#dde8dc', 'menu.background': '#1e3b2b', 'menu.text': '#f1f7f2',\n 'menu.text-muted': '#b8cdbf', 'menu.hover': '#2a4e3a', 'menu.divider': '#365f48',\n },\n },\n {\n id: 'summer-2027', name: { en: 'Summer 2027', de: 'Sommer 2027', fr: 'Été 2027' }, style: 'clean', background: 'light',\n values: {\n ...lightStatus, 'color.primary': '#0a7c86', 'color.text': '#1f2d33', 'color.text-muted': '#5c6f76', 'color.background': '#fffaf0',\n 'color.surface': '#ffffff', 'color.border': '#efe5d3', 'menu.background': '#0f3a42', 'menu.text': '#effafa',\n 'menu.text-muted': '#b3d0d3', 'menu.hover': '#1a4d56', 'menu.divider': '#285f68',\n },\n },\n];\n\n/** The theme of an id, or undefined (no theme: the app keeps its own look). */\nexport function appTheme(id: unknown): AppTheme | undefined {\n return STANDARD_THEMES.find((theme) => theme.id === id);\n}\n\n/** A font an app brings along (packages in the app, latin with umlauts): its name, its CSS value, what it suits. */\nexport interface ThemeFont {\n name: string;\n css: string;\n use: Array<'heading' | 'text'>;\n}\n\n/** The fonts of the platform - a theme or an app's own look takes font.family / font.heading-family from these. */\nexport const THEME_FONTS: ThemeFont[] = [\n { name: 'Roboto', css: \"Roboto, sans-serif\", use: ['heading', 'text'] },\n { name: 'Oswald', css: \"'Oswald', sans-serif\", use: ['heading'] },\n { name: 'Bebas Neue', css: \"'Bebas Neue', sans-serif\", use: ['heading'] },\n { name: 'Playfair Display', css: \"'Playfair Display', serif\", use: ['heading'] },\n { name: 'Montserrat', css: \"'Montserrat', sans-serif\", use: ['heading', 'text'] },\n { name: 'Poppins', css: \"'Poppins', sans-serif\", use: ['heading', 'text'] },\n { name: 'Inter', css: \"'Inter', sans-serif\", use: ['text', 'heading'] },\n { name: 'Lato', css: \"'Lato', sans-serif\", use: ['text'] },\n { name: 'Open Sans', css: \"'Open Sans', sans-serif\", use: ['text'] },\n { name: 'Nunito', css: \"'Nunito', sans-serif\", use: ['text'] },\n { name: 'Lora', css: \"'Lora', serif\", use: ['text', 'heading'] },\n];\n\n/** Whether a font value names a font the app has first (or only a generic family such as sans-serif). */\nexport function themeFontKnown(raw: unknown): boolean {\n const first = String(raw ?? '').split(',')[0].trim().replace(/^['\"]|['\"]$/g, '').toLowerCase();\n if (!first) return false;\n if (['sans-serif', 'serif', 'system-ui', 'monospace', 'inherit'].includes(first)) return true;\n return THEME_FONTS.some((font) => font.name.toLowerCase() === first);\n}\n\n/**\n * Whether a design value may go on the page: a colour (#rgb, #rrggbb, #rrggbbaa, rgb()/rgba()/hsl()), a size\n * (px, rem, em, % or 0), a font list (letters, digits, spaces, commas, quotes, hyphens) or a shadow made of\n * those - never anything that ends a CSS declaration (; { } < >) or loads something (url, expression, @).\n */\nexport function isSafeDesignValue(key: string, raw: unknown): boolean {\n const item = designValue(key);\n const v = String(raw ?? '').trim();\n if (!item || !v || v.length > 200 || /[;{}<>\\\\@]|url\\(|expression|javascript:/i.test(v)) return false;\n const color = /^(#[0-9a-f]{3,4}|#[0-9a-f]{6}|#[0-9a-f]{8}|(rgb|rgba|hsl|hsla)\\([0-9.,%\\s/]+\\))$/i;\n const size = /^(0|-?[0-9.]+(px|rem|em|%))$/i;\n if (item.kind === 'color') return color.test(v);\n if (item.kind === 'size') return size.test(v);\n if (item.kind === 'font') return /^[\\w\\s,'\"-]+$/.test(v);\n if (item.kind === 'weight') return /^[1-9]00$/.test(v);\n if (item.kind === 'number') return /^[0-9]+(\\.[0-9]+)?$/.test(v) && Number(v) <= 10;\n if (item.kind === 'choice') return (item.options ?? []).includes(v);\n return /^[\\w\\s#.,%()/-]+$/.test(v);\n}\n\n/** The app's own design values (Main center.themeValues) that pass isSafeDesignValue - the others are left out. */\nexport function safeDesignValues(own: unknown): Record<string, string> {\n if (!own || typeof own !== 'object') return {};\n return Object.fromEntries(Object.entries(own as Record<string, unknown>)\n .filter(([key, v]) => isSafeDesignValue(key, v)).map(([key, v]) => [key, String(v).trim()]));\n}\n\n/**\n * The CSS variables of a theme and the app's own values over it (point 213 worklist 13: the AI or the customer gives\n * an app its own look as design values, never as CSS); {} when neither gives anything.\n */\nexport function themeVariables(id: unknown, own?: unknown): Record<string, string> {\n const theme = appTheme(id);\n const mine = safeDesignValues(own);\n if (!theme && !Object.keys(mine).length) return {};\n // the app's own menu colours: what the theme derives from them (muted text, hover, divider) follows them, unless the app\n // gives those too - the theme's were made for its own menu (a dark one) and stayed on a light menu (2026-11-09)\n const derived: Record<string, string> = {};\n if (mine['menu.background'] || mine['menu.text']) {\n const bg = mine['menu.background'] ?? theme?.values?.['menu.background'];\n const text = mine['menu.text'] ?? theme?.values?.['menu.text'];\n if (bg && text) {\n derived['menu.text-muted'] = `color-mix(in srgb, ${text} 72%, ${bg})`;\n derived['menu.hover'] = `color-mix(in srgb, ${text} 8%, ${bg})`;\n derived['menu.divider'] = `color-mix(in srgb, ${text} 18%, ${bg})`;\n }\n }\n return designVariables({ ...(theme?.values ?? {}), ...derived, ...mine });\n}\n\n/**\n * The device values of a theme and the app's own values over it (key@tablet, key@web) as CSS: one @media rule per device\n * that has any, tablet before web; '' when none. Values pass isSafeDesignValue first (safeDesignValues).\n */\nexport function themeDeviceCss(id: unknown, own?: unknown): string {\n const theme = appTheme(id);\n const devices = designDeviceVariables({ ...(theme?.values ?? {}), ...safeDesignValues(own) });\n return (['tablet', 'web'] as const)\n .filter((device) => Object.keys(devices[device]).length)\n .map((device) => `@media ${DESIGN_DEVICE_MEDIA[device]} { :root { ${Object.entries(devices[device]).map(([name, v]) => `${name}: ${v};`).join(' ')} } }`)\n .join('\\n');\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09\n// - new: opening hours as data (point 213 worklist 29, user decision A): a week of times per day (day, from, to; a day\n// without a time is closed; several times a day for a lunch break; to after midnight = into the next day) and the\n// business's time zone. openingStatus says whether it is open now and when it closes or opens again - always in\n// the business's time zone (summer time from the device's time zone rules, Intl), not the phone's.\n\nexport const WEEK_DAYS = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'] as const;\nexport type WeekDay = typeof WEEK_DAYS[number];\n\n/** One time a day: from and to as \"HH:MM\" (24 h); to \"24:00\" or before from = until the next morning. */\nexport interface OpeningTime { day: WeekDay; from: string; to: string; }\n\nexport interface OpeningStatus {\n open: boolean;\n /** open: the day and time it closes; closed: the day and time it opens next (null: never - no times at all) */\n next: { day: WeekDay; time: string; today: boolean; tomorrow: boolean } | null;\n /** the business's day of the week now */\n today: WeekDay;\n}\n\nconst minutes = (hhmm: string): number | null => {\n const m = /^(\\d{1,2}):(\\d{2})$/.exec(String(hhmm ?? '').trim());\n if (!m) return null;\n const h = Number(m[1]), min = Number(m[2]);\n return h <= 24 && min < 60 && h * 60 + min <= 1440 ? h * 60 + min : null;\n};\n\n/** What is wrong with opening times: unknown day, a time not \"HH:MM\", from equal to. Empty: fine. */\nexport function openingProblems(times: unknown, timeZone?: unknown): { index: number; code: string }[] {\n const problems: { index: number; code: string }[] = [];\n if (!Array.isArray(times)) return [{ index: -1, code: 'notAList' }];\n times.forEach((t: any, index) => {\n if (!WEEK_DAYS.includes(t?.day)) problems.push({ index, code: 'unknownDay' });\n const from = minutes(t?.from), to = minutes(t?.to);\n if (from === null || to === null) problems.push({ index, code: 'notATime' });\n else if (from === to) problems.push({ index, code: 'emptyTime' });\n });\n if (timeZone !== undefined && !validTimeZone(timeZone)) problems.push({ index: -1, code: 'unknownTimeZone' });\n return problems;\n}\n\n/** Whether the device knows the time zone (IANA name such as Europe/Berlin). */\nexport function validTimeZone(zone: unknown): boolean {\n try {\n new Intl.DateTimeFormat('en', { timeZone: String(zone) });\n return typeof zone === 'string' && zone.length > 0;\n } catch {\n return false;\n }\n}\n\n/** The day of the week and the minute of the day in a time zone. */\nexport function zonedNow(now: Date, timeZone: string): { day: WeekDay; minute: number } {\n const parts = new Intl.DateTimeFormat('en-US', { timeZone, weekday: 'short', hour: '2-digit', minute: '2-digit', hourCycle: 'h23' })\n .formatToParts(now);\n const get = (type: string) => parts.find((p) => p.type === type)?.value ?? '';\n const day = get('weekday').slice(0, 3).toLowerCase() as WeekDay;\n return { day: WEEK_DAYS.includes(day) ? day : 'mon', minute: Number(get('hour')) * 60 + Number(get('minute')) };\n}\n\n/** Open now? And when does it close, or open next - in the business's time zone. */\nexport function openingStatus(times: OpeningTime[], timeZone = 'Europe/Berlin', now: Date = new Date()): OpeningStatus {\n const { day, minute } = zonedNow(now, validTimeZone(timeZone) ? timeZone : 'Europe/Berlin');\n const todayIndex = WEEK_DAYS.indexOf(day);\n // the week as intervals in minutes from Monday 00:00 (an end before its start runs into the next day)\n const week = 7 * 1440;\n const spans = (Array.isArray(times) ? times : []).flatMap((t) => {\n const from = minutes(t.from), to = minutes(t.to);\n const d = WEEK_DAYS.indexOf(t.day);\n if (from === null || to === null || d < 0 || from === to) return [];\n const start = d * 1440 + from;\n const end = d * 1440 + (to > from ? to : to + 1440);\n return [{ start, end }];\n });\n const at = todayIndex * 1440 + minute;\n const label = (abs: number) => {\n const m = ((abs % week) + week) % week;\n const d = Math.floor(m / 1440), rest = m % 1440;\n const time = `${String(Math.floor(rest / 60)).padStart(2, '0')}:${String(rest % 60).padStart(2, '0')}`;\n const ahead = Math.floor(abs / 1440) - todayIndex;\n return { day: WEEK_DAYS[d], time, today: ahead === 0, tomorrow: ahead === 1 };\n };\n // open: inside a span (this week, or a span of last Sunday running past midnight)\n for (const s of spans) {\n for (const shift of [0, -week]) {\n if (at >= s.start + shift && at < s.end + shift) {\n // a span ending exactly where the next starts (24:00 then 00:00) counts as one\n let end = s.end + shift;\n for (let more = true; more;) {\n more = false;\n for (const t of spans) for (const sh of [0, week]) if (t.start + sh === end) { end = t.end + sh; more = true; }\n }\n return { open: true, next: label(end), today: day };\n }\n }\n }\n if (!spans.length) return { open: false, next: null, today: day };\n const starts = spans.flatMap((s) => [s.start, s.start + week]).filter((x) => x > at).sort((a, b) => a - b);\n return { open: false, next: label(starts[0]), today: day };\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09\n// - new: the place of a map as data (point 213 worklist 42): lat/lon in degrees (WGS84), checked; the OpenStreetMap\n// embed link with a pin, the section around it fitting the zoom. Used by the app (vl-map), the Designer and the checks.\n\n/** Whether lat and lon are a place on earth (numbers, lat -90..90, lon -180..180, not both 0). */\nexport function validPlace(lat: unknown, lon: unknown): boolean {\n if (lat === null || lat === undefined || lat === '' || lon === null || lon === undefined || lon === '') return false;\n const a = Number(lat), o = Number(lon);\n return Number.isFinite(a) && Number.isFinite(o) && a >= -90 && a <= 90 && o >= -180 && o <= 180 && !(a === 0 && o === 0);\n}\n\n/** The OpenStreetMap embed address with a pin at lat/lon; zoom 1..19 (16: a few streets around). '' for no place. */\nexport function mapEmbedUrl(lat: number, lon: number, zoom = 16): string {\n if (!validPlace(lat, lon)) return '';\n const z = Math.min(19, Math.max(1, Math.round(Number(zoom) || 16)));\n // half the width in degrees at this zoom (a 256-px tile spans 360 / 2^z degrees); the height follows the latitude\n const dLon = (360 / 2 ** z) * 0.8;\n const dLat = dLon * Math.cos((lat * Math.PI) / 180) * 0.6;\n const f = (n: number) => n.toFixed(6);\n const bbox = [f(lon - dLon), f(lat - dLat), f(lon + dLon), f(lat + dLat)].join('%2C');\n return `https://www.openstreetmap.org/export/embed.html?bbox=${bbox}&layer=mapnik&marker=${f(lat)}%2C${f(lon)}`;\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-09\n// - new: a price as data (point 213 worklist 36, user decision): amount (a number), currency (ISO 4217, e.g. EUR) and\n// from (\"from 70 €\"). The app writes it in the reader's language (32 € in German, €32 in English), whole amounts\n// without cents. Used by the app (vl-price), the Designer and the checks.\n\nexport const PRICE_CURRENCIES = ['EUR', 'CHF', 'USD', 'GBP'] as const;\n\n/** Whether the amount is a price: a number from 0 up. */\nexport function validAmount(amount: unknown): boolean {\n return typeof amount === 'number' && Number.isFinite(amount) && amount >= 0;\n}\n\n/** Whether the code is a currency the device can write (three letters, known to Intl). */\nexport function validCurrency(code: unknown): boolean {\n if (typeof code !== 'string' || !/^[A-Z]{3}$/.test(code)) return false;\n try { new Intl.NumberFormat('en', { style: 'currency', currency: code }); return true; } catch { return false; }\n}\n\n/** The price in a language: \"32 €\" (de), \"€32\" (en), with the word for \"from\" before it; '' for no amount. */\nexport function formatPrice(amount: unknown, currency: unknown, lang: string, fromWord = ''): string {\n if (!validAmount(amount)) return '';\n const code = validCurrency(currency) ? String(currency) : 'EUR';\n const whole = Number.isInteger(amount as number);\n let text: string;\n try {\n text = new Intl.NumberFormat(lang || 'en', { style: 'currency', currency: code, minimumFractionDigits: whole ? 0 : 2, maximumFractionDigits: 2 }).format(amount as number);\n } catch {\n text = `${amount} ${code}`;\n }\n return fromWord ? `${fromWord} ${text}` : text;\n}\n","// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-05\n// - new: the design values of an app's look (point 173)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-11-02\n// - new: style-keys - one spelling for style properties (CSS: font-size)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-30\n// - new: the action catalog - what / where / how of a storage or backend call (OFFENE-PUNKTE 144)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-23\n// - new: the app settings catalog - Login, Pagination, Terms & Conditions of Main (#166)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-19\n// - new: the test flow format of an app's .liveforge/tests (#166)\n// Faramarz Yousefian and Agent Toni (Claude Opus 5.5) 2026-10-18\n// - new: @yomotech/view-toolkit/catalog - the field catalog without Angular, for the Designer,\n// node tests and the AI contract tools (#166)\nexport * from './field-catalog';\nexport * from './test-flow';\nexport * from './test-signin';\nexport * from './app-settings-catalog';\nexport * from './action-catalog';\nexport * from './caption-text';\nexport * from './test-probe';\nexport * from './style-keys';\nexport * from './design-values';\nexport * from './opening-hours';\nexport * from './map-place';\nexport * from './price';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MAKa,KAAK,GAAG,CAAI,KAAQ,KAAQ,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;AACzE,MAAM,GAAG,GAAG,CAAC,CAAM,EAAE,CAAS,KAAK,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;AACvE,SAAU,eAAe,CAAC,IAAe,EAAE,SAAiB,EAAA;IAChE,MAAM,KAAK,GAAG,CAAC,SAAS,IAAI,EAAE,EAAE,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACnI,IAAI,IAAI,GAAQ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