whatcall - v0.0.0
    Preparing search index...

    Component to upload a new scenario.

    Presented as a wizard, with a number of steps to capture video URL, title, and options. Intended to be displayed as a modal (launched by uploadModal)

    Index

    Constructors

    Properties

    fileInputElem: ElementRef<HTMLInputElement>

    Reference to fileInput HTML element

    firstFormGroup: FormGroup<
        { upload: FormControl<string | null>; url: FormControl<string | null> },
    > = ...

    FormGroup for first page - contains form controls

    reactiveKeywords: WritableSignal<string[]> = ...

    array of entered options (Signal wrapped) - presented onscreen as MatChips

    secondFormGroup: FormGroup<
        {
            description: FormControl<string | null>;
            scenarioType: FormControl<string | null>;
            title: FormControl<string | null>;
        },
    > = ...

    FormGroup for second page - contains form controls

    separatorKeysCodes: number[] = ...

    List of key codes to treat as separate options

    thirdFormGroup: FormGroup<{ options: FormControl<string[] | null> }> = ...

    FormGroup for third page - contains form contols

    Accessors

    Methods

    • Add an option to the list

      Parameters

      • event: MatChipInputEvent

        input event recieved from MatChip

      Returns void

    • Remove an option from the list

      Parameters

      • keyword: string

        option to remove

      Returns void

    • Create a new scenario, saving the form contents.

      If a file has been provided, upload this to the storage service and use the public URL of the storage item as the URL.

      Returns Promise<void>