Sha256: bbac6a615b64f2442e6e08b301bd3baa8962ae9f0725c42949093a4b9adb412e
Contents?: true
Size: 1.5 KB
Versions: 24
Compression:
Stored size: 1.5 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; }
Version data entries
24 entries across 12 versions & 1 rubygems