Repository navigation
ln-ashlar v2.2.8
Release:
v2.2.8
Date: November 24, 2026
Summary: Newln-repeatergeneric dynamic form-row component (min/maxbounds,{index}/{index1}token substitution, optional reindexing, externaldata-ln-repeater-add-fortriggers,ln-fillhydration, andln-sortablecomposition) plus automatic dynamic-row synchronization (onSubtreeChange,sync(), and nested prefix value resolution) inln-translations.
Overview
1. New ln-repeater Component (components/ln-repeater/).
- Implemented the Two-Tier
ln-repeaterprimitive (repeater-model.js + ln-repeater.js) for dynamic repeatable form rows cloned from an authored HTML<template>. - Supports
data-ln-repeater-min/data-ln-repeater-maxbounds (auto-seeding rows on init when empty and syncing nativedisabled/aria-disabledon internal and external[data-ln-repeater-add-for]/[data-ln-repeater-remove]triggers),{index}(0-based) and{index1}(1-based) placeholder substitution, SSR max-index detection, monotonic default indices, opt-in sequential renumbering viadata-ln-repeater-reindex(including onln-sortable:reordered), accessible focus management on add/remove, andln-fillcreate/edit hydration. - Added functional CSS (
components/ln-repeater/ln-repeater.scss), theme mixin and bindings (theme/config/mixins/_repeater.scss,theme/components/_repeater.scss) with horizontal flex side-by-side layout for[data-ln-translatable]fields inside repeater rows, and dev diagnostics (components/ln-repeater/ln-repeater-dev.scss).
2. Dynamic Row Synchronization & Nested Prefix Resolution in ln-translations.
- Wired
onSubtreeChangevialn-core's shared lifecycle observer and addeddom.lnTranslations.sync()(components/ln-translations/src/ln-translations.js) so dynamically inserted[data-ln-translatable]wrappers (such as rows appended byln-repeater) automatically receive default-language flags and clones for every currently active language with zero coupling between components. - Added
resolveTranslationValue(values, field, prefix)incomponents/ln-translations/src/translations-model.jsto resolve nested bracketed prefix paths (e.g.options[0]→values.options[0].label) cleanly duringln-fillhydration without leaking top-level field values.
3. Demo Page, Documentation, Schemas & Tests.
- Added the interactive admin demo page (
demo/admin/src/pages/repeater.html→demo/admin/repeater.html) showcasing basic options, translatable + sortable rows, multi-field indexed rows with external add trigger, and modal create/editln-fillhydration. - Added component documentation (
components/ln-repeater/README.md,docs-mcp/components/ln-repeater.md), updateddocs-mcp/component-router.md,README.md,docs/README.md,llms.txt/llms-full.txt, attribute/event catalogs, and unit tests (tests/ln-repeater.test.js,tests/ln-translations.test.js).