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.
Files changed (269) hide show
  1. package/CHANGELOG.md +96 -0
  2. package/LICENSE +21 -0
  3. package/README.md +96 -2
  4. package/dist/components/_shared/direction.d.ts +6 -0
  5. package/dist/components/_shared/escapeLayers.d.ts +21 -0
  6. package/dist/components/_shared/formatLabel.d.ts +5 -0
  7. package/dist/components/_shared/useDismissiblePopup.d.ts +4 -0
  8. package/dist/components/_shared/useFieldValidation.d.ts +34 -0
  9. package/dist/components/_shared/useFocusTrap.d.ts +16 -0
  10. package/dist/components/_shared/useMessages.d.ts +18 -0
  11. package/dist/components/_shared/usePopover.d.ts +122 -0
  12. package/dist/components/_shared/useRipple.d.ts +37 -0
  13. package/dist/components/_shared/useRovingFocus.d.ts +25 -0
  14. package/dist/components/accordion/DTAccordion.vue.d.ts +42 -0
  15. package/dist/components/accordion/DTAccordionItem.vue.d.ts +34 -0
  16. package/dist/components/accordion/accordionContext.d.ts +13 -0
  17. package/dist/components/alert/DTAlert.vue.d.ts +57 -0
  18. package/dist/components/anchor/DTAnchor.vue.d.ts +48 -0
  19. package/dist/components/anchor/DTAnchorLink.vue.d.ts +21 -0
  20. package/dist/components/anchor/anchorContext.d.ts +10 -0
  21. package/dist/components/app-bar/DTAppBar.vue.d.ts +56 -0
  22. package/dist/components/autocomplete/DTAutocomplete.vue.d.ts +131 -0
  23. package/dist/components/avatar/DTAvatar.vue.d.ts +37 -0
  24. package/dist/components/avatar/DTAvatarGroup.vue.d.ts +18 -0
  25. package/dist/components/badge/DTBadge.vue.d.ts +47 -0
  26. package/dist/components/badge/index.d.ts +2 -0
  27. package/dist/components/border-beam/DTBorderBeam.vue.d.ts +47 -0
  28. package/dist/components/breadcrumb/DTBreadcrumb.vue.d.ts +46 -0
  29. package/dist/components/button/DTButton.vue.d.ts +60 -0
  30. package/dist/components/button-group/DTButtonGroup.vue.d.ts +56 -0
  31. package/dist/components/button-group/buttonGroupContext.d.ts +16 -0
  32. package/dist/components/card/DTCard.vue.d.ts +38 -0
  33. package/dist/components/card/DTCardBody.vue.d.ts +13 -0
  34. package/dist/components/card/DTCardFooter.vue.d.ts +13 -0
  35. package/dist/components/card/DTCardHeader.vue.d.ts +17 -0
  36. package/dist/components/card/DTCardMedia.vue.d.ts +24 -0
  37. package/dist/components/card/DTCardSubtitle.vue.d.ts +13 -0
  38. package/dist/components/card/DTCardText.vue.d.ts +13 -0
  39. package/dist/components/card/DTCardTitle.vue.d.ts +24 -0
  40. package/dist/components/card/context.d.ts +6 -0
  41. package/dist/components/card/index.d.ts +2 -0
  42. package/dist/components/carousel/DTCarousel.vue.d.ts +69 -0
  43. package/dist/components/carousel/DTCarouselItem.vue.d.ts +21 -0
  44. package/dist/components/carousel/carouselContext.d.ts +22 -0
  45. package/dist/components/checkbox/DTCheckbox.vue.d.ts +50 -0
  46. package/dist/components/chip/DTChip.vue.d.ts +62 -0
  47. package/dist/components/chip/DTChipGroup.vue.d.ts +36 -0
  48. package/dist/components/chip/chipGroupContext.d.ts +9 -0
  49. package/dist/components/code/DTCode.vue.d.ts +13 -0
  50. package/dist/components/col/DTCol.vue.d.ts +55 -0
  51. package/dist/components/color-input/DTColorInput.vue.d.ts +89 -0
  52. package/dist/components/color-input/colorMath.d.ts +36 -0
  53. package/dist/components/color-picker/DTColorPicker.vue.d.ts +66 -0
  54. package/dist/components/color-picker/context.d.ts +9 -0
  55. package/dist/components/combobox/DTCombobox.vue.d.ts +106 -0
  56. package/dist/components/container/DTContainer.vue.d.ts +29 -0
  57. package/dist/components/data-table/DTDataTable.vue.d.ts +112 -0
  58. package/dist/components/data-table/types.d.ts +70 -0
  59. package/dist/components/date-picker/DTDateInput.vue.d.ts +98 -0
  60. package/dist/components/date-picker/DTDatePicker.vue.d.ts +106 -0
  61. package/dist/components/date-picker/DTDateShortcuts.vue.d.ts +15 -0
  62. package/dist/components/date-picker/isoDate.d.ts +38 -0
  63. package/dist/components/date-picker/shortcuts.d.ts +11 -0
  64. package/dist/components/date-time-picker/DTDateTimeInput.vue.d.ts +107 -0
  65. package/dist/components/date-time-picker/DTDateTimePicker.vue.d.ts +94 -0
  66. package/dist/components/date-time-picker/isoDateTime.d.ts +30 -0
  67. package/dist/components/divider/DTDivider.vue.d.ts +19 -0
  68. package/dist/components/empty-state/DTEmptyState.vue.d.ts +51 -0
  69. package/dist/components/field/DTField.vue.d.ts +36 -0
  70. package/dist/components/field/fieldContext.d.ts +14 -0
  71. package/dist/components/field-control/DTFieldControl.vue.d.ts +135 -0
  72. package/dist/components/field-control/index.d.ts +1 -0
  73. package/dist/components/file-input/DTFileInput.vue.d.ts +142 -0
  74. package/dist/components/file-upload/DTFileUpload.vue.d.ts +132 -0
  75. package/dist/components/file-upload/icons.d.ts +1 -0
  76. package/dist/components/file-upload/types.d.ts +47 -0
  77. package/dist/components/grid/DTGrid.vue.d.ts +44 -0
  78. package/dist/components/grid/DTGridItem.vue.d.ts +42 -0
  79. package/dist/components/heading/DTHeading.vue.d.ts +31 -0
  80. package/dist/components/icon/DTIcon.vue.d.ts +43 -0
  81. package/dist/components/icon/play.d.ts +6 -0
  82. package/dist/components/icon/registry.d.ts +16 -0
  83. package/dist/components/infinite-scroll/DTInfiniteScroll.vue.d.ts +67 -0
  84. package/dist/components/infinite-scroll/icons.d.ts +1 -0
  85. package/dist/components/inline/DTInline.vue.d.ts +26 -0
  86. package/dist/components/kbd/DTKbd.vue.d.ts +13 -0
  87. package/dist/components/layout-app/DTLayout.vue.d.ts +18 -0
  88. package/dist/components/layout-app/DTMain.vue.d.ts +21 -0
  89. package/dist/components/layout-app/layoutContext.d.ts +33 -0
  90. package/dist/components/link/DTLink.vue.d.ts +26 -0
  91. package/dist/components/list/DTList.vue.d.ts +53 -0
  92. package/dist/components/list/DTListItem.vue.d.ts +61 -0
  93. package/dist/components/list/DTListSubheader.vue.d.ts +24 -0
  94. package/dist/components/list/listContext.d.ts +16 -0
  95. package/dist/components/mention/DTMention.vue.d.ts +93 -0
  96. package/dist/components/mention/caret.d.ts +7 -0
  97. package/dist/components/menu/DTMenu.vue.d.ts +66 -0
  98. package/dist/components/menu/DTMenuItem.vue.d.ts +45 -0
  99. package/dist/components/menu/DTMenuLabel.vue.d.ts +13 -0
  100. package/dist/components/menu/DTMenuSeparator.vue.d.ts +3 -0
  101. package/dist/components/menu/menuContext.d.ts +38 -0
  102. package/dist/components/modal/DTModal.vue.d.ts +52 -0
  103. package/dist/components/modal/modalStack.d.ts +20 -0
  104. package/dist/components/navigation-drawer/DTNavigationDrawer.vue.d.ts +93 -0
  105. package/dist/components/number-input/DTNumberInput.vue.d.ts +66 -0
  106. package/dist/components/otp-input/DTOtpInput.vue.d.ts +71 -0
  107. package/dist/components/pagination/DTPagination.vue.d.ts +55 -0
  108. package/dist/components/popover/DTPopover.vue.d.ts +67 -0
  109. package/dist/components/progress/DTProgress.vue.d.ts +48 -0
  110. package/dist/components/pull-refresh/DTPullRefresh.vue.d.ts +69 -0
  111. package/dist/components/radio/DTRadio.vue.d.ts +41 -0
  112. package/dist/components/radio/DTRadioGroup.vue.d.ts +35 -0
  113. package/dist/components/radio/radioGroupContext.d.ts +12 -0
  114. package/dist/components/rating/DTRating.vue.d.ts +65 -0
  115. package/dist/components/row/DTRow.vue.d.ts +38 -0
  116. package/dist/components/select/DTSelect.vue.d.ts +140 -0
  117. package/dist/components/sheet/DTSheet.vue.d.ts +57 -0
  118. package/dist/components/skeleton/DTSkeleton.vue.d.ts +34 -0
  119. package/dist/components/skip-link/DTSkipLink.vue.d.ts +33 -0
  120. package/dist/components/slider/DTSlider.vue.d.ts +88 -0
  121. package/dist/components/spinner/DTSpinner.vue.d.ts +34 -0
  122. package/dist/components/stack/DTStack.vue.d.ts +24 -0
  123. package/dist/components/statistic/DTCountdown.vue.d.ts +49 -0
  124. package/dist/components/statistic/DTStatistic.vue.d.ts +49 -0
  125. package/dist/components/statistic/format.d.ts +39 -0
  126. package/dist/components/stepper/DTStep.vue.d.ts +41 -0
  127. package/dist/components/stepper/DTStepHeader.vue.d.ts +8 -0
  128. package/dist/components/stepper/DTStepper.vue.d.ts +46 -0
  129. package/dist/components/stepper/stepperContext.d.ts +39 -0
  130. package/dist/components/surface/DTSurface.vue.d.ts +43 -0
  131. package/dist/components/surface/index.d.ts +2 -0
  132. package/dist/components/switch/DTSwitch.vue.d.ts +59 -0
  133. package/dist/components/table/DTTable.vue.d.ts +55 -0
  134. package/dist/components/table/DTTableScrollbars.vue.d.ts +9 -0
  135. package/dist/components/tabs/DTTab.vue.d.ts +23 -0
  136. package/dist/components/tabs/DTTabs.vue.d.ts +45 -0
  137. package/dist/components/tabs/tabsContext.d.ts +19 -0
  138. package/dist/components/text/DTText.vue.d.ts +32 -0
  139. package/dist/components/text-field/DTFieldShell.vue.d.ts +59 -0
  140. package/dist/components/text-field/DTInput.vue.d.ts +70 -0
  141. package/dist/components/text-field/fieldShared.d.ts +87 -0
  142. package/dist/components/textarea/DTTextarea.vue.d.ts +56 -0
  143. package/dist/components/time-picker/DTTimeInput.vue.d.ts +71 -0
  144. package/dist/components/time-picker/DTTimePicker.vue.d.ts +52 -0
  145. package/dist/components/time-picker/isoTime.d.ts +21 -0
  146. package/dist/components/timeline/DTTimeline.vue.d.ts +36 -0
  147. package/dist/components/timeline/DTTimelineItem.vue.d.ts +46 -0
  148. package/dist/components/timeline/timelineContext.d.ts +13 -0
  149. package/dist/components/toast/DTToastRegion.vue.d.ts +18 -0
  150. package/dist/components/toast/toastStore.d.ts +77 -0
  151. package/dist/components/tooltip/DTTooltip.vue.d.ts +45 -0
  152. package/dist/components/tour/DTTour.vue.d.ts +62 -0
  153. package/dist/components/tour/DTTourStep.vue.d.ts +31 -0
  154. package/dist/components/tour/tourContext.d.ts +20 -0
  155. package/dist/components/tree-select/DTTreeSelect.vue.d.ts +86 -0
  156. package/dist/components/treeview/DTTreeview.vue.d.ts +92 -0
  157. package/dist/components/watermark/DTWatermark.vue.d.ts +48 -0
  158. package/dist/config.d.ts +58 -0
  159. package/dist/index.d.ts +183 -0
  160. package/dist/locale/en.d.ts +311 -0
  161. package/dist/locale/en.js +192 -0
  162. package/dist/locale/messages.d.ts +295 -0
  163. package/dist/locale/vi.d.ts +309 -0
  164. package/dist/locale/vi.js +192 -0
  165. package/dist/plugin.d.ts +26 -0
  166. package/dist/tandd-ui.css +11585 -0
  167. package/dist/tandd-ui.js +13039 -0
  168. package/dist/theme/cssVariables.d.ts +14 -0
  169. package/dist/theme/defaultTheme.d.ts +5 -0
  170. package/dist/theme/index.d.ts +34 -0
  171. package/dist/useLocale.d.ts +15 -0
  172. package/dist/useTheme.d.ts +9 -0
  173. package/package.json +112 -4
  174. package/src/components/_index.scss +73 -0
  175. package/src/components/accordion/DTAccordion.scss +123 -0
  176. package/src/components/alert/DTAlert.scss +222 -0
  177. package/src/components/anchor/DTAnchor.scss +137 -0
  178. package/src/components/app-bar/DTAppBar.scss +151 -0
  179. package/src/components/autocomplete/DTAutocomplete.scss +89 -0
  180. package/src/components/avatar/DTAvatar.scss +67 -0
  181. package/src/components/badge/DTBadge.scss +218 -0
  182. package/src/components/border-beam/DTBorderBeam.scss +67 -0
  183. package/src/components/breadcrumb/DTBreadcrumb.scss +58 -0
  184. package/src/components/button/DTButton.scss +252 -0
  185. package/src/components/button-group/DTButtonGroup.scss +103 -0
  186. package/src/components/card/DTCard.scss +183 -0
  187. package/src/components/carousel/DTCarousel.scss +228 -0
  188. package/src/components/checkbox/DTChoice.scss +351 -0
  189. package/src/components/chip/DTChip.scss +280 -0
  190. package/src/components/code/DTCode.scss +10 -0
  191. package/src/components/col/DTCol.scss +124 -0
  192. package/src/components/color-input/DTColorInput.scss +118 -0
  193. package/src/components/color-picker/DTColorPicker.scss +334 -0
  194. package/src/components/container/DTContainer.scss +24 -0
  195. package/src/components/data-table/DTDataTable.scss +274 -0
  196. package/src/components/date-picker/DTDatePicker.scss +474 -0
  197. package/src/components/date-time-picker/DTDateTimePicker.scss +144 -0
  198. package/src/components/divider/DTDivider.scss +67 -0
  199. package/src/components/empty-state/DTEmptyState.scss +106 -0
  200. package/src/components/field/DTField.scss +69 -0
  201. package/src/components/field-control/DTFieldControl.scss +221 -0
  202. package/src/components/file-input/DTFileInput.scss +98 -0
  203. package/src/components/file-upload/DTFileUpload.scss +185 -0
  204. package/src/components/grid/DTGrid.scss +135 -0
  205. package/src/components/heading/DTHeading.scss +9 -0
  206. package/src/components/icon/DTIcon.scss +64 -0
  207. package/src/components/infinite-scroll/DTInfiniteScroll.scss +67 -0
  208. package/src/components/inline/DTInline.scss +19 -0
  209. package/src/components/kbd/DTKbd.scss +17 -0
  210. package/src/components/layout-app/DTLayout.scss +69 -0
  211. package/src/components/link/DTLink.scss +35 -0
  212. package/src/components/list/DTList.scss +261 -0
  213. package/src/components/mention/DTMention.scss +24 -0
  214. package/src/components/menu/DTMenu.scss +282 -0
  215. package/src/components/modal/DTModal.scss +178 -0
  216. package/src/components/navigation-drawer/DTNavigationDrawer.scss +172 -0
  217. package/src/components/number-input/DTNumberInput.scss +124 -0
  218. package/src/components/otp-input/DTOtpInput.scss +121 -0
  219. package/src/components/pagination/DTPagination.scss +115 -0
  220. package/src/components/popover/DTPopover.scss +119 -0
  221. package/src/components/progress/DTProgress.scss +227 -0
  222. package/src/components/pull-refresh/DTPullRefresh.scss +83 -0
  223. package/src/components/rating/DTRating.scss +153 -0
  224. package/src/components/row/DTRow.scss +73 -0
  225. package/src/components/select/DTSelect.scss +347 -0
  226. package/src/components/sheet/DTSheet.scss +256 -0
  227. package/src/components/skeleton/DTSkeleton.scss +74 -0
  228. package/src/components/skip-link/DTSkipLink.scss +76 -0
  229. package/src/components/slider/DTSlider.scss +652 -0
  230. package/src/components/spinner/DTSpinner.scss +123 -0
  231. package/src/components/stack/DTStack.scss +8 -0
  232. package/src/components/statistic/DTStatistic.scss +44 -0
  233. package/src/components/stepper/DTStepper.scss +268 -0
  234. package/src/components/surface/DTSurface.scss +99 -0
  235. package/src/components/switch/DTSwitch.scss +306 -0
  236. package/src/components/table/DTTable.scss +287 -0
  237. package/src/components/tabs/DTTabs.scss +402 -0
  238. package/src/components/text/DTText.scss +9 -0
  239. package/src/components/text-field/DTTextField.scss +452 -0
  240. package/src/components/time-picker/DTTimePicker.scss +131 -0
  241. package/src/components/timeline/DTTimeline.scss +322 -0
  242. package/src/components/toast/DTToast.scss +297 -0
  243. package/src/components/tooltip/DTTooltip.scss +168 -0
  244. package/src/components/tour/DTTour.scss +173 -0
  245. package/src/components/tree-select/DTTreeSelect.scss +60 -0
  246. package/src/components/treeview/DTTreeview.scss +205 -0
  247. package/src/components/watermark/DTWatermark.scss +8 -0
  248. package/src/styles/foundation/_direction.scss +6 -0
  249. package/src/styles/foundation/_focus.scss +12 -0
  250. package/src/styles/foundation/_forced-colors.scss +9 -0
  251. package/src/styles/foundation/_motion.scss +10 -0
  252. package/src/styles/foundation/_reset.scss +39 -0
  253. package/src/styles/foundation/_root.scss +112 -0
  254. package/src/styles/foundation/_state.scss +29 -0
  255. package/src/styles/foundation/_typography.scss +81 -0
  256. package/src/styles/foundation/_visually-hidden.scss +21 -0
  257. package/src/styles/index.scss +9 -0
  258. package/src/styles/tokens/_border.scss +2 -0
  259. package/src/styles/tokens/_breakpoint.scss +15 -0
  260. package/src/styles/tokens/_color.scss +56 -0
  261. package/src/styles/tokens/_index.scss +11 -0
  262. package/src/styles/tokens/_motion.scss +13 -0
  263. package/src/styles/tokens/_radius.scss +13 -0
  264. package/src/styles/tokens/_shadow.scss +18 -0
  265. package/src/styles/tokens/_spacing.scss +21 -0
  266. package/src/styles/tokens/_state.scss +30 -0
  267. package/src/styles/tokens/_surface.scss +33 -0
  268. package/src/styles/tokens/_typography.scss +40 -0
  269. package/src/styles/tokens/_z-index.scss +11 -0
