@cocoar/vue-ui 3.4.0-beta.1 → 3.4.0-beta.22
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/README.md +1 -1
- package/dist/components/_internal/keyboardInset.d.ts +9 -0
- package/dist/components/_internal/keyboardInset.d.ts.map +1 -0
- package/dist/components/_internal/pageScrollLock.d.ts +17 -0
- package/dist/components/_internal/pageScrollLock.d.ts.map +1 -0
- package/dist/components/_internal/useFocusTrap.d.ts +9 -0
- package/dist/components/_internal/useFocusTrap.d.ts.map +1 -0
- package/dist/components/_internal/useVisualViewport.d.ts +26 -0
- package/dist/components/_internal/useVisualViewport.d.ts.map +1 -0
- package/dist/components/date-time/_shared/use-plain-date-picker.d.ts +95 -0
- package/dist/components/date-time/_shared/use-plain-date-picker.d.ts.map +1 -0
- package/dist/components/date-time/_shared/use-plain-date-time-picker.d.ts +113 -0
- package/dist/components/date-time/_shared/use-plain-date-time-picker.d.ts.map +1 -0
- package/dist/components/date-time/_shared/use-zoned-date-time-picker.d.ts +132 -0
- package/dist/components/date-time/_shared/use-zoned-date-time-picker.d.ts.map +1 -0
- package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/scrollable-calendar/CoarScrollableCalendar.vue.d.ts.map +1 -1
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts.map +1 -1
- package/dist/components/dialog/CoarDialogFooter.vue.d.ts +20 -0
- package/dist/components/dialog/CoarDialogFooter.vue.d.ts.map +1 -0
- package/dist/components/dialog/CoarDialogShell.vue.d.ts +2 -0
- package/dist/components/dialog/CoarDialogShell.vue.d.ts.map +1 -1
- package/dist/components/dialog/CoarSheetShell.vue.d.ts +50 -0
- package/dist/components/dialog/CoarSheetShell.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 -1
- package/dist/components/dialog/dialogFooter.d.ts +21 -0
- package/dist/components/dialog/dialogFooter.d.ts.map +1 -0
- package/dist/components/dialog/index.d.ts +2 -1
- package/dist/components/dialog/index.d.ts.map +1 -1
- package/dist/components/dialog/useDialog.d.ts +6 -15
- package/dist/components/dialog/useDialog.d.ts.map +1 -1
- package/dist/components/dialog/useSheetDrag.d.ts +46 -0
- package/dist/components/dialog/useSheetDrag.d.ts.map +1 -0
- package/dist/components/input-frame/CoarInputFrame.vue.d.ts.map +1 -1
- package/dist/components/input-frame/CoarInputFrameButton.vue.d.ts.map +1 -1
- package/dist/components/listbox/CoarListbox.vue.d.ts.map +1 -1
- package/dist/components/menu/CoarContextMenu.vue.d.ts.map +1 -1
- package/dist/components/menu/CoarMenuItem.vue.d.ts.map +1 -1
- package/dist/components/menu/CoarSubExpand.vue.d.ts.map +1 -1
- package/dist/components/menu/CoarSubFlyout.vue.d.ts.map +1 -1
- package/dist/components/menu/useContextMenu.d.ts +7 -20
- package/dist/components/menu/useContextMenu.d.ts.map +1 -1
- package/dist/components/otp-input/CoarOtpInput.vue.d.ts.map +1 -1
- package/dist/components/overlay/CoarOverlayOutlet.vue.d.ts.map +1 -1
- package/dist/components/overlay/index.d.ts +1 -1
- package/dist/components/overlay/index.d.ts.map +1 -1
- package/dist/components/overlay/overlay-presets.d.ts +9 -0
- package/dist/components/overlay/overlay-presets.d.ts.map +1 -1
- package/dist/components/overlay/overlay-service.d.ts +12 -0
- package/dist/components/overlay/overlay-service.d.ts.map +1 -1
- package/dist/components/overlay/overlay-types.d.ts +6 -0
- package/dist/components/overlay/overlay-types.d.ts.map +1 -1
- package/dist/components/pagination/CoarPagination.vue.d.ts.map +1 -1
- package/dist/components/scrollbar/vScrollbar.d.ts.map +1 -1
- package/dist/components/segmented-control/CoarSegmentedControl.vue.d.ts.map +1 -1
- package/dist/components/select/CoarMultiSelect.vue.d.ts.map +1 -1
- package/dist/components/select/CoarMultiSelectDropdownPanel.vue.d.ts.map +1 -1
- package/dist/components/select/CoarSelect.vue.d.ts.map +1 -1
- package/dist/components/select/CoarSelectDropdownPanel.vue.d.ts.map +1 -1
- package/dist/components/select/CoarTagSelect.vue.d.ts.map +1 -1
- package/dist/components/select/CoarTagSelectDropdownPanel.vue.d.ts.map +1 -1
- package/dist/components/tabs/CoarTabGroup.vue.d.ts.map +1 -1
- package/dist/components/tag/CoarTag.vue.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4597 -3950
- package/package.json +4 -4
- package/skills/cocoar-vue-ui/SKILL.md +9 -5
- package/skills/cocoar-vue-ui/references/components/avatar.md +2 -0
- package/skills/cocoar-vue-ui/references/components/badge.md +2 -0
- package/skills/cocoar-vue-ui/references/components/breadcrumb.md +2 -0
- package/skills/cocoar-vue-ui/references/components/button.md +2 -0
- package/skills/cocoar-vue-ui/references/components/calendar/agenda-view.md +2 -0
- package/skills/cocoar-vue-ui/references/components/calendar/coar-calendar.md +2 -0
- package/skills/cocoar-vue-ui/references/components/calendar/day-view.md +2 -0
- package/skills/cocoar-vue-ui/references/components/calendar/index.md +2 -0
- package/skills/cocoar-vue-ui/references/components/calendar/month-view.md +2 -0
- package/skills/cocoar-vue-ui/references/components/calendar/time-selection.md +2 -0
- package/skills/cocoar-vue-ui/references/components/calendar/timeline-view.md +2 -0
- package/skills/cocoar-vue-ui/references/components/calendar/week-view.md +2 -0
- package/skills/cocoar-vue-ui/references/components/calendar/work-week-view.md +2 -0
- package/skills/cocoar-vue-ui/references/components/calendar/year-view.md +2 -0
- package/skills/cocoar-vue-ui/references/components/card.md +2 -0
- package/skills/cocoar-vue-ui/references/components/checkbox-group.md +2 -0
- package/skills/cocoar-vue-ui/references/components/checkbox.md +2 -0
- package/skills/cocoar-vue-ui/references/components/code-block.md +2 -0
- package/skills/cocoar-vue-ui/references/components/context-menu.md +3 -0
- package/skills/cocoar-vue-ui/references/components/data-grid/checkbox.md +2 -0
- package/skills/cocoar-vue-ui/references/components/data-grid/date-columns.md +2 -0
- package/skills/cocoar-vue-ui/references/components/data-grid/editing.md +2 -0
- package/skills/cocoar-vue-ui/references/components/data-grid/multi-select.md +2 -0
- package/skills/cocoar-vue-ui/references/components/data-grid/number.md +2 -0
- package/skills/cocoar-vue-ui/references/components/data-grid/select.md +2 -0
- package/skills/cocoar-vue-ui/references/components/data-grid/text.md +2 -0
- package/skills/cocoar-vue-ui/references/components/data-grid.md +2 -0
- package/skills/cocoar-vue-ui/references/components/data-list.md +2 -0
- package/skills/cocoar-vue-ui/references/components/date-or-time-picker.md +2 -0
- package/skills/cocoar-vue-ui/references/components/date-picker.md +2 -0
- package/skills/cocoar-vue-ui/references/components/date-time-picker.md +2 -0
- package/skills/cocoar-vue-ui/references/components/date-views.md +2 -0
- package/skills/cocoar-vue-ui/references/components/dialog.md +189 -1
- package/skills/cocoar-vue-ui/references/components/divider.md +2 -0
- package/skills/cocoar-vue-ui/references/components/document-viewer/annotations.md +2 -0
- package/skills/cocoar-vue-ui/references/components/document-viewer/coar-document-viewer.md +2 -0
- package/skills/cocoar-vue-ui/references/components/document-viewer/index.md +2 -0
- package/skills/cocoar-vue-ui/references/components/document-viewer/toolbar.md +2 -0
- package/skills/cocoar-vue-ui/references/components/drag-drop.md +2 -0
- package/skills/cocoar-vue-ui/references/components/dual-listbox.md +2 -0
- package/skills/cocoar-vue-ui/references/components/form-field.md +2 -0
- package/skills/cocoar-vue-ui/references/components/link.md +2 -0
- package/skills/cocoar-vue-ui/references/components/listbox.md +2 -0
- package/skills/cocoar-vue-ui/references/components/map/editor.md +2 -0
- package/skills/cocoar-vue-ui/references/components/map/index.md +2 -0
- package/skills/cocoar-vue-ui/references/components/markdown-diagrams.md +2 -0
- package/skills/cocoar-vue-ui/references/components/markdown-editor.md +2 -0
- package/skills/cocoar-vue-ui/references/components/markdown-form.md +2 -0
- package/skills/cocoar-vue-ui/references/components/markdown.md +2 -0
- package/skills/cocoar-vue-ui/references/components/menu.md +2 -0
- package/skills/cocoar-vue-ui/references/components/mermaid.md +2 -0
- package/skills/cocoar-vue-ui/references/components/navbar.md +2 -0
- package/skills/cocoar-vue-ui/references/components/note.md +2 -0
- package/skills/cocoar-vue-ui/references/components/notice.md +2 -0
- package/skills/cocoar-vue-ui/references/components/number-input.md +2 -0
- package/skills/cocoar-vue-ui/references/components/otp-input.md +2 -0
- package/skills/cocoar-vue-ui/references/components/page-builder/coar-page-builder.md +2 -0
- package/skills/cocoar-vue-ui/references/components/page-builder/coar-page-renderer.md +2 -0
- package/skills/cocoar-vue-ui/references/components/pagination.md +2 -0
- package/skills/cocoar-vue-ui/references/components/panel-layout.md +2 -0
- package/skills/cocoar-vue-ui/references/components/password-input.md +2 -0
- package/skills/cocoar-vue-ui/references/components/popconfirm.md +2 -0
- package/skills/cocoar-vue-ui/references/components/popover.md +2 -0
- package/skills/cocoar-vue-ui/references/components/progress-bar.md +2 -0
- package/skills/cocoar-vue-ui/references/components/radio-group.md +2 -0
- package/skills/cocoar-vue-ui/references/components/script-editor.md +2 -0
- package/skills/cocoar-vue-ui/references/components/segmented-control.md +2 -0
- package/skills/cocoar-vue-ui/references/components/select.md +2 -0
- package/skills/cocoar-vue-ui/references/components/sidebar.md +2 -0
- package/skills/cocoar-vue-ui/references/components/spinner.md +2 -0
- package/skills/cocoar-vue-ui/references/components/switch.md +2 -0
- package/skills/cocoar-vue-ui/references/components/table.md +2 -0
- package/skills/cocoar-vue-ui/references/components/tabs.md +2 -0
- package/skills/cocoar-vue-ui/references/components/tag.md +2 -0
- package/skills/cocoar-vue-ui/references/components/text-input.md +2 -0
- package/skills/cocoar-vue-ui/references/components/toast.md +2 -0
- package/skills/cocoar-vue-ui/references/components/tooltip.md +2 -0
- package/skills/cocoar-vue-ui/references/components/tree.md +2 -0
- package/skills/cocoar-vue-ui/references/components/wizard.md +2 -0
- package/skills/cocoar-vue-ui/references/components/zoned-date-time-picker.md +2 -0
- package/skills/cocoar-vue-ui/references/foundations/design-principles.md +27 -3
- package/skills/cocoar-vue-ui/references/guide/getting-started.md +2 -2
- package/skills/cocoar-vue-ui/references/guide/mobile.md +326 -13
- package/styles/tokens/mobile.css +2 -0
- package/styles/tokens/new-components.css +9 -0
package/README.md
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const keyboardInset: Readonly<import('vue').Ref<number, number>>;
|
|
2
|
+
/**
|
|
3
|
+
* **Preview** — reports the bottom of the current layout viewport covered by a native
|
|
4
|
+
* overlay keyboard, in CSS px. This is occlusion, not the keyboard's physical height:
|
|
5
|
+
* report 0 when the WebView resizes above it, on dismissal, and when detaching the host.
|
|
6
|
+
* Browser visual-viewport occlusion is combined with this inset, never added to it.
|
|
7
|
+
*/
|
|
8
|
+
export declare function setCoarKeyboardInset(bottomInset: number): void;
|
|
9
|
+
//# sourceMappingURL=keyboardInset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboardInset.d.ts","sourceRoot":"","sources":["../../../src/components/_internal/keyboardInset.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,6CAAkB,CAAC;AAE7C;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAK9D"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Page scroll lock for modal surfaces that cover the page from below (bottom sheets).
|
|
3
|
+
* Counted: the page is locked from the first `lockPageScroll()` until the last release.
|
|
4
|
+
*
|
|
5
|
+
* - `overflow: hidden` on `<html>` stops wheel, keyboard and scrollbar scrolling of the
|
|
6
|
+
* document; the scrollbar's width is added to the body's right padding so the page does
|
|
7
|
+
* not shift sideways.
|
|
8
|
+
* - iOS Safari (before 16) and app shells that scroll an inner container still scroll on
|
|
9
|
+
* touch, so a non-passive `touchmove` listener cancels every touch move that does not
|
|
10
|
+
* start inside an overlay (`.coar-overlay-host`): the sheet itself, and selects or
|
|
11
|
+
* pickers opened from it, keep scrolling.
|
|
12
|
+
*
|
|
13
|
+
* Without `position: fixed` on the body: it would jump the page to the top and back.
|
|
14
|
+
*/
|
|
15
|
+
/** Locks page scroll and returns the release; calling the release twice is harmless. */
|
|
16
|
+
export declare function lockPageScroll(): () => void;
|
|
17
|
+
//# sourceMappingURL=pageScrollLock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageScrollLock.d.ts","sourceRoot":"","sources":["../../../src/components/_internal/pageScrollLock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAqDH,wFAAwF;AACxF,wBAAgB,cAAc,IAAI,MAAM,IAAI,CAS3C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Focus trap of a modal surface (dialog shell, sheet shell). On mount it remembers the
|
|
4
|
+
* focused element and moves focus into the container (`[autofocus]`, else the first
|
|
5
|
+
* focusable element, else the container itself); while mounted Tab and Shift+Tab wrap
|
|
6
|
+
* inside the container; on unmount focus returns to the remembered element.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useFocusTrap(containerRef: Ref<HTMLElement | null>): void;
|
|
9
|
+
//# sourceMappingURL=useFocusTrap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../../src/components/_internal/useFocusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAWrE;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,YAAY,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,QAiFjE"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
/** What a surface docked to the bottom needs to know about the visual viewport. */
|
|
3
|
+
export interface VisualViewportMetrics {
|
|
4
|
+
/** Height of the visible part of the page in px. */
|
|
5
|
+
readonly height: number;
|
|
6
|
+
/**
|
|
7
|
+
* Distance in px from the bottom of the layout viewport (what `position: fixed;
|
|
8
|
+
* bottom: 0` docks to) up to the bottom of the visible part: the on-screen keyboard,
|
|
9
|
+
* or the part of the page that iOS panned away.
|
|
10
|
+
*/
|
|
11
|
+
readonly bottomInset: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Metrics of a visual viewport, or `null` while it is pinch-zoomed: zoomed, the layout
|
|
15
|
+
* viewport is the right frame and following the visual one would shrink the surface.
|
|
16
|
+
*/
|
|
17
|
+
export declare function visualViewportMetrics(layoutHeight: number, viewport: Pick<VisualViewport, 'height' | 'offsetTop' | 'scale'>, nativeInset?: number): VisualViewportMetrics | null;
|
|
18
|
+
/**
|
|
19
|
+
* Follows `window.visualViewport` while the calling component is mounted. `metrics` stays
|
|
20
|
+
* `null` during SSR, without a visual viewport or native inset, and while pinch-zoomed:
|
|
21
|
+
* the caller then keeps its CSS-only layout.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useVisualViewport(): {
|
|
24
|
+
metrics: Ref<VisualViewportMetrics | null>;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=useVisualViewport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVisualViewport.d.ts","sourceRoot":"","sources":["../../../src/components/_internal/useVisualViewport.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAGvE,mFAAmF;AACnF,MAAM,WAAW,qBAAqB;IACpC,oDAAoD;IACpD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,WAAW,GAAG,OAAO,CAAC,EAChE,WAAW,SAAI,GACd,qBAAqB,GAAG,IAAI,CAa9B;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI;IAAE,OAAO,EAAE,GAAG,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAA;CAAE,CAoDlF"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
3
|
+
import { DateFormatConfig } from './types';
|
|
4
|
+
interface PlainDatePickerOptions {
|
|
5
|
+
readonly placeholder: string;
|
|
6
|
+
readonly locale?: string;
|
|
7
|
+
readonly dateFormat?: DateFormatConfig;
|
|
8
|
+
readonly min: Temporal.PlainDate | null;
|
|
9
|
+
readonly max: Temporal.PlainDate | null;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Internal value logic shared by presentations of the plain date picker.
|
|
13
|
+
* Pass reactive props (or getters) so options remain live. DOM, masking and overlay
|
|
14
|
+
* lifecycle belong to the presentation, not this composable.
|
|
15
|
+
*/
|
|
16
|
+
export declare function usePlainDatePicker(modelValue: Ref<Temporal.PlainDate | null>, props: PlainDatePickerOptions): {
|
|
17
|
+
pickerBase: {
|
|
18
|
+
effectiveLocale: import('vue').ComputedRef<string>;
|
|
19
|
+
effectiveDateFormat: import('vue').ComputedRef<DateFormatConfig>;
|
|
20
|
+
separator: import('vue').ComputedRef<"." | "-" | "/">;
|
|
21
|
+
timezone: Readonly<Ref<string, string>>;
|
|
22
|
+
isOpen: Ref<boolean, boolean>;
|
|
23
|
+
open: () => void;
|
|
24
|
+
close: () => void;
|
|
25
|
+
toggle: () => void;
|
|
26
|
+
};
|
|
27
|
+
activeMonth: Ref<{
|
|
28
|
+
readonly era: string | undefined;
|
|
29
|
+
readonly eraYear: number | undefined;
|
|
30
|
+
readonly year: number;
|
|
31
|
+
readonly month: number;
|
|
32
|
+
readonly monthCode: string;
|
|
33
|
+
readonly calendarId: string;
|
|
34
|
+
readonly daysInMonth: number;
|
|
35
|
+
readonly daysInYear: number;
|
|
36
|
+
readonly monthsInYear: number;
|
|
37
|
+
readonly inLeapYear: boolean;
|
|
38
|
+
equals: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string) => boolean;
|
|
39
|
+
with: (yearMonthLike: Temporal.PlainYearMonthLike, options?: Temporal.AssignmentOptions) => Temporal.PlainYearMonth;
|
|
40
|
+
add: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
|
|
41
|
+
subtract: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
|
|
42
|
+
until: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
|
|
43
|
+
since: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
|
|
44
|
+
toPlainDate: (day: {
|
|
45
|
+
day: number;
|
|
46
|
+
}) => Temporal.PlainDate;
|
|
47
|
+
toLocaleString: (locales?: Temporal.LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions) => string;
|
|
48
|
+
toJSON: () => string;
|
|
49
|
+
toString: (options?: Temporal.ShowCalendarOption) => string;
|
|
50
|
+
valueOf: () => never;
|
|
51
|
+
readonly [Symbol.toStringTag]: "Temporal.PlainYearMonth";
|
|
52
|
+
}, Temporal.PlainYearMonth | {
|
|
53
|
+
readonly era: string | undefined;
|
|
54
|
+
readonly eraYear: number | undefined;
|
|
55
|
+
readonly year: number;
|
|
56
|
+
readonly month: number;
|
|
57
|
+
readonly monthCode: string;
|
|
58
|
+
readonly calendarId: string;
|
|
59
|
+
readonly daysInMonth: number;
|
|
60
|
+
readonly daysInYear: number;
|
|
61
|
+
readonly monthsInYear: number;
|
|
62
|
+
readonly inLeapYear: boolean;
|
|
63
|
+
equals: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string) => boolean;
|
|
64
|
+
with: (yearMonthLike: Temporal.PlainYearMonthLike, options?: Temporal.AssignmentOptions) => Temporal.PlainYearMonth;
|
|
65
|
+
add: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
|
|
66
|
+
subtract: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
|
|
67
|
+
until: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
|
|
68
|
+
since: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
|
|
69
|
+
toPlainDate: (day: {
|
|
70
|
+
day: number;
|
|
71
|
+
}) => Temporal.PlainDate;
|
|
72
|
+
toLocaleString: (locales?: Temporal.LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions) => string;
|
|
73
|
+
toJSON: () => string;
|
|
74
|
+
toString: (options?: Temporal.ShowCalendarOption) => string;
|
|
75
|
+
valueOf: () => never;
|
|
76
|
+
readonly [Symbol.toStringTag]: "Temporal.PlainYearMonth";
|
|
77
|
+
}>;
|
|
78
|
+
displayValue: Ref<string, string>;
|
|
79
|
+
inputPlaceholder: import('vue').ComputedRef<string>;
|
|
80
|
+
isPrevYearDisabled: import('vue').ComputedRef<boolean>;
|
|
81
|
+
isNextYearDisabled: import('vue').ComputedRef<boolean>;
|
|
82
|
+
today: import('vue').ComputedRef<Temporal.PlainDate>;
|
|
83
|
+
formatValue: (val: Temporal.PlainDate) => string;
|
|
84
|
+
parseValueFromInput: (text: string) => Temporal.PlainDate | null;
|
|
85
|
+
selectDate: (date: Temporal.PlainDate) => void;
|
|
86
|
+
selectMonth: (month: Temporal.PlainYearMonth) => void;
|
|
87
|
+
previousYear: () => void;
|
|
88
|
+
nextYear: () => void;
|
|
89
|
+
scrollToTodayMonth: () => void;
|
|
90
|
+
clearValue: () => void;
|
|
91
|
+
changeInput: (text: string) => void;
|
|
92
|
+
blurInput: () => void;
|
|
93
|
+
};
|
|
94
|
+
export {};
|
|
95
|
+
//# sourceMappingURL=use-plain-date-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-plain-date-picker.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/_shared/use-plain-date-picker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IACvC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;IACxC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;CACzC;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,GAAG,CAAC,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC,EAC1C,KAAK,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAkBH,QAAQ,CAAC,SAAS,KAAG,MAAM;gCAKlB,MAAM,KAAG,QAAQ,CAAC,SAAS,GAAG,IAAI;uBAgB3C,QAAQ,CAAC,SAAS;yBAIhB,QAAQ,CAAC,cAAc;;;;;wBAqBxB,MAAM;;EAqBlC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
3
|
+
import { DateFormatConfig, CoarTimeValue } from './types';
|
|
4
|
+
interface PlainDateTimePickerOptions {
|
|
5
|
+
readonly placeholder: string;
|
|
6
|
+
readonly locale?: string;
|
|
7
|
+
readonly dateFormat?: DateFormatConfig;
|
|
8
|
+
readonly min: Temporal.PlainDateTime | null;
|
|
9
|
+
readonly max: Temporal.PlainDateTime | null;
|
|
10
|
+
readonly use24Hour: boolean | 'auto';
|
|
11
|
+
readonly minuteStep: 1 | 5 | 10 | 15;
|
|
12
|
+
readonly defaultTime: CoarTimeValue;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Internal value logic shared by presentations of the plain date-time picker.
|
|
16
|
+
* Pass reactive props (or getters) so options remain live. DOM, masking and overlay
|
|
17
|
+
* lifecycle belong to the presentation, not this composable.
|
|
18
|
+
*/
|
|
19
|
+
export declare function usePlainDateTimePicker(modelValue: Ref<Temporal.PlainDateTime | null>, props: PlainDateTimePickerOptions): {
|
|
20
|
+
pickerBase: {
|
|
21
|
+
effectiveLocale: import('vue').ComputedRef<string>;
|
|
22
|
+
effectiveDateFormat: import('vue').ComputedRef<DateFormatConfig>;
|
|
23
|
+
separator: import('vue').ComputedRef<"." | "-" | "/">;
|
|
24
|
+
timezone: Readonly<Ref<string, string>>;
|
|
25
|
+
isOpen: Ref<boolean, boolean>;
|
|
26
|
+
open: () => void;
|
|
27
|
+
close: () => void;
|
|
28
|
+
toggle: () => void;
|
|
29
|
+
};
|
|
30
|
+
activeMonth: Ref<{
|
|
31
|
+
readonly era: string | undefined;
|
|
32
|
+
readonly eraYear: number | undefined;
|
|
33
|
+
readonly year: number;
|
|
34
|
+
readonly month: number;
|
|
35
|
+
readonly monthCode: string;
|
|
36
|
+
readonly calendarId: string;
|
|
37
|
+
readonly daysInMonth: number;
|
|
38
|
+
readonly daysInYear: number;
|
|
39
|
+
readonly monthsInYear: number;
|
|
40
|
+
readonly inLeapYear: boolean;
|
|
41
|
+
equals: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string) => boolean;
|
|
42
|
+
with: (yearMonthLike: Temporal.PlainYearMonthLike, options?: Temporal.AssignmentOptions) => Temporal.PlainYearMonth;
|
|
43
|
+
add: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
|
|
44
|
+
subtract: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
|
|
45
|
+
until: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
|
|
46
|
+
since: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
|
|
47
|
+
toPlainDate: (day: {
|
|
48
|
+
day: number;
|
|
49
|
+
}) => Temporal.PlainDate;
|
|
50
|
+
toLocaleString: (locales?: Temporal.LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions) => string;
|
|
51
|
+
toJSON: () => string;
|
|
52
|
+
toString: (options?: Temporal.ShowCalendarOption) => string;
|
|
53
|
+
valueOf: () => never;
|
|
54
|
+
readonly [Symbol.toStringTag]: "Temporal.PlainYearMonth";
|
|
55
|
+
}, Temporal.PlainYearMonth | {
|
|
56
|
+
readonly era: string | undefined;
|
|
57
|
+
readonly eraYear: number | undefined;
|
|
58
|
+
readonly year: number;
|
|
59
|
+
readonly month: number;
|
|
60
|
+
readonly monthCode: string;
|
|
61
|
+
readonly calendarId: string;
|
|
62
|
+
readonly daysInMonth: number;
|
|
63
|
+
readonly daysInYear: number;
|
|
64
|
+
readonly monthsInYear: number;
|
|
65
|
+
readonly inLeapYear: boolean;
|
|
66
|
+
equals: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string) => boolean;
|
|
67
|
+
with: (yearMonthLike: Temporal.PlainYearMonthLike, options?: Temporal.AssignmentOptions) => Temporal.PlainYearMonth;
|
|
68
|
+
add: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
|
|
69
|
+
subtract: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
|
|
70
|
+
until: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
|
|
71
|
+
since: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
|
|
72
|
+
toPlainDate: (day: {
|
|
73
|
+
day: number;
|
|
74
|
+
}) => Temporal.PlainDate;
|
|
75
|
+
toLocaleString: (locales?: Temporal.LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions) => string;
|
|
76
|
+
toJSON: () => string;
|
|
77
|
+
toString: (options?: Temporal.ShowCalendarOption) => string;
|
|
78
|
+
valueOf: () => never;
|
|
79
|
+
readonly [Symbol.toStringTag]: "Temporal.PlainYearMonth";
|
|
80
|
+
}>;
|
|
81
|
+
pendingTime: Ref<{
|
|
82
|
+
readonly hours: number;
|
|
83
|
+
readonly minutes: number;
|
|
84
|
+
} | null, CoarTimeValue | {
|
|
85
|
+
readonly hours: number;
|
|
86
|
+
readonly minutes: number;
|
|
87
|
+
} | null>;
|
|
88
|
+
displayValue: Ref<string, string>;
|
|
89
|
+
effectiveUse24Hour: import('vue').ComputedRef<boolean>;
|
|
90
|
+
inputPlaceholder: import('vue').ComputedRef<string>;
|
|
91
|
+
selectedDate: import('vue').ComputedRef<Temporal.PlainDate | null>;
|
|
92
|
+
selectedTime: import('vue').ComputedRef<CoarTimeValue | null>;
|
|
93
|
+
minDate: import('vue').ComputedRef<Temporal.PlainDate | null>;
|
|
94
|
+
maxDate: import('vue').ComputedRef<Temporal.PlainDate | null>;
|
|
95
|
+
effectiveMinTime: import('vue').ComputedRef<CoarTimeValue | null>;
|
|
96
|
+
effectiveMaxTime: import('vue').ComputedRef<CoarTimeValue | null>;
|
|
97
|
+
isPrevYearDisabled: import('vue').ComputedRef<boolean>;
|
|
98
|
+
isNextYearDisabled: import('vue').ComputedRef<boolean>;
|
|
99
|
+
today: import('vue').ComputedRef<Temporal.PlainDate>;
|
|
100
|
+
formatValue: (val: Temporal.PlainDateTime) => string;
|
|
101
|
+
parseValueFromInput: (text: string) => Temporal.PlainDateTime | null;
|
|
102
|
+
selectDate: (date: Temporal.PlainDate) => void;
|
|
103
|
+
changeTime: (time: CoarTimeValue | null) => void;
|
|
104
|
+
selectMonth: (month: Temporal.PlainYearMonth) => void;
|
|
105
|
+
previousYear: () => void;
|
|
106
|
+
nextYear: () => void;
|
|
107
|
+
scrollToTodayMonth: () => void;
|
|
108
|
+
clearValue: () => void;
|
|
109
|
+
changeInput: (text: string) => void;
|
|
110
|
+
blurInput: () => void;
|
|
111
|
+
};
|
|
112
|
+
export {};
|
|
113
|
+
//# sourceMappingURL=use-plain-date-time-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-plain-date-time-picker.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/_shared/use-plain-date-time-picker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AASjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE/D,UAAU,0BAA0B;IAClC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IACvC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC;IAC5C,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC;IAC5C,QAAQ,CAAC,SAAS,EAAE,OAAO,GAAG,MAAM,CAAC;IACrC,QAAQ,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC;IACrC,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC;CACrC;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,GAAG,CAAC,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC,EAC9C,KAAK,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAoDP,QAAQ,CAAC,aAAa,KAAG,MAAM;gCAOtB,MAAM,KAAG,QAAQ,CAAC,aAAa,GAAG,IAAI;uBAiC/C,QAAQ,CAAC,SAAS;uBAKlB,aAAa,GAAG,IAAI;yBAMlB,QAAQ,CAAC,cAAc;;;;;wBAuBxB,MAAM;;EAsBlC"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
3
|
+
import { DateFormatConfig, CoarTimeValue } from './types';
|
|
4
|
+
interface ZonedDateTimePickerOptions {
|
|
5
|
+
readonly placeholder: string;
|
|
6
|
+
readonly locale?: string;
|
|
7
|
+
readonly dateFormat?: DateFormatConfig;
|
|
8
|
+
readonly min: Temporal.ZonedDateTime | null;
|
|
9
|
+
readonly max: Temporal.ZonedDateTime | null;
|
|
10
|
+
readonly use24Hour: boolean | 'auto';
|
|
11
|
+
readonly minuteStep: 1 | 5 | 10 | 15;
|
|
12
|
+
readonly defaultTime: CoarTimeValue;
|
|
13
|
+
readonly timeZone: string | null;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Internal value logic shared by presentations of the zoned date-time picker.
|
|
17
|
+
* Pass reactive props (or getters) so options remain live. DOM, masking and overlay
|
|
18
|
+
* lifecycle belong to the presentation, not this composable.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useZonedDateTimePicker(modelValue: Ref<Temporal.ZonedDateTime | null>, props: ZonedDateTimePickerOptions): {
|
|
21
|
+
pickerBase: {
|
|
22
|
+
effectiveLocale: import('vue').ComputedRef<string>;
|
|
23
|
+
effectiveDateFormat: import('vue').ComputedRef<DateFormatConfig>;
|
|
24
|
+
separator: import('vue').ComputedRef<"." | "-" | "/">;
|
|
25
|
+
timezone: Readonly<Ref<string, string>>;
|
|
26
|
+
isOpen: Ref<boolean, boolean>;
|
|
27
|
+
open: () => void;
|
|
28
|
+
close: () => void;
|
|
29
|
+
toggle: () => void;
|
|
30
|
+
};
|
|
31
|
+
activeMonth: Ref<{
|
|
32
|
+
readonly era: string | undefined;
|
|
33
|
+
readonly eraYear: number | undefined;
|
|
34
|
+
readonly year: number;
|
|
35
|
+
readonly month: number;
|
|
36
|
+
readonly monthCode: string;
|
|
37
|
+
readonly calendarId: string;
|
|
38
|
+
readonly daysInMonth: number;
|
|
39
|
+
readonly daysInYear: number;
|
|
40
|
+
readonly monthsInYear: number;
|
|
41
|
+
readonly inLeapYear: boolean;
|
|
42
|
+
equals: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string) => boolean;
|
|
43
|
+
with: (yearMonthLike: Temporal.PlainYearMonthLike, options?: Temporal.AssignmentOptions) => Temporal.PlainYearMonth;
|
|
44
|
+
add: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
|
|
45
|
+
subtract: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
|
|
46
|
+
until: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
|
|
47
|
+
since: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
|
|
48
|
+
toPlainDate: (day: {
|
|
49
|
+
day: number;
|
|
50
|
+
}) => Temporal.PlainDate;
|
|
51
|
+
toLocaleString: (locales?: Temporal.LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions) => string;
|
|
52
|
+
toJSON: () => string;
|
|
53
|
+
toString: (options?: Temporal.ShowCalendarOption) => string;
|
|
54
|
+
valueOf: () => never;
|
|
55
|
+
readonly [Symbol.toStringTag]: "Temporal.PlainYearMonth";
|
|
56
|
+
}, Temporal.PlainYearMonth | {
|
|
57
|
+
readonly era: string | undefined;
|
|
58
|
+
readonly eraYear: number | undefined;
|
|
59
|
+
readonly year: number;
|
|
60
|
+
readonly month: number;
|
|
61
|
+
readonly monthCode: string;
|
|
62
|
+
readonly calendarId: string;
|
|
63
|
+
readonly daysInMonth: number;
|
|
64
|
+
readonly daysInYear: number;
|
|
65
|
+
readonly monthsInYear: number;
|
|
66
|
+
readonly inLeapYear: boolean;
|
|
67
|
+
equals: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string) => boolean;
|
|
68
|
+
with: (yearMonthLike: Temporal.PlainYearMonthLike, options?: Temporal.AssignmentOptions) => Temporal.PlainYearMonth;
|
|
69
|
+
add: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
|
|
70
|
+
subtract: (durationLike: Temporal.Duration | Temporal.DurationLike | string, options?: Temporal.ArithmeticOptions) => Temporal.PlainYearMonth;
|
|
71
|
+
until: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
|
|
72
|
+
since: (other: Temporal.PlainYearMonth | Temporal.PlainYearMonthLike | string, options?: Temporal.DifferenceOptions<"year" | "month">) => Temporal.Duration;
|
|
73
|
+
toPlainDate: (day: {
|
|
74
|
+
day: number;
|
|
75
|
+
}) => Temporal.PlainDate;
|
|
76
|
+
toLocaleString: (locales?: Temporal.LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions) => string;
|
|
77
|
+
toJSON: () => string;
|
|
78
|
+
toString: (options?: Temporal.ShowCalendarOption) => string;
|
|
79
|
+
valueOf: () => never;
|
|
80
|
+
readonly [Symbol.toStringTag]: "Temporal.PlainYearMonth";
|
|
81
|
+
}>;
|
|
82
|
+
pendingTime: Ref<{
|
|
83
|
+
readonly hours: number;
|
|
84
|
+
readonly minutes: number;
|
|
85
|
+
} | null, CoarTimeValue | {
|
|
86
|
+
readonly hours: number;
|
|
87
|
+
readonly minutes: number;
|
|
88
|
+
} | null>;
|
|
89
|
+
displayTimeZone: Ref<string | null, string | null>;
|
|
90
|
+
displayValue: Ref<string, string>;
|
|
91
|
+
userTimeZone: import('vue').ComputedRef<string>;
|
|
92
|
+
valueTimeZone: import('vue').ComputedRef<string | null>;
|
|
93
|
+
effectiveDisplayTimeZone: import('vue').ComputedRef<string>;
|
|
94
|
+
effectiveDefaultTimeZone: import('vue').ComputedRef<string>;
|
|
95
|
+
locationDiffersFromUser: import('vue').ComputedRef<boolean>;
|
|
96
|
+
timeZonesDiffer: import('vue').ComputedRef<boolean>;
|
|
97
|
+
timezoneIndicatorState: import('vue').ComputedRef<"home" | "location" | "world">;
|
|
98
|
+
timezoneIndicatorClickable: import('vue').ComputedRef<boolean>;
|
|
99
|
+
currentTimeZoneDisplayName: import('vue').ComputedRef<string>;
|
|
100
|
+
valueTimeZoneLabel: import('vue').ComputedRef<string>;
|
|
101
|
+
allTimezones: string[];
|
|
102
|
+
effectiveUse24Hour: import('vue').ComputedRef<boolean>;
|
|
103
|
+
inputPlaceholder: import('vue').ComputedRef<string>;
|
|
104
|
+
workingTimeZone: import('vue').ComputedRef<string>;
|
|
105
|
+
valueInWorkingTz: import('vue').ComputedRef<Temporal.ZonedDateTime | null>;
|
|
106
|
+
selectedDate: import('vue').ComputedRef<Temporal.PlainDate | null>;
|
|
107
|
+
selectedTime: import('vue').ComputedRef<CoarTimeValue | null>;
|
|
108
|
+
minDate: import('vue').ComputedRef<Temporal.PlainDate | null>;
|
|
109
|
+
maxDate: import('vue').ComputedRef<Temporal.PlainDate | null>;
|
|
110
|
+
effectiveMinTime: import('vue').ComputedRef<CoarTimeValue | null>;
|
|
111
|
+
effectiveMaxTime: import('vue').ComputedRef<CoarTimeValue | null>;
|
|
112
|
+
isPrevYearDisabled: import('vue').ComputedRef<boolean>;
|
|
113
|
+
isNextYearDisabled: import('vue').ComputedRef<boolean>;
|
|
114
|
+
today: import('vue').ComputedRef<Temporal.PlainDate>;
|
|
115
|
+
formatValue: (val: Temporal.ZonedDateTime) => string;
|
|
116
|
+
formatValueInValueTz: () => string;
|
|
117
|
+
parseValueFromInput: (text: string) => Temporal.ZonedDateTime | null;
|
|
118
|
+
selectDate: (date: Temporal.PlainDate) => void;
|
|
119
|
+
changeTime: (time: CoarTimeValue | null) => void;
|
|
120
|
+
selectMonth: (month: Temporal.PlainYearMonth) => void;
|
|
121
|
+
previousYear: () => void;
|
|
122
|
+
nextYear: () => void;
|
|
123
|
+
scrollToTodayMonth: () => void;
|
|
124
|
+
selectDisplayTimezone: (tzId: string) => void;
|
|
125
|
+
changeValueTimezone: (newTzId: string) => void;
|
|
126
|
+
toggleDisplayTimezone: () => void;
|
|
127
|
+
clearValue: () => void;
|
|
128
|
+
changeInput: (text: string) => void;
|
|
129
|
+
blurInput: () => void;
|
|
130
|
+
};
|
|
131
|
+
export {};
|
|
132
|
+
//# sourceMappingURL=use-zoned-date-time-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-zoned-date-time-picker.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/_shared/use-zoned-date-time-picker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,GAAG,EAA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arPlainDatePicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/plain-date-picker/CoarPlainDatePicker.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarPlainDatePicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/plain-date-picker/CoarPlainDatePicker.vue"],"names":[],"mappings":"AAudA,OAAO,EAGL,QAAQ,EAOT,MAAM,KAAK,CAAC;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAajD,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIzE,MAAM,MAAM,uBAAuB,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE7D,KAAK,WAAW,GAAG;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;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,oEAAoE;IACpE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,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;AAyOJ,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;CACtC,GAAG,WAAW,CAAC;;;;;;;;;;WAlQJ,OAAO;QAEV,MAAM;UAdJ,uBAAuB;cAMnB,OAAO;cAJP,OAAO;iBAJJ,MAAM;SAkCd,QAAQ,CAAC,SAAS,GAAG,IAAI;cA5BpB,OAAO;eAYN,OAAO;SAcb,QAAQ,CAAC,SAAS,GAAG,IAAI;YAJtB,MAAM;qBANG,OAAO;uBAEL,OAAO;aAEjB,cAAc,EAAE;0BAUH,OAAO;mBAhBd,OAAO;gBAUV,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAsR7B,GAAD,8CAGiB,GAAG,yBAAyB,GAAG,6DAE7C,GAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwKR,wBAUG"}
|
package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarPlainDateTimePicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarPlainDateTimePicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue"],"names":[],"mappings":"AAyhBA,OAAO,EAAoB,QAAQ,EAA6D,MAAM,KAAK,CAAC;AAE5G,OAAO,EAAE,QAAQ,EA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1C,GAAG,WAAW,CAAC;;;;;;;;;;WAxWJ,OAAO;QAEV,MAAM;UAVJ,2BAA2B;cAGvB,OAAO;cAFP,OAAO;iBAFJ,MAAM;SAqBd,QAAQ,CAAC,aAAa,GAAG,IAAI;cAlBxB,OAAO;eASN,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAkXnB,GAAE,8CAER,GACL,yBAAyB,GAAG,6DAClB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiLd,wBAUG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarScrollableCalendar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/scrollable-calendar/CoarScrollableCalendar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarScrollableCalendar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/scrollable-calendar/CoarScrollableCalendar.vue"],"names":[],"mappings":"AAgjCA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAIjD,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAUzE,iDAAiD;AACjD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC;IAClC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC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,IAAI;YAItB,MAAM;sBAEI,gBAAgB;qBAEjB,OAAO;uBAEL,OAAO;aAEjB,cAAc,EAAE;;;;AA6xB9B,wBAUG"}
|
package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarZonedDateTimePicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarZonedDateTimePicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue"],"names":[],"mappings":"AAqmBA,OAAO,EAAoB,QAAQ,EAA6D,MAAM,KAAK,CAAC;AAE5G,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAajD,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAIxF,MAAM,MAAM,2BAA2B,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAEjE,KAAK,WAAW,GAAG;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;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,oEAAoE;IACpE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,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,UAA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;;;;;;;;;;;;;;;;;;AA4dL,wBAUG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: Readonly<{
|
|
4
|
+
default(): unknown;
|
|
5
|
+
}> & {
|
|
6
|
+
default(): unknown;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=CoarDialogFooter.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarDialogFooter.vue.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/CoarDialogFooter.vue"],"names":[],"mappings":"AA6DA,iBAAS,cAAc;WAkCT,OAAO,IAA6B;;mBA1CL,OAAO;;mBAAP,OAAO;;;;EA+CnD;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -23,6 +23,7 @@ declare function __VLS_template(): {
|
|
|
23
23
|
};
|
|
24
24
|
refs: {
|
|
25
25
|
dialogRef: HTMLDivElement;
|
|
26
|
+
footerRef: HTMLDivElement;
|
|
26
27
|
};
|
|
27
28
|
rootEl: HTMLDivElement;
|
|
28
29
|
};
|
|
@@ -33,6 +34,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
33
34
|
onClose?: ((result?: unknown) => any) | undefined;
|
|
34
35
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
35
36
|
dialogRef: HTMLDivElement;
|
|
37
|
+
footerRef: HTMLDivElement;
|
|
36
38
|
}, HTMLDivElement>;
|
|
37
39
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
40
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarDialogShell.vue.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/CoarDialogShell.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarDialogShell.vue.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/CoarDialogShell.vue"],"names":[],"mappings":"AA8MA,OAAO,EAAiB,KAAK,SAAS,EAAK,MAAM,KAAK,CAAC;AAEvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAOjD,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,UAAU,CAAC;IACjB,eAAe,EAAE,OAAO,CAAC;IACzB,kEAAkE;IAClE,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,SAAS,GAAG,QAAQ,CAAC;IACrC,+EAA+E;IAC/E,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,sCAAsC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC9C,CAAC;AAmCF,iBAAS,cAAc;WAmKT,OAAO,IAA6B;;yBAbpB,GAAG;wBACJ,GAAG;;;;;;;EAiB/B;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;kBASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { DialogSize } from './dialog-types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
title: string;
|
|
5
|
+
/** Caps the width from a 640 px wide window on; below the sheet spans the full width. */
|
|
6
|
+
size: DialogSize;
|
|
7
|
+
showCloseButton: boolean;
|
|
8
|
+
/** Whether dragging the handle or header down closes the sheet. */
|
|
9
|
+
dragToClose: boolean;
|
|
10
|
+
/** When true, renders built-in confirm UI (message + buttons). */
|
|
11
|
+
confirmMode: boolean;
|
|
12
|
+
confirmMessage: string;
|
|
13
|
+
confirmText: string;
|
|
14
|
+
/** Empty: no cancel button (alert). */
|
|
15
|
+
cancelText: string;
|
|
16
|
+
confirmVariant: 'primary' | 'danger';
|
|
17
|
+
/** Optional body component for programmatic rendering (falls back to slot). */
|
|
18
|
+
bodyComponent?: Component;
|
|
19
|
+
/** Props to pass to bodyComponent. */
|
|
20
|
+
bodyComponentProps?: Record<string, unknown>;
|
|
21
|
+
};
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
attrs: Partial<{}>;
|
|
24
|
+
slots: {
|
|
25
|
+
default?(_: {}): any;
|
|
26
|
+
footer?(_: {}): any;
|
|
27
|
+
};
|
|
28
|
+
refs: {
|
|
29
|
+
sheetRef: HTMLDivElement;
|
|
30
|
+
footerRef: HTMLDivElement;
|
|
31
|
+
};
|
|
32
|
+
rootEl: HTMLDivElement;
|
|
33
|
+
};
|
|
34
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
35
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
|
+
close: (result?: unknown) => any;
|
|
37
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
38
|
+
onClose?: ((result?: unknown) => any) | undefined;
|
|
39
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
40
|
+
sheetRef: HTMLDivElement;
|
|
41
|
+
footerRef: HTMLDivElement;
|
|
42
|
+
}, HTMLDivElement>;
|
|
43
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=CoarSheetShell.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarSheetShell.vue.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/CoarSheetShell.vue"],"names":[],"mappings":"AAqZA;;;;;;GAMG;AACH,OAAO,EAAiE,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AAEpG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAUjD,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,yFAAyF;IACzF,IAAI,EAAE,UAAU,CAAC;IACjB,eAAe,EAAE,OAAO,CAAC;IACzB,mEAAmE;IACnE,WAAW,EAAE,OAAO,CAAC;IACrB,kEAAkE;IAClE,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,uCAAuC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,SAAS,GAAG,QAAQ,CAAC;IACrC,+EAA+E;IAC/E,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,sCAAsC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC9C,CAAC;AA0IF,iBAAS,cAAc;WAuMT,OAAO,IAA6B;;yBAbpB,GAAG;wBACJ,GAAG;;;;;;;EAiB/B;AA0BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;kBASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|