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

Version Path
ariadne_view_components-0.0.53-arm64-darwin app/components/ariadne/synced_boolean_attributes_controller/synced_boolean_attributes_controller.d.ts
ariadne_view_components-0.0.53-arm64-darwin app/assets/javascripts/components/ariadne/synced_boolean_attributes_controller/synced_boolean_attributes_controller.d.ts
ariadne_view_components-0.0.53-aarch64-linux app/assets/javascripts/components/ariadne/synced_boolean_attributes_controller/synced_boolean_attributes_controller.d.ts
ariadne_view_components-0.0.53-aarch64-linux app/components/ariadne/synced_boolean_attributes_controller/synced_boolean_attributes_controller.d.ts
ariadne_view_components-0.0.53 app/assets/javascripts/components/ariadne/synced_boolean_attributes_controller/synced_boolean_attributes_controller.d.ts
ariadne_view_components-0.0.53 app/components/ariadne/synced_boolean_attributes_controller/synced_boolean_attributes_controller.d.ts
ariadne_view_components-0.0.53-x64-mingw-ucrt app/components/ariadne/synced_boolean_attributes_controller/synced_boolean_attributes_controller.d.ts
ariadne_view_components-0.0.53-x64-mingw-ucrt app/assets/javascripts/components/ariadne/synced_boolean_attributes_controller/synced_boolean_attributes_controller.d.ts
ariadne_view_components-0.0.53-x86_64-darwin app/components/ariadne/synced_boolean_attributes_controller/synced_boolean_attributes_controller.d.ts
ariadne_view_components-0.0.53-x86_64-darwin app/assets/javascripts/components/ariadne/synced_boolean_attributes_controller/synced_boolean_attributes_controller.d.ts
ariadne_view_components-0.0.53-x86_64-linux app/components/ariadne/synced_boolean_attributes_controller/synced_boolean_attributes_controller.d.ts
ariadne_view_components-0.0.53-x86_64-linux app/assets/javascripts/components/ariadne/synced_boolean_attributes_controller/synced_boolean_attributes_controller.d.ts
ariadne_view_components-0.0.52-x86_64-darwin app/components/ariadne/synced_boolean_attributes_controller/synced_boolean_attributes_controller.d.ts
ariadne_view_components-0.0.52-x86_64-darwin app/assets/javascripts/components/ariadne/synced_boolean_attributes_controller/synced_boolean_attributes_controller.d.ts
ariadne_view_components-0.0.52-x86_64-linux app/components/ariadne/synced_boolean_attributes_controller/synced_boolean_attributes_controller.d.ts
ariadne_view_components-0.0.52-x86_64-linux app/assets/javascripts/components/ariadne/synced_boolean_attributes_controller/synced_boolean_attributes_controller.d.ts
ariadne_view_components-0.0.52-aarch64-linux app/components/ariadne/synced_boolean_attributes_controller/synced_boolean_attributes_controller.d.ts
ariadne_view_components-0.0.52-aarch64-linux app/assets/javascripts/components/ariadne/synced_boolean_attributes_controller/synced_boolean_attributes_controller.d.ts
ariadne_view_components-0.0.52-arm64-darwin app/assets/javascripts/components/ariadne/synced_boolean_attributes_controller/synced_boolean_attributes_controller.d.ts
ariadne_view_components-0.0.52-arm64-darwin app/components/ariadne/synced_boolean_attributes_controller/synced_boolean_attributes_controller.d.ts