Sha256: 8f4edbc4e63f0a6cdefaa6f9744a1d5d5ca1a6d1064ecd0d0f2511b472601e72

Contents?: true

Size: 1.54 KB

Versions: 78

Compression:

Stored size: 1.54 KB

Contents

import { TOutletChangeData } from '../outlet_manager_controller/outlet_manager_controller';
import SyncedBooleanAttributesController from '../synced_boolean_attributes_controller/synced_boolean_attributes_controller';
type TOptionKey = string | number;
type TActiveOptions = {
    [k: TOptionKey]: boolean;
};
export interface OptionsOutlet extends SyncedBooleanAttributesController<TActiveOptions> {
    select: (e: Event, updateTo?: TOutletChangeData<TActiveOptions>) => void;
}
export default class OptionsController extends SyncedBooleanAttributesController<TActiveOptions> implements OptionsOutlet {
    #private;
    static outlets: string[];
    static targets: string[];
    static values: {
        activeOptions: ObjectConstructor;
        isMulti: {
            type: BooleanConstructor;
            default: boolean;
        };
        toggleable: {
            type: BooleanConstructor;
            default: boolean;
        };
        syncedAttrs: ArrayConstructor;
        antiAttrs: ArrayConstructor;
        protectAttrs: BooleanConstructor;
        outletEvents: ArrayConstructor;
    };
    readonly optionTargets: Array<Element>;
    activeOptionsValue: TActiveOptions;
    readonly isMultiValue: boolean;
    readonly toggleableValue: boolean;
    select(event: Event, updateTo?: TOutletChangeData<TActiveOptions>): void;
    optionTargetConnected(element: Element): void;
    getValueForElement(element: Element): boolean;
    getState(): TActiveOptions;
    outletUpdate: (event: Event, updateTo?: TOutletChangeData<TActiveOptions>) => void;
}
export {};

Version data entries

78 entries across 42 versions & 1 rubygems

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