tandd-ui 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +96 -0
- package/LICENSE +21 -0
- package/README.md +96 -2
- package/dist/components/_shared/direction.d.ts +6 -0
- package/dist/components/_shared/escapeLayers.d.ts +21 -0
- package/dist/components/_shared/formatLabel.d.ts +5 -0
- package/dist/components/_shared/useDismissiblePopup.d.ts +4 -0
- package/dist/components/_shared/useFieldValidation.d.ts +34 -0
- package/dist/components/_shared/useFocusTrap.d.ts +16 -0
- package/dist/components/_shared/useMessages.d.ts +18 -0
- package/dist/components/_shared/usePopover.d.ts +122 -0
- package/dist/components/_shared/useRipple.d.ts +37 -0
- package/dist/components/_shared/useRovingFocus.d.ts +25 -0
- package/dist/components/accordion/DTAccordion.vue.d.ts +42 -0
- package/dist/components/accordion/DTAccordionItem.vue.d.ts +34 -0
- package/dist/components/accordion/accordionContext.d.ts +13 -0
- package/dist/components/alert/DTAlert.vue.d.ts +57 -0
- package/dist/components/anchor/DTAnchor.vue.d.ts +48 -0
- package/dist/components/anchor/DTAnchorLink.vue.d.ts +21 -0
- package/dist/components/anchor/anchorContext.d.ts +10 -0
- package/dist/components/app-bar/DTAppBar.vue.d.ts +56 -0
- package/dist/components/autocomplete/DTAutocomplete.vue.d.ts +131 -0
- package/dist/components/avatar/DTAvatar.vue.d.ts +37 -0
- package/dist/components/avatar/DTAvatarGroup.vue.d.ts +18 -0
- package/dist/components/badge/DTBadge.vue.d.ts +47 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/border-beam/DTBorderBeam.vue.d.ts +47 -0
- package/dist/components/breadcrumb/DTBreadcrumb.vue.d.ts +46 -0
- package/dist/components/button/DTButton.vue.d.ts +60 -0
- package/dist/components/button-group/DTButtonGroup.vue.d.ts +56 -0
- package/dist/components/button-group/buttonGroupContext.d.ts +16 -0
- package/dist/components/card/DTCard.vue.d.ts +38 -0
- package/dist/components/card/DTCardBody.vue.d.ts +13 -0
- package/dist/components/card/DTCardFooter.vue.d.ts +13 -0
- package/dist/components/card/DTCardHeader.vue.d.ts +17 -0
- package/dist/components/card/DTCardMedia.vue.d.ts +24 -0
- package/dist/components/card/DTCardSubtitle.vue.d.ts +13 -0
- package/dist/components/card/DTCardText.vue.d.ts +13 -0
- package/dist/components/card/DTCardTitle.vue.d.ts +24 -0
- package/dist/components/card/context.d.ts +6 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/carousel/DTCarousel.vue.d.ts +69 -0
- package/dist/components/carousel/DTCarouselItem.vue.d.ts +21 -0
- package/dist/components/carousel/carouselContext.d.ts +22 -0
- package/dist/components/checkbox/DTCheckbox.vue.d.ts +50 -0
- package/dist/components/chip/DTChip.vue.d.ts +62 -0
- package/dist/components/chip/DTChipGroup.vue.d.ts +36 -0
- package/dist/components/chip/chipGroupContext.d.ts +9 -0
- package/dist/components/code/DTCode.vue.d.ts +13 -0
- package/dist/components/col/DTCol.vue.d.ts +55 -0
- package/dist/components/color-input/DTColorInput.vue.d.ts +89 -0
- package/dist/components/color-input/colorMath.d.ts +36 -0
- package/dist/components/color-picker/DTColorPicker.vue.d.ts +66 -0
- package/dist/components/color-picker/context.d.ts +9 -0
- package/dist/components/combobox/DTCombobox.vue.d.ts +106 -0
- package/dist/components/container/DTContainer.vue.d.ts +29 -0
- package/dist/components/data-table/DTDataTable.vue.d.ts +112 -0
- package/dist/components/data-table/types.d.ts +70 -0
- package/dist/components/date-picker/DTDateInput.vue.d.ts +98 -0
- package/dist/components/date-picker/DTDatePicker.vue.d.ts +106 -0
- package/dist/components/date-picker/DTDateShortcuts.vue.d.ts +15 -0
- package/dist/components/date-picker/isoDate.d.ts +38 -0
- package/dist/components/date-picker/shortcuts.d.ts +11 -0
- package/dist/components/date-time-picker/DTDateTimeInput.vue.d.ts +107 -0
- package/dist/components/date-time-picker/DTDateTimePicker.vue.d.ts +94 -0
- package/dist/components/date-time-picker/isoDateTime.d.ts +30 -0
- package/dist/components/divider/DTDivider.vue.d.ts +19 -0
- package/dist/components/empty-state/DTEmptyState.vue.d.ts +51 -0
- package/dist/components/field/DTField.vue.d.ts +36 -0
- package/dist/components/field/fieldContext.d.ts +14 -0
- package/dist/components/field-control/DTFieldControl.vue.d.ts +135 -0
- package/dist/components/field-control/index.d.ts +1 -0
- package/dist/components/file-input/DTFileInput.vue.d.ts +142 -0
- package/dist/components/file-upload/DTFileUpload.vue.d.ts +132 -0
- package/dist/components/file-upload/icons.d.ts +1 -0
- package/dist/components/file-upload/types.d.ts +47 -0
- package/dist/components/grid/DTGrid.vue.d.ts +44 -0
- package/dist/components/grid/DTGridItem.vue.d.ts +42 -0
- package/dist/components/heading/DTHeading.vue.d.ts +31 -0
- package/dist/components/icon/DTIcon.vue.d.ts +43 -0
- package/dist/components/icon/play.d.ts +6 -0
- package/dist/components/icon/registry.d.ts +16 -0
- package/dist/components/infinite-scroll/DTInfiniteScroll.vue.d.ts +67 -0
- package/dist/components/infinite-scroll/icons.d.ts +1 -0
- package/dist/components/inline/DTInline.vue.d.ts +26 -0
- package/dist/components/kbd/DTKbd.vue.d.ts +13 -0
- package/dist/components/layout-app/DTLayout.vue.d.ts +18 -0
- package/dist/components/layout-app/DTMain.vue.d.ts +21 -0
- package/dist/components/layout-app/layoutContext.d.ts +33 -0
- package/dist/components/link/DTLink.vue.d.ts +26 -0
- package/dist/components/list/DTList.vue.d.ts +53 -0
- package/dist/components/list/DTListItem.vue.d.ts +61 -0
- package/dist/components/list/DTListSubheader.vue.d.ts +24 -0
- package/dist/components/list/listContext.d.ts +16 -0
- package/dist/components/mention/DTMention.vue.d.ts +93 -0
- package/dist/components/mention/caret.d.ts +7 -0
- package/dist/components/menu/DTMenu.vue.d.ts +66 -0
- package/dist/components/menu/DTMenuItem.vue.d.ts +45 -0
- package/dist/components/menu/DTMenuLabel.vue.d.ts +13 -0
- package/dist/components/menu/DTMenuSeparator.vue.d.ts +3 -0
- package/dist/components/menu/menuContext.d.ts +38 -0
- package/dist/components/modal/DTModal.vue.d.ts +52 -0
- package/dist/components/modal/modalStack.d.ts +20 -0
- package/dist/components/navigation-drawer/DTNavigationDrawer.vue.d.ts +93 -0
- package/dist/components/number-input/DTNumberInput.vue.d.ts +66 -0
- package/dist/components/otp-input/DTOtpInput.vue.d.ts +71 -0
- package/dist/components/pagination/DTPagination.vue.d.ts +55 -0
- package/dist/components/popover/DTPopover.vue.d.ts +67 -0
- package/dist/components/progress/DTProgress.vue.d.ts +48 -0
- package/dist/components/pull-refresh/DTPullRefresh.vue.d.ts +69 -0
- package/dist/components/radio/DTRadio.vue.d.ts +41 -0
- package/dist/components/radio/DTRadioGroup.vue.d.ts +35 -0
- package/dist/components/radio/radioGroupContext.d.ts +12 -0
- package/dist/components/rating/DTRating.vue.d.ts +65 -0
- package/dist/components/row/DTRow.vue.d.ts +38 -0
- package/dist/components/select/DTSelect.vue.d.ts +140 -0
- package/dist/components/sheet/DTSheet.vue.d.ts +57 -0
- package/dist/components/skeleton/DTSkeleton.vue.d.ts +34 -0
- package/dist/components/skip-link/DTSkipLink.vue.d.ts +33 -0
- package/dist/components/slider/DTSlider.vue.d.ts +88 -0
- package/dist/components/spinner/DTSpinner.vue.d.ts +34 -0
- package/dist/components/stack/DTStack.vue.d.ts +24 -0
- package/dist/components/statistic/DTCountdown.vue.d.ts +49 -0
- package/dist/components/statistic/DTStatistic.vue.d.ts +49 -0
- package/dist/components/statistic/format.d.ts +39 -0
- package/dist/components/stepper/DTStep.vue.d.ts +41 -0
- package/dist/components/stepper/DTStepHeader.vue.d.ts +8 -0
- package/dist/components/stepper/DTStepper.vue.d.ts +46 -0
- package/dist/components/stepper/stepperContext.d.ts +39 -0
- package/dist/components/surface/DTSurface.vue.d.ts +43 -0
- package/dist/components/surface/index.d.ts +2 -0
- package/dist/components/switch/DTSwitch.vue.d.ts +59 -0
- package/dist/components/table/DTTable.vue.d.ts +55 -0
- package/dist/components/table/DTTableScrollbars.vue.d.ts +9 -0
- package/dist/components/tabs/DTTab.vue.d.ts +23 -0
- package/dist/components/tabs/DTTabs.vue.d.ts +45 -0
- package/dist/components/tabs/tabsContext.d.ts +19 -0
- package/dist/components/text/DTText.vue.d.ts +32 -0
- package/dist/components/text-field/DTFieldShell.vue.d.ts +59 -0
- package/dist/components/text-field/DTInput.vue.d.ts +70 -0
- package/dist/components/text-field/fieldShared.d.ts +87 -0
- package/dist/components/textarea/DTTextarea.vue.d.ts +56 -0
- package/dist/components/time-picker/DTTimeInput.vue.d.ts +71 -0
- package/dist/components/time-picker/DTTimePicker.vue.d.ts +52 -0
- package/dist/components/time-picker/isoTime.d.ts +21 -0
- package/dist/components/timeline/DTTimeline.vue.d.ts +36 -0
- package/dist/components/timeline/DTTimelineItem.vue.d.ts +46 -0
- package/dist/components/timeline/timelineContext.d.ts +13 -0
- package/dist/components/toast/DTToastRegion.vue.d.ts +18 -0
- package/dist/components/toast/toastStore.d.ts +77 -0
- package/dist/components/tooltip/DTTooltip.vue.d.ts +45 -0
- package/dist/components/tour/DTTour.vue.d.ts +62 -0
- package/dist/components/tour/DTTourStep.vue.d.ts +31 -0
- package/dist/components/tour/tourContext.d.ts +20 -0
- package/dist/components/tree-select/DTTreeSelect.vue.d.ts +86 -0
- package/dist/components/treeview/DTTreeview.vue.d.ts +92 -0
- package/dist/components/watermark/DTWatermark.vue.d.ts +48 -0
- package/dist/config.d.ts +58 -0
- package/dist/index.d.ts +183 -0
- package/dist/locale/en.d.ts +311 -0
- package/dist/locale/en.js +192 -0
- package/dist/locale/messages.d.ts +295 -0
- package/dist/locale/vi.d.ts +309 -0
- package/dist/locale/vi.js +192 -0
- package/dist/plugin.d.ts +26 -0
- package/dist/tandd-ui.css +11585 -0
- package/dist/tandd-ui.js +13039 -0
- package/dist/theme/cssVariables.d.ts +14 -0
- package/dist/theme/defaultTheme.d.ts +5 -0
- package/dist/theme/index.d.ts +34 -0
- package/dist/useLocale.d.ts +15 -0
- package/dist/useTheme.d.ts +9 -0
- package/package.json +112 -4
- package/src/components/_index.scss +73 -0
- package/src/components/accordion/DTAccordion.scss +123 -0
- package/src/components/alert/DTAlert.scss +222 -0
- package/src/components/anchor/DTAnchor.scss +137 -0
- package/src/components/app-bar/DTAppBar.scss +151 -0
- package/src/components/autocomplete/DTAutocomplete.scss +89 -0
- package/src/components/avatar/DTAvatar.scss +67 -0
- package/src/components/badge/DTBadge.scss +218 -0
- package/src/components/border-beam/DTBorderBeam.scss +67 -0
- package/src/components/breadcrumb/DTBreadcrumb.scss +58 -0
- package/src/components/button/DTButton.scss +252 -0
- package/src/components/button-group/DTButtonGroup.scss +103 -0
- package/src/components/card/DTCard.scss +183 -0
- package/src/components/carousel/DTCarousel.scss +228 -0
- package/src/components/checkbox/DTChoice.scss +351 -0
- package/src/components/chip/DTChip.scss +280 -0
- package/src/components/code/DTCode.scss +10 -0
- package/src/components/col/DTCol.scss +124 -0
- package/src/components/color-input/DTColorInput.scss +118 -0
- package/src/components/color-picker/DTColorPicker.scss +334 -0
- package/src/components/container/DTContainer.scss +24 -0
- package/src/components/data-table/DTDataTable.scss +274 -0
- package/src/components/date-picker/DTDatePicker.scss +474 -0
- package/src/components/date-time-picker/DTDateTimePicker.scss +144 -0
- package/src/components/divider/DTDivider.scss +67 -0
- package/src/components/empty-state/DTEmptyState.scss +106 -0
- package/src/components/field/DTField.scss +69 -0
- package/src/components/field-control/DTFieldControl.scss +221 -0
- package/src/components/file-input/DTFileInput.scss +98 -0
- package/src/components/file-upload/DTFileUpload.scss +185 -0
- package/src/components/grid/DTGrid.scss +135 -0
- package/src/components/heading/DTHeading.scss +9 -0
- package/src/components/icon/DTIcon.scss +64 -0
- package/src/components/infinite-scroll/DTInfiniteScroll.scss +67 -0
- package/src/components/inline/DTInline.scss +19 -0
- package/src/components/kbd/DTKbd.scss +17 -0
- package/src/components/layout-app/DTLayout.scss +69 -0
- package/src/components/link/DTLink.scss +35 -0
- package/src/components/list/DTList.scss +261 -0
- package/src/components/mention/DTMention.scss +24 -0
- package/src/components/menu/DTMenu.scss +282 -0
- package/src/components/modal/DTModal.scss +178 -0
- package/src/components/navigation-drawer/DTNavigationDrawer.scss +172 -0
- package/src/components/number-input/DTNumberInput.scss +124 -0
- package/src/components/otp-input/DTOtpInput.scss +121 -0
- package/src/components/pagination/DTPagination.scss +115 -0
- package/src/components/popover/DTPopover.scss +119 -0
- package/src/components/progress/DTProgress.scss +227 -0
- package/src/components/pull-refresh/DTPullRefresh.scss +83 -0
- package/src/components/rating/DTRating.scss +153 -0
- package/src/components/row/DTRow.scss +73 -0
- package/src/components/select/DTSelect.scss +347 -0
- package/src/components/sheet/DTSheet.scss +256 -0
- package/src/components/skeleton/DTSkeleton.scss +74 -0
- package/src/components/skip-link/DTSkipLink.scss +76 -0
- package/src/components/slider/DTSlider.scss +652 -0
- package/src/components/spinner/DTSpinner.scss +123 -0
- package/src/components/stack/DTStack.scss +8 -0
- package/src/components/statistic/DTStatistic.scss +44 -0
- package/src/components/stepper/DTStepper.scss +268 -0
- package/src/components/surface/DTSurface.scss +99 -0
- package/src/components/switch/DTSwitch.scss +306 -0
- package/src/components/table/DTTable.scss +287 -0
- package/src/components/tabs/DTTabs.scss +402 -0
- package/src/components/text/DTText.scss +9 -0
- package/src/components/text-field/DTTextField.scss +452 -0
- package/src/components/time-picker/DTTimePicker.scss +131 -0
- package/src/components/timeline/DTTimeline.scss +322 -0
- package/src/components/toast/DTToast.scss +297 -0
- package/src/components/tooltip/DTTooltip.scss +168 -0
- package/src/components/tour/DTTour.scss +173 -0
- package/src/components/tree-select/DTTreeSelect.scss +60 -0
- package/src/components/treeview/DTTreeview.scss +205 -0
- package/src/components/watermark/DTWatermark.scss +8 -0
- package/src/styles/foundation/_direction.scss +6 -0
- package/src/styles/foundation/_focus.scss +12 -0
- package/src/styles/foundation/_forced-colors.scss +9 -0
- package/src/styles/foundation/_motion.scss +10 -0
- package/src/styles/foundation/_reset.scss +39 -0
- package/src/styles/foundation/_root.scss +112 -0
- package/src/styles/foundation/_state.scss +29 -0
- package/src/styles/foundation/_typography.scss +81 -0
- package/src/styles/foundation/_visually-hidden.scss +21 -0
- package/src/styles/index.scss +9 -0
- package/src/styles/tokens/_border.scss +2 -0
- package/src/styles/tokens/_breakpoint.scss +15 -0
- package/src/styles/tokens/_color.scss +56 -0
- package/src/styles/tokens/_index.scss +11 -0
- package/src/styles/tokens/_motion.scss +13 -0
- package/src/styles/tokens/_radius.scss +13 -0
- package/src/styles/tokens/_shadow.scss +18 -0
- package/src/styles/tokens/_spacing.scss +21 -0
- package/src/styles/tokens/_state.scss +30 -0
- package/src/styles/tokens/_surface.scss +33 -0
- package/src/styles/tokens/_typography.scss +40 -0
- package/src/styles/tokens/_z-index.scss +11 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type IsoDate = string;
|
|
2
|
+
export interface DateParts {
|
|
3
|
+
year: number;
|
|
4
|
+
month: number;
|
|
5
|
+
day: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const parseIso: (value: unknown) => DateParts | null;
|
|
8
|
+
export declare const isIsoDate: (value: unknown) => value is IsoDate;
|
|
9
|
+
export declare const toIso: ({ year, month, day }: DateParts) => IsoDate;
|
|
10
|
+
export declare const daysInMonth: (year: number, month: number) => number;
|
|
11
|
+
export declare const addDays: (iso: IsoDate, days: number) => IsoDate;
|
|
12
|
+
/** Adds months, clamping the day to the new month's length (31 Jan + 1 month = 28/29 Feb). */
|
|
13
|
+
export declare const addMonths: (iso: IsoDate, months: number) => IsoDate;
|
|
14
|
+
export declare const compareIso: (a: IsoDate, b: IsoDate) => 0 | 1 | -1;
|
|
15
|
+
/** 0 = Sunday … 6 = Saturday. */
|
|
16
|
+
export declare const weekday: (iso: IsoDate) => number;
|
|
17
|
+
export declare const todayIso: (now?: Date) => IsoDate;
|
|
18
|
+
/** "YYYY-MM" of a date. */
|
|
19
|
+
export declare const monthOf: (iso: IsoDate) => string;
|
|
20
|
+
export declare const firstOfMonth: (month: string) => IsoDate;
|
|
21
|
+
/** ISO 8601 week number (weeks start on Monday; week 1 holds the year's first Thursday). */
|
|
22
|
+
export declare const isoWeek: (iso: IsoDate) => number;
|
|
23
|
+
/**
|
|
24
|
+
* The first day of the week for a locale (0 = Sunday, 1 = Monday, 6 = Saturday), from
|
|
25
|
+
* Intl.Locale weekInfo where the browser has it, else Monday except for the regions that start on
|
|
26
|
+
* Sunday or Saturday.
|
|
27
|
+
*/
|
|
28
|
+
export declare const localeFirstDay: (locale: string | undefined) => number;
|
|
29
|
+
/** Formats an ISO date in a locale, as a UTC date so the day never shifts. */
|
|
30
|
+
export declare const formatIso: (iso: IsoDate, locale: string | undefined, options: Intl.DateTimeFormatOptions) => string;
|
|
31
|
+
/**
|
|
32
|
+
* Reads a typed date: ISO "2026-11-06", or day, month, and year in the locale's order, separated
|
|
33
|
+
* by "/", ".", "-", or spaces ("06/11/2026" in en-GB, "11/06/2026" in en-US). Two-digit years
|
|
34
|
+
* mean 2000–2099. Returns null for anything else or an impossible date.
|
|
35
|
+
*/
|
|
36
|
+
export declare const parseTyped: (text: string, locale: string | undefined) => IsoDate | null;
|
|
37
|
+
/** The order of day, month, and year in the locale's numeric date format. */
|
|
38
|
+
export declare const localeDateOrder: (locale: string | undefined) => ("day" | "month" | "year")[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** A value, a `[start, end]` pair, or a function returning either (called when it is shown and when it is pressed). */
|
|
2
|
+
export type DTDateShortcutValue = string | [string, string];
|
|
3
|
+
export interface DTDateShortcut {
|
|
4
|
+
/** The button text, e.g. "Today". */
|
|
5
|
+
text: string;
|
|
6
|
+
/** ISO value(s) in the picker's format, or a function that returns them, so "Today" stays current. */
|
|
7
|
+
value: DTDateShortcutValue | (() => DTDateShortcutValue);
|
|
8
|
+
}
|
|
9
|
+
export declare const resolveShortcut: (shortcut: DTDateShortcut) => DTDateShortcutValue;
|
|
10
|
+
/** The values of a resolved shortcut, as a list of one or two strings. */
|
|
11
|
+
export declare const shortcutValues: (value: DTDateShortcutValue) => string[];
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { DTTextFieldBaseProps } from '../text-field/fieldShared';
|
|
2
|
+
import { IsoDate } from '../date-picker/isoDate';
|
|
3
|
+
import { DTDateShortcut } from '../date-picker/shortcuts';
|
|
4
|
+
import { DTTimePickerFormat } from '../time-picker/DTTimePicker.vue';
|
|
5
|
+
import { IsoDateTime } from './isoDateTime';
|
|
6
|
+
interface DTDateTimeInputProps extends Omit<DTTextFieldBaseProps, "modelValue" | "prependIcon" | "appendIcon" | "appendInnerIcon" | "prependIconLabel" | "prependInnerIconLabel" | "appendIconLabel" | "appendInnerIconLabel"> {
|
|
7
|
+
/** "YYYY-MM-DDTHH:mm" (":ss" with `seconds`), or null. */
|
|
8
|
+
modelValue?: IsoDateTime | null;
|
|
9
|
+
min?: string;
|
|
10
|
+
max?: string;
|
|
11
|
+
step?: number | string;
|
|
12
|
+
seconds?: boolean;
|
|
13
|
+
format?: DTTimePickerFormat;
|
|
14
|
+
locale?: string;
|
|
15
|
+
allowedDates?: (date: IsoDate) => boolean;
|
|
16
|
+
firstDayOfWeek?: number | string;
|
|
17
|
+
showAdjacentMonths?: boolean;
|
|
18
|
+
showWeekNumbers?: boolean;
|
|
19
|
+
defaultTime?: string;
|
|
20
|
+
shortcuts?: readonly DTDateShortcut[];
|
|
21
|
+
/** How the date part is shown in the field (Intl.DateTimeFormat date options). Default: numeric day, month, year. */
|
|
22
|
+
dateFormat?: Intl.DateTimeFormatOptions;
|
|
23
|
+
clearable?: boolean;
|
|
24
|
+
/** Icon inside the field before the text; "" for none. */
|
|
25
|
+
prependInnerIcon?: string;
|
|
26
|
+
/** Accessible name of the picker button and the dialog. */
|
|
27
|
+
pickerLabel?: string;
|
|
28
|
+
/** Message for typed text that is not a date and time, or is outside min/max. */
|
|
29
|
+
invalidText?: string;
|
|
30
|
+
doneText?: string;
|
|
31
|
+
clearLabel?: string;
|
|
32
|
+
timeLabel?: string;
|
|
33
|
+
hourLabel?: string;
|
|
34
|
+
minuteLabel?: string;
|
|
35
|
+
secondLabel?: string;
|
|
36
|
+
periodLabel?: string;
|
|
37
|
+
prevMonthLabel?: string;
|
|
38
|
+
nextMonthLabel?: string;
|
|
39
|
+
yearLabel?: string;
|
|
40
|
+
monthLabel?: string;
|
|
41
|
+
/** Accessible name of the week-number column with `show-week-numbers` (D36b). */
|
|
42
|
+
weekLabel?: string;
|
|
43
|
+
shortcutsLabel?: string;
|
|
44
|
+
}
|
|
45
|
+
declare var __VLS_9: string, __VLS_10: any, __VLS_18: {};
|
|
46
|
+
type __VLS_Slots = {} & {
|
|
47
|
+
[K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
|
|
48
|
+
} & {
|
|
49
|
+
'append-inner'?: (props: typeof __VLS_18) => any;
|
|
50
|
+
};
|
|
51
|
+
declare const __VLS_base: import('vue').DefineComponent<DTDateTimeInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
52
|
+
"update:modelValue": (value: string | null) => any;
|
|
53
|
+
"update:menu": (open: boolean) => any;
|
|
54
|
+
}, string, import('vue').PublicProps, Readonly<DTDateTimeInputProps> & Readonly<{
|
|
55
|
+
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
56
|
+
"onUpdate:menu"?: ((open: boolean) => any) | undefined;
|
|
57
|
+
}>, {
|
|
58
|
+
error: boolean | string;
|
|
59
|
+
timeLabel: string;
|
|
60
|
+
prevMonthLabel: string;
|
|
61
|
+
nextMonthLabel: string;
|
|
62
|
+
yearLabel: string;
|
|
63
|
+
monthLabel: string;
|
|
64
|
+
weekLabel: string;
|
|
65
|
+
shortcutsLabel: string;
|
|
66
|
+
variant: import('../..').DTFieldVariant;
|
|
67
|
+
size: import('../..').DTFieldSize;
|
|
68
|
+
locale: string;
|
|
69
|
+
label: string;
|
|
70
|
+
hourLabel: string;
|
|
71
|
+
minuteLabel: string;
|
|
72
|
+
secondLabel: string;
|
|
73
|
+
periodLabel: string;
|
|
74
|
+
clearLabel: string;
|
|
75
|
+
pickerLabel: string;
|
|
76
|
+
invalidText: string;
|
|
77
|
+
doneText: string;
|
|
78
|
+
placeholder: string;
|
|
79
|
+
id: string;
|
|
80
|
+
required: boolean;
|
|
81
|
+
disabled: boolean;
|
|
82
|
+
readonly: boolean;
|
|
83
|
+
clearable: boolean;
|
|
84
|
+
modelValue: IsoDateTime | null;
|
|
85
|
+
max: string;
|
|
86
|
+
helper: string;
|
|
87
|
+
prependInnerIcon: string;
|
|
88
|
+
min: string;
|
|
89
|
+
step: number | string;
|
|
90
|
+
format: DTTimePickerFormat;
|
|
91
|
+
allowedDates: (date: IsoDate) => boolean;
|
|
92
|
+
firstDayOfWeek: number | string;
|
|
93
|
+
showAdjacentMonths: boolean;
|
|
94
|
+
showWeekNumbers: boolean;
|
|
95
|
+
shortcuts: readonly DTDateShortcut[];
|
|
96
|
+
seconds: boolean;
|
|
97
|
+
defaultTime: string;
|
|
98
|
+
dateFormat: Intl.DateTimeFormatOptions;
|
|
99
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
100
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
101
|
+
declare const _default: typeof __VLS_export;
|
|
102
|
+
export default _default;
|
|
103
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
104
|
+
new (): {
|
|
105
|
+
$slots: S;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { IsoDate } from '../date-picker/isoDate';
|
|
2
|
+
import { DTDateShortcut } from '../date-picker/shortcuts';
|
|
3
|
+
import { DTTimePickerFormat } from '../time-picker/DTTimePicker.vue';
|
|
4
|
+
import { IsoDateTime } from './isoDateTime';
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
/** "YYYY-MM-DDTHH:mm" (":ss" with `seconds`), or null. */
|
|
7
|
+
modelValue?: IsoDateTime | null;
|
|
8
|
+
/** Earliest value: a date-time, or a date (from the start of that day). */
|
|
9
|
+
min?: string;
|
|
10
|
+
/** Latest value: a date-time, or a date (to the end of that day). */
|
|
11
|
+
max?: string;
|
|
12
|
+
/** Minute step of the minute column, e.g. 15. */
|
|
13
|
+
step?: number | string;
|
|
14
|
+
/** Add a seconds column; the value gets ":ss". */
|
|
15
|
+
seconds?: boolean;
|
|
16
|
+
/** 12- or 24-hour clock. Default: the locale's. */
|
|
17
|
+
format?: DTTimePickerFormat;
|
|
18
|
+
/** BCP 47 tag. Default: `global.locale`, else the browser's language. */
|
|
19
|
+
locale?: string;
|
|
20
|
+
/** Return false to disable a date. */
|
|
21
|
+
allowedDates?: (date: IsoDate) => boolean;
|
|
22
|
+
firstDayOfWeek?: number | string;
|
|
23
|
+
showAdjacentMonths?: boolean;
|
|
24
|
+
showWeekNumbers?: boolean;
|
|
25
|
+
/** The time used when a date is picked before any time ("HH:mm" or "HH:mm:ss"). */
|
|
26
|
+
defaultTime?: string;
|
|
27
|
+
/** Named presets (D34.4): each value is a date-time, or a date (with the current or default time). */
|
|
28
|
+
shortcuts?: readonly DTDateShortcut[];
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
readonly?: boolean;
|
|
31
|
+
/** Text above the calendar; also names the calendar grid. */
|
|
32
|
+
title?: string;
|
|
33
|
+
/** Override "today" (tests, demos, server-rendered pages). */
|
|
34
|
+
today?: IsoDate;
|
|
35
|
+
/** Heading of the time columns; it also names them ("Hours, Time"). */
|
|
36
|
+
timeLabel?: string;
|
|
37
|
+
hourLabel?: string;
|
|
38
|
+
minuteLabel?: string;
|
|
39
|
+
secondLabel?: string;
|
|
40
|
+
periodLabel?: string;
|
|
41
|
+
prevMonthLabel?: string;
|
|
42
|
+
nextMonthLabel?: string;
|
|
43
|
+
yearLabel?: string;
|
|
44
|
+
monthLabel?: string;
|
|
45
|
+
/** Accessible name of the week-number column with `show-week-numbers` (D36b). */
|
|
46
|
+
weekLabel?: string;
|
|
47
|
+
shortcutsLabel?: string;
|
|
48
|
+
};
|
|
49
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
|
|
50
|
+
/**
|
|
51
|
+
* Focuses the calendar's focused day. The time columns are first brought to the selected time:
|
|
52
|
+
* when the picker was hidden (a closed dialog), they could not scroll while it was rendered.
|
|
53
|
+
*/
|
|
54
|
+
focus: () => Promise<void>;
|
|
55
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
56
|
+
select: (value: string) => any;
|
|
57
|
+
"update:modelValue": (value: string) => any;
|
|
58
|
+
"update:month": (month: string) => any;
|
|
59
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
60
|
+
onSelect?: ((value: string) => any) | undefined;
|
|
61
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
62
|
+
"onUpdate:month"?: ((month: string) => any) | undefined;
|
|
63
|
+
}>, {
|
|
64
|
+
timeLabel: string;
|
|
65
|
+
prevMonthLabel: string;
|
|
66
|
+
nextMonthLabel: string;
|
|
67
|
+
yearLabel: string;
|
|
68
|
+
monthLabel: string;
|
|
69
|
+
weekLabel: string;
|
|
70
|
+
shortcutsLabel: string;
|
|
71
|
+
locale: string;
|
|
72
|
+
title: string;
|
|
73
|
+
hourLabel: string;
|
|
74
|
+
minuteLabel: string;
|
|
75
|
+
secondLabel: string;
|
|
76
|
+
periodLabel: string;
|
|
77
|
+
disabled: boolean;
|
|
78
|
+
readonly: boolean;
|
|
79
|
+
modelValue: IsoDateTime | null;
|
|
80
|
+
max: string;
|
|
81
|
+
min: string;
|
|
82
|
+
step: number | string;
|
|
83
|
+
format: DTTimePickerFormat;
|
|
84
|
+
allowedDates: (date: IsoDate) => boolean;
|
|
85
|
+
firstDayOfWeek: number | string;
|
|
86
|
+
showAdjacentMonths: boolean;
|
|
87
|
+
showWeekNumbers: boolean;
|
|
88
|
+
today: IsoDate;
|
|
89
|
+
shortcuts: readonly DTDateShortcut[];
|
|
90
|
+
seconds: boolean;
|
|
91
|
+
defaultTime: string;
|
|
92
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
93
|
+
declare const _default: typeof __VLS_export;
|
|
94
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IsoDate } from '../date-picker/isoDate';
|
|
2
|
+
import { IsoTime } from '../time-picker/isoTime';
|
|
3
|
+
export type IsoDateTime = string;
|
|
4
|
+
export interface DateTimeParts {
|
|
5
|
+
date: IsoDate;
|
|
6
|
+
time: IsoTime;
|
|
7
|
+
}
|
|
8
|
+
/** Splits "YYYY-MM-DDTHH:mm[:ss]" (a space instead of "T" is accepted). Null for anything else. */
|
|
9
|
+
export declare const parseDateTime: (value: unknown) => DateTimeParts | null;
|
|
10
|
+
/** Normalizes the time to "HH:mm" or "HH:mm:ss". */
|
|
11
|
+
export declare const fitTime: (time: IsoTime, withSeconds: boolean) => IsoTime;
|
|
12
|
+
export declare const toDateTime: (date: IsoDate, time: IsoTime, withSeconds?: boolean) => IsoDateTime;
|
|
13
|
+
/**
|
|
14
|
+
* A bound: a full date-time, or a date alone (the start of that day for `min`, its end for `max`).
|
|
15
|
+
* Returns null for anything else.
|
|
16
|
+
*/
|
|
17
|
+
export declare const parseBound: (value: unknown, end: boolean) => DateTimeParts | null;
|
|
18
|
+
export declare const compareDateTime: (a: DateTimeParts, b: DateTimeParts) => number;
|
|
19
|
+
/** Formats a date-time in a locale, in UTC so the wall-clock time never shifts. */
|
|
20
|
+
export declare const formatDateTime: (parts: DateTimeParts, locale: string | undefined, hour12: boolean, withSeconds: boolean, date?: Intl.DateTimeFormatOptions) => string;
|
|
21
|
+
/** True when the locale writes the time before the date in a numeric date-time ("14:30 06/11/2026"). */
|
|
22
|
+
export declare const localeTimeFirst: (locale: string | undefined) => boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Reads a typed date-time: ISO ("2026-11-06T14:30", or with a space), or a date in the locale's
|
|
25
|
+
* order and a time in any form DTTimeInput reads, in either order, separated by spaces or a comma
|
|
26
|
+
* ("06/11/2026 14:30", "11/6/2026, 2:30 pm"). Returns null for anything else.
|
|
27
|
+
*/
|
|
28
|
+
export declare const parseTypedDateTime: (text: string, locale: string | undefined) => DateTimeParts | null;
|
|
29
|
+
/** A placeholder in the locale's order, e.g. "MM/DD/YYYY hh:mm AM" or "DD.MM.YYYY hh:mm". */
|
|
30
|
+
export declare const dateTimePattern: (locale: string | undefined, hour12: boolean, withSeconds: boolean) => string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type DTDividerOrientation = "horizontal" | "vertical";
|
|
2
|
+
export type DTDividerTone = "default" | "strong";
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
as?: string;
|
|
5
|
+
orientation?: DTDividerOrientation;
|
|
6
|
+
tone?: DTDividerTone;
|
|
7
|
+
decorative?: boolean;
|
|
8
|
+
/** Indent a horizontal divider from the start edge, as between list rows that have a leading avatar or icon. */
|
|
9
|
+
inset?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
as: string;
|
|
13
|
+
inset: boolean;
|
|
14
|
+
tone: DTDividerTone;
|
|
15
|
+
orientation: DTDividerOrientation;
|
|
16
|
+
decorative: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export type DTEmptyStateSize = "sm" | "md" | "lg";
|
|
2
|
+
export type DTEmptyStateTone = "neutral" | "primary" | "info" | "success" | "warning" | "danger";
|
|
3
|
+
type HeadingLevel = 2 | 3 | 4 | 5 | 6 | "2" | "3" | "4" | "5" | "6";
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
/** tandd-icon name shown in a tinted tile above the title. */
|
|
6
|
+
icon?: string;
|
|
7
|
+
/** Image URL shown instead of the icon (an illustration). */
|
|
8
|
+
image?: string;
|
|
9
|
+
/** Alternative text for `image`; empty (decorative) by default. */
|
|
10
|
+
imageAlt?: string;
|
|
11
|
+
title?: string;
|
|
12
|
+
text?: string;
|
|
13
|
+
/** Heading element for the title: h2–h6. */
|
|
14
|
+
headingLevel?: HeadingLevel;
|
|
15
|
+
size?: DTEmptyStateSize;
|
|
16
|
+
/** Colour of the icon tile. */
|
|
17
|
+
tone?: DTEmptyStateTone;
|
|
18
|
+
/** Start-aligned instead of centred, for narrow panels and table bodies. */
|
|
19
|
+
align?: "center" | "start";
|
|
20
|
+
};
|
|
21
|
+
declare var __VLS_1: {}, __VLS_14: {}, __VLS_16: {}, __VLS_18: {}, __VLS_20: {};
|
|
22
|
+
type __VLS_Slots = {} & {
|
|
23
|
+
media?: (props: typeof __VLS_1) => any;
|
|
24
|
+
} & {
|
|
25
|
+
title?: (props: typeof __VLS_14) => any;
|
|
26
|
+
} & {
|
|
27
|
+
text?: (props: typeof __VLS_16) => any;
|
|
28
|
+
} & {
|
|
29
|
+
default?: (props: typeof __VLS_18) => any;
|
|
30
|
+
} & {
|
|
31
|
+
actions?: (props: typeof __VLS_20) => any;
|
|
32
|
+
};
|
|
33
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
34
|
+
text: string;
|
|
35
|
+
size: DTEmptyStateSize;
|
|
36
|
+
title: string;
|
|
37
|
+
image: string;
|
|
38
|
+
align: "center" | "start";
|
|
39
|
+
tone: DTEmptyStateTone;
|
|
40
|
+
icon: string;
|
|
41
|
+
imageAlt: string;
|
|
42
|
+
headingLevel: HeadingLevel;
|
|
43
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
44
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
45
|
+
declare const _default: typeof __VLS_export;
|
|
46
|
+
export default _default;
|
|
47
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
48
|
+
new (): {
|
|
49
|
+
$slots: S;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
as?: string;
|
|
3
|
+
id?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
hint?: string;
|
|
7
|
+
error?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
invalid?: boolean;
|
|
11
|
+
valid?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare var __VLS_8: {};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
default?: (props: typeof __VLS_8) => any;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
|
+
error: string;
|
|
19
|
+
label: string;
|
|
20
|
+
description: string;
|
|
21
|
+
as: string;
|
|
22
|
+
id: string;
|
|
23
|
+
hint: string;
|
|
24
|
+
required: boolean;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
valid: boolean;
|
|
27
|
+
invalid: boolean;
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComputedRef, InjectionKey } from 'vue';
|
|
2
|
+
export interface DTFieldContext {
|
|
3
|
+
labelId: ComputedRef<string | undefined>;
|
|
4
|
+
descriptionId: ComputedRef<string | undefined>;
|
|
5
|
+
hintId: ComputedRef<string | undefined>;
|
|
6
|
+
errorId: ComputedRef<string | undefined>;
|
|
7
|
+
describedBy: ComputedRef<string | undefined>;
|
|
8
|
+
disabled: ComputedRef<boolean>;
|
|
9
|
+
required: ComputedRef<boolean>;
|
|
10
|
+
invalid: ComputedRef<boolean>;
|
|
11
|
+
valid: ComputedRef<boolean>;
|
|
12
|
+
}
|
|
13
|
+
export declare const DTFieldContextKey: InjectionKey<DTFieldContext>;
|
|
14
|
+
export declare const useDTFieldContext: () => DTFieldContext | null;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { FieldRule, ValidateOn } from '../_shared/useFieldValidation';
|
|
2
|
+
type FieldControlVariant = "outlined" | "underlined" | "filled";
|
|
3
|
+
type FieldControlDensity = "compact" | "default" | "comfortable";
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
id?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
hint?: string;
|
|
9
|
+
persistentHint?: boolean;
|
|
10
|
+
messages?: string | readonly string[];
|
|
11
|
+
error?: boolean | string;
|
|
12
|
+
errorMessages?: string | readonly string[];
|
|
13
|
+
required?: boolean;
|
|
14
|
+
disabled?: boolean | null;
|
|
15
|
+
readonly?: boolean | null;
|
|
16
|
+
focused?: boolean;
|
|
17
|
+
active?: boolean;
|
|
18
|
+
dirty?: boolean;
|
|
19
|
+
valid?: boolean;
|
|
20
|
+
invalid?: boolean;
|
|
21
|
+
variant?: FieldControlVariant;
|
|
22
|
+
density?: FieldControlDensity;
|
|
23
|
+
rounded?: boolean;
|
|
24
|
+
loading?: boolean;
|
|
25
|
+
clearable?: boolean;
|
|
26
|
+
/** Accessible name of the built-in clear button (D32). */
|
|
27
|
+
clearLabel?: string;
|
|
28
|
+
/** Announced while `loading` (D36b). */
|
|
29
|
+
loadingLabel?: string;
|
|
30
|
+
rules?: readonly FieldRule[];
|
|
31
|
+
validationValue?: unknown;
|
|
32
|
+
maxErrors?: number | string;
|
|
33
|
+
validateOn?: ValidateOn;
|
|
34
|
+
hideDetails?: boolean | "auto";
|
|
35
|
+
};
|
|
36
|
+
declare var __VLS_1: {}, __VLS_3: {
|
|
37
|
+
label: string | undefined;
|
|
38
|
+
}, __VLS_5: {}, __VLS_7: {
|
|
39
|
+
id: string;
|
|
40
|
+
describedBy: string | undefined;
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
readonly: boolean;
|
|
43
|
+
required: boolean;
|
|
44
|
+
invalid: boolean;
|
|
45
|
+
valid: boolean;
|
|
46
|
+
focused: boolean;
|
|
47
|
+
active: boolean;
|
|
48
|
+
dirty: boolean;
|
|
49
|
+
onFocus: (_event: FocusEvent) => void;
|
|
50
|
+
onBlur: (_event: FocusEvent) => void;
|
|
51
|
+
onClick: (event: MouseEvent) => void;
|
|
52
|
+
onMousedown: (event: MouseEvent) => void;
|
|
53
|
+
clear: () => void;
|
|
54
|
+
}, __VLS_9: {}, __VLS_11: {
|
|
55
|
+
clear: () => void;
|
|
56
|
+
}, __VLS_13: {
|
|
57
|
+
loading: true;
|
|
58
|
+
}, __VLS_15: {
|
|
59
|
+
messages: readonly string[];
|
|
60
|
+
hint: string | undefined;
|
|
61
|
+
invalid: boolean;
|
|
62
|
+
valid: boolean;
|
|
63
|
+
}, __VLS_17: {
|
|
64
|
+
message: string;
|
|
65
|
+
invalid: boolean;
|
|
66
|
+
}, __VLS_19: {};
|
|
67
|
+
type __VLS_Slots = {} & {
|
|
68
|
+
prepend?: (props: typeof __VLS_1) => any;
|
|
69
|
+
} & {
|
|
70
|
+
label?: (props: typeof __VLS_3) => any;
|
|
71
|
+
} & {
|
|
72
|
+
'prepend-inner'?: (props: typeof __VLS_5) => any;
|
|
73
|
+
} & {
|
|
74
|
+
control?: (props: typeof __VLS_7) => any;
|
|
75
|
+
} & {
|
|
76
|
+
'append-inner'?: (props: typeof __VLS_9) => any;
|
|
77
|
+
} & {
|
|
78
|
+
clear?: (props: typeof __VLS_11) => any;
|
|
79
|
+
} & {
|
|
80
|
+
loader?: (props: typeof __VLS_13) => any;
|
|
81
|
+
} & {
|
|
82
|
+
details?: (props: typeof __VLS_15) => any;
|
|
83
|
+
} & {
|
|
84
|
+
message?: (props: typeof __VLS_17) => any;
|
|
85
|
+
} & {
|
|
86
|
+
append?: (props: typeof __VLS_19) => any;
|
|
87
|
+
};
|
|
88
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
89
|
+
"update:focused": (value: boolean) => any;
|
|
90
|
+
"click:control": (event: MouseEvent) => any;
|
|
91
|
+
"mousedown:control": (event: MouseEvent) => any;
|
|
92
|
+
"click:clear": (event: MouseEvent) => any;
|
|
93
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
94
|
+
"onUpdate:focused"?: ((value: boolean) => any) | undefined;
|
|
95
|
+
"onClick:control"?: ((event: MouseEvent) => any) | undefined;
|
|
96
|
+
"onMousedown:control"?: ((event: MouseEvent) => any) | undefined;
|
|
97
|
+
"onClick:clear"?: ((event: MouseEvent) => any) | undefined;
|
|
98
|
+
}>, {
|
|
99
|
+
error: boolean | string;
|
|
100
|
+
variant: FieldControlVariant;
|
|
101
|
+
rounded: boolean;
|
|
102
|
+
messages: string | readonly string[];
|
|
103
|
+
label: string;
|
|
104
|
+
description: string;
|
|
105
|
+
clearLabel: string;
|
|
106
|
+
loadingLabel: string;
|
|
107
|
+
id: string;
|
|
108
|
+
hint: string;
|
|
109
|
+
persistentHint: boolean;
|
|
110
|
+
errorMessages: string | readonly string[];
|
|
111
|
+
required: boolean;
|
|
112
|
+
disabled: boolean | null;
|
|
113
|
+
readonly: boolean | null;
|
|
114
|
+
focused: boolean;
|
|
115
|
+
active: boolean;
|
|
116
|
+
dirty: boolean;
|
|
117
|
+
valid: boolean;
|
|
118
|
+
invalid: boolean;
|
|
119
|
+
density: FieldControlDensity;
|
|
120
|
+
loading: boolean;
|
|
121
|
+
clearable: boolean;
|
|
122
|
+
rules: readonly FieldRule[];
|
|
123
|
+
validationValue: undefined;
|
|
124
|
+
maxErrors: number | string;
|
|
125
|
+
validateOn: ValidateOn;
|
|
126
|
+
hideDetails: boolean | "auto";
|
|
127
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
128
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
129
|
+
declare const _default: typeof __VLS_export;
|
|
130
|
+
export default _default;
|
|
131
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
132
|
+
new (): {
|
|
133
|
+
$slots: S;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DTFieldControl } from './DTFieldControl.vue';
|