@cocoar/vue-ui 0.1.0-beta.25 → 1.0.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/LICENSE +201 -0
- package/README.md +25 -0
- package/dist/components/avatar/CoarAvatar.vue.d.ts +51 -0
- package/dist/components/avatar/CoarAvatar.vue.d.ts.map +1 -0
- package/dist/components/avatar/index.d.ts +3 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/badge/CoarBadge.vue.d.ts +32 -0
- package/dist/components/badge/CoarBadge.vue.d.ts.map +1 -0
- package/dist/components/badge/index.d.ts +3 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/breadcrumb/CoarBreadcrumb.vue.d.ts +27 -0
- package/dist/components/breadcrumb/CoarBreadcrumb.vue.d.ts.map +1 -0
- package/dist/components/breadcrumb/CoarBreadcrumbItem.vue.d.ts +22 -0
- package/dist/components/breadcrumb/CoarBreadcrumbItem.vue.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.d.ts +3 -0
- package/dist/components/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/button/CoarButton.vue.d.ts +54 -0
- package/dist/components/button/CoarButton.vue.d.ts.map +1 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/card/CoarCard.vue.d.ts +38 -0
- package/dist/components/card/CoarCard.vue.d.ts.map +1 -0
- package/dist/components/card/index.d.ts +3 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/checkbox/CoarCheckbox.vue.d.ts +47 -0
- package/dist/components/checkbox/CoarCheckbox.vue.d.ts.map +1 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/code-block/CoarCodeBlock.vue.d.ts +45 -0
- package/dist/components/code-block/CoarCodeBlock.vue.d.ts.map +1 -0
- package/dist/components/code-block/index.d.ts +3 -0
- package/dist/components/code-block/index.d.ts.map +1 -0
- package/dist/components/date-time/_shared/date-helpers.d.ts +59 -0
- package/dist/components/date-time/_shared/date-helpers.d.ts.map +1 -0
- package/dist/components/date-time/_shared/index.d.ts +8 -0
- package/dist/components/date-time/_shared/index.d.ts.map +1 -0
- package/dist/components/date-time/_shared/maskito-config.d.ts +18 -0
- package/dist/components/date-time/_shared/maskito-config.d.ts.map +1 -0
- package/dist/components/date-time/_shared/time-helpers.d.ts +70 -0
- package/dist/components/date-time/_shared/time-helpers.d.ts.map +1 -0
- package/dist/components/date-time/_shared/timezone-helpers.d.ts +52 -0
- package/dist/components/date-time/_shared/timezone-helpers.d.ts.map +1 -0
- package/dist/components/date-time/_shared/types.d.ts +57 -0
- package/dist/components/date-time/_shared/types.d.ts.map +1 -0
- package/dist/components/date-time/_shared/use-date-picker-base.d.ts +39 -0
- package/dist/components/date-time/_shared/use-date-picker-base.d.ts.map +1 -0
- package/dist/components/date-time/month-list/CoarMonthList.vue.d.ts +29 -0
- package/dist/components/date-time/month-list/CoarMonthList.vue.d.ts.map +1 -0
- package/dist/components/date-time/month-list/index.d.ts +2 -0
- package/dist/components/date-time/month-list/index.d.ts.map +1 -0
- package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts +77 -0
- package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts.map +1 -0
- package/dist/components/date-time/plain-date-picker/CoarPlainDatePickerPanel.vue.d.ts +23 -0
- package/dist/components/date-time/plain-date-picker/CoarPlainDatePickerPanel.vue.d.ts.map +1 -0
- package/dist/components/date-time/plain-date-picker/index.d.ts +3 -0
- package/dist/components/date-time/plain-date-picker/index.d.ts.map +1 -0
- package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts +68 -0
- package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts.map +1 -0
- package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePickerPanel.vue.d.ts +31 -0
- package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePickerPanel.vue.d.ts.map +1 -0
- package/dist/components/date-time/plain-date-time-picker/index.d.ts +3 -0
- package/dist/components/date-time/plain-date-time-picker/index.d.ts.map +1 -0
- package/dist/components/date-time/scrollable-calendar/CoarScrollableCalendar.vue.d.ts +64 -0
- package/dist/components/date-time/scrollable-calendar/CoarScrollableCalendar.vue.d.ts.map +1 -0
- package/dist/components/date-time/scrollable-calendar/index.d.ts +3 -0
- package/dist/components/date-time/scrollable-calendar/index.d.ts.map +1 -0
- package/dist/components/date-time/time-picker/CoarTimePicker.vue.d.ts +42 -0
- package/dist/components/date-time/time-picker/CoarTimePicker.vue.d.ts.map +1 -0
- package/dist/components/date-time/time-picker/index.d.ts +3 -0
- package/dist/components/date-time/time-picker/index.d.ts.map +1 -0
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts +74 -0
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts.map +1 -0
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePickerPanel.vue.d.ts +42 -0
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePickerPanel.vue.d.ts.map +1 -0
- package/dist/components/date-time/zoned-date-time-picker/index.d.ts +3 -0
- package/dist/components/date-time/zoned-date-time-picker/index.d.ts.map +1 -0
- package/dist/components/dialog/CoarDialogShell.vue.d.ts +44 -0
- package/dist/components/dialog/CoarDialogShell.vue.d.ts.map +1 -0
- package/dist/components/dialog/dialog-types.d.ts +27 -0
- package/dist/components/dialog/dialog-types.d.ts.map +1 -0
- package/dist/components/dialog/index.d.ts +4 -0
- package/dist/components/dialog/index.d.ts.map +1 -0
- package/dist/components/dialog/useDialog.d.ts +22 -0
- package/dist/components/dialog/useDialog.d.ts.map +1 -0
- package/dist/components/divider/CoarDivider.vue.d.ts +38 -0
- package/dist/components/divider/CoarDivider.vue.d.ts.map +1 -0
- package/dist/components/divider/index.d.ts +3 -0
- package/dist/components/divider/index.d.ts.map +1 -0
- package/dist/components/form-field/CoarFormField.vue.d.ts +39 -0
- package/dist/components/form-field/CoarFormField.vue.d.ts.map +1 -0
- package/dist/components/form-field/constants.d.ts +9 -0
- package/dist/components/form-field/constants.d.ts.map +1 -0
- package/dist/components/form-field/index.d.ts +5 -0
- package/dist/components/form-field/index.d.ts.map +1 -0
- package/dist/components/icon/CoarIcon.vue.d.ts +41 -0
- package/dist/components/icon/CoarIcon.vue.d.ts.map +1 -0
- package/dist/components/icon/core-icons.d.ts +116 -0
- package/dist/components/icon/core-icons.d.ts.map +1 -0
- package/dist/components/icon/icon-plugin.d.ts +44 -0
- package/dist/components/icon/icon-plugin.d.ts.map +1 -0
- package/dist/components/icon/icon-service.d.ts +72 -0
- package/dist/components/icon/icon-service.d.ts.map +1 -0
- package/dist/components/icon/index.d.ts +9 -0
- package/dist/components/icon/index.d.ts.map +1 -0
- package/dist/components/label/CoarLabel.vue.d.ts +38 -0
- package/dist/components/label/CoarLabel.vue.d.ts.map +1 -0
- package/dist/components/label/index.d.ts +3 -0
- package/dist/components/label/index.d.ts.map +1 -0
- package/dist/components/menu/CoarMenu.vue.d.ts +27 -0
- package/dist/components/menu/CoarMenu.vue.d.ts.map +1 -0
- package/dist/components/menu/CoarMenuDivider.vue.d.ts +3 -0
- package/dist/components/menu/CoarMenuDivider.vue.d.ts.map +1 -0
- package/dist/components/menu/CoarMenuHeading.vue.d.ts +22 -0
- package/dist/components/menu/CoarMenuHeading.vue.d.ts.map +1 -0
- package/dist/components/menu/CoarMenuItem.vue.d.ts +44 -0
- package/dist/components/menu/CoarMenuItem.vue.d.ts.map +1 -0
- package/dist/components/menu/CoarSubExpand.vue.d.ts +36 -0
- package/dist/components/menu/CoarSubExpand.vue.d.ts.map +1 -0
- package/dist/components/menu/CoarSubmenuItem.vue.d.ts +35 -0
- package/dist/components/menu/CoarSubmenuItem.vue.d.ts.map +1 -0
- package/dist/components/menu/index.d.ts +12 -0
- package/dist/components/menu/index.d.ts.map +1 -0
- package/dist/components/menu/menu-aim.d.ts +14 -0
- package/dist/components/menu/menu-aim.d.ts.map +1 -0
- package/dist/components/menu/menu-cascade.d.ts +69 -0
- package/dist/components/menu/menu-cascade.d.ts.map +1 -0
- package/dist/components/navbar/CoarNavbar.vue.d.ts +38 -0
- package/dist/components/navbar/CoarNavbar.vue.d.ts.map +1 -0
- package/dist/components/navbar/index.d.ts +2 -0
- package/dist/components/navbar/index.d.ts.map +1 -0
- package/dist/components/note/CoarNote.vue.d.ts +29 -0
- package/dist/components/note/CoarNote.vue.d.ts.map +1 -0
- package/dist/components/note/index.d.ts +3 -0
- package/dist/components/note/index.d.ts.map +1 -0
- package/dist/components/number-input/CoarNumberInput.vue.d.ts +101 -0
- package/dist/components/number-input/CoarNumberInput.vue.d.ts.map +1 -0
- package/dist/components/number-input/index.d.ts +3 -0
- package/dist/components/number-input/index.d.ts.map +1 -0
- package/dist/components/overlay/CoarOverlayHost.vue.d.ts +3 -0
- package/dist/components/overlay/CoarOverlayHost.vue.d.ts.map +1 -0
- package/dist/components/overlay/CoarOverlayOutlet.vue.d.ts +28 -0
- package/dist/components/overlay/CoarOverlayOutlet.vue.d.ts.map +1 -0
- package/dist/components/overlay/index.d.ts +11 -0
- package/dist/components/overlay/index.d.ts.map +1 -0
- package/dist/components/overlay/overlay-position.d.ts +36 -0
- package/dist/components/overlay/overlay-position.d.ts.map +1 -0
- package/dist/components/overlay/overlay-presets.d.ts +45 -0
- package/dist/components/overlay/overlay-presets.d.ts.map +1 -0
- package/dist/components/overlay/overlay-service.d.ts +80 -0
- package/dist/components/overlay/overlay-service.d.ts.map +1 -0
- package/dist/components/overlay/overlay-types.d.ts +172 -0
- package/dist/components/overlay/overlay-types.d.ts.map +1 -0
- package/dist/components/overlay/useOverlay.d.ts +35 -0
- package/dist/components/overlay/useOverlay.d.ts.map +1 -0
- package/dist/components/pagination/CoarPagination.vue.d.ts +36 -0
- package/dist/components/pagination/CoarPagination.vue.d.ts.map +1 -0
- package/dist/components/pagination/index.d.ts +3 -0
- package/dist/components/pagination/index.d.ts.map +1 -0
- package/dist/components/password-input/CoarPasswordInput.vue.d.ts +56 -0
- package/dist/components/password-input/CoarPasswordInput.vue.d.ts.map +1 -0
- package/dist/components/password-input/index.d.ts +3 -0
- package/dist/components/password-input/index.d.ts.map +1 -0
- package/dist/components/popconfirm/CoarPopconfirm.vue.d.ts +110 -0
- package/dist/components/popconfirm/CoarPopconfirm.vue.d.ts.map +1 -0
- package/dist/components/popconfirm/CoarPopconfirmPanel.vue.d.ts +12 -0
- package/dist/components/popconfirm/CoarPopconfirmPanel.vue.d.ts.map +1 -0
- package/dist/components/popconfirm/index.d.ts +4 -0
- package/dist/components/popconfirm/index.d.ts.map +1 -0
- package/dist/components/popover/CoarPopover.vue.d.ts +74 -0
- package/dist/components/popover/CoarPopover.vue.d.ts.map +1 -0
- package/dist/components/popover/index.d.ts +3 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/progress-bar/CoarProgressBar.vue.d.ts +29 -0
- package/dist/components/progress-bar/CoarProgressBar.vue.d.ts.map +1 -0
- package/dist/components/progress-bar/index.d.ts +3 -0
- package/dist/components/progress-bar/index.d.ts.map +1 -0
- package/dist/components/radio-group/CoarRadioButton.vue.d.ts +26 -0
- package/dist/components/radio-group/CoarRadioButton.vue.d.ts.map +1 -0
- package/dist/components/radio-group/CoarRadioGroup.vue.d.ts +59 -0
- package/dist/components/radio-group/CoarRadioGroup.vue.d.ts.map +1 -0
- package/dist/components/radio-group/constants.d.ts +12 -0
- package/dist/components/radio-group/constants.d.ts.map +1 -0
- package/dist/components/radio-group/index.d.ts +6 -0
- package/dist/components/radio-group/index.d.ts.map +1 -0
- package/dist/components/scrollbar/index.d.ts +3 -0
- package/dist/components/scrollbar/index.d.ts.map +1 -0
- package/dist/components/scrollbar/vScrollbar.d.ts +60 -0
- package/dist/components/scrollbar/vScrollbar.d.ts.map +1 -0
- package/dist/components/select/CoarMultiSelect.vue.d.ts +54 -0
- package/dist/components/select/CoarMultiSelect.vue.d.ts.map +1 -0
- package/dist/components/select/CoarSelect.vue.d.ts +50 -0
- package/dist/components/select/CoarSelect.vue.d.ts.map +1 -0
- package/dist/components/select/CoarTagSelect.vue.d.ts +48 -0
- package/dist/components/select/CoarTagSelect.vue.d.ts.map +1 -0
- package/dist/components/select/index.d.ts +6 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/types.d.ts +16 -0
- package/dist/components/select/types.d.ts.map +1 -0
- package/dist/components/select/useSelectBase.d.ts +34 -0
- package/dist/components/select/useSelectBase.d.ts.map +1 -0
- package/dist/components/select/useSelectDropdown.d.ts +19 -0
- package/dist/components/select/useSelectDropdown.d.ts.map +1 -0
- package/dist/components/sidebar/CoarSidebar.vue.d.ts +32 -0
- package/dist/components/sidebar/CoarSidebar.vue.d.ts.map +1 -0
- package/dist/components/sidebar/index.d.ts +2 -0
- package/dist/components/sidebar/index.d.ts.map +1 -0
- package/dist/components/spinner/CoarSpinner.vue.d.ts +13 -0
- package/dist/components/spinner/CoarSpinner.vue.d.ts.map +1 -0
- package/dist/components/spinner/index.d.ts +3 -0
- package/dist/components/spinner/index.d.ts.map +1 -0
- package/dist/components/switch/CoarSwitch.vue.d.ts +39 -0
- package/dist/components/switch/CoarSwitch.vue.d.ts.map +1 -0
- package/dist/components/switch/index.d.ts +3 -0
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/table/CoarTable.vue.d.ts +31 -0
- package/dist/components/table/CoarTable.vue.d.ts.map +1 -0
- package/dist/components/table/index.d.ts +3 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/tabs/CoarTab.vue.d.ts +35 -0
- package/dist/components/tabs/CoarTab.vue.d.ts.map +1 -0
- package/dist/components/tabs/CoarTabGroup.vue.d.ts +31 -0
- package/dist/components/tabs/CoarTabGroup.vue.d.ts.map +1 -0
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tag/CoarTag.vue.d.ts +42 -0
- package/dist/components/tag/CoarTag.vue.d.ts.map +1 -0
- package/dist/components/tag/index.d.ts +3 -0
- package/dist/components/tag/index.d.ts.map +1 -0
- package/dist/components/text-input/CoarTextInput.vue.d.ts +84 -0
- package/dist/components/text-input/CoarTextInput.vue.d.ts.map +1 -0
- package/dist/components/text-input/index.d.ts +3 -0
- package/dist/components/text-input/index.d.ts.map +1 -0
- package/dist/components/toast/CoarToastContainer.vue.d.ts +7 -0
- package/dist/components/toast/CoarToastContainer.vue.d.ts.map +1 -0
- package/dist/components/toast/CoarToastItem.vue.d.ts +25 -0
- package/dist/components/toast/CoarToastItem.vue.d.ts.map +1 -0
- package/dist/components/toast/index.d.ts +7 -0
- package/dist/components/toast/index.d.ts.map +1 -0
- package/dist/components/toast/toast-service.d.ts +23 -0
- package/dist/components/toast/toast-service.d.ts.map +1 -0
- package/dist/components/toast/toast-types.d.ts +38 -0
- package/dist/components/toast/toast-types.d.ts.map +1 -0
- package/dist/components/toast/useToast.d.ts +18 -0
- package/dist/components/toast/useToast.d.ts.map +1 -0
- package/dist/components/tooltip/vTooltip.d.ts +32 -0
- package/dist/components/tooltip/vTooltip.d.ts.map +1 -0
- package/dist/components/transitions/CoarCollapse.vue.d.ts +24 -0
- package/dist/components/transitions/CoarCollapse.vue.d.ts.map +1 -0
- package/dist/components/transitions/CoarFade.vue.d.ts +27 -0
- package/dist/components/transitions/CoarFade.vue.d.ts.map +1 -0
- package/dist/components/transitions/CoarScale.vue.d.ts +27 -0
- package/dist/components/transitions/CoarScale.vue.d.ts.map +1 -0
- package/dist/components/transitions/CoarSlide.vue.d.ts +30 -0
- package/dist/components/transitions/CoarSlide.vue.d.ts.map +1 -0
- package/dist/components/transitions/index.d.ts +5 -0
- package/dist/components/transitions/index.d.ts.map +1 -0
- package/dist/fonts.d.ts +1 -0
- package/dist/fonts.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +86 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6239 -13575
- package/package.json +33 -6
- package/styles/all.css +1 -0
- package/styles/tokens/code-block.css +3 -3
- package/styles/tokens/colors-primitives-light.css +1 -1
- package/styles/tokens/colors-usage.css +10 -0
- package/styles/tokens/menu.css +55 -31
- package/styles/tokens/new-components.css +58 -0
- package/styles/tokens/select-overlay.css +9 -0
- package/styles/tokens/shadows.css +2 -0
- package/styles/tokens/spacing.css +1 -0
- package/styles/tokens/stroke-width.css +1 -1
- package/styles/tokens/tooltip.css +6 -1
- package/styles/tokens/type-primitives.css +1 -1
- package/styles/tokens/typography-responsive.css +2 -5
- package/styles/tokens/typography.css +2 -1
- package/styles/transitions.css +17 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/code-block/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC/D,YAAY,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
2
|
+
import { DateFormatConfig, CoarCalendarGridCell } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Detects the date format pattern from the user's locale via Intl.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* coarDetectDateFormatPatternFromIntl('en-US') // 'mm/dd/yyyy'
|
|
8
|
+
* coarDetectDateFormatPatternFromIntl('de-DE') // 'dd.mm.yyyy'
|
|
9
|
+
*/
|
|
10
|
+
export declare function coarDetectDateFormatPatternFromIntl(locale: string): DateFormatConfig['pattern'] | null;
|
|
11
|
+
/**
|
|
12
|
+
* Detects the first day of week for a locale using Intl.Locale.weekInfo.
|
|
13
|
+
* Returns 1 (Monday) or 7 (Sunday). Falls back to 1 on unsupported environments.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* coarDetectFirstDayOfWeekFromLocale('en-US') // 7 (Sunday)
|
|
17
|
+
* coarDetectFirstDayOfWeekFromLocale('de-DE') // 1 (Monday)
|
|
18
|
+
* coarDetectFirstDayOfWeekFromLocale('en-GB') // 1 (Monday)
|
|
19
|
+
*/
|
|
20
|
+
export declare function coarDetectFirstDayOfWeekFromLocale(locale: string): 1 | 7;
|
|
21
|
+
/** Returns the separator character for a date format pattern. */
|
|
22
|
+
export declare function coarGetDateSeparatorForPattern(pattern: DateFormatConfig['pattern']): '.' | '/' | '-';
|
|
23
|
+
/**
|
|
24
|
+
* Gets localized weekday short names for the given locale and first day of week.
|
|
25
|
+
*
|
|
26
|
+
* @returns Array of 7 short weekday names starting from firstDayOfWeek
|
|
27
|
+
*/
|
|
28
|
+
export declare function coarGetLocalizedWeekdays(locale: string, firstDayOfWeek: 1 | 7): string[];
|
|
29
|
+
/**
|
|
30
|
+
* Formats a Temporal.PlainDate according to the given pattern.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* coarFormatPlainDate(date, 'dd.mm.yyyy') // "05.06.2026"
|
|
34
|
+
* coarFormatPlainDate(date, 'mm/dd/yyyy') // "06/05/2026"
|
|
35
|
+
*/
|
|
36
|
+
export declare function coarFormatPlainDate(date: Temporal.PlainDate, pattern: DateFormatConfig['pattern']): string;
|
|
37
|
+
/**
|
|
38
|
+
* Parses a date string according to the given pattern.
|
|
39
|
+
* Returns null for invalid dates or dates outside min/max constraints.
|
|
40
|
+
*/
|
|
41
|
+
export declare function coarParsePlainDateFromInput(text: string, pattern: DateFormatConfig['pattern'], constraints?: {
|
|
42
|
+
min?: Temporal.PlainDate | null;
|
|
43
|
+
max?: Temporal.PlainDate | null;
|
|
44
|
+
}): Temporal.PlainDate | null;
|
|
45
|
+
/** Converts a Temporal.PlainDate to a JS Date (for Intl formatting). */
|
|
46
|
+
export declare function coarTemporalPlainDateToDate(date: Temporal.PlainDate): Date;
|
|
47
|
+
/** Calculates the ISO 8601 week number for a date. */
|
|
48
|
+
export declare function coarCalculateIsoWeekNumber(date: Temporal.PlainDate): number;
|
|
49
|
+
/** Clamps a date within min/max constraints. */
|
|
50
|
+
export declare function coarClampPlainDate(date: Temporal.PlainDate, constraints?: {
|
|
51
|
+
min?: Temporal.PlainDate | null;
|
|
52
|
+
max?: Temporal.PlainDate | null;
|
|
53
|
+
}): Temporal.PlainDate;
|
|
54
|
+
/**
|
|
55
|
+
* Returns a fixed 6×7 calendar grid (42 cells) for the given month.
|
|
56
|
+
* Includes leading/trailing days from adjacent months to fill the grid.
|
|
57
|
+
*/
|
|
58
|
+
export declare function coarGetCalendarGridDates(viewMonth: Temporal.PlainYearMonth, firstDayOfWeek: 1 | 7): CoarCalendarGridCell[];
|
|
59
|
+
//# sourceMappingURL=date-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-helpers.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/_shared/date-helpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEtE;;;;;;GAMG;AACH,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,MAAM,GACb,gBAAgB,CAAC,SAAS,CAAC,GAAG,IAAI,CAmBpC;AAED;;;;;;;;GAQG;AACH,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,GAAG,CAAC,CAaxE;AAED,iEAAiE;AACjE,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,GACnC,GAAG,GAAG,GAAG,GAAG,GAAG,CAIjB;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC,GAAG,CAAC,GAAG,MAAM,EAAE,CAiBxF;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,QAAQ,CAAC,SAAS,EACxB,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,GACnC,MAAM,CAiBR;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,EACpC,WAAW,CAAC,EAAE;IACZ,GAAG,CAAC,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;IAChC,GAAG,CAAC,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;CACjC,GACA,QAAQ,CAAC,SAAS,GAAG,IAAI,CAgD3B;AAED,wEAAwE;AACxE,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAE1E;AAED,sDAAsD;AACtD,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,GAAG,MAAM,CAM3E;AAED,gDAAgD;AAChD,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,QAAQ,CAAC,SAAS,EACxB,WAAW,CAAC,EAAE;IACZ,GAAG,CAAC,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;IAChC,GAAG,CAAC,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;CACjC,GACA,QAAQ,CAAC,SAAS,CAQpB;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,QAAQ,CAAC,cAAc,EAClC,cAAc,EAAE,CAAC,GAAG,CAAC,GACpB,oBAAoB,EAAE,CAmCxB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type { DateFormatConfig, CoarDateMarker, CoarTimePeriod, CoarTimeValue, TimeFormatConfig, CoarCalendarGridCell, } from './types';
|
|
2
|
+
export { COAR_DEFAULT_TIME_FORMAT, COAR_DATE_FORMAT_TO_MASKITO_MODE } from './types';
|
|
3
|
+
export { coarDetectDateFormatPatternFromIntl, coarGetDateSeparatorForPattern, coarGetLocalizedWeekdays, coarFormatPlainDate, coarParsePlainDateFromInput, coarTemporalPlainDateToDate, coarCalculateIsoWeekNumber, coarClampPlainDate, coarGetCalendarGridDates, } from './date-helpers';
|
|
4
|
+
export { coarDetect12HourFormat, coarFormatTime, coarParseTimeInput, coarConvertTo12Hour, coarConvertTo24Hour, coarIncrementHours, coarIncrementMinutes, coarRoundMinutesToStep, coarGetValidMinutes, } from './time-helpers';
|
|
5
|
+
export { coarCreateDateMask, coarCreateDateTimeMask } from './maskito-config';
|
|
6
|
+
export { useDatePickerBase } from './use-date-picker-base';
|
|
7
|
+
export type { DatePickerBaseProps } from './use-date-picker-base';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/_shared/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,wBAAwB,EAAE,gCAAgC,EAAE,MAAM,SAAS,CAAC;AAGrF,OAAO,EACL,mCAAmC,EACnC,8BAA8B,EAC9B,wBAAwB,EACxB,mBAAmB,EACnB,2BAA2B,EAC3B,2BAA2B,EAC3B,0BAA0B,EAC1B,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,sBAAsB,EACtB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAG9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DateFormatConfig } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a Maskito date mask for a given date format pattern.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* const mask = coarCreateDateMask('dd.mm.yyyy') // masks "01.06.2026"
|
|
7
|
+
* const mask = coarCreateDateMask('mm/dd/yyyy') // masks "06/01/2026"
|
|
8
|
+
*/
|
|
9
|
+
export declare function coarCreateDateMask(pattern: DateFormatConfig['pattern']): Required<import('@maskito/core').MaskitoOptions>;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a Maskito datetime mask for a given date format pattern and time options.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* const mask = coarCreateDateTimeMask('dd.mm.yyyy', false) // "01.06.2026, 14:30"
|
|
15
|
+
* const mask = coarCreateDateTimeMask('mm/dd/yyyy', true) // "06/01/2026, 2:30 PM"
|
|
16
|
+
*/
|
|
17
|
+
export declare function coarCreateDateTimeMask(pattern: DateFormatConfig['pattern'], use12Hour: boolean): Required<import('@maskito/core').MaskitoOptions>;
|
|
18
|
+
//# sourceMappingURL=maskito-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maskito-config.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/_shared/maskito-config.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAIhD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,oDAKtE;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,EACpC,SAAS,EAAE,OAAO,oDAOnB"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { CoarTimePeriod, CoarTimeValue } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Detects whether the given locale uses 12-hour time format.
|
|
4
|
+
* Uses Intl.DateTimeFormat to check for a dayPeriod (AM/PM) indicator.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* coarDetect12HourFormat('en-US') // true
|
|
8
|
+
* coarDetect12HourFormat('de-DE') // false
|
|
9
|
+
*/
|
|
10
|
+
export declare function coarDetect12HourFormat(locale: string): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Formats a time value as a string.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* coarFormatTime(14, 30, true) // "14:30"
|
|
16
|
+
* coarFormatTime(14, 30, false) // "2:30 PM"
|
|
17
|
+
* coarFormatTime(0, 5, false) // "12:05 AM"
|
|
18
|
+
*/
|
|
19
|
+
export declare function coarFormatTime(hours: number, minutes: number, use24Hour: boolean): string;
|
|
20
|
+
/**
|
|
21
|
+
* Parses a time string into hours and minutes.
|
|
22
|
+
* Supports both 24-hour ("14:30") and 12-hour ("2:30 PM") formats.
|
|
23
|
+
*
|
|
24
|
+
* @returns Parsed time value or null if invalid
|
|
25
|
+
*/
|
|
26
|
+
export declare function coarParseTimeInput(text: string): CoarTimeValue | null;
|
|
27
|
+
/**
|
|
28
|
+
* Converts 24-hour hours to 12-hour format with period.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* coarConvertTo12Hour(0) // { hours: 12, period: 'AM' }
|
|
32
|
+
* coarConvertTo12Hour(14) // { hours: 2, period: 'PM' }
|
|
33
|
+
*/
|
|
34
|
+
export declare function coarConvertTo12Hour(hours24: number): {
|
|
35
|
+
hours: number;
|
|
36
|
+
period: CoarTimePeriod;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Converts 12-hour format to 24-hour format.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* coarConvertTo24Hour(12, 'AM') // 0
|
|
43
|
+
* coarConvertTo24Hour(2, 'PM') // 14
|
|
44
|
+
*/
|
|
45
|
+
export declare function coarConvertTo24Hour(hours12: number, period: CoarTimePeriod): number;
|
|
46
|
+
/**
|
|
47
|
+
* Increments hours with wrap-around (0-23).
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* coarIncrementHours(23, 1) // 0
|
|
51
|
+
* coarIncrementHours(0, -1) // 23
|
|
52
|
+
*/
|
|
53
|
+
export declare function coarIncrementHours(hours: number, delta: number): number;
|
|
54
|
+
/**
|
|
55
|
+
* Increments minutes with wrap-around and optional hour carry.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* coarIncrementMinutes(55, 5) // { minutes: 0, hourDelta: 1 }
|
|
59
|
+
* coarIncrementMinutes(0, -5) // { minutes: 55, hourDelta: -1 }
|
|
60
|
+
* coarIncrementMinutes(30, 15, 15) // { minutes: 45, hourDelta: 0 }
|
|
61
|
+
*/
|
|
62
|
+
export declare function coarIncrementMinutes(minutes: number, delta: number, step?: number): {
|
|
63
|
+
minutes: number;
|
|
64
|
+
hourDelta: number;
|
|
65
|
+
};
|
|
66
|
+
/** Rounds minutes to the nearest step value. */
|
|
67
|
+
export declare function coarRoundMinutesToStep(minutes: number, step: number): number;
|
|
68
|
+
/** Gets all valid minute values for a given step. */
|
|
69
|
+
export declare function coarGetValidMinutes(step: 1 | 5 | 10 | 15): number[];
|
|
70
|
+
//# sourceMappingURL=time-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-helpers.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/_shared/time-helpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7D;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAW9D;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,MAAM,CAYzF;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CA6BrE;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,cAAc,CAAA;CAAE,CAK9F;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,GAAG,MAAM,CAGnF;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAGvE;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,IAAI,SAAI,GACP;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAgBxC;AAED,gDAAgD;AAChD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5E;AAED,qDAAqD;AACrD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,MAAM,EAAE,CAMnE"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
2
|
+
export interface TimezoneItem {
|
|
3
|
+
/** Full IANA timezone ID (e.g. 'Europe/Vienna') */
|
|
4
|
+
readonly id: string;
|
|
5
|
+
/** City / display name (e.g. 'Vienna') */
|
|
6
|
+
readonly city: string;
|
|
7
|
+
/** Current UTC offset string (e.g. 'UTC+1', 'UTC-5:30') */
|
|
8
|
+
readonly offset: string;
|
|
9
|
+
/** Offset in total minutes for sorting (e.g. 60, -330) */
|
|
10
|
+
readonly offsetMinutes: number;
|
|
11
|
+
}
|
|
12
|
+
export interface TimezoneGroup {
|
|
13
|
+
/** Continent / region name (e.g. 'Europe', 'America') */
|
|
14
|
+
readonly name: string;
|
|
15
|
+
/** Timezone items within this group */
|
|
16
|
+
readonly items: TimezoneItem[];
|
|
17
|
+
}
|
|
18
|
+
/** Get all IANA timezone identifiers supported by the browser. */
|
|
19
|
+
export declare function coarGetAllTimezones(): string[];
|
|
20
|
+
/**
|
|
21
|
+
* Compute the UTC offset of a timezone at the current instant.
|
|
22
|
+
* Returns an object with the offset string and numeric minutes.
|
|
23
|
+
*/
|
|
24
|
+
export declare function coarGetTimezoneOffset(tzId: string, instant?: Temporal.Instant): {
|
|
25
|
+
offset: string;
|
|
26
|
+
offsetMinutes: number;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Format a timezone ID into a display name.
|
|
30
|
+
* E.g. 'Europe/Vienna' → 'Vienna', 'America/New_York' → 'New York'
|
|
31
|
+
*/
|
|
32
|
+
export declare function coarTimezoneDisplayName(tzId: string): string;
|
|
33
|
+
/**
|
|
34
|
+
* Format timezone for display: "Vienna (UTC+1)"
|
|
35
|
+
*/
|
|
36
|
+
export declare function coarFormatTimezoneLabel(tzId: string, instant?: Temporal.Instant): string;
|
|
37
|
+
/**
|
|
38
|
+
* Filter timezone IDs by wildcard patterns.
|
|
39
|
+
* Supports '*' as wildcard (e.g. 'Europe/*', 'America/New_*').
|
|
40
|
+
* Returns all timezones if filters is empty/undefined.
|
|
41
|
+
*/
|
|
42
|
+
export declare function coarFilterTimezones(allTimezones: string[], filters?: string[]): string[];
|
|
43
|
+
/**
|
|
44
|
+
* Build a TimezoneItem from an IANA timezone ID.
|
|
45
|
+
*/
|
|
46
|
+
export declare function coarBuildTimezoneItem(tzId: string, instant?: Temporal.Instant): TimezoneItem;
|
|
47
|
+
/**
|
|
48
|
+
* Group timezones by continent/region, sorted alphabetically.
|
|
49
|
+
* Optionally filters by a search query (matches city name or full ID).
|
|
50
|
+
*/
|
|
51
|
+
export declare function coarGroupTimezones(timezoneIds: string[], searchQuery?: string, instant?: Temporal.Instant): TimezoneGroup[];
|
|
52
|
+
//# sourceMappingURL=timezone-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timezone-helpers.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/_shared/timezone-helpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAMjD,MAAM,WAAW,YAAY;IAC3B,mDAAmD;IACnD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,0CAA0C;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,2DAA2D;IAC3D,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,0DAA0D;IAC1D,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,aAAa;IAC5B,yDAAyD;IACzD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,uCAAuC;IACvC,QAAQ,CAAC,KAAK,EAAE,YAAY,EAAE,CAAC;CAChC;AAMD,kEAAkE;AAClE,wBAAgB,mBAAmB,IAAI,MAAM,EAAE,CAO9C;AAMD;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,GACzB;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAU3C;AAeD;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAK5D;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,GAAG,MAAM,CAIxF;AAMD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAOxF;AAMD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,GAAG,YAAY,CAQ5F;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,MAAM,EAAE,EACrB,WAAW,CAAC,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,GACzB,aAAa,EAAE,CA8BjB"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
2
|
+
/**
|
|
3
|
+
* Date format configuration for picker components.
|
|
4
|
+
*/
|
|
5
|
+
export interface DateFormatConfig {
|
|
6
|
+
/** Date format pattern */
|
|
7
|
+
readonly pattern: 'dd.mm.yyyy' | 'dd/mm/yyyy' | 'mm/dd/yyyy' | 'yyyy-mm-dd';
|
|
8
|
+
/** First day of week: 1 = Monday, 7 = Sunday */
|
|
9
|
+
readonly firstDayOfWeek: 1 | 7;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Represents a date marker for highlighting special dates (holidays, events, etc.).
|
|
13
|
+
* Supports single dates or date ranges.
|
|
14
|
+
*/
|
|
15
|
+
export interface CoarDateMarker {
|
|
16
|
+
/** Start date of the marker (or single date if no endDate) */
|
|
17
|
+
startDate: Temporal.PlainDate;
|
|
18
|
+
/** Optional end date for date ranges (inclusive) */
|
|
19
|
+
endDate?: Temporal.PlainDate;
|
|
20
|
+
/** Description shown as tooltip on hover */
|
|
21
|
+
description: string;
|
|
22
|
+
/** Optional custom CSS class for styling different marker types */
|
|
23
|
+
cssClass?: string;
|
|
24
|
+
}
|
|
25
|
+
/** AM/PM period indicator. */
|
|
26
|
+
export type CoarTimePeriod = 'AM' | 'PM';
|
|
27
|
+
/** Parsed time value with hours (0-23) and minutes (0-59). */
|
|
28
|
+
export interface CoarTimeValue {
|
|
29
|
+
readonly hours: number;
|
|
30
|
+
readonly minutes: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Time formatting configuration.
|
|
34
|
+
*/
|
|
35
|
+
export interface TimeFormatConfig {
|
|
36
|
+
/**
|
|
37
|
+
* Whether to use 24-hour format (true) or 12-hour format with AM/PM (false).
|
|
38
|
+
* When set to 'auto', the format is detected from the user's locale.
|
|
39
|
+
*/
|
|
40
|
+
readonly use24Hour: boolean | 'auto';
|
|
41
|
+
/** Step interval for minute selection (e.g. 5 means 0, 5, 10, 15, ...) */
|
|
42
|
+
readonly minuteStep: 1 | 5 | 10 | 15;
|
|
43
|
+
}
|
|
44
|
+
/** Default time format configuration. */
|
|
45
|
+
export declare const COAR_DEFAULT_TIME_FORMAT: TimeFormatConfig;
|
|
46
|
+
/**
|
|
47
|
+
* A single cell in the 6×7 calendar grid.
|
|
48
|
+
*/
|
|
49
|
+
export interface CoarCalendarGridCell {
|
|
50
|
+
readonly date: Temporal.PlainDate;
|
|
51
|
+
readonly isOutsideMonth: boolean;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Maps date format patterns to Maskito date modes.
|
|
55
|
+
*/
|
|
56
|
+
export declare const COAR_DATE_FORMAT_TO_MASKITO_MODE: Record<DateFormatConfig['pattern'], 'dd/mm/yyyy' | 'mm/dd/yyyy' | 'yyyy/mm/dd'>;
|
|
57
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/_shared/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,0BAA0B;IAC1B,QAAQ,CAAC,OAAO,EAAE,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,CAAC;IAC5E,gDAAgD;IAChD,QAAQ,CAAC,cAAc,EAAE,CAAC,GAAG,CAAC,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,8DAA8D;IAC9D,SAAS,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC9B,oDAAoD;IACpD,OAAO,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC7B,4CAA4C;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,8BAA8B;AAC9B,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,CAAC;AAEzC,8DAA8D;AAC9D,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,GAAG,MAAM,CAAC;IACrC,0EAA0E;IAC1E,QAAQ,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC;CACtC;AAED,yCAAyC;AACzC,eAAO,MAAM,wBAAwB,EAAE,gBAGtC,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC;IAClC,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;CAClC;AAED;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,MAAM,CACnD,gBAAgB,CAAC,SAAS,CAAC,EAC3B,YAAY,GAAG,YAAY,GAAG,YAAY,CAM3C,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Ref, ComputedRef } from 'vue';
|
|
2
|
+
import { DateFormatConfig } from './types';
|
|
3
|
+
/** Common props shared by all date picker variants. */
|
|
4
|
+
export interface DatePickerBaseProps {
|
|
5
|
+
label?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
size?: 'xs' | 's' | 'm' | 'l';
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
error?: string;
|
|
12
|
+
hint?: string;
|
|
13
|
+
clearable?: boolean;
|
|
14
|
+
showWeekNumbers?: boolean;
|
|
15
|
+
highlightWeekends?: boolean;
|
|
16
|
+
locale?: string;
|
|
17
|
+
dateFormat?: DateFormatConfig;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Core composable for date picker components.
|
|
21
|
+
*
|
|
22
|
+
* Resolution chains:
|
|
23
|
+
* - Locale: explicit prop → localization service → navigator.language → 'en'
|
|
24
|
+
* - Date format: explicit prop → l10n store → Intl detection → default (dd.mm.yyyy, Monday)
|
|
25
|
+
*/
|
|
26
|
+
export declare function useDatePickerBase(props: {
|
|
27
|
+
locale?: Ref<string | undefined> | ComputedRef<string | undefined>;
|
|
28
|
+
dateFormat?: Ref<DateFormatConfig | undefined> | ComputedRef<DateFormatConfig | undefined>;
|
|
29
|
+
}): {
|
|
30
|
+
effectiveLocale: ComputedRef<string>;
|
|
31
|
+
effectiveDateFormat: ComputedRef<DateFormatConfig>;
|
|
32
|
+
separator: ComputedRef<"." | "/" | "-">;
|
|
33
|
+
timezone: Readonly<Ref<string, string>>;
|
|
34
|
+
isOpen: Ref<boolean, boolean>;
|
|
35
|
+
open: () => void;
|
|
36
|
+
close: () => void;
|
|
37
|
+
toggle: () => void;
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=use-date-picker-base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-date-picker-base.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/_shared/use-date-picker-base.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAiB,KAAK,GAAG,EAAE,KAAK,WAAW,EAAE,MAAM,KAAK,CAAC;AAGhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAGhD,uDAAuD;AACvD,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAQD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE;IACvC,MAAM,CAAC,EAAE,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,GAAG,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnE,UAAU,CAAC,EAAE,GAAG,CAAC,gBAAgB,GAAG,SAAS,CAAC,GAAG,WAAW,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAC;CAC5F;;;;;;;;;EAqEA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Locale for month name formatting */
|
|
4
|
+
locale?: string;
|
|
5
|
+
/** Minimum selectable year */
|
|
6
|
+
minYear?: number;
|
|
7
|
+
/** Maximum selectable year */
|
|
8
|
+
maxYear?: number;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_PublicProps = {
|
|
11
|
+
'activeMonth'?: Temporal.PlainYearMonth;
|
|
12
|
+
} & __VLS_Props;
|
|
13
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
"update:activeMonth": (value: Temporal.PlainYearMonth) => any;
|
|
15
|
+
monthSelected: (yearMonth: Temporal.PlainYearMonth) => any;
|
|
16
|
+
yearChanged: (year: number) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
+
"onUpdate:activeMonth"?: ((value: Temporal.PlainYearMonth) => any) | undefined;
|
|
19
|
+
onMonthSelected?: ((yearMonth: Temporal.PlainYearMonth) => any) | undefined;
|
|
20
|
+
onYearChanged?: ((year: number) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
locale: string;
|
|
23
|
+
minYear: number;
|
|
24
|
+
maxYear: number;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
26
|
+
monthsContainerRef: HTMLDivElement;
|
|
27
|
+
}, HTMLDivElement>;
|
|
28
|
+
export default _default;
|
|
29
|
+
//# sourceMappingURL=CoarMonthList.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarMonthList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/month-list/CoarMonthList.vue"],"names":[],"mappings":"AAiTA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAajD,KAAK,WAAW,GAAG;IACf,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAkHJ,KAAK,iBAAiB,GAAG;IACzB,aAAa,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC;CACvC,GAAG,WAAW,CAAC;;;;;;;;;;YAzHH,MAAM;aAEL,MAAM;aAEN,MAAM;;;;AA2PpB,wBAUG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/month-list/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
2
|
+
import { DateFormatConfig, CoarDateMarker } from '../_shared/types';
|
|
3
|
+
export type CoarPlainDatePickerSize = 'xs' | 's' | 'm' | 'l';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
/** Label text above the input */
|
|
6
|
+
label?: string;
|
|
7
|
+
/** Placeholder (defaults to format pattern) */
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
/** Size variant */
|
|
10
|
+
size?: CoarPlainDatePickerSize;
|
|
11
|
+
/** Disabled state */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Readonly state */
|
|
14
|
+
readonly?: boolean;
|
|
15
|
+
/** Required state */
|
|
16
|
+
required?: boolean;
|
|
17
|
+
/** Error message */
|
|
18
|
+
error?: string;
|
|
19
|
+
/** Hint text */
|
|
20
|
+
hint?: string;
|
|
21
|
+
/** Whether the clear button is shown */
|
|
22
|
+
clearable?: boolean;
|
|
23
|
+
/** Whether to close the panel after date selection */
|
|
24
|
+
closeOnSelect?: boolean;
|
|
25
|
+
/** Show week numbers in calendar */
|
|
26
|
+
showWeekNumbers?: boolean;
|
|
27
|
+
/** Highlight weekend days */
|
|
28
|
+
highlightWeekends?: boolean;
|
|
29
|
+
/** Date markers */
|
|
30
|
+
markers?: CoarDateMarker[];
|
|
31
|
+
/** Locale override */
|
|
32
|
+
locale?: string;
|
|
33
|
+
/** Date format configuration override */
|
|
34
|
+
dateFormat?: DateFormatConfig;
|
|
35
|
+
/** Minimum selectable date */
|
|
36
|
+
min?: Temporal.PlainDate | null;
|
|
37
|
+
/** Maximum selectable date */
|
|
38
|
+
max?: Temporal.PlainDate | null;
|
|
39
|
+
/** Show today-month FAB */
|
|
40
|
+
showTodayMonthButton?: boolean;
|
|
41
|
+
};
|
|
42
|
+
type __VLS_PublicProps = {
|
|
43
|
+
modelValue?: Temporal.PlainDate | null;
|
|
44
|
+
} & __VLS_Props;
|
|
45
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
46
|
+
closed: () => any;
|
|
47
|
+
"update:modelValue": (value: Temporal.PlainDate | null) => any;
|
|
48
|
+
opened: () => any;
|
|
49
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
50
|
+
onClosed?: (() => any) | undefined;
|
|
51
|
+
"onUpdate:modelValue"?: ((value: Temporal.PlainDate | null) => any) | undefined;
|
|
52
|
+
onOpened?: (() => any) | undefined;
|
|
53
|
+
}>, {
|
|
54
|
+
label: string;
|
|
55
|
+
error: string;
|
|
56
|
+
hint: string;
|
|
57
|
+
required: boolean;
|
|
58
|
+
disabled: boolean;
|
|
59
|
+
placeholder: string;
|
|
60
|
+
size: CoarPlainDatePickerSize;
|
|
61
|
+
max: Temporal.PlainDate | null;
|
|
62
|
+
readonly: boolean;
|
|
63
|
+
clearable: boolean;
|
|
64
|
+
min: Temporal.PlainDate | null;
|
|
65
|
+
locale: string;
|
|
66
|
+
showWeekNumbers: boolean;
|
|
67
|
+
highlightWeekends: boolean;
|
|
68
|
+
markers: CoarDateMarker[];
|
|
69
|
+
showTodayMonthButton: boolean;
|
|
70
|
+
closeOnSelect: boolean;
|
|
71
|
+
dateFormat: DateFormatConfig;
|
|
72
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
73
|
+
triggerRef: HTMLDivElement;
|
|
74
|
+
dateInputRef: HTMLInputElement;
|
|
75
|
+
}, HTMLDivElement>;
|
|
76
|
+
export default _default;
|
|
77
|
+
//# sourceMappingURL=CoarPlainDatePicker.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarPlainDatePicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/plain-date-picker/CoarPlainDatePicker.vue"],"names":[],"mappings":"AAusBA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAejD,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGzE,MAAM,MAAM,uBAAuB,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE7D,KAAK,WAAW,GAAG;IACf,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mBAAmB;IACnB,IAAI,CAAC,EAAE,uBAAuB,CAAC;IAC/B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sDAAsD;IACtD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,oCAAoC;IACpC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,6BAA6B;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mBAAmB;IACnB,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yCAAyC;IACzC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,8BAA8B;IAC9B,GAAG,CAAC,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;IAChC,8BAA8B;IAC9B,GAAG,CAAC,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;IAChC,2BAA2B;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AA+RJ,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;CACtC,GAAG,WAAW,CAAC;;;;;;;;;;WApUJ,MAAM;WAYN,MAAM;UAEP,MAAM;cAJF,OAAO;cAJP,OAAO;iBAJJ,MAAM;UAEb,uBAAuB;SA4BxB,QAAQ,CAAC,SAAS,GAAG,IAAI;cAxBpB,OAAO;eAQN,OAAO;SAcb,QAAQ,CAAC,SAAS,GAAG,IAAI;YAJtB,MAAM;qBANG,OAAO;uBAEL,OAAO;aAEjB,cAAc,EAAE;0BAUH,OAAO;mBAhBd,OAAO;gBAUV,gBAAgB;;;;;AAoejC,wBAUG"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
2
|
+
import { DateFormatConfig, CoarDateMarker } from '../_shared/types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
modelValue: Temporal.PlainDate | null;
|
|
5
|
+
activeMonth: Temporal.PlainYearMonth;
|
|
6
|
+
min: Temporal.PlainDate | null;
|
|
7
|
+
max: Temporal.PlainDate | null;
|
|
8
|
+
locale: string;
|
|
9
|
+
dateFormatConfig: DateFormatConfig;
|
|
10
|
+
showWeekNumbers: boolean;
|
|
11
|
+
highlightWeekends: boolean;
|
|
12
|
+
markers: CoarDateMarker[];
|
|
13
|
+
showTodayMonthButton: boolean;
|
|
14
|
+
onDateSelected: (date: Temporal.PlainDate) => void;
|
|
15
|
+
onActiveMonthChanged: (ym: Temporal.PlainYearMonth) => void;
|
|
16
|
+
onSelectMonth: (ym: Temporal.PlainYearMonth) => void;
|
|
17
|
+
onPreviousYear: () => void;
|
|
18
|
+
onNextYear: () => void;
|
|
19
|
+
onScrollToTodayMonth: () => void;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
22
|
+
export default _default;
|
|
23
|
+
//# sourceMappingURL=CoarPlainDatePickerPanel.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarPlainDatePickerPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/plain-date-picker/CoarPlainDatePickerPanel.vue"],"names":[],"mappings":"AAgcA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAIjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEzE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;IACtC,WAAW,EAAE,QAAQ,CAAC,cAAc,CAAC;IACrC,GAAG,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;IAC/B,GAAG,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,cAAc,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,KAAK,IAAI,CAAC;IACnD,oBAAoB,EAAE,CAAC,EAAE,EAAE,QAAQ,CAAC,cAAc,KAAK,IAAI,CAAC;IAC5D,aAAa,EAAE,CAAC,EAAE,EAAE,QAAQ,CAAC,cAAc,KAAK,IAAI,CAAC;IACrD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,oBAAoB,EAAE,MAAM,IAAI,CAAC;CAClC,CAAC;;AA4QF,wBAOG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/plain-date-picker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAC3E,YAAY,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
2
|
+
import { DateFormatConfig, CoarDateMarker, CoarTimeValue } from '../_shared/types';
|
|
3
|
+
export type CoarPlainDateTimePickerSize = 'xs' | 's' | 'm' | 'l';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
label?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
size?: CoarPlainDateTimePickerSize;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
error?: string;
|
|
12
|
+
hint?: string;
|
|
13
|
+
clearable?: boolean;
|
|
14
|
+
showWeekNumbers?: boolean;
|
|
15
|
+
highlightWeekends?: boolean;
|
|
16
|
+
markers?: CoarDateMarker[];
|
|
17
|
+
locale?: string;
|
|
18
|
+
dateFormat?: DateFormatConfig;
|
|
19
|
+
/** Minimum selectable datetime */
|
|
20
|
+
min?: Temporal.PlainDateTime | null;
|
|
21
|
+
/** Maximum selectable datetime */
|
|
22
|
+
max?: Temporal.PlainDateTime | null;
|
|
23
|
+
/** 24h / 12h / auto */
|
|
24
|
+
use24Hour?: boolean | 'auto';
|
|
25
|
+
/** Minute step */
|
|
26
|
+
minuteStep?: 1 | 5 | 10 | 15;
|
|
27
|
+
/** Default time when selecting a date without existing time */
|
|
28
|
+
defaultTime?: CoarTimeValue;
|
|
29
|
+
showTodayMonthButton?: boolean;
|
|
30
|
+
};
|
|
31
|
+
type __VLS_PublicProps = {
|
|
32
|
+
modelValue?: Temporal.PlainDateTime | null;
|
|
33
|
+
} & __VLS_Props;
|
|
34
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
35
|
+
closed: () => any;
|
|
36
|
+
"update:modelValue": (value: Temporal.PlainDateTime | null) => any;
|
|
37
|
+
opened: () => any;
|
|
38
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
39
|
+
onClosed?: (() => any) | undefined;
|
|
40
|
+
"onUpdate:modelValue"?: ((value: Temporal.PlainDateTime | null) => any) | undefined;
|
|
41
|
+
onOpened?: (() => any) | undefined;
|
|
42
|
+
}>, {
|
|
43
|
+
label: string;
|
|
44
|
+
error: string;
|
|
45
|
+
hint: string;
|
|
46
|
+
required: boolean;
|
|
47
|
+
disabled: boolean;
|
|
48
|
+
placeholder: string;
|
|
49
|
+
size: CoarPlainDateTimePickerSize;
|
|
50
|
+
max: Temporal.PlainDateTime | null;
|
|
51
|
+
readonly: boolean;
|
|
52
|
+
clearable: boolean;
|
|
53
|
+
min: Temporal.PlainDateTime | null;
|
|
54
|
+
locale: string;
|
|
55
|
+
use24Hour: boolean | "auto";
|
|
56
|
+
minuteStep: 1 | 5 | 10 | 15;
|
|
57
|
+
showWeekNumbers: boolean;
|
|
58
|
+
highlightWeekends: boolean;
|
|
59
|
+
markers: CoarDateMarker[];
|
|
60
|
+
showTodayMonthButton: boolean;
|
|
61
|
+
dateFormat: DateFormatConfig;
|
|
62
|
+
defaultTime: CoarTimeValue;
|
|
63
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
64
|
+
triggerRef: HTMLDivElement;
|
|
65
|
+
dateInputRef: HTMLInputElement;
|
|
66
|
+
}, HTMLDivElement>;
|
|
67
|
+
export default _default;
|
|
68
|
+
//# sourceMappingURL=CoarPlainDateTimePicker.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarPlainDateTimePicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue"],"names":[],"mappings":"AA0zBA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAkBjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGxF,MAAM,MAAM,2BAA2B,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAEjE,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,2BAA2B,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,kCAAkC;IAClC,GAAG,CAAC,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC;IACpC,kCAAkC;IAClC,GAAG,CAAC,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC;IACpC,uBAAuB;IACvB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,kBAAkB;IAClB,UAAU,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC;IAC7B,+DAA+D;IAC/D,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAydJ,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC;CAC1C,GAAG,WAAW,CAAC;;;;;;;;;;WApfJ,MAAM;WAMN,MAAM;UACP,MAAM;cAFF,OAAO;cAFP,OAAO;iBAFJ,MAAM;UACb,2BAA2B;SAe5B,QAAQ,CAAC,aAAa,GAAG,IAAI;cAbxB,OAAO;eAIN,OAAO;SAOb,QAAQ,CAAC,aAAa,GAAG,IAAI;YAH1B,MAAM;eAOH,OAAO,GAAG,MAAM;gBAEf,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE;qBAZV,OAAO;uBACL,OAAO;aACjB,cAAc,EAAE;0BAaH,OAAO;gBAXjB,gBAAgB;iBAUf,aAAa;;;;;AAypB/B,wBAUG"}
|
package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePickerPanel.vue.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
2
|
+
import { DateFormatConfig, CoarDateMarker, CoarTimeValue } from '../_shared/types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
modelValue: Temporal.PlainDate | null;
|
|
5
|
+
activeMonth: Temporal.PlainYearMonth;
|
|
6
|
+
min: Temporal.PlainDate | null;
|
|
7
|
+
max: Temporal.PlainDate | null;
|
|
8
|
+
locale: string;
|
|
9
|
+
dateFormatConfig: DateFormatConfig;
|
|
10
|
+
showWeekNumbers: boolean;
|
|
11
|
+
highlightWeekends: boolean;
|
|
12
|
+
markers: CoarDateMarker[];
|
|
13
|
+
showTodayMonthButton: boolean;
|
|
14
|
+
selectedTime: CoarTimeValue | null;
|
|
15
|
+
use24Hour: boolean | 'auto';
|
|
16
|
+
minuteStep: 1 | 5 | 10 | 15;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
readonly: boolean;
|
|
19
|
+
effectiveMinTime: CoarTimeValue | null;
|
|
20
|
+
effectiveMaxTime: CoarTimeValue | null;
|
|
21
|
+
onDateSelected: (date: Temporal.PlainDate) => void;
|
|
22
|
+
onActiveMonthChanged: (ym: Temporal.PlainYearMonth) => void;
|
|
23
|
+
onSelectMonth: (ym: Temporal.PlainYearMonth) => void;
|
|
24
|
+
onPreviousYear: () => void;
|
|
25
|
+
onNextYear: () => void;
|
|
26
|
+
onScrollToTodayMonth: () => void;
|
|
27
|
+
onTimeChanged: (time: CoarTimeValue | null) => void;
|
|
28
|
+
};
|
|
29
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
30
|
+
export default _default;
|
|
31
|
+
//# sourceMappingURL=CoarPlainDateTimePickerPanel.vue.d.ts.map
|
package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePickerPanel.vue.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarPlainDateTimePickerPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/plain-date-time-picker/CoarPlainDateTimePickerPanel.vue"],"names":[],"mappings":"AA+WA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAMjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAExF,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;IACtC,WAAW,EAAE,QAAQ,CAAC,cAAc,CAAC;IACrC,GAAG,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;IAC/B,GAAG,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,YAAY,EAAE,aAAa,GAAG,IAAI,CAAC;IACnC,SAAS,EAAE,OAAO,GAAG,MAAM,CAAC;IAC5B,UAAU,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,aAAa,GAAG,IAAI,CAAC;IACvC,gBAAgB,EAAE,aAAa,GAAG,IAAI,CAAC;IACvC,cAAc,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,KAAK,IAAI,CAAC;IACnD,oBAAoB,EAAE,CAAC,EAAE,EAAE,QAAQ,CAAC,cAAc,KAAK,IAAI,CAAC;IAC5D,aAAa,EAAE,CAAC,EAAE,EAAE,QAAQ,CAAC,cAAc,KAAK,IAAI,CAAC;IACrD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,aAAa,EAAE,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI,KAAK,IAAI,CAAC;CACrD,CAAC;;AAkTF,wBAOG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/plain-date-time-picker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACnF,YAAY,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"}
|