@luzmo/embed 9.1.0 → 10.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/MIGRATIONS.md +6 -0
- package/index.cjs +46 -9
- package/index.dashboard-analyst.cjs +9894 -0
- package/index.dashboard-analyst.js +9886 -0
- package/index.dashboard-next.cjs +6647 -0
- package/index.dashboard-next.js +6634 -0
- package/index.js +44 -9
- 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 +176230 -0
- package/luzmo-dashboard-next.min.js +159886 -0
- package/luzmo-embed.min.js +170 -135
- package/package.json +20 -2
- 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
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ThemeConfig } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import type { DashboardContentState } from '../state/content/dashboard-content-state';
|
|
3
|
+
import { type DashboardAccess } from './dashboard-api';
|
|
4
|
+
import type { DashboardTarget } from './dashboard-variants-api';
|
|
5
|
+
export interface DashboardDefinitionRequest extends DashboardAccess {
|
|
6
|
+
dashboardId: string;
|
|
7
|
+
variantId?: string;
|
|
8
|
+
useDefault?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface LoadedDashboardDefinition {
|
|
11
|
+
document: DashboardContentState;
|
|
12
|
+
themes: {
|
|
13
|
+
id: string;
|
|
14
|
+
theme: ThemeConfig;
|
|
15
|
+
}[];
|
|
16
|
+
target?: DashboardTarget;
|
|
17
|
+
defaultVersionId?: string;
|
|
18
|
+
dashboardName?: Record<string, string>;
|
|
19
|
+
tokenTimezoneId?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare function loadDashboardDefinition(request: DashboardDefinitionRequest, signal: AbortSignal): Promise<LoadedDashboardDefinition>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type DashboardViews } from '../views/dashboard-views';
|
|
2
|
+
import { type DashboardDefinitionRequest } from './load-dashboard-definition';
|
|
3
|
+
export type DashboardLayoutRequest = DashboardDefinitionRequest;
|
|
4
|
+
export declare function loadDashboardLayout(request: DashboardLayoutRequest, signal: AbortSignal): Promise<DashboardViews>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ItemGridBase } from '@luzmo/analytics-components-kit/grid-core';
|
|
2
|
+
import type { ScreenMode } from '@luzmo/dashboard-contents-types';
|
|
3
|
+
import type { ReactiveController } from 'lit';
|
|
4
|
+
import type { DashboardStores } from '../state/dashboard-stores';
|
|
5
|
+
type LayoutHost = ItemGridBase & {
|
|
6
|
+
stores?: DashboardStores;
|
|
7
|
+
screenMode?: ScreenMode;
|
|
8
|
+
readonly contentRevision: number;
|
|
9
|
+
};
|
|
10
|
+
export declare class DashboardGridLayoutController implements ReactiveController {
|
|
11
|
+
private readonly host;
|
|
12
|
+
private interaction?;
|
|
13
|
+
private completionTimer?;
|
|
14
|
+
constructor(host: LayoutHost);
|
|
15
|
+
private readonly begin;
|
|
16
|
+
private readonly changed;
|
|
17
|
+
private readonly committed;
|
|
18
|
+
private readonly cancel;
|
|
19
|
+
private readonly finish;
|
|
20
|
+
hostConnected(): void;
|
|
21
|
+
hostDisconnected(): void;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dashboardLayoutSkeletonStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import '@luzmo/lucero/notice';
|
|
2
|
+
import '@luzmo/lucero/button';
|
|
3
|
+
import type { ScreenMode, ThemeConfig } from '@luzmo/dashboard-contents-types';
|
|
4
|
+
import { ItemGridBase, type GridItemData } from '@luzmo/analytics-components-kit/grid-core';
|
|
5
|
+
import { type PropertyValues, type CSSResultArray, type TemplateResult } from 'lit';
|
|
6
|
+
import '@luzmo/lucero/action-button';
|
|
7
|
+
import '@luzmo/lucero/menu';
|
|
8
|
+
import '@luzmo/lucero/icon';
|
|
9
|
+
import '@luzmo/lucero/skeleton-loader';
|
|
10
|
+
import '@luzmo/lucero/tooltip';
|
|
11
|
+
import type { DashboardLayoutItem } from '../state/content/dashboard-content-state';
|
|
12
|
+
import type { DashboardStores } from '../state/dashboard-stores';
|
|
13
|
+
import type { DashboardRendererController } from '../data/dashboard-renderer-controller';
|
|
14
|
+
export interface DashboardGridAction {
|
|
15
|
+
action: 'duplicate' | 'remove' | 'layout';
|
|
16
|
+
itemId: string;
|
|
17
|
+
duplicateId?: string;
|
|
18
|
+
screenMode?: ScreenMode;
|
|
19
|
+
items: DashboardLayoutItem[];
|
|
20
|
+
revision: number;
|
|
21
|
+
}
|
|
22
|
+
export declare class LuzmoDashboardNextGrid extends ItemGridBase {
|
|
23
|
+
get layoutEditingEnabled(): boolean;
|
|
24
|
+
get contentRevision(): number;
|
|
25
|
+
constructor();
|
|
26
|
+
private readonly onItemStatesChanged;
|
|
27
|
+
openChartSettings(itemId: string, active?: boolean): void;
|
|
28
|
+
private dispatchGridAction;
|
|
29
|
+
private applyMenuAction;
|
|
30
|
+
private readonly chartNames;
|
|
31
|
+
private readonly definitions;
|
|
32
|
+
renderer?: DashboardRendererController;
|
|
33
|
+
stores?: DashboardStores;
|
|
34
|
+
private subscriptions;
|
|
35
|
+
get dashboardId(): string | undefined;
|
|
36
|
+
get authKey(): string | undefined;
|
|
37
|
+
get authToken(): string | undefined;
|
|
38
|
+
get appServer(): string | undefined;
|
|
39
|
+
get apiHost(): string | undefined;
|
|
40
|
+
get screenMode(): ScreenMode | undefined;
|
|
41
|
+
get editorMode(): boolean;
|
|
42
|
+
private get timezoneId();
|
|
43
|
+
private get showSettings();
|
|
44
|
+
get selectedItemId(): string | undefined;
|
|
45
|
+
get definitionVersion(): string | undefined;
|
|
46
|
+
get filterGroups(): import("@luzmo/dashboard-contents-types").ItemFilterGroup[] | undefined;
|
|
47
|
+
get editorLabels(): Readonly<import("../localization/dashboard-next-translations").DashboardNextLabels>;
|
|
48
|
+
connectedCallback(): void;
|
|
49
|
+
disconnectedCallback(): void;
|
|
50
|
+
protected willUpdate(changes: PropertyValues): void;
|
|
51
|
+
private subscribeStores;
|
|
52
|
+
protected resolveTheme(theme: ThemeConfig | undefined, currentTheme: ThemeConfig | undefined): Promise<ThemeConfig | undefined>;
|
|
53
|
+
protected updated(changes: PropertyValues): void;
|
|
54
|
+
static get styles(): CSSResultArray;
|
|
55
|
+
protected renderItemContent(item: GridItemData): TemplateResult;
|
|
56
|
+
protected getItemRenderDependencies(): readonly unknown[];
|
|
57
|
+
}
|
|
58
|
+
declare global {
|
|
59
|
+
interface HTMLElementTagNameMap {
|
|
60
|
+
'luzmo-dashboard-next-grid': LuzmoDashboardNextGrid;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dashboardNextGridStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { PropertyValues } from 'lit';
|
|
2
|
+
import { LuzmoBaseVizItem } from '../../viz-item/viz-item.base';
|
|
3
|
+
import type { DashboardDefinition, VizItemDefinition } from '../../shared/models/dashboard-definition.model';
|
|
4
|
+
import type { DashboardRendererController } from '../data/dashboard-renderer-controller';
|
|
5
|
+
export declare class LuzmoDashboardNextVizItem extends LuzmoBaseVizItem {
|
|
6
|
+
definition?: VizItemDefinition;
|
|
7
|
+
querySource?: 'dashboard';
|
|
8
|
+
chartElement: LuzmoBaseVizItem['chartElement'] & {
|
|
9
|
+
normalizeDashboardDefinition?: (document: DashboardDefinition) => DashboardDefinition | Promise<DashboardDefinition>;
|
|
10
|
+
};
|
|
11
|
+
renderer?: Pick<DashboardRendererController, 'createVizItem' | 'releaseVizItem' | 'markVizItemPending'>;
|
|
12
|
+
private pending?;
|
|
13
|
+
private element?;
|
|
14
|
+
normalizeDashboardDefinition(document: DashboardDefinition): Promise<DashboardDefinition>;
|
|
15
|
+
private updateDefinitionInputs;
|
|
16
|
+
protected loadVizItem(): Promise<boolean>;
|
|
17
|
+
protected createVizItemElement(): typeof this.chartElement;
|
|
18
|
+
updated(changes: PropertyValues<this>): Promise<void>;
|
|
19
|
+
disconnectedCallback(): void;
|
|
20
|
+
connectedCallback(): void;
|
|
21
|
+
}
|
|
22
|
+
declare global {
|
|
23
|
+
interface HTMLElementTagNameMap {
|
|
24
|
+
'luzmo-dashboard-next-viz-item': LuzmoDashboardNextVizItem;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactiveController, LitElement } from 'lit';
|
|
2
|
+
import type { DashboardStores } from '../state/dashboard-stores';
|
|
3
|
+
export declare class DashboardSkeletonMotionController implements ReactiveController {
|
|
4
|
+
private readonly host;
|
|
5
|
+
private readonly stores;
|
|
6
|
+
private origins;
|
|
7
|
+
private animations;
|
|
8
|
+
private frame?;
|
|
9
|
+
private stopWaiting?;
|
|
10
|
+
constructor(host: LitElement, stores: DashboardStores);
|
|
11
|
+
hostUpdate(): void;
|
|
12
|
+
hostUpdated(): void;
|
|
13
|
+
private cancel;
|
|
14
|
+
hostDisconnected(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ThemeConfig, ScreenMode } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import { type TemplateResult } from 'lit';
|
|
3
|
+
import type { GridItemData } from '@luzmo/analytics-components-kit/grid-core';
|
|
4
|
+
import type { VizItemDefinition } from '../../shared/models/dashboard-definition.model';
|
|
5
|
+
import type { DashboardRendererController } from '../data/dashboard-renderer-controller';
|
|
6
|
+
import './dashboard-next-viz-item';
|
|
7
|
+
export interface DashboardNextChartContext {
|
|
8
|
+
renderer?: DashboardRendererController;
|
|
9
|
+
dashboardId?: string;
|
|
10
|
+
screenMode?: ScreenMode;
|
|
11
|
+
appServer?: string;
|
|
12
|
+
apiHost?: string;
|
|
13
|
+
authKey?: string;
|
|
14
|
+
authToken?: string;
|
|
15
|
+
contentLanguage: string;
|
|
16
|
+
timezoneId?: string;
|
|
17
|
+
fullTheme?: ThemeConfig;
|
|
18
|
+
editorMode?: boolean;
|
|
19
|
+
definition?: VizItemDefinition;
|
|
20
|
+
onReady?: (chart: HTMLElement) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const renderDashboardNextChart: (item: GridItemData, { renderer, dashboardId, screenMode, appServer, apiHost, authKey, authToken, contentLanguage, timezoneId, fullTheme, editorMode, definition, onReady }: DashboardNextChartContext) => TemplateResult;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
export interface DashboardNextLabels {
|
|
2
|
+
agentTitle: string;
|
|
3
|
+
agentPlaceholder: string;
|
|
4
|
+
agentChartTypeUnavailable: string;
|
|
5
|
+
agentHistory: string;
|
|
6
|
+
agentNewChat: string;
|
|
7
|
+
agentSearchChats: string;
|
|
8
|
+
agentLoadingHistory: string;
|
|
9
|
+
agentLoadingConversation: string;
|
|
10
|
+
agentNoChats: string;
|
|
11
|
+
agentNoMatchingChats: string;
|
|
12
|
+
agentHistoryError: string;
|
|
13
|
+
agentConversationError: string;
|
|
14
|
+
agentRenameChat: string;
|
|
15
|
+
agentDeleteChat: string;
|
|
16
|
+
agentChatActions: string;
|
|
17
|
+
agentRenameError: string;
|
|
18
|
+
agentDeleteError: string;
|
|
19
|
+
agentDeleteChatPrompt: string;
|
|
20
|
+
agentToday: string;
|
|
21
|
+
agentPrevious7Days: string;
|
|
22
|
+
agentOlder: string;
|
|
23
|
+
agentFeedbackFailed: string;
|
|
24
|
+
agentOpen: string;
|
|
25
|
+
agentClose: string;
|
|
26
|
+
agentBusy: string;
|
|
27
|
+
agentResize: string;
|
|
28
|
+
agentWorking: string;
|
|
29
|
+
agentEditing: string;
|
|
30
|
+
agentEditModeRequired: string;
|
|
31
|
+
agentUpdateFailed: string;
|
|
32
|
+
agentUpdateStale: string;
|
|
33
|
+
addChart: string;
|
|
34
|
+
noticeError: string;
|
|
35
|
+
noticeWarning: string;
|
|
36
|
+
noticeInfo: string;
|
|
37
|
+
opensVersion: string;
|
|
38
|
+
errorAuthentication: string;
|
|
39
|
+
errorPermission: string;
|
|
40
|
+
errorMissing: string;
|
|
41
|
+
errorConnection: string;
|
|
42
|
+
errorRateLimit: string;
|
|
43
|
+
errorPermissionsLoad: string;
|
|
44
|
+
chartLoadingError: string;
|
|
45
|
+
searchCharts: string;
|
|
46
|
+
chartGroupCharts: string;
|
|
47
|
+
chartGroupNumbersTables: string;
|
|
48
|
+
chartGroupFilters: string;
|
|
49
|
+
noChartTypes: string;
|
|
50
|
+
recentDashboards: string;
|
|
51
|
+
questionTitle: string;
|
|
52
|
+
questionSummarize: string;
|
|
53
|
+
questionCompare: string;
|
|
54
|
+
questionPlanDashboard: string;
|
|
55
|
+
questionNewDashboard: string;
|
|
56
|
+
questionCreationUnavailable: string;
|
|
57
|
+
chartChooseData: string;
|
|
58
|
+
chooseData: string;
|
|
59
|
+
defaultVersion: string;
|
|
60
|
+
setAsDefault: string;
|
|
61
|
+
setDefaultError: string;
|
|
62
|
+
deleteVariant: string;
|
|
63
|
+
deleteVariantPrompt: string;
|
|
64
|
+
deleteVariantUnsaved: string;
|
|
65
|
+
deleteVariantError: string;
|
|
66
|
+
deletedVariant: string;
|
|
67
|
+
deletedVariantLoadError: string;
|
|
68
|
+
deleting: string;
|
|
69
|
+
variantName: string;
|
|
70
|
+
variantNameRequired: string;
|
|
71
|
+
cancel: string;
|
|
72
|
+
untitledDashboard: string;
|
|
73
|
+
variantCount: string;
|
|
74
|
+
oneVariant: string;
|
|
75
|
+
myVariant: string;
|
|
76
|
+
save: string;
|
|
77
|
+
saveAsVariant: string;
|
|
78
|
+
saving: string;
|
|
79
|
+
unsavedChanges: string;
|
|
80
|
+
saveError: string;
|
|
81
|
+
dashboardPicker: string;
|
|
82
|
+
searchDashboards: string;
|
|
83
|
+
noDashboards: string;
|
|
84
|
+
loadingDashboards: string;
|
|
85
|
+
catalogError: string;
|
|
86
|
+
template: string;
|
|
87
|
+
editedOn: string;
|
|
88
|
+
switchError: string;
|
|
89
|
+
unsavedChangesTitle: string;
|
|
90
|
+
unsavedChangesPrompt: string;
|
|
91
|
+
unsavedVariantPrompt: string;
|
|
92
|
+
keepEditing: string;
|
|
93
|
+
discardChanges: string;
|
|
94
|
+
edit: string;
|
|
95
|
+
done: string;
|
|
96
|
+
undo: string;
|
|
97
|
+
redo: string;
|
|
98
|
+
toolbar: string;
|
|
99
|
+
initializing: string;
|
|
100
|
+
errorDashboard: string;
|
|
101
|
+
editChart: string;
|
|
102
|
+
chartActions: string;
|
|
103
|
+
duplicateChart: string;
|
|
104
|
+
removeChart: string;
|
|
105
|
+
chartSettings: string;
|
|
106
|
+
closeSettings: string;
|
|
107
|
+
settingsData: string;
|
|
108
|
+
settingsFilters: string;
|
|
109
|
+
settingsAppearance: string;
|
|
110
|
+
settingsDataset: string;
|
|
111
|
+
settingsUnknownDataset: string;
|
|
112
|
+
settingsIncompatibleData: string;
|
|
113
|
+
settingsInvalidFilters: string;
|
|
114
|
+
settingsReadOnlyFilters: string;
|
|
115
|
+
settingsChartType: string;
|
|
116
|
+
settingsColumnChart: string;
|
|
117
|
+
settingsSearchChartTypes: string;
|
|
118
|
+
settingsUpdatingChart: string;
|
|
119
|
+
settingsNoChartTypes: string;
|
|
120
|
+
settingsTypeConversionFailed: string;
|
|
121
|
+
settingsConversionWarning: string;
|
|
122
|
+
settingsConfirmType: string;
|
|
123
|
+
settingsAssignedField: string;
|
|
124
|
+
settingsUnavailable: string;
|
|
125
|
+
settingsMetadataError: string;
|
|
126
|
+
settingsRetry: string;
|
|
127
|
+
settingsLoadingDatasets: string;
|
|
128
|
+
settingsNoDatasets: string;
|
|
129
|
+
settingsParameterFilters: string;
|
|
130
|
+
}
|
|
131
|
+
export type DashboardNextTranslations = Partial<DashboardNextLabels>;
|
|
132
|
+
export declare const dashboardNextTranslations: {
|
|
133
|
+
readonly en: Readonly<DashboardNextLabels>;
|
|
134
|
+
} & Readonly<Record<string, Readonly<DashboardNextLabels>>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function formatDashboardRelativeDate(date: Date, locale: string): string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type DashboardNextLabels, type DashboardNextTranslations } from './dashboard-next-translations';
|
|
2
|
+
export declare function resolveDashboardNextTranslation(editorLanguage: string, key: keyof DashboardNextLabels, overrides?: DashboardNextTranslations): {
|
|
3
|
+
text: string;
|
|
4
|
+
language: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function resolveDashboardNextTranslations(editorLanguage: string, overrides?: DashboardNextTranslations): DashboardNextLabels;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type OptionConfig, type OptionsConfig, type SlotConfig, type TranslationsFile, type VizItemOptions, type VizItemType } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import type { VizItemDefinition } from '../../../shared/models/dashboard-definition.model';
|
|
3
|
+
import type { DashboardAccess } from '../../data/dashboard-api';
|
|
4
|
+
export type EditableAppearanceOptions = Readonly<Partial<Record<VizItemType, readonly string[]>>>;
|
|
5
|
+
export interface DashboardChartType {
|
|
6
|
+
value: string;
|
|
7
|
+
type?: VizItemType;
|
|
8
|
+
label: string;
|
|
9
|
+
slotsConfig?: SlotConfig[];
|
|
10
|
+
customChartId?: string;
|
|
11
|
+
optionsConfig?: OptionsConfig;
|
|
12
|
+
translations?: TranslationsFile;
|
|
13
|
+
}
|
|
14
|
+
export declare function dashboardChartTypeValue(definition: Pick<VizItemDefinition, 'type' | 'customChartId'>): string;
|
|
15
|
+
type AppearanceContext = Parameters<NonNullable<OptionConfig['visibleIf']>>[0];
|
|
16
|
+
export declare function appearanceControlConfigs(configs: OptionConfig[], context?: AppearanceContext): OptionConfig[];
|
|
17
|
+
export declare function resolveDashboardAppearanceKeys(type: VizItemType, configured?: EditableAppearanceOptions, context?: AppearanceContext, customConfiguration?: OptionsConfig): Promise<string[]>;
|
|
18
|
+
export declare function loadDashboardChartTypes(language: string, access?: DashboardAccess, signal?: AbortSignal): Promise<DashboardChartType[]>;
|
|
19
|
+
export declare function applyDashboardAppearanceOption(current: VizItemOptions, key: string, updated: Record<string, unknown>): VizItemOptions;
|
|
20
|
+
export {};
|
package/src/lib/dashboard-next/settings/appearance/dashboard-appearance-settings-controller.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { ReactiveControllerHost } from 'lit';
|
|
2
|
+
import type { OptionsConfig, OptionConfig } from '@luzmo/dashboard-contents-types';
|
|
3
|
+
import type { ItemOptionInteractionEventDetail, ItemOptionsChangedEventDetail } from '@luzmo/analytics-components-kit/item-option';
|
|
4
|
+
import { DashboardEditorController } from '../dashboard-editor-controller';
|
|
5
|
+
import type { DashboardChartSettingsContext } from '../dashboard-chart-settings-context';
|
|
6
|
+
import type { DashboardConfigState } from '../../state/config/dashboard-config-store';
|
|
7
|
+
import type { DashboardStores } from '../../state/dashboard-stores';
|
|
8
|
+
export declare class DashboardAppearanceSettingsController extends DashboardEditorController<'appearance'> {
|
|
9
|
+
private controlsGeneration;
|
|
10
|
+
private catalogGeneration;
|
|
11
|
+
private conversionGeneration;
|
|
12
|
+
private readonly interactions;
|
|
13
|
+
private readonly emittedOptions;
|
|
14
|
+
private catalogCheck?;
|
|
15
|
+
private catalogRequest?;
|
|
16
|
+
constructor(host: ReactiveControllerHost & HTMLElement & {
|
|
17
|
+
stores?: DashboardStores;
|
|
18
|
+
});
|
|
19
|
+
protected contextChanged(previous?: DashboardChartSettingsContext, previousConfig?: DashboardConfigState): void;
|
|
20
|
+
get usesOptionPanel(): boolean;
|
|
21
|
+
get customOptionsConfiguration(): OptionsConfig | undefined;
|
|
22
|
+
get customTranslations(): import("@luzmo/dashboard-contents-types").TranslationsFile | undefined;
|
|
23
|
+
customOption(key: string): OptionConfig | undefined;
|
|
24
|
+
get panelGeneration(): number;
|
|
25
|
+
inputPanelOptions(context: DashboardChartSettingsContext): Record<string, unknown>;
|
|
26
|
+
changePanelOptions(event: CustomEvent<ItemOptionsChangedEventDetail>, context: DashboardChartSettingsContext): void;
|
|
27
|
+
inputOptions(key: string, context: DashboardChartSettingsContext): Record<string, unknown>;
|
|
28
|
+
startInteraction(key: string, event: CustomEvent<ItemOptionInteractionEventDetail>, context: DashboardChartSettingsContext): void;
|
|
29
|
+
endInteraction(key: string, event: CustomEvent<ItemOptionInteractionEventDetail>, context: DashboardChartSettingsContext): void;
|
|
30
|
+
cancelInteraction(key: string, event: CustomEvent<ItemOptionInteractionEventDetail>): void;
|
|
31
|
+
endInteractions(): void;
|
|
32
|
+
changeOption(key: string, event: CustomEvent<ItemOptionsChangedEventDetail>, context: DashboardChartSettingsContext): void;
|
|
33
|
+
selectType(type: string, context: DashboardChartSettingsContext): Promise<void>;
|
|
34
|
+
changeType(type: string, context: DashboardChartSettingsContext): Promise<void>;
|
|
35
|
+
confirmType(context: DashboardChartSettingsContext): void;
|
|
36
|
+
cancelType(): void;
|
|
37
|
+
get droppedFieldLabels(): string[];
|
|
38
|
+
private clearInteractions;
|
|
39
|
+
private closeInteraction;
|
|
40
|
+
private emittedChanges;
|
|
41
|
+
private isCurrentControl;
|
|
42
|
+
private interactionOf;
|
|
43
|
+
private dispatchInteraction;
|
|
44
|
+
hostDisconnected(): void;
|
|
45
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import '@luzmo/lucero/notice';
|
|
2
|
+
import '@luzmo/analytics-components-kit/item-option-panel';
|
|
3
|
+
import { LitElement } from 'lit';
|
|
4
|
+
import type { DashboardStores } from '../../state/dashboard-stores';
|
|
5
|
+
import '@luzmo/lucero/field-label';
|
|
6
|
+
import '@luzmo/lucero/button';
|
|
7
|
+
import '@luzmo/analytics-components-kit/item-option';
|
|
8
|
+
export declare class DashboardAppearanceSettings extends LitElement {
|
|
9
|
+
stores?: DashboardStores;
|
|
10
|
+
private readonly controller;
|
|
11
|
+
endInteractions(): void;
|
|
12
|
+
static styles: import("lit").CSSResult[];
|
|
13
|
+
protected render(): import("lit-html").TemplateResult<1> | null;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dashboardAppearanceSettingsStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type VizItemSlot } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import type { VizItemDefinition } from '../../../shared/models/dashboard-definition.model';
|
|
3
|
+
import type { DashboardChartChange } from '../../state/content/dashboard-content-state';
|
|
4
|
+
import { type DashboardChartType } from './dashboard-appearance-config';
|
|
5
|
+
export interface DashboardChartTypePreview {
|
|
6
|
+
patch: DashboardChartChange;
|
|
7
|
+
dropped: VizItemSlot[];
|
|
8
|
+
}
|
|
9
|
+
export declare function previewDashboardChartType(definition: VizItemDefinition, value: string, catalog?: readonly DashboardChartType[]): Promise<DashboardChartTypePreview>;
|
|
10
|
+
export declare function convertDashboardChartType(definition: VizItemDefinition, value: string, catalog?: readonly DashboardChartType[]): Promise<DashboardChartChange>;
|
|
11
|
+
export declare function filterDashboardChartTypes(definition: VizItemDefinition, types: readonly DashboardChartType[]): DashboardChartType[];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ScreenMode, ThemeConfig } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import type { VizItemDefinition } from '../../shared/models/dashboard-definition.model';
|
|
3
|
+
import type { DashboardOptionChange } from '../state/content/dashboard-option-changes';
|
|
4
|
+
export interface DashboardChartSettingsContext {
|
|
5
|
+
definition: VizItemDefinition;
|
|
6
|
+
revision: number;
|
|
7
|
+
itemId: string;
|
|
8
|
+
screenMode: ScreenMode;
|
|
9
|
+
documentGeneration: number;
|
|
10
|
+
theme?: ThemeConfig;
|
|
11
|
+
timezone?: string;
|
|
12
|
+
}
|
|
13
|
+
export type DashboardChartInteractionEvents = {
|
|
14
|
+
'chart-interaction-start': {
|
|
15
|
+
id: string;
|
|
16
|
+
revision: number;
|
|
17
|
+
};
|
|
18
|
+
'chart-interaction-preview': {
|
|
19
|
+
id: string;
|
|
20
|
+
changes: DashboardOptionChange[];
|
|
21
|
+
};
|
|
22
|
+
'chart-interaction-end': {
|
|
23
|
+
id: string;
|
|
24
|
+
changed: boolean;
|
|
25
|
+
};
|
|
26
|
+
'chart-interaction-cancel': {
|
|
27
|
+
id: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare function chartDatasetIds(definition: Pick<VizItemDefinition, 'slots'>): string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dashboardChartSettingsStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { DashboardEditorState } from '../state/runtime/dashboard-editor-state';
|
|
5
|
+
import type { DashboardChartChange } from '../state/content/dashboard-content-state';
|
|
6
|
+
import type { DashboardChartSettingsContext } from './dashboard-chart-settings-context';
|
|
7
|
+
export declare abstract class DashboardEditorController<K extends keyof DashboardEditorState> implements ReactiveController {
|
|
8
|
+
protected readonly host: ReactiveControllerHost & HTMLElement & {
|
|
9
|
+
stores?: DashboardStores;
|
|
10
|
+
};
|
|
11
|
+
private readonly section;
|
|
12
|
+
private subscribed?;
|
|
13
|
+
private subscriptions;
|
|
14
|
+
private previousContext?;
|
|
15
|
+
private previousConfig?;
|
|
16
|
+
constructor(host: ReactiveControllerHost & HTMLElement & {
|
|
17
|
+
stores?: DashboardStores;
|
|
18
|
+
}, section: K);
|
|
19
|
+
get stores(): DashboardStores | undefined;
|
|
20
|
+
get runtime(): import("../state/runtime/dashboard-runtime-store").DashboardRuntimeStore | undefined;
|
|
21
|
+
get context(): DashboardChartSettingsContext | undefined;
|
|
22
|
+
get config(): DashboardConfigState | undefined;
|
|
23
|
+
get labels(): import("../localization/dashboard-next-translations").DashboardNextLabels | undefined;
|
|
24
|
+
get state(): DashboardEditorState[K];
|
|
25
|
+
protected update(patch: Partial<DashboardEditorState[K]>): void;
|
|
26
|
+
protected isCurrent(context: DashboardChartSettingsContext): boolean;
|
|
27
|
+
protected dispatchChange(context: DashboardChartSettingsContext, patch: DashboardChartChange): void;
|
|
28
|
+
protected abstract contextChanged(previous?: DashboardChartSettingsContext, previousConfig?: DashboardConfigState): void;
|
|
29
|
+
hostUpdate(): void;
|
|
30
|
+
hostConnected(): void;
|
|
31
|
+
hostDisconnected(): void;
|
|
32
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DashboardStores } from '../state/dashboard-stores';
|
|
2
|
+
import type { DashboardMetadataController } from '../data/dashboard-metadata-controller';
|
|
3
|
+
import type { DashboardSettingsTab } from '../state/runtime/dashboard-runtime-state';
|
|
4
|
+
import './data/dashboard-data-settings';
|
|
5
|
+
import './filters/dashboard-filter-settings';
|
|
6
|
+
import './appearance/dashboard-appearance-settings';
|
|
7
|
+
export declare function renderDashboardSettingsContent(stores: DashboardStores, metadata: DashboardMetadataController, tabs: readonly DashboardSettingsTab[]): import("lit-html").TemplateResult<1>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
+
import type { ItemGridBase } from '@luzmo/analytics-components-kit/grid-core';
|
|
3
|
+
import type { DashboardStores } from '../state/dashboard-stores';
|
|
4
|
+
import type { DashboardContentController } from '../state/content/dashboard-content-controller';
|
|
5
|
+
import type { DashboardAddChartRequest, DashboardChartChange, DashboardContentTarget } from '../state/content/dashboard-content-state';
|
|
6
|
+
import type { DashboardSettingsTab } from '../state/runtime/dashboard-runtime-state';
|
|
7
|
+
import type { DashboardSettingsPopover } from './dashboard-settings-popover';
|
|
8
|
+
export interface DashboardSettingsRequest {
|
|
9
|
+
itemId: string;
|
|
10
|
+
active: boolean;
|
|
11
|
+
revision: number;
|
|
12
|
+
anchor: HTMLElement;
|
|
13
|
+
trigger: HTMLElement;
|
|
14
|
+
}
|
|
15
|
+
type ItemActionTarget = Pick<ItemGridBase, 'triggerItemAction'> & Pick<HTMLElement, 'isConnected'>;
|
|
16
|
+
export declare class DashboardSettingsController implements ReactiveController {
|
|
17
|
+
private readonly host;
|
|
18
|
+
private readonly stores;
|
|
19
|
+
private readonly content;
|
|
20
|
+
private anchor?;
|
|
21
|
+
private trigger?;
|
|
22
|
+
private panel?;
|
|
23
|
+
private cleanupPosition?;
|
|
24
|
+
private positionedAnchor?;
|
|
25
|
+
private positionedViewport?;
|
|
26
|
+
private positionedScreenMode?;
|
|
27
|
+
private keyboardDocument?;
|
|
28
|
+
private editSurface?;
|
|
29
|
+
private dataFocusItemId?;
|
|
30
|
+
private dataFocus?;
|
|
31
|
+
constructor(host: ReactiveControllerHost & HTMLElement, stores: DashboardStores, content: DashboardContentController);
|
|
32
|
+
setEditSurface(surface?: HTMLElement): void;
|
|
33
|
+
private get runtime();
|
|
34
|
+
open({ itemId, anchor, trigger, active, revision }: DashboardSettingsRequest): void;
|
|
35
|
+
addChart(chart: DashboardAddChartRequest, grid: () => ItemActionTarget | null | undefined): Promise<string | undefined>;
|
|
36
|
+
applyChange(event: CustomEvent<{
|
|
37
|
+
patch: DashboardChartChange;
|
|
38
|
+
revision?: number;
|
|
39
|
+
}>, target: DashboardContentTarget, generation: number): void;
|
|
40
|
+
changeTab(event: CustomEvent<{
|
|
41
|
+
tab: DashboardSettingsTab;
|
|
42
|
+
}>, itemId: string, generation: number): void;
|
|
43
|
+
closeFromEvent(event: Event, itemId: string, generation: number): void;
|
|
44
|
+
private accepts;
|
|
45
|
+
update(panel: DashboardSettingsPopover | undefined, viewport: HTMLElement | null): void;
|
|
46
|
+
close(restoreFocus?: boolean): void;
|
|
47
|
+
private focusPanel;
|
|
48
|
+
hostDisconnected(): void;
|
|
49
|
+
private readonly onKeyDown;
|
|
50
|
+
private readonly onPointerDown;
|
|
51
|
+
private readonly onSurfaceClick;
|
|
52
|
+
private isAddChartSurface;
|
|
53
|
+
}
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '@luzmo/lucero/icon';
|
|
3
|
+
import '@luzmo/lucero/popover';
|
|
4
|
+
import '@luzmo/lucero/tooltip';
|
|
5
|
+
import type { DashboardNextLabels } from '../localization/dashboard-next-translations';
|
|
6
|
+
import type { DashboardSettingsTab } from '../state/runtime/dashboard-runtime-state';
|
|
7
|
+
export declare class DashboardSettingsPopover extends LitElement {
|
|
8
|
+
labels: DashboardNextLabels;
|
|
9
|
+
chartTitle: string;
|
|
10
|
+
activeTab: DashboardSettingsTab;
|
|
11
|
+
tabs: readonly DashboardSettingsTab[];
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
static styles: import("lit").CSSResult;
|
|
14
|
+
focusClose(): Promise<void>;
|
|
15
|
+
isCloseFocused(): boolean;
|
|
16
|
+
protected render(): import("lit-html").TemplateResult<1> | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dashboardSettingsPopoverStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function positionDashboardSettings(anchor: HTMLElement, panel: HTMLElement, viewport: HTMLElement): () => void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ThemeConfig } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
import type { VizItemDefinition } from '../../shared/models/dashboard-definition.model';
|
|
3
|
+
import type { DashboardNextLabels } from '../localization/dashboard-next-translations';
|
|
4
|
+
import { DashboardStores } from '../state/dashboard-stores';
|
|
5
|
+
export interface DashboardSettingsTestContext {
|
|
6
|
+
definition: VizItemDefinition;
|
|
7
|
+
revision: number;
|
|
8
|
+
editorLanguage: string;
|
|
9
|
+
contentLanguage: string;
|
|
10
|
+
apiHost: string;
|
|
11
|
+
authKey: string;
|
|
12
|
+
authToken: string;
|
|
13
|
+
labels: DashboardNextLabels;
|
|
14
|
+
theme?: ThemeConfig;
|
|
15
|
+
timezone?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function updateSettingsContext(stores: DashboardStores, context: DashboardSettingsTestContext): void;
|
|
18
|
+
export declare function createSettingsStores(context: DashboardSettingsTestContext): DashboardStores;
|
|
19
|
+
export declare function getSettingsContext(stores: DashboardStores): DashboardSettingsTestContext;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { LuzmoItemSlotPickerPanel } from '@luzmo/analytics-components-kit/item-slot-picker-panel';
|
|
2
|
+
import { type DashboardAccess } from '../../data/dashboard-api';
|
|
3
|
+
export type DashboardDataAccess = DashboardAccess;
|
|
4
|
+
export interface DashboardDatasetSummary {
|
|
5
|
+
id: string;
|
|
6
|
+
name: Record<string, string>;
|
|
7
|
+
description?: Record<string, string>;
|
|
8
|
+
}
|
|
9
|
+
export type DashboardDatasetFields = LuzmoItemSlotPickerPanel['datasetsDataFields'];
|
|
10
|
+
export declare function loadDashboardDatasets(access: DashboardDataAccess, signal: AbortSignal): Promise<DashboardDatasetSummary[]>;
|
|
11
|
+
export declare function loadDashboardDataFields(access: DashboardDataAccess, datasetIds: string[], signal: AbortSignal): Promise<DashboardDatasetFields>;
|