/* eslint-disable */ /* tslint:disable */ /** * This is an autogenerated file created by the Stencil compiler. * It contains typing information for all components that exist in this project. */ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime"; import { OdsRadio, OdsRadioCheckedChangeEventDetail, OdsRadioCheckingChangeEventDetail } from "@ovhcloud/ods-core"; export namespace Components { interface OsdsRadio { /** * @see OdsRadioAttributes.afterSave */ "afterSave"?: (({ checked, value }: { checked: boolean; value: string; }) => Promise) | undefined; /** * The corresponding aria-label describing its content * @see OdsRadioAttributes.ariaLabel */ "ariaLabel": string | null; /** * The id to an external description * @see OdsRadioAttributes.ariaLabelledby */ "ariaLabelledby"?: string | undefined; /** * @see OdsRadioAttributes.beforeSave */ "beforeSave"?: (({ checked, value }: { checked: boolean; value: string; }) => Promise) | undefined; /** * The checked status of the radio * @see OdsRadioAttributes.checked */ "checked": boolean; /** * is in state of awaiting the checked change * @see OdsRadioAttributes.checking */ "checking": boolean; /** * Radio should be disabled or not * @see OdsRadioAttributes.disabled */ "disabled": boolean; /** * The radio corresponding label * @see OdsRadioAttributes.label */ "label"?: string; /** * The name corresponding to its parent radio group * @see OdsRadioAttributes.name */ "name"?: string; /** * save input allow to set a function that returns a promise. It is called before each time an update is performed and allowing to manage pessimistic update strategy * @see OdsRadioAttributes.save */ "save"?: (({ checked, value }: { checked: boolean; value: string; }) => Promise) | undefined; /** * Set the tab index. useful between radio-group and radio * @see OdsRadioMethods.setButtonTabindex */ "setButtonTabindex": (value: number) => Promise; /** * set the focus. useful between radio-group and radio * @see OdsRadioMethods.setFocus */ "setFocus": () => Promise; /** * update the state according to the different attributes (checking, checked, etc). useful between radio-group and radio * @see OdsRadioMethods.updateState */ "updateState": (checking?: boolean) => Promise; /** * Its corresponding value * @see OdsRadioAttributes.value */ "value": string; } interface OsdsRadioGroup { /** * @see OdsRadioGroupAttributes.afterSave */ "afterSave"?: (({ value }: { value: string; }) => Promise) | undefined; /** * @see OdsRadioGroupAttributes.beforeSave */ "beforeSave"?: (({ value }: { value: string; }) => Promise) | undefined; /** * Radio-group should be disabled or not * @see OdsRadioGroupAttributes.disabled */ "disabled": boolean; /** * @see OdsRadioGroupMethods.getRadios */ "getRadios": () => Promise<(HTMLElement & OdsRadio)[]>; /** * @see OdsRadioGroupAttributes.name */ "name": string; /** * called when a radio component is instanced * @see OdsRadioGroupMethods.registerRadio */ "registerRadio": (radio: (HTMLElement & OdsRadio)) => Promise; /** * If the radio selection is required or not * @see OdsRadioGroupAttributes.required */ "required": boolean | undefined; /** * save input allow to set a function that returns a promise. It is called before each time an update is performed and allowing to manage pessimistic update strategy * @see OdsRadioGroupAttributes.save */ "save"?: (({ value }: { value: string; }) => Promise) | undefined; /** * called when a radio component is destroyed * @see OdsRadioGroupMethods.unregisterRadio */ "unregisterRadio": (radio: (HTMLElement & OdsRadio)) => Promise; /** * @see OdsRadioGroupMethods.updateState */ "updateState": ({ newValue, checked, checking }: { newValue: string; checked: boolean; checking: boolean; }) => Promise; /** * @see OdsRadioGroupAttributes.value */ "value": string; } } export interface OsdsRadioCustomEvent extends CustomEvent { detail: T; target: HTMLOsdsRadioElement; } export interface OsdsRadioGroupCustomEvent extends CustomEvent { detail: T; target: HTMLOsdsRadioGroupElement; } declare global { interface HTMLOsdsRadioElement extends Components.OsdsRadio, HTMLStencilElement { } var HTMLOsdsRadioElement: { prototype: HTMLOsdsRadioElement; new (): HTMLOsdsRadioElement; }; interface HTMLOsdsRadioGroupElement extends Components.OsdsRadioGroup, HTMLStencilElement { } var HTMLOsdsRadioGroupElement: { prototype: HTMLOsdsRadioGroupElement; new (): HTMLOsdsRadioGroupElement; }; interface HTMLElementTagNameMap { "osds-radio": HTMLOsdsRadioElement; "osds-radio-group": HTMLOsdsRadioGroupElement; } } declare namespace LocalJSX { interface OsdsRadio { /** * @see OdsRadioAttributes.afterSave */ "afterSave"?: (({ checked, value }: { checked: boolean; value: string; }) => Promise) | undefined; /** * The corresponding aria-label describing its content * @see OdsRadioAttributes.ariaLabel */ "ariaLabel"?: string | null; /** * The id to an external description * @see OdsRadioAttributes.ariaLabelledby */ "ariaLabelledby"?: string | undefined; /** * @see OdsRadioAttributes.beforeSave */ "beforeSave"?: (({ checked, value }: { checked: boolean; value: string; }) => Promise) | undefined; /** * The checked status of the radio * @see OdsRadioAttributes.checked */ "checked"?: boolean; /** * is in state of awaiting the checked change * @see OdsRadioAttributes.checking */ "checking"?: boolean; /** * Radio should be disabled or not * @see OdsRadioAttributes.disabled */ "disabled"?: boolean; /** * The radio corresponding label * @see OdsRadioAttributes.label */ "label"?: string; /** * The name corresponding to its parent radio group * @see OdsRadioAttributes.name */ "name"?: string; /** * Event triggered on radio blur * @see OdsRadioEvents.odsBlur */ "onOdsBlur"?: (event: OsdsRadioCustomEvent) => void; /** * the checked state changed * @see OdsRadioEvents.odsCheckedChange */ "onOdsCheckedChange"?: (event: OsdsRadioCustomEvent) => void; /** * the checked state is being changed * @see OdsRadioEvents.odsCheckingChange */ "onOdsCheckingChange"?: (event: OsdsRadioCustomEvent) => void; /** * Event triggered on radio focus * @see OdsRadioEvents.odsFocus */ "onOdsFocus"?: (event: OsdsRadioCustomEvent) => void; /** * the radio value changed * @see OdsRadioEvents.odsValueChange */ "onOdsValueChange"?: (event: OsdsRadioCustomEvent<{ checked: boolean, value: string }>) => void; /** * save input allow to set a function that returns a promise. It is called before each time an update is performed and allowing to manage pessimistic update strategy * @see OdsRadioAttributes.save */ "save"?: (({ checked, value }: { checked: boolean; value: string; }) => Promise) | undefined; /** * Its corresponding value * @see OdsRadioAttributes.value */ "value"?: string; } interface OsdsRadioGroup { /** * @see OdsRadioGroupAttributes.afterSave */ "afterSave"?: (({ value }: { value: string; }) => Promise) | undefined; /** * @see OdsRadioGroupAttributes.beforeSave */ "beforeSave"?: (({ value }: { value: string; }) => Promise) | undefined; /** * Radio-group should be disabled or not * @see OdsRadioGroupAttributes.disabled */ "disabled"?: boolean; /** * @see OdsRadioGroupAttributes.name */ "name"?: string; /** * @see OdsRadioGroupEvents.odsDisabledChange */ "onOdsDisabledChange"?: (event: OsdsRadioGroupCustomEvent<{ value: boolean }>) => void; /** * Emitted when the value has changed. * @see OdsRadioGroupEvents.odsValueChange */ "onOdsValueChange"?: (event: OsdsRadioGroupCustomEvent<{ newValue?: string, previousValue?: string }>) => void; /** * If the radio selection is required or not * @see OdsRadioGroupAttributes.required */ "required"?: boolean | undefined; /** * save input allow to set a function that returns a promise. It is called before each time an update is performed and allowing to manage pessimistic update strategy * @see OdsRadioGroupAttributes.save */ "save"?: (({ value }: { value: string; }) => Promise) | undefined; /** * @see OdsRadioGroupAttributes.value */ "value"?: string; } interface IntrinsicElements { "osds-radio": OsdsRadio; "osds-radio-group": OsdsRadioGroup; } } export { LocalJSX as JSX }; declare module "@stencil/core" { export namespace JSX { interface IntrinsicElements { "osds-radio": LocalJSX.OsdsRadio & JSXBase.HTMLAttributes; "osds-radio-group": LocalJSX.OsdsRadioGroup & JSXBase.HTMLAttributes; } } }