Sha256: 11760cdca00f922ea2d7f5dab68a992ed0cfe4520e561c7cd164ea40b10593fb
Contents?: true
Size: 1.76 KB
Versions: 54
Compression:
Stored size: 1.76 KB
Contents
import OutletManagerController from '../outlet_manager_controller/outlet_manager_controller'; export type TStimulusDispatchEvent<TDetails> = { target?: Element | undefined; detail?: TDetails | undefined; prefix?: string | undefined; bubbles?: boolean | undefined; cancelable?: boolean | undefined; preventDefault: () => void; }; export type TBooleanValueDetail = { value: boolean; }; export interface TSyncAttrDetail extends TBooleanValueDetail { attr: string; } export default class SyncedBooleanAttributesController<T> extends OutletManagerController<T> { #private; static values: { syncedAttrs: ArrayConstructor; antiAttrs: ArrayConstructor; protectAttrs: BooleanConstructor; outletEvents: ArrayConstructor; }; readonly syncedAttrsValue: string[]; readonly hasSyncedAttrsValue: boolean; readonly antiAttrsValue: string[]; readonly hasAntiAttrsValue: boolean; readonly protectAttrsValue: boolean; static removeOnFalseAttrs: { [k: string]: boolean; }; syncedAttrsLookup: { [k: string]: boolean; } | null; antiAttrsLookup: { [k: string]: boolean; } | null; getValueForElement(element: Element): boolean | null; getElementsToSync(): Array<Element> | null | undefined; connect(): void; updateAttributesForElement(element: Element, value: boolean): void; getSyncedAttrsForElement(element: Element): string[] | null; getAntiAttrsForElement(element: Element): string[] | null; getParsedAttributeForElement<T>(element: Element, attribute: string): T | null; syncElementAttributes(): void; validateAttrChange(dispatchEvent: TStimulusDispatchEvent<TSyncAttrDetail>): void; doesElementHaveOnAttrs(element: Element): boolean; }
Version data entries
54 entries across 30 versions & 1 rubygems