web: Marking down the start of the 'components' library.

This commit is contained in:
Ken Sternberg 2023-07-31 11:04:26 -07:00
parent 48083ac380
commit bbc47e0fce
10 changed files with 11 additions and 9 deletions

View File

@ -2,6 +2,11 @@ import "@goauthentik/admin/applications/ProviderSelectModal";
import { iconHelperText } from "@goauthentik/admin/helperText"; import { iconHelperText } from "@goauthentik/admin/helperText";
import { DEFAULT_CONFIG, config } from "@goauthentik/common/api/config"; import { DEFAULT_CONFIG, config } from "@goauthentik/common/api/config";
import { first } from "@goauthentik/common/utils"; import { first } from "@goauthentik/common/utils";
import "@goauthentik/components/ak-file-input";
import "@goauthentik/components/ak-radio-input";
import "@goauthentik/components/ak-switch-input";
import "@goauthentik/components/ak-text-input";
import "@goauthentik/components/ak-textarea-input";
import { rootInterface } from "@goauthentik/elements/Base"; import { rootInterface } from "@goauthentik/elements/Base";
import "@goauthentik/elements/forms/FormGroup"; import "@goauthentik/elements/forms/FormGroup";
import "@goauthentik/elements/forms/HorizontalFormElement"; import "@goauthentik/elements/forms/HorizontalFormElement";
@ -24,13 +29,8 @@ import {
Provider, Provider,
} from "@goauthentik/api"; } from "@goauthentik/api";
import "./renderers/ak-backchannel-input"; import "./components/ak-backchannel-input";
import "./renderers/ak-file-input"; import "./components/ak-provider-search-input";
import "./renderers/ak-provider-search-input";
import "./renderers/ak-radio-input";
import "./renderers/ak-switch-input";
import "./renderers/ak-text-input";
import "./renderers/ak-textarea-input";
const policyOptions = [ const policyOptions = [
{ {

View File

@ -12,8 +12,6 @@ import PFFormControl from "@patternfly/patternfly/components/FormControl/form-co
import PFInputGroup from "@patternfly/patternfly/components/InputGroup/input-group.css"; import PFInputGroup from "@patternfly/patternfly/components/InputGroup/input-group.css";
import PFBase from "@patternfly/patternfly/patternfly-base.css"; import PFBase from "@patternfly/patternfly/patternfly-base.css";
/* NOT USED */
@customElement("ak-wizard-form") @customElement("ak-wizard-form")
export abstract class WizardForm extends Form<KeyUnknown> { export abstract class WizardForm extends Form<KeyUnknown> {
viewportCheck = false; viewportCheck = false;
@ -21,6 +19,9 @@ export abstract class WizardForm extends Form<KeyUnknown> {
@property({ attribute: false }) @property({ attribute: false })
nextDataCallback!: (data: KeyUnknown) => Promise<boolean>; nextDataCallback!: (data: KeyUnknown) => Promise<boolean>;
/* Override the traditional behavior of the form and instead simply serialize the form and push
* it's contents to the next page.
*/
async submit(): Promise<boolean | undefined> { async submit(): Promise<boolean | undefined> {
const data = this.serializeForm(); const data = this.serializeForm();
if (!data) { if (!data) {

View File

@ -5,6 +5,7 @@
"@goauthentik/app/*": ["src/*"], "@goauthentik/app/*": ["src/*"],
"@goauthentik/admin/*": ["src/admin/*"], "@goauthentik/admin/*": ["src/admin/*"],
"@goauthentik/common/*": ["src/common/*"], "@goauthentik/common/*": ["src/common/*"],
"@goauthentik/components/*": ["src/components/*"],
"@goauthentik/docs/*": ["../website/docs/*"], "@goauthentik/docs/*": ["../website/docs/*"],
"@goauthentik/elements/*": ["src/elements/*"], "@goauthentik/elements/*": ["src/elements/*"],
"@goauthentik/flow/*": ["src/flow/*"], "@goauthentik/flow/*": ["src/flow/*"],