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,31 +1,30 @@
|
|
|
1
1
|
import { jsx as u, jsxs as W } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as i from "react";
|
|
3
3
|
import { Cross as et, CalendarMonth as tt } from "impact-nova-icons";
|
|
4
4
|
import { format as k } from "date-fns";
|
|
5
|
-
import { cn as
|
|
6
|
-
import { usePickerDismissActionsRef as rt, usePickerFooterDismissNudge as ot, createRangePickerOpenChangeHandler as nt, parseDateInput as
|
|
5
|
+
import { cn as Q } from "../../../lib/utils.js";
|
|
6
|
+
import { usePickerDismissActionsRef as rt, usePickerFooterDismissNudge as ot, createRangePickerOpenChangeHandler as nt, parseDateInput as U, normalizeOrderedRange as st, compareDates as at, flashRangeReorder as it, isDateInputInvalid as ie, resolveRangeFieldBlur as j, resolveRangePickerDismissFlash as ct, handlePickerEscapeKeyDown as ce, handlePickerSurfacePointerDown as lt, deferRangeInputBlur as ft, maskDateInput as le, resolveDateInputOnBlur as L } from "./date-input-behavior.js";
|
|
7
7
|
import { useFieldChrome as dt } from "../../../lib/primitives/use-field-chrome.js";
|
|
8
|
-
import { Popover as
|
|
8
|
+
import { Popover as mt, PopoverAnchor as pt, PopoverContent as ut } from "../../feedback/popover/popover.js";
|
|
9
9
|
import { Calendar as kt } from "../../data-display/calendar/calendar.js";
|
|
10
10
|
import { buildDateBoundsMatcher as gt } from "../../../lib/date-bounds-matcher.js";
|
|
11
|
-
import { Tooltip as
|
|
11
|
+
import { Tooltip as fe, TooltipTrigger as de, TooltipContent as me } from "../../feedback/tooltip/tooltip.js";
|
|
12
12
|
import { resolveWeekSelection as Rt } from "../../../lib/fiscal-calendar/week-selection.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { coerceWeekRangeApply as yt, isWeekRangeSelection as vt } from "./calendar-selection-adapters.js";
|
|
13
|
+
import { usePickerI18n as ht } from "./use-picker-i18n.js";
|
|
14
|
+
import { coerceWeekRangeApply as Dt, isWeekRangeSelection as yt } from "./calendar-selection-adapters.js";
|
|
16
15
|
import { fiscalCalendarPassThrough as xt } from "./fiscal-pass-through.js";
|
|
17
|
-
const
|
|
18
|
-
function
|
|
19
|
-
return !t && !
|
|
16
|
+
const v = (t) => t?.from ? t.to ? t.to.endDate : t.from.endDate : void 0, S = (t) => t?.from ? { from: t.from, to: t.to } : void 0;
|
|
17
|
+
function pe(t, c) {
|
|
18
|
+
return !t && !c ? !0 : !t || !c ? !1 : t.startDate.getTime() === c.startDate.getTime();
|
|
20
19
|
}
|
|
21
|
-
function
|
|
22
|
-
return !t && !
|
|
20
|
+
function vt(t, c) {
|
|
21
|
+
return !t && !c ? !0 : !t || !c ? !1 : pe(t.from, c.from) && pe(t.to, c.to);
|
|
23
22
|
}
|
|
24
|
-
const
|
|
23
|
+
const Ct = i.forwardRef(
|
|
25
24
|
({
|
|
26
25
|
value: t,
|
|
27
|
-
onChange:
|
|
28
|
-
format:
|
|
26
|
+
onChange: c,
|
|
27
|
+
format: ue,
|
|
29
28
|
placeholder: ke,
|
|
30
29
|
minDate: ge,
|
|
31
30
|
maxDate: Re,
|
|
@@ -37,64 +36,64 @@ const bt = c.forwardRef(
|
|
|
37
36
|
granularity: z,
|
|
38
37
|
fiscalMonthPattern: H,
|
|
39
38
|
fiscalYearStartMonth: K = 1,
|
|
40
|
-
fiscalConfig:
|
|
41
|
-
weekStartsOn: G
|
|
39
|
+
fiscalConfig: F,
|
|
40
|
+
weekStartsOn: G,
|
|
42
41
|
showPresets: ye,
|
|
43
|
-
showPeriodBoundaries:
|
|
44
|
-
autoNavigateToAvailable:
|
|
42
|
+
showPeriodBoundaries: xe,
|
|
43
|
+
autoNavigateToAvailable: ve,
|
|
45
44
|
comparison: Ce,
|
|
46
45
|
onComparisonChange: be,
|
|
47
46
|
disabled: d,
|
|
48
47
|
className: we,
|
|
49
48
|
error: Ie,
|
|
50
|
-
isError:
|
|
51
|
-
size:
|
|
52
|
-
label:
|
|
53
|
-
helperText:
|
|
49
|
+
isError: Pe,
|
|
50
|
+
size: X,
|
|
51
|
+
label: Te,
|
|
52
|
+
helperText: Ee,
|
|
54
53
|
helperTextPosition: We = "absolute",
|
|
55
54
|
required: Se,
|
|
56
|
-
prefix:
|
|
57
|
-
prefixClick:
|
|
55
|
+
prefix: bt,
|
|
56
|
+
prefixClick: wt,
|
|
58
57
|
...Be
|
|
59
58
|
}, Ne) => {
|
|
60
|
-
const
|
|
61
|
-
label:
|
|
62
|
-
helperText:
|
|
59
|
+
const Z = Ie ?? Pe, Ve = dt({
|
|
60
|
+
label: Te,
|
|
61
|
+
helperText: Ee,
|
|
63
62
|
helperTextPosition: We,
|
|
64
|
-
error:
|
|
63
|
+
error: Z,
|
|
65
64
|
required: Se,
|
|
66
65
|
disabled: d ?? void 0,
|
|
67
66
|
rootClassName: "w-full min-w-[240px]"
|
|
68
|
-
}), {
|
|
69
|
-
|
|
70
|
-
const [
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}),
|
|
74
|
-
const e =
|
|
75
|
-
D(e?.from ? k(e.from.startDate, n, { locale: s }) : ""), v(
|
|
67
|
+
}), { dateFnsLocale: s, dateFormat: n, t: P } = ht(ue), _ = ke ?? P("datePicker.selectWeekRange"), V = N === "fiscal", J = i.useRef(null), $ = i.useRef(null), Y = i.useRef(null), A = i.useRef(null), M = i.useRef(null);
|
|
68
|
+
i.useImperativeHandle(Ne, () => J.current);
|
|
69
|
+
const [m, R] = i.useState(!1), ee = rt(), { footerFlashKey: Ae, footerFlashTarget: Oe, popoverHandlers: je } = ot(g, m, ee, Y), T = i.useRef(!1), [l, h] = i.useState(t), [p, D] = i.useState(t?.from ? k(t.from.startDate, n, { locale: s }) : ""), [y, x] = i.useState(v(t) ? k(v(t), n, { locale: s }) : ""), [Le, E] = i.useState(t?.from?.startDate || /* @__PURE__ */ new Date()), qe = t?.from?.startDate.getTime(), ze = v(t)?.getTime(), te = i.useRef(t);
|
|
70
|
+
i.useEffect(() => {
|
|
71
|
+
te.current = t;
|
|
72
|
+
}), i.useEffect(() => {
|
|
73
|
+
const e = te.current;
|
|
74
|
+
D(e?.from ? k(e.from.startDate, n, { locale: s }) : ""), x(v(e) ? k(v(e), n, { locale: s }) : ""), h(e);
|
|
76
75
|
}, [qe, ze, n, s]);
|
|
77
|
-
const He =
|
|
76
|
+
const He = i.useCallback(
|
|
78
77
|
(e) => nt({
|
|
79
78
|
disabled: d ?? void 0,
|
|
80
79
|
showFooter: g,
|
|
81
80
|
containerRef: A,
|
|
82
|
-
popoverContentRef:
|
|
81
|
+
popoverContentRef: M,
|
|
83
82
|
setOpen: R
|
|
84
83
|
})(e),
|
|
85
84
|
[d, g]
|
|
86
|
-
),
|
|
87
|
-
|
|
88
|
-
if (
|
|
89
|
-
const e =
|
|
90
|
-
e.parsed ?
|
|
85
|
+
), re = i.useRef(!1);
|
|
86
|
+
i.useEffect(() => {
|
|
87
|
+
if (m && !re.current && !V) {
|
|
88
|
+
const e = U(p, n, s);
|
|
89
|
+
e.parsed ? E(e.parsed) : l?.from ? E(l.from.startDate) : t?.from && E(t.from.startDate);
|
|
91
90
|
}
|
|
92
|
-
|
|
93
|
-
}, [
|
|
91
|
+
re.current = m;
|
|
92
|
+
}, [m, p, n, s, l?.from, t?.from, V]);
|
|
94
93
|
const Ke = (e) => {
|
|
95
|
-
const r =
|
|
96
|
-
h(r), r?.from ? (D(k(r.from.startDate, n, { locale: s })),
|
|
97
|
-
}, C =
|
|
94
|
+
const r = yt(e) ? e : void 0;
|
|
95
|
+
h(r), r?.from ? (D(k(r.from.startDate, n, { locale: s })), x(k(v(r), n, { locale: s }))) : (D(""), x("")), !g && r?.from && r?.to && r.from.startDate.getTime() !== r.to.startDate.getTime() && (c?.(r), R(!1));
|
|
96
|
+
}, C = i.useCallback(
|
|
98
97
|
(e) => Rt(e, {
|
|
99
98
|
calendarKind: N,
|
|
100
99
|
fiscalMode: q,
|
|
@@ -102,7 +101,7 @@ const bt = c.forwardRef(
|
|
|
102
101
|
fiscalMonthPattern: H,
|
|
103
102
|
fiscalYearStartMonth: K,
|
|
104
103
|
weekStartsOn: G,
|
|
105
|
-
fiscalConfig:
|
|
104
|
+
fiscalConfig: F
|
|
106
105
|
}),
|
|
107
106
|
[
|
|
108
107
|
N,
|
|
@@ -111,137 +110,137 @@ const bt = c.forwardRef(
|
|
|
111
110
|
H,
|
|
112
111
|
K,
|
|
113
112
|
G,
|
|
114
|
-
|
|
113
|
+
F
|
|
115
114
|
]
|
|
116
|
-
), B =
|
|
115
|
+
), B = i.useCallback((e, r) => {
|
|
117
116
|
const o = st(
|
|
118
117
|
e,
|
|
119
118
|
r,
|
|
120
|
-
(
|
|
119
|
+
(a, f) => at(a.startDate, f.startDate)
|
|
121
120
|
);
|
|
122
|
-
return o.swapped && (o.from && D(k(o.from.startDate, n, { locale: s })), o.to &&
|
|
123
|
-
}, [n, s]),
|
|
124
|
-
const r =
|
|
125
|
-
h(
|
|
121
|
+
return o.swapped && (o.from && D(k(o.from.startDate, n, { locale: s })), o.to && x(k(v({ from: o.from, to: o.to }), n, { locale: s })), it(A.current)), { from: o.from, to: o.to };
|
|
122
|
+
}, [n, s]), oe = (e) => {
|
|
123
|
+
const r = Dt(e, S(l)), o = B(r?.from, r?.to), a = o.from ? { from: o.from, to: o.to } : void 0;
|
|
124
|
+
h(a), c?.(a), R(!1);
|
|
126
125
|
}, O = () => {
|
|
127
|
-
h(t), D(t?.from ? k(t.from.startDate, n, { locale: s }) : ""), v(
|
|
128
|
-
},
|
|
129
|
-
h(void 0), D(""),
|
|
130
|
-
},
|
|
131
|
-
const r =
|
|
126
|
+
h(t), D(t?.from ? k(t.from.startDate, n, { locale: s }) : ""), x(v(t) ? k(v(t), n, { locale: s }) : ""), R(!1);
|
|
127
|
+
}, ne = () => {
|
|
128
|
+
h(void 0), D(""), x(""), c?.(void 0), g || R(!1);
|
|
129
|
+
}, Fe = (e) => {
|
|
130
|
+
const r = le(e.target.value, n, p);
|
|
132
131
|
if (D(r), r === "") {
|
|
133
|
-
const f = { to:
|
|
134
|
-
h(f), g ||
|
|
132
|
+
const f = { to: l?.to };
|
|
133
|
+
h(f), g || c?.(void 0);
|
|
135
134
|
return;
|
|
136
135
|
}
|
|
137
|
-
const { parsed: o, isValid:
|
|
138
|
-
if (
|
|
139
|
-
const I = { from: C(o), to:
|
|
140
|
-
h(I),
|
|
136
|
+
const { parsed: o, isValid: a } = U(r, n, s);
|
|
137
|
+
if (a && o) {
|
|
138
|
+
const I = { from: C(o), to: l?.to };
|
|
139
|
+
h(I), l?.to && x(k(v(I), n, { locale: s })), V || E(o), g || c?.(S(I));
|
|
141
140
|
}
|
|
142
141
|
}, Ge = (e) => {
|
|
143
|
-
const r =
|
|
144
|
-
if (
|
|
145
|
-
const f = { from:
|
|
146
|
-
h(f), g ||
|
|
142
|
+
const r = le(e.target.value, n, y);
|
|
143
|
+
if (x(r), r === "") {
|
|
144
|
+
const f = { from: l?.from };
|
|
145
|
+
h(f), g || c?.(S(f));
|
|
147
146
|
return;
|
|
148
147
|
}
|
|
149
|
-
const { parsed: o, isValid:
|
|
150
|
-
if (
|
|
151
|
-
const f = C(o), I = { from:
|
|
152
|
-
h(I),
|
|
148
|
+
const { parsed: o, isValid: a } = U(r, n, s);
|
|
149
|
+
if (a && o) {
|
|
150
|
+
const f = C(o), I = { from: l?.from, to: f };
|
|
151
|
+
h(I), l?.from && D(k(l.from.startDate, n, { locale: s })), V || E(o), g || c?.(S(I));
|
|
153
152
|
}
|
|
154
153
|
}, Je = () => {
|
|
155
|
-
const e =
|
|
156
|
-
e.resetToCommitted ? D(b) : e.parsed && D(e.display), r.resetToCommitted ?
|
|
157
|
-
let o = e.parsed ? C(e.parsed) :
|
|
158
|
-
o &&
|
|
159
|
-
const f = o ? { from: o, to:
|
|
160
|
-
f ? (h(f),
|
|
161
|
-
},
|
|
154
|
+
const e = L(p, n, b, s), r = L(y, n, w, s);
|
|
155
|
+
e.resetToCommitted ? D(b) : e.parsed && D(e.display), r.resetToCommitted ? x(w) : r.parsed && x(r.display);
|
|
156
|
+
let o = e.parsed ? C(e.parsed) : l?.from, a = r.parsed ? C(r.parsed) : l?.to;
|
|
157
|
+
o && a && ({ from: o, to: a } = B(o, a));
|
|
158
|
+
const f = o ? { from: o, to: a } : void 0;
|
|
159
|
+
f ? (h(f), c?.(f)) : !p && !y && (h(void 0), c?.(void 0));
|
|
160
|
+
}, se = () => {
|
|
162
161
|
ft(
|
|
163
162
|
A,
|
|
164
|
-
|
|
163
|
+
M,
|
|
165
164
|
() => {
|
|
166
|
-
const e =
|
|
167
|
-
e.resetToCommitted ? D(b) : e.parsed && D(e.display), r.resetToCommitted ?
|
|
168
|
-
let o = e.parsed ? C(e.parsed) : e.resetToCommitted ? t?.from :
|
|
169
|
-
o &&
|
|
170
|
-
const f = o ||
|
|
171
|
-
h(f), g || (f ?
|
|
165
|
+
const e = j(p, n, b, s), r = j(y, n, w, s);
|
|
166
|
+
e.resetToCommitted ? D(b) : e.parsed && D(e.display), r.resetToCommitted ? x(w) : r.parsed && x(r.display);
|
|
167
|
+
let o = e.parsed ? C(e.parsed) : e.resetToCommitted ? t?.from : l?.from, a = r.parsed ? C(r.parsed) : r.resetToCommitted ? t?.to : l?.to;
|
|
168
|
+
o && a && ({ from: o, to: a } = B(o, a));
|
|
169
|
+
const f = o || a ? { from: o, to: a } : void 0;
|
|
170
|
+
h(f), g || (f ? c?.(f) : !p && !y && c?.(void 0));
|
|
172
171
|
}
|
|
173
172
|
);
|
|
174
|
-
},
|
|
175
|
-
if (
|
|
176
|
-
|
|
173
|
+
}, ae = () => {
|
|
174
|
+
if (m && g) {
|
|
175
|
+
oe();
|
|
177
176
|
return;
|
|
178
177
|
}
|
|
179
|
-
if (!
|
|
178
|
+
if (!m) {
|
|
180
179
|
if (g) {
|
|
181
180
|
Je();
|
|
182
181
|
return;
|
|
183
182
|
}
|
|
184
|
-
const e =
|
|
183
|
+
const e = L(p, n, b, s), r = L(y, n, w, s);
|
|
185
184
|
if (e.parsed || r.parsed) return;
|
|
186
|
-
|
|
185
|
+
T.current = !0, R(!0);
|
|
187
186
|
}
|
|
188
|
-
}, b = t?.from ? k(t.from.startDate, n, { locale: s }) : "", w =
|
|
189
|
-
const e =
|
|
190
|
-
let o = e.parsed ? C(e.parsed) : e.resetToCommitted ? t?.from :
|
|
191
|
-
o &&
|
|
192
|
-
const f = o ||
|
|
193
|
-
return
|
|
194
|
-
startInput:
|
|
187
|
+
}, b = t?.from ? k(t.from.startDate, n, { locale: s }) : "", w = v(t) ? k(v(t), n, { locale: s }) : "", Me = b !== p, Qe = w !== y, Ue = ie(p, n, s), Xe = ie(y, n, s), Ze = "Start Date", _e = "End Date", $e = i.useCallback(() => {
|
|
188
|
+
const e = j(p, n, b, s), r = j(y, n, w, s);
|
|
189
|
+
let o = e.parsed ? C(e.parsed) : e.resetToCommitted ? t?.from : l?.from, a = r.parsed ? C(r.parsed) : r.resetToCommitted ? t?.to : l?.to;
|
|
190
|
+
o && a && ({ from: o, to: a } = B(o, a));
|
|
191
|
+
const f = o || a ? { from: o, to: a } : void 0;
|
|
192
|
+
return ct({
|
|
193
|
+
startInput: p,
|
|
195
194
|
endInput: y,
|
|
196
195
|
committedStart: b,
|
|
197
196
|
committedEnd: w,
|
|
198
197
|
committedRange: t,
|
|
199
|
-
pendingRange: S(
|
|
198
|
+
pendingRange: S(l),
|
|
200
199
|
computeEffectiveRange: () => f,
|
|
201
|
-
rangesEqual: (I,
|
|
200
|
+
rangesEqual: (I, Ye) => vt(I, Ye)
|
|
202
201
|
});
|
|
203
202
|
}, [
|
|
204
|
-
|
|
203
|
+
p,
|
|
205
204
|
y,
|
|
206
205
|
b,
|
|
207
206
|
w,
|
|
208
207
|
t,
|
|
209
|
-
|
|
208
|
+
l,
|
|
210
209
|
n,
|
|
211
210
|
s,
|
|
212
211
|
B,
|
|
213
212
|
C
|
|
214
213
|
]);
|
|
215
|
-
return
|
|
216
|
-
|
|
214
|
+
return i.useLayoutEffect(() => {
|
|
215
|
+
ee.current = {
|
|
217
216
|
onDismiss: O,
|
|
218
|
-
resolveFlash:
|
|
217
|
+
resolveFlash: $e
|
|
219
218
|
};
|
|
220
219
|
}), /* @__PURE__ */ u(
|
|
221
220
|
"div",
|
|
222
221
|
{
|
|
223
|
-
ref:
|
|
222
|
+
ref: Y,
|
|
224
223
|
"data-component": "week-range-picker",
|
|
225
224
|
"data-disabled": d || void 0,
|
|
226
225
|
children: Ve.wrapControl(
|
|
227
|
-
/* @__PURE__ */ W(
|
|
228
|
-
/* @__PURE__ */ u(
|
|
226
|
+
/* @__PURE__ */ W(mt, { open: d ? !1 : m, onOpenChange: He, children: [
|
|
227
|
+
/* @__PURE__ */ u(pt, { asChild: !0, children: /* @__PURE__ */ W(
|
|
229
228
|
"div",
|
|
230
229
|
{
|
|
231
230
|
ref: A,
|
|
232
|
-
"data-state":
|
|
233
|
-
onPointerDown: (e) =>
|
|
231
|
+
"data-state": m ? "open" : "closed",
|
|
232
|
+
onPointerDown: (e) => lt({
|
|
234
233
|
disabled: d,
|
|
235
234
|
event: e,
|
|
236
235
|
onOpen: () => R(!0),
|
|
237
236
|
focusField: (r) => {
|
|
238
|
-
r === "end" ?
|
|
237
|
+
r === "end" ? $.current?.focus() : J.current?.focus();
|
|
239
238
|
}
|
|
240
239
|
}),
|
|
241
|
-
className:
|
|
240
|
+
className: Q(
|
|
242
241
|
"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",
|
|
243
|
-
|
|
244
|
-
|
|
242
|
+
Z ? "border-destructive hover:border-destructive" : "border-field",
|
|
243
|
+
X === "sm" ? "h-6" : X === "md" ? "h-[28px]" : "h-8",
|
|
245
244
|
d && "pointer-events-none opacity-100 bg-disabled-surface border-stroke text-disabled-foreground hover:border-stroke",
|
|
246
245
|
"cursor-pointer",
|
|
247
246
|
we
|
|
@@ -253,20 +252,20 @@ const bt = c.forwardRef(
|
|
|
253
252
|
{
|
|
254
253
|
ref: J,
|
|
255
254
|
type: "text",
|
|
256
|
-
value:
|
|
257
|
-
onChange:
|
|
258
|
-
onBlur:
|
|
255
|
+
value: p,
|
|
256
|
+
onChange: Fe,
|
|
257
|
+
onBlur: se,
|
|
259
258
|
onClick: () => !d && R(!0),
|
|
260
259
|
onKeyDown: (e) => {
|
|
261
|
-
e.key === "Enter" && !d && (e.preventDefault(),
|
|
260
|
+
e.key === "Enter" && !d && (e.preventDefault(), ae()), e.key === "ArrowDown" && !m && !d && (e.preventDefault(), T.current = !0, R(!0)), e.key === "Escape" && m && ce(e, { open: m, onCancel: O });
|
|
262
261
|
},
|
|
263
|
-
placeholder:
|
|
262
|
+
placeholder: m ? n : _,
|
|
264
263
|
disabled: !!d,
|
|
265
|
-
"aria-label":
|
|
264
|
+
"aria-label": Ze,
|
|
266
265
|
"data-field": "start",
|
|
267
|
-
className:
|
|
266
|
+
className: Q(
|
|
268
267
|
"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",
|
|
269
|
-
|
|
268
|
+
Ue ? "text-destructive" : Me ? "text-content-placeholder" : ""
|
|
270
269
|
),
|
|
271
270
|
...Be
|
|
272
271
|
}
|
|
@@ -274,50 +273,50 @@ const bt = c.forwardRef(
|
|
|
274
273
|
/* @__PURE__ */ u(
|
|
275
274
|
"input",
|
|
276
275
|
{
|
|
277
|
-
ref:
|
|
276
|
+
ref: $,
|
|
278
277
|
type: "text",
|
|
279
278
|
value: y,
|
|
280
279
|
onChange: Ge,
|
|
281
|
-
onBlur:
|
|
280
|
+
onBlur: se,
|
|
282
281
|
onClick: () => !d && R(!0),
|
|
283
282
|
onKeyDown: (e) => {
|
|
284
|
-
e.key === "Enter" && !d && (e.preventDefault(),
|
|
283
|
+
e.key === "Enter" && !d && (e.preventDefault(), ae()), e.key === "ArrowDown" && !m && !d && (e.preventDefault(), T.current = !0, R(!0)), e.key === "Escape" && m && ce(e, { open: m, onCancel: O });
|
|
285
284
|
},
|
|
286
|
-
placeholder:
|
|
285
|
+
placeholder: m ? n : _,
|
|
287
286
|
disabled: !!d,
|
|
288
|
-
"aria-label":
|
|
287
|
+
"aria-label": _e,
|
|
289
288
|
"data-field": "end",
|
|
290
|
-
className:
|
|
289
|
+
className: Q(
|
|
291
290
|
"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",
|
|
292
|
-
|
|
291
|
+
Xe ? "text-destructive" : Qe ? "text-content-placeholder" : ""
|
|
293
292
|
)
|
|
294
293
|
}
|
|
295
294
|
)
|
|
296
295
|
] }),
|
|
297
296
|
/* @__PURE__ */ W("div", { className: "flex items-center gap-1 shrink-0", children: [
|
|
298
|
-
t?.from && !d && /* @__PURE__ */ W(
|
|
299
|
-
/* @__PURE__ */ u(
|
|
297
|
+
t?.from && !d && /* @__PURE__ */ W(fe, { children: [
|
|
298
|
+
/* @__PURE__ */ u(de, { asChild: !0, children: /* @__PURE__ */ u(
|
|
300
299
|
"button",
|
|
301
300
|
{
|
|
302
301
|
type: "button",
|
|
303
302
|
tabIndex: 0,
|
|
304
|
-
"aria-label":
|
|
303
|
+
"aria-label": P("calendar.clear"),
|
|
305
304
|
onClick: (e) => {
|
|
306
|
-
e.stopPropagation(),
|
|
305
|
+
e.stopPropagation(), ne();
|
|
307
306
|
},
|
|
308
307
|
className: "inline-flex size-4 items-center justify-center bg-transparent border-none p-0 cursor-pointer",
|
|
309
308
|
children: /* @__PURE__ */ u(et, { className: "size-3 hover:text-content text-content-icon" })
|
|
310
309
|
}
|
|
311
310
|
) }),
|
|
312
|
-
/* @__PURE__ */ u(me, { variant: "tertiary", side: "top", children:
|
|
311
|
+
/* @__PURE__ */ u(me, { variant: "tertiary", side: "top", children: P("calendar.clear") })
|
|
313
312
|
] }),
|
|
314
|
-
/* @__PURE__ */ W(
|
|
315
|
-
/* @__PURE__ */ u(
|
|
316
|
-
e.stopPropagation(), d || R(!
|
|
313
|
+
/* @__PURE__ */ W(fe, { children: [
|
|
314
|
+
/* @__PURE__ */ u(de, { asChild: !0, children: /* @__PURE__ */ u("button", { type: "button", tabIndex: 0, "aria-label": P("datePicker.selectWeekRange"), onClick: (e) => {
|
|
315
|
+
e.stopPropagation(), d || R(!m);
|
|
317
316
|
}, onKeyDown: (e) => {
|
|
318
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), d || (
|
|
317
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), d || (T.current = !0, R(!m)));
|
|
319
318
|
}, className: "inline-flex items-center justify-center bg-transparent border-none p-0 cursor-pointer", children: /* @__PURE__ */ u(tt, { className: "h-4 w-4 text-secondary-foreground" }) }) }),
|
|
320
|
-
/* @__PURE__ */ u(me, { variant: "tertiary", side: "top", children:
|
|
319
|
+
/* @__PURE__ */ u(me, { variant: "tertiary", side: "top", children: P("datePicker.selectWeekRange") })
|
|
321
320
|
] })
|
|
322
321
|
] })
|
|
323
322
|
]
|
|
@@ -326,25 +325,25 @@ const bt = c.forwardRef(
|
|
|
326
325
|
/* @__PURE__ */ u(
|
|
327
326
|
ut,
|
|
328
327
|
{
|
|
329
|
-
ref:
|
|
328
|
+
ref: M,
|
|
330
329
|
className: "w-auto p-0",
|
|
331
330
|
align: "start",
|
|
332
|
-
"aria-label":
|
|
331
|
+
"aria-label": P("datePicker.selectWeekRange"),
|
|
333
332
|
onOpenAutoFocus: (e) => {
|
|
334
|
-
|
|
333
|
+
T.current || e.preventDefault(), T.current = !1;
|
|
335
334
|
},
|
|
336
|
-
...
|
|
335
|
+
...je,
|
|
337
336
|
children: /* @__PURE__ */ u(
|
|
338
337
|
kt,
|
|
339
338
|
{
|
|
340
339
|
pickerType: "week",
|
|
341
340
|
weekMode: "range",
|
|
342
|
-
selectedWeeks: S(
|
|
341
|
+
selectedWeeks: S(l),
|
|
343
342
|
footerFlashKey: Ae,
|
|
344
343
|
footerFlashTarget: Oe,
|
|
345
344
|
onWeekSelect: Ke,
|
|
346
|
-
month:
|
|
347
|
-
onMonthChange:
|
|
345
|
+
month: Le,
|
|
346
|
+
onMonthChange: E,
|
|
348
347
|
disabled: gt(ge, Re),
|
|
349
348
|
startMonth: he,
|
|
350
349
|
endMonth: De,
|
|
@@ -355,17 +354,17 @@ const bt = c.forwardRef(
|
|
|
355
354
|
granularity: z,
|
|
356
355
|
fiscalMonthPattern: H,
|
|
357
356
|
fiscalYearStartMonth: K,
|
|
358
|
-
fiscalConfig:
|
|
357
|
+
fiscalConfig: F,
|
|
359
358
|
weekStartsOn: G,
|
|
360
359
|
showPresets: ye,
|
|
361
|
-
showPeriodBoundaries:
|
|
362
|
-
autoNavigateToAvailable:
|
|
360
|
+
showPeriodBoundaries: xe,
|
|
361
|
+
autoNavigateToAvailable: ve,
|
|
363
362
|
comparison: Ce,
|
|
364
363
|
onComparisonChange: be
|
|
365
364
|
}),
|
|
366
|
-
onApply:
|
|
365
|
+
onApply: oe,
|
|
367
366
|
onCancel: O,
|
|
368
|
-
onClear:
|
|
367
|
+
onClear: ne,
|
|
369
368
|
captionLayout: "dropdown"
|
|
370
369
|
}
|
|
371
370
|
)
|
|
@@ -377,7 +376,7 @@ const bt = c.forwardRef(
|
|
|
377
376
|
);
|
|
378
377
|
}
|
|
379
378
|
);
|
|
380
|
-
|
|
379
|
+
Ct.displayName = "WeekRangePicker";
|
|
381
380
|
export {
|
|
382
|
-
|
|
381
|
+
Ct as WeekRangePicker
|
|
383
382
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const A = "data:image/webp;base64,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";
|
|
2
|
+
export {
|
|
3
|
+
A as default
|
|
4
|
+
};
|
|
@@ -6,6 +6,7 @@ export declare const Excel: import('impact-nova-icons').ImageComponent;
|
|
|
6
6
|
export declare const ExcelErrorIcon: import('impact-nova-icons').ImageComponent;
|
|
7
7
|
export declare const Text: import('impact-nova-icons').ImageComponent;
|
|
8
8
|
export declare const Info3d: import('impact-nova-icons').ImageComponent;
|
|
9
|
+
export declare const Message3d: import('impact-nova-icons').ImageComponent;
|
|
9
10
|
export declare const Success3d: import('impact-nova-icons').ImageComponent;
|
|
10
11
|
export declare const Warning3d: import('impact-nova-icons').ImageComponent;
|
|
11
12
|
export declare const Delete3d: import('impact-nova-icons').ImageComponent;
|
|
@@ -1,34 +1,36 @@
|
|
|
1
1
|
import o from "./assets/click-me-arrow.webp.js";
|
|
2
2
|
import e from "./assets/csv.webp.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import s from "./assets/delete-3d.webp.js";
|
|
4
|
+
import t from "./assets/excel.webp.js";
|
|
5
|
+
import l from "./assets/excel-error-icon.webp.js";
|
|
6
6
|
import c from "./assets/file-upload.webp.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import n from "./
|
|
7
|
+
import m from "./assets/file-upload-error.webp.js";
|
|
8
|
+
import i from "./assets/info-3d.webp.js";
|
|
9
|
+
import n from "./message3d.webp.js";
|
|
10
|
+
import d from "./assets/multicolor-bell.webp.js";
|
|
10
11
|
import p from "./assets/success-3d.webp.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
12
|
+
import f from "./assets/text.webp.js";
|
|
13
|
+
import U from "./assets/warning-3d.webp.js";
|
|
13
14
|
import { createImage as r } from "../../../lib/createImage.js";
|
|
14
|
-
const
|
|
15
|
+
const D = r("ClickMeArrow", o), S = r("FileUpload", c), T = r(
|
|
15
16
|
"FileUploadError",
|
|
16
|
-
|
|
17
|
-
),
|
|
17
|
+
m
|
|
18
|
+
), W = r("Csv", e), b = r("Excel", t), h = r(
|
|
18
19
|
"ExcelErrorIcon",
|
|
19
|
-
|
|
20
|
-
),
|
|
20
|
+
l
|
|
21
|
+
), j = r("Text", f), q = r("Info3d", i), y = r("Message3d", n), z = r("Success3d", p), G = r("Warning3d", U), H = r("Delete3d", s), J = r("MulticolorBell", d);
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
D as ClickMeArrow,
|
|
24
|
+
W as Csv,
|
|
25
|
+
H as Delete3d,
|
|
26
|
+
b as Excel,
|
|
27
|
+
h as ExcelErrorIcon,
|
|
28
|
+
S as FileUpload,
|
|
29
|
+
T as FileUploadError,
|
|
30
|
+
q as Info3d,
|
|
31
|
+
y as Message3d,
|
|
32
|
+
J as MulticolorBell,
|
|
33
|
+
z as Success3d,
|
|
34
|
+
j as Text,
|
|
35
|
+
G as Warning3d
|
|
34
36
|
};
|