react-semaphor 0.1.532 → 0.1.534
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-protocol/index.js +210 -207
- package/dist/brand-studio/index.js +3 -3
- package/dist/briefings/index.js +21 -21
- package/dist/chunks/bookmark-state-B-I9BDD0.js +331 -0
- package/dist/chunks/{calculated-field-identity-Q1aCudPD.js → calculated-field-identity-Cz1ZU_UL.js} +140 -188
- package/dist/chunks/calendar-day-equality-BRjN1S9h.js +383 -0
- package/dist/chunks/{card-config-utils-DqyASiD_.js → card-config-utils-BlIiFn0O.js} +25 -25
- package/dist/chunks/common-types-g7yS12Cg.js +114 -0
- package/dist/chunks/{dashboard-BoSKlMPx.js → dashboard-CCK80YKL.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BR5llbxb.js → dashboard-briefing-launcher-B9Fq2Rf3.js} +1382 -1363
- package/dist/chunks/dashboard-controls-CoiTGnEr.js +2325 -0
- package/dist/chunks/{dashboard-json-Ez0I7b2H.js → dashboard-json-BRGozO--.js} +3 -3
- package/dist/chunks/{edit-dashboard-visual-DpGb6dpY.js → edit-dashboard-visual-CZFnhGZQ.js} +8377 -8605
- package/dist/chunks/{editor-action-buttons--SQ3CcBI.js → editor-action-buttons-CVtSO3I3.js} +428 -431
- package/dist/chunks/{field-aggregations-BCDRRYMo.js → field-aggregations-CoLzYHeL.js} +371 -474
- package/dist/chunks/field-dependencies-CpRUwr9J.js +281 -0
- package/dist/chunks/{index-BpAM7UE0.js → index-BQl5rC54.js} +404 -402
- package/dist/chunks/{matrix-analytical-definition-Q4GL16S4.js → matrix-analytical-definition-CgBTD6H8.js} +1 -1
- package/dist/chunks/{matrix-card-CkfMe-h-.js → matrix-card-CAdizkUl.js} +2 -2
- package/dist/chunks/{matrix-control-sources-fD0Ns_9n.js → matrix-control-sources-Tls-h3AN.js} +22 -22
- package/dist/chunks/{matrix-definition-CiGRzEzt.js → matrix-definition-D9iShKZI.js} +1 -1
- package/dist/chunks/{matrix-formatter-DDjECnMd.js → matrix-formatter-DJCk8Znf.js} +7 -6
- package/dist/chunks/matrix-member-presentation-Ct8GuxHt.js +209 -0
- package/dist/chunks/{matrix-operation-contract-BotZ-6zT.js → matrix-operation-contract-BKupLHXL.js} +89 -89
- package/dist/chunks/{metric-comparison-QEkk6hqL.js → metric-comparison-BKHyvnAy.js} +4 -4
- package/dist/chunks/{numeric-presentation-D2I9znLM.js → numeric-presentation-CWu3gunq.js} +1 -1
- package/dist/chunks/pivot-header-presentation-CHs2GFrM.js +753 -0
- package/dist/chunks/{pivot-result-identity-BhAm8MCg.js → pivot-result-identity-Bs4tLtLo.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-BxmATSFJ.js → pivot-result-lifecycle-DQz_gjGu.js} +8 -8
- package/dist/chunks/{raw-temporal-contract-BlyUGV3y.js → raw-temporal-contract-mLFS-9wk.js} +1 -1
- package/dist/chunks/{raw-temporal-B0EuwEHr.js → raw-temporal-iMXRK-Qz.js} +2 -2
- package/dist/chunks/{report-preferences-dialog-Cv_2GMlz.js → report-preferences-dialog-CWdTlWsr.js} +115 -115
- package/dist/chunks/{report-runtime-context-DceiWMKz.js → report-runtime-context-CG_I0PPW.js} +1 -1
- package/dist/chunks/{selection-reducer-DQok8gsC.js → selection-reducer-CiDEtmAq.js} +14 -14
- package/dist/chunks/{semantic-format-ByNkXJpY.js → semantic-format-DiqYeKwU.js} +3 -3
- package/dist/chunks/{semaphor-ready-indicator-lALyc-pQ.js → semaphor-ready-indicator-z4SNdxiC.js} +65118 -64011
- package/dist/chunks/slider-DbwmuVB-.js +875 -0
- package/dist/chunks/{source-entity-resolution-BWmw7a8P.js → source-entity-resolution-C-oNyYMp.js} +1 -1
- package/dist/chunks/{switch-CCOKraBb.js → switch-BR3Xgbqr.js} +7237 -5818
- package/dist/chunks/{temporal-bucket-contract-CdBtoHX2.js → temporal-bucket-contract-D2OuaVZ7.js} +1 -1
- package/dist/chunks/{temporal-input-presentation-wUO681Zs.js → temporal-input-presentation-BD7YNUzu.js} +9 -9
- package/dist/chunks/{token-types-Brc30mNN.js → token-types-DtSJOUjh.js} +1 -1
- package/dist/chunks/{validators-BS521dum.js → validators-DMSH81OM.js} +654 -639
- package/dist/chunks/zoned-wall-clock-1qlWCE20.js +129 -0
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +116 -112
- package/dist/data-app-sdk/index.js +5 -5
- package/dist/data-app-sdk-adapters/index.js +2 -2
- package/dist/data-app-sdk-validation/index.js +7 -7
- package/dist/format-utils/index.js +146 -141
- package/dist/index.js +174 -171
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings/index.d.ts +0 -1
- package/dist/types/components/surfboard/filter/types.d.ts +9 -0
- package/dist/types/components/ui-custom/date-range-presets.d.ts +5 -1
- package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +8 -0
- package/dist/types/components/visual/data-table/types/data-table.d.ts +11 -0
- package/dist/types/components/visual/shared/utils/table-column-order.d.ts +15 -0
- package/dist/types/index.js +47 -29
- package/dist/types/lib/api/exports-api.d.ts +30 -3
- package/dist/types/lib/dashboard-viewer/export-table-view.d.ts +43 -0
- package/dist/types/lib/dashboard-viewer/table-view-edit.d.ts +14 -0
- package/dist/types/lib/dashboard-viewer/table-view.d.ts +150 -0
- package/dist/types/lib/dashboard-viewer/use-table-view.d.ts +51 -0
- package/dist/types/lib/dashboard-viewer/viewer-state-client.d.ts +72 -0
- package/dist/types/lib/dashboard-viewer/viewer-state.d.ts +212 -0
- package/dist/types/lib/dashboard-viewer/viewer-store-state.d.ts +44 -0
- package/dist/types/lib/download-pdf.d.ts +9 -1
- package/dist/types/lib/exports/bounded-request.d.ts +12 -0
- package/dist/types/lib/hooks/index.d.ts +1 -2
- package/dist/types/lib/hooks/use-dashboard-query.d.ts +2 -0
- package/dist/types/lib/hooks/use-dashboard.d.ts +5 -1
- package/dist/types/lib/hooks/use-date-filter.d.ts +3 -3
- package/dist/types/lib/hooks/use-export-polling.d.ts +9 -1
- package/dist/types/lib/query-context/build-card-query-context.d.ts +9 -1
- package/dist/types/lib/stores/dashboard-store.d.ts +76 -1
- package/dist/types/lib/stores/editor-store.d.ts +0 -4
- package/dist/types/lib/stores/export-store.d.ts +11 -0
- package/dist/types/lib/table-formatting/table-totals-settings.d.ts +5 -1
- package/dist/types/lib/types/common-types.d.ts +10 -0
- package/dist/types/lib/types/index.d.ts +1 -0
- package/dist/types/lib/utils/filter-default-value-utils.d.ts +11 -4
- package/dist/types/lib/utils.d.ts +1 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +1 -0
- package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +7 -0
- package/dist/types/shared/analytics-protocol/sort-target.d.ts +40 -0
- package/dist/types/shared/dashboard-authoring/dashboard-filter-value-compatibility.d.ts +9 -0
- package/dist/types/shared/dashboard-viewer/bookmark-state.d.ts +35 -0
- package/dist/types/shared/dashboard-viewer/index.d.ts +3 -0
- package/dist/types/shared/dashboard-viewer/table-settings.d.ts +89 -0
- package/dist/types/shared/dashboard-viewer/viewer-contract.d.ts +95 -0
- package/dist/types/shared/format-utils/filter-line.d.ts +47 -0
- package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +6 -0
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +28 -4
- package/package.json +2 -2
- package/dist/chunks/calendar-day-equality-Ddkpfhot.js +0 -466
- package/dist/chunks/common-types-C6cAQgyh.js +0 -9
- package/dist/chunks/dashboard-controls-4Thl0eL1.js +0 -2194
- package/dist/chunks/field-dependencies-BWStuMxe.js +0 -178
- package/dist/chunks/matrix-member-presentation-Glhem6xB.js +0 -182
- package/dist/chunks/pivot-header-presentation-BTOXdU6S.js +0 -618
- package/dist/chunks/slider-DlRYiI2m.js +0 -876
- package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +0 -46
- package/dist/types/components/ai/assistant-context-entity-controls.d.ts +0 -25
- package/dist/types/components/ai/assistant-message-components.d.ts +0 -59
- package/dist/types/components/ai/assistant-message.d.ts +0 -10
- package/dist/types/components/ai/assistant-virtualized-messages.d.ts +0 -21
- package/dist/types/components/ai/chat-custom-visual.d.ts +0 -21
- package/dist/types/components/ai/chat-input-with-context.d.ts +0 -16
- package/dist/types/components/ai/chat-input.d.ts +0 -11
- package/dist/types/components/ai/chat-visual-query-utils.d.ts +0 -68
- package/dist/types/components/ai/chat-visual.d.ts +0 -12
- package/dist/types/components/ai/clarification-card.d.ts +0 -20
- package/dist/types/components/ai/context-entity-display.d.ts +0 -10
- package/dist/types/components/ai/dashboard-assistant.d.ts +0 -27
- package/dist/types/components/ai/debug-message-array.d.ts +0 -1
- package/dist/types/components/ai/editor-assistant.d.ts +0 -7
- package/dist/types/components/ai/entity-mention-dropdown.d.ts +0 -16
- package/dist/types/components/ai/file-upload/file-preview.d.ts +0 -15
- package/dist/types/components/ai/file-upload/file-upload-button.d.ts +0 -10
- package/dist/types/components/ai/file-upload/file-upload-zone.d.ts +0 -11
- package/dist/types/components/ai/file-upload/file-utils.d.ts +0 -63
- package/dist/types/components/ai/highlighted-input.d.ts +0 -22
- package/dist/types/components/ai/message-feedback-buttons.d.ts +0 -9
- package/dist/types/components/ai/pending-messages-display.d.ts +0 -7
- package/dist/types/components/ai/placeholders.d.ts +0 -8
- package/dist/types/components/ai/pre-block.d.ts +0 -30
- package/dist/types/components/ai/quick-replies.d.ts +0 -8
- package/dist/types/components/ai/reasoning-effort-slider.d.ts +0 -7
- package/dist/types/components/ai/seed-questions.d.ts +0 -6
- package/dist/types/components/ai/tool-call-error.d.ts +0 -8
- package/dist/types/components/ai/tool-call.d.ts +0 -12
- package/dist/types/components/ai/tool-output-errors.d.ts +0 -2
- package/dist/types/components/ai/tool-part-renderer.d.ts +0 -32
- package/dist/types/components/appearance/dashboard-appearance-adapter.d.ts +0 -17
- package/dist/types/components/appearance/surface-appearance-adapter.d.ts +0 -21
- package/dist/types/components/briefings/attachments/briefing-attachment-list.d.ts +0 -9
- package/dist/types/components/briefings/attachments/briefing-attachment-selector.d.ts +0 -27
- package/dist/types/components/briefings/attachments/briefing-attachment-settings-dialog.d.ts +0 -16
- package/dist/types/components/briefings/briefing-author/attachment-section.d.ts +0 -20
- package/dist/types/components/briefings/briefing-author/author-actions.d.ts +0 -25
- package/dist/types/components/briefings/briefing-author/content-composers.d.ts +0 -9
- package/dist/types/components/briefings/briefing-author/defaults.d.ts +0 -1
- package/dist/types/components/briefings/briefing-author/delivery-section.d.ts +0 -56
- package/dist/types/components/briefings/briefing-author/form-primitives.d.ts +0 -20
- package/dist/types/components/briefings/briefing-author/output.d.ts +0 -2
- package/dist/types/components/briefings/briefing-author/presentation-vocabulary.d.ts +0 -17
- package/dist/types/components/briefings/briefing-author/schedule-model.d.ts +0 -13
- package/dist/types/components/briefings/briefing-author/schedule-section.d.ts +0 -5
- package/dist/types/components/briefings/briefing-author/schedule.d.ts +0 -8
- package/dist/types/components/briefings/briefing-author/scope-picker.d.ts +0 -14
- package/dist/types/components/briefings/briefing-author/slack-channel-picker.d.ts +0 -22
- package/dist/types/components/briefings/briefing-author/styles.d.ts +0 -4
- package/dist/types/components/briefings/briefing-html-frame.d.ts +0 -5
- package/dist/types/components/briefings/briefing-recipient-field.d.ts +0 -17
- package/dist/types/components/briefings/briefing-tones.d.ts +0 -30
- package/dist/types/components/briefings/dashboard-briefing-launcher-list.d.ts +0 -25
- package/dist/types/components/briefings/dashboard-briefing-launcher-model.d.ts +0 -14
- package/dist/types/components/briefings/dashboard-schedule-report-menu-item.d.ts +0 -11
- package/dist/types/components/calculated-fields/ai-compose-panel.d.ts +0 -19
- package/dist/types/components/calculated-fields/calculated-field-editor-utils.d.ts +0 -44
- package/dist/types/components/calculated-fields/calculated-field-editor.d.ts +0 -27
- package/dist/types/components/calculated-fields/domain-definition-notice.d.ts +0 -4
- package/dist/types/components/calculated-fields/expression-validator.d.ts +0 -8
- package/dist/types/components/calculated-fields/field-picker-panel.d.ts +0 -20
- package/dist/types/components/calculated-fields/field-type-toggle.d.ts +0 -7
- package/dist/types/components/calculated-fields/index.d.ts +0 -10
- package/dist/types/components/calculated-fields/insert-field-popover.d.ts +0 -18
- package/dist/types/components/calculated-fields/placeholder-field-picker.d.ts +0 -30
- package/dist/types/components/calculated-fields/summary-ribbon.d.ts +0 -23
- package/dist/types/components/calculated-fields/templates-menu.d.ts +0 -11
- package/dist/types/components/calculated-fields/validation-results.d.ts +0 -4
- package/dist/types/components/calculated-fields/validation-tooltip-content.d.ts +0 -4
- package/dist/types/components/chart-selector/chart-icon.d.ts +0 -37
- package/dist/types/components/chart-selector/chart-selector-item.d.ts +0 -18
- package/dist/types/components/chart-selector/chart-selector.d.ts +0 -25
- package/dist/types/components/chart-selector/chart-type-picker.d.ts +0 -12
- package/dist/types/components/chart-selector/index.d.ts +0 -4
- package/dist/types/components/chart-selector/use-chart-selector-model.d.ts +0 -18
- package/dist/types/components/dashboard/card-actions-menu.d.ts +0 -10
- package/dist/types/components/dashboard/card-selection-pill.d.ts +0 -5
- package/dist/types/components/dashboard/comparison-badge-state.d.ts +0 -3
- package/dist/types/components/dashboard/comparison-metadata-badge.d.ts +0 -11
- package/dist/types/components/dashboard/dashboard-card.d.ts +0 -17
- package/dist/types/components/dashboard/dashboard-container.d.ts +0 -9
- package/dist/types/components/dashboard/dashboard-error-state.d.ts +0 -9
- package/dist/types/components/dashboard/dashboard-frame-expand-dialog.d.ts +0 -5
- package/dist/types/components/dashboard/dashboard-frame.d.ts +0 -14
- package/dist/types/components/dashboard/dashboard-hub-row.d.ts +0 -18
- package/dist/types/components/dashboard/dashboard-hub-sort.d.ts +0 -8
- package/dist/types/components/dashboard/dashboard-hub.d.ts +0 -5
- package/dist/types/components/dashboard/dashboard-tabs.d.ts +0 -1
- package/dist/types/components/dashboard/dashboard-visual-error-state.d.ts +0 -20
- package/dist/types/components/dashboard/download-pdf.d.ts +0 -10
- package/dist/types/components/dashboard/drill-breadcrumb.d.ts +0 -7
- package/dist/types/components/dashboard/drill-navigation-controls.d.ts +0 -13
- package/dist/types/components/dashboard/inline-filter-bar.d.ts +0 -17
- package/dist/types/components/dashboard/inline-filter-component.d.ts +0 -30
- package/dist/types/components/dashboard/kpi-header.d.ts +0 -2
- package/dist/types/components/dashboard/semaphor-style-wrapper.d.ts +0 -3
- package/dist/types/components/dashboard/sheet/delete-sheet-alert.d.ts +0 -6
- package/dist/types/components/dashboard/sheet/layout-change-guard.d.ts +0 -6
- package/dist/types/components/dashboard/sheet/sheet-empty-state.d.ts +0 -5
- package/dist/types/components/dashboard/sheet/sheet-layout.d.ts +0 -5
- package/dist/types/components/dashboard/sheet/sheet-layout_backup.d.ts +0 -0
- package/dist/types/components/dashboard/summary-warning-utils.d.ts +0 -6
- package/dist/types/components/dashboard/unconfigured-card-state.d.ts +0 -21
- package/dist/types/components/document-sheet/document-control-options-resolver.d.ts +0 -9
- package/dist/types/components/document-sheet/document-control-toolbar-actions.d.ts +0 -12
- package/dist/types/components/document-sheet/document-input-bar.d.ts +0 -30
- package/dist/types/components/document-sheet/document-insert-picker.d.ts +0 -37
- package/dist/types/components/document-sheet/document-inspector-primitives.d.ts +0 -10
- package/dist/types/components/document-sheet/document-kpi-section.d.ts +0 -17
- package/dist/types/components/document-sheet/document-matrix-layout-context.d.ts +0 -10
- package/dist/types/components/document-sheet/document-matrix-section.d.ts +0 -27
- package/dist/types/components/document-sheet/document-measure-layer.d.ts +0 -45
- package/dist/types/components/document-sheet/document-outline.d.ts +0 -21
- package/dist/types/components/document-sheet/document-page-navigation.d.ts +0 -22
- package/dist/types/components/document-sheet/document-page.d.ts +0 -68
- package/dist/types/components/document-sheet/document-panel/document-side-panel.d.ts +0 -36
- package/dist/types/components/document-sheet/document-panel/inputs-panel.d.ts +0 -9
- package/dist/types/components/document-sheet/document-panel/page-panel.d.ts +0 -5
- package/dist/types/components/document-sheet/document-panel/panel-controls.d.ts +0 -14
- package/dist/types/components/document-sheet/document-panel/region-panels.d.ts +0 -11
- package/dist/types/components/document-sheet/document-panel/section-panel.d.ts +0 -25
- package/dist/types/components/document-sheet/document-section-print-boundary.d.ts +0 -9
- package/dist/types/components/document-sheet/document-sheet.d.ts +0 -10
- package/dist/types/components/document-sheet/document-table-chrome.d.ts +0 -22
- package/dist/types/components/document-sheet/document-table-section.d.ts +0 -28
- package/dist/types/components/document-sheet/document-text-editor.d.ts +0 -8
- package/dist/types/components/document-sheet/document-text-preview-context.d.ts +0 -8
- package/dist/types/components/document-sheet/use-first-fitting-variant.d.ts +0 -18
- package/dist/types/components/editor/dashboard-json.d.ts +0 -1
- package/dist/types/components/editor/editable.d.ts +0 -14
- package/dist/types/components/editor/editor-main/card-display-options-dropdown.d.ts +0 -7
- package/dist/types/components/editor/editor-main/card-tabs.d.ts +0 -16
- package/dist/types/components/editor/editor-main/chart-configuration-options.d.ts +0 -1
- package/dist/types/components/editor/editor-main/clear-card-utils.d.ts +0 -2
- package/dist/types/components/editor/editor-main/code-editors/expanded-query-editor-dialog.d.ts +0 -14
- package/dist/types/components/editor/editor-main/code-editors/json-editor-readonly.d.ts +0 -3
- package/dist/types/components/editor/editor-main/code-editors/python-editor.d.ts +0 -2
- package/dist/types/components/editor/editor-main/code-editors/sql-editor.d.ts +0 -6
- package/dist/types/components/editor/editor-main/code-editors/use-query-editor-session-transfer.d.ts +0 -17
- package/dist/types/components/editor/editor-main/content-editable-text.d.ts +0 -11
- package/dist/types/components/editor/editor-main/context-hover-card.d.ts +0 -2
- package/dist/types/components/editor/editor-main/customize-visual/customize-chart-config.d.ts +0 -7
- package/dist/types/components/editor/editor-main/customize-visual/customize-visual-dialog.d.ts +0 -7
- package/dist/types/components/editor/editor-main/dashboard-filter-subscription-status.d.ts +0 -6
- package/dist/types/components/editor/editor-main/dashboard-variable-node.d.ts +0 -39
- package/dist/types/components/editor/editor-main/data-label-settings.d.ts +0 -5
- package/dist/types/components/editor/editor-main/edit-dashboard-visual.d.ts +0 -2
- package/dist/types/components/editor/editor-main/editor-action-buttons.d.ts +0 -28
- package/dist/types/components/editor/editor-main/editor-actions-biz-mode.d.ts +0 -1
- package/dist/types/components/editor/editor-main/editor-card.d.ts +0 -4
- package/dist/types/components/editor/editor-main/editor-chart-config-execution.d.ts +0 -6
- package/dist/types/components/editor/editor-main/editor-main-component.d.ts +0 -1
- package/dist/types/components/editor/editor-main/editor-query-section.d.ts +0 -11
- package/dist/types/components/editor/editor-main/editor-visual-dropdown.d.ts +0 -0
- package/dist/types/components/editor/editor-main/editor-visual-section.d.ts +0 -23
- package/dist/types/components/editor/editor-main/inline-query-writer/inline-query-writer-constants.d.ts +0 -7
- package/dist/types/components/editor/editor-main/inline-query-writer/inline-query-writer-prompts.d.ts +0 -19
- package/dist/types/components/editor/editor-main/inline-query-writer/inline-query-writer-telemetry.d.ts +0 -2
- package/dist/types/components/editor/editor-main/inline-query-writer/inline-query-writer-types.d.ts +0 -48
- package/dist/types/components/editor/editor-main/inline-query-writer/inline-query-writer-utils.d.ts +0 -11
- package/dist/types/components/editor/editor-main/inline-query-writer/inline-query-writer.d.ts +0 -2
- package/dist/types/components/editor/editor-main/legend-popover.d.ts +0 -1
- package/dist/types/components/editor/editor-main/raw-output-table.d.ts +0 -15
- package/dist/types/components/editor/editor-main/realtime-popover.d.ts +0 -1
- package/dist/types/components/editor/editor-main/table-type-switcher.d.ts +0 -5
- package/dist/types/components/editor/editor-main/text-card-rich-editor.d.ts +0 -25
- package/dist/types/components/editor/editor-main/text-card.d.ts +0 -10
- package/dist/types/components/editor/editor-main/use-editor-clear-action.d.ts +0 -1
- package/dist/types/components/editor/editor-main/visual-aside.d.ts +0 -5
- package/dist/types/components/editor/editor-main/visual-save-as-dialog.d.ts +0 -18
- package/dist/types/components/editor/editor-main/visual-settings.d.ts +0 -9
- package/dist/types/components/editor/mode-toggle.d.ts +0 -13
- package/dist/types/components/editor/query-feedback/query-card-details.d.ts +0 -14
- package/dist/types/components/editor/query-feedback/query-error.d.ts +0 -42
- package/dist/types/components/editor/query-feedback/query-feedback-layout.d.ts +0 -10
- package/dist/types/components/editor/query-feedback/query-info-clipboard.d.ts +0 -3
- package/dist/types/components/editor/query-feedback/query-info.d.ts +0 -21
- package/dist/types/components/editor/query-feedback/query-sql-preview.d.ts +0 -23
- package/dist/types/components/editor/query-feedback/use-query-error-feedback.d.ts +0 -7
- package/dist/types/components/editor/query-feedback/use-query-error.d.ts +0 -16
- package/dist/types/components/editor/query-feedback/visual-query-error-state.d.ts +0 -5
- package/dist/types/components/editor/utils/utils.d.ts +0 -2
- package/dist/types/components/error-fallbacks/delivery-render-error.d.ts +0 -7
- package/dist/types/components/error-fallbacks/fallback.d.ts +0 -31
- package/dist/types/components/error-fallbacks/render-reset-error-boundary.d.ts +0 -33
- package/dist/types/components/explorer/chart-configuration/area-series-config-section.d.ts +0 -5
- package/dist/types/components/explorer/chart-configuration/axis-config-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/bar-series-config-section.d.ts +0 -5
- package/dist/types/components/explorer/chart-configuration/bar-style-config-section.d.ts +0 -7
- package/dist/types/components/explorer/chart-configuration/bubble-scatter-config-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/bullet-config-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/chart-config-sections.d.ts +0 -15
- package/dist/types/components/explorer/chart-configuration/chart-configuration-panel.d.ts +0 -18
- package/dist/types/components/explorer/chart-configuration/chart-fields-configuration.d.ts +0 -22
- package/dist/types/components/explorer/chart-configuration/chart-type-row.d.ts +0 -25
- package/dist/types/components/explorer/chart-configuration/color-config-section.d.ts +0 -18
- package/dist/types/components/explorer/chart-configuration/combo-series-config-section.d.ts +0 -6
- package/dist/types/components/explorer/chart-configuration/comparison-config-section.d.ts +0 -7
- package/dist/types/components/explorer/chart-configuration/custom-color-picker.d.ts +0 -7
- package/dist/types/components/explorer/chart-configuration/data-labels-config-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/data-labels-fields.d.ts +0 -21
- package/dist/types/components/explorer/chart-configuration/funnel-config-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/heatmap-color-config-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/kpi-format-config-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/legend-config-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/line-series-config-section.d.ts +0 -5
- package/dist/types/components/explorer/chart-configuration/line-style-config-section.d.ts +0 -7
- package/dist/types/components/explorer/chart-configuration/matrix-authoring-controls.d.ts +0 -41
- package/dist/types/components/explorer/chart-configuration/matrix-authoring-panel.d.ts +0 -21
- package/dist/types/components/explorer/chart-configuration/matrix-editor-settings.d.ts +0 -5
- package/dist/types/components/explorer/chart-configuration/metric-format-editor.d.ts +0 -12
- package/dist/types/components/explorer/chart-configuration/number-format-config.d.ts +0 -18
- package/dist/types/components/explorer/chart-configuration/number-format-config.utils.d.ts +0 -11
- package/dist/types/components/explorer/chart-configuration/stacked-sort-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/summary-config-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/tooltip-format-config-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/treemap-color-mode-section.d.ts +0 -1
- package/dist/types/components/explorer/chart-configuration/use-effective-card-type.d.ts +0 -1
- package/dist/types/components/explorer/data-source/add-data-picker.d.ts +0 -23
- package/dist/types/components/explorer/data-source/data-source-panel.d.ts +0 -6
- package/dist/types/components/explorer/data-source/dataset-selector-popover.d.ts +0 -11
- package/dist/types/components/explorer/data-source/db-schema-selector.d.ts +0 -8
- package/dist/types/components/explorer/data-source/direct-source-tree.d.ts +0 -10
- package/dist/types/components/explorer/data-source/entity-tooltip.d.ts +0 -14
- package/dist/types/components/explorer/data-source/file-upload-manager.d.ts +0 -1
- package/dist/types/components/explorer/data-source/select-data-dialog.d.ts +0 -6
- package/dist/types/components/explorer/data-source/selected-entities-summary.d.ts +0 -15
- package/dist/types/components/explorer/data-source/semantic-domain-access-utils.d.ts +0 -10
- package/dist/types/components/explorer/data-source/semantic-domain-selection.d.ts +0 -9
- package/dist/types/components/explorer/data-source/semantic-domain-tree.d.ts +0 -22
- package/dist/types/components/explorer/data-source/url-source-manager.d.ts +0 -1
- package/dist/types/components/explorer/data-source/utils.d.ts +0 -11
- package/dist/types/components/explorer/drag-and-drop/attribute-filter-dialog.d.ts +0 -11
- package/dist/types/components/explorer/drag-and-drop/data-concept-tooltip.d.ts +0 -17
- package/dist/types/components/explorer/drag-and-drop/drag-overlay.d.ts +0 -12
- package/dist/types/components/explorer/drag-and-drop/draggable-field-shell.d.ts +0 -15
- package/dist/types/components/explorer/drag-and-drop/draggable-field.d.ts +0 -13
- package/dist/types/components/explorer/drag-and-drop/droppable-zone.d.ts +0 -13
- package/dist/types/components/explorer/drag-and-drop/inline-edit-field.d.ts +0 -10
- package/dist/types/components/explorer/drag-and-drop/matrix-draggable-field.d.ts +0 -5
- package/dist/types/components/explorer/drag-and-drop/pivot-alias-template-editor.d.ts +0 -6
- package/dist/types/components/explorer/drag-and-drop/pivot-member-order-visibility.d.ts +0 -3
- package/dist/types/components/explorer/drag-and-drop/pivot-value-aliases-editor.d.ts +0 -6
- package/dist/types/components/explorer/fields/field-expression-annotation.d.ts +0 -15
- package/dist/types/components/explorer/fields/field-group.d.ts +0 -0
- package/dist/types/components/explorer/fields/field-hover-preview.d.ts +0 -10
- package/dist/types/components/explorer/fields/field-option-list.d.ts +0 -54
- package/dist/types/components/explorer/fields/field-row.d.ts +0 -39
- package/dist/types/components/explorer/fields/fields-list.d.ts +0 -10
- package/dist/types/components/explorer/fields/fields-section.d.ts +0 -6
- package/dist/types/components/explorer/fields/filterable-fields-panel.d.ts +0 -11
- package/dist/types/components/explorer/fields/icon-for-field-type.d.ts +0 -3
- package/dist/types/components/explorer/fields/numeric-popover.d.ts +0 -6
- package/dist/types/components/explorer/fields/source-field.d.ts +0 -28
- package/dist/types/components/explorer/fields/type-glyph.d.ts +0 -14
- package/dist/types/components/explorer/filters/card-date-filter.d.ts +0 -20
- package/dist/types/components/explorer/filters/card-date-selection.d.ts +0 -28
- package/dist/types/components/explorer/filters/card-filter-builder.d.ts +0 -11
- package/dist/types/components/explorer/filters/card-filter-manager.d.ts +0 -12
- package/dist/types/components/explorer/filters/field-multi-select.d.ts +0 -16
- package/dist/types/components/explorer/filters/field-single-select.d.ts +0 -16
- package/dist/types/components/explorer/filters/searchable-field-combobox.d.ts +0 -17
- package/dist/types/components/explorer/filters/utils.d.ts +0 -2
- package/dist/types/components/explorer/join-configuration/auto-join-info.d.ts +0 -16
- package/dist/types/components/explorer/join-configuration/join-conditions-builder.d.ts +0 -10
- package/dist/types/components/explorer/join-configuration/join-dialog.d.ts +0 -14
- package/dist/types/components/explorer/join-configuration/join-manager.d.ts +0 -10
- package/dist/types/components/explorer/join-configuration/join-tooltip-content.d.ts +0 -9
- package/dist/types/components/explorer/main/explorer.d.ts +0 -1
- package/dist/types/components/explorer/main/view-tabs.d.ts +0 -17
- package/dist/types/components/explorer/visualization/chart-settings-panel.d.ts +0 -7
- package/dist/types/components/explorer/visualization/chart-split-view.d.ts +0 -16
- package/dist/types/components/explorer/visualization/feedback-dialog.d.ts +0 -11
- package/dist/types/components/explorer/visualization/row-limit-selector.d.ts +0 -1
- package/dist/types/components/explorer/visualization/visualization-panel.d.ts +0 -18
- package/dist/types/components/icons/bullet-chart-icon.d.ts +0 -2
- package/dist/types/components/interactions/applied-filters-display.d.ts +0 -40
- package/dist/types/components/interactions/card-renderer.d.ts +0 -17
- package/dist/types/components/interactions/click-to-filter-review-dialog.d.ts +0 -22
- package/dist/types/components/interactions/dashboard-drill-host.d.ts +0 -13
- package/dist/types/components/interactions/drill-config/hierarchy-steps-display.d.ts +0 -9
- package/dist/types/components/interactions/drill-config/hierarchy-templates.d.ts +0 -5
- package/dist/types/components/interactions/drill-config/sortable-hierarchy.d.ts +0 -15
- package/dist/types/components/interactions/drill-config/sortable-step.d.ts +0 -14
- package/dist/types/components/interactions/drill-config/step-configuration-popup.d.ts +0 -13
- package/dist/types/components/interactions/drill-hierarchy-modal.d.ts +0 -43
- package/dist/types/components/interactions/drill-to-url-modal.d.ts +0 -26
- package/dist/types/components/interactions/filter-badge-tooltip.d.ts +0 -13
- package/dist/types/components/interactions/hooks/use-drill-hierarchy.d.ts +0 -15
- package/dist/types/components/interactions/hooks/use-hierarchy-templates.d.ts +0 -5
- package/dist/types/components/interactions/hooks/use-step-reordering.d.ts +0 -6
- package/dist/types/components/interactions/insight-modal.d.ts +0 -29
- package/dist/types/components/interactions/insight-viewer.d.ts +0 -16
- package/dist/types/components/interactions/interactions-sheet.d.ts +0 -7
- package/dist/types/components/interactions/panels/click-to-filter-panel.d.ts +0 -20
- package/dist/types/components/interactions/panels/drill-down-panel.d.ts +0 -44
- package/dist/types/components/interactions/panels/drill-to-dashboard-panel.d.ts +0 -24
- package/dist/types/components/interactions/panels/drill-to-insight-panel.d.ts +0 -24
- package/dist/types/components/interactions/panels/drill-to-url-panel-v2.d.ts +0 -9
- package/dist/types/components/interactions/panels/dynamic-drill-panel.d.ts +0 -24
- package/dist/types/components/interactions/panels/panel-field.d.ts +0 -29
- package/dist/types/components/interactions/pickers/dashboard-picker.d.ts +0 -36
- package/dist/types/components/interactions/pickers/insight-picker.d.ts +0 -36
- package/dist/types/components/interactions/replaced-card-wrapper.d.ts +0 -13
- package/dist/types/components/interactions/reusable/field-combobox.d.ts +0 -22
- package/dist/types/components/interactions/reusable/field-selector.d.ts +0 -15
- package/dist/types/components/interactions/reusable/inline-field-selector.d.ts +0 -11
- package/dist/types/components/interactions/reusable/interaction-selection-popover.d.ts +0 -107
- package/dist/types/components/interactions/sheet/action-editor.d.ts +0 -17
- package/dist/types/components/interactions/sheet/action-meta.d.ts +0 -45
- package/dist/types/components/interactions/sheet/action-picker.d.ts +0 -7
- package/dist/types/components/interactions/sheet/click-outcome-preview.d.ts +0 -10
- package/dist/types/components/interactions/sheet/interactions-home.d.ts +0 -28
- package/dist/types/components/interactions/sheet/sheet-parts.d.ts +0 -37
- package/dist/types/components/kpi-visual-v2/country-selector.d.ts +0 -11
- package/dist/types/components/kpi-visual-v2/kpi-card-explorer.d.ts +0 -12
- package/dist/types/components/kpi-visual-v2/kpi-settings.d.ts +0 -1
- package/dist/types/components/kpi-visual-v2/kpi-tooltip-components.d.ts +0 -25
- package/dist/types/components/kpi-visual-v2/kpi-tooltip-utils.d.ts +0 -8
- package/dist/types/components/kpi-visual-v2/kpi-tooltip.d.ts +0 -15
- package/dist/types/components/kpi-visual-v2/metric-comparison-indicator.d.ts +0 -17
- package/dist/types/components/kpi-visual-v2/metric-comparison-kpi.d.ts +0 -11
- package/dist/types/components/providers/appearance-context.d.ts +0 -23
- package/dist/types/components/providers/appearance-provider.d.ts +0 -4
- package/dist/types/components/providers/brand-studio-preview-context.d.ts +0 -5
- package/dist/types/components/providers/dashboard-matrix-execution-provider.d.ts +0 -10
- package/dist/types/components/providers/dashboard-preferences-provider.d.ts +0 -12
- package/dist/types/components/providers/display-preferences-provider.d.ts +0 -10
- package/dist/types/components/providers/theme-provider-context.d.ts +0 -7
- package/dist/types/components/providers/theme-provider.d.ts +0 -8
- package/dist/types/components/providers/ux-provider.d.ts +0 -6
- package/dist/types/components/semaphor/code-block.d.ts +0 -20
- package/dist/types/components/semaphor/code-editor.d.ts +0 -114
- package/dist/types/components/semaphor/code-highlight.d.ts +0 -15
- package/dist/types/components/sharing-and-management/common-loading-skeleton.d.ts +0 -1
- package/dist/types/components/sharing-and-management/create-dashboard-dialog.d.ts +0 -11
- package/dist/types/components/sharing-and-management/create-visual-dialog.d.ts +0 -11
- package/dist/types/components/sharing-and-management/dashboard-actions-menu.d.ts +0 -19
- package/dist/types/components/sharing-and-management/group-management-dialog.d.ts +0 -6
- package/dist/types/components/sharing-and-management/hooks/use-current-user-info.d.ts +0 -41
- package/dist/types/components/sharing-and-management/hooks/use-group-management.d.ts +0 -30
- package/dist/types/components/sharing-and-management/hooks/use-groups.d.ts +0 -30
- package/dist/types/components/sharing-and-management/hooks/use-resource-share-data.d.ts +0 -27
- package/dist/types/components/sharing-and-management/hooks/use-unified-users.d.ts +0 -61
- package/dist/types/components/sharing-and-management/hooks/use-visual-utils.d.ts +0 -33
- package/dist/types/components/sharing-and-management/resource-edit-dialog.d.ts +0 -15
- package/dist/types/components/sharing-and-management/resource-share-dialog/unified/access-list.d.ts +0 -14
- package/dist/types/components/sharing-and-management/resource-share-dialog/unified/adapter.d.ts +0 -53
- package/dist/types/components/sharing-and-management/resource-share-dialog/unified/configs.d.ts +0 -40
- package/dist/types/components/sharing-and-management/resource-share-dialog/unified/invite-combobox.d.ts +0 -22
- package/dist/types/components/sharing-and-management/resource-share-dialog/unified/primitives.d.ts +0 -33
- package/dist/types/components/sharing-and-management/resource-share-dialog/unified/share-shape.d.ts +0 -20
- package/dist/types/components/sharing-and-management/resource-share-dialog/unified/shell.d.ts +0 -17
- package/dist/types/components/sharing-and-management/resource-share-dialog/unified/status-bar.d.ts +0 -5
- package/dist/types/components/sharing-and-management/resource-share-dialog/unified/submission.d.ts +0 -38
- package/dist/types/components/sharing-and-management/resource-share-dialog/unified/types.d.ts +0 -62
- package/dist/types/components/sharing-and-management/utils/resource-query-keys.d.ts +0 -14
- package/dist/types/components/sharing-and-management/utils/shares-types.d.ts +0 -130
- package/dist/types/components/surfboard/card-controls-toolbar.d.ts +0 -17
- package/dist/types/components/surfboard/controls/card-runtime-controls.d.ts +0 -6
- package/dist/types/components/surfboard/controls/control-authoring-utils.d.ts +0 -182
- package/dist/types/components/surfboard/controls/control-binding-list-editor.d.ts +0 -21
- package/dist/types/components/surfboard/controls/control-definition-editor-helpers.d.ts +0 -43
- package/dist/types/components/surfboard/controls/control-definition-editor-sections.d.ts +0 -65
- package/dist/types/components/surfboard/controls/control-definition-list-editor.d.ts +0 -29
- package/dist/types/components/surfboard/controls/control-select-ui-utils.d.ts +0 -13
- package/dist/types/components/surfboard/controls/control-toolbar-item.d.ts +0 -22
- package/dist/types/components/surfboard/controls/control-toolbar-settings-form.d.ts +0 -30
- package/dist/types/components/surfboard/controls/control-toolbar-settings-shell.d.ts +0 -37
- package/dist/types/components/surfboard/controls/control-usage-utils.d.ts +0 -22
- package/dist/types/components/surfboard/controls/control-validation-message-utils.d.ts +0 -5
- package/dist/types/components/surfboard/controls/dashboard-control-delete-dialog.d.ts +0 -7
- package/dist/types/components/surfboard/controls/dashboard-control-toolbar-popover.d.ts +0 -9
- package/dist/types/components/surfboard/controls/dashboard-runtime-controls.d.ts +0 -1
- package/dist/types/components/surfboard/controls/matrix-structural-targets.d.ts +0 -10
- package/dist/types/components/surfboard/controls/presentation-currency-binding-editor.d.ts +0 -15
- package/dist/types/components/surfboard/controls/runtime-control-input.d.ts +0 -16
- package/dist/types/components/surfboard/controls/runtime-control-utils.d.ts +0 -16
- package/dist/types/components/surfboard/controls/runtime-controls-group.d.ts +0 -12
- package/dist/types/components/surfboard/controls/sortable-control-toolbar-item.d.ts +0 -9
- package/dist/types/components/surfboard/controls/use-create-flow-overlay-state.d.ts +0 -32
- package/dist/types/components/surfboard/controls/use-dashboard-structural-participants.d.ts +0 -14
- package/dist/types/components/surfboard/controls/use-resolved-control-toolbar-options.d.ts +0 -26
- package/dist/types/components/surfboard/dashboard-controls.d.ts +0 -1
- package/dist/types/components/surfboard/dashboard-plus-main.d.ts +0 -1
- package/dist/types/components/surfboard/download-settings-dialog.d.ts +0 -8
- package/dist/types/components/surfboard/expanded-card-view.d.ts +0 -11
- package/dist/types/components/surfboard/export-dialog.d.ts +0 -16
- package/dist/types/components/surfboard/filter/apply-filters-check-box.d.ts +0 -7
- package/dist/types/components/surfboard/filter/custom-filter/custom-filter-selector.d.ts +0 -12
- package/dist/types/components/surfboard/filter/custom-filter/custom-filter-types.d.ts +0 -45
- package/dist/types/components/surfboard/filter/custom-filter/dashboard-custom-filter.d.ts +0 -19
- package/dist/types/components/surfboard/filter/custom-filter-popover.d.ts +0 -75
- package/dist/types/components/surfboard/filter/dashboard-filter-info-group.d.ts +0 -21
- package/dist/types/components/surfboard/filter/dashboard-filter-mapping-panel.d.ts +0 -40
- package/dist/types/components/surfboard/filter/date-comparison-controls.d.ts +0 -8
- package/dist/types/components/surfboard/filter/date-comparison-label.d.ts +0 -2
- package/dist/types/components/surfboard/filter/date-range-filter-v2.d.ts +0 -38
- package/dist/types/components/surfboard/filter/date-range-filter.d.ts +0 -7
- package/dist/types/components/surfboard/filter/day-picker.d.ts +0 -30
- package/dist/types/components/surfboard/filter/field-date-comparison-scope-message.d.ts +0 -2
- package/dist/types/components/surfboard/filter/field-date-filter.d.ts +0 -9
- package/dist/types/components/surfboard/filter/filter-actions-popover-content.d.ts +0 -9
- package/dist/types/components/surfboard/filter/filter-aside.d.ts +0 -1
- package/dist/types/components/surfboard/filter/filter-component.d.ts +0 -13
- package/dist/types/components/surfboard/filter/filter-configuration-panel.d.ts +0 -102
- package/dist/types/components/surfboard/filter/filter-default-values-picker.d.ts +0 -29
- package/dist/types/components/surfboard/filter/filter-error-state.d.ts +0 -7
- package/dist/types/components/surfboard/filter/filter-header.d.ts +0 -4
- package/dist/types/components/surfboard/filter/filter-info.d.ts +0 -17
- package/dist/types/components/surfboard/filter/filter-option-dependencies-settings.d.ts +0 -34
- package/dist/types/components/surfboard/filter/filter-option-list.d.ts +0 -39
- package/dist/types/components/surfboard/filter/filter-option-source-settings.d.ts +0 -15
- package/dist/types/components/surfboard/filter/filter-picker-popover-content.d.ts +0 -1
- package/dist/types/components/surfboard/filter/filter-popover-parts.d.ts +0 -37
- package/dist/types/components/surfboard/filter/filter-scope-config.d.ts +0 -8
- package/dist/types/components/surfboard/filter/filter-settings-popover-delete.d.ts +0 -0
- package/dist/types/components/surfboard/filter/filter-settings-popover.d.ts +0 -5
- package/dist/types/components/surfboard/filter/filter-toolbar-item.d.ts +0 -22
- package/dist/types/components/surfboard/filter/filter-toolbar-order-utils.d.ts +0 -3
- package/dist/types/components/surfboard/filter/filter-toolbar.d.ts +0 -7
- package/dist/types/components/surfboard/filter/global-date-comparison-footer.d.ts +0 -14
- package/dist/types/components/surfboard/filter/global-date-filter.d.ts +0 -9
- package/dist/types/components/surfboard/filter/hidden-filters.d.ts +0 -1
- package/dist/types/components/surfboard/filter/month-picker.d.ts +0 -19
- package/dist/types/components/surfboard/filter/multi-select-filter.d.ts +0 -16
- package/dist/types/components/surfboard/filter/multi-select-inline-content.d.ts +0 -39
- package/dist/types/components/surfboard/filter/numeric-filter-input.d.ts +0 -8
- package/dist/types/components/surfboard/filter/radio-button-filter.d.ts +0 -8
- package/dist/types/components/surfboard/filter/selection-chip.d.ts +0 -11
- package/dist/types/components/surfboard/filter/selection-filter-section.d.ts +0 -4
- package/dist/types/components/surfboard/filter/sortable-filter-toolbar-item.d.ts +0 -24
- package/dist/types/components/surfboard/filter/tabs-filter.d.ts +0 -8
- package/dist/types/components/surfboard/filter/use-dashboard-filter-mapping-popover.d.ts +0 -80
- package/dist/types/components/surfboard/filter/use-filter-header-width.d.ts +0 -12
- package/dist/types/components/surfboard/filter/utils.d.ts +0 -4
- package/dist/types/components/surfboard/inline-options-error-state.d.ts +0 -6
- package/dist/types/components/surfboard/input-chip-row.d.ts +0 -21
- package/dist/types/components/surfboard/preferences/calendar-preferences-panel.d.ts +0 -7
- package/dist/types/components/surfboard/preferences/display-format-preferences-panel.d.ts +0 -6
- package/dist/types/components/surfboard/toolbar-item-shell.d.ts +0 -17
- package/dist/types/components/text-variables/variable-chip-plugin.d.ts +0 -23
- package/dist/types/components/text-variables/variable-chip.d.ts +0 -18
- package/dist/types/components/text-variables/variable-picker.d.ts +0 -27
- package/dist/types/components/ui/accordion.d.ts +0 -7
- package/dist/types/components/ui/alert-dialog.d.ts +0 -20
- package/dist/types/components/ui/alert.d.ts +0 -8
- package/dist/types/components/ui/audience-type-badge.d.ts +0 -9
- package/dist/types/components/ui/avatar.d.ts +0 -6
- package/dist/types/components/ui/badge.d.ts +0 -9
- package/dist/types/components/ui/button.d.ts +0 -11
- package/dist/types/components/ui/calendar.d.ts +0 -8
- package/dist/types/components/ui/card.d.ts +0 -8
- package/dist/types/components/ui/checkbox.d.ts +0 -4
- package/dist/types/components/ui/collapsible.d.ts +0 -5
- package/dist/types/components/ui/command.d.ts +0 -82
- package/dist/types/components/ui/context-menu.d.ts +0 -27
- package/dist/types/components/ui/dialog.d.ts +0 -28
- package/dist/types/components/ui/dropdown-menu.d.ts +0 -27
- package/dist/types/components/ui/hover-card.d.ts +0 -6
- package/dist/types/components/ui/input.d.ts +0 -9
- package/dist/types/components/ui/label.d.ts +0 -5
- package/dist/types/components/ui/popover.d.ts +0 -7
- package/dist/types/components/ui/portal-scope.d.ts +0 -6
- package/dist/types/components/ui/progress.d.ts +0 -4
- package/dist/types/components/ui/radio-group.d.ts +0 -5
- package/dist/types/components/ui/resizable.d.ts +0 -23
- package/dist/types/components/ui/scroll-area.d.ts +0 -5
- package/dist/types/components/ui/select.d.ts +0 -16
- package/dist/types/components/ui/separator.d.ts +0 -4
- package/dist/types/components/ui/sheet.d.ts +0 -39
- package/dist/types/components/ui/skeleton.d.ts +0 -2
- package/dist/types/components/ui/slider.d.ts +0 -4
- package/dist/types/components/ui/sonner.d.ts +0 -4
- package/dist/types/components/ui/switch.d.ts +0 -10
- package/dist/types/components/ui/table.d.ts +0 -13
- package/dist/types/components/ui/tabs.d.ts +0 -14
- package/dist/types/components/ui/textarea.d.ts +0 -9
- package/dist/types/components/ui/toggle.d.ts +0 -12
- package/dist/types/components/ui/tooltip.d.ts +0 -8
- package/dist/types/components/ui-custom/color-field.d.ts +0 -31
- package/dist/types/components/ui-custom/column-search.d.ts +0 -42
- package/dist/types/components/ui-custom/combo-box-2.d.ts +0 -40
- package/dist/types/components/ui-custom/command-input-custom.d.ts +0 -9
- package/dist/types/components/ui-custom/copy-button.d.ts +0 -15
- package/dist/types/components/ui-custom/copy-on-click.d.ts +0 -11
- package/dist/types/components/ui-custom/custom-scroll-area.d.ts +0 -6
- package/dist/types/components/ui-custom/date-range-picker.d.ts +0 -85
- package/dist/types/components/ui-custom/date-range-popover.d.ts +0 -14
- package/dist/types/components/ui-custom/details.d.ts +0 -7
- package/dist/types/components/ui-custom/dev-mode-switch.d.ts +0 -8
- package/dist/types/components/ui-custom/editable-text.d.ts +0 -22
- package/dist/types/components/ui-custom/grip-reveal.d.ts +0 -4
- package/dist/types/components/ui-custom/icon-button.d.ts +0 -13
- package/dist/types/components/ui-custom/load-on-scroll-status.d.ts +0 -8
- package/dist/types/components/ui-custom/load-on-scroll-utils.d.ts +0 -1
- package/dist/types/components/ui-custom/loading-dots.d.ts +0 -7
- package/dist/types/components/ui-custom/local-blur-input.d.ts +0 -9
- package/dist/types/components/ui-custom/option-search-input.d.ts +0 -16
- package/dist/types/components/ui-custom/overflow-div.d.ts +0 -5
- package/dist/types/components/ui-custom/overflow-span.d.ts +0 -5
- package/dist/types/components/ui-custom/popover-content-custom.d.ts +0 -4
- package/dist/types/components/ui-custom/pre-tag.d.ts +0 -4
- package/dist/types/components/ui-custom/radio-indicator.d.ts +0 -13
- package/dist/types/components/ui-custom/report-calendar.d.ts +0 -18
- package/dist/types/components/ui-custom/resizable-handle-custom.d.ts +0 -7
- package/dist/types/components/ui-custom/reusable-select.d.ts +0 -16
- package/dist/types/components/ui-custom/visual-badge.d.ts +0 -9
- package/dist/types/components/visual/aggregated-table/aggregate-table.d.ts +0 -3
- package/dist/types/components/visual/aggregated-table/columns/aggregate-columns.d.ts +0 -4
- package/dist/types/components/visual/aggregated-table/columns/column-cell-components.d.ts +0 -17
- package/dist/types/components/visual/aggregated-table/columns/column-definitions.d.ts +0 -29
- package/dist/types/components/visual/aggregated-table/columns/column-header-components.d.ts +0 -32
- package/dist/types/components/visual/aggregated-table/components/aggregate-table-body.d.ts +0 -18
- package/dist/types/components/visual/aggregated-table/components/grand-total-footer.d.ts +0 -23
- package/dist/types/components/visual/aggregated-table/hooks/use-aggregate-table.d.ts +0 -15
- package/dist/types/components/visual/aggregated-table/types/aggregate-table.d.ts +0 -68
- package/dist/types/components/visual/aggregated-table/utils/cell-formatters.d.ts +0 -6
- package/dist/types/components/visual/aggregated-table/utils/data-organizer.d.ts +0 -12
- package/dist/types/components/visual/aggregated-table/utils/export-utils.d.ts +0 -29
- package/dist/types/components/visual/aggregated-table/utils/metric-format-resolver.d.ts +0 -66
- package/dist/types/components/visual/aggregated-table/utils/temporal-presentation.d.ts +0 -17
- package/dist/types/components/visual/chart-utils.d.ts +0 -15
- package/dist/types/components/visual/chartjs-visual.d.ts +0 -9
- package/dist/types/components/visual/column-display-utils.d.ts +0 -2
- package/dist/types/components/visual/custom-visual/build-inline-filter-nodes.d.ts +0 -21
- package/dist/types/components/visual/custom-visual/build-multi-input-props.d.ts +0 -48
- package/dist/types/components/visual/custom-visual/component-combo-box.d.ts +0 -11
- package/dist/types/components/visual/custom-visual/custom-card-theme-adapter.d.ts +0 -3
- package/dist/types/components/visual/custom-visual/custom-visual-settings.d.ts +0 -1
- package/dist/types/components/visual/custom-visual/custom-visual-temporal-presentation.d.ts +0 -35
- package/dist/types/components/visual/custom-visual/custom-visual-types.d.ts +0 -171
- package/dist/types/components/visual/custom-visual/custom-visual-utils.d.ts +0 -57
- package/dist/types/components/visual/custom-visual/dashboard-custom-visual.d.ts +0 -7
- package/dist/types/components/visual/custom-visual/editor-custom-visual.d.ts +0 -6
- package/dist/types/components/visual/custom-visual/hooks/use-ensure-react-globals.d.ts +0 -10
- package/dist/types/components/visual/custom-visual/hooks/use-remote-chart-store.d.ts +0 -9
- package/dist/types/components/visual/custom-visual/multi-input-empty-renderer.d.ts +0 -8
- package/dist/types/components/visual/custom-visual/use-custom-visual.d.ts +0 -16
- package/dist/types/components/visual/data-table/column-def.d.ts +0 -54
- package/dist/types/components/visual/data-table/column-resize-handle.d.ts +0 -8
- package/dist/types/components/visual/data-table/copyable-cell.d.ts +0 -9
- package/dist/types/components/visual/data-table/data-table-column-settings.d.ts +0 -2
- package/dist/types/components/visual/data-table/data-table-conditional-formatting-settings.d.ts +0 -21
- package/dist/types/components/visual/data-table/data-table-pagination.d.ts +0 -2
- package/dist/types/components/visual/data-table/data-table-toolbar.d.ts +0 -2
- package/dist/types/components/visual/data-table/data-table.d.ts +0 -2
- package/dist/types/components/visual/data-table/hooks/use-sql-raw-temporal-format-draft.d.ts +0 -15
- package/dist/types/components/visual/data-table/hooks/use-table-query-state.d.ts +0 -30
- package/dist/types/components/visual/data-table/overflow-cell.d.ts +0 -9
- package/dist/types/components/visual/data-table/table-conditional-formatting-authoring.d.ts +0 -17
- package/dist/types/components/visual/data-table/table-conditional-formatting-rule-model.d.ts +0 -33
- package/dist/types/components/visual/data-table/table-settings-toolbar-button.d.ts +0 -9
- package/dist/types/components/visual/data-table/table-skeleton.d.ts +0 -6
- package/dist/types/components/visual/data-table/table-visual.d.ts +0 -39
- package/dist/types/components/visual/data-table/utils/data-table-utils.d.ts +0 -74
- package/dist/types/components/visual/data-table/utils/sort-conversion.d.ts +0 -5
- package/dist/types/components/visual/data-table/utils/table-behavior.d.ts +0 -33
- package/dist/types/components/visual/data-table/utils/utils.d.ts +0 -4
- package/dist/types/components/visual/info-hover.d.ts +0 -7
- package/dist/types/components/visual/kpi-visual/format-number-setting.d.ts +0 -1
- package/dist/types/components/visual/kpi-visual/kpi-bulb-utils.d.ts +0 -3
- package/dist/types/components/visual/kpi-visual/kpi-card-with-info.d.ts +0 -9
- package/dist/types/components/visual/kpi-visual/kpi-card.d.ts +0 -28
- package/dist/types/components/visual/kpi-visual/kpi-editor-ownership-badge.d.ts +0 -4
- package/dist/types/components/visual/kpi-visual/kpi-utils.d.ts +0 -12
- package/dist/types/components/visual/matrix-table/matrix-axis-menu.d.ts +0 -21
- package/dist/types/components/visual/matrix-table/matrix-loading-skeleton.d.ts +0 -14
- package/dist/types/components/visual/matrix-table/matrix-selection-click.d.ts +0 -6
- package/dist/types/components/visual/matrix-table/matrix-tabular-boundary.d.ts +0 -8
- package/dist/types/components/visual/matrix-table/matrix-viewer-geometry.d.ts +0 -21
- package/dist/types/components/visual/matrix-table/matrix-window-viewer.d.ts +0 -26
- package/dist/types/components/visual/pivot-table/aggregation-menu.d.ts +0 -23
- package/dist/types/components/visual/pivot-table/columns/data-columns.d.ts +0 -26
- package/dist/types/components/visual/pivot-table/columns/row-header-columns.d.ts +0 -20
- package/dist/types/components/visual/pivot-table/columns/row-total-column.d.ts +0 -12
- package/dist/types/components/visual/pivot-table/components/pivot-table-body.d.ts +0 -23
- package/dist/types/components/visual/pivot-table/components/pivot-table-footer.d.ts +0 -30
- package/dist/types/components/visual/pivot-table/hooks/use-pivot-column-headers.d.ts +0 -28
- package/dist/types/components/visual/pivot-table/hooks/use-pivot-pagination.d.ts +0 -29
- package/dist/types/components/visual/pivot-table/hooks/use-pivot-sorting.d.ts +0 -21
- package/dist/types/components/visual/pivot-table/hooks/use-pivot-table-settings.d.ts +0 -15
- package/dist/types/components/visual/pivot-table/pivot-table-tanstack.d.ts +0 -41
- package/dist/types/components/visual/pivot-table/pivot-table.d.ts +0 -100
- package/dist/types/components/visual/pivot-table/utils/cell-value-formatter.d.ts +0 -14
- package/dist/types/components/visual/pivot-table/utils/pivot-field-identity.d.ts +0 -8
- package/dist/types/components/visual/pivot-table/utils/pivot-formatting-utils.d.ts +0 -24
- package/dist/types/components/visual/pivot-table/utils/pivot-metric-formatting.d.ts +0 -18
- package/dist/types/components/visual/pivot-table/utils/pivot-physical-schema.d.ts +0 -14
- package/dist/types/components/visual/pivot-table/utils/pivot-table-aggregation-helpers.d.ts +0 -21
- package/dist/types/components/visual/pivot-table/utils/pivot-table-data-processor.d.ts +0 -35
- package/dist/types/components/visual/pivot-table/utils/pivot-table-export-utils.d.ts +0 -25
- package/dist/types/components/visual/pivot-table/utils/pivot-table-response.d.ts +0 -50
- package/dist/types/components/visual/pivot-table/utils/pivot-table-sorter.d.ts +0 -7
- package/dist/types/components/visual/pivot-table/utils/row-span-calculator.d.ts +0 -14
- package/dist/types/components/visual/settings/axis-mapping.d.ts +0 -9
- package/dist/types/components/visual/settings/chart-documentation.d.ts +0 -28
- package/dist/types/components/visual/settings/chart-orientation.d.ts +0 -1
- package/dist/types/components/visual/settings/color-format.d.ts +0 -8
- package/dist/types/components/visual/settings/controls-settings.d.ts +0 -8
- package/dist/types/components/visual/settings/dataset-label-popover.d.ts +0 -4
- package/dist/types/components/visual/settings/display-labels.d.ts +0 -2
- package/dist/types/components/visual/settings/filter-on-click-columns.d.ts +0 -1
- package/dist/types/components/visual/settings/frame-filters.d.ts +0 -7
- package/dist/types/components/visual/settings/inline-filters-settings.d.ts +0 -12
- package/dist/types/components/visual/settings/kpi-settings.d.ts +0 -1
- package/dist/types/components/visual/settings/map-chart-settings.d.ts +0 -1
- package/dist/types/components/visual/settings/scale-options.d.ts +0 -1
- package/dist/types/components/visual/settings/table-column-visibility-settings.d.ts +0 -16
- package/dist/types/components/visual/settings/table-presentation-settings.d.ts +0 -53
- package/dist/types/components/visual/settings/table-visual-settings.d.ts +0 -8
- package/dist/types/components/visual/settings/text-settings.d.ts +0 -1
- package/dist/types/components/visual/settings/text-type-radio.d.ts +0 -2
- package/dist/types/components/visual/shared/hooks/use-column-resizing.d.ts +0 -15
- package/dist/types/components/visual/shared/utils/column-type-detector.d.ts +0 -25
- package/dist/types/components/visual/shared/utils/table-render-policy.d.ts +0 -20
- package/dist/types/components/visual/table-appearance/table-appearance-adapter.d.ts +0 -41
- package/dist/types/components/visual/table-appearance/table-appearance-primitives.d.ts +0 -32
- package/dist/types/components/visual/visual-error-state.d.ts +0 -13
- package/dist/types/components/visual/visual-utils.d.ts +0 -33
- package/dist/types/data-app-sdk/analysis-payload.d.ts +0 -2
- package/dist/types/data-app-sdk/devtools/issues.d.ts +0 -21
- package/dist/types/data-app-sdk/devtools/labels.d.ts +0 -4
- package/dist/types/data-app-sdk/devtools/result-preview.d.ts +0 -8
- package/dist/types/data-app-sdk/devtools/styles.d.ts +0 -15
- package/dist/types/data-app-sdk/devtools/window-snapshot.d.ts +0 -3
- package/dist/types/data-app-sdk/matrix-filter-validation.d.ts +0 -12
- package/dist/types/data-app-sdk/query-request.d.ts +0 -32
- package/dist/types/data-app-sdk/runtime.d.ts +0 -21
- package/dist/types/lib/actions/data-point-click-action.d.ts +0 -13
- package/dist/types/lib/ai-utils.d.ts +0 -16
- package/dist/types/lib/api/index.d.ts +0 -2
- package/dist/types/lib/appearance/chart-style-adapter.d.ts +0 -4
- package/dist/types/lib/appearance/dom.d.ts +0 -3
- package/dist/types/lib/appearance/fonts.d.ts +0 -9
- package/dist/types/lib/briefings/briefing-attachment-model.d.ts +0 -104
- package/dist/types/lib/charts/area-chart.d.ts +0 -5
- package/dist/types/lib/charts/bar-chart.d.ts +0 -5
- package/dist/types/lib/charts/bubble-scatter-chart.d.ts +0 -28
- package/dist/types/lib/charts/bullet-chart.d.ts +0 -17
- package/dist/types/lib/charts/cartesian-data.d.ts +0 -72
- package/dist/types/lib/charts/cartesian-fields.d.ts +0 -60
- package/dist/types/lib/charts/chart-availability.d.ts +0 -13
- package/dist/types/lib/charts/chart-axis-policy.d.ts +0 -20
- package/dist/types/lib/charts/chart-config.d.ts +0 -9
- package/dist/types/lib/charts/chart-documentation.d.ts +0 -23
- package/dist/types/lib/charts/chart-font.d.ts +0 -10
- package/dist/types/lib/charts/chart-selector.d.ts +0 -2
- package/dist/types/lib/charts/chart-utils.d.ts +0 -258
- package/dist/types/lib/charts/color-utils.d.ts +0 -29
- package/dist/types/lib/charts/combo-chart.d.ts +0 -5
- package/dist/types/lib/charts/configuration/axis-configurator.d.ts +0 -36
- package/dist/types/lib/charts/configuration/combo-config.d.ts +0 -36
- package/dist/types/lib/charts/configuration/data-labels-config.d.ts +0 -36
- package/dist/types/lib/charts/configuration/legend-config.d.ts +0 -18
- package/dist/types/lib/charts/create-chart.d.ts +0 -30
- package/dist/types/lib/charts/custom-config-utils.d.ts +0 -0
- package/dist/types/lib/charts/funnel-chart.d.ts +0 -13
- package/dist/types/lib/charts/heatmap-chart.d.ts +0 -15
- package/dist/types/lib/charts/heatmap-constants.d.ts +0 -7
- package/dist/types/lib/charts/line-chart.d.ts +0 -5
- package/dist/types/lib/charts/range-chart.d.ts +0 -12
- package/dist/types/lib/charts/shared/category-group-axis-plugin.d.ts +0 -23
- package/dist/types/lib/charts/shared/dataset-utils.d.ts +0 -36
- package/dist/types/lib/charts/stacked-line-chart.d.ts +0 -2
- package/dist/types/lib/charts/tornado-chart.d.ts +0 -13
- package/dist/types/lib/charts/treemap-chart.d.ts +0 -15
- package/dist/types/lib/charts/utils.d.ts +0 -12
- package/dist/types/lib/constants/summary.d.ts +0 -2
- package/dist/types/lib/constants/tool-status-messages.d.ts +0 -12
- package/dist/types/lib/constants.d.ts +0 -30
- package/dist/types/lib/contexts/dashboard-preferences-context.d.ts +0 -7
- package/dist/types/lib/contexts/display-preferences-context.d.ts +0 -6
- package/dist/types/lib/contexts/interactions-popover-context.d.ts +0 -14
- package/dist/types/lib/countries.d.ts +0 -8
- package/dist/types/lib/csv-download.d.ts +0 -9
- package/dist/types/lib/csv-encoding-options.d.ts +0 -6
- package/dist/types/lib/dashboard/click-to-filter-card-references.d.ts +0 -23
- package/dist/types/lib/dashboard/duplicate-sheet.d.ts +0 -11
- package/dist/types/lib/dashboard/global-date-filter-utils.d.ts +0 -22
- package/dist/types/lib/dashboard/open-card-in-visual-editor.d.ts +0 -15
- package/dist/types/lib/dashboard-inputs/build-normalized-dashboard-inputs.d.ts +0 -55
- package/dist/types/lib/dashboard-inputs/build-selection-dashboard-inputs.d.ts +0 -31
- package/dist/types/lib/dashboard-inputs/card-compat-adapter.d.ts +0 -9
- package/dist/types/lib/dashboard-inputs/click-to-filter-emitted-fields.d.ts +0 -17
- package/dist/types/lib/dashboard-inputs/click-to-filter-mapping-draft.d.ts +0 -99
- package/dist/types/lib/dashboard-inputs/click-to-filter-sheet-reach.d.ts +0 -12
- package/dist/types/lib/dashboard-inputs/dashboard-control-compat-adapter.d.ts +0 -7
- package/dist/types/lib/dashboard-inputs/dashboard-filter-authoring-policy.d.ts +0 -21
- package/dist/types/lib/dashboard-inputs/dashboard-filter-compat-adapter.d.ts +0 -10
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-candidate-metadata.d.ts +0 -107
- package/dist/types/lib/dashboard-inputs/dashboard-filter-ownership.d.ts +0 -13
- package/dist/types/lib/dashboard-inputs/dashboard-filter-value-identity.d.ts +0 -36
- package/dist/types/lib/dashboard-inputs/dashboard-input-authoring-aliases.d.ts +0 -13
- package/dist/types/lib/dashboard-inputs/dashboard-input-display.d.ts +0 -11
- package/dist/types/lib/dashboard-inputs/dashboard-input-edit-validation.d.ts +0 -20
- package/dist/types/lib/dashboard-inputs/dashboard-input-helpers.d.ts +0 -15
- package/dist/types/lib/dashboard-inputs/dashboard-input-snapshot.d.ts +0 -85
- package/dist/types/lib/dashboard-inputs/dashboard-input-text.d.ts +0 -12
- package/dist/types/lib/dashboard-inputs/dashboard-option-dependency-context.d.ts +0 -40
- package/dist/types/lib/dashboard-inputs/document-input-prototype-normalizer.d.ts +0 -2
- package/dist/types/lib/dashboard-inputs/filter-authoring-capabilities.d.ts +0 -39
- package/dist/types/lib/dashboard-inputs/find-normalized-dashboard-filter-input.d.ts +0 -4
- package/dist/types/lib/dashboard-inputs/index.d.ts +0 -12
- package/dist/types/lib/dashboard-inputs/resolve-field-date-comparison-coverage.d.ts +0 -20
- package/dist/types/lib/dashboard-inputs/selection-targets.d.ts +0 -26
- package/dist/types/lib/dashboard-inputs/text-card-rich-content.d.ts +0 -6
- package/dist/types/lib/dashboard-inputs/text-variable-options.d.ts +0 -16
- package/dist/types/lib/dashboard-inputs/use-effective-dashboard-filter-storage.d.ts +0 -7
- package/dist/types/lib/dashboard-navigation/build-carried-click-context.d.ts +0 -49
- package/dist/types/lib/dashboard-navigation/describe-carried-context.d.ts +0 -11
- package/dist/types/lib/dashboard-navigation/run-one-off-drill.d.ts +0 -11
- package/dist/types/lib/dashboard-navigation/use-transient-contexts.d.ts +0 -17
- package/dist/types/lib/dnd-utils.d.ts +0 -5
- package/dist/types/lib/document/document-canvas-actions.d.ts +0 -22
- package/dist/types/lib/document/document-dashboard-inputs.d.ts +0 -48
- package/dist/types/lib/document/document-definition.d.ts +0 -14
- package/dist/types/lib/document/document-generated-at.d.ts +0 -13
- package/dist/types/lib/document/document-input-order.d.ts +0 -5
- package/dist/types/lib/document/document-inputs.d.ts +0 -30
- package/dist/types/lib/document/document-kpi-figure.d.ts +0 -27
- package/dist/types/lib/document/document-kpi-layout.d.ts +0 -29
- package/dist/types/lib/document/document-kpi-section-edits.d.ts +0 -15
- package/dist/types/lib/document/document-matrix-bands.d.ts +0 -66
- package/dist/types/lib/document/document-matrix-print.d.ts +0 -11
- package/dist/types/lib/document/document-page-metrics.d.ts +0 -34
- package/dist/types/lib/document/document-pagination.d.ts +0 -110
- package/dist/types/lib/document/document-render-mode.d.ts +0 -8
- package/dist/types/lib/document/document-section-editor.d.ts +0 -9
- package/dist/types/lib/document/document-section-query-options.d.ts +0 -25
- package/dist/types/lib/document/document-section-render-state.d.ts +0 -26
- package/dist/types/lib/document/document-section-utils.d.ts +0 -18
- package/dist/types/lib/document/document-sheet-utils.d.ts +0 -4
- package/dist/types/lib/document/document-table-data-policy.d.ts +0 -15
- package/dist/types/lib/document/document-table-dom.d.ts +0 -29
- package/dist/types/lib/document/document-table-pagination-model.d.ts +0 -62
- package/dist/types/lib/document/document-table-print-model.d.ts +0 -53
- package/dist/types/lib/document/document-table-result-columns.d.ts +0 -10
- package/dist/types/lib/document/document-table-style.d.ts +0 -44
- package/dist/types/lib/document/document-table-surface.d.ts +0 -15
- package/dist/types/lib/document/document-table-totals.d.ts +0 -8
- package/dist/types/lib/document/document-variables.d.ts +0 -97
- package/dist/types/lib/document/document-visual-render-contract.d.ts +0 -8
- package/dist/types/lib/document/use-document-section-data.d.ts +0 -39
- package/dist/types/lib/document/use-document-table-rows.d.ts +0 -21
- package/dist/types/lib/document/use-measured-document-table-layout.d.ts +0 -50
- package/dist/types/lib/drag-and-drop-utils.d.ts +0 -2
- package/dist/types/lib/editor-draft-sync.d.ts +0 -2
- package/dist/types/lib/explorer-utils.d.ts +0 -11
- package/dist/types/lib/export-utils.d.ts +0 -47
- package/dist/types/lib/exports/export-status.d.ts +0 -17
- package/dist/types/lib/fields/field-display.d.ts +0 -35
- package/dist/types/lib/filter-values/build-card-filter-definition.d.ts +0 -18
- package/dist/types/lib/filter-values/build-filter-values-request-payload.d.ts +0 -116
- package/dist/types/lib/filter-values/filter-option-identity.d.ts +0 -10
- package/dist/types/lib/filter-values/filter-record-value.d.ts +0 -9
- package/dist/types/lib/filter-values/merge-additional-filter-values.d.ts +0 -12
- package/dist/types/lib/formatters/active-numeric-presentation.d.ts +0 -25
- package/dist/types/lib/formatters/card-format-context.d.ts +0 -14
- package/dist/types/lib/formatters/currency-presentation-binding.d.ts +0 -72
- package/dist/types/lib/formatters/dashboard-temporal-presentation.d.ts +0 -10
- package/dist/types/lib/formatters/grouped-temporal-authoring.d.ts +0 -33
- package/dist/types/lib/formatters/kpi-number-formatter.d.ts +0 -24
- package/dist/types/lib/formatters/kpi-result-columns.d.ts +0 -3
- package/dist/types/lib/formatters/kpi-result-values.d.ts +0 -20
- package/dist/types/lib/formatters/metric-formatting.d.ts +0 -197
- package/dist/types/lib/formatters/numeric-presentation.d.ts +0 -10
- package/dist/types/lib/formatters/numeric-value-coercion.d.ts +0 -10
- package/dist/types/lib/formatters/pivot-result-lifecycle-config.d.ts +0 -15
- package/dist/types/lib/formatters/raw-temporal-on-demand-delivery.d.ts +0 -63
- package/dist/types/lib/formatters/result-column-identity.d.ts +0 -3
- package/dist/types/lib/formatters/saved-temporal-bucket-format.d.ts +0 -43
- package/dist/types/lib/formatters/semantic-column-presentation.d.ts +0 -9
- package/dist/types/lib/formatters/value-formatter.d.ts +0 -64
- package/dist/types/lib/hooks/ai/assistant-context-entity-utils.d.ts +0 -6
- package/dist/types/lib/hooks/ai/assistant-session.d.ts +0 -3
- package/dist/types/lib/hooks/ai/dashboard-assistant-context.d.ts +0 -35
- package/dist/types/lib/hooks/ai/dashboard-context.d.ts +0 -41
- package/dist/types/lib/hooks/ai/use-active-tool-status.d.ts +0 -10
- package/dist/types/lib/hooks/ai/use-assistant-context-entities.d.ts +0 -19
- package/dist/types/lib/hooks/ai/use-assistant-profile.d.ts +0 -6
- package/dist/types/lib/hooks/ai/use-assistant-scroll.d.ts +0 -8
- package/dist/types/lib/hooks/ai/use-auto-submit-queue.d.ts +0 -13
- package/dist/types/lib/hooks/ai/use-dashboard-assistant.d.ts +0 -32
- package/dist/types/lib/hooks/ai/use-editor-assistant.d.ts +0 -33
- package/dist/types/lib/hooks/ai/use-entity-mentions.d.ts +0 -36
- package/dist/types/lib/hooks/ai/use-local-storage-state.d.ts +0 -1
- package/dist/types/lib/hooks/ai/utils.d.ts +0 -64
- package/dist/types/lib/hooks/calculated-fields/use-ai-expression.d.ts +0 -23
- package/dist/types/lib/hooks/calculated-fields/use-available-fields.d.ts +0 -111
- package/dist/types/lib/hooks/calculated-fields/use-calculated-field-templates.d.ts +0 -9
- package/dist/types/lib/hooks/calculated-fields/use-expression-validation.d.ts +0 -18
- package/dist/types/lib/hooks/calculated-fields/use-formula-placeholders.d.ts +0 -54
- package/dist/types/lib/hooks/calculated-fields/use-promote-to-domain.d.ts +0 -17
- package/dist/types/lib/hooks/chartjs/use-chart-blur.d.ts +0 -14
- package/dist/types/lib/hooks/control-values-query-utils.d.ts +0 -6
- package/dist/types/lib/hooks/explorer/column-catalog.d.ts +0 -4
- package/dist/types/lib/hooks/explorer/column-native-datatype.d.ts +0 -8
- package/dist/types/lib/hooks/explorer/field-management-utils.d.ts +0 -2
- package/dist/types/lib/hooks/explorer/use-card-filter-option-browse.d.ts +0 -10
- package/dist/types/lib/hooks/explorer/use-columns.d.ts +0 -11
- package/dist/types/lib/hooks/explorer/use-data-models.d.ts +0 -8
- package/dist/types/lib/hooks/explorer/use-database-entities.d.ts +0 -15
- package/dist/types/lib/hooks/explorer/use-databases.d.ts +0 -12
- package/dist/types/lib/hooks/explorer/use-datasets.d.ts +0 -53
- package/dist/types/lib/hooks/explorer/use-dev-mode-actions.d.ts +0 -10
- package/dist/types/lib/hooks/explorer/use-domain-calculated-fields.d.ts +0 -6
- package/dist/types/lib/hooks/explorer/use-drag-and-drop.d.ts +0 -22
- package/dist/types/lib/hooks/explorer/use-field-availability-context.d.ts +0 -16
- package/dist/types/lib/hooks/explorer/use-field-management.d.ts +0 -42
- package/dist/types/lib/hooks/explorer/use-files.d.ts +0 -13
- package/dist/types/lib/hooks/explorer/use-filter-builder.d.ts +0 -24
- package/dist/types/lib/hooks/explorer/use-filterable-fields.d.ts +0 -61
- package/dist/types/lib/hooks/explorer/use-join-conditions-builder.d.ts +0 -27
- package/dist/types/lib/hooks/explorer/use-schemas.d.ts +0 -8
- package/dist/types/lib/hooks/explorer/use-scoped-fields.d.ts +0 -53
- package/dist/types/lib/hooks/explorer/use-semantic-domains.d.ts +0 -17
- package/dist/types/lib/hooks/explorer/use-sync-legacy-editor-state.d.ts +0 -20
- package/dist/types/lib/hooks/query-context/use-card-query-context.d.ts +0 -3
- package/dist/types/lib/hooks/query-context/use-dashboard-card-execution-snapshot.d.ts +0 -10
- package/dist/types/lib/hooks/selection/use-active-selections.d.ts +0 -15
- package/dist/types/lib/hooks/selection/use-click-to-filter-mapping-draft.d.ts +0 -20
- package/dist/types/lib/hooks/selection/use-selection-click.d.ts +0 -34
- package/dist/types/lib/hooks/selection/use-selection-gestures.d.ts +0 -38
- package/dist/types/lib/hooks/selection/use-table-row-selection.d.ts +0 -46
- package/dist/types/lib/hooks/semaphor-ready-indicator.d.ts +0 -17
- package/dist/types/lib/hooks/summary/create-summary-action-handler.d.ts +0 -15
- package/dist/types/lib/hooks/use-assign-filter.d.ts +0 -5
- package/dist/types/lib/hooks/use-attribute-values.d.ts +0 -20
- package/dist/types/lib/hooks/use-auth-token.d.ts +0 -1
- package/dist/types/lib/hooks/use-authorization-scope.d.ts +0 -2
- package/dist/types/lib/hooks/use-calendar-preferences.d.ts +0 -16
- package/dist/types/lib/hooks/use-card-filter-values.d.ts +0 -19
- package/dist/types/lib/hooks/use-card-numeric-presentation.d.ts +0 -11
- package/dist/types/lib/hooks/use-card-render-context.d.ts +0 -14
- package/dist/types/lib/hooks/use-chart-numeric-presentation.d.ts +0 -3
- package/dist/types/lib/hooks/use-column-sizing.d.ts +0 -27
- package/dist/types/lib/hooks/use-connection-type.d.ts +0 -0
- package/dist/types/lib/hooks/use-connections.d.ts +0 -27
- package/dist/types/lib/hooks/use-control-values-query.d.ts +0 -48
- package/dist/types/lib/hooks/use-copy-paste-frame.d.ts +0 -2
- package/dist/types/lib/hooks/use-custom-visuals-query.d.ts +0 -30
- package/dist/types/lib/hooks/use-dashboard-card-query.d.ts +0 -4
- package/dist/types/lib/hooks/use-dashboard-creation.d.ts +0 -17
- package/dist/types/lib/hooks/use-dashboard-filter-mapping-candidates.d.ts +0 -40
- package/dist/types/lib/hooks/use-dashboard-filter-option-fields.d.ts +0 -15
- package/dist/types/lib/hooks/use-dashboard-frame-query.d.ts +0 -51
- package/dist/types/lib/hooks/use-dashboard-frame.d.ts +0 -0
- package/dist/types/lib/hooks/use-dashboard-interaction-mode.d.ts +0 -1
- package/dist/types/lib/hooks/use-dashboard-kpi-actions.d.ts +0 -11
- package/dist/types/lib/hooks/use-dashboard-preferences.d.ts +0 -5
- package/dist/types/lib/hooks/use-date-range-for-filter.d.ts +0 -7
- package/dist/types/lib/hooks/use-default-dashboard-mutation.d.ts +0 -9
- package/dist/types/lib/hooks/use-default-sheet-preference.d.ts +0 -9
- package/dist/types/lib/hooks/use-display-preferences.d.ts +0 -4
- package/dist/types/lib/hooks/use-document-section-editor.d.ts +0 -3
- package/dist/types/lib/hooks/use-document-section-session.d.ts +0 -36
- package/dist/types/lib/hooks/use-draggable-button.d.ts +0 -20
- package/dist/types/lib/hooks/use-draggable-corner.d.ts +0 -22
- package/dist/types/lib/hooks/use-dynamic-icon.d.ts +0 -1
- package/dist/types/lib/hooks/use-edit-visual.d.ts +0 -6
- package/dist/types/lib/hooks/use-editor-preview.d.ts +0 -17
- package/dist/types/lib/hooks/use-editor-setup.d.ts +0 -45
- package/dist/types/lib/hooks/use-feedback.d.ts +0 -12
- package/dist/types/lib/hooks/use-filter-aside-setup.d.ts +0 -13
- package/dist/types/lib/hooks/use-filter-option-labels.d.ts +0 -12
- package/dist/types/lib/hooks/use-filter-query.d.ts +0 -79
- package/dist/types/lib/hooks/use-filter-search.d.ts +0 -49
- package/dist/types/lib/hooks/use-frame-semantic-execution-payload.d.ts +0 -15
- package/dist/types/lib/hooks/use-has-dashboard-id.d.ts +0 -6
- package/dist/types/lib/hooks/use-insight-card-info.d.ts +0 -30
- package/dist/types/lib/hooks/use-interactions-popover.d.ts +0 -7
- package/dist/types/lib/hooks/use-is-dashboard-ready.d.ts +0 -14
- package/dist/types/lib/hooks/use-is-editing-card.d.ts +0 -7
- package/dist/types/lib/hooks/use-joinability-map.d.ts +0 -24
- package/dist/types/lib/hooks/use-kpi.d.ts +0 -6
- package/dist/types/lib/hooks/use-metric-keys-visual.d.ts +0 -6
- package/dist/types/lib/hooks/use-plugin-query.d.ts +0 -6
- package/dist/types/lib/hooks/use-previous.d.ts +0 -1
- package/dist/types/lib/hooks/use-query-feedback.d.ts +0 -45
- package/dist/types/lib/hooks/use-query-key.d.ts +0 -8
- package/dist/types/lib/hooks/use-relative-date-summarizer.d.ts +0 -7
- package/dist/types/lib/hooks/use-resolved-card-config.d.ts +0 -6
- package/dist/types/lib/hooks/use-role-aware-display-preferences.d.ts +0 -29
- package/dist/types/lib/hooks/use-selected-column.d.ts +0 -29
- package/dist/types/lib/hooks/use-semaphor-context.d.ts +0 -4
- package/dist/types/lib/hooks/use-split-view-preference.d.ts +0 -1
- package/dist/types/lib/hooks/use-theme.d.ts +0 -1
- package/dist/types/lib/hooks/use-topojson.d.ts +0 -7
- package/dist/types/lib/hooks/use-user-preferences.d.ts +0 -24
- package/dist/types/lib/hooks/use-visual-editing-status.d.ts +0 -6
- package/dist/types/lib/hooks/use-visual-save-as.d.ts +0 -9
- package/dist/types/lib/hooks/visuals/use-pivot-table-config.d.ts +0 -6
- package/dist/types/lib/interactions/click-filter-display.d.ts +0 -13
- package/dist/types/lib/interactions/click-outcome.d.ts +0 -25
- package/dist/types/lib/interactions/get-click-context-from-pivot-table.d.ts +0 -12
- package/dist/types/lib/interactions/get-click-context-from-table.d.ts +0 -42
- package/dist/types/lib/interactions/interaction-utils.d.ts +0 -32
- package/dist/types/lib/interactions/interaction-validation-utils.d.ts +0 -9
- package/dist/types/lib/interactions/interpolate-url-parameters.d.ts +0 -73
- package/dist/types/lib/internal-print-report-context.d.ts +0 -5
- package/dist/types/lib/matrix-table/build-matrix-drill-to-detail.d.ts +0 -15
- package/dist/types/lib/matrix-table/matrix-application-adapter.d.ts +0 -65
- package/dist/types/lib/matrix-table/matrix-card-draft.d.ts +0 -352
- package/dist/types/lib/matrix-table/matrix-card-fields.d.ts +0 -14
- package/dist/types/lib/matrix-table/matrix-card-interactions.d.ts +0 -16
- package/dist/types/lib/matrix-table/matrix-conditional-formatting.d.ts +0 -36
- package/dist/types/lib/matrix-table/matrix-dataset-history.d.ts +0 -47
- package/dist/types/lib/matrix-table/matrix-editor.d.ts +0 -40
- package/dist/types/lib/matrix-table/matrix-execution-context.d.ts +0 -20
- package/dist/types/lib/matrix-table/matrix-execution-provider.d.ts +0 -7
- package/dist/types/lib/matrix-table/matrix-failure-copy.d.ts +0 -16
- package/dist/types/lib/matrix-table/matrix-field-metadata.d.ts +0 -3
- package/dist/types/lib/matrix-table/matrix-label-boundary.d.ts +0 -6
- package/dist/types/lib/matrix-table/matrix-layout-read.d.ts +0 -68
- package/dist/types/lib/matrix-table/matrix-layout.d.ts +0 -18
- package/dist/types/lib/matrix-table/matrix-measure-presentation.d.ts +0 -8
- package/dist/types/lib/matrix-table/matrix-operation-queue.d.ts +0 -8
- package/dist/types/lib/matrix-table/matrix-query-transport.d.ts +0 -6
- package/dist/types/lib/matrix-table/matrix-row-labels.d.ts +0 -13
- package/dist/types/lib/matrix-table/submit-matrix-delivery.d.ts +0 -19
- package/dist/types/lib/matrix-table/use-matrix-card-catalog.d.ts +0 -20
- package/dist/types/lib/matrix-table/use-matrix-cell-focus.d.ts +0 -55
- package/dist/types/lib/matrix-table/use-matrix-delivery-capture.d.ts +0 -6
- package/dist/types/lib/matrix-table/use-matrix-editor-catalog.d.ts +0 -5
- package/dist/types/lib/matrix-table/use-matrix.d.ts +0 -74
- package/dist/types/lib/mock-data.d.ts +0 -0
- package/dist/types/lib/pdf-execution-snapshot.d.ts +0 -12
- package/dist/types/lib/pdf-fast-path/aggregate-metric-semantics.d.ts +0 -1
- package/dist/types/lib/pdf-fast-path/builders.d.ts +0 -46
- package/dist/types/lib/pdf-fast-path/candidate-eligibility.d.ts +0 -17
- package/dist/types/lib/pdf-fast-path/extract-table-structure.d.ts +0 -5
- package/dist/types/lib/pdf-fast-path/index.d.ts +0 -27
- package/dist/types/lib/pdf-fast-path/pivot-fast-path-utils.d.ts +0 -12
- package/dist/types/lib/pdf-fast-path/prepare-server-table-pdf-export.d.ts +0 -37
- package/dist/types/lib/print/print-holds.d.ts +0 -15
- package/dist/types/lib/print-state/capture-expanded-state.d.ts +0 -38
- package/dist/types/lib/python/default-code.d.ts +0 -1
- package/dist/types/lib/query-context/build-card-control-context.d.ts +0 -16
- package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +0 -68
- package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +0 -63
- package/dist/types/lib/query-context/build-dashboard-frame-base-query-contexts.d.ts +0 -60
- package/dist/types/lib/query-context/build-global-date-comparison-context.d.ts +0 -8
- package/dist/types/lib/query-context/build-query-relevant-card-config.d.ts +0 -15
- package/dist/types/lib/query-context/card-execution.d.ts +0 -30
- package/dist/types/lib/query-context/control-contract-serialization.d.ts +0 -11
- package/dist/types/lib/query-context/dashboard-card-query-key.d.ts +0 -49
- package/dist/types/lib/query-context/dashboard-query-result-context.d.ts +0 -17
- package/dist/types/lib/query-context/document-section-card-query.d.ts +0 -37
- package/dist/types/lib/query-context/filter-group-utils.d.ts +0 -3
- package/dist/types/lib/query-context/normalize-dashboard-card-execution.d.ts +0 -7
- package/dist/types/lib/query-context/query-auth-scope.d.ts +0 -5
- package/dist/types/lib/query-context/resolve-render-card-config.d.ts +0 -16
- package/dist/types/lib/query-context/temporal-context-preview.d.ts +0 -14
- package/dist/types/lib/query-context/use-semantic-execution-payload-for-cards.d.ts +0 -24
- package/dist/types/lib/resize-observer-utils.d.ts +0 -10
- package/dist/types/lib/selection/click-to-filter-authoring-support.d.ts +0 -9
- package/dist/types/lib/selection/selection-from-click-context.d.ts +0 -41
- package/dist/types/lib/selection/selection-labels.d.ts +0 -3
- package/dist/types/lib/selection/selection-notices.d.ts +0 -9
- package/dist/types/lib/selection/selection-reducer.d.ts +0 -46
- package/dist/types/lib/stores/ai-interaction-store.d.ts +0 -97
- package/dist/types/lib/stores/assistant-layout-store.d.ts +0 -17
- package/dist/types/lib/stores/chartjs-store.d.ts +0 -36
- package/dist/types/lib/stores/explorer-empty-states.d.ts +0 -8
- package/dist/types/lib/stores/index.d.ts +0 -8
- package/dist/types/lib/stores/mount-store-devtool.d.ts +0 -2
- package/dist/types/lib/stores/utils.d.ts +0 -40
- package/dist/types/lib/table-formatting/table-column-visibility.d.ts +0 -5
- package/dist/types/lib/table-formatting/table-conditional-formatting-columns.d.ts +0 -14
- package/dist/types/lib/table-formatting/table-formatting-schemas.d.ts +0 -1101
- package/dist/types/lib/table-formatting/table-formatting-utils.d.ts +0 -30
- package/dist/types/lib/table-formatting/table-presentation-fields.d.ts +0 -22
- package/dist/types/lib/table-formatting/table-presentation-style.d.ts +0 -45
- package/dist/types/lib/table-formatting/table-result-bindings.d.ts +0 -12
- package/dist/types/lib/temporal-filter/temporal-filter-utils.d.ts +0 -59
- package/dist/types/lib/text-variables/temporal-input-text.d.ts +0 -28
- package/dist/types/lib/text-variables/text-variable-types.d.ts +0 -55
- package/dist/types/lib/types/calculated-field-domain-payloads.d.ts +0 -36
- package/dist/types/lib/types/calculated-field-editor-types.d.ts +0 -64
- package/dist/types/lib/types/feedback-types.d.ts +0 -60
- package/dist/types/lib/types/semantic-types.d.ts +0 -120
- package/dist/types/lib/ui/tenancy-ui.d.ts +0 -25
- package/dist/types/lib/utils/aggregate-expression-utils.d.ts +0 -2
- package/dist/types/lib/utils/app-url-utils.d.ts +0 -7
- package/dist/types/lib/utils/assistant-visibility.d.ts +0 -9
- package/dist/types/lib/utils/async-export-visible-columns.d.ts +0 -12
- package/dist/types/lib/utils/authored-card-fields.d.ts +0 -17
- package/dist/types/lib/utils/briefings-visibility.d.ts +0 -9
- package/dist/types/lib/utils/build-card-export-request.d.ts +0 -30
- package/dist/types/lib/utils/build-saved-editor-card.d.ts +0 -15
- package/dist/types/lib/utils/calculate-card-filter-values.d.ts +0 -23
- package/dist/types/lib/utils/calculate-context-aware-filters.d.ts +0 -46
- package/dist/types/lib/utils/calculated-date-dimension-defaults.d.ts +0 -9
- package/dist/types/lib/utils/calculated-dimension-utils.d.ts +0 -2
- package/dist/types/lib/utils/calculated-field-identity-utils.d.ts +0 -20
- package/dist/types/lib/utils/calculated-field-normalization.d.ts +0 -2
- package/dist/types/lib/utils/calculated-field-operations.d.ts +0 -40
- package/dist/types/lib/utils/calculated-field-permissions.d.ts +0 -12
- package/dist/types/lib/utils/calculated-field-row-templates.d.ts +0 -15
- package/dist/types/lib/utils/calculated-field-scope-utils.d.ts +0 -20
- package/dist/types/lib/utils/calculated-field-token-utils.d.ts +0 -34
- package/dist/types/lib/utils/calculated-field-transition-utils.d.ts +0 -113
- package/dist/types/lib/utils/calculated-field-utils.d.ts +0 -37
- package/dist/types/lib/utils/card-calculated-field-utils.d.ts +0 -12
- package/dist/types/lib/utils/card-config-utils.d.ts +0 -24
- package/dist/types/lib/utils/card-loading-state.d.ts +0 -18
- package/dist/types/lib/utils/card-utils.d.ts +0 -70
- package/dist/types/lib/utils/chart-icon-utils.d.ts +0 -26
- package/dist/types/lib/utils/chart-type-field-validation.d.ts +0 -25
- package/dist/types/lib/utils/comparison-export-utils.d.ts +0 -31
- package/dist/types/lib/utils/comparison-output-keys.d.ts +0 -37
- package/dist/types/lib/utils/comparison-period-utils.d.ts +0 -6
- package/dist/types/lib/utils/comparison-validation-utils.d.ts +0 -16
- package/dist/types/lib/utils/comparison-window-caption.d.ts +0 -12
- package/dist/types/lib/utils/connection-capabilities.d.ts +0 -26
- package/dist/types/lib/utils/control-default-value-utils.d.ts +0 -46
- package/dist/types/lib/utils/control-placeholder-utils.d.ts +0 -14
- package/dist/types/lib/utils/control-reference-utils.d.ts +0 -18
- package/dist/types/lib/utils/copy-control-bindings.d.ts +0 -3
- package/dist/types/lib/utils/custom-visual-inputs.d.ts +0 -43
- package/dist/types/lib/utils/dashboard-controls-visibility.d.ts +0 -23
- package/dist/types/lib/utils/dashboard-date-filter-utils.d.ts +0 -16
- package/dist/types/lib/utils/dashboard-interaction-mode.d.ts +0 -12
- package/dist/types/lib/utils/data-source-semantic-domain.d.ts +0 -12
- package/dist/types/lib/utils/data-source-utils.d.ts +0 -22
- package/dist/types/lib/utils/date-filter-column-utils.d.ts +0 -2
- package/dist/types/lib/utils/date-format-utils.d.ts +0 -8
- package/dist/types/lib/utils/date-granularity-utils.d.ts +0 -5
- package/dist/types/lib/utils/date-hierarchy-utils.d.ts +0 -75
- package/dist/types/lib/utils/date-timezone-utils.d.ts +0 -79
- package/dist/types/lib/utils/drag-and-drop-utils.d.ts +0 -8
- package/dist/types/lib/utils/drill-context-utils.d.ts +0 -32
- package/dist/types/lib/utils/entity-consistency-utils.d.ts +0 -48
- package/dist/types/lib/utils/entity-icon-utils.d.ts +0 -17
- package/dist/types/lib/utils/explorer-derived-field.d.ts +0 -4
- package/dist/types/lib/utils/explorer-field-identity.d.ts +0 -15
- package/dist/types/lib/utils/export-result-source.d.ts +0 -20
- package/dist/types/lib/utils/export-utils.d.ts +0 -26
- package/dist/types/lib/utils/expression-field-classification.d.ts +0 -12
- package/dist/types/lib/utils/fetch-export-data.d.ts +0 -14
- package/dist/types/lib/utils/field-availability-context.d.ts +0 -25
- package/dist/types/lib/utils/field-icon-utils.d.ts +0 -10
- package/dist/types/lib/utils/field-state-calculator.d.ts +0 -159
- package/dist/types/lib/utils/filter-formatter.d.ts +0 -24
- package/dist/types/lib/utils/filter-metadata-utils.d.ts +0 -28
- package/dist/types/lib/utils/filter-name-utils.d.ts +0 -27
- package/dist/types/lib/utils/filter-scoping-utils.d.ts +0 -64
- package/dist/types/lib/utils/filter-search-sql.d.ts +0 -17
- package/dist/types/lib/utils/format-config-extractor.d.ts +0 -21
- package/dist/types/lib/utils/frame-utils.d.ts +0 -27
- package/dist/types/lib/utils/inline-expression-utils.d.ts +0 -11
- package/dist/types/lib/utils/inline-filter-utils.d.ts +0 -16
- package/dist/types/lib/utils/interaction-display-utils.d.ts +0 -30
- package/dist/types/lib/utils/interaction-icons.d.ts +0 -10
- package/dist/types/lib/utils/is-safari-browser.d.ts +0 -6
- package/dist/types/lib/utils/join-plan-entity-matching.d.ts +0 -26
- package/dist/types/lib/utils/kpi-comparison-utils.d.ts +0 -12
- package/dist/types/lib/utils/kpi-field-cleanup-utils.d.ts +0 -19
- package/dist/types/lib/utils/kpi-format-migration.d.ts +0 -2
- package/dist/types/lib/utils/metric-comparison-config.d.ts +0 -9
- package/dist/types/lib/utils/physical-source-identity.d.ts +0 -12
- package/dist/types/lib/utils/qualified-entity-name.d.ts +0 -2
- package/dist/types/lib/utils/relative-date-description.d.ts +0 -38
- package/dist/types/lib/utils/resolve-selected-sheet-id.d.ts +0 -11
- package/dist/types/lib/utils/role-display-mappings.d.ts +0 -44
- package/dist/types/lib/utils/semantic-metric-format-defaults.d.ts +0 -3
- package/dist/types/lib/utils/slot-validation.d.ts +0 -12
- package/dist/types/lib/utils/stable-serialize.d.ts +0 -1
- package/dist/types/lib/utils/summary-eligibility.d.ts +0 -7
- package/dist/types/lib/utils/summary-filter-utils.d.ts +0 -2
- package/dist/types/lib/utils/table-comparison-utils.d.ts +0 -9
- package/dist/types/lib/utils/text-card-runtime-utils.d.ts +0 -6
- package/dist/types/lib/utils/url-parameter-utils.d.ts +0 -60
- package/dist/types/lib/utils/window-transform-utils.d.ts +0 -41
- package/dist/types/lib/visuals/frame-object.d.ts +0 -4
- package/dist/types/shared/analytics-protocol/qualified-identity.d.ts +0 -3
- package/dist/types/shared/dashboard-authoring/filter-defaults.d.ts +0 -2
- package/dist/types/shared/filter-native-data-type.d.ts +0 -59
- package/dist/types/shared/format-utils/formatters/exact-number.d.ts +0 -1
- package/dist/types/shared/format-utils/json-record.d.ts +0 -6
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { jsx as t, jsxs as r, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import { B as
|
|
4
|
-
import {
|
|
5
|
-
import { L as
|
|
6
|
-
import { c as
|
|
7
|
-
import { a as
|
|
8
|
-
import "./validators-
|
|
9
|
-
import "./matrix-operation-contract-
|
|
1
|
+
import { jsx as t, jsxs as r, Fragment as j } from "react/jsx-runtime";
|
|
2
|
+
import Dt, { useState as E, useEffect as Y, useMemo as Z, useCallback as H, useLayoutEffect as yt, useRef as ue, useContext as Kt } from "react";
|
|
3
|
+
import { B as R, m as ke, r as at, L as ae, k as kt, d as Et, a6 as $, c as K, j as Xt, u as T, a2 as fe, a0 as ve, aN as nt, a3 as At, P as ze, a as $e, b as je, aY as Yt, S as It, aZ as Qt, a_ as Zt, a$ as Jt, b0 as er, a4 as tr } from "./switch-BR3Xgbqr.js";
|
|
4
|
+
import { cm as st, aK as Ee, aL as Ae, aN as Ie, b6 as Lt, ay as rr, cn as ar, co as nr, bn as xe, c0 as Ft, be as We, q as sr, m as or, cp as ir, ce as ot, cf as it, cg as lt, ch as dt, ci as ct, cj as ut, ck as ht, cl as Tt, bc as mt, cq as lr, cr as dr, cs as Je, c1 as Ge, c2 as Ke, ct as Bt, c3 as Xe, bJ as G, cc as cr, cb as He, cu as ur, bH as hr, aM as pt, aO as ft, cv as mr, aJ as pr, b5 as fr, bq as Rt, cw as gr, bQ as br, u as xr, cx as vr, cy as yr, aD as Ye, L as me, av as De, ar as Ut, as as qe, cz as z, N as Vt, aq as Cr, cA as wr, ax as Nr, R as Pt, cB as Sr, cC as Dr, at as Ct, P as kr, cD as Er, cE as Ar, cF as Ir, cG as Lr, cH as Fr, cI as Tr, cJ as Mt, cK as Br, cL as Rr, cM as Ur, c4 as _t, cN as Vr, cO as Pr, cP as Me, cQ as Mr, cR as _r, cS as Or, am as zr, an as $r, a2 as jr, a1 as Wr, a0 as Hr, $ as qr, Y as Gr, W as Kr, cT as Xr, cU as Yr, cV as Qr, cW as Zr, cX as Jr, ak as ea, cY as ta, cZ as ra, a8 as aa, c_ as na, c$ as sa, d0 as oa } from "./semaphor-ready-indicator-z4SNdxiC.js";
|
|
5
|
+
import { L as gt } from "./layout-grid-CiubineE.js";
|
|
6
|
+
import { c as Le, X as Qe, C as Ot } from "./x-CXDkqdur.js";
|
|
7
|
+
import { a as bt, V as ia, E as et, b as tt, c as la, d as da, L as ca, e as ua, g as zt, C as $t, F as ha, h as ma } from "./editor-action-buttons-CVtSO3I3.js";
|
|
8
|
+
import "./validators-DMSH81OM.js";
|
|
9
|
+
import "./matrix-operation-contract-BKupLHXL.js";
|
|
10
10
|
import "zod";
|
|
11
11
|
import "../value-format-preferences/index.js";
|
|
12
|
-
import { S as
|
|
13
|
-
import { s as
|
|
14
|
-
import { v as
|
|
15
|
-
import { l as
|
|
16
|
-
import {
|
|
12
|
+
import { S as pa } from "./selection-reducer-CiDEtmAq.js";
|
|
13
|
+
import { s as _e } from "./normalize-dashboard-for-dirty-check-Bk3VYv_q.js";
|
|
14
|
+
import { v as wt, s as fa } from "./card-config-utils-BlIiFn0O.js";
|
|
15
|
+
import { l as Nt } from "./matrix-formatter-DJCk8Znf.js";
|
|
16
|
+
import { l as ga } from "./bookmark-state-B-I9BDD0.js";
|
|
17
|
+
import { d as oe, e as ba, h as xa } from "./index-BQl5rC54.js";
|
|
17
18
|
/**
|
|
18
19
|
* @license lucide-react v0.453.0 - ISC
|
|
19
20
|
*
|
|
20
21
|
* This source code is licensed under the ISC license.
|
|
21
22
|
* See the LICENSE file in the root directory of this source tree.
|
|
22
23
|
*/
|
|
23
|
-
const
|
|
24
|
+
const va = Le("ArrowUpRight", [
|
|
24
25
|
["path", { d: "M7 7h10v10", key: "1tivn9" }],
|
|
25
26
|
["path", { d: "M7 17 17 7", key: "1vkiza" }]
|
|
26
27
|
]);
|
|
@@ -30,7 +31,7 @@ const ba = Ee("ArrowUpRight", [
|
|
|
30
31
|
* This source code is licensed under the ISC license.
|
|
31
32
|
* See the LICENSE file in the root directory of this source tree.
|
|
32
33
|
*/
|
|
33
|
-
const
|
|
34
|
+
const ya = Le("CalendarRange", [
|
|
34
35
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
35
36
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
36
37
|
["path", { d: "M3 10h18", key: "8toen8" }],
|
|
@@ -46,7 +47,7 @@ const xa = Ee("CalendarRange", [
|
|
|
46
47
|
* This source code is licensed under the ISC license.
|
|
47
48
|
* See the LICENSE file in the root directory of this source tree.
|
|
48
49
|
*/
|
|
49
|
-
const
|
|
50
|
+
const Ca = Le("FileDown", [
|
|
50
51
|
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
|
|
51
52
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
52
53
|
["path", { d: "M12 18v-6", key: "17g6i2" }],
|
|
@@ -58,7 +59,7 @@ const va = Ee("FileDown", [
|
|
|
58
59
|
* This source code is licensed under the ISC license.
|
|
59
60
|
* See the LICENSE file in the root directory of this source tree.
|
|
60
61
|
*/
|
|
61
|
-
const
|
|
62
|
+
const wa = Le("MousePointer2", [
|
|
62
63
|
[
|
|
63
64
|
"path",
|
|
64
65
|
{
|
|
@@ -73,7 +74,7 @@ const ya = Ee("MousePointer2", [
|
|
|
73
74
|
* This source code is licensed under the ISC license.
|
|
74
75
|
* See the LICENSE file in the root directory of this source tree.
|
|
75
76
|
*/
|
|
76
|
-
const
|
|
77
|
+
const Na = Le("Newspaper", [
|
|
77
78
|
[
|
|
78
79
|
"path",
|
|
79
80
|
{
|
|
@@ -85,7 +86,7 @@ const Ca = Ee("Newspaper", [
|
|
|
85
86
|
["path", { d: "M15 18h-5", key: "95g1m2" }],
|
|
86
87
|
["path", { d: "M10 6h8v4h-8V6Z", key: "smlsk5" }]
|
|
87
88
|
]);
|
|
88
|
-
function
|
|
89
|
+
function Sa() {
|
|
89
90
|
return /* @__PURE__ */ t("div", { className: "space-y-1.5 py-1", children: [...Array(5)].map((e, a) => /* @__PURE__ */ r(
|
|
90
91
|
"div",
|
|
91
92
|
{
|
|
@@ -101,38 +102,38 @@ function wa() {
|
|
|
101
102
|
a
|
|
102
103
|
)) });
|
|
103
104
|
}
|
|
104
|
-
function
|
|
105
|
+
function Da({
|
|
105
106
|
open: e,
|
|
106
107
|
onOpenChange: a,
|
|
107
|
-
onSubmit:
|
|
108
|
+
onSubmit: i,
|
|
108
109
|
isCreating: n
|
|
109
110
|
}) {
|
|
110
|
-
const
|
|
111
|
+
const l = st("interactive"), [s, u] = E(""), [p, o] = E("");
|
|
111
112
|
Y(() => {
|
|
112
|
-
e || (
|
|
113
|
+
e || (u(""), o(""));
|
|
113
114
|
}, [e]);
|
|
114
|
-
const
|
|
115
|
-
s.trim() &&
|
|
116
|
-
}, d = (
|
|
117
|
-
a(
|
|
115
|
+
const c = () => {
|
|
116
|
+
s.trim() && i({ title: s, description: p });
|
|
117
|
+
}, d = (m) => {
|
|
118
|
+
a(m);
|
|
118
119
|
};
|
|
119
|
-
return /* @__PURE__ */ t(
|
|
120
|
-
|
|
120
|
+
return /* @__PURE__ */ t(Ee, { open: e, onOpenChange: d, children: /* @__PURE__ */ r(
|
|
121
|
+
Ae,
|
|
121
122
|
{
|
|
122
123
|
showCloseButton: !1,
|
|
123
124
|
className: "flex max-w-lg grid-cols-none flex-col gap-0 overflow-hidden rounded-card border-border/60 p-0 shadow-lg sm:rounded-card",
|
|
124
|
-
style:
|
|
125
|
+
style: l.dialogStyle,
|
|
125
126
|
children: [
|
|
126
127
|
/* @__PURE__ */ r("div", { className: "flex h-10 shrink-0 items-center justify-between gap-2 border-b border-border/60 px-3", children: [
|
|
127
128
|
/* @__PURE__ */ r("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
128
|
-
/* @__PURE__ */ t(
|
|
129
|
+
/* @__PURE__ */ t(gt, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
129
130
|
/* @__PURE__ */ r("div", { className: "flex min-w-0 items-baseline gap-2", children: [
|
|
130
|
-
/* @__PURE__ */ t(
|
|
131
|
+
/* @__PURE__ */ t(Ie, { className: "truncate text-[13px] font-medium leading-none tracking-normal", children: "New library visual" }),
|
|
131
132
|
/* @__PURE__ */ t("span", { className: "shrink-0 text-[10px] font-medium uppercase leading-none tracking-[0.08em] text-muted-foreground", children: "Visual" })
|
|
132
133
|
] })
|
|
133
134
|
] }),
|
|
134
135
|
/* @__PURE__ */ t(
|
|
135
|
-
|
|
136
|
+
R,
|
|
136
137
|
{
|
|
137
138
|
size: "xs",
|
|
138
139
|
variant: "ghost",
|
|
@@ -140,39 +141,39 @@ function Na({
|
|
|
140
141
|
onClick: () => d(!1),
|
|
141
142
|
"aria-label": "Close",
|
|
142
143
|
disabled: n,
|
|
143
|
-
children: /* @__PURE__ */ t(
|
|
144
|
+
children: /* @__PURE__ */ t(Qe, { className: "h-3.5 w-3.5" })
|
|
144
145
|
}
|
|
145
146
|
)
|
|
146
147
|
] }),
|
|
147
148
|
/* @__PURE__ */ r("div", { className: "space-y-3 px-4 py-3", children: [
|
|
148
149
|
/* @__PURE__ */ t("p", { className: "text-[12px] text-muted-foreground", children: "Create a saved visual that can be reused across dashboards." }),
|
|
149
150
|
/* @__PURE__ */ r("div", { className: "space-y-1.5", children: [
|
|
150
|
-
/* @__PURE__ */ t(
|
|
151
|
+
/* @__PURE__ */ t(ke, { htmlFor: "visual-title", className: "text-[12px]", children: "Name" }),
|
|
151
152
|
/* @__PURE__ */ t(
|
|
152
|
-
|
|
153
|
+
at,
|
|
153
154
|
{
|
|
154
155
|
id: "visual-title",
|
|
155
156
|
size: "sm",
|
|
156
157
|
placeholder: "Untitled visual",
|
|
157
158
|
value: s,
|
|
158
|
-
onChange: (
|
|
159
|
+
onChange: (m) => u(m.target.value),
|
|
159
160
|
disabled: n,
|
|
160
|
-
onKeyDown: (
|
|
161
|
-
|
|
161
|
+
onKeyDown: (m) => {
|
|
162
|
+
m.key === "Enter" && !m.shiftKey && (m.preventDefault(), c());
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
165
|
)
|
|
165
166
|
] }),
|
|
166
167
|
/* @__PURE__ */ r("div", { className: "space-y-1.5", children: [
|
|
167
|
-
/* @__PURE__ */ t(
|
|
168
|
+
/* @__PURE__ */ t(ke, { htmlFor: "visual-description", className: "text-[12px]", children: "Description" }),
|
|
168
169
|
/* @__PURE__ */ t(
|
|
169
|
-
|
|
170
|
+
at,
|
|
170
171
|
{
|
|
171
172
|
id: "visual-description",
|
|
172
173
|
size: "sm",
|
|
173
174
|
placeholder: "Optional",
|
|
174
|
-
value:
|
|
175
|
-
onChange: (
|
|
175
|
+
value: p,
|
|
176
|
+
onChange: (m) => o(m.target.value),
|
|
176
177
|
disabled: n
|
|
177
178
|
}
|
|
178
179
|
)
|
|
@@ -180,7 +181,7 @@ function Na({
|
|
|
180
181
|
] }),
|
|
181
182
|
/* @__PURE__ */ r("div", { className: "flex shrink-0 justify-end gap-2 border-t border-border/60 px-4 py-2.5", children: [
|
|
182
183
|
/* @__PURE__ */ t(
|
|
183
|
-
|
|
184
|
+
R,
|
|
184
185
|
{
|
|
185
186
|
size: "xs",
|
|
186
187
|
variant: "outline",
|
|
@@ -190,13 +191,13 @@ function Na({
|
|
|
190
191
|
}
|
|
191
192
|
),
|
|
192
193
|
/* @__PURE__ */ t(
|
|
193
|
-
|
|
194
|
+
R,
|
|
194
195
|
{
|
|
195
196
|
size: "xs",
|
|
196
|
-
onClick:
|
|
197
|
+
onClick: c,
|
|
197
198
|
disabled: !s.trim() || n,
|
|
198
|
-
children: n ? /* @__PURE__ */ r(
|
|
199
|
-
/* @__PURE__ */ t(
|
|
199
|
+
children: n ? /* @__PURE__ */ r(j, { children: [
|
|
200
|
+
/* @__PURE__ */ t(ae, { className: "h-3.5 w-3.5 animate-spin" }),
|
|
200
201
|
"Creating..."
|
|
201
202
|
] }) : "Create library visual"
|
|
202
203
|
}
|
|
@@ -206,200 +207,200 @@ function Na({
|
|
|
206
207
|
}
|
|
207
208
|
) });
|
|
208
209
|
}
|
|
209
|
-
function
|
|
210
|
+
function jt(e) {
|
|
210
211
|
return e ? new Date(e).toLocaleDateString("en-US", {
|
|
211
212
|
month: "short",
|
|
212
213
|
day: "numeric",
|
|
213
214
|
year: "numeric"
|
|
214
215
|
}) : "Unknown";
|
|
215
216
|
}
|
|
216
|
-
function
|
|
217
|
+
function Wt(e, a) {
|
|
217
218
|
var n;
|
|
218
|
-
const
|
|
219
|
-
return
|
|
219
|
+
const i = (n = e.ownership.createdBy) == null ? void 0 : n.type;
|
|
220
|
+
return i === "tenant" || i === "organization" && a;
|
|
220
221
|
}
|
|
221
|
-
function
|
|
222
|
-
var
|
|
223
|
-
return
|
|
222
|
+
function xt(e, a) {
|
|
223
|
+
var i, n;
|
|
224
|
+
return Wt(e, a) ? ((i = e.ownership.createdBy) == null ? void 0 : i.name) || ((n = e.createdByTenantUserRel) == null ? void 0 : n.name) || e.lastModifiedBy || "Unknown" : "Organization";
|
|
224
225
|
}
|
|
225
|
-
function
|
|
226
|
-
return
|
|
226
|
+
function ka(e, a) {
|
|
227
|
+
return xt(e, a).split(/\s+/).filter(Boolean).slice(0, 2).map((n) => n.charAt(0).toUpperCase()).join("") || "?";
|
|
227
228
|
}
|
|
228
|
-
function
|
|
229
|
+
function Ea(e) {
|
|
229
230
|
const a = (e || "").toLowerCase();
|
|
230
|
-
return a.includes("table") ?
|
|
231
|
+
return a.includes("table") ? kt : a.includes("pie") || a.includes("donut") ? lr : a.includes("line") ? dr : a.includes("bar") ? Xt : gt;
|
|
231
232
|
}
|
|
232
|
-
function
|
|
233
|
+
function Aa({ visual: e }) {
|
|
233
234
|
const a = e.ownership.status === "public" ? "Public" : e.ownership.status === "shared" || e.ownership.sharedCount > 0 ? "Shared" : "Private";
|
|
234
235
|
return /* @__PURE__ */ t("span", { className: "inline-flex items-center rounded-[4px] border border-border/60 px-1.5 py-px text-[11px] text-muted-foreground", children: a });
|
|
235
236
|
}
|
|
236
|
-
function
|
|
237
|
+
function qn({
|
|
237
238
|
open: e,
|
|
238
239
|
onOpenChange: a
|
|
239
240
|
}) {
|
|
240
|
-
const
|
|
241
|
+
const i = st("interactive"), [n, l] = E(""), [s, u] = E(/* @__PURE__ */ new Set()), [p, o] = E(!1), [c, d] = E(
|
|
241
242
|
null
|
|
242
|
-
), [
|
|
243
|
+
), [m, h] = E(
|
|
243
244
|
null
|
|
244
|
-
), [f,
|
|
245
|
-
|
|
245
|
+
), [f, b] = E(!1), [k, I] = E(null), [y, S] = E(null), D = () => {
|
|
246
|
+
u(/* @__PURE__ */ new Set()), d(null), h(null), b(!1), I(null);
|
|
246
247
|
}, w = () => {
|
|
247
|
-
a(!1),
|
|
248
|
-
}, { selectVisual:
|
|
249
|
-
resources:
|
|
250
|
-
isLoading:
|
|
251
|
-
isError:
|
|
252
|
-
createResource:
|
|
248
|
+
a(!1), D();
|
|
249
|
+
}, { selectVisual: C } = Lt(), { handleAddLibraryVisual: F, handleEditLibraryVisual: g } = bt(), { isConsoleMode: v } = rr(), {
|
|
250
|
+
resources: U,
|
|
251
|
+
isLoading: A,
|
|
252
|
+
isError: q,
|
|
253
|
+
createResource: L,
|
|
253
254
|
updateResource: P,
|
|
254
|
-
deleteResourceAsync:
|
|
255
|
-
duplicateResource:
|
|
256
|
-
isCreating:
|
|
257
|
-
isDeleting:
|
|
258
|
-
} =
|
|
255
|
+
deleteResourceAsync: J,
|
|
256
|
+
duplicateResource: ne,
|
|
257
|
+
isCreating: Fe,
|
|
258
|
+
isDeleting: ie
|
|
259
|
+
} = ar(
|
|
259
260
|
void 0,
|
|
260
|
-
(
|
|
261
|
-
|
|
261
|
+
(x) => {
|
|
262
|
+
o(!1), x && (C(x), g(x), w());
|
|
262
263
|
}
|
|
263
264
|
), {
|
|
264
|
-
startUpdating:
|
|
265
|
-
stopUpdating:
|
|
266
|
-
isUpdating:
|
|
267
|
-
} =
|
|
268
|
-
const
|
|
269
|
-
return
|
|
265
|
+
startUpdating: Te,
|
|
266
|
+
stopUpdating: Be,
|
|
267
|
+
isUpdating: le
|
|
268
|
+
} = nr(), W = U, ee = Z(() => {
|
|
269
|
+
const x = n.trim().toLowerCase();
|
|
270
|
+
return x ? W.filter(
|
|
270
271
|
(B) => {
|
|
271
|
-
var M,
|
|
272
|
-
return ((M = B.title) == null ? void 0 : M.toLowerCase().includes(
|
|
272
|
+
var M, re, ce;
|
|
273
|
+
return ((M = B.title) == null ? void 0 : M.toLowerCase().includes(x)) || ((re = B.description) == null ? void 0 : re.toLowerCase().includes(x)) || ((ce = B.kind) == null ? void 0 : ce.toLowerCase().includes(x));
|
|
273
274
|
}
|
|
274
|
-
) :
|
|
275
|
-
}, [n,
|
|
276
|
-
() =>
|
|
277
|
-
(
|
|
275
|
+
) : W;
|
|
276
|
+
}, [n, W]), de = Z(
|
|
277
|
+
() => W.filter(
|
|
278
|
+
(x) => s.has(x.id)
|
|
278
279
|
),
|
|
279
|
-
[s,
|
|
280
|
-
),
|
|
281
|
-
(
|
|
282
|
-
),
|
|
283
|
-
(
|
|
284
|
-
),
|
|
285
|
-
(
|
|
286
|
-
),
|
|
287
|
-
(
|
|
288
|
-
),
|
|
280
|
+
[s, W]
|
|
281
|
+
), te = de.filter(
|
|
282
|
+
(x) => x.permissions.canDelete
|
|
283
|
+
), Re = de.filter(
|
|
284
|
+
(x) => x.permissions.canShare
|
|
285
|
+
), ye = ee.length > 0 && ee.every(
|
|
286
|
+
(x) => s.has(x.id)
|
|
287
|
+
), he = ee.some(
|
|
288
|
+
(x) => s.has(x.id)
|
|
289
|
+
), ge = (x) => {
|
|
289
290
|
const B = new Set(s);
|
|
290
|
-
|
|
291
|
-
}, Q = (
|
|
292
|
-
|
|
293
|
-
B.has(
|
|
291
|
+
x(B), u(B);
|
|
292
|
+
}, Q = (x) => {
|
|
293
|
+
ge((B) => {
|
|
294
|
+
B.has(x) ? B.delete(x) : B.add(x);
|
|
294
295
|
});
|
|
295
|
-
},
|
|
296
|
-
|
|
297
|
-
const B = new Set(
|
|
298
|
-
return
|
|
296
|
+
}, Ce = () => {
|
|
297
|
+
u((x) => {
|
|
298
|
+
const B = new Set(x);
|
|
299
|
+
return ye ? ee.forEach(
|
|
299
300
|
(M) => B.delete(M.id)
|
|
300
|
-
) :
|
|
301
|
+
) : ee.forEach(
|
|
301
302
|
(M) => B.add(M.id)
|
|
302
303
|
), B;
|
|
303
304
|
});
|
|
304
|
-
}, _ = async (
|
|
305
|
-
(await
|
|
305
|
+
}, _ = async (x) => {
|
|
306
|
+
(await F(x)).success && w();
|
|
306
307
|
}, O = async () => {
|
|
307
|
-
const
|
|
308
|
-
if (
|
|
308
|
+
const x = de;
|
|
309
|
+
if (x.length === 0) return;
|
|
309
310
|
let B = !1;
|
|
310
|
-
for (const M of
|
|
311
|
-
if (!(await
|
|
311
|
+
for (const M of x)
|
|
312
|
+
if (!(await F(M)).success) {
|
|
312
313
|
B = !0;
|
|
313
314
|
break;
|
|
314
315
|
}
|
|
315
316
|
B || w();
|
|
316
|
-
},
|
|
317
|
-
|
|
318
|
-
},
|
|
319
|
-
S(
|
|
317
|
+
}, se = (x) => {
|
|
318
|
+
g(x), w();
|
|
319
|
+
}, be = (x) => {
|
|
320
|
+
S(x), ne(x, {
|
|
320
321
|
onSettled: () => S(null)
|
|
321
322
|
});
|
|
322
|
-
},
|
|
323
|
-
if (
|
|
324
|
-
|
|
323
|
+
}, Ue = () => {
|
|
324
|
+
if (te.length === 0) {
|
|
325
|
+
$.error("Select a visual you can delete");
|
|
325
326
|
return;
|
|
326
327
|
}
|
|
327
|
-
|
|
328
|
-
},
|
|
329
|
-
const
|
|
328
|
+
I(null), b(!0);
|
|
329
|
+
}, Ze = async () => {
|
|
330
|
+
const x = k ? [k] : te;
|
|
330
331
|
try {
|
|
331
|
-
for (const B of
|
|
332
|
-
await
|
|
333
|
-
|
|
332
|
+
for (const B of x)
|
|
333
|
+
await J(B.id);
|
|
334
|
+
u((B) => {
|
|
334
335
|
const M = new Set(B);
|
|
335
|
-
return
|
|
336
|
-
(
|
|
336
|
+
return x.forEach(
|
|
337
|
+
(re) => M.delete(re.id)
|
|
337
338
|
), M;
|
|
338
|
-
}),
|
|
339
|
+
}), b(!1), I(null);
|
|
339
340
|
} catch {
|
|
340
341
|
}
|
|
341
|
-
},
|
|
342
|
-
if (
|
|
343
|
-
|
|
342
|
+
}, we = () => {
|
|
343
|
+
if (de.length !== 1) {
|
|
344
|
+
$.error("Select one visual to share");
|
|
344
345
|
return;
|
|
345
346
|
}
|
|
346
|
-
const [
|
|
347
|
-
if (!
|
|
348
|
-
|
|
347
|
+
const [x] = de;
|
|
348
|
+
if (!x.permissions.canShare) {
|
|
349
|
+
$.error("You do not have permission to share this visual");
|
|
349
350
|
return;
|
|
350
351
|
}
|
|
351
|
-
d(
|
|
352
|
-
},
|
|
353
|
-
title:
|
|
352
|
+
d(x);
|
|
353
|
+
}, Ne = ({
|
|
354
|
+
title: x,
|
|
354
355
|
description: B
|
|
355
356
|
}) => {
|
|
356
|
-
if (!
|
|
357
|
+
if (!m) return;
|
|
357
358
|
const M = {};
|
|
358
|
-
if (
|
|
359
|
+
if (x !== m.title && (M.title = x), (m.description || "") !== B && (M.description = B), Object.keys(M).length === 0) {
|
|
359
360
|
h(null);
|
|
360
361
|
return;
|
|
361
362
|
}
|
|
362
|
-
const
|
|
363
|
-
|
|
363
|
+
const re = Object.keys(M), ce = re.length === 1 ? re[0] : void 0;
|
|
364
|
+
Te(m.id, ce), P(
|
|
364
365
|
{
|
|
365
|
-
resourceId:
|
|
366
|
+
resourceId: m.id,
|
|
366
367
|
data: M
|
|
367
368
|
},
|
|
368
369
|
{
|
|
369
370
|
onSuccess: () => {
|
|
370
|
-
|
|
371
|
+
Be(m.id, ce), h(null);
|
|
371
372
|
},
|
|
372
373
|
onError: () => {
|
|
373
|
-
|
|
374
|
+
Be(m.id, ce);
|
|
374
375
|
}
|
|
375
376
|
}
|
|
376
377
|
);
|
|
377
|
-
},
|
|
378
|
-
a(
|
|
379
|
-
},
|
|
380
|
-
return /* @__PURE__ */ r(
|
|
381
|
-
/* @__PURE__ */ t(
|
|
382
|
-
|
|
378
|
+
}, X = (x) => {
|
|
379
|
+
a(x), x || D();
|
|
380
|
+
}, Se = k ? 1 : te.length;
|
|
381
|
+
return /* @__PURE__ */ r(j, { children: [
|
|
382
|
+
/* @__PURE__ */ t(Ee, { open: e, onOpenChange: X, children: /* @__PURE__ */ r(
|
|
383
|
+
Ae,
|
|
383
384
|
{
|
|
384
385
|
showCloseButton: !1,
|
|
385
386
|
className: "flex max-h-[80vh] w-[min(72rem,calc(100vw-2rem))] max-w-none grid-cols-none flex-col gap-0 overflow-hidden rounded-card border-border/60 p-0 shadow-lg sm:rounded-card",
|
|
386
|
-
style:
|
|
387
|
+
style: i.dialogStyle,
|
|
387
388
|
children: [
|
|
388
389
|
/* @__PURE__ */ r("div", { className: "flex h-10 shrink-0 items-center justify-between gap-2 border-b border-border/60 px-3", children: [
|
|
389
390
|
/* @__PURE__ */ r("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
390
|
-
/* @__PURE__ */ t(
|
|
391
|
+
/* @__PURE__ */ t(kt, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
391
392
|
/* @__PURE__ */ r("div", { className: "flex min-w-0 items-baseline gap-2", children: [
|
|
392
|
-
/* @__PURE__ */ t(
|
|
393
|
+
/* @__PURE__ */ t(Ie, { className: "truncate text-[13px] font-medium leading-none tracking-normal", children: "Visuals library" }),
|
|
393
394
|
/* @__PURE__ */ t("span", { className: "shrink-0 text-[10px] font-medium uppercase leading-none tracking-[0.08em] text-muted-foreground", children: "Add to dashboard" })
|
|
394
395
|
] })
|
|
395
396
|
] }),
|
|
396
397
|
/* @__PURE__ */ t(
|
|
397
|
-
|
|
398
|
+
R,
|
|
398
399
|
{
|
|
399
400
|
size: "xs",
|
|
400
401
|
variant: "ghost",
|
|
401
402
|
className: "w-7 px-0 text-muted-foreground hover:text-foreground",
|
|
402
|
-
onClick: () =>
|
|
403
|
+
onClick: () => X(!1),
|
|
403
404
|
"aria-label": "Close visuals library",
|
|
404
405
|
children: "×"
|
|
405
406
|
}
|
|
@@ -407,13 +408,13 @@ function _n({
|
|
|
407
408
|
] }),
|
|
408
409
|
/* @__PURE__ */ r("div", { className: "flex shrink-0 items-center gap-2 border-b border-border/60 px-3 py-2", children: [
|
|
409
410
|
/* @__PURE__ */ r("div", { className: "relative min-w-[12rem] flex-1 md:max-w-md", children: [
|
|
410
|
-
/* @__PURE__ */ t(
|
|
411
|
+
/* @__PURE__ */ t(pa, { className: "pointer-events-none absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" }),
|
|
411
412
|
/* @__PURE__ */ t(
|
|
412
413
|
"input",
|
|
413
414
|
{
|
|
414
415
|
autoFocus: !0,
|
|
415
416
|
value: n,
|
|
416
|
-
onChange: (
|
|
417
|
+
onChange: (x) => l(x.target.value),
|
|
417
418
|
placeholder: "Search visuals...",
|
|
418
419
|
className: "h-7 w-full rounded-control border border-input bg-background pl-7 pr-2 text-[12px] text-foreground placeholder:text-muted-foreground focus:border-ring focus:outline-none",
|
|
419
420
|
"aria-label": "Search visuals"
|
|
@@ -421,108 +422,108 @@ function _n({
|
|
|
421
422
|
)
|
|
422
423
|
] }),
|
|
423
424
|
/* @__PURE__ */ r(
|
|
424
|
-
|
|
425
|
+
R,
|
|
425
426
|
{
|
|
426
427
|
size: "xs",
|
|
427
428
|
variant: "outline",
|
|
428
429
|
className: "ml-auto",
|
|
429
|
-
onClick: () =>
|
|
430
|
+
onClick: () => o(!0),
|
|
430
431
|
children: [
|
|
431
|
-
/* @__PURE__ */ t(
|
|
432
|
+
/* @__PURE__ */ t(xe, { className: "h-3.5 w-3.5" }),
|
|
432
433
|
"New library visual"
|
|
433
434
|
]
|
|
434
435
|
}
|
|
435
436
|
)
|
|
436
437
|
] }),
|
|
437
|
-
/* @__PURE__ */ t("div", { className: "min-h-0 flex-1 overflow-auto", children:
|
|
438
|
-
/* @__PURE__ */ t(
|
|
438
|
+
/* @__PURE__ */ t("div", { className: "min-h-0 flex-1 overflow-auto", children: A ? /* @__PURE__ */ t("div", { className: "p-3", children: /* @__PURE__ */ t(Sa, {}) }) : q ? /* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: /* @__PURE__ */ t("p", { className: "text-[13px] text-destructive", children: "Failed to load visuals" }) }) : ee.length === 0 ? /* @__PURE__ */ r("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: [
|
|
439
|
+
/* @__PURE__ */ t(gt, { className: "h-5 w-5 text-muted-foreground/60" }),
|
|
439
440
|
/* @__PURE__ */ t("p", { className: "text-[13px] font-medium", children: n ? "No visuals found" : "No visuals yet" }),
|
|
440
441
|
/* @__PURE__ */ t("p", { className: "text-[12px] text-muted-foreground", children: n ? "Try a different search." : "Create a saved visual to add it here." })
|
|
441
442
|
] }) : /* @__PURE__ */ t(
|
|
442
|
-
|
|
443
|
+
Ia,
|
|
443
444
|
{
|
|
444
|
-
visuals:
|
|
445
|
+
visuals: ee,
|
|
445
446
|
selectedIds: s,
|
|
446
|
-
allFilteredSelected:
|
|
447
|
-
someFilteredSelected:
|
|
448
|
-
onSelectAll:
|
|
447
|
+
allFilteredSelected: ye,
|
|
448
|
+
someFilteredSelected: he,
|
|
449
|
+
onSelectAll: Ce,
|
|
449
450
|
onToggleSelection: Q,
|
|
450
451
|
onAddVisual: _,
|
|
451
|
-
onOpenVisual:
|
|
452
|
+
onOpenVisual: se,
|
|
452
453
|
onEditDetails: h,
|
|
453
454
|
onShareVisual: d,
|
|
454
|
-
onDeleteVisual: (
|
|
455
|
-
x
|
|
455
|
+
onDeleteVisual: (x) => {
|
|
456
|
+
I(x), b(!0);
|
|
456
457
|
},
|
|
457
|
-
onDuplicateVisual:
|
|
458
|
-
duplicatingId:
|
|
459
|
-
isDeleting:
|
|
460
|
-
isConsoleMode:
|
|
458
|
+
onDuplicateVisual: be,
|
|
459
|
+
duplicatingId: y,
|
|
460
|
+
isDeleting: ie,
|
|
461
|
+
isConsoleMode: v
|
|
461
462
|
}
|
|
462
463
|
) }),
|
|
463
464
|
/* @__PURE__ */ r("div", { className: "flex shrink-0 items-center justify-between gap-2 border-t border-border/60 px-3 py-2", children: [
|
|
464
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 items-center gap-1.5", children: s.size > 0 && /* @__PURE__ */ r(
|
|
465
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 items-center gap-1.5", children: s.size > 0 && /* @__PURE__ */ r(j, { children: [
|
|
465
466
|
/* @__PURE__ */ r("span", { className: "text-[12px] text-muted-foreground", children: [
|
|
466
467
|
/* @__PURE__ */ t("span", { className: "font-medium tabular-nums text-foreground", children: s.size }),
|
|
467
468
|
" ",
|
|
468
469
|
"selected"
|
|
469
470
|
] }),
|
|
470
471
|
/* @__PURE__ */ t(
|
|
471
|
-
|
|
472
|
+
R,
|
|
472
473
|
{
|
|
473
474
|
size: "xs",
|
|
474
475
|
variant: "ghost",
|
|
475
|
-
onClick: () =>
|
|
476
|
+
onClick: () => u(/* @__PURE__ */ new Set()),
|
|
476
477
|
children: "Clear"
|
|
477
478
|
}
|
|
478
479
|
),
|
|
479
480
|
/* @__PURE__ */ r(
|
|
480
|
-
|
|
481
|
+
R,
|
|
481
482
|
{
|
|
482
483
|
size: "xs",
|
|
483
484
|
variant: "outline",
|
|
484
|
-
onClick:
|
|
485
|
-
disabled:
|
|
485
|
+
onClick: we,
|
|
486
|
+
disabled: de.length !== 1 || Re.length !== 1,
|
|
486
487
|
children: [
|
|
487
|
-
/* @__PURE__ */ t(
|
|
488
|
+
/* @__PURE__ */ t(Ft, { className: "h-3.5 w-3.5" }),
|
|
488
489
|
"Share"
|
|
489
490
|
]
|
|
490
491
|
}
|
|
491
492
|
),
|
|
492
493
|
/* @__PURE__ */ r(
|
|
493
|
-
|
|
494
|
+
R,
|
|
494
495
|
{
|
|
495
496
|
size: "xs",
|
|
496
497
|
variant: "outline",
|
|
497
498
|
className: "text-destructive hover:text-destructive",
|
|
498
|
-
onClick:
|
|
499
|
-
disabled:
|
|
499
|
+
onClick: Ue,
|
|
500
|
+
disabled: te.length === 0,
|
|
500
501
|
children: [
|
|
501
|
-
/* @__PURE__ */ t(
|
|
502
|
+
/* @__PURE__ */ t(We, { className: "h-3.5 w-3.5" }),
|
|
502
503
|
"Delete ",
|
|
503
|
-
|
|
504
|
+
te.length || s.size
|
|
504
505
|
]
|
|
505
506
|
}
|
|
506
507
|
)
|
|
507
508
|
] }) }),
|
|
508
509
|
/* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
|
|
509
510
|
/* @__PURE__ */ t(
|
|
510
|
-
|
|
511
|
+
R,
|
|
511
512
|
{
|
|
512
513
|
size: "xs",
|
|
513
514
|
variant: "outline",
|
|
514
|
-
onClick: () =>
|
|
515
|
+
onClick: () => X(!1),
|
|
515
516
|
children: "Close"
|
|
516
517
|
}
|
|
517
518
|
),
|
|
518
519
|
/* @__PURE__ */ r(
|
|
519
|
-
|
|
520
|
+
R,
|
|
520
521
|
{
|
|
521
522
|
size: "xs",
|
|
522
523
|
onClick: O,
|
|
523
524
|
disabled: s.size === 0,
|
|
524
525
|
children: [
|
|
525
|
-
/* @__PURE__ */ t(
|
|
526
|
+
/* @__PURE__ */ t(Et, { className: "h-3.5 w-3.5" }),
|
|
526
527
|
s.size === 0 ? "Add to dashboard" : `Add ${s.size} visual${s.size === 1 ? "" : "s"}`
|
|
527
528
|
]
|
|
528
529
|
}
|
|
@@ -533,64 +534,64 @@ function _n({
|
|
|
533
534
|
}
|
|
534
535
|
) }),
|
|
535
536
|
/* @__PURE__ */ t(
|
|
536
|
-
|
|
537
|
+
Da,
|
|
537
538
|
{
|
|
538
|
-
open:
|
|
539
|
-
onOpenChange:
|
|
540
|
-
onSubmit:
|
|
541
|
-
isCreating:
|
|
539
|
+
open: p,
|
|
540
|
+
onOpenChange: o,
|
|
541
|
+
onSubmit: L,
|
|
542
|
+
isCreating: Fe
|
|
542
543
|
}
|
|
543
544
|
),
|
|
544
|
-
|
|
545
|
-
|
|
545
|
+
c && /* @__PURE__ */ t(
|
|
546
|
+
sr,
|
|
546
547
|
{
|
|
547
|
-
resource:
|
|
548
|
-
resourceType:
|
|
548
|
+
resource: c,
|
|
549
|
+
resourceType: or.VISUAL,
|
|
549
550
|
onClose: () => d(null)
|
|
550
551
|
}
|
|
551
552
|
),
|
|
552
|
-
|
|
553
|
-
|
|
553
|
+
m && /* @__PURE__ */ t(
|
|
554
|
+
ir,
|
|
554
555
|
{
|
|
555
|
-
open: !!
|
|
556
|
+
open: !!m,
|
|
556
557
|
resourceLabel: "Visual",
|
|
557
|
-
initialTitle:
|
|
558
|
-
initialDescription:
|
|
558
|
+
initialTitle: m.title || "",
|
|
559
|
+
initialDescription: m.description || "",
|
|
559
560
|
onClose: () => h(null),
|
|
560
|
-
onSave:
|
|
561
|
-
isSaving:
|
|
561
|
+
onSave: Ne,
|
|
562
|
+
isSaving: le(m.id)
|
|
562
563
|
}
|
|
563
564
|
),
|
|
564
565
|
/* @__PURE__ */ t(
|
|
565
|
-
|
|
566
|
+
ot,
|
|
566
567
|
{
|
|
567
568
|
open: f,
|
|
568
|
-
onOpenChange: (
|
|
569
|
-
!
|
|
569
|
+
onOpenChange: (x) => {
|
|
570
|
+
!x && ie || (b(x), x || I(null));
|
|
570
571
|
},
|
|
571
|
-
children: /* @__PURE__ */ r(
|
|
572
|
-
/* @__PURE__ */ r(
|
|
573
|
-
/* @__PURE__ */ r(
|
|
572
|
+
children: /* @__PURE__ */ r(it, { children: [
|
|
573
|
+
/* @__PURE__ */ r(lt, { children: [
|
|
574
|
+
/* @__PURE__ */ r(dt, { children: [
|
|
574
575
|
"Delete ",
|
|
575
|
-
|
|
576
|
+
Se,
|
|
576
577
|
" visual",
|
|
577
|
-
|
|
578
|
+
Se === 1 ? "" : "s",
|
|
578
579
|
"?"
|
|
579
580
|
] }),
|
|
580
|
-
/* @__PURE__ */ t(
|
|
581
|
+
/* @__PURE__ */ t(ct, { children: "This cannot be undone. Visuals already added to dashboards may need to be removed from those dashboards separately." })
|
|
581
582
|
] }),
|
|
582
|
-
/* @__PURE__ */ r(
|
|
583
|
-
/* @__PURE__ */ t(
|
|
583
|
+
/* @__PURE__ */ r(ut, { children: [
|
|
584
|
+
/* @__PURE__ */ t(ht, { disabled: ie, children: "Cancel" }),
|
|
584
585
|
/* @__PURE__ */ r(
|
|
585
|
-
|
|
586
|
+
Tt,
|
|
586
587
|
{
|
|
587
|
-
onClick: (
|
|
588
|
-
|
|
588
|
+
onClick: (x) => {
|
|
589
|
+
x.preventDefault(), Ze();
|
|
589
590
|
},
|
|
590
|
-
disabled:
|
|
591
|
+
disabled: ie || Se === 0,
|
|
591
592
|
children: [
|
|
592
|
-
|
|
593
|
-
|
|
593
|
+
ie ? /* @__PURE__ */ t(ae, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ t(We, { className: "h-3.5 w-3.5" }),
|
|
594
|
+
ie ? "Deleting..." : "Delete"
|
|
594
595
|
]
|
|
595
596
|
}
|
|
596
597
|
)
|
|
@@ -600,30 +601,30 @@ function _n({
|
|
|
600
601
|
)
|
|
601
602
|
] });
|
|
602
603
|
}
|
|
603
|
-
function
|
|
604
|
+
function Ia({
|
|
604
605
|
visuals: e,
|
|
605
606
|
selectedIds: a,
|
|
606
|
-
allFilteredSelected:
|
|
607
|
+
allFilteredSelected: i,
|
|
607
608
|
someFilteredSelected: n,
|
|
608
|
-
onSelectAll:
|
|
609
|
+
onSelectAll: l,
|
|
609
610
|
onToggleSelection: s,
|
|
610
|
-
onAddVisual:
|
|
611
|
-
onOpenVisual:
|
|
612
|
-
onEditDetails:
|
|
613
|
-
onShareVisual:
|
|
611
|
+
onAddVisual: u,
|
|
612
|
+
onOpenVisual: p,
|
|
613
|
+
onEditDetails: o,
|
|
614
|
+
onShareVisual: c,
|
|
614
615
|
onDeleteVisual: d,
|
|
615
|
-
onDuplicateVisual:
|
|
616
|
+
onDuplicateVisual: m,
|
|
616
617
|
duplicatingId: h,
|
|
617
618
|
isDeleting: f,
|
|
618
|
-
isConsoleMode:
|
|
619
|
+
isConsoleMode: b
|
|
619
620
|
}) {
|
|
620
621
|
return /* @__PURE__ */ r("div", { className: "min-w-[48rem]", children: [
|
|
621
622
|
/* @__PURE__ */ r("div", { className: "grid h-9 grid-cols-[2.5rem_minmax(14rem,1.8fr)_minmax(10rem,1fr)_8rem_7rem_5rem_5.5rem] items-center border-b border-border/60 px-3 text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: [
|
|
622
623
|
/* @__PURE__ */ t(
|
|
623
|
-
|
|
624
|
+
mt,
|
|
624
625
|
{
|
|
625
|
-
checked:
|
|
626
|
-
onCheckedChange:
|
|
626
|
+
checked: i ? !0 : n ? "indeterminate" : !1,
|
|
627
|
+
onCheckedChange: l,
|
|
627
628
|
"aria-label": "Select all visuals"
|
|
628
629
|
}
|
|
629
630
|
),
|
|
@@ -635,56 +636,56 @@ function Ea({
|
|
|
635
636
|
/* @__PURE__ */ t("span", { className: "text-right", children: "Actions" })
|
|
636
637
|
] }),
|
|
637
638
|
e.map((k) => /* @__PURE__ */ t(
|
|
638
|
-
|
|
639
|
+
La,
|
|
639
640
|
{
|
|
640
641
|
visual: k,
|
|
641
642
|
selected: a.has(k.id),
|
|
642
643
|
onToggleSelection: s,
|
|
643
|
-
onAddVisual:
|
|
644
|
-
onOpenVisual:
|
|
645
|
-
onEditDetails:
|
|
646
|
-
onShareVisual:
|
|
644
|
+
onAddVisual: u,
|
|
645
|
+
onOpenVisual: p,
|
|
646
|
+
onEditDetails: o,
|
|
647
|
+
onShareVisual: c,
|
|
647
648
|
onDeleteVisual: d,
|
|
648
|
-
onDuplicateVisual:
|
|
649
|
+
onDuplicateVisual: m,
|
|
649
650
|
duplicatingId: h,
|
|
650
651
|
isDeleting: f,
|
|
651
|
-
isConsoleMode:
|
|
652
|
+
isConsoleMode: b
|
|
652
653
|
},
|
|
653
654
|
k.id
|
|
654
655
|
))
|
|
655
656
|
] });
|
|
656
657
|
}
|
|
657
|
-
function
|
|
658
|
+
function La({
|
|
658
659
|
visual: e,
|
|
659
660
|
selected: a,
|
|
660
|
-
onToggleSelection:
|
|
661
|
+
onToggleSelection: i,
|
|
661
662
|
onAddVisual: n,
|
|
662
|
-
onOpenVisual:
|
|
663
|
+
onOpenVisual: l,
|
|
663
664
|
onEditDetails: s,
|
|
664
|
-
onShareVisual:
|
|
665
|
-
onDeleteVisual:
|
|
666
|
-
onDuplicateVisual:
|
|
667
|
-
duplicatingId:
|
|
665
|
+
onShareVisual: u,
|
|
666
|
+
onDeleteVisual: p,
|
|
667
|
+
onDuplicateVisual: o,
|
|
668
|
+
duplicatingId: c,
|
|
668
669
|
isDeleting: d,
|
|
669
|
-
isConsoleMode:
|
|
670
|
+
isConsoleMode: m
|
|
670
671
|
}) {
|
|
671
|
-
var
|
|
672
|
-
const h =
|
|
672
|
+
var b;
|
|
673
|
+
const h = Ea(e.kind), f = () => {
|
|
673
674
|
n(e);
|
|
674
675
|
};
|
|
675
676
|
return /* @__PURE__ */ r(
|
|
676
677
|
"div",
|
|
677
678
|
{
|
|
678
|
-
className:
|
|
679
|
+
className: K(
|
|
679
680
|
"group grid min-h-12 grid-cols-[2.5rem_minmax(14rem,1.8fr)_minmax(10rem,1fr)_8rem_7rem_5rem_5.5rem] items-center border-b border-border/50 px-3 text-[13px] hover:bg-muted/50",
|
|
680
681
|
a && "bg-muted/70"
|
|
681
682
|
),
|
|
682
683
|
children: [
|
|
683
684
|
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
684
|
-
|
|
685
|
+
mt,
|
|
685
686
|
{
|
|
686
687
|
checked: a,
|
|
687
|
-
onCheckedChange: () =>
|
|
688
|
+
onCheckedChange: () => i(e.id),
|
|
688
689
|
"aria-label": `Select ${e.title || "visual"}`
|
|
689
690
|
}
|
|
690
691
|
) }),
|
|
@@ -706,7 +707,7 @@ function Aa({
|
|
|
706
707
|
children: e.title || "Untitled Visual"
|
|
707
708
|
}
|
|
708
709
|
),
|
|
709
|
-
((
|
|
710
|
+
((b = e.description) == null ? void 0 : b.trim()) && /* @__PURE__ */ t(
|
|
710
711
|
"div",
|
|
711
712
|
{
|
|
712
713
|
className: "truncate text-[11px] text-muted-foreground",
|
|
@@ -719,122 +720,122 @@ function Aa({
|
|
|
719
720
|
}
|
|
720
721
|
),
|
|
721
722
|
/* @__PURE__ */ r("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
722
|
-
/* @__PURE__ */ t("div", { className: "flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-muted text-[9px] font-medium text-muted-foreground", children:
|
|
723
|
-
/* @__PURE__ */ t("span", { className: "truncate text-muted-foreground", children:
|
|
723
|
+
/* @__PURE__ */ t("div", { className: "flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-muted text-[9px] font-medium text-muted-foreground", children: ka(e, m) }),
|
|
724
|
+
/* @__PURE__ */ t("span", { className: "truncate text-muted-foreground", children: xt(e, m) })
|
|
724
725
|
] }),
|
|
725
|
-
/* @__PURE__ */ t("span", { className: "text-muted-foreground", children:
|
|
726
|
-
/* @__PURE__ */ t(
|
|
726
|
+
/* @__PURE__ */ t("span", { className: "text-muted-foreground", children: jt(e.updatedAt) }),
|
|
727
|
+
/* @__PURE__ */ t(Aa, { visual: e }),
|
|
727
728
|
/* @__PURE__ */ t("span", { className: "text-right tabular-nums text-muted-foreground", children: e.ownership.sharedCount > 0 ? e.ownership.sharedCount : "—" }),
|
|
728
729
|
/* @__PURE__ */ t(
|
|
729
|
-
|
|
730
|
+
Fa,
|
|
730
731
|
{
|
|
731
732
|
visual: e,
|
|
732
|
-
onOpenVisual:
|
|
733
|
+
onOpenVisual: l,
|
|
733
734
|
onEditDetails: s,
|
|
734
|
-
onShareVisual:
|
|
735
|
-
onDeleteVisual:
|
|
736
|
-
onDuplicateVisual:
|
|
737
|
-
duplicatingId:
|
|
735
|
+
onShareVisual: u,
|
|
736
|
+
onDeleteVisual: p,
|
|
737
|
+
onDuplicateVisual: o,
|
|
738
|
+
duplicatingId: c,
|
|
738
739
|
isDeleting: d,
|
|
739
|
-
isConsoleMode:
|
|
740
|
+
isConsoleMode: m
|
|
740
741
|
}
|
|
741
742
|
)
|
|
742
743
|
]
|
|
743
744
|
}
|
|
744
745
|
);
|
|
745
746
|
}
|
|
746
|
-
function
|
|
747
|
+
function Fa({
|
|
747
748
|
visual: e,
|
|
748
749
|
onOpenVisual: a,
|
|
749
|
-
onEditDetails:
|
|
750
|
+
onEditDetails: i,
|
|
750
751
|
onShareVisual: n,
|
|
751
|
-
onDeleteVisual:
|
|
752
|
+
onDeleteVisual: l,
|
|
752
753
|
onDuplicateVisual: s,
|
|
753
|
-
duplicatingId:
|
|
754
|
-
isDeleting:
|
|
755
|
-
isConsoleMode:
|
|
754
|
+
duplicatingId: u,
|
|
755
|
+
isDeleting: p,
|
|
756
|
+
isConsoleMode: o
|
|
756
757
|
}) {
|
|
757
758
|
return /* @__PURE__ */ r(
|
|
758
759
|
"div",
|
|
759
760
|
{
|
|
760
761
|
className: "flex items-center justify-end gap-0.5 opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100",
|
|
761
|
-
onClick: (
|
|
762
|
+
onClick: (c) => c.stopPropagation(),
|
|
762
763
|
children: [
|
|
763
764
|
/* @__PURE__ */ t(
|
|
764
|
-
|
|
765
|
+
R,
|
|
765
766
|
{
|
|
766
767
|
size: "xs",
|
|
767
768
|
variant: "ghost",
|
|
768
769
|
className: "w-7 px-0",
|
|
769
770
|
onClick: () => a(e),
|
|
770
771
|
"aria-label": "Edit visual",
|
|
771
|
-
children: /* @__PURE__ */ t(
|
|
772
|
+
children: /* @__PURE__ */ t(Je, { className: "h-3.5 w-3.5" })
|
|
772
773
|
}
|
|
773
774
|
),
|
|
774
|
-
/* @__PURE__ */ r(
|
|
775
|
-
/* @__PURE__ */ t(
|
|
776
|
-
|
|
775
|
+
/* @__PURE__ */ r(Ge, { modal: !1, children: [
|
|
776
|
+
/* @__PURE__ */ t(Ke, { asChild: !0, children: /* @__PURE__ */ t(
|
|
777
|
+
R,
|
|
777
778
|
{
|
|
778
779
|
size: "xs",
|
|
779
780
|
variant: "ghost",
|
|
780
781
|
className: "w-7 px-0",
|
|
781
782
|
"aria-label": "More actions",
|
|
782
|
-
children: /* @__PURE__ */ t(
|
|
783
|
+
children: /* @__PURE__ */ t(Bt, { className: "h-3.5 w-3.5" })
|
|
783
784
|
}
|
|
784
785
|
) }),
|
|
785
786
|
/* @__PURE__ */ r(
|
|
786
|
-
|
|
787
|
+
Xe,
|
|
787
788
|
{
|
|
788
789
|
align: "end",
|
|
789
790
|
className: "z-[60] w-44 rounded-[6px] border-border/60 p-1 shadow-sm",
|
|
790
791
|
children: [
|
|
791
|
-
/* @__PURE__ */ r(
|
|
792
|
-
/* @__PURE__ */ t(
|
|
792
|
+
/* @__PURE__ */ r(G, { onClick: () => a(e), children: [
|
|
793
|
+
/* @__PURE__ */ t(Je, { className: "h-3.5 w-3.5" }),
|
|
793
794
|
"Edit visual"
|
|
794
795
|
] }),
|
|
795
796
|
/* @__PURE__ */ r(
|
|
796
|
-
|
|
797
|
+
G,
|
|
797
798
|
{
|
|
798
799
|
onClick: () => s(e.id),
|
|
799
|
-
disabled:
|
|
800
|
+
disabled: u === e.id,
|
|
800
801
|
children: [
|
|
801
|
-
|
|
802
|
-
|
|
802
|
+
u === e.id ? /* @__PURE__ */ t(ae, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ t(cr, { className: "h-3.5 w-3.5" }),
|
|
803
|
+
u === e.id ? "Duplicating..." : "Duplicate"
|
|
803
804
|
]
|
|
804
805
|
}
|
|
805
806
|
),
|
|
806
|
-
e.permissions.canEdit && /* @__PURE__ */ r(
|
|
807
|
-
/* @__PURE__ */ t(
|
|
807
|
+
e.permissions.canEdit && /* @__PURE__ */ r(G, { onClick: () => i(e), children: [
|
|
808
|
+
/* @__PURE__ */ t(Je, { className: "h-3.5 w-3.5" }),
|
|
808
809
|
"Edit details"
|
|
809
810
|
] }),
|
|
810
|
-
e.permissions.canShare && /* @__PURE__ */ r(
|
|
811
|
-
/* @__PURE__ */ t(
|
|
811
|
+
e.permissions.canShare && /* @__PURE__ */ r(G, { onClick: () => n(e), children: [
|
|
812
|
+
/* @__PURE__ */ t(Ft, { className: "h-3.5 w-3.5" }),
|
|
812
813
|
"Share"
|
|
813
814
|
] }),
|
|
814
|
-
e.permissions.canDelete && /* @__PURE__ */ r(
|
|
815
|
-
/* @__PURE__ */ t(
|
|
815
|
+
e.permissions.canDelete && /* @__PURE__ */ r(j, { children: [
|
|
816
|
+
/* @__PURE__ */ t(He, {}),
|
|
816
817
|
/* @__PURE__ */ r(
|
|
817
|
-
|
|
818
|
+
G,
|
|
818
819
|
{
|
|
819
820
|
className: "text-destructive focus:bg-destructive/10 focus:text-destructive",
|
|
820
|
-
onClick: () =>
|
|
821
|
-
disabled:
|
|
821
|
+
onClick: () => l(e),
|
|
822
|
+
disabled: p,
|
|
822
823
|
children: [
|
|
823
|
-
/* @__PURE__ */ t(
|
|
824
|
-
|
|
824
|
+
/* @__PURE__ */ t(We, { className: "h-3.5 w-3.5" }),
|
|
825
|
+
p ? "Deleting..." : "Delete"
|
|
825
826
|
]
|
|
826
827
|
}
|
|
827
828
|
)
|
|
828
829
|
] }),
|
|
829
|
-
/* @__PURE__ */ t(
|
|
830
|
+
/* @__PURE__ */ t(He, {}),
|
|
830
831
|
/* @__PURE__ */ r("div", { className: "space-y-1 px-2 py-1.5 text-[11px] text-muted-foreground", children: [
|
|
831
|
-
|
|
832
|
-
/* @__PURE__ */ t(
|
|
833
|
-
/* @__PURE__ */ t("span", { className: "truncate", children:
|
|
832
|
+
Wt(e, o) && /* @__PURE__ */ r("div", { className: "flex items-center gap-1.5", children: [
|
|
833
|
+
/* @__PURE__ */ t(ur, { className: "h-3 w-3" }),
|
|
834
|
+
/* @__PURE__ */ t("span", { className: "truncate", children: xt(e, o) })
|
|
834
835
|
] }),
|
|
835
836
|
/* @__PURE__ */ r("div", { className: "flex items-center gap-1.5", children: [
|
|
836
|
-
/* @__PURE__ */ t(
|
|
837
|
-
/* @__PURE__ */ t("span", { children:
|
|
837
|
+
/* @__PURE__ */ t(hr, { className: "h-3 w-3" }),
|
|
838
|
+
/* @__PURE__ */ t("span", { children: jt(e.updatedAt) })
|
|
838
839
|
] })
|
|
839
840
|
] })
|
|
840
841
|
]
|
|
@@ -845,63 +846,63 @@ function Ia({
|
|
|
845
846
|
}
|
|
846
847
|
);
|
|
847
848
|
}
|
|
848
|
-
function
|
|
849
|
-
const n =
|
|
850
|
-
(
|
|
851
|
-
), s =
|
|
852
|
-
(
|
|
853
|
-
),
|
|
854
|
-
const
|
|
855
|
-
return a || !e || !
|
|
849
|
+
function Gn(e, a, i = !1) {
|
|
850
|
+
const n = T((c) => c.dashboard), l = T(
|
|
851
|
+
(c) => c.isDashboardEditing
|
|
852
|
+
), s = T(
|
|
853
|
+
(c) => c.onDashboardLifecycleEvent
|
|
854
|
+
), u = H(() => {
|
|
855
|
+
const c = T.getState().dashboard;
|
|
856
|
+
return a || !e || !c || c.id !== e.id ? !1 : _e(c) !== _e(e);
|
|
856
857
|
}, [e, a]);
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
}), [
|
|
860
|
-
const
|
|
858
|
+
yt(() => (T.setState({ checkUnsavedDashboardChanges: u }), () => {
|
|
859
|
+
T.getState().checkUnsavedDashboardChanges === u && T.setState({ checkUnsavedDashboardChanges: null });
|
|
860
|
+
}), [u]);
|
|
861
|
+
const p = Z(() => !i || a || !n || l && (!e || n.id !== e.id) ? null : {
|
|
861
862
|
dashboardId: n.id,
|
|
862
|
-
dirty:
|
|
863
|
+
dirty: l && e ? _e(n) !== _e(e) : !1
|
|
863
864
|
}, [
|
|
864
|
-
|
|
865
|
+
l,
|
|
865
866
|
a,
|
|
866
|
-
|
|
867
|
+
i,
|
|
867
868
|
e,
|
|
868
869
|
n
|
|
869
|
-
]),
|
|
870
|
-
return
|
|
871
|
-
if (!s || !
|
|
872
|
-
|
|
870
|
+
]), o = ue(null);
|
|
871
|
+
return yt(() => {
|
|
872
|
+
if (!s || !p) {
|
|
873
|
+
o.current = null;
|
|
873
874
|
return;
|
|
874
875
|
}
|
|
875
|
-
const
|
|
876
|
-
(
|
|
876
|
+
const c = o.current;
|
|
877
|
+
(c == null ? void 0 : c.callback) === s && c.dashboardId === p.dashboardId && c.dirty === p.dirty || (o.current = {
|
|
877
878
|
callback: s,
|
|
878
|
-
dashboardId:
|
|
879
|
-
dirty:
|
|
879
|
+
dashboardId: p.dashboardId,
|
|
880
|
+
dirty: p.dirty
|
|
880
881
|
}, s({
|
|
881
882
|
type: "dashboard:dirty-state",
|
|
882
|
-
dashboardId:
|
|
883
|
-
payload: { dirty:
|
|
883
|
+
dashboardId: p.dashboardId,
|
|
884
|
+
payload: { dirty: p.dirty }
|
|
884
885
|
}));
|
|
885
|
-
}, [
|
|
886
|
+
}, [p, s]), u;
|
|
886
887
|
}
|
|
887
|
-
function
|
|
888
|
+
function Ta({
|
|
888
889
|
open: e,
|
|
889
890
|
onOpenChange: a,
|
|
890
|
-
isLibraryVisual:
|
|
891
|
+
isLibraryVisual: i,
|
|
891
892
|
currentVisualName: n,
|
|
892
|
-
isSaving:
|
|
893
|
+
isSaving: l = !1,
|
|
893
894
|
destinationMode: s = "both",
|
|
894
|
-
onConfirm:
|
|
895
|
+
onConfirm: u
|
|
895
896
|
}) {
|
|
896
|
-
const [
|
|
897
|
-
|
|
898
|
-
), [
|
|
899
|
-
|
|
900
|
-
e && (
|
|
901
|
-
|
|
897
|
+
const [p, o] = E(
|
|
898
|
+
i && n ? `Copy of ${n}` : n || ""
|
|
899
|
+
), [c, d] = E("");
|
|
900
|
+
Dt.useEffect(() => {
|
|
901
|
+
e && (o(
|
|
902
|
+
i && n ? `Copy of ${n}` : n || ""
|
|
902
903
|
), d(""));
|
|
903
|
-
}, [e,
|
|
904
|
-
const
|
|
904
|
+
}, [e, i, n]);
|
|
905
|
+
const m = !!p.trim(), h = s === "local" ? {
|
|
905
906
|
saveToLibrary: !1,
|
|
906
907
|
saveToCurrentDashboard: !0,
|
|
907
908
|
badgeType: "local",
|
|
@@ -920,19 +921,19 @@ function Fa({
|
|
|
920
921
|
description: "Creates a new library visual and adds a linked copy to this dashboard.",
|
|
921
922
|
actionLabel: "Save Copy as Linked Visual"
|
|
922
923
|
}, f = () => {
|
|
923
|
-
!
|
|
924
|
-
name:
|
|
925
|
-
description:
|
|
924
|
+
!m || l || u({
|
|
925
|
+
name: p.trim(),
|
|
926
|
+
description: c.trim() || void 0,
|
|
926
927
|
saveToLibrary: h.saveToLibrary,
|
|
927
928
|
saveToCurrentDashboard: h.saveToCurrentDashboard
|
|
928
929
|
});
|
|
929
930
|
};
|
|
930
|
-
return /* @__PURE__ */ t(
|
|
931
|
-
/* @__PURE__ */ r(
|
|
932
|
-
/* @__PURE__ */ r(
|
|
931
|
+
return /* @__PURE__ */ t(Ee, { open: e, onOpenChange: a, children: /* @__PURE__ */ r(Ae, { className: "sm:max-w-[500px]", children: [
|
|
932
|
+
/* @__PURE__ */ r(pt, { children: [
|
|
933
|
+
/* @__PURE__ */ r(Ie, { className: "flex items-center gap-2", children: [
|
|
933
934
|
/* @__PURE__ */ t("span", { children: "Save Visual As" }),
|
|
934
935
|
h.badgeType !== "local" && /* @__PURE__ */ t(
|
|
935
|
-
|
|
936
|
+
ia,
|
|
936
937
|
{
|
|
937
938
|
type: h.badgeType,
|
|
938
939
|
showLabel: !0,
|
|
@@ -940,77 +941,77 @@ function Fa({
|
|
|
940
941
|
}
|
|
941
942
|
)
|
|
942
943
|
] }),
|
|
943
|
-
/* @__PURE__ */ t(
|
|
944
|
+
/* @__PURE__ */ t(ft, { children: h.description })
|
|
944
945
|
] }),
|
|
945
946
|
/* @__PURE__ */ r("div", { className: "grid gap-4 py-4", children: [
|
|
946
947
|
/* @__PURE__ */ r("div", { className: "grid gap-2", children: [
|
|
947
|
-
/* @__PURE__ */ t(
|
|
948
|
+
/* @__PURE__ */ t(ke, { htmlFor: "name", children: "Name" }),
|
|
948
949
|
/* @__PURE__ */ t(
|
|
949
|
-
|
|
950
|
+
at,
|
|
950
951
|
{
|
|
951
952
|
id: "name",
|
|
952
|
-
value:
|
|
953
|
-
onChange: (
|
|
953
|
+
value: p,
|
|
954
|
+
onChange: (b) => o(b.target.value),
|
|
954
955
|
placeholder: "Enter visual name",
|
|
955
|
-
disabled:
|
|
956
|
+
disabled: l
|
|
956
957
|
}
|
|
957
958
|
)
|
|
958
959
|
] }),
|
|
959
960
|
/* @__PURE__ */ r("div", { className: "grid gap-2", children: [
|
|
960
|
-
/* @__PURE__ */ t(
|
|
961
|
+
/* @__PURE__ */ t(ke, { htmlFor: "description", children: "Description (optional)" }),
|
|
961
962
|
/* @__PURE__ */ t(
|
|
962
|
-
|
|
963
|
+
mr,
|
|
963
964
|
{
|
|
964
965
|
id: "description",
|
|
965
|
-
value:
|
|
966
|
-
onChange: (
|
|
966
|
+
value: c,
|
|
967
|
+
onChange: (b) => d(b.target.value),
|
|
967
968
|
placeholder: "Enter visual description",
|
|
968
969
|
rows: 3,
|
|
969
|
-
disabled:
|
|
970
|
+
disabled: l
|
|
970
971
|
}
|
|
971
972
|
)
|
|
972
973
|
] })
|
|
973
974
|
] }),
|
|
974
|
-
/* @__PURE__ */ r(
|
|
975
|
+
/* @__PURE__ */ r(pr, { children: [
|
|
975
976
|
/* @__PURE__ */ t(
|
|
976
|
-
|
|
977
|
+
R,
|
|
977
978
|
{
|
|
978
979
|
variant: "outline",
|
|
979
980
|
onClick: () => a(!1),
|
|
980
|
-
disabled:
|
|
981
|
+
disabled: l,
|
|
981
982
|
children: "Cancel"
|
|
982
983
|
}
|
|
983
984
|
),
|
|
984
|
-
/* @__PURE__ */ r(
|
|
985
|
-
|
|
985
|
+
/* @__PURE__ */ r(R, { onClick: f, disabled: !m || l, children: [
|
|
986
|
+
l && /* @__PURE__ */ t(ae, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
986
987
|
h.actionLabel
|
|
987
988
|
] })
|
|
988
989
|
] })
|
|
989
990
|
] }) });
|
|
990
991
|
}
|
|
991
|
-
function
|
|
992
|
-
const [e, a] =
|
|
993
|
-
var
|
|
994
|
-
return ((
|
|
995
|
-
})(),
|
|
996
|
-
|
|
992
|
+
function Ba() {
|
|
993
|
+
const [e, a] = E(!1), [i, n] = E(!1), [l, s] = E(null), [u, p] = E(null), o = fe((g) => g.frame), c = fe((g) => g.card), d = fr(), m = T((g) => g.selectedSheetId), h = T((g) => g.dashboard), { getUpdatedFrame: f } = bt(), { selectVisual: b } = Lt(), { addFrame: k, setSelectedFrameId: I, setIsVisualEditing: y } = ve(), S = Rt(), D = !!(o != null && o.visualId), w = (() => {
|
|
994
|
+
var g, v;
|
|
995
|
+
return ((g = o == null ? void 0 : o.cards) == null ? void 0 : g.length) === 1 && ((v = o.cards[0]) != null && v.title) ? o.cards[0].title : d != null && d.title ? d.title : (c == null ? void 0 : c.title) || "Untitled Visual";
|
|
996
|
+
})(), C = gr((g) => {
|
|
997
|
+
g != null && g.id && (b(g), i && l && u && m && (async () => {
|
|
997
998
|
try {
|
|
998
|
-
const
|
|
999
|
-
...
|
|
1000
|
-
id:
|
|
1001
|
-
visualId:
|
|
999
|
+
const v = {
|
|
1000
|
+
...l,
|
|
1001
|
+
id: wt(),
|
|
1002
|
+
visualId: g.id
|
|
1002
1003
|
// Link to the newly created library visual
|
|
1003
1004
|
};
|
|
1004
|
-
k(
|
|
1005
|
+
k(m, v, {
|
|
1005
1006
|
position: "end",
|
|
1006
|
-
semanticExecutionPayload:
|
|
1007
|
-
}),
|
|
1008
|
-
} catch (
|
|
1007
|
+
semanticExecutionPayload: u
|
|
1008
|
+
}), I(v.id), n(!1), s(null), p(null), y(!1);
|
|
1009
|
+
} catch (v) {
|
|
1009
1010
|
console.error(
|
|
1010
1011
|
"Failed to promote semantic metadata for saved visual:",
|
|
1011
|
-
|
|
1012
|
-
),
|
|
1013
|
-
|
|
1012
|
+
v
|
|
1013
|
+
), $.error(
|
|
1014
|
+
v instanceof Error ? v.message : "Failed to prepare semantic metadata for the saved visual"
|
|
1014
1015
|
);
|
|
1015
1016
|
}
|
|
1016
1017
|
})(), a(!1));
|
|
@@ -1018,193 +1019,193 @@ function La() {
|
|
|
1018
1019
|
return {
|
|
1019
1020
|
saveAsDialogOpen: e,
|
|
1020
1021
|
setSaveAsDialogOpen: a,
|
|
1021
|
-
handleSaveAs: async (
|
|
1022
|
-
if (!
|
|
1023
|
-
|
|
1022
|
+
handleSaveAs: async (g) => {
|
|
1023
|
+
if (!m) {
|
|
1024
|
+
$.error("No sheet selected");
|
|
1024
1025
|
return;
|
|
1025
1026
|
}
|
|
1026
|
-
const
|
|
1027
|
-
...
|
|
1028
|
-
cards:
|
|
1029
|
-
...
|
|
1030
|
-
title:
|
|
1027
|
+
const v = f(), A = v.cards.length === 1 ? {
|
|
1028
|
+
...v,
|
|
1029
|
+
cards: v.cards.map((q) => ({
|
|
1030
|
+
...q,
|
|
1031
|
+
title: g.name
|
|
1031
1032
|
// Use visual name as card title
|
|
1032
1033
|
}))
|
|
1033
|
-
} :
|
|
1034
|
-
if (
|
|
1035
|
-
let
|
|
1036
|
-
if (
|
|
1034
|
+
} : v;
|
|
1035
|
+
if (g.saveToLibrary) {
|
|
1036
|
+
let q = null;
|
|
1037
|
+
if (g.saveToCurrentDashboard)
|
|
1037
1038
|
try {
|
|
1038
|
-
|
|
1039
|
-
previousFrame:
|
|
1039
|
+
q = await S(A, {
|
|
1040
|
+
previousFrame: nt(h, A.id)
|
|
1040
1041
|
});
|
|
1041
1042
|
} catch (P) {
|
|
1042
1043
|
console.error(
|
|
1043
1044
|
"Failed to prepare semantic metadata before saving visual:",
|
|
1044
1045
|
P
|
|
1045
|
-
),
|
|
1046
|
+
), $.error(
|
|
1046
1047
|
P instanceof Error ? P.message : "Failed to prepare semantic metadata for the saved visual"
|
|
1047
1048
|
);
|
|
1048
1049
|
return;
|
|
1049
1050
|
}
|
|
1050
|
-
n(
|
|
1051
|
-
const
|
|
1052
|
-
title:
|
|
1053
|
-
description:
|
|
1054
|
-
frameObject:
|
|
1051
|
+
n(g.saveToCurrentDashboard), s(A), p(q);
|
|
1052
|
+
const L = {
|
|
1053
|
+
title: g.name,
|
|
1054
|
+
description: g.description,
|
|
1055
|
+
frameObject: A,
|
|
1055
1056
|
// Card title synced for single-card frames
|
|
1056
1057
|
isPrivate: !1
|
|
1057
1058
|
};
|
|
1058
|
-
|
|
1059
|
-
} else if (
|
|
1060
|
-
const
|
|
1061
|
-
...
|
|
1059
|
+
C.mutate(L);
|
|
1060
|
+
} else if (g.saveToCurrentDashboard) {
|
|
1061
|
+
const q = {
|
|
1062
|
+
...A,
|
|
1062
1063
|
// Card title already synced
|
|
1063
|
-
id:
|
|
1064
|
+
id: wt(),
|
|
1064
1065
|
visualId: void 0
|
|
1065
1066
|
// Explicitly no visualId for local visuals
|
|
1066
1067
|
};
|
|
1067
1068
|
try {
|
|
1068
|
-
const
|
|
1069
|
-
previousFrame:
|
|
1069
|
+
const L = await S(A, {
|
|
1070
|
+
previousFrame: nt(h, A.id)
|
|
1070
1071
|
});
|
|
1071
|
-
k(
|
|
1072
|
+
k(m, q, {
|
|
1072
1073
|
position: "end",
|
|
1073
|
-
semanticExecutionPayload:
|
|
1074
|
-
}),
|
|
1075
|
-
} catch (
|
|
1076
|
-
console.error("Failed to save visual to dashboard:",
|
|
1077
|
-
|
|
1074
|
+
semanticExecutionPayload: L
|
|
1075
|
+
}), I(q.id), $.success("Visual saved to dashboard"), a(!1), y(!1);
|
|
1076
|
+
} catch (L) {
|
|
1077
|
+
console.error("Failed to save visual to dashboard:", L), $.error(
|
|
1078
|
+
L instanceof Error ? L.message : "Failed to prepare semantic metadata for the visual"
|
|
1078
1079
|
);
|
|
1079
1080
|
}
|
|
1080
1081
|
}
|
|
1081
1082
|
},
|
|
1082
|
-
isLibraryVisual:
|
|
1083
|
+
isLibraryVisual: D,
|
|
1083
1084
|
currentVisualName: w,
|
|
1084
|
-
isSaving:
|
|
1085
|
+
isSaving: C.isPending
|
|
1085
1086
|
};
|
|
1086
1087
|
}
|
|
1087
|
-
function
|
|
1088
|
-
const { isInspectionMode: a } =
|
|
1089
|
-
saveAsDialogOpen:
|
|
1088
|
+
function Kn(e = {}) {
|
|
1089
|
+
const { isInspectionMode: a } = br(), i = fe((L) => L.frame), n = fe((L) => L.editorContext), l = xr((L) => L.selectedVisual), s = T((L) => L.selectedFrameId), u = T((L) => L.selectedSheetId), p = T((L) => L.dashboard), { setIsVisualEditing: o, updateFrame: c } = ve(), [d, m] = E(!1), [h, f] = E("both"), b = Rt(), k = (n == null ? void 0 : n.type) === "documentSection", I = !!(i != null && i.visualId || l != null && l.id), y = !!(i != null && i.visualId && s), S = I && !y, {
|
|
1090
|
+
saveAsDialogOpen: D,
|
|
1090
1091
|
setSaveAsDialogOpen: w,
|
|
1091
|
-
handleSaveAs:
|
|
1092
|
-
isLibraryVisual:
|
|
1093
|
-
currentVisualName:
|
|
1094
|
-
isSaving:
|
|
1095
|
-
} =
|
|
1092
|
+
handleSaveAs: C,
|
|
1093
|
+
isLibraryVisual: F,
|
|
1094
|
+
currentVisualName: g,
|
|
1095
|
+
isSaving: v
|
|
1096
|
+
} = Ba(), { getUpdatedFrame: U } = bt();
|
|
1096
1097
|
if (a)
|
|
1097
|
-
return /* @__PURE__ */ r(
|
|
1098
|
+
return /* @__PURE__ */ r(j, { children: [
|
|
1098
1099
|
/* @__PURE__ */ t(
|
|
1099
|
-
|
|
1100
|
+
et,
|
|
1100
1101
|
{
|
|
1101
1102
|
className: "rounded-control",
|
|
1102
1103
|
variant: "default"
|
|
1103
1104
|
}
|
|
1104
1105
|
),
|
|
1105
|
-
/* @__PURE__ */ t(
|
|
1106
|
+
/* @__PURE__ */ t(tt, {})
|
|
1106
1107
|
] });
|
|
1107
1108
|
if (k)
|
|
1108
|
-
return /* @__PURE__ */ r(
|
|
1109
|
-
/* @__PURE__ */ t(
|
|
1110
|
-
/* @__PURE__ */ t(
|
|
1109
|
+
return /* @__PURE__ */ r(j, { children: [
|
|
1110
|
+
/* @__PURE__ */ t(et, { className: "rounded-control", variant: "default" }),
|
|
1111
|
+
/* @__PURE__ */ t(tt, {})
|
|
1111
1112
|
] });
|
|
1112
|
-
const
|
|
1113
|
-
if (!
|
|
1114
|
-
|
|
1113
|
+
const A = async () => {
|
|
1114
|
+
if (!u) {
|
|
1115
|
+
$.error("No sheet selected");
|
|
1115
1116
|
return;
|
|
1116
1117
|
}
|
|
1117
1118
|
if (d) return;
|
|
1118
|
-
|
|
1119
|
+
m(!0);
|
|
1119
1120
|
const P = {
|
|
1120
|
-
...
|
|
1121
|
+
...U(),
|
|
1121
1122
|
visualId: void 0
|
|
1122
|
-
},
|
|
1123
|
+
}, J = nt(p, P.id);
|
|
1123
1124
|
try {
|
|
1124
|
-
const
|
|
1125
|
-
previousFrame:
|
|
1125
|
+
const ne = await b(P, {
|
|
1126
|
+
previousFrame: J
|
|
1126
1127
|
});
|
|
1127
|
-
u
|
|
1128
|
-
semanticExecutionPayload:
|
|
1128
|
+
c(u, P, {
|
|
1129
|
+
semanticExecutionPayload: ne
|
|
1129
1130
|
});
|
|
1130
|
-
} catch (
|
|
1131
|
-
console.error("Failed to apply local semantic metadata:",
|
|
1132
|
-
|
|
1131
|
+
} catch (ne) {
|
|
1132
|
+
console.error("Failed to apply local semantic metadata:", ne), m(!1), $.error(
|
|
1133
|
+
ne instanceof Error ? ne.message : "Failed to prepare semantic metadata for this visual"
|
|
1133
1134
|
);
|
|
1134
1135
|
return;
|
|
1135
1136
|
}
|
|
1136
1137
|
setTimeout(() => {
|
|
1137
|
-
|
|
1138
|
+
m(!1), $.success("Changes applied. Visual is now local to this dashboard"), o(!1);
|
|
1138
1139
|
}, 300);
|
|
1139
|
-
},
|
|
1140
|
-
f(
|
|
1140
|
+
}, q = (L) => {
|
|
1141
|
+
f(L), w(!0);
|
|
1141
1142
|
};
|
|
1142
|
-
return /* @__PURE__ */ r(
|
|
1143
|
+
return /* @__PURE__ */ r(j, { children: [
|
|
1143
1144
|
/* @__PURE__ */ r("div", { className: "inline-flex items-center overflow-hidden rounded-control", children: [
|
|
1144
|
-
!
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
/* @__PURE__ */ r(
|
|
1148
|
-
/* @__PURE__ */ t(
|
|
1149
|
-
|
|
1145
|
+
!I && /* @__PURE__ */ t(et, { className: "!rounded-none", variant: "default" }),
|
|
1146
|
+
I && S && /* @__PURE__ */ t(la, { className: "!rounded-none", variant: "default" }),
|
|
1147
|
+
I && y && /* @__PURE__ */ t(da, { className: "!rounded-none" }),
|
|
1148
|
+
/* @__PURE__ */ r(Ge, { modal: !1, children: [
|
|
1149
|
+
/* @__PURE__ */ t(Ke, { asChild: !0, children: /* @__PURE__ */ t(
|
|
1150
|
+
R,
|
|
1150
1151
|
{
|
|
1151
1152
|
variant: "default",
|
|
1152
1153
|
size: "xs",
|
|
1153
1154
|
className: "w-7 !rounded-none border-l border-primary-foreground/20 px-0",
|
|
1154
1155
|
"aria-label": "Open visual save options",
|
|
1155
|
-
disabled:
|
|
1156
|
-
children: /* @__PURE__ */ t(
|
|
1156
|
+
disabled: v || d,
|
|
1157
|
+
children: /* @__PURE__ */ t(Ot, { className: "h-3.5 w-3.5" })
|
|
1157
1158
|
}
|
|
1158
1159
|
) }),
|
|
1159
1160
|
/* @__PURE__ */ r(
|
|
1160
|
-
|
|
1161
|
+
Xe,
|
|
1161
1162
|
{
|
|
1162
1163
|
align: "end",
|
|
1163
1164
|
className: "min-w-[220px] rounded-control border border-border/60 p-1 shadow-sm",
|
|
1164
1165
|
children: [
|
|
1165
|
-
|
|
1166
|
+
y && /* @__PURE__ */ r(j, { children: [
|
|
1166
1167
|
/* @__PURE__ */ r(
|
|
1167
|
-
|
|
1168
|
+
G,
|
|
1168
1169
|
{
|
|
1169
|
-
onClick:
|
|
1170
|
+
onClick: A,
|
|
1170
1171
|
disabled: d,
|
|
1171
1172
|
children: [
|
|
1172
|
-
/* @__PURE__ */ t(
|
|
1173
|
+
/* @__PURE__ */ t(Et, { className: "h-3.5 w-3.5" }),
|
|
1173
1174
|
d ? "Applying..." : "Apply Locally"
|
|
1174
1175
|
]
|
|
1175
1176
|
}
|
|
1176
1177
|
),
|
|
1177
|
-
/* @__PURE__ */ t(
|
|
1178
|
+
/* @__PURE__ */ t(He, {})
|
|
1178
1179
|
] }),
|
|
1179
1180
|
/* @__PURE__ */ r(
|
|
1180
|
-
|
|
1181
|
+
G,
|
|
1181
1182
|
{
|
|
1182
|
-
onClick: () =>
|
|
1183
|
-
disabled:
|
|
1183
|
+
onClick: () => q("local"),
|
|
1184
|
+
disabled: v,
|
|
1184
1185
|
children: [
|
|
1185
|
-
/* @__PURE__ */ t(
|
|
1186
|
+
/* @__PURE__ */ t(xe, { className: "h-3.5 w-3.5" }),
|
|
1186
1187
|
"Add to Dashboard (Local)"
|
|
1187
1188
|
]
|
|
1188
1189
|
}
|
|
1189
1190
|
),
|
|
1190
1191
|
/* @__PURE__ */ r(
|
|
1191
|
-
|
|
1192
|
+
G,
|
|
1192
1193
|
{
|
|
1193
|
-
onClick: () =>
|
|
1194
|
-
disabled:
|
|
1194
|
+
onClick: () => q("library"),
|
|
1195
|
+
disabled: v,
|
|
1195
1196
|
children: [
|
|
1196
|
-
/* @__PURE__ */ t(
|
|
1197
|
+
/* @__PURE__ */ t(ca, { className: "h-3.5 w-3.5" }),
|
|
1197
1198
|
"Save as Library Visual"
|
|
1198
1199
|
]
|
|
1199
1200
|
}
|
|
1200
1201
|
),
|
|
1201
1202
|
/* @__PURE__ */ r(
|
|
1202
|
-
|
|
1203
|
+
G,
|
|
1203
1204
|
{
|
|
1204
|
-
onClick: () =>
|
|
1205
|
-
disabled:
|
|
1205
|
+
onClick: () => q("both"),
|
|
1206
|
+
disabled: v,
|
|
1206
1207
|
children: [
|
|
1207
|
-
/* @__PURE__ */ t(
|
|
1208
|
+
/* @__PURE__ */ t(ua, { className: "h-3.5 w-3.5" }),
|
|
1208
1209
|
"Save Copy as Linked Visual"
|
|
1209
1210
|
]
|
|
1210
1211
|
}
|
|
@@ -1214,87 +1215,87 @@ function zn(e = {}) {
|
|
|
1214
1215
|
)
|
|
1215
1216
|
] })
|
|
1216
1217
|
] }),
|
|
1217
|
-
/* @__PURE__ */ t(
|
|
1218
|
+
/* @__PURE__ */ t(tt, {}),
|
|
1218
1219
|
/* @__PURE__ */ t(
|
|
1219
|
-
|
|
1220
|
+
Ta,
|
|
1220
1221
|
{
|
|
1221
|
-
open:
|
|
1222
|
-
onOpenChange: (
|
|
1223
|
-
|
|
1222
|
+
open: D,
|
|
1223
|
+
onOpenChange: (L) => {
|
|
1224
|
+
v || w(L);
|
|
1224
1225
|
},
|
|
1225
|
-
isLibraryVisual:
|
|
1226
|
-
currentVisualName:
|
|
1227
|
-
isSaving:
|
|
1226
|
+
isLibraryVisual: F,
|
|
1227
|
+
currentVisualName: g,
|
|
1228
|
+
isSaving: v,
|
|
1228
1229
|
destinationMode: h,
|
|
1229
|
-
onConfirm:
|
|
1230
|
+
onConfirm: C
|
|
1230
1231
|
}
|
|
1231
1232
|
)
|
|
1232
1233
|
] });
|
|
1233
1234
|
}
|
|
1234
|
-
function
|
|
1235
|
-
const a =
|
|
1236
|
-
if (!n || !
|
|
1235
|
+
function Xn({ className: e }) {
|
|
1236
|
+
const a = fe((d) => d.isDevMode), i = fe((d) => d.card.type), n = T((d) => d.isVisualEditing), { setIsDevMode: l } = At(), { config: s } = Kt(vr).tokenProps, u = (s == null ? void 0 : s.showAdvancedMode) !== !1;
|
|
1237
|
+
if (!n || !u || !fa(i))
|
|
1237
1238
|
return null;
|
|
1238
|
-
const
|
|
1239
|
+
const p = a ? wa : yr, o = a ? "Visual editor" : "SQL editor", c = a ? "Switch to visual editor" : "Switch to SQL editor";
|
|
1239
1240
|
return /* @__PURE__ */ r(
|
|
1240
1241
|
"button",
|
|
1241
1242
|
{
|
|
1242
1243
|
type: "button",
|
|
1243
|
-
"aria-label":
|
|
1244
|
-
title:
|
|
1245
|
-
onClick: () =>
|
|
1246
|
-
className:
|
|
1244
|
+
"aria-label": c,
|
|
1245
|
+
title: c,
|
|
1246
|
+
onClick: () => l(!a),
|
|
1247
|
+
className: K(
|
|
1247
1248
|
"inline-flex h-7 items-center gap-1.5 rounded-control border border-input bg-background px-2 text-[12px] font-medium text-foreground transition-colors hover:bg-muted/40 focus-visible:border-ring focus-visible:outline-none",
|
|
1248
1249
|
e
|
|
1249
1250
|
),
|
|
1250
1251
|
children: [
|
|
1251
|
-
/* @__PURE__ */ t(
|
|
1252
|
-
|
|
1252
|
+
/* @__PURE__ */ t(p, { className: "h-3 w-3 text-muted-foreground" }),
|
|
1253
|
+
o
|
|
1253
1254
|
]
|
|
1254
1255
|
}
|
|
1255
1256
|
);
|
|
1256
1257
|
}
|
|
1257
|
-
function
|
|
1258
|
+
function Yn({
|
|
1258
1259
|
open: e,
|
|
1259
1260
|
onOpenChange: a,
|
|
1260
|
-
onSave:
|
|
1261
|
+
onSave: i,
|
|
1261
1262
|
onDiscard: n,
|
|
1262
|
-
isSaving:
|
|
1263
|
+
isSaving: l,
|
|
1263
1264
|
title: s = "Unsaved changes",
|
|
1264
|
-
description:
|
|
1265
|
-
cancelLabel:
|
|
1266
|
-
discardLabel:
|
|
1267
|
-
saveLabel:
|
|
1265
|
+
description: u = "You have unsaved changes to this dashboard. What would you like to do?",
|
|
1266
|
+
cancelLabel: p = "Cancel",
|
|
1267
|
+
discardLabel: o = "Discard changes",
|
|
1268
|
+
saveLabel: c = "Save"
|
|
1268
1269
|
}) {
|
|
1269
|
-
return /* @__PURE__ */ t(
|
|
1270
|
-
!
|
|
1271
|
-
}, children: /* @__PURE__ */ r(
|
|
1272
|
-
/* @__PURE__ */ r(st, { children: [
|
|
1273
|
-
/* @__PURE__ */ t(ot, { children: s }),
|
|
1274
|
-
/* @__PURE__ */ t(it, { children: c })
|
|
1275
|
-
] }),
|
|
1270
|
+
return /* @__PURE__ */ t(ot, { open: e, onOpenChange: (m) => {
|
|
1271
|
+
!m && l || a(m);
|
|
1272
|
+
}, children: /* @__PURE__ */ r(it, { children: [
|
|
1276
1273
|
/* @__PURE__ */ r(lt, { children: [
|
|
1274
|
+
/* @__PURE__ */ t(dt, { children: s }),
|
|
1275
|
+
/* @__PURE__ */ t(ct, { children: u })
|
|
1276
|
+
] }),
|
|
1277
|
+
/* @__PURE__ */ r(ut, { children: [
|
|
1277
1278
|
/* @__PURE__ */ t(
|
|
1278
|
-
|
|
1279
|
+
R,
|
|
1279
1280
|
{
|
|
1280
1281
|
type: "button",
|
|
1281
1282
|
size: "xs",
|
|
1282
1283
|
onClick: n,
|
|
1283
|
-
disabled:
|
|
1284
|
+
disabled: l,
|
|
1284
1285
|
variant: "outline",
|
|
1285
1286
|
className: "mr-auto text-destructive hover:border-destructive/40 hover:bg-destructive/10 hover:text-destructive focus-visible:bg-destructive/10 focus-visible:text-destructive",
|
|
1286
|
-
children:
|
|
1287
|
+
children: o
|
|
1287
1288
|
}
|
|
1288
1289
|
),
|
|
1289
|
-
/* @__PURE__ */ t(
|
|
1290
|
-
/* @__PURE__ */ t(
|
|
1291
|
-
/* @__PURE__ */ t(
|
|
1290
|
+
/* @__PURE__ */ t(ht, { disabled: l, children: p }),
|
|
1291
|
+
/* @__PURE__ */ t(R, { type: "button", size: "xs", onClick: i, disabled: l, children: l ? /* @__PURE__ */ r(j, { children: [
|
|
1292
|
+
/* @__PURE__ */ t(ae, { className: "mr-2 h-3.5 w-3.5 animate-spin" }),
|
|
1292
1293
|
"Saving..."
|
|
1293
|
-
] }) :
|
|
1294
|
+
] }) : c })
|
|
1294
1295
|
] })
|
|
1295
1296
|
] }) });
|
|
1296
1297
|
}
|
|
1297
|
-
function
|
|
1298
|
+
function vt(e, a) {
|
|
1298
1299
|
return {
|
|
1299
1300
|
id: e.id,
|
|
1300
1301
|
status: e.status,
|
|
@@ -1307,202 +1308,208 @@ function bt(e, a) {
|
|
|
1307
1308
|
lastUpdatedAt: /* @__PURE__ */ new Date(),
|
|
1308
1309
|
fileSize: e.fileSize,
|
|
1309
1310
|
error: e.error,
|
|
1311
|
+
phase: e.phase,
|
|
1312
|
+
deadlineAt: e.deadlineAt ? new Date(e.deadlineAt) : void 0,
|
|
1310
1313
|
// A refreshed result replaces prior authorization, including a failed URL fetch.
|
|
1311
1314
|
downloadUrl: a
|
|
1312
1315
|
};
|
|
1313
1316
|
}
|
|
1314
|
-
const
|
|
1315
|
-
function
|
|
1317
|
+
const Ra = 15e3;
|
|
1318
|
+
function pe(e) {
|
|
1319
|
+
const a = new AbortController();
|
|
1320
|
+
let i;
|
|
1321
|
+
const n = new Promise((l, s) => {
|
|
1322
|
+
i = setTimeout(() => {
|
|
1323
|
+
a.abort(), s(new Error("Export request timed out."));
|
|
1324
|
+
}, Ra);
|
|
1325
|
+
});
|
|
1326
|
+
return Promise.race([e(a.signal), n]).finally(() => clearTimeout(i));
|
|
1327
|
+
}
|
|
1328
|
+
const Ua = 1e4, Va = 15e3, Pa = 3e4, Ma = 3e4, _a = 12e4, Oa = 5 * 6e4, za = 2 * 60 * 60 * 1e3;
|
|
1329
|
+
function $a(e) {
|
|
1330
|
+
return e.deadlineAt ? e.deadlineAt.getTime() + Oa : e.startedAt.getTime() + za;
|
|
1331
|
+
}
|
|
1332
|
+
function ja(e) {
|
|
1316
1333
|
const a = Date.now() - e.getTime();
|
|
1317
|
-
return a <
|
|
1334
|
+
return a < Ma ? Ua : a < _a ? Va : Pa;
|
|
1318
1335
|
}
|
|
1319
|
-
function
|
|
1320
|
-
const { authToken: e, tokenProps: a } =
|
|
1336
|
+
function Qn() {
|
|
1337
|
+
const { authToken: e, tokenProps: a } = Ye(), i = me((h) => h.activeExports), [n, l] = E(
|
|
1321
1338
|
typeof document < "u" ? !document.hidden : !0
|
|
1322
|
-
), s =
|
|
1323
|
-
const h =
|
|
1339
|
+
), s = ue(null), u = ue(!1), p = ue(void 0), o = a == null ? void 0 : a.apiServiceUrl, c = e == null ? void 0 : e.accessToken, d = H(() => {
|
|
1340
|
+
const h = me.getState().activeExports;
|
|
1324
1341
|
return Array.from(h.values()).filter(
|
|
1325
|
-
(f) =>
|
|
1342
|
+
(f) => De(f.status)
|
|
1326
1343
|
);
|
|
1327
1344
|
}, []);
|
|
1328
1345
|
Y(() => {
|
|
1329
1346
|
if (typeof document > "u") return;
|
|
1330
1347
|
const h = () => {
|
|
1331
|
-
|
|
1348
|
+
l(!document.hidden);
|
|
1332
1349
|
};
|
|
1333
1350
|
return document.addEventListener("visibilitychange", h), () => {
|
|
1334
1351
|
document.removeEventListener("visibilitychange", h);
|
|
1335
1352
|
};
|
|
1336
1353
|
}, []);
|
|
1337
|
-
const
|
|
1338
|
-
if (!
|
|
1339
|
-
|
|
1354
|
+
const m = H(async () => {
|
|
1355
|
+
if (!o || !c) {
|
|
1356
|
+
u.current = !1;
|
|
1340
1357
|
return;
|
|
1341
1358
|
}
|
|
1342
1359
|
const h = d();
|
|
1343
1360
|
if (h.length === 0) {
|
|
1344
|
-
|
|
1345
|
-
return;
|
|
1346
|
-
}
|
|
1347
|
-
const f = Date.now(), g = h.filter(
|
|
1348
|
-
(C) => f - C.startedAt.getTime() > Ct
|
|
1349
|
-
);
|
|
1350
|
-
if (g.length > 0) {
|
|
1351
|
-
const { updateExport: C } = he.getState().actions;
|
|
1352
|
-
for (const w of g)
|
|
1353
|
-
C(w.id, {
|
|
1354
|
-
status: "failed",
|
|
1355
|
-
error: "Export timed out. Please try again or contact support.",
|
|
1356
|
-
lastUpdatedAt: /* @__PURE__ */ new Date()
|
|
1357
|
-
});
|
|
1358
|
-
}
|
|
1359
|
-
const k = h.filter(
|
|
1360
|
-
(C) => f - C.startedAt.getTime() <= Ct
|
|
1361
|
-
);
|
|
1362
|
-
if (k.length === 0) {
|
|
1363
|
-
c.current = !1;
|
|
1361
|
+
u.current = !1;
|
|
1364
1362
|
return;
|
|
1365
1363
|
}
|
|
1366
|
-
const
|
|
1367
|
-
|
|
1364
|
+
const f = Date.now(), b = await Promise.allSettled(
|
|
1365
|
+
h.map(async (D) => {
|
|
1368
1366
|
try {
|
|
1369
|
-
const w = await
|
|
1370
|
-
let
|
|
1367
|
+
const w = await pe((F) => Ut(o, c, D.id, F));
|
|
1368
|
+
let C;
|
|
1371
1369
|
if (w.status === "completed")
|
|
1372
1370
|
try {
|
|
1373
|
-
|
|
1374
|
-
} catch (
|
|
1371
|
+
C = await pe((F) => qe(o, c, D.id, F));
|
|
1372
|
+
} catch (F) {
|
|
1375
1373
|
console.error(
|
|
1376
|
-
`[useExportPolling] Failed to get download URL for ${
|
|
1377
|
-
|
|
1374
|
+
`[useExportPolling] Failed to get download URL for ${D.id}:`,
|
|
1375
|
+
F
|
|
1378
1376
|
);
|
|
1379
1377
|
}
|
|
1380
|
-
return
|
|
1378
|
+
return vt(w, C);
|
|
1381
1379
|
} catch (w) {
|
|
1382
1380
|
return console.error(
|
|
1383
|
-
`[useExportPolling] Failed to poll export ${
|
|
1381
|
+
`[useExportPolling] Failed to poll export ${D.id}:`,
|
|
1384
1382
|
w
|
|
1385
1383
|
), null;
|
|
1386
1384
|
}
|
|
1387
1385
|
})
|
|
1388
|
-
), { updateExport:
|
|
1389
|
-
|
|
1390
|
-
|
|
1386
|
+
), { updateExport: k, applyServerStatus: I } = me.getState().actions, y = (D) => {
|
|
1387
|
+
const w = me.getState().activeExports.get(D);
|
|
1388
|
+
return !!w && De(w.status);
|
|
1389
|
+
};
|
|
1390
|
+
h.forEach((D, w) => {
|
|
1391
|
+
if (!y(D.id)) return;
|
|
1392
|
+
const C = b[w], F = C.status === "fulfilled" ? C.value : null;
|
|
1393
|
+
if (f > $a(D) && !(F && !De(F.status))) {
|
|
1394
|
+
k(D.id, {
|
|
1395
|
+
status: "failed",
|
|
1396
|
+
error: z.unconfirmed,
|
|
1397
|
+
lastUpdatedAt: /* @__PURE__ */ new Date()
|
|
1398
|
+
});
|
|
1399
|
+
return;
|
|
1400
|
+
}
|
|
1401
|
+
F && I(F.id, F);
|
|
1402
|
+
});
|
|
1391
1403
|
const S = d();
|
|
1392
1404
|
if (S.length > 0 && !document.hidden) {
|
|
1393
|
-
const
|
|
1394
|
-
(
|
|
1405
|
+
const D = S.reduce(
|
|
1406
|
+
(C, F) => F.startedAt < C ? F.startedAt : C,
|
|
1395
1407
|
S[0].startedAt
|
|
1396
|
-
), w =
|
|
1408
|
+
), w = ja(D);
|
|
1397
1409
|
s.current && clearTimeout(s.current), s.current = setTimeout(() => {
|
|
1398
|
-
var
|
|
1399
|
-
(
|
|
1410
|
+
var C;
|
|
1411
|
+
(C = p.current) == null || C.call(p);
|
|
1400
1412
|
}, w);
|
|
1401
1413
|
} else
|
|
1402
|
-
|
|
1403
|
-
}, [
|
|
1414
|
+
u.current = !1;
|
|
1415
|
+
}, [o, c, d]);
|
|
1404
1416
|
return Y(() => {
|
|
1405
|
-
|
|
1406
|
-
}, [
|
|
1417
|
+
p.current = m;
|
|
1418
|
+
}, [m]), Y(() => {
|
|
1407
1419
|
var f;
|
|
1408
|
-
d().length > 0 && n && !
|
|
1409
|
-
}, [
|
|
1420
|
+
d().length > 0 && n && !u.current && (u.current = !0, (f = p.current) == null || f.call(p));
|
|
1421
|
+
}, [i, n, d]), Y(() => {
|
|
1410
1422
|
var f;
|
|
1411
1423
|
const h = d();
|
|
1412
|
-
n && h.length > 0 && !
|
|
1424
|
+
n && h.length > 0 && !u.current && (u.current = !0, (f = p.current) == null || f.call(p));
|
|
1413
1425
|
}, [n, d]), Y(() => {
|
|
1414
|
-
!n && s.current && (clearTimeout(s.current), s.current = null,
|
|
1426
|
+
!n && s.current && (clearTimeout(s.current), s.current = null, u.current = !1);
|
|
1415
1427
|
}, [n]), Y(() => () => {
|
|
1416
1428
|
s.current && (clearTimeout(s.current), s.current = null);
|
|
1417
1429
|
}, []), {
|
|
1418
|
-
isPolling:
|
|
1430
|
+
isPolling: u.current,
|
|
1419
1431
|
isTabVisible: n,
|
|
1420
1432
|
inProgressCount: d().length
|
|
1421
1433
|
};
|
|
1422
1434
|
}
|
|
1423
|
-
function
|
|
1424
|
-
const { authToken: e, tokenProps: a } =
|
|
1435
|
+
function Zn() {
|
|
1436
|
+
const { authToken: e, tokenProps: a } = Ye(), i = me((p) => p.activeExports), { recoverExport: n } = Vt(), l = ue(!1), s = a == null ? void 0 : a.apiServiceUrl, u = e == null ? void 0 : e.accessToken;
|
|
1425
1437
|
Y(() => {
|
|
1426
|
-
if (
|
|
1438
|
+
if (l.current || !s || !u) return;
|
|
1427
1439
|
(async () => {
|
|
1428
1440
|
try {
|
|
1429
|
-
const { exports:
|
|
1430
|
-
status: ["pending", "processing", "chunking", "compacting", "completed", "failed"],
|
|
1441
|
+
const { exports: o } = await pe((c) => Cr(s, u, {
|
|
1442
|
+
status: ["pending", "processing", "chunking", "compacting", "completed", "failed", "cancelled"],
|
|
1431
1443
|
limit: 20
|
|
1432
1444
|
// Limit to recent exports
|
|
1433
|
-
});
|
|
1434
|
-
for (const
|
|
1435
|
-
if (
|
|
1445
|
+
}, c));
|
|
1446
|
+
for (const c of o) {
|
|
1447
|
+
if (i.has(c.id)) continue;
|
|
1436
1448
|
let d;
|
|
1437
|
-
if (
|
|
1449
|
+
if (c.status === "completed")
|
|
1438
1450
|
try {
|
|
1439
|
-
d = await
|
|
1451
|
+
d = await pe((h) => qe(s, u, c.id, h));
|
|
1440
1452
|
} catch (h) {
|
|
1441
1453
|
console.error(
|
|
1442
|
-
`[useExportRecovery] Failed to get download URL for ${
|
|
1454
|
+
`[useExportRecovery] Failed to get download URL for ${c.id}:`,
|
|
1443
1455
|
h
|
|
1444
1456
|
);
|
|
1445
1457
|
}
|
|
1446
|
-
const
|
|
1447
|
-
...
|
|
1448
|
-
title:
|
|
1449
|
-
startedAt: new Date(
|
|
1450
|
-
expiresAt: new Date(
|
|
1458
|
+
const m = {
|
|
1459
|
+
...vt(c, d),
|
|
1460
|
+
title: Wa(c),
|
|
1461
|
+
startedAt: new Date(c.createdAt),
|
|
1462
|
+
expiresAt: new Date(c.expiresAt)
|
|
1451
1463
|
};
|
|
1452
|
-
n(
|
|
1464
|
+
n(m);
|
|
1453
1465
|
}
|
|
1454
|
-
|
|
1455
|
-
} catch (
|
|
1456
|
-
console.error("[useExportRecovery] Failed to recover exports:",
|
|
1466
|
+
l.current = !0;
|
|
1467
|
+
} catch (o) {
|
|
1468
|
+
console.error("[useExportRecovery] Failed to recover exports:", o), l.current = !0;
|
|
1457
1469
|
}
|
|
1458
1470
|
})();
|
|
1459
|
-
}, [s,
|
|
1471
|
+
}, [s, u, n, i]);
|
|
1460
1472
|
}
|
|
1461
|
-
function
|
|
1462
|
-
return e.title ? e.title :
|
|
1473
|
+
function Wa(e) {
|
|
1474
|
+
return e.title ? e.title : De(
|
|
1463
1475
|
e.status
|
|
1464
1476
|
) ? "Export in progress..." : e.status === "completed" ? "Export completed" : e.status === "failed" ? "Export failed" : "Export";
|
|
1465
1477
|
}
|
|
1466
|
-
function
|
|
1478
|
+
function Ha({
|
|
1467
1479
|
export: e,
|
|
1468
1480
|
onRemove: a,
|
|
1469
|
-
onDownload:
|
|
1481
|
+
onDownload: i
|
|
1470
1482
|
}) {
|
|
1471
|
-
const [n,
|
|
1483
|
+
const [n, l] = E("idle");
|
|
1472
1484
|
Y(() => {
|
|
1473
|
-
e.downloadUrl &&
|
|
1485
|
+
e.downloadUrl && l("idle");
|
|
1474
1486
|
}, [e.downloadUrl]);
|
|
1475
1487
|
const s = async () => {
|
|
1476
|
-
if (!
|
|
1488
|
+
if (!i) {
|
|
1477
1489
|
e.downloadUrl && window.open(e.downloadUrl, "_blank");
|
|
1478
1490
|
return;
|
|
1479
1491
|
}
|
|
1480
|
-
|
|
1481
|
-
const
|
|
1482
|
-
|
|
1483
|
-
},
|
|
1484
|
-
|
|
1485
|
-
},
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
return "Finalizing...";
|
|
1491
|
-
default:
|
|
1492
|
-
return "Processing...";
|
|
1493
|
-
}
|
|
1494
|
-
})(), u = e.status === "completed" ? "bg-emerald-500" : e.status === "failed" ? "bg-destructive" : e.status === "pending" ? "bg-muted-foreground/40" : "animate-pulse bg-muted-foreground/60", d = e.status === "completed" ? "Ready" : e.status === "failed" ? "Failed" : "In progress", p = pa(e.startedAt, { addSuffix: !0 }), h = [
|
|
1492
|
+
l("preparing");
|
|
1493
|
+
const k = await i(e);
|
|
1494
|
+
l(k === "denied" ? "denied" : "idle");
|
|
1495
|
+
}, u = (k) => {
|
|
1496
|
+
k.stopPropagation(), a == null || a(e.id);
|
|
1497
|
+
}, p = De(e.status), o = e.status === "pending" ? { text: z.queued } : e.status === "compacting" || e.phase === "finalizing" ? { text: z.finalizing } : e.phase === "preparing" ? { text: z.preparing } : e.phase === "acquiring" ? { text: z.fetchingRows(e.rowsProcessed ?? 0) } : {
|
|
1498
|
+
text: z.processing,
|
|
1499
|
+
detail: e.progress !== null ? z.percentComplete(e.progress) : e.rowsProcessed !== void 0 ? z.rowsProcessed(e.rowsProcessed) : void 0,
|
|
1500
|
+
bar: e.progress
|
|
1501
|
+
}, c = p && Date.now() - e.startedAt.getTime() >= wr, d = e.status === "completed" ? "bg-emerald-500" : e.status === "failed" ? "bg-destructive" : e.status === "pending" || e.status === "cancelled" ? "bg-muted-foreground/40" : "animate-pulse bg-muted-foreground/60", m = e.status === "completed" ? z.ready : e.status === "failed" ? z.failed : e.status === "cancelled" ? z.cancelled : z.inProgress, h = Nt(e.startedAt, { addSuffix: !0 }), f = [
|
|
1495
1502
|
e.status === "completed" && e.totalRows !== null ? `${e.totalRows.toLocaleString()} rows` : null,
|
|
1496
|
-
e.status === "completed" && e.fileSize ?
|
|
1497
|
-
].filter((
|
|
1503
|
+
e.status === "completed" && e.fileSize ? Nr(e.fileSize) : null
|
|
1504
|
+
].filter((k) => !!k), b = /* @__PURE__ */ t("span", { className: "text-muted-foreground/50", children: "·" });
|
|
1498
1505
|
return /* @__PURE__ */ r("div", { className: "group flex items-start gap-2.5 px-3 py-2 transition-colors hover:bg-muted/40 focus-within:bg-muted/40", children: [
|
|
1499
|
-
/* @__PURE__ */ t("span", { className: "flex h-5 shrink-0 items-center", "aria-hidden": "true", children: /* @__PURE__ */ t("span", { className: `h-1.5 w-1.5 rounded-full ${
|
|
1500
|
-
/* @__PURE__ */ t("span", { className: "sr-only", children:
|
|
1506
|
+
/* @__PURE__ */ t("span", { className: "flex h-5 shrink-0 items-center", "aria-hidden": "true", children: /* @__PURE__ */ t("span", { className: `h-1.5 w-1.5 rounded-full ${d}` }) }),
|
|
1507
|
+
/* @__PURE__ */ t("span", { className: "sr-only", children: m }),
|
|
1501
1508
|
/* @__PURE__ */ r("div", { className: "min-w-0 flex-1", children: [
|
|
1502
1509
|
/* @__PURE__ */ r("div", { className: "flex h-5 items-center gap-2", children: [
|
|
1503
1510
|
/* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate text-[13px] font-medium leading-5", children: e.title }),
|
|
1504
1511
|
e.status === "completed" && n === "preparing" && /* @__PURE__ */ r("span", { role: "status", className: "inline-flex shrink-0 items-center gap-1.5 text-[12px] text-muted-foreground", children: [
|
|
1505
|
-
/* @__PURE__ */ t(
|
|
1512
|
+
/* @__PURE__ */ t(Pt, { className: "h-3 w-3 animate-spin", strokeWidth: 1.75 }),
|
|
1506
1513
|
"Preparing"
|
|
1507
1514
|
] }),
|
|
1508
1515
|
e.status === "completed" && n !== "preparing" && /* @__PURE__ */ t(
|
|
@@ -1515,229 +1522,241 @@ function _a({
|
|
|
1515
1522
|
}
|
|
1516
1523
|
),
|
|
1517
1524
|
/* @__PURE__ */ t(
|
|
1518
|
-
|
|
1525
|
+
R,
|
|
1519
1526
|
{
|
|
1520
1527
|
variant: "ghost",
|
|
1521
1528
|
size: "xs",
|
|
1522
1529
|
className: "-mr-1.5 h-5 w-5 shrink-0 px-0 text-muted-foreground opacity-0 transition-opacity hover:text-foreground focus-visible:opacity-100 group-hover:opacity-100 group-focus-within:opacity-100",
|
|
1523
|
-
onClick:
|
|
1530
|
+
onClick: u,
|
|
1524
1531
|
"aria-label": "Remove notification",
|
|
1525
1532
|
title: "Remove",
|
|
1526
|
-
children: /* @__PURE__ */ t(
|
|
1533
|
+
children: /* @__PURE__ */ t(Qe, { className: "h-3.5 w-3.5", strokeWidth: 1.75 })
|
|
1527
1534
|
}
|
|
1528
1535
|
)
|
|
1529
1536
|
] }),
|
|
1530
|
-
|
|
1531
|
-
|
|
1537
|
+
e.status === "completed" && /* @__PURE__ */ r("div", { className: "flex items-center gap-1.5 text-[12px] leading-4 text-muted-foreground", children: [
|
|
1538
|
+
f.length > 0 && // Disclosed on hover or focus only; the time is what a reader scans.
|
|
1532
1539
|
/* @__PURE__ */ r("span", { className: "hidden group-hover:contents group-focus-within:contents", children: [
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
/* @__PURE__ */ t("span", { children:
|
|
1536
|
-
] },
|
|
1537
|
-
|
|
1540
|
+
f.map((k, I) => /* @__PURE__ */ r(Dt.Fragment, { children: [
|
|
1541
|
+
I > 0 && b,
|
|
1542
|
+
/* @__PURE__ */ t("span", { children: k })
|
|
1543
|
+
] }, I)),
|
|
1544
|
+
b
|
|
1538
1545
|
] }),
|
|
1539
|
-
/* @__PURE__ */ t("span", { children:
|
|
1546
|
+
/* @__PURE__ */ t("span", { children: h })
|
|
1540
1547
|
] }),
|
|
1541
1548
|
e.status === "completed" && n === "denied" && /* @__PURE__ */ r("div", { role: "alert", className: "mt-1 flex items-start gap-1.5 text-[12px] leading-4 text-foreground", children: [
|
|
1542
|
-
/* @__PURE__ */ t(
|
|
1543
|
-
/* @__PURE__ */ t("span", { children:
|
|
1549
|
+
/* @__PURE__ */ t(Sr, { className: "mt-0.5 h-3 w-3 shrink-0 text-destructive", strokeWidth: 1.75 }),
|
|
1550
|
+
/* @__PURE__ */ t("span", { children: z.linkExpired })
|
|
1544
1551
|
] }),
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1552
|
+
p && /* @__PURE__ */ r("div", { className: "text-[12px] leading-4 text-muted-foreground", children: [
|
|
1553
|
+
/* @__PURE__ */ t("span", { className: "tabular-nums", children: o.text }),
|
|
1554
|
+
o.detail && /* @__PURE__ */ r(j, { children: [
|
|
1548
1555
|
" ",
|
|
1549
|
-
|
|
1556
|
+
b,
|
|
1550
1557
|
" ",
|
|
1551
|
-
/* @__PURE__ */ t("span", { className: "tabular-nums", children:
|
|
1558
|
+
/* @__PURE__ */ t("span", { className: "tabular-nums", children: o.detail })
|
|
1552
1559
|
] }),
|
|
1553
|
-
|
|
1560
|
+
" ",
|
|
1561
|
+
b,
|
|
1562
|
+
" ",
|
|
1563
|
+
/* @__PURE__ */ t("span", { children: z.started(Nt(e.startedAt)) }),
|
|
1564
|
+
o.bar !== void 0 && o.bar !== null && /* @__PURE__ */ t(Dr, { value: o.bar, className: "mt-1.5 h-1" }),
|
|
1565
|
+
c && /* @__PURE__ */ t("div", { className: "mt-1", children: z.longRunning })
|
|
1566
|
+
] }),
|
|
1567
|
+
e.status === "cancelled" && /* @__PURE__ */ r("div", { className: "flex items-center gap-1.5 text-[12px] leading-4 text-muted-foreground", children: [
|
|
1568
|
+
/* @__PURE__ */ t("span", { children: z.cancelled }),
|
|
1569
|
+
b,
|
|
1570
|
+
/* @__PURE__ */ t("span", { children: h })
|
|
1554
1571
|
] }),
|
|
1555
|
-
e.status === "failed" && /* @__PURE__ */ r(
|
|
1572
|
+
e.status === "failed" && /* @__PURE__ */ r(j, { children: [
|
|
1556
1573
|
/* @__PURE__ */ r("div", { className: "flex items-center gap-1.5 text-[12px] leading-4 text-muted-foreground", children: [
|
|
1557
|
-
/* @__PURE__ */ t("span", { children:
|
|
1558
|
-
|
|
1559
|
-
/* @__PURE__ */ t("span", { children:
|
|
1574
|
+
/* @__PURE__ */ t("span", { children: z.failed }),
|
|
1575
|
+
b,
|
|
1576
|
+
/* @__PURE__ */ t("span", { children: h })
|
|
1560
1577
|
] }),
|
|
1561
|
-
/* @__PURE__ */ t("div", { className: "mt-1 whitespace-pre-wrap break-words text-[12px] leading-4 text-destructive", children: e.error ||
|
|
1578
|
+
/* @__PURE__ */ t("div", { className: "mt-1 whitespace-pre-wrap break-words text-[12px] leading-4 text-destructive", children: e.error || z.failedFallback })
|
|
1562
1579
|
] })
|
|
1563
1580
|
] })
|
|
1564
1581
|
] });
|
|
1565
1582
|
}
|
|
1566
|
-
function
|
|
1567
|
-
const { authToken: e, tokenProps: a } =
|
|
1568
|
-
(
|
|
1569
|
-
),
|
|
1570
|
-
(
|
|
1571
|
-
),
|
|
1572
|
-
const
|
|
1573
|
-
if (!(!
|
|
1574
|
-
|
|
1583
|
+
function qa() {
|
|
1584
|
+
const { authToken: e, tokenProps: a } = Ye(), i = me((y) => y.activeExports), { clearCompleted: n, removeExport: l, updateExport: s, applyServerStatus: u } = Vt(), [p, o] = E(!1), [c, d] = E(!1), m = Array.from(i.values()).sort(
|
|
1585
|
+
(y, S) => S.startedAt.getTime() - y.startedAt.getTime()
|
|
1586
|
+
), h = m.some(
|
|
1587
|
+
(y) => y.status === "completed" || y.status === "failed" || y.status === "cancelled"
|
|
1588
|
+
), f = H(async () => {
|
|
1589
|
+
const y = a == null ? void 0 : a.apiServiceUrl, S = e == null ? void 0 : e.accessToken;
|
|
1590
|
+
if (!(!y || !S)) {
|
|
1591
|
+
o(!0);
|
|
1575
1592
|
try {
|
|
1576
|
-
const
|
|
1593
|
+
const D = Array.from(i.values());
|
|
1577
1594
|
await Promise.all(
|
|
1578
|
-
|
|
1595
|
+
D.map(async (w) => {
|
|
1579
1596
|
try {
|
|
1580
|
-
const
|
|
1581
|
-
let
|
|
1582
|
-
if (
|
|
1597
|
+
const C = await pe((g) => Ut(y, S, w.id, g));
|
|
1598
|
+
let F;
|
|
1599
|
+
if (C.status === "completed")
|
|
1583
1600
|
try {
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1601
|
+
F = await pe((g) => qe(
|
|
1602
|
+
y,
|
|
1603
|
+
S,
|
|
1604
|
+
w.id,
|
|
1605
|
+
g
|
|
1606
|
+
));
|
|
1607
|
+
} catch (g) {
|
|
1608
|
+
console.error(`Failed to get download URL for ${w.id}:`, g);
|
|
1591
1609
|
}
|
|
1592
|
-
|
|
1593
|
-
} catch (
|
|
1594
|
-
s(
|
|
1610
|
+
u(w.id, vt(C, F));
|
|
1611
|
+
} catch (C) {
|
|
1612
|
+
s(w.id, { downloadUrl: void 0 }), console.error(`Failed to refresh export ${w.id}:`, C);
|
|
1595
1613
|
}
|
|
1596
1614
|
})
|
|
1597
1615
|
);
|
|
1598
1616
|
} finally {
|
|
1599
|
-
|
|
1617
|
+
o(!1);
|
|
1600
1618
|
}
|
|
1601
1619
|
}
|
|
1602
1620
|
}, [
|
|
1603
|
-
|
|
1621
|
+
i,
|
|
1604
1622
|
e == null ? void 0 : e.accessToken,
|
|
1605
1623
|
a == null ? void 0 : a.apiServiceUrl,
|
|
1606
|
-
s
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1624
|
+
s,
|
|
1625
|
+
u
|
|
1626
|
+
]), b = H(async () => {
|
|
1627
|
+
const y = a == null ? void 0 : a.apiServiceUrl, S = e == null ? void 0 : e.accessToken;
|
|
1628
|
+
if (!y || !S) {
|
|
1610
1629
|
n();
|
|
1611
1630
|
return;
|
|
1612
1631
|
}
|
|
1613
|
-
|
|
1632
|
+
d(!0);
|
|
1614
1633
|
try {
|
|
1615
|
-
const
|
|
1616
|
-
(
|
|
1617
|
-
),
|
|
1618
|
-
|
|
1634
|
+
const D = m.filter(
|
|
1635
|
+
(C) => C.status === "completed" || C.status === "failed" || C.status === "cancelled"
|
|
1636
|
+
), w = await Promise.allSettled(
|
|
1637
|
+
D.map(async (C) => (await Ct(y, S, C.id), C.id))
|
|
1619
1638
|
);
|
|
1620
|
-
for (const
|
|
1621
|
-
|
|
1639
|
+
for (const C of w)
|
|
1640
|
+
C.status === "fulfilled" ? l(C.value) : console.error("Failed to delete export:", C.reason);
|
|
1622
1641
|
} finally {
|
|
1623
|
-
|
|
1642
|
+
d(!1);
|
|
1624
1643
|
}
|
|
1625
1644
|
}, [
|
|
1626
|
-
|
|
1645
|
+
m,
|
|
1627
1646
|
a == null ? void 0 : a.apiServiceUrl,
|
|
1628
1647
|
e == null ? void 0 : e.accessToken,
|
|
1629
1648
|
n,
|
|
1630
|
-
|
|
1631
|
-
]),
|
|
1632
|
-
async (
|
|
1633
|
-
const
|
|
1634
|
-
if (
|
|
1649
|
+
l
|
|
1650
|
+
]), k = H(
|
|
1651
|
+
async (y) => {
|
|
1652
|
+
const S = a == null ? void 0 : a.apiServiceUrl, D = e == null ? void 0 : e.accessToken;
|
|
1653
|
+
if (S && D)
|
|
1635
1654
|
try {
|
|
1636
|
-
await
|
|
1655
|
+
await Ct(S, D, y), l(y);
|
|
1637
1656
|
return;
|
|
1638
|
-
} catch (
|
|
1639
|
-
console.error(`Failed to cancel export ${
|
|
1657
|
+
} catch (w) {
|
|
1658
|
+
console.error(`Failed to cancel export ${y}:`, w);
|
|
1640
1659
|
}
|
|
1641
|
-
|
|
1660
|
+
l(y);
|
|
1642
1661
|
},
|
|
1643
|
-
[a == null ? void 0 : a.apiServiceUrl, e == null ? void 0 : e.accessToken,
|
|
1644
|
-
),
|
|
1645
|
-
async (
|
|
1646
|
-
if (
|
|
1647
|
-
return window.open(
|
|
1648
|
-
const
|
|
1649
|
-
if (!
|
|
1662
|
+
[a == null ? void 0 : a.apiServiceUrl, e == null ? void 0 : e.accessToken, l]
|
|
1663
|
+
), I = H(
|
|
1664
|
+
async (y) => {
|
|
1665
|
+
if (y.downloadUrl)
|
|
1666
|
+
return window.open(y.downloadUrl, "_blank"), "opened";
|
|
1667
|
+
const S = a == null ? void 0 : a.apiServiceUrl, D = e == null ? void 0 : e.accessToken;
|
|
1668
|
+
if (!S || !D) return "denied";
|
|
1650
1669
|
try {
|
|
1651
|
-
const
|
|
1652
|
-
return s(
|
|
1653
|
-
} catch (
|
|
1654
|
-
return console.error(`Failed to get download URL for ${
|
|
1670
|
+
const w = await pe((C) => qe(S, D, y.id, C));
|
|
1671
|
+
return s(y.id, { downloadUrl: w }), window.open(w, "_blank"), "opened";
|
|
1672
|
+
} catch (w) {
|
|
1673
|
+
return console.error(`Failed to get download URL for ${y.id}:`, w), s(y.id, { downloadUrl: void 0 }), "denied";
|
|
1655
1674
|
}
|
|
1656
1675
|
},
|
|
1657
1676
|
[a == null ? void 0 : a.apiServiceUrl, e == null ? void 0 : e.accessToken, s]
|
|
1658
1677
|
);
|
|
1659
|
-
return
|
|
1660
|
-
/* @__PURE__ */ t("span", { className: "flex h-8 w-8 items-center justify-center rounded-[6px] border border-border text-muted-foreground", children: /* @__PURE__ */ t(
|
|
1678
|
+
return m.length === 0 ? /* @__PURE__ */ r("div", { className: "flex flex-col items-center gap-1.5 px-6 py-8 text-center", children: [
|
|
1679
|
+
/* @__PURE__ */ t("span", { className: "flex h-8 w-8 items-center justify-center rounded-[6px] border border-border text-muted-foreground", children: /* @__PURE__ */ t(Ca, { className: "h-3.5 w-3.5", strokeWidth: 1.75 }) }),
|
|
1661
1680
|
/* @__PURE__ */ t("p", { className: "text-[13px] font-medium", children: "No exports yet" }),
|
|
1662
1681
|
/* @__PURE__ */ t("p", { className: "text-[12px] text-muted-foreground", children: "Large exports run in the background and land here." })
|
|
1663
1682
|
] }) : /* @__PURE__ */ r("div", { className: "flex flex-col", children: [
|
|
1664
1683
|
/* @__PURE__ */ r("div", { className: "flex h-8 items-center gap-2 border-b border-border px-3", children: [
|
|
1665
1684
|
/* @__PURE__ */ t("span", { className: "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Exports" }),
|
|
1666
|
-
/* @__PURE__ */ t("span", { className: "text-[10px] tabular-nums text-muted-foreground/70", children:
|
|
1685
|
+
/* @__PURE__ */ t("span", { className: "text-[10px] tabular-nums text-muted-foreground/70", children: m.length }),
|
|
1667
1686
|
/* @__PURE__ */ r("div", { className: "ml-auto flex items-center gap-0.5", children: [
|
|
1668
|
-
|
|
1669
|
-
|
|
1687
|
+
h && /* @__PURE__ */ t(
|
|
1688
|
+
R,
|
|
1670
1689
|
{
|
|
1671
1690
|
variant: "ghost",
|
|
1672
1691
|
size: "xs",
|
|
1673
1692
|
className: "h-6 px-1.5 text-[12px] text-muted-foreground hover:text-foreground",
|
|
1674
|
-
onClick:
|
|
1675
|
-
disabled:
|
|
1676
|
-
children:
|
|
1693
|
+
onClick: b,
|
|
1694
|
+
disabled: c,
|
|
1695
|
+
children: c ? "Clearing" : "Clear all"
|
|
1677
1696
|
}
|
|
1678
1697
|
),
|
|
1679
1698
|
/* @__PURE__ */ t(
|
|
1680
|
-
|
|
1699
|
+
R,
|
|
1681
1700
|
{
|
|
1682
1701
|
variant: "ghost",
|
|
1683
1702
|
size: "xs",
|
|
1684
1703
|
className: "h-6 w-6 px-0 text-muted-foreground hover:text-foreground",
|
|
1685
|
-
onClick:
|
|
1686
|
-
disabled:
|
|
1704
|
+
onClick: f,
|
|
1705
|
+
disabled: p,
|
|
1687
1706
|
title: "Refresh status",
|
|
1688
1707
|
"aria-label": "Refresh status",
|
|
1689
1708
|
children: /* @__PURE__ */ t(
|
|
1690
|
-
|
|
1709
|
+
Pt,
|
|
1691
1710
|
{
|
|
1692
1711
|
strokeWidth: 1.75,
|
|
1693
|
-
className: `h-3.5 w-3.5 ${
|
|
1712
|
+
className: `h-3.5 w-3.5 ${p ? "animate-spin" : ""}`
|
|
1694
1713
|
}
|
|
1695
1714
|
)
|
|
1696
1715
|
}
|
|
1697
1716
|
)
|
|
1698
1717
|
] })
|
|
1699
1718
|
] }),
|
|
1700
|
-
/* @__PURE__ */ t("div", { className: "max-h-[320px] overflow-y-auto", children: /* @__PURE__ */ t("div", { className: "divide-y divide-border/70", children:
|
|
1701
|
-
|
|
1719
|
+
/* @__PURE__ */ t("div", { className: "max-h-[320px] overflow-y-auto", children: /* @__PURE__ */ t("div", { className: "divide-y divide-border/70", children: m.map((y) => /* @__PURE__ */ t(
|
|
1720
|
+
Ha,
|
|
1702
1721
|
{
|
|
1703
|
-
export:
|
|
1704
|
-
onRemove:
|
|
1705
|
-
onDownload:
|
|
1722
|
+
export: y,
|
|
1723
|
+
onRemove: k,
|
|
1724
|
+
onDownload: I
|
|
1706
1725
|
},
|
|
1707
|
-
|
|
1726
|
+
y.id
|
|
1708
1727
|
)) }) })
|
|
1709
1728
|
] });
|
|
1710
1729
|
}
|
|
1711
|
-
function
|
|
1730
|
+
function Jn({
|
|
1712
1731
|
variant: e
|
|
1713
1732
|
}) {
|
|
1714
|
-
const a =
|
|
1715
|
-
(
|
|
1716
|
-
),
|
|
1717
|
-
return /* @__PURE__ */ r(
|
|
1718
|
-
/* @__PURE__ */ t(
|
|
1719
|
-
|
|
1733
|
+
const a = me((o) => o.activeExports), i = kr(), n = a.size > 0, l = Array.from(a.values()).some(
|
|
1734
|
+
(o) => o.status === "completed" || o.status === "failed"
|
|
1735
|
+
), u = i > 0 ? i > 9 ? "9+" : String(i) : null;
|
|
1736
|
+
return /* @__PURE__ */ r(ze, { children: [
|
|
1737
|
+
/* @__PURE__ */ t($e, { asChild: !0, children: /* @__PURE__ */ r(
|
|
1738
|
+
R,
|
|
1720
1739
|
{
|
|
1721
1740
|
variant: e ?? "ghost",
|
|
1722
1741
|
size: "xs",
|
|
1723
1742
|
className: "relative w-7 px-0 text-muted-foreground hover:text-foreground",
|
|
1724
1743
|
"aria-label": "Export notifications",
|
|
1725
1744
|
children: [
|
|
1726
|
-
/* @__PURE__ */ t(
|
|
1745
|
+
/* @__PURE__ */ t(Er, { className: "h-3.5 w-3.5" }),
|
|
1727
1746
|
n && /* @__PURE__ */ t(
|
|
1728
1747
|
"span",
|
|
1729
1748
|
{
|
|
1730
|
-
className: `absolute flex items-center justify-center rounded-full bg-primary text-primary-foreground ${
|
|
1731
|
-
children:
|
|
1749
|
+
className: `absolute flex items-center justify-center rounded-full bg-primary text-primary-foreground ${u ? "-right-0.5 -top-0.5 h-3.5 min-w-3.5 px-0.5 text-[9px] font-semibold" : "right-1 top-1 h-1.5 w-1.5"}`,
|
|
1750
|
+
children: u
|
|
1732
1751
|
}
|
|
1733
1752
|
)
|
|
1734
1753
|
]
|
|
1735
1754
|
}
|
|
1736
1755
|
) }),
|
|
1737
|
-
/* @__PURE__ */ t(
|
|
1756
|
+
/* @__PURE__ */ t(je, { className: "w-80 p-0", align: "end", sideOffset: 8, children: /* @__PURE__ */ t(qa, {}) })
|
|
1738
1757
|
] });
|
|
1739
1758
|
}
|
|
1740
|
-
function
|
|
1759
|
+
function Ga(e) {
|
|
1741
1760
|
if (e)
|
|
1742
1761
|
return {
|
|
1743
1762
|
renamed: e.type === "rename" ? { oldId: e.oldId, newId: e.newId } : void 0,
|
|
@@ -1746,24 +1765,24 @@ function za(e) {
|
|
|
1746
1765
|
affectedBindingControlIds: e.type === "add" || e.type === "update" ? e.affectedBindingControlIds : void 0
|
|
1747
1766
|
};
|
|
1748
1767
|
}
|
|
1749
|
-
function
|
|
1768
|
+
function Ka({
|
|
1750
1769
|
open: e,
|
|
1751
1770
|
onOpenChange: a,
|
|
1752
|
-
trigger:
|
|
1771
|
+
trigger: i,
|
|
1753
1772
|
showTrigger: n = !0,
|
|
1754
|
-
initialMode:
|
|
1773
|
+
initialMode: l = "manage"
|
|
1755
1774
|
}) {
|
|
1756
|
-
const s =
|
|
1757
|
-
forceClose:
|
|
1758
|
-
handleOpenChange:
|
|
1759
|
-
isCreateFlowActive:
|
|
1760
|
-
preventPassiveDismissDuringCreate:
|
|
1775
|
+
const s = l === "create", {
|
|
1776
|
+
forceClose: u,
|
|
1777
|
+
handleOpenChange: p,
|
|
1778
|
+
isCreateFlowActive: o,
|
|
1779
|
+
preventPassiveDismissDuringCreate: c,
|
|
1761
1780
|
resolvedOpen: d,
|
|
1762
|
-
setIsCreateFlowActive:
|
|
1763
|
-
} =
|
|
1781
|
+
setIsCreateFlowActive: m
|
|
1782
|
+
} = zt({
|
|
1764
1783
|
open: e,
|
|
1765
1784
|
onOpenChange: a,
|
|
1766
|
-
initialCreateFlowActive:
|
|
1785
|
+
initialCreateFlowActive: l === "create",
|
|
1767
1786
|
// Dialog mode renders a built-in X close button — allow explicit
|
|
1768
1787
|
// closes through `handleOpenChange`. Popover mode has no X; its
|
|
1769
1788
|
// only close-via-trigger path is a re-click that would silently
|
|
@@ -1771,120 +1790,120 @@ function $a({
|
|
|
1771
1790
|
// create and make consumers use `forceClose()` from a dedicated
|
|
1772
1791
|
// button.
|
|
1773
1792
|
dismissMode: n ? "passive" : "explicit-only"
|
|
1774
|
-
}), h =
|
|
1793
|
+
}), h = T((v) => v.dashboard), { setDashboardControlsModel: f } = ve(), { participants: b } = Ar(ga(h)), k = Array.from(
|
|
1775
1794
|
new Map(
|
|
1776
|
-
|
|
1777
|
-
(
|
|
1778
|
-
var
|
|
1795
|
+
b.flatMap(
|
|
1796
|
+
(v) => v.fieldChoices.map((U) => {
|
|
1797
|
+
var A;
|
|
1779
1798
|
return [
|
|
1780
|
-
|
|
1799
|
+
U.value,
|
|
1781
1800
|
{
|
|
1782
|
-
option:
|
|
1783
|
-
target: (
|
|
1801
|
+
option: U,
|
|
1802
|
+
target: (A = v.fieldTargetMap) == null ? void 0 : A[U.value]
|
|
1784
1803
|
}
|
|
1785
1804
|
];
|
|
1786
1805
|
})
|
|
1787
1806
|
)
|
|
1788
1807
|
).values()
|
|
1789
|
-
),
|
|
1808
|
+
), I = Array.from(
|
|
1790
1809
|
new Map(
|
|
1791
|
-
|
|
1792
|
-
(
|
|
1793
|
-
var
|
|
1810
|
+
b.flatMap(
|
|
1811
|
+
(v) => v.metricChoices.map((U) => {
|
|
1812
|
+
var A;
|
|
1794
1813
|
return [
|
|
1795
|
-
|
|
1814
|
+
U.value,
|
|
1796
1815
|
{
|
|
1797
|
-
option:
|
|
1798
|
-
target: (
|
|
1816
|
+
option: U,
|
|
1817
|
+
target: (A = v.metricTargetMap) == null ? void 0 : A[U.value]
|
|
1799
1818
|
}
|
|
1800
1819
|
];
|
|
1801
1820
|
})
|
|
1802
1821
|
)
|
|
1803
1822
|
).values()
|
|
1804
|
-
),
|
|
1823
|
+
), y = Yt({
|
|
1805
1824
|
...h || {},
|
|
1806
1825
|
controls: []
|
|
1807
|
-
}), S =
|
|
1826
|
+
}), S = Ir(h), D = (v, U, A) => {
|
|
1808
1827
|
f(
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1828
|
+
v,
|
|
1829
|
+
U,
|
|
1830
|
+
Ga(A)
|
|
1812
1831
|
);
|
|
1813
|
-
}, w =
|
|
1832
|
+
}, w = H(() => {
|
|
1814
1833
|
if (s) {
|
|
1815
|
-
|
|
1834
|
+
u();
|
|
1816
1835
|
return;
|
|
1817
1836
|
}
|
|
1818
|
-
|
|
1819
|
-
}, [s,
|
|
1820
|
-
|
|
1837
|
+
m(!1);
|
|
1838
|
+
}, [s, u, m]), C = /* @__PURE__ */ t(
|
|
1839
|
+
$t,
|
|
1821
1840
|
{
|
|
1822
1841
|
scope: "dashboard",
|
|
1823
1842
|
controls: h.controls || [],
|
|
1824
|
-
reservedControlIds:
|
|
1843
|
+
reservedControlIds: y,
|
|
1825
1844
|
defaultValues: h.defaultControlValues || {},
|
|
1826
|
-
usageByControlId:
|
|
1845
|
+
usageByControlId: Lr(h),
|
|
1827
1846
|
availableFieldChoices: k,
|
|
1828
|
-
availableMetricChoices:
|
|
1829
|
-
structuralParticipants:
|
|
1847
|
+
availableMetricChoices: I,
|
|
1848
|
+
structuralParticipants: b,
|
|
1830
1849
|
structuralParticipantIdsByControlId: S,
|
|
1831
|
-
initialCreateFlow:
|
|
1832
|
-
onCreateFlowActiveChange:
|
|
1850
|
+
initialCreateFlow: l === "create",
|
|
1851
|
+
onCreateFlowActiveChange: m,
|
|
1833
1852
|
onCreateFlowComplete: w,
|
|
1834
|
-
onChange:
|
|
1853
|
+
onChange: D,
|
|
1835
1854
|
emptyMessage: "No dashboard controls yet."
|
|
1836
1855
|
}
|
|
1837
|
-
),
|
|
1856
|
+
), F = o ? "Add dashboard control" : "Dashboard Controls", g = /* @__PURE__ */ r(j, { children: [
|
|
1838
1857
|
/* @__PURE__ */ r("div", { className: "space-y-1", children: [
|
|
1839
1858
|
/* @__PURE__ */ t("h4", { className: "text-sm font-medium", children: "Dashboard Controls" }),
|
|
1840
1859
|
/* @__PURE__ */ t("p", { className: "text-xs text-muted-foreground", children: "Add shared controls viewers can use across the dashboard. Each card can decide how to respond to the same control." })
|
|
1841
1860
|
] }),
|
|
1842
|
-
|
|
1861
|
+
C
|
|
1843
1862
|
] });
|
|
1844
|
-
return n ? /* @__PURE__ */ r(
|
|
1845
|
-
/* @__PURE__ */ t(
|
|
1846
|
-
/* @__PURE__ */ t(
|
|
1863
|
+
return n ? /* @__PURE__ */ r(ze, { open: d, onOpenChange: p, children: [
|
|
1864
|
+
/* @__PURE__ */ t($e, { asChild: !0, children: i || /* @__PURE__ */ r(R, { variant: "outline", className: "h-7 px-2", size: "sm", children: [
|
|
1865
|
+
/* @__PURE__ */ t(It, { className: "mr-2 h-4 w-4" }),
|
|
1847
1866
|
"Controls"
|
|
1848
1867
|
] }) }),
|
|
1849
1868
|
/* @__PURE__ */ t(
|
|
1850
|
-
|
|
1869
|
+
je,
|
|
1851
1870
|
{
|
|
1852
1871
|
className: "w-[620px] max-w-[95vw] space-y-4",
|
|
1853
1872
|
align: "end",
|
|
1854
|
-
onEscapeKeyDown:
|
|
1855
|
-
onPointerDownOutside:
|
|
1856
|
-
children:
|
|
1873
|
+
onEscapeKeyDown: c,
|
|
1874
|
+
onPointerDownOutside: c,
|
|
1875
|
+
children: g
|
|
1857
1876
|
}
|
|
1858
1877
|
)
|
|
1859
|
-
] }) : /* @__PURE__ */ t(
|
|
1860
|
-
|
|
1878
|
+
] }) : /* @__PURE__ */ t(Ee, { open: d, onOpenChange: p, children: /* @__PURE__ */ r(
|
|
1879
|
+
Ae,
|
|
1861
1880
|
{
|
|
1862
1881
|
className: "flex max-h-[88vh] flex-col overflow-hidden sm:max-w-[600px]",
|
|
1863
|
-
onEscapeKeyDown:
|
|
1864
|
-
onPointerDownOutside:
|
|
1882
|
+
onEscapeKeyDown: c,
|
|
1883
|
+
onPointerDownOutside: c,
|
|
1865
1884
|
children: [
|
|
1866
1885
|
/* @__PURE__ */ r(
|
|
1867
|
-
|
|
1886
|
+
pt,
|
|
1868
1887
|
{
|
|
1869
|
-
className:
|
|
1888
|
+
className: o ? "space-y-0" : void 0,
|
|
1870
1889
|
children: [
|
|
1871
|
-
/* @__PURE__ */ t(
|
|
1890
|
+
/* @__PURE__ */ t(Ie, { className: "text-[15px]", children: F }),
|
|
1872
1891
|
/* @__PURE__ */ t(
|
|
1873
|
-
|
|
1892
|
+
ft,
|
|
1874
1893
|
{
|
|
1875
|
-
className:
|
|
1876
|
-
children:
|
|
1894
|
+
className: o ? "sr-only" : "text-[13px]",
|
|
1895
|
+
children: o ? "Configure and add a shared dashboard control." : "Add shared controls viewers can use across the dashboard. Each card can decide how to respond to the same control."
|
|
1877
1896
|
}
|
|
1878
1897
|
)
|
|
1879
1898
|
]
|
|
1880
1899
|
}
|
|
1881
1900
|
),
|
|
1882
|
-
/* @__PURE__ */ t("div", { className: "min-h-0 overflow-y-auto pr-1", children:
|
|
1901
|
+
/* @__PURE__ */ t("div", { className: "min-h-0 overflow-y-auto pr-1", children: C })
|
|
1883
1902
|
]
|
|
1884
1903
|
}
|
|
1885
1904
|
) });
|
|
1886
1905
|
}
|
|
1887
|
-
const
|
|
1906
|
+
const Xa = [
|
|
1888
1907
|
"enum",
|
|
1889
1908
|
"multi_enum",
|
|
1890
1909
|
"text",
|
|
@@ -1892,104 +1911,104 @@ const ja = [
|
|
|
1892
1911
|
"boolean",
|
|
1893
1912
|
"date"
|
|
1894
1913
|
];
|
|
1895
|
-
function
|
|
1914
|
+
function Ya({
|
|
1896
1915
|
open: e,
|
|
1897
1916
|
onOpenChange: a,
|
|
1898
|
-
initialMode:
|
|
1917
|
+
initialMode: i = "manage"
|
|
1899
1918
|
}) {
|
|
1900
|
-
var
|
|
1901
|
-
const n =
|
|
1902
|
-
forceClose:
|
|
1919
|
+
var g;
|
|
1920
|
+
const n = i === "create", {
|
|
1921
|
+
forceClose: l,
|
|
1903
1922
|
handleOpenChange: s,
|
|
1904
|
-
isCreateFlowActive:
|
|
1905
|
-
preventPassiveDismissDuringCreate:
|
|
1906
|
-
resolvedOpen:
|
|
1907
|
-
setIsCreateFlowActive:
|
|
1908
|
-
} =
|
|
1923
|
+
isCreateFlowActive: u,
|
|
1924
|
+
preventPassiveDismissDuringCreate: p,
|
|
1925
|
+
resolvedOpen: o,
|
|
1926
|
+
setIsCreateFlowActive: c
|
|
1927
|
+
} = zt({
|
|
1909
1928
|
open: e,
|
|
1910
1929
|
onOpenChange: a,
|
|
1911
|
-
initialCreateFlowActive:
|
|
1930
|
+
initialCreateFlowActive: i === "create",
|
|
1912
1931
|
dismissMode: "explicit-only"
|
|
1913
|
-
}), d =
|
|
1914
|
-
(
|
|
1915
|
-
),
|
|
1916
|
-
() =>
|
|
1917
|
-
[d,
|
|
1918
|
-
),
|
|
1932
|
+
}), d = T((v) => v.dashboard), m = T((v) => v.selectedSheetId), { setDashboardInputs: h } = ve(), f = (g = d.sheets) == null ? void 0 : g.find(
|
|
1933
|
+
(v) => v.id === m
|
|
1934
|
+
), b = (f == null ? void 0 : f.kind) === "document" && !!f.document, k = Z(
|
|
1935
|
+
() => b && (f != null && f.document) ? Fr(d, f.id) : [],
|
|
1936
|
+
[d, b, f == null ? void 0 : f.document, f == null ? void 0 : f.id]
|
|
1937
|
+
), I = Z(
|
|
1919
1938
|
() => k.filter(
|
|
1920
|
-
(
|
|
1939
|
+
(v) => v.kind === "control"
|
|
1921
1940
|
),
|
|
1922
1941
|
[k]
|
|
1923
|
-
),
|
|
1924
|
-
() =>
|
|
1925
|
-
[
|
|
1926
|
-
), S =
|
|
1927
|
-
() =>
|
|
1928
|
-
[
|
|
1929
|
-
),
|
|
1930
|
-
() =>
|
|
1942
|
+
), y = Z(
|
|
1943
|
+
() => I.map((v) => v.control),
|
|
1944
|
+
[I]
|
|
1945
|
+
), S = Z(
|
|
1946
|
+
() => Za(y),
|
|
1947
|
+
[y]
|
|
1948
|
+
), D = Z(
|
|
1949
|
+
() => Qa(d),
|
|
1931
1950
|
[d]
|
|
1932
|
-
), w =
|
|
1951
|
+
), w = H(() => {
|
|
1933
1952
|
if (n) {
|
|
1934
|
-
|
|
1953
|
+
l();
|
|
1935
1954
|
return;
|
|
1936
1955
|
}
|
|
1937
|
-
|
|
1938
|
-
}, [n,
|
|
1939
|
-
(
|
|
1940
|
-
!
|
|
1941
|
-
|
|
1956
|
+
c(!1);
|
|
1957
|
+
}, [n, l, c]), C = H(
|
|
1958
|
+
(v, U, A) => {
|
|
1959
|
+
!b || !(f != null && f.document) || h(
|
|
1960
|
+
en({
|
|
1942
1961
|
allInputs: d.inputs || [],
|
|
1943
1962
|
documentSheetId: f.id,
|
|
1944
1963
|
currentDocumentInputs: k,
|
|
1945
|
-
nextControls:
|
|
1946
|
-
nextDefaultValues:
|
|
1947
|
-
change:
|
|
1964
|
+
nextControls: v,
|
|
1965
|
+
nextDefaultValues: U,
|
|
1966
|
+
change: A
|
|
1948
1967
|
})
|
|
1949
1968
|
);
|
|
1950
1969
|
},
|
|
1951
1970
|
[
|
|
1952
1971
|
d.inputs,
|
|
1953
1972
|
k,
|
|
1954
|
-
|
|
1973
|
+
b,
|
|
1955
1974
|
f,
|
|
1956
1975
|
h
|
|
1957
1976
|
]
|
|
1958
1977
|
);
|
|
1959
|
-
return !
|
|
1960
|
-
|
|
1978
|
+
return !b || !(f != null && f.document) ? null : /* @__PURE__ */ t(Ee, { open: o, onOpenChange: s, children: /* @__PURE__ */ r(
|
|
1979
|
+
Ae,
|
|
1961
1980
|
{
|
|
1962
1981
|
className: "flex max-h-[88vh] flex-col overflow-hidden sm:max-w-[600px]",
|
|
1963
|
-
onEscapeKeyDown:
|
|
1964
|
-
onPointerDownOutside:
|
|
1982
|
+
onEscapeKeyDown: p,
|
|
1983
|
+
onPointerDownOutside: p,
|
|
1965
1984
|
children: [
|
|
1966
|
-
/* @__PURE__ */ r(
|
|
1967
|
-
/* @__PURE__ */ t(
|
|
1985
|
+
/* @__PURE__ */ r(pt, { className: u ? "space-y-0" : void 0, children: [
|
|
1986
|
+
/* @__PURE__ */ t(Ie, { className: "text-[15px]", children: u ? "Add document control" : "Document Controls" }),
|
|
1968
1987
|
/* @__PURE__ */ t(
|
|
1969
|
-
|
|
1988
|
+
ft,
|
|
1970
1989
|
{
|
|
1971
|
-
className:
|
|
1972
|
-
children:
|
|
1990
|
+
className: u ? "sr-only" : "text-[13px]",
|
|
1991
|
+
children: u ? "Configure and add a document-local control input." : "Add document-local control inputs. They are stored on this document sheet and are not dashboard controls."
|
|
1973
1992
|
}
|
|
1974
1993
|
)
|
|
1975
1994
|
] }),
|
|
1976
1995
|
/* @__PURE__ */ t("div", { className: "min-h-0 overflow-y-auto pr-1", children: /* @__PURE__ */ t(
|
|
1977
|
-
|
|
1996
|
+
$t,
|
|
1978
1997
|
{
|
|
1979
1998
|
scope: "dashboard",
|
|
1980
|
-
controls:
|
|
1981
|
-
reservedControlIds:
|
|
1999
|
+
controls: y,
|
|
2000
|
+
reservedControlIds: D,
|
|
1982
2001
|
defaultValues: S,
|
|
1983
2002
|
usageByControlId: {},
|
|
1984
2003
|
availableFieldChoices: [],
|
|
1985
2004
|
availableMetricChoices: [],
|
|
1986
2005
|
structuralParticipants: [],
|
|
1987
2006
|
structuralParticipantIdsByControlId: {},
|
|
1988
|
-
allowedControlTypes:
|
|
1989
|
-
initialCreateFlow:
|
|
1990
|
-
onCreateFlowActiveChange:
|
|
2007
|
+
allowedControlTypes: Xa,
|
|
2008
|
+
initialCreateFlow: i === "create",
|
|
2009
|
+
onCreateFlowActiveChange: c,
|
|
1991
2010
|
onCreateFlowComplete: w,
|
|
1992
|
-
onChange:
|
|
2011
|
+
onChange: C,
|
|
1993
2012
|
emptyMessage: "No document controls yet."
|
|
1994
2013
|
}
|
|
1995
2014
|
) })
|
|
@@ -1997,90 +2016,90 @@ function Wa({
|
|
|
1997
2016
|
}
|
|
1998
2017
|
) });
|
|
1999
2018
|
}
|
|
2000
|
-
function
|
|
2019
|
+
function Qa(e) {
|
|
2001
2020
|
return (e.controls || []).map((a) => a.id);
|
|
2002
2021
|
}
|
|
2003
|
-
function
|
|
2022
|
+
function Za(e) {
|
|
2004
2023
|
const a = {};
|
|
2005
|
-
for (const
|
|
2006
|
-
|
|
2024
|
+
for (const i of e)
|
|
2025
|
+
i.defaultValue !== void 0 && (a[i.id] = i.defaultValue);
|
|
2007
2026
|
return a;
|
|
2008
2027
|
}
|
|
2009
|
-
function
|
|
2028
|
+
function Ja(e, a) {
|
|
2010
2029
|
return a ? Object.prototype.hasOwnProperty.call(a, e.id) ? {
|
|
2011
2030
|
...e,
|
|
2012
2031
|
defaultValue: a[e.id]
|
|
2013
2032
|
} : e.defaultValue === void 0 ? e : { ...e, defaultValue: void 0 } : e.defaultValue === void 0 ? e : { ...e, defaultValue: void 0 };
|
|
2014
2033
|
}
|
|
2015
|
-
function
|
|
2034
|
+
function en({
|
|
2016
2035
|
allInputs: e,
|
|
2017
2036
|
documentSheetId: a,
|
|
2018
|
-
currentDocumentInputs:
|
|
2037
|
+
currentDocumentInputs: i,
|
|
2019
2038
|
nextControls: n,
|
|
2020
|
-
nextDefaultValues:
|
|
2039
|
+
nextDefaultValues: l,
|
|
2021
2040
|
change: s
|
|
2022
2041
|
}) {
|
|
2023
|
-
const
|
|
2042
|
+
const u = new Map(
|
|
2024
2043
|
n.map((h) => [
|
|
2025
2044
|
h.id,
|
|
2026
|
-
|
|
2045
|
+
Ja(h, l)
|
|
2027
2046
|
])
|
|
2028
|
-
),
|
|
2029
|
-
for (const h of
|
|
2047
|
+
), p = (s == null ? void 0 : s.type) === "rename" ? { oldId: s.oldId, newId: s.newId } : null, o = /* @__PURE__ */ new Set(), c = [];
|
|
2048
|
+
for (const h of i) {
|
|
2030
2049
|
if (h.kind !== "control") {
|
|
2031
|
-
|
|
2050
|
+
c.push(h);
|
|
2032
2051
|
continue;
|
|
2033
2052
|
}
|
|
2034
|
-
const f =
|
|
2053
|
+
const f = u.get(h.control.id) || ((p == null ? void 0 : p.oldId) === h.control.id ? u.get(p.newId) : void 0);
|
|
2035
2054
|
if (!f)
|
|
2036
2055
|
continue;
|
|
2037
|
-
|
|
2038
|
-
const
|
|
2056
|
+
o.add(f.id);
|
|
2057
|
+
const b = Qt(
|
|
2039
2058
|
f.id,
|
|
2040
|
-
[...e, ...
|
|
2041
|
-
(
|
|
2059
|
+
[...e, ...c].filter(
|
|
2060
|
+
(I) => I.id !== h.id
|
|
2042
2061
|
)
|
|
2043
|
-
), k = f.id ===
|
|
2044
|
-
|
|
2062
|
+
), k = f.id === b ? f : { ...f, id: b };
|
|
2063
|
+
c.push({
|
|
2045
2064
|
...h,
|
|
2046
2065
|
label: k.label,
|
|
2047
|
-
variableName:
|
|
2066
|
+
variableName: b,
|
|
2048
2067
|
requiredAtExecution: k.requiredAtExecution,
|
|
2049
2068
|
control: k
|
|
2050
2069
|
});
|
|
2051
2070
|
}
|
|
2052
|
-
for (const h of
|
|
2053
|
-
|
|
2054
|
-
|
|
2071
|
+
for (const h of u.values())
|
|
2072
|
+
o.has(h.id) || c.push(
|
|
2073
|
+
Tr({
|
|
2055
2074
|
control: h,
|
|
2056
|
-
existingInputs: [...e, ...
|
|
2075
|
+
existingInputs: [...e, ...c],
|
|
2057
2076
|
sheetId: a
|
|
2058
2077
|
})
|
|
2059
2078
|
);
|
|
2060
2079
|
const d = new Set(
|
|
2061
|
-
|
|
2080
|
+
i.map((h) => h.id)
|
|
2062
2081
|
);
|
|
2063
2082
|
return [...e.filter(
|
|
2064
2083
|
(h) => !d.has(h.id)
|
|
2065
|
-
), ...
|
|
2084
|
+
), ...c];
|
|
2066
2085
|
}
|
|
2067
|
-
function
|
|
2086
|
+
function tn({
|
|
2068
2087
|
showFilters: e,
|
|
2069
2088
|
onShowFiltersChange: a,
|
|
2070
|
-
pickerContent:
|
|
2089
|
+
pickerContent: i,
|
|
2071
2090
|
settingsContent: n,
|
|
2072
|
-
size:
|
|
2091
|
+
size: l = "default",
|
|
2073
2092
|
className: s,
|
|
2074
|
-
primaryButtonClassName:
|
|
2075
|
-
secondaryButtonClassName:
|
|
2076
|
-
pickerContentClassName:
|
|
2077
|
-
settingsContentClassName:
|
|
2093
|
+
primaryButtonClassName: u,
|
|
2094
|
+
secondaryButtonClassName: p,
|
|
2095
|
+
pickerContentClassName: o,
|
|
2096
|
+
settingsContentClassName: c
|
|
2078
2097
|
}) {
|
|
2079
|
-
const d =
|
|
2098
|
+
const d = l === "toolbar", [m, h] = E(!1), f = st("interactive");
|
|
2080
2099
|
return /* @__PURE__ */ r(
|
|
2081
2100
|
"div",
|
|
2082
2101
|
{
|
|
2083
|
-
className:
|
|
2102
|
+
className: K(
|
|
2084
2103
|
// Height lives on the shell so the outer border is part of the
|
|
2085
2104
|
// h-7 box (matches regular `size="xs"` buttons). Inner triggers
|
|
2086
2105
|
// stretch to fill via `h-full`.
|
|
@@ -2089,58 +2108,58 @@ function Ya({
|
|
|
2089
2108
|
s
|
|
2090
2109
|
),
|
|
2091
2110
|
children: [
|
|
2092
|
-
/* @__PURE__ */ r(
|
|
2093
|
-
/* @__PURE__ */ t(
|
|
2094
|
-
|
|
2111
|
+
/* @__PURE__ */ r(ze, { open: e, onOpenChange: a, children: [
|
|
2112
|
+
/* @__PURE__ */ t($e, { asChild: !0, children: /* @__PURE__ */ r(
|
|
2113
|
+
R,
|
|
2095
2114
|
{
|
|
2096
2115
|
variant: "ghost",
|
|
2097
2116
|
size: "xs",
|
|
2098
|
-
className:
|
|
2117
|
+
className: K(
|
|
2099
2118
|
"h-full rounded-none border-0 bg-transparent pl-2.5 pr-2 shadow-none hover:bg-accent/50 data-[state=open]:bg-accent/60",
|
|
2100
|
-
|
|
2119
|
+
u
|
|
2101
2120
|
),
|
|
2102
2121
|
children: [
|
|
2103
|
-
e ? /* @__PURE__ */ t(
|
|
2122
|
+
e ? /* @__PURE__ */ t(ha, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ t(Mt, { className: "h-3.5 w-3.5" }),
|
|
2104
2123
|
"Filter"
|
|
2105
2124
|
]
|
|
2106
2125
|
}
|
|
2107
2126
|
) }),
|
|
2108
2127
|
/* @__PURE__ */ t(
|
|
2109
|
-
|
|
2128
|
+
je,
|
|
2110
2129
|
{
|
|
2111
2130
|
align: "end",
|
|
2112
2131
|
sideOffset: 6,
|
|
2113
|
-
className:
|
|
2132
|
+
className: K(
|
|
2114
2133
|
"w-auto rounded-card border border-border/60 p-0 shadow-[0_10px_28px_rgba(0,0,0,0.14)] dark:shadow-[0_10px_28px_rgba(0,0,0,0.5)]",
|
|
2115
|
-
|
|
2134
|
+
o
|
|
2116
2135
|
),
|
|
2117
2136
|
style: f.contentStyle,
|
|
2118
|
-
children:
|
|
2137
|
+
children: i
|
|
2119
2138
|
}
|
|
2120
2139
|
)
|
|
2121
2140
|
] }),
|
|
2122
|
-
/* @__PURE__ */ r(
|
|
2123
|
-
/* @__PURE__ */ t(
|
|
2124
|
-
|
|
2141
|
+
/* @__PURE__ */ r(ze, { open: m, onOpenChange: h, children: [
|
|
2142
|
+
/* @__PURE__ */ t($e, { asChild: !0, children: /* @__PURE__ */ t(
|
|
2143
|
+
R,
|
|
2125
2144
|
{
|
|
2126
2145
|
variant: "ghost",
|
|
2127
2146
|
size: "xs",
|
|
2128
|
-
className:
|
|
2147
|
+
className: K(
|
|
2129
2148
|
"h-full w-7 rounded-none border-0 border-l border-border/60 bg-transparent px-0 shadow-none hover:bg-accent/50 data-[state=open]:bg-accent/60",
|
|
2130
|
-
|
|
2149
|
+
p
|
|
2131
2150
|
),
|
|
2132
2151
|
"aria-label": "Filter and control actions",
|
|
2133
|
-
children: /* @__PURE__ */ t(
|
|
2152
|
+
children: /* @__PURE__ */ t(Ot, { className: "h-3.5 w-3.5" })
|
|
2134
2153
|
}
|
|
2135
2154
|
) }),
|
|
2136
2155
|
/* @__PURE__ */ t(
|
|
2137
|
-
|
|
2156
|
+
je,
|
|
2138
2157
|
{
|
|
2139
2158
|
align: "end",
|
|
2140
2159
|
sideOffset: 6,
|
|
2141
|
-
className:
|
|
2160
|
+
className: K(
|
|
2142
2161
|
"w-auto rounded-card border border-border/60 p-0 shadow-[0_10px_28px_rgba(0,0,0,0.14)] dark:shadow-[0_10px_28px_rgba(0,0,0,0.5)]",
|
|
2143
|
-
|
|
2162
|
+
c
|
|
2144
2163
|
),
|
|
2145
2164
|
style: f.contentStyle,
|
|
2146
2165
|
children: n(() => h(!1))
|
|
@@ -2151,41 +2170,41 @@ function Ya({
|
|
|
2151
2170
|
}
|
|
2152
2171
|
);
|
|
2153
2172
|
}
|
|
2154
|
-
function
|
|
2155
|
-
|
|
2156
|
-
const e =
|
|
2173
|
+
function rn() {
|
|
2174
|
+
ma();
|
|
2175
|
+
const e = T((o) => o.selectedSheetId), a = T((o) => o.selectedFrameId), i = T((o) => o.dashboard), n = T((o) => o.actions.getSelectedFrame), { setSelectedFrameId: l } = ve(), { setCard: s } = At(), u = fe((o) => o.card.dataSource);
|
|
2157
2176
|
return Y(() => {
|
|
2158
|
-
var
|
|
2159
|
-
let
|
|
2160
|
-
if (!
|
|
2161
|
-
const
|
|
2162
|
-
h && (
|
|
2177
|
+
var c, d;
|
|
2178
|
+
let o = n();
|
|
2179
|
+
if (!o) {
|
|
2180
|
+
const m = (c = i == null ? void 0 : i.sheets) == null ? void 0 : c.find((f) => f.id === e), h = (d = m == null ? void 0 : m.frames) == null ? void 0 : d[0];
|
|
2181
|
+
h && (l(h.id), o = h);
|
|
2163
2182
|
}
|
|
2164
|
-
if (
|
|
2165
|
-
const
|
|
2166
|
-
|
|
2183
|
+
if (o) {
|
|
2184
|
+
const m = o.cards.find((h) => h.id === o.activeCardId);
|
|
2185
|
+
m && s(m);
|
|
2167
2186
|
}
|
|
2168
|
-
}, [n, e, a,
|
|
2169
|
-
hasEntities: !!(
|
|
2187
|
+
}, [n, e, a, i, l, s]), {
|
|
2188
|
+
hasEntities: !!(u != null && u.selectedEntities && u.selectedEntities.length > 0)
|
|
2170
2189
|
};
|
|
2171
2190
|
}
|
|
2172
|
-
function
|
|
2173
|
-
const e =
|
|
2174
|
-
(
|
|
2175
|
-
),
|
|
2176
|
-
() =>
|
|
2191
|
+
function an() {
|
|
2192
|
+
const e = T((o) => o.dashboard), a = T(
|
|
2193
|
+
(o) => o.semanticExecutionPayload
|
|
2194
|
+
), i = T((o) => o.actions.addFilter), { hasEntities: n } = rn(), { isLoading: l } = Br(), s = Z(
|
|
2195
|
+
() => Zt(e, a),
|
|
2177
2196
|
[e, a]
|
|
2178
|
-
),
|
|
2197
|
+
), p = !Jt(e.filters) && s.hasEligibleCards && !l;
|
|
2179
2198
|
return /* @__PURE__ */ r("div", { className: "flex h-[520px] w-[400px] flex-col", children: [
|
|
2180
|
-
|
|
2199
|
+
p && /* @__PURE__ */ t("div", { className: "border-b border-border/60 p-2", children: /* @__PURE__ */ r(
|
|
2181
2200
|
"button",
|
|
2182
2201
|
{
|
|
2183
2202
|
type: "button",
|
|
2184
|
-
onClick: () =>
|
|
2203
|
+
onClick: () => i(er()),
|
|
2185
2204
|
title: `Applies to ${s.eligibleCardCount} of ${s.totalCardCount} date-aware cards`,
|
|
2186
2205
|
className: "flex w-full items-start gap-2 rounded-control px-2 py-1.5 text-left outline-none transition-colors hover:bg-muted/40 focus-visible:bg-muted/40 focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-border",
|
|
2187
2206
|
children: [
|
|
2188
|
-
/* @__PURE__ */ t(
|
|
2207
|
+
/* @__PURE__ */ t(ya, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
2189
2208
|
/* @__PURE__ */ r("span", { className: "flex min-w-0 flex-col", children: [
|
|
2190
2209
|
/* @__PURE__ */ t("span", { className: "text-[12px] font-medium text-foreground", children: "Add global date filter" }),
|
|
2191
2210
|
/* @__PURE__ */ t("span", { className: "text-[11px] leading-[1.4] text-muted-foreground", children: "One date range across all date-aware cards." })
|
|
@@ -2194,31 +2213,31 @@ function Xa() {
|
|
|
2194
2213
|
}
|
|
2195
2214
|
) }),
|
|
2196
2215
|
!n && /* @__PURE__ */ r("div", { className: "flex flex-1 flex-col items-center justify-center px-6 py-8 text-center", children: [
|
|
2197
|
-
/* @__PURE__ */ t(
|
|
2216
|
+
/* @__PURE__ */ t(Rr, { className: "mb-3 h-10 w-10 text-muted-foreground/50" }),
|
|
2198
2217
|
/* @__PURE__ */ t("h3", { className: "mb-1 text-[13px] font-medium text-foreground", children: "No fields configured" }),
|
|
2199
2218
|
/* @__PURE__ */ t("p", { className: "text-[11px] text-muted-foreground", children: "Configure a data source for this card to enable filtering." })
|
|
2200
2219
|
] }),
|
|
2201
|
-
n && /* @__PURE__ */ t("div", { className: "flex flex-1 overflow-hidden", children: /* @__PURE__ */ t(
|
|
2220
|
+
n && /* @__PURE__ */ t("div", { className: "flex flex-1 overflow-hidden", children: /* @__PURE__ */ t(Ur, { context: "filter" }) })
|
|
2202
2221
|
] });
|
|
2203
2222
|
}
|
|
2204
|
-
const
|
|
2205
|
-
function
|
|
2223
|
+
const St = !1;
|
|
2224
|
+
function nn({
|
|
2206
2225
|
onAddFilter: e,
|
|
2207
2226
|
onAddControl: a,
|
|
2208
|
-
onManageControls:
|
|
2227
|
+
onManageControls: i,
|
|
2209
2228
|
onDismiss: n
|
|
2210
2229
|
}) {
|
|
2211
|
-
const
|
|
2212
|
-
(
|
|
2213
|
-
), { setFilterLayout: s } =
|
|
2214
|
-
|
|
2215
|
-
const
|
|
2216
|
-
return
|
|
2230
|
+
const l = T(
|
|
2231
|
+
(p) => p.dashboard.filterLayout
|
|
2232
|
+
), { setFilterLayout: s } = ve();
|
|
2233
|
+
l != null && l.displayMode;
|
|
2234
|
+
const u = (l == null ? void 0 : l.toolbarWrap) ?? !1;
|
|
2235
|
+
return l == null || l.showDownloadButton, /* @__PURE__ */ r("div", { className: "w-[300px]", children: [
|
|
2217
2236
|
/* @__PURE__ */ r("div", { className: "p-1", children: [
|
|
2218
2237
|
/* @__PURE__ */ t(
|
|
2219
|
-
|
|
2238
|
+
rt,
|
|
2220
2239
|
{
|
|
2221
|
-
icon:
|
|
2240
|
+
icon: Mt,
|
|
2222
2241
|
label: "Add filter",
|
|
2223
2242
|
onClick: () => {
|
|
2224
2243
|
e(), n();
|
|
@@ -2226,9 +2245,9 @@ function Za({
|
|
|
2226
2245
|
}
|
|
2227
2246
|
),
|
|
2228
2247
|
/* @__PURE__ */ t(
|
|
2229
|
-
|
|
2248
|
+
rt,
|
|
2230
2249
|
{
|
|
2231
|
-
icon:
|
|
2250
|
+
icon: It,
|
|
2232
2251
|
label: "Add control",
|
|
2233
2252
|
onClick: () => {
|
|
2234
2253
|
a(), n();
|
|
@@ -2236,12 +2255,12 @@ function Za({
|
|
|
2236
2255
|
}
|
|
2237
2256
|
),
|
|
2238
2257
|
/* @__PURE__ */ t(
|
|
2239
|
-
|
|
2258
|
+
rt,
|
|
2240
2259
|
{
|
|
2241
|
-
icon:
|
|
2260
|
+
icon: _t,
|
|
2242
2261
|
label: "Manage controls",
|
|
2243
2262
|
onClick: () => {
|
|
2244
|
-
|
|
2263
|
+
i(), n();
|
|
2245
2264
|
}
|
|
2246
2265
|
}
|
|
2247
2266
|
)
|
|
@@ -2249,30 +2268,30 @@ function Za({
|
|
|
2249
2268
|
/* @__PURE__ */ t("div", { className: "border-t border-border/60" }),
|
|
2250
2269
|
/* @__PURE__ */ r("div", { className: "space-y-1 p-2", children: [
|
|
2251
2270
|
/* @__PURE__ */ t("p", { className: "px-1 text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Display" }),
|
|
2252
|
-
|
|
2271
|
+
St,
|
|
2253
2272
|
/* @__PURE__ */ t(
|
|
2254
|
-
|
|
2273
|
+
sn,
|
|
2255
2274
|
{
|
|
2256
2275
|
id: "filter-display-wrap",
|
|
2257
2276
|
label: "Wrap to multiple lines",
|
|
2258
|
-
checked:
|
|
2259
|
-
onCheckedChange: (
|
|
2277
|
+
checked: u,
|
|
2278
|
+
onCheckedChange: (p) => s({ toolbarWrap: p === !0 })
|
|
2260
2279
|
}
|
|
2261
2280
|
),
|
|
2262
|
-
|
|
2281
|
+
St
|
|
2263
2282
|
] })
|
|
2264
2283
|
] });
|
|
2265
2284
|
}
|
|
2266
|
-
function
|
|
2285
|
+
function rt({
|
|
2267
2286
|
icon: e,
|
|
2268
2287
|
label: a,
|
|
2269
|
-
onClick:
|
|
2288
|
+
onClick: i
|
|
2270
2289
|
}) {
|
|
2271
2290
|
return /* @__PURE__ */ r(
|
|
2272
2291
|
"button",
|
|
2273
2292
|
{
|
|
2274
2293
|
type: "button",
|
|
2275
|
-
onClick:
|
|
2294
|
+
onClick: i,
|
|
2276
2295
|
className: "flex w-full items-center gap-2 rounded-control px-2 py-1.5 text-left text-[13px] text-foreground outline-none transition-colors hover:bg-muted/40 focus-visible:bg-muted/40",
|
|
2277
2296
|
children: [
|
|
2278
2297
|
/* @__PURE__ */ t(e, { className: "h-3.5 w-3.5 text-muted-foreground" }),
|
|
@@ -2281,16 +2300,16 @@ function Je({
|
|
|
2281
2300
|
}
|
|
2282
2301
|
);
|
|
2283
2302
|
}
|
|
2284
|
-
function
|
|
2303
|
+
function sn({
|
|
2285
2304
|
id: e,
|
|
2286
2305
|
label: a,
|
|
2287
|
-
checked:
|
|
2306
|
+
checked: i,
|
|
2288
2307
|
onCheckedChange: n
|
|
2289
2308
|
}) {
|
|
2290
2309
|
return /* @__PURE__ */ r("div", { className: "flex items-center gap-2 rounded-control px-1 py-1 transition-colors hover:bg-muted/40 focus-within:bg-muted/40", children: [
|
|
2291
|
-
/* @__PURE__ */ t(
|
|
2310
|
+
/* @__PURE__ */ t(mt, { id: e, checked: i, onCheckedChange: n }),
|
|
2292
2311
|
/* @__PURE__ */ t(
|
|
2293
|
-
|
|
2312
|
+
ke,
|
|
2294
2313
|
{
|
|
2295
2314
|
htmlFor: e,
|
|
2296
2315
|
className: "cursor-pointer text-[12px] font-normal leading-[1.3]",
|
|
@@ -2299,155 +2318,155 @@ function Ja({
|
|
|
2299
2318
|
)
|
|
2300
2319
|
] });
|
|
2301
2320
|
}
|
|
2302
|
-
function
|
|
2321
|
+
function es({
|
|
2303
2322
|
size: e,
|
|
2304
2323
|
className: a,
|
|
2305
|
-
primaryButtonClassName:
|
|
2324
|
+
primaryButtonClassName: i,
|
|
2306
2325
|
secondaryButtonClassName: n,
|
|
2307
|
-
pickerContentClassName:
|
|
2326
|
+
pickerContentClassName: l,
|
|
2308
2327
|
settingsContentClassName: s
|
|
2309
2328
|
}) {
|
|
2310
|
-
var
|
|
2311
|
-
const [
|
|
2312
|
-
(
|
|
2313
|
-
),
|
|
2329
|
+
var F;
|
|
2330
|
+
const [u, p] = E(null), o = T((g) => g.dashboard), c = T((g) => g.selectedSheetId), d = T((g) => g.showFilters), m = Vr((g) => g.setPanelOpen), h = T((g) => g.actions), { setDocumentPanelTarget: f, setShowFilters: b } = h, k = (F = o.sheets) == null ? void 0 : F.find(
|
|
2331
|
+
(g) => g.id === c
|
|
2332
|
+
), I = tr(k), y = H((g) => {
|
|
2314
2333
|
window.setTimeout(() => {
|
|
2315
|
-
|
|
2334
|
+
p(g);
|
|
2316
2335
|
}, 0);
|
|
2317
|
-
}, []), S =
|
|
2318
|
-
(
|
|
2319
|
-
if (
|
|
2320
|
-
|
|
2336
|
+
}, []), S = H(
|
|
2337
|
+
(g) => {
|
|
2338
|
+
if (I && c) {
|
|
2339
|
+
g && f(c, {
|
|
2321
2340
|
kind: "document",
|
|
2322
2341
|
group: "inputs"
|
|
2323
2342
|
});
|
|
2324
2343
|
return;
|
|
2325
2344
|
}
|
|
2326
|
-
|
|
2345
|
+
g && m("dashboard", !1), b(g);
|
|
2327
2346
|
},
|
|
2328
2347
|
[
|
|
2329
|
-
|
|
2330
|
-
|
|
2348
|
+
I,
|
|
2349
|
+
c,
|
|
2331
2350
|
f,
|
|
2332
|
-
|
|
2333
|
-
|
|
2351
|
+
m,
|
|
2352
|
+
b
|
|
2334
2353
|
]
|
|
2335
|
-
),
|
|
2354
|
+
), D = H(() => {
|
|
2336
2355
|
S(!0);
|
|
2337
|
-
}, [S]), w =
|
|
2338
|
-
|
|
2339
|
-
}, [
|
|
2340
|
-
|
|
2341
|
-
}, [
|
|
2342
|
-
return /* @__PURE__ */ r(
|
|
2356
|
+
}, [S]), w = H(() => {
|
|
2357
|
+
y("create");
|
|
2358
|
+
}, [y]), C = H(() => {
|
|
2359
|
+
y("manage");
|
|
2360
|
+
}, [y]);
|
|
2361
|
+
return /* @__PURE__ */ r(j, { children: [
|
|
2343
2362
|
/* @__PURE__ */ t(
|
|
2344
|
-
|
|
2363
|
+
tn,
|
|
2345
2364
|
{
|
|
2346
|
-
showFilters:
|
|
2365
|
+
showFilters: I ? !1 : d,
|
|
2347
2366
|
onShowFiltersChange: S,
|
|
2348
|
-
pickerContent: /* @__PURE__ */ t(
|
|
2349
|
-
settingsContent: (
|
|
2350
|
-
|
|
2367
|
+
pickerContent: /* @__PURE__ */ t(an, {}),
|
|
2368
|
+
settingsContent: (g) => /* @__PURE__ */ t(
|
|
2369
|
+
nn,
|
|
2351
2370
|
{
|
|
2352
|
-
onAddFilter:
|
|
2371
|
+
onAddFilter: D,
|
|
2353
2372
|
onAddControl: w,
|
|
2354
|
-
onManageControls:
|
|
2355
|
-
onDismiss:
|
|
2373
|
+
onManageControls: C,
|
|
2374
|
+
onDismiss: g
|
|
2356
2375
|
}
|
|
2357
2376
|
),
|
|
2358
2377
|
size: e,
|
|
2359
2378
|
className: a,
|
|
2360
|
-
primaryButtonClassName:
|
|
2379
|
+
primaryButtonClassName: i,
|
|
2361
2380
|
secondaryButtonClassName: n,
|
|
2362
|
-
pickerContentClassName:
|
|
2381
|
+
pickerContentClassName: l,
|
|
2363
2382
|
settingsContentClassName: s
|
|
2364
2383
|
}
|
|
2365
2384
|
),
|
|
2366
|
-
|
|
2367
|
-
|
|
2385
|
+
u ? I ? /* @__PURE__ */ t(
|
|
2386
|
+
Ya,
|
|
2368
2387
|
{
|
|
2369
2388
|
open: !0,
|
|
2370
|
-
onOpenChange: (
|
|
2371
|
-
|
|
2389
|
+
onOpenChange: (g) => {
|
|
2390
|
+
g || p(null);
|
|
2372
2391
|
},
|
|
2373
|
-
initialMode:
|
|
2392
|
+
initialMode: u
|
|
2374
2393
|
}
|
|
2375
2394
|
) : /* @__PURE__ */ t(
|
|
2376
|
-
|
|
2395
|
+
Ka,
|
|
2377
2396
|
{
|
|
2378
2397
|
open: !0,
|
|
2379
|
-
onOpenChange: (
|
|
2380
|
-
|
|
2398
|
+
onOpenChange: (g) => {
|
|
2399
|
+
g || p(null);
|
|
2381
2400
|
},
|
|
2382
2401
|
showTrigger: !1,
|
|
2383
|
-
initialMode:
|
|
2402
|
+
initialMode: u
|
|
2384
2403
|
}
|
|
2385
2404
|
) : null
|
|
2386
2405
|
] });
|
|
2387
2406
|
}
|
|
2388
|
-
function
|
|
2407
|
+
function on({
|
|
2389
2408
|
disabled: e,
|
|
2390
2409
|
briefingCount: a,
|
|
2391
|
-
className:
|
|
2410
|
+
className: i,
|
|
2392
2411
|
onClick: n
|
|
2393
2412
|
}) {
|
|
2394
|
-
const
|
|
2413
|
+
const l = typeof a == "number" && a > 0;
|
|
2395
2414
|
return /* @__PURE__ */ r(
|
|
2396
|
-
|
|
2415
|
+
R,
|
|
2397
2416
|
{
|
|
2398
2417
|
type: "button",
|
|
2399
2418
|
size: "xs",
|
|
2400
2419
|
variant: "outline",
|
|
2401
2420
|
disabled: e,
|
|
2402
|
-
className:
|
|
2421
|
+
className: K("gap-1.5", i),
|
|
2403
2422
|
onClick: n,
|
|
2404
2423
|
"aria-label": "Reports & briefings",
|
|
2405
2424
|
children: [
|
|
2406
|
-
/* @__PURE__ */ t(
|
|
2425
|
+
/* @__PURE__ */ t(Na, { className: "h-3.5 w-3.5" }),
|
|
2407
2426
|
"Reports & briefings",
|
|
2408
|
-
|
|
2427
|
+
l ? /* @__PURE__ */ t("span", { className: "ml-0.5 rounded-control bg-muted px-1 text-[10px] tabular-nums text-foreground/70", children: a }) : null
|
|
2409
2428
|
]
|
|
2410
2429
|
}
|
|
2411
2430
|
);
|
|
2412
2431
|
}
|
|
2413
|
-
const
|
|
2414
|
-
function
|
|
2432
|
+
const ln = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", Ht = "inline-flex h-7 items-center gap-1.5 rounded-control px-2 text-[12px] text-muted-foreground hover:bg-muted hover:text-foreground disabled:opacity-50", Oe = "inline-flex h-7 items-center gap-1.5 rounded-control bg-primary px-3 text-[12px] font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50";
|
|
2433
|
+
function dn(e) {
|
|
2415
2434
|
return e === "dashboard" ? "This dashboard" : "Project";
|
|
2416
2435
|
}
|
|
2417
|
-
function
|
|
2436
|
+
function cn(e) {
|
|
2418
2437
|
if (!e) return "Never";
|
|
2419
2438
|
const a = new Date(e);
|
|
2420
2439
|
if (Number.isNaN(a.getTime())) return "Unknown";
|
|
2421
|
-
const
|
|
2440
|
+
const i = Date.now() - a.getTime(), n = Math.round(i / 6e4);
|
|
2422
2441
|
if (n < 1) return "now";
|
|
2423
2442
|
if (n < 60) return `${n}m ago`;
|
|
2424
|
-
const
|
|
2425
|
-
if (
|
|
2426
|
-
const s = Math.round(
|
|
2443
|
+
const l = Math.round(n / 60);
|
|
2444
|
+
if (l < 24) return `${l}h ago`;
|
|
2445
|
+
const s = Math.round(l / 24);
|
|
2427
2446
|
if (s < 7) return `${s}d ago`;
|
|
2428
|
-
const
|
|
2429
|
-
return
|
|
2447
|
+
const u = Math.round(s / 7);
|
|
2448
|
+
return u < 5 ? `${u}w ago` : `${Math.round(s / 30)}mo ago`;
|
|
2430
2449
|
}
|
|
2431
|
-
function
|
|
2432
|
-
return e.scheduleExpr ?
|
|
2450
|
+
function un(e) {
|
|
2451
|
+
return e.scheduleExpr ? ba(
|
|
2433
2452
|
e.scheduleExpr,
|
|
2434
2453
|
e.timezone || "UTC"
|
|
2435
2454
|
) ?? "Invalid schedule" : "On demand";
|
|
2436
2455
|
}
|
|
2437
|
-
function
|
|
2456
|
+
function hn(e) {
|
|
2438
2457
|
if (e.lastRunStatus) {
|
|
2439
2458
|
const a = e.lastRunStatus.toString().toUpperCase();
|
|
2440
2459
|
return a === "SUCCESS" ? "Last run completed." : a === "FAILED" ? "Last run failed." : `Last run ${e.lastRunStatus.toString().toLowerCase()}`;
|
|
2441
2460
|
}
|
|
2442
2461
|
return null;
|
|
2443
2462
|
}
|
|
2444
|
-
function
|
|
2463
|
+
function qt(e) {
|
|
2445
2464
|
return e.hasActiveRun ? "Running" : e.lastRunStatus ? `Last run ${e.lastRunStatus.toString().toLowerCase()}` : "Idle";
|
|
2446
2465
|
}
|
|
2447
|
-
function
|
|
2466
|
+
function mn(e) {
|
|
2448
2467
|
return e.source.type === "dashboard" ? "This dashboard" : "Project";
|
|
2449
2468
|
}
|
|
2450
|
-
function
|
|
2469
|
+
function pn({
|
|
2451
2470
|
activeView: e,
|
|
2452
2471
|
onChange: a
|
|
2453
2472
|
}) {
|
|
@@ -2457,121 +2476,121 @@ function ln({
|
|
|
2457
2476
|
className: "flex shrink-0 items-center gap-1 rounded-control bg-muted p-0.5",
|
|
2458
2477
|
role: "tablist",
|
|
2459
2478
|
"aria-label": "Briefing source view",
|
|
2460
|
-
children: ["dashboard", "project"].map((
|
|
2461
|
-
const n = e ===
|
|
2479
|
+
children: ["dashboard", "project"].map((i) => {
|
|
2480
|
+
const n = e === i;
|
|
2462
2481
|
return /* @__PURE__ */ t(
|
|
2463
2482
|
"button",
|
|
2464
2483
|
{
|
|
2465
2484
|
type: "button",
|
|
2466
2485
|
role: "tab",
|
|
2467
2486
|
"aria-selected": n,
|
|
2468
|
-
onClick: () => a(
|
|
2469
|
-
className:
|
|
2487
|
+
onClick: () => a(i),
|
|
2488
|
+
className: K(
|
|
2470
2489
|
"h-6 rounded-[3px] px-2 text-[11px] transition-colors",
|
|
2471
2490
|
n ? "bg-background font-medium text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
2472
2491
|
),
|
|
2473
|
-
children:
|
|
2492
|
+
children: dn(i)
|
|
2474
2493
|
},
|
|
2475
|
-
|
|
2494
|
+
i
|
|
2476
2495
|
);
|
|
2477
2496
|
})
|
|
2478
2497
|
}
|
|
2479
2498
|
);
|
|
2480
2499
|
}
|
|
2481
|
-
function
|
|
2500
|
+
function fn({
|
|
2482
2501
|
briefings: e,
|
|
2483
2502
|
dashboardLabel: a,
|
|
2484
|
-
sourceView:
|
|
2503
|
+
sourceView: i,
|
|
2485
2504
|
error: n,
|
|
2486
|
-
loading:
|
|
2505
|
+
loading: l,
|
|
2487
2506
|
onSourceViewChange: s,
|
|
2488
|
-
onClose:
|
|
2489
|
-
onEdit:
|
|
2490
|
-
onNew:
|
|
2491
|
-
canCreate:
|
|
2507
|
+
onClose: u,
|
|
2508
|
+
onEdit: p,
|
|
2509
|
+
onNew: o,
|
|
2510
|
+
canCreate: c,
|
|
2492
2511
|
canCreateScheduledReport: d,
|
|
2493
|
-
analyticalBriefingsEnabled:
|
|
2512
|
+
analyticalBriefingsEnabled: m,
|
|
2494
2513
|
onRunNow: h,
|
|
2495
2514
|
onTogglePause: f,
|
|
2496
|
-
onDelete:
|
|
2515
|
+
onDelete: b,
|
|
2497
2516
|
selectingId: k,
|
|
2498
|
-
busyId:
|
|
2499
|
-
manageBriefingsHref:
|
|
2517
|
+
busyId: I,
|
|
2518
|
+
manageBriefingsHref: y,
|
|
2500
2519
|
contentKind: S,
|
|
2501
|
-
hideHeader:
|
|
2520
|
+
hideHeader: D = !1
|
|
2502
2521
|
}) {
|
|
2503
|
-
const w = e.length,
|
|
2522
|
+
const w = e.length, C = e.filter((A) => A.status === "ACTIVE").length, F = S === "reports" ? w === 1 ? "report" : "reports" : S === "briefings" ? w === 1 ? "briefing" : "briefings" : w === 1 ? "item" : "items", g = e.find((A) => A.hasActiveRun) ?? null, v = S ?? "reports & briefings", U = i === "dashboard" ? a : `Project ${v}`;
|
|
2504
2523
|
return /* @__PURE__ */ r(
|
|
2505
2524
|
"section",
|
|
2506
2525
|
{
|
|
2507
|
-
"aria-label": `Dashboard ${
|
|
2526
|
+
"aria-label": `Dashboard ${v.replace("&", "and")}`,
|
|
2508
2527
|
className: "flex h-full min-h-0 flex-col bg-background text-foreground",
|
|
2509
2528
|
children: [
|
|
2510
|
-
|
|
2529
|
+
D ? null : /* @__PURE__ */ r("header", { className: "flex items-start justify-between gap-3 border-b border-border px-4 py-3", children: [
|
|
2511
2530
|
/* @__PURE__ */ r("div", { className: "min-w-0", children: [
|
|
2512
|
-
/* @__PURE__ */ t("div", { className:
|
|
2513
|
-
/* @__PURE__ */ t("h2", { className: "mt-0.5 truncate text-[14px] font-semibold leading-5", children:
|
|
2531
|
+
/* @__PURE__ */ t("div", { className: ln, children: v }),
|
|
2532
|
+
/* @__PURE__ */ t("h2", { className: "mt-0.5 truncate text-[14px] font-semibold leading-5", children: U })
|
|
2514
2533
|
] }),
|
|
2515
2534
|
/* @__PURE__ */ t(
|
|
2516
2535
|
"button",
|
|
2517
2536
|
{
|
|
2518
2537
|
type: "button",
|
|
2519
|
-
onClick:
|
|
2538
|
+
onClick: u,
|
|
2520
2539
|
className: "rounded-control p-1 text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
2521
|
-
"aria-label": `Close ${
|
|
2522
|
-
children: /* @__PURE__ */ t(
|
|
2540
|
+
"aria-label": `Close ${v.replace("&", "and")} panel`,
|
|
2541
|
+
children: /* @__PURE__ */ t(Qe, { className: "h-3.5 w-3.5" })
|
|
2523
2542
|
}
|
|
2524
2543
|
)
|
|
2525
2544
|
] }),
|
|
2526
2545
|
/* @__PURE__ */ r("div", { className: "flex items-center justify-between gap-3 border-b border-border px-4 py-2", children: [
|
|
2527
2546
|
/* @__PURE__ */ r("div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
2528
2547
|
/* @__PURE__ */ t(
|
|
2529
|
-
|
|
2548
|
+
pn,
|
|
2530
2549
|
{
|
|
2531
|
-
activeView:
|
|
2550
|
+
activeView: i,
|
|
2532
2551
|
onChange: s
|
|
2533
2552
|
}
|
|
2534
2553
|
),
|
|
2535
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 items-center gap-1.5 text-[11px] text-muted-foreground", children:
|
|
2554
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 items-center gap-1.5 text-[11px] text-muted-foreground", children: l && w === 0 ? /* @__PURE__ */ r("span", { children: [
|
|
2536
2555
|
"Loading ",
|
|
2537
|
-
|
|
2556
|
+
v,
|
|
2538
2557
|
"…"
|
|
2539
2558
|
] }) : w === 0 ? /* @__PURE__ */ r("span", { children: [
|
|
2540
2559
|
"No ",
|
|
2541
|
-
|
|
2560
|
+
v,
|
|
2542
2561
|
" yet"
|
|
2543
|
-
] }) : /* @__PURE__ */ r(
|
|
2562
|
+
] }) : /* @__PURE__ */ r(j, { children: [
|
|
2544
2563
|
/* @__PURE__ */ r("span", { className: "font-medium text-foreground/80", children: [
|
|
2545
2564
|
w,
|
|
2546
2565
|
" ",
|
|
2547
|
-
|
|
2566
|
+
F
|
|
2548
2567
|
] }),
|
|
2549
2568
|
/* @__PURE__ */ t("span", { className: "text-border", children: "·" }),
|
|
2550
2569
|
/* @__PURE__ */ r("span", { children: [
|
|
2551
|
-
|
|
2570
|
+
C,
|
|
2552
2571
|
" active"
|
|
2553
2572
|
] })
|
|
2554
2573
|
] }) })
|
|
2555
2574
|
] }),
|
|
2556
2575
|
/* @__PURE__ */ r("div", { className: "flex items-center gap-1.5", children: [
|
|
2557
|
-
|
|
2576
|
+
l ? (
|
|
2558
2577
|
// Auto-refresh on open; surface a quiet spinner near the count
|
|
2559
2578
|
// when a manual reload is in flight, but don't show a separate
|
|
2560
2579
|
// refresh button — close+reopen handles the rare "stale list"
|
|
2561
2580
|
// case without crowding the toolbar.
|
|
2562
|
-
/* @__PURE__ */ t(
|
|
2581
|
+
/* @__PURE__ */ t(ae, { className: "h-3.5 w-3.5 animate-spin text-muted-foreground" })
|
|
2563
2582
|
) : null,
|
|
2564
|
-
w > 0 &&
|
|
2565
|
-
/* @__PURE__ */ t(
|
|
2566
|
-
/* @__PURE__ */ t(
|
|
2583
|
+
w > 0 && c ? m && d ? /* @__PURE__ */ r(Ge, { children: [
|
|
2584
|
+
/* @__PURE__ */ t(Ke, { asChild: !0, children: /* @__PURE__ */ r("button", { className: Oe, children: [
|
|
2585
|
+
/* @__PURE__ */ t(xe, { className: "h-3 w-3" }),
|
|
2567
2586
|
" New"
|
|
2568
2587
|
] }) }),
|
|
2569
|
-
/* @__PURE__ */ r(
|
|
2570
|
-
/* @__PURE__ */ t(
|
|
2588
|
+
/* @__PURE__ */ r(Xe, { align: "end", children: [
|
|
2589
|
+
/* @__PURE__ */ t(G, { onClick: () => o("scheduled_report"), children: "Schedule a report" }),
|
|
2571
2590
|
/* @__PURE__ */ t(
|
|
2572
|
-
|
|
2591
|
+
G,
|
|
2573
2592
|
{
|
|
2574
|
-
onClick: () =>
|
|
2593
|
+
onClick: () => o("analytical_briefing"),
|
|
2575
2594
|
children: "Create analytical briefing"
|
|
2576
2595
|
}
|
|
2577
2596
|
)
|
|
@@ -2579,66 +2598,66 @@ function dn({
|
|
|
2579
2598
|
] }) : d ? /* @__PURE__ */ r(
|
|
2580
2599
|
"button",
|
|
2581
2600
|
{
|
|
2582
|
-
onClick: () =>
|
|
2583
|
-
className:
|
|
2601
|
+
onClick: () => o("scheduled_report"),
|
|
2602
|
+
className: Oe,
|
|
2584
2603
|
children: [
|
|
2585
|
-
/* @__PURE__ */ t(
|
|
2604
|
+
/* @__PURE__ */ t(xe, { className: "h-3 w-3" }),
|
|
2586
2605
|
" Schedule report"
|
|
2587
2606
|
]
|
|
2588
2607
|
}
|
|
2589
|
-
) :
|
|
2608
|
+
) : m ? /* @__PURE__ */ r(
|
|
2590
2609
|
"button",
|
|
2591
2610
|
{
|
|
2592
|
-
onClick: () =>
|
|
2593
|
-
className:
|
|
2611
|
+
onClick: () => o("analytical_briefing"),
|
|
2612
|
+
className: Oe,
|
|
2594
2613
|
children: [
|
|
2595
|
-
/* @__PURE__ */ t(
|
|
2614
|
+
/* @__PURE__ */ t(xe, { className: "h-3 w-3" }),
|
|
2596
2615
|
" New briefing"
|
|
2597
2616
|
]
|
|
2598
2617
|
}
|
|
2599
2618
|
) : null : null
|
|
2600
2619
|
] })
|
|
2601
2620
|
] }),
|
|
2602
|
-
|
|
2603
|
-
/* @__PURE__ */ t(
|
|
2604
|
-
/* @__PURE__ */ t("span", { className: "font-medium text-foreground", children:
|
|
2621
|
+
g ? /* @__PURE__ */ r("div", { className: "flex items-center gap-2 border-b border-border bg-muted/60 px-4 py-2 text-[12px]", children: [
|
|
2622
|
+
/* @__PURE__ */ t(ae, { className: "h-3 w-3 shrink-0 animate-spin text-muted-foreground" }),
|
|
2623
|
+
/* @__PURE__ */ t("span", { className: "font-medium text-foreground", children: g.name }),
|
|
2605
2624
|
/* @__PURE__ */ t("span", { className: "text-border", children: "·" }),
|
|
2606
|
-
/* @__PURE__ */ t("span", { className: "truncate text-muted-foreground", children:
|
|
2625
|
+
/* @__PURE__ */ t("span", { className: "truncate text-muted-foreground", children: qt(g) })
|
|
2607
2626
|
] }) : null,
|
|
2608
2627
|
/* @__PURE__ */ r("div", { className: "flex-1 overflow-y-auto", children: [
|
|
2609
2628
|
n ? /* @__PURE__ */ t("div", { className: "m-4 rounded-card border border-destructive/30 bg-destructive/10 px-3 py-2 text-[12px] text-destructive", children: n }) : null,
|
|
2610
|
-
!
|
|
2611
|
-
|
|
2629
|
+
!l && e.length === 0 && !n ? /* @__PURE__ */ t(
|
|
2630
|
+
gn,
|
|
2612
2631
|
{
|
|
2613
|
-
onNew:
|
|
2614
|
-
canCreate:
|
|
2632
|
+
onNew: o,
|
|
2633
|
+
canCreate: c,
|
|
2615
2634
|
canCreateScheduledReport: d,
|
|
2616
|
-
analyticalBriefingsEnabled:
|
|
2635
|
+
analyticalBriefingsEnabled: m,
|
|
2617
2636
|
contentKind: S
|
|
2618
2637
|
}
|
|
2619
2638
|
) : null,
|
|
2620
|
-
e.map((
|
|
2621
|
-
|
|
2639
|
+
e.map((A) => /* @__PURE__ */ t(
|
|
2640
|
+
xn,
|
|
2622
2641
|
{
|
|
2623
|
-
briefing:
|
|
2624
|
-
isOpening: k ===
|
|
2625
|
-
isBusy:
|
|
2626
|
-
onOpen: () =>
|
|
2627
|
-
onRunNow: () => h(
|
|
2628
|
-
onTogglePause: () => f(
|
|
2629
|
-
onDelete: () =>
|
|
2642
|
+
briefing: A,
|
|
2643
|
+
isOpening: k === A.id,
|
|
2644
|
+
isBusy: I === A.id,
|
|
2645
|
+
onOpen: () => p(A.id),
|
|
2646
|
+
onRunNow: () => h(A),
|
|
2647
|
+
onTogglePause: () => f(A),
|
|
2648
|
+
onDelete: () => b(A)
|
|
2630
2649
|
},
|
|
2631
|
-
|
|
2650
|
+
A.id
|
|
2632
2651
|
))
|
|
2633
2652
|
] }),
|
|
2634
|
-
|
|
2653
|
+
y ? /* @__PURE__ */ t("div", { className: "border-t border-border px-4 py-2.5", children: /* @__PURE__ */ r(
|
|
2635
2654
|
"a",
|
|
2636
2655
|
{
|
|
2637
|
-
href:
|
|
2638
|
-
className:
|
|
2656
|
+
href: y,
|
|
2657
|
+
className: K(Ht, "h-6 px-1 text-[11px]"),
|
|
2639
2658
|
children: [
|
|
2640
2659
|
"Manage all reports & briefings",
|
|
2641
|
-
/* @__PURE__ */ t(
|
|
2660
|
+
/* @__PURE__ */ t(va, { className: "h-3 w-3" })
|
|
2642
2661
|
]
|
|
2643
2662
|
}
|
|
2644
2663
|
) }) : null
|
|
@@ -2646,32 +2665,32 @@ function dn({
|
|
|
2646
2665
|
}
|
|
2647
2666
|
);
|
|
2648
2667
|
}
|
|
2649
|
-
function
|
|
2668
|
+
function gn({
|
|
2650
2669
|
onNew: e,
|
|
2651
2670
|
canCreate: a,
|
|
2652
|
-
canCreateScheduledReport:
|
|
2671
|
+
canCreateScheduledReport: i,
|
|
2653
2672
|
analyticalBriefingsEnabled: n,
|
|
2654
|
-
contentKind:
|
|
2673
|
+
contentKind: l
|
|
2655
2674
|
}) {
|
|
2656
|
-
const s =
|
|
2675
|
+
const s = l === "reports" ? {
|
|
2657
2676
|
title: "No reports yet",
|
|
2658
2677
|
description: "Schedule an emailed dashboard or visual report to see it here."
|
|
2659
|
-
} :
|
|
2678
|
+
} : l === "briefings" ? {
|
|
2660
2679
|
title: "No briefings yet",
|
|
2661
2680
|
description: "Create an analytical briefing to monitor this dashboard and brief your team."
|
|
2662
2681
|
} : null;
|
|
2663
2682
|
return /* @__PURE__ */ r("div", { className: "flex h-full flex-col items-center justify-center px-8 py-12 text-center", children: [
|
|
2664
|
-
/* @__PURE__ */ t(
|
|
2683
|
+
/* @__PURE__ */ t(bn, { className: "mb-5 h-[88px] w-[112px] text-border" }),
|
|
2665
2684
|
/* @__PURE__ */ t("div", { className: "text-[13px] font-medium text-foreground", children: (s == null ? void 0 : s.title) ?? "Have an analyst brief your team" }),
|
|
2666
2685
|
/* @__PURE__ */ t("p", { className: "mt-1.5 max-w-[320px] text-[12px] leading-5 text-muted-foreground", children: (s == null ? void 0 : s.description) ?? "Describe what to watch. An analyst digs into this dashboard and the data behind it, then briefs your team on the cadence you choose." }),
|
|
2667
2686
|
a ? /* @__PURE__ */ r("div", { className: "mt-4 flex flex-wrap justify-center gap-2", children: [
|
|
2668
|
-
|
|
2687
|
+
i ? /* @__PURE__ */ r(
|
|
2669
2688
|
"button",
|
|
2670
2689
|
{
|
|
2671
2690
|
onClick: () => e("scheduled_report"),
|
|
2672
|
-
className:
|
|
2691
|
+
className: Oe,
|
|
2673
2692
|
children: [
|
|
2674
|
-
/* @__PURE__ */ t(
|
|
2693
|
+
/* @__PURE__ */ t(xe, { className: "h-3 w-3" }),
|
|
2675
2694
|
" Schedule a report"
|
|
2676
2695
|
]
|
|
2677
2696
|
}
|
|
@@ -2680,14 +2699,14 @@ function cn({
|
|
|
2680
2699
|
"button",
|
|
2681
2700
|
{
|
|
2682
2701
|
onClick: () => e("analytical_briefing"),
|
|
2683
|
-
className:
|
|
2702
|
+
className: Ht,
|
|
2684
2703
|
children: "Create analytical briefing"
|
|
2685
2704
|
}
|
|
2686
2705
|
) : null
|
|
2687
2706
|
] }) : null
|
|
2688
2707
|
] });
|
|
2689
2708
|
}
|
|
2690
|
-
function
|
|
2709
|
+
function bn({ className: e }) {
|
|
2691
2710
|
return /* @__PURE__ */ r(
|
|
2692
2711
|
"svg",
|
|
2693
2712
|
{
|
|
@@ -2864,22 +2883,22 @@ function un({ className: e }) {
|
|
|
2864
2883
|
}
|
|
2865
2884
|
);
|
|
2866
2885
|
}
|
|
2867
|
-
function
|
|
2886
|
+
function xn({
|
|
2868
2887
|
briefing: e,
|
|
2869
2888
|
isOpening: a,
|
|
2870
|
-
isBusy:
|
|
2889
|
+
isBusy: i,
|
|
2871
2890
|
onOpen: n,
|
|
2872
|
-
onRunNow:
|
|
2891
|
+
onRunNow: l,
|
|
2873
2892
|
onTogglePause: s,
|
|
2874
|
-
onDelete:
|
|
2893
|
+
onDelete: u
|
|
2875
2894
|
}) {
|
|
2876
|
-
const
|
|
2895
|
+
const p = e.status === "PAUSED", o = e.hasActiveRun, c = hn(e), d = cn(e.lastRunAt), m = e.lastRunStatus, h = oe(e), f = m === "SUCCESS" ? Me.success.dot : m === "FAILED" ? Me.danger.dot : m ? Me.warning.dot : Me.neutral.dot;
|
|
2877
2896
|
return /* @__PURE__ */ r(
|
|
2878
2897
|
"div",
|
|
2879
2898
|
{
|
|
2880
|
-
className:
|
|
2899
|
+
className: K(
|
|
2881
2900
|
"group relative border-b border-border/60 px-4 py-3 transition-colors hover:bg-muted/60",
|
|
2882
|
-
|
|
2901
|
+
p && "opacity-70"
|
|
2883
2902
|
),
|
|
2884
2903
|
children: [
|
|
2885
2904
|
/* @__PURE__ */ r(
|
|
@@ -2888,23 +2907,23 @@ function hn({
|
|
|
2888
2907
|
role: "button",
|
|
2889
2908
|
tabIndex: 0,
|
|
2890
2909
|
onClick: n,
|
|
2891
|
-
onKeyDown: (
|
|
2892
|
-
(
|
|
2910
|
+
onKeyDown: (b) => {
|
|
2911
|
+
(b.key === "Enter" || b.key === " ") && (b.preventDefault(), n());
|
|
2893
2912
|
},
|
|
2894
2913
|
className: "cursor-pointer pr-8",
|
|
2895
2914
|
children: [
|
|
2896
2915
|
/* @__PURE__ */ r("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
2897
2916
|
/* @__PURE__ */ t("span", { className: "truncate text-[13px] font-medium text-foreground", children: e.name }),
|
|
2898
|
-
|
|
2917
|
+
p ? /* @__PURE__ */ t("span", { className: "shrink-0 text-[11px] text-muted-foreground", children: "· Paused" }) : null
|
|
2899
2918
|
] }),
|
|
2900
2919
|
/* @__PURE__ */ r("div", { className: "mt-1 flex flex-wrap items-center gap-x-1.5 text-[11px] text-muted-foreground", children: [
|
|
2901
2920
|
/* @__PURE__ */ t("span", { children: h.typeLabel }),
|
|
2902
2921
|
/* @__PURE__ */ t("span", { className: "text-border", children: "·" }),
|
|
2903
|
-
/* @__PURE__ */ t("span", { children:
|
|
2922
|
+
/* @__PURE__ */ t("span", { children: mn(e) }),
|
|
2904
2923
|
/* @__PURE__ */ t("span", { className: "text-border", children: "·" }),
|
|
2905
|
-
/* @__PURE__ */ t(
|
|
2906
|
-
/* @__PURE__ */ t("span", { className: "truncate", children:
|
|
2907
|
-
e.lastRunAt ? /* @__PURE__ */ r(
|
|
2924
|
+
/* @__PURE__ */ t(Pr, { className: "h-3 w-3" }),
|
|
2925
|
+
/* @__PURE__ */ t("span", { className: "truncate", children: un(e) }),
|
|
2926
|
+
e.lastRunAt ? /* @__PURE__ */ r(j, { children: [
|
|
2908
2927
|
/* @__PURE__ */ t("span", { className: "text-border", children: "·" }),
|
|
2909
2928
|
/* @__PURE__ */ r("span", { children: [
|
|
2910
2929
|
"Last run ",
|
|
@@ -2912,75 +2931,75 @@ function hn({
|
|
|
2912
2931
|
] })
|
|
2913
2932
|
] }) : null
|
|
2914
2933
|
] }),
|
|
2915
|
-
|
|
2916
|
-
|
|
2934
|
+
c || o ? /* @__PURE__ */ r("div", { className: "mt-1.5 flex items-center gap-1.5 text-[12px] leading-[1.5] text-foreground/80", children: [
|
|
2935
|
+
o ? /* @__PURE__ */ t(ae, { className: "h-3 w-3 shrink-0 animate-spin text-muted-foreground/70" }) : /* @__PURE__ */ t(
|
|
2917
2936
|
"span",
|
|
2918
2937
|
{
|
|
2919
|
-
className:
|
|
2938
|
+
className: K(
|
|
2920
2939
|
"inline-block h-1.5 w-1.5 shrink-0 rounded-full",
|
|
2921
2940
|
f
|
|
2922
2941
|
)
|
|
2923
2942
|
}
|
|
2924
2943
|
),
|
|
2925
|
-
/* @__PURE__ */ t("span", { className: "truncate", children:
|
|
2944
|
+
/* @__PURE__ */ t("span", { className: "truncate", children: o ? qt(e) : c })
|
|
2926
2945
|
] }) : null
|
|
2927
2946
|
]
|
|
2928
2947
|
}
|
|
2929
2948
|
),
|
|
2930
|
-
/* @__PURE__ */ t("div", { className: "absolute right-3 top-3", children:
|
|
2931
|
-
/* @__PURE__ */ t(
|
|
2949
|
+
/* @__PURE__ */ t("div", { className: "absolute right-3 top-3", children: i ? /* @__PURE__ */ t(ae, { className: "h-3.5 w-3.5 animate-spin text-muted-foreground/70" }) : a ? /* @__PURE__ */ t(ae, { className: "h-3.5 w-3.5 animate-spin text-muted-foreground/70" }) : /* @__PURE__ */ r(Ge, { children: [
|
|
2950
|
+
/* @__PURE__ */ t(Ke, { asChild: !0, children: /* @__PURE__ */ t(
|
|
2932
2951
|
"button",
|
|
2933
2952
|
{
|
|
2934
2953
|
type: "button",
|
|
2935
|
-
onClick: (
|
|
2954
|
+
onClick: (b) => b.stopPropagation(),
|
|
2936
2955
|
className: "inline-flex h-6 w-6 items-center justify-center rounded-control text-muted-foreground/70 opacity-60 hover:bg-muted hover:text-foreground/80 focus-visible:opacity-100 group-hover:opacity-100",
|
|
2937
2956
|
"aria-label": `${h.noun === "report" ? "Report" : "Briefing"} actions`,
|
|
2938
|
-
children: /* @__PURE__ */ t(
|
|
2957
|
+
children: /* @__PURE__ */ t(Bt, { className: "h-3.5 w-3.5" })
|
|
2939
2958
|
}
|
|
2940
2959
|
) }),
|
|
2941
|
-
/* @__PURE__ */ r(
|
|
2942
|
-
/* @__PURE__ */ r(
|
|
2943
|
-
/* @__PURE__ */ t(
|
|
2960
|
+
/* @__PURE__ */ r(Xe, { align: "end", className: "w-44", children: [
|
|
2961
|
+
/* @__PURE__ */ r(G, { onClick: n, children: [
|
|
2962
|
+
/* @__PURE__ */ t(_t, { className: "h-3.5 w-3.5" }),
|
|
2944
2963
|
"Edit ",
|
|
2945
2964
|
h.noun
|
|
2946
2965
|
] }),
|
|
2947
2966
|
/* @__PURE__ */ r(
|
|
2948
|
-
|
|
2967
|
+
G,
|
|
2949
2968
|
{
|
|
2950
|
-
onClick: (
|
|
2951
|
-
|
|
2969
|
+
onClick: (b) => {
|
|
2970
|
+
b.preventDefault(), l();
|
|
2952
2971
|
},
|
|
2953
2972
|
children: [
|
|
2954
|
-
/* @__PURE__ */ t(
|
|
2973
|
+
/* @__PURE__ */ t(Mr, { className: "h-3.5 w-3.5" }),
|
|
2955
2974
|
"Run now"
|
|
2956
2975
|
]
|
|
2957
2976
|
}
|
|
2958
2977
|
),
|
|
2959
2978
|
e.scheduleExpr ? /* @__PURE__ */ t(
|
|
2960
|
-
|
|
2979
|
+
G,
|
|
2961
2980
|
{
|
|
2962
|
-
onClick: (
|
|
2963
|
-
|
|
2981
|
+
onClick: (b) => {
|
|
2982
|
+
b.preventDefault(), s();
|
|
2964
2983
|
},
|
|
2965
|
-
children:
|
|
2966
|
-
/* @__PURE__ */ t(
|
|
2984
|
+
children: p ? /* @__PURE__ */ r(j, { children: [
|
|
2985
|
+
/* @__PURE__ */ t(_r, { className: "h-3.5 w-3.5" }),
|
|
2967
2986
|
"Resume"
|
|
2968
|
-
] }) : /* @__PURE__ */ r(
|
|
2969
|
-
/* @__PURE__ */ t(
|
|
2987
|
+
] }) : /* @__PURE__ */ r(j, { children: [
|
|
2988
|
+
/* @__PURE__ */ t(Or, { className: "h-3.5 w-3.5" }),
|
|
2970
2989
|
"Pause"
|
|
2971
2990
|
] })
|
|
2972
2991
|
}
|
|
2973
2992
|
) : null,
|
|
2974
|
-
/* @__PURE__ */ t(
|
|
2993
|
+
/* @__PURE__ */ t(He, {}),
|
|
2975
2994
|
/* @__PURE__ */ r(
|
|
2976
|
-
|
|
2995
|
+
G,
|
|
2977
2996
|
{
|
|
2978
|
-
onClick: (
|
|
2979
|
-
|
|
2997
|
+
onClick: (b) => {
|
|
2998
|
+
b.preventDefault(), u();
|
|
2980
2999
|
},
|
|
2981
3000
|
className: "text-destructive focus:bg-destructive/10 focus:text-destructive",
|
|
2982
3001
|
children: [
|
|
2983
|
-
/* @__PURE__ */ t(
|
|
3002
|
+
/* @__PURE__ */ t(We, { className: "h-3.5 w-3.5" }),
|
|
2984
3003
|
"Delete ",
|
|
2985
3004
|
h.noun
|
|
2986
3005
|
]
|
|
@@ -2992,263 +3011,263 @@ function hn({
|
|
|
2992
3011
|
}
|
|
2993
3012
|
);
|
|
2994
3013
|
}
|
|
2995
|
-
const
|
|
2996
|
-
function
|
|
3014
|
+
const vn = 2e3, yn = 20 * 6e4;
|
|
3015
|
+
function Cn(e) {
|
|
2997
3016
|
return (e == null ? void 0 : e.trim()) || "This dashboard";
|
|
2998
3017
|
}
|
|
2999
|
-
function
|
|
3018
|
+
function wn(e) {
|
|
3000
3019
|
return e === "This dashboard" ? "Watch this dashboard" : `Watch ${e}`;
|
|
3001
3020
|
}
|
|
3002
|
-
function
|
|
3021
|
+
function Nn(e, a, i) {
|
|
3003
3022
|
return a !== "dashboard" ? e : e.filter(
|
|
3004
|
-
(n) => n.source.type === "dashboard" && n.source.dashboardId ===
|
|
3023
|
+
(n) => n.source.type === "dashboard" && n.source.dashboardId === i
|
|
3005
3024
|
);
|
|
3006
3025
|
}
|
|
3007
|
-
async function
|
|
3008
|
-
const
|
|
3009
|
-
let n = 1,
|
|
3010
|
-
for (;
|
|
3011
|
-
const
|
|
3026
|
+
async function Sn(e) {
|
|
3027
|
+
const i = [];
|
|
3028
|
+
let n = 1, l = 0, s = Number.POSITIVE_INFINITY;
|
|
3029
|
+
for (; l < s; ) {
|
|
3030
|
+
const u = await e.apiClient.listBriefings(
|
|
3012
3031
|
e.apiServiceUrl,
|
|
3013
3032
|
e.token,
|
|
3014
3033
|
{ scope: "organization", page: n, pageSize: 100 }
|
|
3015
3034
|
);
|
|
3016
|
-
if (
|
|
3035
|
+
if (i.push(...u.briefings), l += u.briefings.length, s = u.total, u.briefings.length === 0 || l >= s) break;
|
|
3017
3036
|
n += 1;
|
|
3018
3037
|
}
|
|
3019
|
-
return
|
|
3038
|
+
return i;
|
|
3020
3039
|
}
|
|
3021
|
-
const
|
|
3022
|
-
listBriefings:
|
|
3023
|
-
getBriefing:
|
|
3024
|
-
pauseBriefing:
|
|
3025
|
-
resumeBriefing:
|
|
3026
|
-
deleteBriefing:
|
|
3027
|
-
runBriefingNow:
|
|
3040
|
+
const Dn = {
|
|
3041
|
+
listBriefings: Kr,
|
|
3042
|
+
getBriefing: Gr,
|
|
3043
|
+
pauseBriefing: qr,
|
|
3044
|
+
resumeBriefing: Hr,
|
|
3045
|
+
deleteBriefing: Wr,
|
|
3046
|
+
runBriefingNow: jr
|
|
3028
3047
|
};
|
|
3029
|
-
function
|
|
3048
|
+
function kn({
|
|
3030
3049
|
briefingId: e,
|
|
3031
3050
|
initialRun: a,
|
|
3032
|
-
apiServiceUrl:
|
|
3051
|
+
apiServiceUrl: i,
|
|
3033
3052
|
token: n,
|
|
3034
|
-
onTerminal:
|
|
3053
|
+
onTerminal: l,
|
|
3035
3054
|
onTimeout: s,
|
|
3036
|
-
onExpand:
|
|
3055
|
+
onExpand: u
|
|
3037
3056
|
}) {
|
|
3038
|
-
const [
|
|
3039
|
-
apiServiceUrl:
|
|
3057
|
+
const [p, o] = E(a), { startRun: c } = ra({
|
|
3058
|
+
apiServiceUrl: i,
|
|
3040
3059
|
token: n,
|
|
3041
|
-
intervalMs:
|
|
3042
|
-
timeoutMs:
|
|
3060
|
+
intervalMs: vn,
|
|
3061
|
+
timeoutMs: yn,
|
|
3043
3062
|
fetchRun: ({
|
|
3044
|
-
apiServiceUrl:
|
|
3063
|
+
apiServiceUrl: m,
|
|
3045
3064
|
token: h,
|
|
3046
3065
|
runId: f
|
|
3047
|
-
}) =>
|
|
3048
|
-
onRun: (
|
|
3049
|
-
|
|
3066
|
+
}) => aa(m, h, e, f),
|
|
3067
|
+
onRun: (m) => {
|
|
3068
|
+
o(m);
|
|
3050
3069
|
},
|
|
3051
|
-
onTerminalRun: (
|
|
3052
|
-
|
|
3070
|
+
onTerminalRun: (m) => {
|
|
3071
|
+
l(m);
|
|
3053
3072
|
},
|
|
3054
3073
|
onTimeout: () => {
|
|
3055
3074
|
s();
|
|
3056
3075
|
}
|
|
3057
|
-
}), d =
|
|
3076
|
+
}), d = ue(!1);
|
|
3058
3077
|
return Y(() => {
|
|
3059
|
-
d.current || (d.current = !0,
|
|
3060
|
-
}, [a,
|
|
3078
|
+
d.current || (d.current = !0, na(a.status) ? c(a) : sa(a.status) && l(a));
|
|
3079
|
+
}, [a, l, c]), /* @__PURE__ */ t(oa, { run: p, onExpand: u });
|
|
3061
3080
|
}
|
|
3062
|
-
function
|
|
3063
|
-
return /* @__PURE__ */ t(
|
|
3081
|
+
function ts(e) {
|
|
3082
|
+
return /* @__PURE__ */ t(zr, { children: /* @__PURE__ */ t(En, { ...e }) });
|
|
3064
3083
|
}
|
|
3065
|
-
function
|
|
3084
|
+
function En({
|
|
3066
3085
|
dashboardId: e,
|
|
3067
3086
|
dashboardTitle: a,
|
|
3068
|
-
apiServiceUrl:
|
|
3087
|
+
apiServiceUrl: i,
|
|
3069
3088
|
token: n,
|
|
3070
|
-
disabled:
|
|
3089
|
+
disabled: l,
|
|
3071
3090
|
className: s,
|
|
3072
|
-
manageBriefingsHref:
|
|
3073
|
-
open:
|
|
3074
|
-
onOpenChange:
|
|
3075
|
-
hideTrigger:
|
|
3091
|
+
manageBriefingsHref: u,
|
|
3092
|
+
open: p,
|
|
3093
|
+
onOpenChange: o,
|
|
3094
|
+
hideTrigger: c = !1,
|
|
3076
3095
|
workflowIntent: d,
|
|
3077
|
-
client:
|
|
3096
|
+
client: m
|
|
3078
3097
|
}) {
|
|
3079
|
-
const { authToken: h, tokenProps: f } =
|
|
3080
|
-
|
|
3081
|
-
}, [w,
|
|
3098
|
+
const { authToken: h, tokenProps: f } = Ye(), b = $r(), k = !d || b.canCreate && (d === "scheduled_report" || b.analyticalBriefingsEnabled), [I, y] = E(!1), S = p ?? I, D = (N) => {
|
|
3099
|
+
p === void 0 && y(N), o == null || o(N);
|
|
3100
|
+
}, [w, C] = E(
|
|
3082
3101
|
d ? "author" : "list"
|
|
3083
|
-
), [
|
|
3102
|
+
), [F, g] = E(
|
|
3084
3103
|
d ?? "analytical_briefing"
|
|
3085
|
-
), [
|
|
3104
|
+
), [v, U] = E("dashboard"), [A, q] = E(
|
|
3086
3105
|
[]
|
|
3087
|
-
), [
|
|
3106
|
+
), [L, P] = E(null), J = d && !k && !L ? "list" : w, [ne, Fe] = E(!1), [ie, Te] = E(null), [Be, le] = E(null), [W, ee] = E(
|
|
3088
3107
|
null
|
|
3089
|
-
), [
|
|
3108
|
+
), [de, te] = E(null), Re = ue(null), ye = ue(S);
|
|
3090
3109
|
Y(() => {
|
|
3091
|
-
const N = S && !
|
|
3092
|
-
|
|
3110
|
+
const N = S && !ye.current;
|
|
3111
|
+
ye.current = S, !(!N || !d) && (P(null), U("dashboard"), g(d), C("author"), te(null));
|
|
3093
3112
|
}, [S, d]);
|
|
3094
|
-
const [
|
|
3113
|
+
const [he, ge] = E(
|
|
3095
3114
|
null
|
|
3096
|
-
), [Q,
|
|
3097
|
-
const N =
|
|
3098
|
-
|
|
3099
|
-
|
|
3115
|
+
), [Q, Ce] = E(null), _ = i ?? (f == null ? void 0 : f.apiServiceUrl), O = n ?? (h == null ? void 0 : h.accessToken), se = Z(() => ({ ...Dn, ...m }), [m]), be = Cn(a), Ue = Z(() => {
|
|
3116
|
+
const N = Nn(
|
|
3117
|
+
A,
|
|
3118
|
+
v,
|
|
3100
3119
|
e
|
|
3101
3120
|
);
|
|
3102
3121
|
if (!d)
|
|
3103
3122
|
return N;
|
|
3104
3123
|
const V = d === "scheduled_report" ? "report" : "briefing";
|
|
3105
3124
|
return N.filter(
|
|
3106
|
-
(
|
|
3125
|
+
(Ve) => oe(Ve).noun === V
|
|
3107
3126
|
);
|
|
3108
|
-
}, [e,
|
|
3127
|
+
}, [e, A, v, d]), Ze = Z(() => v === "dashboard" ? {
|
|
3109
3128
|
source: { type: "dashboard", dashboardId: e },
|
|
3110
|
-
label:
|
|
3111
|
-
detail:
|
|
3129
|
+
label: be,
|
|
3130
|
+
detail: wn(be)
|
|
3112
3131
|
} : {
|
|
3113
3132
|
source: { type: "project" },
|
|
3114
3133
|
label: "This project",
|
|
3115
3134
|
detail: "Use any data in this project."
|
|
3116
|
-
}, [e,
|
|
3117
|
-
canCreate:
|
|
3118
|
-
analyticalBriefingsEnabled:
|
|
3119
|
-
scheduledReportAvailable:
|
|
3120
|
-
}),
|
|
3135
|
+
}, [e, be, v]), we = !!(_ && O), Ne = xa({
|
|
3136
|
+
canCreate: b.canCreate,
|
|
3137
|
+
analyticalBriefingsEnabled: b.analyticalBriefingsEnabled,
|
|
3138
|
+
scheduledReportAvailable: v === "dashboard"
|
|
3139
|
+
}), X = H(async () => {
|
|
3121
3140
|
if (!(!_ || !O)) {
|
|
3122
|
-
|
|
3141
|
+
Fe(!0), te(null);
|
|
3123
3142
|
try {
|
|
3124
|
-
|
|
3125
|
-
await
|
|
3126
|
-
apiClient:
|
|
3143
|
+
q(
|
|
3144
|
+
await Sn({
|
|
3145
|
+
apiClient: se,
|
|
3127
3146
|
apiServiceUrl: _,
|
|
3128
3147
|
token: O
|
|
3129
3148
|
})
|
|
3130
3149
|
);
|
|
3131
3150
|
} catch (N) {
|
|
3132
|
-
|
|
3151
|
+
te(
|
|
3133
3152
|
N instanceof Error ? N.message : "Could not load briefings."
|
|
3134
3153
|
);
|
|
3135
3154
|
} finally {
|
|
3136
|
-
|
|
3155
|
+
Fe(!1);
|
|
3137
3156
|
}
|
|
3138
3157
|
}
|
|
3139
|
-
}, [
|
|
3158
|
+
}, [se, _, O]);
|
|
3140
3159
|
Y(() => {
|
|
3141
|
-
!S ||
|
|
3142
|
-
}, [
|
|
3143
|
-
const
|
|
3144
|
-
P(null),
|
|
3145
|
-
},
|
|
3146
|
-
P(null),
|
|
3160
|
+
!S || J !== "list" || !we || X();
|
|
3161
|
+
}, [we, J, X, S]);
|
|
3162
|
+
const Se = () => {
|
|
3163
|
+
P(null), U("dashboard"), C("list"), D(!0);
|
|
3164
|
+
}, x = (N) => {
|
|
3165
|
+
P(null), g(N), C("author");
|
|
3147
3166
|
}, B = async (N) => {
|
|
3148
3167
|
if (!(!_ || !O)) {
|
|
3149
|
-
|
|
3168
|
+
Te(N), te(null);
|
|
3150
3169
|
try {
|
|
3151
|
-
const V = await
|
|
3170
|
+
const V = await se.getBriefing(
|
|
3152
3171
|
_,
|
|
3153
3172
|
O,
|
|
3154
3173
|
N
|
|
3155
3174
|
);
|
|
3156
|
-
P(V.briefing),
|
|
3175
|
+
P(V.briefing), C("author");
|
|
3157
3176
|
} catch (V) {
|
|
3158
|
-
|
|
3177
|
+
te(
|
|
3159
3178
|
V instanceof Error ? V.message : "Could not open briefing."
|
|
3160
3179
|
);
|
|
3161
3180
|
} finally {
|
|
3162
|
-
|
|
3181
|
+
Te(null);
|
|
3163
3182
|
}
|
|
3164
3183
|
}
|
|
3165
3184
|
}, M = async (N) => {
|
|
3166
3185
|
if (!(!_ || !O)) {
|
|
3167
|
-
|
|
3186
|
+
le(N.id);
|
|
3168
3187
|
try {
|
|
3169
|
-
await
|
|
3188
|
+
await se.runBriefingNow(
|
|
3170
3189
|
_,
|
|
3171
3190
|
O,
|
|
3172
3191
|
N.id,
|
|
3173
|
-
{ requestId:
|
|
3174
|
-
),
|
|
3192
|
+
{ requestId: An() }
|
|
3193
|
+
), X();
|
|
3175
3194
|
} catch (V) {
|
|
3176
|
-
|
|
3195
|
+
$.error(
|
|
3177
3196
|
V instanceof Error ? V.message : "Could not start the run."
|
|
3178
3197
|
);
|
|
3179
3198
|
} finally {
|
|
3180
|
-
|
|
3199
|
+
le(null);
|
|
3181
3200
|
}
|
|
3182
3201
|
}
|
|
3183
|
-
},
|
|
3202
|
+
}, re = async (N) => {
|
|
3184
3203
|
if (!_ || !O) return;
|
|
3185
|
-
const { noun: V } =
|
|
3186
|
-
|
|
3204
|
+
const { noun: V } = oe(N), Ve = V === "report" ? "Report" : "Briefing";
|
|
3205
|
+
le(N.id);
|
|
3187
3206
|
try {
|
|
3188
|
-
const
|
|
3207
|
+
const Pe = N.status === "PAUSED" ? await se.resumeBriefing(
|
|
3189
3208
|
_,
|
|
3190
3209
|
O,
|
|
3191
3210
|
N.id
|
|
3192
|
-
) : await
|
|
3211
|
+
) : await se.pauseBriefing(
|
|
3193
3212
|
_,
|
|
3194
3213
|
O,
|
|
3195
3214
|
N.id
|
|
3196
3215
|
);
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
),
|
|
3200
|
-
} catch (
|
|
3201
|
-
|
|
3202
|
-
|
|
3216
|
+
$.success(
|
|
3217
|
+
Pe.briefing.status === "PAUSED" ? `${Ve} paused` : `${Ve} resumed`
|
|
3218
|
+
), X();
|
|
3219
|
+
} catch (Pe) {
|
|
3220
|
+
$.error(
|
|
3221
|
+
Pe instanceof Error ? Pe.message : `Could not update the ${V} status.`
|
|
3203
3222
|
);
|
|
3204
3223
|
} finally {
|
|
3205
|
-
|
|
3224
|
+
le(null);
|
|
3206
3225
|
}
|
|
3207
|
-
},
|
|
3208
|
-
if (!
|
|
3209
|
-
const N =
|
|
3210
|
-
|
|
3226
|
+
}, ce = async () => {
|
|
3227
|
+
if (!W || !_ || !O) return;
|
|
3228
|
+
const N = W;
|
|
3229
|
+
le(N.id);
|
|
3211
3230
|
try {
|
|
3212
|
-
await
|
|
3231
|
+
await se.deleteBriefing(
|
|
3213
3232
|
_,
|
|
3214
3233
|
O,
|
|
3215
3234
|
N.id
|
|
3216
3235
|
);
|
|
3217
|
-
const { noun: V } =
|
|
3218
|
-
|
|
3236
|
+
const { noun: V } = oe(N);
|
|
3237
|
+
$.success(`${V === "report" ? "Report" : "Briefing"} deleted`), ee(null), X();
|
|
3219
3238
|
} catch (V) {
|
|
3220
|
-
|
|
3239
|
+
$.error(
|
|
3221
3240
|
V instanceof Error ? V.message : "Could not delete the briefing."
|
|
3222
3241
|
);
|
|
3223
3242
|
} finally {
|
|
3224
|
-
|
|
3243
|
+
le(null);
|
|
3225
3244
|
}
|
|
3226
|
-
},
|
|
3227
|
-
return
|
|
3228
|
-
|
|
3229
|
-
|
|
3245
|
+
}, Gt = Ue.length;
|
|
3246
|
+
return b.surfaceVisible ? /* @__PURE__ */ r(Xr, { open: S, onOpenChange: D, children: [
|
|
3247
|
+
c ? null : /* @__PURE__ */ t(
|
|
3248
|
+
on,
|
|
3230
3249
|
{
|
|
3231
|
-
disabled:
|
|
3232
|
-
briefingCount:
|
|
3250
|
+
disabled: l || !we,
|
|
3251
|
+
briefingCount: Gt,
|
|
3233
3252
|
className: s,
|
|
3234
|
-
onClick:
|
|
3253
|
+
onClick: Se
|
|
3235
3254
|
}
|
|
3236
3255
|
),
|
|
3237
3256
|
/* @__PURE__ */ r(
|
|
3238
|
-
|
|
3257
|
+
Yr,
|
|
3239
3258
|
{
|
|
3240
|
-
ref:
|
|
3259
|
+
ref: Re,
|
|
3241
3260
|
side: "right",
|
|
3242
3261
|
hideClose: !0,
|
|
3243
3262
|
className: "flex h-full w-full flex-col overflow-hidden p-0 outline-none sm:max-w-[560px]",
|
|
3244
3263
|
onOpenAutoFocus: (N) => {
|
|
3245
3264
|
var V;
|
|
3246
|
-
N.preventDefault(), (V =
|
|
3265
|
+
N.preventDefault(), (V = Re.current) == null || V.focus({ preventScroll: !0 });
|
|
3247
3266
|
},
|
|
3248
3267
|
children: [
|
|
3249
|
-
/* @__PURE__ */ r(
|
|
3250
|
-
/* @__PURE__ */ t(
|
|
3251
|
-
/* @__PURE__ */ t(
|
|
3268
|
+
/* @__PURE__ */ r(Qr, { className: "sr-only", children: [
|
|
3269
|
+
/* @__PURE__ */ t(Zr, { children: "Reports & briefings" }),
|
|
3270
|
+
/* @__PURE__ */ t(Jr, { children: "Manage reports and briefings for this dashboard." })
|
|
3252
3271
|
] }),
|
|
3253
3272
|
d ? /* @__PURE__ */ r("div", { className: "flex shrink-0 items-start justify-between gap-3 border-b border-border pl-4 pr-3 pt-2", children: [
|
|
3254
3273
|
/* @__PURE__ */ r(
|
|
@@ -3263,17 +3282,17 @@ function Cn({
|
|
|
3263
3282
|
{
|
|
3264
3283
|
type: "button",
|
|
3265
3284
|
role: "tab",
|
|
3266
|
-
"aria-selected":
|
|
3285
|
+
"aria-selected": J === "author",
|
|
3267
3286
|
disabled: !k,
|
|
3268
|
-
className:
|
|
3287
|
+
className: K(
|
|
3269
3288
|
"-mb-px border-b-2 px-0.5 pb-2 text-[12px] transition-colors",
|
|
3270
|
-
|
|
3289
|
+
J === "author" ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground",
|
|
3271
3290
|
!k && "cursor-not-allowed opacity-50"
|
|
3272
3291
|
),
|
|
3273
3292
|
onClick: () => {
|
|
3274
|
-
k && (P(null),
|
|
3293
|
+
k && (P(null), g(d), U("dashboard"), C("author"));
|
|
3275
3294
|
},
|
|
3276
|
-
children:
|
|
3295
|
+
children: L ? `Edit ${oe(L).noun}` : d === "scheduled_report" ? "Schedule report" : "Create briefing"
|
|
3277
3296
|
}
|
|
3278
3297
|
),
|
|
3279
3298
|
/* @__PURE__ */ t(
|
|
@@ -3281,12 +3300,12 @@ function Cn({
|
|
|
3281
3300
|
{
|
|
3282
3301
|
type: "button",
|
|
3283
3302
|
role: "tab",
|
|
3284
|
-
"aria-selected":
|
|
3285
|
-
className:
|
|
3303
|
+
"aria-selected": J === "list",
|
|
3304
|
+
className: K(
|
|
3286
3305
|
"-mb-px border-b-2 px-0.5 pb-2 text-[12px] transition-colors",
|
|
3287
|
-
|
|
3306
|
+
J === "list" ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground"
|
|
3288
3307
|
),
|
|
3289
|
-
onClick: () =>
|
|
3308
|
+
onClick: () => C("list"),
|
|
3290
3309
|
children: d === "scheduled_report" ? "Manage reports" : "Manage briefings"
|
|
3291
3310
|
}
|
|
3292
3311
|
)
|
|
@@ -3297,100 +3316,100 @@ function Cn({
|
|
|
3297
3316
|
"button",
|
|
3298
3317
|
{
|
|
3299
3318
|
type: "button",
|
|
3300
|
-
onClick: () =>
|
|
3319
|
+
onClick: () => D(!1),
|
|
3301
3320
|
className: "rounded-control p-1 text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
3302
3321
|
"aria-label": d === "scheduled_report" ? "Close email report workflow" : "Close analytical briefing workflow",
|
|
3303
|
-
children: /* @__PURE__ */ t(
|
|
3322
|
+
children: /* @__PURE__ */ t(Qe, { className: "h-3.5 w-3.5" })
|
|
3304
3323
|
}
|
|
3305
3324
|
)
|
|
3306
3325
|
] }) : null,
|
|
3307
|
-
|
|
3308
|
-
|
|
3326
|
+
J === "list" ? /* @__PURE__ */ t(
|
|
3327
|
+
fn,
|
|
3309
3328
|
{
|
|
3310
|
-
briefings:
|
|
3311
|
-
dashboardLabel:
|
|
3312
|
-
sourceView:
|
|
3313
|
-
error:
|
|
3314
|
-
loading:
|
|
3315
|
-
onSourceViewChange:
|
|
3316
|
-
onClose: () =>
|
|
3329
|
+
briefings: Ue,
|
|
3330
|
+
dashboardLabel: be,
|
|
3331
|
+
sourceView: v,
|
|
3332
|
+
error: de,
|
|
3333
|
+
loading: ne,
|
|
3334
|
+
onSourceViewChange: U,
|
|
3335
|
+
onClose: () => D(!1),
|
|
3317
3336
|
onEdit: (N) => {
|
|
3318
3337
|
B(N);
|
|
3319
3338
|
},
|
|
3320
|
-
onNew:
|
|
3321
|
-
canCreate: !d &&
|
|
3322
|
-
canCreateScheduledReport:
|
|
3339
|
+
onNew: x,
|
|
3340
|
+
canCreate: !d && Ne.length > 0,
|
|
3341
|
+
canCreateScheduledReport: Ne.includes(
|
|
3323
3342
|
"scheduled_report"
|
|
3324
3343
|
),
|
|
3325
|
-
analyticalBriefingsEnabled:
|
|
3344
|
+
analyticalBriefingsEnabled: Ne.includes(
|
|
3326
3345
|
"analytical_briefing"
|
|
3327
3346
|
),
|
|
3328
3347
|
onRunNow: (N) => {
|
|
3329
3348
|
M(N);
|
|
3330
3349
|
},
|
|
3331
3350
|
onTogglePause: (N) => {
|
|
3332
|
-
|
|
3351
|
+
re(N);
|
|
3333
3352
|
},
|
|
3334
|
-
onDelete: (N) =>
|
|
3335
|
-
selectingId:
|
|
3336
|
-
busyId:
|
|
3337
|
-
manageBriefingsHref:
|
|
3353
|
+
onDelete: (N) => ee(N),
|
|
3354
|
+
selectingId: ie,
|
|
3355
|
+
busyId: Be,
|
|
3356
|
+
manageBriefingsHref: u,
|
|
3338
3357
|
contentKind: d === "scheduled_report" ? "reports" : d === "analytical_briefing" ? "briefings" : void 0,
|
|
3339
3358
|
hideHeader: !!d
|
|
3340
3359
|
}
|
|
3341
3360
|
) : /* @__PURE__ */ t(
|
|
3342
|
-
|
|
3361
|
+
ea,
|
|
3343
3362
|
{
|
|
3344
3363
|
apiServiceUrl: _,
|
|
3345
3364
|
token: O,
|
|
3346
|
-
briefing:
|
|
3347
|
-
intent:
|
|
3348
|
-
sourceContext:
|
|
3349
|
-
title:
|
|
3365
|
+
briefing: L,
|
|
3366
|
+
intent: F,
|
|
3367
|
+
sourceContext: L ? void 0 : Ze,
|
|
3368
|
+
title: L ? `Edit ${oe(L).noun}` : F === "scheduled_report" ? "Schedule report" : "Create analytical briefing",
|
|
3350
3369
|
hideHeader: !!d,
|
|
3351
3370
|
className: "h-full min-h-0 max-w-none border-0 shadow-none",
|
|
3352
|
-
onBack: d ? void 0 : () =>
|
|
3353
|
-
onCancel: () =>
|
|
3371
|
+
onBack: d ? void 0 : () => C("list"),
|
|
3372
|
+
onCancel: () => D(!1),
|
|
3354
3373
|
onDeleted: () => {
|
|
3355
|
-
const N =
|
|
3356
|
-
|
|
3374
|
+
const N = L ? oe(L).noun : "briefing";
|
|
3375
|
+
$.success(`${N === "report" ? "Report" : "Briefing"} deleted`), P(null), C("list"), X();
|
|
3357
3376
|
},
|
|
3358
3377
|
onRunStarted: () => {
|
|
3359
3378
|
},
|
|
3360
3379
|
onSaved: (N) => {
|
|
3361
|
-
P(N),
|
|
3380
|
+
P(N), X();
|
|
3362
3381
|
},
|
|
3363
3382
|
onMinimizeRun: ({ briefing: N, run: V }) => {
|
|
3364
|
-
|
|
3383
|
+
ge({ briefing: N, run: V }), D(!1);
|
|
3365
3384
|
}
|
|
3366
3385
|
}
|
|
3367
3386
|
)
|
|
3368
3387
|
]
|
|
3369
3388
|
}
|
|
3370
3389
|
),
|
|
3371
|
-
|
|
3372
|
-
|
|
3390
|
+
he && _ && O ? /* @__PURE__ */ t(
|
|
3391
|
+
kn,
|
|
3373
3392
|
{
|
|
3374
|
-
briefingId:
|
|
3375
|
-
initialRun:
|
|
3393
|
+
briefingId: he.briefing.id,
|
|
3394
|
+
initialRun: he.run,
|
|
3376
3395
|
apiServiceUrl: _,
|
|
3377
3396
|
token: O,
|
|
3378
3397
|
onTerminal: (N) => {
|
|
3379
|
-
|
|
3380
|
-
briefing:
|
|
3398
|
+
Ce({
|
|
3399
|
+
briefing: he.briefing,
|
|
3381
3400
|
run: N
|
|
3382
|
-
}),
|
|
3401
|
+
}), ge(null), X();
|
|
3383
3402
|
},
|
|
3384
3403
|
onTimeout: () => {
|
|
3385
|
-
|
|
3404
|
+
ge(null), X();
|
|
3386
3405
|
},
|
|
3387
3406
|
onExpand: () => {
|
|
3388
|
-
P(
|
|
3407
|
+
P(he.briefing), C("author"), ge(null), D(!0);
|
|
3389
3408
|
}
|
|
3390
3409
|
}
|
|
3391
3410
|
) : null,
|
|
3392
3411
|
Q ? /* @__PURE__ */ t("div", { className: "fixed bottom-4 right-4 z-50 w-[360px]", children: /* @__PURE__ */ t(
|
|
3393
|
-
|
|
3412
|
+
ta,
|
|
3394
3413
|
{
|
|
3395
3414
|
title: Q.run.status === "SUCCESS" ? `${Q.briefing.name} is ready` : `${Q.briefing.name} run failed`,
|
|
3396
3415
|
durationSeconds: Q.run.startedAt && Q.run.completedAt ? Math.max(
|
|
@@ -3401,43 +3420,43 @@ function Cn({
|
|
|
3401
3420
|
) : null,
|
|
3402
3421
|
status: Q.run.status === "SUCCESS" ? "success" : "failed",
|
|
3403
3422
|
onView: () => {
|
|
3404
|
-
P(Q.briefing),
|
|
3423
|
+
P(Q.briefing), C("author"), Ce(null), D(!0);
|
|
3405
3424
|
},
|
|
3406
|
-
onDismiss: () =>
|
|
3425
|
+
onDismiss: () => Ce(null)
|
|
3407
3426
|
}
|
|
3408
3427
|
) }) : null,
|
|
3409
3428
|
/* @__PURE__ */ t(
|
|
3410
|
-
|
|
3429
|
+
ot,
|
|
3411
3430
|
{
|
|
3412
|
-
open: !!
|
|
3431
|
+
open: !!W,
|
|
3413
3432
|
onOpenChange: (N) => {
|
|
3414
|
-
N ||
|
|
3433
|
+
N || ee(null);
|
|
3415
3434
|
},
|
|
3416
|
-
children: /* @__PURE__ */ r(
|
|
3417
|
-
/* @__PURE__ */ r(
|
|
3418
|
-
/* @__PURE__ */ r(
|
|
3435
|
+
children: /* @__PURE__ */ r(it, { children: [
|
|
3436
|
+
/* @__PURE__ */ r(lt, { children: [
|
|
3437
|
+
/* @__PURE__ */ r(dt, { children: [
|
|
3419
3438
|
"Delete",
|
|
3420
3439
|
" ",
|
|
3421
|
-
|
|
3440
|
+
W ? oe(W).noun : "briefing",
|
|
3422
3441
|
"?"
|
|
3423
3442
|
] }),
|
|
3424
|
-
/* @__PURE__ */ r(
|
|
3443
|
+
/* @__PURE__ */ r(ct, { children: [
|
|
3425
3444
|
"This permanently deletes ",
|
|
3426
|
-
/* @__PURE__ */ t("strong", { children:
|
|
3445
|
+
/* @__PURE__ */ t("strong", { children: W == null ? void 0 : W.name }),
|
|
3427
3446
|
". Recipients will stop receiving it."
|
|
3428
3447
|
] })
|
|
3429
3448
|
] }),
|
|
3430
|
-
/* @__PURE__ */ r(
|
|
3431
|
-
/* @__PURE__ */ t(
|
|
3449
|
+
/* @__PURE__ */ r(ut, { children: [
|
|
3450
|
+
/* @__PURE__ */ t(ht, { children: "Cancel" }),
|
|
3432
3451
|
/* @__PURE__ */ r(
|
|
3433
|
-
|
|
3452
|
+
Tt,
|
|
3434
3453
|
{
|
|
3435
3454
|
className: "bg-destructive/90 hover:bg-destructive",
|
|
3436
|
-
onClick:
|
|
3455
|
+
onClick: ce,
|
|
3437
3456
|
children: [
|
|
3438
3457
|
"Delete",
|
|
3439
3458
|
" ",
|
|
3440
|
-
|
|
3459
|
+
W ? oe(W).noun : "briefing"
|
|
3441
3460
|
]
|
|
3442
3461
|
}
|
|
3443
3462
|
)
|
|
@@ -3447,24 +3466,24 @@ function Cn({
|
|
|
3447
3466
|
)
|
|
3448
3467
|
] }) : null;
|
|
3449
3468
|
}
|
|
3450
|
-
function
|
|
3469
|
+
function An() {
|
|
3451
3470
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `briefing-run-now-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
3452
3471
|
}
|
|
3453
3472
|
export {
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3473
|
+
Xn as A,
|
|
3474
|
+
Ka as D,
|
|
3475
|
+
qa as E,
|
|
3476
|
+
Jn as N,
|
|
3477
|
+
Yn as U,
|
|
3478
|
+
qn as V,
|
|
3479
|
+
on as W,
|
|
3480
|
+
Kn as a,
|
|
3481
|
+
Ha as b,
|
|
3482
|
+
Qn as c,
|
|
3483
|
+
Zn as d,
|
|
3484
|
+
Ya as e,
|
|
3485
|
+
tn as f,
|
|
3486
|
+
es as g,
|
|
3487
|
+
ts as h,
|
|
3488
|
+
Gn as u
|
|
3470
3489
|
};
|