@masterteam/dashboard-builder 0.0.3 → 0.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/dashboard-builder",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/dashboard-builder",
6
6
  "linkDirectory": true,
@@ -786,10 +786,10 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
786
786
  * Dashboard Viewer Component
787
787
  *
788
788
  * A read-only component for viewing and displaying dashboard layouts.
789
- * Similar to pageBuilder-gridster but without editing capabilities.
789
+ * Uses a CSS Grid preview layout without editing capabilities.
790
790
  *
791
791
  * Features:
792
- * - Gridster-based layout display (read-only)
792
+ * - CSS Grid-based layout display
793
793
  * - Chart/widget rendering
794
794
  * - Group support with tab switching
795
795
  * - Filter sidebar integration
@@ -807,6 +807,8 @@ declare class DashboardViewer implements OnInit, OnDestroy {
807
807
  readonly backButton: _angular_core.InputSignal<boolean>;
808
808
  /** Dashboard/Page ID to load */
809
809
  readonly pageId: _angular_core.InputSignal<string | number | null>;
810
+ /** Unified dashboard payload for local/preview rendering */
811
+ readonly dashboardData: _angular_core.InputSignal<DashboardBuilderData | null>;
810
812
  /** Pre-loaded charts (optional - if provided, skips API call) */
811
813
  readonly chartsData: _angular_core.InputSignal<DashboardChartItem[]>;
812
814
  /** Pre-loaded dialogs (optional) */
@@ -824,7 +826,6 @@ declare class DashboardViewer implements OnInit, OnDestroy {
824
826
  chart: DashboardChartItem;
825
827
  event: Event;
826
828
  }>;
827
- readonly gridsterContainer: _angular_core.Signal<any>;
828
829
  readonly loading: _angular_core.WritableSignal<boolean>;
829
830
  readonly pageConfig: _angular_core.WritableSignal<_masterteam_dashboard_builder.Report | null>;
830
831
  readonly charts: _angular_core.WritableSignal<DashboardChartItem[]>;
@@ -832,16 +833,23 @@ declare class DashboardViewer implements OnInit, OnDestroy {
832
833
  readonly filters: _angular_core.WritableSignal<any[]>;
833
834
  readonly languageCode: _angular_core.Signal<string>;
834
835
  readonly direction: _angular_core.Signal<"ltr" | "rtl">;
835
- readonly options: GridsterConfig;
836
+ readonly hasRenderableContent: _angular_core.Signal<boolean>;
837
+ readonly visibleItems: _angular_core.Signal<DashboardChartItem[]>;
838
+ readonly layoutHeight: _angular_core.Signal<string>;
836
839
  private subscription;
840
+ private readonly rowHeight;
841
+ private readonly hasSplitPreloadedData;
842
+ private dashboardDataEffect;
837
843
  private chartsDataEffect;
838
844
  private dialogsDataEffect;
839
845
  private filtersDataEffect;
846
+ private preloadedInputsEffect;
840
847
  private pageIdEffect;
841
848
  ngOnInit(): void;
842
849
  ngOnDestroy(): void;
843
850
  private setupSubscriptions;
844
851
  loadPage(id: string | number): void;
852
+ private applyDashboardData;
845
853
  reloadPage(): void;
846
854
  /**
847
855
  * Get the title for a group item
@@ -891,6 +899,14 @@ declare class DashboardViewer implements OnInit, OnDestroy {
891
899
  * Get chart type
892
900
  */
893
901
  getChartType(item: DashboardChartItem): string;
902
+ /**
903
+ * Get CSS grid column range for an item
904
+ */
905
+ getGridColumn(item: DashboardChartItem): string;
906
+ /**
907
+ * Get CSS grid row range for an item
908
+ */
909
+ getGridRow(item: DashboardChartItem): string;
894
910
  /**
895
911
  * Handle chart click
896
912
  */
@@ -900,7 +916,7 @@ declare class DashboardViewer implements OnInit, OnDestroy {
900
916
  */
901
917
  trackByDashboardId(_index: number, item: DashboardChartItem): string;
902
918
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DashboardViewer, never>;
903
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardViewer, "mt-dashboard-viewer", 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; }; "chartsData": { "alias": "chartsData"; "required": false; "isSignal": true; }; "dialogsData": { "alias": "dialogsData"; "required": false; "isSignal": true; }; "filtersData": { "alias": "filtersData"; "required": false; "isSignal": true; }; "showFilters": { "alias": "showFilters"; "required": false; "isSignal": true; }; }, { "pageLoaded": "pageLoaded"; "onBack": "onBack"; "chartClick": "chartClick"; }, never, never, true, never>;
919
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardViewer, "mt-dashboard-viewer", 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; }; "dashboardData": { "alias": "dashboardData"; "required": false; "isSignal": true; }; "chartsData": { "alias": "chartsData"; "required": false; "isSignal": true; }; "dialogsData": { "alias": "dialogsData"; "required": false; "isSignal": true; }; "filtersData": { "alias": "filtersData"; "required": false; "isSignal": true; }; "showFilters": { "alias": "showFilters"; "required": false; "isSignal": true; }; }, { "pageLoaded": "pageLoaded"; "onBack": "onBack"; "chartClick": "chartClick"; }, never, never, true, never>;
904
920
  }
905
921
 
906
922
  /**