Commit 105de2ba by Ooh-Ao

regis

parent 2739dc53
......@@ -65,6 +65,21 @@ export class WidgetConfigRegistryService {
this.registerConfig('NotificationWidgetComponent', CardConfigComponent);
this.registerConfig('WelcomeWidgetComponent', CardConfigComponent);
this.registerConfig('QuickLinksWidgetComponent', CardConfigComponent);
this.registerConfig('CompanyInfoWidgetComponent', CardConfigComponent);
this.registerConfig('CompanyInfoSubfolderWidgetComponent', CardConfigComponent);
// Register KPI widgets with SimpleKpiConfigComponent
this.registerConfig('KpiWidgetComponent', SimpleKpiConfigComponent);
// Register utility widgets with appropriate config components
this.registerConfig('ClockWidgetComponent', SimpleKpiConfigComponent);
this.registerConfig('WeatherWidgetComponent', SimpleKpiConfigComponent);
this.registerConfig('CalendarWidgetComponent', SimpleKpiConfigComponent);
this.registerConfig('MatrixWidgetComponent', TableConfigComponent);
this.registerConfig('SlicerWidgetComponent', SimpleKpiConfigComponent);
this.registerConfig('FilledMapWidgetComponent', SimpleKpiConfigComponent);
this.registerConfig('EmployeeDirectoryWidgetComponent', CardConfigComponent);
this.registerConfig('HeadcountWidgetComponent', SimpleKpiConfigComponent);
}
registerConfig(widgetType: string, configComponent: Type<WidgetConfigComponent>): void {
......@@ -169,10 +184,7 @@ export class WidgetConfigRegistryService {
statusField: '',
hoursField: ''
},
'NewDataTableWidget': {
title: 'Data Table',
columnsJson: '[]'
},
'ScatterBubbleChartWidgetComponent': {
title: 'Scatter/Bubble Chart',
xField: '',
......@@ -195,10 +207,6 @@ export class WidgetConfigRegistryService {
yFields: [],
series: []
},
'SlicerWidgetComponent': {
title: 'Slicer',
optionsField: ''
},
'WaterfallChartWidgetComponent': {
title: 'Waterfall Chart',
xField: '',
......@@ -251,6 +259,50 @@ export class WidgetConfigRegistryService {
'MatrixWidgetComponent': {
title: 'Matrix',
columns: []
},
'ClockWidgetComponent': {
title: 'Clock Widget',
timezone: 'local',
timeFormat: '12',
dateFormat: 'MM/DD/YYYY',
showSeconds: true,
showDate: true,
showDay: true
},
'WeatherWidgetComponent': {
title: 'Weather Widget',
location: 'Bangkok',
units: 'metric',
showForecast: true,
forecastDays: 5
},
'CalendarWidgetComponent': {
title: 'Calendar Widget',
viewMode: 'month',
showWeekends: true,
showToday: true,
enableEvents: true
},
'SlicerWidgetComponent': {
title: 'Slicer Widget',
slicerField: '',
slicerType: 'dropdown',
multiSelect: false
},
'FilledMapWidgetComponent': {
title: 'Map Widget',
mapType: 'world',
regionField: 'region',
valueField: 'value'
},
'KpiWidgetComponent': {
title: 'KPI Widget',
valueField: 'value',
labelField: 'label',
aggregation: 'sum',
unit: '',
icon: 'info',
decimalPlaces: 0
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment