@masterteam/dashboard-builder 0.0.114 → 0.0.116

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.
@@ -1,3 +1,3 @@
1
- export { aX as ActionsSettings, b3 as ArrayBuilderField, a4 as BarChartHandler, aQ as BarControlUi, bh as CHART_CAPABILITIES, aT as CHART_TYPES, bw as CONFIG_DOMAINS, b_ as CUSTOM_COLOR_OPTION, C as CardContentComponent, t as CardFilterComponent, v as CardInfoComponent, w as ChartCardComponent, a0 as ChartDataService, b7 as ChartFilterDrawer, aM as ChartSettingsDrawer, aY as ChartViewer, b2 as ColorListField, af as ComparisonChartHandler, a3 as DASHBOARD_ITEM_VISIBILITY, T as DEFAULT_MAP_REGION_KEY, d as DashboardBuilder, aF as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, aA as DashboardList, aG as DashboardStoreService, e as DashboardViewer, aW as DataSourceSettings, bd as DatasourcePanelComponent, aO as DefaultControlUi, aN as DisplaySettings, u as DynamicFiltersComponent, aL as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, z as EntityInfoComponent, H as EntityPreviewCardComponent, bc as FilterBuilderComponent, bf as FilterByGroupPipe, bb as FilterChipsBarComponent, a9 as GaugeChartHandler, aV as GeneralSettings, bg as GetChartActionsPipe, ba as GuidedConfigDialogComponent, aE as HTTPMethod, I as HeaderCardComponent, cf as ITEM_GUIDANCE_REGISTRY, b6 as ItemCardMenuComponent, b9 as ItemConfigPopoverComponent, b8 as ItemContextToolbarComponent, ch as ItemGuidanceService, b4 as KeyValueMapField, L as LastHistoryLevelCardComponent, b5 as LegendOrderField, ah as LevelCardHandler, ad as LineChartHandler, J as ListStatisticCardComponent, U as MAP_DATA_ATTRIBUTION, K as MAP_FALLBACK_COLORS, M as MAP_MARKER_PATH, R as MAP_REGIONS, aB as MODULE_CLASSIFICATION_LOG, aC as MODULE_CLASSIFICATION_LOG_NAME, aJ as ManageBreadcrumb, aK as ManageFilterOnPage, aS as ManageItem, aU as ManageItemService, aI as ManagePages, ai as MapChartHandler, W as MapViewComponent, ab as OverviewCardHandler, bz as POPOVER_TABS, bA as POPOVER_TAB_SPECS, al as PhaseGateStepperHandler, a5 as PieChartHandler, aP as PieControlUi, P as PropertiesCardComponent, aj as RingGaugeChartHandler, ak as SPlusChartHandler, bR as STYLE_PRESETS, be as SchemaControlRendererComponent, b1 as SegmentedField, X as SkeletonCardComponent, ae as SnapshotHandler, ag as SplitterChartHandler, a6 as StackBarChartHandler, aR as StackBarControlUi, S as StaticFiltersComponent, Z as StatisticCardComponent, b0 as StyleField, a_ as StyleSettingsRenderer, aZ as StyleStudioDrawer, _ as TableCardComponent, aa as TableViewHandler, ac as TimelineHandler, $ as TopbarCardComponent, n as addCommasToNumber, bN as applyBehaviorToPersisted, az as applyBuiltInConditions, c1 as applyControlPatchToPersisted, c2 as applyControlPatchesToPersisted, bO as applyFilterChipsToPersisted, bL as applyLabelLegendFormatToPersisted, bJ as applyLayoutToPersisted, bH as applyStyleToPersisted, bC as applyTitleToPersisted, a7 as axisFormatters, bM as behaviorToUi, ca as bindingKey, bQ as buildAssembly, c9 as buildDisplayFieldPredicate, Q as buildMapChartOption, c as cloneDeep, ar as createAxisFormatter, as as createTooltipFormatter, bD as datasourceToUi, A as dateDisplayRawValue, bY as deepMerge, cg as describeGuidance, bx as domainsForCapability, i as dynamicReorder, h as dynamicTextReplace, a$ as expandResetPatches, bE as fieldsToUi, bF as filtersToUi, by as findDomain, bT as findPreset, c7 as flattenSchema, at as formatAxisLabel, am as formatCurrency, aq as formatDate, bZ as formatForEditor, ap as formatNumber, ao as formatPercentage, k as formatValue, au as formatWordsUnderBar, av as formatXAxis, j as generalConfiguration, cb as getBinding, bi as getCapabilityById, q as getColorFromConditions, c3 as getControlSchema, an as getCurrencySuffix, c6 as getFallbackControlSchema, l as getLocalizedTitle, g as getNestedData, a8 as groupDatesByYearAndMonth, bW as groupIssuesByDomain, ax as handleFilterForCard, ay as handleFilterForSnapshot, aw as handleFiltersForCustom, bV as hasBlockingIssues, aD as isLogClassification, aH as isManagePagesDeleteResult, p as isMobilePlatform, N as isPlottable, bK as labelLegendFormatToUi, bI as layoutToUi, cc as listBindings, cd as listBindingsForChart, c4 as listControlSchemaIds, c5 as listControlSchemas, a2 as loadImmediately, G as mergePropertyAppearance, bq as moduleIdFromSelector, bn as normalizeAggregateFunction, bv as normalizeBeforeRequest, bu as normalizeBeforeSave, bl as normalizeChartTypeForRequest, B as normalizeDashboardCardEntityValue, bm as normalizeFilterOperation, bo as normalizeFilters, bt as normalizeOnLoad, a1 as observeNearViewport, bX as parseAdvancedJson, bP as persistedToUi, O as plottableGroups, bS as presetsForCapability, ce as readBoundValue, b$ as readByPath, bj as resolveCapability, c8 as resolveDisplayFields, y as resolveEntityCheckbox, x as resolveEntityUserPhoto, V as resolveMapRegion, Y as resolveStatisticIconPlacement, bp as selectorFromLegacy, c0 as setByPath, m as sortChartData, o as sortDataTableView, bG as styleToUi, f as switchAllKeysSmall, s as switchAllKeysToLower, bB as titleToUi, bk as toBackendChartType, br as toBackendSourceLink, bs as toFormSourceLink, bU as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-CQPXn8PH.mjs';
1
+ export { aX as ActionsSettings, b3 as ArrayBuilderField, a4 as BarChartHandler, aQ as BarControlUi, bh as CHART_CAPABILITIES, aT as CHART_TYPES, bw as CONFIG_DOMAINS, b_ as CUSTOM_COLOR_OPTION, C as CardContentComponent, t as CardFilterComponent, v as CardInfoComponent, w as ChartCardComponent, a0 as ChartDataService, b7 as ChartFilterDrawer, aM as ChartSettingsDrawer, aY as ChartViewer, b2 as ColorListField, af as ComparisonChartHandler, a3 as DASHBOARD_ITEM_VISIBILITY, T as DEFAULT_MAP_REGION_KEY, d as DashboardBuilder, aF as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, aA as DashboardList, aG as DashboardStoreService, e as DashboardViewer, aW as DataSourceSettings, bd as DatasourcePanelComponent, aO as DefaultControlUi, aN as DisplaySettings, u as DynamicFiltersComponent, aL as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, z as EntityInfoComponent, H as EntityPreviewCardComponent, bc as FilterBuilderComponent, bf as FilterByGroupPipe, bb as FilterChipsBarComponent, a9 as GaugeChartHandler, aV as GeneralSettings, bg as GetChartActionsPipe, ba as GuidedConfigDialogComponent, aE as HTTPMethod, I as HeaderCardComponent, cf as ITEM_GUIDANCE_REGISTRY, b6 as ItemCardMenuComponent, b9 as ItemConfigPopoverComponent, b8 as ItemContextToolbarComponent, ch as ItemGuidanceService, b4 as KeyValueMapField, L as LastHistoryLevelCardComponent, b5 as LegendOrderField, ah as LevelCardHandler, ad as LineChartHandler, J as ListStatisticCardComponent, U as MAP_DATA_ATTRIBUTION, K as MAP_FALLBACK_COLORS, M as MAP_MARKER_PATH, R as MAP_REGIONS, aB as MODULE_CLASSIFICATION_LOG, aC as MODULE_CLASSIFICATION_LOG_NAME, aJ as ManageBreadcrumb, aK as ManageFilterOnPage, aS as ManageItem, aU as ManageItemService, aI as ManagePages, ai as MapChartHandler, W as MapViewComponent, ab as OverviewCardHandler, bz as POPOVER_TABS, bA as POPOVER_TAB_SPECS, al as PhaseGateStepperHandler, a5 as PieChartHandler, aP as PieControlUi, P as PropertiesCardComponent, aj as RingGaugeChartHandler, ak as SPlusChartHandler, bR as STYLE_PRESETS, be as SchemaControlRendererComponent, b1 as SegmentedField, X as SkeletonCardComponent, ae as SnapshotHandler, ag as SplitterChartHandler, a6 as StackBarChartHandler, aR as StackBarControlUi, S as StaticFiltersComponent, Z as StatisticCardComponent, b0 as StyleField, a_ as StyleSettingsRenderer, aZ as StyleStudioDrawer, _ as TableCardComponent, aa as TableViewHandler, ac as TimelineHandler, $ as TopbarCardComponent, n as addCommasToNumber, bN as applyBehaviorToPersisted, az as applyBuiltInConditions, c1 as applyControlPatchToPersisted, c2 as applyControlPatchesToPersisted, bO as applyFilterChipsToPersisted, bL as applyLabelLegendFormatToPersisted, bJ as applyLayoutToPersisted, bH as applyStyleToPersisted, bC as applyTitleToPersisted, a7 as axisFormatters, bM as behaviorToUi, ca as bindingKey, bQ as buildAssembly, c9 as buildDisplayFieldPredicate, Q as buildMapChartOption, c as cloneDeep, ar as createAxisFormatter, as as createTooltipFormatter, bD as datasourceToUi, A as dateDisplayRawValue, bY as deepMerge, cg as describeGuidance, bx as domainsForCapability, i as dynamicReorder, h as dynamicTextReplace, a$ as expandResetPatches, bE as fieldsToUi, bF as filtersToUi, by as findDomain, bT as findPreset, c7 as flattenSchema, at as formatAxisLabel, am as formatCurrency, aq as formatDate, bZ as formatForEditor, ap as formatNumber, ao as formatPercentage, k as formatValue, au as formatWordsUnderBar, av as formatXAxis, j as generalConfiguration, cb as getBinding, bi as getCapabilityById, q as getColorFromConditions, c3 as getControlSchema, an as getCurrencySuffix, c6 as getFallbackControlSchema, l as getLocalizedTitle, g as getNestedData, a8 as groupDatesByYearAndMonth, bW as groupIssuesByDomain, ax as handleFilterForCard, ay as handleFilterForSnapshot, aw as handleFiltersForCustom, bV as hasBlockingIssues, aD as isLogClassification, aH as isManagePagesDeleteResult, p as isMobilePlatform, N as isPlottable, bK as labelLegendFormatToUi, bI as layoutToUi, cc as listBindings, cd as listBindingsForChart, c4 as listControlSchemaIds, c5 as listControlSchemas, a2 as loadImmediately, G as mergePropertyAppearance, bq as moduleIdFromSelector, bn as normalizeAggregateFunction, bv as normalizeBeforeRequest, bu as normalizeBeforeSave, bl as normalizeChartTypeForRequest, B as normalizeDashboardCardEntityValue, bm as normalizeFilterOperation, bo as normalizeFilters, bt as normalizeOnLoad, a1 as observeNearViewport, bX as parseAdvancedJson, bP as persistedToUi, O as plottableGroups, bS as presetsForCapability, ce as readBoundValue, b$ as readByPath, bj as resolveCapability, c8 as resolveDisplayFields, y as resolveEntityCheckbox, x as resolveEntityUserPhoto, V as resolveMapRegion, Y as resolveStatisticIconPlacement, bp as selectorFromLegacy, c0 as setByPath, m as sortChartData, o as sortDataTableView, bG as styleToUi, f as switchAllKeysSmall, s as switchAllKeysToLower, bB as titleToUi, bk as toBackendChartType, br as toBackendSourceLink, bs as toFormSourceLink, bU as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-BjNTcvqc.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.114",
3
+ "version": "0.0.116",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/dashboard-builder",
6
6
  "linkDirectory": true,
@@ -23,7 +23,9 @@
23
23
  "quill": "^2.0.3",
24
24
  "rxjs": "^7.8.2",
25
25
  "tailwindcss": "^4.2.2",
26
- "@masterteam/components": "^0.0.332",
26
+ "@masterteam/data-grid": "^0.0.2",
27
+ "@masterteam/data-table": "^0.0.2",
28
+ "@masterteam/components": "^0.0.334",
27
29
  "@masterteam/timeline": "^0.0.24",
28
30
  "@masterteam/icons": "^0.0.17"
29
31
  },
@@ -13,6 +13,7 @@ import { MTIcon } from '@masterteam/icons';
13
13
  import { TimelineScaleMode, TimelineColumnConfig, TimelineGanttMapping } from '@masterteam/timeline';
14
14
  import { EntityData as EntityData$1, EntityViewType, EntityConfiguration } from '@masterteam/components/entities';
15
15
  import { HttpContext } from '@angular/common/http';
16
+ import { MtColDef, MtGridApi } from '@masterteam/data-grid';
16
17
  import { ColumnDef, TableAction, CellChangeEvent } from '@masterteam/components/table';
17
18
  import { ActivatedRoute } from '@angular/router';
18
19
  export * from '@masterteam/dashboard-builder/access';
@@ -689,6 +690,105 @@ declare class ItemCardMenuComponent {
689
690
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ItemCardMenuComponent, "mt-item-card-menu", never, { "allowDuplicate": { "alias": "allowDuplicate"; "required": false; "isSignal": true; }; "hasLinkedDialog": { "alias": "hasLinkedDialog"; "required": false; "isSignal": true; }; "canLinkDialog": { "alias": "canLinkDialog"; "required": false; "isSignal": true; }; }, { "action": "action"; }, never, never, true, never>;
690
691
  }
691
692
 
693
+ /**
694
+ * Filter Field Models
695
+ *
696
+ * Defines the structure for dynamic filter fields configuration
697
+ * used in dashboard page filtering.
698
+ */
699
+ /** Localized text with English and Arabic translations */
700
+ interface LocalizedText {
701
+ en: string;
702
+ ar: string;
703
+ }
704
+ /** Filter field types supported by the system */
705
+ type FilterFieldType = 'dropdownTVService' | 'lookup' | 'status' | 'phaseGate' | 'user' | 'date' | 'section' | 'separator' | 'year' | 'month' | 'quarter' | 'checkbox' | 'schemaSettings' | 'schemaSettingsLeafs';
706
+ /** Selection item for dropdown configuration */
707
+ interface FilterSelectionItem {
708
+ id: number;
709
+ service?: string | null;
710
+ selector?: string | null;
711
+ selectorName?: string | null;
712
+ moduleType?: string;
713
+ moduleId?: number;
714
+ filters?: any[];
715
+ modules?: any[];
716
+ properties?: any[];
717
+ }
718
+ /** Filter field configuration details */
719
+ interface FilterFieldConfiguration {
720
+ payload?: {
721
+ dashboardId: number;
722
+ workspaceId?: string | number | null;
723
+ workspace?: string | null;
724
+ selection: FilterSelectionItem[];
725
+ chartType: string;
726
+ query: {
727
+ selectedProperties: string[];
728
+ };
729
+ };
730
+ lookupId?: number;
731
+ schemaLevelId?: number;
732
+ logId?: number;
733
+ isRequird?: boolean;
734
+ isMultiple?: boolean;
735
+ checked?: boolean;
736
+ minYear?: number;
737
+ maxYear?: number;
738
+ /** Old persisted date default resolved at runtime. */
739
+ defaultDate?: 'startOfYear' | 'endOfYear';
740
+ /** Old persisted multi-select defaults. */
741
+ defaultValues?: any[];
742
+ /** Optional single-value default used by newer saved filters. */
743
+ defaultValue?: any;
744
+ defaultYear?: number | string;
745
+ setCurrentYear?: boolean;
746
+ }
747
+ /** Filter field definition */
748
+ interface FilterField {
749
+ key?: string;
750
+ name?: LocalizedText;
751
+ type: FilterFieldType;
752
+ configuration?: FilterFieldConfiguration;
753
+ /** Disabled fields remain persisted but do not participate at runtime. */
754
+ active?: boolean;
755
+ }
756
+ /** Filter field type option for dropdown */
757
+ interface FilterFieldTypeOption {
758
+ value: FilterFieldType;
759
+ label: string;
760
+ products: string[];
761
+ }
762
+ /**
763
+ * Dynamic Filter Field
764
+ *
765
+ * An extended filter definition with options and loading state
766
+ * for chart-level dynamic filtering.
767
+ */
768
+ interface DynamicFilterField extends FilterField {
769
+ /** Options loaded from API */
770
+ options?: DynamicFilterOption[];
771
+ /** Loading state for async options */
772
+ loading?: boolean;
773
+ /** Currently selected value(s) */
774
+ selectedValue?: any;
775
+ }
776
+ /**
777
+ * Dynamic Filter Option
778
+ *
779
+ * A single option in a dynamic filter dropdown.
780
+ */
781
+ interface DynamicFilterOption {
782
+ id: number | string;
783
+ name: string | LocalizedText;
784
+ value?: any;
785
+ color?: string;
786
+ icon?: string;
787
+ }
788
+
789
+ /** What a page filter field still needs before it can be saved. */
790
+ type FilterFieldGap = 'key' | 'name' | 'source';
791
+
692
792
  /**
693
793
  * Chart Capability Registry — types
694
794
  *
@@ -1779,102 +1879,6 @@ declare class ItemGuidanceService {
1779
1879
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<ItemGuidanceService>;
1780
1880
  }
1781
1881
 
1782
- /**
1783
- * Filter Field Models
1784
- *
1785
- * Defines the structure for dynamic filter fields configuration
1786
- * used in dashboard page filtering.
1787
- */
1788
- /** Localized text with English and Arabic translations */
1789
- interface LocalizedText {
1790
- en: string;
1791
- ar: string;
1792
- }
1793
- /** Filter field types supported by the system */
1794
- type FilterFieldType = 'dropdownTVService' | 'lookup' | 'status' | 'phaseGate' | 'user' | 'date' | 'section' | 'separator' | 'year' | 'month' | 'quarter' | 'checkbox' | 'schemaSettings' | 'schemaSettingsLeafs';
1795
- /** Selection item for dropdown configuration */
1796
- interface FilterSelectionItem {
1797
- id: number;
1798
- service?: string | null;
1799
- selector?: string | null;
1800
- selectorName?: string | null;
1801
- moduleType?: string;
1802
- moduleId?: number;
1803
- filters?: any[];
1804
- modules?: any[];
1805
- properties?: any[];
1806
- }
1807
- /** Filter field configuration details */
1808
- interface FilterFieldConfiguration {
1809
- payload?: {
1810
- dashboardId: number;
1811
- workspaceId?: string | number | null;
1812
- workspace?: string | null;
1813
- selection: FilterSelectionItem[];
1814
- chartType: string;
1815
- query: {
1816
- selectedProperties: string[];
1817
- };
1818
- };
1819
- lookupId?: number;
1820
- schemaLevelId?: number;
1821
- logId?: number;
1822
- isRequird?: boolean;
1823
- isMultiple?: boolean;
1824
- checked?: boolean;
1825
- minYear?: number;
1826
- maxYear?: number;
1827
- /** Old persisted date default resolved at runtime. */
1828
- defaultDate?: 'startOfYear' | 'endOfYear';
1829
- /** Old persisted multi-select defaults. */
1830
- defaultValues?: any[];
1831
- /** Optional single-value default used by newer saved filters. */
1832
- defaultValue?: any;
1833
- defaultYear?: number | string;
1834
- setCurrentYear?: boolean;
1835
- }
1836
- /** Filter field definition */
1837
- interface FilterField {
1838
- key?: string;
1839
- name?: LocalizedText;
1840
- type: FilterFieldType;
1841
- configuration?: FilterFieldConfiguration;
1842
- /** Disabled fields remain persisted but do not participate at runtime. */
1843
- active?: boolean;
1844
- }
1845
- /** Filter field type option for dropdown */
1846
- interface FilterFieldTypeOption {
1847
- value: FilterFieldType;
1848
- label: string;
1849
- products: string[];
1850
- }
1851
- /**
1852
- * Dynamic Filter Field
1853
- *
1854
- * An extended filter definition with options and loading state
1855
- * for chart-level dynamic filtering.
1856
- */
1857
- interface DynamicFilterField extends FilterField {
1858
- /** Options loaded from API */
1859
- options?: DynamicFilterOption[];
1860
- /** Loading state for async options */
1861
- loading?: boolean;
1862
- /** Currently selected value(s) */
1863
- selectedValue?: any;
1864
- }
1865
- /**
1866
- * Dynamic Filter Option
1867
- *
1868
- * A single option in a dynamic filter dropdown.
1869
- */
1870
- interface DynamicFilterOption {
1871
- id: number | string;
1872
- name: string | LocalizedText;
1873
- value?: any;
1874
- color?: string;
1875
- icon?: string;
1876
- }
1877
-
1878
1882
  declare class ChartFilterDrawer {
1879
1883
  private readonly dialogRef;
1880
1884
  private readonly dashboardService;
@@ -1899,6 +1903,14 @@ declare class ChartFilterDrawer {
1899
1903
  onChipsChange(next: FilterChip[]): void;
1900
1904
  onInteractiveFiltersChange(next: FilterField[]): void;
1901
1905
  onLoadLevelLogs(schemaLevelId: number): void;
1906
+ /**
1907
+ * An interactive filter field still missing its key, name or source: Apply
1908
+ * waits for it, as the page's Manage Filters does (#1845).
1909
+ */
1910
+ readonly incompleteField: _angular_core.Signal<{
1911
+ position: number;
1912
+ gap: FilterFieldGap;
1913
+ } | null>;
1902
1914
  apply(): void;
1903
1915
  cancel(): void;
1904
1916
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartFilterDrawer, never>;
@@ -2501,6 +2513,7 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2501
2513
  private transloco;
2502
2514
  private modalService;
2503
2515
  private confirmationService;
2516
+ private toast;
2504
2517
  private route;
2505
2518
  /** Whether to wrap content in mt-page component */
2506
2519
  readonly isPage: _angular_core.InputSignal<boolean>;
@@ -2638,6 +2651,12 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
2638
2651
  saveDash(options?: {
2639
2652
  silent?: boolean;
2640
2653
  }): void;
2654
+ /**
2655
+ * The builder's own save message. The link requests are silent: their
2656
+ * backend message is "Created successfully." even when an existing
2657
+ * dashboard is saved (#1906).
2658
+ */
2659
+ private reportSaved;
2641
2660
  /**
2642
2661
  * Mark the current document as the saved baseline: drop the undo history so
2643
2662
  * Undo is disabled until the next edit (issue #1192 — undo is a *pre-save*
@@ -3745,7 +3764,7 @@ declare class CardFilterComponent implements OnInit {
3745
3764
  /** Language code */
3746
3765
  readonly langCode: _angular_core.Signal<string>;
3747
3766
  /** Filter type */
3748
- readonly filterType: _angular_core.Signal<"date" | "text" | "select" | "multiselect" | "multiSelect" | "daterange">;
3767
+ readonly filterType: _angular_core.Signal<"text" | "date" | "select" | "multiselect" | "multiSelect" | "daterange">;
3749
3768
  /** Filter options */
3750
3769
  readonly options: _angular_core.Signal<_masterteam_dashboard_builder.FilterOption[]>;
3751
3770
  /** Placeholder text */
@@ -3960,6 +3979,12 @@ declare function buildMapChartOption(groups: readonly MapViewGroup[] | null | un
3960
3979
  interface MapViewConfig {
3961
3980
  mapRegion?: string;
3962
3981
  }
3982
+ /** What ECharts hands back for a clicked pin (see `buildMapChartOption`). */
3983
+ interface MapPinData {
3984
+ extraValues?: unknown;
3985
+ name?: string;
3986
+ value?: unknown[];
3987
+ }
3963
3988
  declare class MapViewComponent {
3964
3989
  /** Grouped records from `MapChartHandler.handleLeafletMap`. */
3965
3990
  readonly groups: _angular_core.InputSignal<MapViewGroup[]>;
@@ -3977,6 +4002,8 @@ declare class MapViewComponent {
3977
4002
  readonly inGroup: _angular_core.InputSignal<boolean>;
3978
4003
  /** Emitted when a marker is clicked, for the widget's row actions. */
3979
4004
  readonly pointClick: _angular_core.OutputEmitterRef<MapViewPoint>;
4005
+ /** Emitted when a marker is double-clicked. */
4006
+ readonly pointDblClick: _angular_core.OutputEmitterRef<MapViewPoint>;
3980
4007
  /** The ECharts map name currently in the global registry, once loaded. */
3981
4008
  private readonly registeredName;
3982
4009
  protected readonly attribution = "\u00A9 OpenStreetMap contributors (ODbL)";
@@ -4000,14 +4027,14 @@ declare class MapViewComponent {
4000
4027
  * the marker rides along on `extraValues`.
4001
4028
  */
4002
4029
  protected onChartClick(event: {
4003
- data?: {
4004
- extraValues?: unknown;
4005
- name?: string;
4006
- value?: unknown[];
4007
- };
4030
+ data?: MapPinData;
4008
4031
  }): void;
4032
+ protected onChartDblClick(event: {
4033
+ data?: MapPinData;
4034
+ }): void;
4035
+ private toPoint;
4009
4036
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<MapViewComponent, never>;
4010
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<MapViewComponent, "mt-map-view", never, { "groups": { "alias": "groups"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "legendPosition": { "alias": "legendPosition"; "required": false; "isSignal": true; }; "legendIcon": { "alias": "legendIcon"; "required": false; "isSignal": true; }; "dashboardId": { "alias": "dashboardId"; "required": false; "isSignal": true; }; "configurationItem": { "alias": "configurationItem"; "required": false; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; }, { "pointClick": "pointClick"; }, never, never, true, never>;
4037
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<MapViewComponent, "mt-map-view", never, { "groups": { "alias": "groups"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "legendPosition": { "alias": "legendPosition"; "required": false; "isSignal": true; }; "legendIcon": { "alias": "legendIcon"; "required": false; "isSignal": true; }; "dashboardId": { "alias": "dashboardId"; "required": false; "isSignal": true; }; "configurationItem": { "alias": "configurationItem"; "required": false; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; }, { "pointClick": "pointClick"; "pointDblClick": "pointDblClick"; }, never, never, true, never>;
4011
4038
  }
4012
4039
 
4013
4040
  interface PhaseGateStepperStep {
@@ -4155,6 +4182,13 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
4155
4182
  readonly mapLegendIcon: _angular_core.Signal<string | undefined>;
4156
4183
  private readonly mapLegend;
4157
4184
  onMapPointClick(point: MapViewPoint): void;
4185
+ onMapPointDblClick(point: MapViewPoint): void;
4186
+ /**
4187
+ * A pin's record, plus the shape actions read from every other chart: the
4188
+ * pin's name as `key`, and the record's cells on `_original` so
4189
+ * `{{extraValues.<key>…}}` and the entity Id resolve from them (#1846).
4190
+ */
4191
+ private mapPinData;
4158
4192
  readonly performanceGauge: _angular_core.Signal<PerformanceGaugeViewModel>;
4159
4193
  readonly performanceGaugeSegments: _angular_core.Signal<PerformanceGaugeSegment[]>;
4160
4194
  /**
@@ -4192,7 +4226,10 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
4192
4226
  readonly phaseGateCompact: _angular_core.Signal<boolean>;
4193
4227
  ngOnInit(): void;
4194
4228
  ngOnDestroy(): void;
4229
+ /** Delays a click only while a Double Click action is configured (#1905). */
4230
+ private readonly clicks;
4195
4231
  onChartClick(event: any): void;
4232
+ onChartDblClick(event: any): void;
4196
4233
  hasActions(): boolean;
4197
4234
  onPerformanceGaugeClick(event: MouseEvent): void;
4198
4235
  performanceGaugeStatusName(): string;
@@ -4276,6 +4313,11 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
4276
4313
  data: any;
4277
4314
  event: any;
4278
4315
  }>;
4316
+ /** Chart double-click event (the Actions drawer's Double Click trigger). */
4317
+ readonly chartDblClick: _angular_core.OutputEmitterRef<{
4318
+ data: any;
4319
+ event: any;
4320
+ }>;
4279
4321
  /** Chart ready flag */
4280
4322
  readonly isReady: _angular_core.WritableSignal<boolean>;
4281
4323
  /** Legend items for custom legend */
@@ -4426,7 +4468,7 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
4426
4468
  private applyLegendSideCoordinates;
4427
4469
  private estimateCategoryCount;
4428
4470
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EChartComponent, never>;
4429
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<EChartComponent, "mt-echart", never, { "dashboardId": { "alias": "dashboardId"; "required": false; "isSignal": true; }; "chartConfig": { "alias": "chartConfig"; "required": false; "isSignal": true; }; "configurationItem": { "alias": "configurationItem"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; "headerHidden": { "alias": "headerHidden"; "required": false; "isSignal": true; }; }, { "chartClick": "chartClick"; }, never, never, true, never>;
4471
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EChartComponent, "mt-echart", never, { "dashboardId": { "alias": "dashboardId"; "required": false; "isSignal": true; }; "chartConfig": { "alias": "chartConfig"; "required": false; "isSignal": true; }; "configurationItem": { "alias": "configurationItem"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; "headerHidden": { "alias": "headerHidden"; "required": false; "isSignal": true; }; }, { "chartClick": "chartClick"; "chartDblClick": "chartDblClick"; }, never, never, true, never>;
4430
4472
  }
4431
4473
 
4432
4474
  interface EntityData {
@@ -4960,6 +5002,15 @@ declare class StatisticCardComponent implements OnInit {
4960
5002
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<StatisticCardComponent, "mt-statistic-card", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "styleConfig": { "alias": "styleConfig"; "required": false; "isSignal": true; }; "configurationItem": { "alias": "configurationItem"; "required": false; "isSignal": true; }; }, { "cardClick": "cardClick"; }, never, never, true, never>;
4961
5003
  }
4962
5004
 
5005
+ /** A dashboard table row on the standard grid: the source row plus its group and aggregates. */
5006
+ interface TableCardGridRow {
5007
+ readonly __row: any;
5008
+ readonly __index: number;
5009
+ readonly __id: string;
5010
+ readonly __mtgroup?: EntityData$1 | null;
5011
+ readonly __mtaggregates?: string;
5012
+ }
5013
+
4963
5014
  interface TableColumn {
4964
5015
  key: string;
4965
5016
  keyPure?: string;
@@ -5007,22 +5058,7 @@ interface TableStyleConfig {
5007
5058
  showPercentageAsProgressBar?: boolean;
5008
5059
  showPercentageStatus?: boolean;
5009
5060
  }
5010
- interface TableVirtualRow {
5011
- trackId: string;
5012
- row: any;
5013
- rowIndex: number;
5014
- }
5015
- interface GroupedTableVirtualItem {
5016
- kind: 'group' | 'row';
5017
- trackId: string;
5018
- group: any;
5019
- groupIndex: number;
5020
- row?: any;
5021
- rowIndex?: number;
5022
- }
5023
5061
  declare class TableCardComponent implements OnInit, OnDestroy {
5024
- private readonly virtualRowHeightPx;
5025
- private readonly virtualOverscanRows;
5026
5062
  private readonly storeService;
5027
5063
  private readonly transloco;
5028
5064
  private readonly subscription;
@@ -5070,10 +5106,6 @@ declare class TableCardComponent implements OnInit, OnDestroy {
5070
5106
  * aggregateFunction, alias, value }`); an alias replaces the generated name.
5071
5107
  */
5072
5108
  aggregateSummary(aggregates: unknown): string;
5073
- /** Virtual scroll offset for the native dashboard table renderer. */
5074
- readonly tableScrollTop: _angular_core.WritableSignal<number>;
5075
- /** Current table viewport height. Defaults to the timeline/card body size. */
5076
- readonly tableViewportHeight: _angular_core.WritableSignal<number>;
5077
5109
  /** Title */
5078
5110
  readonly title: _angular_core.Signal<string>;
5079
5111
  /** Table style config */
@@ -5090,12 +5122,6 @@ declare class TableCardComponent implements OnInit, OnDestroy {
5090
5122
  * persisted sort config.
5091
5123
  */
5092
5124
  private readonly _sortConfigSync;
5093
- /**
5094
- * Hide the table's column-header (subheader) row.
5095
- * Reads `clientConfig.tableFormat.hideTableSubheader`. Gated: defaults to
5096
- * showing the header (current behavior) unless the flag is explicitly true.
5097
- */
5098
- readonly hideSubheader: _angular_core.Signal<boolean>;
5099
5125
  /**
5100
5126
  * Whether to skip currency formatting on cells.
5101
5127
  * Reads `clientConfig.tableFormat.disableCurrencyFormat`. Gated: only true
@@ -5124,31 +5150,23 @@ declare class TableCardComponent implements OnInit, OnDestroy {
5124
5150
  readonly hasData: _angular_core.Signal<boolean>;
5125
5151
  /** Visible columns (not hidden) */
5126
5152
  readonly visibleColumns: _angular_core.Signal<TableColumn[]>;
5127
- /** Total columns (for colspan) */
5128
- readonly totalColumns: _angular_core.Signal<number>;
5129
- readonly flatVirtualWindow: _angular_core.Signal<{
5130
- startIndex: number;
5131
- endIndex: number;
5132
- }>;
5133
- readonly visibleTableRows: _angular_core.Signal<TableVirtualRow[]>;
5134
- readonly flatVirtualTopSpacerHeightPx: _angular_core.Signal<number>;
5135
- readonly flatVirtualBottomSpacerHeightPx: _angular_core.Signal<number>;
5136
- readonly flattenedGroupedRows: _angular_core.Signal<GroupedTableVirtualItem[]>;
5137
- readonly groupedVirtualWindow: _angular_core.Signal<{
5138
- startIndex: number;
5139
- endIndex: number;
5140
- }>;
5141
- readonly visibleGroupedRows: _angular_core.Signal<GroupedTableVirtualItem[]>;
5142
- readonly groupedVirtualTopSpacerHeightPx: _angular_core.Signal<number>;
5143
- readonly groupedVirtualBottomSpacerHeightPx: _angular_core.Signal<number>;
5144
5153
  /** Row clickable */
5145
5154
  readonly isRowClickable: _angular_core.Signal<boolean | undefined>;
5155
+ /** Rows for the standard grid: the source row, its index, its group and the group's aggregates. */
5156
+ protected readonly gridRows: _angular_core.Signal<readonly TableCardGridRow[]>;
5157
+ protected readonly gridRowId: (row: TableCardGridRow) => string;
5158
+ private readonly gridCells;
5159
+ protected readonly gridColumns: _angular_core.Signal<readonly MtColDef<TableCardGridRow>[]>;
5160
+ protected readonly gridApi: _angular_core.WritableSignal<MtGridApi<TableCardGridRow> | null>;
5161
+ private readonly gridHost;
5162
+ /** The grid fills the card body; measured, because the dashboard layout sizes the card. */
5163
+ protected readonly gridHeight: _angular_core.WritableSignal<number>;
5164
+ private readonly gridEffects;
5165
+ /** Double-click on a data row runs the item's double-click action. */
5166
+ protected onGridDoubleClick(event: MouseEvent): void;
5146
5167
  ngOnInit(): void;
5147
5168
  ngOnDestroy(): void;
5148
- onTableScroll(event: Event): void;
5149
- private resolveVirtualWindow;
5150
5169
  private resolveRowTrackId;
5151
- private resolveGroupTrackId;
5152
5170
  /**
5153
5171
  * Build table columns and rows from raw data
5154
5172
  * Matches old buildTable logic in table-card.component.ts
@@ -5207,14 +5225,12 @@ declare class TableCardComponent implements OnInit, OnDestroy {
5207
5225
  getPhaseGateCellText(cell: PhaseGateCell | null): string;
5208
5226
  getPhaseGatePercentage(cell: PhaseGateCell | null): number | null;
5209
5227
  getPhaseGateCellTooltip(cell: PhaseGateCell | null): string;
5210
- /**
5211
- * Sort column
5212
- */
5213
- onSort(column: TableColumn): void;
5214
5228
  /**
5215
5229
  * Get sortable value from row
5216
5230
  */
5217
5231
  private getSortValue;
5232
+ /** Delays a click only while a Double Click action is configured (#1905). */
5233
+ private readonly clicks;
5218
5234
  /**
5219
5235
  * Handle row click
5220
5236
  */
@@ -5265,7 +5281,7 @@ declare class TopbarCardComponent implements OnInit, OnDestroy {
5265
5281
  readonly iconColor: _angular_core.Signal<any>;
5266
5282
  readonly iconBackgroundColor: _angular_core.Signal<any>;
5267
5283
  readonly borderColor: _angular_core.Signal<any>;
5268
- readonly borderWidth: _angular_core.Signal<0 | 1>;
5284
+ readonly borderWidth: _angular_core.Signal<1 | 0>;
5269
5285
  readonly padding: _angular_core.Signal<number>;
5270
5286
  readonly titleFontSize: _angular_core.Signal<number>;
5271
5287
  readonly subtitleFontSize: _angular_core.Signal<number>;
@@ -6572,6 +6588,13 @@ declare class DashboardBuilderService {
6572
6588
  */
6573
6589
  readonly activatedRoute: _angular_core.WritableSignal<ActivatedRoute | null>;
6574
6590
  setActivatedRoute(route: ActivatedRoute | null): void;
6591
+ /**
6592
+ * Published by the open builder: whether it holds edits the top Save has
6593
+ * not written yet, so an action that navigates in-app asks first (#1906).
6594
+ */
6595
+ readonly unsavedBuilderChanges: _angular_core.WritableSignal<boolean>;
6596
+ /** The report the open builder is editing (a dashboard is not its own target). */
6597
+ readonly currentPageId: _angular_core.WritableSignal<string | number | null>;
6575
6598
  /** Chart for selected dialog */
6576
6599
  readonly chartForSelectedDialog: _angular_core.WritableSignal<any>;
6577
6600
  /** Dialog configs available to runtime action handling, keyed by dashboardId. */
@@ -6724,7 +6747,7 @@ declare class DashboardBuilderService {
6724
6747
  * If a host backend ever exposes a real bulk route, swap the inner call
6725
6748
  * for a single POST and keep the same outer signature.
6726
6749
  */
6727
- linkChartsBulk(requests: BulkLinkChartRequest[], options?: DashboardSaveRequestOptions): Observable<ApiResponse<BulkLinkChartResponse[]>>;
6750
+ linkChartsBulk(requests: BulkLinkChartRequest[]): Observable<ApiResponse<BulkLinkChartResponse[]>>;
6728
6751
  /**
6729
6752
  * Update chart link configuration
6730
6753
  */
@@ -7022,9 +7045,6 @@ declare class ManageBreadcrumb implements OnInit {
7022
7045
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ManageBreadcrumb, "mt-manage-breadcrumb", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
7023
7046
  }
7024
7047
 
7025
- /** What a page filter field still needs before it can be saved. */
7026
- type FilterFieldGap = 'key' | 'name' | 'source';
7027
-
7028
7048
  interface ManageFilterOnPageResult {
7029
7049
  filters: FilterField[];
7030
7050
  }
@@ -8645,7 +8665,7 @@ declare class DataSourceSettings {
8645
8665
  * Active tab within the selection cycle: Selection (pick modules) · Source
8646
8666
  * Links (joins, only with >1 selection) · Query (fields).
8647
8667
  */
8648
- readonly activeSection: _angular_core.WritableSignal<"query" | "selection" | "sourceLinks">;
8668
+ readonly activeSection: _angular_core.WritableSignal<"selection" | "query" | "sourceLinks">;
8649
8669
  /** Selection mode inside the selection tab (informative authoring). */
8650
8670
  readonly selectionMode: _angular_core.WritableSignal<"advanced" | "context">;
8651
8671
  readonly contextTargetSelector: _angular_core.WritableSignal<string | null>;
@@ -9020,6 +9040,18 @@ declare class ActionsSettings {
9020
9040
  private readonly languageCode;
9021
9041
  /** Dashboard pages for the navigate-to-page target select. */
9022
9042
  readonly pageOptions: _angular_core.WritableSignal<PageOption[]>;
9043
+ /**
9044
+ * Target pages: never the dashboard being edited, and a name two dashboards
9045
+ * share carries its id so they can be told apart (#1906).
9046
+ */
9047
+ readonly targetPageOptions: _angular_core.Signal<PageOption[]>;
9048
+ /**
9049
+ * The token syntax in the filters hint (#1906). It is rendered between two
9050
+ * translations, never passed into one: Transloco swallows a literal
9051
+ * `{{token}}`, and a parameter whose value contains one makes its
9052
+ * interpolation loop match it again forever, which hangs the page.
9053
+ */
9054
+ readonly tokenExample = "{{token}}";
9023
9055
  /** Properties of THIS chart's selections — the filter property picker. */
9024
9056
  readonly propertyOptions: _angular_core.WritableSignal<IProperty[]>;
9025
9057
  readonly loadingProperties: _angular_core.WritableSignal<boolean>;
@@ -9634,7 +9666,7 @@ interface MapRow {
9634
9666
  * boolean). Controlled: `value` in, `valueChange` out.
9635
9667
  */
9636
9668
  declare class KeyValueMapField {
9637
- readonly value: _angular_core.InputSignal<Record<string, unknown> | unknown[] | null>;
9669
+ readonly value: _angular_core.InputSignal<unknown[] | Record<string, unknown> | null>;
9638
9670
  readonly keys: _angular_core.InputSignal<ControlOption[]>;
9639
9671
  readonly valueFields: _angular_core.InputSignal<ControlField[]>;
9640
9672
  /** When true, store/read a positional array aligned to `keys` order. */
@@ -9643,7 +9675,7 @@ declare class KeyValueMapField {
9643
9675
  /** Properties Card: edit localized labels in the same positional row. */
9644
9676
  readonly integratedLabels: _angular_core.InputSignal<boolean>;
9645
9677
  readonly labelOverrides: _angular_core.InputSignal<Record<string, unknown>>;
9646
- readonly valueChange: _angular_core.OutputEmitterRef<Record<string, unknown> | unknown[]>;
9678
+ readonly valueChange: _angular_core.OutputEmitterRef<unknown[] | Record<string, unknown>>;
9647
9679
  readonly labelOverridesChange: _angular_core.OutputEmitterRef<Record<string, unknown>>;
9648
9680
  readonly rows: WritableSignal<MapRow[]>;
9649
9681
  readonly expandedRows: WritableSignal<ReadonlySet<string>>;