@luzmo/embed 9.1.0 → 10.1.0-es2021
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/CHANGELOG.md +19 -0
- package/MIGRATIONS.md +6 -0
- package/index.cjs +76 -45
- package/index.dashboard-analyst.cjs +9874 -0
- package/index.dashboard-analyst.js +9866 -0
- package/index.dashboard-next.cjs +6635 -0
- package/index.dashboard-next.js +6622 -0
- package/index.js +74 -45
- package/index.rn.cjs +21 -2
- package/index.rn.js +20 -2
- package/index.shared.cjs +21 -2
- package/index.shared.js +20 -2
- package/luzmo-dashboard-analyst.min.js +176206 -0
- package/luzmo-dashboard-next.min.js +159871 -0
- package/luzmo-embed.min.js +200 -171
- package/package.json +27 -3
- package/src/index.common.d.ts +1 -0
- package/src/index.d.ts +6 -0
- package/src/index.dashboard-analyst.d.ts +4 -0
- package/src/index.dashboard-next.d.ts +1 -0
- package/src/index.internal.d.ts +3 -0
- package/src/lib/dashboard/dashboard-base.d.ts +1 -1
- package/src/lib/dashboard-next/agent/dashboard-agent-controller.d.ts +28 -0
- package/src/lib/dashboard-next/agent/dashboard-agent-feedback-api.d.ts +6 -0
- package/src/lib/dashboard-next/agent/dashboard-agent-feedback-controller.d.ts +20 -0
- package/src/lib/dashboard-next/agent/dashboard-agent-history-api.d.ts +17 -0
- package/src/lib/dashboard-next/agent/dashboard-agent-history-controller.d.ts +40 -0
- package/src/lib/dashboard-next/agent/dashboard-agent-history.d.ts +11 -0
- package/src/lib/dashboard-next/agent/dashboard-agent-history.styles.d.ts +1 -0
- package/src/lib/dashboard-next/agent/dashboard-agent-panel.d.ts +10 -0
- package/src/lib/dashboard-next/agent/dashboard-agent-panel.styles.d.ts +1 -0
- package/src/lib/dashboard-next/dashboard-analyst-component.d.ts +36 -0
- package/src/lib/dashboard-next/dashboard-analyst-component.styles.d.ts +1 -0
- package/src/lib/dashboard-next/dashboard-configured-element.d.ts +31 -0
- package/src/lib/dashboard-next/dashboard-next-component.d.ts +86 -0
- package/src/lib/dashboard-next/dashboard-next-component.styles.d.ts +1 -0
- package/src/lib/dashboard-next/data/dashboard-api.d.ts +9 -0
- package/src/lib/dashboard-next/data/dashboard-custom-charts.d.ts +18 -0
- package/src/lib/dashboard-next/data/dashboard-errors.d.ts +5 -0
- package/src/lib/dashboard-next/data/dashboard-loading-controller.d.ts +21 -0
- package/src/lib/dashboard-next/data/dashboard-metadata-controller.d.ts +25 -0
- package/src/lib/dashboard-next/data/dashboard-permissions-api.d.ts +14 -0
- package/src/lib/dashboard-next/data/dashboard-renderer-controller.d.ts +30 -0
- package/src/lib/dashboard-next/data/dashboard-variant-management-controller.d.ts +30 -0
- package/src/lib/dashboard-next/data/dashboard-variants-api.d.ts +30 -0
- package/src/lib/dashboard-next/data/dashboard-variants-controller.d.ts +38 -0
- package/src/lib/dashboard-next/data/load-dashboard-definition.d.ts +21 -0
- package/src/lib/dashboard-next/data/load-dashboard-layout.d.ts +4 -0
- package/src/lib/dashboard-next/grid/dashboard-grid-layout-controller.d.ts +23 -0
- package/src/lib/dashboard-next/grid/dashboard-layout-skeleton.d.ts +2 -0
- package/src/lib/dashboard-next/grid/dashboard-layout-skeleton.styles.d.ts +1 -0
- package/src/lib/dashboard-next/grid/dashboard-next-grid.d.ts +62 -0
- package/src/lib/dashboard-next/grid/dashboard-next-grid.styles.d.ts +1 -0
- package/src/lib/dashboard-next/grid/dashboard-next-viz-item.d.ts +26 -0
- package/src/lib/dashboard-next/grid/dashboard-skeleton-motion-controller.d.ts +15 -0
- package/src/lib/dashboard-next/grid/render-dashboard-chart.d.ts +22 -0
- package/src/lib/dashboard-next/localization/dashboard-next-translations.d.ts +134 -0
- package/src/lib/dashboard-next/localization/format-dashboard-relative-date.d.ts +1 -0
- package/src/lib/dashboard-next/localization/resolve-dashboard-next-translations.d.ts +6 -0
- package/src/lib/dashboard-next/settings/appearance/dashboard-appearance-config.d.ts +20 -0
- package/src/lib/dashboard-next/settings/appearance/dashboard-appearance-settings-controller.d.ts +45 -0
- package/src/lib/dashboard-next/settings/appearance/dashboard-appearance-settings.d.ts +14 -0
- package/src/lib/dashboard-next/settings/appearance/dashboard-appearance-settings.styles.d.ts +1 -0
- package/src/lib/dashboard-next/settings/appearance/dashboard-chart-type-conversion.d.ts +11 -0
- package/src/lib/dashboard-next/settings/dashboard-chart-settings-context.d.ts +30 -0
- package/src/lib/dashboard-next/settings/dashboard-chart-settings-context.styles.d.ts +1 -0
- package/src/lib/dashboard-next/settings/dashboard-editor-controller.d.ts +32 -0
- package/src/lib/dashboard-next/settings/dashboard-settings-content.d.ts +7 -0
- package/src/lib/dashboard-next/settings/dashboard-settings-controller.d.ts +54 -0
- package/src/lib/dashboard-next/settings/dashboard-settings-popover.d.ts +17 -0
- package/src/lib/dashboard-next/settings/dashboard-settings-popover.styles.d.ts +1 -0
- package/src/lib/dashboard-next/settings/dashboard-settings-positioning.d.ts +1 -0
- package/src/lib/dashboard-next/settings/dashboard-settings.test-utils.d.ts +19 -0
- package/src/lib/dashboard-next/settings/data/dashboard-data-metadata.d.ts +11 -0
- package/src/lib/dashboard-next/settings/data/dashboard-data-settings-controller.d.ts +42 -0
- package/src/lib/dashboard-next/settings/data/dashboard-data-settings.d.ts +20 -0
- package/src/lib/dashboard-next/settings/data/dashboard-data-settings.styles.d.ts +1 -0
- package/src/lib/dashboard-next/settings/data/dashboard-data-slots.d.ts +3 -0
- package/src/lib/dashboard-next/settings/filters/dashboard-filter-settings-controller.d.ts +19 -0
- package/src/lib/dashboard-next/settings/filters/dashboard-filter-settings.d.ts +9 -0
- package/src/lib/dashboard-next/settings/filters/dashboard-filter-settings.styles.d.ts +1 -0
- package/src/lib/dashboard-next/state/config/dashboard-chart-catalog.d.ts +11 -0
- package/src/lib/dashboard-next/state/config/dashboard-chart-names-controller.d.ts +9 -0
- package/src/lib/dashboard-next/state/config/dashboard-chart-types.d.ts +47 -0
- package/src/lib/dashboard-next/state/config/dashboard-config-store.d.ts +33 -0
- package/src/lib/dashboard-next/state/content/dashboard-agent-draft.d.ts +28 -0
- package/src/lib/dashboard-next/state/content/dashboard-content-controller.d.ts +57 -0
- package/src/lib/dashboard-next/state/content/dashboard-content-selectors.d.ts +7 -0
- package/src/lib/dashboard-next/state/content/dashboard-content-state.d.ts +61 -0
- package/src/lib/dashboard-next/state/content/dashboard-content-store.d.ts +22 -0
- package/src/lib/dashboard-next/state/content/dashboard-option-changes.d.ts +9 -0
- package/src/lib/dashboard-next/state/dashboard-analyst-stores.d.ts +40 -0
- package/src/lib/dashboard-next/state/dashboard-stores.d.ts +13 -0
- package/src/lib/dashboard-next/state/dashboard-workspace.d.ts +33 -0
- package/src/lib/dashboard-next/state/runtime/dashboard-agent-history-state.d.ts +21 -0
- package/src/lib/dashboard-next/state/runtime/dashboard-analyst-runtime-store.d.ts +43 -0
- package/src/lib/dashboard-next/state/runtime/dashboard-editor-state.d.ts +38 -0
- package/src/lib/dashboard-next/state/runtime/dashboard-runtime-state.d.ts +47 -0
- package/src/lib/dashboard-next/state/runtime/dashboard-runtime-store.d.ts +22 -0
- package/src/lib/dashboard-next/state/runtime/dashboard-variants-state.d.ts +31 -0
- package/src/lib/dashboard-next/toolbar/dashboard-add-chart-controller.d.ts +20 -0
- package/src/lib/dashboard-next/toolbar/dashboard-add-chart-menu.d.ts +19 -0
- package/src/lib/dashboard-next/toolbar/dashboard-navigation-controller.d.ts +32 -0
- package/src/lib/dashboard-next/toolbar/dashboard-next-toolbar.d.ts +35 -0
- package/src/lib/dashboard-next/toolbar/dashboard-next-toolbar.styles.d.ts +1 -0
- package/src/lib/dashboard-next/toolbar/dashboard-picker.d.ts +36 -0
- package/src/lib/dashboard-next/toolbar/dashboard-picker.styles.d.ts +1 -0
- package/src/lib/dashboard-next/toolbar/dashboard-preview-thumbnail.d.ts +2 -0
- package/src/lib/dashboard-next/toolbar/dashboard-question-dashboards.d.ts +7 -0
- package/src/lib/dashboard-next/toolbar/dashboard-question-mode.styles.d.ts +1 -0
- package/src/lib/dashboard-next/toolbar/dashboard-variant-delete.d.ts +15 -0
- package/src/lib/dashboard-next/toolbar/dashboard-variant-delete.styles.d.ts +1 -0
- package/src/lib/dashboard-next/toolbar/dashboard-variant-rename-controller.d.ts +18 -0
- package/src/lib/dashboard-next/views/dashboard-view-controller.d.ts +13 -0
- package/src/lib/dashboard-next/views/dashboard-view-layout.d.ts +12 -0
- package/src/lib/dashboard-next/views/dashboard-views.d.ts +48 -0
- package/src/lib/iq-components/luzmo-iq-answer.d.ts +1 -1
- package/src/lib/iq-components/luzmo-iq-chat.d.ts +1 -1
- package/src/lib/shared/helpers/normalize-viz-item-slots.d.ts +2 -0
- package/src/lib/shared/models/dashboard-definition.model.d.ts +34 -0
- package/src/lib/shared/models/events.model.d.ts +9 -8
- package/src/lib/shared/models/index.d.ts +2 -0
- package/src/lib/shared/models/viz-item-service-port.model.d.ts +24 -0
- package/src/lib/viz-item/viz-item.base.d.ts +4 -4
package/package.json
CHANGED
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luzmo/embed",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.1.0-es2021",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "^3.3.1",
|
|
6
6
|
"@module-federation/runtime": "^2.9.0",
|
|
7
|
-
"@luzmo/dashboard-contents-types": "2.1
|
|
7
|
+
"@luzmo/dashboard-contents-types": "2.2.1",
|
|
8
|
+
"@luzmo/analytics-components-kit": "2.5.3",
|
|
9
|
+
"@luzmo/lucero": "2.10.0",
|
|
10
|
+
"@luzmo/icons": "^1.0.1-alpha.49",
|
|
11
|
+
"gridstack": "14.0.0",
|
|
12
|
+
"yjs": "13.6.31",
|
|
13
|
+
"@ctrl/tinycolor": "4.2.0",
|
|
14
|
+
"@floating-ui/dom": "1.8.0",
|
|
15
|
+
"lodash-es": "4.18.1"
|
|
8
16
|
},
|
|
9
17
|
"keywords": [
|
|
18
|
+
"es2021",
|
|
19
|
+
"safari-compatible",
|
|
10
20
|
"es6",
|
|
11
21
|
"web-component",
|
|
12
22
|
"lit",
|
|
@@ -39,7 +49,21 @@
|
|
|
39
49
|
"import": "./index.rn.js",
|
|
40
50
|
"require": "./index.rn.cjs",
|
|
41
51
|
"default": "./index.rn.js"
|
|
52
|
+
},
|
|
53
|
+
"./dashboard-next": {
|
|
54
|
+
"types": "./src/index.dashboard-next.d.ts",
|
|
55
|
+
"import": "./index.dashboard-next.js",
|
|
56
|
+
"require": "./index.dashboard-next.cjs"
|
|
57
|
+
},
|
|
58
|
+
"./dashboard-analyst": {
|
|
59
|
+
"types": "./src/index.dashboard-analyst.d.ts",
|
|
60
|
+
"import": "./index.dashboard-analyst.js",
|
|
61
|
+
"require": "./index.dashboard-analyst.cjs"
|
|
42
62
|
}
|
|
43
63
|
},
|
|
44
|
-
"license": "SEE LICENSE IN LICENSE"
|
|
64
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
65
|
+
"description": "ES2021 build for Safari before 16.4",
|
|
66
|
+
"publishConfig": {
|
|
67
|
+
"tag": "es2021"
|
|
68
|
+
}
|
|
45
69
|
}
|
package/src/index.common.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './lib/shared/helpers/error';
|
|
|
4
4
|
export * from './lib/shared/helpers/extents';
|
|
5
5
|
export * from './lib/shared/helpers/translations';
|
|
6
6
|
export * from './lib/shared/helpers/utils';
|
|
7
|
+
export * from './lib/shared/helpers/normalize-viz-item-slots';
|
|
7
8
|
export * from './lib/shared/helpers/iframe-url';
|
|
8
9
|
export * from './lib/shared/helpers/get-loader';
|
|
9
10
|
export * from './lib/shared/helpers/promise-dispatch';
|
package/src/index.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
export type * from '@luzmo/dashboard-contents-types';
|
|
2
2
|
export type { LoadEvent, ChangedFiltersEvent, CustomEvent, ItemsRenderedEvent, ExportedEvent, DashboardActionEvent, CleanFilter, CleanFilterClauseGroup, CleanFilterGroup, CleanRetrievedFilterGroup, DashboardFilterOutput, ItemFilterOutput, SelectedDataInput, ExportType, DashboardExportType, ItemData, ItemDataRows, ExportDashboard, AccessibleDashboard, AddFilters, PartialRecord, SendExportEmailType, SetEditMode, SetPreview, SetSelectedData, DashboardEditMode, SupportedLanguage, VizItemPostMessageLoadEvent, VizItemPostMessageRenderedEvent, VizItemPostMessageExportedEvent, VizItemPostMessageChangedFiltersEvent, VizItemPostMessageCustomEventEvent, VizItemPostMessageAuthorizationExpiredEvent, VizItemPostMessageErrorEvent, EmbedErrorEvent, EmbedErrorEventData } from './index.shared';
|
|
3
3
|
export { selectedDataUtils, preloadDashboard, preloadVizItem, preloadIQ } from './index.shared';
|
|
4
|
+
export { normalizeVizItemSlots } from './lib/shared/helpers/normalize-viz-item-slots';
|
|
5
|
+
export { DEFAULT_CHART_TYPES } from './lib/dashboard-next/state/config/dashboard-chart-types';
|
|
6
|
+
export type { DashboardChartTypeGroup, DashboardNextChartOptions, DashboardNextOptions, DefaultChartType } from './lib/dashboard-next/state/config/dashboard-chart-types';
|
|
7
|
+
export type * from './lib/shared/models/dashboard-definition.model';
|
|
8
|
+
export type * from './lib/shared/models/viz-item-service-port.model';
|
|
4
9
|
export * from './lib/dashboard/dashboard-component';
|
|
5
10
|
export * from './lib/viz-item/viz-item-component';
|
|
6
11
|
export * from './lib/iq-components/luzmo-iq-chat';
|
|
7
12
|
export * from './lib/iq-components/luzmo-iq-answer';
|
|
8
13
|
export * from './lib/utils/json-schema-utils';
|
|
14
|
+
export type { DashboardNextTranslations, DashboardEditModeChangedEventDetail } from './lib/dashboard-next/dashboard-next-component';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { LuzmoDashboardAnalyst } from './lib/dashboard-next/dashboard-analyst-component';
|
|
2
|
+
export type { DashboardNextOptions } from './lib/dashboard-next/state/config/dashboard-chart-types';
|
|
3
|
+
export type { DashboardMode, DashboardNextTranslations, EditableAppearanceOptions, DashboardEditModeChangedEventDetail } from './lib/dashboard-next/dashboard-next-component';
|
|
4
|
+
export { DEFAULT_CHART_TYPES } from './lib/dashboard-next/state/config/dashboard-chart-types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/dashboard-next/dashboard-next-component';
|
|
@@ -47,7 +47,7 @@ export declare class LuzmoDashboard extends LitElement implements SharedLib.WebC
|
|
|
47
47
|
browserErrorMsg: string;
|
|
48
48
|
dashboardError: boolean;
|
|
49
49
|
dashboardErrorMsg: string;
|
|
50
|
-
browserNotSupported:
|
|
50
|
+
browserNotSupported: never[];
|
|
51
51
|
libVersion: string;
|
|
52
52
|
protected isLibraryLoaded: boolean;
|
|
53
53
|
protected dashboardReference: SharedLib.LuzmoElement | undefined;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
+
import { type AiChatSession } from '@luzmo/analytics-components-kit/ai-chat';
|
|
3
|
+
import type { LuzmoSplitView } from '@luzmo/lucero/split-view';
|
|
4
|
+
import type { DashboardAnalystStores } from '../state/dashboard-analyst-stores';
|
|
5
|
+
import type { DashboardAgentTarget } from '../state/dashboard-workspace';
|
|
6
|
+
import type { DashboardAgentConversationSeed } from './dashboard-agent-history-controller';
|
|
7
|
+
export declare class DashboardAgentController implements ReactiveController {
|
|
8
|
+
private readonly host;
|
|
9
|
+
private readonly stores;
|
|
10
|
+
private unsubscribers;
|
|
11
|
+
private syncingDatasets;
|
|
12
|
+
private releaseEdits?;
|
|
13
|
+
private request?;
|
|
14
|
+
constructor(host: ReactiveControllerHost & HTMLElement, stores: DashboardAnalystStores<DashboardAgentTarget>);
|
|
15
|
+
get session(): AiChatSession | undefined;
|
|
16
|
+
get available(): boolean;
|
|
17
|
+
hostConnected(): void;
|
|
18
|
+
setOpen(agentOpen: boolean): void;
|
|
19
|
+
rememberWidth(split: LuzmoSplitView): void;
|
|
20
|
+
startConversation(seed?: DashboardAgentConversationSeed): void;
|
|
21
|
+
private reset;
|
|
22
|
+
private syncDatasets;
|
|
23
|
+
private get canEdit();
|
|
24
|
+
private step;
|
|
25
|
+
private fetch;
|
|
26
|
+
private complete;
|
|
27
|
+
hostDisconnected(): void;
|
|
28
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type DashboardAccess } from '../data/dashboard-api';
|
|
2
|
+
export declare class DashboardFeedbackSaveError extends Error {
|
|
3
|
+
readonly rating: -1 | 0 | 1;
|
|
4
|
+
constructor(rating: -1 | 0 | 1, cause: unknown);
|
|
5
|
+
}
|
|
6
|
+
export declare function saveDashboardAgentFeedback(access: DashboardAccess, assistantMessageId: string, rating: -1 | 0 | 1, signal: AbortSignal): Promise<void>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
+
import type { AssistantMessageFeedbackEventDetail } from '@luzmo/analytics-components-kit/ai-chat';
|
|
3
|
+
import type { DashboardAnalystStores } from '../state/dashboard-analyst-stores';
|
|
4
|
+
import type { DashboardAgentTarget } from '../state/dashboard-workspace';
|
|
5
|
+
export declare class DashboardAgentFeedbackController implements ReactiveController {
|
|
6
|
+
private readonly host;
|
|
7
|
+
private readonly stores;
|
|
8
|
+
private session?;
|
|
9
|
+
private unsubscribe?;
|
|
10
|
+
private context;
|
|
11
|
+
private confirmed;
|
|
12
|
+
private pending;
|
|
13
|
+
private latest;
|
|
14
|
+
constructor(host: ReactiveControllerHost & HTMLElement, stores: DashboardAnalystStores<DashboardAgentTarget>);
|
|
15
|
+
hostConnected(): void;
|
|
16
|
+
save(detail: AssistantMessageFeedbackEventDetail): Promise<void>;
|
|
17
|
+
private setError;
|
|
18
|
+
private reset;
|
|
19
|
+
hostDisconnected(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type AiChatSessionConfig } from '@luzmo/analytics-components-kit/ai-chat';
|
|
2
|
+
import { type DashboardAccess } from '../data/dashboard-api';
|
|
3
|
+
export interface DashboardAgentConversation {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
historyDate: string;
|
|
7
|
+
}
|
|
8
|
+
type AgentMessages = NonNullable<AiChatSessionConfig['messages']>;
|
|
9
|
+
export declare function loadDashboardAgentHistory(access: DashboardAccess, dashboardId: string | null, signal: AbortSignal): Promise<DashboardAgentConversation[]>;
|
|
10
|
+
export declare function loadDashboardAgentConversation(access: DashboardAccess, dashboardId: string | null, conversationId: string, signal: AbortSignal): Promise<{
|
|
11
|
+
id: string;
|
|
12
|
+
messages: AgentMessages;
|
|
13
|
+
selectedDatasets?: AiChatSessionConfig['selectedDatasets'];
|
|
14
|
+
}>;
|
|
15
|
+
export declare function renameDashboardAgentConversation(access: DashboardAccess, id: string, title: string, signal: AbortSignal): Promise<void>;
|
|
16
|
+
export declare function deleteDashboardAgentConversation(access: DashboardAccess, id: string, signal: AbortSignal): Promise<void>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
+
import type { AiChatSessionConfig } from '@luzmo/analytics-components-kit/ai-chat';
|
|
3
|
+
import type { DashboardAnalystStores } from '../state/dashboard-analyst-stores';
|
|
4
|
+
import type { DashboardAgentTarget } from '../state/dashboard-workspace';
|
|
5
|
+
import { type DashboardAgentHistoryState } from '../state/runtime/dashboard-agent-history-state';
|
|
6
|
+
export type DashboardAgentConversationSeed = Pick<AiChatSessionConfig, 'conversationId' | 'messages' | 'selectedDatasets'>;
|
|
7
|
+
export declare class DashboardAgentHistoryController implements ReactiveController {
|
|
8
|
+
private readonly host;
|
|
9
|
+
private readonly stores;
|
|
10
|
+
private readonly startConversation;
|
|
11
|
+
private unsubscribers;
|
|
12
|
+
private focusTarget?;
|
|
13
|
+
private readonly requests;
|
|
14
|
+
constructor(host: ReactiveControllerHost & HTMLElement, stores: DashboardAnalystStores<DashboardAgentTarget>, startConversation: (seed?: DashboardAgentConversationSeed) => void);
|
|
15
|
+
get state(): DashboardAgentHistoryState;
|
|
16
|
+
get busy(): boolean;
|
|
17
|
+
private get access();
|
|
18
|
+
private get dashboardId();
|
|
19
|
+
hostConnected(): void;
|
|
20
|
+
setPickerOpen(pickerOpen: boolean): void;
|
|
21
|
+
setPickerSearch(pickerSearch: string): void;
|
|
22
|
+
newConversation(): void;
|
|
23
|
+
loadHistory(force?: boolean): Promise<void>;
|
|
24
|
+
selectConversation(id: string): Promise<void>;
|
|
25
|
+
startRename(id: string): void;
|
|
26
|
+
setRenameDraft(draft: string): void;
|
|
27
|
+
cancelRename(restoreFocus?: boolean): void;
|
|
28
|
+
commitRename(restoreFocus?: boolean): Promise<void>;
|
|
29
|
+
requestDelete(id: string): void;
|
|
30
|
+
cancelDelete(): void;
|
|
31
|
+
confirmDelete(): Promise<void>;
|
|
32
|
+
hostUpdated(): void;
|
|
33
|
+
private request;
|
|
34
|
+
private startNewChat;
|
|
35
|
+
private focusChat;
|
|
36
|
+
private focusConversation;
|
|
37
|
+
private update;
|
|
38
|
+
private reset;
|
|
39
|
+
hostDisconnected(): void;
|
|
40
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import '@luzmo/lucero/button';
|
|
2
|
+
import '@luzmo/lucero/icon';
|
|
3
|
+
import '@luzmo/lucero/notice';
|
|
4
|
+
import '@luzmo/lucero/progress-circle';
|
|
5
|
+
import '@luzmo/lucero/popover';
|
|
6
|
+
import '@luzmo/lucero/menu';
|
|
7
|
+
import type { DashboardAnalystStores } from '../state/dashboard-analyst-stores';
|
|
8
|
+
import type { DashboardAgentTarget } from '../state/dashboard-workspace';
|
|
9
|
+
import type { DashboardAgentHistoryController } from './dashboard-agent-history-controller';
|
|
10
|
+
export declare function renderDashboardAgentHistoryPicker(stores: DashboardAnalystStores<DashboardAgentTarget>, controller: DashboardAgentHistoryController): import("lit-html").TemplateResult<1>;
|
|
11
|
+
export declare function renderDashboardAgentDeleteDialog(stores: DashboardAnalystStores<DashboardAgentTarget>, controller: DashboardAgentHistoryController): import("lit-html").TemplateResult<1> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dashboardAgentHistoryStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '@luzmo/lucero/action-button';
|
|
2
|
+
import '@luzmo/lucero/skeleton-loader';
|
|
3
|
+
import '@luzmo/lucero/icon';
|
|
4
|
+
import '@luzmo/lucero/notice';
|
|
5
|
+
import type { DashboardAnalystStores } from '../state/dashboard-analyst-stores';
|
|
6
|
+
import type { DashboardAgentTarget } from '../state/dashboard-workspace';
|
|
7
|
+
import type { DashboardAgentHistoryController } from './dashboard-agent-history-controller';
|
|
8
|
+
import type { DashboardAgentController } from './dashboard-agent-controller';
|
|
9
|
+
import type { DashboardAgentFeedbackController } from './dashboard-agent-feedback-controller';
|
|
10
|
+
export declare function renderDashboardAgentPanel(stores: DashboardAnalystStores<DashboardAgentTarget>, agent: DashboardAgentController, feedback: DashboardAgentFeedbackController, history: DashboardAgentHistoryController): import("lit-html").TemplateResult<1>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dashboardAgentPanelStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import '@luzmo/lucero/notice';
|
|
2
|
+
import '@luzmo/lucero/split-view';
|
|
3
|
+
import { DashboardConfiguredElement } from './dashboard-configured-element';
|
|
4
|
+
import './dashboard-next-component';
|
|
5
|
+
import type { DashboardMode } from './state/runtime/dashboard-runtime-state';
|
|
6
|
+
import type { DashboardNextOptions } from './state/config/dashboard-chart-types';
|
|
7
|
+
export declare class LuzmoDashboardAnalyst extends DashboardConfiguredElement<DashboardNextOptions> {
|
|
8
|
+
private readonly dashboard;
|
|
9
|
+
private readonly workspace;
|
|
10
|
+
private readonly stores;
|
|
11
|
+
private readonly navigation;
|
|
12
|
+
private readonly variantRename;
|
|
13
|
+
private readonly agent;
|
|
14
|
+
private readonly agentHistory;
|
|
15
|
+
private readonly agentFeedback;
|
|
16
|
+
private disconnectDashboard?;
|
|
17
|
+
static styles: import("lit").CSSResult[];
|
|
18
|
+
constructor();
|
|
19
|
+
connectedCallback(): void;
|
|
20
|
+
disconnectedCallback(): void;
|
|
21
|
+
get agentId(): string | undefined;
|
|
22
|
+
set agentId(value: string | undefined);
|
|
23
|
+
get editMode(): DashboardMode;
|
|
24
|
+
set editMode(mode: DashboardMode);
|
|
25
|
+
reloadDashboard(): Promise<void>;
|
|
26
|
+
save(): Promise<boolean>;
|
|
27
|
+
discard(): void;
|
|
28
|
+
protected getUpdateComplete(): Promise<boolean>;
|
|
29
|
+
protected updated(): void;
|
|
30
|
+
protected render(): import("lit-html").TemplateResult<1>;
|
|
31
|
+
}
|
|
32
|
+
declare global {
|
|
33
|
+
interface HTMLElementTagNameMap {
|
|
34
|
+
'luzmo-dashboard-analyst': LuzmoDashboardAnalyst;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dashboardAnalystStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import type { ScreenMode } from '@luzmo/dashboard-contents-types';
|
|
3
|
+
import { DashboardConfigStore } from './state/config/dashboard-config-store';
|
|
4
|
+
import type { DashboardNextOptions } from './state/config/dashboard-chart-types';
|
|
5
|
+
import type { DashboardNextTranslations } from './localization/dashboard-next-translations';
|
|
6
|
+
export declare abstract class DashboardConfiguredElement<Options extends DashboardNextOptions> extends LitElement {
|
|
7
|
+
protected readonly configuration: DashboardConfigStore;
|
|
8
|
+
protected get config(): import("./state/config/dashboard-config-store").DashboardConfigState;
|
|
9
|
+
get options(): Options | undefined;
|
|
10
|
+
set options(options: Options | undefined);
|
|
11
|
+
get editorLanguage(): string;
|
|
12
|
+
set editorLanguage(value: string);
|
|
13
|
+
get language(): string;
|
|
14
|
+
set language(value: string);
|
|
15
|
+
get timezoneId(): string | undefined;
|
|
16
|
+
set timezoneId(value: string | undefined);
|
|
17
|
+
get customTranslations(): DashboardNextTranslations | undefined;
|
|
18
|
+
set customTranslations(value: DashboardNextTranslations | undefined);
|
|
19
|
+
get dashboardId(): string | undefined;
|
|
20
|
+
set dashboardId(value: string | undefined);
|
|
21
|
+
get authKey(): string | undefined;
|
|
22
|
+
set authKey(value: string | undefined);
|
|
23
|
+
get authToken(): string | undefined;
|
|
24
|
+
set authToken(value: string | undefined);
|
|
25
|
+
get appServer(): string;
|
|
26
|
+
set appServer(value: string);
|
|
27
|
+
get apiHost(): string;
|
|
28
|
+
set apiHost(value: string);
|
|
29
|
+
get screenMode(): ScreenMode | 'auto';
|
|
30
|
+
set screenMode(value: ScreenMode | 'auto');
|
|
31
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import '@luzmo/lucero/notice';
|
|
2
|
+
import { type PropertyValues } from 'lit';
|
|
3
|
+
import './grid/dashboard-next-grid';
|
|
4
|
+
import { type DashboardTransitionResult } from './data/dashboard-variants-controller';
|
|
5
|
+
import type { DashboardMode } from './state/runtime/dashboard-runtime-state';
|
|
6
|
+
import { DashboardConfiguredElement } from './dashboard-configured-element';
|
|
7
|
+
import { dashboardWorkspace } from './state/dashboard-workspace';
|
|
8
|
+
import type { DashboardOptions } from './state/config/dashboard-chart-types';
|
|
9
|
+
import type { DashboardTarget } from './data/dashboard-variants-api';
|
|
10
|
+
export { DEFAULT_CHART_TYPES } from './state/config/dashboard-chart-types';
|
|
11
|
+
export type { DashboardOptions } from './state/config/dashboard-chart-types';
|
|
12
|
+
export type { DashboardTarget } from './data/dashboard-variants-api';
|
|
13
|
+
export type { DashboardMode } from './state/runtime/dashboard-runtime-state';
|
|
14
|
+
export type { DashboardNextTranslations } from './localization/dashboard-next-translations';
|
|
15
|
+
export type { EditableAppearanceOptions } from './settings/appearance/dashboard-appearance-config';
|
|
16
|
+
export type { DashboardTransitionResult } from './data/dashboard-variants-controller';
|
|
17
|
+
export interface DashboardStatus {
|
|
18
|
+
readonly target?: Readonly<DashboardTarget>;
|
|
19
|
+
readonly editMode: DashboardMode;
|
|
20
|
+
readonly loadStatus: 'idle' | 'loading' | 'loaded' | 'error';
|
|
21
|
+
readonly saveStatus: 'idle' | 'saving' | 'error';
|
|
22
|
+
readonly dirty: boolean;
|
|
23
|
+
readonly canEdit: boolean;
|
|
24
|
+
readonly canUndo: boolean;
|
|
25
|
+
readonly canRedo: boolean;
|
|
26
|
+
readonly selectedItemId?: string;
|
|
27
|
+
readonly showBackground: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface DashboardEditModeChangedEventDetail {
|
|
30
|
+
editMode: DashboardMode;
|
|
31
|
+
previousEditMode: DashboardMode;
|
|
32
|
+
}
|
|
33
|
+
export declare class LuzmoDashboardNext extends DashboardConfiguredElement<DashboardOptions> {
|
|
34
|
+
private readonly stores;
|
|
35
|
+
private get runtime();
|
|
36
|
+
private get documentKey();
|
|
37
|
+
private get loadStatus();
|
|
38
|
+
private readonly renderer;
|
|
39
|
+
private readonly metadata;
|
|
40
|
+
private readonly content;
|
|
41
|
+
private readonly settings;
|
|
42
|
+
private readonly loading;
|
|
43
|
+
private readonly variants;
|
|
44
|
+
private readonly variantManagement;
|
|
45
|
+
readonly [dashboardWorkspace]: import("./state/dashboard-workspace").DashboardWorkspace;
|
|
46
|
+
private unsubscribeRuntime?;
|
|
47
|
+
private renderedScreenMode?;
|
|
48
|
+
private gridRenderKey;
|
|
49
|
+
private experimentalWarningShown;
|
|
50
|
+
private dashboardLoadPending;
|
|
51
|
+
constructor();
|
|
52
|
+
get editMode(): DashboardMode;
|
|
53
|
+
set editMode(mode: DashboardMode);
|
|
54
|
+
setEditMode(mode: DashboardMode, options?: {
|
|
55
|
+
discardChanges?: boolean;
|
|
56
|
+
}): DashboardTransitionResult;
|
|
57
|
+
private readonly views;
|
|
58
|
+
private get layout();
|
|
59
|
+
static styles: import("lit").CSSResult[];
|
|
60
|
+
connectedCallback(): void;
|
|
61
|
+
disconnectedCallback(): void;
|
|
62
|
+
protected willUpdate(changes: PropertyValues): void;
|
|
63
|
+
protected updated(): void;
|
|
64
|
+
getStatus(): DashboardStatus;
|
|
65
|
+
openDashboard(target: DashboardTarget, options?: {
|
|
66
|
+
useDefault?: boolean;
|
|
67
|
+
discardChanges?: boolean;
|
|
68
|
+
}): Promise<DashboardTransitionResult>;
|
|
69
|
+
undo(): boolean;
|
|
70
|
+
redo(): boolean;
|
|
71
|
+
addChart(type: string, { afterItemId }?: {
|
|
72
|
+
afterItemId?: string;
|
|
73
|
+
}): Promise<string | undefined>;
|
|
74
|
+
reloadDashboard(): Promise<void>;
|
|
75
|
+
save(): Promise<boolean>;
|
|
76
|
+
discard(): void;
|
|
77
|
+
private hasSlotContent;
|
|
78
|
+
private accessIdentity;
|
|
79
|
+
private finalizeInteractions;
|
|
80
|
+
protected render(): import("lit-html").TemplateResult<1>;
|
|
81
|
+
}
|
|
82
|
+
declare global {
|
|
83
|
+
interface HTMLElementTagNameMap {
|
|
84
|
+
'luzmo-dashboard-next': LuzmoDashboardNext;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dashboardNextStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DashboardConfigState } from '../state/config/dashboard-config-store';
|
|
2
|
+
export type DashboardAccess = Required<Pick<DashboardConfigState, 'apiHost' | 'authKey' | 'authToken'>>;
|
|
3
|
+
export declare class DashboardRequestError extends Error {
|
|
4
|
+
readonly status: number;
|
|
5
|
+
constructor(status: number);
|
|
6
|
+
}
|
|
7
|
+
export declare function requestDashboardResource(access: DashboardAccess, resource: 'securable' | 'securableversion' | 'user' | 'authorization' | 'customchart' | 'aifeedback' | 'aiconversation' | 'integrationview', payload: {
|
|
8
|
+
action: string;
|
|
9
|
+
} & Record<string, unknown>, signal?: AbortSignal): Promise<unknown>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { OptionsConfig, SlotConfig, TranslationsFile } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { type DashboardAccess } from './dashboard-api';
|
|
3
|
+
export interface DashboardCustomChart {
|
|
4
|
+
id: string;
|
|
5
|
+
type: string;
|
|
6
|
+
name: Record<string, string>;
|
|
7
|
+
slotsConfig: SlotConfig[];
|
|
8
|
+
optionsConfig?: OptionsConfig;
|
|
9
|
+
translations?: Record<string, {
|
|
10
|
+
slots?: Record<string, {
|
|
11
|
+
label?: string;
|
|
12
|
+
}>;
|
|
13
|
+
options?: Record<string, unknown> & {
|
|
14
|
+
groups?: TranslationsFile['groups'];
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
17
|
+
}
|
|
18
|
+
export declare function loadDashboardCustomCharts(access: DashboardAccess, signal: AbortSignal): Promise<DashboardCustomChart[]>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DashboardNextLabels } from '../localization/dashboard-next-translations';
|
|
2
|
+
export type DashboardErrorReason = 'authentication' | 'permission' | 'missing' | 'network' | 'rate-limit' | 'request';
|
|
3
|
+
export declare function dashboardErrorReason(error: unknown): DashboardErrorReason;
|
|
4
|
+
export declare function dashboardErrorTranslationKey(reason?: DashboardErrorReason): keyof DashboardNextLabels | undefined;
|
|
5
|
+
export declare function dashboardErrorMessage(reason: DashboardErrorReason | undefined, labels: DashboardNextLabels, fallback: string): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
+
import type { DashboardStores } from '../state/dashboard-stores';
|
|
3
|
+
import type { DashboardContentController } from '../state/content/dashboard-content-controller';
|
|
4
|
+
import type { DashboardSettingsController } from '../settings/dashboard-settings-controller';
|
|
5
|
+
import type { DashboardMetadataController } from './dashboard-metadata-controller';
|
|
6
|
+
import type { DashboardTarget } from './dashboard-variants-api';
|
|
7
|
+
export declare class DashboardLoadingController implements ReactiveController {
|
|
8
|
+
private readonly host;
|
|
9
|
+
private readonly stores;
|
|
10
|
+
private readonly content;
|
|
11
|
+
private readonly settings;
|
|
12
|
+
private readonly metadata;
|
|
13
|
+
private request?;
|
|
14
|
+
constructor(host: ReactiveControllerHost & HTMLElement, stores: DashboardStores, content: DashboardContentController, settings: DashboardSettingsController, metadata: DashboardMetadataController);
|
|
15
|
+
load(target?: DashboardTarget, options?: {
|
|
16
|
+
discardCurrent?: boolean;
|
|
17
|
+
reload?: boolean;
|
|
18
|
+
useDefault?: boolean;
|
|
19
|
+
}): Promise<boolean>;
|
|
20
|
+
hostDisconnected(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
+
import type { DashboardStores } from '../state/dashboard-stores';
|
|
3
|
+
import type { DashboardConfigState } from '../state/config/dashboard-config-store';
|
|
4
|
+
import { type DashboardDatasetFields } from '../settings/data/dashboard-data-metadata';
|
|
5
|
+
export declare class DashboardMetadataController implements ReactiveController {
|
|
6
|
+
private readonly host;
|
|
7
|
+
readonly stores: DashboardStores;
|
|
8
|
+
private scope?;
|
|
9
|
+
private request?;
|
|
10
|
+
private catalog?;
|
|
11
|
+
private fields;
|
|
12
|
+
constructor(host: ReactiveControllerHost & HTMLElement, stores: DashboardStores);
|
|
13
|
+
private get metadata();
|
|
14
|
+
update(): void;
|
|
15
|
+
matches(access?: Pick<DashboardConfigState, 'apiHost' | 'authKey' | 'authToken'>): boolean;
|
|
16
|
+
configure(): void;
|
|
17
|
+
getCached(datasetIds: string[]): DashboardDatasetFields | undefined;
|
|
18
|
+
getDatasets(): DashboardDatasetFields | undefined;
|
|
19
|
+
preload(datasetIds: string[]): void;
|
|
20
|
+
load(datasetIds: string[], retry?: boolean): Promise<DashboardDatasetFields>;
|
|
21
|
+
hostDisconnected(): void;
|
|
22
|
+
private requiredIds;
|
|
23
|
+
private setFields;
|
|
24
|
+
private reset;
|
|
25
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DashboardPermissions } from '../state/runtime/dashboard-runtime-state';
|
|
2
|
+
import { type DashboardAccess } from './dashboard-api';
|
|
3
|
+
import type { DashboardTarget } from './dashboard-variants-api';
|
|
4
|
+
export interface DashboardPermissionUser {
|
|
5
|
+
id: string;
|
|
6
|
+
flags?: string[];
|
|
7
|
+
organizations?: {
|
|
8
|
+
organizationRole?: {
|
|
9
|
+
flagEditor?: boolean;
|
|
10
|
+
};
|
|
11
|
+
}[];
|
|
12
|
+
}
|
|
13
|
+
export declare function canCreateDashboardVariants(user: DashboardPermissionUser | undefined): boolean;
|
|
14
|
+
export declare function loadDashboardPermissions(access: DashboardAccess, target: DashboardTarget, signal: AbortSignal): Promise<DashboardPermissions>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
+
import type { DashboardDefinition } from '../../shared/models/dashboard-definition.model';
|
|
3
|
+
import type { DashboardStores } from '../state/dashboard-stores';
|
|
4
|
+
export declare class DashboardRendererController implements ReactiveController {
|
|
5
|
+
private readonly host;
|
|
6
|
+
private readonly stores;
|
|
7
|
+
private readonly scopes;
|
|
8
|
+
private readonly requests;
|
|
9
|
+
private sequence;
|
|
10
|
+
private refreshPending;
|
|
11
|
+
private readonly refreshTargets;
|
|
12
|
+
private readonly unsubscribers;
|
|
13
|
+
constructor(host: ReactiveControllerHost & HTMLElement, stores: DashboardStores);
|
|
14
|
+
hostConnected(): void;
|
|
15
|
+
hostDisconnected(): void;
|
|
16
|
+
createVizItem(itemId?: string): Promise<HTMLElement | undefined>;
|
|
17
|
+
normalizeDashboardDefinition(document: DashboardDefinition): Promise<DashboardDefinition>;
|
|
18
|
+
private setRenderState;
|
|
19
|
+
markVizItemPending(element: HTMLElement): void;
|
|
20
|
+
releaseVizItem(element: HTMLElement): void;
|
|
21
|
+
private createPort;
|
|
22
|
+
private getActiveView;
|
|
23
|
+
private getDashboardFilters;
|
|
24
|
+
private getFilterSources;
|
|
25
|
+
private request;
|
|
26
|
+
private cancel;
|
|
27
|
+
private scheduleRefresh;
|
|
28
|
+
private dispose;
|
|
29
|
+
private reset;
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
+
import type { DashboardStores } from '../state/dashboard-stores';
|
|
3
|
+
import { type DashboardTarget } from './dashboard-variants-api';
|
|
4
|
+
import type { DashboardLoadingController } from './dashboard-loading-controller';
|
|
5
|
+
export declare class DashboardVariantManagementController implements ReactiveController {
|
|
6
|
+
private readonly host;
|
|
7
|
+
private readonly stores;
|
|
8
|
+
private readonly loading;
|
|
9
|
+
private readonly variants;
|
|
10
|
+
private request?;
|
|
11
|
+
private unsubscribers;
|
|
12
|
+
constructor(host: ReactiveControllerHost & HTMLElement, stores: DashboardStores, loading: Pick<DashboardLoadingController, 'load'>, variants: {
|
|
13
|
+
loadCatalog(refresh?: boolean): Promise<boolean>;
|
|
14
|
+
});
|
|
15
|
+
private get state();
|
|
16
|
+
get isDefault(): boolean;
|
|
17
|
+
isDefaultTarget(target: DashboardTarget): boolean;
|
|
18
|
+
canSetDefaultFor(target: DashboardTarget): boolean;
|
|
19
|
+
private get available();
|
|
20
|
+
get canSetDefault(): boolean;
|
|
21
|
+
get canDelete(): boolean;
|
|
22
|
+
setDefault(target?: DashboardTarget | undefined): Promise<boolean>;
|
|
23
|
+
requestDelete(): void;
|
|
24
|
+
cancel(): void;
|
|
25
|
+
confirmDelete(): Promise<boolean>;
|
|
26
|
+
private fail;
|
|
27
|
+
hostConnected(): void;
|
|
28
|
+
private reset;
|
|
29
|
+
hostDisconnected(): void;
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { DashboardContentState } from '../state/content/dashboard-content-state';
|
|
2
|
+
import { type DashboardAccess } from './dashboard-api';
|
|
3
|
+
export type { DashboardAccess } from './dashboard-api';
|
|
4
|
+
export interface DashboardTarget {
|
|
5
|
+
dashboardId: string;
|
|
6
|
+
variantId?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DashboardSummary {
|
|
9
|
+
id: string;
|
|
10
|
+
name: Record<string, string>;
|
|
11
|
+
is_variant?: boolean;
|
|
12
|
+
original_id?: string;
|
|
13
|
+
owner_id?: string;
|
|
14
|
+
updated_at?: string;
|
|
15
|
+
isFavorite?: boolean;
|
|
16
|
+
groupFavoriteAt?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface DashboardCatalog {
|
|
19
|
+
userId?: string;
|
|
20
|
+
canCreateVariants: boolean;
|
|
21
|
+
dashboards: DashboardSummary[];
|
|
22
|
+
}
|
|
23
|
+
export declare function loadDashboardCatalog(access: DashboardAccess, signal: AbortSignal): Promise<DashboardCatalog>;
|
|
24
|
+
export declare function setDashboardDefault(access: DashboardAccess, userId: string, id: string, signal: AbortSignal): Promise<void>;
|
|
25
|
+
export declare function deleteDashboardVariant(access: DashboardAccess, id: string, signal: AbortSignal): Promise<void>;
|
|
26
|
+
export declare function saveDashboardDocument(access: DashboardAccess, target: {
|
|
27
|
+
id: string;
|
|
28
|
+
} | {
|
|
29
|
+
originalId: string;
|
|
30
|
+
}, document: DashboardContentState, name: Record<string, string>, signal: AbortSignal): Promise<string>;
|