impact-nova 2.6.2 → 3.0.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/dist/components/data/ag-grid-react/ag-grid-cell-components.d.ts +9 -0
- package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +16 -0
- package/dist/components/data/ag-grid-react/ag-grid-list.js +23 -0
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +21 -9
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.d.ts +14 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +70 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.d.ts +10 -5
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +73 -41
- package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +7 -0
- package/dist/components/data/ag-grid-react/cell-renderers/index.js +42 -36
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.d.ts +19 -0
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +89 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.d.ts +28 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.js +96 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +30 -10
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +72 -24
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +42 -0
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +86 -0
- package/dist/components/data/ag-grid-react/headers/components/date-filter-picker.d.ts +2 -12
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +200 -207
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +263 -244
- package/dist/components/data/data-table/data-table.js +85 -82
- package/dist/components/data/data-table/data-table.types.d.ts +5 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +2 -3
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +2 -3
- package/dist/components/data/expandable-list-item/sku-next-page-coordinator.d.ts +14 -0
- package/dist/components/data/expandable-list-item/sku-strip-lookahead.d.ts +26 -0
- package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +10 -0
- package/dist/components/data/expandable-list-item/useSkuStripVirtualizer.d.ts +30 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +81 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.item-grid.d.ts +1 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.product-card.d.ts +7 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +2 -0
- package/dist/components/data-display/chart/chart-heatmap-demos.d.ts +3 -0
- package/dist/components/data-display/chart/chart-heatmap-play.d.ts +9 -0
- package/dist/components/data-display/chart/chart.category-cluster-heatmap.stories-data.d.ts +22 -0
- package/dist/components/data-display/chart/chart.diverging-heatmap.stories-data.d.ts +43 -0
- package/dist/components/data-display/chart/chart.js +100 -93
- package/dist/components/data-display/chart/chart.types.d.ts +10 -0
- package/dist/components/data-display/chart/chart.utils.d.ts +14 -2
- package/dist/components/data-display/chart/chart.utils.js +132 -35
- package/dist/components/data-display/chart/index.js +15 -13
- package/dist/components/data-display/chart/resolve-highcharts-options.js +19 -14
- package/dist/components/data-display/globe-map/globe-map.d.ts +8 -0
- package/dist/components/data-display/globe-map/globe-map.js +161 -0
- package/dist/components/data-display/globe-map/globe-map.stories-data.d.ts +12 -0
- package/dist/components/data-display/globe-map/globe-map.types.d.ts +83 -0
- package/dist/components/data-display/globe-map/globe-map.utils.d.ts +115 -0
- package/dist/components/data-display/globe-map/globe-map.utils.js +259 -0
- package/dist/components/data-display/globe-map/globe-map.variants.d.ts +19 -0
- package/dist/components/data-display/globe-map/globe-map.variants.js +80 -0
- package/dist/components/data-display/globe-map/index.d.ts +2 -0
- package/dist/components/data-display/globe-map/index.js +10 -0
- package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.d.ts +4 -0
- package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.js +7 -0
- package/dist/components/data-display/globe-map/internals/globe-map-context.d.ts +25 -0
- package/dist/components/data-display/globe-map/internals/globe-map-context.js +19 -0
- package/dist/components/data-display/globe-map/internals/globe-map-legend.d.ts +2 -0
- package/dist/components/data-display/globe-map/internals/globe-map-legend.js +51 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.d.ts +6 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.js +119 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card.d.ts +2 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card.js +106 -0
- package/dist/components/data-display/globe-map/internals/globe-map-scene.d.ts +17 -0
- package/dist/components/data-display/globe-map/internals/globe-map-scene.js +218 -0
- package/dist/components/data-display/globe-map/internals/globe-map-tooltip.d.ts +2 -0
- package/dist/components/data-display/globe-map/internals/globe-map-tooltip.js +33 -0
- package/dist/components/data-display/globe-map/internals/use-globe-map-scene.d.ts +45 -0
- package/dist/components/data-display/globe-map/internals/use-globe-map-scene.js +270 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.d.ts +9 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.js +94 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.stories-data.d.ts +7 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.types.d.ts +43 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.d.ts +11 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.js +47 -0
- package/dist/components/data-display/hex-tilemap/index.d.ts +2 -0
- package/dist/components/data-display/hex-tilemap/index.js +12 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-camera.d.ts +40 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-camera.js +103 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.d.ts +9 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.js +1387 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-geometry.d.ts +21 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-geometry.js +82 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-lattice.d.ts +18 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-lattice.js +47 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-layout.d.ts +10 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-layout.js +35 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.d.ts +31 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.js +138 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-regions.d.ts +6 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-regions.js +18 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.d.ts +24 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.js +19 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.d.ts +2 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.js +51 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.d.ts +2 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.js +36 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.d.ts +3 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.js +147 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.d.ts +13 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.js +99 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-world-grid.d.ts +8 -0
- package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.d.ts +27 -0
- package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.js +137 -0
- package/dist/components/data-display/notch-card/index.d.ts +2 -0
- package/dist/components/data-display/notch-card/index.js +6 -0
- package/dist/components/data-display/notch-card/notch-card.d.ts +7 -0
- package/dist/components/data-display/notch-card/notch-card.js +151 -0
- package/dist/components/data-display/notch-card/notch-card.path.d.ts +19 -0
- package/dist/components/data-display/notch-card/notch-card.path.js +118 -0
- package/dist/components/data-display/notch-card/notch-card.types.d.ts +15 -0
- package/dist/components/data-display/notch-card/notch-card.variants.d.ts +15 -0
- package/dist/components/data-display/notch-card/notch-card.variants.js +86 -0
- package/dist/components/feedback/hover-card/hover-card.d.ts +3 -1
- package/dist/components/feedback/hover-card/hover-card.js +28 -24
- package/dist/components/feedback/tooltip/overflow-tooltip.d.ts +1 -1
- package/dist/components/feedback/tooltip/overflow-tooltip.js +63 -57
- package/dist/components/feedback/tooltip/overflow-tooltip.types.d.ts +4 -0
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +2 -3
- package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
- package/dist/components/flows/filter-panel/filter-panel.js +4 -4
- package/dist/components/flows/filter-strip/index.d.ts +1 -0
- package/dist/components/flows/filter-strip/index.js +4 -2
- package/dist/components/flows/guidance/renderers/guidance-tour-overlay.js +48 -46
- package/dist/components/flows/iris-chat/index.d.ts +10 -0
- package/dist/components/flows/iris-chat/index.js +55 -0
- package/dist/components/flows/iris-chat/iris-chat-artifact.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-artifact.js +125 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.d.ts +3 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.js +297 -0
- package/dist/components/flows/iris-chat/iris-chat-context.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat-context.js +23 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +18 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.js +176 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.d.ts +3 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.js +62 -0
- package/dist/components/flows/iris-chat/iris-chat-menu.d.ts +15 -0
- package/dist/components/flows/iris-chat/iris-chat-menu.js +259 -0
- package/dist/components/flows/iris-chat/iris-chat-prompt.d.ts +3 -0
- package/dist/components/flows/iris-chat/iris-chat-prompt.js +46 -0
- package/dist/components/flows/iris-chat/iris-chat-thinking.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-thinking.js +202 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +37 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.js +493 -0
- package/dist/components/flows/iris-chat/iris-chat.d.ts +43 -0
- package/dist/components/flows/iris-chat/iris-chat.js +336 -0
- package/dist/components/flows/iris-chat/iris-chat.types.d.ts +208 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.js +78 -0
- package/dist/components/flows/iris-chat/read-iris-greeting-period.d.ts +4 -0
- package/dist/components/flows/iris-chat/read-iris-greeting-period.js +16 -0
- package/dist/components/flows/wizard/index.d.ts +2 -2
- package/dist/components/flows/wizard/index.js +17 -13
- package/dist/components/flows/wizard/wizard-context.d.ts +6 -1
- package/dist/components/flows/wizard/wizard-context.js +15 -7
- package/dist/components/flows/wizard/wizard.d.ts +22 -4
- package/dist/components/flows/wizard/wizard.js +278 -174
- package/dist/components/flows/wizard/wizard.types.d.ts +40 -0
- package/dist/components/forms/choice-card/assets/featured-backdrop-baked.webp.js +4 -0
- package/dist/components/forms/choice-card/assets/featured-noise.webp.js +4 -0
- package/dist/components/forms/choice-card/choice-card-featured-arcs.d.ts +4 -0
- package/dist/components/forms/choice-card/choice-card-featured-arcs.js +42 -0
- package/dist/components/forms/choice-card/choice-card-featured-backdrop.d.ts +4 -0
- package/dist/components/forms/choice-card/choice-card-featured-backdrop.js +45 -0
- package/dist/components/forms/choice-card/choice-card-indicator.variants.d.ts +8 -0
- package/dist/components/forms/choice-card/choice-card-indicator.variants.js +5 -0
- package/dist/components/forms/choice-card/choice-card-percent.d.ts +11 -0
- package/dist/components/forms/choice-card/choice-card-percent.js +80 -0
- package/dist/components/forms/choice-card/choice-card.d.ts +40 -3
- package/dist/components/forms/choice-card/choice-card.js +651 -170
- package/dist/components/forms/choice-card/choice-card.types.d.ts +40 -0
- package/dist/components/forms/choice-card/choice-card.variants.d.ts +7 -0
- package/dist/components/forms/choice-card/choice-card.variants.js +100 -0
- package/dist/components/forms/choice-card/index.d.ts +2 -1
- package/dist/components/forms/choice-card/index.js +27 -10
- package/dist/components/forms/select/components/SelectTriggerValue.js +2 -3
- package/dist/components/forms/select/components/Submenu.js +2 -3
- package/dist/components/layout/header/header.d.ts +3 -2
- package/dist/components/layout/header/header.js +67 -47
- package/dist/components/layout/header/header.types.d.ts +1 -0
- package/dist/components/primitives/iris/iris-agent-cursor.d.ts +3 -0
- package/dist/components/primitives/iris/iris-agent-cursor.js +89 -0
- package/dist/components/primitives/iris/iris-alan-gradient-icon.d.ts +5 -0
- package/dist/components/primitives/iris/iris-alan-gradient-icon.js +69 -0
- package/dist/components/primitives/iris/iris-control-context.d.ts +15 -0
- package/dist/components/primitives/iris/iris-control-context.js +44 -0
- package/dist/components/primitives/iris/iris-control-region.d.ts +10 -0
- package/dist/components/primitives/iris/iris-control-region.js +102 -0
- package/dist/components/primitives/iris/iris-control.types.d.ts +24 -0
- package/dist/components/primitives/iris/iris-control.variants.d.ts +4 -0
- package/dist/components/primitives/iris/iris-control.variants.js +20 -0
- package/dist/components/primitives/iris/iris.d.ts +24 -0
- package/dist/components/primitives/iris/iris.js +232 -0
- package/dist/components/primitives/iris/iris.types.d.ts +35 -0
- package/dist/components/primitives/iris/iris.variants.d.ts +30 -0
- package/dist/components/primitives/iris/iris.variants.js +120 -0
- package/dist/components/primitives/stepper/internals/pipeline-current-mark.d.ts +6 -0
- package/dist/components/primitives/stepper/internals/pipeline-current-mark.js +35 -0
- package/dist/components/primitives/stepper/internals/rail-status-dot.d.ts +13 -0
- package/dist/components/primitives/stepper/internals/rail-status-dot.js +70 -0
- package/dist/components/primitives/stepper/internals/step-hit-target.d.ts +15 -0
- package/dist/components/primitives/stepper/internals/step-hit-target.js +51 -0
- package/dist/components/primitives/stepper/internals/step-model.d.ts +3 -0
- package/dist/components/primitives/stepper/internals/step-model.js +10 -0
- package/dist/components/primitives/stepper/internals/stepper-compact.d.ts +5 -0
- package/dist/components/primitives/stepper/internals/stepper-compact.js +68 -0
- package/dist/components/primitives/stepper/internals/stepper-pipeline.d.ts +7 -0
- package/dist/components/primitives/stepper/internals/stepper-pipeline.js +87 -0
- package/dist/components/primitives/stepper/internals/stepper-rail.d.ts +5 -0
- package/dist/components/primitives/stepper/internals/stepper-rail.js +105 -0
- package/dist/components/primitives/stepper/internals/stepper-summary.d.ts +5 -0
- package/dist/components/primitives/stepper/internals/stepper-summary.js +103 -0
- package/dist/components/primitives/stepper/internals/stepper-track.d.ts +8 -0
- package/dist/components/primitives/stepper/internals/stepper-track.js +170 -0
- package/dist/components/primitives/stepper/stepper.d.ts +1 -0
- package/dist/components/primitives/stepper/stepper.js +134 -52
- package/dist/components/primitives/stepper/stepper.types.d.ts +17 -0
- package/dist/components/primitives/stepper/stepper.variants.d.ts +26 -0
- package/dist/components/primitives/stepper/stepper.variants.js +165 -5
- package/dist/components/primitives/tabs/tabs.d.ts +4 -1
- package/dist/components/primitives/tabs/tabs.js +131 -59
- package/dist/components/primitives/tabs/tabs.types.d.ts +5 -1
- package/dist/form-react/Fields/DateRangeField.js +20 -19
- package/dist/form-react/Fields/WeekRangePicker.js +36 -36
- package/dist/i18n/defaultMessages.d.ts +100 -0
- package/dist/i18n/defaultMessages.js +118 -21
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/de.js +99 -2
- package/dist/i18n/locales/es.js +99 -2
- package/dist/i18n/locales/hi.js +99 -2
- package/dist/i18n/locales/kn.js +99 -2
- package/dist/impact-nova-components.css +972 -2
- package/dist/impact-nova-tokens.scss +109 -1
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +585 -551
- package/dist/lib/virtualized/directional-range-extractor.d.ts +26 -0
- package/dist/lib/virtualized/directional-range-extractor.js +39 -0
- package/dist/lib/virtualized/index.d.ts +3 -0
- package/dist/lib/virtualized/index.js +35 -27
- package/dist/lib/virtualized/scroll-seek.d.ts +61 -0
- package/dist/lib/virtualized/scroll-seek.js +61 -0
- package/dist/lib/virtualized/usePaintedRangeVirtualizer.d.ts +19 -0
- package/dist/lib/virtualized/usePaintedRangeVirtualizer.js +30 -0
- package/dist/lib/virtualized/useResponsiveColumnCount.d.ts +35 -0
- package/dist/lib/virtualized/useResponsiveColumnCount.js +51 -0
- package/dist/lib/virtualized/useScrollSeekPaintedRange.d.ts +13 -0
- package/dist/lib/virtualized/useScrollSeekPaintedRange.js +45 -0
- package/dist/lib/virtualized/useVirtualizedList.d.ts +7 -0
- package/dist/lib/virtualized/useVirtualizedList.js +89 -87
- package/dist/lib/virtualized/useVirtualizedRows.d.ts +9 -2
- package/dist/lib/virtualized/useVirtualizedRows.js +15 -13
- package/dist/lib/virtualized/virtualized.types.d.ts +2 -0
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/tailwind.config.js +3 -1
- package/dist/theme/tailwind-colors.js +2 -1
- package/package.json +39 -4
|
@@ -1,94 +1,97 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Filter as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { DatePicker as
|
|
6
|
-
import { MonthPicker as
|
|
1
|
+
import { jsxs as v, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as _e, useCallback as X, useState as Ue } from "react";
|
|
3
|
+
import { Filter as Ye, Cross as j } from "impact-nova-icons";
|
|
4
|
+
import { cn as Je } from "../../../../lib/utils.js";
|
|
5
|
+
import { DatePicker as De } from "../../../forms/date-picker/date-picker.js";
|
|
6
|
+
import { MonthPicker as Me } from "../../../forms/date-picker/month-picker.js";
|
|
7
7
|
import { WeekPicker as Ne } from "../../../forms/date-picker/week-picker.js";
|
|
8
8
|
import { Input as q } from "../../../forms/input/input.js";
|
|
9
9
|
import { Select as Pe } from "../../../forms/select/select.js";
|
|
10
|
-
import { Popover as
|
|
10
|
+
import { Popover as Ke, PopoverTrigger as Qe, PopoverContent as Xe, PopoverHeader as Ze, PopoverTitle as $e, PopoverBody as et } from "../../../feedback/popover/popover.js";
|
|
11
11
|
import { useImpactNovaI18n as tt } from "../../../../i18n/use-impact-nova-i18n.js";
|
|
12
12
|
import { useGridHeader as rt } from "./context/grid-header-context.js";
|
|
13
|
-
import { getMultiFilterIndices as H, parseInputPattern as
|
|
13
|
+
import { getMultiFilterIndices as H, parseInputPattern as ke, mapOperatorToAgGrid as we } from "./utils/filter-utils.js";
|
|
14
14
|
import { DEFAULT_DATE_DISPLAY_FORMAT as lt, serializeWeek as nt, serializeMonth as at, serializeDate as ot, displayDateToIso as Z } from "./utils/date-utils.js";
|
|
15
|
+
import { fiscalCalendarPassThrough as st } from "../../../forms/date-picker/fiscal-pass-through.js";
|
|
15
16
|
import { useHeaderSearchEditingState as it } from "./use-header-search-editing-state.js";
|
|
16
|
-
const
|
|
17
|
-
column:
|
|
18
|
-
api:
|
|
17
|
+
const Nt = ({
|
|
18
|
+
column: N,
|
|
19
|
+
api: b,
|
|
19
20
|
onClose: $,
|
|
20
21
|
handleInlineSearch: ee,
|
|
21
22
|
handleClearSearchInline: te,
|
|
22
23
|
onAdvanceSearchClick: re,
|
|
23
24
|
toggleAdvanceSearch: le,
|
|
24
|
-
advanceSearchEnabled:
|
|
25
|
-
selectOptions:
|
|
26
|
-
isMultiSelect:
|
|
27
|
-
onSelectScrollToBottom:
|
|
28
|
-
onSelectSearchChange:
|
|
25
|
+
advanceSearchEnabled: Ae = !1,
|
|
26
|
+
selectOptions: G,
|
|
27
|
+
isMultiSelect: F,
|
|
28
|
+
onSelectScrollToBottom: He,
|
|
29
|
+
onSelectSearchChange: ze,
|
|
29
30
|
onSelectOpen: ne,
|
|
30
31
|
isLoadingSelect: ae,
|
|
31
|
-
enableSpaceSplitting:
|
|
32
|
-
enableBooleanParsing:
|
|
32
|
+
enableSpaceSplitting: Be = !1,
|
|
33
|
+
enableBooleanParsing: Se = !1,
|
|
33
34
|
enableDateParsing: Ie = !1
|
|
34
35
|
}) => {
|
|
35
|
-
const { t:
|
|
36
|
-
|
|
36
|
+
const { t: i } = tt(), l = N.getColDef(), c = N.getColId(), V = l?.filter || "agTextColumnFilter", C = V === "agDateColumnFilter", L = V === "agSetColumnFilter" || G && G.length > 0 || l?.cellDataType === "boolean", _ = l?.headerComponentParams?.datePickerVariant || "date", z = C && _ === "month", B = C && _ === "week", S = st(
|
|
37
|
+
l?.headerComponentParams ?? {}
|
|
38
|
+
), y = l?.headerComponentParams?.dateDisplayFormat || lt, oe = rt(), U = _e(null), {
|
|
39
|
+
searchText: Y,
|
|
37
40
|
dateDisplayString: I,
|
|
38
|
-
selectedDate:
|
|
39
|
-
selectedMonth:
|
|
41
|
+
selectedDate: se,
|
|
42
|
+
selectedMonth: ie,
|
|
40
43
|
selectedWeek: ce,
|
|
41
|
-
updateDraft:
|
|
42
|
-
handleFocus:
|
|
43
|
-
handleBlur:
|
|
44
|
-
clearEditingOverlay:
|
|
44
|
+
updateDraft: P,
|
|
45
|
+
handleFocus: f,
|
|
46
|
+
handleBlur: p,
|
|
47
|
+
clearEditingOverlay: We
|
|
45
48
|
} = it({
|
|
46
|
-
api:
|
|
47
|
-
colId:
|
|
49
|
+
api: b,
|
|
50
|
+
colId: c,
|
|
48
51
|
colDef: l,
|
|
49
|
-
isDateFilter:
|
|
52
|
+
isDateFilter: C,
|
|
50
53
|
isMonthVariant: z,
|
|
51
54
|
isWeekVariant: B,
|
|
52
|
-
datePickerVariant:
|
|
53
|
-
dateDisplayFormat:
|
|
55
|
+
datePickerVariant: _,
|
|
56
|
+
dateDisplayFormat: y
|
|
54
57
|
}), D = (e, t) => {
|
|
55
|
-
const n = (a) => a.replace(/[^0-9.\-+eE]/g, ""),
|
|
56
|
-
const
|
|
58
|
+
const n = (a) => a.replace(/[^0-9.\-+eE]/g, ""), s = (a, R) => {
|
|
59
|
+
const w = ke(
|
|
57
60
|
a,
|
|
58
|
-
ze,
|
|
59
61
|
Be,
|
|
62
|
+
Se,
|
|
60
63
|
Ie
|
|
61
64
|
);
|
|
62
|
-
if (
|
|
63
|
-
const Ce = (
|
|
64
|
-
let
|
|
65
|
+
if (w.conditions.length === 0) return null;
|
|
66
|
+
const Ce = (d) => {
|
|
67
|
+
let x = we(d.operator);
|
|
65
68
|
if (R === "number") {
|
|
66
|
-
const
|
|
69
|
+
const Te = parseFloat(n(d.value));
|
|
67
70
|
return ["contains", "notContains", "startsWith", "endsWith"].includes(
|
|
68
|
-
|
|
69
|
-
) && (
|
|
70
|
-
type:
|
|
71
|
-
filter: parseFloat(n(
|
|
72
|
-
filterTo: parseFloat(n(
|
|
71
|
+
x
|
|
72
|
+
) && (x = x === "notContains" ? "notEqual" : "equals"), d.operator === "inRange" ? {
|
|
73
|
+
type: x,
|
|
74
|
+
filter: parseFloat(n(d.value)) || 0,
|
|
75
|
+
filterTo: parseFloat(n(d.valueTo || "")) || 0,
|
|
73
76
|
filterType: "number"
|
|
74
|
-
} : isNaN(
|
|
77
|
+
} : isNaN(Te) ? null : { type: x, filter: Te, filterType: "number" };
|
|
75
78
|
}
|
|
76
79
|
return {
|
|
77
|
-
type:
|
|
78
|
-
filter:
|
|
79
|
-
filterTo:
|
|
80
|
+
type: x,
|
|
81
|
+
filter: d.value,
|
|
82
|
+
filterTo: d.valueTo,
|
|
80
83
|
filterType: "text"
|
|
81
84
|
};
|
|
82
85
|
};
|
|
83
86
|
let A = null;
|
|
84
|
-
if (
|
|
85
|
-
A = Ce(
|
|
87
|
+
if (w.conditions.length === 1)
|
|
88
|
+
A = Ce(w.conditions[0]);
|
|
86
89
|
else {
|
|
87
|
-
const
|
|
88
|
-
|
|
90
|
+
const d = w.conditions.map(Ce).filter((x) => x !== null);
|
|
91
|
+
d.length === 0 ? A = null : d.length === 1 ? A = d[0] : A = {
|
|
89
92
|
filterType: R,
|
|
90
|
-
operator:
|
|
91
|
-
conditions:
|
|
93
|
+
operator: w.logic,
|
|
94
|
+
conditions: d
|
|
92
95
|
};
|
|
93
96
|
}
|
|
94
97
|
return A;
|
|
@@ -122,36 +125,36 @@ const Tt = ({
|
|
|
122
125
|
o = a ? { type: "equals", dateFrom: a, filterType: "date" } : null;
|
|
123
126
|
}
|
|
124
127
|
else {
|
|
125
|
-
const a = l.filter === "agMultiColumnFilter" ? H(l) : null, R = a ? a.text !== -1 ? "text" : "number" :
|
|
126
|
-
o =
|
|
128
|
+
const a = l.filter === "agMultiColumnFilter" ? H(l) : null, R = a ? a.text !== -1 ? "text" : "number" : V === "agNumberColumnFilter" ? "number" : "text";
|
|
129
|
+
o = s(String(e), R);
|
|
127
130
|
}
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
},
|
|
131
|
+
const u = l.filter === "agMultiColumnFilter" ? H(l) : null, T = u ? t === "text" ? u.text !== -1 ? u.text : u.number : t === "set" ? u.set : u.date : 0;
|
|
132
|
+
K(o, T);
|
|
133
|
+
}, J = (e) => {
|
|
131
134
|
if (ee) {
|
|
132
135
|
ee(Array.isArray(e) ? e.join(",") : e);
|
|
133
136
|
return;
|
|
134
137
|
}
|
|
135
|
-
D(e,
|
|
138
|
+
D(e, C ? "date" : "text");
|
|
136
139
|
}, de = (e) => {
|
|
137
140
|
const t = e.target.value;
|
|
138
|
-
|
|
141
|
+
P({ searchText: t }), J(t);
|
|
139
142
|
}, ue = (e) => {
|
|
140
|
-
|
|
143
|
+
P({ selectedDate: e }), J(e);
|
|
141
144
|
}, fe = (e) => {
|
|
142
|
-
|
|
145
|
+
P({ selectedMonth: e }), D(e || null, "date");
|
|
143
146
|
}, pe = (e) => {
|
|
144
|
-
|
|
145
|
-
},
|
|
147
|
+
P({ selectedWeek: e }), D(e || null, "date");
|
|
148
|
+
}, Ee = (e) => {
|
|
146
149
|
if (!e.trim()) return null;
|
|
147
|
-
const t =
|
|
150
|
+
const t = ke(e, !1, !1, !1);
|
|
148
151
|
if (t.conditions.length === 0) return null;
|
|
149
152
|
const n = (o) => {
|
|
150
|
-
let
|
|
153
|
+
let g = we(o.operator);
|
|
151
154
|
if (["contains", "notContains", "startsWith", "endsWith"].includes(
|
|
152
|
-
|
|
153
|
-
) && (
|
|
154
|
-
let T = Z(o.value,
|
|
155
|
+
g
|
|
156
|
+
) && (g = g === "notContains" ? "notEqual" : "equals"), o.operator === "inRange") {
|
|
157
|
+
let T = Z(o.value, y), a = Z(o.valueTo || "", y);
|
|
155
158
|
return !T || !a ? null : (T > a && ([T, a] = [a, T]), {
|
|
156
159
|
type: "inRange",
|
|
157
160
|
dateFrom: T,
|
|
@@ -159,66 +162,66 @@ const Tt = ({
|
|
|
159
162
|
filterType: "date"
|
|
160
163
|
});
|
|
161
164
|
}
|
|
162
|
-
const
|
|
163
|
-
return
|
|
164
|
-
type:
|
|
165
|
-
dateFrom:
|
|
165
|
+
const u = Z(o.value, y);
|
|
166
|
+
return u ? {
|
|
167
|
+
type: g,
|
|
168
|
+
dateFrom: u,
|
|
166
169
|
filterType: "date"
|
|
167
170
|
} : null;
|
|
168
171
|
};
|
|
169
172
|
if (t.conditions.length === 1)
|
|
170
173
|
return n(t.conditions[0]);
|
|
171
|
-
const
|
|
172
|
-
return
|
|
174
|
+
const s = t.conditions.map(n).filter((o) => o !== null);
|
|
175
|
+
return s.length === 0 ? null : s.length === 1 ? s[0] : {
|
|
173
176
|
filterType: "date",
|
|
174
177
|
operator: t.logic,
|
|
175
|
-
conditions:
|
|
178
|
+
conditions: s
|
|
176
179
|
};
|
|
177
|
-
},
|
|
180
|
+
}, K = X(
|
|
178
181
|
(e, t) => {
|
|
179
|
-
const n =
|
|
182
|
+
const n = b.getFilterModel(), s = { ...n };
|
|
180
183
|
if (l.filter === "agMultiColumnFilter") {
|
|
181
184
|
if (t === -1) return;
|
|
182
|
-
const o = n[
|
|
183
|
-
|
|
185
|
+
const o = n[c], g = o && o.filterType === "multi" ? [...o.filterModels || []] : Array(l.filterParams?.filters?.length || 1).fill(null);
|
|
186
|
+
g[t] = e, g.every((u) => u === null) ? delete s[c] : s[c] = {
|
|
184
187
|
filterType: "multi",
|
|
185
|
-
filterModels:
|
|
188
|
+
filterModels: g
|
|
186
189
|
};
|
|
187
190
|
} else
|
|
188
|
-
e ?
|
|
189
|
-
|
|
191
|
+
e ? s[c] = e : delete s[c];
|
|
192
|
+
b.setFilterModel(s);
|
|
190
193
|
},
|
|
191
|
-
[
|
|
192
|
-
),
|
|
194
|
+
[b, c, l]
|
|
195
|
+
), me = X(
|
|
193
196
|
(e) => {
|
|
194
197
|
const t = l.filter === "agMultiColumnFilter" ? H(l).date : 0;
|
|
195
|
-
|
|
198
|
+
K(e, t);
|
|
196
199
|
},
|
|
197
|
-
[l,
|
|
198
|
-
),
|
|
200
|
+
[l, K]
|
|
201
|
+
), he = (e) => {
|
|
199
202
|
const t = e.target.value.replace(/[^0-9/\-!=><+,~]/g, "");
|
|
200
|
-
if (
|
|
201
|
-
|
|
203
|
+
if (P({ dateDisplayString: t }), !t.trim()) {
|
|
204
|
+
me(null);
|
|
202
205
|
return;
|
|
203
206
|
}
|
|
204
|
-
const n =
|
|
205
|
-
n &&
|
|
207
|
+
const n = Ee(t);
|
|
208
|
+
n && me(n);
|
|
206
209
|
}, Q = () => {
|
|
207
|
-
|
|
208
|
-
},
|
|
210
|
+
We(), J(""), te && te();
|
|
211
|
+
}, W = (e) => {
|
|
209
212
|
D(e, "set");
|
|
210
|
-
},
|
|
211
|
-
{ label:
|
|
212
|
-
{ label:
|
|
213
|
+
}, E = G || (l?.cellDataType === "boolean" ? [
|
|
214
|
+
{ label: i("gridHeader.true"), value: "true" },
|
|
215
|
+
{ label: i("gridHeader.false"), value: "false" }
|
|
213
216
|
] : []), ge = X(() => {
|
|
214
|
-
const e =
|
|
217
|
+
const e = b.getFilterModel()[c];
|
|
215
218
|
if (!e) return [];
|
|
216
219
|
if ("filterType" in e && e.filterType === "multi" && e.filterModels) {
|
|
217
|
-
const n = H(
|
|
220
|
+
const n = H(N.getColDef()).set;
|
|
218
221
|
if (n !== -1) {
|
|
219
|
-
const
|
|
220
|
-
if (
|
|
221
|
-
return
|
|
222
|
+
const s = e.filterModels[n];
|
|
223
|
+
if (s?.filterType === "set" && s.values)
|
|
224
|
+
return s.values.filter((o) => o != null);
|
|
222
225
|
}
|
|
223
226
|
} else {
|
|
224
227
|
if (e.filterType === "set" && "values" in e)
|
|
@@ -227,30 +230,30 @@ const Tt = ({
|
|
|
227
230
|
return [String(e.filter)];
|
|
228
231
|
}
|
|
229
232
|
return [];
|
|
230
|
-
}, [
|
|
231
|
-
const e =
|
|
232
|
-
return
|
|
233
|
+
}, [b, c, N]), [O, k] = Ue(null), ve = () => {
|
|
234
|
+
const e = O !== null ? O : ge();
|
|
235
|
+
return F ? E.filter((t) => e.includes(t.value)) : E.find((t) => e.includes(t.value)) || null;
|
|
233
236
|
}, ye = (e) => {
|
|
234
237
|
let t = [];
|
|
235
|
-
if (Array.isArray(e) ? t = e.map((n) => n.value) : e && typeof e == "object" && "value" in e && (t = [e.value]), !
|
|
236
|
-
|
|
238
|
+
if (Array.isArray(e) ? t = e.map((n) => n.value) : e && typeof e == "object" && "value" in e && (t = [e.value]), !F) {
|
|
239
|
+
W(t), e && $();
|
|
237
240
|
return;
|
|
238
241
|
}
|
|
239
242
|
k(t);
|
|
240
|
-
},
|
|
241
|
-
|
|
243
|
+
}, Oe = () => {
|
|
244
|
+
W([]), k([]);
|
|
242
245
|
}, Re = (e) => {
|
|
243
|
-
if (
|
|
246
|
+
if (F) {
|
|
244
247
|
if (e !== void 0) {
|
|
245
248
|
let t = [];
|
|
246
|
-
Array.isArray(e) ? t = e.map((n) => n.value) : e && typeof e == "object" && "value" in e ? t = [e.value] : e === null && (t = []),
|
|
249
|
+
Array.isArray(e) ? t = e.map((n) => n.value) : e && typeof e == "object" && "value" in e ? t = [e.value] : e === null && (t = []), W(t), k(null);
|
|
247
250
|
return;
|
|
248
251
|
}
|
|
249
|
-
|
|
252
|
+
O !== null && (W(O), k(null));
|
|
250
253
|
}
|
|
251
254
|
}, je = () => {
|
|
252
255
|
k(ge()), ne && ne();
|
|
253
|
-
}, qe = () =>
|
|
256
|
+
}, qe = () => Ae ? /* @__PURE__ */ r(
|
|
254
257
|
"svg",
|
|
255
258
|
{
|
|
256
259
|
className: "cursor-pointer text-navigation-muted hover:text-brand-variant-hover shrink-0",
|
|
@@ -261,33 +264,33 @@ const Tt = ({
|
|
|
261
264
|
width: "18",
|
|
262
265
|
height: "18",
|
|
263
266
|
onClick: (e) => {
|
|
264
|
-
e.stopPropagation(),
|
|
267
|
+
e.stopPropagation(), U.current && U.current.blur(), re ? re(N) : le ? le(c) : oe && oe.openAdvancedFilter(c);
|
|
265
268
|
},
|
|
266
269
|
children: /* @__PURE__ */ r("path", { d: "M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z" })
|
|
267
270
|
}
|
|
268
|
-
) : null,
|
|
271
|
+
) : null, Ge = () => /* @__PURE__ */ r(
|
|
269
272
|
"button",
|
|
270
273
|
{
|
|
271
274
|
onClick: $,
|
|
272
275
|
className: "cursor-pointer shrink-0 text-brand hover:text-brand-strong",
|
|
273
276
|
children: /* @__PURE__ */ r(j, { size: "xs" })
|
|
274
277
|
}
|
|
275
|
-
),
|
|
276
|
-
let
|
|
277
|
-
|
|
278
|
-
const
|
|
278
|
+
), M = l.filter === "agMultiColumnFilter", m = H(l);
|
|
279
|
+
let h = "text";
|
|
280
|
+
M ? h = m.set !== -1 ? "set" : m.date !== -1 ? "date" : "text" : L ? h = "set" : C && (h = "date");
|
|
281
|
+
const Ve = M ? m.text !== -1 || m.number !== -1 : !C && !L, xe = M ? m.set !== -1 : L, be = M ? m.date !== -1 : C, Le = b.getFilterModel()[c], Fe = M && Le?.filterModels?.some((e, t) => {
|
|
279
282
|
const n = t === m.text || t === m.number ? "text" : t === m.set ? "set" : "date";
|
|
280
|
-
return e !== null && n !==
|
|
283
|
+
return e !== null && n !== h;
|
|
281
284
|
});
|
|
282
|
-
return /* @__PURE__ */
|
|
283
|
-
|
|
285
|
+
return /* @__PURE__ */ v("div", { className: "ag-header-cell-label flex items-center gap-1 w-full bg-brand-tint px-1 py-2 ag-header-cell-search-active h-full", children: [
|
|
286
|
+
h === "set" && xe ? /* @__PURE__ */ r(
|
|
284
287
|
Pe,
|
|
285
288
|
{
|
|
286
|
-
options:
|
|
289
|
+
options: E,
|
|
287
290
|
value: ve(),
|
|
288
291
|
onChange: ye,
|
|
289
|
-
isMulti:
|
|
290
|
-
placeholder:
|
|
292
|
+
isMulti: F !== void 0 ? F : l?.cellDataType !== "boolean",
|
|
293
|
+
placeholder: i("filter.select"),
|
|
291
294
|
className: "w-full bg-canvas-elevated",
|
|
292
295
|
parentClassName: "flex-1 min-w-0",
|
|
293
296
|
menuWidth: "200px",
|
|
@@ -295,23 +298,23 @@ const Tt = ({
|
|
|
295
298
|
autoFocus: !0,
|
|
296
299
|
onMenuOpen: je,
|
|
297
300
|
onMenuClose: Re,
|
|
298
|
-
onMenuScrollToBottom:
|
|
299
|
-
onInputChange:
|
|
300
|
-
onClearAll:
|
|
301
|
+
onMenuScrollToBottom: He,
|
|
302
|
+
onInputChange: ze,
|
|
303
|
+
onClearAll: Oe,
|
|
301
304
|
isLoading: ae,
|
|
302
|
-
onFocus:
|
|
303
|
-
onBlur:
|
|
305
|
+
onFocus: f,
|
|
306
|
+
onBlur: p
|
|
304
307
|
}
|
|
305
|
-
) :
|
|
308
|
+
) : h === "date" && be ? I ? /* @__PURE__ */ r(
|
|
306
309
|
q,
|
|
307
310
|
{
|
|
308
311
|
value: I,
|
|
309
|
-
onChange:
|
|
310
|
-
placeholder:
|
|
312
|
+
onChange: he,
|
|
313
|
+
placeholder: i("filter.search"),
|
|
311
314
|
className: "w-full bg-canvas-elevated",
|
|
312
315
|
autoFocus: !0,
|
|
313
|
-
onFocus:
|
|
314
|
-
onBlur:
|
|
316
|
+
onFocus: f,
|
|
317
|
+
onBlur: p,
|
|
315
318
|
suffix: /* @__PURE__ */ r(
|
|
316
319
|
"button",
|
|
317
320
|
{
|
|
@@ -328,58 +331,53 @@ const Tt = ({
|
|
|
328
331
|
{
|
|
329
332
|
value: ce || void 0,
|
|
330
333
|
onChange: (e) => pe(e || null),
|
|
331
|
-
placeholder:
|
|
332
|
-
format:
|
|
334
|
+
placeholder: i("datePicker.selectWeek"),
|
|
335
|
+
format: y,
|
|
333
336
|
minDate: /* @__PURE__ */ new Date("2000-01-01"),
|
|
334
337
|
maxDate: /* @__PURE__ */ new Date("2100-12-31"),
|
|
335
338
|
className: "w-full bg-canvas-elevated",
|
|
336
339
|
showFooter: !1,
|
|
337
|
-
|
|
338
|
-
fiscalMode: c?.fiscalMode,
|
|
339
|
-
granularity: c?.granularity,
|
|
340
|
-
fiscalMonthPattern: c?.fiscalMonthPattern,
|
|
341
|
-
fiscalYearStartMonth: c?.fiscalYearStartMonth,
|
|
342
|
-
weekStartsOn: c?.weekStartsOn
|
|
340
|
+
...S
|
|
343
341
|
}
|
|
344
342
|
) : z ? /* @__PURE__ */ r(
|
|
345
|
-
|
|
343
|
+
Me,
|
|
346
344
|
{
|
|
347
|
-
value:
|
|
345
|
+
value: ie || void 0,
|
|
348
346
|
onChange: (e) => fe(e || null),
|
|
349
|
-
placeholder:
|
|
347
|
+
placeholder: i("datePicker.selectMonth"),
|
|
350
348
|
minDate: /* @__PURE__ */ new Date("2000-01-01"),
|
|
351
349
|
maxDate: /* @__PURE__ */ new Date("2100-12-31"),
|
|
352
350
|
className: "w-full bg-canvas-elevated",
|
|
353
351
|
showFooter: !1,
|
|
354
|
-
onFocus:
|
|
355
|
-
onBlur:
|
|
352
|
+
onFocus: f,
|
|
353
|
+
onBlur: p
|
|
356
354
|
}
|
|
357
355
|
) : /* @__PURE__ */ r(
|
|
358
|
-
|
|
356
|
+
De,
|
|
359
357
|
{
|
|
360
|
-
value:
|
|
358
|
+
value: se || void 0,
|
|
361
359
|
onChange: (e) => ue(e || null),
|
|
362
|
-
placeholder:
|
|
363
|
-
format:
|
|
360
|
+
placeholder: i("filter.selectDate"),
|
|
361
|
+
format: y,
|
|
364
362
|
minDate: /* @__PURE__ */ new Date("2000-01-01"),
|
|
365
363
|
maxDate: /* @__PURE__ */ new Date("2100-12-31"),
|
|
366
364
|
className: "w-full bg-canvas-elevated",
|
|
367
|
-
weekStartsOn:
|
|
368
|
-
onFocus:
|
|
369
|
-
onBlur:
|
|
365
|
+
weekStartsOn: S.weekStartsOn,
|
|
366
|
+
onFocus: f,
|
|
367
|
+
onBlur: p
|
|
370
368
|
}
|
|
371
369
|
) : /* @__PURE__ */ r(
|
|
372
370
|
q,
|
|
373
371
|
{
|
|
374
|
-
value:
|
|
372
|
+
value: Y,
|
|
375
373
|
onChange: de,
|
|
376
|
-
placeholder:
|
|
374
|
+
placeholder: i("filter.search"),
|
|
377
375
|
type: "text",
|
|
378
376
|
autoFocus: !0,
|
|
379
|
-
ref:
|
|
380
|
-
onFocus:
|
|
381
|
-
onBlur:
|
|
382
|
-
suffix:
|
|
377
|
+
ref: U,
|
|
378
|
+
onFocus: f,
|
|
379
|
+
onBlur: p,
|
|
380
|
+
suffix: Y && /* @__PURE__ */ r(
|
|
383
381
|
"button",
|
|
384
382
|
{
|
|
385
383
|
onClick: (e) => {
|
|
@@ -391,20 +389,20 @@ const Tt = ({
|
|
|
391
389
|
)
|
|
392
390
|
}
|
|
393
391
|
),
|
|
394
|
-
/* @__PURE__ */
|
|
395
|
-
|
|
396
|
-
/* @__PURE__ */ r(Qe, { asChild: !0, children: /* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ v("div", { className: "flex items-center gap-1.5 shrink-0", children: [
|
|
393
|
+
M && /* @__PURE__ */ v(Ke, { children: [
|
|
394
|
+
/* @__PURE__ */ r(Qe, { asChild: !0, children: /* @__PURE__ */ v(
|
|
397
395
|
"button",
|
|
398
396
|
{
|
|
399
397
|
type: "button",
|
|
400
|
-
"aria-label":
|
|
398
|
+
"aria-label": i("gridHeader.activeFilters"),
|
|
401
399
|
className: "relative group p-1 hover:bg-brand-tint rounded-md transition-colors cursor-pointer bg-transparent border-none",
|
|
402
400
|
children: [
|
|
403
401
|
/* @__PURE__ */ r(
|
|
404
|
-
|
|
402
|
+
Ye,
|
|
405
403
|
{
|
|
406
404
|
size: "md",
|
|
407
|
-
className:
|
|
405
|
+
className: Je(
|
|
408
406
|
"text-content-tertiary group-hover:text-brand-variant-hover",
|
|
409
407
|
Fe && "text-brand-variant-hover"
|
|
410
408
|
)
|
|
@@ -414,50 +412,50 @@ const Tt = ({
|
|
|
414
412
|
]
|
|
415
413
|
}
|
|
416
414
|
) }),
|
|
417
|
-
/* @__PURE__ */
|
|
418
|
-
/* @__PURE__ */ r(Ze, { children: /* @__PURE__ */ r($e, { children:
|
|
419
|
-
/* @__PURE__ */
|
|
420
|
-
|
|
421
|
-
/* @__PURE__ */ r("span", { className: "text-xs font-semibold text-content-tertiary", children:
|
|
415
|
+
/* @__PURE__ */ v(Xe, { align: "end", className: "w-[300px]", children: [
|
|
416
|
+
/* @__PURE__ */ r(Ze, { children: /* @__PURE__ */ r($e, { children: i("gridHeader.activeFilters") }) }),
|
|
417
|
+
/* @__PURE__ */ v(et, { className: "flex flex-col gap-4", children: [
|
|
418
|
+
h !== "text" && Ve && /* @__PURE__ */ v("div", { className: "flex flex-col gap-1.5", children: [
|
|
419
|
+
/* @__PURE__ */ r("span", { className: "text-xs font-semibold text-content-tertiary", children: i("gridHeader.textSearch") }),
|
|
422
420
|
/* @__PURE__ */ r(
|
|
423
421
|
q,
|
|
424
422
|
{
|
|
425
|
-
value:
|
|
423
|
+
value: Y,
|
|
426
424
|
onChange: de,
|
|
427
|
-
placeholder:
|
|
425
|
+
placeholder: i("filter.searchPlaceholder"),
|
|
428
426
|
className: "bg-canvas-elevated",
|
|
429
|
-
onFocus:
|
|
430
|
-
onBlur:
|
|
427
|
+
onFocus: f,
|
|
428
|
+
onBlur: p
|
|
431
429
|
}
|
|
432
430
|
)
|
|
433
431
|
] }),
|
|
434
|
-
|
|
435
|
-
/* @__PURE__ */ r("span", { className: "text-xs font-semibold text-content-tertiary", children:
|
|
432
|
+
h !== "set" && xe && /* @__PURE__ */ v("div", { className: "flex flex-col gap-1.5", children: [
|
|
433
|
+
/* @__PURE__ */ r("span", { className: "text-xs font-semibold text-content-tertiary", children: i("gridHeader.selectionFilter") }),
|
|
436
434
|
/* @__PURE__ */ r(
|
|
437
435
|
Pe,
|
|
438
436
|
{
|
|
439
|
-
options:
|
|
437
|
+
options: E,
|
|
440
438
|
value: ve(),
|
|
441
439
|
onChange: ye,
|
|
442
|
-
isMulti:
|
|
443
|
-
placeholder:
|
|
440
|
+
isMulti: F !== void 0 ? F : l?.cellDataType !== "boolean",
|
|
441
|
+
placeholder: i("filter.select"),
|
|
444
442
|
className: "w-full bg-canvas-elevated",
|
|
445
443
|
isLoading: ae,
|
|
446
|
-
onFocus:
|
|
447
|
-
onBlur:
|
|
444
|
+
onFocus: f,
|
|
445
|
+
onBlur: p
|
|
448
446
|
}
|
|
449
447
|
)
|
|
450
448
|
] }),
|
|
451
|
-
|
|
452
|
-
/* @__PURE__ */ r("span", { className: "text-xs font-semibold text-content-tertiary", children:
|
|
449
|
+
h !== "date" && be && /* @__PURE__ */ v("div", { className: "flex flex-col gap-1.5", children: [
|
|
450
|
+
/* @__PURE__ */ r("span", { className: "text-xs font-semibold text-content-tertiary", children: i("gridHeader.dateFilter") }),
|
|
453
451
|
I ? /* @__PURE__ */ r(
|
|
454
452
|
q,
|
|
455
453
|
{
|
|
456
454
|
value: I,
|
|
457
|
-
onChange:
|
|
455
|
+
onChange: he,
|
|
458
456
|
className: "w-full bg-canvas-elevated",
|
|
459
|
-
onFocus:
|
|
460
|
-
onBlur:
|
|
457
|
+
onFocus: f,
|
|
458
|
+
onBlur: p,
|
|
461
459
|
suffix: /* @__PURE__ */ r(
|
|
462
460
|
"button",
|
|
463
461
|
{
|
|
@@ -474,36 +472,31 @@ const Tt = ({
|
|
|
474
472
|
{
|
|
475
473
|
value: ce || void 0,
|
|
476
474
|
onChange: (e) => pe(e || null),
|
|
477
|
-
format:
|
|
475
|
+
format: y,
|
|
478
476
|
className: "w-full bg-canvas-elevated",
|
|
479
477
|
showFooter: !1,
|
|
480
|
-
|
|
481
|
-
fiscalMode: c?.fiscalMode,
|
|
482
|
-
granularity: c?.granularity,
|
|
483
|
-
fiscalMonthPattern: c?.fiscalMonthPattern,
|
|
484
|
-
fiscalYearStartMonth: c?.fiscalYearStartMonth,
|
|
485
|
-
weekStartsOn: c?.weekStartsOn
|
|
478
|
+
...S
|
|
486
479
|
}
|
|
487
480
|
) : z ? /* @__PURE__ */ r(
|
|
488
|
-
|
|
481
|
+
Me,
|
|
489
482
|
{
|
|
490
|
-
value:
|
|
483
|
+
value: ie || void 0,
|
|
491
484
|
onChange: (e) => fe(e || null),
|
|
492
485
|
className: "w-full bg-canvas-elevated",
|
|
493
486
|
showFooter: !1,
|
|
494
|
-
onFocus:
|
|
495
|
-
onBlur:
|
|
487
|
+
onFocus: f,
|
|
488
|
+
onBlur: p
|
|
496
489
|
}
|
|
497
490
|
) : /* @__PURE__ */ r(
|
|
498
|
-
|
|
491
|
+
De,
|
|
499
492
|
{
|
|
500
|
-
value:
|
|
493
|
+
value: se || void 0,
|
|
501
494
|
onChange: (e) => ue(e || null),
|
|
502
|
-
format:
|
|
495
|
+
format: y,
|
|
503
496
|
className: "w-full bg-canvas-elevated",
|
|
504
|
-
weekStartsOn:
|
|
505
|
-
onFocus:
|
|
506
|
-
onBlur:
|
|
497
|
+
weekStartsOn: S.weekStartsOn,
|
|
498
|
+
onFocus: f,
|
|
499
|
+
onBlur: p
|
|
507
500
|
}
|
|
508
501
|
)
|
|
509
502
|
] })
|
|
@@ -511,10 +504,10 @@ const Tt = ({
|
|
|
511
504
|
] })
|
|
512
505
|
] }),
|
|
513
506
|
qe(),
|
|
514
|
-
|
|
507
|
+
Ge()
|
|
515
508
|
] })
|
|
516
509
|
] });
|
|
517
510
|
};
|
|
518
511
|
export {
|
|
519
|
-
|
|
512
|
+
Nt as HeaderSearchInput
|
|
520
513
|
};
|