Skip to main content
cngx-src documentation

createStepperHostProxy

Functioncommon/stepperv0.1.0

projects/common/stepper/create-stepper-host-proxy.ts

Description#

Builds a live delegating CngxStepperHost proxy over a supplier signal. Every signal member is a computed() reading supplier()?.<member>(), every method forwards to supplier()?.<method>(...). This is the spelled-out shape for re-providing an input-derived host through DI - you cannot useExisting an input() value, so the footer provides this proxy once and it tracks whichever host the supplier currently resolves.

Null-supplier neutral set (the disabled-by-default contract). When the supplier resolves null (a standalone footer with neither [host] nor an ambient stepper), every navigation affordance must render inert, never falsely enabled: canGoPrevious / canGoNext collapse to false so Back / Next render disabled, and every method is a no-op.

create* pure factory - no injection context required (computed() only). Single consumer (the footer); the surface is load-bearing, not speculative.

Signature#

createStepperHostProxy(supplier)

Parameters#

@paramsupplier

Returns#

CngxStepperHost