Member Junction
    Preparing search index...

    Service for managing form state persistence per entity. State is stored in the User Settings entity and shared reactively across all form instances for the same entity.

    Index

    Constructors

    Accessors

    Methods

    • Get the count of expanded sections.

      Parameters

      • entityName: string

        The entity name

      • sectionKeys: string[]

        Array of section keys to check

      Returns number

      Number of expanded sections

    • Get the custom section order for an entity.

      Parameters

      • entityName: string

        The entity name

      Returns string[] | undefined

      Array of section keys in user's preferred order, or undefined if using default order

    • Get the persisted panel height for a section.

      Parameters

      • entityName: string

        The entity name

      • sectionKey: string

        The section key

      Returns number | undefined

      Panel height in pixels, or undefined if no custom height is set

    • Whether this entity has had an EXPLICIT widthMode set via the toolbar width-toggle (and thus the user's choice should win over component defaults). Returns false for pre-existing persisted blobs that had a default widthMode serialized as a side effect of other state saves.

      Parameters

      • entityName: string

      Returns boolean

    • Check if a section is expanded.

      Parameters

      • entityName: string

        The entity name

      • sectionKey: string

        The section key

      • OptionaldefaultExpanded: boolean

        Optional default value to use when no persisted state exists (defaults to DEFAULT_SECTION_STATE.isExpanded)

      Returns boolean

      True if expanded

    • Set edit mode for an entity. While in edit mode, state changes update the in-memory BehaviorSubject (so the UI stays reactive) but skip database persistence. When edit mode ends, a single save is queued to persist the final layout state.

      Parameters

      • entityName: string

        The entity name

      • editing: boolean

        Whether the form is entering (true) or exiting (false) edit mode

      Returns void

    • Set section expanded state.

      Parameters

      • entityName: string

        The entity name

      • sectionKey: string

        The section key

      • isExpanded: boolean

        Whether the section is expanded

      Returns void

    • Set the custom section order for an entity.

      Parameters

      • entityName: string

        The entity name

      • sectionOrder: string[]

        Array of section keys in the desired order

      Returns void

    • Set the panel height for a section (persisted to User Settings).

      Parameters

      • entityName: string

        The entity name

      • sectionKey: string

        The section key

      • height: number

        Panel height in pixels

      Returns void

    • Set form width mode. Marks the preference as explicit so it wins over any component-level default in BaseFormComponent.getFormWidthMode.

      Parameters

      • entityName: string
      • widthMode: "centered" | "full-width"

      Returns void