Sha256: 44e12ff3a88558a9a38d12142c118fc7897c7d7cfa46b80afd0eec86bcf30cf1
Contents?: true
Size: 1.55 KB
Versions: 36
Compression:
Stored size: 1.55 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; syncElementAttributes(): void; validateAttrChange(dispatchEvent: TStimulusDispatchEvent<TSyncAttrDetail>): void; doesElementHaveOnAttrs(element: Element): boolean; }
Version data entries
36 entries across 18 versions & 1 rubygems