import "@goauthentik/admin/applications/wizard/ak-application-wizard"; import { ShowHintController, ShowHintControllerHost, } from "@goauthentik/components/ak-hint/ShowHintController"; import "@goauthentik/components/ak-hint/ak-hint"; import "@goauthentik/components/ak-hint/ak-hint-body"; import { AKElement } from "@goauthentik/elements/Base"; import "@goauthentik/elements/Label"; import "@goauthentik/elements/buttons/ActionButton/ak-action-button"; import { getURLParam } from "@goauthentik/elements/router/RouteMatch"; import { msg } from "@lit/localize"; import { html } from "lit"; import { customElement, property, state } from "lit/decorators.js"; import { styleMap } from "lit/directives/style-map.js"; import PFButton from "@patternfly/patternfly/components/Button/button.css"; import PFLabel from "@patternfly/patternfly/components/Label/label.css"; import PFPage from "@patternfly/patternfly/components/Page/page.css"; const closeButtonIcon = html` `; @customElement("ak-application-wizard-hint") export class AkApplicationWizardHint extends AKElement implements ShowHintControllerHost { static get styles() { return [PFButton, PFPage, PFLabel]; } @property({ type: Boolean, attribute: "show-hint" }) forceHint: boolean = false; @state() showHint: boolean = true; showHintController: ShowHintController; constructor() { super(); this.showHintController = new ShowHintController( this, "202310-application-wizard-announcement", ); } renderReminder() { const sectionStyles = { paddingBottom: "0", marginBottom: "-0.5rem", marginRight: "0.0625rem", textAlign: "right", }; const textStyle = { maxWidth: "60ch" }; return html` ${msg("One hint, 'New Application Wizard', is currently hidden")} ${closeButtonIcon} `; } renderHint() { return html` You can now configure both an application and its authentication provider at the same time with our new Application Wizard. ${this.showHintController.render()} `; } render() { return this.showHint || this.forceHint ? this.renderHint() : this.renderReminder(); } } export default AkApplicationWizardHint;
You can now configure both an application and its authentication provider at the same time with our new Application Wizard.