@acorex-platform/module-platform-management-client 0.0.33 → 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-platform-management-client-acorex-platform-module-platform-management-client-Dhg_zr0Y.mjs → acorex-platform-module-platform-management-client-acorex-platform-module-platform-management-client-BGVhn6wv.mjs} +134 -10
- package/fesm2022/acorex-platform-module-platform-management-client-acorex-platform-module-platform-management-client-BGVhn6wv.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-command-definition.mjs +44 -31
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-command-definition.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-entity-access-policy.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-entity-definition.mjs +67 -10
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-entity-definition.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-plugin-definition.mjs +33 -27
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-plugin-definition.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-query-definition.mjs +86 -125
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-query-definition.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-token.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-widget.mjs +47 -38
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-widget.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-platform-management-client-contracts-entity-catalog-acorex-platform-module-platform-management-client-contracts-entity-catalog-CLAnbKkE.mjs → acorex-platform-module-platform-management-client-contracts-entity-catalog-acorex-platform-module-platform-management-client-contracts-entity-catalog-BOwC5Ns9.mjs} +8 -8
- package/fesm2022/{acorex-platform-module-platform-management-client-contracts-entity-catalog-acorex-platform-module-platform-management-client-contracts-entity-catalog-CLAnbKkE.mjs.map → acorex-platform-module-platform-management-client-contracts-entity-catalog-acorex-platform-module-platform-management-client-contracts-entity-catalog-BOwC5Ns9.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-platform-management-client-contracts-entity-catalog-command-definition.entity-DQc-qLgx.mjs → acorex-platform-module-platform-management-client-contracts-entity-catalog-command-definition.entity-CdvQlwAk.mjs} +47 -34
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-command-definition.entity-CdvQlwAk.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-access-policy.entity-CcrQikvj.mjs → acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-access-policy.entity-Dye4aSKE.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-access-policy.entity-CcrQikvj.mjs.map → acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-access-policy.entity-Dye4aSKE.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-definition.entity-D0g3R9eS.mjs → acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-definition.entity-CcJ58vfr.mjs} +70 -13
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-definition.entity-CcJ58vfr.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-platform-management-client-contracts-entity-catalog-plugin-definition.entity-BhyI54NP.mjs → acorex-platform-module-platform-management-client-contracts-entity-catalog-plugin-definition.entity-CwU5hMjI.mjs} +36 -30
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-plugin-definition.entity-CwU5hMjI.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-platform-management-client-contracts-entity-catalog-query-definition.entity-EeVwRw6n.mjs → acorex-platform-module-platform-management-client-contracts-entity-catalog-query-definition.entity-DGK684Q1.mjs} +89 -128
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-query-definition.entity-DGK684Q1.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-platform-management-client-contracts-entity-catalog-token.entity-BpDzXGQA.mjs → acorex-platform-module-platform-management-client-contracts-entity-catalog-token.entity-DI_k6-ha.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-platform-management-client-contracts-entity-catalog-token.entity-BpDzXGQA.mjs.map → acorex-platform-module-platform-management-client-contracts-entity-catalog-token.entity-DI_k6-ha.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-platform-management-client-contracts-entity-catalog-widget.entity-RMzK4w8S.mjs → acorex-platform-module-platform-management-client-contracts-entity-catalog-widget.entity-C18msniH.mjs} +50 -41
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-widget.entity-C18msniH.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-platform-management-client-create-user-query.command-BZMFLEua.mjs → acorex-platform-module-platform-management-client-create-user-query.command-9Ku7C1BC.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-platform-management-client-create-user-query.command-BZMFLEua.mjs.map → acorex-platform-module-platform-management-client-create-user-query.command-9Ku7C1BC.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-create-user-query.types-DdygAori.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-customize-menu.command-2319iHsD.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-data-list-pick-entity-item.command-CJVpqPmY.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-entity-master-actions-for-ai.util-DmGyoy9o.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-execute-token.command-B_xwW9lb.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-list-catalog-scopes.query-ByhDTWE6.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-list-editor-widgets.query-DITPMmbw.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-list-platform-navigation-for-ai.query-2oHMITw-.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-list-registered-entities.query-DjStd3a8.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-list-registered-queries.query-C-IfkTel.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-local-entities.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-platform-management-client-menu-list.component-DiKmJva5.mjs → acorex-platform-module-platform-management-client-menu-list.component-uF5w1c7t.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-platform-management-client-menu-list.component-DiKmJva5.mjs.map → acorex-platform-module-platform-management-client-menu-list.component-uF5w1c7t.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-platform-console-charts.queries-CQ34R13-.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-platform-console-data.util-BIkULtKk.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client-platform-console-kpi.queries-BkPdhVq_.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-platform-management-client-rest-api-generator-widget-column.component-BR1FlwWM.mjs → acorex-platform-module-platform-management-client-rest-api-generator-widget-column.component-B0g6dweQ.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-platform-management-client-rest-api-generator-widget-column.component-BR1FlwWM.mjs.map → acorex-platform-module-platform-management-client-rest-api-generator-widget-column.component-B0g6dweQ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-platform-management-client-rest-api-generator-widget-edit.component-DwPKSgdP.mjs → acorex-platform-module-platform-management-client-rest-api-generator-widget-edit.component-A0v5MWRU.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-platform-management-client-rest-api-generator-widget-edit.component-DwPKSgdP.mjs.map → acorex-platform-module-platform-management-client-rest-api-generator-widget-edit.component-A0v5MWRU.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-platform-management-client-rest-api-generator-widget-view.component-DPhBXqGo.mjs → acorex-platform-module-platform-management-client-rest-api-generator-widget-view.component-RR5zcsnI.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-platform-management-client-rest-api-generator-widget-view.component-DPhBXqGo.mjs.map → acorex-platform-module-platform-management-client-rest-api-generator-widget-view.component-RR5zcsnI.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client.mjs +1 -1
- package/package.json +3 -3
- package/fesm2022/acorex-platform-module-platform-management-client-acorex-platform-module-platform-management-client-Dhg_zr0Y.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-command-definition.entity-DQc-qLgx.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-definition.entity-D0g3R9eS.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-plugin-definition.entity-BhyI54NP.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-query-definition.entity-EeVwRw6n.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-widget.entity-RMzK4w8S.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
-
import { entityMasterRecordActions, createAllQueryView } from '@acorex-platform/framework-shared/entity';
|
|
2
|
+
import { entityMasterRecordActions, entityMasterViewAction, createAllQueryView } from '@acorex-platform/framework-shared/entity';
|
|
3
3
|
|
|
4
4
|
const config = {
|
|
5
5
|
i18n: 'platform-management',
|
|
@@ -89,9 +89,22 @@ const RootConfig = {
|
|
|
89
89
|
},
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
const LIST_FILTER_SORT = {
|
|
93
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
94
|
+
sort: { enabled: true },
|
|
95
|
+
};
|
|
96
|
+
const ADVANCE_FILTER = {
|
|
97
|
+
filter: { advance: { enabled: true } },
|
|
98
|
+
};
|
|
99
|
+
function commandFieldTitle(i18n, field) {
|
|
100
|
+
return `@${i18n}:command-definitions.entities.command-definition.fields.${field}.title`;
|
|
101
|
+
}
|
|
102
|
+
function commandOptionText(i18n, field, option) {
|
|
103
|
+
return `@${i18n}:command-definitions.entities.command-definition.fields.${field}.options.${option}`;
|
|
104
|
+
}
|
|
105
|
+
function buildCommandDefinitionEntity() {
|
|
93
106
|
const i18n = RootConfig.config.i18n;
|
|
94
|
-
|
|
107
|
+
return {
|
|
95
108
|
module: RootConfig.module.name,
|
|
96
109
|
name: RootConfig.entities.commandDefinition.name,
|
|
97
110
|
title: RootConfig.entities.commandDefinition.title,
|
|
@@ -125,10 +138,7 @@ async function commandDefinitionEntityFactory() {
|
|
|
125
138
|
readonly: true,
|
|
126
139
|
interface: { type: AXPWidgetsCatalog.text },
|
|
127
140
|
},
|
|
128
|
-
options:
|
|
129
|
-
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
130
|
-
sort: { enabled: true },
|
|
131
|
-
},
|
|
141
|
+
options: LIST_FILTER_SORT,
|
|
132
142
|
},
|
|
133
143
|
{
|
|
134
144
|
name: 'catalogTitle',
|
|
@@ -139,10 +149,7 @@ async function commandDefinitionEntityFactory() {
|
|
|
139
149
|
readonly: true,
|
|
140
150
|
interface: { type: AXPWidgetsCatalog.text },
|
|
141
151
|
},
|
|
142
|
-
options:
|
|
143
|
-
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
144
|
-
sort: { enabled: true },
|
|
145
|
-
},
|
|
152
|
+
options: LIST_FILTER_SORT,
|
|
146
153
|
},
|
|
147
154
|
{
|
|
148
155
|
name: 'description',
|
|
@@ -153,11 +160,11 @@ async function commandDefinitionEntityFactory() {
|
|
|
153
160
|
readonly: true,
|
|
154
161
|
interface: { type: AXPWidgetsCatalog.largeText, options: { rows: 3 } },
|
|
155
162
|
},
|
|
156
|
-
options:
|
|
163
|
+
options: ADVANCE_FILTER,
|
|
157
164
|
},
|
|
158
165
|
{
|
|
159
166
|
name: 'executionMode',
|
|
160
|
-
title:
|
|
167
|
+
title: commandFieldTitle(i18n, 'execution-mode'),
|
|
161
168
|
groupId: 'basic-info',
|
|
162
169
|
schema: {
|
|
163
170
|
dataType: 'string',
|
|
@@ -168,68 +175,72 @@ async function commandDefinitionEntityFactory() {
|
|
|
168
175
|
valueField: 'value',
|
|
169
176
|
textField: 'text',
|
|
170
177
|
dataSource: [
|
|
171
|
-
{ value: 'frontend', text: '
|
|
172
|
-
{ value: 'backend', text: '
|
|
173
|
-
{ value: 'both', text: '
|
|
178
|
+
{ value: 'frontend', text: commandOptionText(i18n, 'execution-mode', 'frontend') },
|
|
179
|
+
{ value: 'backend', text: commandOptionText(i18n, 'execution-mode', 'backend') },
|
|
180
|
+
{ value: 'both', text: commandOptionText(i18n, 'execution-mode', 'both') },
|
|
174
181
|
],
|
|
175
182
|
},
|
|
176
183
|
},
|
|
177
184
|
},
|
|
178
|
-
options:
|
|
185
|
+
options: LIST_FILTER_SORT,
|
|
179
186
|
},
|
|
180
187
|
{
|
|
181
188
|
name: 'capabilities',
|
|
182
|
-
title:
|
|
189
|
+
title: commandFieldTitle(i18n, 'capabilities'),
|
|
183
190
|
groupId: 'basic-info',
|
|
184
191
|
schema: {
|
|
185
192
|
dataType: 'array',
|
|
186
193
|
readonly: true,
|
|
187
|
-
interface: { type: AXPWidgetsList.
|
|
194
|
+
interface: { type: AXPWidgetsList.Editors.TagEditor },
|
|
188
195
|
},
|
|
189
|
-
options:
|
|
196
|
+
options: ADVANCE_FILTER,
|
|
190
197
|
},
|
|
191
198
|
{
|
|
192
199
|
name: 'inputOptionDefinitions',
|
|
193
|
-
title:
|
|
200
|
+
title: commandFieldTitle(i18n, 'inputs'),
|
|
194
201
|
groupId: 'schema',
|
|
195
202
|
schema: {
|
|
196
203
|
dataType: 'array',
|
|
197
204
|
readonly: true,
|
|
198
|
-
interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true } },
|
|
205
|
+
interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true, height: 'h-96' } },
|
|
199
206
|
},
|
|
200
207
|
},
|
|
201
208
|
{
|
|
202
209
|
name: 'outputOptionDefinitions',
|
|
203
|
-
title:
|
|
210
|
+
title: commandFieldTitle(i18n, 'outputs'),
|
|
204
211
|
groupId: 'schema',
|
|
205
212
|
schema: {
|
|
206
213
|
dataType: 'array',
|
|
207
214
|
readonly: true,
|
|
208
|
-
interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true } },
|
|
215
|
+
interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true, height: 'h-96' } },
|
|
209
216
|
},
|
|
210
217
|
},
|
|
211
218
|
{
|
|
212
219
|
name: 'outcomesDefinitionJson',
|
|
213
|
-
title:
|
|
220
|
+
title: commandFieldTitle(i18n, 'outcomes'),
|
|
214
221
|
groupId: 'schema',
|
|
215
222
|
schema: {
|
|
216
223
|
dataType: 'string',
|
|
217
224
|
readonly: true,
|
|
218
|
-
interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true } },
|
|
225
|
+
interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true, height: 'h-96' } },
|
|
219
226
|
},
|
|
220
227
|
},
|
|
221
228
|
],
|
|
222
229
|
columns: [
|
|
223
230
|
{ name: 'catalogTitle', title: '@general:terms.common.title', showAs: { type: AXPWidgetsCatalog.text } },
|
|
224
231
|
{ name: 'name', title: '@general:terms.common.name', showAs: { type: AXPWidgetsCatalog.text } },
|
|
225
|
-
{ name: 'executionMode', title:
|
|
226
|
-
{
|
|
232
|
+
{ name: 'executionMode', title: commandFieldTitle(i18n, 'execution-mode') },
|
|
233
|
+
{
|
|
234
|
+
name: 'capabilities',
|
|
235
|
+
title: commandFieldTitle(i18n, 'capabilities'),
|
|
236
|
+
showAs: { type: AXPWidgetsList.Editors.TagEditor },
|
|
237
|
+
},
|
|
227
238
|
],
|
|
228
239
|
interfaces: {
|
|
229
240
|
master: {
|
|
230
241
|
list: {
|
|
231
242
|
views: [createAllQueryView({ sorts: [{ name: 'catalogTitle', dir: 'asc' }] })],
|
|
232
|
-
actions: [],
|
|
243
|
+
actions: [entityMasterViewAction()],
|
|
233
244
|
},
|
|
234
245
|
single: {
|
|
235
246
|
title: '{{ catalogTitle || name }}',
|
|
@@ -237,9 +248,9 @@ async function commandDefinitionEntityFactory() {
|
|
|
237
248
|
properties: [
|
|
238
249
|
{ name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
239
250
|
{ name: 'catalogTitle', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
251
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
240
252
|
{ name: 'executionMode', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
241
253
|
{ name: 'capabilities', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
242
|
-
{ name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
243
254
|
{ name: 'inputOptionDefinitions', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
244
255
|
{ name: 'outputOptionDefinitions', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
245
256
|
{ name: 'outcomesDefinitionJson', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
@@ -249,7 +260,9 @@ async function commandDefinitionEntityFactory() {
|
|
|
249
260
|
},
|
|
250
261
|
},
|
|
251
262
|
};
|
|
252
|
-
|
|
263
|
+
}
|
|
264
|
+
async function commandDefinitionEntityFactory() {
|
|
265
|
+
return buildCommandDefinitionEntity();
|
|
253
266
|
}
|
|
254
267
|
|
|
255
268
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-platform-management-client-contracts-entities-command-definition.mjs","sources":["../../../../libs/modules/platform-management/contracts/src/root-config.ts","../../../../libs/modules/platform-management/contracts/src/entities/command-definition/command-definition.entity.ts","../../../../libs/modules/platform-management/contracts/src/acorex-platform-module-platform-management-client-contracts-entities-command-definition.ts"],"sourcesContent":["const config = {\n i18n: 'platform-management',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'platform-management',\n name: 'PlatformManagement',\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-cogs',\n },\n entities: {\n localizationManagement: {\n name: 'Localization Management',\n title: `@${config.i18n}:localization-management.entities.localization-management.title`,\n icon: 'fa-light fa-globe',\n },\n token: {\n name: 'Tokens',\n title: `@${config.i18n}:tokens.entities.token.title`,\n icon: 'fa-light fa-object-exclude',\n },\n commandDefinition: {\n name: 'CommandDefinition',\n title: `@${config.i18n}:command-definitions.entities.command-definition.title`,\n titlePlural: `@${config.i18n}:command-definitions.entities.command-definition.title-plural`,\n icon: 'fa-light fa-terminal',\n },\n queryDefinition: {\n name: 'QueryDefinition',\n title: `@${config.i18n}:query-definitions.entities.query-definition.title`,\n titlePlural: `@${config.i18n}:query-definitions.entities.query-definition.title-plural`,\n icon: 'fa-light fa-database',\n },\n pluginDefinition: {\n name: 'PluginDefinition',\n title: `@${config.i18n}:plugin-definitions.entities.plugin-definition.title`,\n titlePlural: `@${config.i18n}:plugin-definitions.entities.plugin-definition.title-plural`,\n icon: 'fa-light fa-puzzle-piece',\n },\n widget: {\n name: 'Widget',\n title: `@${config.i18n}:widgets.entities.widget.title`,\n titlePlural: `@${config.i18n}:widgets.entities.widget.title-plural`,\n icon: 'fa-light fa-cubes',\n },\n entityDefinition: {\n name: 'EntityDefinition',\n title: `@${config.i18n}:entity-definitions.entities.entity-definition.title`,\n titlePlural: `@${config.i18n}:entity-definitions.entities.entity-definition.title-plural`,\n icon: 'fa-light fa-diagram-project',\n },\n entityAccessPolicy: {\n name: 'EntityAccessPolicy',\n title: `@${config.i18n}:entity-access-policies.entities.entity-access-policy.title`,\n titlePlural: `@${config.i18n}:entity-access-policies.entities.entity-access-policy.title-plural`,\n icon: 'fa-light fa-shield-keyhole',\n },\n },\n queries: {\n listRegisteredQueries: 'PlatformManagement:ListRegisteredQueries',\n dashboard: {\n tenantsKpi: 'PlatformManagement:Dashboard:TenantsKpi',\n usersKpi: 'PlatformManagement:Dashboard:UsersKpi',\n applicationsKpi: 'PlatformManagement:Dashboard:ApplicationsKpi',\n errorsKpi: 'PlatformManagement:Dashboard:ErrorsKpi',\n onlineUsersKpi: 'PlatformManagement:Dashboard:OnlineUsersKpi',\n todayLoggedInUsersKpi: 'PlatformManagement:Dashboard:TodayLoggedInUsersKpi',\n todayOnlineByHourLine: 'PlatformManagement:Dashboard:TodayOnlineByHourLine',\n tenantsByStatusBar: 'PlatformManagement:Dashboard:TenantsByStatusBar',\n applicationsByEditionDonut: 'PlatformManagement:Dashboard:ApplicationsByEditionDonut',\n errorsTrendLine: 'PlatformManagement:Dashboard:ErrorsTrendLine',\n jobsByStatusBar: 'PlatformManagement:Dashboard:JobsByStatusBar',\n },\n reports: {\n userActivityTimeline: 'PlatformManagement:Reports:UserActivityTimeline',\n userPresenceSummary: 'PlatformManagement:Reports:UserPresenceSummary',\n userPresenceDaily: 'PlatformManagement:Reports:UserPresenceDaily',\n userPresenceDailyChart: 'PlatformManagement:Reports:UserPresenceDailyChart',\n userPresenceTimeline: 'PlatformManagement:Reports:UserPresenceTimeline',\n userPresenceAwayBusy: 'PlatformManagement:Reports:UserPresenceAwayBusy',\n tenantPresenceSnapshot: 'PlatformManagement:Reports:TenantPresenceSnapshot',\n tenantPresenceWhoWasAround: 'PlatformManagement:Reports:TenantPresenceWhoWasAround',\n tenantPresenceDailyTrend: 'PlatformManagement:Reports:TenantPresenceDailyTrend',\n },\n },\n} as const;\n\n","import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function commandDefinitionEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.commandDefinition.name,\n title: RootConfig.entities.commandDefinition.title,\n icon: RootConfig.entities.commandDefinition.icon,\n formats: {\n individual: RootConfig.entities.commandDefinition.title,\n plural: RootConfig.entities.commandDefinition.titlePlural,\n searchResult: {\n title: '{{ catalogTitle || name }}',\n description: '{{ description }}',\n },\n },\n plugins: [],\n groups: [\n {\n id: 'basic-info',\n title: `@${i18n}:command-definitions.entities.command-definition.groups.basic-info`,\n },\n {\n id: 'schema',\n title: `@${i18n}:command-definitions.entities.command-definition.groups.schema`,\n },\n ],\n properties: [\n {\n name: 'name',\n title: '@general:terms.common.name',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.text },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'catalogTitle',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.text },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.largeText, options: { rows: 3 } },\n },\n options: { filter: { advance: { enabled: true } } },\n },\n {\n name: 'executionMode',\n title: `@${i18n}:command-definitions.entities.command-definition.fields.execution-mode.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: {\n type: AXPWidgetsCatalog.select,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n { value: 'frontend', text: 'Frontend' },\n { value: 'backend', text: 'Backend' },\n { value: 'both', text: 'Both' },\n ],\n },\n },\n },\n options: { filter: { inline: { enabled: true } } },\n },\n {\n name: 'capabilities',\n title: `@${i18n}:command-definitions.entities.command-definition.fields.capabilities.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'array',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true } },\n },\n options: { filter: { advance: { enabled: true } } },\n },\n {\n name: 'inputOptionDefinitions',\n title: `@${i18n}:command-definitions.entities.command-definition.fields.inputs.title`,\n groupId: 'schema',\n schema: {\n dataType: 'array',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true } },\n },\n },\n {\n name: 'outputOptionDefinitions',\n title: `@${i18n}:command-definitions.entities.command-definition.fields.outputs.title`,\n groupId: 'schema',\n schema: {\n dataType: 'array',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true } },\n },\n },\n {\n name: 'outcomesDefinitionJson',\n title: `@${i18n}:command-definitions.entities.command-definition.fields.outcomes.title`,\n groupId: 'schema',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true } },\n },\n },\n ],\n columns: [\n { name: 'catalogTitle', title: '@general:terms.common.title', showAs: { type: AXPWidgetsCatalog.text } },\n { name: 'name', title: '@general:terms.common.name', showAs: { type: AXPWidgetsCatalog.text } },\n { name: 'executionMode', title: `@${i18n}:command-definitions.entities.command-definition.fields.execution-mode.title` },\n { name: 'capabilities', title: `@${i18n}:command-definitions.entities.command-definition.fields.capabilities.title` },\n ],\n interfaces: {\n master: {\n list: {\n views: [createAllQueryView({ sorts: [{ name: 'catalogTitle', dir: 'asc' }] })],\n actions: [],\n },\n single: {\n title: '{{ catalogTitle || name }}',\n sections: [{ id: 'basic-info' }, { id: 'schema' }],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'catalogTitle', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'executionMode', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'capabilities', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'inputOptionDefinitions', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'outputOptionDefinitions', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'outcomesDefinitionJson', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n },\n },\n };\n\n return entityDef;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.command-definition';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,qBAAqB;CAC5B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,qBAAqB;AAC5B,QAAA,IAAI,EAAE,oBAAoB;AAC1B,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,kBAAkB;AACzB,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,sBAAsB,EAAE;AACtB,YAAA,IAAI,EAAE,yBAAyB;AAC/B,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,+DAAA,CAAiE;AACvF,YAAA,IAAI,EAAE,mBAAmB;AAC1B,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAE,QAAQ;AACd,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,4BAAA,CAA8B;AACpD,YAAA,IAAI,EAAE,4BAA4B;AACnC,SAAA;AACD,QAAA,iBAAiB,EAAE;AACjB,YAAA,IAAI,EAAE,mBAAmB;AACzB,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IA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AAE,cAAc,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AACvE,wBAAA,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACvE,wBAAA,EAAE,IAAI,EAAE,wBAAwB,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AAClF,wBAAA,EAAE,IAAI,EAAE,yBAAyB,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACnF,wBAAA,EAAE,IAAI,EAAE,wBAAwB,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACnF,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;AC3KA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-platform-management-client-contracts-entities-command-definition.mjs","sources":["../../../../libs/modules/platform-management/contracts/src/root-config.ts","../../../../libs/modules/platform-management/contracts/src/entities/command-definition/command-definition.entity.ts","../../../../libs/modules/platform-management/contracts/src/acorex-platform-module-platform-management-client-contracts-entities-command-definition.ts"],"sourcesContent":["const config = {\n i18n: 'platform-management',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'platform-management',\n name: 'PlatformManagement',\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-cogs',\n },\n entities: {\n localizationManagement: {\n name: 'Localization Management',\n title: `@${config.i18n}:localization-management.entities.localization-management.title`,\n icon: 'fa-light fa-globe',\n },\n token: {\n name: 'Tokens',\n title: `@${config.i18n}:tokens.entities.token.title`,\n icon: 'fa-light fa-object-exclude',\n },\n commandDefinition: {\n name: 'CommandDefinition',\n title: `@${config.i18n}:command-definitions.entities.command-definition.title`,\n titlePlural: `@${config.i18n}:command-definitions.entities.command-definition.title-plural`,\n icon: 'fa-light fa-terminal',\n },\n queryDefinition: {\n name: 'QueryDefinition',\n title: `@${config.i18n}:query-definitions.entities.query-definition.title`,\n titlePlural: `@${config.i18n}:query-definitions.entities.query-definition.title-plural`,\n icon: 'fa-light fa-database',\n },\n pluginDefinition: {\n name: 'PluginDefinition',\n title: `@${config.i18n}:plugin-definitions.entities.plugin-definition.title`,\n titlePlural: `@${config.i18n}:plugin-definitions.entities.plugin-definition.title-plural`,\n icon: 'fa-light fa-puzzle-piece',\n },\n widget: {\n name: 'Widget',\n title: `@${config.i18n}:widgets.entities.widget.title`,\n titlePlural: `@${config.i18n}:widgets.entities.widget.title-plural`,\n icon: 'fa-light fa-cubes',\n },\n entityDefinition: {\n name: 'EntityDefinition',\n title: `@${config.i18n}:entity-definitions.entities.entity-definition.title`,\n titlePlural: `@${config.i18n}:entity-definitions.entities.entity-definition.title-plural`,\n icon: 'fa-light fa-diagram-project',\n },\n entityAccessPolicy: {\n name: 'EntityAccessPolicy',\n title: `@${config.i18n}:entity-access-policies.entities.entity-access-policy.title`,\n titlePlural: `@${config.i18n}:entity-access-policies.entities.entity-access-policy.title-plural`,\n icon: 'fa-light fa-shield-keyhole',\n },\n },\n queries: {\n listRegisteredQueries: 'PlatformManagement:ListRegisteredQueries',\n dashboard: {\n tenantsKpi: 'PlatformManagement:Dashboard:TenantsKpi',\n usersKpi: 'PlatformManagement:Dashboard:UsersKpi',\n applicationsKpi: 'PlatformManagement:Dashboard:ApplicationsKpi',\n errorsKpi: 'PlatformManagement:Dashboard:ErrorsKpi',\n onlineUsersKpi: 'PlatformManagement:Dashboard:OnlineUsersKpi',\n todayLoggedInUsersKpi: 'PlatformManagement:Dashboard:TodayLoggedInUsersKpi',\n todayOnlineByHourLine: 'PlatformManagement:Dashboard:TodayOnlineByHourLine',\n tenantsByStatusBar: 'PlatformManagement:Dashboard:TenantsByStatusBar',\n applicationsByEditionDonut: 'PlatformManagement:Dashboard:ApplicationsByEditionDonut',\n errorsTrendLine: 'PlatformManagement:Dashboard:ErrorsTrendLine',\n jobsByStatusBar: 'PlatformManagement:Dashboard:JobsByStatusBar',\n },\n reports: {\n userActivityTimeline: 'PlatformManagement:Reports:UserActivityTimeline',\n userPresenceSummary: 'PlatformManagement:Reports:UserPresenceSummary',\n userPresenceDaily: 'PlatformManagement:Reports:UserPresenceDaily',\n userPresenceDailyChart: 'PlatformManagement:Reports:UserPresenceDailyChart',\n userPresenceTimeline: 'PlatformManagement:Reports:UserPresenceTimeline',\n userPresenceAwayBusy: 'PlatformManagement:Reports:UserPresenceAwayBusy',\n tenantPresenceSnapshot: 'PlatformManagement:Reports:TenantPresenceSnapshot',\n tenantPresenceWhoWasAround: 'PlatformManagement:Reports:TenantPresenceWhoWasAround',\n tenantPresenceDailyTrend: 'PlatformManagement:Reports:TenantPresenceDailyTrend',\n },\n },\n} as const;\n\n","import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterRecordActions,\n entityMasterViewAction,\n} from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nconst LIST_FILTER_SORT = {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n} as const;\n\nconst ADVANCE_FILTER = {\n filter: { advance: { enabled: true } },\n} as const;\n\nfunction commandFieldTitle(i18n: string, field: string): string {\n return `@${i18n}:command-definitions.entities.command-definition.fields.${field}.title`;\n}\n\nfunction commandOptionText(i18n: string, field: string, option: string): string {\n return `@${i18n}:command-definitions.entities.command-definition.fields.${field}.options.${option}`;\n}\n\nexport function buildCommandDefinitionEntity(): AXPEntity {\n const i18n = RootConfig.config.i18n;\n\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.commandDefinition.name,\n title: RootConfig.entities.commandDefinition.title,\n icon: RootConfig.entities.commandDefinition.icon,\n formats: {\n individual: RootConfig.entities.commandDefinition.title,\n plural: RootConfig.entities.commandDefinition.titlePlural,\n searchResult: {\n title: '{{ catalogTitle || name }}',\n description: '{{ description }}',\n },\n },\n plugins: [],\n groups: [\n {\n id: 'basic-info',\n title: `@${i18n}:command-definitions.entities.command-definition.groups.basic-info`,\n },\n {\n id: 'schema',\n title: `@${i18n}:command-definitions.entities.command-definition.groups.schema`,\n },\n ],\n properties: [\n {\n name: 'name',\n title: '@general:terms.common.name',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.text },\n },\n options: LIST_FILTER_SORT,\n },\n {\n name: 'catalogTitle',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.text },\n },\n options: LIST_FILTER_SORT,\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.largeText, options: { rows: 3 } },\n },\n options: ADVANCE_FILTER,\n },\n {\n name: 'executionMode',\n title: commandFieldTitle(i18n, 'execution-mode'),\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: {\n type: AXPWidgetsCatalog.select,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n { value: 'frontend', text: commandOptionText(i18n, 'execution-mode', 'frontend') },\n { value: 'backend', text: commandOptionText(i18n, 'execution-mode', 'backend') },\n { value: 'both', text: commandOptionText(i18n, 'execution-mode', 'both') },\n ],\n },\n },\n },\n options: LIST_FILTER_SORT,\n },\n {\n name: 'capabilities',\n title: commandFieldTitle(i18n, 'capabilities'),\n groupId: 'basic-info',\n schema: {\n dataType: 'array',\n readonly: true,\n interface: { type: AXPWidgetsList.Editors.TagEditor },\n },\n options: ADVANCE_FILTER,\n },\n {\n name: 'inputOptionDefinitions',\n title: commandFieldTitle(i18n, 'inputs'),\n groupId: 'schema',\n schema: {\n dataType: 'array',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true, height: 'h-96' } },\n },\n },\n {\n name: 'outputOptionDefinitions',\n title: commandFieldTitle(i18n, 'outputs'),\n groupId: 'schema',\n schema: {\n dataType: 'array',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true, height: 'h-96' } },\n },\n },\n {\n name: 'outcomesDefinitionJson',\n title: commandFieldTitle(i18n, 'outcomes'),\n groupId: 'schema',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true, height: 'h-96' } },\n },\n },\n ],\n columns: [\n { name: 'catalogTitle', title: '@general:terms.common.title', showAs: { type: AXPWidgetsCatalog.text } },\n { name: 'name', title: '@general:terms.common.name', showAs: { type: AXPWidgetsCatalog.text } },\n { name: 'executionMode', title: commandFieldTitle(i18n, 'execution-mode') },\n {\n name: 'capabilities',\n title: commandFieldTitle(i18n, 'capabilities'),\n showAs: { type: AXPWidgetsList.Editors.TagEditor },\n },\n ],\n interfaces: {\n master: {\n list: {\n views: [createAllQueryView({ sorts: [{ name: 'catalogTitle', dir: 'asc' }] })],\n actions: [entityMasterViewAction()],\n },\n single: {\n title: '{{ catalogTitle || name }}',\n sections: [{ id: 'basic-info' }, { id: 'schema' }],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'catalogTitle', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'executionMode', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'capabilities', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'inputOptionDefinitions', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'outputOptionDefinitions', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'outcomesDefinitionJson', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n },\n },\n };\n\n}\n\nexport async function commandDefinitionEntityFactory(): Promise<AXPEntity | null> {\n return buildCommandDefinitionEntity();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.command-definition';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,qBAAqB;CAC5B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,qBAAqB;AAC5B,QAAA,IAAI,EAAE,oBAAoB;AAC1B,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,kBAAkB;AACzB,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,sBAAsB,EAAE;AACtB,YAAA,IAAI,EAAE,yBAAyB;AAC/B,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,+DAAA,CAAiE;AACvF,YAAA,IAAI,EAAE,mBAAmB;AAC1B,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAE,QAAQ;AACd,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,4BAAA,CAA8B;AACpD,YAAA,IAAI,EAAE,4BAA4B;AACnC,SAAA;AACD,QAAA,iBAAiB,EAAE;AACjB,YAAA,IAAI,EAAE,mBAAmB;AACzB,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,sDAAA,CAAwD;AAC9E,YAAA,WAAW,EAAE,CA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O,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AACvE,wBAAA,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACvE,wBAAA,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AACxE,wBAAA,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AACvE,wBAAA,EAAE,IAAI,EAAE,wBAAwB,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AAClF,wBAAA,EAAE,IAAI,EAAE,yBAAyB,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACnF,wBAAA,EAAE,IAAI,EAAE,wBAAwB,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACnF,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAEH;AAEO,eAAe,8BAA8B,GAAA;IAClD,OAAO,4BAA4B,EAAE;AACvC;;AC9LA;;AAEG;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-platform-management-client-contracts-entities-entity-access-policy.mjs","sources":["../../../../libs/modules/platform-management/contracts/src/root-config.ts","../../../../libs/modules/platform-management/contracts/src/entities/entity-access-policy/entity-access-policy.entity.ts","../../../../libs/modules/platform-management/contracts/src/acorex-platform-module-platform-management-client-contracts-entities-entity-access-policy.ts"],"sourcesContent":["const config = {\n i18n: 'platform-management',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'platform-management',\n name: 'PlatformManagement',\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-cogs',\n },\n entities: {\n localizationManagement: {\n name: 'Localization Management',\n title: `@${config.i18n}:localization-management.entities.localization-management.title`,\n icon: 'fa-light fa-globe',\n },\n token: {\n name: 'Tokens',\n title: `@${config.i18n}:tokens.entities.token.title`,\n icon: 'fa-light fa-object-exclude',\n },\n commandDefinition: {\n name: 'CommandDefinition',\n title: `@${config.i18n}:command-definitions.entities.command-definition.title`,\n titlePlural: `@${config.i18n}:command-definitions.entities.command-definition.title-plural`,\n icon: 'fa-light fa-terminal',\n },\n queryDefinition: {\n name: 'QueryDefinition',\n title: `@${config.i18n}:query-definitions.entities.query-definition.title`,\n titlePlural: `@${config.i18n}:query-definitions.entities.query-definition.title-plural`,\n icon: 'fa-light fa-database',\n },\n pluginDefinition: {\n name: 'PluginDefinition',\n title: `@${config.i18n}:plugin-definitions.entities.plugin-definition.title`,\n titlePlural: `@${config.i18n}:plugin-definitions.entities.plugin-definition.title-plural`,\n icon: 'fa-light fa-puzzle-piece',\n },\n widget: {\n name: 'Widget',\n title: `@${config.i18n}:widgets.entities.widget.title`,\n titlePlural: `@${config.i18n}:widgets.entities.widget.title-plural`,\n icon: 'fa-light fa-cubes',\n },\n entityDefinition: {\n name: 'EntityDefinition',\n title: `@${config.i18n}:entity-definitions.entities.entity-definition.title`,\n titlePlural: `@${config.i18n}:entity-definitions.entities.entity-definition.title-plural`,\n icon: 'fa-light fa-diagram-project',\n },\n entityAccessPolicy: {\n name: 'EntityAccessPolicy',\n title: `@${config.i18n}:entity-access-policies.entities.entity-access-policy.title`,\n titlePlural: `@${config.i18n}:entity-access-policies.entities.entity-access-policy.title-plural`,\n icon: 'fa-light fa-shield-keyhole',\n },\n },\n queries: {\n listRegisteredQueries: 'PlatformManagement:ListRegisteredQueries',\n dashboard: {\n tenantsKpi: 'PlatformManagement:Dashboard:TenantsKpi',\n usersKpi: 'PlatformManagement:Dashboard:UsersKpi',\n applicationsKpi: 'PlatformManagement:Dashboard:ApplicationsKpi',\n errorsKpi: 'PlatformManagement:Dashboard:ErrorsKpi',\n onlineUsersKpi: 'PlatformManagement:Dashboard:OnlineUsersKpi',\n todayLoggedInUsersKpi: 'PlatformManagement:Dashboard:TodayLoggedInUsersKpi',\n todayOnlineByHourLine: 'PlatformManagement:Dashboard:TodayOnlineByHourLine',\n tenantsByStatusBar: 'PlatformManagement:Dashboard:TenantsByStatusBar',\n applicationsByEditionDonut: 'PlatformManagement:Dashboard:ApplicationsByEditionDonut',\n errorsTrendLine: 'PlatformManagement:Dashboard:ErrorsTrendLine',\n jobsByStatusBar: 'PlatformManagement:Dashboard:JobsByStatusBar',\n },\n reports: {\n userActivityTimeline: 'PlatformManagement:Reports:UserActivityTimeline',\n userPresenceSummary: 'PlatformManagement:Reports:UserPresenceSummary',\n userPresenceDaily: 'PlatformManagement:Reports:UserPresenceDaily',\n userPresenceDailyChart: 'PlatformManagement:Reports:UserPresenceDailyChart',\n userPresenceTimeline: 'PlatformManagement:Reports:UserPresenceTimeline',\n userPresenceAwayBusy: 'PlatformManagement:Reports:UserPresenceAwayBusy',\n tenantPresenceSnapshot: 'PlatformManagement:Reports:TenantPresenceSnapshot',\n tenantPresenceWhoWasAround: 'PlatformManagement:Reports:TenantPresenceWhoWasAround',\n tenantPresenceDailyTrend: 'PlatformManagement:Reports:TenantPresenceDailyTrend',\n },\n },\n} as const;\n\n","import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- EntityAccessPolicy entity factory ----\n\nexport async function entityAccessPolicyEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.entityAccessPolicy.name,\n title: RootConfig.entities.entityAccessPolicy.title,\n icon: RootConfig.entities.entityAccessPolicy.icon,\n formats: {\n individual: RootConfig.entities.entityAccessPolicy.title,\n plural: RootConfig.entities.entityAccessPolicy.titlePlural,\n searchResult: {\n title: '{{ entityName }}',\n description: '{{ description }}',\n },\n },\n plugins: [{ name: 'history' }],\n groups: [\n {\n id: 'basic-info',\n title: `@${i18n}:entity-access-policies.entities.entity-access-policy.groups.basic-info`,\n },\n ],\n properties: [\n {\n name: 'entityName',\n title: `@${i18n}:entity-access-policies.entities.entity-access-policy.fields.entity-name.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.text },\n },\n validations: [{ rule: 'required' }],\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'read',\n title: `@${i18n}:entity-access-policies.entities.entity-access-policy.fields.read.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.text },\n },\n validations: [{ rule: 'required' }],\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n },\n },\n {\n name: 'write',\n title: `@${i18n}:entity-access-policies.entities.entity-access-policy.fields.write.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.text },\n },\n validations: [{ rule: 'required' }],\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n },\n },\n {\n name: 'enabled',\n title: `@${i18n}:entity-access-policies.entities.entity-access-policy.fields.enabled.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'boolean',\n interface: { type: AXPWidgetsCatalog.toggle },\n },\n options: {\n filter: { inline: { enabled: true } },\n },\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.largeText, options: { rows: 3 } },\n },\n options: { filter: { advance: { enabled: true } } },\n },\n ],\n columns: [\n { name: 'entityName', options: { width: '22rem' } },\n { name: 'read', options: { width: '16rem' } },\n { name: 'write', options: { width: '16rem' } },\n { name: 'enabled', options: { width: '8rem' } },\n { name: 'description' },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'entityName' },\n { name: 'read' },\n { name: 'write' },\n { name: 'enabled' },\n { name: 'description' },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'entityName' },\n { name: 'read' },\n { name: 'write' },\n { name: 'enabled' },\n { name: 'description' },\n ],\n },\n single: {\n title: '{{entityName}}',\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'entityName' },\n { name: 'read' },\n { name: 'write' },\n { name: 'enabled' },\n { name: 'description' },\n ],\n },\n list: {\n views: [createAllQueryView()],\n actions: entityMasterRecordActions(),\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.entity-access-policy';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,qBAAqB;CAC5B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,qBAAqB;AAC5B,QAAA,IAAI,EAAE,oBAAoB;AAC1B,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,kBAAkB;AACzB,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,sBAAsB,EAAE;AACtB,YAAA,IAAI,EAAE,yBAAyB;AAC/B,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,+DAAA,CAAiE;AAC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AAE;wBACnB,EAAE,IAAI,EAAE,aAAa,EAAE;AACxB,qBAAA;AACF,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,KAAK,EAAE,CAAC,kBAAkB,EAAE,CAAC;oBAC7B,OAAO,EAAE,yBAAyB,EAAE;AACrC,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;ACpJA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-platform-management-client-contracts-entities-entity-access-policy.mjs","sources":["../../../../libs/modules/platform-management/contracts/src/root-config.ts","../../../../libs/modules/platform-management/contracts/src/entities/entity-access-policy/entity-access-policy.entity.ts","../../../../libs/modules/platform-management/contracts/src/acorex-platform-module-platform-management-client-contracts-entities-entity-access-policy.ts"],"sourcesContent":["const config = {\n i18n: 'platform-management',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'platform-management',\n name: 'PlatformManagement',\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-cogs',\n },\n entities: {\n localizationManagement: {\n name: 'Localization Management',\n title: `@${config.i18n}:localization-management.entities.localization-management.title`,\n icon: 'fa-light fa-globe',\n },\n token: {\n name: 'Tokens',\n title: `@${config.i18n}:tokens.entities.token.title`,\n icon: 'fa-light fa-object-exclude',\n },\n commandDefinition: {\n name: 'CommandDefinition',\n title: `@${config.i18n}:command-definitions.entities.command-definition.title`,\n titlePlural: `@${config.i18n}:command-definitions.entities.command-definition.title-plural`,\n icon: 'fa-light fa-terminal',\n },\n queryDefinition: {\n name: 'QueryDefinition',\n title: `@${config.i18n}:query-definitions.entities.query-definition.title`,\n titlePlural: `@${config.i18n}:query-definitions.entities.query-definition.title-plural`,\n icon: 'fa-light fa-database',\n },\n pluginDefinition: {\n name: 'PluginDefinition',\n title: `@${config.i18n}:plugin-definitions.entities.plugin-definition.title`,\n titlePlural: `@${config.i18n}:plugin-definitions.entities.plugin-definition.title-plural`,\n icon: 'fa-light fa-puzzle-piece',\n },\n widget: {\n name: 'Widget',\n title: `@${config.i18n}:widgets.entities.widget.title`,\n titlePlural: `@${config.i18n}:widgets.entities.widget.title-plural`,\n icon: 'fa-light fa-cubes',\n },\n entityDefinition: {\n name: 'EntityDefinition',\n title: `@${config.i18n}:entity-definitions.entities.entity-definition.title`,\n titlePlural: `@${config.i18n}:entity-definitions.entities.entity-definition.title-plural`,\n icon: 'fa-light fa-diagram-project',\n },\n entityAccessPolicy: {\n name: 'EntityAccessPolicy',\n title: `@${config.i18n}:entity-access-policies.entities.entity-access-policy.title`,\n titlePlural: `@${config.i18n}:entity-access-policies.entities.entity-access-policy.title-plural`,\n icon: 'fa-light fa-shield-keyhole',\n },\n },\n queries: {\n listRegisteredQueries: 'PlatformManagement:ListRegisteredQueries',\n dashboard: {\n tenantsKpi: 'PlatformManagement:Dashboard:TenantsKpi',\n usersKpi: 'PlatformManagement:Dashboard:UsersKpi',\n applicationsKpi: 'PlatformManagement:Dashboard:ApplicationsKpi',\n errorsKpi: 'PlatformManagement:Dashboard:ErrorsKpi',\n onlineUsersKpi: 'PlatformManagement:Dashboard:OnlineUsersKpi',\n todayLoggedInUsersKpi: 'PlatformManagement:Dashboard:TodayLoggedInUsersKpi',\n todayOnlineByHourLine: 'PlatformManagement:Dashboard:TodayOnlineByHourLine',\n tenantsByStatusBar: 'PlatformManagement:Dashboard:TenantsByStatusBar',\n applicationsByEditionDonut: 'PlatformManagement:Dashboard:ApplicationsByEditionDonut',\n errorsTrendLine: 'PlatformManagement:Dashboard:ErrorsTrendLine',\n jobsByStatusBar: 'PlatformManagement:Dashboard:JobsByStatusBar',\n },\n reports: {\n userActivityTimeline: 'PlatformManagement:Reports:UserActivityTimeline',\n userPresenceSummary: 'PlatformManagement:Reports:UserPresenceSummary',\n userPresenceDaily: 'PlatformManagement:Reports:UserPresenceDaily',\n userPresenceDailyChart: 'PlatformManagement:Reports:UserPresenceDailyChart',\n userPresenceTimeline: 'PlatformManagement:Reports:UserPresenceTimeline',\n userPresenceAwayBusy: 'PlatformManagement:Reports:UserPresenceAwayBusy',\n tenantPresenceSnapshot: 'PlatformManagement:Reports:TenantPresenceSnapshot',\n tenantPresenceWhoWasAround: 'PlatformManagement:Reports:TenantPresenceWhoWasAround',\n tenantPresenceDailyTrend: 'PlatformManagement:Reports:TenantPresenceDailyTrend',\n },\n },\n} as const;\n\n","import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- EntityAccessPolicy entity factory ----\n\nexport async function entityAccessPolicyEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.entityAccessPolicy.name,\n title: RootConfig.entities.entityAccessPolicy.title,\n icon: RootConfig.entities.entityAccessPolicy.icon,\n formats: {\n individual: RootConfig.entities.entityAccessPolicy.title,\n plural: RootConfig.entities.entityAccessPolicy.titlePlural,\n searchResult: {\n title: '{{ entityName }}',\n description: '{{ description }}',\n },\n },\n plugins: [{ name: 'history' }],\n groups: [\n {\n id: 'basic-info',\n title: `@${i18n}:entity-access-policies.entities.entity-access-policy.groups.basic-info`,\n },\n ],\n properties: [\n {\n name: 'entityName',\n title: `@${i18n}:entity-access-policies.entities.entity-access-policy.fields.entity-name.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.text },\n },\n validations: [{ rule: 'required' }],\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'read',\n title: `@${i18n}:entity-access-policies.entities.entity-access-policy.fields.read.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.text },\n },\n validations: [{ rule: 'required' }],\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n },\n },\n {\n name: 'write',\n title: `@${i18n}:entity-access-policies.entities.entity-access-policy.fields.write.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.text },\n },\n validations: [{ rule: 'required' }],\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n },\n },\n {\n name: 'enabled',\n title: `@${i18n}:entity-access-policies.entities.entity-access-policy.fields.enabled.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'boolean',\n interface: { type: AXPWidgetsCatalog.toggle },\n },\n options: {\n filter: { inline: { enabled: true } },\n },\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.largeText, options: { rows: 3 } },\n },\n options: { filter: { advance: { enabled: true } } },\n },\n ],\n columns: [\n { name: 'entityName', options: { width: '22rem' } },\n { name: 'read', options: { width: '16rem' } },\n { name: 'write', options: { width: '16rem' } },\n { name: 'enabled', options: { width: '8rem' } },\n { name: 'description' },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'entityName' },\n { name: 'read' },\n { name: 'write' },\n { name: 'enabled' },\n { name: 'description' },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'entityName' },\n { name: 'read' },\n { name: 'write' },\n { name: 'enabled' },\n { name: 'description' },\n ],\n },\n single: {\n title: '{{entityName}}',\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'entityName' },\n { name: 'read' },\n { name: 'write' },\n { name: 'enabled' },\n { name: 'description' },\n ],\n },\n list: {\n views: [createAllQueryView()],\n actions: entityMasterRecordActions(),\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.entity-access-policy';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,qBAAqB;CAC5B;AAEM,M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,OAAO,EAAE;wBACjB,EAAE,IAAI,EAAE,SAAS,EAAE;wBACnB,EAAE,IAAI,EAAE,aAAa,EAAE;AACxB,qBAAA;AACF,iBAAA;AACD,gBAAA,MAAM,EAAE;AACN,oBAAA,KAAK,EAAE,gBAAgB;AACvB,oBAAA,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC;AAChC,oBAAA,UAAU,EAAE;wBACV,EAAE,IAAI,EAAE,YAAY,EAAE;wBACtB,EAAE,IAAI,EAAE,MAAM,EAAE;wBAChB,EAAE,IAAI,EAAE,OAAO,EAAE;wBACjB,EAAE,IAAI,EAAE,SAAS,EAAE;wBACnB,EAAE,IAAI,EAAE,aAAa,EAAE;AACxB,qBAAA;AACF,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,KAAK,EAAE,CAAC,kBAAkB,EAAE,CAAC;oBAC7B,OAAO,EAAE,yBAAyB,EAAE;AACrC,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;ACpJA;;AAEG;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
-
import { entityMasterRecordActions, createAllQueryView } from '@acorex-platform/framework-shared/entity';
|
|
2
|
+
import { entityMasterRecordActions, entityMasterViewAction, createAllQueryView } from '@acorex-platform/framework-shared/entity';
|
|
3
3
|
|
|
4
4
|
const config = {
|
|
5
5
|
i18n: 'platform-management',
|
|
@@ -89,7 +89,7 @@ const RootConfig = {
|
|
|
89
89
|
},
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
function buildEntityDefinitionEntity() {
|
|
93
93
|
const i18n = RootConfig.config.i18n;
|
|
94
94
|
const entityDef = {
|
|
95
95
|
module: RootConfig.module.name,
|
|
@@ -101,7 +101,7 @@ async function entityDefinitionEntityFactory() {
|
|
|
101
101
|
plural: RootConfig.entities.entityDefinition.titlePlural,
|
|
102
102
|
searchResult: {
|
|
103
103
|
title: '{{ name }}',
|
|
104
|
-
description: '{{
|
|
104
|
+
description: '{{ content.module }}',
|
|
105
105
|
},
|
|
106
106
|
},
|
|
107
107
|
plugins: [],
|
|
@@ -119,6 +119,17 @@ async function entityDefinitionEntityFactory() {
|
|
|
119
119
|
{
|
|
120
120
|
name: 'id',
|
|
121
121
|
title: '@general:terms.common.id',
|
|
122
|
+
schema: {
|
|
123
|
+
dataType: 'uuid',
|
|
124
|
+
visible: false,
|
|
125
|
+
nullable: false,
|
|
126
|
+
readonly: true,
|
|
127
|
+
unique: { enabled: true },
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: 'name',
|
|
132
|
+
title: '@general:terms.common.name',
|
|
122
133
|
groupId: 'basic-info',
|
|
123
134
|
schema: {
|
|
124
135
|
dataType: 'string',
|
|
@@ -131,8 +142,8 @@ async function entityDefinitionEntityFactory() {
|
|
|
131
142
|
},
|
|
132
143
|
},
|
|
133
144
|
{
|
|
134
|
-
name: '
|
|
135
|
-
title:
|
|
145
|
+
name: 'module',
|
|
146
|
+
title: `@${i18n}:entity-definitions.entities.entity-definition.fields.module-id.title`,
|
|
136
147
|
groupId: 'basic-info',
|
|
137
148
|
schema: {
|
|
138
149
|
dataType: 'string',
|
|
@@ -144,6 +155,30 @@ async function entityDefinitionEntityFactory() {
|
|
|
144
155
|
sort: { enabled: true },
|
|
145
156
|
},
|
|
146
157
|
},
|
|
158
|
+
{
|
|
159
|
+
name: 'title',
|
|
160
|
+
title: '@general:terms.common.title',
|
|
161
|
+
groupId: 'basic-info',
|
|
162
|
+
schema: {
|
|
163
|
+
dataType: 'string',
|
|
164
|
+
readonly: true,
|
|
165
|
+
interface: { type: AXPWidgetsCatalog.text },
|
|
166
|
+
},
|
|
167
|
+
options: {
|
|
168
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
169
|
+
sort: { enabled: true },
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'icon',
|
|
174
|
+
title: '@general:terms.common.icon',
|
|
175
|
+
groupId: 'basic-info',
|
|
176
|
+
schema: {
|
|
177
|
+
dataType: 'string',
|
|
178
|
+
readonly: true,
|
|
179
|
+
interface: { type: AXPWidgetsCatalog.iconChooser },
|
|
180
|
+
},
|
|
181
|
+
},
|
|
147
182
|
{
|
|
148
183
|
name: 'content',
|
|
149
184
|
title: `@${i18n}:entity-definitions.entities.entity-definition.fields.content.title`,
|
|
@@ -153,27 +188,46 @@ async function entityDefinitionEntityFactory() {
|
|
|
153
188
|
readonly: true,
|
|
154
189
|
interface: {
|
|
155
190
|
type: AXPWidgetsList.Advanced.CodeEditor,
|
|
156
|
-
options: { language: 'json', readOnly: true },
|
|
191
|
+
options: { language: 'json', readOnly: true, height: 'h-96' },
|
|
157
192
|
},
|
|
158
193
|
},
|
|
159
194
|
},
|
|
160
195
|
],
|
|
161
196
|
columns: [
|
|
162
197
|
{ name: 'name', title: '@general:terms.common.name', showAs: { type: AXPWidgetsCatalog.text } },
|
|
163
|
-
{
|
|
198
|
+
{
|
|
199
|
+
name: 'module',
|
|
200
|
+
title: `@${i18n}:entity-definitions.entities.entity-definition.fields.module-id.title`,
|
|
201
|
+
showAs: { type: AXPWidgetsCatalog.text },
|
|
202
|
+
options: { dataPath: 'content.module' },
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: 'title',
|
|
206
|
+
title: '@general:terms.common.title',
|
|
207
|
+
showAs: { type: AXPWidgetsCatalog.text },
|
|
208
|
+
options: { dataPath: 'content.title' },
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
name: 'icon',
|
|
212
|
+
title: '@general:terms.common.icon',
|
|
213
|
+
showAs: { type: AXPWidgetsCatalog.iconChooser },
|
|
214
|
+
options: { dataPath: 'content.icon' },
|
|
215
|
+
},
|
|
164
216
|
],
|
|
165
217
|
interfaces: {
|
|
166
218
|
master: {
|
|
167
219
|
list: {
|
|
168
220
|
views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],
|
|
169
|
-
actions: [],
|
|
221
|
+
actions: [entityMasterViewAction()],
|
|
170
222
|
},
|
|
171
223
|
single: {
|
|
172
224
|
title: '{{ name }}',
|
|
173
225
|
sections: [{ id: 'basic-info' }, { id: 'schema' }],
|
|
174
226
|
properties: [
|
|
175
|
-
{ name: '
|
|
176
|
-
{ name: '
|
|
227
|
+
{ name: 'name', dataPath: 'content.name', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
228
|
+
{ name: 'module', dataPath: 'content.module', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
229
|
+
{ name: 'title', dataPath: 'content.title', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
230
|
+
{ name: 'icon', dataPath: 'content.icon', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
177
231
|
{ name: 'content', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
178
232
|
],
|
|
179
233
|
actions: [...entityMasterRecordActions()],
|
|
@@ -183,6 +237,9 @@ async function entityDefinitionEntityFactory() {
|
|
|
183
237
|
};
|
|
184
238
|
return entityDef;
|
|
185
239
|
}
|
|
240
|
+
async function entityDefinitionEntityFactory() {
|
|
241
|
+
return buildEntityDefinitionEntity();
|
|
242
|
+
}
|
|
186
243
|
|
|
187
244
|
/**
|
|
188
245
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-platform-management-client-contracts-entities-entity-definition.mjs","sources":["../../../../libs/modules/platform-management/contracts/src/root-config.ts","../../../../libs/modules/platform-management/contracts/src/entities/entity-definition/entity-definition.entity.ts","../../../../libs/modules/platform-management/contracts/src/acorex-platform-module-platform-management-client-contracts-entities-entity-definition.ts"],"sourcesContent":["const config = {\n i18n: 'platform-management',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'platform-management',\n name: 'PlatformManagement',\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-cogs',\n },\n entities: {\n localizationManagement: {\n name: 'Localization Management',\n title: `@${config.i18n}:localization-management.entities.localization-management.title`,\n icon: 'fa-light fa-globe',\n },\n token: {\n name: 'Tokens',\n title: `@${config.i18n}:tokens.entities.token.title`,\n icon: 'fa-light fa-object-exclude',\n },\n commandDefinition: {\n name: 'CommandDefinition',\n title: `@${config.i18n}:command-definitions.entities.command-definition.title`,\n titlePlural: `@${config.i18n}:command-definitions.entities.command-definition.title-plural`,\n icon: 'fa-light fa-terminal',\n },\n queryDefinition: {\n name: 'QueryDefinition',\n title: `@${config.i18n}:query-definitions.entities.query-definition.title`,\n titlePlural: `@${config.i18n}:query-definitions.entities.query-definition.title-plural`,\n icon: 'fa-light fa-database',\n },\n pluginDefinition: {\n name: 'PluginDefinition',\n title: `@${config.i18n}:plugin-definitions.entities.plugin-definition.title`,\n titlePlural: `@${config.i18n}:plugin-definitions.entities.plugin-definition.title-plural`,\n icon: 'fa-light fa-puzzle-piece',\n },\n widget: {\n name: 'Widget',\n title: `@${config.i18n}:widgets.entities.widget.title`,\n titlePlural: `@${config.i18n}:widgets.entities.widget.title-plural`,\n icon: 'fa-light fa-cubes',\n },\n entityDefinition: {\n name: 'EntityDefinition',\n title: `@${config.i18n}:entity-definitions.entities.entity-definition.title`,\n titlePlural: `@${config.i18n}:entity-definitions.entities.entity-definition.title-plural`,\n icon: 'fa-light fa-diagram-project',\n },\n entityAccessPolicy: {\n name: 'EntityAccessPolicy',\n title: `@${config.i18n}:entity-access-policies.entities.entity-access-policy.title`,\n titlePlural: `@${config.i18n}:entity-access-policies.entities.entity-access-policy.title-plural`,\n icon: 'fa-light fa-shield-keyhole',\n },\n },\n queries: {\n listRegisteredQueries: 'PlatformManagement:ListRegisteredQueries',\n dashboard: {\n tenantsKpi: 'PlatformManagement:Dashboard:TenantsKpi',\n usersKpi: 'PlatformManagement:Dashboard:UsersKpi',\n applicationsKpi: 'PlatformManagement:Dashboard:ApplicationsKpi',\n errorsKpi: 'PlatformManagement:Dashboard:ErrorsKpi',\n onlineUsersKpi: 'PlatformManagement:Dashboard:OnlineUsersKpi',\n todayLoggedInUsersKpi: 'PlatformManagement:Dashboard:TodayLoggedInUsersKpi',\n todayOnlineByHourLine: 'PlatformManagement:Dashboard:TodayOnlineByHourLine',\n tenantsByStatusBar: 'PlatformManagement:Dashboard:TenantsByStatusBar',\n applicationsByEditionDonut: 'PlatformManagement:Dashboard:ApplicationsByEditionDonut',\n errorsTrendLine: 'PlatformManagement:Dashboard:ErrorsTrendLine',\n jobsByStatusBar: 'PlatformManagement:Dashboard:JobsByStatusBar',\n },\n reports: {\n userActivityTimeline: 'PlatformManagement:Reports:UserActivityTimeline',\n userPresenceSummary: 'PlatformManagement:Reports:UserPresenceSummary',\n userPresenceDaily: 'PlatformManagement:Reports:UserPresenceDaily',\n userPresenceDailyChart: 'PlatformManagement:Reports:UserPresenceDailyChart',\n userPresenceTimeline: 'PlatformManagement:Reports:UserPresenceTimeline',\n userPresenceAwayBusy: 'PlatformManagement:Reports:UserPresenceAwayBusy',\n tenantPresenceSnapshot: 'PlatformManagement:Reports:TenantPresenceSnapshot',\n tenantPresenceWhoWasAround: 'PlatformManagement:Reports:TenantPresenceWhoWasAround',\n tenantPresenceDailyTrend: 'PlatformManagement:Reports:TenantPresenceDailyTrend',\n },\n },\n} as const;\n\n","import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function entityDefinitionEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.entityDefinition.name,\n title: RootConfig.entities.entityDefinition.title,\n icon: RootConfig.entities.entityDefinition.icon,\n formats: {\n individual: RootConfig.entities.entityDefinition.title,\n plural: RootConfig.entities.entityDefinition.titlePlural,\n searchResult: {\n title: '{{ name }}',\n description: '{{ id }}',\n },\n },\n plugins: [],\n groups: [\n {\n id: 'basic-info',\n title: `@${i18n}:entity-definitions.entities.entity-definition.groups.basic-info`,\n },\n {\n id: 'schema',\n title: `@${i18n}:entity-definitions.entities.entity-definition.groups.schema`,\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.text },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'name',\n title: '@general:terms.common.name',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.text },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'content',\n title: `@${i18n}:entity-definitions.entities.entity-definition.fields.content.title`,\n groupId: 'schema',\n schema: {\n dataType: 'object',\n readonly: true,\n interface: {\n type: AXPWidgetsList.Advanced.CodeEditor,\n options: { language: 'json', readOnly: true },\n },\n },\n },\n ],\n columns: [\n { name: 'name', title: '@general:terms.common.name', showAs: { type: AXPWidgetsCatalog.text } },\n { name: 'id', title: '@general:terms.common.id', showAs: { type: AXPWidgetsCatalog.text } },\n ],\n interfaces: {\n master: {\n list: {\n views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],\n actions: [],\n },\n single: {\n title: '{{ name }}',\n sections: [{ id: 'basic-info' }, { id: 'schema' }],\n properties: [\n { name: 'id', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'name', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'content', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n },\n },\n };\n\n return entityDef;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.entity-definition';\n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AK,EAAE,YAAY;AACnB,oBAAA,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC;AAClD,oBAAA,UAAU,EAAE;AACV,wBAAA,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AAC9D,wBAAA,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AAChE,wBAAA,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACpE,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;ACvGA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-platform-management-client-contracts-entities-entity-definition.mjs","sources":["../../../../libs/modules/platform-management/contracts/src/root-config.ts","../../../../libs/modules/platform-management/contracts/src/entities/entity-definition/entity-definition.entity.ts","../../../../libs/modules/platform-management/contracts/src/acorex-platform-module-platform-management-client-contracts-entities-entity-definition.ts"],"sourcesContent":["const config = {\n i18n: 'platform-management',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'platform-management',\n name: 'PlatformManagement',\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-cogs',\n },\n entities: {\n localizationManagement: {\n name: 'Localization Management',\n title: `@${config.i18n}:localization-management.entities.localization-management.title`,\n icon: 'fa-light fa-globe',\n },\n token: {\n name: 'Tokens',\n title: `@${config.i18n}:tokens.entities.token.title`,\n icon: 'fa-light fa-object-exclude',\n },\n commandDefinition: {\n name: 'CommandDefinition',\n title: `@${config.i18n}:command-definitions.entities.command-definition.title`,\n titlePlural: `@${config.i18n}:command-definitions.entities.command-definition.title-plural`,\n icon: 'fa-light fa-terminal',\n },\n queryDefinition: {\n name: 'QueryDefinition',\n title: `@${config.i18n}:query-definitions.entities.query-definition.title`,\n titlePlural: `@${config.i18n}:query-definitions.entities.query-definition.title-plural`,\n icon: 'fa-light fa-database',\n },\n pluginDefinition: {\n name: 'PluginDefinition',\n title: `@${config.i18n}:plugin-definitions.entities.plugin-definition.title`,\n titlePlural: `@${config.i18n}:plugin-definitions.entities.plugin-definition.title-plural`,\n icon: 'fa-light fa-puzzle-piece',\n },\n widget: {\n name: 'Widget',\n title: `@${config.i18n}:widgets.entities.widget.title`,\n titlePlural: `@${config.i18n}:widgets.entities.widget.title-plural`,\n icon: 'fa-light fa-cubes',\n },\n entityDefinition: {\n name: 'EntityDefinition',\n title: `@${config.i18n}:entity-definitions.entities.entity-definition.title`,\n titlePlural: `@${config.i18n}:entity-definitions.entities.entity-definition.title-plural`,\n icon: 'fa-light fa-diagram-project',\n },\n entityAccessPolicy: {\n name: 'EntityAccessPolicy',\n title: `@${config.i18n}:entity-access-policies.entities.entity-access-policy.title`,\n titlePlural: `@${config.i18n}:entity-access-policies.entities.entity-access-policy.title-plural`,\n icon: 'fa-light fa-shield-keyhole',\n },\n },\n queries: {\n listRegisteredQueries: 'PlatformManagement:ListRegisteredQueries',\n dashboard: {\n tenantsKpi: 'PlatformManagement:Dashboard:TenantsKpi',\n usersKpi: 'PlatformManagement:Dashboard:UsersKpi',\n applicationsKpi: 'PlatformManagement:Dashboard:ApplicationsKpi',\n errorsKpi: 'PlatformManagement:Dashboard:ErrorsKpi',\n onlineUsersKpi: 'PlatformManagement:Dashboard:OnlineUsersKpi',\n todayLoggedInUsersKpi: 'PlatformManagement:Dashboard:TodayLoggedInUsersKpi',\n todayOnlineByHourLine: 'PlatformManagement:Dashboard:TodayOnlineByHourLine',\n tenantsByStatusBar: 'PlatformManagement:Dashboard:TenantsByStatusBar',\n applicationsByEditionDonut: 'PlatformManagement:Dashboard:ApplicationsByEditionDonut',\n errorsTrendLine: 'PlatformManagement:Dashboard:ErrorsTrendLine',\n jobsByStatusBar: 'PlatformManagement:Dashboard:JobsByStatusBar',\n },\n reports: {\n userActivityTimeline: 'PlatformManagement:Reports:UserActivityTimeline',\n userPresenceSummary: 'PlatformManagement:Reports:UserPresenceSummary',\n userPresenceDaily: 'PlatformManagement:Reports:UserPresenceDaily',\n userPresenceDailyChart: 'PlatformManagement:Reports:UserPresenceDailyChart',\n userPresenceTimeline: 'PlatformManagement:Reports:UserPresenceTimeline',\n userPresenceAwayBusy: 'PlatformManagement:Reports:UserPresenceAwayBusy',\n tenantPresenceSnapshot: 'PlatformManagement:Reports:TenantPresenceSnapshot',\n tenantPresenceWhoWasAround: 'PlatformManagement:Reports:TenantPresenceWhoWasAround',\n tenantPresenceDailyTrend: 'PlatformManagement:Reports:TenantPresenceDailyTrend',\n },\n },\n} as const;\n\n","import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterRecordActions,\n entityMasterViewAction,\n} from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport function buildEntityDefinitionEntity(): AXPEntity {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.entityDefinition.name,\n title: RootConfig.entities.entityDefinition.title,\n icon: RootConfig.entities.entityDefinition.icon,\n formats: {\n individual: RootConfig.entities.entityDefinition.title,\n plural: RootConfig.entities.entityDefinition.titlePlural,\n searchResult: {\n title: '{{ name }}',\n description: '{{ content.module }}',\n },\n },\n plugins: [],\n groups: [\n {\n id: 'basic-info',\n title: `@${i18n}:entity-definitions.entities.entity-definition.groups.basic-info`,\n },\n {\n id: 'schema',\n title: `@${i18n}:entity-definitions.entities.entity-definition.groups.schema`,\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'name',\n title: '@general:terms.common.name',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.text },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'module',\n title: `@${i18n}:entity-definitions.entities.entity-definition.fields.module-id.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.text },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.text },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'icon',\n title: '@general:terms.common.icon',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.iconChooser },\n },\n },\n {\n name: 'content',\n title: `@${i18n}:entity-definitions.entities.entity-definition.fields.content.title`,\n groupId: 'schema',\n schema: {\n dataType: 'object',\n readonly: true,\n interface: {\n type: AXPWidgetsList.Advanced.CodeEditor,\n options: { language: 'json', readOnly: true, height: 'h-96' },\n },\n },\n },\n ],\n columns: [\n { name: 'name', title: '@general:terms.common.name', showAs: { type: AXPWidgetsCatalog.text } },\n {\n name: 'module',\n title: `@${i18n}:entity-definitions.entities.entity-definition.fields.module-id.title`,\n showAs: { type: AXPWidgetsCatalog.text },\n options: { dataPath: 'content.module' },\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n showAs: { type: AXPWidgetsCatalog.text },\n options: { dataPath: 'content.title' },\n },\n {\n name: 'icon',\n title: '@general:terms.common.icon',\n showAs: { type: AXPWidgetsCatalog.iconChooser },\n options: { dataPath: 'content.icon' },\n },\n ],\n interfaces: {\n master: {\n list: {\n views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],\n actions: [entityMasterViewAction()],\n },\n single: {\n title: '{{ name }}',\n sections: [{ id: 'basic-info' }, { id: 'schema' }],\n properties: [\n { name: 'name', dataPath: 'content.name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'module', dataPath: 'content.module', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'title', dataPath: 'content.title', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'icon', dataPath: 'content.icon', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'content', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n },\n },\n };\n\n return entityDef;\n}\n\nexport async function entityDefinitionEntityFactory(): Promise<AXPEntity | null> {\n return buildEntityDefinitionEntity();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.entity-definition';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,qBAAqB;CAC5B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,qBAAqB;AAC5B,QAAA,IAAI,EAAE,oBAAoB;AAC1B,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,kBAAkB;AACzB,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,sBAAsB,EAAE;AACtB,YAAA,IAAI,EAAE,yBAAyB;AAC/B,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,+DAAA,CAAiE;AACvF,YAAA,IAAI,EAAE,mBAAmB;AAC1B,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