2024-10-13 17:37:01 +00:00
|
|
|
import type { Ref } from 'vue'
|
|
|
|
import { ref } from 'vue'
|
2022-07-26 14:46:02 +00:00
|
|
|
import { noop } from '@/utils'
|
2022-10-08 10:54:25 +00:00
|
|
|
|
2024-10-13 17:37:01 +00:00
|
|
|
import type MessageToaster from '@/components/ui/message-toaster/MessageToaster.vue'
|
|
|
|
import type DialogBox from '@/components/ui/DialogBox.vue'
|
|
|
|
import type Overlay from '@/components/ui/Overlay.vue'
|
2022-07-26 14:46:02 +00:00
|
|
|
|
2022-12-02 16:17:37 +00:00
|
|
|
export const MessageToasterStub = ref({
|
2022-07-26 14:46:02 +00:00
|
|
|
info: noop,
|
|
|
|
success: noop,
|
|
|
|
warning: noop,
|
2024-10-13 17:37:01 +00:00
|
|
|
error: noop,
|
2022-12-02 16:17:37 +00:00
|
|
|
}) as unknown as Ref<InstanceType<typeof MessageToaster>>
|
2022-07-26 14:46:02 +00:00
|
|
|
|
2022-12-02 16:17:37 +00:00
|
|
|
export const DialogBoxStub = ref({
|
2022-07-26 14:46:02 +00:00
|
|
|
info: noop,
|
|
|
|
success: noop,
|
|
|
|
warning: noop,
|
|
|
|
error: noop,
|
2024-10-13 17:37:01 +00:00
|
|
|
confirm: noop,
|
2022-12-02 16:17:37 +00:00
|
|
|
}) as unknown as Ref<InstanceType<typeof DialogBox>>
|
2022-11-19 18:04:21 +00:00
|
|
|
|
2022-12-02 16:17:37 +00:00
|
|
|
export const OverlayStub = ref({
|
2022-11-19 18:04:21 +00:00
|
|
|
show: noop,
|
2024-10-13 17:37:01 +00:00
|
|
|
hide: noop,
|
2022-12-02 16:17:37 +00:00
|
|
|
}) as unknown as Ref<InstanceType<typeof Overlay>>
|