@masterteam/dashboard-builder 0.0.5 → 0.0.6

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.5",
3
+ "version": "0.0.6",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/dashboard-builder",
6
6
  "linkDirectory": true,
@@ -96,6 +96,27 @@ interface BulkPropertyRequestItem {
96
96
  serviceName: string;
97
97
  selector: string;
98
98
  }
99
+ /**
100
+ * Canonical property metadata returned by backend reads.
101
+ */
102
+ interface CatalogPropertyDto {
103
+ id: number;
104
+ key: string;
105
+ normalizedKey: string;
106
+ name: string;
107
+ viewType: string;
108
+ configuration: string | Record<string, unknown> | null;
109
+ hasName?: boolean;
110
+ hasKey?: boolean;
111
+ hasNormalizedKey?: boolean;
112
+ hasConfiguration?: boolean;
113
+ hasViewType?: boolean;
114
+ source?: string;
115
+ order?: number;
116
+ isRequired?: boolean;
117
+ isSystem?: boolean;
118
+ isTranslatable?: boolean;
119
+ }
99
120
  /**
100
121
  * Request for bulk properties lookup from gateway
101
122
  */
@@ -112,12 +133,21 @@ interface BulkPropertiesResponseItem {
112
133
  selectorName?: string;
113
134
  properties: PropertyItem$1[];
114
135
  }
136
+ /**
137
+ * Raw response item from bulk properties lookup.
138
+ */
139
+ interface BulkPropertiesResponseItemDto {
140
+ serviceName: string;
141
+ selector: string;
142
+ selectorName?: string;
143
+ properties: CatalogPropertyDto[];
144
+ }
115
145
  /**
116
146
  * Response wrapper from bulk properties lookup
117
147
  * API returns { data: { items: [...] } }
118
148
  */
119
149
  interface BulkPropertiesResponse {
120
- items: BulkPropertiesResponseItem[];
150
+ items: BulkPropertiesResponseItemDto[];
121
151
  }
122
152
  /**
123
153
  * Property item from module properties response
@@ -125,16 +155,21 @@ interface BulkPropertiesResponse {
125
155
  interface PropertyItem$1 {
126
156
  id: number;
127
157
  name: string;
128
- hasName: boolean;
158
+ label?: string;
159
+ hasName?: boolean;
129
160
  key: string;
130
- hasKey: boolean;
161
+ hasKey?: boolean;
131
162
  normalizedKey: string;
132
- hasNormalizedKey: boolean;
133
- configuration: string;
134
- hasConfiguration: boolean;
163
+ hasNormalizedKey?: boolean;
164
+ configuration: Record<string, unknown> | null;
165
+ hasConfiguration?: boolean;
135
166
  viewType: string;
136
- hasViewType: boolean;
167
+ hasViewType?: boolean;
137
168
  isTranslatable: boolean;
169
+ source?: string;
170
+ order?: number;
171
+ isRequired?: boolean;
172
+ isSystem?: boolean;
138
173
  }
139
174
  /**
140
175
  * Property items response (lookup/status values)
@@ -156,7 +191,7 @@ interface PropertyItemOption {
156
191
  * Response from /metadata/{service}/modules/{moduleId}/properties
157
192
  */
158
193
  interface PropertiesResponse {
159
- properties: PropertyItem$1[];
194
+ properties: CatalogPropertyDto[];
160
195
  }
161
196
  /**
162
197
  * Report URL configuration for dashboard exports
@@ -475,23 +510,9 @@ interface IModule {
475
510
  * Property definition from API
476
511
  * Maps to PropertyItem from dashboard.model.ts
477
512
  */
