123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- import _Vue from "vue";
-
- import { Dialog, ModalProgrammatic, LoadingProgrammatic, Toast, Snackbar, NotificationProgrammatic } from "./components";
- import { ColorModifiers } from "./helpers";
-
- // Adds Buefy method signatures to Vue instance (ie this.$dialog)
- declare module 'vue/types/vue' {
- interface Vue {
- $dialog: typeof Dialog,
- $loading: typeof LoadingProgrammatic,
- $modal: typeof ModalProgrammatic,
- $snackbar: typeof Snackbar,
- $toast: typeof Toast,
- $notification: typeof NotificationProgrammatic
- }
- }
-
- declare module 'buefy/dist/components/dialog' {
- export { Dialog };
- }
-
- declare module 'buefy/dist/components/modal' {
- export { ModalProgrammatic };
- }
-
- declare module 'buefy/dist/components/toast' {
- export { Toast };
- }
-
- declare module 'buefy/dist/components/snackbar' {
- export { Snackbar };
- }
-
- declare module 'buefy/dist/components/notification' {
- export { NotificationProgrammatic };
- }
-
- export declare type BuefyConfig = {
- defaultContainerElement?: string,
- defaultIconPack?: string;
- defaultDialogConfirmText?: string;
- defaultDialogCancelText?: string;
- defaultSnackbarDuration?: number;
- defaultToastDuration?: number;
- defaultNotificationDuration?: number;
- defaultTooltipType?: ColorModifiers;
- defaultTooltipAnimated?: boolean;
- defaultInputAutocomplete?: string;
- defaultDateFormatter?: Function;
- defaultDateParser?: Function;
- defaultDateCreator?: Function;
- defaultDayNames?: string[];
- defaultMonthNames?: string[];
- defaultFirstDayOfWeek?: number;
- defaultTimeFormatter?: Function;
- defaultTimeParser?: Function;
- defaultModalCanCancel?: string[];
- defaultModalScroll?: string;
- defaultDatepickerMobileNative?: boolean;
- defaultTimepickerMobileNative?: boolean;
- defaultNoticeQueue?: boolean;
- defaultInputHasCounter?: boolean;
- };
-
- declare const _default: {
- install(Vue: typeof _Vue, config: BuefyConfig): void;
- };
-
- export {
- Dialog,
- LoadingProgrammatic,
- ModalProgrammatic,
- Snackbar,
- Toast,
- NotificationProgrammatic
- }
-
- export default _default;
|