@masterteam/dashboard-builder 0.0.118 → 0.0.120
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 +57 -0
- package/assets/dashboard-builder.css +1 -1
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-DFy4sv6t.mjs → masterteam-dashboard-builder-dashboard-dialog.component-REizw3_Z.mjs} +2 -2
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-DFy4sv6t.mjs.map → masterteam-dashboard-builder-dashboard-dialog.component-REizw3_Z.mjs.map} +1 -1
- package/fesm2022/masterteam-dashboard-builder-faris.mjs +588 -0
- package/fesm2022/masterteam-dashboard-builder-faris.mjs.map +1 -0
- package/fesm2022/{masterteam-dashboard-builder-masterteam-dashboard-builder-2MrkLmtr.mjs → masterteam-dashboard-builder-masterteam-dashboard-builder-BAei0Jah.mjs} +2429 -2029
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-BAei0Jah.mjs.map +1 -0
- package/fesm2022/{masterteam-dashboard-builder-table-card.component-CKAm_KXn.mjs → masterteam-dashboard-builder-table-card.component-B7VosR26.mjs} +2 -2
- package/fesm2022/{masterteam-dashboard-builder-table-card.component-CKAm_KXn.mjs.map → masterteam-dashboard-builder-table-card.component-B7VosR26.mjs.map} +1 -1
- package/fesm2022/masterteam-dashboard-builder.mjs +1 -1
- package/package.json +14 -4
- package/types/masterteam-dashboard-builder-faris.d.ts +98 -0
- package/types/masterteam-dashboard-builder.d.ts +345 -227
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-2MrkLmtr.mjs.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as _masterteam_dashboard_builder from '@masterteam/dashboard-builder';
|
|
2
1
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { OnInit, OnDestroy, AfterViewInit, OnChanges, SimpleChanges,
|
|
2
|
+
import { Signal, Type, InjectionToken, OnInit, OnDestroy, AfterViewInit, OnChanges, SimpleChanges, TemplateRef, WritableSignal, PipeTransform } from '@angular/core';
|
|
3
|
+
import * as _masterteam_dashboard_builder from '@masterteam/dashboard-builder';
|
|
4
|
+
import { MTIcon } from '@masterteam/icons';
|
|
5
|
+
import * as _angular_forms from '@angular/forms';
|
|
6
|
+
import { ControlValueAccessor, FormGroup, FormArray, ValidationErrors, FormControl } from '@angular/forms';
|
|
4
7
|
import { GridsterItem, GridsterConfig } from 'angular-gridster2';
|
|
5
|
-
import { ContextMenu } from 'primeng/contextmenu';
|
|
6
|
-
import { MenuItem } from 'primeng/api';
|
|
7
8
|
import * as rxjs from 'rxjs';
|
|
8
9
|
import { Observable } from 'rxjs';
|
|
10
|
+
import { ContextMenu } from 'primeng/contextmenu';
|
|
11
|
+
import { MenuItem } from 'primeng/api';
|
|
9
12
|
import { MTMenuItem } from '@masterteam/components/menu';
|
|
10
|
-
import * as _angular_forms from '@angular/forms';
|
|
11
|
-
import { ControlValueAccessor, FormGroup, FormArray, ValidationErrors, FormControl } from '@angular/forms';
|
|
12
|
-
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';
|
|
@@ -639,6 +639,246 @@ interface CustomApi {
|
|
|
639
639
|
params?: Record<string, any>;
|
|
640
640
|
}
|
|
641
641
|
|
|
642
|
+
/**
|
|
643
|
+
* Chart Type Configuration
|
|
644
|
+
*/
|
|
645
|
+
interface ChartTypeConfig {
|
|
646
|
+
id: string;
|
|
647
|
+
name: string;
|
|
648
|
+
icon: string;
|
|
649
|
+
serviceType: string;
|
|
650
|
+
componentName: string;
|
|
651
|
+
functionName: string;
|
|
652
|
+
requestType?: string;
|
|
653
|
+
category: 'chart' | 'card' | 'table' | 'special' | 'layout';
|
|
654
|
+
/** Products this chart type is available for (pplus, splus, report) */
|
|
655
|
+
products?: ('pplus' | 'splus' | 'report')[];
|
|
656
|
+
hideInList?: boolean;
|
|
657
|
+
/** Whether this type requires manage-item configuration (false = add directly) */
|
|
658
|
+
hasManageItem: boolean;
|
|
659
|
+
/** Default size when added to grid */
|
|
660
|
+
defaultSize?: {
|
|
661
|
+
cols: number;
|
|
662
|
+
rows: number;
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* Module Type from API
|
|
667
|
+
*/
|
|
668
|
+
interface IModuleType {
|
|
669
|
+
id: string;
|
|
670
|
+
name: string;
|
|
671
|
+
version?: string;
|
|
672
|
+
description?: string;
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
* Module with properties
|
|
676
|
+
*/
|
|
677
|
+
interface IModule {
|
|
678
|
+
moduleDisplay: string;
|
|
679
|
+
moduleId: number | string;
|
|
680
|
+
moduleName: string;
|
|
681
|
+
selectionId?: number;
|
|
682
|
+
}
|
|
683
|
+
/**
|
|
684
|
+
* Property definition from API
|
|
685
|
+
* Maps to PropertyItem from dashboard.model.ts
|
|
686
|
+
*/
|
|
687
|
+
interface IProperty extends PropertyItem {
|
|
688
|
+
/** @deprecated Use PropertyItem.isCalculated when available */
|
|
689
|
+
isCalculated?: boolean;
|
|
690
|
+
description?: string;
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* Property with grouping info
|
|
694
|
+
*/
|
|
695
|
+
interface IPropertyWithGroup extends IProperty {
|
|
696
|
+
groupingBy: string;
|
|
697
|
+
}
|
|
698
|
+
/**
|
|
699
|
+
* Selection filter
|
|
700
|
+
*/
|
|
701
|
+
interface SelectionFilter {
|
|
702
|
+
propertyKey: string | null;
|
|
703
|
+
propertyValue: any;
|
|
704
|
+
operation: 'Equals' | 'NotEquals' | 'OneOf' | 'Between' | 'Contains' | 'GreaterThan' | 'LessThan' | 'Empty' | 'NotEmpty' | null;
|
|
705
|
+
logical: 'And' | 'Or' | null;
|
|
706
|
+
operationLevel?: number | null;
|
|
707
|
+
propertyData?: any;
|
|
708
|
+
}
|
|
709
|
+
/**
|
|
710
|
+
* Selection configuration
|
|
711
|
+
*/
|
|
712
|
+
interface ISelection {
|
|
713
|
+
id: number;
|
|
714
|
+
service?: string | null;
|
|
715
|
+
/** Module selector in format "ModuleType:Id" (e.g., "Level:7") */
|
|
716
|
+
selector: string | null;
|
|
717
|
+
/** Display name of the selected module (e.g., "Project" for "Level:7") */
|
|
718
|
+
selectorName?: string | null;
|
|
719
|
+
filters: SelectionFilter[];
|
|
720
|
+
}
|
|
721
|
+
/**
|
|
722
|
+
* Source link configuration for joins
|
|
723
|
+
*/
|
|
724
|
+
interface SourceLink {
|
|
725
|
+
source1SelectionId: number | null;
|
|
726
|
+
source2SelectionId: number | null;
|
|
727
|
+
source1PropertyKey: string | null;
|
|
728
|
+
source2PropertyKey: string | null;
|
|
729
|
+
source1Properties?: IProperty[];
|
|
730
|
+
source2Properties?: IProperty[];
|
|
731
|
+
isLeftJoin?: boolean;
|
|
732
|
+
isFilterLinkage?: boolean;
|
|
733
|
+
sourceLinkId?: number | null;
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* Available chart types — derived from the chart capability registry.
|
|
737
|
+
*
|
|
738
|
+
* The registry (`CHART_CAPABILITIES`) is the single source of truth.
|
|
739
|
+
* Adding a new chart means adding a manifest entry, not editing this array.
|
|
740
|
+
*/
|
|
741
|
+
declare const CHART_TYPES: ChartTypeConfig[];
|
|
742
|
+
/**
|
|
743
|
+
* Manage Item Service
|
|
744
|
+
*
|
|
745
|
+
* Handles state and operations for the manage-item drawer
|
|
746
|
+
*/
|
|
747
|
+
declare class ManageItemService {
|
|
748
|
+
private dashboardService;
|
|
749
|
+
private fb;
|
|
750
|
+
readonly chart: _angular_core.WritableSignal<DashboardChartItem | null>;
|
|
751
|
+
readonly selectedType: _angular_core.WritableSignal<ChartTypeConfig | null>;
|
|
752
|
+
readonly chartTypes: _angular_core.WritableSignal<ChartTypeConfig[]>;
|
|
753
|
+
readonly moduleTypes: _angular_core.WritableSignal<IModuleType[]>;
|
|
754
|
+
readonly modulesProperties: _angular_core.WritableSignal<{
|
|
755
|
+
moduleName: string;
|
|
756
|
+
moduleDisplay: string;
|
|
757
|
+
properties: IProperty[];
|
|
758
|
+
}[]>;
|
|
759
|
+
readonly propertiesFlat: _angular_core.WritableSignal<IPropertyWithGroup[]>;
|
|
760
|
+
readonly isEdit: _angular_core.WritableSignal<boolean>;
|
|
761
|
+
readonly dirty: _angular_core.WritableSignal<boolean>;
|
|
762
|
+
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
763
|
+
readonly configSignal: _angular_core.WritableSignal<ItemConfig | null>;
|
|
764
|
+
readonly chartTypesFiltered: _angular_core.Signal<ChartTypeConfig[]>;
|
|
765
|
+
readonly chartTypesByCategory: _angular_core.Signal<{
|
|
766
|
+
card: ChartTypeConfig[];
|
|
767
|
+
chart: ChartTypeConfig[];
|
|
768
|
+
table: ChartTypeConfig[];
|
|
769
|
+
special: ChartTypeConfig[];
|
|
770
|
+
layout: ChartTypeConfig[];
|
|
771
|
+
}>;
|
|
772
|
+
readonly chartForm: _angular_forms.FormGroup<{
|
|
773
|
+
id: _angular_forms.FormControl<number | null>;
|
|
774
|
+
name: _angular_forms.FormControl<string | null>;
|
|
775
|
+
dashboardId: _angular_forms.FormControl<string | null>;
|
|
776
|
+
chartTypeId: _angular_forms.FormControl<string | null>;
|
|
777
|
+
configuration: _angular_forms.FormGroup<{
|
|
778
|
+
clientConfig: _angular_forms.FormControl<ClientConfig | null>;
|
|
779
|
+
serviceConfig: _angular_forms.FormControl<ServiceConfig | null>;
|
|
780
|
+
}>;
|
|
781
|
+
}>;
|
|
782
|
+
/**
|
|
783
|
+
* Reset all state
|
|
784
|
+
*/
|
|
785
|
+
resetState(): void;
|
|
786
|
+
/**
|
|
787
|
+
* Initialize with existing chart (edit mode) or empty (new mode)
|
|
788
|
+
*/
|
|
789
|
+
init(chartData?: DashboardChartItem): void;
|
|
790
|
+
/**
|
|
791
|
+
* Set chart data for editing
|
|
792
|
+
*/
|
|
793
|
+
setChart(chartData: DashboardChartItem): void;
|
|
794
|
+
/**
|
|
795
|
+
* Select a chart type
|
|
796
|
+
*/
|
|
797
|
+
selectType(type: ChartTypeConfig): void;
|
|
798
|
+
/**
|
|
799
|
+
* Mark form as dirty
|
|
800
|
+
*/
|
|
801
|
+
markDirty(): void;
|
|
802
|
+
/**
|
|
803
|
+
* Get configuration value (returns signal value for reactivity)
|
|
804
|
+
*/
|
|
805
|
+
getConfig(): ItemConfig | null;
|
|
806
|
+
/**
|
|
807
|
+
* Update service config
|
|
808
|
+
*/
|
|
809
|
+
updateServiceConfig(partial: Partial<ServiceConfig>): void;
|
|
810
|
+
/**
|
|
811
|
+
* Update client config
|
|
812
|
+
*/
|
|
813
|
+
updateClientConfig(partial: Partial<ClientConfig>): void;
|
|
814
|
+
/**
|
|
815
|
+
* Load module types from API
|
|
816
|
+
*/
|
|
817
|
+
loadModuleTypes(): void;
|
|
818
|
+
/**
|
|
819
|
+
* Load properties for selected modules
|
|
820
|
+
*/
|
|
821
|
+
loadPropertiesForModules(modules: {
|
|
822
|
+
moduleType: string;
|
|
823
|
+
moduleDisplay?: string;
|
|
824
|
+
}[]): void;
|
|
825
|
+
/**
|
|
826
|
+
* Get final chart data for saving
|
|
827
|
+
*/
|
|
828
|
+
getFinalChartData(): {
|
|
829
|
+
configuration: ItemConfig;
|
|
830
|
+
chartTypeId: string;
|
|
831
|
+
} | null;
|
|
832
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ManageItemService, never>;
|
|
833
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ManageItemService>;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
/** An optional helper that can create and change widgets for the user. */
|
|
837
|
+
interface DashboardBuilderAssist {
|
|
838
|
+
readonly typeIds: Signal<ReadonlySet<string>>;
|
|
839
|
+
/** Inputs: widget and label; communicates through WIDGET_PALETTE_TILE_HOST. */
|
|
840
|
+
readonly paletteTile: Type<unknown>;
|
|
841
|
+
readonly itemLabel: Signal<string>;
|
|
842
|
+
readonly itemIcon: MTIcon;
|
|
843
|
+
canAssistItem?(item: DashboardChartItem): boolean;
|
|
844
|
+
}
|
|
845
|
+
declare const DASHBOARD_BUILDER_ASSIST: InjectionToken<DashboardBuilderAssist>;
|
|
846
|
+
/** What a palette tile component can ask of the palette. */
|
|
847
|
+
interface WidgetPaletteTileHost {
|
|
848
|
+
select(widget: ChartTypeConfig): void;
|
|
849
|
+
assist(widget: ChartTypeConfig): void;
|
|
850
|
+
dragStart(event: DragEvent, widget: ChartTypeConfig): void;
|
|
851
|
+
}
|
|
852
|
+
declare const WIDGET_PALETTE_TILE_HOST: InjectionToken<WidgetPaletteTileHost>;
|
|
853
|
+
/** A per-item mark keyed by config.serviceConfig.dashboardId. */
|
|
854
|
+
interface DashboardItemMark {
|
|
855
|
+
cssClass?: string;
|
|
856
|
+
label?: string;
|
|
857
|
+
}
|
|
858
|
+
/** One saved-dashboard item, without persistence identity. */
|
|
859
|
+
interface DashboardChartDraft {
|
|
860
|
+
chartTypeId: string;
|
|
861
|
+
config: {
|
|
862
|
+
serviceConfig: Record<string, unknown>;
|
|
863
|
+
clientConfig: Record<string, unknown>;
|
|
864
|
+
};
|
|
865
|
+
cols?: number;
|
|
866
|
+
rows?: number;
|
|
867
|
+
}
|
|
868
|
+
/** A level from the modules tree, with its workspace name. */
|
|
869
|
+
interface DashboardLevelOption {
|
|
870
|
+
levelId: number;
|
|
871
|
+
name: string | {
|
|
872
|
+
en?: string;
|
|
873
|
+
ar?: string;
|
|
874
|
+
};
|
|
875
|
+
templateName?: string | {
|
|
876
|
+
en?: string;
|
|
877
|
+
ar?: string;
|
|
878
|
+
};
|
|
879
|
+
}
|
|
880
|
+
declare function dashboardLevelOptions(tree: readonly ServiceItem[]): DashboardLevelOption[];
|
|
881
|
+
|
|
642
882
|
/**
|
|
643
883
|
* Action emitted from the kebab menu. The host (`dashboard-builder`)
|
|
644
884
|
* routes each id to a single concrete owner (ManageItem, ChartSettingsDrawer,
|
|
@@ -650,6 +890,8 @@ type ItemCardMenuAction = {
|
|
|
650
890
|
type: 'actions';
|
|
651
891
|
} | {
|
|
652
892
|
type: 'style';
|
|
893
|
+
} | {
|
|
894
|
+
type: 'assist';
|
|
653
895
|
} | {
|
|
654
896
|
type: 'filters';
|
|
655
897
|
} | {
|
|
@@ -670,6 +912,8 @@ type ItemCardMenuAction = {
|
|
|
670
912
|
type: 'dialog-remove';
|
|
671
913
|
};
|
|
672
914
|
declare class ItemCardMenuComponent {
|
|
915
|
+
readonly assistLabel: _angular_core.InputSignal<string | null>;
|
|
916
|
+
readonly assistIcon: _angular_core.InputSignal<MTIcon | null>;
|
|
673
917
|
private readonly transloco;
|
|
674
918
|
/** Whether to allow duplicate (excluded for layout/group widgets). */
|
|
675
919
|
readonly allowDuplicate: _angular_core.InputSignal<boolean>;
|
|
@@ -687,7 +931,7 @@ declare class ItemCardMenuComponent {
|
|
|
687
931
|
readonly items: _angular_core.Signal<MTMenuItem[]>;
|
|
688
932
|
onItemSelect(item: MTMenuItem): void;
|
|
689
933
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ItemCardMenuComponent, never>;
|
|
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>;
|
|
934
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ItemCardMenuComponent, "mt-item-card-menu", never, { "assistLabel": { "alias": "assistLabel"; "required": false; "isSignal": true; }; "assistIcon": { "alias": "assistIcon"; "required": false; "isSignal": true; }; "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>;
|
|
691
935
|
}
|
|
692
936
|
|
|
693
937
|
/**
|
|
@@ -2249,200 +2493,6 @@ declare class FilterBuilderComponent {
|
|
|
2249
2493
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilterBuilderComponent, "mt-filter-builder", never, { "chips": { "alias": "chips"; "required": true; "isSignal": true; }; "persisted": { "alias": "persisted"; "required": false; "isSignal": true; }; }, { "chipsChange": "chipsChange"; }, never, never, true, never>;
|
|
2250
2494
|
}
|
|
2251
2495
|
|
|
2252
|
-
/**
|
|
2253
|
-
* Chart Type Configuration
|
|
2254
|
-
*/
|
|
2255
|
-
interface ChartTypeConfig {
|
|
2256
|
-
id: string;
|
|
2257
|
-
name: string;
|
|
2258
|
-
icon: string;
|
|
2259
|
-
serviceType: string;
|
|
2260
|
-
componentName: string;
|
|
2261
|
-
functionName: string;
|
|
2262
|
-
requestType?: string;
|
|
2263
|
-
category: 'chart' | 'card' | 'table' | 'special' | 'layout';
|
|
2264
|
-
/** Products this chart type is available for (pplus, splus, report) */
|
|
2265
|
-
products?: ('pplus' | 'splus' | 'report')[];
|
|
2266
|
-
hideInList?: boolean;
|
|
2267
|
-
/** Whether this type requires manage-item configuration (false = add directly) */
|
|
2268
|
-
hasManageItem: boolean;
|
|
2269
|
-
/** Default size when added to grid */
|
|
2270
|
-
defaultSize?: {
|
|
2271
|
-
cols: number;
|
|
2272
|
-
rows: number;
|
|
2273
|
-
};
|
|
2274
|
-
}
|
|
2275
|
-
/**
|
|
2276
|
-
* Module Type from API
|
|
2277
|
-
*/
|
|
2278
|
-
interface IModuleType {
|
|
2279
|
-
id: string;
|
|
2280
|
-
name: string;
|
|
2281
|
-
version?: string;
|
|
2282
|
-
description?: string;
|
|
2283
|
-
}
|
|
2284
|
-
/**
|
|
2285
|
-
* Module with properties
|
|
2286
|
-
*/
|
|
2287
|
-
interface IModule {
|
|
2288
|
-
moduleDisplay: string;
|
|
2289
|
-
moduleId: number | string;
|
|
2290
|
-
moduleName: string;
|
|
2291
|
-
selectionId?: number;
|
|
2292
|
-
}
|
|
2293
|
-
/**
|
|
2294
|
-
* Property definition from API
|
|
2295
|
-
* Maps to PropertyItem from dashboard.model.ts
|
|
2296
|
-
*/
|
|
2297
|
-
interface IProperty extends PropertyItem {
|
|
2298
|
-
/** @deprecated Use PropertyItem.isCalculated when available */
|
|
2299
|
-
isCalculated?: boolean;
|
|
2300
|
-
description?: string;
|
|
2301
|
-
}
|
|
2302
|
-
/**
|
|
2303
|
-
* Property with grouping info
|
|
2304
|
-
*/
|
|
2305
|
-
interface IPropertyWithGroup extends IProperty {
|
|
2306
|
-
groupingBy: string;
|
|
2307
|
-
}
|
|
2308
|
-
/**
|
|
2309
|
-
* Selection filter
|
|
2310
|
-
*/
|
|
2311
|
-
interface SelectionFilter {
|
|
2312
|
-
propertyKey: string | null;
|
|
2313
|
-
propertyValue: any;
|
|
2314
|
-
operation: 'Equals' | 'NotEquals' | 'OneOf' | 'Between' | 'Contains' | 'GreaterThan' | 'LessThan' | 'Empty' | 'NotEmpty' | null;
|
|
2315
|
-
logical: 'And' | 'Or' | null;
|
|
2316
|
-
operationLevel?: number | null;
|
|
2317
|
-
propertyData?: any;
|
|
2318
|
-
}
|
|
2319
|
-
/**
|
|
2320
|
-
* Selection configuration
|
|
2321
|
-
*/
|
|
2322
|
-
interface ISelection {
|
|
2323
|
-
id: number;
|
|
2324
|
-
service?: string | null;
|
|
2325
|
-
/** Module selector in format "ModuleType:Id" (e.g., "Level:7") */
|
|
2326
|
-
selector: string | null;
|
|
2327
|
-
/** Display name of the selected module (e.g., "Project" for "Level:7") */
|
|
2328
|
-
selectorName?: string | null;
|
|
2329
|
-
filters: SelectionFilter[];
|
|
2330
|
-
}
|
|
2331
|
-
/**
|
|
2332
|
-
* Source link configuration for joins
|
|
2333
|
-
*/
|
|
2334
|
-
interface SourceLink {
|
|
2335
|
-
source1SelectionId: number | null;
|
|
2336
|
-
source2SelectionId: number | null;
|
|
2337
|
-
source1PropertyKey: string | null;
|
|
2338
|
-
source2PropertyKey: string | null;
|
|
2339
|
-
source1Properties?: IProperty[];
|
|
2340
|
-
source2Properties?: IProperty[];
|
|
2341
|
-
isLeftJoin?: boolean;
|
|
2342
|
-
isFilterLinkage?: boolean;
|
|
2343
|
-
sourceLinkId?: number | null;
|
|
2344
|
-
}
|
|
2345
|
-
/**
|
|
2346
|
-
* Available chart types — derived from the chart capability registry.
|
|
2347
|
-
*
|
|
2348
|
-
* The registry (`CHART_CAPABILITIES`) is the single source of truth.
|
|
2349
|
-
* Adding a new chart means adding a manifest entry, not editing this array.
|
|
2350
|
-
*/
|
|
2351
|
-
declare const CHART_TYPES: ChartTypeConfig[];
|
|
2352
|
-
/**
|
|
2353
|
-
* Manage Item Service
|
|
2354
|
-
*
|
|
2355
|
-
* Handles state and operations for the manage-item drawer
|
|
2356
|
-
*/
|
|
2357
|
-
declare class ManageItemService {
|
|
2358
|
-
private dashboardService;
|
|
2359
|
-
private fb;
|
|
2360
|
-
readonly chart: _angular_core.WritableSignal<DashboardChartItem | null>;
|
|
2361
|
-
readonly selectedType: _angular_core.WritableSignal<ChartTypeConfig | null>;
|
|
2362
|
-
readonly chartTypes: _angular_core.WritableSignal<ChartTypeConfig[]>;
|
|
2363
|
-
readonly moduleTypes: _angular_core.WritableSignal<IModuleType[]>;
|
|
2364
|
-
readonly modulesProperties: _angular_core.WritableSignal<{
|
|
2365
|
-
moduleName: string;
|
|
2366
|
-
moduleDisplay: string;
|
|
2367
|
-
properties: IProperty[];
|
|
2368
|
-
}[]>;
|
|
2369
|
-
readonly propertiesFlat: _angular_core.WritableSignal<IPropertyWithGroup[]>;
|
|
2370
|
-
readonly isEdit: _angular_core.WritableSignal<boolean>;
|
|
2371
|
-
readonly dirty: _angular_core.WritableSignal<boolean>;
|
|
2372
|
-
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
2373
|
-
readonly configSignal: _angular_core.WritableSignal<ItemConfig | null>;
|
|
2374
|
-
readonly chartTypesFiltered: _angular_core.Signal<ChartTypeConfig[]>;
|
|
2375
|
-
readonly chartTypesByCategory: _angular_core.Signal<{
|
|
2376
|
-
card: ChartTypeConfig[];
|
|
2377
|
-
chart: ChartTypeConfig[];
|
|
2378
|
-
table: ChartTypeConfig[];
|
|
2379
|
-
special: ChartTypeConfig[];
|
|
2380
|
-
layout: ChartTypeConfig[];
|
|
2381
|
-
}>;
|
|
2382
|
-
readonly chartForm: _angular_forms.FormGroup<{
|
|
2383
|
-
id: _angular_forms.FormControl<number | null>;
|
|
2384
|
-
name: _angular_forms.FormControl<string | null>;
|
|
2385
|
-
dashboardId: _angular_forms.FormControl<string | null>;
|
|
2386
|
-
chartTypeId: _angular_forms.FormControl<string | null>;
|
|
2387
|
-
configuration: _angular_forms.FormGroup<{
|
|
2388
|
-
clientConfig: _angular_forms.FormControl<ClientConfig | null>;
|
|
2389
|
-
serviceConfig: _angular_forms.FormControl<ServiceConfig | null>;
|
|
2390
|
-
}>;
|
|
2391
|
-
}>;
|
|
2392
|
-
/**
|
|
2393
|
-
* Reset all state
|
|
2394
|
-
*/
|
|
2395
|
-
resetState(): void;
|
|
2396
|
-
/**
|
|
2397
|
-
* Initialize with existing chart (edit mode) or empty (new mode)
|
|
2398
|
-
*/
|
|
2399
|
-
init(chartData?: DashboardChartItem): void;
|
|
2400
|
-
/**
|
|
2401
|
-
* Set chart data for editing
|
|
2402
|
-
*/
|
|
2403
|
-
setChart(chartData: DashboardChartItem): void;
|
|
2404
|
-
/**
|
|
2405
|
-
* Select a chart type
|
|
2406
|
-
*/
|
|
2407
|
-
selectType(type: ChartTypeConfig): void;
|
|
2408
|
-
/**
|
|
2409
|
-
* Mark form as dirty
|
|
2410
|
-
*/
|
|
2411
|
-
markDirty(): void;
|
|
2412
|
-
/**
|
|
2413
|
-
* Get configuration value (returns signal value for reactivity)
|
|
2414
|
-
*/
|
|
2415
|
-
getConfig(): ItemConfig | null;
|
|
2416
|
-
/**
|
|
2417
|
-
* Update service config
|
|
2418
|
-
*/
|
|
2419
|
-
updateServiceConfig(partial: Partial<ServiceConfig>): void;
|
|
2420
|
-
/**
|
|
2421
|
-
* Update client config
|
|
2422
|
-
*/
|
|
2423
|
-
updateClientConfig(partial: Partial<ClientConfig>): void;
|
|
2424
|
-
/**
|
|
2425
|
-
* Load module types from API
|
|
2426
|
-
*/
|
|
2427
|
-
loadModuleTypes(): void;
|
|
2428
|
-
/**
|
|
2429
|
-
* Load properties for selected modules
|
|
2430
|
-
*/
|
|
2431
|
-
loadPropertiesForModules(modules: {
|
|
2432
|
-
moduleType: string;
|
|
2433
|
-
moduleDisplay?: string;
|
|
2434
|
-
}[]): void;
|
|
2435
|
-
/**
|
|
2436
|
-
* Get final chart data for saving
|
|
2437
|
-
*/
|
|
2438
|
-
getFinalChartData(): {
|
|
2439
|
-
configuration: ItemConfig;
|
|
2440
|
-
chartTypeId: string;
|
|
2441
|
-
} | null;
|
|
2442
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ManageItemService, never>;
|
|
2443
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ManageItemService>;
|
|
2444
|
-
}
|
|
2445
|
-
|
|
2446
2496
|
declare class DatasourcePanelComponent {
|
|
2447
2497
|
private readonly transloco;
|
|
2448
2498
|
readonly item: _angular_core.InputSignal<DashboardChartItem | null>;
|
|
@@ -2494,6 +2544,9 @@ declare class SchemaControlRendererComponent {
|
|
|
2494
2544
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SchemaControlRendererComponent, "mt-schema-control-renderer", never, { "schema": { "alias": "schema"; "required": true; "isSignal": true; }; "persisted": { "alias": "persisted"; "required": true; "isSignal": true; }; "capability": { "alias": "capability"; "required": false; "isSignal": true; }; "scope": { "alias": "scope"; "required": false; "isSignal": true; }; }, { "patch": "patch"; }, never, never, true, never>;
|
|
2495
2545
|
}
|
|
2496
2546
|
|
|
2547
|
+
interface DashboardDocumentLoadOptions {
|
|
2548
|
+
mode: 'new' | 'replace';
|
|
2549
|
+
}
|
|
2497
2550
|
/**
|
|
2498
2551
|
* Dashboard Builder Component
|
|
2499
2552
|
*
|
|
@@ -2506,6 +2559,8 @@ declare class SchemaControlRendererComponent {
|
|
|
2506
2559
|
* - Chart settings drawer (pie, bar, stack bar controls)
|
|
2507
2560
|
*/
|
|
2508
2561
|
declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
2562
|
+
protected readonly assist: _masterteam_dashboard_builder.DashboardBuilderAssist | null;
|
|
2563
|
+
private readonly injector;
|
|
2509
2564
|
private cdr;
|
|
2510
2565
|
private dashboardService;
|
|
2511
2566
|
private storeService;
|
|
@@ -2523,6 +2578,9 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2523
2578
|
readonly backButton: _angular_core.InputSignal<boolean>;
|
|
2524
2579
|
/** Dashboard/Page ID to load */
|
|
2525
2580
|
readonly pageId: _angular_core.InputSignal<string | number | null>;
|
|
2581
|
+
readonly newPage: _angular_core.InputSignal<boolean>;
|
|
2582
|
+
private readonly createdPageId;
|
|
2583
|
+
readonly effectivePageId: _angular_core.Signal<string | number | null>;
|
|
2526
2584
|
/** Standalone mode (when true, builder runs without API calls) */
|
|
2527
2585
|
readonly standalone: _angular_core.InputSignal<boolean>;
|
|
2528
2586
|
/** Optional services filter used by manage-item metadata tree loading */
|
|
@@ -2565,8 +2623,12 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2565
2623
|
readonly pageChange: _angular_core.OutputEmitterRef<_masterteam_dashboard_builder.Report>;
|
|
2566
2624
|
/** Emit when charts change */
|
|
2567
2625
|
readonly chartsChange: _angular_core.OutputEmitterRef<DashboardChartItem[]>;
|
|
2626
|
+
readonly widgetAssist: _angular_core.OutputEmitterRef<ChartTypeConfig>;
|
|
2627
|
+
readonly itemAssist: _angular_core.OutputEmitterRef<DashboardChartItem>;
|
|
2628
|
+
readonly itemMarks: _angular_core.ModelSignal<Readonly<Record<string, DashboardItemMark>>>;
|
|
2568
2629
|
/** Emit when save is complete */
|
|
2569
2630
|
readonly onSave: _angular_core.OutputEmitterRef<void>;
|
|
2631
|
+
readonly pageCreated: _angular_core.OutputEmitterRef<string | number>;
|
|
2570
2632
|
/** Emit when back button is clicked */
|
|
2571
2633
|
readonly onBack: _angular_core.OutputEmitterRef<void>;
|
|
2572
2634
|
/** Emit when requesting to add new chart (opens external chart editor) */
|
|
@@ -2581,12 +2643,21 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2581
2643
|
}>;
|
|
2582
2644
|
readonly contextMenu: _angular_core.Signal<ContextMenu | undefined>;
|
|
2583
2645
|
readonly gridsterContainer: _angular_core.Signal<any>;
|
|
2646
|
+
/**
|
|
2647
|
+
* Gridster lays out on window resizes only. The page column also changes
|
|
2648
|
+
* width without one (an inline Faris panel opening or closing, a sidebar):
|
|
2649
|
+
* re-measure whenever the grid itself changes size, or the items keep the
|
|
2650
|
+
* old widths and leave empty space when the column grows back.
|
|
2651
|
+
*/
|
|
2652
|
+
private readonly gridResize;
|
|
2584
2653
|
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
2585
2654
|
readonly saving: _angular_core.WritableSignal<boolean>;
|
|
2586
2655
|
readonly pageConfig: _angular_core.WritableSignal<_masterteam_dashboard_builder.Report | null>;
|
|
2587
2656
|
readonly charts: _angular_core.WritableSignal<DashboardChartItem[]>;
|
|
2588
2657
|
readonly dialogs: _angular_core.WritableSignal<DashboardDialogItem[]>;
|
|
2589
2658
|
readonly filtersConfig: _angular_core.WritableSignal<any[]>;
|
|
2659
|
+
readonly pageFilters: _angular_core.Signal<any[]>;
|
|
2660
|
+
readonly levelOptions: _angular_core.WritableSignal<readonly DashboardLevelOption[]>;
|
|
2590
2661
|
readonly selectedCharts: _angular_core.WritableSignal<string[]>;
|
|
2591
2662
|
readonly contextPos: _angular_core.WritableSignal<{
|
|
2592
2663
|
x: number;
|
|
@@ -2617,6 +2688,11 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2617
2688
|
private lastExtraFiltersSignature;
|
|
2618
2689
|
private lastLoadedPageKey;
|
|
2619
2690
|
private lastStandaloneDashboardSignature;
|
|
2691
|
+
private readonly linkedIds;
|
|
2692
|
+
private localDraftPending;
|
|
2693
|
+
private readonly pendingUnlinks;
|
|
2694
|
+
private persistedFiltersSignature;
|
|
2695
|
+
private pendingCreatedPageId;
|
|
2620
2696
|
/**
|
|
2621
2697
|
* Last geometry published per chart id, keyed by `serviceConfig.dashboardId`.
|
|
2622
2698
|
* Gridster mutates the bound chart object in place, so this is the only way
|
|
@@ -2651,6 +2727,7 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2651
2727
|
saveDash(options?: {
|
|
2652
2728
|
silent?: boolean;
|
|
2653
2729
|
}): void;
|
|
2730
|
+
private savePage;
|
|
2654
2731
|
/**
|
|
2655
2732
|
* The builder's own save message. The link requests are silent: their
|
|
2656
2733
|
* backend message is "Created successfully." even when an existing
|
|
@@ -2668,17 +2745,17 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2668
2745
|
private commitSavedState;
|
|
2669
2746
|
/**
|
|
2670
2747
|
* Persist the page-level filters through the dashboard (report) endpoint —
|
|
2671
|
-
* the canonical carrier of `dashboardConfig.filters`.
|
|
2672
|
-
*
|
|
2673
|
-
*
|
|
2674
|
-
* the runtime sidebar (#1141). Standalone mode already emits filters via
|
|
2675
|
-
* `emitDashboardDataChange`, so this no-ops there.
|
|
2748
|
+
* the canonical carrier of `dashboardConfig.filters`. Explicit Save awaits
|
|
2749
|
+
* this write in API mode when the normalized filters changed.
|
|
2750
|
+
* Standalone mode emits filters through its document model instead.
|
|
2676
2751
|
*/
|
|
2752
|
+
private persistFiltersOnEdit;
|
|
2677
2753
|
private persistPageFilters;
|
|
2754
|
+
private unlinkChart;
|
|
2678
2755
|
addOrEditPage(page?: DashboardPage): void;
|
|
2679
2756
|
/**
|
|
2680
|
-
* Merge
|
|
2681
|
-
*
|
|
2757
|
+
* Merge drawer settings into a standalone document or an unsaved report.
|
|
2758
|
+
* Standalone hosts receive their usual save event; reports await explicit Save.
|
|
2682
2759
|
*
|
|
2683
2760
|
* The drawer does not edit filters, so the builder's own `filtersConfig` — not
|
|
2684
2761
|
* the empty default the drawer carries — stays authoritative.
|
|
@@ -2814,6 +2891,31 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2814
2891
|
private removeGroupLocally;
|
|
2815
2892
|
addHeader(): void;
|
|
2816
2893
|
addTopbar(): void;
|
|
2894
|
+
itemMarkClass(chart: DashboardChartItem): string;
|
|
2895
|
+
itemMarkLabel(chart: DashboardChartItem): string | null;
|
|
2896
|
+
assistLabelFor(item: DashboardChartItem): string | null;
|
|
2897
|
+
/** Load a whole draft as an undoable local edit; persistence belongs to Save. */
|
|
2898
|
+
loadDocument(doc: DashboardBuilderData, options: DashboardDocumentLoadOptions): void;
|
|
2899
|
+
/** Add a local draft; persistence remains owned by Save. */
|
|
2900
|
+
addChart(draft: DashboardChartDraft, options?: {
|
|
2901
|
+
placement?: 'first-free' | {
|
|
2902
|
+
x: number;
|
|
2903
|
+
y: number;
|
|
2904
|
+
};
|
|
2905
|
+
}): DashboardChartItem;
|
|
2906
|
+
/** Replace content without changing the canvas or backend link identity. */
|
|
2907
|
+
replaceChart(dashboardId: string, draft: DashboardChartDraft): DashboardChartItem | null;
|
|
2908
|
+
removeChart(dashboardId: string): void;
|
|
2909
|
+
chartById(dashboardId: string): DashboardChartItem | null;
|
|
2910
|
+
/**
|
|
2911
|
+
* Scrolls an item into view once gridster has placed it: its transform
|
|
2912
|
+
* lands a frame or more after the render, so wait until the item's
|
|
2913
|
+
* position stops moving (at most ~20 frames).
|
|
2914
|
+
*/
|
|
2915
|
+
revealItem(dashboardId: string): void;
|
|
2916
|
+
chartLevel(item: DashboardChartItem): number | null;
|
|
2917
|
+
snapshot(): DashboardBuilderData;
|
|
2918
|
+
restore(snapshot: DashboardBuilderData): void;
|
|
2817
2919
|
/** Open widget palette drawer */
|
|
2818
2920
|
toggleWidgetPalette(): void;
|
|
2819
2921
|
/** Close widget palette drawer */
|
|
@@ -2912,13 +3014,13 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2912
3014
|
* which is a bug in its own right rather than part of the undone state.
|
|
2913
3015
|
*/
|
|
2914
3016
|
undo(): void;
|
|
3017
|
+
private applyHistorySnapshot;
|
|
2915
3018
|
/**
|
|
2916
3019
|
* Remove backend links for items the revert dropped.
|
|
2917
3020
|
*
|
|
2918
|
-
*
|
|
2919
|
-
*
|
|
2920
|
-
* next
|
|
2921
|
-
* an item the user just undid from coming back.
|
|
3021
|
+
* Save also reconciles tracked links, but clean up background-added items
|
|
3022
|
+
* immediately so an item the user just undid cannot return on reload before
|
|
3023
|
+
* the next explicit Save. This does not restore any other saved state.
|
|
2922
3024
|
*/
|
|
2923
3025
|
private unlinkItemsRemovedByUndo;
|
|
2924
3026
|
/**
|
|
@@ -2938,7 +3040,7 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
|
|
|
2938
3040
|
private readSerializedObject;
|
|
2939
3041
|
private parseSerializedValue;
|
|
2940
3042
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DashboardBuilder, never>;
|
|
2941
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardBuilder, "mt-dashboard-builder", never, { "isPage": { "alias": "isPage"; "required": false; "isSignal": true; }; "pageTitle": { "alias": "pageTitle"; "required": false; "isSignal": true; }; "backButton": { "alias": "backButton"; "required": false; "isSignal": true; }; "pageId": { "alias": "pageId"; "required": false; "isSignal": true; }; "standalone": { "alias": "standalone"; "required": false; "isSignal": true; }; "services": { "alias": "services"; "required": false; "isSignal": true; }; "product": { "alias": "product"; "required": false; "isSignal": true; }; "dashboardData": { "alias": "dashboardData"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "informativeContext": { "alias": "informativeContext"; "required": false; "isSignal": true; }; "extraFilters": { "alias": "extraFilters"; "required": false; "isSignal": true; }; "lookups": { "alias": "lookups"; "required": false; "isSignal": true; }; "statuses": { "alias": "statuses"; "required": false; "isSignal": true; }; "levelsSchema": { "alias": "levelsSchema"; "required": false; "isSignal": true; }; "levelLogsResolver": { "alias": "levelLogsResolver"; "required": false; "isSignal": true; }; }, { "dashboardData": "dashboardDataChange"; "pageChange": "pageChange"; "chartsChange": "chartsChange"; "onSave": "onSave"; "onBack": "onBack"; "onAddChart": "onAddChart"; "onEditChart": "onEditChart"; }, never, never, true, never>;
|
|
3043
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardBuilder, "mt-dashboard-builder", never, { "isPage": { "alias": "isPage"; "required": false; "isSignal": true; }; "pageTitle": { "alias": "pageTitle"; "required": false; "isSignal": true; }; "backButton": { "alias": "backButton"; "required": false; "isSignal": true; }; "pageId": { "alias": "pageId"; "required": false; "isSignal": true; }; "newPage": { "alias": "newPage"; "required": false; "isSignal": true; }; "standalone": { "alias": "standalone"; "required": false; "isSignal": true; }; "services": { "alias": "services"; "required": false; "isSignal": true; }; "product": { "alias": "product"; "required": false; "isSignal": true; }; "dashboardData": { "alias": "dashboardData"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "informativeContext": { "alias": "informativeContext"; "required": false; "isSignal": true; }; "extraFilters": { "alias": "extraFilters"; "required": false; "isSignal": true; }; "lookups": { "alias": "lookups"; "required": false; "isSignal": true; }; "statuses": { "alias": "statuses"; "required": false; "isSignal": true; }; "levelsSchema": { "alias": "levelsSchema"; "required": false; "isSignal": true; }; "levelLogsResolver": { "alias": "levelLogsResolver"; "required": false; "isSignal": true; }; "itemMarks": { "alias": "itemMarks"; "required": false; "isSignal": true; }; }, { "dashboardData": "dashboardDataChange"; "pageChange": "pageChange"; "chartsChange": "chartsChange"; "widgetAssist": "widgetAssist"; "itemAssist": "itemAssist"; "itemMarks": "itemMarksChange"; "onSave": "onSave"; "pageCreated": "pageCreated"; "onBack": "onBack"; "onAddChart": "onAddChart"; "onEditChart": "onEditChart"; }, never, never, true, never>;
|
|
2942
3044
|
}
|
|
2943
3045
|
|
|
2944
3046
|
/**
|
|
@@ -3764,7 +3866,7 @@ declare class CardFilterComponent implements OnInit {
|
|
|
3764
3866
|
/** Language code */
|
|
3765
3867
|
readonly langCode: _angular_core.Signal<string>;
|
|
3766
3868
|
/** Filter type */
|
|
3767
|
-
readonly filterType: _angular_core.Signal<"
|
|
3869
|
+
readonly filterType: _angular_core.Signal<"select" | "text" | "date" | "multiselect" | "multiSelect" | "daterange">;
|
|
3768
3870
|
/** Filter options */
|
|
3769
3871
|
readonly options: _angular_core.Signal<_masterteam_dashboard_builder.FilterOption[]>;
|
|
3770
3872
|
/** Placeholder text */
|
|
@@ -3929,6 +4031,7 @@ declare class MapViewComponent {
|
|
|
3929
4031
|
protected readonly legendGroups: _angular_core.Signal<MapViewGroup[]>;
|
|
3930
4032
|
protected readonly noLocations: _angular_core.Signal<boolean>;
|
|
3931
4033
|
protected readonly status: _angular_core.WritableSignal<"loading" | "ready" | "unavailable">;
|
|
4034
|
+
protected readonly usesVectorBasemap: _angular_core.WritableSignal<boolean>;
|
|
3932
4035
|
private map?;
|
|
3933
4036
|
private popup?;
|
|
3934
4037
|
private observer?;
|
|
@@ -4090,7 +4193,7 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
|
|
|
4090
4193
|
readonly mapViewConfig: _angular_core.Signal<MapViewConfig>;
|
|
4091
4194
|
/** The widget's legend controls also govern the map's group legend. */
|
|
4092
4195
|
readonly mapLegendShow: _angular_core.Signal<boolean>;
|
|
4093
|
-
readonly mapLegendPosition: _angular_core.Signal<"
|
|
4196
|
+
readonly mapLegendPosition: _angular_core.Signal<"top" | "right" | "bottom" | "left">;
|
|
4094
4197
|
readonly mapLegendIcon: _angular_core.Signal<string | undefined>;
|
|
4095
4198
|
private readonly mapLegend;
|
|
4096
4199
|
onMapPointClick(point: MapViewPoint): void;
|
|
@@ -4111,14 +4214,14 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
|
|
|
4111
4214
|
/** Whether the user can act on the Configure CTA (builder mode). */
|
|
4112
4215
|
readonly canConfigure: _angular_core.Signal<boolean>;
|
|
4113
4216
|
readonly hasSplitterData: _angular_core.Signal<boolean>;
|
|
4114
|
-
readonly splitterOrientation: _angular_core.Signal<"
|
|
4217
|
+
readonly splitterOrientation: _angular_core.Signal<"horizontal" | "vertical">;
|
|
4115
4218
|
readonly splitterGap: _angular_core.Signal<number>;
|
|
4116
4219
|
readonly hasTimelineData: _angular_core.Signal<boolean>;
|
|
4117
4220
|
readonly timelineEvents: _angular_core.Signal<any[]>;
|
|
4118
4221
|
readonly timelineResources: _angular_core.Signal<any[]>;
|
|
4119
4222
|
readonly timelineLabels: _angular_core.Signal<any[]>;
|
|
4120
4223
|
readonly timelineLegendIconType: _angular_core.Signal<string>;
|
|
4121
|
-
readonly timelineLegendPosition: _angular_core.Signal<"
|
|
4224
|
+
readonly timelineLegendPosition: _angular_core.Signal<"top" | "right" | "bottom" | "left">;
|
|
4122
4225
|
/** Timeline legend visibility — honors the Style Studio "Show legend" toggle. */
|
|
4123
4226
|
readonly timelineLegendShow: _angular_core.Signal<boolean>;
|
|
4124
4227
|
readonly timelineHeaderBgColor: _angular_core.Signal<string | null>;
|
|
@@ -4257,7 +4360,7 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
|
|
|
4257
4360
|
readonly showCustomLegend: _angular_core.Signal<boolean>;
|
|
4258
4361
|
readonly customLegendIconIsRect: _angular_core.Signal<boolean>;
|
|
4259
4362
|
/** Custom HTML legend placement from the configured legend position. */
|
|
4260
|
-
readonly customLegendPosition: _angular_core.Signal<"
|
|
4363
|
+
readonly customLegendPosition: _angular_core.Signal<"top" | "right" | "bottom" | "left">;
|
|
4261
4364
|
constructor();
|
|
4262
4365
|
ngOnInit(): Promise<void>;
|
|
4263
4366
|
ngAfterViewInit(): void;
|
|
@@ -4688,7 +4791,7 @@ declare class HeaderCardComponent implements OnInit, OnDestroy {
|
|
|
4688
4791
|
/** Icon name */
|
|
4689
4792
|
readonly icon: _angular_core.Signal<string>;
|
|
4690
4793
|
/** Position of the layout icon relative to the header title. */
|
|
4691
|
-
readonly iconPlacement: _angular_core.Signal<"
|
|
4794
|
+
readonly iconPlacement: _angular_core.Signal<"top" | "end" | "start">;
|
|
4692
4795
|
/** Logo configuration */
|
|
4693
4796
|
readonly logo: _angular_core.Signal<any>;
|
|
4694
4797
|
/** Logo URL */
|
|
@@ -5011,7 +5114,7 @@ declare class TableCardComponent implements OnInit, OnDestroy {
|
|
|
5011
5114
|
* two never disagree about visibility.
|
|
5012
5115
|
*/
|
|
5013
5116
|
readonly hasLegend: _angular_core.Signal<boolean>;
|
|
5014
|
-
readonly legendPosition: _angular_core.Signal<"
|
|
5117
|
+
readonly legendPosition: _angular_core.Signal<"top" | "right" | "bottom" | "left">;
|
|
5015
5118
|
readonly legendIconType: _angular_core.Signal<string>;
|
|
5016
5119
|
readonly isSideLegend: _angular_core.Signal<boolean>;
|
|
5017
5120
|
/** Processed table rows */
|
|
@@ -5209,7 +5312,7 @@ declare class TopbarCardComponent implements OnInit, OnDestroy {
|
|
|
5209
5312
|
readonly showSubtitle: _angular_core.Signal<boolean>;
|
|
5210
5313
|
readonly icon: _angular_core.Signal<any>;
|
|
5211
5314
|
/** Position of the layout icon relative to the topbar title. */
|
|
5212
|
-
readonly iconPlacement: _angular_core.Signal<"
|
|
5315
|
+
readonly iconPlacement: _angular_core.Signal<"top" | "end" | "start">;
|
|
5213
5316
|
/**
|
|
5214
5317
|
* Center the icon/title block within the topbar row
|
|
5215
5318
|
* (configAsType.headerCardConfig.isHeaderCentered === true) — same source
|
|
@@ -5219,7 +5322,7 @@ declare class TopbarCardComponent implements OnInit, OnDestroy {
|
|
|
5219
5322
|
readonly iconColor: _angular_core.Signal<any>;
|
|
5220
5323
|
readonly iconBackgroundColor: _angular_core.Signal<any>;
|
|
5221
5324
|
readonly borderColor: _angular_core.Signal<any>;
|
|
5222
|
-
readonly borderWidth: _angular_core.Signal<
|
|
5325
|
+
readonly borderWidth: _angular_core.Signal<1 | 0>;
|
|
5223
5326
|
readonly padding: _angular_core.Signal<number>;
|
|
5224
5327
|
readonly titleFontSize: _angular_core.Signal<number>;
|
|
5225
5328
|
readonly subtitleFontSize: _angular_core.Signal<number>;
|
|
@@ -6341,6 +6444,7 @@ declare class DashboardList implements OnDestroy {
|
|
|
6341
6444
|
private dashboardService;
|
|
6342
6445
|
private modalService;
|
|
6343
6446
|
private transloco;
|
|
6447
|
+
private readonly router;
|
|
6344
6448
|
private modalRef;
|
|
6345
6449
|
readonly nameTpl: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
6346
6450
|
/** Host actions for the page header (e.g. "Design a dashboard with Faris"), next to the title. */
|
|
@@ -6353,6 +6457,8 @@ declare class DashboardList implements OnDestroy {
|
|
|
6353
6457
|
readonly baseRoute: _angular_core.InputSignal<string>;
|
|
6354
6458
|
/** Whether to show the create button */
|
|
6355
6459
|
readonly showCreateButton: _angular_core.InputSignal<boolean>;
|
|
6460
|
+
/** Optional route to an unsaved dashboard. Without it, Create opens the name dialog. */
|
|
6461
|
+
readonly createPath: _angular_core.InputSignal<string | null>;
|
|
6356
6462
|
/** Whether to show the view action */
|
|
6357
6463
|
readonly showViewButton: _angular_core.InputSignal<boolean>;
|
|
6358
6464
|
/** Whether to show the edit action */
|
|
@@ -6412,7 +6518,7 @@ declare class DashboardList implements OnDestroy {
|
|
|
6412
6518
|
*/
|
|
6413
6519
|
refresh(): void;
|
|
6414
6520
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DashboardList, never>;
|
|
6415
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardList, "mt-dashboard-list", never, { "isPage": { "alias": "isPage"; "required": false; "isSignal": true; }; "pageTitle": { "alias": "pageTitle"; "required": false; "isSignal": true; }; "baseRoute": { "alias": "baseRoute"; "required": false; "isSignal": true; }; "showCreateButton": { "alias": "showCreateButton"; "required": false; "isSignal": true; }; "showViewButton": { "alias": "showViewButton"; "required": false; "isSignal": true; }; "showEditButton": { "alias": "showEditButton"; "required": false; "isSignal": true; }; }, { "dashboardAction": "dashboardAction"; "dashboardCreated": "dashboardCreated"; }, ["headerEnd"], never, true, never>;
|
|
6521
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardList, "mt-dashboard-list", never, { "isPage": { "alias": "isPage"; "required": false; "isSignal": true; }; "pageTitle": { "alias": "pageTitle"; "required": false; "isSignal": true; }; "baseRoute": { "alias": "baseRoute"; "required": false; "isSignal": true; }; "showCreateButton": { "alias": "showCreateButton"; "required": false; "isSignal": true; }; "createPath": { "alias": "createPath"; "required": false; "isSignal": true; }; "showViewButton": { "alias": "showViewButton"; "required": false; "isSignal": true; }; "showEditButton": { "alias": "showEditButton"; "required": false; "isSignal": true; }; }, { "dashboardAction": "dashboardAction"; "dashboardCreated": "dashboardCreated"; }, ["headerEnd"], never, true, never>;
|
|
6416
6522
|
}
|
|
6417
6523
|
|
|
6418
6524
|
interface ApiResponse<T> {
|
|
@@ -8588,7 +8694,7 @@ declare class DataSourceSettings {
|
|
|
8588
8694
|
* Active tab within the selection cycle: Selection (pick modules) · Source
|
|
8589
8695
|
* Links (joins, only with >1 selection) · Query (fields).
|
|
8590
8696
|
*/
|
|
8591
|
-
readonly activeSection: _angular_core.WritableSignal<"
|
|
8697
|
+
readonly activeSection: _angular_core.WritableSignal<"selection" | "query" | "sourceLinks">;
|
|
8592
8698
|
/** Selection mode inside the selection tab (informative authoring). */
|
|
8593
8699
|
readonly selectionMode: _angular_core.WritableSignal<"advanced" | "context">;
|
|
8594
8700
|
readonly contextTargetSelector: _angular_core.WritableSignal<string | null>;
|
|
@@ -9695,5 +9801,17 @@ declare class GetChartActionsPipe implements PipeTransform {
|
|
|
9695
9801
|
*/
|
|
9696
9802
|
declare function cloneDeep<T>(obj: T): T;
|
|
9697
9803
|
|
|
9698
|
-
|
|
9699
|
-
|
|
9804
|
+
/** Row-major placement on the canvas; grouped children occupy their parent. */
|
|
9805
|
+
declare function firstFreePosition(items: readonly {
|
|
9806
|
+
x: number;
|
|
9807
|
+
y: number;
|
|
9808
|
+
cols: number;
|
|
9809
|
+
rows: number;
|
|
9810
|
+
group?: string | null;
|
|
9811
|
+
}[], cols: number, rows: number, columns?: number): {
|
|
9812
|
+
x: number;
|
|
9813
|
+
y: number;
|
|
9814
|
+
};
|
|
9815
|
+
|
|
9816
|
+
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, 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, 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, resolveStatisticIconPlacement, selectorFromLegacy, setByPath, sortChartData, sortDataTableView, styleToUi, switchAllKeysSmall, switchAllKeysToLower, titleToUi, toBackendChartType, toBackendSourceLink, toFormSourceLink, validate };
|
|
9817
|
+
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, MapRegion, MapViewConfig, MapViewGroup, MapViewPoint, ModuleItem, ModuleSelectOption, ModuleType, ModuleValue, ModuleValueExtra, ModulesTreeRequest, ModulesTreeResponse, ParentSelectOption, ParseResult, PersistedItemConfig, PhaseGateStepperData, PhaseGateStepperStep, PieChartData, 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 };
|