import "#admin/applications/wizard/ak-application-wizard"; import "#components/ak-hint/ak-hint"; import "#components/ak-hint/ak-hint-body"; import "#elements/Label"; import "#elements/buttons/ActionButton/ak-action-button"; import { AKElement } from "#elements/Base"; import { getURLParam } from "#elements/router/RouteMatch"; import { ShowHintController, ShowHintControllerHost } from "#components/ak-hint/ShowHintController"; import { msg } from "@lit/localize"; import { css, 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"; import PFBase from "@patternfly/patternfly/patternfly-base.css"; const closeButtonIcon = html``; @customElement("ak-application-wizard-hint") export class AkApplicationWizardHint extends AKElement implements ShowHintControllerHost { static get styles() { return [ PFBase, PFButton, PFPage, PFLabel, css` .pf-c-page__main-section { padding-bottom: 0; } .ak-hint-text { padding-bottom: var(--pf-global--spacer--md); } `, ]; } @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")}
`; } 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; declare global { interface HTMLElementTagNameMap { "ak-application-wizard-hint": AkApplicationWizardHint; } }