import "@goauthentik/components/ak-radio-input"; import "@goauthentik/components/ak-switch-input"; import "@goauthentik/components/ak-text-input"; import { WithLicenseSummary } from "@goauthentik/elements/Interface/licenseSummaryProvider"; import "@goauthentik/elements/forms/FormGroup"; import "@goauthentik/elements/forms/HorizontalFormElement"; import "@goauthentik/elements/wizard/TypeCreateWizardPage"; import { TypeCreateWizardPageLayouts } from "@goauthentik/elements/wizard/TypeCreateWizardPage"; import { msg } from "@lit/localize"; import { customElement } from "@lit/reactive-element/decorators/custom-element.js"; import { html } from "lit"; import BasePanel from "../BasePanel"; import type { LocalTypeCreate } from "./ak-application-wizard-authentication-method-choice.choices"; import providerModelsList from "./ak-application-wizard-authentication-method-choice.choices"; @customElement("ak-application-wizard-authentication-method-choice") export class ApplicationWizardAuthenticationMethodChoice extends WithLicenseSummary(BasePanel) { render() { const selectedTypes = providerModelsList.filter( (t) => t.formName === this.wizard.providerModel, ); return providerModelsList.length > 0 ? html`
0 ? selectedTypes[0] : undefined} @select=${(ev: CustomEvent) => { this.dispatchWizardUpdate({ update: { ...this.wizard, providerModel: ev.detail.formName, errors: {}, }, status: this.valid ? "valid" : "invalid", }); }} >
` : html``; } } export default ApplicationWizardAuthenticationMethodChoice; declare global { interface HTMLElementTagNameMap { "ak-application-wizard-authentication-method-choice": ApplicationWizardAuthenticationMethodChoice; } }