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,107 +1,178 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { lazy as
|
|
3
|
-
import { ModuleRegistry as
|
|
4
|
-
import { AllEnterpriseModule as
|
|
5
|
-
import { AgGridReact as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
1
|
+
import { jsxs as xe, jsx as R } from "react/jsx-runtime";
|
|
2
|
+
import { lazy as ie, useRef as g, useState as ne, useId as ct, useMemo as y, useEffect as z, useCallback as u, Suspense as le } from "react";
|
|
3
|
+
import { ModuleRegistry as st, AllCommunityModule as at } from "ag-grid-community";
|
|
4
|
+
import { AllEnterpriseModule as ut } from "ag-grid-enterprise";
|
|
5
|
+
import { AgGridReact as dt } from "ag-grid-react";
|
|
6
|
+
import { useImpactNovaI18n as mt } from "../../../i18n/use-impact-nova-i18n.js";
|
|
7
|
+
import { isCommentPresenceClass as pt } from "./comments/comments-ag-grid-presence.js";
|
|
8
|
+
import { mergeCommentsContextMenuItems as ft } from "./comments/comments-menu.js";
|
|
9
|
+
import { COMMENTS_MISSING_ROW_ID_WARNING as Ie, IV_HAS_CELL_COMMENT as gt } from "./comments/comments-constants.js";
|
|
10
|
+
import { createNotesDataSource as Ct, noteOwnsCellPointer as Se } from "./notes/notes-ag-grid-adapter.js";
|
|
11
|
+
import { NOTES_MISSING_ROW_ID_WARNING as Ae } from "./notes/notes-constants.js";
|
|
12
|
+
import { mergeChatContextMenuItems as ht } from "./chat/chat-menu.js";
|
|
13
|
+
import { CHAT_MISSING_ROW_ID_WARNING as yt, IV_CHAT_COL_ID as bt } from "./chat/chat-constants.js";
|
|
14
|
+
import { createChatCellRenderer as vt, appendChatSystemColumn as xt, createChatSystemColumn as It, resolveChatColumnId as St } from "./chat/chat-column.js";
|
|
15
|
+
import { exportColumnColIds as Re, isNovaSystemColId as Fe } from "./nova-system-column.js";
|
|
16
|
+
import { customAgGridTheme as At } from "./theme.js";
|
|
17
|
+
import { syncAgGridThemeMode as Rt } from "./sync-ag-grid-theme-mode.js";
|
|
18
|
+
import { CustomHeader as Ft } from "./headers/custom-header.js";
|
|
19
|
+
import { CustomHeaderGroup as Me } from "./headers/custom-inner-header-group.js";
|
|
20
|
+
import { mergeColumnGroupDefsWithDefault as Mt } from "./merge-column-group-defs.js";
|
|
21
|
+
import { DefaultTextCellRenderer as Et } from "./cell-renderers/default-text-cell-renderer.js";
|
|
22
|
+
import { GridHeaderContext as Gt } from "./headers/context/grid-header-context.js";
|
|
23
|
+
import { convertToAgGridFilterModel as wt, getMultiFilterIndices as Tt, convertFromAgGridFilterModel as Nt } from "./headers/utils/filter-utils.js";
|
|
24
|
+
import { AG_GRID_VALUE_FORMATTERS as Dt } from "./value-formatters.js";
|
|
25
|
+
import { useGridAutoSizeStrategyOnResize as kt } from "./useGridAutoSizeStrategyOnResize.js";
|
|
26
|
+
import { subscribeGridApiEvent as xn, subscribeGridApiEvents as In } from "./grid-api-event-subscription.js";
|
|
27
|
+
import { notifyColumnIndicatorSync as J } from "./notify-column-indicator-sync.js";
|
|
28
|
+
import { setActiveSearchColumnId as oe, clearHeaderSearchActiveState as _t } from "./headers/header-search-active-state.js";
|
|
19
29
|
/* empty css */
|
|
20
|
-
import { useAgGridTruncationTooltip as
|
|
21
|
-
import { isAgGridHeaderLabelTooltipOverflowing as
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
import { useAgGridTruncationTooltip as An } from "./use-ag-grid-truncation-tooltip.js";
|
|
31
|
+
import { isAgGridHeaderLabelTooltipOverflowing as Fn, isAgGridTextOverflowing as Mn } from "./ag-grid-tooltip-overflow.js";
|
|
32
|
+
import { formatPercent as jt, formatCurrency as Ht } from "../../../i18n/format/format-number.js";
|
|
33
|
+
const Lt = ie(
|
|
34
|
+
() => import("./headers/advanced-filter/advanced-filter-dialog.js").then((c) => ({
|
|
35
|
+
default: c.AdvancedFilterDialog
|
|
36
|
+
}))
|
|
37
|
+
), Pt = ie(
|
|
38
|
+
() => import("./comments/comments-host.js").then((c) => ({
|
|
39
|
+
default: c.CommentsHost
|
|
40
|
+
}))
|
|
41
|
+
), Wt = ie(
|
|
42
|
+
() => import("./chat/chat-host.js").then((c) => ({
|
|
43
|
+
default: c.ChatHost
|
|
25
44
|
}))
|
|
26
45
|
);
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
if (!
|
|
30
|
-
const
|
|
31
|
-
if (Array.isArray(
|
|
32
|
-
const
|
|
33
|
-
if (Array.isArray(
|
|
34
|
-
},
|
|
35
|
-
const
|
|
36
|
-
for (const
|
|
37
|
-
const
|
|
38
|
-
if (!
|
|
39
|
-
|
|
46
|
+
st.registerModules([at, ut]);
|
|
47
|
+
const O = "", re = "", Ee = (c) => {
|
|
48
|
+
if (!c) return;
|
|
49
|
+
const i = c.cellRendererParams?.splits;
|
|
50
|
+
if (Array.isArray(i) && i.length > 0) return i;
|
|
51
|
+
const s = c.cellEditorParams?.splits;
|
|
52
|
+
if (Array.isArray(s) && s.length > 0) return s;
|
|
53
|
+
}, Ge = (c, i) => {
|
|
54
|
+
const s = [];
|
|
55
|
+
for (const D of i) {
|
|
56
|
+
const F = D?.field?.split(".").pop();
|
|
57
|
+
if (!F) {
|
|
58
|
+
s.push("");
|
|
40
59
|
continue;
|
|
41
60
|
}
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
44
|
-
|
|
61
|
+
const d = c[F];
|
|
62
|
+
if (d == null) {
|
|
63
|
+
s.push("");
|
|
45
64
|
continue;
|
|
46
65
|
}
|
|
47
|
-
if (typeof
|
|
48
|
-
const
|
|
49
|
-
|
|
66
|
+
if (typeof d == "object" && "value" in d) {
|
|
67
|
+
const m = d.value;
|
|
68
|
+
s.push(m == null ? "" : String(m));
|
|
50
69
|
continue;
|
|
51
70
|
}
|
|
52
|
-
if (typeof
|
|
53
|
-
|
|
71
|
+
if (typeof d != "object") {
|
|
72
|
+
s.push(String(d));
|
|
54
73
|
continue;
|
|
55
74
|
}
|
|
56
|
-
|
|
75
|
+
s.push("");
|
|
57
76
|
}
|
|
58
|
-
return
|
|
59
|
-
},
|
|
77
|
+
return s;
|
|
78
|
+
}, we = (c) => {
|
|
60
79
|
if (typeof navigator < "u" && navigator.clipboard?.writeText) {
|
|
61
|
-
navigator.clipboard.writeText(
|
|
80
|
+
navigator.clipboard.writeText(c).catch(() => Te(c));
|
|
62
81
|
return;
|
|
63
82
|
}
|
|
64
|
-
|
|
65
|
-
},
|
|
83
|
+
Te(c);
|
|
84
|
+
}, Te = (c) => {
|
|
66
85
|
if (typeof document > "u") return;
|
|
67
|
-
const
|
|
68
|
-
|
|
86
|
+
const i = document.createElement("textarea");
|
|
87
|
+
i.value = c, i.setAttribute("readonly", ""), i.style.position = "fixed", i.style.top = "0", i.style.left = "0", i.style.opacity = "0", i.style.pointerEvents = "none", document.body.appendChild(i);
|
|
69
88
|
try {
|
|
70
|
-
|
|
89
|
+
i.select(), document.execCommand("copy");
|
|
71
90
|
} finally {
|
|
72
|
-
document.body.removeChild(
|
|
91
|
+
document.body.removeChild(i);
|
|
73
92
|
}
|
|
74
93
|
};
|
|
75
|
-
function
|
|
76
|
-
children:
|
|
77
|
-
defaultColDef:
|
|
78
|
-
defaultColGroupDef:
|
|
79
|
-
columnDefs:
|
|
80
|
-
valueFormatters:
|
|
81
|
-
onGridReady:
|
|
82
|
-
onGridPreDestroyed:
|
|
83
|
-
onFilterChanged:
|
|
84
|
-
onSelectionChanged:
|
|
85
|
-
onModelUpdated:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
94
|
+
function yn({
|
|
95
|
+
children: c,
|
|
96
|
+
defaultColDef: i,
|
|
97
|
+
defaultColGroupDef: s,
|
|
98
|
+
columnDefs: D,
|
|
99
|
+
valueFormatters: F,
|
|
100
|
+
onGridReady: d,
|
|
101
|
+
onGridPreDestroyed: m,
|
|
102
|
+
onFilterChanged: k,
|
|
103
|
+
onSelectionChanged: M,
|
|
104
|
+
onModelUpdated: K,
|
|
105
|
+
onCellMouseOver: v,
|
|
106
|
+
onCellMouseOut: E,
|
|
107
|
+
onCellClicked: _,
|
|
108
|
+
getContextMenuItems: G,
|
|
109
|
+
comments: j,
|
|
110
|
+
notes: X,
|
|
111
|
+
chat: p,
|
|
112
|
+
ensureDomOrder: Ne = !1,
|
|
113
|
+
autoSizeStrategy: ce,
|
|
114
|
+
tooltipShowMode: De = "whenTruncated",
|
|
115
|
+
tooltipShowDelay: ke = 500,
|
|
116
|
+
tooltipHideDelay: _e = 5e3,
|
|
117
|
+
tooltipInteraction: je = !0,
|
|
118
|
+
themeOverride: He,
|
|
93
119
|
...C
|
|
94
120
|
}) {
|
|
95
|
-
const
|
|
96
|
-
|
|
121
|
+
const a = g(null), H = g(null), [x, se] = ne(null), ae = ct(), w = g(ae);
|
|
122
|
+
w.current = ae;
|
|
123
|
+
const { t: b, locale: ue, dateLocale: de, numberLocale: me, messages: U } = mt(), I = j != null, S = X != null, f = p != null, T = g(null), B = g(null), L = g(j);
|
|
124
|
+
L.current = j;
|
|
125
|
+
const P = g(X);
|
|
126
|
+
P.current = X;
|
|
127
|
+
const W = g(p);
|
|
128
|
+
W.current = p;
|
|
129
|
+
const pe = g(!1), fe = g(!1), ge = g(!1), V = g(void 0), Q = y(
|
|
130
|
+
() => ({
|
|
131
|
+
...C.context,
|
|
132
|
+
locale: ue,
|
|
133
|
+
dateLocale: de,
|
|
134
|
+
numberLocale: me,
|
|
135
|
+
booleanYes: U.dataTable.booleanYes,
|
|
136
|
+
booleanNo: U.dataTable.booleanNo
|
|
137
|
+
}),
|
|
138
|
+
[C.context, ue, de, me, U.dataTable.booleanYes, U.dataTable.booleanNo]
|
|
139
|
+
);
|
|
140
|
+
z(() => {
|
|
141
|
+
x && (x.setGridOption("context", Q), x.refreshCells({ force: !0 }));
|
|
142
|
+
}, [x, Q]);
|
|
143
|
+
const Le = y(() => {
|
|
144
|
+
if (S)
|
|
145
|
+
return Ct(
|
|
146
|
+
{
|
|
147
|
+
getNote: (e) => P.current.getNote(e),
|
|
148
|
+
setNote: (e, t) => P.current.setNote(e, t)
|
|
149
|
+
},
|
|
150
|
+
() => {
|
|
151
|
+
fe.current || (fe.current = !0, console.warn(Ae));
|
|
152
|
+
}
|
|
153
|
+
);
|
|
154
|
+
}, [S]);
|
|
155
|
+
z(() => {
|
|
156
|
+
if (!C.getRowId) {
|
|
157
|
+
if (I) {
|
|
158
|
+
console.warn(Ie);
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
if (S) {
|
|
162
|
+
console.warn(Ae);
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
f && !ge.current && (ge.current = !0, console.warn(yt));
|
|
166
|
+
}
|
|
167
|
+
}, [f, I, S, C.getRowId]), kt(x, H, ce), z(() => {
|
|
97
168
|
const e = document.documentElement, t = () => {
|
|
98
|
-
|
|
169
|
+
Rt(e.classList.contains("dark") ? "dark" : "light", e);
|
|
99
170
|
};
|
|
100
171
|
t();
|
|
101
172
|
const n = new MutationObserver(t);
|
|
102
173
|
return n.observe(e, { attributes: !0, attributeFilter: ["class"] }), () => n.disconnect();
|
|
103
174
|
}, []);
|
|
104
|
-
const [
|
|
175
|
+
const [Pe, Ce] = ne(!1), [We, he] = ne(null), Oe = u(() => [], []), Ke = y(() => ({
|
|
105
176
|
numericColumn: {
|
|
106
177
|
cellClass: "ag-right-aligned-cell",
|
|
107
178
|
headerClass: "ag-right-aligned-header",
|
|
@@ -111,90 +182,106 @@ function lt({
|
|
|
111
182
|
cellClass: "ag-right-aligned-cell",
|
|
112
183
|
headerClass: "ag-right-aligned-header",
|
|
113
184
|
filter: "agNumberColumnFilter",
|
|
114
|
-
valueFormatter: (e) => e.value != null ?
|
|
185
|
+
valueFormatter: (e) => e.value != null ? Ht(Number(e.value), e.context?.numberLocale ?? "en", "USD", {
|
|
186
|
+
minimumFractionDigits: 2,
|
|
187
|
+
maximumFractionDigits: 2
|
|
188
|
+
}) : ""
|
|
115
189
|
},
|
|
116
190
|
percentage: {
|
|
117
191
|
cellClass: "ag-right-aligned-cell",
|
|
118
192
|
headerClass: "ag-right-aligned-header",
|
|
119
193
|
filter: "agNumberColumnFilter",
|
|
120
|
-
valueFormatter: (e) => e.value != null ?
|
|
194
|
+
valueFormatter: (e) => e.value != null ? jt(Number(e.value) / 100, e.context?.numberLocale ?? "en", {
|
|
195
|
+
minimumFractionDigits: 2,
|
|
196
|
+
maximumFractionDigits: 2
|
|
197
|
+
}) : ""
|
|
121
198
|
},
|
|
122
199
|
dateColumn: {
|
|
123
200
|
filter: "agDateColumnFilter"
|
|
124
201
|
}
|
|
125
|
-
}), []),
|
|
126
|
-
gridScopeId:
|
|
202
|
+
}), []), Z = y(() => ({
|
|
203
|
+
gridScopeId: w.current,
|
|
127
204
|
openSearch: (e) => {
|
|
128
|
-
if (!
|
|
129
|
-
const t =
|
|
130
|
-
|
|
205
|
+
if (!a.current) return;
|
|
206
|
+
const t = a.current.getGridOption("context") || {};
|
|
207
|
+
a.current.setGridOption("context", { ...t, activeSearchColumnId: e }), oe(w.current, e), J(a.current);
|
|
131
208
|
},
|
|
132
209
|
closeSearch: () => {
|
|
133
|
-
if (!
|
|
134
|
-
const e =
|
|
135
|
-
|
|
210
|
+
if (!a.current) return;
|
|
211
|
+
const e = a.current.getGridOption("context") || {};
|
|
212
|
+
a.current.setGridOption("context", { ...e, activeSearchColumnId: null }), oe(w.current, null), J(a.current);
|
|
136
213
|
},
|
|
137
214
|
openAdvancedFilter: (e) => {
|
|
138
|
-
|
|
215
|
+
he(e || null), Ce(!0);
|
|
139
216
|
},
|
|
140
217
|
closeAdvancedFilter: () => {
|
|
141
|
-
|
|
218
|
+
Ce(!1), he(null);
|
|
142
219
|
},
|
|
143
220
|
applyAdvancedFilter: (e) => {
|
|
144
|
-
if (!
|
|
145
|
-
const t =
|
|
146
|
-
|
|
221
|
+
if (!a.current) return;
|
|
222
|
+
const t = wt(e);
|
|
223
|
+
a.current.setFilterModel(t), a.current.onFilterChanged(), J(a.current);
|
|
147
224
|
}
|
|
148
|
-
}), []),
|
|
149
|
-
|
|
225
|
+
}), []), Ue = u((e) => {
|
|
226
|
+
a.current = e.api, se(e.api), V.current = Re(
|
|
227
|
+
e.api.getAllDisplayedColumns?.() ?? e.api.getColumns?.()
|
|
228
|
+
);
|
|
150
229
|
const t = e.api.getGridOption("context") || {};
|
|
151
230
|
e.api.setGridOption("context", {
|
|
152
231
|
...t,
|
|
153
232
|
activeSearchColumnId: null,
|
|
154
|
-
headerSearchScopeId:
|
|
155
|
-
}),
|
|
156
|
-
|
|
233
|
+
headerSearchScopeId: w.current
|
|
234
|
+
}), oe(w.current, null);
|
|
235
|
+
const n = W.current;
|
|
236
|
+
if (n && n.column !== !1 && n.colId == null) {
|
|
237
|
+
const l = typeof n.column == "object" ? n.column.pinned : void 0, r = l === void 0 ? "right" : l;
|
|
238
|
+
(r === "left" || r === "right") && e.api.setColumnsPinned([bt], r);
|
|
239
|
+
}
|
|
240
|
+
d && d(e);
|
|
241
|
+
}, [d]), Ve = u(
|
|
157
242
|
(e) => {
|
|
158
|
-
|
|
243
|
+
_t(w.current), a.current = null, se(null), m?.(e);
|
|
159
244
|
},
|
|
160
|
-
[
|
|
161
|
-
),
|
|
245
|
+
[m]
|
|
246
|
+
), Ye = u(
|
|
162
247
|
(e) => {
|
|
163
|
-
|
|
248
|
+
J(e.api), k?.(e);
|
|
164
249
|
},
|
|
165
|
-
[
|
|
166
|
-
),
|
|
250
|
+
[k]
|
|
251
|
+
), qe = u(
|
|
167
252
|
(e) => {
|
|
168
|
-
|
|
253
|
+
M?.(e);
|
|
169
254
|
},
|
|
170
|
-
[
|
|
171
|
-
),
|
|
255
|
+
[M]
|
|
256
|
+
), ze = u(
|
|
172
257
|
(e) => {
|
|
173
|
-
|
|
258
|
+
V.current = Re(
|
|
259
|
+
e.api.getAllDisplayedColumns?.() ?? e.api.getColumns?.()
|
|
260
|
+
), K?.(e);
|
|
174
261
|
},
|
|
175
|
-
[
|
|
262
|
+
[K]
|
|
176
263
|
);
|
|
177
|
-
|
|
178
|
-
const e =
|
|
264
|
+
z(() => {
|
|
265
|
+
const e = H.current;
|
|
179
266
|
if (!e) return;
|
|
180
267
|
const t = (n) => {
|
|
181
268
|
if (n.key !== "Enter" && n.key !== " ") return;
|
|
182
|
-
const
|
|
183
|
-
if (!
|
|
184
|
-
const r =
|
|
269
|
+
const l = n.target;
|
|
270
|
+
if (!l.classList.contains("ag-cell") && !l.classList.contains("ag-header-cell")) return;
|
|
271
|
+
const r = l.querySelector(
|
|
185
272
|
'button, [role="checkbox"], [role="switch"], [role="combobox"], [role="button"], [role="link"], a, input, select, textarea, .cursor-pointer'
|
|
186
273
|
);
|
|
187
274
|
r && (n.preventDefault(), n.stopPropagation(), r.click(), r.focus());
|
|
188
275
|
};
|
|
189
276
|
return e.addEventListener("keydown", t, !0), () => e.removeEventListener("keydown", t, !0);
|
|
190
277
|
}, []);
|
|
191
|
-
const
|
|
192
|
-
headerComponent:
|
|
278
|
+
const Je = y(() => ({
|
|
279
|
+
headerComponent: Ft,
|
|
193
280
|
// Default cell renderer wraps text in a span so display:flex centering
|
|
194
281
|
// and text-overflow:ellipsis both work (ellipsis doesn't work on
|
|
195
282
|
// anonymous flex text nodes, but works on flex child elements).
|
|
196
|
-
cellRenderer:
|
|
197
|
-
...
|
|
283
|
+
cellRenderer: Et,
|
|
284
|
+
...i,
|
|
198
285
|
suppressHeaderKeyboardEvent: (e) => {
|
|
199
286
|
const { event: t } = e, n = t.target;
|
|
200
287
|
if (n.tagName === "INPUT" || n.tagName === "TEXTAREA")
|
|
@@ -202,49 +289,87 @@ function lt({
|
|
|
202
289
|
if (t.key === "Enter" || t.key === " ") {
|
|
203
290
|
const r = n.closest(".ag-header-cell");
|
|
204
291
|
if (r) {
|
|
205
|
-
const
|
|
206
|
-
if (
|
|
207
|
-
return t.preventDefault(),
|
|
292
|
+
const o = r.querySelector('[role="checkbox"], button, [role="switch"], input');
|
|
293
|
+
if (o)
|
|
294
|
+
return t.preventDefault(), o.click(), !0;
|
|
208
295
|
}
|
|
209
296
|
}
|
|
210
|
-
return
|
|
297
|
+
return i?.suppressHeaderKeyboardEvent?.(e) ?? !1;
|
|
211
298
|
},
|
|
212
299
|
headerComponentParams: {
|
|
213
|
-
...
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
|
|
300
|
+
...i?.headerComponentParams
|
|
301
|
+
},
|
|
302
|
+
...I ? {
|
|
303
|
+
cellClassRules: {
|
|
304
|
+
...i?.cellClassRules,
|
|
305
|
+
[gt]: (e) => {
|
|
306
|
+
const t = L.current;
|
|
307
|
+
return t ? pt(e, t.hasIndicator, () => {
|
|
308
|
+
pe.current || (pe.current = !0, console.warn(Ie));
|
|
309
|
+
}) : !1;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
} : {}
|
|
313
|
+
}), [i, I]), $ = y(() => ({
|
|
314
|
+
...s,
|
|
217
315
|
headerGroupComponentParams: {
|
|
218
|
-
...
|
|
219
|
-
innerHeaderGroupComponent:
|
|
316
|
+
...s?.headerGroupComponentParams,
|
|
317
|
+
innerHeaderGroupComponent: s?.headerGroupComponentParams?.innerHeaderGroupComponent ?? "CustomInnerHeaderGroup"
|
|
220
318
|
}
|
|
221
|
-
}), [
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
319
|
+
}), [s]), ye = f && p != null && p.column !== !1 && p.colId == null, be = typeof p?.column == "object" ? p.column.pinned : void 0, ve = typeof p?.column == "object" ? p.column.width : void 0, ee = y(() => {
|
|
320
|
+
if (f)
|
|
321
|
+
return vt(() => {
|
|
322
|
+
const e = W.current;
|
|
323
|
+
return {
|
|
324
|
+
hasConversation: (t) => e.hasConversation(t),
|
|
325
|
+
unreadCount: (t) => e.unreadCount?.(t) ?? 0,
|
|
326
|
+
priority: (t) => e.priority?.(t),
|
|
327
|
+
label: (t, n) => {
|
|
328
|
+
const l = e.getRowTitle?.(t) ?? t;
|
|
329
|
+
return n > 0 ? b("chat.cellLabelUnread", { title: l, count: n }) : b("chat.cellLabel", { title: l });
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
});
|
|
333
|
+
}, [f, b]), Xe = y(
|
|
334
|
+
() => {
|
|
335
|
+
const e = Mt(D ?? void 0, $);
|
|
336
|
+
return !ye || !ee ? e : xt(
|
|
337
|
+
e ?? [],
|
|
338
|
+
It({
|
|
339
|
+
headerName: b("chat.columnHeader"),
|
|
340
|
+
cellRenderer: ee,
|
|
341
|
+
pinned: be,
|
|
342
|
+
width: ve
|
|
343
|
+
})
|
|
344
|
+
);
|
|
345
|
+
},
|
|
346
|
+
[ee, be, ve, D, ye, $, b]
|
|
347
|
+
), Be = y(() => ({
|
|
348
|
+
...Dt,
|
|
226
349
|
// Always available - value formatters
|
|
227
|
-
CustomInnerHeaderGroup:
|
|
228
|
-
CustomHeaderGroup:
|
|
350
|
+
CustomInnerHeaderGroup: Me,
|
|
351
|
+
CustomHeaderGroup: Me,
|
|
229
352
|
...C.components,
|
|
230
353
|
// User components override
|
|
231
|
-
...
|
|
354
|
+
...F
|
|
232
355
|
// Optional custom formatters override defaults
|
|
233
|
-
}), [
|
|
234
|
-
const t = e.
|
|
235
|
-
if (t
|
|
236
|
-
const n =
|
|
237
|
-
if (n
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
356
|
+
}), [F, C.components]), Qe = u((e) => {
|
|
357
|
+
const t = e.column?.getColId?.();
|
|
358
|
+
if (Fe(t)) return "";
|
|
359
|
+
const n = e.value;
|
|
360
|
+
if (n == null || typeof n != "object") return n;
|
|
361
|
+
const l = Ee(e.column?.getColDef());
|
|
362
|
+
if (l && l.length > 0) {
|
|
363
|
+
const o = Ge(n, l);
|
|
364
|
+
if (l.length === 1) {
|
|
365
|
+
const N = l[0]?.field?.split(".").pop(), A = N ? n[N] : void 0;
|
|
366
|
+
return A && typeof A == "object" && "value" in A ? A.value ?? "" : o[0];
|
|
242
367
|
}
|
|
243
|
-
return
|
|
368
|
+
return re + o.join(O);
|
|
244
369
|
}
|
|
245
|
-
const
|
|
246
|
-
return
|
|
247
|
-
}, []),
|
|
370
|
+
const r = Object.entries(n).map(([, o]) => o && typeof o == "object" && "value" in o ? o.value : typeof o != "object" && typeof o < "u" ? o : null).filter((o) => o != null);
|
|
371
|
+
return r.length === 0 ? "" : r.length === 1 ? r[0] : r.join(O);
|
|
372
|
+
}, []), Ze = u((e) => {
|
|
248
373
|
if (typeof e.value == "string") {
|
|
249
374
|
const t = e.value.trim();
|
|
250
375
|
if (t.startsWith("{") || t.startsWith("["))
|
|
@@ -255,142 +380,244 @@ function lt({
|
|
|
255
380
|
}
|
|
256
381
|
}
|
|
257
382
|
return e.value;
|
|
258
|
-
}, []),
|
|
383
|
+
}, []), $e = u((e) => {
|
|
259
384
|
const t = e?.data ?? "";
|
|
260
|
-
if (!t.includes(
|
|
261
|
-
|
|
385
|
+
if (!t.includes(O) && !t.includes(re)) {
|
|
386
|
+
we(t);
|
|
262
387
|
return;
|
|
263
388
|
}
|
|
264
|
-
const n = [],
|
|
389
|
+
const n = [], l = t.split(`
|
|
265
390
|
`);
|
|
266
|
-
for (let r = 0; r <
|
|
267
|
-
const
|
|
268
|
-
if (
|
|
391
|
+
for (let r = 0; r < l.length; r++) {
|
|
392
|
+
const o = l[r];
|
|
393
|
+
if (o.length === 0 && r === l.length - 1) {
|
|
269
394
|
n.push("");
|
|
270
395
|
continue;
|
|
271
396
|
}
|
|
272
|
-
const
|
|
273
|
-
if (
|
|
274
|
-
n.push(
|
|
397
|
+
const A = o.split(" ").map((h) => h.startsWith(re) ? { isSplit: !0, slots: h.slice(1).split(O) } : { isSplit: !1, slots: h.split(O) }), te = Math.max(1, ...A.map((h) => h.slots.length));
|
|
398
|
+
if (te === 1) {
|
|
399
|
+
n.push(A.map((h) => h.slots[0] ?? "").join(" "));
|
|
275
400
|
continue;
|
|
276
401
|
}
|
|
277
|
-
for (let
|
|
278
|
-
const
|
|
279
|
-
n.push(
|
|
402
|
+
for (let h = 0; h < te; h++) {
|
|
403
|
+
const it = A.map((q) => !q.isSplit && q.slots.length === 1 ? q.slots[0] : q.slots[h] ?? "");
|
|
404
|
+
n.push(it.join(" "));
|
|
280
405
|
}
|
|
281
406
|
}
|
|
282
|
-
|
|
407
|
+
we(n.join(`
|
|
283
408
|
`));
|
|
284
|
-
}, []),
|
|
285
|
-
const t = e.
|
|
286
|
-
if (t
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
if (n
|
|
290
|
-
|
|
291
|
-
|
|
409
|
+
}, []), Y = u((e) => {
|
|
410
|
+
const t = e.column?.getColId?.();
|
|
411
|
+
if (Fe(t)) return "";
|
|
412
|
+
const n = e.value;
|
|
413
|
+
if (n == null) return "";
|
|
414
|
+
if (typeof n != "object") return String(n);
|
|
415
|
+
const l = Ee(e.column?.getColDef());
|
|
416
|
+
if (l && l.length > 0) {
|
|
417
|
+
const o = Ge(n, l);
|
|
418
|
+
return l.length === 1 ? o[0] : o.join(`
|
|
292
419
|
`);
|
|
293
420
|
}
|
|
294
|
-
const
|
|
295
|
-
for (const
|
|
296
|
-
if (
|
|
297
|
-
const
|
|
298
|
-
if (
|
|
299
|
-
|
|
421
|
+
const r = [];
|
|
422
|
+
for (const o of Object.values(n)) {
|
|
423
|
+
if (o && typeof o == "object" && "value" in o) {
|
|
424
|
+
const N = o.value;
|
|
425
|
+
if (N == null) continue;
|
|
426
|
+
r.push(String(N));
|
|
300
427
|
continue;
|
|
301
428
|
}
|
|
302
|
-
|
|
429
|
+
o != null && typeof o != "object" && r.push(String(o));
|
|
303
430
|
}
|
|
304
|
-
return
|
|
431
|
+
return r.length === 0 ? "" : r.length === 1 ? r[0] : r.join(`
|
|
305
432
|
`);
|
|
306
|
-
}, []),
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
433
|
+
}, []), et = y(() => {
|
|
434
|
+
const e = C.defaultCsvExportParams ?? {};
|
|
435
|
+
return {
|
|
436
|
+
processCellCallback: Y,
|
|
437
|
+
...e,
|
|
438
|
+
...f && !("columnKeys" in e) ? {
|
|
439
|
+
get columnKeys() {
|
|
440
|
+
return V.current;
|
|
441
|
+
}
|
|
442
|
+
} : {}
|
|
443
|
+
};
|
|
444
|
+
}, [f, Y, C.defaultCsvExportParams]), tt = y(() => {
|
|
445
|
+
const e = C.defaultExcelExportParams ?? {};
|
|
446
|
+
return {
|
|
447
|
+
processCellCallback: Y,
|
|
448
|
+
...e,
|
|
449
|
+
...f && !("columnKeys" in e) ? {
|
|
450
|
+
get columnKeys() {
|
|
451
|
+
return V.current;
|
|
452
|
+
}
|
|
453
|
+
} : {}
|
|
454
|
+
};
|
|
455
|
+
}, [f, Y, C.defaultExcelExportParams]), nt = u(
|
|
456
|
+
(e) => {
|
|
457
|
+
v?.(e), !Se(P.current, L.current?.commentMode, e) && T.current?.onCellMouseOver(e);
|
|
458
|
+
},
|
|
459
|
+
[v]
|
|
460
|
+
), ot = u(
|
|
461
|
+
(e) => {
|
|
462
|
+
E?.(e), T.current?.onCellMouseOut(e);
|
|
463
|
+
},
|
|
464
|
+
[E]
|
|
465
|
+
), rt = u(
|
|
466
|
+
(e) => {
|
|
467
|
+
_?.(e);
|
|
468
|
+
const t = W.current, n = t ? St(t) : void 0;
|
|
469
|
+
if (n && e.column?.getColId() === n) {
|
|
470
|
+
B.current?.onCellClicked(e);
|
|
471
|
+
return;
|
|
472
|
+
}
|
|
473
|
+
Se(P.current, L.current?.commentMode, e) || T.current?.onCellClicked(e);
|
|
474
|
+
},
|
|
475
|
+
[_]
|
|
476
|
+
), lt = u(
|
|
477
|
+
(e) => {
|
|
478
|
+
const t = (G ? G(e) : e.defaultItems) ?? [];
|
|
479
|
+
let n = Array.isArray(t) ? t : [];
|
|
480
|
+
const l = L.current;
|
|
481
|
+
l && (n = ft({
|
|
482
|
+
items: n,
|
|
483
|
+
config: l,
|
|
484
|
+
address: e.node?.id && e.column ? { rowId: e.node.id, colId: e.column.getColId() } : void 0,
|
|
485
|
+
labels: {
|
|
486
|
+
addComment: b("comments.addComment"),
|
|
487
|
+
openComment: b("comments.openComment"),
|
|
488
|
+
deleteThread: b("comments.deleteThread")
|
|
489
|
+
},
|
|
490
|
+
onAdd: (o) => T.current?.openAt(o, "composer"),
|
|
491
|
+
onOpen: (o) => T.current?.openAt(o, "expanded"),
|
|
492
|
+
onDeleteThread: (o) => T.current?.openAt(o, "expanded"),
|
|
493
|
+
preserveNativeNoteItems: S
|
|
494
|
+
}));
|
|
495
|
+
const r = W.current;
|
|
496
|
+
return r && (n = ht({
|
|
497
|
+
items: n,
|
|
498
|
+
config: r,
|
|
499
|
+
rowId: e.node?.id ?? void 0,
|
|
500
|
+
openLabel: b("chat.openChat"),
|
|
501
|
+
onOpen: (o) => B.current?.openRow(o)
|
|
502
|
+
})), n;
|
|
503
|
+
},
|
|
504
|
+
[S, b, G]
|
|
505
|
+
);
|
|
506
|
+
return /* @__PURE__ */ xe(Gt.Provider, { value: Z, children: [
|
|
507
|
+
/* @__PURE__ */ xe(
|
|
508
|
+
"div",
|
|
316
509
|
{
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
510
|
+
ref: H,
|
|
511
|
+
"data-component": "ag-grid-react",
|
|
512
|
+
...I ? { "data-iv-comments": "" } : {},
|
|
513
|
+
...S ? { "data-iv-notes": "" } : {},
|
|
514
|
+
...f ? { "data-iv-chat": "" } : {},
|
|
515
|
+
...j?.commentMode ? { "data-iv-comment-mode": "" } : {},
|
|
516
|
+
style: { width: "100%", height: "100%", position: I || f ? "relative" : void 0 },
|
|
517
|
+
children: [
|
|
518
|
+
/* @__PURE__ */ R(
|
|
519
|
+
dt,
|
|
520
|
+
{
|
|
521
|
+
theme: He ?? At,
|
|
522
|
+
defaultColDef: Je,
|
|
523
|
+
columnDefs: Xe,
|
|
524
|
+
cellSelection: !0,
|
|
525
|
+
defaultColGroupDef: $,
|
|
526
|
+
onGridReady: Ue,
|
|
527
|
+
onGridPreDestroyed: Ve,
|
|
528
|
+
onFilterChanged: Ye,
|
|
529
|
+
onSelectionChanged: qe,
|
|
530
|
+
onModelUpdated: ze,
|
|
531
|
+
tooltipShowMode: De,
|
|
532
|
+
tooltipShowDelay: ke,
|
|
533
|
+
tooltipHideDelay: _e,
|
|
534
|
+
tooltipInteraction: je,
|
|
535
|
+
processCellForClipboard: Qe,
|
|
536
|
+
processCellFromClipboard: Ze,
|
|
537
|
+
sendToClipboard: $e,
|
|
538
|
+
ensureDomOrder: Ne,
|
|
539
|
+
suppressHeaderFocus: !1,
|
|
540
|
+
suppressFocusAfterRefresh: !0,
|
|
541
|
+
suppressGroupRowsSticky: !0,
|
|
542
|
+
hidePaddedHeaderRows: !0,
|
|
543
|
+
suppressServerSideFullWidthLoadingRow: !0,
|
|
544
|
+
columnTypes: Ke,
|
|
545
|
+
autoSizeStrategy: ce,
|
|
546
|
+
...C,
|
|
547
|
+
context: Q,
|
|
548
|
+
components: Be,
|
|
549
|
+
defaultCsvExportParams: et,
|
|
550
|
+
defaultExcelExportParams: tt,
|
|
551
|
+
getMainMenuItems: Oe,
|
|
552
|
+
...I || f ? {
|
|
553
|
+
...I ? {
|
|
554
|
+
onCellMouseOver: nt,
|
|
555
|
+
onCellMouseOut: ot
|
|
556
|
+
} : {
|
|
557
|
+
...v ? { onCellMouseOver: v } : {},
|
|
558
|
+
...E ? { onCellMouseOut: E } : {}
|
|
559
|
+
},
|
|
560
|
+
onCellClicked: rt,
|
|
561
|
+
getContextMenuItems: lt
|
|
562
|
+
} : {
|
|
563
|
+
...v ? { onCellMouseOver: v } : {},
|
|
564
|
+
...E ? { onCellMouseOut: E } : {},
|
|
565
|
+
..._ ? { onCellClicked: _ } : {},
|
|
566
|
+
...G ? { getContextMenuItems: G } : {}
|
|
567
|
+
},
|
|
568
|
+
...S ? { notesDataSource: Le } : {}
|
|
569
|
+
}
|
|
570
|
+
),
|
|
571
|
+
j ? /* @__PURE__ */ R(le, { fallback: null, children: /* @__PURE__ */ R(Pt, { ref: T, comments: j, gridApi: x, containerRef: H }) }) : null,
|
|
572
|
+
p ? /* @__PURE__ */ R(le, { fallback: null, children: /* @__PURE__ */ R(Wt, { ref: B, chat: p, gridApi: x, containerRef: H }) }) : null
|
|
573
|
+
]
|
|
347
574
|
}
|
|
348
|
-
)
|
|
349
|
-
|
|
350
|
-
/* @__PURE__ */
|
|
351
|
-
|
|
575
|
+
),
|
|
576
|
+
c,
|
|
577
|
+
/* @__PURE__ */ R(
|
|
578
|
+
Ot,
|
|
352
579
|
{
|
|
353
|
-
isOpen:
|
|
354
|
-
columnId:
|
|
355
|
-
gridApi:
|
|
356
|
-
onClose:
|
|
357
|
-
onApply:
|
|
580
|
+
isOpen: Pe,
|
|
581
|
+
columnId: We,
|
|
582
|
+
gridApi: x,
|
|
583
|
+
onClose: Z.closeAdvancedFilter,
|
|
584
|
+
onApply: Z.applyAdvancedFilter
|
|
358
585
|
}
|
|
359
586
|
)
|
|
360
587
|
] });
|
|
361
588
|
}
|
|
362
|
-
function
|
|
363
|
-
isOpen:
|
|
364
|
-
columnId:
|
|
365
|
-
gridApi:
|
|
366
|
-
onClose:
|
|
367
|
-
onApply:
|
|
589
|
+
function Ot({
|
|
590
|
+
isOpen: c,
|
|
591
|
+
columnId: i,
|
|
592
|
+
gridApi: s,
|
|
593
|
+
onClose: D,
|
|
594
|
+
onApply: F
|
|
368
595
|
}) {
|
|
369
|
-
if (!
|
|
370
|
-
const
|
|
371
|
-
if (!
|
|
372
|
-
const
|
|
373
|
-
return /* @__PURE__ */
|
|
374
|
-
|
|
596
|
+
if (!c || !i || !s) return null;
|
|
597
|
+
const d = s.getColumn(i);
|
|
598
|
+
if (!d) return null;
|
|
599
|
+
const m = d.getColDef(), k = m.headerComponentParams, M = Tt(m), K = M.text !== -1 || M.number !== -1 || M.date !== -1, v = M.set !== -1, _ = m.filter === "agMultiColumnFilter" && (K || v) ? "multi" : m.filter === "agNumberColumnFilter" ? "number" : m.filter === "agDateColumnFilter" ? "date" : m.filter === "agSetColumnFilter" || k?.selectOptions ? "select" : "text", G = Nt(s.getFilterModel());
|
|
600
|
+
return /* @__PURE__ */ R(le, { fallback: null, children: /* @__PURE__ */ R(
|
|
601
|
+
Lt,
|
|
375
602
|
{
|
|
376
|
-
isOpen:
|
|
377
|
-
onClose:
|
|
378
|
-
onApply:
|
|
379
|
-
columnId:
|
|
380
|
-
columnLabel:
|
|
381
|
-
columnType:
|
|
382
|
-
selectOptions:
|
|
383
|
-
isMultiSelect:
|
|
384
|
-
initialModel:
|
|
385
|
-
api:
|
|
603
|
+
isOpen: c,
|
|
604
|
+
onClose: D,
|
|
605
|
+
onApply: F,
|
|
606
|
+
columnId: i,
|
|
607
|
+
columnLabel: m.headerName || i,
|
|
608
|
+
columnType: _,
|
|
609
|
+
selectOptions: k?.selectOptions,
|
|
610
|
+
isMultiSelect: k?.isMultiSelect,
|
|
611
|
+
initialModel: G,
|
|
612
|
+
api: s
|
|
386
613
|
}
|
|
387
614
|
) });
|
|
388
615
|
}
|
|
389
616
|
export {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
617
|
+
yn as AgGridWrapper,
|
|
618
|
+
Fn as isAgGridHeaderLabelTooltipOverflowing,
|
|
619
|
+
Mn as isAgGridTextOverflowing,
|
|
620
|
+
xn as subscribeGridApiEvent,
|
|
621
|
+
In as subscribeGridApiEvents,
|
|
622
|
+
An as useAgGridTruncationTooltip
|
|
396
623
|
};
|