/* 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 { OdsCheckboxAttributeCbk, OdsCheckboxCheckedChangeEventDetail, OdsCheckboxFocusChangeEventDetail, OdsCheckboxUpdatingChangeEventDetail } from "@ovhcloud/ods-core"; export namespace Components { interface OsdsCheckbox { /** * afterSave input allows to set a function that returns a promise. It is called after each time an update was performed and allowing to manage pessimistic update strategy * @see OdsCheckboxAttributes.afterSave */ "afterSave"?: OdsCheckboxAttributeCbk; /** * The corresponding aria-label describing its content * @see OdsCheckboxAttributes.ariaLabel */ "ariaLabel": string | null; /** * The id to an external description * @see OdsCheckboxAttributes.ariaLabelledby */ "ariaLabelledby"?: string | undefined; /** * beforeSave input allows to set a function that returns a promise. It is called before each time an update will be performed and allowing to manage pessimistic update strategy * @see OdsCheckboxAttributes.beforeSave */ "beforeSave"?: OdsCheckboxAttributeCbk; /** * The checked status of the checkbox * @see OdsCheckboxAttributes.checked */ "checked": boolean; /** * indicate if the checkbox is entirely disabled. it means no interactions (hover, click, focus, etc) * @see OdsCheckboxAttributes.disabled */ "disabled": boolean; /** * is the checkbox is currently focused * @see OdsCheckboxAttributes.hasFocus */ "hasFocus": boolean; /** * The corresponding label * @see OdsCheckboxAttributes.label */ "label"?: string; /** * name used for the input element. useful for browser and posting forms * @see OdsCheckboxAttributes.name */ "name"?: string; /** * save input allows 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. the checked state will be updated just after the call. * @see OdsCheckboxAttributes.save */ "save"?: OdsCheckboxAttributeCbk; /** * programmatically set the focus on the checkbox. this method has to call OdsCheckboxController.setFocus * @see OdsCheckboxMethods.setFocus */ "setFocus": () => Promise; /** * set the tab index. this method has to call OdsCheckboxController.setTabindex * @see OdsCheckboxMethods.setTabindex */ "setTabindex": (index: number) => Promise; /** * update status indicating if the checked state is being modified. `updating` will be `true` until `beforeSave` or `save` are processed. it is used in `pessimistic` update * @see OdsCheckboxAttributes.updating */ "updating": boolean; /** * Its corresponding value * @see OdsCheckboxAttributes.value */ "value": string; } } export interface OsdsCheckboxCustomEvent extends CustomEvent { detail: T; target: HTMLOsdsCheckboxElement; } declare global { interface HTMLOsdsCheckboxElement extends Components.OsdsCheckbox, HTMLStencilElement { } var HTMLOsdsCheckboxElement: { prototype: HTMLOsdsCheckboxElement; new (): HTMLOsdsCheckboxElement; }; interface HTMLElementTagNameMap { "osds-checkbox": HTMLOsdsCheckboxElement; } } declare namespace LocalJSX { interface OsdsCheckbox { /** * afterSave input allows to set a function that returns a promise. It is called after each time an update was performed and allowing to manage pessimistic update strategy * @see OdsCheckboxAttributes.afterSave */ "afterSave"?: OdsCheckboxAttributeCbk; /** * The corresponding aria-label describing its content * @see OdsCheckboxAttributes.ariaLabel */ "ariaLabel"?: string | null; /** * The id to an external description * @see OdsCheckboxAttributes.ariaLabelledby */ "ariaLabelledby"?: string | undefined; /** * beforeSave input allows to set a function that returns a promise. It is called before each time an update will be performed and allowing to manage pessimistic update strategy * @see OdsCheckboxAttributes.beforeSave */ "beforeSave"?: OdsCheckboxAttributeCbk; /** * The checked status of the checkbox * @see OdsCheckboxAttributes.checked */ "checked"?: boolean; /** * indicate if the checkbox is entirely disabled. it means no interactions (hover, click, focus, etc) * @see OdsCheckboxAttributes.disabled */ "disabled"?: boolean; /** * is the checkbox is currently focused * @see OdsCheckboxAttributes.hasFocus */ "hasFocus"?: boolean; /** * The corresponding label * @see OdsCheckboxAttributes.label */ "label"?: string; /** * name used for the input element. useful for browser and posting forms * @see OdsCheckboxAttributes.name */ "name"?: string; /** * Event triggered on checkbox blur * @see OdsCheckboxEvents.odsBlur */ "onOdsBlur"?: (event: OsdsCheckboxCustomEvent) => void; /** * the checked state changed * @see OdsCheckboxEvents.odsCheckedChange */ "onOdsCheckedChange"?: (event: OsdsCheckboxCustomEvent) => void; /** * Event triggered on checkbox focus * @see OdsCheckboxEvents.odsFocus */ "onOdsFocus"?: (event: OsdsCheckboxCustomEvent) => void; /** * the checked state is being changed * @see OdsCheckboxEvents.odsUpdatingChange */ "onOdsUpdatingChange"?: (event: OsdsCheckboxCustomEvent) => void; /** * save input allows 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. the checked state will be updated just after the call. * @see OdsCheckboxAttributes.save */ "save"?: OdsCheckboxAttributeCbk; /** * update status indicating if the checked state is being modified. `updating` will be `true` until `beforeSave` or `save` are processed. it is used in `pessimistic` update * @see OdsCheckboxAttributes.updating */ "updating"?: boolean; /** * Its corresponding value * @see OdsCheckboxAttributes.value */ "value"?: string; } interface IntrinsicElements { "osds-checkbox": OsdsCheckbox; } } export { LocalJSX as JSX }; declare module "@stencil/core" { export namespace JSX { interface IntrinsicElements { "osds-checkbox": LocalJSX.OsdsCheckbox & JSXBase.HTMLAttributes; } } }