{"version":3,"file":"styloviz-core-virtual.mjs","names":[],"sources":["../../../../projects/core/virtual/virtualizer.ts"],"sourcesContent":["import { computed, signal, type Signal, type WritableSignal } from '@angular/core';\n\n/**\n * Half-open slice of a list that is worth rendering: `[start, end)`.\n *\n * `end` is exclusive, so it feeds `Array.prototype.slice` directly and an empty\n * window is expressed as `start === end` rather than a negative length.\n */\nexport interface VirtualRange {\n  readonly start: number;\n  /** Exclusive. */\n  readonly end: number;\n}\n\n/**\n * Fires when a scroll leaves the viewport within `nearEndThreshold` px of the\n * bottom of the scrollable content — the generic \"the user is close to\n * running out of rows\" signal that infinite-scroll is built on.\n *\n * ★ Fires unconditionally on every qualifying scroll event, with no notion of\n * \"is a page already loading\" or \"does the server have more\" — those are the\n * caller's concerns (`list-view`'s `hasMore` / `loadingMore` / an in-tick\n * guard against a burst of scroll events), same as before this was shared.\n * A primitive that also tried to own pagination state would need to know\n * about `loadMore` events, request lifecycles and per-consumer retry policy —\n * exactly the coupling `createVirtualizer` has otherwise never had.\n */\nexport interface NearEndOptions {\n  /** Called when the scroll position satisfies the threshold below. */\n  readonly onNearEnd?: () => void;\n  /** Distance from the bottom, in pixels, that counts as \"near\". @default 100 */\n  readonly nearEndThreshold?: Signal<number>;\n}\n\n/** Signals a virtualizer reads. All are read lazily, inside `computed`. */\nexport interface VirtualizerOptions<T> extends NearEndOptions {\n  /** The full, already-filtered list. Only a window of it is ever rendered. */\n  readonly items: Signal<readonly T[]>;\n  /** Row height in pixels. Values ≤ 0 or non-finite fall back to 1. */\n  readonly itemHeight: Signal<number>;\n  /** Height of the scrolling viewport in pixels. */\n  readonly viewportHeight: Signal<number>;\n  /** Extra rows rendered above and below the viewport. @default 2 */\n  readonly overscan?: Signal<number>;\n  /** When false, the whole list is returned unwindowed. @default true */\n  readonly enabled?: Signal<boolean>;\n}\n\n/** Windowing state derived from a scroll position. Every member is a signal. */\nexport interface Virtualizer<T> {\n  /** The slice of `items` currently worth rendering. */\n  readonly range: Signal<VirtualRange>;\n  /** `items` narrowed to `range`. */\n  readonly items: Signal<readonly T[]>;\n  /** Height of the full list — the scrollable extent. */\n  readonly totalHeight: Signal<number>;\n  /** Height of the spacer that stands in for the rows above `range`. */\n  readonly topSpacer: Signal<number>;\n  /** Height of the spacer that stands in for the rows below `range`. */\n  readonly bottomSpacer: Signal<number>;\n  /** Current scroll offset in pixels, clamped to ≥ 0. */\n  readonly scrollTop: Signal<number>;\n\n  /** Set the scroll offset directly. */\n  setScrollTop(px: number): void;\n  /** Bind to `(scroll)` on the viewport element. */\n  onScroll(event: Event): void;\n  /** Pixel offset of a row — for scroll-to-index. */\n  offsetOf(index: number): number;\n}\n\nconst ALWAYS_ENABLED: Signal<boolean> = computed(() => true);\nconst DEFAULT_OVERSCAN: Signal<number> = computed(() => 2);\nconst DEFAULT_NEAR_END_THRESHOLD: Signal<number> = computed(() => 100);\n\n/** Coerce to a finite number ≥ `min`, so a bad input can't poison the maths. */\nfunction atLeast(value: number, min: number): number {\n  return Number.isFinite(value) && value > min ? value : min;\n}\n\n/**\n * Shape of the DOM properties `onScroll`/near-end read off the event target.\n * A structural type, not `HTMLElement`, so a test can pass a plain object —\n * `list-view.scrolling.spec.ts` already relies on exactly this for jsdom,\n * where every element's geometry defaults to 0.\n */\ninterface ScrollGeometry {\n  readonly scrollTop: number;\n  readonly clientHeight?: number;\n  readonly scrollHeight?: number;\n}\n\n/**\n * The `scrollTop` / `setScrollTop` / `onScroll` triplet, shared by every\n * virtualizer variant so the iOS-bounce clamp, the non-finite guard and the\n * near-end firing are written and tested exactly once.\n */\nfunction createScrollState(near: NearEndOptions): {\n  readonly scrollTop: WritableSignal<number>;\n  readonly setScrollTop: (px: number) => void;\n  readonly onScroll: (event: Event) => void;\n} {\n  const threshold = near.nearEndThreshold ?? DEFAULT_NEAR_END_THRESHOLD;\n  const scrollTop = signal(0);\n\n  const setScrollTop = (px: number): void => {\n    scrollTop.set(Number.isFinite(px) ? Math.max(0, px) : 0);\n  };\n\n  const maybeFireNearEnd = (target: ScrollGeometry | null): void => {\n    if (!near.onNearEnd || !target) return;\n    const clientHeight = target.clientHeight ?? 0;\n    const scrollHeight = target.scrollHeight ?? 0;\n    // ★ Same shape as the inline check this replaced in `list-view`: within\n    // `threshold` px of the bottom of the scrollable content. `scrollHeight`\n    // of 0 (an untested/mocked element) never satisfies this unless\n    // `scrollTop` is also 0, which a real \"near the bottom\" gesture is not.\n    if (target.scrollTop + clientHeight >= scrollHeight - Math.max(0, threshold())) {\n      near.onNearEnd();\n    }\n  };\n\n  return {\n    scrollTop,\n    setScrollTop,\n    onScroll: (event: Event) => {\n      // Overscroll bounce reports a negative offset on iOS; clamp it.\n      const el = event.target as ScrollGeometry | null;\n      scrollTop.set(Math.max(0, el?.scrollTop ?? 0));\n      maybeFireNearEnd(el);\n    },\n  };\n}\n\n/**\n * Fixed-height list virtualization, as a set of derived signals.\n *\n * Renders only the rows near the viewport and pads the rest with two spacer\n * elements, so a 50,000-row list costs the same as a 20-row one. Fixed row\n * height is the deliberate trade: it makes every position a multiplication, so\n * there is no measurement pass, no `ResizeObserver`, and no layout thrash.\n *\n * This is a plain factory, not a service or a directive — it needs no injection\n * context and can be called straight from a field initializer:\n *\n * ```ts\n * protected readonly virtual = createVirtualizer({\n *   items: this.rows,\n *   itemHeight: this.rowHeight,\n *   viewportHeight: this.viewportHeight,\n *   overscan: this.overscan,\n *   enabled: this.isVirtualized,\n * });\n * ```\n *\n * ```html\n * <div [style.height.px]=\"viewportHeight()\" (scroll)=\"virtual.onScroll($event)\"\n *      class=\"overflow-y-auto\">\n *   <div [style.height.px]=\"virtual.totalHeight()\">\n *     <div [style.height.px]=\"virtual.topSpacer()\"></div>\n *     @for (row of virtual.items(); track row.id) { … }\n *     <div [style.height.px]=\"virtual.bottomSpacer()\"></div>\n *   </div>\n * </div>\n * ```\n *\n * When `enabled` is false the range spans the whole list, so the same template\n * serves both the windowed and unwindowed cases.\n */\nexport function createVirtualizer<T>(options: VirtualizerOptions<T>): Virtualizer<T> {\n  const overscan = options.overscan ?? DEFAULT_OVERSCAN;\n  const enabled = options.enabled ?? ALWAYS_ENABLED;\n\n  const { scrollTop, setScrollTop, onScroll } = createScrollState(options);\n\n  /** Row height, guaranteed positive — a zero would divide by zero below. */\n  const rowHeight = computed(() => atLeast(options.itemHeight(), 1));\n\n  const range = computed<VirtualRange>(() => {\n    const total = options.items().length;\n    if (!enabled()) return { start: 0, end: total };\n\n    const height = rowHeight();\n    const viewport = Math.max(0, options.viewportHeight());\n    const pad = Math.max(0, Math.floor(overscan()));\n\n    // Clamp to the scrollable extent. If the list shrinks while the user is\n    // scrolled near the bottom, the raw offset briefly points past the end —\n    // without this the window would be empty until the next scroll event.\n    const top = Math.min(scrollTop(), Math.max(0, total * height - viewport));\n\n    // Round the first row down and the last row up: a viewport that does not\n    // align to a row boundary shows a partial row at each edge, and both must\n    // be rendered or the list has visible gaps when overscan is 0.\n    const first = Math.floor(top / height);\n    const last = Math.ceil((top + viewport) / height);\n\n    const start = Math.min(Math.max(first - pad, 0), total);\n    const end = Math.min(Math.max(last + pad, start), total);\n\n    return { start, end };\n  });\n\n  const windowed = computed<readonly T[]>(() => {\n    const { start, end } = range();\n    const all = options.items();\n    return start === 0 && end === all.length ? all : all.slice(start, end);\n  });\n\n  return {\n    range,\n    items: windowed,\n    totalHeight: computed(() => options.items().length * rowHeight()),\n    topSpacer: computed(() => range().start * rowHeight()),\n    bottomSpacer: computed(() => {\n      const trailing = Math.max(0, options.items().length - range().end);\n      return trailing * rowHeight();\n    }),\n    scrollTop: scrollTop.asReadonly(),\n\n    setScrollTop,\n    onScroll,\n    offsetOf: (index: number) => Math.max(0, index) * rowHeight(),\n  };\n}\n\n// ── Variable-height virtualization ──────────────────────────────────────────\n\n/** Signals a variable-height virtualizer reads. */\nexport interface VariableVirtualizerOptions<T> extends NearEndOptions {\n  /** The full, already-filtered list. Only a window of it is ever rendered. */\n  readonly items: Signal<readonly T[]>;\n  /**\n   * Height of row `index`, in pixels, given the item at that row. Called once\n   * per row on every recompute — same cost class as a `@for` template\n   * re-rendering its rows, not a per-frame cost. Values ≤ 0 or non-finite\n   * fall back to 1, same as the fixed-height guard.\n   */\n  readonly itemSize: Signal<(index: number, item: T) => number>;\n  /** Height of the scrolling viewport in pixels. */\n  readonly viewportHeight: Signal<number>;\n  /** Extra rows rendered above and below the viewport. @default 2 */\n  readonly overscan?: Signal<number>;\n  /** When false, the whole list is returned unwindowed. @default true */\n  readonly enabled?: Signal<boolean>;\n}\n\n/**\n * Smallest index in `[0, sorted.length)` whose value is `>= target` — the\n * standard binary-search \"lower bound\". `sorted.length` if none qualifies.\n */\nfunction lowerBound(sorted: readonly number[], target: number): number {\n  let lo = 0;\n  let hi = sorted.length;\n  while (lo < hi) {\n    const mid = (lo + hi) >>> 1;\n    if (sorted[mid] < target) lo = mid + 1;\n    else hi = mid;\n  }\n  return lo;\n}\n\n/**\n * Smallest index in `[0, sorted.length)` whose value is `> target` — the\n * standard binary-search \"upper bound\". `sorted.length` if none qualifies.\n */\nfunction upperBound(sorted: readonly number[], target: number): number {\n  let lo = 0;\n  let hi = sorted.length;\n  while (lo < hi) {\n    const mid = (lo + hi) >>> 1;\n    if (sorted[mid] <= target) lo = mid + 1;\n    else hi = mid;\n  }\n  return lo;\n}\n\n/**\n * Variable-height list virtualization — `createVirtualizer`'s sibling for\n * rows that are not all the same height (a data-table's group-header rows\n * among its data rows; a call-history entry with a note under it next to one\n * without). Same returned shape, same template, same scroll/near-end\n * behaviour — swapping `itemHeight` for `itemSize` is the only call-site\n * change, so a consumer is never forced to choose between the two up front.\n *\n * ## The cost this adds, honestly\n *\n * Fixed-height virtualization is one multiplication per lookup; there is\n * nothing to measure. Variable height cannot avoid knowing every row's size,\n * so this builds a prefix-sum array of cumulative offsets on every `items()`\n * or `itemSize()` change — O(n) to build, O(log n) per range lookup via\n * binary search. For the list sizes virtualization exists to help (thousands\n * of rows, not millions) this is unmeasurable; it is not free, and pretending\n * otherwise would be the same shortcut the fixed-height version explicitly\n * refuses to take in the other direction.\n */\nexport function createVariableVirtualizer<T>(options: VariableVirtualizerOptions<T>): Virtualizer<T> {\n  const overscan = options.overscan ?? DEFAULT_OVERSCAN;\n  const enabled = options.enabled ?? ALWAYS_ENABLED;\n\n  const { scrollTop, setScrollTop, onScroll } = createScrollState(options);\n\n  /**\n   * Cumulative offsets, length `items().length + 1`. `offsets[i]` is the\n   * pixel position row `i` starts at; `offsets[n]` is the total height. Row\n   * `i` occupies `[offsets[i], offsets[i + 1])`, so both are exactly what the\n   * binary searches below need and what `offsetOf`/`topSpacer` return as-is.\n   */\n  const offsets = computed<readonly number[]>(() => {\n    const items = options.items();\n    const size = options.itemSize();\n    const out = new Array<number>(items.length + 1);\n    out[0] = 0;\n    for (let i = 0; i < items.length; i++) {\n      out[i + 1] = out[i] + atLeast(size(i, items[i]), 1);\n    }\n    return out;\n  });\n\n  const totalHeight = computed(() => offsets().at(-1) ?? 0);\n\n  const range = computed<VirtualRange>(() => {\n    const total = options.items().length;\n    if (!enabled() || total === 0) return { start: 0, end: total };\n\n    const table = offsets();\n    const viewport = Math.max(0, options.viewportHeight());\n    const pad = Math.max(0, Math.floor(overscan()));\n\n    // Clamp to the scrollable extent — same reasoning as the fixed-height\n    // version: a list that just shrank must not leave the window pointing\n    // past the end until the next scroll event arrives.\n    const top = Math.min(scrollTop(), Math.max(0, totalHeight() - viewport));\n\n    // The row containing `top`: the last row whose offset is `<= top`.\n    const first = upperBound(table, top) - 1;\n    // The first row entirely past the viewport's bottom edge.\n    const last = lowerBound(table, top + viewport);\n\n    const start = Math.min(Math.max(first - pad, 0), total);\n    const end = Math.min(Math.max(last + pad, start), total);\n\n    return { start, end };\n  });\n\n  const windowed = computed<readonly T[]>(() => {\n    const { start, end } = range();\n    const all = options.items();\n    return start === 0 && end === all.length ? all : all.slice(start, end);\n  });\n\n  const offsetOf = (index: number): number => {\n    const table = offsets();\n    const clamped = Math.min(Math.max(index, 0), table.length - 1);\n    return table[clamped];\n  };\n\n  return {\n    range,\n    items: windowed,\n    totalHeight,\n    topSpacer: computed(() => offsetOf(range().start)),\n    bottomSpacer: computed(() => totalHeight() - offsetOf(range().end)),\n    scrollTop: scrollTop.asReadonly(),\n\n    setScrollTop,\n    onScroll,\n    offsetOf,\n  };\n}\n"],"mappings":";AAuEA,MAAM,iBAAkC,eAAe,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,iBAAA,CAAA,+BAAA,CAAA,CAAA;AAC5D,MAAM,mBAAmC,eAAe,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,mBAAA,CAAA,+BAAA,CAAA,CAAA;AAC1D,MAAM,6BAA6C,eAAe,KAAI,GAAA,YAAA,CAAA,EAAA,WAAA,6BAAA,CAAA,+BAAA,CAAA,CAAA;AAGtE,SAAS,QAAQ,OAAe,KAAW;CACzC,OAAO,OAAO,SAAS,KAAK,KAAK,QAAQ,MAAM,QAAQ;AACzD;AAmBA,SAAS,kBAAkB,MAAoB;CAK7C,MAAM,YAAY,KAAK,oBAAoB;CAC3C,MAAM,YAAY,OAAO,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAE3B,MAAM,gBAAgB,OAAoB;EACxC,UAAU,IAAI,OAAO,SAAS,EAAE,IAAI,KAAK,IAAI,GAAG,EAAE,IAAI,CAAC;CACzD;CAEA,MAAM,oBAAoB,WAAuC;EAC/D,IAAI,CAAC,KAAK,aAAa,CAAC,QAAQ;EAChC,MAAM,eAAe,OAAO,gBAAgB;EAC5C,MAAM,eAAe,OAAO,gBAAgB;EAK5C,IAAI,OAAO,YAAY,gBAAgB,eAAe,KAAK,IAAI,GAAG,UAAS,CAAE,GAC3E,KAAK,UAAS;CAElB;CAEA,OAAO;EACL;EACA;EACA,WAAW,UAAgB;GAEzB,MAAM,KAAK,MAAM;GACjB,UAAU,IAAI,KAAK,IAAI,GAAG,IAAI,aAAa,CAAC,CAAC;GAC7C,iBAAiB,EAAE;EACrB;CACD;AACH;AAqC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