react-semaphor 0.1.532 → 0.1.534
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/analytics-protocol/index.js +210 -207
- package/dist/brand-studio/index.js +3 -3
- package/dist/briefings/index.js +21 -21
- package/dist/chunks/bookmark-state-B-I9BDD0.js +331 -0
- package/dist/chunks/{calculated-field-identity-Q1aCudPD.js → calculated-field-identity-Cz1ZU_UL.js} +140 -188
- package/dist/chunks/calendar-day-equality-BRjN1S9h.js +383 -0
- package/dist/chunks/{card-config-utils-DqyASiD_.js → card-config-utils-BlIiFn0O.js} +25 -25
- package/dist/chunks/common-types-g7yS12Cg.js +114 -0
- package/dist/chunks/{dashboard-BoSKlMPx.js → dashboard-CCK80YKL.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BR5llbxb.js → dashboard-briefing-launcher-B9Fq2Rf3.js} +1382 -1363
- package/dist/chunks/dashboard-controls-CoiTGnEr.js +2325 -0
- package/dist/chunks/{dashboard-json-Ez0I7b2H.js → dashboard-json-BRGozO--.js} +3 -3
- package/dist/chunks/{edit-dashboard-visual-DpGb6dpY.js → edit-dashboard-visual-CZFnhGZQ.js} +8377 -8605
- package/dist/chunks/{editor-action-buttons--SQ3CcBI.js → editor-action-buttons-CVtSO3I3.js} +428 -431
- package/dist/chunks/{field-aggregations-BCDRRYMo.js → field-aggregations-CoLzYHeL.js} +371 -474
- package/dist/chunks/field-dependencies-CpRUwr9J.js +281 -0
- package/dist/chunks/{index-BpAM7UE0.js → index-BQl5rC54.js} +404 -402
- package/dist/chunks/{matrix-analytical-definition-Q4GL16S4.js → matrix-analytical-definition-CgBTD6H8.js} +1 -1
- package/dist/chunks/{matrix-card-CkfMe-h-.js → matrix-card-CAdizkUl.js} +2 -2
- package/dist/chunks/{matrix-control-sources-fD0Ns_9n.js → matrix-control-sources-Tls-h3AN.js} +22 -22
- package/dist/chunks/{matrix-definition-CiGRzEzt.js → matrix-definition-D9iShKZI.js} +1 -1
- package/dist/chunks/{matrix-formatter-DDjECnMd.js → matrix-formatter-DJCk8Znf.js} +7 -6
- package/dist/chunks/matrix-member-presentation-Ct8GuxHt.js +209 -0
- package/dist/chunks/{matrix-operation-contract-BotZ-6zT.js → matrix-operation-contract-BKupLHXL.js} +89 -89
- package/dist/chunks/{metric-comparison-QEkk6hqL.js → metric-comparison-BKHyvnAy.js} +4 -4
- package/dist/chunks/{numeric-presentation-D2I9znLM.js → numeric-presentation-CWu3gunq.js} +1 -1
- package/dist/chunks/pivot-header-presentation-CHs2GFrM.js +753 -0
- package/dist/chunks/{pivot-result-identity-BhAm8MCg.js → pivot-result-identity-Bs4tLtLo.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-BxmATSFJ.js → pivot-result-lifecycle-DQz_gjGu.js} +8 -8
- package/dist/chunks/{raw-temporal-contract-BlyUGV3y.js → raw-temporal-contract-mLFS-9wk.js} +1 -1
- package/dist/chunks/{raw-temporal-B0EuwEHr.js → raw-temporal-iMXRK-Qz.js} +2 -2
- package/dist/chunks/{report-preferences-dialog-Cv_2GMlz.js → report-preferences-dialog-CWdTlWsr.js} +115 -115
- package/dist/chunks/{report-runtime-context-DceiWMKz.js → report-runtime-context-CG_I0PPW.js} +1 -1
- package/dist/chunks/{selection-reducer-DQok8gsC.js → selection-reducer-CiDEtmAq.js} +14 -14
- package/dist/chunks/{semantic-format-ByNkXJpY.js → semantic-format-DiqYeKwU.js} +3 -3
- package/dist/chunks/{semaphor-ready-indicator-lALyc-pQ.js → semaphor-ready-indicator-z4SNdxiC.js} +65118 -64011
- package/dist/chunks/slider-DbwmuVB-.js +875 -0
- package/dist/chunks/{source-entity-resolution-BWmw7a8P.js → source-entity-resolution-C-oNyYMp.js} +1 -1
- package/dist/chunks/{switch-CCOKraBb.js → switch-BR3Xgbqr.js} +7237 -5818
- package/dist/chunks/{temporal-bucket-contract-CdBtoHX2.js → temporal-bucket-contract-D2OuaVZ7.js} +1 -1
- package/dist/chunks/{temporal-input-presentation-wUO681Zs.js → temporal-input-presentation-BD7YNUzu.js} +9 -9
- package/dist/chunks/{token-types-Brc30mNN.js → token-types-DtSJOUjh.js} +1 -1
- package/dist/chunks/{validators-BS521dum.js → validators-DMSH81OM.js} +654 -639
- package/dist/chunks/zoned-wall-clock-1qlWCE20.js +129 -0
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +116 -112
- package/dist/data-app-sdk/index.js +5 -5
- package/dist/data-app-sdk-adapters/index.js +2 -2
- package/dist/data-app-sdk-validation/index.js +7 -7
- package/dist/format-utils/index.js +146 -141
- package/dist/index.js +174 -171
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings/index.d.ts +0 -1
- package/dist/types/components/surfboard/filter/types.d.ts +9 -0
- package/dist/types/components/ui-custom/date-range-presets.d.ts +5 -1
- package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +8 -0
- package/dist/types/components/visual/data-table/types/data-table.d.ts +11 -0
- package/dist/types/components/visual/shared/utils/table-column-order.d.ts +15 -0
- package/dist/types/index.js +47 -29
- package/dist/types/lib/api/exports-api.d.ts +30 -3
- package/dist/types/lib/dashboard-viewer/export-table-view.d.ts +43 -0
- package/dist/types/lib/dashboard-viewer/table-view-edit.d.ts +14 -0
- package/dist/types/lib/dashboard-viewer/table-view.d.ts +150 -0
- package/dist/types/lib/dashboard-viewer/use-table-view.d.ts +51 -0
- package/dist/types/lib/dashboard-viewer/viewer-state-client.d.ts +72 -0
- package/dist/types/lib/dashboard-viewer/viewer-state.d.ts +212 -0
- package/dist/types/lib/dashboard-viewer/viewer-store-state.d.ts +44 -0
- package/dist/types/lib/download-pdf.d.ts +9 -1
- package/dist/types/lib/exports/bounded-request.d.ts +12 -0
- package/dist/types/lib/hooks/index.d.ts +1 -2
- package/dist/types/lib/hooks/use-dashboard-query.d.ts +2 -0
- package/dist/types/lib/hooks/use-dashboard.d.ts +5 -1
- package/dist/types/lib/hooks/use-date-filter.d.ts +3 -3
- package/dist/types/lib/hooks/use-export-polling.d.ts +9 -1
- package/dist/types/lib/query-context/build-card-query-context.d.ts +9 -1
- package/dist/types/lib/stores/dashboard-store.d.ts +76 -1
- package/dist/types/lib/stores/editor-store.d.ts +0 -4
- package/dist/types/lib/stores/export-store.d.ts +11 -0
- package/dist/types/lib/table-formatting/table-totals-settings.d.ts +5 -1
- package/dist/types/lib/types/common-types.d.ts +10 -0
- package/dist/types/lib/types/index.d.ts +1 -0
- package/dist/types/lib/utils/filter-default-value-utils.d.ts +11 -4
- package/dist/types/lib/utils.d.ts +1 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +1 -0
- package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +7 -0
- package/dist/types/shared/analytics-protocol/sort-target.d.ts +40 -0
- package/dist/types/shared/dashboard-authoring/dashboard-filter-value-compatibility.d.ts +9 -0
- package/dist/types/shared/dashboard-viewer/bookmark-state.d.ts +35 -0
- package/dist/types/shared/dashboard-viewer/index.d.ts +3 -0
- package/dist/types/shared/dashboard-viewer/table-settings.d.ts +89 -0
- package/dist/types/shared/dashboard-viewer/viewer-contract.d.ts +95 -0
- package/dist/types/shared/format-utils/filter-line.d.ts +47 -0
- package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +6 -0
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +28 -4
- package/package.json +2 -2
- package/dist/chunks/calendar-day-equality-Ddkpfhot.js +0 -466
- package/dist/chunks/common-types-C6cAQgyh.js +0 -9
- package/dist/chunks/dashboard-controls-4Thl0eL1.js +0 -2194
- package/dist/chunks/field-dependencies-BWStuMxe.js +0 -178
- package/dist/chunks/matrix-member-presentation-Glhem6xB.js +0 -182
- package/dist/chunks/pivot-header-presentation-BTOXdU6S.js +0 -618
- package/dist/chunks/slider-DlRYiI2m.js +0 -876
- package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +0 -46
- package/dist/types/components/ai/assistant-context-entity-controls.d.ts +0 -25
- package/dist/types/components/ai/assistant-message-components.d.ts +0 -59
- package/dist/types/components/ai/assistant-message.d.ts +0 -10
- package/dist/types/components/ai/assistant-virtualized-messages.d.ts +0 -21
- package/dist/types/components/ai/chat-custom-visual.d.ts +0 -21
- package/dist/types/components/ai/chat-input-with-context.d.ts +0 -16
- package/dist/types/components/ai/chat-input.d.ts +0 -11
- package/dist/types/components/ai/chat-visual-query-utils.d.ts +0 -68
- package/dist/types/components/ai/chat-visual.d.ts +0 -12
- package/dist/types/components/ai/clarification-card.d.ts +0 -20
- package/dist/types/components/ai/context-entity-display.d.ts +0 -10
- package/dist/types/components/ai/dashboard-assistant.d.ts +0 -27
- package/dist/types/components/ai/debug-message-array.d.ts +0 -1
- package/dist/types/components/ai/editor-assistant.d.ts +0 -7
- package/dist/types/components/ai/entity-mention-dropdown.d.ts +0 -16
- package/dist/types/components/ai/file-upload/file-preview.d.ts +0 -15
- package/dist/types/components/ai/file-upload/file-upload-button.d.ts +0 -10
- package/dist/types/components/ai/file-upload/file-upload-zone.d.ts +0 -11
- package/dist/types/components/ai/file-upload/file-utils.d.ts +0 -63
- package/dist/types/components/ai/highlighted-input.d.ts +0 -22
- package/dist/types/components/ai/message-feedback-buttons.d.ts +0 -9
- package/dist/types/components/ai/pending-messages-display.d.ts +0 -7
- package/dist/types/components/ai/placeholders.d.ts +0 -8
- package/dist/types/components/ai/pre-block.d.ts +0 -30
- package/dist/types/components/ai/quick-replies.d.ts +0 -8
- package/dist/types/components/ai/reasoning-effort-slider.d.ts +0 -7
- package/dist/types/components/ai/seed-questions.d.ts +0 -6
- package/dist/types/components/ai/tool-call-error.d.ts +0 -8
- package/dist/types/components/ai/tool-call.d.ts +0 -12
- package/dist/types/components/ai/tool-output-errors.d.ts +0 -2
- package/dist/types/components/ai/tool-part-renderer.d.ts +0 -32
- package/dist/types/components/appearance/dashboard-appearance-adapter.d.ts +0 -17
- package/dist/types/components/appearance/surface-appearance-adapter.d.ts +0 -21
- package/dist/types/components/briefings/attachments/briefing-attachment-list.d.ts +0 -9
- package/dist/types/components/briefings/attachments/briefing-attachment-selector.d.ts +0 -27
- package/dist/types/components/briefings/attachments/briefing-attachment-settings-dialog.d.ts +0 -16
- package/dist/types/components/briefings/briefing-author/attachment-section.d.ts +0 -20
- package/dist/types/components/briefings/briefing-author/author-actions.d.ts +0 -25
- package/dist/types/components/briefings/briefing-author/content-composers.d.ts +0 -9
- package/dist/types/components/briefings/briefing-author/defaults.d.ts +0 -1
- package/dist/types/components/briefings/briefing-author/delivery-section.d.ts +0 -56
- package/dist/types/components/briefings/briefing-author/form-primitives.d.ts +0 -20
- package/dist/types/components/briefings/briefing-author/output.d.ts +0 -2
- package/dist/types/components/briefings/briefing-author/presentation-vocabulary.d.ts +0 -17
- package/dist/types/components/briefings/briefing-author/schedule-model.d.ts +0 -13
- package/dist/types/components/briefings/briefing-author/schedule-section.d.ts +0 -5
- package/dist/types/components/briefings/briefing-author/schedule.d.ts +0 -8
- package/dist/types/components/briefings/briefing-author/scope-picker.d.ts +0 -14
- package/dist/types/components/briefings/briefing-author/slack-channel-picker.d.ts +0 -22
- package/dist/types/components/briefings/briefing-author/styles.d.ts +0 -4
- package/dist/types/components/briefings/briefing-html-frame.d.ts +0 -5
- package/dist/types/components/briefings/briefing-recipient-field.d.ts +0 -17
- package/dist/types/components/briefings/briefing-tones.d.ts +0 -30
- package/dist/types/components/briefings/dashboard-briefing-launcher-list.d.ts +0 -25
- package/dist/types/components/briefings/dashboard-briefing-launcher-model.d.ts +0 -14
- package/dist/types/components/briefings/dashboard-schedule-report-menu-item.d.ts +0 -11
- package/dist/types/components/calculated-fields/ai-compose-panel.d.ts +0 -19
- package/dist/types/components/calculated-fields/calculated-field-editor-utils.d.ts +0 -44
- package/dist/types/components/calculated-fields/calculated-field-editor.d.ts +0 -27
- package/dist/types/components/calculated-fields/domain-definition-notice.d.ts +0 -4
- package/dist/types/components/calculated-fields/expression-validator.d.ts +0 -8
- package/dist/types/components/calculated-fields/field-picker-panel.d.ts +0 -20
- package/dist/types/components/calculated-fields/field-type-toggle.d.ts +0 -7
- package/dist/types/components/calculated-fields/index.d.ts +0 -10
- package/dist/types/components/calculated-fields/insert-field-popover.d.ts +0 -18
- package/dist/types/components/calculated-fields/placeholder-field-picker.d.ts +0 -30
- package/dist/types/components/calculated-fields/summary-ribbon.d.ts +0 -23
- package/dist/types/components/calculated-fields/templates-menu.d.ts +0 -11
- package/dist/types/components/calculated-fields/validation-results.d.ts +0 -4
- package/dist/types/components/calculated-fields/validation-tooltip-content.d.ts +0 -4
- package/dist/types/components/chart-selector/chart-icon.d.ts +0 -37
- package/dist/types/components/chart-selector/chart-selector-item.d.ts +0 -18
- package/dist/types/components/chart-selector/chart-selector.d.ts +0 -25
- package/dist/types/components/chart-selector/chart-type-picker.d.ts +0 -12
- package/dist/types/components/chart-selector/index.d.ts +0 -4
- package/dist/types/components/chart-selector/use-chart-selector-model.d.ts +0 -18
- package/dist/types/components/dashboard/card-actions-menu.d.ts +0 -10
- package/dist/types/components/dashboard/card-selection-pill.d.ts +0 -5
- package/dist/types/components/dashboard/comparison-badge-state.d.ts +0 -3
- package/dist/types/components/dashboard/comparison-metadata-badge.d.ts +0 -11
- package/dist/types/components/dashboard/dashboard-card.d.ts +0 -17
- package/dist/types/components/dashboard/dashboard-container.d.ts +0 -9
- package/dist/types/components/dashboard/dashboard-error-state.d.ts +0 -9
- package/dist/types/components/dashboard/dashboard-frame-expand-dialog.d.ts +0 -5
- package/dist/types/components/dashboard/dashboard-frame.d.ts +0 -14
- package/dist/types/components/dashboard/dashboard-hub-row.d.ts +0 -18
- package/dist/types/components/dashboard/dashboard-hub-sort.d.ts +0 -8
- package/dist/types/components/dashboard/dashboard-hub.d.ts +0 -5
- package/dist/types/components/dashboard/dashboard-tabs.d.ts +0 -1
- package/dist/types/components/dashboard/dashboard-visual-error-state.d.ts +0 -20
- package/dist/types/components/dashboard/download-pdf.d.ts +0 -10
- package/dist/types/components/dashboard/drill-breadcrumb.d.ts +0 -7
- package/dist/types/components/dashboard/drill-navigation-controls.d.ts +0 -13
- package/dist/types/components/dashboard/inline-filter-bar.d.ts +0 -17
- package/dist/types/components/dashboard/inline-filter-component.d.ts +0 -30
- package/dist/types/components/dashboard/kpi-header.d.ts +0 -2
- package/dist/types/components/dashboard/semaphor-style-wrapper.d.ts +0 -3
- package/dist/types/components/dashboard/sheet/delete-sheet-alert.d.ts +0 -6
- package/dist/types/components/dashboard/sheet/layout-change-guard.d.ts +0 -6
- package/dist/types/components/dashboard/sheet/sheet-empty-state.d.ts +0 -5
- package/dist/types/components/dashboard/sheet/sheet-layout.d.ts +0 -5
- package/dist/types/components/dashboard/sheet/sheet-layout_backup.d.ts +0 -0
- package/dist/types/components/dashboard/summary-warning-utils.d.ts +0 -6
- package/dist/types/components/dashboard/unconfigured-card-state.d.ts +0 -21
- package/dist/types/components/document-sheet/document-control-options-resolver.d.ts +0 -9
- package/dist/types/components/document-sheet/document-control-toolbar-actions.d.ts +0 -12
- package/dist/types/components/document-sheet/document-input-bar.d.ts +0 -30
- package/dist/types/components/document-sheet/document-insert-picker.d.ts +0 -37
- package/dist/types/components/document-sheet/document-inspector-primitives.d.ts +0 -10
- package/dist/types/components/document-sheet/document-kpi-section.d.ts +0 -17
- package/dist/types/components/document-sheet/document-matrix-layout-context.d.ts +0 -10
- package/dist/types/components/document-sheet/document-matrix-section.d.ts +0 -27
- package/dist/types/components/document-sheet/document-measure-layer.d.ts +0 -45
- package/dist/types/components/document-sheet/document-outline.d.ts +0 -21
- package/dist/types/components/document-sheet/document-page-navigation.d.ts +0 -22
- package/dist/types/components/document-sheet/document-page.d.ts +0 -68
- package/dist/types/components/document-sheet/document-panel/document-side-panel.d.ts +0 -36
- package/dist/types/components/document-sheet/document-panel/inputs-panel.d.ts +0 -9
- package/dist/types/components/document-sheet/document-panel/page-panel.d.ts +0 -5
- package/dist/types/components/document-sheet/document-panel/panel-controls.d.ts +0 -14
- package/dist/types/components/document-sheet/document-panel/region-panels.d.ts +0 -11
- package/dist/types/components/document-sheet/document-panel/section-panel.d.ts +0 -25
- package/dist/types/components/document-sheet/document-section-print-boundary.d.ts +0 -9
- package/dist/types/components/document-sheet/document-sheet.d.ts +0 -10
- package/dist/types/components/document-sheet/document-table-chrome.d.ts +0 -22
- package/dist/types/components/document-sheet/document-table-section.d.ts +0 -28
- package/dist/types/components/document-sheet/document-text-editor.d.ts +0 -8
- package/dist/types/components/document-sheet/document-text-preview-context.d.ts +0 -8
- package/dist/types/components/document-sheet/use-first-fitting-variant.d.ts +0 -18
- package/dist/types/components/editor/dashboard-json.d.ts +0 -1
- package/dist/types/components/editor/editable.d.ts +0 -14
- package/dist/types/components/editor/editor-main/card-display-options-dropdown.d.ts +0 -7
- package/dist/types/components/editor/editor-main/card-tabs.d.ts +0 -16
- package/dist/types/components/editor/editor-main/chart-configuration-options.d.ts +0 -1
- package/dist/types/components/editor/editor-main/clear-card-utils.d.ts +0 -2
- package/dist/types/components/editor/editor-main/code-editors/expanded-query-editor-dialog.d.ts +0 -14
- package/dist/types/components/editor/editor-main/code-editors/json-editor-readonly.d.ts +0 -3
- package/dist/types/components/editor/editor-main/code-editors/python-editor.d.ts +0 -2
- package/dist/types/components/editor/editor-main/code-editors/sql-editor.d.ts +0 -6
- package/dist/types/components/editor/editor-main/code-editors/use-query-editor-session-transfer.d.ts +0 -17
- package/dist/types/components/editor/editor-main/content-editable-text.d.ts +0 -11
- package/dist/types/components/editor/editor-main/context-hover-card.d.ts +0 -2
- package/dist/types/components/editor/editor-main/customize-visual/customize-chart-config.d.ts +0 -7
- package/dist/types/components/editor/editor-main/customize-visual/customize-visual-dialog.d.ts +0 -7
- package/dist/types/components/editor/editor-main/dashboard-filter-subscription-status.d.ts +0 -6
- package/dist/types/components/editor/editor-main/dashboard-variable-node.d.ts +0 -39
- package/dist/types/components/editor/editor-main/data-label-settings.d.ts +0 -5
- package/dist/types/components/editor/editor-main/edit-dashboard-visual.d.ts +0 -2
- package/dist/types/components/editor/editor-main/editor-action-buttons.d.ts +0 -28
- package/dist/types/components/editor/editor-main/editor-actions-biz-mode.d.ts +0 -1
- package/dist/types/components/editor/editor-main/editor-card.d.ts +0 -4
- package/dist/types/components/editor/editor-main/editor-chart-config-execution.d.ts +0 -6
- package/dist/types/components/editor/editor-main/editor-main-component.d.ts +0 -1
- package/dist/types/components/editor/editor-main/editor-query-section.d.ts +0 -11
- package/dist/types/components/editor/editor-main/editor-visual-dropdown.d.ts +0 -0
- package/dist/types/components/editor/editor-main/editor-visual-section.d.ts +0 -23
- package/dist/types/components/editor/editor-main/inline-query-writer/inline-query-writer-constants.d.ts +0 -7
- package/dist/types/components/editor/editor-main/inline-query-writer/inline-query-writer-prompts.d.ts +0 -19
- package/dist/types/components/editor/editor-main/inline-query-writer/inline-query-writer-telemetry.d.ts +0 -2
- package/dist/types/components/editor/editor-main/inline-query-writer/inline-query-writer-types.d.ts +0 -48
- package/dist/types/components/editor/editor-main/inline-query-writer/inline-query-writer-utils.d.ts +0 -11
- package/dist/types/components/editor/editor-main/inline-query-writer/inline-query-writer.d.ts +0 -2
- package/dist/types/components/editor/editor-main/legend-popover.d.ts +0 -1
- package/dist/types/components/editor/editor-main/raw-output-table.d.ts +0 -15
- package/dist/types/components/editor/editor-main/realtime-popover.d.ts +0 -1
- package/dist/types/components/editor/editor-main/table-type-switcher.d.ts +0 -5
- package/dist/types/components/editor/editor-main/text-card-rich-editor.d.ts +0 -25
- package/dist/types/components/editor/editor-main/text-card.d.ts +0 -10
- package/dist/types/components/editor/editor-main/use-editor-clear-action.d.ts +0 -1
- package/dist/types/components/editor/editor-main/visual-aside.d.ts +0 -5
- package/dist/types/components/editor/editor-main/visual-save-as-dialog.d.ts +0 -18
- package/dist/types/components/editor/editor-main/visual-settings.d.ts +0 -9
- package/dist/types/components/editor/mode-toggle.d.ts +0 -13
- package/dist/types/components/editor/query-feedback/query-card-details.d.ts +0 -14
- package/dist/types/components/editor/query-feedback/query-error.d.ts +0 -42
- package/dist/types/components/editor/query-feedback/query-feedback-layout.d.ts +0 -10
- package/dist/types/components/editor/query-feedback/query-info-clipboard.d.ts +0 -3
- package/dist/types/components/editor/query-feedback/query-info.d.ts +0 -21
- package/dist/types/components/editor/query-feedback/query-sql-preview.d.ts +0 -23
- package/dist/types/components/editor/query-feedback/use-query-error-feedback.d.ts +0 -7
- package/dist/types/components/editor/query-feedback/use-query-error.d.ts +0 -16
- package/dist/types/components/editor/query-feedback/visual-query-error-state.d.ts +0 -5
- package/dist/types/components/editor/utils/utils.d.ts +0 -2
- package/dist/types/components/error-fallbacks/delivery-render-error.d.ts +0 -7
- package/dist/types/components/error-fallbacks/fallback.d.ts +0 -31
- package/dist/types/components/error-fallbacks/render-reset-error-boundary.d.ts +0 -33
- package/dist/types/components/explorer/chart-configuration/area-series-config-section.d.ts +0 -5
- package/dist/types/components/explorer/chart-configuration/axis-config-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/bar-series-config-section.d.ts +0 -5
- package/dist/types/components/explorer/chart-configuration/bar-style-config-section.d.ts +0 -7
- package/dist/types/components/explorer/chart-configuration/bubble-scatter-config-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/bullet-config-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/chart-config-sections.d.ts +0 -15
- package/dist/types/components/explorer/chart-configuration/chart-configuration-panel.d.ts +0 -18
- package/dist/types/components/explorer/chart-configuration/chart-fields-configuration.d.ts +0 -22
- package/dist/types/components/explorer/chart-configuration/chart-type-row.d.ts +0 -25
- package/dist/types/components/explorer/chart-configuration/color-config-section.d.ts +0 -18
- package/dist/types/components/explorer/chart-configuration/combo-series-config-section.d.ts +0 -6
- package/dist/types/components/explorer/chart-configuration/comparison-config-section.d.ts +0 -7
- package/dist/types/components/explorer/chart-configuration/custom-color-picker.d.ts +0 -7
- package/dist/types/components/explorer/chart-configuration/data-labels-config-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/data-labels-fields.d.ts +0 -21
- package/dist/types/components/explorer/chart-configuration/funnel-config-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/heatmap-color-config-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/kpi-format-config-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/legend-config-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/line-series-config-section.d.ts +0 -5
- package/dist/types/components/explorer/chart-configuration/line-style-config-section.d.ts +0 -7
- package/dist/types/components/explorer/chart-configuration/matrix-authoring-controls.d.ts +0 -41
- package/dist/types/components/explorer/chart-configuration/matrix-authoring-panel.d.ts +0 -21
- package/dist/types/components/explorer/chart-configuration/matrix-editor-settings.d.ts +0 -5
- package/dist/types/components/explorer/chart-configuration/metric-format-editor.d.ts +0 -12
- package/dist/types/components/explorer/chart-configuration/number-format-config.d.ts +0 -18
- package/dist/types/components/explorer/chart-configuration/number-format-config.utils.d.ts +0 -11
- package/dist/types/components/explorer/chart-configuration/stacked-sort-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/summary-config-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/tooltip-format-config-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/treemap-color-mode-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/use-effective-card-type.d.ts +0 -1
- package/dist/types/components/explorer/data-source/add-data-picker.d.ts +0 -23
- package/dist/types/components/explorer/data-source/data-source-panel.d.ts +0 -6
- package/dist/types/components/explorer/data-source/dataset-selector-popover.d.ts +0 -11
- package/dist/types/components/explorer/data-source/db-schema-selector.d.ts +0 -8
- package/dist/types/components/explorer/data-source/direct-source-tree.d.ts +0 -10
- package/dist/types/components/explorer/data-source/entity-tooltip.d.ts +0 -14
- package/dist/types/components/explorer/data-source/file-upload-manager.d.ts +0 -1
- package/dist/types/components/explorer/data-source/select-data-dialog.d.ts +0 -6
- package/dist/types/components/explorer/data-source/selected-entities-summary.d.ts +0 -15
- package/dist/types/components/explorer/data-source/semantic-domain-access-utils.d.ts +0 -10
- package/dist/types/components/explorer/data-source/semantic-domain-selection.d.ts +0 -9
- package/dist/types/components/explorer/data-source/semantic-domain-tree.d.ts +0 -22
- package/dist/types/components/explorer/data-source/url-source-manager.d.ts +0 -1
- package/dist/types/components/explorer/data-source/utils.d.ts +0 -11
- package/dist/types/components/explorer/drag-and-drop/attribute-filter-dialog.d.ts +0 -11
- package/dist/types/components/explorer/drag-and-drop/data-concept-tooltip.d.ts +0 -17
- package/dist/types/components/explorer/drag-and-drop/drag-overlay.d.ts +0 -12
- package/dist/types/components/explorer/drag-and-drop/draggable-field-shell.d.ts +0 -15
- package/dist/types/components/explorer/drag-and-drop/draggable-field.d.ts +0 -13
- package/dist/types/components/explorer/drag-and-drop/droppable-zone.d.ts +0 -13
- package/dist/types/components/explorer/drag-and-drop/inline-edit-field.d.ts +0 -10
- package/dist/types/components/explorer/drag-and-drop/matrix-draggable-field.d.ts +0 -5
- package/dist/types/components/explorer/drag-and-drop/pivot-alias-template-editor.d.ts +0 -6
- package/dist/types/components/explorer/drag-and-drop/pivot-member-order-visibility.d.ts +0 -3
- package/dist/types/components/explorer/drag-and-drop/pivot-value-aliases-editor.d.ts +0 -6
- package/dist/types/components/explorer/fields/field-expression-annotation.d.ts +0 -15
- package/dist/types/components/explorer/fields/field-group.d.ts +0 -0
- package/dist/types/components/explorer/fields/field-hover-preview.d.ts +0 -10
- package/dist/types/components/explorer/fields/field-option-list.d.ts +0 -54
- package/dist/types/components/explorer/fields/field-row.d.ts +0 -39
- package/dist/types/components/explorer/fields/fields-list.d.ts +0 -10
- package/dist/types/components/explorer/fields/fields-section.d.ts +0 -6
- package/dist/types/components/explorer/fields/filterable-fields-panel.d.ts +0 -11
- package/dist/types/components/explorer/fields/icon-for-field-type.d.ts +0 -3
- package/dist/types/components/explorer/fields/numeric-popover.d.ts +0 -6
- package/dist/types/components/explorer/fields/source-field.d.ts +0 -28
- package/dist/types/components/explorer/fields/type-glyph.d.ts +0 -14
- package/dist/types/components/explorer/filters/card-date-filter.d.ts +0 -20
- package/dist/types/components/explorer/filters/card-date-selection.d.ts +0 -28
- package/dist/types/components/explorer/filters/card-filter-builder.d.ts +0 -11
- package/dist/types/components/explorer/filters/card-filter-manager.d.ts +0 -12
- package/dist/types/components/explorer/filters/field-multi-select.d.ts +0 -16
- package/dist/types/components/explorer/filters/field-single-select.d.ts +0 -16
- package/dist/types/components/explorer/filters/searchable-field-combobox.d.ts +0 -17
- package/dist/types/components/explorer/filters/utils.d.ts +0 -2
- package/dist/types/components/explorer/join-configuration/auto-join-info.d.ts +0 -16
- package/dist/types/components/explorer/join-configuration/join-conditions-builder.d.ts +0 -10
- package/dist/types/components/explorer/join-configuration/join-dialog.d.ts +0 -14
- package/dist/types/components/explorer/join-configuration/join-manager.d.ts +0 -10
- package/dist/types/components/explorer/join-configuration/join-tooltip-content.d.ts +0 -9
- package/dist/types/components/explorer/main/explorer.d.ts +0 -1
- package/dist/types/components/explorer/main/view-tabs.d.ts +0 -17
- package/dist/types/components/explorer/visualization/chart-settings-panel.d.ts +0 -7
- package/dist/types/components/explorer/visualization/chart-split-view.d.ts +0 -16
- package/dist/types/components/explorer/visualization/feedback-dialog.d.ts +0 -11
- package/dist/types/components/explorer/visualization/row-limit-selector.d.ts +0 -1
- package/dist/types/components/explorer/visualization/visualization-panel.d.ts +0 -18
- package/dist/types/components/icons/bullet-chart-icon.d.ts +0 -2
- package/dist/types/components/interactions/applied-filters-display.d.ts +0 -40
- package/dist/types/components/interactions/card-renderer.d.ts +0 -17
- package/dist/types/components/interactions/click-to-filter-review-dialog.d.ts +0 -22
- package/dist/types/components/interactions/dashboard-drill-host.d.ts +0 -13
- package/dist/types/components/interactions/drill-config/hierarchy-steps-display.d.ts +0 -9
- package/dist/types/components/interactions/drill-config/hierarchy-templates.d.ts +0 -5
- package/dist/types/components/interactions/drill-config/sortable-hierarchy.d.ts +0 -15
- package/dist/types/components/interactions/drill-config/sortable-step.d.ts +0 -14
- package/dist/types/components/interactions/drill-config/step-configuration-popup.d.ts +0 -13
- package/dist/types/components/interactions/drill-hierarchy-modal.d.ts +0 -43
- package/dist/types/components/interactions/drill-to-url-modal.d.ts +0 -26
- package/dist/types/components/interactions/filter-badge-tooltip.d.ts +0 -13
- package/dist/types/components/interactions/hooks/use-drill-hierarchy.d.ts +0 -15
- package/dist/types/components/interactions/hooks/use-hierarchy-templates.d.ts +0 -5
- package/dist/types/components/interactions/hooks/use-step-reordering.d.ts +0 -6
- package/dist/types/components/interactions/insight-modal.d.ts +0 -29
- package/dist/types/components/interactions/insight-viewer.d.ts +0 -16
- package/dist/types/components/interactions/interactions-sheet.d.ts +0 -7
- package/dist/types/components/interactions/panels/click-to-filter-panel.d.ts +0 -20
- package/dist/types/components/interactions/panels/drill-down-panel.d.ts +0 -44
- package/dist/types/components/interactions/panels/drill-to-dashboard-panel.d.ts +0 -24
- package/dist/types/components/interactions/panels/drill-to-insight-panel.d.ts +0 -24
- package/dist/types/components/interactions/panels/drill-to-url-panel-v2.d.ts +0 -9
- package/dist/types/components/interactions/panels/dynamic-drill-panel.d.ts +0 -24
- package/dist/types/components/interactions/panels/panel-field.d.ts +0 -29
- package/dist/types/components/interactions/pickers/dashboard-picker.d.ts +0 -36
- package/dist/types/components/interactions/pickers/insight-picker.d.ts +0 -36
- package/dist/types/components/interactions/replaced-card-wrapper.d.ts +0 -13
- package/dist/types/components/interactions/reusable/field-combobox.d.ts +0 -22
- package/dist/types/components/interactions/reusable/field-selector.d.ts +0 -15
- package/dist/types/components/interactions/reusable/inline-field-selector.d.ts +0 -11
- package/dist/types/components/interactions/reusable/interaction-selection-popover.d.ts +0 -107
- package/dist/types/components/interactions/sheet/action-editor.d.ts +0 -17
- package/dist/types/components/interactions/sheet/action-meta.d.ts +0 -45
- package/dist/types/components/interactions/sheet/action-picker.d.ts +0 -7
- package/dist/types/components/interactions/sheet/click-outcome-preview.d.ts +0 -10
- package/dist/types/components/interactions/sheet/interactions-home.d.ts +0 -28
- package/dist/types/components/interactions/sheet/sheet-parts.d.ts +0 -37
- package/dist/types/components/kpi-visual-v2/country-selector.d.ts +0 -11
- package/dist/types/components/kpi-visual-v2/kpi-card-explorer.d.ts +0 -12
- package/dist/types/components/kpi-visual-v2/kpi-settings.d.ts +0 -1
- package/dist/types/components/kpi-visual-v2/kpi-tooltip-components.d.ts +0 -25
- package/dist/types/components/kpi-visual-v2/kpi-tooltip-utils.d.ts +0 -8
- package/dist/types/components/kpi-visual-v2/kpi-tooltip.d.ts +0 -15
- package/dist/types/components/kpi-visual-v2/metric-comparison-indicator.d.ts +0 -17
- package/dist/types/components/kpi-visual-v2/metric-comparison-kpi.d.ts +0 -11
- package/dist/types/components/providers/appearance-context.d.ts +0 -23
- package/dist/types/components/providers/appearance-provider.d.ts +0 -4
- package/dist/types/components/providers/brand-studio-preview-context.d.ts +0 -5
- package/dist/types/components/providers/dashboard-matrix-execution-provider.d.ts +0 -10
- package/dist/types/components/providers/dashboard-preferences-provider.d.ts +0 -12
- package/dist/types/components/providers/display-preferences-provider.d.ts +0 -10
- package/dist/types/components/providers/theme-provider-context.d.ts +0 -7
- package/dist/types/components/providers/theme-provider.d.ts +0 -8
- package/dist/types/components/providers/ux-provider.d.ts +0 -6
- package/dist/types/components/semaphor/code-block.d.ts +0 -20
- package/dist/types/components/semaphor/code-editor.d.ts +0 -114
- package/dist/types/components/semaphor/code-highlight.d.ts +0 -15
- package/dist/types/components/sharing-and-management/common-loading-skeleton.d.ts +0 -1
- package/dist/types/components/sharing-and-management/create-dashboard-dialog.d.ts +0 -11
- package/dist/types/components/sharing-and-management/create-visual-dialog.d.ts +0 -11
- package/dist/types/components/sharing-and-management/dashboard-actions-menu.d.ts +0 -19
- package/dist/types/components/sharing-and-management/group-management-dialog.d.ts +0 -6
- package/dist/types/components/sharing-and-management/hooks/use-current-user-info.d.ts +0 -41
- package/dist/types/components/sharing-and-management/hooks/use-group-management.d.ts +0 -30
- package/dist/types/components/sharing-and-management/hooks/use-groups.d.ts +0 -30
- package/dist/types/components/sharing-and-management/hooks/use-resource-share-data.d.ts +0 -27
- package/dist/types/components/sharing-and-management/hooks/use-unified-users.d.ts +0 -61
- package/dist/types/components/sharing-and-management/hooks/use-visual-utils.d.ts +0 -33
- package/dist/types/components/sharing-and-management/resource-edit-dialog.d.ts +0 -15
- package/dist/types/components/sharing-and-management/resource-share-dialog/unified/access-list.d.ts +0 -14
- package/dist/types/components/sharing-and-management/resource-share-dialog/unified/adapter.d.ts +0 -53
- package/dist/types/components/sharing-and-management/resource-share-dialog/unified/configs.d.ts +0 -40
- package/dist/types/components/sharing-and-management/resource-share-dialog/unified/invite-combobox.d.ts +0 -22
- package/dist/types/components/sharing-and-management/resource-share-dialog/unified/primitives.d.ts +0 -33
- package/dist/types/components/sharing-and-management/resource-share-dialog/unified/share-shape.d.ts +0 -20
- package/dist/types/components/sharing-and-management/resource-share-dialog/unified/shell.d.ts +0 -17
- package/dist/types/components/sharing-and-management/resource-share-dialog/unified/status-bar.d.ts +0 -5
- package/dist/types/components/sharing-and-management/resource-share-dialog/unified/submission.d.ts +0 -38
- package/dist/types/components/sharing-and-management/resource-share-dialog/unified/types.d.ts +0 -62
- package/dist/types/components/sharing-and-management/utils/resource-query-keys.d.ts +0 -14
- package/dist/types/components/sharing-and-management/utils/shares-types.d.ts +0 -130
- package/dist/types/components/surfboard/card-controls-toolbar.d.ts +0 -17
- package/dist/types/components/surfboard/controls/card-runtime-controls.d.ts +0 -6
- package/dist/types/components/surfboard/controls/control-authoring-utils.d.ts +0 -182
- package/dist/types/components/surfboard/controls/control-binding-list-editor.d.ts +0 -21
- package/dist/types/components/surfboard/controls/control-definition-editor-helpers.d.ts +0 -43
- package/dist/types/components/surfboard/controls/control-definition-editor-sections.d.ts +0 -65
- package/dist/types/components/surfboard/controls/control-definition-list-editor.d.ts +0 -29
- package/dist/types/components/surfboard/controls/control-select-ui-utils.d.ts +0 -13
- package/dist/types/components/surfboard/controls/control-toolbar-item.d.ts +0 -22
- package/dist/types/components/surfboard/controls/control-toolbar-settings-form.d.ts +0 -30
- package/dist/types/components/surfboard/controls/control-toolbar-settings-shell.d.ts +0 -37
- package/dist/types/components/surfboard/controls/control-usage-utils.d.ts +0 -22
- package/dist/types/components/surfboard/controls/control-validation-message-utils.d.ts +0 -5
- package/dist/types/components/surfboard/controls/dashboard-control-delete-dialog.d.ts +0 -7
- package/dist/types/components/surfboard/controls/dashboard-control-toolbar-popover.d.ts +0 -9
- package/dist/types/components/surfboard/controls/dashboard-runtime-controls.d.ts +0 -1
- package/dist/types/components/surfboard/controls/matrix-structural-targets.d.ts +0 -10
- package/dist/types/components/surfboard/controls/presentation-currency-binding-editor.d.ts +0 -15
- package/dist/types/components/surfboard/controls/runtime-control-input.d.ts +0 -16
- package/dist/types/components/surfboard/controls/runtime-control-utils.d.ts +0 -16
- package/dist/types/components/surfboard/controls/runtime-controls-group.d.ts +0 -12
- package/dist/types/components/surfboard/controls/sortable-control-toolbar-item.d.ts +0 -9
- package/dist/types/components/surfboard/controls/use-create-flow-overlay-state.d.ts +0 -32
- package/dist/types/components/surfboard/controls/use-dashboard-structural-participants.d.ts +0 -14
- package/dist/types/components/surfboard/controls/use-resolved-control-toolbar-options.d.ts +0 -26
- package/dist/types/components/surfboard/dashboard-controls.d.ts +0 -1
- package/dist/types/components/surfboard/dashboard-plus-main.d.ts +0 -1
- package/dist/types/components/surfboard/download-settings-dialog.d.ts +0 -8
- package/dist/types/components/surfboard/expanded-card-view.d.ts +0 -11
- package/dist/types/components/surfboard/export-dialog.d.ts +0 -16
- package/dist/types/components/surfboard/filter/apply-filters-check-box.d.ts +0 -7
- package/dist/types/components/surfboard/filter/custom-filter/custom-filter-selector.d.ts +0 -12
- package/dist/types/components/surfboard/filter/custom-filter/custom-filter-types.d.ts +0 -45
- package/dist/types/components/surfboard/filter/custom-filter/dashboard-custom-filter.d.ts +0 -19
- package/dist/types/components/surfboard/filter/custom-filter-popover.d.ts +0 -75
- package/dist/types/components/surfboard/filter/dashboard-filter-info-group.d.ts +0 -21
- package/dist/types/components/surfboard/filter/dashboard-filter-mapping-panel.d.ts +0 -40
- package/dist/types/components/surfboard/filter/date-comparison-controls.d.ts +0 -8
- package/dist/types/components/surfboard/filter/date-comparison-label.d.ts +0 -2
- package/dist/types/components/surfboard/filter/date-range-filter-v2.d.ts +0 -38
- package/dist/types/components/surfboard/filter/date-range-filter.d.ts +0 -7
- package/dist/types/components/surfboard/filter/day-picker.d.ts +0 -30
- package/dist/types/components/surfboard/filter/field-date-comparison-scope-message.d.ts +0 -2
- package/dist/types/components/surfboard/filter/field-date-filter.d.ts +0 -9
- package/dist/types/components/surfboard/filter/filter-actions-popover-content.d.ts +0 -9
- package/dist/types/components/surfboard/filter/filter-aside.d.ts +0 -1
- package/dist/types/components/surfboard/filter/filter-component.d.ts +0 -13
- package/dist/types/components/surfboard/filter/filter-configuration-panel.d.ts +0 -102
- package/dist/types/components/surfboard/filter/filter-default-values-picker.d.ts +0 -29
- package/dist/types/components/surfboard/filter/filter-error-state.d.ts +0 -7
- package/dist/types/components/surfboard/filter/filter-header.d.ts +0 -4
- package/dist/types/components/surfboard/filter/filter-info.d.ts +0 -17
- package/dist/types/components/surfboard/filter/filter-option-dependencies-settings.d.ts +0 -34
- package/dist/types/components/surfboard/filter/filter-option-list.d.ts +0 -39
- package/dist/types/components/surfboard/filter/filter-option-source-settings.d.ts +0 -15
- package/dist/types/components/surfboard/filter/filter-picker-popover-content.d.ts +0 -1
- package/dist/types/components/surfboard/filter/filter-popover-parts.d.ts +0 -37
- package/dist/types/components/surfboard/filter/filter-scope-config.d.ts +0 -8
- package/dist/types/components/surfboard/filter/filter-settings-popover-delete.d.ts +0 -0
- package/dist/types/components/surfboard/filter/filter-settings-popover.d.ts +0 -5
- package/dist/types/components/surfboard/filter/filter-toolbar-item.d.ts +0 -22
- package/dist/types/components/surfboard/filter/filter-toolbar-order-utils.d.ts +0 -3
- package/dist/types/components/surfboard/filter/filter-toolbar.d.ts +0 -7
- package/dist/types/components/surfboard/filter/global-date-comparison-footer.d.ts +0 -14
- package/dist/types/components/surfboard/filter/global-date-filter.d.ts +0 -9
- package/dist/types/components/surfboard/filter/hidden-filters.d.ts +0 -1
- package/dist/types/components/surfboard/filter/month-picker.d.ts +0 -19
- package/dist/types/components/surfboard/filter/multi-select-filter.d.ts +0 -16
- package/dist/types/components/surfboard/filter/multi-select-inline-content.d.ts +0 -39
- package/dist/types/components/surfboard/filter/numeric-filter-input.d.ts +0 -8
- package/dist/types/components/surfboard/filter/radio-button-filter.d.ts +0 -8
- package/dist/types/components/surfboard/filter/selection-chip.d.ts +0 -11
- package/dist/types/components/surfboard/filter/selection-filter-section.d.ts +0 -4
- package/dist/types/components/surfboard/filter/sortable-filter-toolbar-item.d.ts +0 -24
- package/dist/types/components/surfboard/filter/tabs-filter.d.ts +0 -8
- package/dist/types/components/surfboard/filter/use-dashboard-filter-mapping-popover.d.ts +0 -80
- package/dist/types/components/surfboard/filter/use-filter-header-width.d.ts +0 -12
- package/dist/types/components/surfboard/filter/utils.d.ts +0 -4
- package/dist/types/components/surfboard/inline-options-error-state.d.ts +0 -6
- package/dist/types/components/surfboard/input-chip-row.d.ts +0 -21
- package/dist/types/components/surfboard/preferences/calendar-preferences-panel.d.ts +0 -7
- package/dist/types/components/surfboard/preferences/display-format-preferences-panel.d.ts +0 -6
- package/dist/types/components/surfboard/toolbar-item-shell.d.ts +0 -17
- package/dist/types/components/text-variables/variable-chip-plugin.d.ts +0 -23
- package/dist/types/components/text-variables/variable-chip.d.ts +0 -18
- package/dist/types/components/text-variables/variable-picker.d.ts +0 -27
- package/dist/types/components/ui/accordion.d.ts +0 -7
- package/dist/types/components/ui/alert-dialog.d.ts +0 -20
- package/dist/types/components/ui/alert.d.ts +0 -8
- package/dist/types/components/ui/audience-type-badge.d.ts +0 -9
- package/dist/types/components/ui/avatar.d.ts +0 -6
- package/dist/types/components/ui/badge.d.ts +0 -9
- package/dist/types/components/ui/button.d.ts +0 -11
- package/dist/types/components/ui/calendar.d.ts +0 -8
- package/dist/types/components/ui/card.d.ts +0 -8
- package/dist/types/components/ui/checkbox.d.ts +0 -4
- package/dist/types/components/ui/collapsible.d.ts +0 -5
- package/dist/types/components/ui/command.d.ts +0 -82
- package/dist/types/components/ui/context-menu.d.ts +0 -27
- package/dist/types/components/ui/dialog.d.ts +0 -28
- package/dist/types/components/ui/dropdown-menu.d.ts +0 -27
- package/dist/types/components/ui/hover-card.d.ts +0 -6
- package/dist/types/components/ui/input.d.ts +0 -9
- package/dist/types/components/ui/label.d.ts +0 -5
- package/dist/types/components/ui/popover.d.ts +0 -7
- package/dist/types/components/ui/portal-scope.d.ts +0 -6
- package/dist/types/components/ui/progress.d.ts +0 -4
- package/dist/types/components/ui/radio-group.d.ts +0 -5
- package/dist/types/components/ui/resizable.d.ts +0 -23
- package/dist/types/components/ui/scroll-area.d.ts +0 -5
- package/dist/types/components/ui/select.d.ts +0 -16
- package/dist/types/components/ui/separator.d.ts +0 -4
- package/dist/types/components/ui/sheet.d.ts +0 -39
- package/dist/types/components/ui/skeleton.d.ts +0 -2
- package/dist/types/components/ui/slider.d.ts +0 -4
- package/dist/types/components/ui/sonner.d.ts +0 -4
- package/dist/types/components/ui/switch.d.ts +0 -10
- package/dist/types/components/ui/table.d.ts +0 -13
- package/dist/types/components/ui/tabs.d.ts +0 -14
- package/dist/types/components/ui/textarea.d.ts +0 -9
- package/dist/types/components/ui/toggle.d.ts +0 -12
- package/dist/types/components/ui/tooltip.d.ts +0 -8
- package/dist/types/components/ui-custom/color-field.d.ts +0 -31
- package/dist/types/components/ui-custom/column-search.d.ts +0 -42
- package/dist/types/components/ui-custom/combo-box-2.d.ts +0 -40
- package/dist/types/components/ui-custom/command-input-custom.d.ts +0 -9
- package/dist/types/components/ui-custom/copy-button.d.ts +0 -15
- package/dist/types/components/ui-custom/copy-on-click.d.ts +0 -11
- package/dist/types/components/ui-custom/custom-scroll-area.d.ts +0 -6
- package/dist/types/components/ui-custom/date-range-picker.d.ts +0 -85
- package/dist/types/components/ui-custom/date-range-popover.d.ts +0 -14
- package/dist/types/components/ui-custom/details.d.ts +0 -7
- package/dist/types/components/ui-custom/dev-mode-switch.d.ts +0 -8
- package/dist/types/components/ui-custom/editable-text.d.ts +0 -22
- package/dist/types/components/ui-custom/grip-reveal.d.ts +0 -4
- package/dist/types/components/ui-custom/icon-button.d.ts +0 -13
- package/dist/types/components/ui-custom/load-on-scroll-status.d.ts +0 -8
- package/dist/types/components/ui-custom/load-on-scroll-utils.d.ts +0 -1
- package/dist/types/components/ui-custom/loading-dots.d.ts +0 -7
- package/dist/types/components/ui-custom/local-blur-input.d.ts +0 -9
- package/dist/types/components/ui-custom/option-search-input.d.ts +0 -16
- package/dist/types/components/ui-custom/overflow-div.d.ts +0 -5
- package/dist/types/components/ui-custom/overflow-span.d.ts +0 -5
- package/dist/types/components/ui-custom/popover-content-custom.d.ts +0 -4
- package/dist/types/components/ui-custom/pre-tag.d.ts +0 -4
- package/dist/types/components/ui-custom/radio-indicator.d.ts +0 -13
- package/dist/types/components/ui-custom/report-calendar.d.ts +0 -18
- package/dist/types/components/ui-custom/resizable-handle-custom.d.ts +0 -7
- package/dist/types/components/ui-custom/reusable-select.d.ts +0 -16
- package/dist/types/components/ui-custom/visual-badge.d.ts +0 -9
- package/dist/types/components/visual/aggregated-table/aggregate-table.d.ts +0 -3
- package/dist/types/components/visual/aggregated-table/columns/aggregate-columns.d.ts +0 -4
- package/dist/types/components/visual/aggregated-table/columns/column-cell-components.d.ts +0 -17
- package/dist/types/components/visual/aggregated-table/columns/column-definitions.d.ts +0 -29
- package/dist/types/components/visual/aggregated-table/columns/column-header-components.d.ts +0 -32
- package/dist/types/components/visual/aggregated-table/components/aggregate-table-body.d.ts +0 -18
- package/dist/types/components/visual/aggregated-table/components/grand-total-footer.d.ts +0 -23
- package/dist/types/components/visual/aggregated-table/hooks/use-aggregate-table.d.ts +0 -15
- package/dist/types/components/visual/aggregated-table/types/aggregate-table.d.ts +0 -68
- package/dist/types/components/visual/aggregated-table/utils/cell-formatters.d.ts +0 -6
- package/dist/types/components/visual/aggregated-table/utils/data-organizer.d.ts +0 -12
- package/dist/types/components/visual/aggregated-table/utils/export-utils.d.ts +0 -29
- package/dist/types/components/visual/aggregated-table/utils/metric-format-resolver.d.ts +0 -66
- package/dist/types/components/visual/aggregated-table/utils/temporal-presentation.d.ts +0 -17
- package/dist/types/components/visual/chart-utils.d.ts +0 -15
- package/dist/types/components/visual/chartjs-visual.d.ts +0 -9
- package/dist/types/components/visual/column-display-utils.d.ts +0 -2
- package/dist/types/components/visual/custom-visual/build-inline-filter-nodes.d.ts +0 -21
- package/dist/types/components/visual/custom-visual/build-multi-input-props.d.ts +0 -48
- package/dist/types/components/visual/custom-visual/component-combo-box.d.ts +0 -11
- package/dist/types/components/visual/custom-visual/custom-card-theme-adapter.d.ts +0 -3
- package/dist/types/components/visual/custom-visual/custom-visual-settings.d.ts +0 -1
- package/dist/types/components/visual/custom-visual/custom-visual-temporal-presentation.d.ts +0 -35
- package/dist/types/components/visual/custom-visual/custom-visual-types.d.ts +0 -171
- package/dist/types/components/visual/custom-visual/custom-visual-utils.d.ts +0 -57
- package/dist/types/components/visual/custom-visual/dashboard-custom-visual.d.ts +0 -7
- package/dist/types/components/visual/custom-visual/editor-custom-visual.d.ts +0 -6
- package/dist/types/components/visual/custom-visual/hooks/use-ensure-react-globals.d.ts +0 -10
- package/dist/types/components/visual/custom-visual/hooks/use-remote-chart-store.d.ts +0 -9
- package/dist/types/components/visual/custom-visual/multi-input-empty-renderer.d.ts +0 -8
- package/dist/types/components/visual/custom-visual/use-custom-visual.d.ts +0 -16
- package/dist/types/components/visual/data-table/column-def.d.ts +0 -54
- package/dist/types/components/visual/data-table/column-resize-handle.d.ts +0 -8
- package/dist/types/components/visual/data-table/copyable-cell.d.ts +0 -9
- package/dist/types/components/visual/data-table/data-table-column-settings.d.ts +0 -2
- package/dist/types/components/visual/data-table/data-table-conditional-formatting-settings.d.ts +0 -21
- package/dist/types/components/visual/data-table/data-table-pagination.d.ts +0 -2
- package/dist/types/components/visual/data-table/data-table-toolbar.d.ts +0 -2
- package/dist/types/components/visual/data-table/data-table.d.ts +0 -2
- package/dist/types/components/visual/data-table/hooks/use-sql-raw-temporal-format-draft.d.ts +0 -15
- package/dist/types/components/visual/data-table/hooks/use-table-query-state.d.ts +0 -30
- package/dist/types/components/visual/data-table/overflow-cell.d.ts +0 -9
- package/dist/types/components/visual/data-table/table-conditional-formatting-authoring.d.ts +0 -17
- package/dist/types/components/visual/data-table/table-conditional-formatting-rule-model.d.ts +0 -33
- package/dist/types/components/visual/data-table/table-settings-toolbar-button.d.ts +0 -9
- package/dist/types/components/visual/data-table/table-skeleton.d.ts +0 -6
- package/dist/types/components/visual/data-table/table-visual.d.ts +0 -39
- package/dist/types/components/visual/data-table/utils/data-table-utils.d.ts +0 -74
- package/dist/types/components/visual/data-table/utils/sort-conversion.d.ts +0 -5
- package/dist/types/components/visual/data-table/utils/table-behavior.d.ts +0 -33
- package/dist/types/components/visual/data-table/utils/utils.d.ts +0 -4
- package/dist/types/components/visual/info-hover.d.ts +0 -7
- package/dist/types/components/visual/kpi-visual/format-number-setting.d.ts +0 -1
- package/dist/types/components/visual/kpi-visual/kpi-bulb-utils.d.ts +0 -3
- package/dist/types/components/visual/kpi-visual/kpi-card-with-info.d.ts +0 -9
- package/dist/types/components/visual/kpi-visual/kpi-card.d.ts +0 -28
- package/dist/types/components/visual/kpi-visual/kpi-editor-ownership-badge.d.ts +0 -4
- package/dist/types/components/visual/kpi-visual/kpi-utils.d.ts +0 -12
- package/dist/types/components/visual/matrix-table/matrix-axis-menu.d.ts +0 -21
- package/dist/types/components/visual/matrix-table/matrix-loading-skeleton.d.ts +0 -14
- package/dist/types/components/visual/matrix-table/matrix-selection-click.d.ts +0 -6
- package/dist/types/components/visual/matrix-table/matrix-tabular-boundary.d.ts +0 -8
- package/dist/types/components/visual/matrix-table/matrix-viewer-geometry.d.ts +0 -21
- package/dist/types/components/visual/matrix-table/matrix-window-viewer.d.ts +0 -26
- package/dist/types/components/visual/pivot-table/aggregation-menu.d.ts +0 -23
- package/dist/types/components/visual/pivot-table/columns/data-columns.d.ts +0 -26
- package/dist/types/components/visual/pivot-table/columns/row-header-columns.d.ts +0 -20
- package/dist/types/components/visual/pivot-table/columns/row-total-column.d.ts +0 -12
- package/dist/types/components/visual/pivot-table/components/pivot-table-body.d.ts +0 -23
- package/dist/types/components/visual/pivot-table/components/pivot-table-footer.d.ts +0 -30
- package/dist/types/components/visual/pivot-table/hooks/use-pivot-column-headers.d.ts +0 -28
- package/dist/types/components/visual/pivot-table/hooks/use-pivot-pagination.d.ts +0 -29
- package/dist/types/components/visual/pivot-table/hooks/use-pivot-sorting.d.ts +0 -21
- package/dist/types/components/visual/pivot-table/hooks/use-pivot-table-settings.d.ts +0 -15
- package/dist/types/components/visual/pivot-table/pivot-table-tanstack.d.ts +0 -41
- package/dist/types/components/visual/pivot-table/pivot-table.d.ts +0 -100
- package/dist/types/components/visual/pivot-table/utils/cell-value-formatter.d.ts +0 -14
- package/dist/types/components/visual/pivot-table/utils/pivot-field-identity.d.ts +0 -8
- package/dist/types/components/visual/pivot-table/utils/pivot-formatting-utils.d.ts +0 -24
- package/dist/types/components/visual/pivot-table/utils/pivot-metric-formatting.d.ts +0 -18
- package/dist/types/components/visual/pivot-table/utils/pivot-physical-schema.d.ts +0 -14
- package/dist/types/components/visual/pivot-table/utils/pivot-table-aggregation-helpers.d.ts +0 -21
- package/dist/types/components/visual/pivot-table/utils/pivot-table-data-processor.d.ts +0 -35
- package/dist/types/components/visual/pivot-table/utils/pivot-table-export-utils.d.ts +0 -25
- package/dist/types/components/visual/pivot-table/utils/pivot-table-response.d.ts +0 -50
- package/dist/types/components/visual/pivot-table/utils/pivot-table-sorter.d.ts +0 -7
- package/dist/types/components/visual/pivot-table/utils/row-span-calculator.d.ts +0 -14
- package/dist/types/components/visual/settings/axis-mapping.d.ts +0 -9
- package/dist/types/components/visual/settings/chart-documentation.d.ts +0 -28
- package/dist/types/components/visual/settings/chart-orientation.d.ts +0 -1
- package/dist/types/components/visual/settings/color-format.d.ts +0 -8
- package/dist/types/components/visual/settings/controls-settings.d.ts +0 -8
- package/dist/types/components/visual/settings/dataset-label-popover.d.ts +0 -4
- package/dist/types/components/visual/settings/display-labels.d.ts +0 -2
- package/dist/types/components/visual/settings/filter-on-click-columns.d.ts +0 -1
- package/dist/types/components/visual/settings/frame-filters.d.ts +0 -7
- package/dist/types/components/visual/settings/inline-filters-settings.d.ts +0 -12
- package/dist/types/components/visual/settings/kpi-settings.d.ts +0 -1
- package/dist/types/components/visual/settings/map-chart-settings.d.ts +0 -1
- package/dist/types/components/visual/settings/scale-options.d.ts +0 -1
- package/dist/types/components/visual/settings/table-column-visibility-settings.d.ts +0 -16
- package/dist/types/components/visual/settings/table-presentation-settings.d.ts +0 -53
- package/dist/types/components/visual/settings/table-visual-settings.d.ts +0 -8
- package/dist/types/components/visual/settings/text-settings.d.ts +0 -1
- package/dist/types/components/visual/settings/text-type-radio.d.ts +0 -2
- package/dist/types/components/visual/shared/hooks/use-column-resizing.d.ts +0 -15
- package/dist/types/components/visual/shared/utils/column-type-detector.d.ts +0 -25
- package/dist/types/components/visual/shared/utils/table-render-policy.d.ts +0 -20
- package/dist/types/components/visual/table-appearance/table-appearance-adapter.d.ts +0 -41
- package/dist/types/components/visual/table-appearance/table-appearance-primitives.d.ts +0 -32
- package/dist/types/components/visual/visual-error-state.d.ts +0 -13
- package/dist/types/components/visual/visual-utils.d.ts +0 -33
- package/dist/types/data-app-sdk/analysis-payload.d.ts +0 -2
- package/dist/types/data-app-sdk/devtools/issues.d.ts +0 -21
- package/dist/types/data-app-sdk/devtools/labels.d.ts +0 -4
- package/dist/types/data-app-sdk/devtools/result-preview.d.ts +0 -8
- package/dist/types/data-app-sdk/devtools/styles.d.ts +0 -15
- package/dist/types/data-app-sdk/devtools/window-snapshot.d.ts +0 -3
- package/dist/types/data-app-sdk/matrix-filter-validation.d.ts +0 -12
- package/dist/types/data-app-sdk/query-request.d.ts +0 -32
- package/dist/types/data-app-sdk/runtime.d.ts +0 -21
- package/dist/types/lib/actions/data-point-click-action.d.ts +0 -13
- package/dist/types/lib/ai-utils.d.ts +0 -16
- package/dist/types/lib/api/index.d.ts +0 -2
- package/dist/types/lib/appearance/chart-style-adapter.d.ts +0 -4
- package/dist/types/lib/appearance/dom.d.ts +0 -3
- package/dist/types/lib/appearance/fonts.d.ts +0 -9
- package/dist/types/lib/briefings/briefing-attachment-model.d.ts +0 -104
- package/dist/types/lib/charts/area-chart.d.ts +0 -5
- package/dist/types/lib/charts/bar-chart.d.ts +0 -5
- package/dist/types/lib/charts/bubble-scatter-chart.d.ts +0 -28
- package/dist/types/lib/charts/bullet-chart.d.ts +0 -17
- package/dist/types/lib/charts/cartesian-data.d.ts +0 -72
- package/dist/types/lib/charts/cartesian-fields.d.ts +0 -60
- package/dist/types/lib/charts/chart-availability.d.ts +0 -13
- package/dist/types/lib/charts/chart-axis-policy.d.ts +0 -20
- package/dist/types/lib/charts/chart-config.d.ts +0 -9
- package/dist/types/lib/charts/chart-documentation.d.ts +0 -23
- package/dist/types/lib/charts/chart-font.d.ts +0 -10
- package/dist/types/lib/charts/chart-selector.d.ts +0 -2
- package/dist/types/lib/charts/chart-utils.d.ts +0 -258
- package/dist/types/lib/charts/color-utils.d.ts +0 -29
- package/dist/types/lib/charts/combo-chart.d.ts +0 -5
- package/dist/types/lib/charts/configuration/axis-configurator.d.ts +0 -36
- package/dist/types/lib/charts/configuration/combo-config.d.ts +0 -36
- package/dist/types/lib/charts/configuration/data-labels-config.d.ts +0 -36
- package/dist/types/lib/charts/configuration/legend-config.d.ts +0 -18
- package/dist/types/lib/charts/create-chart.d.ts +0 -30
- package/dist/types/lib/charts/custom-config-utils.d.ts +0 -0
- package/dist/types/lib/charts/funnel-chart.d.ts +0 -13
- package/dist/types/lib/charts/heatmap-chart.d.ts +0 -15
- package/dist/types/lib/charts/heatmap-constants.d.ts +0 -7
- package/dist/types/lib/charts/line-chart.d.ts +0 -5
- package/dist/types/lib/charts/range-chart.d.ts +0 -12
- package/dist/types/lib/charts/shared/category-group-axis-plugin.d.ts +0 -23
- package/dist/types/lib/charts/shared/dataset-utils.d.ts +0 -36
- package/dist/types/lib/charts/stacked-line-chart.d.ts +0 -2
- package/dist/types/lib/charts/tornado-chart.d.ts +0 -13
- package/dist/types/lib/charts/treemap-chart.d.ts +0 -15
- package/dist/types/lib/charts/utils.d.ts +0 -12
- package/dist/types/lib/constants/summary.d.ts +0 -2
- package/dist/types/lib/constants/tool-status-messages.d.ts +0 -12
- package/dist/types/lib/constants.d.ts +0 -30
- package/dist/types/lib/contexts/dashboard-preferences-context.d.ts +0 -7
- package/dist/types/lib/contexts/display-preferences-context.d.ts +0 -6
- package/dist/types/lib/contexts/interactions-popover-context.d.ts +0 -14
- package/dist/types/lib/countries.d.ts +0 -8
- package/dist/types/lib/csv-download.d.ts +0 -9
- package/dist/types/lib/csv-encoding-options.d.ts +0 -6
- package/dist/types/lib/dashboard/click-to-filter-card-references.d.ts +0 -23
- package/dist/types/lib/dashboard/duplicate-sheet.d.ts +0 -11
- package/dist/types/lib/dashboard/global-date-filter-utils.d.ts +0 -22
- package/dist/types/lib/dashboard/open-card-in-visual-editor.d.ts +0 -15
- package/dist/types/lib/dashboard-inputs/build-normalized-dashboard-inputs.d.ts +0 -55
- package/dist/types/lib/dashboard-inputs/build-selection-dashboard-inputs.d.ts +0 -31
- package/dist/types/lib/dashboard-inputs/card-compat-adapter.d.ts +0 -9
- package/dist/types/lib/dashboard-inputs/click-to-filter-emitted-fields.d.ts +0 -17
- package/dist/types/lib/dashboard-inputs/click-to-filter-mapping-draft.d.ts +0 -99
- package/dist/types/lib/dashboard-inputs/click-to-filter-sheet-reach.d.ts +0 -12
- package/dist/types/lib/dashboard-inputs/dashboard-control-compat-adapter.d.ts +0 -7
- package/dist/types/lib/dashboard-inputs/dashboard-filter-authoring-policy.d.ts +0 -21
- package/dist/types/lib/dashboard-inputs/dashboard-filter-compat-adapter.d.ts +0 -10
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-candidate-metadata.d.ts +0 -107
- package/dist/types/lib/dashboard-inputs/dashboard-filter-ownership.d.ts +0 -13
- package/dist/types/lib/dashboard-inputs/dashboard-filter-value-identity.d.ts +0 -36
- package/dist/types/lib/dashboard-inputs/dashboard-input-authoring-aliases.d.ts +0 -13
- package/dist/types/lib/dashboard-inputs/dashboard-input-display.d.ts +0 -11
- package/dist/types/lib/dashboard-inputs/dashboard-input-edit-validation.d.ts +0 -20
- package/dist/types/lib/dashboard-inputs/dashboard-input-helpers.d.ts +0 -15
- package/dist/types/lib/dashboard-inputs/dashboard-input-snapshot.d.ts +0 -85
- package/dist/types/lib/dashboard-inputs/dashboard-input-text.d.ts +0 -12
- package/dist/types/lib/dashboard-inputs/dashboard-option-dependency-context.d.ts +0 -40
- package/dist/types/lib/dashboard-inputs/document-input-prototype-normalizer.d.ts +0 -2
- package/dist/types/lib/dashboard-inputs/filter-authoring-capabilities.d.ts +0 -39
- package/dist/types/lib/dashboard-inputs/find-normalized-dashboard-filter-input.d.ts +0 -4
- package/dist/types/lib/dashboard-inputs/index.d.ts +0 -12
- package/dist/types/lib/dashboard-inputs/resolve-field-date-comparison-coverage.d.ts +0 -20
- package/dist/types/lib/dashboard-inputs/selection-targets.d.ts +0 -26
- package/dist/types/lib/dashboard-inputs/text-card-rich-content.d.ts +0 -6
- package/dist/types/lib/dashboard-inputs/text-variable-options.d.ts +0 -16
- package/dist/types/lib/dashboard-inputs/use-effective-dashboard-filter-storage.d.ts +0 -7
- package/dist/types/lib/dashboard-navigation/build-carried-click-context.d.ts +0 -49
- package/dist/types/lib/dashboard-navigation/describe-carried-context.d.ts +0 -11
- package/dist/types/lib/dashboard-navigation/run-one-off-drill.d.ts +0 -11
- package/dist/types/lib/dashboard-navigation/use-transient-contexts.d.ts +0 -17
- package/dist/types/lib/dnd-utils.d.ts +0 -5
- package/dist/types/lib/document/document-canvas-actions.d.ts +0 -22
- package/dist/types/lib/document/document-dashboard-inputs.d.ts +0 -48
- package/dist/types/lib/document/document-definition.d.ts +0 -14
- package/dist/types/lib/document/document-generated-at.d.ts +0 -13
- package/dist/types/lib/document/document-input-order.d.ts +0 -5
- package/dist/types/lib/document/document-inputs.d.ts +0 -30
- package/dist/types/lib/document/document-kpi-figure.d.ts +0 -27
- package/dist/types/lib/document/document-kpi-layout.d.ts +0 -29
- package/dist/types/lib/document/document-kpi-section-edits.d.ts +0 -15
- package/dist/types/lib/document/document-matrix-bands.d.ts +0 -66
- package/dist/types/lib/document/document-matrix-print.d.ts +0 -11
- package/dist/types/lib/document/document-page-metrics.d.ts +0 -34
- package/dist/types/lib/document/document-pagination.d.ts +0 -110
- package/dist/types/lib/document/document-render-mode.d.ts +0 -8
- package/dist/types/lib/document/document-section-editor.d.ts +0 -9
- package/dist/types/lib/document/document-section-query-options.d.ts +0 -25
- package/dist/types/lib/document/document-section-render-state.d.ts +0 -26
- package/dist/types/lib/document/document-section-utils.d.ts +0 -18
- package/dist/types/lib/document/document-sheet-utils.d.ts +0 -4
- package/dist/types/lib/document/document-table-data-policy.d.ts +0 -15
- package/dist/types/lib/document/document-table-dom.d.ts +0 -29
- package/dist/types/lib/document/document-table-pagination-model.d.ts +0 -62
- package/dist/types/lib/document/document-table-print-model.d.ts +0 -53
- package/dist/types/lib/document/document-table-result-columns.d.ts +0 -10
- package/dist/types/lib/document/document-table-style.d.ts +0 -44
- package/dist/types/lib/document/document-table-surface.d.ts +0 -15
- package/dist/types/lib/document/document-table-totals.d.ts +0 -8
- package/dist/types/lib/document/document-variables.d.ts +0 -97
- package/dist/types/lib/document/document-visual-render-contract.d.ts +0 -8
- package/dist/types/lib/document/use-document-section-data.d.ts +0 -39
- package/dist/types/lib/document/use-document-table-rows.d.ts +0 -21
- package/dist/types/lib/document/use-measured-document-table-layout.d.ts +0 -50
- package/dist/types/lib/drag-and-drop-utils.d.ts +0 -2
- package/dist/types/lib/editor-draft-sync.d.ts +0 -2
- package/dist/types/lib/explorer-utils.d.ts +0 -11
- package/dist/types/lib/export-utils.d.ts +0 -47
- package/dist/types/lib/exports/export-status.d.ts +0 -17
- package/dist/types/lib/fields/field-display.d.ts +0 -35
- package/dist/types/lib/filter-values/build-card-filter-definition.d.ts +0 -18
- package/dist/types/lib/filter-values/build-filter-values-request-payload.d.ts +0 -116
- package/dist/types/lib/filter-values/filter-option-identity.d.ts +0 -10
- package/dist/types/lib/filter-values/filter-record-value.d.ts +0 -9
- package/dist/types/lib/filter-values/merge-additional-filter-values.d.ts +0 -12
- package/dist/types/lib/formatters/active-numeric-presentation.d.ts +0 -25
- package/dist/types/lib/formatters/card-format-context.d.ts +0 -14
- package/dist/types/lib/formatters/currency-presentation-binding.d.ts +0 -72
- package/dist/types/lib/formatters/dashboard-temporal-presentation.d.ts +0 -10
- package/dist/types/lib/formatters/grouped-temporal-authoring.d.ts +0 -33
- package/dist/types/lib/formatters/kpi-number-formatter.d.ts +0 -24
- package/dist/types/lib/formatters/kpi-result-columns.d.ts +0 -3
- package/dist/types/lib/formatters/kpi-result-values.d.ts +0 -20
- package/dist/types/lib/formatters/metric-formatting.d.ts +0 -197
- package/dist/types/lib/formatters/numeric-presentation.d.ts +0 -10
- package/dist/types/lib/formatters/numeric-value-coercion.d.ts +0 -10
- package/dist/types/lib/formatters/pivot-result-lifecycle-config.d.ts +0 -15
- package/dist/types/lib/formatters/raw-temporal-on-demand-delivery.d.ts +0 -63
- package/dist/types/lib/formatters/result-column-identity.d.ts +0 -3
- package/dist/types/lib/formatters/saved-temporal-bucket-format.d.ts +0 -43
- package/dist/types/lib/formatters/semantic-column-presentation.d.ts +0 -9
- package/dist/types/lib/formatters/value-formatter.d.ts +0 -64
- package/dist/types/lib/hooks/ai/assistant-context-entity-utils.d.ts +0 -6
- package/dist/types/lib/hooks/ai/assistant-session.d.ts +0 -3
- package/dist/types/lib/hooks/ai/dashboard-assistant-context.d.ts +0 -35
- package/dist/types/lib/hooks/ai/dashboard-context.d.ts +0 -41
- package/dist/types/lib/hooks/ai/use-active-tool-status.d.ts +0 -10
- package/dist/types/lib/hooks/ai/use-assistant-context-entities.d.ts +0 -19
- package/dist/types/lib/hooks/ai/use-assistant-profile.d.ts +0 -6
- package/dist/types/lib/hooks/ai/use-assistant-scroll.d.ts +0 -8
- package/dist/types/lib/hooks/ai/use-auto-submit-queue.d.ts +0 -13
- package/dist/types/lib/hooks/ai/use-dashboard-assistant.d.ts +0 -32
- package/dist/types/lib/hooks/ai/use-editor-assistant.d.ts +0 -33
- package/dist/types/lib/hooks/ai/use-entity-mentions.d.ts +0 -36
- package/dist/types/lib/hooks/ai/use-local-storage-state.d.ts +0 -1
- package/dist/types/lib/hooks/ai/utils.d.ts +0 -64
- package/dist/types/lib/hooks/calculated-fields/use-ai-expression.d.ts +0 -23
- package/dist/types/lib/hooks/calculated-fields/use-available-fields.d.ts +0 -111
- package/dist/types/lib/hooks/calculated-fields/use-calculated-field-templates.d.ts +0 -9
- package/dist/types/lib/hooks/calculated-fields/use-expression-validation.d.ts +0 -18
- package/dist/types/lib/hooks/calculated-fields/use-formula-placeholders.d.ts +0 -54
- package/dist/types/lib/hooks/calculated-fields/use-promote-to-domain.d.ts +0 -17
- package/dist/types/lib/hooks/chartjs/use-chart-blur.d.ts +0 -14
- package/dist/types/lib/hooks/control-values-query-utils.d.ts +0 -6
- package/dist/types/lib/hooks/explorer/column-catalog.d.ts +0 -4
- package/dist/types/lib/hooks/explorer/column-native-datatype.d.ts +0 -8
- package/dist/types/lib/hooks/explorer/field-management-utils.d.ts +0 -2
- package/dist/types/lib/hooks/explorer/use-card-filter-option-browse.d.ts +0 -10
- package/dist/types/lib/hooks/explorer/use-columns.d.ts +0 -11
- package/dist/types/lib/hooks/explorer/use-data-models.d.ts +0 -8
- package/dist/types/lib/hooks/explorer/use-database-entities.d.ts +0 -15
- package/dist/types/lib/hooks/explorer/use-databases.d.ts +0 -12
- package/dist/types/lib/hooks/explorer/use-datasets.d.ts +0 -53
- package/dist/types/lib/hooks/explorer/use-dev-mode-actions.d.ts +0 -10
- package/dist/types/lib/hooks/explorer/use-domain-calculated-fields.d.ts +0 -6
- package/dist/types/lib/hooks/explorer/use-drag-and-drop.d.ts +0 -22
- package/dist/types/lib/hooks/explorer/use-field-availability-context.d.ts +0 -16
- package/dist/types/lib/hooks/explorer/use-field-management.d.ts +0 -42
- package/dist/types/lib/hooks/explorer/use-files.d.ts +0 -13
- package/dist/types/lib/hooks/explorer/use-filter-builder.d.ts +0 -24
- package/dist/types/lib/hooks/explorer/use-filterable-fields.d.ts +0 -61
- package/dist/types/lib/hooks/explorer/use-join-conditions-builder.d.ts +0 -27
- package/dist/types/lib/hooks/explorer/use-schemas.d.ts +0 -8
- package/dist/types/lib/hooks/explorer/use-scoped-fields.d.ts +0 -53
- package/dist/types/lib/hooks/explorer/use-semantic-domains.d.ts +0 -17
- package/dist/types/lib/hooks/explorer/use-sync-legacy-editor-state.d.ts +0 -20
- package/dist/types/lib/hooks/query-context/use-card-query-context.d.ts +0 -3
- package/dist/types/lib/hooks/query-context/use-dashboard-card-execution-snapshot.d.ts +0 -10
- package/dist/types/lib/hooks/selection/use-active-selections.d.ts +0 -15
- package/dist/types/lib/hooks/selection/use-click-to-filter-mapping-draft.d.ts +0 -20
- package/dist/types/lib/hooks/selection/use-selection-click.d.ts +0 -34
- package/dist/types/lib/hooks/selection/use-selection-gestures.d.ts +0 -38
- package/dist/types/lib/hooks/selection/use-table-row-selection.d.ts +0 -46
- package/dist/types/lib/hooks/semaphor-ready-indicator.d.ts +0 -17
- package/dist/types/lib/hooks/summary/create-summary-action-handler.d.ts +0 -15
- package/dist/types/lib/hooks/use-assign-filter.d.ts +0 -5
- package/dist/types/lib/hooks/use-attribute-values.d.ts +0 -20
- package/dist/types/lib/hooks/use-auth-token.d.ts +0 -1
- package/dist/types/lib/hooks/use-authorization-scope.d.ts +0 -2
- package/dist/types/lib/hooks/use-calendar-preferences.d.ts +0 -16
- package/dist/types/lib/hooks/use-card-filter-values.d.ts +0 -19
- package/dist/types/lib/hooks/use-card-numeric-presentation.d.ts +0 -11
- package/dist/types/lib/hooks/use-card-render-context.d.ts +0 -14
- package/dist/types/lib/hooks/use-chart-numeric-presentation.d.ts +0 -3
- package/dist/types/lib/hooks/use-column-sizing.d.ts +0 -27
- package/dist/types/lib/hooks/use-connection-type.d.ts +0 -0
- package/dist/types/lib/hooks/use-connections.d.ts +0 -27
- package/dist/types/lib/hooks/use-control-values-query.d.ts +0 -48
- package/dist/types/lib/hooks/use-copy-paste-frame.d.ts +0 -2
- package/dist/types/lib/hooks/use-custom-visuals-query.d.ts +0 -30
- package/dist/types/lib/hooks/use-dashboard-card-query.d.ts +0 -4
- package/dist/types/lib/hooks/use-dashboard-creation.d.ts +0 -17
- package/dist/types/lib/hooks/use-dashboard-filter-mapping-candidates.d.ts +0 -40
- package/dist/types/lib/hooks/use-dashboard-filter-option-fields.d.ts +0 -15
- package/dist/types/lib/hooks/use-dashboard-frame-query.d.ts +0 -51
- package/dist/types/lib/hooks/use-dashboard-frame.d.ts +0 -0
- package/dist/types/lib/hooks/use-dashboard-interaction-mode.d.ts +0 -1
- package/dist/types/lib/hooks/use-dashboard-kpi-actions.d.ts +0 -11
- package/dist/types/lib/hooks/use-dashboard-preferences.d.ts +0 -5
- package/dist/types/lib/hooks/use-date-range-for-filter.d.ts +0 -7
- package/dist/types/lib/hooks/use-default-dashboard-mutation.d.ts +0 -9
- package/dist/types/lib/hooks/use-default-sheet-preference.d.ts +0 -9
- package/dist/types/lib/hooks/use-display-preferences.d.ts +0 -4
- package/dist/types/lib/hooks/use-document-section-editor.d.ts +0 -3
- package/dist/types/lib/hooks/use-document-section-session.d.ts +0 -36
- package/dist/types/lib/hooks/use-draggable-button.d.ts +0 -20
- package/dist/types/lib/hooks/use-draggable-corner.d.ts +0 -22
- package/dist/types/lib/hooks/use-dynamic-icon.d.ts +0 -1
- package/dist/types/lib/hooks/use-edit-visual.d.ts +0 -6
- package/dist/types/lib/hooks/use-editor-preview.d.ts +0 -17
- package/dist/types/lib/hooks/use-editor-setup.d.ts +0 -45
- package/dist/types/lib/hooks/use-feedback.d.ts +0 -12
- package/dist/types/lib/hooks/use-filter-aside-setup.d.ts +0 -13
- package/dist/types/lib/hooks/use-filter-option-labels.d.ts +0 -12
- package/dist/types/lib/hooks/use-filter-query.d.ts +0 -79
- package/dist/types/lib/hooks/use-filter-search.d.ts +0 -49
- package/dist/types/lib/hooks/use-frame-semantic-execution-payload.d.ts +0 -15
- package/dist/types/lib/hooks/use-has-dashboard-id.d.ts +0 -6
- package/dist/types/lib/hooks/use-insight-card-info.d.ts +0 -30
- package/dist/types/lib/hooks/use-interactions-popover.d.ts +0 -7
- package/dist/types/lib/hooks/use-is-dashboard-ready.d.ts +0 -14
- package/dist/types/lib/hooks/use-is-editing-card.d.ts +0 -7
- package/dist/types/lib/hooks/use-joinability-map.d.ts +0 -24
- package/dist/types/lib/hooks/use-kpi.d.ts +0 -6
- package/dist/types/lib/hooks/use-metric-keys-visual.d.ts +0 -6
- package/dist/types/lib/hooks/use-plugin-query.d.ts +0 -6
- package/dist/types/lib/hooks/use-previous.d.ts +0 -1
- package/dist/types/lib/hooks/use-query-feedback.d.ts +0 -45
- package/dist/types/lib/hooks/use-query-key.d.ts +0 -8
- package/dist/types/lib/hooks/use-relative-date-summarizer.d.ts +0 -7
- package/dist/types/lib/hooks/use-resolved-card-config.d.ts +0 -6
- package/dist/types/lib/hooks/use-role-aware-display-preferences.d.ts +0 -29
- package/dist/types/lib/hooks/use-selected-column.d.ts +0 -29
- package/dist/types/lib/hooks/use-semaphor-context.d.ts +0 -4
- package/dist/types/lib/hooks/use-split-view-preference.d.ts +0 -1
- package/dist/types/lib/hooks/use-theme.d.ts +0 -1
- package/dist/types/lib/hooks/use-topojson.d.ts +0 -7
- package/dist/types/lib/hooks/use-user-preferences.d.ts +0 -24
- package/dist/types/lib/hooks/use-visual-editing-status.d.ts +0 -6
- package/dist/types/lib/hooks/use-visual-save-as.d.ts +0 -9
- package/dist/types/lib/hooks/visuals/use-pivot-table-config.d.ts +0 -6
- package/dist/types/lib/interactions/click-filter-display.d.ts +0 -13
- package/dist/types/lib/interactions/click-outcome.d.ts +0 -25
- package/dist/types/lib/interactions/get-click-context-from-pivot-table.d.ts +0 -12
- package/dist/types/lib/interactions/get-click-context-from-table.d.ts +0 -42
- package/dist/types/lib/interactions/interaction-utils.d.ts +0 -32
- package/dist/types/lib/interactions/interaction-validation-utils.d.ts +0 -9
- package/dist/types/lib/interactions/interpolate-url-parameters.d.ts +0 -73
- package/dist/types/lib/internal-print-report-context.d.ts +0 -5
- package/dist/types/lib/matrix-table/build-matrix-drill-to-detail.d.ts +0 -15
- package/dist/types/lib/matrix-table/matrix-application-adapter.d.ts +0 -65
- package/dist/types/lib/matrix-table/matrix-card-draft.d.ts +0 -352
- package/dist/types/lib/matrix-table/matrix-card-fields.d.ts +0 -14
- package/dist/types/lib/matrix-table/matrix-card-interactions.d.ts +0 -16
- package/dist/types/lib/matrix-table/matrix-conditional-formatting.d.ts +0 -36
- package/dist/types/lib/matrix-table/matrix-dataset-history.d.ts +0 -47
- package/dist/types/lib/matrix-table/matrix-editor.d.ts +0 -40
- package/dist/types/lib/matrix-table/matrix-execution-context.d.ts +0 -20
- package/dist/types/lib/matrix-table/matrix-execution-provider.d.ts +0 -7
- package/dist/types/lib/matrix-table/matrix-failure-copy.d.ts +0 -16
- package/dist/types/lib/matrix-table/matrix-field-metadata.d.ts +0 -3
- package/dist/types/lib/matrix-table/matrix-label-boundary.d.ts +0 -6
- package/dist/types/lib/matrix-table/matrix-layout-read.d.ts +0 -68
- package/dist/types/lib/matrix-table/matrix-layout.d.ts +0 -18
- package/dist/types/lib/matrix-table/matrix-measure-presentation.d.ts +0 -8
- package/dist/types/lib/matrix-table/matrix-operation-queue.d.ts +0 -8
- package/dist/types/lib/matrix-table/matrix-query-transport.d.ts +0 -6
- package/dist/types/lib/matrix-table/matrix-row-labels.d.ts +0 -13
- package/dist/types/lib/matrix-table/submit-matrix-delivery.d.ts +0 -19
- package/dist/types/lib/matrix-table/use-matrix-card-catalog.d.ts +0 -20
- package/dist/types/lib/matrix-table/use-matrix-cell-focus.d.ts +0 -55
- package/dist/types/lib/matrix-table/use-matrix-delivery-capture.d.ts +0 -6
- package/dist/types/lib/matrix-table/use-matrix-editor-catalog.d.ts +0 -5
- package/dist/types/lib/matrix-table/use-matrix.d.ts +0 -74
- package/dist/types/lib/mock-data.d.ts +0 -0
- package/dist/types/lib/pdf-execution-snapshot.d.ts +0 -12
- package/dist/types/lib/pdf-fast-path/aggregate-metric-semantics.d.ts +0 -1
- package/dist/types/lib/pdf-fast-path/builders.d.ts +0 -46
- package/dist/types/lib/pdf-fast-path/candidate-eligibility.d.ts +0 -17
- package/dist/types/lib/pdf-fast-path/extract-table-structure.d.ts +0 -5
- package/dist/types/lib/pdf-fast-path/index.d.ts +0 -27
- package/dist/types/lib/pdf-fast-path/pivot-fast-path-utils.d.ts +0 -12
- package/dist/types/lib/pdf-fast-path/prepare-server-table-pdf-export.d.ts +0 -37
- package/dist/types/lib/print/print-holds.d.ts +0 -15
- package/dist/types/lib/print-state/capture-expanded-state.d.ts +0 -38
- package/dist/types/lib/python/default-code.d.ts +0 -1
- package/dist/types/lib/query-context/build-card-control-context.d.ts +0 -16
- package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +0 -68
- package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +0 -63
- package/dist/types/lib/query-context/build-dashboard-frame-base-query-contexts.d.ts +0 -60
- package/dist/types/lib/query-context/build-global-date-comparison-context.d.ts +0 -8
- package/dist/types/lib/query-context/build-query-relevant-card-config.d.ts +0 -15
- package/dist/types/lib/query-context/card-execution.d.ts +0 -30
- package/dist/types/lib/query-context/control-contract-serialization.d.ts +0 -11
- package/dist/types/lib/query-context/dashboard-card-query-key.d.ts +0 -49
- package/dist/types/lib/query-context/dashboard-query-result-context.d.ts +0 -17
- package/dist/types/lib/query-context/document-section-card-query.d.ts +0 -37
- package/dist/types/lib/query-context/filter-group-utils.d.ts +0 -3
- package/dist/types/lib/query-context/normalize-dashboard-card-execution.d.ts +0 -7
- package/dist/types/lib/query-context/query-auth-scope.d.ts +0 -5
- package/dist/types/lib/query-context/resolve-render-card-config.d.ts +0 -16
- package/dist/types/lib/query-context/temporal-context-preview.d.ts +0 -14
- package/dist/types/lib/query-context/use-semantic-execution-payload-for-cards.d.ts +0 -24
- package/dist/types/lib/resize-observer-utils.d.ts +0 -10
- package/dist/types/lib/selection/click-to-filter-authoring-support.d.ts +0 -9
- package/dist/types/lib/selection/selection-from-click-context.d.ts +0 -41
- package/dist/types/lib/selection/selection-labels.d.ts +0 -3
- package/dist/types/lib/selection/selection-notices.d.ts +0 -9
- package/dist/types/lib/selection/selection-reducer.d.ts +0 -46
- package/dist/types/lib/stores/ai-interaction-store.d.ts +0 -97
- package/dist/types/lib/stores/assistant-layout-store.d.ts +0 -17
- package/dist/types/lib/stores/chartjs-store.d.ts +0 -36
- package/dist/types/lib/stores/explorer-empty-states.d.ts +0 -8
- package/dist/types/lib/stores/index.d.ts +0 -8
- package/dist/types/lib/stores/mount-store-devtool.d.ts +0 -2
- package/dist/types/lib/stores/utils.d.ts +0 -40
- package/dist/types/lib/table-formatting/table-column-visibility.d.ts +0 -5
- package/dist/types/lib/table-formatting/table-conditional-formatting-columns.d.ts +0 -14
- package/dist/types/lib/table-formatting/table-formatting-schemas.d.ts +0 -1101
- package/dist/types/lib/table-formatting/table-formatting-utils.d.ts +0 -30
- package/dist/types/lib/table-formatting/table-presentation-fields.d.ts +0 -22
- package/dist/types/lib/table-formatting/table-presentation-style.d.ts +0 -45
- package/dist/types/lib/table-formatting/table-result-bindings.d.ts +0 -12
- package/dist/types/lib/temporal-filter/temporal-filter-utils.d.ts +0 -59
- package/dist/types/lib/text-variables/temporal-input-text.d.ts +0 -28
- package/dist/types/lib/text-variables/text-variable-types.d.ts +0 -55
- package/dist/types/lib/types/calculated-field-domain-payloads.d.ts +0 -36
- package/dist/types/lib/types/calculated-field-editor-types.d.ts +0 -64
- package/dist/types/lib/types/feedback-types.d.ts +0 -60
- package/dist/types/lib/types/semantic-types.d.ts +0 -120
- package/dist/types/lib/ui/tenancy-ui.d.ts +0 -25
- package/dist/types/lib/utils/aggregate-expression-utils.d.ts +0 -2
- package/dist/types/lib/utils/app-url-utils.d.ts +0 -7
- package/dist/types/lib/utils/assistant-visibility.d.ts +0 -9
- package/dist/types/lib/utils/async-export-visible-columns.d.ts +0 -12
- package/dist/types/lib/utils/authored-card-fields.d.ts +0 -17
- package/dist/types/lib/utils/briefings-visibility.d.ts +0 -9
- package/dist/types/lib/utils/build-card-export-request.d.ts +0 -30
- package/dist/types/lib/utils/build-saved-editor-card.d.ts +0 -15
- package/dist/types/lib/utils/calculate-card-filter-values.d.ts +0 -23
- package/dist/types/lib/utils/calculate-context-aware-filters.d.ts +0 -46
- package/dist/types/lib/utils/calculated-date-dimension-defaults.d.ts +0 -9
- package/dist/types/lib/utils/calculated-dimension-utils.d.ts +0 -2
- package/dist/types/lib/utils/calculated-field-identity-utils.d.ts +0 -20
- package/dist/types/lib/utils/calculated-field-normalization.d.ts +0 -2
- package/dist/types/lib/utils/calculated-field-operations.d.ts +0 -40
- package/dist/types/lib/utils/calculated-field-permissions.d.ts +0 -12
- package/dist/types/lib/utils/calculated-field-row-templates.d.ts +0 -15
- package/dist/types/lib/utils/calculated-field-scope-utils.d.ts +0 -20
- package/dist/types/lib/utils/calculated-field-token-utils.d.ts +0 -34
- package/dist/types/lib/utils/calculated-field-transition-utils.d.ts +0 -113
- package/dist/types/lib/utils/calculated-field-utils.d.ts +0 -37
- package/dist/types/lib/utils/card-calculated-field-utils.d.ts +0 -12
- package/dist/types/lib/utils/card-config-utils.d.ts +0 -24
- package/dist/types/lib/utils/card-loading-state.d.ts +0 -18
- package/dist/types/lib/utils/card-utils.d.ts +0 -70
- package/dist/types/lib/utils/chart-icon-utils.d.ts +0 -26
- package/dist/types/lib/utils/chart-type-field-validation.d.ts +0 -25
- package/dist/types/lib/utils/comparison-export-utils.d.ts +0 -31
- package/dist/types/lib/utils/comparison-output-keys.d.ts +0 -37
- package/dist/types/lib/utils/comparison-period-utils.d.ts +0 -6
- package/dist/types/lib/utils/comparison-validation-utils.d.ts +0 -16
- package/dist/types/lib/utils/comparison-window-caption.d.ts +0 -12
- package/dist/types/lib/utils/connection-capabilities.d.ts +0 -26
- package/dist/types/lib/utils/control-default-value-utils.d.ts +0 -46
- package/dist/types/lib/utils/control-placeholder-utils.d.ts +0 -14
- package/dist/types/lib/utils/control-reference-utils.d.ts +0 -18
- package/dist/types/lib/utils/copy-control-bindings.d.ts +0 -3
- package/dist/types/lib/utils/custom-visual-inputs.d.ts +0 -43
- package/dist/types/lib/utils/dashboard-controls-visibility.d.ts +0 -23
- package/dist/types/lib/utils/dashboard-date-filter-utils.d.ts +0 -16
- package/dist/types/lib/utils/dashboard-interaction-mode.d.ts +0 -12
- package/dist/types/lib/utils/data-source-semantic-domain.d.ts +0 -12
- package/dist/types/lib/utils/data-source-utils.d.ts +0 -22
- package/dist/types/lib/utils/date-filter-column-utils.d.ts +0 -2
- package/dist/types/lib/utils/date-format-utils.d.ts +0 -8
- package/dist/types/lib/utils/date-granularity-utils.d.ts +0 -5
- package/dist/types/lib/utils/date-hierarchy-utils.d.ts +0 -75
- package/dist/types/lib/utils/date-timezone-utils.d.ts +0 -79
- package/dist/types/lib/utils/drag-and-drop-utils.d.ts +0 -8
- package/dist/types/lib/utils/drill-context-utils.d.ts +0 -32
- package/dist/types/lib/utils/entity-consistency-utils.d.ts +0 -48
- package/dist/types/lib/utils/entity-icon-utils.d.ts +0 -17
- package/dist/types/lib/utils/explorer-derived-field.d.ts +0 -4
- package/dist/types/lib/utils/explorer-field-identity.d.ts +0 -15
- package/dist/types/lib/utils/export-result-source.d.ts +0 -20
- package/dist/types/lib/utils/export-utils.d.ts +0 -26
- package/dist/types/lib/utils/expression-field-classification.d.ts +0 -12
- package/dist/types/lib/utils/fetch-export-data.d.ts +0 -14
- package/dist/types/lib/utils/field-availability-context.d.ts +0 -25
- package/dist/types/lib/utils/field-icon-utils.d.ts +0 -10
- package/dist/types/lib/utils/field-state-calculator.d.ts +0 -159
- package/dist/types/lib/utils/filter-formatter.d.ts +0 -24
- package/dist/types/lib/utils/filter-metadata-utils.d.ts +0 -28
- package/dist/types/lib/utils/filter-name-utils.d.ts +0 -27
- package/dist/types/lib/utils/filter-scoping-utils.d.ts +0 -64
- package/dist/types/lib/utils/filter-search-sql.d.ts +0 -17
- package/dist/types/lib/utils/format-config-extractor.d.ts +0 -21
- package/dist/types/lib/utils/frame-utils.d.ts +0 -27
- package/dist/types/lib/utils/inline-expression-utils.d.ts +0 -11
- package/dist/types/lib/utils/inline-filter-utils.d.ts +0 -16
- package/dist/types/lib/utils/interaction-display-utils.d.ts +0 -30
- package/dist/types/lib/utils/interaction-icons.d.ts +0 -10
- package/dist/types/lib/utils/is-safari-browser.d.ts +0 -6
- package/dist/types/lib/utils/join-plan-entity-matching.d.ts +0 -26
- package/dist/types/lib/utils/kpi-comparison-utils.d.ts +0 -12
- package/dist/types/lib/utils/kpi-field-cleanup-utils.d.ts +0 -19
- package/dist/types/lib/utils/kpi-format-migration.d.ts +0 -2
- package/dist/types/lib/utils/metric-comparison-config.d.ts +0 -9
- package/dist/types/lib/utils/physical-source-identity.d.ts +0 -12
- package/dist/types/lib/utils/qualified-entity-name.d.ts +0 -2
- package/dist/types/lib/utils/relative-date-description.d.ts +0 -38
- package/dist/types/lib/utils/resolve-selected-sheet-id.d.ts +0 -11
- package/dist/types/lib/utils/role-display-mappings.d.ts +0 -44
- package/dist/types/lib/utils/semantic-metric-format-defaults.d.ts +0 -3
- package/dist/types/lib/utils/slot-validation.d.ts +0 -12
- package/dist/types/lib/utils/stable-serialize.d.ts +0 -1
- package/dist/types/lib/utils/summary-eligibility.d.ts +0 -7
- package/dist/types/lib/utils/summary-filter-utils.d.ts +0 -2
- package/dist/types/lib/utils/table-comparison-utils.d.ts +0 -9
- package/dist/types/lib/utils/text-card-runtime-utils.d.ts +0 -6
- package/dist/types/lib/utils/url-parameter-utils.d.ts +0 -60
- package/dist/types/lib/utils/window-transform-utils.d.ts +0 -41
- package/dist/types/lib/visuals/frame-object.d.ts +0 -4
- package/dist/types/shared/analytics-protocol/qualified-identity.d.ts +0 -3
- package/dist/types/shared/dashboard-authoring/filter-defaults.d.ts +0 -2
- package/dist/types/shared/filter-native-data-type.d.ts +0 -59
- package/dist/types/shared/format-utils/formatters/exact-number.d.ts +0 -1
- package/dist/types/shared/format-utils/json-record.d.ts +0 -6
|
@@ -0,0 +1,2325 @@
|
|
|
1
|
+
import { jsx as t, jsxs as i, Fragment as B } from "react/jsx-runtime";
|
|
2
|
+
import { u as D, B as F, aO as qr, aP as zr, aQ as at, c as ge, a6 as C, aR as xe, aS as dt, aT as Jt, L as Re, m as Kr, s as Qr, t as Wr, v as Yr, w as Jr, x as Xr, aU as Zr, aV as Mt, aW as ea, P as ta, a as ra, b as aa, a4 as na, a2 as Lt, n as Ot, o as Pt, p as _t, q as Rt, I as oa, D as sa, aX as ia } from "./switch-BR3Xgbqr.js";
|
|
3
|
+
import { br as da, bs as ca, bt as ct, bu as la, bv as ua, bw as ma, bx as ha, by as pa, bz as fa, aD as Y, aR as ve, bA as ye, bB as ba, aK as Xt, aL as Zt, aN as nt, aO as ot, bC as er, be as lt, bn as re, bD as ga, bE as xa, bF as tr, bG as va, bH as rr, aM as ya, bI as wa, bJ as $, bK as Na, bL as Ut, bM as Sa, bN as ka, bO as Da, bP as Ca, an as Ea, ay as Ia, bQ as Aa, bR as Ma, bS as La, l as Oa, u as Oe, r as Pa, m as Ze, bT as _a, bU as Ra, bV as Ua, bW as Ta, K as $a, bX as Fa, bY as Ba, I as Tt, bZ as Ga, aA as Va, b_ as ja, b$ as Ha, c0 as qa, c1 as $t, c2 as Ft, c3 as Bt, c4 as za, c5 as Ka, c6 as Qa, c7 as Wa, c8 as Pe, c9 as Ya, ca as Ja, cb as et, cc as Gt, q as Xa, cd as Za, ce as en, cf as tn, cg as rn, ch as an, ci as nn, cj as on, ck as sn, cl as Vt } from "./semaphor-ready-indicator-z4SNdxiC.js";
|
|
4
|
+
import { c as ae, X as ar, C as dn } from "./x-CXDkqdur.js";
|
|
5
|
+
import * as A from "react";
|
|
6
|
+
import nr, { useMemo as H, useState as N, useEffect as Ue, useRef as jt, useLayoutEffect as cn } from "react";
|
|
7
|
+
import { d as ln, c as un, u as mn, A as hn, a as pn, g as fn, V as bn, N as gn, h as xn, U as vn } from "./dashboard-briefing-launcher-B9Fq2Rf3.js";
|
|
8
|
+
import "./card-config-utils-BlIiFn0O.js";
|
|
9
|
+
import { createPortal as yn } from "react-dom";
|
|
10
|
+
import "./validators-DMSH81OM.js";
|
|
11
|
+
import "./matrix-operation-contract-BKupLHXL.js";
|
|
12
|
+
import "zod";
|
|
13
|
+
import "../value-format-preferences/index.js";
|
|
14
|
+
import { S as wn, C as Nn } from "./selection-reducer-CiDEtmAq.js";
|
|
15
|
+
import { k as or } from "./matrix-formatter-DJCk8Znf.js";
|
|
16
|
+
import { I as st } from "./calculated-field-identity-Cz1ZU_UL.js";
|
|
17
|
+
import { R as Sn } from "./report-preferences-dialog-CWdTlWsr.js";
|
|
18
|
+
import { r as kn } from "./pivot-result-lifecycle-DQz_gjGu.js";
|
|
19
|
+
import { u as Dn } from "./use-debounced-dirty-check-BwAbnX_5.js";
|
|
20
|
+
import { s as Cn } from "./normalize-dashboard-for-dirty-check-Bk3VYv_q.js";
|
|
21
|
+
import { k as Te, h as Ht } from "./bookmark-state-B-I9BDD0.js";
|
|
22
|
+
import { S as En } from "./save-DgMfP0j8.js";
|
|
23
|
+
import { P as In } from "./palette-Cp1hqZtm.js";
|
|
24
|
+
import { B as An } from "./braces-8TRlDwDw.js";
|
|
25
|
+
/**
|
|
26
|
+
* @license lucide-react v0.453.0 - ISC
|
|
27
|
+
*
|
|
28
|
+
* This source code is licensed under the ISC license.
|
|
29
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
30
|
+
*/
|
|
31
|
+
const Mn = ae("Monitor", [
|
|
32
|
+
["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
|
|
33
|
+
["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
|
|
34
|
+
["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
|
|
35
|
+
]);
|
|
36
|
+
/**
|
|
37
|
+
* @license lucide-react v0.453.0 - ISC
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the ISC license.
|
|
40
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/
|
|
42
|
+
const Ln = ae("Moon", [
|
|
43
|
+
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
|
|
44
|
+
]);
|
|
45
|
+
/**
|
|
46
|
+
* @license lucide-react v0.453.0 - ISC
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the ISC license.
|
|
49
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/
|
|
51
|
+
const On = ae("ShieldX", [
|
|
52
|
+
[
|
|
53
|
+
"path",
|
|
54
|
+
{
|
|
55
|
+
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
56
|
+
key: "oel41y"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
["path", { d: "m14.5 9.5-5 5", key: "17q4r4" }],
|
|
60
|
+
["path", { d: "m9.5 9.5 5 5", key: "18nt4w" }]
|
|
61
|
+
]);
|
|
62
|
+
/**
|
|
63
|
+
* @license lucide-react v0.453.0 - ISC
|
|
64
|
+
*
|
|
65
|
+
* This source code is licensed under the ISC license.
|
|
66
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
+
*/
|
|
68
|
+
const Pn = ae("Sun", [
|
|
69
|
+
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
70
|
+
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
71
|
+
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
72
|
+
["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
|
|
73
|
+
["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
|
|
74
|
+
["path", { d: "M2 12h2", key: "1t8f8n" }],
|
|
75
|
+
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
76
|
+
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
77
|
+
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
78
|
+
]);
|
|
79
|
+
/**
|
|
80
|
+
* @license lucide-react v0.453.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/
|
|
85
|
+
const _n = ae("UserPlus", [
|
|
86
|
+
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
87
|
+
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
|
|
88
|
+
["line", { x1: "19", x2: "19", y1: "8", y2: "14", key: "1bvyxn" }],
|
|
89
|
+
["line", { x1: "22", x2: "16", y1: "11", y2: "11", key: "1shjgl" }]
|
|
90
|
+
]);
|
|
91
|
+
/**
|
|
92
|
+
* @license lucide-react v0.453.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/
|
|
97
|
+
const sr = ae("UserRound", [
|
|
98
|
+
["circle", { cx: "12", cy: "8", r: "5", key: "1hypcn" }],
|
|
99
|
+
["path", { d: "M20 21a8 8 0 0 0-16 0", key: "rfgkzh" }]
|
|
100
|
+
]);
|
|
101
|
+
var it = { exports: {} }, tt = {};
|
|
102
|
+
/**
|
|
103
|
+
* @license React
|
|
104
|
+
* use-sync-external-store-shim.production.js
|
|
105
|
+
*
|
|
106
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the MIT license found in the
|
|
109
|
+
* LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/
|
|
111
|
+
var qt;
|
|
112
|
+
function Rn() {
|
|
113
|
+
if (qt) return tt;
|
|
114
|
+
qt = 1;
|
|
115
|
+
var e = nr;
|
|
116
|
+
function n(c, u) {
|
|
117
|
+
return c === u && (c !== 0 || 1 / c === 1 / u) || c !== c && u !== u;
|
|
118
|
+
}
|
|
119
|
+
var a = typeof Object.is == "function" ? Object.is : n, r = e.useState, o = e.useEffect, d = e.useLayoutEffect, m = e.useDebugValue;
|
|
120
|
+
function h(c, u) {
|
|
121
|
+
var s = u(), x = r({ inst: { value: s, getSnapshot: u } }), v = x[0].inst, w = x[1];
|
|
122
|
+
return d(
|
|
123
|
+
function() {
|
|
124
|
+
v.value = s, v.getSnapshot = u, b(v) && w({ inst: v });
|
|
125
|
+
},
|
|
126
|
+
[c, s, u]
|
|
127
|
+
), o(
|
|
128
|
+
function() {
|
|
129
|
+
return b(v) && w({ inst: v }), c(function() {
|
|
130
|
+
b(v) && w({ inst: v });
|
|
131
|
+
});
|
|
132
|
+
},
|
|
133
|
+
[c]
|
|
134
|
+
), m(s), s;
|
|
135
|
+
}
|
|
136
|
+
function b(c) {
|
|
137
|
+
var u = c.getSnapshot;
|
|
138
|
+
c = c.value;
|
|
139
|
+
try {
|
|
140
|
+
var s = u();
|
|
141
|
+
return !a(c, s);
|
|
142
|
+
} catch {
|
|
143
|
+
return !0;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function f(c, u) {
|
|
147
|
+
return u();
|
|
148
|
+
}
|
|
149
|
+
var g = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? f : h;
|
|
150
|
+
return tt.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : g, tt;
|
|
151
|
+
}
|
|
152
|
+
var rt = {};
|
|
153
|
+
/**
|
|
154
|
+
* @license React
|
|
155
|
+
* use-sync-external-store-shim.development.js
|
|
156
|
+
*
|
|
157
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the MIT license found in the
|
|
160
|
+
* LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/
|
|
162
|
+
var zt;
|
|
163
|
+
function Un() {
|
|
164
|
+
return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
165
|
+
function e(s, x) {
|
|
166
|
+
return s === x && (s !== 0 || 1 / s === 1 / x) || s !== s && x !== x;
|
|
167
|
+
}
|
|
168
|
+
function n(s, x) {
|
|
169
|
+
g || o.startTransition === void 0 || (g = !0, console.error(
|
|
170
|
+
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
171
|
+
));
|
|
172
|
+
var v = x();
|
|
173
|
+
if (!c) {
|
|
174
|
+
var w = x();
|
|
175
|
+
d(v, w) || (console.error(
|
|
176
|
+
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
177
|
+
), c = !0);
|
|
178
|
+
}
|
|
179
|
+
w = m({
|
|
180
|
+
inst: { value: v, getSnapshot: x }
|
|
181
|
+
});
|
|
182
|
+
var S = w[0].inst, p = w[1];
|
|
183
|
+
return b(
|
|
184
|
+
function() {
|
|
185
|
+
S.value = v, S.getSnapshot = x, a(S) && p({ inst: S });
|
|
186
|
+
},
|
|
187
|
+
[s, v, x]
|
|
188
|
+
), h(
|
|
189
|
+
function() {
|
|
190
|
+
return a(S) && p({ inst: S }), s(function() {
|
|
191
|
+
a(S) && p({ inst: S });
|
|
192
|
+
});
|
|
193
|
+
},
|
|
194
|
+
[s]
|
|
195
|
+
), f(v), v;
|
|
196
|
+
}
|
|
197
|
+
function a(s) {
|
|
198
|
+
var x = s.getSnapshot;
|
|
199
|
+
s = s.value;
|
|
200
|
+
try {
|
|
201
|
+
var v = x();
|
|
202
|
+
return !d(s, v);
|
|
203
|
+
} catch {
|
|
204
|
+
return !0;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
function r(s, x) {
|
|
208
|
+
return x();
|
|
209
|
+
}
|
|
210
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
211
|
+
var o = nr, d = typeof Object.is == "function" ? Object.is : e, m = o.useState, h = o.useEffect, b = o.useLayoutEffect, f = o.useDebugValue, g = !1, c = !1, u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : n;
|
|
212
|
+
rt.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : u, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
213
|
+
}()), rt;
|
|
214
|
+
}
|
|
215
|
+
process.env.NODE_ENV === "production" ? it.exports = Rn() : it.exports = Un();
|
|
216
|
+
var Tn = it.exports;
|
|
217
|
+
const _e = ["light", "dark", "system"];
|
|
218
|
+
function $n() {
|
|
219
|
+
const { theme: e, setTheme: n } = da(), a = D(
|
|
220
|
+
(m) => m.actions.setDashboardTheme
|
|
221
|
+
);
|
|
222
|
+
function r() {
|
|
223
|
+
const m = _e.includes(e) ? e : "system", h = _e[(_e.indexOf(m) + 1) % _e.length];
|
|
224
|
+
n(h), a(h);
|
|
225
|
+
}
|
|
226
|
+
const o = e === "light" ? Pn : e === "dark" ? Ln : Mn, d = e === "light" ? "Theme: light (click for dark)" : e === "dark" ? "Theme: dark (click for system)" : "Theme: system (click for light)";
|
|
227
|
+
return /* @__PURE__ */ t(
|
|
228
|
+
F,
|
|
229
|
+
{
|
|
230
|
+
type: "button",
|
|
231
|
+
variant: "ghost",
|
|
232
|
+
size: "xs",
|
|
233
|
+
className: "h-7 w-7 p-0 text-muted-foreground hover:text-foreground",
|
|
234
|
+
onClick: r,
|
|
235
|
+
"aria-label": d,
|
|
236
|
+
title: d,
|
|
237
|
+
children: /* @__PURE__ */ t(o, { className: "h-3.5 w-3.5", strokeWidth: 1.5 })
|
|
238
|
+
}
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
function Fn() {
|
|
242
|
+
const { displayPreferences: e, shouldShowElement: n } = ca(), { currentUser: a, userContext: r } = ct(), o = H(
|
|
243
|
+
() => la(a),
|
|
244
|
+
[a]
|
|
245
|
+
), d = H(() => (h) => o && o[h] !== void 0 && o[h] === !1 ? !1 : n(h), [o, n, e]), m = H(
|
|
246
|
+
() => {
|
|
247
|
+
var h, b, f, g, c;
|
|
248
|
+
return {
|
|
249
|
+
canEdit: ((h = r == null ? void 0 : r.permissions) == null ? void 0 : h.canEdit) ?? fa(a),
|
|
250
|
+
canUseFilters: ((b = r == null ? void 0 : r.permissions) == null ? void 0 : b.canEdit) ?? pa(a),
|
|
251
|
+
canManageDashboards: ((f = r == null ? void 0 : r.permissions) == null ? void 0 : f.canCreateDashboard) ?? ha(a),
|
|
252
|
+
canCreateDashboards: ((g = r == null ? void 0 : r.permissions) == null ? void 0 : g.canCreateDashboard) ?? ma(a),
|
|
253
|
+
canAccessVisuals: ((c = r == null ? void 0 : r.permissions) == null ? void 0 : c.canEdit) ?? ua(a)
|
|
254
|
+
};
|
|
255
|
+
},
|
|
256
|
+
[a, r]
|
|
257
|
+
);
|
|
258
|
+
return {
|
|
259
|
+
displayPreferences: e,
|
|
260
|
+
shouldShowElement: d,
|
|
261
|
+
permissions: m,
|
|
262
|
+
currentUser: a
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
function Bn(e, n = []) {
|
|
266
|
+
let a = [];
|
|
267
|
+
function r(d, m) {
|
|
268
|
+
const h = A.createContext(m);
|
|
269
|
+
h.displayName = d + "Context";
|
|
270
|
+
const b = a.length;
|
|
271
|
+
a = [...a, m];
|
|
272
|
+
const f = (c) => {
|
|
273
|
+
var S;
|
|
274
|
+
const { scope: u, children: s, ...x } = c, v = ((S = u == null ? void 0 : u[e]) == null ? void 0 : S[b]) || h, w = A.useMemo(() => x, Object.values(x));
|
|
275
|
+
return /* @__PURE__ */ t(v.Provider, { value: w, children: s });
|
|
276
|
+
};
|
|
277
|
+
f.displayName = d + "Provider";
|
|
278
|
+
function g(c, u) {
|
|
279
|
+
var v;
|
|
280
|
+
const s = ((v = u == null ? void 0 : u[e]) == null ? void 0 : v[b]) || h, x = A.useContext(s);
|
|
281
|
+
if (x) return x;
|
|
282
|
+
if (m !== void 0) return m;
|
|
283
|
+
throw new Error(`\`${c}\` must be used within \`${d}\``);
|
|
284
|
+
}
|
|
285
|
+
return [f, g];
|
|
286
|
+
}
|
|
287
|
+
const o = () => {
|
|
288
|
+
const d = a.map((m) => A.createContext(m));
|
|
289
|
+
return function(h) {
|
|
290
|
+
const b = (h == null ? void 0 : h[e]) || d;
|
|
291
|
+
return A.useMemo(
|
|
292
|
+
() => ({ [`__scope${e}`]: { ...h, [e]: b } }),
|
|
293
|
+
[h, b]
|
|
294
|
+
);
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
return o.scopeName = e, [r, Gn(o, ...n)];
|
|
298
|
+
}
|
|
299
|
+
function Gn(...e) {
|
|
300
|
+
const n = e[0];
|
|
301
|
+
if (e.length === 1) return n;
|
|
302
|
+
const a = () => {
|
|
303
|
+
const r = e.map((o) => ({
|
|
304
|
+
useScope: o(),
|
|
305
|
+
scopeName: o.scopeName
|
|
306
|
+
}));
|
|
307
|
+
return function(d) {
|
|
308
|
+
const m = r.reduce((h, { useScope: b, scopeName: f }) => {
|
|
309
|
+
const c = b(d)[`__scope${f}`];
|
|
310
|
+
return { ...h, ...c };
|
|
311
|
+
}, {});
|
|
312
|
+
return A.useMemo(() => ({ [`__scope${n.scopeName}`]: m }), [m]);
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
return a.scopeName = n.scopeName, a;
|
|
316
|
+
}
|
|
317
|
+
var Vn = [
|
|
318
|
+
"a",
|
|
319
|
+
"button",
|
|
320
|
+
"div",
|
|
321
|
+
"form",
|
|
322
|
+
"h2",
|
|
323
|
+
"h3",
|
|
324
|
+
"img",
|
|
325
|
+
"input",
|
|
326
|
+
"label",
|
|
327
|
+
"li",
|
|
328
|
+
"nav",
|
|
329
|
+
"ol",
|
|
330
|
+
"p",
|
|
331
|
+
"select",
|
|
332
|
+
"span",
|
|
333
|
+
"svg",
|
|
334
|
+
"ul"
|
|
335
|
+
], ut = Vn.reduce((e, n) => {
|
|
336
|
+
const a = qr(`Primitive.${n}`), r = A.forwardRef((o, d) => {
|
|
337
|
+
const { asChild: m, ...h } = o, b = m ? a : n;
|
|
338
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ t(b, { ...h, ref: d });
|
|
339
|
+
});
|
|
340
|
+
return r.displayName = `Primitive.${n}`, { ...e, [n]: r };
|
|
341
|
+
}, {});
|
|
342
|
+
function jn() {
|
|
343
|
+
return Tn.useSyncExternalStore(
|
|
344
|
+
Hn,
|
|
345
|
+
() => !0,
|
|
346
|
+
() => !1
|
|
347
|
+
);
|
|
348
|
+
}
|
|
349
|
+
function Hn() {
|
|
350
|
+
return () => {
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
var mt = "Avatar", [qn] = Bn(mt), [zn, ir] = qn(mt), dr = A.forwardRef(
|
|
354
|
+
(e, n) => {
|
|
355
|
+
const { __scopeAvatar: a, ...r } = e, [o, d] = A.useState("idle");
|
|
356
|
+
return /* @__PURE__ */ t(
|
|
357
|
+
zn,
|
|
358
|
+
{
|
|
359
|
+
scope: a,
|
|
360
|
+
imageLoadingStatus: o,
|
|
361
|
+
onImageLoadingStatusChange: d,
|
|
362
|
+
children: /* @__PURE__ */ t(ut.span, { ...r, ref: n })
|
|
363
|
+
}
|
|
364
|
+
);
|
|
365
|
+
}
|
|
366
|
+
);
|
|
367
|
+
dr.displayName = mt;
|
|
368
|
+
var cr = "AvatarImage", lr = A.forwardRef(
|
|
369
|
+
(e, n) => {
|
|
370
|
+
const { __scopeAvatar: a, src: r, onLoadingStatusChange: o = () => {
|
|
371
|
+
}, ...d } = e, m = ir(cr, a), h = Kn(r, d), b = zr((f) => {
|
|
372
|
+
o(f), m.onImageLoadingStatusChange(f);
|
|
373
|
+
});
|
|
374
|
+
return at(() => {
|
|
375
|
+
h !== "idle" && b(h);
|
|
376
|
+
}, [h, b]), h === "loaded" ? /* @__PURE__ */ t(ut.img, { ...d, ref: n, src: r }) : null;
|
|
377
|
+
}
|
|
378
|
+
);
|
|
379
|
+
lr.displayName = cr;
|
|
380
|
+
var ur = "AvatarFallback", mr = A.forwardRef(
|
|
381
|
+
(e, n) => {
|
|
382
|
+
const { __scopeAvatar: a, delayMs: r, ...o } = e, d = ir(ur, a), [m, h] = A.useState(r === void 0);
|
|
383
|
+
return A.useEffect(() => {
|
|
384
|
+
if (r !== void 0) {
|
|
385
|
+
const b = window.setTimeout(() => h(!0), r);
|
|
386
|
+
return () => window.clearTimeout(b);
|
|
387
|
+
}
|
|
388
|
+
}, [r]), m && d.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ t(ut.span, { ...o, ref: n }) : null;
|
|
389
|
+
}
|
|
390
|
+
);
|
|
391
|
+
mr.displayName = ur;
|
|
392
|
+
function Kt(e, n) {
|
|
393
|
+
return e ? n ? (e.src !== n && (e.src = n), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
394
|
+
}
|
|
395
|
+
function Kn(e, { referrerPolicy: n, crossOrigin: a }) {
|
|
396
|
+
const r = jn(), o = A.useRef(null), d = r ? (o.current || (o.current = new window.Image()), o.current) : null, [m, h] = A.useState(
|
|
397
|
+
() => Kt(d, e)
|
|
398
|
+
);
|
|
399
|
+
return at(() => {
|
|
400
|
+
h(Kt(d, e));
|
|
401
|
+
}, [d, e]), at(() => {
|
|
402
|
+
const b = (c) => () => {
|
|
403
|
+
h(c);
|
|
404
|
+
};
|
|
405
|
+
if (!d) return;
|
|
406
|
+
const f = b("loaded"), g = b("error");
|
|
407
|
+
return d.addEventListener("load", f), d.addEventListener("error", g), n && (d.referrerPolicy = n), typeof a == "string" && (d.crossOrigin = a), () => {
|
|
408
|
+
d.removeEventListener("load", f), d.removeEventListener("error", g);
|
|
409
|
+
};
|
|
410
|
+
}, [d, a, n]), m;
|
|
411
|
+
}
|
|
412
|
+
var hr = dr, pr = lr, fr = mr;
|
|
413
|
+
const br = A.forwardRef(({ className: e, ...n }, a) => /* @__PURE__ */ t(
|
|
414
|
+
hr,
|
|
415
|
+
{
|
|
416
|
+
ref: a,
|
|
417
|
+
className: ge(
|
|
418
|
+
"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
|
|
419
|
+
e
|
|
420
|
+
),
|
|
421
|
+
...n
|
|
422
|
+
}
|
|
423
|
+
));
|
|
424
|
+
br.displayName = hr.displayName;
|
|
425
|
+
const Qn = A.forwardRef(({ className: e, ...n }, a) => /* @__PURE__ */ t(
|
|
426
|
+
pr,
|
|
427
|
+
{
|
|
428
|
+
ref: a,
|
|
429
|
+
className: ge("aspect-square h-full w-full", e),
|
|
430
|
+
...n
|
|
431
|
+
}
|
|
432
|
+
));
|
|
433
|
+
Qn.displayName = pr.displayName;
|
|
434
|
+
const gr = A.forwardRef(({ className: e, ...n }, a) => /* @__PURE__ */ t(
|
|
435
|
+
fr,
|
|
436
|
+
{
|
|
437
|
+
ref: a,
|
|
438
|
+
className: ge(
|
|
439
|
+
"flex h-full w-full items-center justify-center rounded-full bg-muted",
|
|
440
|
+
e
|
|
441
|
+
),
|
|
442
|
+
...n
|
|
443
|
+
}
|
|
444
|
+
));
|
|
445
|
+
gr.displayName = fr.displayName;
|
|
446
|
+
const Wn = async (e, n, a) => {
|
|
447
|
+
const r = `${e}/management/v1/groups`;
|
|
448
|
+
return await Jt(r, n, a);
|
|
449
|
+
}, Yn = async (e, n, a, r) => {
|
|
450
|
+
const o = `${e}/management/v1/groups/${a}`;
|
|
451
|
+
return dt(o, n, "PATCH", r);
|
|
452
|
+
}, Jn = async (e, n, a) => {
|
|
453
|
+
const r = `${e}/management/v1/groups/${a}`;
|
|
454
|
+
await dt(r, n, "DELETE");
|
|
455
|
+
}, Xn = async (e, n, a, r) => {
|
|
456
|
+
const o = `${e}/management/v1/groups/${a}/members`;
|
|
457
|
+
return await Jt(o, n, r);
|
|
458
|
+
}, Zn = async (e, n, a, r) => {
|
|
459
|
+
const o = `${e}/management/v1/groups/${a}/members`;
|
|
460
|
+
await dt(o, n, "DELETE", r);
|
|
461
|
+
};
|
|
462
|
+
function eo() {
|
|
463
|
+
const { authToken: e, tokenProps: n } = Y(), a = ve();
|
|
464
|
+
return ye({
|
|
465
|
+
mutationFn: (r) => Wn(n.apiServiceUrl, (e == null ? void 0 : e.accessToken) || "", r),
|
|
466
|
+
onSuccess: () => {
|
|
467
|
+
a.invalidateQueries({ queryKey: ["groups"] }), C.success("Group created successfully");
|
|
468
|
+
},
|
|
469
|
+
onError: (r) => {
|
|
470
|
+
console.error("Failed to create group:", r), C.error("Failed to create group", {
|
|
471
|
+
description: xe(r, "Failed to create group")
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
function to() {
|
|
477
|
+
const { authToken: e, tokenProps: n } = Y(), a = ve();
|
|
478
|
+
return ye({
|
|
479
|
+
mutationFn: ({
|
|
480
|
+
groupId: r,
|
|
481
|
+
data: o
|
|
482
|
+
}) => Yn(n.apiServiceUrl, (e == null ? void 0 : e.accessToken) || "", r, o),
|
|
483
|
+
onSuccess: (r, o) => {
|
|
484
|
+
a.invalidateQueries({ queryKey: ["group", o.groupId] }), a.invalidateQueries({ queryKey: ["groups"] }), C.success("Group updated successfully");
|
|
485
|
+
},
|
|
486
|
+
onError: (r) => {
|
|
487
|
+
console.error("Failed to update group:", r), C.error("Failed to update group", {
|
|
488
|
+
description: xe(r, "Failed to update group")
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
function ro() {
|
|
494
|
+
const { authToken: e, tokenProps: n } = Y(), a = ve();
|
|
495
|
+
return ye({
|
|
496
|
+
mutationFn: (r) => Jn(n.apiServiceUrl, (e == null ? void 0 : e.accessToken) || "", r),
|
|
497
|
+
onSuccess: (r, o) => {
|
|
498
|
+
a.invalidateQueries({ queryKey: ["groups"] }), a.removeQueries({ queryKey: ["group", o] }), C.success("Group deleted successfully");
|
|
499
|
+
},
|
|
500
|
+
onError: (r) => {
|
|
501
|
+
console.error("Failed to delete group:", r), C.error("Failed to delete group", {
|
|
502
|
+
description: xe(r, "Failed to delete group")
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
function ao() {
|
|
508
|
+
const { authToken: e, tokenProps: n } = Y(), a = ve();
|
|
509
|
+
return ye({
|
|
510
|
+
mutationFn: ({
|
|
511
|
+
groupId: r,
|
|
512
|
+
data: o
|
|
513
|
+
}) => Xn(n.apiServiceUrl, (e == null ? void 0 : e.accessToken) || "", r, o),
|
|
514
|
+
onSuccess: (r, o) => {
|
|
515
|
+
a.invalidateQueries({ queryKey: ["group", o.groupId] }), a.invalidateQueries({
|
|
516
|
+
queryKey: ["group-members", o.groupId]
|
|
517
|
+
}), a.invalidateQueries({ queryKey: ["groups"] }), C.success("Members added successfully");
|
|
518
|
+
},
|
|
519
|
+
onError: (r) => {
|
|
520
|
+
console.error("Failed to add group members:", r), C.error("Failed to add members", {
|
|
521
|
+
description: xe(r, "Failed to add members")
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
function no() {
|
|
527
|
+
const { authToken: e, tokenProps: n } = Y(), a = ve();
|
|
528
|
+
return ye({
|
|
529
|
+
mutationFn: ({
|
|
530
|
+
groupId: r,
|
|
531
|
+
data: o
|
|
532
|
+
}) => Zn(n.apiServiceUrl, (e == null ? void 0 : e.accessToken) || "", r, o),
|
|
533
|
+
onSuccess: (r, o) => {
|
|
534
|
+
a.invalidateQueries({ queryKey: ["group", o.groupId] }), a.invalidateQueries({
|
|
535
|
+
queryKey: ["group-members", o.groupId]
|
|
536
|
+
}), a.invalidateQueries({ queryKey: ["groups"] }), C.success("Members removed successfully");
|
|
537
|
+
},
|
|
538
|
+
onError: (r) => {
|
|
539
|
+
console.error("Failed to remove group members:", r), C.error("Failed to remove members", {
|
|
540
|
+
description: xe(r, "Failed to remove members")
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
const oo = [];
|
|
546
|
+
function so({
|
|
547
|
+
open: e,
|
|
548
|
+
onOpenChange: n
|
|
549
|
+
}) {
|
|
550
|
+
var p, M, L;
|
|
551
|
+
const { tokenProps: a } = Y(), { currentUser: r } = ct(), o = (r == null ? void 0 : r.type) === "tenant", d = a == null ? void 0 : a.tenantId, {
|
|
552
|
+
groups: m,
|
|
553
|
+
isLoading: h,
|
|
554
|
+
error: b,
|
|
555
|
+
refetch: f
|
|
556
|
+
} = ba({
|
|
557
|
+
type: o ? "TENANT_GROUP" : "all",
|
|
558
|
+
tenantId: o ? d : void 0,
|
|
559
|
+
includeMembers: !1
|
|
560
|
+
}), g = b ? xr(b, "Unable to load groups.") : null, [c, u] = N({ kind: "list" }), [s, x] = N(null), v = ro();
|
|
561
|
+
Ue(() => {
|
|
562
|
+
e || (u({ kind: "list" }), x(null));
|
|
563
|
+
}, [e]);
|
|
564
|
+
const w = c.kind === "members" && m.find((k) => k.id === c.groupId) || null, S = async () => {
|
|
565
|
+
if (s)
|
|
566
|
+
try {
|
|
567
|
+
await v.mutateAsync(s.id), x(null), u({ kind: "list" }), f();
|
|
568
|
+
} catch {
|
|
569
|
+
}
|
|
570
|
+
};
|
|
571
|
+
return /* @__PURE__ */ t(Xt, { open: e, onOpenChange: n, children: /* @__PURE__ */ i(Zt, { className: "flex max-h-[640px] w-[720px] max-w-[92vw] flex-col gap-0 overflow-hidden p-0", children: [
|
|
572
|
+
c.kind === "list" ? /* @__PURE__ */ i("div", { className: "shrink-0 border-b border-border px-5 pt-4 pb-3.5", children: [
|
|
573
|
+
/* @__PURE__ */ t(nt, { className: "text-[15px] font-semibold tracking-tight", children: "Group management" }),
|
|
574
|
+
/* @__PURE__ */ t(ot, { className: "mt-1 text-[12px] leading-[1.5] text-muted-foreground", children: "Organize people into groups for shared access." })
|
|
575
|
+
] }) : c.kind === "create" ? /* @__PURE__ */ i("div", { className: "flex h-10 shrink-0 items-center gap-1.5 border-b border-border px-5", children: [
|
|
576
|
+
/* @__PURE__ */ t(
|
|
577
|
+
"button",
|
|
578
|
+
{
|
|
579
|
+
type: "button",
|
|
580
|
+
onClick: () => u({ kind: "list" }),
|
|
581
|
+
"aria-label": "Back",
|
|
582
|
+
className: "-ml-1 flex h-6 w-6 items-center justify-center rounded-[3px] text-muted-foreground hover:bg-accent hover:text-foreground",
|
|
583
|
+
children: /* @__PURE__ */ t(er, { className: "h-3.5 w-3.5" })
|
|
584
|
+
}
|
|
585
|
+
),
|
|
586
|
+
/* @__PURE__ */ t(nt, { className: "truncate text-[13px] font-medium", children: "New group" }),
|
|
587
|
+
/* @__PURE__ */ t(ot, { className: "sr-only", children: "Create a new group to organize members." })
|
|
588
|
+
] }) : null,
|
|
589
|
+
c.kind === "list" && /* @__PURE__ */ t(
|
|
590
|
+
io,
|
|
591
|
+
{
|
|
592
|
+
groups: m,
|
|
593
|
+
isLoading: h,
|
|
594
|
+
errorMessage: g,
|
|
595
|
+
onRetry: () => f(),
|
|
596
|
+
currentUserId: r == null ? void 0 : r.id,
|
|
597
|
+
onOpenGroup: (k) => u({ kind: "members", groupId: k }),
|
|
598
|
+
onCreate: () => u({ kind: "create" }),
|
|
599
|
+
onDeleteRequest: (k) => x(k)
|
|
600
|
+
}
|
|
601
|
+
),
|
|
602
|
+
c.kind === "members" && w && /* @__PURE__ */ t(
|
|
603
|
+
uo,
|
|
604
|
+
{
|
|
605
|
+
group: w,
|
|
606
|
+
isTenantViewer: o,
|
|
607
|
+
canEdit: ((p = w.permissions) == null ? void 0 : p.canEdit) ?? w.createdBy === (r == null ? void 0 : r.id),
|
|
608
|
+
canDelete: ((M = w.permissions) == null ? void 0 : M.canDelete) ?? w.createdBy === (r == null ? void 0 : r.id),
|
|
609
|
+
canManageMembers: ((L = w.permissions) == null ? void 0 : L.canManageMembers) ?? w.createdBy === (r == null ? void 0 : r.id),
|
|
610
|
+
onBack: () => u({ kind: "list" }),
|
|
611
|
+
onMembersChanged: f,
|
|
612
|
+
onUpdated: f,
|
|
613
|
+
onRequestDelete: () => x(w)
|
|
614
|
+
},
|
|
615
|
+
w.id
|
|
616
|
+
),
|
|
617
|
+
c.kind === "create" && /* @__PURE__ */ t(
|
|
618
|
+
mo,
|
|
619
|
+
{
|
|
620
|
+
isTenantUser: o,
|
|
621
|
+
tenantId: d,
|
|
622
|
+
onCancel: () => u({ kind: "list" }),
|
|
623
|
+
onCreated: (k) => {
|
|
624
|
+
f(), u({ kind: "members", groupId: k });
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
),
|
|
628
|
+
s && /* @__PURE__ */ i("div", { className: "flex shrink-0 items-center justify-between gap-3 border-t border-border bg-muted/40 px-5 py-2.5", children: [
|
|
629
|
+
/* @__PURE__ */ i("div", { className: "min-w-0 text-[12px] text-foreground", children: [
|
|
630
|
+
"Delete ",
|
|
631
|
+
/* @__PURE__ */ t("span", { className: "font-medium", children: s.name }),
|
|
632
|
+
"?",
|
|
633
|
+
/* @__PURE__ */ t("span", { className: "ml-2 text-muted-foreground", children: "Members lose any access granted via this group." })
|
|
634
|
+
] }),
|
|
635
|
+
/* @__PURE__ */ i("div", { className: "flex shrink-0 items-center gap-1.5", children: [
|
|
636
|
+
/* @__PURE__ */ t(
|
|
637
|
+
"button",
|
|
638
|
+
{
|
|
639
|
+
type: "button",
|
|
640
|
+
onClick: () => x(null),
|
|
641
|
+
disabled: v.isPending,
|
|
642
|
+
className: "h-7 rounded-[5px] px-2.5 text-[12px] font-medium text-foreground/80 hover:bg-background",
|
|
643
|
+
children: "Cancel"
|
|
644
|
+
}
|
|
645
|
+
),
|
|
646
|
+
/* @__PURE__ */ i(
|
|
647
|
+
"button",
|
|
648
|
+
{
|
|
649
|
+
type: "button",
|
|
650
|
+
onClick: S,
|
|
651
|
+
disabled: v.isPending,
|
|
652
|
+
className: "inline-flex h-7 items-center gap-1.5 rounded-[5px] bg-rose-600 px-2.5 text-[12px] font-medium text-white hover:bg-rose-700 disabled:opacity-60",
|
|
653
|
+
children: [
|
|
654
|
+
v.isPending ? /* @__PURE__ */ t(Re, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ t(lt, { className: "h-3 w-3" }),
|
|
655
|
+
"Delete group"
|
|
656
|
+
]
|
|
657
|
+
}
|
|
658
|
+
)
|
|
659
|
+
] })
|
|
660
|
+
] })
|
|
661
|
+
] }) });
|
|
662
|
+
}
|
|
663
|
+
function io({
|
|
664
|
+
groups: e,
|
|
665
|
+
isLoading: n,
|
|
666
|
+
errorMessage: a,
|
|
667
|
+
onRetry: r,
|
|
668
|
+
currentUserId: o,
|
|
669
|
+
onOpenGroup: d,
|
|
670
|
+
onCreate: m,
|
|
671
|
+
onDeleteRequest: h
|
|
672
|
+
}) {
|
|
673
|
+
const [b, f] = N(""), g = H(
|
|
674
|
+
() => e.filter(
|
|
675
|
+
(c) => !b.trim() || c.name.toLowerCase().includes(b.toLowerCase()) || (c.description || "").toLowerCase().includes(b.toLowerCase())
|
|
676
|
+
),
|
|
677
|
+
[e, b]
|
|
678
|
+
);
|
|
679
|
+
return /* @__PURE__ */ i("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
680
|
+
/* @__PURE__ */ i("div", { className: "flex shrink-0 items-center gap-2 border-b border-border px-5 py-2.5", children: [
|
|
681
|
+
/* @__PURE__ */ i("div", { className: "flex flex-1 items-center gap-2 rounded-[5px] border border-border bg-background px-2 focus-within:border-foreground/40", children: [
|
|
682
|
+
/* @__PURE__ */ t(wn, { className: "h-3 w-3 text-muted-foreground" }),
|
|
683
|
+
/* @__PURE__ */ t(
|
|
684
|
+
"input",
|
|
685
|
+
{
|
|
686
|
+
value: b,
|
|
687
|
+
onChange: (c) => f(c.target.value),
|
|
688
|
+
placeholder: "Search groups…",
|
|
689
|
+
className: "h-7 flex-1 bg-transparent text-[12px] text-foreground placeholder:text-muted-foreground focus:outline-none"
|
|
690
|
+
}
|
|
691
|
+
),
|
|
692
|
+
b && /* @__PURE__ */ t(
|
|
693
|
+
"button",
|
|
694
|
+
{
|
|
695
|
+
type: "button",
|
|
696
|
+
onClick: () => f(""),
|
|
697
|
+
className: "flex h-4 w-4 items-center justify-center rounded-[3px] text-muted-foreground hover:bg-accent hover:text-foreground",
|
|
698
|
+
children: /* @__PURE__ */ t(ar, { className: "h-2.5 w-2.5" })
|
|
699
|
+
}
|
|
700
|
+
)
|
|
701
|
+
] }),
|
|
702
|
+
/* @__PURE__ */ i(
|
|
703
|
+
"button",
|
|
704
|
+
{
|
|
705
|
+
type: "button",
|
|
706
|
+
onClick: m,
|
|
707
|
+
className: "inline-flex h-7 items-center gap-1.5 rounded-[5px] bg-foreground px-2.5 text-[12px] font-medium text-background hover:opacity-90",
|
|
708
|
+
children: [
|
|
709
|
+
/* @__PURE__ */ t(re, { className: "h-3 w-3" }),
|
|
710
|
+
"New group"
|
|
711
|
+
]
|
|
712
|
+
}
|
|
713
|
+
)
|
|
714
|
+
] }),
|
|
715
|
+
/* @__PURE__ */ t("div", { className: "flex-1 overflow-y-auto", children: n ? /* @__PURE__ */ t("div", { className: "space-y-px p-3", children: [1, 2, 3].map((c) => /* @__PURE__ */ t(
|
|
716
|
+
"div",
|
|
717
|
+
{
|
|
718
|
+
className: "h-12 animate-pulse rounded-[4px] bg-muted/60"
|
|
719
|
+
},
|
|
720
|
+
c
|
|
721
|
+
)) }) : a ? /* @__PURE__ */ t(
|
|
722
|
+
vr,
|
|
723
|
+
{
|
|
724
|
+
title: "Can't load groups",
|
|
725
|
+
message: a,
|
|
726
|
+
onRetry: r
|
|
727
|
+
}
|
|
728
|
+
) : g.length === 0 && e.length === 0 ? /* @__PURE__ */ t(lo, { onCreate: m }) : g.length === 0 ? /* @__PURE__ */ i("div", { className: "flex h-full flex-col items-center justify-center gap-1 py-10 text-center", children: [
|
|
729
|
+
/* @__PURE__ */ i("div", { className: "text-[12px] text-foreground", children: [
|
|
730
|
+
'No groups match "',
|
|
731
|
+
b,
|
|
732
|
+
'"'
|
|
733
|
+
] }),
|
|
734
|
+
/* @__PURE__ */ t("div", { className: "text-[11px] text-muted-foreground", children: "Try a different search." })
|
|
735
|
+
] }) : g.map((c) => {
|
|
736
|
+
var u;
|
|
737
|
+
return /* @__PURE__ */ t(
|
|
738
|
+
co,
|
|
739
|
+
{
|
|
740
|
+
group: c,
|
|
741
|
+
canDelete: ((u = c.permissions) == null ? void 0 : u.canDelete) ?? c.createdBy === o,
|
|
742
|
+
onClick: () => d(c.id),
|
|
743
|
+
onDelete: () => h(c)
|
|
744
|
+
},
|
|
745
|
+
c.id
|
|
746
|
+
);
|
|
747
|
+
}) })
|
|
748
|
+
] });
|
|
749
|
+
}
|
|
750
|
+
function co({
|
|
751
|
+
group: e,
|
|
752
|
+
canDelete: n,
|
|
753
|
+
onClick: a,
|
|
754
|
+
onDelete: r
|
|
755
|
+
}) {
|
|
756
|
+
let o = "";
|
|
757
|
+
try {
|
|
758
|
+
o = or(new Date(e.createdAt), "MMM d, yyyy");
|
|
759
|
+
} catch {
|
|
760
|
+
o = "";
|
|
761
|
+
}
|
|
762
|
+
return /* @__PURE__ */ i(
|
|
763
|
+
"button",
|
|
764
|
+
{
|
|
765
|
+
type: "button",
|
|
766
|
+
onClick: a,
|
|
767
|
+
className: "group flex w-full items-center gap-3 border-b border-border/60 px-5 py-2.5 text-left hover:bg-accent/40",
|
|
768
|
+
children: [
|
|
769
|
+
/* @__PURE__ */ t("div", { className: "flex h-7 w-7 shrink-0 items-center justify-center rounded-[4px] border border-border bg-background text-muted-foreground", children: /* @__PURE__ */ t(va, { className: "h-3.5 w-3.5" }) }),
|
|
770
|
+
/* @__PURE__ */ i("div", { className: "min-w-0 flex-1", children: [
|
|
771
|
+
/* @__PURE__ */ t("div", { className: "truncate text-[13px] font-medium text-foreground", children: e.name }),
|
|
772
|
+
/* @__PURE__ */ i("div", { className: "mt-0.5 flex items-center gap-2 text-[11px] text-muted-foreground", children: [
|
|
773
|
+
/* @__PURE__ */ i("span", { className: "inline-flex items-center gap-1", children: [
|
|
774
|
+
/* @__PURE__ */ t(sr, { className: "h-2.5 w-2.5" }),
|
|
775
|
+
e.memberCount,
|
|
776
|
+
" member",
|
|
777
|
+
e.memberCount === 1 ? "" : "s"
|
|
778
|
+
] }),
|
|
779
|
+
o && /* @__PURE__ */ i(B, { children: [
|
|
780
|
+
/* @__PURE__ */ t("span", { className: "text-border", children: "·" }),
|
|
781
|
+
/* @__PURE__ */ i("span", { className: "inline-flex items-center gap-1", children: [
|
|
782
|
+
/* @__PURE__ */ t(rr, { className: "h-2.5 w-2.5" }),
|
|
783
|
+
o
|
|
784
|
+
] })
|
|
785
|
+
] }),
|
|
786
|
+
e.description && /* @__PURE__ */ i(B, { children: [
|
|
787
|
+
/* @__PURE__ */ t("span", { className: "text-border", children: "·" }),
|
|
788
|
+
/* @__PURE__ */ t("span", { className: "truncate text-muted-foreground", children: e.description })
|
|
789
|
+
] })
|
|
790
|
+
] })
|
|
791
|
+
] }),
|
|
792
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-0.5 opacity-0 transition-opacity group-hover:opacity-100", children: [
|
|
793
|
+
n && /* @__PURE__ */ t(
|
|
794
|
+
"span",
|
|
795
|
+
{
|
|
796
|
+
role: "button",
|
|
797
|
+
tabIndex: 0,
|
|
798
|
+
onClick: (d) => {
|
|
799
|
+
d.stopPropagation(), r();
|
|
800
|
+
},
|
|
801
|
+
onKeyDown: (d) => {
|
|
802
|
+
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), d.stopPropagation(), r());
|
|
803
|
+
},
|
|
804
|
+
"aria-label": `Delete ${e.name}`,
|
|
805
|
+
className: "flex h-6 w-6 items-center justify-center rounded-[3px] text-muted-foreground hover:bg-accent hover:text-foreground",
|
|
806
|
+
children: /* @__PURE__ */ t(lt, { className: "h-3 w-3" })
|
|
807
|
+
}
|
|
808
|
+
),
|
|
809
|
+
/* @__PURE__ */ t(Nn, { className: "h-3.5 w-3.5 text-muted-foreground" })
|
|
810
|
+
] })
|
|
811
|
+
]
|
|
812
|
+
}
|
|
813
|
+
);
|
|
814
|
+
}
|
|
815
|
+
function lo({ onCreate: e }) {
|
|
816
|
+
return /* @__PURE__ */ i("div", { className: "flex h-full flex-col items-center justify-center gap-2 py-12 text-center", children: [
|
|
817
|
+
/* @__PURE__ */ t("div", { className: "flex h-9 w-9 items-center justify-center rounded-full border border-border bg-muted/40 text-muted-foreground", children: /* @__PURE__ */ t(tr, { className: "h-4 w-4" }) }),
|
|
818
|
+
/* @__PURE__ */ t("div", { className: "text-[13px] font-medium text-foreground", children: "No groups yet" }),
|
|
819
|
+
/* @__PURE__ */ t("div", { className: "max-w-[320px] text-[11.5px] leading-[1.55] text-muted-foreground", children: "Groups let you grant shared access to dashboards. Create one and add members." }),
|
|
820
|
+
/* @__PURE__ */ i(
|
|
821
|
+
"button",
|
|
822
|
+
{
|
|
823
|
+
type: "button",
|
|
824
|
+
onClick: e,
|
|
825
|
+
className: "mt-1 inline-flex h-7 items-center gap-1.5 rounded-[5px] bg-foreground px-2.5 text-[12px] font-medium text-background hover:opacity-90",
|
|
826
|
+
children: [
|
|
827
|
+
/* @__PURE__ */ t(re, { className: "h-3 w-3" }),
|
|
828
|
+
"New group"
|
|
829
|
+
]
|
|
830
|
+
}
|
|
831
|
+
)
|
|
832
|
+
] });
|
|
833
|
+
}
|
|
834
|
+
function uo({
|
|
835
|
+
group: e,
|
|
836
|
+
isTenantViewer: n,
|
|
837
|
+
canEdit: a,
|
|
838
|
+
canDelete: r,
|
|
839
|
+
canManageMembers: o,
|
|
840
|
+
onBack: d,
|
|
841
|
+
onMembersChanged: m,
|
|
842
|
+
onUpdated: h,
|
|
843
|
+
onRequestDelete: b
|
|
844
|
+
}) {
|
|
845
|
+
const {
|
|
846
|
+
data: f,
|
|
847
|
+
isLoading: g,
|
|
848
|
+
error: c,
|
|
849
|
+
refetch: u
|
|
850
|
+
} = ga(e.id), s = (f == null ? void 0 : f.members) ?? oo, x = c ? xr(c, "Unable to load members for this group.") : null, v = e.type === "TENANT_GROUP" ? "tenant" : "organization", { users: w } = xa({
|
|
851
|
+
type: v,
|
|
852
|
+
tenantId: e.tenantId || void 0,
|
|
853
|
+
active: !0,
|
|
854
|
+
limit: 200
|
|
855
|
+
}), S = H(
|
|
856
|
+
() => new Set(s.map((y) => y.userId)),
|
|
857
|
+
[s]
|
|
858
|
+
), p = ao(), M = no(), L = to(), [k, E] = N(!1), [I, J] = N(e.name), [$e, q] = N(!1), [ne, z] = N(e.description || ""), [oe, se] = N(""), [Fe, ie] = N(!1), we = H(() => {
|
|
859
|
+
const y = oe.trim().toLowerCase();
|
|
860
|
+
return w.filter((T) => !S.has(T.id)).filter(
|
|
861
|
+
(T) => !y || (T.name || "").toLowerCase().includes(y) || (T.email || "").toLowerCase().includes(y)
|
|
862
|
+
).slice(0, 50);
|
|
863
|
+
}, [w, S, oe]), X = async () => {
|
|
864
|
+
const y = I.trim();
|
|
865
|
+
if (E(!1), y.length >= 3 && y !== e.name)
|
|
866
|
+
try {
|
|
867
|
+
await L.mutateAsync({
|
|
868
|
+
groupId: e.id,
|
|
869
|
+
data: { name: y }
|
|
870
|
+
}), h();
|
|
871
|
+
} catch {
|
|
872
|
+
}
|
|
873
|
+
}, Ne = async () => {
|
|
874
|
+
const y = ne.trim();
|
|
875
|
+
if (q(!1), y !== (e.description || ""))
|
|
876
|
+
try {
|
|
877
|
+
await L.mutateAsync({
|
|
878
|
+
groupId: e.id,
|
|
879
|
+
data: { description: y }
|
|
880
|
+
}), h();
|
|
881
|
+
} catch {
|
|
882
|
+
}
|
|
883
|
+
}, Se = async (y) => {
|
|
884
|
+
if (o) {
|
|
885
|
+
se(""), ie(!1);
|
|
886
|
+
try {
|
|
887
|
+
await p.mutateAsync({
|
|
888
|
+
groupId: e.id,
|
|
889
|
+
data: {
|
|
890
|
+
userIds: [y.id],
|
|
891
|
+
userType: v === "tenant" ? "tenant" : "org"
|
|
892
|
+
}
|
|
893
|
+
}), u(), m();
|
|
894
|
+
} catch {
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}, Be = async (y) => {
|
|
898
|
+
if (o)
|
|
899
|
+
try {
|
|
900
|
+
await M.mutateAsync({
|
|
901
|
+
groupId: e.id,
|
|
902
|
+
data: { userIds: [y] }
|
|
903
|
+
}), u(), m();
|
|
904
|
+
} catch {
|
|
905
|
+
}
|
|
906
|
+
};
|
|
907
|
+
let G = "";
|
|
908
|
+
try {
|
|
909
|
+
G = or(new Date(e.createdAt), "MMM d, yyyy");
|
|
910
|
+
} catch {
|
|
911
|
+
G = "";
|
|
912
|
+
}
|
|
913
|
+
return /* @__PURE__ */ i("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
914
|
+
/* @__PURE__ */ i("div", { className: "flex h-10 shrink-0 items-center gap-1.5 border-b border-border px-5", children: [
|
|
915
|
+
/* @__PURE__ */ t(
|
|
916
|
+
"button",
|
|
917
|
+
{
|
|
918
|
+
type: "button",
|
|
919
|
+
onClick: d,
|
|
920
|
+
"aria-label": "Back",
|
|
921
|
+
className: "-ml-1 flex h-6 w-6 items-center justify-center rounded-[3px] text-muted-foreground hover:bg-accent hover:text-foreground",
|
|
922
|
+
children: /* @__PURE__ */ t(er, { className: "h-3.5 w-3.5" })
|
|
923
|
+
}
|
|
924
|
+
),
|
|
925
|
+
k ? /* @__PURE__ */ t(
|
|
926
|
+
"input",
|
|
927
|
+
{
|
|
928
|
+
autoFocus: !0,
|
|
929
|
+
value: I,
|
|
930
|
+
onChange: (y) => J(y.target.value),
|
|
931
|
+
onBlur: X,
|
|
932
|
+
onKeyDown: (y) => {
|
|
933
|
+
y.key === "Enter" && X(), y.key === "Escape" && (J(e.name), E(!1));
|
|
934
|
+
},
|
|
935
|
+
className: "h-6 min-w-0 flex-1 rounded-[3px] border border-border bg-background px-1.5 text-[13px] font-medium text-foreground focus:border-foreground/40 focus:outline-none"
|
|
936
|
+
}
|
|
937
|
+
) : /* @__PURE__ */ t(
|
|
938
|
+
"button",
|
|
939
|
+
{
|
|
940
|
+
type: "button",
|
|
941
|
+
onClick: () => {
|
|
942
|
+
a && (J(e.name), E(!0));
|
|
943
|
+
},
|
|
944
|
+
title: a ? "Click to rename" : e.name,
|
|
945
|
+
disabled: !a,
|
|
946
|
+
className: "truncate rounded-[3px] px-1 text-[13px] font-medium text-foreground enabled:hover:bg-accent disabled:cursor-default",
|
|
947
|
+
children: e.name
|
|
948
|
+
}
|
|
949
|
+
),
|
|
950
|
+
/* @__PURE__ */ i("span", { className: "ml-1 inline-flex shrink-0 items-center gap-1 text-[10.5px] text-muted-foreground", children: [
|
|
951
|
+
/* @__PURE__ */ t(sr, { className: "h-2.5 w-2.5" }),
|
|
952
|
+
s.length,
|
|
953
|
+
" member",
|
|
954
|
+
s.length === 1 ? "" : "s"
|
|
955
|
+
] })
|
|
956
|
+
] }),
|
|
957
|
+
/* @__PURE__ */ t("div", { className: "shrink-0 border-b border-border px-5 py-2.5", children: $e ? /* @__PURE__ */ i("div", { children: [
|
|
958
|
+
/* @__PURE__ */ t(
|
|
959
|
+
"textarea",
|
|
960
|
+
{
|
|
961
|
+
autoFocus: !0,
|
|
962
|
+
rows: 2,
|
|
963
|
+
value: ne,
|
|
964
|
+
onChange: (y) => z(y.target.value),
|
|
965
|
+
maxLength: 200,
|
|
966
|
+
onKeyDown: (y) => {
|
|
967
|
+
y.key === "Escape" && (z(e.description || ""), q(!1)), y.key === "Enter" && (y.metaKey || y.ctrlKey) && Ne();
|
|
968
|
+
},
|
|
969
|
+
placeholder: "What is this group for?",
|
|
970
|
+
className: "block w-full resize-none rounded-[5px] border border-border bg-background px-2 py-1.5 text-[12px] text-foreground placeholder:text-muted-foreground focus:border-foreground/40 focus:outline-none"
|
|
971
|
+
}
|
|
972
|
+
),
|
|
973
|
+
/* @__PURE__ */ i("div", { className: "mt-1.5 flex items-center justify-between", children: [
|
|
974
|
+
/* @__PURE__ */ i("span", { className: "text-[10.5px] text-muted-foreground", children: [
|
|
975
|
+
ne.length,
|
|
976
|
+
"/200 · Esc to cancel · ⌘↩ to save"
|
|
977
|
+
] }),
|
|
978
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-1.5", children: [
|
|
979
|
+
/* @__PURE__ */ t(
|
|
980
|
+
"button",
|
|
981
|
+
{
|
|
982
|
+
type: "button",
|
|
983
|
+
onClick: () => {
|
|
984
|
+
z(e.description || ""), q(!1);
|
|
985
|
+
},
|
|
986
|
+
className: "h-6 rounded-[5px] px-2 text-[11px] font-medium text-foreground/80 hover:bg-accent",
|
|
987
|
+
children: "Cancel"
|
|
988
|
+
}
|
|
989
|
+
),
|
|
990
|
+
/* @__PURE__ */ t(
|
|
991
|
+
"button",
|
|
992
|
+
{
|
|
993
|
+
type: "button",
|
|
994
|
+
onClick: Ne,
|
|
995
|
+
className: "inline-flex h-6 items-center rounded-[5px] bg-foreground px-2 text-[11px] font-medium text-background hover:opacity-90",
|
|
996
|
+
children: "Save"
|
|
997
|
+
}
|
|
998
|
+
)
|
|
999
|
+
] })
|
|
1000
|
+
] })
|
|
1001
|
+
] }) : /* @__PURE__ */ i(
|
|
1002
|
+
"button",
|
|
1003
|
+
{
|
|
1004
|
+
type: "button",
|
|
1005
|
+
onClick: () => {
|
|
1006
|
+
a && (z(e.description || ""), q(!0));
|
|
1007
|
+
},
|
|
1008
|
+
disabled: !a,
|
|
1009
|
+
title: a ? "Click to edit description" : void 0,
|
|
1010
|
+
className: "block w-full rounded-[3px] px-1 py-0.5 text-left enabled:hover:bg-accent/40 disabled:cursor-default",
|
|
1011
|
+
children: [
|
|
1012
|
+
e.description ? /* @__PURE__ */ t("p", { className: "text-[12px] leading-[1.55] text-foreground/90", children: e.description }) : /* @__PURE__ */ t("p", { className: "text-[12px] leading-[1.55] text-muted-foreground", children: a ? "Add a description…" : "No description" }),
|
|
1013
|
+
/* @__PURE__ */ i("p", { className: "mt-1 text-[10.5px] text-muted-foreground", children: [
|
|
1014
|
+
G ? `Created ${G}` : "Recently created",
|
|
1015
|
+
a ? " · You can edit this group" : ""
|
|
1016
|
+
] })
|
|
1017
|
+
]
|
|
1018
|
+
}
|
|
1019
|
+
) }),
|
|
1020
|
+
o && /* @__PURE__ */ t(
|
|
1021
|
+
ho,
|
|
1022
|
+
{
|
|
1023
|
+
query: oe,
|
|
1024
|
+
setQuery: se,
|
|
1025
|
+
open: Fe,
|
|
1026
|
+
setOpen: ie,
|
|
1027
|
+
candidates: we,
|
|
1028
|
+
showKindChip: !n,
|
|
1029
|
+
onAdd: Se,
|
|
1030
|
+
busy: p.isPending
|
|
1031
|
+
}
|
|
1032
|
+
),
|
|
1033
|
+
/* @__PURE__ */ t("div", { className: "flex-1 overflow-y-auto", children: g ? /* @__PURE__ */ t("div", { className: "space-y-px p-3", children: [1, 2, 3].map((y) => /* @__PURE__ */ t(
|
|
1034
|
+
"div",
|
|
1035
|
+
{
|
|
1036
|
+
className: "h-10 animate-pulse rounded-[4px] bg-muted/60"
|
|
1037
|
+
},
|
|
1038
|
+
y
|
|
1039
|
+
)) }) : x ? /* @__PURE__ */ t(
|
|
1040
|
+
vr,
|
|
1041
|
+
{
|
|
1042
|
+
title: "Can't load members",
|
|
1043
|
+
message: x,
|
|
1044
|
+
onRetry: () => u()
|
|
1045
|
+
}
|
|
1046
|
+
) : s.length === 0 ? /* @__PURE__ */ i("div", { className: "flex h-full flex-col items-center justify-center gap-1 py-10 text-center", children: [
|
|
1047
|
+
/* @__PURE__ */ t("div", { className: "text-[12px] text-foreground", children: "No members yet" }),
|
|
1048
|
+
/* @__PURE__ */ t("div", { className: "text-[11px] text-muted-foreground", children: o ? "Search above to add people to this group." : "This group does not have any members." })
|
|
1049
|
+
] }) : s.map((y) => {
|
|
1050
|
+
var T, de, K, ce, Q, ke;
|
|
1051
|
+
return /* @__PURE__ */ i(
|
|
1052
|
+
"div",
|
|
1053
|
+
{
|
|
1054
|
+
className: "group flex items-center gap-2 border-b border-border/60 px-5 py-2",
|
|
1055
|
+
children: [
|
|
1056
|
+
/* @__PURE__ */ t(yr, { name: ((T = y.user) == null ? void 0 : T.name) || ((de = y.user) == null ? void 0 : de.email) || "?" }),
|
|
1057
|
+
/* @__PURE__ */ i("div", { className: "min-w-0 flex-1", children: [
|
|
1058
|
+
/* @__PURE__ */ t("div", { className: "truncate text-[12.5px] font-medium text-foreground", children: ((K = y.user) == null ? void 0 : K.name) || ((ce = y.user) == null ? void 0 : ce.email) || "Unknown" }),
|
|
1059
|
+
((Q = y.user) == null ? void 0 : Q.email) && y.user.name && /* @__PURE__ */ t("div", { className: "truncate text-[10.5px] text-muted-foreground", children: y.user.email })
|
|
1060
|
+
] }),
|
|
1061
|
+
!n && /* @__PURE__ */ t("span", { className: "text-[10px] uppercase tracking-[0.06em] text-muted-foreground", children: y.userType }),
|
|
1062
|
+
/* @__PURE__ */ t(
|
|
1063
|
+
"button",
|
|
1064
|
+
{
|
|
1065
|
+
type: "button",
|
|
1066
|
+
onClick: () => Be(y.userId),
|
|
1067
|
+
disabled: !o || M.isPending,
|
|
1068
|
+
"aria-label": `Remove ${((ke = y.user) == null ? void 0 : ke.name) || "member"}`,
|
|
1069
|
+
className: "flex h-6 w-6 items-center justify-center rounded-[3px] text-muted-foreground opacity-0 transition-opacity hover:bg-accent hover:text-foreground group-hover:opacity-100 disabled:opacity-30",
|
|
1070
|
+
children: /* @__PURE__ */ t(ar, { className: "h-3 w-3" })
|
|
1071
|
+
}
|
|
1072
|
+
)
|
|
1073
|
+
]
|
|
1074
|
+
},
|
|
1075
|
+
y.id
|
|
1076
|
+
);
|
|
1077
|
+
}) }),
|
|
1078
|
+
r && /* @__PURE__ */ t("div", { className: "flex shrink-0 items-center justify-end gap-1.5 border-t border-border bg-muted/30 px-5 py-2.5", children: /* @__PURE__ */ i(
|
|
1079
|
+
"button",
|
|
1080
|
+
{
|
|
1081
|
+
type: "button",
|
|
1082
|
+
onClick: b,
|
|
1083
|
+
className: "inline-flex h-7 items-center gap-1.5 rounded-[5px] border border-rose-200 bg-background px-2.5 text-[12px] font-medium text-rose-600 hover:bg-rose-50 dark:border-rose-900/60 dark:text-rose-400 dark:hover:bg-rose-950/30",
|
|
1084
|
+
children: [
|
|
1085
|
+
/* @__PURE__ */ t(lt, { className: "h-3 w-3" }),
|
|
1086
|
+
"Delete group"
|
|
1087
|
+
]
|
|
1088
|
+
}
|
|
1089
|
+
) })
|
|
1090
|
+
] });
|
|
1091
|
+
}
|
|
1092
|
+
function mo({
|
|
1093
|
+
isTenantUser: e,
|
|
1094
|
+
tenantId: n,
|
|
1095
|
+
onCancel: a,
|
|
1096
|
+
onCreated: r
|
|
1097
|
+
}) {
|
|
1098
|
+
const [o, d] = N(""), [m, h] = N(""), [b, f] = N(null), g = eo(), c = o.trim().length >= 3 && o.trim().length <= 50, u = async () => {
|
|
1099
|
+
if (!c) return;
|
|
1100
|
+
f(null);
|
|
1101
|
+
const s = {
|
|
1102
|
+
name: o.trim(),
|
|
1103
|
+
description: m.trim() || void 0,
|
|
1104
|
+
type: e ? "TENANT_GROUP" : "ORG_GROUP",
|
|
1105
|
+
...e && n ? { tenantId: n } : {}
|
|
1106
|
+
};
|
|
1107
|
+
try {
|
|
1108
|
+
const x = await g.mutateAsync(s), v = x == null ? void 0 : x.id;
|
|
1109
|
+
v ? r(v) : a();
|
|
1110
|
+
} catch (x) {
|
|
1111
|
+
f(x instanceof Error ? x.message : "Failed to create group");
|
|
1112
|
+
}
|
|
1113
|
+
};
|
|
1114
|
+
return /* @__PURE__ */ i("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
1115
|
+
/* @__PURE__ */ i("div", { className: "flex-1 overflow-y-auto px-5 py-4", children: [
|
|
1116
|
+
/* @__PURE__ */ t(Qt, { children: "Name" }),
|
|
1117
|
+
/* @__PURE__ */ t(
|
|
1118
|
+
"input",
|
|
1119
|
+
{
|
|
1120
|
+
autoFocus: !0,
|
|
1121
|
+
value: o,
|
|
1122
|
+
onChange: (s) => d(s.target.value),
|
|
1123
|
+
placeholder: "Marketing leads, North America sales, …",
|
|
1124
|
+
maxLength: 50,
|
|
1125
|
+
className: "mt-1 block h-7 w-full rounded-[5px] border border-border bg-background px-2 text-[12px] text-foreground placeholder:text-muted-foreground focus:border-foreground/40 focus:outline-none"
|
|
1126
|
+
}
|
|
1127
|
+
),
|
|
1128
|
+
/* @__PURE__ */ t("div", { className: "mt-1 text-[10.5px] text-muted-foreground", children: "3–50 characters." }),
|
|
1129
|
+
/* @__PURE__ */ i("div", { className: "mt-4", children: [
|
|
1130
|
+
/* @__PURE__ */ t(Qt, { children: "Description (optional)" }),
|
|
1131
|
+
/* @__PURE__ */ t(
|
|
1132
|
+
"textarea",
|
|
1133
|
+
{
|
|
1134
|
+
rows: 2,
|
|
1135
|
+
value: m,
|
|
1136
|
+
onChange: (s) => h(s.target.value),
|
|
1137
|
+
maxLength: 200,
|
|
1138
|
+
placeholder: "What is this group for?",
|
|
1139
|
+
className: "mt-1 block w-full resize-none rounded-[5px] border border-border bg-background px-2 py-1.5 text-[12px] text-foreground placeholder:text-muted-foreground focus:border-foreground/40 focus:outline-none"
|
|
1140
|
+
}
|
|
1141
|
+
),
|
|
1142
|
+
/* @__PURE__ */ i("div", { className: "mt-1 flex justify-end text-[10.5px] text-muted-foreground", children: [
|
|
1143
|
+
m.length,
|
|
1144
|
+
"/200"
|
|
1145
|
+
] })
|
|
1146
|
+
] }),
|
|
1147
|
+
b && /* @__PURE__ */ t("div", { className: "mt-3 rounded-[5px] border border-rose-200 bg-rose-50 px-2 py-1.5 text-[11.5px] text-rose-700 dark:border-rose-900/60 dark:bg-rose-950/30 dark:text-rose-300", children: b })
|
|
1148
|
+
] }),
|
|
1149
|
+
/* @__PURE__ */ i("div", { className: "flex shrink-0 items-center justify-end gap-1.5 border-t border-border bg-muted/30 px-5 py-2.5", children: [
|
|
1150
|
+
/* @__PURE__ */ t(
|
|
1151
|
+
"button",
|
|
1152
|
+
{
|
|
1153
|
+
type: "button",
|
|
1154
|
+
onClick: a,
|
|
1155
|
+
disabled: g.isPending,
|
|
1156
|
+
className: "h-7 rounded-[5px] px-2.5 text-[12px] font-medium text-foreground/80 hover:bg-accent",
|
|
1157
|
+
children: "Cancel"
|
|
1158
|
+
}
|
|
1159
|
+
),
|
|
1160
|
+
/* @__PURE__ */ t(
|
|
1161
|
+
"button",
|
|
1162
|
+
{
|
|
1163
|
+
type: "button",
|
|
1164
|
+
onClick: u,
|
|
1165
|
+
disabled: !c || g.isPending,
|
|
1166
|
+
className: "inline-flex h-7 items-center gap-1.5 rounded-[5px] bg-foreground px-2.5 text-[12px] font-medium text-background hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60",
|
|
1167
|
+
children: g.isPending ? /* @__PURE__ */ i(B, { children: [
|
|
1168
|
+
/* @__PURE__ */ t(Re, { className: "h-3 w-3 animate-spin" }),
|
|
1169
|
+
"Creating…"
|
|
1170
|
+
] }) : /* @__PURE__ */ i(B, { children: [
|
|
1171
|
+
/* @__PURE__ */ t(re, { className: "h-3 w-3" }),
|
|
1172
|
+
"Create group"
|
|
1173
|
+
] })
|
|
1174
|
+
}
|
|
1175
|
+
)
|
|
1176
|
+
] })
|
|
1177
|
+
] });
|
|
1178
|
+
}
|
|
1179
|
+
function ho({
|
|
1180
|
+
query: e,
|
|
1181
|
+
setQuery: n,
|
|
1182
|
+
open: a,
|
|
1183
|
+
setOpen: r,
|
|
1184
|
+
candidates: o,
|
|
1185
|
+
showKindChip: d,
|
|
1186
|
+
onAdd: m,
|
|
1187
|
+
busy: h
|
|
1188
|
+
}) {
|
|
1189
|
+
const b = jt(null), f = jt(null), [g, c] = N(null);
|
|
1190
|
+
cn(() => {
|
|
1191
|
+
if (!a) {
|
|
1192
|
+
c(null);
|
|
1193
|
+
return;
|
|
1194
|
+
}
|
|
1195
|
+
const s = () => {
|
|
1196
|
+
const x = b.current;
|
|
1197
|
+
if (!x) return;
|
|
1198
|
+
const v = x.getBoundingClientRect(), w = 240, p = window.innerHeight - v.bottom < w + 16 && v.top > w;
|
|
1199
|
+
c({
|
|
1200
|
+
left: v.left,
|
|
1201
|
+
top: p ? v.top - 6 : v.bottom + 6,
|
|
1202
|
+
width: v.width,
|
|
1203
|
+
above: p
|
|
1204
|
+
});
|
|
1205
|
+
};
|
|
1206
|
+
return s(), window.addEventListener("resize", s), window.addEventListener("scroll", s, !0), () => {
|
|
1207
|
+
window.removeEventListener("resize", s), window.removeEventListener("scroll", s, !0);
|
|
1208
|
+
};
|
|
1209
|
+
}, [a, o.length]), Ue(() => {
|
|
1210
|
+
if (!a) return;
|
|
1211
|
+
const s = (x) => {
|
|
1212
|
+
var w, S;
|
|
1213
|
+
const v = x.target;
|
|
1214
|
+
(w = b.current) != null && w.contains(v) || (S = f.current) != null && S.contains(v) || r(!1);
|
|
1215
|
+
};
|
|
1216
|
+
return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
|
|
1217
|
+
}, [a, r]);
|
|
1218
|
+
const u = a && o.length > 0 && g;
|
|
1219
|
+
return /* @__PURE__ */ i("div", { className: "shrink-0 border-b border-border px-5 py-2.5", children: [
|
|
1220
|
+
/* @__PURE__ */ i(
|
|
1221
|
+
"div",
|
|
1222
|
+
{
|
|
1223
|
+
ref: b,
|
|
1224
|
+
className: "flex items-center gap-2 rounded-[5px] border border-border bg-background px-2 focus-within:border-foreground/40",
|
|
1225
|
+
children: [
|
|
1226
|
+
/* @__PURE__ */ t(_n, { className: "h-3 w-3 text-muted-foreground" }),
|
|
1227
|
+
/* @__PURE__ */ t(
|
|
1228
|
+
"input",
|
|
1229
|
+
{
|
|
1230
|
+
value: e,
|
|
1231
|
+
onChange: (s) => {
|
|
1232
|
+
n(s.target.value), r(!0);
|
|
1233
|
+
},
|
|
1234
|
+
onFocus: () => r(!0),
|
|
1235
|
+
placeholder: "Add a member by name or email…",
|
|
1236
|
+
disabled: h,
|
|
1237
|
+
className: "h-7 flex-1 bg-transparent text-[12px] text-foreground placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed"
|
|
1238
|
+
}
|
|
1239
|
+
)
|
|
1240
|
+
]
|
|
1241
|
+
}
|
|
1242
|
+
),
|
|
1243
|
+
u && typeof document < "u" && yn(
|
|
1244
|
+
/* @__PURE__ */ t(
|
|
1245
|
+
"div",
|
|
1246
|
+
{
|
|
1247
|
+
ref: f,
|
|
1248
|
+
style: {
|
|
1249
|
+
position: "fixed",
|
|
1250
|
+
left: g.left,
|
|
1251
|
+
top: g.top,
|
|
1252
|
+
width: g.width,
|
|
1253
|
+
transform: g.above ? "translateY(-100%)" : void 0
|
|
1254
|
+
},
|
|
1255
|
+
className: "z-[60] max-h-[240px] overflow-y-auto rounded-[5px] border border-border bg-background shadow-[0_8px_24px_-12px_rgba(0,0,0,0.18)]",
|
|
1256
|
+
children: o.map((s) => /* @__PURE__ */ i(
|
|
1257
|
+
"button",
|
|
1258
|
+
{
|
|
1259
|
+
type: "button",
|
|
1260
|
+
onClick: () => m(s),
|
|
1261
|
+
className: "flex w-full items-center gap-2 border-b border-border/60 px-2.5 py-2 text-left last:border-b-0 hover:bg-accent",
|
|
1262
|
+
children: [
|
|
1263
|
+
/* @__PURE__ */ t(yr, { name: s.name || s.email || "?" }),
|
|
1264
|
+
/* @__PURE__ */ i("div", { className: "min-w-0 flex-1", children: [
|
|
1265
|
+
/* @__PURE__ */ t("div", { className: "truncate text-[12px] font-medium text-foreground", children: s.name || s.email || "Unknown" }),
|
|
1266
|
+
s.email && s.name && /* @__PURE__ */ t("div", { className: "truncate text-[10.5px] text-muted-foreground", children: s.email })
|
|
1267
|
+
] }),
|
|
1268
|
+
d && s.type && /* @__PURE__ */ t("span", { className: "text-[10px] uppercase tracking-[0.06em] text-muted-foreground", children: s.type === "tenant" ? "tenant" : "org" })
|
|
1269
|
+
]
|
|
1270
|
+
},
|
|
1271
|
+
s.id
|
|
1272
|
+
))
|
|
1273
|
+
}
|
|
1274
|
+
),
|
|
1275
|
+
document.body
|
|
1276
|
+
)
|
|
1277
|
+
] });
|
|
1278
|
+
}
|
|
1279
|
+
function xr(e, n) {
|
|
1280
|
+
if (!e) return n;
|
|
1281
|
+
if (e instanceof Error) {
|
|
1282
|
+
const a = e.message || "", r = a.match(/\{[\s\S]*"error"\s*:\s*"([^"]+)"[\s\S]*\}/);
|
|
1283
|
+
return r ? r[1] : a || n;
|
|
1284
|
+
}
|
|
1285
|
+
return typeof e == "string" ? e : n;
|
|
1286
|
+
}
|
|
1287
|
+
function vr({
|
|
1288
|
+
title: e,
|
|
1289
|
+
message: n,
|
|
1290
|
+
onRetry: a
|
|
1291
|
+
}) {
|
|
1292
|
+
return /* @__PURE__ */ i("div", { className: "flex h-full flex-col items-center justify-center gap-2 px-6 py-10 text-center", children: [
|
|
1293
|
+
/* @__PURE__ */ t("div", { className: "text-[12.5px] font-medium text-foreground", children: e }),
|
|
1294
|
+
/* @__PURE__ */ t("div", { className: "max-w-[360px] text-[11.5px] leading-[1.55] text-muted-foreground", children: n }),
|
|
1295
|
+
a && /* @__PURE__ */ t(
|
|
1296
|
+
"button",
|
|
1297
|
+
{
|
|
1298
|
+
type: "button",
|
|
1299
|
+
onClick: a,
|
|
1300
|
+
className: "mt-1 inline-flex h-7 items-center rounded-[5px] border border-border bg-background px-2.5 text-[11.5px] font-medium text-foreground hover:bg-accent",
|
|
1301
|
+
children: "Try again"
|
|
1302
|
+
}
|
|
1303
|
+
)
|
|
1304
|
+
] });
|
|
1305
|
+
}
|
|
1306
|
+
function Qt({ children: e }) {
|
|
1307
|
+
return /* @__PURE__ */ t("label", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: e });
|
|
1308
|
+
}
|
|
1309
|
+
function yr({ name: e }) {
|
|
1310
|
+
const n = e.split(" ").map((a) => a[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
|
|
1311
|
+
return /* @__PURE__ */ t(br, { className: "h-6 w-6 shrink-0", children: /* @__PURE__ */ t(gr, { className: "text-[9px] font-semibold", children: n || "?" }) });
|
|
1312
|
+
}
|
|
1313
|
+
const po = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";
|
|
1314
|
+
function fo({
|
|
1315
|
+
open: e,
|
|
1316
|
+
onOpenChange: n
|
|
1317
|
+
}) {
|
|
1318
|
+
const a = D(
|
|
1319
|
+
(o) => {
|
|
1320
|
+
var d, m;
|
|
1321
|
+
return kn({
|
|
1322
|
+
dashboardDefault: (m = (d = o.dashboard) == null ? void 0 : d.exportDefaults) == null ? void 0 : m.csvEncoding
|
|
1323
|
+
});
|
|
1324
|
+
}
|
|
1325
|
+
), { setDashboardExportDefaults: r } = D(
|
|
1326
|
+
(o) => o.actions
|
|
1327
|
+
);
|
|
1328
|
+
return /* @__PURE__ */ t(Xt, { open: e, onOpenChange: n, children: /* @__PURE__ */ i(Zt, { className: "rounded-control border-border/60 sm:max-w-[440px] sm:rounded-control", children: [
|
|
1329
|
+
/* @__PURE__ */ i(ya, { children: [
|
|
1330
|
+
/* @__PURE__ */ t(nt, { className: "text-[15px]", children: "Download settings" }),
|
|
1331
|
+
/* @__PURE__ */ t(ot, { className: "text-[13px] leading-5", children: "Applies to every CSV downloaded or delivered from this dashboard. People can still change it for a single download." })
|
|
1332
|
+
] }),
|
|
1333
|
+
/* @__PURE__ */ i("div", { className: "space-y-2", children: [
|
|
1334
|
+
/* @__PURE__ */ t(Kr, { htmlFor: "dashboard-csv-encoding", className: po, children: "CSV encoding" }),
|
|
1335
|
+
/* @__PURE__ */ i(
|
|
1336
|
+
Qr,
|
|
1337
|
+
{
|
|
1338
|
+
value: a,
|
|
1339
|
+
onValueChange: (o) => r({ csvEncoding: o }),
|
|
1340
|
+
children: [
|
|
1341
|
+
/* @__PURE__ */ t(Wr, { id: "dashboard-csv-encoding", size: "sm", children: /* @__PURE__ */ t(Yr, {}) }),
|
|
1342
|
+
/* @__PURE__ */ t(Jr, { children: wa.map((o) => /* @__PURE__ */ t(Xr, { value: o.value, children: o.label }, o.value)) })
|
|
1343
|
+
]
|
|
1344
|
+
}
|
|
1345
|
+
)
|
|
1346
|
+
] })
|
|
1347
|
+
] }) });
|
|
1348
|
+
}
|
|
1349
|
+
function fe(e, n, a) {
|
|
1350
|
+
var d, m;
|
|
1351
|
+
const r = (e.controls || []).find(
|
|
1352
|
+
(h) => h.id === a
|
|
1353
|
+
);
|
|
1354
|
+
if (r)
|
|
1355
|
+
return r.label;
|
|
1356
|
+
const o = (m = (d = Te(e, n)) == null ? void 0 : d.controls) == null ? void 0 : m.find(
|
|
1357
|
+
(h) => h.id === a
|
|
1358
|
+
);
|
|
1359
|
+
return (o == null ? void 0 : o.label) || a;
|
|
1360
|
+
}
|
|
1361
|
+
function be(e, n) {
|
|
1362
|
+
var a;
|
|
1363
|
+
return ((a = Te(e, n)) == null ? void 0 : a.title) || n;
|
|
1364
|
+
}
|
|
1365
|
+
function bo(e) {
|
|
1366
|
+
const { errors: n, dashboard: a } = e;
|
|
1367
|
+
if (!a)
|
|
1368
|
+
return n;
|
|
1369
|
+
const r = /* @__PURE__ */ new Map();
|
|
1370
|
+
for (const o of n) {
|
|
1371
|
+
const d = o.match(
|
|
1372
|
+
/^Card '(.+)' binding for control '(.+)' maps to missing metric '(.+)'\.$/
|
|
1373
|
+
);
|
|
1374
|
+
if (d) {
|
|
1375
|
+
const [, g, c] = d, u = `${g}:${c}:missing-metric`;
|
|
1376
|
+
r.has(u) || r.set(
|
|
1377
|
+
u,
|
|
1378
|
+
`"${be(a, g)}" has an outdated "${fe(
|
|
1379
|
+
a,
|
|
1380
|
+
g,
|
|
1381
|
+
c
|
|
1382
|
+
)}" mapping. Some choices still point to metrics that are no longer available on this card. Open the card controls and choose replacements.`
|
|
1383
|
+
);
|
|
1384
|
+
continue;
|
|
1385
|
+
}
|
|
1386
|
+
const m = o.match(
|
|
1387
|
+
/^Card '(.+)' binding for control '(.+)' maps to missing group-by field '(.+)'\.$/
|
|
1388
|
+
);
|
|
1389
|
+
if (m) {
|
|
1390
|
+
const [, g, c] = m, u = `${g}:${c}:missing-group-by`;
|
|
1391
|
+
r.has(u) || r.set(
|
|
1392
|
+
u,
|
|
1393
|
+
`"${be(a, g)}" has an outdated "${fe(
|
|
1394
|
+
a,
|
|
1395
|
+
g,
|
|
1396
|
+
c
|
|
1397
|
+
)}" mapping. Some choices still point to fields that are no longer available on this card. Open the card controls and choose replacements.`
|
|
1398
|
+
);
|
|
1399
|
+
continue;
|
|
1400
|
+
}
|
|
1401
|
+
const h = o.match(
|
|
1402
|
+
/^Card '(.+)' binding for control '(.+)' maps to an invalid metric target\.$/
|
|
1403
|
+
);
|
|
1404
|
+
if (h) {
|
|
1405
|
+
const [, g, c] = h, u = `${g}:${c}:invalid-metric`;
|
|
1406
|
+
r.has(u) || r.set(
|
|
1407
|
+
u,
|
|
1408
|
+
`"${be(a, g)}" has an invalid "${fe(
|
|
1409
|
+
a,
|
|
1410
|
+
g,
|
|
1411
|
+
c
|
|
1412
|
+
)}" metric mapping. Open the card controls and choose a valid metric for each option.`
|
|
1413
|
+
);
|
|
1414
|
+
continue;
|
|
1415
|
+
}
|
|
1416
|
+
const b = o.match(
|
|
1417
|
+
/^Card '(.+)' binding for control '(.+)' maps to an invalid group-by target\.$/
|
|
1418
|
+
);
|
|
1419
|
+
if (b) {
|
|
1420
|
+
const [, g, c] = b, u = `${g}:${c}:invalid-group-by`;
|
|
1421
|
+
r.has(u) || r.set(
|
|
1422
|
+
u,
|
|
1423
|
+
`"${be(a, g)}" has an invalid "${fe(
|
|
1424
|
+
a,
|
|
1425
|
+
g,
|
|
1426
|
+
c
|
|
1427
|
+
)}" field mapping. Open the card controls and choose a valid field for each option.`
|
|
1428
|
+
);
|
|
1429
|
+
continue;
|
|
1430
|
+
}
|
|
1431
|
+
const f = o.match(
|
|
1432
|
+
/^Card '(.+)' binding for control '(.+)' requires at least one temporal group-by field\.$/
|
|
1433
|
+
);
|
|
1434
|
+
if (f) {
|
|
1435
|
+
const [, g, c] = f, u = `${g}:${c}:missing-temporal-group-by`;
|
|
1436
|
+
r.has(u) || r.set(
|
|
1437
|
+
u,
|
|
1438
|
+
`"${be(a, g)}" can no longer use "${fe(
|
|
1439
|
+
a,
|
|
1440
|
+
g,
|
|
1441
|
+
c
|
|
1442
|
+
)}" for time grain because the card does not currently group by a date field.`
|
|
1443
|
+
);
|
|
1444
|
+
continue;
|
|
1445
|
+
}
|
|
1446
|
+
r.set(o, o);
|
|
1447
|
+
}
|
|
1448
|
+
return Array.from(r.values());
|
|
1449
|
+
}
|
|
1450
|
+
function go({
|
|
1451
|
+
visible: e,
|
|
1452
|
+
onSelect: n
|
|
1453
|
+
}) {
|
|
1454
|
+
return e ? /* @__PURE__ */ i($, { onSelect: n, children: [
|
|
1455
|
+
/* @__PURE__ */ t(Na, { className: "h-3.5 w-3.5" }),
|
|
1456
|
+
"Schedule email report"
|
|
1457
|
+
] }) : null;
|
|
1458
|
+
}
|
|
1459
|
+
function xo({
|
|
1460
|
+
scheduleReportVisible: e,
|
|
1461
|
+
analyticalBriefingVisible: n,
|
|
1462
|
+
onScheduleReport: a,
|
|
1463
|
+
onCreateAnalyticalBriefing: r
|
|
1464
|
+
}) {
|
|
1465
|
+
return /* @__PURE__ */ i(B, { children: [
|
|
1466
|
+
/* @__PURE__ */ t(
|
|
1467
|
+
go,
|
|
1468
|
+
{
|
|
1469
|
+
visible: e,
|
|
1470
|
+
onSelect: a
|
|
1471
|
+
}
|
|
1472
|
+
),
|
|
1473
|
+
n ? /* @__PURE__ */ i($, { onSelect: r, children: [
|
|
1474
|
+
/* @__PURE__ */ t(re, { className: "h-3.5 w-3.5" }),
|
|
1475
|
+
"Create analytical briefing"
|
|
1476
|
+
] }) : null
|
|
1477
|
+
] });
|
|
1478
|
+
}
|
|
1479
|
+
function vo(e) {
|
|
1480
|
+
var f, g, c;
|
|
1481
|
+
const { saved: n, draft: a, usage: r } = e, o = [], d = Zr(n);
|
|
1482
|
+
for (const [u, s] of Object.entries(r.inputs))
|
|
1483
|
+
!s || !Mt(n, u) || Mt(a, u) || o.push({
|
|
1484
|
+
target: "input",
|
|
1485
|
+
id: u,
|
|
1486
|
+
label: ea(n, d, u),
|
|
1487
|
+
bookmarks: s,
|
|
1488
|
+
remembered: 0
|
|
1489
|
+
});
|
|
1490
|
+
const m = new Set((a.sheets ?? []).map((u) => u.id));
|
|
1491
|
+
for (const u of n.sheets ?? []) {
|
|
1492
|
+
const s = r.sheets[u.id] ?? 0;
|
|
1493
|
+
!s || m.has(u.id) || o.push({
|
|
1494
|
+
target: "sheet",
|
|
1495
|
+
id: u.id,
|
|
1496
|
+
label: ((f = u.title) == null ? void 0 : f.trim()) || "Untitled sheet",
|
|
1497
|
+
bookmarks: s,
|
|
1498
|
+
remembered: 0
|
|
1499
|
+
});
|
|
1500
|
+
}
|
|
1501
|
+
const h = Ht(n), b = Ht(a);
|
|
1502
|
+
for (const [u, s] of Object.entries(r.tables)) {
|
|
1503
|
+
if (!h.has(u)) continue;
|
|
1504
|
+
const x = Te(n, u), v = ((g = x == null ? void 0 : x.title) == null ? void 0 : g.trim()) || "Untitled table";
|
|
1505
|
+
if (!b.has(u)) {
|
|
1506
|
+
o.push({
|
|
1507
|
+
target: "table",
|
|
1508
|
+
id: u,
|
|
1509
|
+
label: v,
|
|
1510
|
+
bookmarks: s.bookmarks,
|
|
1511
|
+
remembered: s.remembered
|
|
1512
|
+
});
|
|
1513
|
+
continue;
|
|
1514
|
+
}
|
|
1515
|
+
const w = x ? Ut(x) : void 0, S = Te(a, u), p = S ? Ut(S) : void 0;
|
|
1516
|
+
if (!(!x || !w || !p))
|
|
1517
|
+
for (const [M, L] of Object.entries(s.columns)) {
|
|
1518
|
+
if (!(L.bookmarks || L.remembered) || Sa(M) || !w.has(M) || p.has(M))
|
|
1519
|
+
continue;
|
|
1520
|
+
const k = ka(x, M), E = ((c = k == null ? void 0 : k.label) == null ? void 0 : c.trim()) || (k == null ? void 0 : k.name);
|
|
1521
|
+
o.push({
|
|
1522
|
+
target: "column",
|
|
1523
|
+
id: M,
|
|
1524
|
+
cardId: u,
|
|
1525
|
+
label: E ? `${E} in ${v}` : `A column in ${v}`,
|
|
1526
|
+
bookmarks: L.bookmarks,
|
|
1527
|
+
remembered: L.remembered
|
|
1528
|
+
});
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
return o;
|
|
1532
|
+
}
|
|
1533
|
+
const yo = "dashboard-bookmark-usage";
|
|
1534
|
+
function wo(e) {
|
|
1535
|
+
var b;
|
|
1536
|
+
const n = D((f) => f.viewerStateClient), a = (b = e.saved) == null ? void 0 : b.id, o = Da({
|
|
1537
|
+
// Keyed by the viewer, never by the client object (TanStack drops functions when hashing).
|
|
1538
|
+
queryKey: [yo, (n == null ? void 0 : n.viewerKey) ?? null],
|
|
1539
|
+
queryFn: () => n.bookmarks.usage(),
|
|
1540
|
+
enabled: e.enabled && !!n && !!a,
|
|
1541
|
+
staleTime: 5 * 6e4,
|
|
1542
|
+
retry: !1
|
|
1543
|
+
}).data, { saved: d, draft: m, enabled: h } = e;
|
|
1544
|
+
return H(() => !h || !d || !o ? [] : !o.bookmarks && !Object.keys(o.tables).length ? [] : vo({ saved: d, draft: m, usage: o }), [m, h, d, o]);
|
|
1545
|
+
}
|
|
1546
|
+
function Wt(e, n, a) {
|
|
1547
|
+
return `${e} ${e === 1 ? n : a}`;
|
|
1548
|
+
}
|
|
1549
|
+
function No(e) {
|
|
1550
|
+
const n = [
|
|
1551
|
+
e.bookmarks ? Wt(e.bookmarks, "bookmark", "bookmarks") : null,
|
|
1552
|
+
e.remembered ? Wt(e.remembered, "remembered layout", "remembered layouts") : null
|
|
1553
|
+
].filter(Boolean).join(", ");
|
|
1554
|
+
return e.target === "sheet" ? { name: `${e.label} sheet`, uses: n } : e.target === "table" ? { name: `${e.label} table`, uses: n } : { name: e.label, uses: n };
|
|
1555
|
+
}
|
|
1556
|
+
function So({
|
|
1557
|
+
saved: e,
|
|
1558
|
+
draft: n,
|
|
1559
|
+
enabled: a
|
|
1560
|
+
}) {
|
|
1561
|
+
const r = wo({ saved: e, draft: n, enabled: a });
|
|
1562
|
+
return r.length ? /* @__PURE__ */ i(ta, { children: [
|
|
1563
|
+
/* @__PURE__ */ t(ra, { asChild: !0, children: /* @__PURE__ */ i(
|
|
1564
|
+
F,
|
|
1565
|
+
{
|
|
1566
|
+
variant: "ghost",
|
|
1567
|
+
size: "xs",
|
|
1568
|
+
className: "gap-1 text-muted-foreground hover:text-foreground",
|
|
1569
|
+
children: [
|
|
1570
|
+
/* @__PURE__ */ t(Ca, { className: "h-3.5 w-3.5", "aria-hidden": "true" }),
|
|
1571
|
+
"Affects saved views"
|
|
1572
|
+
]
|
|
1573
|
+
}
|
|
1574
|
+
) }),
|
|
1575
|
+
/* @__PURE__ */ i(aa, { align: "end", className: "w-[320px] p-3 text-[12px]", children: [
|
|
1576
|
+
/* @__PURE__ */ t("p", { className: "text-foreground", children: "This edit removes parts of the dashboard that viewers saved. Their views still open, with a note about what no longer applies." }),
|
|
1577
|
+
/* @__PURE__ */ t(
|
|
1578
|
+
"ul",
|
|
1579
|
+
{
|
|
1580
|
+
"aria-label": "Affected saved views",
|
|
1581
|
+
className: "mt-2 grid gap-1 border-t border-border/60 pt-2",
|
|
1582
|
+
children: r.map((o) => {
|
|
1583
|
+
const { name: d, uses: m } = No(o);
|
|
1584
|
+
return /* @__PURE__ */ i(
|
|
1585
|
+
"li",
|
|
1586
|
+
{
|
|
1587
|
+
className: "flex items-baseline justify-between gap-3",
|
|
1588
|
+
children: [
|
|
1589
|
+
/* @__PURE__ */ t("span", { className: "min-w-0 truncate text-foreground", children: d }),
|
|
1590
|
+
/* @__PURE__ */ t("span", { className: "shrink-0 text-[11.5px] text-muted-foreground", children: m })
|
|
1591
|
+
]
|
|
1592
|
+
},
|
|
1593
|
+
`${o.target}:${o.cardId ?? ""}:${o.id}`
|
|
1594
|
+
);
|
|
1595
|
+
})
|
|
1596
|
+
}
|
|
1597
|
+
)
|
|
1598
|
+
] })
|
|
1599
|
+
] }) : null;
|
|
1600
|
+
}
|
|
1601
|
+
function Yt(e, n) {
|
|
1602
|
+
return {
|
|
1603
|
+
dashboard: st(e),
|
|
1604
|
+
semanticExecutionPayload: st(n)
|
|
1605
|
+
};
|
|
1606
|
+
}
|
|
1607
|
+
function Qo() {
|
|
1608
|
+
var kt, Dt, Ct, Et, It;
|
|
1609
|
+
ln(), un();
|
|
1610
|
+
const {
|
|
1611
|
+
authToken: e,
|
|
1612
|
+
tokenProps: n,
|
|
1613
|
+
id: a,
|
|
1614
|
+
showBriefings: r
|
|
1615
|
+
} = Y(), o = Ea(), { isLocalDev: d } = Ia(), {
|
|
1616
|
+
canEditDashboard: m,
|
|
1617
|
+
hasInspectionUser: h,
|
|
1618
|
+
inspectionMessage: b,
|
|
1619
|
+
isInspectionMode: f,
|
|
1620
|
+
isInspectionSurface: g
|
|
1621
|
+
} = Aa(), { openBrandStudioPreview: c } = Ma(), { permissions: u } = Fn(), s = La(), { isLoading: x } = Oa(), v = D((l) => l.theme), w = D((l) => l.isDownloadingPdf), S = D(
|
|
1622
|
+
(l) => l.dashboardAssistantDraftScopeKey
|
|
1623
|
+
), p = D((l) => l.dashboard), M = D((l) => l.selectedSheetId), L = (kt = p == null ? void 0 : p.sheets) == null ? void 0 : kt.find(
|
|
1624
|
+
(l) => l.id === M
|
|
1625
|
+
), k = na(L), E = k ? (Dt = L == null ? void 0 : L.document) == null ? void 0 : Dt.page : void 0, I = D(
|
|
1626
|
+
(l) => l.isDashboardEditing
|
|
1627
|
+
), { setDashboardTitle: J } = D((l) => l.actions), [$e, q] = N(!1), [ne, z] = N(!1), [oe, se] = N(!1), [Fe, ie] = N(!1), [we, X] = N(null), [Ne, Se] = N(!1), [Be, G] = N(!1), [y, T] = N(null), [de, K] = N([]), [ce, Q] = N(!1), [ke, ht] = N(!1), U = D((l) => l.isVisualEditing);
|
|
1628
|
+
Lt((l) => l.card);
|
|
1629
|
+
const wr = Oe(
|
|
1630
|
+
(l) => l.selectedDashboard
|
|
1631
|
+
), Nr = Oe(
|
|
1632
|
+
(l) => l.initialDashboard
|
|
1633
|
+
);
|
|
1634
|
+
Oe((l) => l.selectedVisual), D((l) => l.selectedFrameId), Lt((l) => l.frame);
|
|
1635
|
+
const pt = D(
|
|
1636
|
+
(l) => l.showDashboardJSON
|
|
1637
|
+
);
|
|
1638
|
+
D((l) => l.onSaveFunction);
|
|
1639
|
+
const { setIsDashboardEditing: ft, setShowDashboardJSON: bt } = D(
|
|
1640
|
+
(l) => l.actions
|
|
1641
|
+
), { setInitialDashboard: gt, clearSelectedDashboard: Ge } = Oe(
|
|
1642
|
+
(l) => l.actions
|
|
1643
|
+
), le = !!n.orgUserId || !!(n.tenantId && n.endUserId && n.endUserEmail), { resources: De } = Pa(Ze.DASHBOARD), { data: Ve } = _a(), Sr = ((Ct = Ve == null ? void 0 : Ve.preference) == null ? void 0 : Ct.defaultDashboardId) || null, { mutate: kr, isPending: Dr } = Ra(), { currentUser: Cr } = ct(), Er = Ua(Cr), V = wr || Nr, Z = Ta({
|
|
1644
|
+
config: n.config,
|
|
1645
|
+
canNavigateDashboardHub: le,
|
|
1646
|
+
canShareDashboard: ((Et = V == null ? void 0 : V.permissions) == null ? void 0 : Et.canShare) === !0,
|
|
1647
|
+
canManageGroups: Er
|
|
1648
|
+
}), xt = V ? {
|
|
1649
|
+
id: V.id,
|
|
1650
|
+
title: (p == null ? void 0 : p.title) || V.title || "Dashboard"
|
|
1651
|
+
} : null, { handleAddNewFrame: Ir } = $a(), [je, He] = N(!1), [Ar, ue] = N(!1), [qe, Ce] = N("close"), me = Fa(Ze.DASHBOARD), [O, he] = N(null), Mr = async (l, P) => {
|
|
1652
|
+
if (!f) {
|
|
1653
|
+
if (!(p != null && p.id)) {
|
|
1654
|
+
console.log("No dashboard ID found");
|
|
1655
|
+
return;
|
|
1656
|
+
}
|
|
1657
|
+
console.log("Updating dashboard title:", {
|
|
1658
|
+
dashboardId: p.id,
|
|
1659
|
+
newTitle: l,
|
|
1660
|
+
previousTitle: P
|
|
1661
|
+
}), me.mutate(
|
|
1662
|
+
{
|
|
1663
|
+
resourceId: p.id,
|
|
1664
|
+
data: { title: l }
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
onSuccess: () => {
|
|
1668
|
+
he(
|
|
1669
|
+
(_) => (_ == null ? void 0 : _.dashboard.id) === p.id ? {
|
|
1670
|
+
..._,
|
|
1671
|
+
dashboard: { ..._.dashboard, title: l }
|
|
1672
|
+
} : _
|
|
1673
|
+
), C.success("Dashboard title updated");
|
|
1674
|
+
},
|
|
1675
|
+
onError: (_) => {
|
|
1676
|
+
console.error("Failed to update dashboard title:", _), C.error("Failed to update dashboard title");
|
|
1677
|
+
const te = D.getState().dashboard;
|
|
1678
|
+
(te == null ? void 0 : te.id) === p.id && te.title === l && J(P);
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
);
|
|
1682
|
+
}
|
|
1683
|
+
};
|
|
1684
|
+
Ue(() => {
|
|
1685
|
+
if (De && De.length > 0) {
|
|
1686
|
+
const l = p == null ? void 0 : p.id;
|
|
1687
|
+
if (l) {
|
|
1688
|
+
const P = De.find(
|
|
1689
|
+
(_) => _.id === l
|
|
1690
|
+
);
|
|
1691
|
+
P && gt(P);
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
}, [De, p == null ? void 0 : p.id, gt]);
|
|
1695
|
+
const Lr = n.orgUserId || n.tenantId, ze = H(
|
|
1696
|
+
() => ko({
|
|
1697
|
+
accessToken: e == null ? void 0 : e.accessToken,
|
|
1698
|
+
dashboardId: (p == null ? void 0 : p.id) || a || n.dashboard_id,
|
|
1699
|
+
selectedSheetId: k ? M : void 0,
|
|
1700
|
+
pageSize: E == null ? void 0 : E.size,
|
|
1701
|
+
orientation: E == null ? void 0 : E.orientation,
|
|
1702
|
+
theme: v
|
|
1703
|
+
}),
|
|
1704
|
+
[
|
|
1705
|
+
e == null ? void 0 : e.accessToken,
|
|
1706
|
+
a,
|
|
1707
|
+
p == null ? void 0 : p.id,
|
|
1708
|
+
k,
|
|
1709
|
+
E == null ? void 0 : E.orientation,
|
|
1710
|
+
E == null ? void 0 : E.size,
|
|
1711
|
+
M,
|
|
1712
|
+
v,
|
|
1713
|
+
n.dashboard_id
|
|
1714
|
+
]
|
|
1715
|
+
), Ke = I && !U && !f && Lr && m, { setDashboard: Qe } = D((l) => l.actions), vt = D(
|
|
1716
|
+
(l) => l.semanticExecutionPayload
|
|
1717
|
+
), Or = () => {
|
|
1718
|
+
ft(!0);
|
|
1719
|
+
}, Ee = () => {
|
|
1720
|
+
ft(!1), bt(!1), he(null);
|
|
1721
|
+
};
|
|
1722
|
+
Ue(() => {
|
|
1723
|
+
if (!I) {
|
|
1724
|
+
O && he(null);
|
|
1725
|
+
return;
|
|
1726
|
+
}
|
|
1727
|
+
O || !p || x || he(
|
|
1728
|
+
Yt(
|
|
1729
|
+
p,
|
|
1730
|
+
vt
|
|
1731
|
+
)
|
|
1732
|
+
);
|
|
1733
|
+
}, [
|
|
1734
|
+
p,
|
|
1735
|
+
O,
|
|
1736
|
+
I,
|
|
1737
|
+
x,
|
|
1738
|
+
vt
|
|
1739
|
+
]);
|
|
1740
|
+
const We = (O == null ? void 0 : O.dashboard) ?? null, { isDirty: Ye, isDirtyPending: Pr, resetDirty: pe } = Dn(
|
|
1741
|
+
p,
|
|
1742
|
+
We,
|
|
1743
|
+
300,
|
|
1744
|
+
1e3,
|
|
1745
|
+
Cn
|
|
1746
|
+
), yt = mn(
|
|
1747
|
+
We,
|
|
1748
|
+
f,
|
|
1749
|
+
m
|
|
1750
|
+
), wt = Ye || Pr, Ie = je || me.isPending, _r = () => {
|
|
1751
|
+
if (f) {
|
|
1752
|
+
O && Qe(O.dashboard, {
|
|
1753
|
+
semanticExecutionPayload: O.semanticExecutionPayload
|
|
1754
|
+
}), Ee(), pe();
|
|
1755
|
+
return;
|
|
1756
|
+
}
|
|
1757
|
+
yt() ? (Ce("close"), ue(!0)) : (Ee(), pe());
|
|
1758
|
+
}, Rr = async () => {
|
|
1759
|
+
await Je({
|
|
1760
|
+
closeAfterSave: !0,
|
|
1761
|
+
navigateHomeAfterSave: qe === "home"
|
|
1762
|
+
});
|
|
1763
|
+
}, Ur = () => {
|
|
1764
|
+
const l = qe === "home" && !!le;
|
|
1765
|
+
O && Qe(O.dashboard, {
|
|
1766
|
+
semanticExecutionPayload: O.semanticExecutionPayload
|
|
1767
|
+
}), Ee(), l && Ge(), Ce("close"), ue(!1), pe();
|
|
1768
|
+
}, Tr = () => {
|
|
1769
|
+
O && (Qe(O.dashboard, {
|
|
1770
|
+
semanticExecutionPayload: O.semanticExecutionPayload
|
|
1771
|
+
}), pe());
|
|
1772
|
+
}, $r = () => {
|
|
1773
|
+
if (le) {
|
|
1774
|
+
if (I && yt()) {
|
|
1775
|
+
Ce("home"), ue(!0);
|
|
1776
|
+
return;
|
|
1777
|
+
}
|
|
1778
|
+
Ge();
|
|
1779
|
+
}
|
|
1780
|
+
};
|
|
1781
|
+
async function Je(l) {
|
|
1782
|
+
if (f)
|
|
1783
|
+
return;
|
|
1784
|
+
const P = D.getState().dashboard;
|
|
1785
|
+
if (!P)
|
|
1786
|
+
return;
|
|
1787
|
+
const _ = (l == null ? void 0 : l.closeAfterSave) ?? ce, te = (l == null ? void 0 : l.navigateHomeAfterSave) ?? !1;
|
|
1788
|
+
Q(_), _ && ue(!1);
|
|
1789
|
+
const jr = st(P);
|
|
1790
|
+
G(!0), T(null), K([]), He(!0);
|
|
1791
|
+
const Hr = {
|
|
1792
|
+
template: P
|
|
1793
|
+
};
|
|
1794
|
+
me.mutate(
|
|
1795
|
+
{
|
|
1796
|
+
resourceId: P.id,
|
|
1797
|
+
data: Hr
|
|
1798
|
+
},
|
|
1799
|
+
{
|
|
1800
|
+
onSuccess: (R) => {
|
|
1801
|
+
var Ae, Me, At;
|
|
1802
|
+
const W = (R == null ? void 0 : R.id) || ((Ae = R == null ? void 0 : R.dashboard) == null ? void 0 : Ae.id) || ((Me = R == null ? void 0 : R.resource) == null ? void 0 : Me.id) || ((At = R == null ? void 0 : R.template) == null ? void 0 : At.id) || null;
|
|
1803
|
+
if (!P.id && W) {
|
|
1804
|
+
const Xe = ia.getState(), Le = Xe.pendingDashboardDraftMigration;
|
|
1805
|
+
(Le == null ? void 0 : Le.scopeKey) === S ? Xe.actions.setPendingDashboardDraftMigrationExpectedDashboardId(
|
|
1806
|
+
W
|
|
1807
|
+
) : Le && Xe.actions.clearPendingDashboardDraftMigration();
|
|
1808
|
+
}
|
|
1809
|
+
He(!1), C.success("Dashboard saved!"), he(
|
|
1810
|
+
Yt(
|
|
1811
|
+
jr,
|
|
1812
|
+
D.getState().semanticExecutionPayload
|
|
1813
|
+
)
|
|
1814
|
+
), G(!1), Q(!1), _ && (Ee(), pe(), te && le && Ge()), Ce("close");
|
|
1815
|
+
},
|
|
1816
|
+
onError: (R) => {
|
|
1817
|
+
He(!1), T("Failed to save dashboard. Please try again.");
|
|
1818
|
+
const W = R.details, Ae = Array.isArray(
|
|
1819
|
+
W == null ? void 0 : W.errors
|
|
1820
|
+
) ? (W.errors || []).filter(
|
|
1821
|
+
(Me) => typeof Me == "string"
|
|
1822
|
+
) : [];
|
|
1823
|
+
K(
|
|
1824
|
+
bo({
|
|
1825
|
+
errors: Ae,
|
|
1826
|
+
dashboard: P || void 0
|
|
1827
|
+
})
|
|
1828
|
+
), C.error("Failed to save dashboard");
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1831
|
+
);
|
|
1832
|
+
}
|
|
1833
|
+
const Nt = p.title;
|
|
1834
|
+
me.isPending && console.log("Title during update:", {
|
|
1835
|
+
title: Nt,
|
|
1836
|
+
dashboardStateTitle: p.title,
|
|
1837
|
+
dashboardId: p == null ? void 0 : p.id
|
|
1838
|
+
});
|
|
1839
|
+
const Fr = le && !!(e != null && e.accessToken) && !!(n != null && n.apiServiceUrl), Br = !f && Z.showDashboardHub && Fr, Gr = !f && s && Z.showDashboardHub, j = (p == null ? void 0 : p.id) || null, St = Ba(
|
|
1840
|
+
(It = n.config) == null ? void 0 : It.showBriefings,
|
|
1841
|
+
r
|
|
1842
|
+
), ee = !!j && Sr === j, Vr = () => {
|
|
1843
|
+
!j || f || kr({
|
|
1844
|
+
dashboardId: ee ? null : j
|
|
1845
|
+
});
|
|
1846
|
+
};
|
|
1847
|
+
return !s && !U ? null : /* @__PURE__ */ i(
|
|
1848
|
+
"div",
|
|
1849
|
+
{
|
|
1850
|
+
className: "flex min-h-11 shrink-0 items-center justify-between gap-2 overflow-x-auto border-b px-4 py-1.5",
|
|
1851
|
+
role: "dashboard-controls",
|
|
1852
|
+
children: [
|
|
1853
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
1854
|
+
Gr && !U && /* @__PURE__ */ t(
|
|
1855
|
+
Tt,
|
|
1856
|
+
{
|
|
1857
|
+
"aria-label": "Dashboard Hub",
|
|
1858
|
+
tooltip: "Dashboard Hub",
|
|
1859
|
+
onClick: $r,
|
|
1860
|
+
className: "h-7 w-7 px-0",
|
|
1861
|
+
buttonProps: { size: "xs" },
|
|
1862
|
+
children: /* @__PURE__ */ t(Ga, { className: "h-3.5 w-3.5" })
|
|
1863
|
+
}
|
|
1864
|
+
),
|
|
1865
|
+
!U && s && (x ? /* @__PURE__ */ t(
|
|
1866
|
+
"div",
|
|
1867
|
+
{
|
|
1868
|
+
className: "h-4 w-28 animate-pulse rounded-md bg-muted/70",
|
|
1869
|
+
"aria-label": "Loading dashboard title",
|
|
1870
|
+
role: "status",
|
|
1871
|
+
children: /* @__PURE__ */ t("span", { className: "sr-only", children: "Loading dashboard title" })
|
|
1872
|
+
}
|
|
1873
|
+
) : /* @__PURE__ */ i(B, { children: [
|
|
1874
|
+
/* @__PURE__ */ t(
|
|
1875
|
+
Va,
|
|
1876
|
+
{
|
|
1877
|
+
value: Nt || "Untitled Dashboard",
|
|
1878
|
+
onSave: (l) => {
|
|
1879
|
+
console.log("EditableText onSave called:", {
|
|
1880
|
+
newTitle: l,
|
|
1881
|
+
canEditDashboard: m,
|
|
1882
|
+
dashboardId: p == null ? void 0 : p.id
|
|
1883
|
+
});
|
|
1884
|
+
const P = (p == null ? void 0 : p.title) || "";
|
|
1885
|
+
J(l), Mr(l, P);
|
|
1886
|
+
},
|
|
1887
|
+
isEditable: ja({
|
|
1888
|
+
isDashboardEditing: I,
|
|
1889
|
+
canEditDashboard: m === !0 && !f
|
|
1890
|
+
}),
|
|
1891
|
+
displayClassName: "text-[13px] font-medium",
|
|
1892
|
+
inputClassName: "text-[13px] font-medium",
|
|
1893
|
+
placeholder: "Dashboard Title",
|
|
1894
|
+
isPending: me.isPending
|
|
1895
|
+
}
|
|
1896
|
+
),
|
|
1897
|
+
Z.showDashboardHub && ee && /* @__PURE__ */ t(
|
|
1898
|
+
"span",
|
|
1899
|
+
{
|
|
1900
|
+
className: "shrink-0 rounded-[4px] border border-border/60 px-1.5 py-px text-[10px] font-medium uppercase tracking-[0.06em] text-muted-foreground",
|
|
1901
|
+
title: "Default dashboard",
|
|
1902
|
+
children: "Default"
|
|
1903
|
+
}
|
|
1904
|
+
),
|
|
1905
|
+
Br && j && /* @__PURE__ */ t(Ot, { children: /* @__PURE__ */ i(Pt, { children: [
|
|
1906
|
+
/* @__PURE__ */ t(_t, { asChild: !0, children: /* @__PURE__ */ t(
|
|
1907
|
+
F,
|
|
1908
|
+
{
|
|
1909
|
+
variant: "ghost",
|
|
1910
|
+
size: "xs",
|
|
1911
|
+
onClick: Vr,
|
|
1912
|
+
disabled: Dr || !(e != null && e.accessToken) || !(n != null && n.apiServiceUrl),
|
|
1913
|
+
className: ge(
|
|
1914
|
+
"w-7 px-0",
|
|
1915
|
+
ee ? "bg-primary/10 text-primary hover:bg-primary/15 hover:text-primary focus-visible:bg-primary/15" : "text-muted-foreground hover:text-foreground"
|
|
1916
|
+
),
|
|
1917
|
+
"aria-pressed": ee,
|
|
1918
|
+
"aria-label": ee ? "Remove as default dashboard" : "Set as default dashboard",
|
|
1919
|
+
children: /* @__PURE__ */ t(Ha, { className: "h-3.5 w-3.5" })
|
|
1920
|
+
}
|
|
1921
|
+
) }),
|
|
1922
|
+
/* @__PURE__ */ t(Rt, { children: /* @__PURE__ */ t("p", { children: ee ? "Remove as default dashboard" : "Set as default dashboard" }) })
|
|
1923
|
+
] }) })
|
|
1924
|
+
] }))
|
|
1925
|
+
] }),
|
|
1926
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
1927
|
+
U && /* @__PURE__ */ i(B, { children: [
|
|
1928
|
+
/* @__PURE__ */ t(hn, {}),
|
|
1929
|
+
/* @__PURE__ */ t(pn, {})
|
|
1930
|
+
] }),
|
|
1931
|
+
!U && s && !f && Z.showDashboardSharing && /* @__PURE__ */ i(
|
|
1932
|
+
F,
|
|
1933
|
+
{
|
|
1934
|
+
variant: "outline",
|
|
1935
|
+
size: "xs",
|
|
1936
|
+
onClick: () => q(!0),
|
|
1937
|
+
children: [
|
|
1938
|
+
/* @__PURE__ */ t(qa, { className: "h-3.5 w-3.5" }),
|
|
1939
|
+
"Share"
|
|
1940
|
+
]
|
|
1941
|
+
}
|
|
1942
|
+
),
|
|
1943
|
+
!U && I && !f && u.canUseFilters && s && /* @__PURE__ */ t(fn, {}),
|
|
1944
|
+
I && !U && !f && s && !k && /* @__PURE__ */ i("div", { className: "inline-flex h-7 items-stretch overflow-hidden rounded-control border border-input bg-background", children: [
|
|
1945
|
+
/* @__PURE__ */ i(
|
|
1946
|
+
F,
|
|
1947
|
+
{
|
|
1948
|
+
variant: "ghost",
|
|
1949
|
+
size: "xs",
|
|
1950
|
+
disabled: !I,
|
|
1951
|
+
onClick: () => void Ir(),
|
|
1952
|
+
className: "h-full rounded-none border-0 shadow-none hover:bg-accent",
|
|
1953
|
+
children: [
|
|
1954
|
+
/* @__PURE__ */ t(re, { className: "h-3.5 w-3.5" }),
|
|
1955
|
+
"Visual"
|
|
1956
|
+
]
|
|
1957
|
+
}
|
|
1958
|
+
),
|
|
1959
|
+
/* @__PURE__ */ i($t, { modal: !1, children: [
|
|
1960
|
+
/* @__PURE__ */ t(Ft, { asChild: !0, children: /* @__PURE__ */ t(
|
|
1961
|
+
F,
|
|
1962
|
+
{
|
|
1963
|
+
variant: "ghost",
|
|
1964
|
+
size: "xs",
|
|
1965
|
+
className: "h-full w-7 rounded-none border-0 border-l border-border/60 px-0 shadow-none hover:bg-accent",
|
|
1966
|
+
"aria-label": "Open visual options",
|
|
1967
|
+
disabled: !I,
|
|
1968
|
+
children: /* @__PURE__ */ t(dn, { className: "h-3.5 w-3.5" })
|
|
1969
|
+
}
|
|
1970
|
+
) }),
|
|
1971
|
+
/* @__PURE__ */ t(
|
|
1972
|
+
Bt,
|
|
1973
|
+
{
|
|
1974
|
+
align: "end",
|
|
1975
|
+
className: "z-[60] w-48 rounded-[6px] border-border/60 p-1 shadow-sm",
|
|
1976
|
+
children: /* @__PURE__ */ i($, { onClick: () => ht(!0), children: [
|
|
1977
|
+
/* @__PURE__ */ t(re, { className: "h-3.5 w-3.5" }),
|
|
1978
|
+
"From library..."
|
|
1979
|
+
] })
|
|
1980
|
+
}
|
|
1981
|
+
)
|
|
1982
|
+
] }),
|
|
1983
|
+
/* @__PURE__ */ t(
|
|
1984
|
+
bn,
|
|
1985
|
+
{
|
|
1986
|
+
open: ke,
|
|
1987
|
+
onOpenChange: ht
|
|
1988
|
+
}
|
|
1989
|
+
)
|
|
1990
|
+
] }),
|
|
1991
|
+
!U && !I && (m || f) && (!g || !h || m !== void 0) && s && /* @__PURE__ */ i("div", { className: "inline-flex items-center gap-1", children: [
|
|
1992
|
+
/* @__PURE__ */ i(F, { size: "xs", onClick: Or, children: [
|
|
1993
|
+
/* @__PURE__ */ t(za, { className: "h-3.5 w-3.5" }),
|
|
1994
|
+
f ? "Inspect" : "Edit"
|
|
1995
|
+
] }),
|
|
1996
|
+
b ? /* @__PURE__ */ t(Ot, { children: /* @__PURE__ */ i(Pt, { children: [
|
|
1997
|
+
/* @__PURE__ */ t(_t, { asChild: !0, children: /* @__PURE__ */ t(
|
|
1998
|
+
"button",
|
|
1999
|
+
{
|
|
2000
|
+
type: "button",
|
|
2001
|
+
"aria-label": b,
|
|
2002
|
+
className: "inline-flex size-6 items-center justify-center rounded-control text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
2003
|
+
children: /* @__PURE__ */ t(oa, { "aria-hidden": "true", className: "size-3.5" })
|
|
2004
|
+
}
|
|
2005
|
+
) }),
|
|
2006
|
+
/* @__PURE__ */ t(Rt, { children: /* @__PURE__ */ t("p", { children: b }) })
|
|
2007
|
+
] }) }) : null
|
|
2008
|
+
] }),
|
|
2009
|
+
Ke && s && Ye && /* @__PURE__ */ t(
|
|
2010
|
+
So,
|
|
2011
|
+
{
|
|
2012
|
+
saved: We,
|
|
2013
|
+
draft: p,
|
|
2014
|
+
enabled: I && !f
|
|
2015
|
+
}
|
|
2016
|
+
),
|
|
2017
|
+
Ke && s && Ye && /* @__PURE__ */ i(
|
|
2018
|
+
F,
|
|
2019
|
+
{
|
|
2020
|
+
variant: "outline",
|
|
2021
|
+
size: "xs",
|
|
2022
|
+
onClick: Tr,
|
|
2023
|
+
disabled: Ie,
|
|
2024
|
+
children: [
|
|
2025
|
+
/* @__PURE__ */ t(Ka, { className: "h-3.5 w-3.5" }),
|
|
2026
|
+
"Undo"
|
|
2027
|
+
]
|
|
2028
|
+
}
|
|
2029
|
+
),
|
|
2030
|
+
Ke && s && /* @__PURE__ */ i(
|
|
2031
|
+
F,
|
|
2032
|
+
{
|
|
2033
|
+
size: "xs",
|
|
2034
|
+
className: ge(!wt && "opacity-60"),
|
|
2035
|
+
disabled: Ie || !wt,
|
|
2036
|
+
onClick: () => Je(),
|
|
2037
|
+
children: [
|
|
2038
|
+
Ie ? /* @__PURE__ */ t(Re, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ t(En, { className: "h-3.5 w-3.5" }),
|
|
2039
|
+
Ie ? "Saving..." : "Save"
|
|
2040
|
+
]
|
|
2041
|
+
}
|
|
2042
|
+
),
|
|
2043
|
+
I && !U && s && /* @__PURE__ */ i(F, { variant: "outline", size: "xs", onClick: _r, children: [
|
|
2044
|
+
/* @__PURE__ */ t(Qa, { className: "h-3.5 w-3.5" }),
|
|
2045
|
+
"Close"
|
|
2046
|
+
] }),
|
|
2047
|
+
!U && s && /* @__PURE__ */ t("div", { className: "ml-2 flex items-center", children: /* @__PURE__ */ t(gn, {}) }),
|
|
2048
|
+
!U && d && /* @__PURE__ */ t($n, {}),
|
|
2049
|
+
!U && s && !f && /* @__PURE__ */ i($t, { children: [
|
|
2050
|
+
/* @__PURE__ */ t(Ft, { asChild: !0, children: /* @__PURE__ */ t(
|
|
2051
|
+
Tt,
|
|
2052
|
+
{
|
|
2053
|
+
tooltip: "More Options",
|
|
2054
|
+
className: "w-7 px-0 text-muted-foreground hover:text-foreground",
|
|
2055
|
+
buttonProps: {
|
|
2056
|
+
size: "xs",
|
|
2057
|
+
variant: "ghost",
|
|
2058
|
+
"aria-label": "More dashboard options"
|
|
2059
|
+
},
|
|
2060
|
+
children: /* @__PURE__ */ t(Wa, { className: "h-3.5 w-3.5" })
|
|
2061
|
+
}
|
|
2062
|
+
) }),
|
|
2063
|
+
/* @__PURE__ */ i(
|
|
2064
|
+
Bt,
|
|
2065
|
+
{
|
|
2066
|
+
align: "end",
|
|
2067
|
+
className: "w-56 rounded-control border border-border/60 p-1 shadow-sm",
|
|
2068
|
+
children: [
|
|
2069
|
+
/* @__PURE__ */ t(Pe, { children: "Reports & briefings" }),
|
|
2070
|
+
/* @__PURE__ */ i(
|
|
2071
|
+
$,
|
|
2072
|
+
{
|
|
2073
|
+
disabled: w,
|
|
2074
|
+
onSelect: () => Se(!0),
|
|
2075
|
+
children: [
|
|
2076
|
+
/* @__PURE__ */ t(Ya, { className: "h-3.5 w-3.5" }),
|
|
2077
|
+
"Export"
|
|
2078
|
+
]
|
|
2079
|
+
}
|
|
2080
|
+
),
|
|
2081
|
+
/* @__PURE__ */ t(
|
|
2082
|
+
xo,
|
|
2083
|
+
{
|
|
2084
|
+
scheduleReportVisible: !!(St && o.surfaceVisible && j && !I),
|
|
2085
|
+
analyticalBriefingVisible: !!(St && o.surfaceVisible && j && !I),
|
|
2086
|
+
onScheduleReport: () => X("scheduled_report"),
|
|
2087
|
+
onCreateAnalyticalBriefing: () => X("analytical_briefing")
|
|
2088
|
+
}
|
|
2089
|
+
),
|
|
2090
|
+
I && /* @__PURE__ */ i(
|
|
2091
|
+
$,
|
|
2092
|
+
{
|
|
2093
|
+
onSelect: () => ie(!0),
|
|
2094
|
+
children: [
|
|
2095
|
+
/* @__PURE__ */ t(Ja, { className: "h-3.5 w-3.5" }),
|
|
2096
|
+
"Download settings"
|
|
2097
|
+
]
|
|
2098
|
+
}
|
|
2099
|
+
),
|
|
2100
|
+
/* @__PURE__ */ t(et, {}),
|
|
2101
|
+
Z.showGroupManagement && /* @__PURE__ */ i(B, { children: [
|
|
2102
|
+
/* @__PURE__ */ t(Pe, { children: "Access" }),
|
|
2103
|
+
/* @__PURE__ */ i(
|
|
2104
|
+
$,
|
|
2105
|
+
{
|
|
2106
|
+
onClick: () => z(!0),
|
|
2107
|
+
children: [
|
|
2108
|
+
/* @__PURE__ */ t(tr, { className: "h-3.5 w-3.5" }),
|
|
2109
|
+
"Manage Groups"
|
|
2110
|
+
]
|
|
2111
|
+
}
|
|
2112
|
+
),
|
|
2113
|
+
/* @__PURE__ */ t(et, {})
|
|
2114
|
+
] }),
|
|
2115
|
+
/* @__PURE__ */ t(Pe, { children: "Preferences" }),
|
|
2116
|
+
/* @__PURE__ */ i($, { onClick: () => se(!0), children: [
|
|
2117
|
+
/* @__PURE__ */ t(rr, { className: "h-3.5 w-3.5" }),
|
|
2118
|
+
"Report preferences"
|
|
2119
|
+
] }),
|
|
2120
|
+
d && s && /* @__PURE__ */ i(B, { children: [
|
|
2121
|
+
/* @__PURE__ */ t(et, {}),
|
|
2122
|
+
/* @__PURE__ */ t(Pe, { children: "Developer" }),
|
|
2123
|
+
/* @__PURE__ */ i(
|
|
2124
|
+
$,
|
|
2125
|
+
{
|
|
2126
|
+
onSelect: () => {
|
|
2127
|
+
var l;
|
|
2128
|
+
e != null && e.accessToken && ((l = navigator == null ? void 0 : navigator.clipboard) != null && l.writeText ? navigator.clipboard.writeText(e.accessToken).then(
|
|
2129
|
+
() => C.success("Token copied to clipboard")
|
|
2130
|
+
).catch(() => C.error("Unable to copy token")) : C.error("Clipboard not available"));
|
|
2131
|
+
},
|
|
2132
|
+
children: [
|
|
2133
|
+
/* @__PURE__ */ t(Gt, { className: "h-3.5 w-3.5" }),
|
|
2134
|
+
"Copy token"
|
|
2135
|
+
]
|
|
2136
|
+
}
|
|
2137
|
+
),
|
|
2138
|
+
k && /* @__PURE__ */ i(
|
|
2139
|
+
$,
|
|
2140
|
+
{
|
|
2141
|
+
disabled: !ze,
|
|
2142
|
+
onSelect: () => {
|
|
2143
|
+
var l;
|
|
2144
|
+
if (!ze) {
|
|
2145
|
+
C.error(
|
|
2146
|
+
"Open a document sheet with a token to copy the local PDF URL"
|
|
2147
|
+
);
|
|
2148
|
+
return;
|
|
2149
|
+
}
|
|
2150
|
+
(l = navigator == null ? void 0 : navigator.clipboard) != null && l.writeText ? navigator.clipboard.writeText(ze).then(
|
|
2151
|
+
() => C.success(
|
|
2152
|
+
"Local document PDF URL copied to clipboard"
|
|
2153
|
+
)
|
|
2154
|
+
).catch(
|
|
2155
|
+
() => C.error(
|
|
2156
|
+
"Unable to copy local document PDF URL"
|
|
2157
|
+
)
|
|
2158
|
+
) : C.error("Clipboard not available");
|
|
2159
|
+
},
|
|
2160
|
+
children: [
|
|
2161
|
+
/* @__PURE__ */ t(Gt, { className: "h-3.5 w-3.5" }),
|
|
2162
|
+
"Copy local document PDF URL"
|
|
2163
|
+
]
|
|
2164
|
+
}
|
|
2165
|
+
),
|
|
2166
|
+
/* @__PURE__ */ i(
|
|
2167
|
+
$,
|
|
2168
|
+
{
|
|
2169
|
+
onSelect: () => sa(n.apiServiceUrl),
|
|
2170
|
+
children: [
|
|
2171
|
+
/* @__PURE__ */ t(On, { className: "h-3.5 w-3.5" }),
|
|
2172
|
+
"Invalidate token"
|
|
2173
|
+
]
|
|
2174
|
+
}
|
|
2175
|
+
),
|
|
2176
|
+
/* @__PURE__ */ i($, { onSelect: c, children: [
|
|
2177
|
+
/* @__PURE__ */ t(In, { className: "h-3.5 w-3.5" }),
|
|
2178
|
+
"Brand Studio"
|
|
2179
|
+
] }),
|
|
2180
|
+
I && /* @__PURE__ */ i(
|
|
2181
|
+
$,
|
|
2182
|
+
{
|
|
2183
|
+
onSelect: () => bt(!pt),
|
|
2184
|
+
children: [
|
|
2185
|
+
/* @__PURE__ */ t(An, { className: "h-3.5 w-3.5" }),
|
|
2186
|
+
pt ? "Hide dashboard JSON" : "Show dashboard JSON"
|
|
2187
|
+
]
|
|
2188
|
+
}
|
|
2189
|
+
)
|
|
2190
|
+
] })
|
|
2191
|
+
]
|
|
2192
|
+
}
|
|
2193
|
+
)
|
|
2194
|
+
] }),
|
|
2195
|
+
$e && xt && /* @__PURE__ */ t(
|
|
2196
|
+
Xa,
|
|
2197
|
+
{
|
|
2198
|
+
resource: xt,
|
|
2199
|
+
resourceType: Ze.DASHBOARD,
|
|
2200
|
+
onClose: () => q(!1)
|
|
2201
|
+
}
|
|
2202
|
+
),
|
|
2203
|
+
Z.showGroupManagement && /* @__PURE__ */ t(
|
|
2204
|
+
so,
|
|
2205
|
+
{
|
|
2206
|
+
open: ne,
|
|
2207
|
+
onOpenChange: z
|
|
2208
|
+
}
|
|
2209
|
+
),
|
|
2210
|
+
/* @__PURE__ */ t(
|
|
2211
|
+
Sn,
|
|
2212
|
+
{
|
|
2213
|
+
open: oe,
|
|
2214
|
+
onOpenChange: se
|
|
2215
|
+
}
|
|
2216
|
+
),
|
|
2217
|
+
/* @__PURE__ */ t(
|
|
2218
|
+
fo,
|
|
2219
|
+
{
|
|
2220
|
+
open: Fe,
|
|
2221
|
+
onOpenChange: ie
|
|
2222
|
+
}
|
|
2223
|
+
),
|
|
2224
|
+
j && we ? /* @__PURE__ */ t(
|
|
2225
|
+
xn,
|
|
2226
|
+
{
|
|
2227
|
+
dashboardId: j,
|
|
2228
|
+
dashboardTitle: (p == null ? void 0 : p.title) || (V == null ? void 0 : V.title),
|
|
2229
|
+
open: !0,
|
|
2230
|
+
onOpenChange: (l) => {
|
|
2231
|
+
l || X(null);
|
|
2232
|
+
},
|
|
2233
|
+
hideTrigger: !0,
|
|
2234
|
+
workflowIntent: we
|
|
2235
|
+
}
|
|
2236
|
+
) : null,
|
|
2237
|
+
s && /* @__PURE__ */ t(
|
|
2238
|
+
Za,
|
|
2239
|
+
{
|
|
2240
|
+
open: Ne,
|
|
2241
|
+
onOpenChange: Se
|
|
2242
|
+
}
|
|
2243
|
+
),
|
|
2244
|
+
/* @__PURE__ */ t(
|
|
2245
|
+
en,
|
|
2246
|
+
{
|
|
2247
|
+
open: Be,
|
|
2248
|
+
onOpenChange: (l) => {
|
|
2249
|
+
!l && je && !y || (G(l), l || (T(null), K([]), Q(!1)));
|
|
2250
|
+
},
|
|
2251
|
+
children: /* @__PURE__ */ i(tn, { className: "max-w-sm", children: [
|
|
2252
|
+
/* @__PURE__ */ i(rn, { children: [
|
|
2253
|
+
/* @__PURE__ */ t(an, { children: y ? "Save failed" : "Saving dashboard" }),
|
|
2254
|
+
/* @__PURE__ */ t(nn, { className: "pt-2", children: y ? "We could not save the dashboard. Please try again." : "Please wait while we save your changes." }),
|
|
2255
|
+
de.length > 0 && /* @__PURE__ */ i("div", { className: "space-y-1 rounded-md border border-destructive/20 bg-destructive/5 p-3 text-left", children: [
|
|
2256
|
+
/* @__PURE__ */ t("div", { className: "text-sm font-medium text-destructive", children: "What needs attention" }),
|
|
2257
|
+
/* @__PURE__ */ t("ul", { className: "list-disc space-y-1 pl-4 text-xs text-muted-foreground", children: de.slice(0, 5).map((l) => /* @__PURE__ */ t("li", { children: l }, l)) })
|
|
2258
|
+
] })
|
|
2259
|
+
] }),
|
|
2260
|
+
/* @__PURE__ */ t(on, { className: "flex-col gap-2 sm:flex-row sm:justify-end", children: y ? /* @__PURE__ */ i(B, { children: [
|
|
2261
|
+
/* @__PURE__ */ t(
|
|
2262
|
+
sn,
|
|
2263
|
+
{
|
|
2264
|
+
onClick: () => {
|
|
2265
|
+
G(!1), T(null), K([]), Q(!1);
|
|
2266
|
+
},
|
|
2267
|
+
className: "m-0",
|
|
2268
|
+
children: "Close"
|
|
2269
|
+
}
|
|
2270
|
+
),
|
|
2271
|
+
/* @__PURE__ */ t(
|
|
2272
|
+
Vt,
|
|
2273
|
+
{
|
|
2274
|
+
onClick: () => Je({
|
|
2275
|
+
closeAfterSave: ce,
|
|
2276
|
+
navigateHomeAfterSave: qe === "home"
|
|
2277
|
+
}),
|
|
2278
|
+
className: "m-0",
|
|
2279
|
+
children: "Retry"
|
|
2280
|
+
}
|
|
2281
|
+
)
|
|
2282
|
+
] }) : /* @__PURE__ */ i(Vt, { disabled: !0, className: "m-0 cursor-default", children: [
|
|
2283
|
+
/* @__PURE__ */ t(Re, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
2284
|
+
"Saving..."
|
|
2285
|
+
] }) })
|
|
2286
|
+
] })
|
|
2287
|
+
}
|
|
2288
|
+
),
|
|
2289
|
+
/* @__PURE__ */ t(
|
|
2290
|
+
vn,
|
|
2291
|
+
{
|
|
2292
|
+
open: Ar,
|
|
2293
|
+
onOpenChange: (l) => {
|
|
2294
|
+
ue(l);
|
|
2295
|
+
},
|
|
2296
|
+
onSave: Rr,
|
|
2297
|
+
onDiscard: Ur,
|
|
2298
|
+
isSaving: je,
|
|
2299
|
+
saveLabel: "Save",
|
|
2300
|
+
discardLabel: "Discard changes"
|
|
2301
|
+
}
|
|
2302
|
+
)
|
|
2303
|
+
] })
|
|
2304
|
+
]
|
|
2305
|
+
}
|
|
2306
|
+
);
|
|
2307
|
+
}
|
|
2308
|
+
function ko({
|
|
2309
|
+
accessToken: e,
|
|
2310
|
+
dashboardId: n,
|
|
2311
|
+
selectedSheetId: a,
|
|
2312
|
+
pageSize: r,
|
|
2313
|
+
orientation: o,
|
|
2314
|
+
theme: d
|
|
2315
|
+
}) {
|
|
2316
|
+
if (!e || !a)
|
|
2317
|
+
return null;
|
|
2318
|
+
const m = new URL("http://localhost:5173/print-document");
|
|
2319
|
+
m.searchParams.set("token", e), n && m.searchParams.set("dashboardId", n), m.searchParams.set("selectedSheetId", a), d && m.searchParams.set("theme", d);
|
|
2320
|
+
const h = new URL("http://127.0.0.1:3002/");
|
|
2321
|
+
return h.searchParams.set("pdfMode", "document"), h.searchParams.set("pageSize", r || "letter"), h.searchParams.set("orientation", o || "portrait"), h.searchParams.set("url", m.toString()), h.toString();
|
|
2322
|
+
}
|
|
2323
|
+
export {
|
|
2324
|
+
Qo as default
|
|
2325
|
+
};
|