Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
portal-apps-manage
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
angular
portal-apps-manage
Commits
105de2ba
Commit
105de2ba
authored
Sep 16, 2025
by
Ooh-Ao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regis
parent
2739dc53
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
8 deletions
+60
-8
widget-config-registry.service.ts
.../widget-config/services/widget-config-registry.service.ts
+60
-8
widget-config.component.ts
...board-management/widget-config/widget-config.component.ts
+0
-0
No files found.
src/app/portal-manage/dashboard-management/widget-config/services/widget-config-registry.service.ts
View file @
105de2ba
...
...
@@ -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
}
};
...
...
src/app/portal-manage/dashboard-management/widget-config/widget-config.component.ts
View file @
105de2ba
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment