@masterteam/dashboard-builder 0.0.123 → 0.0.124
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/README.md +7 -0
- package/assets/i18n/ar.json +20 -0
- package/assets/i18n/en.json +20 -0
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-B1B-3AzS.mjs → masterteam-dashboard-builder-dashboard-dialog.component-DvWJv7J0.mjs} +2 -2
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-B1B-3AzS.mjs.map → masterteam-dashboard-builder-dashboard-dialog.component-DvWJv7J0.mjs.map} +1 -1
- package/fesm2022/{masterteam-dashboard-builder-masterteam-dashboard-builder-DK1hsUEt.mjs → masterteam-dashboard-builder-masterteam-dashboard-builder-87vk_c3c.mjs} +639 -129
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-87vk_c3c.mjs.map +1 -0
- package/fesm2022/{masterteam-dashboard-builder-table-card.component-DhQqLNuw.mjs → masterteam-dashboard-builder-table-card.component-tjmhfJpV.mjs} +2 -2
- package/fesm2022/{masterteam-dashboard-builder-table-card.component-DhQqLNuw.mjs.map → masterteam-dashboard-builder-table-card.component-tjmhfJpV.mjs.map} +1 -1
- package/fesm2022/masterteam-dashboard-builder.mjs +1 -1
- package/package.json +5 -5
- package/types/masterteam-dashboard-builder.d.ts +155 -7
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-DK1hsUEt.mjs.map +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { b1 as ActionsSettings, b9 as ArrayBuilderField, a6 as BarChartHandler, aW as BarControlUi, bn as CHART_CAPABILITIES, aZ as CHART_TYPES, bC as CONFIG_DOMAINS, c4 as CUSTOM_COLOR_OPTION, c as CardContentComponent, B as CardFilterComponent, H as CardInfoComponent, I as ChartCardComponent, a2 as ChartDataService, bd as ChartFilterDrawer, aS as ChartSettingsDrawer, b2 as ChartViewer, b8 as ColorListField, aj as ComparisonChartHandler, co as DASHBOARD_BUILDER_ASSIST, a5 as DASHBOARD_ITEM_VISIBILITY, W as DEFAULT_MAP_REGION_KEY, l as DashboardBuilder, aK as DashboardBuilderService, e as DashboardItem, D as DashboardItemStoreService, aE as DashboardList, aL as DashboardStoreService, m as DashboardViewer, b0 as DataSourceSettings, bj as DatasourcePanelComponent, aU as DefaultControlUi, aT as DisplaySettings, G as DynamicFiltersComponent, aR as DynamicFiltersConfig, J as EChartComponent, P as EntitiesPreviewCardComponent, E as EntityInfoComponent, Q as EntityPreviewCardComponent, bi as FilterBuilderComponent, bl as FilterByGroupPipe, bh as FilterChipsBarComponent, ad as GaugeChartHandler, a$ as GeneralSettings, bm as GetChartActionsPipe, bg as GuidedConfigDialogComponent, aI as HTTPMethod, R as HeaderCardComponent, cl as ITEM_GUIDANCE_REGISTRY, bc as ItemCardMenuComponent, bf as ItemConfigPopoverComponent, be as ItemContextToolbarComponent, cn as ItemGuidanceService, ba as KeyValueMapField, T as LastHistoryLevelCardComponent, bb as LegendOrderField, al as LevelCardHandler, ah as LineChartHandler, U as ListStatisticCardComponent, V as MAP_REGIONS, aF as MODULE_CLASSIFICATION_LOG, aG as MODULE_CLASSIFICATION_LOG_NAME, aP as ManageBreadcrumb, aQ as ManageFilterOnPage, aY as ManageItem, a_ as ManageItemService, aO as ManagePages, am as MapChartHandler, Y as MapViewComponent, af as OverviewCardHandler, bF as POPOVER_TABS, bG as POPOVER_TAB_SPECS, ap as PhaseGateStepperHandler, a9 as PieChartHandler, aV as PieControlUi, P as PropertiesCardComponent, an as RingGaugeChartHandler, ao as SPlusChartHandler, bX as STYLE_PRESETS, bk as SchemaControlRendererComponent, b7 as SegmentedField, Z as SkeletonCardComponent, ai as SnapshotHandler, ak as SplitterChartHandler, aa as StackBarChartHandler, aX as StackBarControlUi, S as StaticFiltersComponent, $ as StatisticCardComponent, b6 as StyleField, b4 as StyleSettingsRenderer, b3 as StyleStudioDrawer, ae as TableViewHandler, ag as TimelineHandler, a1 as TopbarCardComponent, cp as WIDGET_PALETTE_TILE_HOST, x as addCommasToNumber, bT as applyBehaviorToPersisted, aD as applyBuiltInConditions, c7 as applyControlPatchToPersisted, c8 as applyControlPatchesToPersisted, bU as applyFilterChipsToPersisted, bR as applyLabelLegendFormatToPersisted, bP as applyLayoutToPersisted, bN as applyStyleToPersisted, bI as applyTitleToPersisted, ab as axisFormatters, bS as behaviorToUi, cg as bindingKey, bW as buildAssembly, cf as buildDisplayFieldPredicate, k as cloneDeep, aJ as copyName, av as createAxisFormatter, aw as createTooltipFormatter, cq as dashboardLevelOptions, bJ as datasourceToUi, M as dateDisplayRawValue, c2 as deepMerge, cm as describeGuidance, bD as domainsForCapability, d as dynamicReorder, t as dynamicTextReplace, b5 as expandResetPatches, bK as fieldsToUi, bL as filtersToUi, bE as findDomain, bZ as findPreset, cr as firstFreePosition, cd as flattenSchema, ax as formatAxisLabel, aq as formatCurrency, au as formatDate, c3 as formatForEditor, at as formatNumber, as as formatPercentage, f as formatValue, ay as formatWordsUnderBar, az as formatXAxis, u as generalConfiguration, ch as getBinding, bo as getCapabilityById, A as getColorFromConditions, c9 as getControlSchema, ar as getCurrencySuffix, cc as getFallbackControlSchema, v as getLocalizedTitle, q as getNestedData, ac as groupDatesByYearAndMonth, c0 as groupIssuesByDomain, aB as handleFilterForCard, aC as handleFilterForSnapshot, aA as handleFiltersForCustom, b$ as hasBlockingIssues, aH as isLogClassification, aM as isManagePagesDeleteResult, aN as isManagePagesDuplicateResult, z as isMobilePlatform, bQ as labelLegendFormatToUi, bO as layoutToUi, ci as listBindings, cj as listBindingsForChart, ca as listControlSchemaIds, cb as listControlSchemas, a4 as loadImmediately, a0 as loadTableCard, O as mergePropertyAppearance, bw as moduleIdFromSelector, bt as normalizeAggregateFunction, bB as normalizeBeforeRequest, bA as normalizeBeforeSave, br as normalizeChartTypeForRequest, N as normalizeDashboardCardEntityValue, bs as normalizeFilterOperation, bu as normalizeFilters, bz as normalizeOnLoad, a3 as observeNearViewport, c1 as parseAdvancedJson, bV as persistedToUi, bY as presetsForCapability, ck as readBoundValue, c5 as readByPath, bp as resolveCapability, ce as resolveDisplayFields, L as resolveEntityCheckbox, K as resolveEntityUserPhoto, X as resolveMapRegion, a8 as resolvePieInnerRadius, a7 as resolvePieShape, _ as resolveStatisticIconPlacement, bv as selectorFromLegacy, c6 as setByPath, w as sortChartData, y as sortDataTableView, bM as styleToUi, p as switchAllKeysSmall, s as switchAllKeysToLower, bH as titleToUi, bq as toBackendChartType, bx as toBackendSourceLink, by as toFormSourceLink, b_ as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-
|
|
1
|
+
export { b1 as ActionsSettings, b9 as ArrayBuilderField, a6 as BarChartHandler, aW as BarControlUi, bn as CHART_CAPABILITIES, aZ as CHART_TYPES, bC as CONFIG_DOMAINS, c4 as CUSTOM_COLOR_OPTION, c as CardContentComponent, B as CardFilterComponent, H as CardInfoComponent, I as ChartCardComponent, a2 as ChartDataService, bd as ChartFilterDrawer, aS as ChartSettingsDrawer, b2 as ChartViewer, b8 as ColorListField, aj as ComparisonChartHandler, co as DASHBOARD_BUILDER_ASSIST, a5 as DASHBOARD_ITEM_VISIBILITY, W as DEFAULT_MAP_REGION_KEY, l as DashboardBuilder, aK as DashboardBuilderService, e as DashboardItem, D as DashboardItemStoreService, aE as DashboardList, aL as DashboardStoreService, m as DashboardViewer, b0 as DataSourceSettings, bj as DatasourcePanelComponent, aU as DefaultControlUi, aT as DisplaySettings, G as DynamicFiltersComponent, aR as DynamicFiltersConfig, J as EChartComponent, P as EntitiesPreviewCardComponent, E as EntityInfoComponent, Q as EntityPreviewCardComponent, bi as FilterBuilderComponent, bl as FilterByGroupPipe, bh as FilterChipsBarComponent, ad as GaugeChartHandler, a$ as GeneralSettings, bm as GetChartActionsPipe, bg as GuidedConfigDialogComponent, aI as HTTPMethod, R as HeaderCardComponent, cl as ITEM_GUIDANCE_REGISTRY, bc as ItemCardMenuComponent, bf as ItemConfigPopoverComponent, be as ItemContextToolbarComponent, cn as ItemGuidanceService, ba as KeyValueMapField, T as LastHistoryLevelCardComponent, bb as LegendOrderField, al as LevelCardHandler, ah as LineChartHandler, U as ListStatisticCardComponent, V as MAP_REGIONS, aF as MODULE_CLASSIFICATION_LOG, aG as MODULE_CLASSIFICATION_LOG_NAME, aP as ManageBreadcrumb, aQ as ManageFilterOnPage, aY as ManageItem, a_ as ManageItemService, aO as ManagePages, am as MapChartHandler, Y as MapViewComponent, af as OverviewCardHandler, bF as POPOVER_TABS, bG as POPOVER_TAB_SPECS, ap as PhaseGateStepperHandler, a9 as PieChartHandler, aV as PieControlUi, P as PropertiesCardComponent, an as RingGaugeChartHandler, ao as SPlusChartHandler, bX as STYLE_PRESETS, bk as SchemaControlRendererComponent, b7 as SegmentedField, Z as SkeletonCardComponent, ai as SnapshotHandler, ak as SplitterChartHandler, aa as StackBarChartHandler, aX as StackBarControlUi, S as StaticFiltersComponent, $ as StatisticCardComponent, b6 as StyleField, b4 as StyleSettingsRenderer, b3 as StyleStudioDrawer, ae as TableViewHandler, ag as TimelineHandler, a1 as TopbarCardComponent, cp as WIDGET_PALETTE_TILE_HOST, x as addCommasToNumber, bT as applyBehaviorToPersisted, aD as applyBuiltInConditions, c7 as applyControlPatchToPersisted, c8 as applyControlPatchesToPersisted, bU as applyFilterChipsToPersisted, bR as applyLabelLegendFormatToPersisted, bP as applyLayoutToPersisted, bN as applyStyleToPersisted, bI as applyTitleToPersisted, ab as axisFormatters, bS as behaviorToUi, cg as bindingKey, bW as buildAssembly, cf as buildDisplayFieldPredicate, k as cloneDeep, aJ as copyName, av as createAxisFormatter, aw as createTooltipFormatter, cq as dashboardLevelOptions, bJ as datasourceToUi, M as dateDisplayRawValue, c2 as deepMerge, cm as describeGuidance, bD as domainsForCapability, d as dynamicReorder, t as dynamicTextReplace, b5 as expandResetPatches, bK as fieldsToUi, bL as filtersToUi, bE as findDomain, bZ as findPreset, cr as firstFreePosition, cd as flattenSchema, ax as formatAxisLabel, aq as formatCurrency, au as formatDate, c3 as formatForEditor, at as formatNumber, as as formatPercentage, f as formatValue, ay as formatWordsUnderBar, az as formatXAxis, u as generalConfiguration, ch as getBinding, bo as getCapabilityById, A as getColorFromConditions, c9 as getControlSchema, ar as getCurrencySuffix, cc as getFallbackControlSchema, v as getLocalizedTitle, q as getNestedData, ac as groupDatesByYearAndMonth, c0 as groupIssuesByDomain, aB as handleFilterForCard, aC as handleFilterForSnapshot, aA as handleFiltersForCustom, b$ as hasBlockingIssues, aH as isLogClassification, aM as isManagePagesDeleteResult, aN as isManagePagesDuplicateResult, z as isMobilePlatform, bQ as labelLegendFormatToUi, bO as layoutToUi, ci as listBindings, cj as listBindingsForChart, ca as listControlSchemaIds, cb as listControlSchemas, a4 as loadImmediately, a0 as loadTableCard, O as mergePropertyAppearance, bw as moduleIdFromSelector, bt as normalizeAggregateFunction, bB as normalizeBeforeRequest, bA as normalizeBeforeSave, br as normalizeChartTypeForRequest, N as normalizeDashboardCardEntityValue, bs as normalizeFilterOperation, bu as normalizeFilters, bz as normalizeOnLoad, a3 as observeNearViewport, c1 as parseAdvancedJson, bV as persistedToUi, bY as presetsForCapability, ck as readBoundValue, c5 as readByPath, bp as resolveCapability, ce as resolveDisplayFields, L as resolveEntityCheckbox, K as resolveEntityUserPhoto, X as resolveMapRegion, a8 as resolvePieInnerRadius, a7 as resolvePieShape, _ as resolveStatisticIconPlacement, bv as selectorFromLegacy, c6 as setByPath, w as sortChartData, y as sortDataTableView, bM as styleToUi, p as switchAllKeysSmall, s as switchAllKeysToLower, bH as titleToUi, bq as toBackendChartType, bx as toBackendSourceLink, by as toFormSourceLink, b_ as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-87vk_c3c.mjs';
|
|
2
2
|
export * from '@masterteam/dashboard-builder/access';
|
|
3
3
|
//# sourceMappingURL=masterteam-dashboard-builder.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masterteam/dashboard-builder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.124",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/dashboard-builder",
|
|
6
6
|
"linkDirectory": true,
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"quill": "^2.0.3",
|
|
24
24
|
"rxjs": "^7.8.2",
|
|
25
25
|
"tailwindcss": "^4.2.2",
|
|
26
|
-
"@masterteam/components": "^0.0.
|
|
26
|
+
"@masterteam/components": "^0.0.347",
|
|
27
27
|
"@masterteam/data-table": "^0.0.10",
|
|
28
|
-
"@masterteam/data-grid": "^0.0.6",
|
|
29
|
-
"@masterteam/timeline": "^0.0.24",
|
|
30
28
|
"@masterteam/icons": "^0.0.17",
|
|
31
|
-
"@masterteam/
|
|
29
|
+
"@masterteam/data-grid": "^0.0.6",
|
|
30
|
+
"@masterteam/faris": "^0.2.0",
|
|
31
|
+
"@masterteam/timeline": "^0.0.24"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"tslib": "^2.8.1",
|
|
@@ -574,6 +574,39 @@ interface BulkLinkChartResponse {
|
|
|
574
574
|
configration: string;
|
|
575
575
|
order: number;
|
|
576
576
|
}
|
|
577
|
+
/**
|
|
578
|
+
* A whole dashboard in one piece, as a draft holds it
|
|
579
|
+
* (`api/reports/builder/{id}/draft`). Same fields the builder saves today:
|
|
580
|
+
* `dashboardConfig` as in `PUT reports/{id}`, `chartLinks[].configration` as in
|
|
581
|
+
* `POST reports/charts/link`. A chart with the empty GUID gets a new id.
|
|
582
|
+
*/
|
|
583
|
+
interface DashboardDraftContent {
|
|
584
|
+
name: LocalizedName;
|
|
585
|
+
icon?: string | null;
|
|
586
|
+
url?: string | null;
|
|
587
|
+
isActive: boolean;
|
|
588
|
+
showInMenu: boolean;
|
|
589
|
+
dashboardConfig: ReportDashboardConfig;
|
|
590
|
+
chartLinks: Array<{
|
|
591
|
+
chartComponentId: string;
|
|
592
|
+
configration: ChartLinkConfiguration | string;
|
|
593
|
+
order: number;
|
|
594
|
+
}>;
|
|
595
|
+
}
|
|
596
|
+
/** The one draft of a dashboard, saved apart from what readers see. */
|
|
597
|
+
interface DashboardDraft {
|
|
598
|
+
reportId: number;
|
|
599
|
+
/** Send back as `expectedRevision` on the next save / apply. */
|
|
600
|
+
revision: number;
|
|
601
|
+
baseVersionNumber: number;
|
|
602
|
+
/** Someone changed the live dashboard after this draft started. */
|
|
603
|
+
liveChangedSinceDraft: boolean;
|
|
604
|
+
updatedBy?: string | null;
|
|
605
|
+
updatedByName?: string | null;
|
|
606
|
+
createdAt: string;
|
|
607
|
+
updatedAt: string;
|
|
608
|
+
content: DashboardDraftContent;
|
|
609
|
+
}
|
|
577
610
|
/**
|
|
578
611
|
* Request payload for unlinking a chart from a report
|
|
579
612
|
*/
|
|
@@ -2715,6 +2748,36 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2715
2748
|
private readonly HISTORY_LIMIT;
|
|
2716
2749
|
/** Signature of the document as last loaded or explicitly saved. */
|
|
2717
2750
|
private savedSignature;
|
|
2751
|
+
/** The draft routes answered for this dashboard, so edits go to a draft. */
|
|
2752
|
+
readonly draftMode: _angular_core.WritableSignal<boolean>;
|
|
2753
|
+
readonly draftStatus: _angular_core.WritableSignal<"error" | "idle" | "saving" | "saved" | "conflict">;
|
|
2754
|
+
/** Who saved the draft and when, and whether live changed since it began. */
|
|
2755
|
+
readonly draftInfo: _angular_core.WritableSignal<{
|
|
2756
|
+
updatedAt: string;
|
|
2757
|
+
updatedByName?: string | null;
|
|
2758
|
+
liveChangedSinceDraft: boolean;
|
|
2759
|
+
} | null>;
|
|
2760
|
+
/**
|
|
2761
|
+
* Tooltip of the toolbar's "Discard changes" button: that changes save
|
|
2762
|
+
* automatically but readers don't see them yet, who saved them and when, and
|
|
2763
|
+
* what discarding does. The UI says "changes", not "draft" (user decision
|
|
2764
|
+
* 2026-11-23); the code keeps the backend's "draft" name.
|
|
2765
|
+
*/
|
|
2766
|
+
readonly draftTooltip: _angular_core.Signal<string>;
|
|
2767
|
+
/** A change has not reached the draft yet (pending, in flight or failed). */
|
|
2768
|
+
readonly draftUnsaved: _angular_core.WritableSignal<boolean>;
|
|
2769
|
+
/** The live report as loaded, before a draft was laid over it. */
|
|
2770
|
+
private livePage;
|
|
2771
|
+
/** Bumped on every page load so a late draft response is ignored. */
|
|
2772
|
+
private draftEpoch;
|
|
2773
|
+
private draftRevision;
|
|
2774
|
+
/** Signature of the document the last successful draft save sent. */
|
|
2775
|
+
private lastDraftSignature;
|
|
2776
|
+
private draftSaveTimer;
|
|
2777
|
+
private draftSaveInFlight;
|
|
2778
|
+
private draftSaveQueued;
|
|
2779
|
+
private draftSaveWaiters;
|
|
2780
|
+
private readonly DRAFT_SAVE_DELAY;
|
|
2718
2781
|
/** Set by "Save and leave": leave once that explicit save commits. */
|
|
2719
2782
|
private leaveAfterSave;
|
|
2720
2783
|
private committedSnapshot;
|
|
@@ -2730,6 +2793,12 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2730
2793
|
private removeEventListeners;
|
|
2731
2794
|
private loadCurrentPageIfNeeded;
|
|
2732
2795
|
loadPage(id: string | number): void;
|
|
2796
|
+
/**
|
|
2797
|
+
* Builder items from saved chart links (a report's `chartLinks` or a draft's
|
|
2798
|
+
* `content.chartLinks`). Dialog links (chartTypeId 'dialog') are NOT canvas
|
|
2799
|
+
* charts — they back chart "Open dialog" actions — so they are split out.
|
|
2800
|
+
*/
|
|
2801
|
+
private itemsFromLinks;
|
|
2733
2802
|
/**
|
|
2734
2803
|
* Persist the dashboard.
|
|
2735
2804
|
*
|
|
@@ -2743,6 +2812,25 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2743
2812
|
saveDash(options?: {
|
|
2744
2813
|
silent?: boolean;
|
|
2745
2814
|
}): void;
|
|
2815
|
+
/**
|
|
2816
|
+
* One saved link per chart and per dialog, in canvas order. Used by the
|
|
2817
|
+
* legacy link-by-link save and by the draft content.
|
|
2818
|
+
*
|
|
2819
|
+
* Every config goes through `normalizeBeforeSave` from the registry so
|
|
2820
|
+
* backend payload is always canonical:
|
|
2821
|
+
* - filter operation `Equal` → `Equals`
|
|
2822
|
+
* - legacy `fuctionName` typo dropped (functionName remains)
|
|
2823
|
+
* - source links mapped to BE DTO field names
|
|
2824
|
+
* - runtime-only `__substituted` and root `repeaterDashboardId` stripped
|
|
2825
|
+
* - selection.selector backfilled from legacy moduleType:moduleId
|
|
2826
|
+
*/
|
|
2827
|
+
private buildLinkRequests;
|
|
2828
|
+
/**
|
|
2829
|
+
* Write the ids the backend gave saved links back onto the charts and
|
|
2830
|
+
* dialogs, matched by the local `dashboardId` kept in each configration, so
|
|
2831
|
+
* the next save updates those links instead of creating new ones.
|
|
2832
|
+
*/
|
|
2833
|
+
private patchLinkIds;
|
|
2746
2834
|
private savePage;
|
|
2747
2835
|
/**
|
|
2748
2836
|
* The builder's own save message. The link requests are silent: their
|
|
@@ -2777,6 +2865,8 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2777
2865
|
* the empty default the drawer carries — stays authoritative.
|
|
2778
2866
|
*/
|
|
2779
2867
|
private applyPageSettings;
|
|
2868
|
+
/** The document differs from the live dashboard (draft or not). */
|
|
2869
|
+
private differsFromLiveNow;
|
|
2780
2870
|
deleteReport(): void;
|
|
2781
2871
|
onItemResize(item: GridsterItem, itemComponent: any): void;
|
|
2782
2872
|
/**
|
|
@@ -2818,7 +2908,11 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2818
2908
|
* undo of one of several edits leaves unsaved work behind.
|
|
2819
2909
|
*/
|
|
2820
2910
|
onBeforeUnload(event: BeforeUnloadEvent): void;
|
|
2821
|
-
/**
|
|
2911
|
+
/**
|
|
2912
|
+
* Work that leaving would lose, counting an edit still inside the history
|
|
2913
|
+
* debounce. In draft mode the draft keeps the work, so only a change that
|
|
2914
|
+
* has not reached the draft yet (pending, in flight or failed) counts.
|
|
2915
|
+
*/
|
|
2822
2916
|
private unsavedChangesNow;
|
|
2823
2917
|
onBackClick(): void;
|
|
2824
2918
|
/**
|
|
@@ -3053,6 +3147,48 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
3053
3147
|
*/
|
|
3054
3148
|
redo(): void;
|
|
3055
3149
|
private restoreHistoryStep;
|
|
3150
|
+
/** The dashboard's draft, or "drafts unavailable" when the routes fail. */
|
|
3151
|
+
private readDraft;
|
|
3152
|
+
/** Called on every page load: decide the mode and lay the draft over live. */
|
|
3153
|
+
private enterDraftMode;
|
|
3154
|
+
private toDraftInfo;
|
|
3155
|
+
/**
|
|
3156
|
+
* Show the draft instead of live. "Saved" (the unsaved-changes baseline)
|
|
3157
|
+
* stays the live document, so the draft reads as not yet saved to readers.
|
|
3158
|
+
*/
|
|
3159
|
+
private applyDraftContent;
|
|
3160
|
+
/** The whole dashboard as the draft routes take it. */
|
|
3161
|
+
private buildDraftContent;
|
|
3162
|
+
private scheduleDraftSave;
|
|
3163
|
+
private clearDraftTimer;
|
|
3164
|
+
/**
|
|
3165
|
+
* Write the current document to the draft now. Back at the live document,
|
|
3166
|
+
* the draft is removed instead (nothing would be left to apply). A conflict
|
|
3167
|
+
* stops auto-save until the author resolves it from the banner.
|
|
3168
|
+
*/
|
|
3169
|
+
private saveDraftNow;
|
|
3170
|
+
private finishDraftSave;
|
|
3171
|
+
/** Completes with whether every pending change reached the draft. */
|
|
3172
|
+
private flushDraft;
|
|
3173
|
+
private resolveDraftWaiters;
|
|
3174
|
+
private isConflict;
|
|
3175
|
+
/**
|
|
3176
|
+
* Save in draft mode: flush the draft, then apply it to the live dashboard.
|
|
3177
|
+
* Readers see it at once (when published); the backend records a version
|
|
3178
|
+
* and removes the draft. Visibility (Publish / Active) is untouched.
|
|
3179
|
+
*/
|
|
3180
|
+
private saveDraftToLive;
|
|
3181
|
+
/** Banner action: drop the draft and show the live dashboard again. */
|
|
3182
|
+
discardDraft(): void;
|
|
3183
|
+
/** Banner action after a 409: take the other version, or overwrite it. */
|
|
3184
|
+
resolveDraftConflict(choice: 'theirs' | 'mine'): void;
|
|
3185
|
+
/** Banner action after a failed draft save. */
|
|
3186
|
+
retryDraftSave(): void;
|
|
3187
|
+
/**
|
|
3188
|
+
* Drawer visibility edits in draft mode: Publish / Active are never applied
|
|
3189
|
+
* from a draft, so they go to the live report straight away.
|
|
3190
|
+
*/
|
|
3191
|
+
private syncLiveVisibility;
|
|
3056
3192
|
private applyHistorySnapshot;
|
|
3057
3193
|
/**
|
|
3058
3194
|
* Remove backend links for items the revert dropped.
|
|
@@ -4894,7 +5030,7 @@ declare class HeaderCardComponent implements OnInit, OnDestroy {
|
|
|
4894
5030
|
/** Icon name */
|
|
4895
5031
|
readonly icon: _angular_core.Signal<string>;
|
|
4896
5032
|
/** Position of the layout icon relative to the header title. */
|
|
4897
|
-
readonly iconPlacement: _angular_core.Signal<"
|
|
5033
|
+
readonly iconPlacement: _angular_core.Signal<"start" | "end" | "top">;
|
|
4898
5034
|
/** Logo configuration */
|
|
4899
5035
|
readonly logo: _angular_core.Signal<any>;
|
|
4900
5036
|
/** Logo URL */
|
|
@@ -5428,7 +5564,7 @@ declare class TopbarCardComponent implements OnInit, OnDestroy {
|
|
|
5428
5564
|
readonly showSubtitle: _angular_core.Signal<boolean>;
|
|
5429
5565
|
readonly icon: _angular_core.Signal<any>;
|
|
5430
5566
|
/** Position of the layout icon relative to the topbar title. */
|
|
5431
|
-
readonly iconPlacement: _angular_core.Signal<"
|
|
5567
|
+
readonly iconPlacement: _angular_core.Signal<"start" | "end" | "top">;
|
|
5432
5568
|
/**
|
|
5433
5569
|
* Center the icon/title block within the topbar row
|
|
5434
5570
|
* (configAsType.headerCardConfig.isHeaderCentered === true) — same source
|
|
@@ -6737,6 +6873,11 @@ declare class DashboardBuilderService {
|
|
|
6737
6873
|
private http;
|
|
6738
6874
|
/** Control-panel hosts read drafts through the builder routes (#1838). */
|
|
6739
6875
|
private readonly reportsRead;
|
|
6876
|
+
/**
|
|
6877
|
+
* Drafts are builder-only routes (CONTROL_PANEL): only control-panel hosts
|
|
6878
|
+
* (`provideDashboardBuilderAccess()`) try them.
|
|
6879
|
+
*/
|
|
6880
|
+
readonly draftsSupported: boolean;
|
|
6740
6881
|
/** Subject for processing items */
|
|
6741
6882
|
private processOnItem;
|
|
6742
6883
|
readonly processOnItem$: Observable<{
|
|
@@ -6890,6 +7031,13 @@ declare class DashboardBuilderService {
|
|
|
6890
7031
|
* Delete a report
|
|
6891
7032
|
*/
|
|
6892
7033
|
deleteReport(id: string | number): Observable<ApiResponse<void>>;
|
|
7034
|
+
private draftUrl;
|
|
7035
|
+
/** The draft, or `data: null` when the dashboard has none. */
|
|
7036
|
+
getDraft(reportId: string | number): Observable<ApiResponse<DashboardDraft | null>>;
|
|
7037
|
+
saveDraft(reportId: string | number, content: DashboardDraftContent, expectedRevision: number | null): Observable<ApiResponse<DashboardDraft>>;
|
|
7038
|
+
/** Make the draft what readers see. Visibility (Publish / Active) is kept. */
|
|
7039
|
+
applyDraft(reportId: string | number, expectedRevision: number | null): Observable<ApiResponse<unknown>>;
|
|
7040
|
+
discardDraft(reportId: string | number): Observable<ApiResponse<boolean>>;
|
|
6893
7041
|
/**
|
|
6894
7042
|
* Copy a saved dashboard: a new report with the same page settings and
|
|
6895
7043
|
* every chart and dialog link.
|
|
@@ -8860,7 +9008,7 @@ declare class DataSourceSettings {
|
|
|
8860
9008
|
* Active tab within the selection cycle: Selection (pick modules) · Source
|
|
8861
9009
|
* Links (joins, only with >1 selection) · Query (fields).
|
|
8862
9010
|
*/
|
|
8863
|
-
readonly activeSection: _angular_core.WritableSignal<"
|
|
9011
|
+
readonly activeSection: _angular_core.WritableSignal<"query" | "selection" | "sourceLinks">;
|
|
8864
9012
|
/** Selection mode inside the selection tab (informative authoring). */
|
|
8865
9013
|
readonly selectionMode: _angular_core.WritableSignal<"advanced" | "context">;
|
|
8866
9014
|
readonly contextTargetSelector: _angular_core.WritableSignal<string | null>;
|
|
@@ -9861,7 +10009,7 @@ interface MapRow {
|
|
|
9861
10009
|
* boolean). Controlled: `value` in, `valueChange` out.
|
|
9862
10010
|
*/
|
|
9863
10011
|
declare class KeyValueMapField {
|
|
9864
|
-
readonly value: _angular_core.InputSignal<
|
|
10012
|
+
readonly value: _angular_core.InputSignal<Record<string, unknown> | unknown[] | null>;
|
|
9865
10013
|
readonly keys: _angular_core.InputSignal<ControlOption[]>;
|
|
9866
10014
|
readonly valueFields: _angular_core.InputSignal<ControlField[]>;
|
|
9867
10015
|
/** When true, store/read a positional array aligned to `keys` order. */
|
|
@@ -9870,7 +10018,7 @@ declare class KeyValueMapField {
|
|
|
9870
10018
|
/** Properties Card: edit localized labels in the same positional row. */
|
|
9871
10019
|
readonly integratedLabels: _angular_core.InputSignal<boolean>;
|
|
9872
10020
|
readonly labelOverrides: _angular_core.InputSignal<Record<string, unknown>>;
|
|
9873
|
-
readonly valueChange: _angular_core.OutputEmitterRef<
|
|
10021
|
+
readonly valueChange: _angular_core.OutputEmitterRef<Record<string, unknown> | unknown[]>;
|
|
9874
10022
|
readonly labelOverridesChange: _angular_core.OutputEmitterRef<Record<string, unknown>>;
|
|
9875
10023
|
readonly rows: WritableSignal<MapRow[]>;
|
|
9876
10024
|
readonly expandedRows: WritableSignal<ReadonlySet<string>>;
|
|
@@ -9980,4 +10128,4 @@ declare function firstFreePosition(items: readonly {
|
|
|
9980
10128
|
};
|
|
9981
10129
|
|
|
9982
10130
|
export { ActionsSettings, ArrayBuilderField, BarChartHandler, BarControlUi, CHART_CAPABILITIES, CHART_TYPES, CONFIG_DOMAINS, CUSTOM_COLOR_OPTION, CardContentComponent, CardFilterComponent, CardInfoComponent, ChartCardComponent, ChartDataService, ChartFilterDrawer, ChartSettingsDrawer, ChartViewer, ColorListField, ComparisonChartHandler, DASHBOARD_BUILDER_ASSIST, DASHBOARD_ITEM_VISIBILITY, DEFAULT_MAP_REGION_KEY, DashboardBuilder, DashboardBuilderService, DashboardItem, DashboardItemStoreService, DashboardList, DashboardStoreService, DashboardViewer, DataSourceSettings, DatasourcePanelComponent, DefaultControlUi, DisplaySettings, DynamicFiltersComponent, DynamicFiltersConfig, EChartComponent, PropertiesCardComponent as EntitiesPreviewCardComponent, EntityInfoComponent, EntityPreviewCardComponent, FilterBuilderComponent, FilterByGroupPipe, FilterChipsBarComponent, GaugeChartHandler, GeneralSettings, GetChartActionsPipe, GuidedConfigDialogComponent, HTTPMethod, HeaderCardComponent, ITEM_GUIDANCE_REGISTRY, ItemCardMenuComponent, ItemConfigPopoverComponent, ItemContextToolbarComponent, ItemGuidanceService, KeyValueMapField, LastHistoryLevelCardComponent, LegendOrderField, LevelCardHandler, LineChartHandler, ListStatisticCardComponent, MAP_REGIONS, MODULE_CLASSIFICATION_LOG, MODULE_CLASSIFICATION_LOG_NAME, ManageBreadcrumb, ManageFilterOnPage, ManageItem, ManageItemService, ManagePages, MapChartHandler, MapViewComponent, OverviewCardHandler, POPOVER_TABS, POPOVER_TAB_SPECS, PhaseGateStepperHandler, PieChartHandler, PieControlUi, PropertiesCardComponent, RingGaugeChartHandler, SPlusChartHandler, STYLE_PRESETS, SchemaControlRendererComponent, SegmentedField, SkeletonCardComponent, SnapshotHandler, SplitterChartHandler, StackBarChartHandler, StackBarControlUi, StaticFiltersComponent, StatisticCardComponent, StyleField, StyleSettingsRenderer, StyleStudioDrawer, TableCardComponent, TableViewHandler, TimelineHandler, TopbarCardComponent, WIDGET_PALETTE_TILE_HOST, addCommasToNumber, applyBehaviorToPersisted, applyBuiltInConditions, applyControlPatchToPersisted, applyControlPatchesToPersisted, applyFilterChipsToPersisted, applyLabelLegendFormatToPersisted, applyLayoutToPersisted, applyStyleToPersisted, applyTitleToPersisted, axisFormatters, behaviorToUi, bindingKey, buildAssembly, buildDisplayFieldPredicate, cloneDeep, copyName, createAxisFormatter, createTooltipFormatter, dashboardLevelOptions, datasourceToUi, dateDisplayRawValue, deepMerge, describeGuidance, domainsForCapability, dynamicReorder, dynamicTextReplace, expandResetPatches, fieldsToUi, filtersToUi, findDomain, findPreset, firstFreePosition, flattenSchema, formatAxisLabel, formatCurrency, formatDate, formatForEditor, formatNumber, formatPercentage, formatValue, formatWordsUnderBar, formatXAxis, generalConfiguration, getBinding, getCapabilityById, getColorFromConditions, getControlSchema, getCurrencySuffix, getFallbackControlSchema, getLocalizedTitle, getNestedData, groupDatesByYearAndMonth, groupIssuesByDomain, handleFilterForCard, handleFilterForSnapshot, handleFiltersForCustom, hasBlockingIssues, isLogClassification, isManagePagesDeleteResult, isManagePagesDuplicateResult, isMobilePlatform, labelLegendFormatToUi, layoutToUi, listBindings, listBindingsForChart, listControlSchemaIds, listControlSchemas, loadImmediately, loadTableCard, mergePropertyAppearance, moduleIdFromSelector, normalizeAggregateFunction, normalizeBeforeRequest, normalizeBeforeSave, normalizeChartTypeForRequest, normalizeDashboardCardEntityValue, normalizeFilterOperation, normalizeFilters, normalizeOnLoad, observeNearViewport, parseAdvancedJson, persistedToUi, presetsForCapability, readBoundValue, readByPath, resolveCapability, resolveDisplayFields, resolveEntityCheckbox, resolveEntityUserPhoto, resolveMapRegion, resolvePieInnerRadius, resolvePieShape, resolveStatisticIconPlacement, selectorFromLegacy, setByPath, sortChartData, sortDataTableView, styleToUi, switchAllKeysSmall, switchAllKeysToLower, titleToUi, toBackendChartType, toBackendSourceLink, toFormSourceLink, validate };
|
|
9983
|
-
export type { ActionConfig, ApiResponse, AxisLabelWrapConfig, AxisLabelWrapMode, AxisLabelWrapOptions, BackendChartType, BarChartData, BehaviorUi, BindingScope, BreadcrumbItem, BulkLinkChartRequest, BulkLinkChartResponse, BulkPropertiesRequest, BulkPropertiesResponse, BulkPropertiesResponseItem, BulkPropertiesResponseItemDto, BulkPropertyRequestItem, CardBorderStyleConfig, CardInfoConfig$1 as CardInfoConfig, CardStyleConfig$1 as CardStyleConfig, CatalogPropertyDto, ChartActionEvent, ChartActionsContext, ChartCapability, ChartCapabilityLegacyAliases, RequestType$1 as ChartCapabilityRequestType, ChartData, ChartDataHandled, ChartDomainSupport, ChartLabel, ChartLinkConfiguration, ChartTypeConfig, ClientConfig, ComponentType, ConfigDomainKey, ConfigDomainSpec, ConfigLookupShape, ConfigViewAssembly, ControlBinding, ControlBindingIndex, ControlBindingValueAdapter, ControlDomain, ControlField, ControlFieldType, ControlOption, ControlPatch, ControlSchema, ControlSection, ControlSectionScope, ControlVisiblePredicate, CustomApi, DashboardBuilderAssist, DashboardBuilderData, DashboardChartDraft, DashboardChartItem, DashboardChartTemplate, DashboardDialogItem, DashboardDocumentLoadOptions, DashboardFilterLevelLog, DashboardFilterLevelSchema, DashboardFilterLocalizedText, DashboardFilterLookup, DashboardFilterLookupItem, DashboardFilterStatus, DashboardFilterStatusDefinition, DashboardFilterStatusItem, DashboardInformativeContext, DashboardItemMark, DashboardItemStore, DashboardItemVisibility, DashboardLevelLogsResolver, DashboardLevelModule, DashboardLevelOption, DashboardListEvent, DashboardPage, DashboardSaveRequestOptions, DashboardTargetOption, DashboardTargetPathStep, DashboardTargetTemplateFilter, DashboardTargetTemplateSelection, DashboardTargetTemplateSourceLink, DashboardTargetsContextInfo, DashboardTargetsResponse, DatasourceUi, DisplayConfig, DisplayField, DisplayFieldQuery, DisplaySchema, EChartSeriesItem, ExcelSheet, FieldAssignment, FieldsUi, FilterChip, FilterConfig, FilterOperator, FilterOption, FilterScope, FilterSource, FiltersUi, FlattenedControl, FormatXAxisConfig$1 as FormatXAxisConfig, GroupedModuleOption, GroupedParentOption, GuidanceInput, GuidedConfigDialogData, GuidedConfigDialogResult, GuidedStep, HandleAction, HeaderCardConfig$1 as HeaderCardConfig, IModule, IModuleType, IProperty, IPropertyWithGroup, ISelection, ItemCardMenuAction, ItemConfig, ItemConfigPopoverData, ItemConfigPopoverResult, ItemContextAction, ItemGuidanceAction, ItemGuidanceDescriptor, ItemGuidanceSeverity, ItemGuidanceState, LabelLegendFormatUi, LayoutUi, LegendOrderItem, LevelCardData, LevelCardProperty, LinkChartRequest, LocalizedLegendLabelChange, LocalizedName, ManageFilterOnPageResult, ManagePagesDeleteResult, ManagePagesDuplicateResult, MapRegion, MapViewConfig, MapViewGroup, MapViewPoint, ModuleItem, ModuleSelectOption, ModuleType, ModuleValue, ModuleValueExtra, ModulesTreeRequest, ModulesTreeResponse, ParentSelectOption, ParseResult, PersistedItemConfig, PhaseGateStepperData, PhaseGateStepperStep, PieChartData, PieShape, PopoverTab, PopoverTabSpec, Product, PropertiesResponse, PropertyItem, PropertyItemOption, PropertyItemsResponse, QueryEditorKind, QueryField, QuerySchema, QuickManageType, RendererKey, Report, ReportChartLink, ReportDashboardConfig, ReportExcelConfig, ReportType, ReportUrl, RequestType, RuntimeItemConfig, SelectionFilter, ServiceConfig, ServiceItem, SnapshotLevelDataOption, SourceLink, StaticFilterConfig, StaticFilterItem, StatisticCardData, StatisticIconPlacement, StyleConfig, StylePreset, StylePresetKey, StyleUi, TableColumn$1 as TableColumn, TableViewData, TimelineData, TimelineItem, TitleUi, UiItemConfig, UnlinkChartRequest, ValidateOptions, ValidationIssue, ValidationSeverity, WidgetPaletteTileHost };
|
|
10131
|
+
export type { ActionConfig, ApiResponse, AxisLabelWrapConfig, AxisLabelWrapMode, AxisLabelWrapOptions, BackendChartType, BarChartData, BehaviorUi, BindingScope, BreadcrumbItem, BulkLinkChartRequest, BulkLinkChartResponse, BulkPropertiesRequest, BulkPropertiesResponse, BulkPropertiesResponseItem, BulkPropertiesResponseItemDto, BulkPropertyRequestItem, CardBorderStyleConfig, CardInfoConfig$1 as CardInfoConfig, CardStyleConfig$1 as CardStyleConfig, CatalogPropertyDto, ChartActionEvent, ChartActionsContext, ChartCapability, ChartCapabilityLegacyAliases, RequestType$1 as ChartCapabilityRequestType, ChartData, ChartDataHandled, ChartDomainSupport, ChartLabel, ChartLinkConfiguration, ChartTypeConfig, ClientConfig, ComponentType, ConfigDomainKey, ConfigDomainSpec, ConfigLookupShape, ConfigViewAssembly, ControlBinding, ControlBindingIndex, ControlBindingValueAdapter, ControlDomain, ControlField, ControlFieldType, ControlOption, ControlPatch, ControlSchema, ControlSection, ControlSectionScope, ControlVisiblePredicate, CustomApi, DashboardBuilderAssist, DashboardBuilderData, DashboardChartDraft, DashboardChartItem, DashboardChartTemplate, DashboardDialogItem, DashboardDocumentLoadOptions, DashboardDraft, DashboardDraftContent, DashboardFilterLevelLog, DashboardFilterLevelSchema, DashboardFilterLocalizedText, DashboardFilterLookup, DashboardFilterLookupItem, DashboardFilterStatus, DashboardFilterStatusDefinition, DashboardFilterStatusItem, DashboardInformativeContext, DashboardItemMark, DashboardItemStore, DashboardItemVisibility, DashboardLevelLogsResolver, DashboardLevelModule, DashboardLevelOption, DashboardListEvent, DashboardPage, DashboardSaveRequestOptions, DashboardTargetOption, DashboardTargetPathStep, DashboardTargetTemplateFilter, DashboardTargetTemplateSelection, DashboardTargetTemplateSourceLink, DashboardTargetsContextInfo, DashboardTargetsResponse, DatasourceUi, DisplayConfig, DisplayField, DisplayFieldQuery, DisplaySchema, EChartSeriesItem, ExcelSheet, FieldAssignment, FieldsUi, FilterChip, FilterConfig, FilterOperator, FilterOption, FilterScope, FilterSource, FiltersUi, FlattenedControl, FormatXAxisConfig$1 as FormatXAxisConfig, GroupedModuleOption, GroupedParentOption, GuidanceInput, GuidedConfigDialogData, GuidedConfigDialogResult, GuidedStep, HandleAction, HeaderCardConfig$1 as HeaderCardConfig, IModule, IModuleType, IProperty, IPropertyWithGroup, ISelection, ItemCardMenuAction, ItemConfig, ItemConfigPopoverData, ItemConfigPopoverResult, ItemContextAction, ItemGuidanceAction, ItemGuidanceDescriptor, ItemGuidanceSeverity, ItemGuidanceState, LabelLegendFormatUi, LayoutUi, LegendOrderItem, LevelCardData, LevelCardProperty, LinkChartRequest, LocalizedLegendLabelChange, LocalizedName, ManageFilterOnPageResult, ManagePagesDeleteResult, ManagePagesDuplicateResult, MapRegion, MapViewConfig, MapViewGroup, MapViewPoint, ModuleItem, ModuleSelectOption, ModuleType, ModuleValue, ModuleValueExtra, ModulesTreeRequest, ModulesTreeResponse, ParentSelectOption, ParseResult, PersistedItemConfig, PhaseGateStepperData, PhaseGateStepperStep, PieChartData, PieShape, PopoverTab, PopoverTabSpec, Product, PropertiesResponse, PropertyItem, PropertyItemOption, PropertyItemsResponse, QueryEditorKind, QueryField, QuerySchema, QuickManageType, RendererKey, Report, ReportChartLink, ReportDashboardConfig, ReportExcelConfig, ReportType, ReportUrl, RequestType, RuntimeItemConfig, SelectionFilter, ServiceConfig, ServiceItem, SnapshotLevelDataOption, SourceLink, StaticFilterConfig, StaticFilterItem, StatisticCardData, StatisticIconPlacement, StyleConfig, StylePreset, StylePresetKey, StyleUi, TableColumn$1 as TableColumn, TableViewData, TimelineData, TimelineItem, TitleUi, UiItemConfig, UnlinkChartRequest, ValidateOptions, ValidationIssue, ValidationSeverity, WidgetPaletteTileHost };
|