import type { HTMLAttributes } from 'vue'
import type { Dayjs } from 'dayjs'
import type {
AccordionBaseElement,
ArrowsArrowDownLine,
ArrowsArrowDownSFill,
ArrowsArrowDownSLine,
ArrowsArrowLeftDownLine,
ArrowsArrowLeftLLine,
ArrowsArrowLeftLine,
ArrowsArrowLeftSFill,
ArrowsArrowLeftSLine,
ArrowsArrowLeftUpLine,
ArrowsArrowRightDownLine,
ArrowsArrowRightLLine,
ArrowsArrowRightLine,
ArrowsArrowRightSFill,
ArrowsArrowRightSLine,
ArrowsArrowRightUpLine,
ArrowsArrowUpLine,
ArrowsArrowUpSFill,
ArrowsArrowUpSLine,
ArrowsExpandUpDownFill,
BuildingsHome6Line,
BusinessCalendarLine,
DapDSAccordion,
DapDSAccordionGroup,
DapDSAnchorHeading,
DapDSAvatar,
DapDSAvatarGroup,
DapDSBadge,
DapDSBanner,
DapDSBreadcrumb,
DapDSBreadcrumbItem,
DapDSButton,
DapDSButtonGroup,
DapDSButtonGroupSeparator,
DapDSButtonGroupText,
DapDSCalendar,
DapDSCalendarCell,
DapDSCallout,
DapDSCard,
DapDSCardActions,
DapDSCardContent,
DapDSCardImage,
DapDSCardSubtitle,
DapDSCardTitle,
DapDSCheckbox,
DapDSChip,
DapDSCodePuncher,
DapDSCodePuncherSlot,
DapDSCombobox,
DapDSCommand,
DapDSCommandGroup,
DapDSCommandItem,
DapDSContentSwitcher,
DapDSContentSwitcherItem,
DapDSCopyBoxInput,
DapDSDAPBadge,
DapDSDataTable,
DapDSDatePicker,
DapDSDivider,
DapDSFeedback,
DapDSFileInput,
DapDSFileInputList,
DapDSFileInputListItem,
DapDSFormLabel,
DapDSIcon,
DapDSIconButton,
DapDSImageZoom,
DapDSInput,
DapDSInputGroup,
DapDSLabel,
DapDSLink,
DapDSListItem,
DapDSModal,
DapDSNavigationMenu,
DapDSNavigationMenuItem,
DapDSNotificationBadge,
DapDSNumberInput,
DapDSOfficialWebsiteBanner,
DapDSOptionGroup,
DapDSOptionItem,
DapDSOptionList,
DapDSOverlay,
DapDSPager,
DapDSPasswordInput,
DapDSPopup,
DapDSProgress,
DapDSRadioButton,
DapDSRadioGroup,
DapDSRating,
DapDSScrollArea,
DapDSScrollProgress,
DapDSSearch,
DapDSSelect,
DapDSSideNav,
DapDSSideNavGroup,
DapDSSideNavItem,
DapDSSkeleton,
DapDSSkipLink,
DapDSSnackbar,
DapDSSnackbarMessage,
DapDSSpinner,
DapDSStack,
DapDSSwitch,
DapDSTOC,
DapDSTab,
DapDSTabGroup,
DapDSTable,
DapDSTableCell,
DapDSTableHeader,
DapDSTableRow,
DapDSTextarea,
DapDSTimeGrid,
DapDSTimePicker,
DapDSTimeline,
DapDSTimelineItem,
DapDSToggleButton,
DapDSTooltip,
DapDSTray,
DapDSTypography,
DesignEditLine,
DesignToolsLine,
DeviceComputerLine,
DocumentClipboardLine,
DocumentFileCopyLine,
DocumentFileImageLine,
DocumentFileMusicLine,
DocumentFileTextLine,
DocumentFileVideoLine,
DocumentFolderLine,
DocumentFolderOpenLine,
EditorSeparator,
ExtendedColumnDef,
FileListElement,
HealthHeartFill,
HealthHeartLine,
OthersCookieLine,
PaginationState,
RowSelectionState,
SortingState,
SystemAddLine,
SystemAlertFill,
SystemAlertLine,
SystemCheckLine,
SystemCheckLine2,
SystemCheckboxBlankCircleFill,
SystemCheckboxBlankCircleFillCheck,
SystemCheckboxBlankCircleLine,
SystemCheckboxCircleFill,
SystemCheckboxCircleLine,
SystemCloseCircleFill,
SystemCloseCircleLine,
SystemCloseFill,
SystemCloseLine,
SystemDeleteBinFill,
SystemDeleteBinLine,
SystemDownloadLine,
SystemErrorWarningFill,
SystemErrorWarningLine,
SystemExternalLinkLine,
SystemEyeLine,
SystemEyeOffLine,
SystemForbidFill,
SystemInformation2Fill,
SystemInformationFill,
SystemInformationLine,
SystemLightbulbFill,
SystemLoadingSpinner,
SystemLockFill,
SystemLockLine,
SystemMenuLine,
SystemMenuLineS,
SystemMore2Line,
SystemMoreLine,
SystemSearchLine,
SystemShareLine,
SystemShieldCheckFill,
SystemShieldCheckLine,
SystemStarFill,
SystemSubtractLine,
SystemSubtractLine2,
SystemTimeFill,
SystemTimeLine,
SystemUpload2Fill,
SystemUpload2Line,
SystemUploadLine,
SystemZoomInLine,
SystemZoomOutLine,
UserAccountCircleFill,
UserAccountCircleLine,
UserUserFill,
UserUserLine
} from '../../../dds.d.ts'
type DefineCustomElement<
ElementType extends HTMLElement,
Props extends Record = {},
Events extends Record = {}
> = new () => ElementType & {
$props: Partial> & Partial> & Props & Events
}
// Generic type helper for components with type parameters
type DefineGenericCustomElement<
ElementType extends HTMLElement,
Props extends Record = {},
TypeParams extends readonly any[] = [],
Events extends Record = {}
> = new () => ElementType & {
$props: Partial> & Partial> & Props & Events
}
export interface DapDSAccordionEvents {
/** Event fired when the accordion is opened. */
onDdsOpened?: (event: CustomEvent<{ open: boolean, item: AccordionBaseElement }>) => void
/** Event fired when the accordion is closed. */
onDdsClosed?: (event: CustomEvent<{ open: boolean, item: AccordionBaseElement }>) => void
}
export interface DapDSAvatarEvents {
/** Fired when the image loads successfully. */
onDdsLoad?: (event: CustomEvent) => void
/** Fired when the image fails to load. */
onDdsError?: (event: CustomEvent) => void
}
export interface DapDSAvatarGroupEvents {
/** Fired when the overflow indicator is clicked. */
onDdsOverflowClick?: (event: CustomEvent) => void
}
export interface DapDSBannerEvents {
/** Event fired when the banner is closed. */
onDdsClose?: (event: CustomEvent) => void
}
export interface DapDSButtonEvents {
/** Emitted when the loading timeout is reached */
onDdsLoadingTimeout?: (event: CustomEvent) => void
}
export interface DapDSCalendarEvents {
/** Fired when the calendar value changes. */
onDdsChange?: (event: CustomEvent<{ value: Dayjs }>) => void
}
export interface DapDSCalloutEvents {
/** Fired when the close button is clicked. */
onDdsClose?: (event: CustomEvent) => void
}
export interface DapDSCheckboxEvents {
/** Fired when the checkbox is checked or unchecked. */
onDdsChange?: (event: CustomEvent<{ checked: boolean, indeterminate: boolean, value: string, disabled: boolean, readonly: boolean, type: 'checkbox' }>) => void
/** Emitted when the checkbox loses focus. */
onDdsBlur?: (event: CustomEvent) => void
/** Emitted when the checkbox gains focus. */
onDdsFocus?: (event: CustomEvent) => void
/** Emitted when the checkbox receives input. */
onDdsInput?: (event: CustomEvent<{ checked: boolean, indeterminate: boolean, value: string, disabled: boolean, readonly: boolean }>) => void
}
export interface DapDSChipEvents {
/** Fired when the chip is removed */
onDdsRemove?: (event: CustomEvent<{ value: string }>) => void
/** Fired when the chip is selected */
onDdsSelect?: (event: CustomEvent<{ value?: string, selected: boolean }>) => void
}
export interface DapDSCodePuncherEvents {
/** Fires on each digit input. */
onDdsInput?: (event: CustomEvent<{ value: string, index: number }>) => void
/** Fires when value changes. */
onDdsChange?: (event: CustomEvent<{ value: string }>) => void
/** Fires when all slots are filled. */
onDdsComplete?: (event: CustomEvent<{ value: string }>) => void
/** Fires when component gains focus. */
onDdsFocus?: (event: CustomEvent) => void
/** Fires when component loses focus. */
onDdsBlur?: (event: CustomEvent) => void
}
export interface DapDSComboboxEvents {
/** Fired when the select value changes. */
onDdsChange?: (event: CustomEvent<{ value }>) => void
/** Emitted when the select loses focus. */
onDdsBlur?: (event: CustomEvent) => void
/** Emitted when the select gains focus. */
onDdsFocus?: (event: CustomEvent) => void
/** Emitted when the select is cleared. */
onDdsClear?: (event: CustomEvent) => void
/** Emitted when the manual input value changes. */
onDdsSearch?: (event: CustomEvent<{ search: string }>) => void
/** Emitted when typing happens in the input. */
onDdsInput?: (event: CustomEvent<{ input: string, originalEvent: Event }>) => void
}
export interface DapDSCommandItemEvents {
/** Fired when the command item is clicked. */
onDdsCommandItemClick?: (event: CustomEvent<{ value: string, closeOnSelect: boolean }>) => void
}
export interface DapDSCommandEvents {
/** Fired when the command value changes. */
onDdsChange?: (event: CustomEvent<{ value: string }>) => void
/** Fired when the popup is opened. */
onDdsOpened?: (event: CustomEvent) => void
/** Fired when the popup is closed. */
onDdsClosed?: (event: CustomEvent) => void
/** Fired when the popup should be closed. */
onDdsClose?: (event: CustomEvent) => void
}
export interface DapDSContentSwitcherEvents {
/** Fired when the content switcher is changed. */
onDdsChange?: (event: CustomEvent<{ value: string, selected: boolean }>) => void
}
export interface DapDSCopyBoxInputEvents {
/** Fired when the user clicks on the copy button. */
onDdsCopy?: (event: CustomEvent<{ value: string }>) => void
/** Fired when the input value changes. */
onDdsChange?: (event: CustomEvent<{ value: string }>) => void
/** Fired when the input value changes. */
onDdsInput?: (event: CustomEvent<{ value: string }>) => void
/** Fired when a key is pressed down. */
onDdsKeydown?: (event: CustomEvent<{ value: string, originalEvent: Event }>) => void
/** Fired when the input loses focus. */
onDdsBlur?: (event: CustomEvent) => void
/** Emitted when the input gains focus. */
onDdsFocus?: (event: CustomEvent) => void
/** Emitted when the value cannot be copied. */
onDdsNotAllowed?: (event: CustomEvent) => void
}
export interface DapDSDataTableEvents {
/** Fired when the sorting of the table changes. */
onDdsSortingChange?: (event: CustomEvent<{ sorting: SortingState }>) => void
/** Fired when the selection of the table changes. */
onDdsSelectionChange?: (event: CustomEvent<{ selection: RowSelectionState }>) => void
/** Fired when the pagination of the table changes. */
onDdsPaginationChange?: (event: CustomEvent<{ pagination: PaginationState }>) => void
/** Fired when a row is clicked. */
onDdsRowClick?: (event: CustomEvent<{ row: Row }>) => void
/** Fired when the user resizes a column (at the end of a drag, on each resize-handle key press, and when a double-click resets the column). */
onDdsColumnSizingChange?: (event: CustomEvent<{ columnSizing: Record }>) => void
}
export interface DapDSDatePickerEvents {
/** Fired when the datepicker value changes. */
onDdsChange?: (event: CustomEvent<{ value: string }>) => void
/** Fired when the datepicker input value changes. */
onDdsInput?: (event: CustomEvent<{ value: string }>) => void
/** Fired when the datepicker input value is valid. Happens on manual input typing. */
onDdsValidDate?: (event: CustomEvent<{ value: string }>) => void
/** Fired when the datepicker input value is invalid. Happens on manual input typing. For `out-of-range` the typed text was a well-formed date, so `date` carries it as an ISO (`YYYY-MM-DD`) string and the consumer can phrase its own range message; for `invalid` the text could not be parsed and `date` is omitted. */
onDdsInvalidDate?: (event: CustomEvent<{ value: string, type: 'invalid' | 'out-of-range', date?: string }>) => void
/** Fired when the datepicker is cleared. */
onDdsClear?: (event: CustomEvent) => void
/** Emitted when the datepicker gains focus. */
onDdsFocus?: (event: CustomEvent) => void
/** Emitted when the datepicker loses focus. */
onDdsBlur?: (event: CustomEvent) => void
}
export interface DapDSFileInputListItemEvents {
/** Dispatched when a file is removed from the list. */
onDdsFileRemove?: (event: CustomEvent<{ file: FileListElement }>) => void
/** Dispatched when a file is clicked. */
onDdsFileClick?: (event: CustomEvent<{ file: FileListElement }>) => void
}
export interface DapDSFileInputListEvents {
/** Dispatched when a file is clicked. */
onDdsFileClick?: (event: CustomEvent<{ file: FileListElement }>) => void
}
export interface DapDSFileInputEvents {
/** Fired when a file upload starts. */
onDdsUploadStart?: (event: CustomEvent<{ file: File }>) => void
/** Fired during file upload progress. */
onDdsUploadProgress?: (event: CustomEvent<{ file: File, progress: number }>) => void
/** Fired when a file upload completes successfully. */
onDdsUploadComplete?: (event: CustomEvent<{ file: File, item: DapDSFileInputListItem, result: any }>) => void
/** Fired when a file upload encounters an error. Always contains an errors array, even if there is only one error. */
onDdsUploadError?: (event: CustomEvent<{ file?: File, errors: FileError[], item?: DapDSFileInputListItem }>) => void
/** Fired when all file uploads are complete. */
onDdsAllUploadsComplete?: (event: CustomEvent) => void
/** Fired when a file is removed from the file input. */
onDdsFileRemoved?: (event: CustomEvent<{ file: FileListElement }>) => void
/** Fired when a file deletion from server encounters an error. */
onDdsFileDeleteError?: (event: CustomEvent<{ file: FileListElement, error: Error }>) => void
/** Fired when the file input value changes. This event is cancelable. Event detail contains: `newFiles` (just the files being added in this operation), `currentFiles` (all files that were already selected before this operation), `files` (all files after merge with existing when keepValue=true), and `canceledFiles` (Set to add files you want to reject). You can either: (1) Call `event.preventDefault()` to reject all files, or (2) Add specific files to `canceledFiles` to reject only those files. */
onDdsFileChange?: (event: CustomEvent<{ newFiles: File[], files: File[], canceledFiles: Set, currentFiles: File[] }>) => void
/** Fired when the file input value changes. This event is cancelable. Event detail contains: `files` (all files after merge with existing when keepValue=true). */
onDdsFilesAccepted?: (event: CustomEvent<{ files: File[] }>) => void
}
export interface DapDSImageZoomEvents {
/** Fires when the image is about to zoom. Cancelable via event.preventDefault(). */
onDdsZoom?: (event: CustomEvent) => void
/** Fires after the image has unzoomed. */
onDdsUnzoom?: (event: CustomEvent) => void
}
export interface DapDSInputEvents {
/** Fired when the input value changes. */
onDdsChange?: (event: CustomEvent<{ value: string }>) => void
/** Fired when the input value changes. */
onDdsInput?: (event: CustomEvent<{ value: string }>) => void
/** Fired when a key is pressed down. */
onDdsKeydown?: (event: CustomEvent<{ value: string, originalEvent: Event }>) => void
/** Fired when the input loses focus. */
onDdsBlur?: (event: CustomEvent) => void
/** Emitted when the input gains focus. */
onDdsFocus?: (event: CustomEvent) => void
}
export interface DapDSLinkEvents {
/** Emitted when the link is clicked. */
onDdsClick?: (event: CustomEvent<{ event: Event }>) => void
}
export interface DapDSModalEvents {
/** Fires before the modal opens. */
onDdsBeforeOpen?: (event: CustomEvent) => void
/** Fires after the modal opens. */
onDdsOpened?: (event: CustomEvent) => void
/** Fires before the modal closes. */
onDdsBeforeClose?: (event: CustomEvent) => void
/** Fires after the modal closed. */
onDdsClosed?: (event: CustomEvent) => void
/** Fires when the modal is closes. You can prevent the modal from closing by calling `event.preventDefault()`. */
onDdsClose?: (event: CustomEvent) => void
/** Fires when the OK button is clicked. You can prevent the modal from closing by calling `event.preventDefault()`. */
onDdsOk?: (event: CustomEvent) => void
/** Fires when the Cancel button is clicked. You can prevent the modal from closing by calling `event.preventDefault()`. */
onDdsCancel?: (event: CustomEvent) => void
}
export interface DapDSNavigationMenuItemEvents {
/** Fired when a navigation item is clicked. */
onDdsNavigationItemClick?: (event: CustomEvent<{ href: string, event: Event }>) => void
/** Fired when a navigation dropdown is opened. */
onDdsNavigationDropdownOpen?: (event: CustomEvent<{ item: DapDSNavigationMenuItem }>) => void
}
export interface DapDSNavigationMenuEvents {
/** Fired when a navigation item is clicked. */
onDdsNavigationItemClick?: (event: CustomEvent<{ href: string, event: Event }>) => void
}
export interface DapDSNumberInputEvents {
/** Fired when the input value changes. */
onDdsChange?: (event: CustomEvent<{ value: string }>) => void
/** Fired when the input value changes. */
onDdsInput?: (event: CustomEvent<{ value: string }>) => void
/** Fired when a key is pressed down. */
onDdsKeydown?: (event: CustomEvent<{ value: string, originalEvent: Event }>) => void
/** Fired when the input loses focus. */
onDdsBlur?: (event: CustomEvent) => void
/** Emitted when the input gains focus. */
onDdsFocus?: (event: CustomEvent) => void
}
export interface DapDSOfficialWebsiteBannerEvents {
/** Event fired when the accordion is opened. */
onDdsOpened?: (event: CustomEvent) => void
/** Event fired when the accordion is closed. */
onDdsClosed?: (event: CustomEvent) => void
}
export interface DapDSOptionListEvents {
/** Fired when the escape key is pressed. */
onDdsCancel?: (event: CustomEvent) => void
/** Fired when the option list value changes. `item` is set when the options come from `items`. */
onDdsOptionChange?: (event: CustomEvent<{ option: DapDSOptionItem, value: string, index: number, text: string, item?: DapDSOptionData }>) => void
/** Fired when a key is pressed down. */
onDdsKeydown?: (event: CustomEvent) => void
/** Fired when the available options list changes. */
onDdsListChanged?: (event: CustomEvent<{ elements: DapDSOptionItem[] }>) => void
}
export interface DapDSOverlayEvents {
/** Fires before the overlay opens. */
onDdsBeforeOpen?: (event: CustomEvent) => void
/** Fires after the overlay opens. */
onDdsOpened?: (event: CustomEvent) => void
/** Fires before the overlay closes. */
onDdsBeforeClose?: (event: CustomEvent) => void
/** Fires after the overlay closes. */
onDdsClosed?: (event: CustomEvent) => void
}
export interface DapDSPagerEvents {
/** Event fired when the pagination changes */
onDdsPaginationChange?: (event: CustomEvent<{ action: string, pagination: { pageIndex: number, pageSize: number } }>) => void
}
export interface DapDSPasswordInputEvents {
/** Fired when the input value changes. */
onDdsChange?: (event: CustomEvent<{ value: string }>) => void
/** Fired when the input value changes. */
onDdsInput?: (event: CustomEvent<{ value: string }>) => void
/** Fired when a key is pressed down. */
onDdsKeydown?: (event: CustomEvent<{ value: string, originalEvent: Event }>) => void
/** Fired when the input loses focus. */
onDdsBlur?: (event: CustomEvent) => void
/** Emitted when the input gains focus. */
onDdsFocus?: (event: CustomEvent) => void
}
export interface DapDSPopupEvents {
/** Fired when the popup is opened. */
onDdsOpened?: (event: CustomEvent) => void
/** Fired when the popup is closed. */
onDdsClosed?: (event: CustomEvent) => void
/** Fired when the popup should be closed. */
onDdsClose?: (event: CustomEvent) => void
}
export interface DapDSRadioButtonEvents {
/** Fired when the radio button is checked. */
onDdsChange?: (event: CustomEvent<{ checked: boolean, value: string, disabled: boolean, readonly: boolean, type: 'radio' }>) => void
/** Emitted when the radio button loses focus. */
onDdsBlur?: (event: CustomEvent) => void
/** Emitted when the radio button gains focus. */
onDdsFocus?: (event: CustomEvent) => void
/** Emitted when the radio button receives input. */
onDdsInput?: (event: CustomEvent<{ checked: boolean, value: string, disabled: boolean, readonly: boolean }>) => void
}
export interface DapDSRatingEvents {
/** Event fired when the rating value changes. */
onDdsChange?: (event: CustomEvent<{ value: number }>) => void
}
export interface DapDSSearchEvents {
/** Fired when the search value changes. */
onDdsChange?: (event: CustomEvent) => void
/** Emitted when the search loses focus. */
onDdsBlur?: (event: CustomEvent) => void
/** Emitted when the search gains focus. */
onDdsFocus?: (event: CustomEvent) => void
/** Emitted when the search is cleared. */
onDdsClear?: (event: CustomEvent) => void
/** Emitted when the search input value changes. */
onDdsSearch?: (event: CustomEvent) => void
/** Emitted when typing happens in the search input. */
onDdsInput?: (event: CustomEvent) => void
}
export interface DapDSSelectEvents {
/** Fired when the select value changes. */
onDdsChange?: (event: CustomEvent<{ value: string }>) => void
/** Emitted when the select loses focus. */
onDdsBlur?: (event: CustomEvent) => void
/** Emitted when the select gains focus. */
onDdsFocus?: (event: CustomEvent) => void
/** Emitted when the select dropdown is opened. */
onDdsOpened?: (event: CustomEvent) => void
/** Emitted when the select dropdown is closed. */
onDdsClosed?: (event: CustomEvent) => void
}
export interface DapDSSideNavEvents {
/** Event fired when the side navigation item is clicked. */
onDdsItemClick?: (event: CustomEvent<{ href: string, event: Event }>) => void
}
export interface DapDSSnackbarMessageEvents {
/** Fires when the snackbar closes. */
onDdsClose?: (event: CustomEvent<{ id: string }>) => void
}
export interface DapDSSwitchEvents {
/** Fired when the input value changes. */
onDdsChange?: (event: CustomEvent<{ value: string }>) => void
/** Emitted when the input loses focus. */
onDdsBlur?: (event: CustomEvent) => void
/** Emitted when the input gains focus. */
onDdsFocus?: (event: CustomEvent) => void
/** Emitted when the input receives input. */
onDdsInput?: (event: CustomEvent<{ value: string }>) => void
}
export interface DapDSTabGroupEvents {
/** Fired when select a new tab. */
onDdsTabSelect?: (event: CustomEvent) => void
}
export interface DapDSTextareaEvents {
/** Fires when the count of the textarea changes. */
onDdsCountChange?: (event: CustomEvent<{ value: number }>) => void
/** Fired when the textarea value changes. */
onDdsChange?: (event: CustomEvent<{ value: string }>) => void
/** Fired when the textarea value changes. */
onDdsInput?: (event: CustomEvent<{ value: string }>) => void
/** Fired when a key is pressed down. */
onDdsKeydown?: (event: CustomEvent<{ value: string, originalEvent: Event }>) => void
/** Fired when the textarea loses focus. */
onDdsBlur?: (event: CustomEvent) => void
/** Emitted when the textarea gains focus. */
onDdsFocus?: (event: CustomEvent) => void
/** Emitted when select text in textarea. */
onDdsSelect?: (event: CustomEvent<{ value: string }>) => void
}
export interface DapDSTimeGridEvents {
/** Fired when time selection changes. */
onDdsChange?: (event: CustomEvent<{ detail: TimeSelection }>) => void
/** Fired when the time grid should close. */
onDdsClose?: (event: CustomEvent) => void
}
export interface DapDSTimePickerEvents {
/** Fired when the timepicker value changes. */
onDdsChange?: (event: CustomEvent<{ value: Dayjs | string, hour: number, minute: number, second?: number }>) => void
/** Fired when the timepicker input value changes. */
onDdsInput?: (event: CustomEvent<{ value: string }>) => void
/** Fired when the timepicker input value is valid. Happens on manual input typing. */
onDdsValidTime?: (event: CustomEvent<{ value: Dayjs | string, hour: number, minute: number, second?: number }>) => void
/** Fired when the timepicker input value is invalid. Happens on manual input typing. */
onDdsInvalidTime?: (event: CustomEvent<{ value: Dayjs | string, hour: number, minute: number, second?: number, type: 'invalid' | 'out-of-range' }>) => void
/** Fired when the timepicker is cleared. */
onDdsClear?: (event: CustomEvent) => void
/** Emitted when the timepicker gains focus. */
onDdsFocus?: (event: CustomEvent) => void
/** Emitted when the timepicker loses focus. */
onDdsBlur?: (event: CustomEvent) => void
}
export interface DapDSTOCEvents {
/** Event that is triggered when the anchor changes. */
onDdsAnchorChange?: (event: CustomEvent<{ selectedItem: HTMLAnchorElement, anchorElement: IntersectionObserverEntry | HTMLElement }>) => void
}
export interface DapDSTrayEvents {
/** Fires before the tray opens. */
onDdsBeforeOpen?: (event: CustomEvent) => void
/** Fires after the tray opens. */
onDdsOpened?: (event: CustomEvent) => void
/** Fires before the tray closes. */
onDdsBeforeClose?: (event: CustomEvent) => void
/** Fires after the tray closed. */
onDdsClosed?: (event: CustomEvent) => void
/** Fires when the tray is closes. You can prevent the tray from closing by calling `event.preventDefault()`. */
onDdsClose?: (event: CustomEvent) => void
}
export interface DapDSRadioGroupEvents {
/** Fired when the radio group is checked. */
onDdsChange?: (event: CustomEvent) => void
/** Emitted when the radio group loses focus. */
onDdsBlur?: (event: CustomEvent) => void
/** Emitted when the radio group gains focus. */
onDdsFocus?: (event: CustomEvent) => void
}
export interface DapDSAccordionSlots {
/** The content of the accordion. */
default?: () => any
/** The heading of the accordion. */
'heading'?: () => any
/** The icon when the accordion is opened. */
'icon-opened'?: () => any
/** The icon when the accordion is closed. */
'icon-closed'?: () => any
}
export interface DapDSAvatarSlots {
/** The icon to display when variant is 'icon'. */
'icon'?: () => any
/** Custom fallback content when image fails to load. */
'fallback'?: () => any
}
export interface DapDSBadgeSlots {
/** The content of the badge. */
default?: () => any
/** The icon of the badge. */
'icon'?: () => any
}
export interface DapDSAvatarGroupSlots {
/** The avatars to display in the group. */
default?: () => any
}
export interface DapDSAccordionGroupSlots {
/** The content of the accordion group. */
default?: () => any
}
export interface DapDSBreadcrumbSlots {
/** The content of the breadcrumb. */
default?: () => any
/** The separator between breadcrumb items. Default is '/'. */
'separator'?: () => any
}
export interface DapDSBannerSlots {
/** The content of the banner. */
default?: () => any
/** Actions of banner */
'actions'?: () => any
/** The icon of the banner. */
'icon'?: () => any
}
export interface DapDSBreadcrumbItemSlots {
/** The content of the breadcrumb item. */
default?: () => any
/** The separator between breadcrumb items. Default is an arrow-right-s-line icon. */
'separator'?: () => any
}
export interface DapDSButtonGroupTextSlots {
/** The text content. Can also hold an icon or a `