478
- interface IProperty {
479
- id: number;
480
- name: string;
481
- hasName?: boolean;
482
- key: string;
483
- hasKey?: boolean;
484
- normalizedKey: string;
485
- hasNormalizedKey?: boolean;
486
- configuration?: string;
487
- hasConfiguration?: boolean;
488
- viewType: string;
489
- hasViewType?: boolean;
490
- isTranslatable: boolean;
513
+ interface IProperty extends PropertyItem$1 {
491
514
  /** @deprecated Use PropertyItem.isCalculated when available */
492
515
  isCalculated?: boolean;
493
- /** @deprecated Use sorting on client side */
494
- order?: number;
495
516
  description?: string;
496
517
  }
497
518
  /**
@@ -4897,4 +4918,4 @@ declare class GetChartActionsPipe implements PipeTransform {
4897
4918
  declare function cloneDeep<T>(obj: T): T;
4898
4919
 
4899
4920
  export { ActionsSettings, BarChartHandler, BarControlUi, CHART_TYPES, CardContentComponent, CardFilterComponent, CardInfoComponent, ChartCardComponent, ChartDataService, ChartSettingsDrawer, ChartViewer, ComparisonChartHandler, DashboardBuilder, DashboardBuilderService, DashboardItem, DashboardItemStoreService, DashboardList, DashboardStoreService, DashboardViewer, DataSourceSettings, DefaultControlUi, DisplaySettings, DynamicFiltersComponent, DynamicFiltersConfig, EChartComponent, EntityInfoComponent, EntityPreviewCardComponent, FilterByGroupPipe, GaugeChartHandler, GeneralSettings, GetChartActionsPipe, HTTPMethod, HeaderCardComponent, LevelCardHandler, LevelCardListComponent, LineChartHandler, ListStatisticCardComponent, ManageBreadcrumb, ManageFilterOnPage, ManageItem, ManageItemService, ManagePages, MapChartHandler, OverviewCardHandler, PhaseGateStepperHandler, PieChartHandler, PieControlUi, RingGaugeChartHandler, SPlusChartHandler, SkeletonCardComponent, SnapshotHandler, SplitterChartHandler, StackBarChartHandler, StackBarControlUi, StaticFiltersComponent, StatisticCardComponent, TableCardComponent, TableViewHandler, TimelineHandler, addCommasToNumber, axisFormatters, cloneDeep, createAxisFormatter, createTooltipFormatter, dynamicReorder, dynamicTextReplace, formatCurrency, formatDate, formatNumber, formatPercentage, formatValue, formatWordsUnderBar, formatXAxis, generalConfiguration, getColorFromConditions, getLanguageCode, getLocalizedTitle, getNestedData, groupDatesByYearAndMonth, handleFilterForCard, handleFilterForSnapshot, handleFiltersForCustom, isMobilePlatform, sortChartData, sortDataTableView, switchAllKeysSmall, switchAllKeysToLower };
4900
- export type { ActionConfig, ApiResponse, BarChartData, BreadcrumbItem, BulkLinkChartRequest, BulkLinkChartResponse, BulkPropertiesRequest, BulkPropertiesResponse, BulkPropertiesResponseItem, BulkPropertyRequestItem, CardBorderStyleConfig, CardInfoConfig$1 as CardInfoConfig, CardStyleConfig$1 as CardStyleConfig, ChartActionEvent, ChartActionsContext, ChartData, ChartDataHandled, ChartLabel, ChartLinkConfiguration, ChartTypeConfig, ClientConfig, ComponentType, CustomApi, DashboardBuilderData, DashboardChartItem, DashboardDialogItem, DashboardItemStore, DashboardListEvent, DashboardPage, DisplayConfig, EChartSeriesItem, ExcelSheet, FilterConfig, FilterOption, FormatXAxisConfig$1 as FormatXAxisConfig, GroupedModuleOption, HandleAction, HeaderCardConfig$1 as HeaderCardConfig, IModule, IModuleType, IProperty, IPropertyWithGroup, ISelection, ItemConfig, LevelCardData, LevelCardProperty, LinkChartRequest, LocalizedName, ModuleItem, ModuleSelectOption, ModuleType, ModuleValue, ModulesTreeRequest, ModulesTreeResponse, PhaseGateProperty, PhaseGateStep, PieChartData, PropertiesResponse, PropertyItem$1 as PropertyItem, PropertyItemOption, PropertyItemsResponse, QuickManageType, Report, ReportChartLink, ReportDashboardConfig, ReportExcelConfig, ReportType, ReportUrl, RequestType, SelectionFilter, ServiceConfig, ServiceItem, SourceLink, StaticFilterConfig, StaticFilterItem, StatisticCardData, StyleConfig, TableColumn$1 as TableColumn, TableViewData, TimelineData, TimelineItem, UnlinkChartRequest };
4921
+ export type { ActionConfig, ApiResponse, BarChartData, BreadcrumbItem, BulkLinkChartRequest, BulkLinkChartResponse, BulkPropertiesRequest, BulkPropertiesResponse, BulkPropertiesResponseItem, BulkPropertiesResponseItemDto, BulkPropertyRequestItem, CardBorderStyleConfig, CardInfoConfig$1 as CardInfoConfig, CardStyleConfig$1 as CardStyleConfig, CatalogPropertyDto, ChartActionEvent, ChartActionsContext, ChartData, ChartDataHandled, ChartLabel, ChartLinkConfiguration, ChartTypeConfig, ClientConfig, ComponentType, CustomApi, DashboardBuilderData, DashboardChartItem, DashboardDialogItem, DashboardItemStore, DashboardListEvent, DashboardPage, DisplayConfig, EChartSeriesItem, ExcelSheet, FilterConfig, FilterOption, FormatXAxisConfig$1 as FormatXAxisConfig, GroupedModuleOption, HandleAction, HeaderCardConfig$1 as HeaderCardConfig, IModule, IModuleType, IProperty, IPropertyWithGroup, ISelection, ItemConfig, LevelCardData, LevelCardProperty, LinkChartRequest, LocalizedName, ModuleItem, ModuleSelectOption, ModuleType, ModuleValue, ModulesTreeRequest, ModulesTreeResponse, PhaseGateProperty, PhaseGateStep, PieChartData, PropertiesResponse, PropertyItem$1 as PropertyItem, PropertyItemOption, PropertyItemsResponse, QuickManageType, Report, ReportChartLink, ReportDashboardConfig, ReportExcelConfig, ReportType, ReportUrl, RequestType, SelectionFilter, ServiceConfig, ServiceItem, SourceLink, StaticFilterConfig, StaticFilterItem, StatisticCardData, StyleConfig, TableColumn$1 as TableColumn, TableViewData, TimelineData, TimelineItem, UnlinkChartRequest };