UNPKG

@lion/fieldset

Version:

Allows to groups multiple input fields or other fieldsets together

24 lines (23 loc) 2.55 kB
declare const LionFieldset_base: typeof LitElement & import("@open-wc/dedupe-mixin").Constructor<import("@lion/form-core/types").FormGroupHost> & Pick<typeof import("@lion/form-core/types").FormGroupHost, "prototype"> & import("@open-wc/dedupe-mixin").Constructor<import("@lion/form-core/types").FormRegistrarHost> & Pick<typeof import("@lion/form-core/types").FormRegistrarHost, "prototype"> & import("@open-wc/dedupe-mixin").Constructor<import("@lion/form-core/types").FormControlHost> & Pick<typeof import("@lion/form-core/types").FormControlHost, "prototype" | "properties" | "styles"> & import("@open-wc/dedupe-mixin").Constructor<import("@lion/form-core/types").ValidateHost> & Pick<typeof import("@lion/form-core/types").ValidateHost, "prototype" | "validationTypes"> & import("@open-wc/dedupe-mixin").Constructor<import("@lion/core/types/DisabledMixinTypes").DisabledHost> & Pick<typeof import("@lion/core/types/DisabledMixinTypes").DisabledHost, "prototype"> & import("@open-wc/dedupe-mixin").Constructor<import("@lion/core/types/SlotMixinTypes").SlotHost> & Pick<typeof import("@lion/core/types/SlotMixinTypes").SlotHost, "prototype"> & Pick<typeof LitElement, "prototype" | "_$litElement$" | "enabledWarnings" | "enableWarning" | "disableWarning" | "addInitializer" | "_initializers" | "elementProperties" | "properties" | "elementStyles" | "styles" | "observedAttributes" | "createProperty" | "shadowRootOptions">; /** * @desc LionFieldset is basically a 'sub form' and can have its own nested sub forms. * It mimics the native <fieldset> element in this sense, but has all the functionality of * a FormControl (advanced styling, validation, interaction states etc.) Also see * FormGroupMixin it depends on. * * LionFieldset enables the '_isFormOrFieldset' flag in FormRegistrarMixin. This makes .formElements * act not only as an array, but also as an object (see FormRegistarMixin for more information). * As a bonus, It can also group children having names ending with '[]'. * * Above will be helpful for both forms and sub forms, which can contain sub forms as children * as well and allow for a nested form structure. * Contrary, other form groups (choice groups like radio-group, checkbox-group and (multi)select) * don't: they should be considered 'end nodes' or 'leaves' of the form and their children/formElements * cannot be accessed individually via object keys. * * @customElement lion-fieldset */ export class LionFieldset extends LionFieldset_base { } import { LitElement } from "@lion/core"; export {};