bootstrap-vue-next
Version:
BootstrapVueNext is an early and lovely component library for Vue 3 & Nuxt 3 based on Bootstrap 5 and Typescript.
52 lines (51 loc) • 2.73 kB
TypeScript
import { ComponentInternalInstance, Ref } from 'vue';
import { ControllerKey, ModalOrchestratorCreateParam, ModalOrchestratorParam, OrchestratorCreateOptions, PromiseWithComponent } from '../../types/ComponentOrchestratorTypes';
import { BModal } from '../../components';
export declare const useModal: () => {
show: (id?: ControllerKey) => void;
hide: (trigger?: string, id?: ControllerKey) => void;
hideAll: (trigger?: string) => void;
get: (id: ControllerKey) => {
modal: import('../..').OrchestratorArrayValue;
show(): void;
hide(trigger?: string): void;
} | {
modal: ComponentInternalInstance;
show(): void;
hide(trigger?: string): void;
} | null;
current: () => {
show(): void;
hide(trigger?: string): void;
modal: import('vue').ComputedRef<import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null | undefined>;
} | null;
create: (obj?: ModalOrchestratorCreateParam, options?: OrchestratorCreateOptions) => PromiseWithComponent<typeof BModal, ModalOrchestratorParam>;
_isOrchestratorInstalled: Ref<boolean, boolean>;
store: Ref<import('../..').OrchestratorArrayValue[], import('../..').OrchestratorArrayValue[]>;
};
/**
* @deprecated use useModal() instead.
* @returns {ReturnType<typeof useModal>} The modal controller
*/
export declare const useModalController: () => {
show: (id?: ControllerKey) => void;
hide: (trigger?: string, id?: ControllerKey) => void;
hideAll: (trigger?: string) => void;
get: (id: ControllerKey) => {
modal: import('../..').OrchestratorArrayValue;
show(): void;
hide(trigger?: string): void;
} | {
modal: ComponentInternalInstance;
show(): void;
hide(trigger?: string): void;
} | null;
current: () => {
show(): void;
hide(trigger?: string): void;
modal: import('vue').ComputedRef<import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null | undefined>;
} | null;
create: (obj?: ModalOrchestratorCreateParam, options?: OrchestratorCreateOptions) => PromiseWithComponent<typeof BModal, ModalOrchestratorParam>;
_isOrchestratorInstalled: Ref<boolean, boolean>;
store: Ref<import('../..').OrchestratorArrayValue[], import('../..').OrchestratorArrayValue[]>;
};