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,66 @@
|
|
|
1
|
+
import { DTTextFieldBaseProps } from '../text-field/fieldShared';
|
|
2
|
+
export type DTNumberInputControlVariant = "split" | "stacked" | "hidden";
|
|
3
|
+
interface DTNumberInputProps extends Omit<DTTextFieldBaseProps, "modelValue" | "prependIcon" | "appendIcon" | "appendInnerIcon" | "prependIconLabel" | "prependInnerIconLabel" | "appendIconLabel" | "appendInnerIconLabel"> {
|
|
4
|
+
modelValue?: number | null;
|
|
5
|
+
min?: number | string;
|
|
6
|
+
max?: number | string;
|
|
7
|
+
/** Amount added by the buttons and arrow keys. */
|
|
8
|
+
step?: number | string;
|
|
9
|
+
/** Decimal places the value is rounded to; default: the decimals of `step`. */
|
|
10
|
+
precision?: number | string;
|
|
11
|
+
/** "split": − before and + after the value; "stacked": both after it; "hidden": keys only. */
|
|
12
|
+
controlVariant?: DTNumberInputControlVariant;
|
|
13
|
+
/** How the value is shown when the field is not focused (Intl.NumberFormat options). */
|
|
14
|
+
format?: Intl.NumberFormatOptions;
|
|
15
|
+
locale?: string;
|
|
16
|
+
/** Pull a typed value back inside min/max when the field loses focus. */
|
|
17
|
+
clampOnBlur?: boolean;
|
|
18
|
+
prefix?: string;
|
|
19
|
+
suffix?: string;
|
|
20
|
+
increaseLabel?: string;
|
|
21
|
+
decreaseLabel?: string;
|
|
22
|
+
}
|
|
23
|
+
declare var __VLS_10: string, __VLS_11: any, __VLS_20: {};
|
|
24
|
+
type __VLS_Slots = {} & {
|
|
25
|
+
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
26
|
+
} & {
|
|
27
|
+
'append-inner'?: (props: typeof __VLS_20) => any;
|
|
28
|
+
};
|
|
29
|
+
declare const __VLS_base: import('vue').DefineComponent<DTNumberInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
+
"update:modelValue": (value: number | null) => any;
|
|
31
|
+
}, string, import('vue').PublicProps, Readonly<DTNumberInputProps> & Readonly<{
|
|
32
|
+
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
error: boolean | string;
|
|
35
|
+
variant: import('../..').DTFieldVariant;
|
|
36
|
+
size: import('../..').DTFieldSize;
|
|
37
|
+
locale: string;
|
|
38
|
+
label: string;
|
|
39
|
+
increaseLabel: string;
|
|
40
|
+
decreaseLabel: string;
|
|
41
|
+
placeholder: string;
|
|
42
|
+
id: string;
|
|
43
|
+
required: boolean;
|
|
44
|
+
disabled: boolean;
|
|
45
|
+
readonly: boolean;
|
|
46
|
+
modelValue: number | null;
|
|
47
|
+
max: number | string;
|
|
48
|
+
helper: string;
|
|
49
|
+
prependInnerIcon: string;
|
|
50
|
+
prefix: string;
|
|
51
|
+
suffix: string;
|
|
52
|
+
min: number | string;
|
|
53
|
+
step: number | string;
|
|
54
|
+
format: Intl.NumberFormatOptions;
|
|
55
|
+
precision: number | string;
|
|
56
|
+
controlVariant: DTNumberInputControlVariant;
|
|
57
|
+
clampOnBlur: boolean;
|
|
58
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
59
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
60
|
+
declare const _default: typeof __VLS_export;
|
|
61
|
+
export default _default;
|
|
62
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
63
|
+
new (): {
|
|
64
|
+
$slots: S;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export type DTOtpInputType = "number" | "text";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue?: string;
|
|
4
|
+
/** Number of boxes. */
|
|
5
|
+
length?: number | string;
|
|
6
|
+
/** "number" takes digits only; "text" takes letters and digits. */
|
|
7
|
+
type?: DTOtpInputType;
|
|
8
|
+
/** Shows a dot instead of each character, as for a PIN. */
|
|
9
|
+
mask?: boolean;
|
|
10
|
+
label?: string;
|
|
11
|
+
helper?: string;
|
|
12
|
+
/** `true` marks the code invalid; a string also replaces the helper with the message. */
|
|
13
|
+
error?: boolean | string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
readonly?: boolean;
|
|
16
|
+
autofocus?: boolean;
|
|
17
|
+
size?: "sm" | "md" | "lg";
|
|
18
|
+
variant?: "soft" | "outlined";
|
|
19
|
+
/** Splits the boxes into groups with a gap, e.g. 3 for "123 456". */
|
|
20
|
+
groupSize?: number | string;
|
|
21
|
+
/** Native `name` of a hidden input holding the whole code, for forms. */
|
|
22
|
+
name?: string;
|
|
23
|
+
/** Accessible name of each box, as a function; wins over `digit-label` / `character-label`. */
|
|
24
|
+
boxLabel?: (index: number, length: number) => string;
|
|
25
|
+
/** Accessible name of each box with `type="number"`; `{0}` is its position, `{1}` the length (D36b). */
|
|
26
|
+
digitLabel?: string;
|
|
27
|
+
/** Accessible name of each box with `type="text"`; `{0}` is its position, `{1}` the length (D36b). */
|
|
28
|
+
characterLabel?: string;
|
|
29
|
+
};
|
|
30
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
31
|
+
type __VLS_Slots = {} & {
|
|
32
|
+
label?: (props: typeof __VLS_1) => any;
|
|
33
|
+
} & {
|
|
34
|
+
helper?: (props: typeof __VLS_3) => any;
|
|
35
|
+
};
|
|
36
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
37
|
+
focus: () => void;
|
|
38
|
+
clear: () => void;
|
|
39
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
40
|
+
"update:modelValue": (value: string) => any;
|
|
41
|
+
finish: (value: string) => any;
|
|
42
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
43
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
44
|
+
onFinish?: ((value: string) => any) | undefined;
|
|
45
|
+
}>, {
|
|
46
|
+
error: boolean | string;
|
|
47
|
+
variant: "soft" | "outlined";
|
|
48
|
+
size: "sm" | "md" | "lg";
|
|
49
|
+
length: number | string;
|
|
50
|
+
name: string;
|
|
51
|
+
label: string;
|
|
52
|
+
type: DTOtpInputType;
|
|
53
|
+
digitLabel: string;
|
|
54
|
+
characterLabel: string;
|
|
55
|
+
disabled: boolean;
|
|
56
|
+
readonly: boolean;
|
|
57
|
+
mask: boolean;
|
|
58
|
+
modelValue: string;
|
|
59
|
+
helper: string;
|
|
60
|
+
autofocus: boolean;
|
|
61
|
+
groupSize: number | string;
|
|
62
|
+
boxLabel: (index: number, length: number) => string;
|
|
63
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
64
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
65
|
+
declare const _default: typeof __VLS_export;
|
|
66
|
+
export default _default;
|
|
67
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
68
|
+
new (): {
|
|
69
|
+
$slots: S;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export type DTPaginationSize = "sm" | "md";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Current page, 1-based. */
|
|
4
|
+
modelValue?: number;
|
|
5
|
+
/** Number of pages. */
|
|
6
|
+
length: number;
|
|
7
|
+
/** Maximum page buttons shown, ellipses included. */
|
|
8
|
+
totalVisible?: number;
|
|
9
|
+
size?: DTPaginationSize;
|
|
10
|
+
/** Show first and last page buttons. */
|
|
11
|
+
showEdges?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
label?: string;
|
|
14
|
+
/** tandd-icon name of the previous-page button. */
|
|
15
|
+
prevIcon?: string;
|
|
16
|
+
/** tandd-icon name of the next-page button. */
|
|
17
|
+
nextIcon?: string;
|
|
18
|
+
/** tandd-icon name of the first-page button. */
|
|
19
|
+
firstIcon?: string;
|
|
20
|
+
/** tandd-icon name of the last-page button. */
|
|
21
|
+
lastIcon?: string;
|
|
22
|
+
/** Accessible name of the first-page button. */
|
|
23
|
+
firstLabel?: string;
|
|
24
|
+
/** Accessible name of the previous-page button. */
|
|
25
|
+
prevLabel?: string;
|
|
26
|
+
/** Accessible name of the next-page button. */
|
|
27
|
+
nextLabel?: string;
|
|
28
|
+
/** Accessible name of the last-page button. */
|
|
29
|
+
lastLabel?: string;
|
|
30
|
+
/** Accessible name of each page button; `{0}` is the page number. */
|
|
31
|
+
pageLabel?: string;
|
|
32
|
+
};
|
|
33
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
34
|
+
"update:modelValue": (value: number) => any;
|
|
35
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
36
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
size: DTPaginationSize;
|
|
39
|
+
label: string;
|
|
40
|
+
prevLabel: string;
|
|
41
|
+
nextLabel: string;
|
|
42
|
+
firstLabel: string;
|
|
43
|
+
lastLabel: string;
|
|
44
|
+
pageLabel: string;
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
modelValue: number;
|
|
47
|
+
totalVisible: number;
|
|
48
|
+
showEdges: boolean;
|
|
49
|
+
prevIcon: string;
|
|
50
|
+
nextIcon: string;
|
|
51
|
+
firstIcon: string;
|
|
52
|
+
lastIcon: string;
|
|
53
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
54
|
+
declare const _default: typeof __VLS_export;
|
|
55
|
+
export default _default;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export type DTPopoverPanelPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Open state, for `v-model:open`. */
|
|
4
|
+
open?: boolean;
|
|
5
|
+
/** Preferred side and alignment; the panel flips to the opposite side when it does not fit. */
|
|
6
|
+
placement?: DTPopoverPanelPlacement;
|
|
7
|
+
/** Gap between trigger and panel in px. */
|
|
8
|
+
offset?: number;
|
|
9
|
+
/** Heading shown at the top of the panel; it also names the dialog. */
|
|
10
|
+
title?: string;
|
|
11
|
+
/** Accessible name of the panel when there is no `title`. */
|
|
12
|
+
label?: string;
|
|
13
|
+
/** Panel width: a CSS length, or `"trigger"` to match the trigger's width. */
|
|
14
|
+
width?: string;
|
|
15
|
+
/** Draws a close button in the header. */
|
|
16
|
+
closable?: boolean;
|
|
17
|
+
/** Accessible name of the close button. */
|
|
18
|
+
closeLabel?: string;
|
|
19
|
+
/** An outside press does not close the panel (Escape and the close button still do). */
|
|
20
|
+
persistent?: boolean;
|
|
21
|
+
/** Never opens. */
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
};
|
|
24
|
+
type __VLS_Slots = {
|
|
25
|
+
/** The trigger. Bind `props` to one button: it carries the aria attributes and click handler. */
|
|
26
|
+
trigger?: (scope: {
|
|
27
|
+
props: Record<string, unknown>;
|
|
28
|
+
open: boolean;
|
|
29
|
+
}) => unknown;
|
|
30
|
+
/** Panel content. `close()` closes the panel and returns focus to the trigger. */
|
|
31
|
+
default?: (scope: {
|
|
32
|
+
close: () => void;
|
|
33
|
+
}) => unknown;
|
|
34
|
+
/** Replaces the title text in the header. */
|
|
35
|
+
title?: () => unknown;
|
|
36
|
+
/** Actions at the bottom of the panel. */
|
|
37
|
+
footer?: (scope: {
|
|
38
|
+
close: () => void;
|
|
39
|
+
}) => unknown;
|
|
40
|
+
};
|
|
41
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
42
|
+
show: () => Promise<void>;
|
|
43
|
+
close: () => void;
|
|
44
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
45
|
+
"update:open": (value: boolean) => any;
|
|
46
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
47
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
48
|
+
}>, {
|
|
49
|
+
label: string;
|
|
50
|
+
title: string;
|
|
51
|
+
closeLabel: string;
|
|
52
|
+
disabled: boolean;
|
|
53
|
+
offset: number;
|
|
54
|
+
width: string;
|
|
55
|
+
placement: DTPopoverPanelPlacement;
|
|
56
|
+
open: boolean;
|
|
57
|
+
closable: boolean;
|
|
58
|
+
persistent: boolean;
|
|
59
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
60
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
61
|
+
declare const _default: typeof __VLS_export;
|
|
62
|
+
export default _default;
|
|
63
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
64
|
+
new (): {
|
|
65
|
+
$slots: S;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export type DTProgressTone = "primary" | "success" | "warning" | "danger";
|
|
2
|
+
export type DTProgressSize = "sm" | "md" | "lg";
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** Omit for indeterminate progress. */
|
|
5
|
+
value?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
tone?: DTProgressTone;
|
|
8
|
+
size?: DTProgressSize;
|
|
9
|
+
/** Visible label above the bar; also its accessible name. */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** Show the percentage next to the label. */
|
|
12
|
+
showValue?: boolean;
|
|
13
|
+
/** Diagonal stripes on the bar. They move unless reduced motion is requested. */
|
|
14
|
+
striped?: boolean;
|
|
15
|
+
/** Fill from the end edge (the left in RTL) instead of the start edge. */
|
|
16
|
+
reverse?: boolean;
|
|
17
|
+
/** A lighter buffered segment behind the value, on the same scale as `value` (determinate only). */
|
|
18
|
+
bufferValue?: number;
|
|
19
|
+
/** Split the track into this many equal segments with gaps between them (2 or more). */
|
|
20
|
+
chunks?: number;
|
|
21
|
+
/** With `buffer-value`, draw the unbuffered rest as a moving dotted line instead of a plain track. */
|
|
22
|
+
stream?: boolean;
|
|
23
|
+
};
|
|
24
|
+
declare var __VLS_1: {};
|
|
25
|
+
type __VLS_Slots = {} & {
|
|
26
|
+
label?: (props: typeof __VLS_1) => any;
|
|
27
|
+
};
|
|
28
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
29
|
+
value: number;
|
|
30
|
+
size: DTProgressSize;
|
|
31
|
+
label: string;
|
|
32
|
+
reverse: boolean;
|
|
33
|
+
tone: DTProgressTone;
|
|
34
|
+
max: number;
|
|
35
|
+
showValue: boolean;
|
|
36
|
+
striped: boolean;
|
|
37
|
+
bufferValue: number;
|
|
38
|
+
chunks: number;
|
|
39
|
+
stream: boolean;
|
|
40
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
41
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
42
|
+
declare const _default: typeof __VLS_export;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export type DTPullRefreshStatus = "normal" | "pulling" | "loosing" | "loading" | "success";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Refreshing (`v-model:loading`). Set it back to false when the refresh is done. */
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
/** Pull distance in px that arms the refresh; also the height of the head while refreshing. */
|
|
6
|
+
threshold?: number;
|
|
7
|
+
/** No pull and no button. */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/** A visible Refresh button above the content, the non-gesture way to refresh. */
|
|
10
|
+
showButton?: boolean;
|
|
11
|
+
/** Height of the scroll box (a number is pixels). */
|
|
12
|
+
height?: number | string;
|
|
13
|
+
/** How long "Refreshed" shows after a refresh, in ms; 0 skips it. */
|
|
14
|
+
successDuration?: number;
|
|
15
|
+
/** Names the region (the scroll box). */
|
|
16
|
+
label?: string;
|
|
17
|
+
pullingText?: string;
|
|
18
|
+
loosingText?: string;
|
|
19
|
+
loadingText?: string;
|
|
20
|
+
successText?: string;
|
|
21
|
+
buttonText?: string;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_Slots = {
|
|
24
|
+
default(): unknown;
|
|
25
|
+
/** Replaces the head content in every status. */
|
|
26
|
+
head(props: {
|
|
27
|
+
status: DTPullRefreshStatus;
|
|
28
|
+
distance: number;
|
|
29
|
+
}): unknown;
|
|
30
|
+
};
|
|
31
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
32
|
+
refresh: () => void;
|
|
33
|
+
status: import('vue').Ref<DTPullRefreshStatus, DTPullRefreshStatus>;
|
|
34
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
35
|
+
change: (payload: {
|
|
36
|
+
status: DTPullRefreshStatus;
|
|
37
|
+
distance: number;
|
|
38
|
+
}) => any;
|
|
39
|
+
"update:loading": (loading: boolean) => any;
|
|
40
|
+
refresh: () => any;
|
|
41
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
42
|
+
onChange?: ((payload: {
|
|
43
|
+
status: DTPullRefreshStatus;
|
|
44
|
+
distance: number;
|
|
45
|
+
}) => any) | undefined;
|
|
46
|
+
"onUpdate:loading"?: ((loading: boolean) => any) | undefined;
|
|
47
|
+
onRefresh?: (() => any) | undefined;
|
|
48
|
+
}>, {
|
|
49
|
+
label: string;
|
|
50
|
+
loadingText: string;
|
|
51
|
+
successText: string;
|
|
52
|
+
pullingText: string;
|
|
53
|
+
loosingText: string;
|
|
54
|
+
buttonText: string;
|
|
55
|
+
disabled: boolean;
|
|
56
|
+
loading: boolean;
|
|
57
|
+
height: number | string;
|
|
58
|
+
showButton: boolean;
|
|
59
|
+
threshold: number;
|
|
60
|
+
successDuration: number;
|
|
61
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
62
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
63
|
+
declare const _default: typeof __VLS_export;
|
|
64
|
+
export default _default;
|
|
65
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
66
|
+
new (): {
|
|
67
|
+
$slots: S;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value: unknown;
|
|
3
|
+
label?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
/** Standalone use only; inside DTRadioGroup the group owns the model. */
|
|
6
|
+
modelValue?: unknown;
|
|
7
|
+
/** Standalone use only; inside DTRadioGroup the group sets the name. */
|
|
8
|
+
name?: string;
|
|
9
|
+
/** Icon shown when selected, in place of the circle. Setting it or `falseIcon` switches to icon mode. */
|
|
10
|
+
trueIcon?: string;
|
|
11
|
+
/** Icon shown when not selected, in place of the circle. Setting it or `trueIcon` switches to icon mode. */
|
|
12
|
+
falseIcon?: string;
|
|
13
|
+
id?: string;
|
|
14
|
+
ripple?: boolean;
|
|
15
|
+
};
|
|
16
|
+
declare var __VLS_6: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
default?: (props: typeof __VLS_6) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (value: unknown) => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
ripple: boolean;
|
|
26
|
+
name: string;
|
|
27
|
+
label: string;
|
|
28
|
+
id: string;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
modelValue: undefined;
|
|
31
|
+
trueIcon: string;
|
|
32
|
+
falseIcon: string;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type DTRadioGroupOrientation = "vertical" | "horizontal";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue?: unknown;
|
|
4
|
+
/** Visible group label; names the radiogroup. Without it, pass `aria-label`. */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Shared native `name`; generated when omitted. Native radios move with the arrow keys. */
|
|
7
|
+
name?: string;
|
|
8
|
+
orientation?: DTRadioGroupOrientation;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
error?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare var __VLS_1: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
default?: (props: typeof __VLS_1) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: unknown) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
error: boolean;
|
|
22
|
+
name: string;
|
|
23
|
+
label: string;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
modelValue: undefined;
|
|
26
|
+
orientation: DTRadioGroupOrientation;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComputedRef, InjectionKey } from 'vue';
|
|
2
|
+
export interface DTRadioGroupContext {
|
|
3
|
+
name: ComputedRef<string>;
|
|
4
|
+
modelValue: ComputedRef<unknown>;
|
|
5
|
+
disabled: ComputedRef<boolean>;
|
|
6
|
+
error: ComputedRef<boolean>;
|
|
7
|
+
select: (value: unknown) => void;
|
|
8
|
+
/** Registers a radio's re-sync; returns the unregister function. */
|
|
9
|
+
register: (sync: () => void) => () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const DTRadioGroupKey: InjectionKey<DTRadioGroupContext>;
|
|
12
|
+
export declare const useDTRadioGroup: () => DTRadioGroupContext | null;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export type DTRatingSize = "sm" | "md" | "lg";
|
|
2
|
+
export type DTRatingColor = "warning" | "primary" | "danger" | "text";
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
modelValue?: number | null;
|
|
5
|
+
/** Number of items. */
|
|
6
|
+
length?: number | string;
|
|
7
|
+
/** Each item also takes a half value (0.5 steps). */
|
|
8
|
+
halfIncrements?: boolean;
|
|
9
|
+
/** Picking the current value again clears it to 0. */
|
|
10
|
+
clearable?: boolean;
|
|
11
|
+
readonly?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Previews the value under the pointer. */
|
|
14
|
+
hover?: boolean;
|
|
15
|
+
size?: DTRatingSize;
|
|
16
|
+
/** Colour of filled items. */
|
|
17
|
+
color?: DTRatingColor;
|
|
18
|
+
/** tandd-icon name of an item; a closed shape, filled when on. */
|
|
19
|
+
icon?: string;
|
|
20
|
+
/** Group label; names the radio group. Without it, pass `aria-label`. */
|
|
21
|
+
label?: string;
|
|
22
|
+
/** Visible labels or accessible names per item ("Poor", "Fair", …); shown under the items with `show-labels`. */
|
|
23
|
+
itemLabels?: string[];
|
|
24
|
+
showLabels?: boolean;
|
|
25
|
+
/** Native radio `name`, for forms; generated when omitted. */
|
|
26
|
+
name?: string;
|
|
27
|
+
/** Accessible name of a value, as a function; wins over `item-labels` and `score-label`. */
|
|
28
|
+
valueLabel?: (value: number, length: number) => string;
|
|
29
|
+
/** Accessible name of a value without `item-labels`; `{0}` is the value, `{1}` the length (D36b). */
|
|
30
|
+
scoreLabel?: string;
|
|
31
|
+
};
|
|
32
|
+
declare var __VLS_21: {};
|
|
33
|
+
type __VLS_Slots = {} & {
|
|
34
|
+
default?: (props: typeof __VLS_21) => any;
|
|
35
|
+
};
|
|
36
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
37
|
+
"update:modelValue": (value: number) => any;
|
|
38
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
39
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
40
|
+
}>, {
|
|
41
|
+
size: DTRatingSize;
|
|
42
|
+
length: number | string;
|
|
43
|
+
name: string;
|
|
44
|
+
label: string;
|
|
45
|
+
itemLabels: string[];
|
|
46
|
+
scoreLabel: string;
|
|
47
|
+
disabled: boolean;
|
|
48
|
+
readonly: boolean;
|
|
49
|
+
clearable: boolean;
|
|
50
|
+
color: DTRatingColor;
|
|
51
|
+
hover: boolean;
|
|
52
|
+
modelValue: number | null;
|
|
53
|
+
icon: string;
|
|
54
|
+
halfIncrements: boolean;
|
|
55
|
+
showLabels: boolean;
|
|
56
|
+
valueLabel: (value: number, length: number) => string;
|
|
57
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
58
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
59
|
+
declare const _default: typeof __VLS_export;
|
|
60
|
+
export default _default;
|
|
61
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type DTRowAlign = "start" | "center" | "end" | "stretch";
|
|
2
|
+
export type DTRowJustify = "start" | "center" | "end" | "between" | "around" | "evenly";
|
|
3
|
+
export type DTSpaceStep = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8;
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
as?: string;
|
|
6
|
+
align?: DTRowAlign;
|
|
7
|
+
justify?: DTRowJustify;
|
|
8
|
+
/** Gutter on both axes: a space-scale step (`4` = `--dt-space-4`) or any CSS length. */
|
|
9
|
+
gap?: DTSpaceStep | string;
|
|
10
|
+
gapX?: DTSpaceStep | string;
|
|
11
|
+
gapY?: DTSpaceStep | string;
|
|
12
|
+
wrap?: boolean;
|
|
13
|
+
reverse?: boolean;
|
|
14
|
+
noGutters?: boolean;
|
|
15
|
+
};
|
|
16
|
+
declare var __VLS_8: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
default?: (props: typeof __VLS_8) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
21
|
+
as: string;
|
|
22
|
+
reverse: boolean;
|
|
23
|
+
align: DTRowAlign;
|
|
24
|
+
justify: DTRowJustify;
|
|
25
|
+
gap: DTSpaceStep | string;
|
|
26
|
+
gapX: DTSpaceStep | string;
|
|
27
|
+
gapY: DTSpaceStep | string;
|
|
28
|
+
wrap: boolean;
|
|
29
|
+
noGutters: boolean;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|