🎉 Init

This commit is contained in:
2026-08-21 15:29:01 +02:00
commit 02e5b1f4e4
33 changed files with 11392 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
import type { Component } from 'vue'
export class Popup<P> {
component?: Component
payload?: P
config?: PopupConfig
public static component<P>(component: Component): Popup<P> {
const popup = new Popup<P>()
popup.component = component
return popup
}
public setPayload(payload: P) {
this.payload = payload
return this
}
public setConfig(config: PopupConfig) {
this.config = config
return this
}
}
export interface PopupConfig {
heading: string
size: PopupSize
closeOnOverlayClick?: boolean
callback?: (payload?: unknown) => void
}
export enum PopupSize {
SMALL = 'small',
MEDIUM = 'medium',
LARGE = 'large',
FULL = 'full',
}