@acorex-platform/module-dashboard-management-client 0.0.32 → 0.0.37
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/fesm2022/{acorex-platform-module-dashboard-management-client-acorex-platform-module-dashboard-management-client-Cl4LZc2m.mjs → acorex-platform-module-dashboard-management-client-acorex-platform-module-dashboard-management-client-BUmHWNqL.mjs} +919 -83
- package/fesm2022/acorex-platform-module-dashboard-management-client-acorex-platform-module-dashboard-management-client-BUmHWNqL.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-dashboard-management-client-contracts-entities-dashboard.mjs +280 -0
- package/fesm2022/acorex-platform-module-dashboard-management-client-contracts-entities-dashboard.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-dashboard-management-client-contracts-entity-catalog-acorex-platform-module-dashboard-management-client-contracts-entity-catalog-CPDwiLWC.mjs +90 -0
- package/fesm2022/acorex-platform-module-dashboard-management-client-contracts-entity-catalog-acorex-platform-module-dashboard-management-client-contracts-entity-catalog-CPDwiLWC.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-dashboard-management-client-contracts-entity-catalog-dashboard.entity-C1ju-BQM.mjs +209 -0
- package/fesm2022/acorex-platform-module-dashboard-management-client-contracts-entity-catalog-dashboard.entity-C1ju-BQM.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-dashboard-management-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-dashboard-management-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-dashboard-management-client-contracts.mjs +11 -1
- package/fesm2022/acorex-platform-module-dashboard-management-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-dashboard-management-client-index-2e_oRKpO.mjs → acorex-platform-module-dashboard-management-client-index-C1Te5cDf.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-dashboard-management-client-index-2e_oRKpO.mjs.map → acorex-platform-module-dashboard-management-client-index-C1Te5cDf.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-dashboard-management-client-local-entities.mjs +29 -0
- package/fesm2022/acorex-platform-module-dashboard-management-client-local-entities.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-dashboard-management-client.mjs +1 -1
- package/package.json +13 -1
- package/types/acorex-platform-module-dashboard-management-client-contracts-entities-dashboard.d.ts +5 -0
- package/types/acorex-platform-module-dashboard-management-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-dashboard-management-client-contracts.d.ts +19 -2
- package/types/acorex-platform-module-dashboard-management-client-local-entities.d.ts +12 -0
- package/types/acorex-platform-module-dashboard-management-client.d.ts +82 -4
- package/fesm2022/acorex-platform-module-dashboard-management-client-acorex-platform-module-dashboard-management-client-Cl4LZc2m.mjs.map +0 -1
package/fesm2022/acorex-platform-module-dashboard-management-client-contracts-entities-dashboard.mjs
ADDED
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
|
|
4
|
+
const config = {
|
|
5
|
+
i18n: 'dashboard-management',
|
|
6
|
+
module: 'DashboardManagement',
|
|
7
|
+
};
|
|
8
|
+
/** Builds shared dashboard widget type ids: `{module}:Widget:Dashboard:{Segment}`. */
|
|
9
|
+
const dashboardWidgetId = (segment) => `${config.module}:Widget:Dashboard:${segment}`;
|
|
10
|
+
const RootConfig = {
|
|
11
|
+
config,
|
|
12
|
+
module: {
|
|
13
|
+
module: config.module,
|
|
14
|
+
name: config.module,
|
|
15
|
+
title: `@${config.i18n}:module.title`,
|
|
16
|
+
icon: 'fa-regular fa-tachometer-alt',
|
|
17
|
+
},
|
|
18
|
+
entities: {
|
|
19
|
+
dashboard: {
|
|
20
|
+
name: 'Dashboard',
|
|
21
|
+
title: '@dashboard-management:dashboards.terms.dashboard',
|
|
22
|
+
titlePlural: '@dashboard-management:dashboards.terms.dashboards',
|
|
23
|
+
icon: 'fa-regular fa-tachometer-alt',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
/** Dashboard widget type ids owned by dashboard-management. */
|
|
27
|
+
widgets: {
|
|
28
|
+
barChart: dashboardWidgetId('BarChart'),
|
|
29
|
+
donutChart: dashboardWidgetId('DonutChart'),
|
|
30
|
+
lineChart: dashboardWidgetId('LineChart'),
|
|
31
|
+
gaugeChart: dashboardWidgetId('GaugeChart'),
|
|
32
|
+
funnelChart: dashboardWidgetId('FunnelChart'),
|
|
33
|
+
heatmapChart: dashboardWidgetId('HeatmapChart'),
|
|
34
|
+
chartCard: dashboardWidgetId('ChartCard'),
|
|
35
|
+
stickyNote: dashboardWidgetId('StickyNote'),
|
|
36
|
+
clockCalendar: dashboardWidgetId('ClockCalendar'),
|
|
37
|
+
weather: dashboardWidgetId('Weather'),
|
|
38
|
+
shortcut: dashboardWidgetId('Shortcut'),
|
|
39
|
+
kpiProgress: dashboardWidgetId('KpiProgress'),
|
|
40
|
+
kpiSegmented: dashboardWidgetId('KpiSegmented'),
|
|
41
|
+
kpiDetails: dashboardWidgetId('KpiDetails'),
|
|
42
|
+
kpiStatCard: dashboardWidgetId('KpiStatCard'),
|
|
43
|
+
},
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated Dashboard queries moved to owning modules (`{Module}:Dashboard:*`).
|
|
46
|
+
* Update seeds/widgets to module keys; these aliases remain for transitional references only.
|
|
47
|
+
*/
|
|
48
|
+
queries: {
|
|
49
|
+
tenantAdmin: {
|
|
50
|
+
activeUsersKpi: `${config.module}:Dashboard:TenantAdmin:ActiveUsersKpi`,
|
|
51
|
+
employeesKpi: `${config.module}:Dashboard:TenantAdmin:EmployeesKpi`,
|
|
52
|
+
openTasksKpi: `${config.module}:Dashboard:TenantAdmin:OpenTasksKpi`,
|
|
53
|
+
activeProjectsKpi: `${config.module}:Dashboard:TenantAdmin:ActiveProjectsKpi`,
|
|
54
|
+
openHazardsKpi: `${config.module}:Dashboard:TenantAdmin:OpenHazardsKpi`,
|
|
55
|
+
documentsKpi: `${config.module}:Dashboard:TenantAdmin:DocumentsKpi`,
|
|
56
|
+
workflowDefinitionsKpi: `${config.module}:Dashboard:TenantAdmin:WorkflowDefinitionsKpi`,
|
|
57
|
+
subscriptionKpi: `${config.module}:Dashboard:TenantAdmin:SubscriptionKpi`,
|
|
58
|
+
usersByRoleDonut: `${config.module}:Dashboard:TenantAdmin:UsersByRoleDonut`,
|
|
59
|
+
taskStatusDonut: `${config.module}:Dashboard:TenantAdmin:TaskStatusDonut`,
|
|
60
|
+
deliveryStatusDonut: `${config.module}:Dashboard:TenantAdmin:DeliveryStatusDonut`,
|
|
61
|
+
integrationsDonut: `${config.module}:Dashboard:TenantAdmin:IntegrationsDonut`,
|
|
62
|
+
jobsByStatusBar: `${config.module}:Dashboard:TenantAdmin:JobsByStatusBar`,
|
|
63
|
+
jobSchedulesByStatusBar: `${config.module}:Dashboard:TenantAdmin:JobSchedulesByStatusBar`,
|
|
64
|
+
workflowsByStatusBar: `${config.module}:Dashboard:TenantAdmin:WorkflowsByStatusBar`,
|
|
65
|
+
teamsBar: `${config.module}:Dashboard:TenantAdmin:TeamsBar`,
|
|
66
|
+
projectsByStatusBar: `${config.module}:Dashboard:TenantAdmin:ProjectsByStatusBar`,
|
|
67
|
+
trainingComplianceGauge: `${config.module}:Dashboard:TenantAdmin:TrainingComplianceGauge`,
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/** Component key for the dashboard Layout page tab. Register via AXP_PAGE_COMPONENT_PROVIDER. */
|
|
73
|
+
const DASHBOARD_LAYOUT_PAGE_COMPONENT_KEY = 'dashboard-layout-page';
|
|
74
|
+
|
|
75
|
+
async function dashboardFactory() {
|
|
76
|
+
const entityDef = {
|
|
77
|
+
module: RootConfig.module.name,
|
|
78
|
+
name: RootConfig.entities.dashboard.name,
|
|
79
|
+
title: RootConfig.entities.dashboard.title,
|
|
80
|
+
icon: RootConfig.entities.dashboard.icon,
|
|
81
|
+
plugins: [{ name: 'category' }, { name: 'archive' }],
|
|
82
|
+
pages: [
|
|
83
|
+
{
|
|
84
|
+
componentKey: DASHBOARD_LAYOUT_PAGE_COMPONENT_KEY,
|
|
85
|
+
title: '@dashboard-management:dashboards.entities.dashboard.pages.layout.title',
|
|
86
|
+
description: '@dashboard-management:dashboards.entities.dashboard.pages.layout.description',
|
|
87
|
+
icon: 'fa-light fa-table-layout',
|
|
88
|
+
layout: { order: 1, position: 'after' },
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
formats: {
|
|
92
|
+
individual: RootConfig.entities.dashboard.title,
|
|
93
|
+
plural: RootConfig.entities.dashboard.titlePlural,
|
|
94
|
+
displayName: '@general:terms.interface.configuration',
|
|
95
|
+
searchResult: {
|
|
96
|
+
title: '{{ title }}',
|
|
97
|
+
description: RootConfig.module.title,
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
relatedEntities: [],
|
|
101
|
+
groups: [
|
|
102
|
+
{
|
|
103
|
+
id: 'section',
|
|
104
|
+
title: RootConfig.entities.dashboard.title,
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
id: 'access',
|
|
108
|
+
title: '@dashboard-management:dashboards.entities.dashboard.groups.access.title',
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
properties: [
|
|
112
|
+
{
|
|
113
|
+
name: 'id',
|
|
114
|
+
title: 'ID',
|
|
115
|
+
groupId: 'section',
|
|
116
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: 'title',
|
|
120
|
+
title: '@general:terms.common.title',
|
|
121
|
+
groupId: 'section',
|
|
122
|
+
options: {
|
|
123
|
+
sort: {
|
|
124
|
+
enabled: true,
|
|
125
|
+
},
|
|
126
|
+
filter: {
|
|
127
|
+
advance: {
|
|
128
|
+
enabled: true,
|
|
129
|
+
},
|
|
130
|
+
inline: {
|
|
131
|
+
enabled: true,
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
schema: {
|
|
136
|
+
dataType: 'string',
|
|
137
|
+
interface: {
|
|
138
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
139
|
+
options: {
|
|
140
|
+
multiLanguage: true,
|
|
141
|
+
placeholder: '@general:terms.common.title',
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
validations: [
|
|
146
|
+
{
|
|
147
|
+
rule: 'required',
|
|
148
|
+
},
|
|
149
|
+
],
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: 'description',
|
|
153
|
+
title: '@dashboard-management:dashboards.entities.dashboard.fields.description.title',
|
|
154
|
+
groupId: 'section',
|
|
155
|
+
options: {
|
|
156
|
+
sort: {
|
|
157
|
+
enabled: false,
|
|
158
|
+
},
|
|
159
|
+
filter: {
|
|
160
|
+
advance: {
|
|
161
|
+
enabled: false,
|
|
162
|
+
},
|
|
163
|
+
inline: {
|
|
164
|
+
enabled: false,
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
schema: {
|
|
169
|
+
dataType: 'string',
|
|
170
|
+
interface: {
|
|
171
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
172
|
+
options: {
|
|
173
|
+
rows: 3,
|
|
174
|
+
multiLanguage: true,
|
|
175
|
+
placeholder: '@general:terms.common.description',
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: 'scope',
|
|
182
|
+
title: '@dashboard-management:dashboards.entities.dashboard.fields.scope.title',
|
|
183
|
+
groupId: 'access',
|
|
184
|
+
options: {
|
|
185
|
+
sort: { enabled: true },
|
|
186
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
187
|
+
},
|
|
188
|
+
schema: {
|
|
189
|
+
dataType: 'string',
|
|
190
|
+
visible: false,
|
|
191
|
+
interface: {
|
|
192
|
+
type: AXPWidgetsList.Editors.SelectBox,
|
|
193
|
+
options: {
|
|
194
|
+
valueField: 'id',
|
|
195
|
+
dataSource: [
|
|
196
|
+
{
|
|
197
|
+
id: 'T',
|
|
198
|
+
title: '@dashboard-management:dashboards.entities.dashboard.fields.scope.options.tenant',
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
id: 'U',
|
|
202
|
+
title: '@dashboard-management:dashboards.entities.dashboard.fields.scope.options.personal',
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
id: 'E',
|
|
206
|
+
title: '@dashboard-management:dashboards.entities.dashboard.fields.scope.options.entity',
|
|
207
|
+
},
|
|
208
|
+
],
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: 'scopeRef.roleIds',
|
|
215
|
+
title: '@dashboard:roles',
|
|
216
|
+
groupId: 'access',
|
|
217
|
+
schema: {
|
|
218
|
+
dataType: 'object',
|
|
219
|
+
visible: `{{ !context.eval("scope") || context.eval("scope") === "T" }}`,
|
|
220
|
+
interface: {
|
|
221
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
222
|
+
options: {
|
|
223
|
+
entity: 'SecurityManagement.Role',
|
|
224
|
+
multiple: true,
|
|
225
|
+
look: 'select',
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
columns: [{ name: 'title' }, { name: 'description' }],
|
|
232
|
+
interfaces: {
|
|
233
|
+
master: {
|
|
234
|
+
create: {
|
|
235
|
+
sections: [{ id: 'section' }, { id: 'access' }],
|
|
236
|
+
properties: [
|
|
237
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
238
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
239
|
+
{ name: 'scopeRef.roleIds', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
240
|
+
],
|
|
241
|
+
},
|
|
242
|
+
update: {
|
|
243
|
+
sections: [{ id: 'section' }, { id: 'access' }],
|
|
244
|
+
properties: [
|
|
245
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
246
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
247
|
+
{ name: 'scopeRef.roleIds', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
248
|
+
],
|
|
249
|
+
},
|
|
250
|
+
single: {
|
|
251
|
+
title: '{{title}}',
|
|
252
|
+
sections: [{ id: 'section', layout: { positions: { lg: { colSpan: 12 } } } }, { id: 'access' }],
|
|
253
|
+
properties: [
|
|
254
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
255
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
256
|
+
{ name: 'scopeRef.roleIds', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
257
|
+
],
|
|
258
|
+
actions: [...entityMasterRecordActions()],
|
|
259
|
+
},
|
|
260
|
+
list: {
|
|
261
|
+
actions: [...entityMasterCrudActions()],
|
|
262
|
+
views: [
|
|
263
|
+
createQueryView('tenant', '@dashboard-management:dashboards.entities.dashboard.views.tenant', true, {
|
|
264
|
+
sorts: [{ name: 'title', dir: 'asc' }],
|
|
265
|
+
conditions: [{ name: 'scope', operator: { type: 'equal' }, value: 'T' }],
|
|
266
|
+
}),
|
|
267
|
+
],
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
};
|
|
272
|
+
return entityDef;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Generated bundle index. Do not edit.
|
|
277
|
+
*/
|
|
278
|
+
|
|
279
|
+
export { dashboardFactory };
|
|
280
|
+
//# sourceMappingURL=acorex-platform-module-dashboard-management-client-contracts-entities-dashboard.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-dashboard-management-client-contracts-entities-dashboard.mjs","sources":["../../../../libs/modules/dashboard-management/contracts/src/root-config.ts","../../../../libs/modules/dashboard-management/contracts/src/DASHBOARD_LAYOUT_PAGE_COMPONENT_KEY.ts","../../../../libs/modules/dashboard-management/contracts/src/entities/dashboard/dashboard.entity.ts","../../../../libs/modules/dashboard-management/contracts/src/acorex-platform-module-dashboard-management-client-contracts-entities-dashboard.ts"],"sourcesContent":["const config = {\n i18n: 'dashboard-management',\n module: 'DashboardManagement',\n} as const;\n\n/** Builds shared dashboard widget type ids: `{module}:Widget:Dashboard:{Segment}`. */\nconst dashboardWidgetId = (segment: string): string =>\n `${config.module}:Widget:Dashboard:${segment}`;\n\nexport const RootConfig = {\n config,\n module: {\n module: config.module,\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-regular fa-tachometer-alt',\n },\n entities: {\n dashboard: {\n name: 'Dashboard',\n title: '@dashboard-management:dashboards.terms.dashboard',\n titlePlural: '@dashboard-management:dashboards.terms.dashboards',\n icon: 'fa-regular fa-tachometer-alt',\n },\n },\n /** Dashboard widget type ids owned by dashboard-management. */\n widgets: {\n barChart: dashboardWidgetId('BarChart'),\n donutChart: dashboardWidgetId('DonutChart'),\n lineChart: dashboardWidgetId('LineChart'),\n gaugeChart: dashboardWidgetId('GaugeChart'),\n funnelChart: dashboardWidgetId('FunnelChart'),\n heatmapChart: dashboardWidgetId('HeatmapChart'),\n chartCard: dashboardWidgetId('ChartCard'),\n stickyNote: dashboardWidgetId('StickyNote'),\n clockCalendar: dashboardWidgetId('ClockCalendar'),\n weather: dashboardWidgetId('Weather'),\n shortcut: dashboardWidgetId('Shortcut'),\n kpiProgress: dashboardWidgetId('KpiProgress'),\n kpiSegmented: dashboardWidgetId('KpiSegmented'),\n kpiDetails: dashboardWidgetId('KpiDetails'),\n kpiStatCard: dashboardWidgetId('KpiStatCard'),\n },\n /**\n * @deprecated Dashboard queries moved to owning modules (`{Module}:Dashboard:*`).\n * Update seeds/widgets to module keys; these aliases remain for transitional references only.\n */\n queries: {\n tenantAdmin: {\n activeUsersKpi: `${config.module}:Dashboard:TenantAdmin:ActiveUsersKpi`,\n employeesKpi: `${config.module}:Dashboard:TenantAdmin:EmployeesKpi`,\n openTasksKpi: `${config.module}:Dashboard:TenantAdmin:OpenTasksKpi`,\n activeProjectsKpi: `${config.module}:Dashboard:TenantAdmin:ActiveProjectsKpi`,\n openHazardsKpi: `${config.module}:Dashboard:TenantAdmin:OpenHazardsKpi`,\n documentsKpi: `${config.module}:Dashboard:TenantAdmin:DocumentsKpi`,\n workflowDefinitionsKpi: `${config.module}:Dashboard:TenantAdmin:WorkflowDefinitionsKpi`,\n subscriptionKpi: `${config.module}:Dashboard:TenantAdmin:SubscriptionKpi`,\n usersByRoleDonut: `${config.module}:Dashboard:TenantAdmin:UsersByRoleDonut`,\n taskStatusDonut: `${config.module}:Dashboard:TenantAdmin:TaskStatusDonut`,\n deliveryStatusDonut: `${config.module}:Dashboard:TenantAdmin:DeliveryStatusDonut`,\n integrationsDonut: `${config.module}:Dashboard:TenantAdmin:IntegrationsDonut`,\n jobsByStatusBar: `${config.module}:Dashboard:TenantAdmin:JobsByStatusBar`,\n jobSchedulesByStatusBar: `${config.module}:Dashboard:TenantAdmin:JobSchedulesByStatusBar`,\n workflowsByStatusBar: `${config.module}:Dashboard:TenantAdmin:WorkflowsByStatusBar`,\n teamsBar: `${config.module}:Dashboard:TenantAdmin:TeamsBar`,\n projectsByStatusBar: `${config.module}:Dashboard:TenantAdmin:ProjectsByStatusBar`,\n trainingComplianceGauge: `${config.module}:Dashboard:TenantAdmin:TrainingComplianceGauge`,\n },\n },\n};\n","/** Component key for the dashboard Layout page tab. Register via AXP_PAGE_COMPONENT_PROVIDER. */\nexport const DASHBOARD_LAYOUT_PAGE_COMPONENT_KEY = 'dashboard-layout-page';\n","import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\nimport { DASHBOARD_LAYOUT_PAGE_COMPONENT_KEY } from '../../DASHBOARD_LAYOUT_PAGE_COMPONENT_KEY';\n\nexport async function dashboardFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.dashboard.name,\n title: RootConfig.entities.dashboard.title,\n icon: RootConfig.entities.dashboard.icon,\n plugins: [{ name: 'category' }, { name: 'archive' }],\n pages: [\n {\n componentKey: DASHBOARD_LAYOUT_PAGE_COMPONENT_KEY,\n title: '@dashboard-management:dashboards.entities.dashboard.pages.layout.title',\n description: '@dashboard-management:dashboards.entities.dashboard.pages.layout.description',\n icon: 'fa-light fa-table-layout',\n layout: { order: 1, position: 'after' },\n },\n ],\n formats: {\n individual: RootConfig.entities.dashboard.title,\n plural: RootConfig.entities.dashboard.titlePlural,\n displayName: '@general:terms.interface.configuration',\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [\n {\n id: 'section',\n title: RootConfig.entities.dashboard.title,\n },\n {\n id: 'access',\n title: '@dashboard-management:dashboards.entities.dashboard.groups.access.title',\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'section',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'section',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n inline: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n multiLanguage: true,\n placeholder: '@general:terms.common.title',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n\n {\n name: 'description',\n title: '@dashboard-management:dashboards.entities.dashboard.fields.description.title',\n groupId: 'section',\n options: {\n sort: {\n enabled: false,\n },\n filter: {\n advance: {\n enabled: false,\n },\n inline: {\n enabled: false,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n multiLanguage: true,\n placeholder: '@general:terms.common.description',\n },\n },\n },\n },\n {\n name: 'scope',\n title: '@dashboard-management:dashboards.entities.dashboard.fields.scope.title',\n groupId: 'access',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n visible: false,\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'id',\n dataSource: [\n {\n id: 'T',\n title: '@dashboard-management:dashboards.entities.dashboard.fields.scope.options.tenant',\n },\n {\n id: 'U',\n title: '@dashboard-management:dashboards.entities.dashboard.fields.scope.options.personal',\n },\n {\n id: 'E',\n title: '@dashboard-management:dashboards.entities.dashboard.fields.scope.options.entity',\n },\n ],\n },\n },\n },\n },\n {\n name: 'scopeRef.roleIds',\n title: '@dashboard:roles',\n groupId: 'access',\n schema: {\n dataType: 'object',\n visible: `{{ !context.eval(\"scope\") || context.eval(\"scope\") === \"T\" }}`,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: 'SecurityManagement.Role',\n multiple: true,\n look: 'select',\n },\n },\n },\n },\n ],\n columns: [{ name: 'title' }, { name: 'description' }],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'section' }, { id: 'access' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'scopeRef.roleIds', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n ],\n },\n update: {\n sections: [{ id: 'section' }, { id: 'access' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'scopeRef.roleIds', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [{ id: 'section', layout: { positions: { lg: { colSpan: 12 } } } }, { id: 'access' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'scopeRef.roleIds', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createQueryView('tenant', '@dashboard-management:dashboards.entities.dashboard.views.tenant', true, {\n sorts: [{ name: 'title', dir: 'asc' }],\n conditions: [{ name: 'scope', operator: { type: 'equal' }, value: 'T' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.dashboard';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,sBAAsB;AAC5B,IAAA,MAAM,EAAE,qBAAqB;CACrB;AAEV;AACA,MAAM,iBAAiB,GAAG,CAAC,OAAe,KACxC,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,kBAAA,EAAqB,OAAO,EAAE;AAEzC,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,8BAA8B;AACrC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,WAAW;AACjB,YAAA,KAAK,EAAE,kDAAkD;AACzD,YAAA,WAAW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K,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBAC1E,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBACjF,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AACvF,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;AACvC,oBAAA,KAAK,EAAE;AACL,wBAAA,eAAe,CAAC,QAAQ,EAAE,kEAAkE,EAAE,IAAI,EAAE;4BAClG,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;AACtC,4BAAA,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC;yBACzE,CAAC;AACH,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;AC7MA;;AAEG;;"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
const config = {
|
|
2
|
+
i18n: 'dashboard-management',
|
|
3
|
+
module: 'DashboardManagement',
|
|
4
|
+
};
|
|
5
|
+
/** Builds shared dashboard widget type ids: `{module}:Widget:Dashboard:{Segment}`. */
|
|
6
|
+
const dashboardWidgetId = (segment) => `${config.module}:Widget:Dashboard:${segment}`;
|
|
7
|
+
const RootConfig = {
|
|
8
|
+
config,
|
|
9
|
+
module: {
|
|
10
|
+
module: config.module,
|
|
11
|
+
name: config.module,
|
|
12
|
+
title: `@${config.i18n}:module.title`,
|
|
13
|
+
icon: 'fa-regular fa-tachometer-alt',
|
|
14
|
+
},
|
|
15
|
+
entities: {
|
|
16
|
+
dashboard: {
|
|
17
|
+
name: 'Dashboard',
|
|
18
|
+
title: '@dashboard-management:dashboards.terms.dashboard',
|
|
19
|
+
titlePlural: '@dashboard-management:dashboards.terms.dashboards',
|
|
20
|
+
icon: 'fa-regular fa-tachometer-alt',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
/** Dashboard widget type ids owned by dashboard-management. */
|
|
24
|
+
widgets: {
|
|
25
|
+
barChart: dashboardWidgetId('BarChart'),
|
|
26
|
+
donutChart: dashboardWidgetId('DonutChart'),
|
|
27
|
+
lineChart: dashboardWidgetId('LineChart'),
|
|
28
|
+
gaugeChart: dashboardWidgetId('GaugeChart'),
|
|
29
|
+
funnelChart: dashboardWidgetId('FunnelChart'),
|
|
30
|
+
heatmapChart: dashboardWidgetId('HeatmapChart'),
|
|
31
|
+
chartCard: dashboardWidgetId('ChartCard'),
|
|
32
|
+
stickyNote: dashboardWidgetId('StickyNote'),
|
|
33
|
+
clockCalendar: dashboardWidgetId('ClockCalendar'),
|
|
34
|
+
weather: dashboardWidgetId('Weather'),
|
|
35
|
+
shortcut: dashboardWidgetId('Shortcut'),
|
|
36
|
+
kpiProgress: dashboardWidgetId('KpiProgress'),
|
|
37
|
+
kpiSegmented: dashboardWidgetId('KpiSegmented'),
|
|
38
|
+
kpiDetails: dashboardWidgetId('KpiDetails'),
|
|
39
|
+
kpiStatCard: dashboardWidgetId('KpiStatCard'),
|
|
40
|
+
},
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated Dashboard queries moved to owning modules (`{Module}:Dashboard:*`).
|
|
43
|
+
* Update seeds/widgets to module keys; these aliases remain for transitional references only.
|
|
44
|
+
*/
|
|
45
|
+
queries: {
|
|
46
|
+
tenantAdmin: {
|
|
47
|
+
activeUsersKpi: `${config.module}:Dashboard:TenantAdmin:ActiveUsersKpi`,
|
|
48
|
+
employeesKpi: `${config.module}:Dashboard:TenantAdmin:EmployeesKpi`,
|
|
49
|
+
openTasksKpi: `${config.module}:Dashboard:TenantAdmin:OpenTasksKpi`,
|
|
50
|
+
activeProjectsKpi: `${config.module}:Dashboard:TenantAdmin:ActiveProjectsKpi`,
|
|
51
|
+
openHazardsKpi: `${config.module}:Dashboard:TenantAdmin:OpenHazardsKpi`,
|
|
52
|
+
documentsKpi: `${config.module}:Dashboard:TenantAdmin:DocumentsKpi`,
|
|
53
|
+
workflowDefinitionsKpi: `${config.module}:Dashboard:TenantAdmin:WorkflowDefinitionsKpi`,
|
|
54
|
+
subscriptionKpi: `${config.module}:Dashboard:TenantAdmin:SubscriptionKpi`,
|
|
55
|
+
usersByRoleDonut: `${config.module}:Dashboard:TenantAdmin:UsersByRoleDonut`,
|
|
56
|
+
taskStatusDonut: `${config.module}:Dashboard:TenantAdmin:TaskStatusDonut`,
|
|
57
|
+
deliveryStatusDonut: `${config.module}:Dashboard:TenantAdmin:DeliveryStatusDonut`,
|
|
58
|
+
integrationsDonut: `${config.module}:Dashboard:TenantAdmin:IntegrationsDonut`,
|
|
59
|
+
jobsByStatusBar: `${config.module}:Dashboard:TenantAdmin:JobsByStatusBar`,
|
|
60
|
+
jobSchedulesByStatusBar: `${config.module}:Dashboard:TenantAdmin:JobSchedulesByStatusBar`,
|
|
61
|
+
workflowsByStatusBar: `${config.module}:Dashboard:TenantAdmin:WorkflowsByStatusBar`,
|
|
62
|
+
teamsBar: `${config.module}:Dashboard:TenantAdmin:TeamsBar`,
|
|
63
|
+
projectsByStatusBar: `${config.module}:Dashboard:TenantAdmin:ProjectsByStatusBar`,
|
|
64
|
+
trainingComplianceGauge: `${config.module}:Dashboard:TenantAdmin:TrainingComplianceGauge`,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
//#region ----- Imports -----
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region ----- Local entity catalog -----
|
|
72
|
+
/**
|
|
73
|
+
* Lazy per-entity layout factories. Do not re-export from the contracts barrel
|
|
74
|
+
* so RootConfig imports stay light. Server seed and client `local-entities`
|
|
75
|
+
* consume this catalog explicitly.
|
|
76
|
+
*/
|
|
77
|
+
const dashboardManagementLocalEntityCatalog = {
|
|
78
|
+
moduleName: RootConfig.module.name,
|
|
79
|
+
loaders: {
|
|
80
|
+
[RootConfig.entities.dashboard.name]: () => import('./acorex-platform-module-dashboard-management-client-contracts-entity-catalog-dashboard.entity-C1ju-BQM.mjs').then((m) => m.dashboardFactory()),
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
//#endregion
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Generated bundle index. Do not edit.
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
export { RootConfig as R, dashboardManagementLocalEntityCatalog as d };
|
|
90
|
+
//# sourceMappingURL=acorex-platform-module-dashboard-management-client-contracts-entity-catalog-acorex-platform-module-dashboard-management-client-contracts-entity-catalog-CPDwiLWC.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-dashboard-management-client-contracts-entity-catalog-acorex-platform-module-dashboard-management-client-contracts-entity-catalog-CPDwiLWC.mjs","sources":["../../../../libs/modules/dashboard-management/contracts/src/root-config.ts","../../../../libs/modules/dashboard-management/contracts/src/entity-catalog.ts","../../../../libs/modules/dashboard-management/contracts/src/acorex-platform-module-dashboard-management-client-contracts-entity-catalog.ts"],"sourcesContent":["const config = {\n i18n: 'dashboard-management',\n module: 'DashboardManagement',\n} as const;\n\n/** Builds shared dashboard widget type ids: `{module}:Widget:Dashboard:{Segment}`. */\nconst dashboardWidgetId = (segment: string): string =>\n `${config.module}:Widget:Dashboard:${segment}`;\n\nexport const RootConfig = {\n config,\n module: {\n module: config.module,\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-regular fa-tachometer-alt',\n },\n entities: {\n dashboard: {\n name: 'Dashboard',\n title: '@dashboard-management:dashboards.terms.dashboard',\n titlePlural: '@dashboard-management:dashboards.terms.dashboards',\n icon: 'fa-regular fa-tachometer-alt',\n },\n },\n /** Dashboard widget type ids owned by dashboard-management. */\n widgets: {\n barChart: dashboardWidgetId('BarChart'),\n donutChart: dashboardWidgetId('DonutChart'),\n lineChart: dashboardWidgetId('LineChart'),\n gaugeChart: dashboardWidgetId('GaugeChart'),\n funnelChart: dashboardWidgetId('FunnelChart'),\n heatmapChart: dashboardWidgetId('HeatmapChart'),\n chartCard: dashboardWidgetId('ChartCard'),\n stickyNote: dashboardWidgetId('StickyNote'),\n clockCalendar: dashboardWidgetId('ClockCalendar'),\n weather: dashboardWidgetId('Weather'),\n shortcut: dashboardWidgetId('Shortcut'),\n kpiProgress: dashboardWidgetId('KpiProgress'),\n kpiSegmented: dashboardWidgetId('KpiSegmented'),\n kpiDetails: dashboardWidgetId('KpiDetails'),\n kpiStatCard: dashboardWidgetId('KpiStatCard'),\n },\n /**\n * @deprecated Dashboard queries moved to owning modules (`{Module}:Dashboard:*`).\n * Update seeds/widgets to module keys; these aliases remain for transitional references only.\n */\n queries: {\n tenantAdmin: {\n activeUsersKpi: `${config.module}:Dashboard:TenantAdmin:ActiveUsersKpi`,\n employeesKpi: `${config.module}:Dashboard:TenantAdmin:EmployeesKpi`,\n openTasksKpi: `${config.module}:Dashboard:TenantAdmin:OpenTasksKpi`,\n activeProjectsKpi: `${config.module}:Dashboard:TenantAdmin:ActiveProjectsKpi`,\n openHazardsKpi: `${config.module}:Dashboard:TenantAdmin:OpenHazardsKpi`,\n documentsKpi: `${config.module}:Dashboard:TenantAdmin:DocumentsKpi`,\n workflowDefinitionsKpi: `${config.module}:Dashboard:TenantAdmin:WorkflowDefinitionsKpi`,\n subscriptionKpi: `${config.module}:Dashboard:TenantAdmin:SubscriptionKpi`,\n usersByRoleDonut: `${config.module}:Dashboard:TenantAdmin:UsersByRoleDonut`,\n taskStatusDonut: `${config.module}:Dashboard:TenantAdmin:TaskStatusDonut`,\n deliveryStatusDonut: `${config.module}:Dashboard:TenantAdmin:DeliveryStatusDonut`,\n integrationsDonut: `${config.module}:Dashboard:TenantAdmin:IntegrationsDonut`,\n jobsByStatusBar: `${config.module}:Dashboard:TenantAdmin:JobsByStatusBar`,\n jobSchedulesByStatusBar: `${config.module}:Dashboard:TenantAdmin:JobSchedulesByStatusBar`,\n workflowsByStatusBar: `${config.module}:Dashboard:TenantAdmin:WorkflowsByStatusBar`,\n teamsBar: `${config.module}:Dashboard:TenantAdmin:TeamsBar`,\n projectsByStatusBar: `${config.module}:Dashboard:TenantAdmin:ProjectsByStatusBar`,\n trainingComplianceGauge: `${config.module}:Dashboard:TenantAdmin:TrainingComplianceGauge`,\n },\n },\n};\n","//#region ----- Imports -----\n\nimport type { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ----- Local entity catalog -----\n\n/**\n * Lazy per-entity layout factories. Do not re-export from the contracts barrel\n * so RootConfig imports stay light. Server seed and client `local-entities`\n * consume this catalog explicitly.\n */\nexport const dashboardManagementLocalEntityCatalog: AXPLocalEntityCatalog = {\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.dashboard.name]: () =>\n import('./entities/dashboard/dashboard.entity.js').then((m) => m.dashboardFactory()),\n },\n};\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-catalog';\n"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,sBAAsB;AAC5B,IAAA,MAAM,EAAE,qBAAqB;CACrB;AAEV;AACA,MAAM,iBAAiB,GAAG,CAAC,OAAe,KACxC,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,kBAAA,EAAqB,OAAO,EAAE;AAEzC,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IA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CAAA,+BAAA,CAAiC;AAC3D,YAAA,mBAAmB,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,0CAAA,CAA4C;AACjF,YAAA,uBAAuB,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,8CAAA,CAAgD;AAC1F,SAAA;AACF,KAAA;;;ACpEH;AAMA;AAEA;AAEA;;;;AAIG;AACI,MAAM,qCAAqC,GAA0B;AAC1E,IAAA,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAClC,IAAA,OAAO,EAAE;AACP,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,GAAG,MACpC,OAAO,6GAA0C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,gBAAgB,EAAE,CAAC;AACvF,KAAA;;AAGH;;ACvBA;;AAEG;;"}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-dashboard-management-client-contracts-entity-catalog-acorex-platform-module-dashboard-management-client-contracts-entity-catalog-CPDwiLWC.mjs';
|
|
4
|
+
|
|
5
|
+
/** Component key for the dashboard Layout page tab. Register via AXP_PAGE_COMPONENT_PROVIDER. */
|
|
6
|
+
const DASHBOARD_LAYOUT_PAGE_COMPONENT_KEY = 'dashboard-layout-page';
|
|
7
|
+
|
|
8
|
+
async function dashboardFactory() {
|
|
9
|
+
const entityDef = {
|
|
10
|
+
module: RootConfig.module.name,
|
|
11
|
+
name: RootConfig.entities.dashboard.name,
|
|
12
|
+
title: RootConfig.entities.dashboard.title,
|
|
13
|
+
icon: RootConfig.entities.dashboard.icon,
|
|
14
|
+
plugins: [{ name: 'category' }, { name: 'archive' }],
|
|
15
|
+
pages: [
|
|
16
|
+
{
|
|
17
|
+
componentKey: DASHBOARD_LAYOUT_PAGE_COMPONENT_KEY,
|
|
18
|
+
title: '@dashboard-management:dashboards.entities.dashboard.pages.layout.title',
|
|
19
|
+
description: '@dashboard-management:dashboards.entities.dashboard.pages.layout.description',
|
|
20
|
+
icon: 'fa-light fa-table-layout',
|
|
21
|
+
layout: { order: 1, position: 'after' },
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
formats: {
|
|
25
|
+
individual: RootConfig.entities.dashboard.title,
|
|
26
|
+
plural: RootConfig.entities.dashboard.titlePlural,
|
|
27
|
+
displayName: '@general:terms.interface.configuration',
|
|
28
|
+
searchResult: {
|
|
29
|
+
title: '{{ title }}',
|
|
30
|
+
description: RootConfig.module.title,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
relatedEntities: [],
|
|
34
|
+
groups: [
|
|
35
|
+
{
|
|
36
|
+
id: 'section',
|
|
37
|
+
title: RootConfig.entities.dashboard.title,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: 'access',
|
|
41
|
+
title: '@dashboard-management:dashboards.entities.dashboard.groups.access.title',
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
properties: [
|
|
45
|
+
{
|
|
46
|
+
name: 'id',
|
|
47
|
+
title: 'ID',
|
|
48
|
+
groupId: 'section',
|
|
49
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'title',
|
|
53
|
+
title: '@general:terms.common.title',
|
|
54
|
+
groupId: 'section',
|
|
55
|
+
options: {
|
|
56
|
+
sort: {
|
|
57
|
+
enabled: true,
|
|
58
|
+
},
|
|
59
|
+
filter: {
|
|
60
|
+
advance: {
|
|
61
|
+
enabled: true,
|
|
62
|
+
},
|
|
63
|
+
inline: {
|
|
64
|
+
enabled: true,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
schema: {
|
|
69
|
+
dataType: 'string',
|
|
70
|
+
interface: {
|
|
71
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
72
|
+
options: {
|
|
73
|
+
multiLanguage: true,
|
|
74
|
+
placeholder: '@general:terms.common.title',
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
validations: [
|
|
79
|
+
{
|
|
80
|
+
rule: 'required',
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'description',
|
|
86
|
+
title: '@dashboard-management:dashboards.entities.dashboard.fields.description.title',
|
|
87
|
+
groupId: 'section',
|
|
88
|
+
options: {
|
|
89
|
+
sort: {
|
|
90
|
+
enabled: false,
|
|
91
|
+
},
|
|
92
|
+
filter: {
|
|
93
|
+
advance: {
|
|
94
|
+
enabled: false,
|
|
95
|
+
},
|
|
96
|
+
inline: {
|
|
97
|
+
enabled: false,
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
schema: {
|
|
102
|
+
dataType: 'string',
|
|
103
|
+
interface: {
|
|
104
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
105
|
+
options: {
|
|
106
|
+
rows: 3,
|
|
107
|
+
multiLanguage: true,
|
|
108
|
+
placeholder: '@general:terms.common.description',
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'scope',
|
|
115
|
+
title: '@dashboard-management:dashboards.entities.dashboard.fields.scope.title',
|
|
116
|
+
groupId: 'access',
|
|
117
|
+
options: {
|
|
118
|
+
sort: { enabled: true },
|
|
119
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
120
|
+
},
|
|
121
|
+
schema: {
|
|
122
|
+
dataType: 'string',
|
|
123
|
+
visible: false,
|
|
124
|
+
interface: {
|
|
125
|
+
type: AXPWidgetsList.Editors.SelectBox,
|
|
126
|
+
options: {
|
|
127
|
+
valueField: 'id',
|
|
128
|
+
dataSource: [
|
|
129
|
+
{
|
|
130
|
+
id: 'T',
|
|
131
|
+
title: '@dashboard-management:dashboards.entities.dashboard.fields.scope.options.tenant',
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
id: 'U',
|
|
135
|
+
title: '@dashboard-management:dashboards.entities.dashboard.fields.scope.options.personal',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
id: 'E',
|
|
139
|
+
title: '@dashboard-management:dashboards.entities.dashboard.fields.scope.options.entity',
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: 'scopeRef.roleIds',
|
|
148
|
+
title: '@dashboard:roles',
|
|
149
|
+
groupId: 'access',
|
|
150
|
+
schema: {
|
|
151
|
+
dataType: 'object',
|
|
152
|
+
visible: `{{ !context.eval("scope") || context.eval("scope") === "T" }}`,
|
|
153
|
+
interface: {
|
|
154
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
155
|
+
options: {
|
|
156
|
+
entity: 'SecurityManagement.Role',
|
|
157
|
+
multiple: true,
|
|
158
|
+
look: 'select',
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
columns: [{ name: 'title' }, { name: 'description' }],
|
|
165
|
+
interfaces: {
|
|
166
|
+
master: {
|
|
167
|
+
create: {
|
|
168
|
+
sections: [{ id: 'section' }, { id: 'access' }],
|
|
169
|
+
properties: [
|
|
170
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
171
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
172
|
+
{ name: 'scopeRef.roleIds', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
173
|
+
],
|
|
174
|
+
},
|
|
175
|
+
update: {
|
|
176
|
+
sections: [{ id: 'section' }, { id: 'access' }],
|
|
177
|
+
properties: [
|
|
178
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
179
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
180
|
+
{ name: 'scopeRef.roleIds', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
181
|
+
],
|
|
182
|
+
},
|
|
183
|
+
single: {
|
|
184
|
+
title: '{{title}}',
|
|
185
|
+
sections: [{ id: 'section', layout: { positions: { lg: { colSpan: 12 } } } }, { id: 'access' }],
|
|
186
|
+
properties: [
|
|
187
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
188
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
189
|
+
{ name: 'scopeRef.roleIds', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
190
|
+
],
|
|
191
|
+
actions: [...entityMasterRecordActions()],
|
|
192
|
+
},
|
|
193
|
+
list: {
|
|
194
|
+
actions: [...entityMasterCrudActions()],
|
|
195
|
+
views: [
|
|
196
|
+
createQueryView('tenant', '@dashboard-management:dashboards.entities.dashboard.views.tenant', true, {
|
|
197
|
+
sorts: [{ name: 'title', dir: 'asc' }],
|
|
198
|
+
conditions: [{ name: 'scope', operator: { type: 'equal' }, value: 'T' }],
|
|
199
|
+
}),
|
|
200
|
+
],
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
};
|
|
205
|
+
return entityDef;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export { dashboardFactory };
|
|
209
|
+
//# sourceMappingURL=acorex-platform-module-dashboard-management-client-contracts-entity-catalog-dashboard.entity-C1ju-BQM.mjs.map
|