impact-nova 2.5.16 → 2.6.0-alpha.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/README.md +27 -25
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +28 -1
- package/dist/components/data/ag-grid-react/cell-renderers/date-display-renderer.d.ts +0 -3
- package/dist/components/data/ag-grid-react/cell-renderers/date-display-renderer.js +31 -38
- package/dist/components/data/ag-grid-react/cell-renderers/input-display-renderer.d.ts +1 -1
- package/dist/components/data/ag-grid-react/chat/chat-capabilities.d.ts +9 -0
- package/dist/components/data/ag-grid-react/chat/chat-capabilities.js +22 -0
- package/dist/components/data/ag-grid-react/chat/chat-column.d.ts +20 -0
- package/dist/components/data/ag-grid-react/chat/chat-column.js +81 -0
- package/dist/components/data/ag-grid-react/chat/chat-composer.d.ts +10 -0
- package/dist/components/data/ag-grid-react/chat/chat-composer.js +352 -0
- package/dist/components/data/ag-grid-react/chat/chat-constants.d.ts +17 -0
- package/dist/components/data/ag-grid-react/chat/chat-constants.js +22 -0
- package/dist/components/data/ag-grid-react/chat/chat-format.d.ts +41 -0
- package/dist/components/data/ag-grid-react/chat/chat-format.js +94 -0
- package/dist/components/data/ag-grid-react/chat/chat-host.d.ts +10 -0
- package/dist/components/data/ag-grid-react/chat/chat-host.js +651 -0
- package/dist/components/data/ag-grid-react/chat/chat-host.types.d.ts +13 -0
- package/dist/components/data/ag-grid-react/chat/chat-html.d.ts +2 -0
- package/dist/components/data/ag-grid-react/chat/chat-html.js +40 -0
- package/dist/components/data/ag-grid-react/chat/chat-identity.d.ts +13 -0
- package/dist/components/data/ag-grid-react/chat/chat-identity.js +24 -0
- package/dist/components/data/ag-grid-react/chat/chat-menu.d.ts +13 -0
- package/dist/components/data/ag-grid-react/chat/chat-menu.js +15 -0
- package/dist/components/data/ag-grid-react/chat/chat-notify.d.ts +17 -0
- package/dist/components/data/ag-grid-react/chat/chat-notify.js +124 -0
- package/dist/components/data/ag-grid-react/chat/chat-persist.d.ts +13 -0
- package/dist/components/data/ag-grid-react/chat/chat-persist.js +34 -0
- package/dist/components/data/ag-grid-react/chat/chat-priority.d.ts +13 -0
- package/dist/components/data/ag-grid-react/chat/chat-priority.js +79 -0
- package/dist/components/data/ag-grid-react/chat/chat-summaries.d.ts +2 -0
- package/dist/components/data/ag-grid-react/chat/chat-summaries.js +24 -0
- package/dist/components/data/ag-grid-react/chat/chat-thread-ui.d.ts +72 -0
- package/dist/components/data/ag-grid-react/chat/chat-thread-ui.js +713 -0
- package/dist/components/data/ag-grid-react/chat/chat-toggle.d.ts +6 -0
- package/dist/components/data/ag-grid-react/chat/chat-toggle.js +25 -0
- package/dist/components/data/ag-grid-react/chat/chat-ui-actions.d.ts +13 -0
- package/dist/components/data/ag-grid-react/chat/chat-ui-actions.js +26 -0
- package/dist/components/data/ag-grid-react/chat/chat-window.d.ts +14 -0
- package/dist/components/data/ag-grid-react/chat/chat-window.js +82 -0
- package/dist/components/data/ag-grid-react/chat/chat-workspace.d.ts +91 -0
- package/dist/components/data/ag-grid-react/chat/chat-workspace.js +555 -0
- package/dist/components/data/ag-grid-react/chat/chat.types.d.ts +319 -0
- package/dist/components/data/ag-grid-react/chat/index.d.ts +6 -0
- package/dist/components/data/ag-grid-react/chat/index.js +24 -0
- package/dist/components/data/ag-grid-react/chat.story-data.d.ts +34 -0
- package/dist/components/data/ag-grid-react/chat.story-sources.d.ts +4 -0
- package/dist/components/data/ag-grid-react/comments/assets/comments-no-results.png.js +4 -0
- package/dist/components/data/ag-grid-react/comments/comment-mode-toggle.d.ts +6 -0
- package/dist/components/data/ag-grid-react/comments/comment-mode-toggle.js +29 -0
- package/dist/components/data/ag-grid-react/comments/comments-actions-menu.d.ts +8 -0
- package/dist/components/data/ag-grid-react/comments/comments-actions-menu.js +18 -0
- package/dist/components/data/ag-grid-react/comments/comments-ag-grid-presence.d.ts +18 -0
- package/dist/components/data/ag-grid-react/comments/comments-ag-grid-presence.js +16 -0
- package/dist/components/data/ag-grid-react/comments/comments-capabilities.d.ts +11 -0
- package/dist/components/data/ag-grid-react/comments/comments-capabilities.js +26 -0
- package/dist/components/data/ag-grid-react/comments/comments-constants.d.ts +12 -0
- package/dist/components/data/ag-grid-react/comments/comments-constants.js +21 -0
- package/dist/components/data/ag-grid-react/comments/comments-format.d.ts +20 -0
- package/dist/components/data/ag-grid-react/comments/comments-format.js +49 -0
- package/dist/components/data/ag-grid-react/comments/comments-generation.d.ts +14 -0
- package/dist/components/data/ag-grid-react/comments/comments-generation.js +18 -0
- package/dist/components/data/ag-grid-react/comments/comments-host.d.ts +10 -0
- package/dist/components/data/ag-grid-react/comments/comments-host.js +343 -0
- package/dist/components/data/ag-grid-react/comments/comments-host.types.d.ts +18 -0
- package/dist/components/data/ag-grid-react/comments/comments-identity.d.ts +7 -0
- package/dist/components/data/ag-grid-react/comments/comments-identity.js +20 -0
- package/dist/components/data/ag-grid-react/comments/comments-menu.d.ts +29 -0
- package/dist/components/data/ag-grid-react/comments/comments-menu.js +35 -0
- package/dist/components/data/ag-grid-react/comments/comments-overlay-anchor.d.ts +22 -0
- package/dist/components/data/ag-grid-react/comments/comments-overlay-anchor.js +98 -0
- package/dist/components/data/ag-grid-react/comments/comments-overlay.d.ts +21 -0
- package/dist/components/data/ag-grid-react/comments/comments-overlay.js +406 -0
- package/dist/components/data/ag-grid-react/comments/comments-panel.d.ts +9 -0
- package/dist/components/data/ag-grid-react/comments/comments-panel.js +272 -0
- package/dist/components/data/ag-grid-react/comments/comments-persist.d.ts +11 -0
- package/dist/components/data/ag-grid-react/comments/comments-persist.js +19 -0
- package/dist/components/data/ag-grid-react/comments/comments-reveal.d.ts +11 -0
- package/dist/components/data/ag-grid-react/comments/comments-reveal.js +31 -0
- package/dist/components/data/ag-grid-react/comments/comments-ui-actions.d.ts +18 -0
- package/dist/components/data/ag-grid-react/comments/comments-ui-actions.js +22 -0
- package/dist/components/data/ag-grid-react/comments/comments-window.d.ts +10 -0
- package/dist/components/data/ag-grid-react/comments/comments-window.js +62 -0
- package/dist/components/data/ag-grid-react/comments/comments.types.d.ts +178 -0
- package/dist/components/data/ag-grid-react/comments/index.d.ts +5 -0
- package/dist/components/data/ag-grid-react/comments/index.js +15 -0
- package/dist/components/data/ag-grid-react/comments-cell-renderers-showcase.d.ts +25 -0
- package/dist/components/data/ag-grid-react/comments.story-data.d.ts +37 -0
- package/dist/components/data/ag-grid-react/comments.story-sources.d.ts +11 -0
- package/dist/components/data/ag-grid-react/grid-cell-address.d.ts +21 -0
- package/dist/components/data/ag-grid-react/grid-cell-address.js +21 -0
- package/dist/components/data/ag-grid-react/grid-row-reveal.d.ts +34 -0
- package/dist/components/data/ag-grid-react/grid-row-reveal.js +33 -0
- package/dist/components/data/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +75 -65
- package/dist/components/data/ag-grid-react/headers/advanced-filter/column-filter-section.d.ts +1 -1
- package/dist/components/data/ag-grid-react/headers/advanced-filter/column-filter-section.js +54 -54
- package/dist/components/data/ag-grid-react/headers/components/date-filter-picker.d.ts +1 -1
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +122 -119
- package/dist/components/data/ag-grid-react/headers/utils/date-utils.d.ts +2 -1
- package/dist/components/data/ag-grid-react/headers/utils/date-utils.js +25 -20
- package/dist/components/data/ag-grid-react/headers/utils/filter-utils.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +481 -254
- package/dist/components/data/ag-grid-react/notes/index.d.ts +2 -0
- package/dist/components/data/ag-grid-react/notes/index.js +1 -0
- package/dist/components/data/ag-grid-react/notes/notes-ag-grid-adapter.d.ts +25 -0
- package/dist/components/data/ag-grid-react/notes/notes-ag-grid-adapter.js +32 -0
- package/dist/components/data/ag-grid-react/notes/notes-constants.d.ts +2 -0
- package/dist/components/data/ag-grid-react/notes/notes-constants.js +4 -0
- package/dist/components/data/ag-grid-react/notes/notes.types.d.ts +12 -0
- package/dist/components/data/ag-grid-react/notes.story-sources.d.ts +7 -0
- package/dist/components/data/ag-grid-react/nova-system-column.d.ts +7 -0
- package/dist/components/data/ag-grid-react/nova-system-column.js +18 -0
- package/dist/components/data/ag-grid-react/theme.js +6 -2
- package/dist/components/data/ag-grid-react/value-formatter.types.d.ts +4 -0
- package/dist/components/data/ag-grid-react/value-formatters.d.ts +0 -19
- package/dist/components/data/ag-grid-react/value-formatters.js +88 -90
- package/dist/components/data/data-table/build-column-tree-from-grid.d.ts +0 -1
- package/dist/components/data/data-table/build-column-tree-from-grid.js +49 -53
- package/dist/components/data/data-table/data-table-column-apply.d.ts +0 -2
- package/dist/components/data/data-table/data-table-column-apply.js +73 -84
- package/dist/components/data/data-table/data-table-column-def-pin.js +34 -31
- package/dist/components/data/data-table/data-table-column-list.js +64 -94
- package/dist/components/data/data-table/data-table-column-tree-cache.d.ts +6 -12
- package/dist/components/data/data-table/data-table-column-tree-cache.js +131 -250
- package/dist/components/data/data-table/data-table-context.js +5 -5
- package/dist/components/data/data-table/data-table-sheet-context.js +1 -1
- package/dist/components/data/data-table/data-table-sheet.js +2 -1
- package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.d.ts +0 -5
- package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.js +11 -28
- package/dist/components/data/data-table/use-data-table-column-list-sync.d.ts +0 -10
- package/dist/components/data/data-table/use-data-table-column-list-sync.js +196 -250
- package/dist/components/data/nested-list/components/NestedListContent.d.ts +2 -10
- package/dist/components/data/nested-list/components/NestedListContent.js +138 -253
- package/dist/components/data/nested-list/components/SortableItem.d.ts +1 -2
- package/dist/components/data/nested-list/components/SortableItem.js +60 -62
- package/dist/components/data/nested-list/hooks/useNestedListDragDrop.d.ts +20 -10
- package/dist/components/data/nested-list/hooks/useNestedListDragDrop.js +233 -44
- package/dist/components/data/nested-list/nested-list-constants.d.ts +1 -4
- package/dist/components/data/nested-list/nested-list-constants.js +4 -10
- package/dist/components/data/nested-list/nested-list.js +336 -322
- package/dist/components/data/nested-list/nested-list.types.d.ts +0 -17
- package/dist/components/data-display/calendar/calendar-config.js +22 -21
- package/dist/components/data-display/calendar/calendar-day-button.js +21 -21
- package/dist/components/data-display/calendar/calendar-day-picker-view.js +36 -35
- package/dist/components/data-display/calendar/calendar-fiscal-labels.d.ts +3 -3
- package/dist/components/data-display/calendar/calendar-fiscal-labels.js +50 -62
- package/dist/components/data-display/calendar/calendar.js +138 -137
- package/dist/components/data-display/calendar/fiscal-period-caption-select.js +23 -22
- package/dist/components/data-display/calendar/use-calendar-i18n.d.ts +1 -0
- package/dist/components/data-display/calendar/use-calendar-i18n.js +10 -9
- package/dist/components/data-display/chart/chart.js +72 -72
- package/dist/components/data-display/chart/chart.utils.d.ts +1 -1
- package/dist/components/data-display/chart/chart.utils.js +40 -31
- package/dist/components/feedback/sheet/sheet.js +1 -1
- package/dist/components/feedback/toast/toast.d.ts +1 -1
- package/dist/components/feedback/toast/toast.variants.d.ts +1 -1
- package/dist/components/flows/filter-panel/filter-panel.d.ts +1 -1
- package/dist/components/flows/filter-panel/filter-panel.js +65 -64
- package/dist/components/flows/filter-panel/filter-panel.types.d.ts +1 -0
- package/dist/components/forms/date-picker/date-picker.js +125 -126
- package/dist/components/forms/date-picker/date-range-picker.js +191 -192
- package/dist/components/forms/date-picker/multi-date-picker.js +66 -67
- package/dist/components/forms/date-picker/multi-week-picker.js +82 -83
- package/dist/components/forms/date-picker/use-picker-i18n.d.ts +6 -0
- package/dist/components/forms/date-picker/use-picker-i18n.js +11 -0
- package/dist/components/forms/date-picker/week-picker.js +146 -147
- package/dist/components/forms/date-picker/week-range-picker.js +158 -159
- package/dist/components/ui/local-raster-icons/message3d.webp.js +4 -0
- package/dist/components/ui/local-raster-icons/rasterIcons.d.ts +1 -0
- package/dist/components/ui/local-raster-icons/rasterIcons.js +27 -25
- package/dist/form-react/Fields/WeekRangePicker.js +16 -16
- package/dist/i18n/defaultMessages.d.ts +144 -0
- package/dist/i18n/defaultMessages.js +161 -19
- package/dist/i18n/format/collator.d.ts +1 -0
- package/dist/i18n/format/collator.js +7 -0
- package/dist/i18n/format/date-pattern.d.ts +5 -0
- package/dist/i18n/format/date-pattern.js +20 -0
- package/dist/i18n/format/format-date.d.ts +9 -0
- package/dist/i18n/format/format-date.js +56 -0
- package/dist/i18n/format/format-number.d.ts +20 -0
- package/dist/i18n/format/format-number.js +68 -0
- package/dist/i18n/format/formatter-cache.d.ts +9 -0
- package/dist/i18n/format/formatter-cache.js +66 -0
- package/dist/i18n/format/index.d.ts +6 -0
- package/dist/i18n/format/parse-number.d.ts +6 -0
- package/dist/i18n/format/parse-number.js +53 -0
- package/dist/i18n/getDateFnsLocale.d.ts +5 -4
- package/dist/i18n/getDateFnsLocale.js +46 -16
- package/dist/i18n/i18n.types.d.ts +13 -0
- package/dist/i18n/impact-nova-i18n-context.d.ts +1 -1
- package/dist/i18n/impact-nova-i18n-context.js +33 -25
- package/dist/i18n/impact-nova-i18n-defaults.js +8 -6
- package/dist/i18n/index.d.ts +4 -1
- package/dist/i18n/index.js +41 -16
- package/dist/i18n/locale-config.d.ts +28 -0
- package/dist/i18n/locale-config.js +32 -0
- package/dist/i18n/locales/de.js +142 -0
- package/dist/i18n/locales/es.js +142 -0
- package/dist/i18n/locales/hi.js +142 -0
- package/dist/i18n/locales/kn.js +142 -0
- package/dist/i18n/week-start.d.ts +6 -0
- package/dist/i18n/week-start.js +30 -0
- package/dist/impact-nova-components.css +249 -0
- package/dist/impact-nova-tokens.scss +6 -0
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +624 -601
- package/dist/llms/index.js +26 -2
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/best-practices.js +1 -1
- package/dist/llms/rules/data-table-chat.js +1 -0
- package/dist/llms/rules/data-table-comments.js +1 -0
- package/dist/llms/rules/data-table-notes.js +1 -0
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/migration.js +1 -1
- package/dist/llms/rules/real-world-patterns.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/llms/rules/troubleshooting.js +1 -1
- package/dist/providers/app-providers.d.ts +3 -1
- package/dist/providers/app-providers.js +22 -11
- package/package.json +13 -1
- package/dist/components/data/data-table/column-picker-authority.d.ts +0 -34
- package/dist/components/data/data-table/column-picker-authority.js +0 -116
- package/dist/components/data/data-table/column-picker-drop-validation.d.ts +0 -7
- package/dist/components/data/data-table/column-picker-drop-validation.js +0 -37
- package/dist/components/data/data-table/data-table-column-list-tree-apply.d.ts +0 -10
- package/dist/components/data/data-table/data-table-column-list-tree-apply.js +0 -79
- package/dist/components/data/data-table/data-table-flat-column-virtual-rows.d.ts +0 -26
- package/dist/components/data/data-table/data-table-flat-column-virtual-rows.js +0 -195
- package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +0 -1
- package/dist/components/data/data-table/data-table-picker-column-eligibility.js +0 -7
- package/dist/components/data/data-table/reconcile-column-tree-from-grid.d.ts +0 -12
- package/dist/components/data/data-table/reconcile-column-tree-from-grid.js +0 -12
- package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.d.ts +0 -24
- package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.js +0 -128
- package/dist/components/data/nested-list/nested-list-display-utils.d.ts +0 -11
- package/dist/components/data/nested-list/nested-list-display-utils.js +0 -74
- package/dist/components/data/nested-list/nested-list-drop-engine.d.ts +0 -31
- package/dist/components/data/nested-list/nested-list-drop-engine.js +0 -209
- package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.d.ts +0 -26
- package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.js +0 -67
- package/dist/components/data/nested-list/nested-list-item-tree-mutations.d.ts +0 -4
- package/dist/components/data/nested-list/nested-list-item-tree-mutations.js +0 -43
- package/dist/components/data/nested-list/nested-list-lazy-flat-rows.d.ts +0 -3
- package/dist/components/data/nested-list/nested-list-lazy-flat-rows.js +0 -34
- package/dist/components/data/nested-list/nested-list-row-estimates.d.ts +0 -9
- package/dist/components/data/nested-list/nested-list-row-estimates.js +0 -14
- package/dist/components/data/nested-list/nested-list-scroll-anchor.d.ts +0 -36
- package/dist/components/data/nested-list/nested-list-scroll-anchor.js +0 -47
- package/dist/components/data/nested-list/nested-list-virtual-drop.d.ts +0 -59
- package/dist/components/data/nested-list/nested-list-virtual-drop.js +0 -341
- package/dist/lib/hash/fnv1a128.d.ts +0 -16
- package/dist/lib/hash/fnv1a128.js +0 -21
|
@@ -1,51 +1,50 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { Cross as
|
|
4
|
-
import { format as
|
|
5
|
-
import { cn as
|
|
6
|
-
import { usePickerDismissActionsRef as nt, usePickerFooterDismissNudge as
|
|
7
|
-
import { useFieldChrome as
|
|
8
|
-
import { Popover as
|
|
9
|
-
import { Calendar as
|
|
1
|
+
import { jsx as v, jsxs as T } from "react/jsx-runtime";
|
|
2
|
+
import * as f from "react";
|
|
3
|
+
import { Cross as rt, CalendarMonth as ot } from "impact-nova-icons";
|
|
4
|
+
import { format as R } from "date-fns";
|
|
5
|
+
import { cn as J } from "../../../lib/utils.js";
|
|
6
|
+
import { usePickerDismissActionsRef as nt, usePickerFooterDismissNudge as at, createRangePickerOpenChangeHandler as st, parseDateInput as Q, normalizeOrderedRange as it, flashRangeReorder as lt, isDateInputInvalid as se, resolveRangeFieldBlur as V, resolveRangePickerDismissFlash as ct, handlePickerEscapeKeyDown as ie, handlePickerSurfacePointerDown as ft, compareDates as U, deferRangeInputBlur as dt, maskDateInput as le, resolveDateInputOnBlur as O } from "./date-input-behavior.js";
|
|
7
|
+
import { useFieldChrome as mt } from "../../../lib/primitives/use-field-chrome.js";
|
|
8
|
+
import { Popover as pt, PopoverAnchor as ut, PopoverContent as gt } from "../../feedback/popover/popover.js";
|
|
9
|
+
import { Calendar as ht } from "../../data-display/calendar/calendar.js";
|
|
10
10
|
import { Tooltip as ce, TooltipTrigger as fe, TooltipContent as de } from "../../feedback/tooltip/tooltip.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { coerceDateRangeApply as Rt, coerceDateRange as Dt } from "./calendar-selection-adapters.js";
|
|
11
|
+
import { usePickerI18n as vt } from "./use-picker-i18n.js";
|
|
12
|
+
import { coerceDateRangeApply as Rt, coerceDateRange as yt } from "./calendar-selection-adapters.js";
|
|
14
13
|
import { buildDateBoundsMatcher as kt } from "../../../lib/date-bounds-matcher.js";
|
|
15
14
|
import { fiscalCalendarPassThrough as xt } from "./fiscal-pass-through.js";
|
|
16
15
|
import { isDateRangeArray as I } from "../../data-display/calendar/calendar-interval-utils.js";
|
|
17
|
-
function
|
|
18
|
-
if (
|
|
19
|
-
return I(
|
|
16
|
+
function me(s) {
|
|
17
|
+
if (s)
|
|
18
|
+
return I(s) ? s[s.length - 1] : s;
|
|
20
19
|
}
|
|
21
|
-
function
|
|
22
|
-
if (!
|
|
23
|
-
if (!
|
|
24
|
-
const
|
|
25
|
-
return !!(
|
|
20
|
+
function Dt(s, c) {
|
|
21
|
+
if (!s && !c) return !0;
|
|
22
|
+
if (!s || !c) return !1;
|
|
23
|
+
const K = !s.from && !c.from || s.from && c.from && U(s.from, c.from) === 0, j = !s.to && !c.to || s.to && c.to && U(s.to, c.to) === 0;
|
|
24
|
+
return !!(K && j);
|
|
26
25
|
}
|
|
27
|
-
const
|
|
26
|
+
const Ct = f.forwardRef(
|
|
28
27
|
({
|
|
29
|
-
value:
|
|
30
|
-
onChange:
|
|
31
|
-
format:
|
|
32
|
-
startPlaceholder:
|
|
33
|
-
endPlaceholder:
|
|
34
|
-
minDate:
|
|
28
|
+
value: s,
|
|
29
|
+
onChange: c,
|
|
30
|
+
format: K,
|
|
31
|
+
startPlaceholder: j,
|
|
32
|
+
endPlaceholder: pe,
|
|
33
|
+
minDate: ue,
|
|
35
34
|
maxDate: ge,
|
|
36
|
-
startMonth:
|
|
37
|
-
endMonth:
|
|
35
|
+
startMonth: he,
|
|
36
|
+
endMonth: ve,
|
|
38
37
|
showFooter: g = !0,
|
|
39
|
-
weekStartsOn:
|
|
38
|
+
weekStartsOn: W,
|
|
40
39
|
disabled: d,
|
|
41
|
-
label:
|
|
42
|
-
helperText:
|
|
43
|
-
helperTextPosition:
|
|
44
|
-
prefix:
|
|
45
|
-
prefixClick:
|
|
46
|
-
isError:
|
|
47
|
-
error:
|
|
48
|
-
size:
|
|
40
|
+
label: Re,
|
|
41
|
+
helperText: ye,
|
|
42
|
+
helperTextPosition: ke = "absolute",
|
|
43
|
+
prefix: Pt,
|
|
44
|
+
prefixClick: bt,
|
|
45
|
+
isError: xe,
|
|
46
|
+
error: De,
|
|
47
|
+
size: X,
|
|
49
48
|
required: Ce,
|
|
50
49
|
className: Pe,
|
|
51
50
|
calendarKind: be,
|
|
@@ -59,236 +58,236 @@ const Pt = c.forwardRef(
|
|
|
59
58
|
autoNavigateToAvailable: Ae,
|
|
60
59
|
comparison: Ve,
|
|
61
60
|
onComparisonChange: Oe,
|
|
62
|
-
mode:
|
|
63
|
-
onRangesChange:
|
|
64
|
-
...
|
|
65
|
-
},
|
|
66
|
-
const {
|
|
67
|
-
label:
|
|
68
|
-
helperText:
|
|
69
|
-
helperTextPosition:
|
|
61
|
+
mode: M = "range",
|
|
62
|
+
onRangesChange: q,
|
|
63
|
+
...Ke
|
|
64
|
+
}, je) => {
|
|
65
|
+
const { dateFnsLocale: n, dateFormat: o, t: b } = vt(K), Y = j ?? b("datePicker.startDate"), Z = pe ?? b("datePicker.endDate"), _ = De ?? xe, Me = mt({
|
|
66
|
+
label: Re,
|
|
67
|
+
helperText: ye,
|
|
68
|
+
helperTextPosition: ke,
|
|
70
69
|
error: _,
|
|
71
70
|
required: Ce,
|
|
72
71
|
disabled: d ?? void 0,
|
|
73
72
|
rootClassName: "w-full min-w-[240px]"
|
|
74
|
-
}),
|
|
75
|
-
|
|
76
|
-
const
|
|
77
|
-
I(
|
|
78
|
-
), [
|
|
79
|
-
I(
|
|
80
|
-
), [
|
|
81
|
-
|
|
82
|
-
const e =
|
|
83
|
-
|
|
84
|
-
}, [
|
|
85
|
-
const Je =
|
|
86
|
-
(e) =>
|
|
73
|
+
}), z = f.useRef(null), $ = f.useRef(null), F = f.useRef(null), N = f.useRef(null), H = f.useRef(null);
|
|
74
|
+
f.useImperativeHandle(je, () => z.current);
|
|
75
|
+
const i = me(s), [m, u] = f.useState(!1), ee = nt(), { footerFlashKey: qe, footerFlashTarget: ze, popoverHandlers: He } = at(g, m, ee, F), E = f.useRef(!1), [p, y] = f.useState(i), [te, B] = f.useState(
|
|
76
|
+
I(s) ? s : void 0
|
|
77
|
+
), [Le, L] = f.useState(
|
|
78
|
+
I(s) ? s : void 0
|
|
79
|
+
), [h, x] = f.useState(i?.from ? R(i.from, o, { locale: n }) : ""), [k, D] = f.useState(i?.to ? R(i.to, o, { locale: n }) : ""), [Ge, w] = f.useState(i?.from || /* @__PURE__ */ new Date()), C = i?.from ? R(i.from, o, { locale: n }) : "", P = i?.to ? R(i.to, o, { locale: n }) : "";
|
|
80
|
+
f.useEffect(() => {
|
|
81
|
+
const e = me(s);
|
|
82
|
+
x(e?.from ? R(e.from, o, { locale: n }) : ""), D(e?.to ? R(e.to, o, { locale: n }) : ""), y(e), B(I(s) ? s : void 0), L(I(s) ? s : void 0);
|
|
83
|
+
}, [s, o, n]);
|
|
84
|
+
const Je = f.useCallback(
|
|
85
|
+
(e) => st({
|
|
87
86
|
disabled: d ?? void 0,
|
|
88
87
|
showFooter: g,
|
|
89
88
|
containerRef: N,
|
|
90
|
-
popoverContentRef:
|
|
91
|
-
setOpen:
|
|
89
|
+
popoverContentRef: H,
|
|
90
|
+
setOpen: u
|
|
92
91
|
})(e),
|
|
93
92
|
[d, g]
|
|
94
|
-
),
|
|
95
|
-
|
|
96
|
-
if (
|
|
97
|
-
const e =
|
|
98
|
-
e.parsed ? w(e.parsed) :
|
|
93
|
+
), re = f.useRef(!1);
|
|
94
|
+
f.useEffect(() => {
|
|
95
|
+
if (m && !re.current) {
|
|
96
|
+
const e = Q(h, o, n);
|
|
97
|
+
e.parsed ? w(e.parsed) : p?.from ? w(p.from) : i?.from && w(i.from);
|
|
99
98
|
}
|
|
100
|
-
|
|
101
|
-
}, [
|
|
99
|
+
re.current = m;
|
|
100
|
+
}, [m, h, o, n, p?.from, i?.from]);
|
|
102
101
|
const Qe = (e) => {
|
|
103
102
|
if (I(e)) {
|
|
104
103
|
B(e);
|
|
105
|
-
const
|
|
106
|
-
|
|
104
|
+
const r = e[e.length - 1];
|
|
105
|
+
y(r), r?.from && x(R(r.from, o, { locale: n })), r?.to && D(R(r.to, o, { locale: n })), !g && e.every((a) => a.from && a.to) && (q?.(e), c?.(r), u(!1));
|
|
107
106
|
return;
|
|
108
107
|
}
|
|
109
|
-
const t =
|
|
110
|
-
|
|
111
|
-
}, S =
|
|
112
|
-
const
|
|
113
|
-
return
|
|
114
|
-
}, [
|
|
115
|
-
if (
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
const
|
|
119
|
-
|
|
108
|
+
const t = yt(e);
|
|
109
|
+
y(t), t?.from && x(R(t.from, o, { locale: n })), t?.to && D(R(t.to, o, { locale: n })), g || t?.from && t?.to && t.from.getTime() !== t.to.getTime() && (c?.(t), u(!1));
|
|
110
|
+
}, S = f.useCallback((e, t) => {
|
|
111
|
+
const r = it(e, t, U);
|
|
112
|
+
return r.swapped && (r.from && x(R(r.from, o, { locale: n })), r.to && D(R(r.to, o, { locale: n })), lt(N.current)), { from: r.from, to: r.to };
|
|
113
|
+
}, [o, n]), oe = (e) => {
|
|
114
|
+
if (M === "multi-range") {
|
|
115
|
+
const a = I(e) ? e : te;
|
|
116
|
+
q?.(a);
|
|
117
|
+
const l = a?.[a.length - 1];
|
|
118
|
+
c?.(l), L(a), u(!1);
|
|
120
119
|
return;
|
|
121
120
|
}
|
|
122
|
-
let t = Rt(e,
|
|
121
|
+
let t = Rt(e, p);
|
|
123
122
|
t?.from && !t.to && (t = { from: t.from, to: t.from });
|
|
124
|
-
const
|
|
125
|
-
|
|
123
|
+
const r = S(t?.from, t?.to);
|
|
124
|
+
y({ from: r.from, to: r.to }), c?.({ from: r.from, to: r.to }), u(!1);
|
|
126
125
|
}, A = () => {
|
|
127
|
-
|
|
128
|
-
},
|
|
129
|
-
|
|
126
|
+
y(i), B(Le), x(i?.from ? R(i.from, o, { locale: n }) : ""), D(i?.to ? R(i.to, o, { locale: n }) : ""), u(!1);
|
|
127
|
+
}, G = () => {
|
|
128
|
+
y(void 0), B(void 0), L(void 0), x(""), D(""), c?.(void 0), q?.(void 0), g || u(!1);
|
|
130
129
|
}, Ue = (e) => {
|
|
131
|
-
const t =
|
|
132
|
-
if (
|
|
133
|
-
const
|
|
134
|
-
|
|
130
|
+
const t = le(e.target.value, o, h);
|
|
131
|
+
if (x(t), t === "") {
|
|
132
|
+
const l = { from: void 0, to: p?.to };
|
|
133
|
+
y(l), g || c?.(l);
|
|
135
134
|
return;
|
|
136
135
|
}
|
|
137
|
-
const { parsed:
|
|
138
|
-
if (
|
|
139
|
-
const
|
|
140
|
-
|
|
136
|
+
const { parsed: r, isValid: a } = Q(t, o, n);
|
|
137
|
+
if (a && r) {
|
|
138
|
+
const l = { from: r, to: p?.to };
|
|
139
|
+
y(l), w(r), g || c?.(l);
|
|
141
140
|
}
|
|
142
141
|
}, We = (e) => {
|
|
143
|
-
const t =
|
|
144
|
-
if (
|
|
145
|
-
const
|
|
146
|
-
|
|
142
|
+
const t = le(e.target.value, o, k);
|
|
143
|
+
if (D(t), t === "") {
|
|
144
|
+
const l = { from: p?.from, to: void 0 };
|
|
145
|
+
y(l), g || c?.(l);
|
|
147
146
|
return;
|
|
148
147
|
}
|
|
149
|
-
const { parsed:
|
|
150
|
-
if (
|
|
151
|
-
const
|
|
152
|
-
|
|
148
|
+
const { parsed: r, isValid: a } = Q(t, o, n);
|
|
149
|
+
if (a && r) {
|
|
150
|
+
const l = { from: p?.from, to: r };
|
|
151
|
+
y(l), w(r), g || c?.(l);
|
|
153
152
|
}
|
|
154
153
|
}, ne = () => {
|
|
155
154
|
dt(
|
|
156
155
|
N,
|
|
157
|
-
|
|
156
|
+
H,
|
|
158
157
|
() => {
|
|
159
|
-
const e = V(
|
|
160
|
-
e.resetToCommitted ?
|
|
161
|
-
let
|
|
162
|
-
|
|
163
|
-
const
|
|
164
|
-
|
|
158
|
+
const e = V(h, o, C, n), t = V(k, o, P, n);
|
|
159
|
+
e.resetToCommitted ? x(C) : e.parsed && x(e.display), t.resetToCommitted ? D(P) : t.parsed && D(t.display);
|
|
160
|
+
let r = e.parsed ? e.parsed : e.resetToCommitted ? i?.from : p?.from, a = t.parsed ? t.parsed : t.resetToCommitted ? i?.to : p?.to;
|
|
161
|
+
r && a && ({ from: r, to: a } = S(r, a));
|
|
162
|
+
const l = r || a ? { from: r, to: a } : void 0;
|
|
163
|
+
y(l), g || (l ? c?.(l) : !h && !k && c?.(void 0));
|
|
165
164
|
}
|
|
166
165
|
);
|
|
167
166
|
}, Xe = () => {
|
|
168
|
-
const e = O(
|
|
169
|
-
e.resetToCommitted ?
|
|
170
|
-
let
|
|
171
|
-
|
|
172
|
-
const
|
|
173
|
-
|
|
174
|
-
},
|
|
175
|
-
if (
|
|
176
|
-
|
|
167
|
+
const e = O(h, o, C, n), t = O(k, o, P, n);
|
|
168
|
+
e.resetToCommitted ? x(C) : e.parsed && x(e.display), t.resetToCommitted ? D(P) : t.parsed && D(t.display);
|
|
169
|
+
let r = e.parsed ?? p?.from ?? i?.from, a = t.parsed ?? p?.to ?? i?.to;
|
|
170
|
+
r && a && ({ from: r, to: a } = S(r, a));
|
|
171
|
+
const l = r || a ? { from: r, to: a } : void 0;
|
|
172
|
+
l ? (y(l), c?.(l)) : !h && !k && (y(void 0), c?.(void 0));
|
|
173
|
+
}, ae = () => {
|
|
174
|
+
if (m && g) {
|
|
175
|
+
oe();
|
|
177
176
|
return;
|
|
178
177
|
}
|
|
179
|
-
if (!
|
|
178
|
+
if (!m) {
|
|
180
179
|
if (g) {
|
|
181
180
|
Xe();
|
|
182
181
|
return;
|
|
183
182
|
}
|
|
184
|
-
const e = O(
|
|
183
|
+
const e = O(h, o, C, n), t = O(k, o, P, n);
|
|
185
184
|
if (e.parsed || t.parsed) return;
|
|
186
|
-
E.current = !0,
|
|
185
|
+
E.current = !0, u(!0);
|
|
187
186
|
}
|
|
188
|
-
}, Ye =
|
|
189
|
-
const e = V(
|
|
190
|
-
let
|
|
191
|
-
|
|
192
|
-
const
|
|
187
|
+
}, Ye = h !== C, Ze = k !== P, _e = se(h, o, n), $e = se(k, o, n), Fe = f.useCallback(() => {
|
|
188
|
+
const e = V(h, o, C, n), t = V(k, o, P, n);
|
|
189
|
+
let r = e.parsed ? e.parsed : e.resetToCommitted ? i?.from : p?.from, a = t.parsed ? t.parsed : t.resetToCommitted ? i?.to : p?.to;
|
|
190
|
+
r && a && ({ from: r, to: a } = S(r, a));
|
|
191
|
+
const l = r || a ? { from: r, to: a } : void 0;
|
|
193
192
|
return ct({
|
|
194
|
-
startInput:
|
|
195
|
-
endInput:
|
|
193
|
+
startInput: h,
|
|
194
|
+
endInput: k,
|
|
196
195
|
committedStart: C,
|
|
197
196
|
committedEnd: P,
|
|
198
|
-
committedRange:
|
|
199
|
-
pendingRange:
|
|
200
|
-
computeEffectiveRange: () =>
|
|
201
|
-
rangesEqual: (et, tt) =>
|
|
197
|
+
committedRange: s,
|
|
198
|
+
pendingRange: p,
|
|
199
|
+
computeEffectiveRange: () => l,
|
|
200
|
+
rangesEqual: (et, tt) => Dt(et, tt)
|
|
202
201
|
});
|
|
203
202
|
}, [
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
h,
|
|
204
|
+
k,
|
|
206
205
|
C,
|
|
207
206
|
P,
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
207
|
+
i?.from,
|
|
208
|
+
i?.to,
|
|
209
|
+
s,
|
|
210
|
+
p,
|
|
211
|
+
o,
|
|
213
212
|
n,
|
|
214
213
|
S
|
|
215
214
|
]);
|
|
216
|
-
return
|
|
215
|
+
return f.useLayoutEffect(() => {
|
|
217
216
|
ee.current = {
|
|
218
217
|
onDismiss: A,
|
|
219
218
|
resolveFlash: Fe
|
|
220
219
|
};
|
|
221
|
-
}), /* @__PURE__ */
|
|
220
|
+
}), /* @__PURE__ */ v(
|
|
222
221
|
"div",
|
|
223
222
|
{
|
|
224
223
|
ref: F,
|
|
225
224
|
"data-component": "date-range-picker",
|
|
226
225
|
"data-disabled": d || void 0,
|
|
227
|
-
children:
|
|
228
|
-
/* @__PURE__ */ T(
|
|
229
|
-
/* @__PURE__ */
|
|
226
|
+
children: Me.wrapControl(
|
|
227
|
+
/* @__PURE__ */ T(pt, { open: d ? !1 : m, onOpenChange: Je, children: [
|
|
228
|
+
/* @__PURE__ */ v(ut, { asChild: !0, children: /* @__PURE__ */ T(
|
|
230
229
|
"div",
|
|
231
230
|
{
|
|
232
231
|
ref: N,
|
|
233
|
-
"data-state":
|
|
232
|
+
"data-state": m ? "open" : "closed",
|
|
234
233
|
onPointerDown: (e) => ft({
|
|
235
234
|
disabled: d,
|
|
236
235
|
event: e,
|
|
237
|
-
onOpen: () =>
|
|
236
|
+
onOpen: () => u(!0),
|
|
238
237
|
focusField: (t) => {
|
|
239
|
-
t === "end" ? $.current?.focus() :
|
|
238
|
+
t === "end" ? $.current?.focus() : z.current?.focus();
|
|
240
239
|
}
|
|
241
240
|
}),
|
|
242
|
-
className:
|
|
241
|
+
className: J(
|
|
243
242
|
"flex w-full items-center justify-between gap-2 rounded-md border bg-canvas-elevated px-3 text-sm shadow-sm transition-colors hover:border-brand disabled:cursor-not-allowed disabled:bg-disabled-surface disabled:text-disabled-foreground disabled:border-stroke",
|
|
244
243
|
_ ? "border-destructive hover:border-destructive" : "border-field",
|
|
245
|
-
|
|
244
|
+
X === "sm" ? "h-6" : X === "md" ? "h-[28px]" : "h-8",
|
|
246
245
|
d && "pointer-events-none opacity-100 bg-disabled-surface border-stroke text-disabled-foreground hover:border-stroke",
|
|
247
246
|
"cursor-pointer",
|
|
248
247
|
Pe
|
|
249
248
|
),
|
|
250
249
|
children: [
|
|
251
250
|
/* @__PURE__ */ T("div", { className: "flex items-center gap-4 flex-1 min-w-0", children: [
|
|
252
|
-
/* @__PURE__ */
|
|
251
|
+
/* @__PURE__ */ v(
|
|
253
252
|
"input",
|
|
254
253
|
{
|
|
255
|
-
ref:
|
|
254
|
+
ref: z,
|
|
256
255
|
type: "text",
|
|
257
|
-
value:
|
|
256
|
+
value: h,
|
|
258
257
|
onChange: Ue,
|
|
259
258
|
onBlur: ne,
|
|
260
|
-
onClick: () => !d &&
|
|
259
|
+
onClick: () => !d && u(!0),
|
|
261
260
|
onKeyDown: (e) => {
|
|
262
|
-
e.key === "Enter" && !d && (e.preventDefault(),
|
|
261
|
+
e.key === "Enter" && !d && (e.preventDefault(), ae()), e.key === "ArrowDown" && !m && !d && (e.preventDefault(), E.current = !0, u(!0)), e.key === "Escape" && m && ie(e, { open: m, onCancel: A });
|
|
263
262
|
},
|
|
264
|
-
placeholder:
|
|
263
|
+
placeholder: m ? o : Y,
|
|
265
264
|
disabled: !!d,
|
|
266
265
|
"aria-label": Y,
|
|
267
266
|
"data-field": "start",
|
|
268
|
-
className:
|
|
267
|
+
className: J(
|
|
269
268
|
"flex-1 min-w-0 bg-transparent p-0 text-sm font-medium outline-none placeholder:font-medium placeholder:text-content-empty disabled:cursor-not-allowed disabled:opacity-50",
|
|
270
269
|
_e ? "text-destructive" : Ye ? "text-content-placeholder" : ""
|
|
271
270
|
),
|
|
272
|
-
...
|
|
271
|
+
...Ke
|
|
273
272
|
}
|
|
274
273
|
),
|
|
275
|
-
/* @__PURE__ */
|
|
274
|
+
/* @__PURE__ */ v(
|
|
276
275
|
"input",
|
|
277
276
|
{
|
|
278
277
|
ref: $,
|
|
279
278
|
type: "text",
|
|
280
|
-
value:
|
|
279
|
+
value: k,
|
|
281
280
|
onChange: We,
|
|
282
281
|
onBlur: ne,
|
|
283
|
-
onClick: () => !d &&
|
|
282
|
+
onClick: () => !d && u(!0),
|
|
284
283
|
onKeyDown: (e) => {
|
|
285
|
-
e.key === "Enter" && !d && (e.preventDefault(),
|
|
284
|
+
e.key === "Enter" && !d && (e.preventDefault(), ae()), e.key === "ArrowDown" && !m && !d && (e.preventDefault(), E.current = !0, u(!0)), e.key === "Escape" && m && ie(e, { open: m, onCancel: A });
|
|
286
285
|
},
|
|
287
|
-
placeholder:
|
|
286
|
+
placeholder: m ? o : Z,
|
|
288
287
|
disabled: !!d,
|
|
289
288
|
"aria-label": Z,
|
|
290
289
|
"data-field": "end",
|
|
291
|
-
className:
|
|
290
|
+
className: J(
|
|
292
291
|
"flex-1 min-w-0 bg-transparent p-0 text-sm font-medium outline-none placeholder:font-medium placeholder:text-content-empty disabled:cursor-not-allowed disabled:opacity-50",
|
|
293
292
|
$e ? "text-destructive" : Ze ? "text-content-placeholder" : ""
|
|
294
293
|
)
|
|
@@ -296,68 +295,68 @@ const Pt = c.forwardRef(
|
|
|
296
295
|
)
|
|
297
296
|
] }),
|
|
298
297
|
/* @__PURE__ */ T("div", { className: "flex items-center gap-1 shrink-0", children: [
|
|
299
|
-
|
|
300
|
-
/* @__PURE__ */
|
|
298
|
+
i?.from && !d && /* @__PURE__ */ T(ce, { children: [
|
|
299
|
+
/* @__PURE__ */ v(fe, { asChild: !0, children: /* @__PURE__ */ v(
|
|
301
300
|
"button",
|
|
302
301
|
{
|
|
303
302
|
type: "button",
|
|
304
303
|
tabIndex: 0,
|
|
305
304
|
"aria-label": b("calendar.clear"),
|
|
306
305
|
onClick: (e) => {
|
|
307
|
-
e.stopPropagation(),
|
|
306
|
+
e.stopPropagation(), G();
|
|
308
307
|
},
|
|
309
308
|
onKeyDown: (e) => {
|
|
310
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(),
|
|
309
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), G());
|
|
311
310
|
},
|
|
312
311
|
className: "inline-flex size-4 items-center justify-center bg-transparent border-none p-0 cursor-pointer",
|
|
313
|
-
children: /* @__PURE__ */
|
|
312
|
+
children: /* @__PURE__ */ v(rt, { className: "size-3 hover:text-content text-content-icon" })
|
|
314
313
|
}
|
|
315
314
|
) }),
|
|
316
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ v(de, { variant: "tertiary", side: "top", children: b("calendar.clear") })
|
|
317
316
|
] }),
|
|
318
317
|
/* @__PURE__ */ T(ce, { children: [
|
|
319
|
-
/* @__PURE__ */
|
|
320
|
-
e.stopPropagation(), d ||
|
|
318
|
+
/* @__PURE__ */ v(fe, { asChild: !0, children: /* @__PURE__ */ v("button", { type: "button", tabIndex: 0, "aria-label": b("datePicker.selectMonthRange"), onClick: (e) => {
|
|
319
|
+
e.stopPropagation(), d || u(!m);
|
|
321
320
|
}, onKeyDown: (e) => {
|
|
322
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), d || (E.current = !0,
|
|
323
|
-
}, className: "inline-flex items-center justify-center bg-transparent border-none p-0 cursor-pointer", children: /* @__PURE__ */
|
|
324
|
-
/* @__PURE__ */
|
|
321
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), d || (E.current = !0, u(!m)));
|
|
322
|
+
}, className: "inline-flex items-center justify-center bg-transparent border-none p-0 cursor-pointer", children: /* @__PURE__ */ v(ot, { className: "h-4 w-4 text-secondary-foreground" }) }) }),
|
|
323
|
+
/* @__PURE__ */ v(de, { variant: "tertiary", side: "top", children: b("datePicker.selectMonthRange") })
|
|
325
324
|
] })
|
|
326
325
|
] })
|
|
327
326
|
]
|
|
328
327
|
}
|
|
329
328
|
) }),
|
|
330
|
-
/* @__PURE__ */
|
|
329
|
+
/* @__PURE__ */ v(
|
|
331
330
|
gt,
|
|
332
331
|
{
|
|
333
|
-
ref:
|
|
332
|
+
ref: H,
|
|
334
333
|
className: "w-auto p-0",
|
|
335
334
|
align: "start",
|
|
336
335
|
"aria-label": b("datePicker.selectDateRange"),
|
|
337
336
|
onOpenAutoFocus: (e) => {
|
|
338
337
|
E.current || e.preventDefault(), E.current = !1;
|
|
339
338
|
},
|
|
340
|
-
...
|
|
341
|
-
children: /* @__PURE__ */
|
|
342
|
-
|
|
339
|
+
...He,
|
|
340
|
+
children: /* @__PURE__ */ v(
|
|
341
|
+
ht,
|
|
343
342
|
{
|
|
344
|
-
mode:
|
|
345
|
-
selected:
|
|
346
|
-
footerFlashKey:
|
|
347
|
-
footerFlashTarget:
|
|
343
|
+
mode: M,
|
|
344
|
+
selected: M === "multi-range" ? te : p,
|
|
345
|
+
footerFlashKey: qe,
|
|
346
|
+
footerFlashTarget: ze,
|
|
348
347
|
onSelect: Qe,
|
|
349
348
|
month: Ge,
|
|
350
349
|
onMonthChange: w,
|
|
351
|
-
disabled: kt(
|
|
352
|
-
startMonth:
|
|
353
|
-
endMonth:
|
|
350
|
+
disabled: kt(ue, ge),
|
|
351
|
+
startMonth: he,
|
|
352
|
+
endMonth: ve,
|
|
354
353
|
showFooter: g,
|
|
355
|
-
onApply:
|
|
354
|
+
onApply: oe,
|
|
356
355
|
onCancel: A,
|
|
357
|
-
onClear:
|
|
356
|
+
onClear: G,
|
|
358
357
|
onRangesChange: B,
|
|
359
358
|
captionLayout: "dropdown",
|
|
360
|
-
...
|
|
359
|
+
...W !== void 0 ? { weekStartsOn: W } : {},
|
|
361
360
|
...xt({
|
|
362
361
|
calendarKind: be,
|
|
363
362
|
fiscalMode: Ie,
|
|
@@ -381,7 +380,7 @@ const Pt = c.forwardRef(
|
|
|
381
380
|
);
|
|
382
381
|
}
|
|
383
382
|
);
|
|
384
|
-
|
|
383
|
+
Ct.displayName = "DateRangePicker";
|
|
385
384
|
export {
|
|
386
|
-
|
|
385
|
+
Ct as DateRangePicker
|
|
387
386
|
};
|