@@ -0,0 +1,36 @@
1
+ export interface DTRgba {
2
+ r: number;
3
+ g: number;
4
+ b: number;
5
+ a: number;
6
+ }
7
+ export interface DTHsva {
8
+ h: number;
9
+ s: number;
10
+ v: number;
11
+ a: number;
12
+ }
13
+ export interface DTHsla {
14
+ h: number;
15
+ s: number;
16
+ l: number;
17
+ a: number;
18
+ }
19
+ /**
20
+ * Reads a typed hex colour: with or without "#", 3, 4, 6, or 8 digits, any case, surrounding
21
+ * spaces ignored. Returns null for anything else.
22
+ */
23
+ export declare function parseHex(text: string | null | undefined): DTRgba | null;
24
+ /** "#rrggbb", or "#rrggbbaa" with `withAlpha`. Lower case. */
25
+ export declare function toHex({ r, g, b, a }: DTRgba, withAlpha?: boolean): string;
26
+ /** Normalizes a typed hex to the model format, or null when it cannot be read. */
27
+ export declare function normalizeHex(text: string | null | undefined, withAlpha?: boolean): string | null;
28
+ export declare function rgbToHsv({ r, g, b, a }: DTRgba): DTHsva;
29
+ export declare function hsvToRgb({ h, s, v, a }: DTHsva): DTRgba;
30
+ export declare function rgbToHsl({ r, g, b, a }: DTRgba): DTHsla;
31
+ export declare function hslToRgb({ h, s, l, a }: DTHsla): DTRgba;
32
+ /** Relative luminance (WCAG), for choosing a light or dark mark on a colour sample. */
33
+ export declare function luminance({ r, g, b }: DTRgba): number;
34
+ /** HSV → HSL without going through RGB, so hue and saturation survive at the extremes. */
35
+ export declare function hsvToHsl({ h, s, v, a }: DTHsva): DTHsla;
36
+ export declare function hslToHsv({ h, s, l, a }: DTHsla): DTHsva;
@@ -0,0 +1,66 @@
1
+ /** How the channel fields show the colour; the model stays hex. */
2
+ export type DTColorPickerMode = "hex" | "rgb" | "hsl";
3
+ type __VLS_Props = {
4
+ /** "#rrggbb", "#rrggbbaa" with `alpha`, or null (the panel then starts at white). */
5
+ modelValue?: string | null;
6
+ /** Show the alpha slider and keep alpha in the value ("#rrggbbaa"). */
7
+ alpha?: boolean;
8
+ /** Preset colours (hex), as a radio group under the picker. */
9
+ swatches?: readonly string[];
10
+ /** Show only the swatches: no area, sliders, channel fields, or eyedropper. */
11
+ swatchesOnly?: boolean;
12
+ mode?: DTColorPickerMode;
13
+ /** Show the eyedropper button; it appears only where the browser has `window.EyeDropper`. */
14
+ eyedropper?: boolean;
15
+ disabled?: boolean;
16
+ readonly?: boolean;
17
+ /** Names the panel (a `role="group"`). */
18
+ label?: string;
19
+ areaLabel?: string;
20
+ /** `{0}` saturation, `{1}` brightness, in percent. */
21
+ areaValueText?: string;
22
+ hueLabel?: string;
23
+ alphaLabel?: string;
24
+ eyedropperLabel?: string;
25
+ swatchesLabel?: string;
26
+ hexLabel?: string;
27
+ redLabel?: string;
28
+ greenLabel?: string;
29
+ blueLabel?: string;
30
+ saturationLabel?: string;
31
+ lightnessLabel?: string;
32
+ };
33
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
34
+ /** Focuses the saturation/brightness area, or the checked (else first) swatch with `swatches-only`. */
35
+ focus: () => Promise<void>;
36
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
37
+ "update:modelValue": (value: string) => any;
38
+ change: (value: string) => any;
39
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
40
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
41
+ onChange?: ((value: string) => any) | undefined;
42
+ }>, {
43
+ label: string;
44
+ areaLabel: string;
45
+ areaValueText: string;
46
+ hueLabel: string;
47
+ alphaLabel: string;
48
+ eyedropperLabel: string;
49
+ swatchesLabel: string;
50
+ hexLabel: string;
51
+ redLabel: string;
52
+ greenLabel: string;
53
+ blueLabel: string;
54
+ saturationLabel: string;
55
+ lightnessLabel: string;
56
+ disabled: boolean;
57
+ readonly: boolean;
58
+ modelValue: string | null;
59
+ mode: DTColorPickerMode;
60
+ alpha: boolean;
61
+ swatches: readonly string[];
62
+ swatchesOnly: boolean;
63
+ eyedropper: boolean;
64
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
65
+ declare const _default: typeof __VLS_export;
66
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { InjectionKey } from 'vue';
2
+ /**
3
+ * Internal (not exported from the package). A component that hosts DTColorPicker can provide a
4
+ * block class name here; the picker then also puts `<block>__<part>` on its parts, next to its own
5
+ * `dt-color-picker__<part>` classes. DTColorInput uses it so the panel parts keep the
6
+ * `dt-color-input__*` class names they had before the panel became DTColorPicker (D34 item 51).
7
+ * The alias classes carry no styles of their own.
8
+ */
9
+ export declare const colorPickerAliasKey: InjectionKey<string>;
@@ -0,0 +1,106 @@
1
+ import { DTAutocompleteItem } from '../autocomplete/DTAutocomplete.vue';
2
+ import { DTSelectMenuProps } from '../select/DTSelect.vue';
3
+ import { DTFieldSize, DTFieldVariant } from '../text-field/fieldShared';
4
+ export type DTComboboxItem = DTAutocompleteItem;
5
+ type __VLS_Props = {
6
+ /** The typed text or a picked item's value; an array with `multiple`. */
7
+ modelValue?: unknown;
8
+ search?: string;
9
+ /** Suggestions. Optional: without items the field takes any text. */
10
+ items?: readonly DTComboboxItem[];
11
+ itemTitle?: string;
12
+ itemValue?: string;
13
+ multiple?: boolean;
14
+ /** With `multiple`, show the values as removable chips. Default true. */
15
+ chips?: boolean;
16
+ /** With `multiple`, typing one of these adds the text before it. Default [","]. */
17
+ delimiters?: readonly string[];
18
+ clearable?: boolean;
19
+ /** Accessible name of the clear button (D32). */
20
+ clearLabel?: string;
21
+ /** Accessible name of each chip's remove button; `{0}` is the value's title (D32). */
22
+ removeLabel?: string;
23
+ customFilter?: (item: DTComboboxItem, query: string, title: string) => boolean;
24
+ filterKeys?: readonly string[];
25
+ noFilter?: boolean;
26
+ hideSelected?: boolean;
27
+ loading?: boolean;
28
+ debounce?: number;
29
+ noDataText?: string;
30
+ /** Shown and announced while `loading` and nothing is listed yet (D36b). */
31
+ loadingText?: string;
32
+ /** Announced as the matches change; `{0}` is the count (D36b). */
33
+ resultsText?: string;
34
+ /** Announced when one item matches (D36b). */
35
+ resultsTextOne?: string;
36
+ /** Keep the panel closed when no suggestion matches. Default true: free text needs no "no data". */
37
+ hideNoData?: boolean;
38
+ menuProps?: DTSelectMenuProps;
39
+ prependInnerIcon?: string;
40
+ label?: string;
41
+ variant?: DTFieldVariant;
42
+ size?: DTFieldSize;
43
+ placeholder?: string;
44
+ helper?: string;
45
+ error?: boolean | string;
46
+ disabled?: boolean;
47
+ readonly?: boolean;
48
+ required?: boolean;
49
+ id?: string;
50
+ };
51
+ declare var __VLS_14: string, __VLS_15: any;
52
+ type __VLS_Slots = {} & {
53
+ [K in NonNullable<typeof __VLS_14>]?: (props: typeof __VLS_15) => any;
54
+ };
55
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
56
+ "update:modelValue": (value: unknown) => any;
57
+ "update:search": (value: string) => any;
58
+ "update:menu": (open: boolean) => any;
59
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
60
+ "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
61
+ "onUpdate:search"?: ((value: string) => any) | undefined;
62
+ "onUpdate:menu"?: ((open: boolean) => any) | undefined;
63
+ }>, {
64
+ error: boolean | string;
65
+ search: string;
66
+ variant: DTFieldVariant;
67
+ size: DTFieldSize;
68
+ label: string;
69
+ clearLabel: string;
70
+ removeLabel: string;
71
+ noDataText: string;
72
+ loadingText: string;
73
+ resultsText: string;
74
+ resultsTextOne: string;
75
+ placeholder: string;
76
+ id: string;
77
+ required: boolean;
78
+ disabled: boolean;
79
+ readonly: boolean;
80
+ loading: boolean;
81
+ clearable: boolean;
82
+ modelValue: undefined;
83
+ helper: string;
84
+ prependInnerIcon: string;
85
+ delimiters: readonly string[];
86
+ items: readonly DTComboboxItem[];
87
+ itemTitle: string;
88
+ itemValue: string;
89
+ multiple: boolean;
90
+ chips: boolean;
91
+ menuProps: DTSelectMenuProps;
92
+ hideNoData: boolean;
93
+ customFilter: (item: DTComboboxItem, query: string, title: string) => boolean;
94
+ filterKeys: readonly string[];
95
+ noFilter: boolean;
96
+ hideSelected: boolean;
97
+ debounce: number;
98
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
99
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
100
+ declare const _default: typeof __VLS_export;
101
+ export default _default;
102
+ type __VLS_WithSlots<T, S> = T & {
103
+ new (): {
104
+ $slots: S;
105
+ };
106
+ };
@@ -0,0 +1,29 @@
1
+ export type DTContainerSize = "sm" | "md" | "lg" | "xl" | "2xl";
2
+ type __VLS_Props = {
3
+ as?: string;
4
+ /** Named max width from the container scale. Ignored when `maxWidth` is set. */
5
+ size?: DTContainerSize;
6
+ maxWidth?: string;
7
+ fluid?: boolean;
8
+ /** Remove the inline gutters, for containers nested in an already padded region. */
9
+ flush?: boolean;
10
+ };
11
+ declare var __VLS_8: {};
12
+ type __VLS_Slots = {} & {
13
+ default?: (props: typeof __VLS_8) => any;
14
+ };
15
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
+ size: DTContainerSize;
17
+ as: string;
18
+ maxWidth: string;
19
+ fluid: boolean;
20
+ flush: boolean;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
25
+ type __VLS_WithSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,112 @@
1
+ import { DTDataTableCellScope, DTDataTableColumn, DTDataTableDensity, DTDataTableHeader, DTDataTableHeaderScope, DTDataTableOptions, DTDataTableRowScope, DTDataTableSelectStrategy, DTDataTableSortItem, DTDataTableTableScope } from './types';
2
+ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import('vue').PublicProps & __VLS_PrettifyLocal<{
4
+ headers: readonly DTDataTableHeader<T>[];
5
+ items?: readonly T[];
6
+ /** Identity of each item, used by selection and expansion: a property name or a function. */
7
+ itemValue?: string | ((item: T) => unknown);
8
+ /** Which rows can be selected: a boolean property name or a function. All rows by default. */
9
+ itemSelectable?: string | ((item: T) => boolean);
10
+ loading?: boolean;
11
+ density?: DTDataTableDensity;
12
+ striped?: boolean;
13
+ hover?: boolean;
14
+ /** Fixed height of the scroll area; the header stays visible. Virtual tables default to 400px. */
15
+ height?: string;
16
+ /** Draw thin scrollbars that run beside the body rows only, under the header, in place of the native ones. */
17
+ bodyScroll?: boolean;
18
+ /** Accessible name of the table and of its scroll region. */
19
+ label?: string;
20
+ sortBy?: readonly DTDataTableSortItem[];
21
+ multiSort?: boolean;
22
+ search?: string;
23
+ /** Item keys searched; defaults to the header keys. */
24
+ filterKeys?: readonly string[];
25
+ customFilter?: (value: unknown, query: string, item: T) => boolean;
26
+ showSelect?: boolean;
27
+ /** Selected item values, for `v-model`. */
28
+ modelValue?: readonly unknown[];
29
+ selectStrategy?: DTDataTableSelectStrategy;
30
+ page?: number;
31
+ /** Rows per page; `-1` shows every row. */
32
+ itemsPerPage?: number;
33
+ itemsPerPageOptions?: readonly (number | {
34
+ title: string;
35
+ value: number;
36
+ })[];
37
+ hideDefaultFooter?: boolean;
38
+ /** Total item count on the server. Setting it turns on server mode: no local sort, search, or paging. */
39
+ itemsLength?: number;
40
+ showExpand?: boolean;
41
+ expanded?: readonly unknown[];
42
+ /** Render only the rows in view. Needs a fixed `height`; the pagination footer is hidden. */
43
+ virtual?: boolean;
44
+ noDataText?: string;
45
+ noResultsText?: string;
46
+ loadingText?: string;
47
+ /** Label of the rows-per-page select in the footer (D32). */
48
+ itemsPerPageText?: string;
49
+ /** Footer range text; `{0}` is the first row, `{1}` the last, `{2}` the total (D32). */
50
+ pageText?: string;
51
+ /** Accessible name of the header check box with `select-strategy="all"` (D32). */
52
+ selectAllLabel?: string;
53
+ /** Accessible name of the header check box with `select-strategy="page"` (D32). */
54
+ selectPageLabel?: string;
55
+ /** Accessible name of each row's check box; `{0}` is the row's name (D32). */
56
+ selectRowLabel?: string;
57
+ /** Accessible name of each row's expand button; `{0}` is the row's name (D32). */
58
+ expandRowLabel?: string;
59
+ /** Title of the selection column (D32). */
60
+ selectColumnTitle?: string;
61
+ /** Title of the expand column (D32). */
62
+ expandColumnTitle?: string;
63
+ /** Accessible name of the scroll region when `label` is not set (D36b). */
64
+ regionLabel?: string;
65
+ /** Accessible name of the footer pagination (D36b). */
66
+ paginationLabel?: string;
67
+ /** Title of the `-1` (every row) choice in the rows-per-page select (D36b). */
68
+ itemsPerPageAllText?: string;
69
+ /** Announced as the selection changes; `{0}` is the count (D36b). */
70
+ selectedText?: string;
71
+ /** Read with a sorted header's priority number under multi-sort; `{0}` is the number (D36b). */
72
+ sortPriorityLabel?: string;
73
+ } & {
74
+ "onUpdate:modelValue"?: ((value: unknown[]) => any) | undefined;
75
+ "onUpdate:sortBy"?: ((value: DTDataTableSortItem[]) => any) | undefined;
76
+ "onUpdate:page"?: ((value: number) => any) | undefined;
77
+ "onUpdate:itemsPerPage"?: ((value: number) => any) | undefined;
78
+ "onUpdate:expanded"?: ((value: unknown[]) => any) | undefined;
79
+ "onUpdate:options"?: ((value: DTDataTableOptions) => any) | undefined;
80
+ "onClick:row"?: ((item: T, event: MouseEvent) => any) | undefined;
81
+ }> & (typeof globalThis extends {
82
+ __VLS_PROPS_FALLBACK: infer P;
83
+ } ? P : {});
84
+ expose: (exposed: {}) => void;
85
+ attrs: any;
86
+ slots: {
87
+ [cell: `item.${string}`]: ((scope: DTDataTableCellScope<T>) => unknown) | undefined;
88
+ [header: `header.${string}`]: ((scope: DTDataTableHeaderScope) => unknown) | undefined;
89
+ top?: (scope: DTDataTableTableScope) => unknown;
90
+ bottom?: (scope: DTDataTableTableScope) => unknown;
91
+ loading?: () => unknown;
92
+ "no-data"?: (scope: {
93
+ search: string;
94
+ filtered: boolean;
95
+ }) => unknown;
96
+ "expanded-row"?: (scope: {
97
+ item: T;
98
+ columns: DTDataTableColumn[];
99
+ }) => unknown;
100
+ item?: (scope: DTDataTableRowScope<T>) => unknown;
101
+ };
102
+ emit: ((evt: "update:modelValue", value: unknown[]) => void) & ((evt: "update:sortBy", value: DTDataTableSortItem[]) => void) & ((evt: "update:page", value: number) => void) & ((evt: "update:itemsPerPage", value: number) => void) & ((evt: "update:expanded", value: unknown[]) => void) & ((evt: "update:options", value: DTDataTableOptions) => void) & ((evt: "click:row", item: T, event: MouseEvent) => void);
103
+ }>) => import('vue').VNode & {
104
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
105
+ };
106
+ declare const _default: typeof __VLS_export;
107
+ export default _default;
108
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
109
+ [K in keyof T]: T[K];
110
+ } : {
111
+ [K in keyof T as K]: T[K];
112
+ }) & {};
@@ -0,0 +1,70 @@
1
+ export type DTDataTableAlign = "start" | "center" | "end";
2
+ export type DTDataTableDensity = "default" | "compact";
3
+ export type DTDataTableSelectStrategy = "single" | "page" | "all";
4
+ export type DTDataTableSortOrder = "asc" | "desc";
5
+ export interface DTDataTableHeader<T = any> {
6
+ /** Property read from each item (unless `value` is given); also the slot suffix: `item.<key>`. */
7
+ key: string;
8
+ title: string;
9
+ align?: DTDataTableAlign;
10
+ /** Default `true`. */
11
+ sortable?: boolean;
12
+ /** CSS width of the column, such as `"120px"`. */
13
+ width?: string;
14
+ /** Computes the cell value from the item; used for display, sorting, and search. */
15
+ value?: (item: T) => unknown;
16
+ /** Compares two cell values (ascending); the table reverses it for descending. */
17
+ sort?: (a: unknown, b: unknown) => number;
18
+ }
19
+ export interface DTDataTableSortItem {
20
+ key: string;
21
+ order: DTDataTableSortOrder;
22
+ }
23
+ /** Emitted with `update:options`; in server mode, load the page these options describe. */
24
+ export interface DTDataTableOptions {
25
+ page: number;
26
+ itemsPerPage: number;
27
+ sortBy: DTDataTableSortItem[];
28
+ search: string;
29
+ }
30
+ /** A rendered column: a data header, or the built-in selection / expand column. */
31
+ export interface DTDataTableColumn {
32
+ key: string;
33
+ title: string;
34
+ align: DTDataTableAlign;
35
+ sortable: boolean;
36
+ width?: string;
37
+ type: "data" | "select" | "expand";
38
+ }
39
+ /** Scope of the `item.<key>` slots. */
40
+ export interface DTDataTableCellScope<T = unknown> {
41
+ item: T;
42
+ value: unknown;
43
+ index: number;
44
+ column: DTDataTableColumn;
45
+ }
46
+ /** Scope of the `item` slot (a whole row). */
47
+ export interface DTDataTableRowScope<T = unknown> {
48
+ item: T;
49
+ index: number;
50
+ columns: DTDataTableColumn[];
51
+ rowAttrs: Record<string, unknown>;
52
+ isSelected: boolean;
53
+ toggleSelect: () => void;
54
+ isExpanded: boolean;
55
+ toggleExpand: () => void;
56
+ }
57
+ /** Scope of the `header.<key>` slots. */
58
+ export interface DTDataTableHeaderScope {
59
+ column: DTDataTableColumn;
60
+ sort: DTDataTableSortItem | undefined;
61
+ toggleSort: () => void;
62
+ }
63
+ /** Scope of the `top` and `bottom` slots. */
64
+ export interface DTDataTableTableScope {
65
+ page: number;
66
+ itemsPerPage: number;
67
+ pageCount: number;
68
+ itemsLength: number;
69
+ sortBy: DTDataTableSortItem[];
70
+ }
@@ -0,0 +1,98 @@
1
+ import { DTTextFieldBaseProps } from '../text-field/fieldShared';
2
+ import { DTDatePickerValue } from './DTDatePicker.vue';
3
+ import { DTDateShortcut } from './shortcuts';
4
+ import { IsoDate } from './isoDate';
5
+ interface DTDateInputProps extends Omit<DTTextFieldBaseProps, "modelValue" | "prependIcon" | "appendIcon" | "appendInnerIcon" | "prependIconLabel" | "prependInnerIconLabel" | "appendIconLabel" | "appendInnerIconLabel"> {
6
+ /** "YYYY-MM-DD", `[start, end]` with `range`, or an array with `multiple`. */
7
+ modelValue?: DTDatePickerValue;
8
+ range?: boolean;
9
+ multiple?: boolean;
10
+ min?: IsoDate;
11
+ max?: IsoDate;
12
+ allowedDates?: (date: IsoDate) => boolean;
13
+ firstDayOfWeek?: number | string;
14
+ locale?: string;
15
+ showAdjacentMonths?: boolean;
16
+ showWeekNumbers?: boolean;
17
+ /** How the date is shown in the field (Intl.DateTimeFormat options). Default: numeric day, month, year. */
18
+ format?: Intl.DateTimeFormatOptions;
19
+ clearable?: boolean;
20
+ /** Accessible name of the clear button (D32). */
21
+ clearLabel?: string;
22
+ /** Icon inside the field before the text; "" for none. */
23
+ prependInnerIcon?: string;
24
+ /** Accessible name of the calendar button. */
25
+ calendarLabel?: string;
26
+ /** Message for a typed date that cannot be read or is outside min/max. */
27
+ invalidText?: string;
28
+ /** Named presets beside the calendar (D34.4); each button applies its value and closes the dialog. */
29
+ shortcuts?: readonly DTDateShortcut[];
30
+ /** Accessible name of the shortcut list. */
31
+ shortcutsLabel?: string;
32
+ /** The button that closes the calendar with `multiple` (D36b). */
33
+ doneText?: string;
34
+ }
35
+ declare var __VLS_9: string, __VLS_10: any, __VLS_18: {}, __VLS_37: {
36
+ date: string;
37
+ day: number;
38
+ selected: boolean;
39
+ today: boolean;
40
+ disabled: boolean;
41
+ outside: boolean;
42
+ }, __VLS_40: {
43
+ close: () => void;
44
+ };
45
+ type __VLS_Slots = {} & {
46
+ [K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
47
+ } & {
48
+ 'append-inner'?: (props: typeof __VLS_18) => any;
49
+ } & {
50
+ day?: (props: typeof __VLS_37) => any;
51
+ } & {
52
+ actions?: (props: typeof __VLS_40) => any;
53
+ };
54
+ declare const __VLS_base: import('vue').DefineComponent<DTDateInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
55
+ "update:modelValue": (value: DTDatePickerValue) => any;
56
+ "update:menu": (open: boolean) => any;
57
+ }, string, import('vue').PublicProps, Readonly<DTDateInputProps> & Readonly<{
58
+ "onUpdate:modelValue"?: ((value: DTDatePickerValue) => any) | undefined;
59
+ "onUpdate:menu"?: ((open: boolean) => any) | undefined;
60
+ }>, {
61
+ error: boolean | string;
62
+ shortcutsLabel: string;
63
+ variant: import('../..').DTFieldVariant;
64
+ size: import('../..').DTFieldSize;
65
+ locale: string;
66
+ label: string;
67
+ clearLabel: string;
68
+ invalidText: string;
69
+ calendarLabel: string;
70
+ doneText: string;
71
+ placeholder: string;
72
+ id: string;
73
+ required: boolean;
74
+ disabled: boolean;
75
+ readonly: boolean;
76
+ clearable: boolean;
77
+ modelValue: DTDatePickerValue;
78
+ max: IsoDate;
79
+ helper: string;
80
+ prependInnerIcon: string;
81
+ range: boolean;
82
+ min: IsoDate;
83
+ format: Intl.DateTimeFormatOptions;
84
+ multiple: boolean;
85
+ allowedDates: (date: IsoDate) => boolean;
86
+ firstDayOfWeek: number | string;
87
+ showAdjacentMonths: boolean;
88
+ showWeekNumbers: boolean;
89
+ shortcuts: readonly DTDateShortcut[];
90
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
91
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
92
+ declare const _default: typeof __VLS_export;
93
+ export default _default;
94
+ type __VLS_WithSlots<T, S> = T & {
95
+ new (): {
96
+ $slots: S;
97
+ };
98
+ };
@@ -0,0 +1,106 @@
1
+ import { DTDateShortcut } from './shortcuts';
2
+ import { IsoDate } from './isoDate';
3
+ export type DTDatePickerValue = IsoDate | [IsoDate, IsoDate] | IsoDate[] | null;
4
+ export type DTDatePickerView = "day" | "month" | "year";
5
+ type __VLS_Props = {
6
+ /** "YYYY-MM-DD"; `[start, end]` with `range`; an array with `multiple`. */
7
+ modelValue?: DTDatePickerValue;
8
+ /** The month shown, "YYYY-MM" (`v-model:month`). Default: the value's month, else today's. */
9
+ month?: string;
10
+ range?: boolean;
11
+ /** Several separate dates. */
12
+ multiple?: boolean;
13
+ min?: IsoDate;
14
+ max?: IsoDate;
15
+ /** Return false to disable a date. */
16
+ allowedDates?: (date: IsoDate) => boolean;
17
+ /** 0 = Sunday … 6 = Saturday (a numeric string is accepted). Default: from the locale. */
18
+ firstDayOfWeek?: number | string;
19
+ /** BCP 47 tag. Default: `global.locale`, else the browser's language. */
20
+ locale?: string;
21
+ /** Show the end of the previous month and the start of the next to fill the weeks. */
22
+ showAdjacentMonths?: boolean;
23
+ showWeekNumbers?: boolean;
24
+ disabled?: boolean;
25
+ readonly?: boolean;
26
+ /** Text above the header, e.g. "Select date". Also names the grid. */
27
+ title?: string;
28
+ hideHeader?: boolean;
29
+ /** Override "today" (tests, demos, server-rendered pages). */
30
+ today?: IsoDate;
31
+ prevMonthLabel?: string;
32
+ nextMonthLabel?: string;
33
+ /** Accessible name of the year choices (the year view). */
34
+ yearLabel?: string;
35
+ /** Accessible name of the month choices (the month view). */
36
+ monthLabel?: string;
37
+ /** Accessible name of the week-number column with `show-week-numbers` (D36b). */
38
+ weekLabel?: string;
39
+ /** Named presets beside the calendar (D34.4); each button applies its value. */
40
+ shortcuts?: readonly DTDateShortcut[];
41
+ /** Accessible name of the shortcut list. */
42
+ shortcutsLabel?: string;
43
+ };
44
+ declare var __VLS_8: {
45
+ month: string;
46
+ label: string;
47
+ view: DTDatePickerView;
48
+ }, __VLS_25: {
49
+ date: string;
50
+ day: number;
51
+ selected: boolean;
52
+ today: boolean;
53
+ disabled: boolean;
54
+ outside: boolean;
55
+ }, __VLS_27: {};
56
+ type __VLS_Slots = {} & {
57
+ header?: (props: typeof __VLS_8) => any;
58
+ } & {
59
+ day?: (props: typeof __VLS_25) => any;
60
+ } & {
61
+ actions?: (props: typeof __VLS_27) => any;
62
+ };
63
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
64
+ focus: () => Promise<void>;
65
+ setMonth: (month: string) => void;
66
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
67
+ select: (value: DTDatePickerValue) => any;
68
+ "update:modelValue": (value: DTDatePickerValue) => any;
69
+ "update:month": (month: string) => any;
70
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
71
+ onSelect?: ((value: DTDatePickerValue) => any) | undefined;
72
+ "onUpdate:modelValue"?: ((value: DTDatePickerValue) => any) | undefined;
73
+ "onUpdate:month"?: ((month: string) => any) | undefined;
74
+ }>, {
75
+ prevMonthLabel: string;
76
+ nextMonthLabel: string;
77
+ yearLabel: string;
78
+ monthLabel: string;
79
+ weekLabel: string;
80
+ shortcutsLabel: string;
81
+ locale: string;
82
+ title: string;
83
+ disabled: boolean;
84
+ readonly: boolean;
85
+ modelValue: DTDatePickerValue;
86
+ max: IsoDate;
87
+ month: string;
88
+ range: boolean;
89
+ min: IsoDate;
90
+ multiple: boolean;
91
+ allowedDates: (date: IsoDate) => boolean;
92
+ firstDayOfWeek: number | string;
93
+ showAdjacentMonths: boolean;
94
+ showWeekNumbers: boolean;
95
+ hideHeader: boolean;
96
+ today: IsoDate;
97
+ shortcuts: readonly DTDateShortcut[];
98
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
99
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
100
+ declare const _default: typeof __VLS_export;
101
+ export default _default;
102
+ type __VLS_WithSlots<T, S> = T & {
103
+ new (): {
104
+ $slots: S;
105
+ };
106
+ };
@@ -0,0 +1,15 @@
1
+ type __VLS_Props = {
2
+ items: readonly {
3
+ text: string;
4
+ disabled: boolean;
5
+ }[];
6
+ label: string;
7
+ disabled?: boolean;
8
+ };
9
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ pick: (index: number) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onPick?: ((index: number) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;