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

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