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