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,22 +1,22 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { Sheet as
|
|
4
|
-
import { createCompoundPart as
|
|
2
|
+
import g from "react";
|
|
3
|
+
import { Sheet as N, SheetContent as y, SheetDescription as w, SheetTitle as k, SheetClose as C } from "../../feedback/sheet/sheet.js";
|
|
4
|
+
import { createCompoundPart as F } from "../../../lib/primitives/create-compound.js";
|
|
5
5
|
import { cn as o } from "../../../lib/utils.js";
|
|
6
|
-
import { MultiColorFilter as
|
|
7
|
-
import { Button as
|
|
8
|
-
import { Tooltip as
|
|
9
|
-
import { Kbd as
|
|
10
|
-
import { OverflowTooltip as
|
|
11
|
-
import { useImpactNovaI18n as
|
|
12
|
-
import { useOverlayHostDismissNestedLayersOnNavigation as
|
|
13
|
-
import { preventDismissOnTooltipOutside as
|
|
14
|
-
const
|
|
6
|
+
import { MultiColorFilter as P, Cross as D, InfoBadge as x } from "impact-nova-icons";
|
|
7
|
+
import { Button as S } from "../../primitives/button/button.js";
|
|
8
|
+
import { Tooltip as h, TooltipTrigger as p, TooltipContent as m } from "../../feedback/tooltip/tooltip.js";
|
|
9
|
+
import { Kbd as j } from "../../primitives/kbd/kbd.js";
|
|
10
|
+
import { OverflowTooltip as I } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
11
|
+
import { useImpactNovaI18n as b } from "../../../i18n/use-impact-nova-i18n.js";
|
|
12
|
+
import { useOverlayHostDismissNestedLayersOnNavigation as O } from "../../../lib/overlay/overlay-portal-context.js";
|
|
13
|
+
import { preventDismissOnTooltipOutside as v } from "../../../lib/overlay/prevent-dismiss-on-tooltip-outside.js";
|
|
14
|
+
const T = ({
|
|
15
15
|
title: i,
|
|
16
16
|
children: n,
|
|
17
17
|
className: l
|
|
18
18
|
}) => {
|
|
19
|
-
const { t:
|
|
19
|
+
const { t: c } = b();
|
|
20
20
|
return /* @__PURE__ */ a(
|
|
21
21
|
"div",
|
|
22
22
|
{
|
|
@@ -32,73 +32,74 @@ const O = ({
|
|
|
32
32
|
{
|
|
33
33
|
className: "flex size-8 shrink-0 items-center justify-center rounded-md border border-brand-tint bg-canvas-elevated",
|
|
34
34
|
"aria-hidden": !0,
|
|
35
|
-
children: /* @__PURE__ */ e(
|
|
35
|
+
children: /* @__PURE__ */ e(P, { className: "size-5 shrink-0" })
|
|
36
36
|
}
|
|
37
37
|
),
|
|
38
|
-
/* @__PURE__ */ e(
|
|
38
|
+
/* @__PURE__ */ e(k, { className: "text-lg font-bold text-content", children: i })
|
|
39
39
|
] }),
|
|
40
40
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
41
41
|
n,
|
|
42
|
-
/* @__PURE__ */ e(
|
|
43
|
-
|
|
42
|
+
/* @__PURE__ */ e(C, { asChild: !0, children: /* @__PURE__ */ e(
|
|
43
|
+
S,
|
|
44
44
|
{
|
|
45
45
|
variant: "secondary",
|
|
46
46
|
size: "icon",
|
|
47
47
|
tabIndex: -1,
|
|
48
|
-
"aria-label":
|
|
48
|
+
"aria-label": c("aria.close"),
|
|
49
49
|
"data-component": "filter-panel-close",
|
|
50
|
-
children: /* @__PURE__ */ e(
|
|
50
|
+
children: /* @__PURE__ */ e(D, { className: "h-3 w-3" })
|
|
51
51
|
}
|
|
52
52
|
) })
|
|
53
53
|
] })
|
|
54
54
|
]
|
|
55
55
|
}
|
|
56
56
|
);
|
|
57
|
-
},
|
|
57
|
+
}, J = ({
|
|
58
58
|
open: i,
|
|
59
59
|
onOpenChange: n,
|
|
60
60
|
title: l = "Filter panel",
|
|
61
|
+
description: c = "Select filters to apply to the current view.",
|
|
61
62
|
children: d,
|
|
62
|
-
header:
|
|
63
|
-
sidebar:
|
|
64
|
-
className:
|
|
65
|
-
preventClose:
|
|
66
|
-
}) => /* @__PURE__ */ e(
|
|
67
|
-
|
|
63
|
+
header: f,
|
|
64
|
+
sidebar: u,
|
|
65
|
+
className: t,
|
|
66
|
+
preventClose: r = !1
|
|
67
|
+
}) => /* @__PURE__ */ e(N, { open: i, onOpenChange: n, children: /* @__PURE__ */ a(
|
|
68
|
+
y,
|
|
68
69
|
{
|
|
69
70
|
side: "right",
|
|
70
71
|
className: o(
|
|
71
72
|
"w-full !max-w-[840px] p-0 sm:!max-w-[840px] gap-0 border-l shadow-xl transition-all duration-300 ease-in-out bg-canvas-elevated",
|
|
72
|
-
|
|
73
|
+
t
|
|
73
74
|
),
|
|
74
|
-
onInteractOutside: (
|
|
75
|
-
|
|
75
|
+
onInteractOutside: (s) => {
|
|
76
|
+
v(s), r && s.preventDefault();
|
|
76
77
|
},
|
|
77
|
-
onPointerDownOutside: (
|
|
78
|
-
|
|
78
|
+
onPointerDownOutside: (s) => {
|
|
79
|
+
v(s), r && s.preventDefault();
|
|
79
80
|
},
|
|
80
|
-
onEscapeKeyDown: (
|
|
81
|
-
|
|
81
|
+
onEscapeKeyDown: (s) => {
|
|
82
|
+
r && s.preventDefault();
|
|
82
83
|
},
|
|
83
84
|
children: [
|
|
84
|
-
/* @__PURE__ */ e(
|
|
85
|
+
/* @__PURE__ */ e(w, { className: "sr-only", children: c }),
|
|
85
86
|
/* @__PURE__ */ a("div", { className: "flex h-full flex-col bg-canvas-elevated", "data-component": "filter-panel", children: [
|
|
86
|
-
|
|
87
|
+
f || /* @__PURE__ */ e(T, { title: l }),
|
|
87
88
|
/* @__PURE__ */ a("div", { className: "flex flex-1 overflow-hidden", children: [
|
|
88
|
-
|
|
89
|
+
u,
|
|
89
90
|
/* @__PURE__ */ e("div", { className: "flex flex-col flex-1 overflow-hidden", children: d })
|
|
90
91
|
] })
|
|
91
92
|
] })
|
|
92
93
|
]
|
|
93
94
|
}
|
|
94
|
-
) }),
|
|
95
|
+
) }), Q = ({
|
|
95
96
|
items: i,
|
|
96
97
|
activeTab: n,
|
|
97
98
|
onTabChange: l,
|
|
98
|
-
className:
|
|
99
|
+
className: c
|
|
99
100
|
}) => {
|
|
100
|
-
const { t:
|
|
101
|
-
t !== n &&
|
|
101
|
+
const { t: d } = b(), f = O(), u = (t) => {
|
|
102
|
+
t !== n && f(), l(t);
|
|
102
103
|
};
|
|
103
104
|
return /* @__PURE__ */ e(
|
|
104
105
|
"div",
|
|
@@ -106,7 +107,7 @@ const O = ({
|
|
|
106
107
|
"data-component": "filter-panel-sidebar",
|
|
107
108
|
className: o(
|
|
108
109
|
"flex w-[200px] shrink-0 flex-col border-r bg-navigation-canvas",
|
|
109
|
-
|
|
110
|
+
c
|
|
110
111
|
),
|
|
111
112
|
children: /* @__PURE__ */ e(
|
|
112
113
|
"div",
|
|
@@ -115,14 +116,14 @@ const O = ({
|
|
|
115
116
|
className: "flex max-h-full min-h-0 flex-col gap-1 overflow-y-auto py-2",
|
|
116
117
|
children: i.map((t) => {
|
|
117
118
|
const r = n === t.id;
|
|
118
|
-
return /* @__PURE__ */ a(
|
|
119
|
+
return /* @__PURE__ */ a(g.Fragment, { children: [
|
|
119
120
|
t.separator && /* @__PURE__ */ e("div", { className: "my-2 h-px bg-stroke-hairline" }),
|
|
120
121
|
/* @__PURE__ */ a(
|
|
121
122
|
"button",
|
|
122
123
|
{
|
|
123
124
|
type: "button",
|
|
124
125
|
autoFocus: r,
|
|
125
|
-
onClick: () =>
|
|
126
|
+
onClick: () => u(t.id),
|
|
126
127
|
"data-component": "filter-panel-sidebar-item",
|
|
127
128
|
"data-active": r ? "true" : "false",
|
|
128
129
|
"data-tab": t.id,
|
|
@@ -145,14 +146,14 @@ const O = ({
|
|
|
145
146
|
),
|
|
146
147
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1 min-w-0", children: [
|
|
147
148
|
/* @__PURE__ */ e(
|
|
148
|
-
|
|
149
|
+
I,
|
|
149
150
|
{
|
|
150
151
|
triggerClassName: "truncate font-['Manrope'] block min-w-0",
|
|
151
152
|
content: t.tooltipKeybinding ? /* @__PURE__ */ a("span", { className: "flex items-center gap-2", children: [
|
|
152
153
|
t.label,
|
|
153
154
|
" ",
|
|
154
155
|
/* @__PURE__ */ e(
|
|
155
|
-
|
|
156
|
+
j,
|
|
156
157
|
{
|
|
157
158
|
keybinding: t.tooltipKeybinding,
|
|
158
159
|
size: "sm"
|
|
@@ -168,8 +169,8 @@ const O = ({
|
|
|
168
169
|
] })
|
|
169
170
|
] }),
|
|
170
171
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1 shrink-0 ml-1", children: [
|
|
171
|
-
t.count !== void 0 && t.count > 0 && /* @__PURE__ */ a(
|
|
172
|
-
/* @__PURE__ */ e(
|
|
172
|
+
t.count !== void 0 && t.count > 0 && /* @__PURE__ */ a(h, { children: [
|
|
173
|
+
/* @__PURE__ */ e(p, { asChild: !0, children: /* @__PURE__ */ e(
|
|
173
174
|
"span",
|
|
174
175
|
{
|
|
175
176
|
className: o(
|
|
@@ -179,22 +180,22 @@ const O = ({
|
|
|
179
180
|
children: t.count
|
|
180
181
|
}
|
|
181
182
|
) }),
|
|
182
|
-
/* @__PURE__ */ e(
|
|
183
|
+
/* @__PURE__ */ e(m, { variant: "tertiary", side: "top", children: d(
|
|
183
184
|
t.countBadgeContext === "savedFiltersTotal" ? "filterPanel.savedFiltersAvailableCount" : "filterPanel.filtersAppliedCount",
|
|
184
185
|
{ count: t.count }
|
|
185
186
|
) })
|
|
186
187
|
] }),
|
|
187
|
-
t.hasError && /* @__PURE__ */ a(
|
|
188
|
-
/* @__PURE__ */ e(
|
|
189
|
-
/* @__PURE__ */ e(
|
|
188
|
+
t.hasError && /* @__PURE__ */ a(h, { children: [
|
|
189
|
+
/* @__PURE__ */ e(p, { asChild: !0, children: /* @__PURE__ */ e(x, { className: "h-5 w-5 shrink-0 text-danger" }) }),
|
|
190
|
+
/* @__PURE__ */ e(m, { variant: "tertiary", children: d("filterPanel.tabContainsErrors") })
|
|
190
191
|
] }),
|
|
191
|
-
t.hasWarning && /* @__PURE__ */ a(
|
|
192
|
-
/* @__PURE__ */ e(
|
|
193
|
-
/* @__PURE__ */ e(
|
|
192
|
+
t.hasWarning && /* @__PURE__ */ a(h, { children: [
|
|
193
|
+
/* @__PURE__ */ e(p, { asChild: !0, children: /* @__PURE__ */ e(x, { className: "h-5 w-5 shrink-0 text-warning" }) }),
|
|
194
|
+
/* @__PURE__ */ e(m, { variant: "tertiary", children: d("filterPanel.tabHasWarnings") })
|
|
194
195
|
] }),
|
|
195
|
-
t.hasInfo && /* @__PURE__ */ a(
|
|
196
|
-
/* @__PURE__ */ e(
|
|
197
|
-
/* @__PURE__ */ e(
|
|
196
|
+
t.hasInfo && /* @__PURE__ */ a(h, { children: [
|
|
197
|
+
/* @__PURE__ */ e(p, { asChild: !0, children: /* @__PURE__ */ e(x, { className: "h-5 w-5 shrink-0 text-content-icon" }) }),
|
|
198
|
+
/* @__PURE__ */ e(m, { variant: "tertiary", children: d("filterPanel.additionalInfoAvailable") })
|
|
198
199
|
] })
|
|
199
200
|
] })
|
|
200
201
|
]
|
|
@@ -206,12 +207,12 @@ const O = ({
|
|
|
206
207
|
)
|
|
207
208
|
}
|
|
208
209
|
);
|
|
209
|
-
},
|
|
210
|
+
}, U = F("filter-panel", {
|
|
210
211
|
part: "body",
|
|
211
212
|
displayName: "FilterPanelBody",
|
|
212
213
|
className: "flex flex-1 flex-col overflow-auto bg-canvas-elevated p-4",
|
|
213
214
|
scrollSurface: !0
|
|
214
|
-
}),
|
|
215
|
+
}), V = ({
|
|
215
216
|
children: i,
|
|
216
217
|
className: n,
|
|
217
218
|
leftAction: l
|
|
@@ -230,9 +231,9 @@ const O = ({
|
|
|
230
231
|
}
|
|
231
232
|
);
|
|
232
233
|
export {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
234
|
+
J as FilterPanel,
|
|
235
|
+
U as FilterPanelBody,
|
|
236
|
+
V as FilterPanelFooter,
|
|
237
|
+
T as FilterPanelHeader,
|
|
238
|
+
Q as FilterPanelSidebar
|
|
238
239
|
};
|
|
@@ -1,113 +1,112 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { Cross as ge, CalendarMonth as
|
|
4
|
-
import { format as
|
|
5
|
-
import { cn as
|
|
6
|
-
import { usePickerDismissActionsRef as
|
|
1
|
+
import { jsx as a, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { Cross as ge, CalendarMonth as ke } from "impact-nova-icons";
|
|
4
|
+
import { format as w } from "date-fns";
|
|
5
|
+
import { cn as ye } from "../../../lib/utils.js";
|
|
6
|
+
import { usePickerDismissActionsRef as Pe, usePickerFooterDismissNudge as ve, isDateInputInvalid as Ce, resolveSingleValueDismissFlash as Ie, handlePickerEscapeKeyDown as xe, handlePickerSurfacePointerDown as Re, maskDateInput as Se, parseDateInput as be, resolveDateInputOnBlur as we, resolveDateInputOnEnter as Me } from "./date-input-behavior.js";
|
|
7
7
|
import { Input as Te } from "../input/input.js";
|
|
8
8
|
import { Calendar as Ee } from "../../data-display/calendar/calendar.js";
|
|
9
9
|
import { Tooltip as K, TooltipTrigger as j, TooltipContent as B } from "../../feedback/tooltip/tooltip.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { createComponent as Le } from "../../../lib/primitives/create-component.js";
|
|
10
|
+
import { usePickerI18n as Ae } from "./use-picker-i18n.js";
|
|
11
|
+
import { createComponent as Ne } from "../../../lib/primitives/create-component.js";
|
|
13
12
|
import { coerceSingleDateApply as Oe, coerceSingleDate as Ve } from "./calendar-selection-adapters.js";
|
|
14
13
|
import { buildDateBoundsMatcher as Ke } from "../../../lib/date-bounds-matcher.js";
|
|
15
14
|
import { fiscalCalendarPassThrough as je } from "./fiscal-pass-through.js";
|
|
16
15
|
import { DatePickerShell as Be } from "./date-picker-shell.js";
|
|
17
|
-
const
|
|
16
|
+
const $e = Ne(
|
|
18
17
|
"DatePicker",
|
|
19
18
|
({
|
|
20
19
|
value: n,
|
|
21
20
|
onChange: p,
|
|
22
|
-
format:
|
|
21
|
+
format: L,
|
|
23
22
|
placeholder: z,
|
|
24
|
-
minDate:
|
|
25
|
-
maxDate:
|
|
26
|
-
startMonth:
|
|
27
|
-
endMonth:
|
|
28
|
-
showFooter:
|
|
29
|
-
weekStartsOn:
|
|
30
|
-
disabled:
|
|
31
|
-
className:
|
|
32
|
-
calendarKind:
|
|
33
|
-
fiscalMode:
|
|
34
|
-
granularity:
|
|
35
|
-
fiscalMonthPattern:
|
|
36
|
-
fiscalYearStartMonth:
|
|
37
|
-
fiscalConfig:
|
|
38
|
-
showPresets:
|
|
39
|
-
showPeriodBoundaries:
|
|
23
|
+
minDate: F,
|
|
24
|
+
maxDate: H,
|
|
25
|
+
startMonth: q,
|
|
26
|
+
endMonth: G,
|
|
27
|
+
showFooter: c = !0,
|
|
28
|
+
weekStartsOn: M,
|
|
29
|
+
disabled: s,
|
|
30
|
+
className: J,
|
|
31
|
+
calendarKind: Q,
|
|
32
|
+
fiscalMode: U,
|
|
33
|
+
granularity: W,
|
|
34
|
+
fiscalMonthPattern: X,
|
|
35
|
+
fiscalYearStartMonth: Y,
|
|
36
|
+
fiscalConfig: Z,
|
|
37
|
+
showPresets: _,
|
|
38
|
+
showPeriodBoundaries: $,
|
|
40
39
|
autoNavigateToAvailable: ee,
|
|
41
40
|
comparison: te,
|
|
42
41
|
onComparisonChange: ne,
|
|
43
42
|
...re
|
|
44
43
|
}, ie) => {
|
|
45
|
-
const {
|
|
46
|
-
|
|
47
|
-
const [
|
|
48
|
-
o(null),
|
|
44
|
+
const { dateFnsLocale: d, dateFormat: l, t: h } = Ae(L), oe = z ?? h("datePicker.selectDate"), g = i.useRef(null), T = i.useRef(null), C = i.useRef(null);
|
|
45
|
+
i.useImperativeHandle(ie, () => g.current);
|
|
46
|
+
const [r, E] = i.useState(!1), A = Pe(), { footerFlashKey: ae, footerFlashTarget: se, popoverHandlers: ce } = ve(c, r, A, T), k = i.useRef(!1), [R, o] = i.useState(null), y = n ? w(n, l, { locale: d }) : "", f = R?.input ?? y, I = r ? R?.pending ?? n : n, le = R?.viewMonth ?? n ?? /* @__PURE__ */ new Date(), u = i.useCallback(() => {
|
|
47
|
+
o(null), E(!1);
|
|
49
48
|
}, []), m = (e) => {
|
|
50
|
-
if (!
|
|
49
|
+
if (!s) {
|
|
51
50
|
if (e) {
|
|
52
51
|
o({
|
|
53
|
-
input:
|
|
52
|
+
input: y,
|
|
54
53
|
pending: n,
|
|
55
54
|
viewMonth: n ?? /* @__PURE__ */ new Date()
|
|
56
|
-
}),
|
|
55
|
+
}), E(!0);
|
|
57
56
|
return;
|
|
58
57
|
}
|
|
59
58
|
u();
|
|
60
59
|
}
|
|
61
60
|
};
|
|
62
|
-
|
|
63
|
-
g.current &&
|
|
64
|
-
}, [
|
|
61
|
+
i.useEffect(() => {
|
|
62
|
+
g.current && C.current !== null && (g.current.setSelectionRange(C.current, C.current), C.current = null);
|
|
63
|
+
}, [f]);
|
|
65
64
|
const ue = (e) => {
|
|
66
|
-
const t = Ve(e), D = t ?
|
|
65
|
+
const t = Ve(e), D = t ? w(t, l, { locale: d }) : "";
|
|
67
66
|
o(
|
|
68
|
-
(
|
|
69
|
-
), t && !
|
|
70
|
-
},
|
|
71
|
-
const t = Oe(e,
|
|
67
|
+
(P) => P ? { ...P, pending: t, input: D, viewMonth: t ?? P.viewMonth } : null
|
|
68
|
+
), t && !c && (p?.(t), u());
|
|
69
|
+
}, N = (e) => {
|
|
70
|
+
const t = Oe(e, I);
|
|
72
71
|
p?.(t), u();
|
|
73
|
-
},
|
|
72
|
+
}, S = () => {
|
|
74
73
|
u();
|
|
75
74
|
}, O = () => {
|
|
76
|
-
p?.(void 0),
|
|
75
|
+
p?.(void 0), c ? o(
|
|
77
76
|
(e) => e ? { ...e, pending: void 0, input: "" } : null
|
|
78
77
|
) : u();
|
|
79
|
-
},
|
|
78
|
+
}, x = i.useCallback(
|
|
80
79
|
() => ({
|
|
81
|
-
input:
|
|
80
|
+
input: y,
|
|
82
81
|
pending: n,
|
|
83
82
|
viewMonth: n ?? /* @__PURE__ */ new Date()
|
|
84
83
|
}),
|
|
85
|
-
[
|
|
84
|
+
[y, n]
|
|
86
85
|
), pe = (e) => {
|
|
87
|
-
const t =
|
|
88
|
-
if (o((
|
|
89
|
-
o((
|
|
86
|
+
const t = Se(e.target.value, l, f);
|
|
87
|
+
if (o((v) => ({ ...v ?? x(), input: t })), t === "") {
|
|
88
|
+
o((v) => ({ ...v ?? x(), input: "", pending: void 0 })), c || p?.(void 0);
|
|
90
89
|
return;
|
|
91
90
|
}
|
|
92
|
-
const { parsed: D, isValid:
|
|
93
|
-
|
|
94
|
-
...
|
|
91
|
+
const { parsed: D, isValid: P } = be(t, l, d);
|
|
92
|
+
P && D && (o((v) => ({
|
|
93
|
+
...v ?? x(),
|
|
95
94
|
input: t,
|
|
96
95
|
pending: D,
|
|
97
96
|
viewMonth: D
|
|
98
|
-
})),
|
|
99
|
-
},
|
|
97
|
+
})), c || p?.(D));
|
|
98
|
+
}, de = i.useCallback(
|
|
100
99
|
(e) => {
|
|
101
100
|
p?.(e), u();
|
|
102
101
|
},
|
|
103
102
|
[p, u]
|
|
104
|
-
),
|
|
105
|
-
if (
|
|
106
|
-
const e =
|
|
107
|
-
|
|
103
|
+
), fe = () => {
|
|
104
|
+
if (r) return;
|
|
105
|
+
const e = we(
|
|
106
|
+
f,
|
|
108
107
|
l,
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
y,
|
|
109
|
+
d
|
|
111
110
|
);
|
|
112
111
|
if (e.resetToCommitted) {
|
|
113
112
|
o(null);
|
|
@@ -115,84 +114,84 @@ const tt = Le(
|
|
|
115
114
|
}
|
|
116
115
|
if (e.parsed) {
|
|
117
116
|
o((t) => ({
|
|
118
|
-
...t ??
|
|
117
|
+
...t ?? x(),
|
|
119
118
|
input: e.display,
|
|
120
119
|
pending: e.parsed,
|
|
121
120
|
viewMonth: e.parsed
|
|
122
|
-
})),
|
|
121
|
+
})), c || (p?.(e.parsed), o(null));
|
|
123
122
|
return;
|
|
124
123
|
}
|
|
125
124
|
o(null);
|
|
126
125
|
}, me = () => {
|
|
127
|
-
if (
|
|
128
|
-
|
|
126
|
+
if (r && c) {
|
|
127
|
+
N();
|
|
129
128
|
return;
|
|
130
129
|
}
|
|
131
|
-
const e =
|
|
130
|
+
const e = Me(f, l, d);
|
|
132
131
|
if (e.parsed) {
|
|
133
|
-
|
|
132
|
+
c && de(e.parsed);
|
|
134
133
|
return;
|
|
135
134
|
}
|
|
136
|
-
|
|
137
|
-
}, V = (n ?
|
|
138
|
-
() =>
|
|
139
|
-
|
|
135
|
+
r || (k.current = !0, m(!0));
|
|
136
|
+
}, V = (n ? w(n, l, { locale: d }) : "") !== f, he = Ce(f, l, d), De = i.useCallback(
|
|
137
|
+
() => Ie(
|
|
138
|
+
I,
|
|
140
139
|
n,
|
|
141
140
|
(e, t) => e.getTime() === t.getTime()
|
|
142
141
|
),
|
|
143
|
-
[
|
|
142
|
+
[I, n]
|
|
144
143
|
);
|
|
145
|
-
return
|
|
146
|
-
|
|
147
|
-
onDismiss:
|
|
144
|
+
return i.useLayoutEffect(() => {
|
|
145
|
+
A.current = {
|
|
146
|
+
onDismiss: S,
|
|
148
147
|
resolveFlash: De
|
|
149
148
|
};
|
|
150
|
-
}), /* @__PURE__ */
|
|
149
|
+
}), /* @__PURE__ */ a(
|
|
151
150
|
Be,
|
|
152
151
|
{
|
|
153
|
-
open:
|
|
154
|
-
disabled:
|
|
152
|
+
open: r,
|
|
153
|
+
disabled: s,
|
|
155
154
|
ariaLabel: h("datePicker.selectDate"),
|
|
156
155
|
onOpenChange: m,
|
|
157
156
|
onOpenAutoFocus: (e) => {
|
|
158
|
-
|
|
157
|
+
k.current || e.preventDefault(), k.current = !1;
|
|
159
158
|
},
|
|
160
|
-
popoverHandlers:
|
|
161
|
-
trigger: /* @__PURE__ */
|
|
159
|
+
popoverHandlers: ce,
|
|
160
|
+
trigger: /* @__PURE__ */ a(
|
|
162
161
|
"div",
|
|
163
162
|
{
|
|
164
|
-
ref:
|
|
163
|
+
ref: T,
|
|
165
164
|
"data-component": "date-picker",
|
|
166
|
-
"data-state":
|
|
165
|
+
"data-state": r ? "open" : "closed",
|
|
167
166
|
"data-pending": V || void 0,
|
|
168
|
-
onPointerDown: (e) =>
|
|
169
|
-
disabled:
|
|
167
|
+
onPointerDown: (e) => Re({
|
|
168
|
+
disabled: s,
|
|
170
169
|
event: e,
|
|
171
170
|
onOpen: () => m(!0),
|
|
172
171
|
focusField: () => g.current?.focus()
|
|
173
172
|
}),
|
|
174
|
-
children: /* @__PURE__ */
|
|
173
|
+
children: /* @__PURE__ */ a(
|
|
175
174
|
Te,
|
|
176
175
|
{
|
|
177
176
|
ref: g,
|
|
178
|
-
value:
|
|
177
|
+
value: f,
|
|
179
178
|
onChange: pe,
|
|
180
|
-
onBlur:
|
|
181
|
-
onClick: () => !
|
|
179
|
+
onBlur: fe,
|
|
180
|
+
onClick: () => !s && m(!0),
|
|
182
181
|
onKeyDown: (e) => {
|
|
183
|
-
e.key === "Enter" && !
|
|
182
|
+
e.key === "Enter" && !s && (e.preventDefault(), me()), e.key === "ArrowDown" && !r && !s && (e.preventDefault(), k.current = !0, m(!0)), e.key === "Escape" && r && xe(e, { open: r, onCancel: S });
|
|
184
183
|
},
|
|
185
|
-
placeholder:
|
|
186
|
-
disabled:
|
|
184
|
+
placeholder: r ? l : oe,
|
|
185
|
+
disabled: s,
|
|
187
186
|
"data-form-control": "input",
|
|
188
|
-
className:
|
|
187
|
+
className: ye(
|
|
189
188
|
"cursor-pointer",
|
|
190
189
|
he ? "text-destructive" : V ? "text-content-placeholder" : "",
|
|
191
|
-
|
|
190
|
+
J
|
|
192
191
|
),
|
|
193
|
-
suffix: /* @__PURE__ */
|
|
194
|
-
n && !
|
|
195
|
-
/* @__PURE__ */
|
|
192
|
+
suffix: /* @__PURE__ */ b("div", { className: "flex items-center gap-1", children: [
|
|
193
|
+
n && !s && /* @__PURE__ */ b(K, { children: [
|
|
194
|
+
/* @__PURE__ */ a(j, { asChild: !0, children: /* @__PURE__ */ a(
|
|
196
195
|
"button",
|
|
197
196
|
{
|
|
198
197
|
type: "button",
|
|
@@ -202,18 +201,18 @@ const tt = Le(
|
|
|
202
201
|
e.stopPropagation(), O();
|
|
203
202
|
},
|
|
204
203
|
className: "inline-flex size-4 items-center justify-center bg-transparent border-none p-0 cursor-pointer",
|
|
205
|
-
children: /* @__PURE__ */
|
|
204
|
+
children: /* @__PURE__ */ a(ge, { className: "size-3 hover:text-content" })
|
|
206
205
|
}
|
|
207
206
|
) }),
|
|
208
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ a(B, { variant: "tertiary", side: "top", children: h("calendar.clear") })
|
|
209
208
|
] }),
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
-
/* @__PURE__ */
|
|
212
|
-
e.stopPropagation(),
|
|
209
|
+
/* @__PURE__ */ b(K, { children: [
|
|
210
|
+
/* @__PURE__ */ a(j, { asChild: !0, children: /* @__PURE__ */ a("button", { type: "button", tabIndex: 0, "aria-label": h("datePicker.selectDate"), onClick: (e) => {
|
|
211
|
+
e.stopPropagation(), s || (r ? u() : m(!0));
|
|
213
212
|
}, onKeyDown: (e) => {
|
|
214
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(),
|
|
215
|
-
}, className: "inline-flex items-center justify-center bg-transparent border-none p-0 cursor-pointer", children: /* @__PURE__ */
|
|
216
|
-
/* @__PURE__ */
|
|
213
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), s || (k.current = !0, r ? u() : m(!0)));
|
|
214
|
+
}, className: "inline-flex items-center justify-center bg-transparent border-none p-0 cursor-pointer", children: /* @__PURE__ */ a(ke, { className: "h-4 w-4 text-secondary-foreground" }) }) }),
|
|
215
|
+
/* @__PURE__ */ a(B, { variant: "tertiary", side: "top", children: h("datePicker.selectDate") })
|
|
217
216
|
] })
|
|
218
217
|
] }),
|
|
219
218
|
...re
|
|
@@ -221,36 +220,36 @@ const tt = Le(
|
|
|
221
220
|
)
|
|
222
221
|
}
|
|
223
222
|
),
|
|
224
|
-
children: /* @__PURE__ */
|
|
223
|
+
children: /* @__PURE__ */ a(
|
|
225
224
|
Ee,
|
|
226
225
|
{
|
|
227
226
|
mode: "single",
|
|
228
|
-
selected:
|
|
229
|
-
footerFlashKey:
|
|
230
|
-
footerFlashTarget:
|
|
227
|
+
selected: I,
|
|
228
|
+
footerFlashKey: ae,
|
|
229
|
+
footerFlashTarget: se,
|
|
231
230
|
onSelect: ue,
|
|
232
|
-
month:
|
|
231
|
+
month: le,
|
|
233
232
|
onMonthChange: (e) => o(
|
|
234
233
|
(t) => t ? { ...t, viewMonth: e } : null
|
|
235
234
|
),
|
|
236
|
-
disabled: Ke(
|
|
237
|
-
startMonth:
|
|
238
|
-
endMonth:
|
|
239
|
-
showFooter:
|
|
240
|
-
onApply:
|
|
241
|
-
onCancel:
|
|
235
|
+
disabled: Ke(F, H),
|
|
236
|
+
startMonth: q,
|
|
237
|
+
endMonth: G,
|
|
238
|
+
showFooter: c,
|
|
239
|
+
onApply: N,
|
|
240
|
+
onCancel: S,
|
|
242
241
|
onClear: O,
|
|
243
242
|
captionLayout: "dropdown",
|
|
244
|
-
...
|
|
243
|
+
...M !== void 0 ? { weekStartsOn: M } : {},
|
|
245
244
|
...je({
|
|
246
|
-
calendarKind:
|
|
247
|
-
fiscalMode:
|
|
248
|
-
granularity:
|
|
249
|
-
fiscalMonthPattern:
|
|
250
|
-
fiscalYearStartMonth:
|
|
251
|
-
fiscalConfig:
|
|
252
|
-
showPresets:
|
|
253
|
-
showPeriodBoundaries:
|
|
245
|
+
calendarKind: Q,
|
|
246
|
+
fiscalMode: U,
|
|
247
|
+
granularity: W,
|
|
248
|
+
fiscalMonthPattern: X,
|
|
249
|
+
fiscalYearStartMonth: Y,
|
|
250
|
+
fiscalConfig: Z,
|
|
251
|
+
showPresets: _,
|
|
252
|
+
showPeriodBoundaries: $,
|
|
254
253
|
autoNavigateToAvailable: ee,
|
|
255
254
|
comparison: te,
|
|
256
255
|
onComparisonChange: ne
|
|
@@ -262,5 +261,5 @@ const tt = Le(
|
|
|
262
261
|
}
|
|
263
262
|
);
|
|
264
263
|
export {
|
|
265
|
-
|
|
264
|
+
$e as DatePicker
|
|
266
265
|
};
|