@acorex/modules 19.1.8 → 19.1.10

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.
Files changed (121) hide show
  1. package/auth/lib/auth.module.d.ts +1 -1
  2. package/auth/lib/{forgot → pages/forgot}/password/password.component.d.ts +1 -1
  3. package/auth/lib/{login → pages/login}/password/password.component.d.ts +1 -1
  4. package/fesm2022/acorex-modules-application-management.mjs +9 -1
  5. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  6. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-BuSxsqTx.mjs → acorex-modules-auth-acorex-modules-auth-BukQhL3i.mjs} +171 -248
  7. package/fesm2022/acorex-modules-auth-acorex-modules-auth-BukQhL3i.mjs.map +1 -0
  8. package/fesm2022/{acorex-modules-auth-app-chooser.component-B3yFTcfb.mjs → acorex-modules-auth-app-chooser.component-Co9UVNs7.mjs} +2 -2
  9. package/fesm2022/acorex-modules-auth-app-chooser.component-Co9UVNs7.mjs.map +1 -0
  10. package/fesm2022/{acorex-modules-auth-login.module-BwbsBdZm.mjs → acorex-modules-auth-login.module-DF8O2Xsc.mjs} +4 -4
  11. package/fesm2022/acorex-modules-auth-login.module-DF8O2Xsc.mjs.map +1 -0
  12. package/fesm2022/{acorex-modules-auth-master.layout-BIwGGzl9.mjs → acorex-modules-auth-master.layout-Bql93CSW.mjs} +2 -2
  13. package/fesm2022/{acorex-modules-auth-master.layout-BIwGGzl9.mjs.map → acorex-modules-auth-master.layout-Bql93CSW.mjs.map} +1 -1
  14. package/fesm2022/{acorex-modules-auth-password.component-CquAxSV0.mjs → acorex-modules-auth-password.component-4qadgU3K.mjs} +2 -2
  15. package/fesm2022/acorex-modules-auth-password.component-4qadgU3K.mjs.map +1 -0
  16. package/fesm2022/{acorex-modules-auth-password.component-Ce57WfMX.mjs → acorex-modules-auth-password.component-C7dIOlgw.mjs} +2 -2
  17. package/fesm2022/acorex-modules-auth-password.component-C7dIOlgw.mjs.map +1 -0
  18. package/fesm2022/{acorex-modules-auth-routes-CbA94Lwp.mjs → acorex-modules-auth-routes-CGtWtEQI.mjs} +2 -2
  19. package/fesm2022/acorex-modules-auth-routes-CGtWtEQI.mjs.map +1 -0
  20. package/fesm2022/acorex-modules-auth-setting.provider-GJeEbIRd.mjs +59 -0
  21. package/fesm2022/acorex-modules-auth-setting.provider-GJeEbIRd.mjs.map +1 -0
  22. package/fesm2022/acorex-modules-auth-tenant-chooser.component-CFT3i6iA.mjs.map +1 -1
  23. package/fesm2022/acorex-modules-auth-two-factor-code.component-BEsTVMeC.mjs.map +1 -1
  24. package/fesm2022/{acorex-modules-auth-two-factor.module-DiN9uKFz.mjs → acorex-modules-auth-two-factor.module-CqzFrEEK.mjs} +2 -2
  25. package/fesm2022/acorex-modules-auth-two-factor.module-CqzFrEEK.mjs.map +1 -0
  26. package/fesm2022/acorex-modules-auth.mjs +1 -1
  27. package/fesm2022/{acorex-modules-form-template-management-category.entity-Cqu3urCo.mjs → acorex-modules-form-template-management-category.entity-m0HWwBzu.mjs} +13 -9
  28. package/fesm2022/acorex-modules-form-template-management-category.entity-m0HWwBzu.mjs.map +1 -0
  29. package/fesm2022/acorex-modules-form-template-management-setting.provider-ceq0ZtxA.mjs +65 -0
  30. package/fesm2022/acorex-modules-form-template-management-setting.provider-ceq0ZtxA.mjs.map +1 -0
  31. package/fesm2022/{acorex-modules-form-template-management-template-picker.component-CsGnikzF.mjs → acorex-modules-form-template-management-template-picker.component-vh_xdN7Z.mjs} +3 -3
  32. package/fesm2022/acorex-modules-form-template-management-template-picker.component-vh_xdN7Z.mjs.map +1 -0
  33. package/fesm2022/{acorex-modules-form-template-management-template.entity-CrFYszl6.mjs → acorex-modules-form-template-management-template.entity-EoPISAfV.mjs} +14 -13
  34. package/fesm2022/acorex-modules-form-template-management-template.entity-EoPISAfV.mjs.map +1 -0
  35. package/fesm2022/acorex-modules-form-template-management.mjs +101 -125
  36. package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -1
  37. package/fesm2022/acorex-modules-notification-management.mjs +1290 -991
  38. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  39. package/fesm2022/acorex-modules-platform-management.mjs +7 -28
  40. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  41. package/fesm2022/acorex-modules-security-management.mjs +1632 -0
  42. package/fesm2022/acorex-modules-security-management.mjs.map +1 -0
  43. package/fesm2022/acorex-modules-text-template-management.mjs +60 -80
  44. package/fesm2022/acorex-modules-text-template-management.mjs.map +1 -1
  45. package/form-template-management/lib/const.d.ts +22 -6
  46. package/form-template-management/lib/entity.provider.d.ts +3 -3
  47. package/form-template-management/lib/permission.provider.d.ts +4 -0
  48. package/form-template-management/lib/search-command.provider.d.ts +4 -0
  49. package/notification-management/index.d.ts +5 -4
  50. package/notification-management/lib/const.d.ts +27 -8
  51. package/notification-management/lib/entities/channel/index.d.ts +3 -0
  52. package/notification-management/lib/entities/index.d.ts +3 -0
  53. package/notification-management/lib/entities/notification/index.d.ts +3 -0
  54. package/notification-management/lib/entities/notification/notification.service.d.ts +17 -0
  55. package/notification-management/lib/entities/notification/notification.types.d.ts +5 -0
  56. package/notification-management/lib/entities/template/index.d.ts +4 -0
  57. package/notification-management/lib/entities/template/template.module.d.ts +6 -0
  58. package/notification-management/lib/entities/template/template.types.d.ts +0 -1
  59. package/notification-management/lib/{entity.loader.d.ts → entity.provider.d.ts} +3 -3
  60. package/notification-management/lib/setting.keys.d.ts +17 -0
  61. package/notification-management/lib/setting.provider.d.ts +4 -0
  62. package/package.json +12 -8
  63. package/platform-management/index.d.ts +0 -1
  64. package/platform-management/lib/menu.provider.d.ts +1 -1
  65. package/security-management/README.md +3 -0
  66. package/security-management/index.d.ts +2 -0
  67. package/security-management/lib/const.d.ts +29 -0
  68. package/security-management/lib/entities/profile/index.d.ts +4 -0
  69. package/security-management/lib/entities/profile/profile.entity.d.ts +3 -0
  70. package/security-management/lib/entities/profile/profile.module.d.ts +6 -0
  71. package/security-management/lib/entities/profile/profile.service.d.ts +13 -0
  72. package/security-management/lib/entities/profile/profile.types.d.ts +5 -0
  73. package/security-management/lib/entities/roles/index.d.ts +4 -0
  74. package/security-management/lib/entities/roles/roles.entity.d.ts +3 -0
  75. package/security-management/lib/entities/roles/roles.module.d.ts +6 -0
  76. package/security-management/lib/entities/roles/roles.service.d.ts +10 -0
  77. package/security-management/lib/entities/roles/roles.types.d.ts +5 -0
  78. package/security-management/lib/entities/users/index.d.ts +4 -0
  79. package/security-management/lib/entities/users/users.entity.d.ts +3 -0
  80. package/security-management/lib/entities/users/users.module.d.ts +6 -0
  81. package/security-management/lib/entities/users/users.service.d.ts +10 -0
  82. package/security-management/lib/entities/users/users.types.d.ts +5 -0
  83. package/security-management/lib/entity.provider.d.ts +10 -0
  84. package/security-management/lib/menu.provider.d.ts +5 -0
  85. package/security-management/lib/search-command.provider.d.ts +4 -0
  86. package/security-management/lib/security-management.module.d.ts +9 -0
  87. package/text-template-management/lib/const.d.ts +22 -6
  88. package/text-template-management/lib/entity.provider.d.ts +3 -3
  89. package/text-template-management/lib/menu.provider.d.ts +1 -1
  90. package/text-template-management/lib/setting.provider.d.ts +1 -1
  91. package/fesm2022/acorex-modules-auth-acorex-modules-auth-BuSxsqTx.mjs.map +0 -1
  92. package/fesm2022/acorex-modules-auth-app-chooser.component-B3yFTcfb.mjs.map +0 -1
  93. package/fesm2022/acorex-modules-auth-login.module-BwbsBdZm.mjs.map +0 -1
  94. package/fesm2022/acorex-modules-auth-password.component-Ce57WfMX.mjs.map +0 -1
  95. package/fesm2022/acorex-modules-auth-password.component-CquAxSV0.mjs.map +0 -1
  96. package/fesm2022/acorex-modules-auth-routes-CbA94Lwp.mjs.map +0 -1
  97. package/fesm2022/acorex-modules-auth-two-factor.module-DiN9uKFz.mjs.map +0 -1
  98. package/fesm2022/acorex-modules-form-template-management-category.entity-Cqu3urCo.mjs.map +0 -1
  99. package/fesm2022/acorex-modules-form-template-management-template-picker.component-CsGnikzF.mjs.map +0 -1
  100. package/fesm2022/acorex-modules-form-template-management-template.entity-CrFYszl6.mjs.map +0 -1
  101. package/form-template-management/lib/search.provider.d.ts +0 -4
  102. package/notification-management/lib/notification.service.d.ts +0 -6
  103. package/platform-management/lib/text-search/index.d.ts +0 -2
  104. package/platform-management/lib/text-search/text-search.service.d.ts +0 -10
  105. package/platform-management/lib/text-search/text-search.types.d.ts +0 -9
  106. package/text-template-management/lib/search-definition.provider.d.ts +0 -4
  107. /package/auth/lib/{account → pages/account}/account.module.d.ts +0 -0
  108. /package/auth/lib/{account → pages/account}/app-chooser/app-chooser-list.component.d.ts +0 -0
  109. /package/auth/lib/{account → pages/account}/app-chooser/app-chooser-slot.component.d.ts +0 -0
  110. /package/auth/lib/{account → pages/account}/app-chooser/app-chooser.component.d.ts +0 -0
  111. /package/auth/lib/{account → pages/account}/profile/profile-slot.component.d.ts +0 -0
  112. /package/auth/lib/{account → pages/account}/tenant-chooser/tenant-chooser-dropdown.component.d.ts +0 -0
  113. /package/auth/lib/{account → pages/account}/tenant-chooser/tenant-chooser.component.d.ts +0 -0
  114. /package/auth/lib/{forgot → pages/forgot}/routes.d.ts +0 -0
  115. /package/auth/lib/{login → pages/login}/login.module.d.ts +0 -0
  116. /package/auth/lib/{two-factor → pages/two-factor}/two-factor-code/two-factor-code.component.d.ts +0 -0
  117. /package/auth/lib/{two-factor → pages/two-factor}/two-factor.module.d.ts +0 -0
  118. /package/notification-management/lib/{admin-notification-slot → components}/admin-notification-item/admin-notification-item.component.d.ts +0 -0
  119. /package/notification-management/lib/{admin-notification-slot → components}/admin-notification-panel/admin-notification-panel.component.d.ts +0 -0
  120. /package/notification-management/lib/{admin-notification-slot → components}/admin-notification-slot/admin-notification-slot.component.d.ts +0 -0
  121. /package/notification-management/lib/entities/{notification.entity.d.ts → notification/notification.entity.d.ts} +0 -0
@@ -0,0 +1,1632 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, Injector, Injectable, NgModule } from '@angular/core';
3
+ import { AXMEntityCrudServiceImpl, AXPEntityQueryType, AXPEntityCommandScope, AXPSearchCommandProvider, AXP_MENU_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
4
+ import { AXPEntityService, AXPEntityResolver, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
5
+ import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
6
+ import { AXDataSource } from '@acorex/components/common';
7
+ import { AXPPermissionProviderService } from '@acorex/platform/auth';
8
+
9
+ const config = {
10
+ i18n: 'security-management',
11
+ profileEntity: 'Profile',
12
+ };
13
+ const RootConfig = {
14
+ config,
15
+ module: {
16
+ route: 'security-management',
17
+ name: 'securityManagement',
18
+ title: `t('module-name', {scope:"${config.i18n}"})`,
19
+ icon: 'fa-solid fa-file-invoice',
20
+ },
21
+ entities: {
22
+ users: {
23
+ name: 'users',
24
+ title: `t("users", { scope: "${config.i18n}" })`,
25
+ icon: 'fa-solid fa-users',
26
+ },
27
+ roles: {
28
+ name: 'roles',
29
+ title: `t("roles",{scope:"${config.i18n}"})`,
30
+ icon: 'fa-solid fa-key',
31
+ },
32
+ profile: {
33
+ name: 'profile',
34
+ title: `t("profile",{scope:"${config.i18n}"})`,
35
+ icon: 'fa-solid fa-user',
36
+ },
37
+ },
38
+ };
39
+
40
+ class AXMMenuProvider {
41
+ constructor() {
42
+ this.entityService = inject(AXPEntityService);
43
+ }
44
+ async provide(context) {
45
+ const scope = RootConfig.config.i18n;
46
+ const moduleName = RootConfig.module.name;
47
+ context.addItems([
48
+ {
49
+ priority: 9001,
50
+ text: `t('module-name', {scope: "${scope}"})`,
51
+ icon: 'fa-solid fa-lock',
52
+ data: {
53
+ // requiredPermission: 'demo.admin.settings',
54
+ },
55
+ children: [
56
+ {
57
+ priority: 9003,
58
+ text: `t('users', { scope: "${scope}" })`,
59
+ icon: 'fa-solid fa-users',
60
+ path: this.entityService.createPath(moduleName, RootConfig.entities.users.name),
61
+ data: {
62
+ // requiredPermission: 'demo.admin.settings',
63
+ },
64
+ },
65
+ {
66
+ priority: 9004,
67
+ text: `t('roles', { scope: "${scope}" })`,
68
+ path: this.entityService.createPath(moduleName, RootConfig.entities.roles.name),
69
+ icon: 'fa-solid fa-key',
70
+ data: {
71
+ // requiredPermission: 'demo.admin.settings',
72
+ },
73
+ },
74
+ ],
75
+ },
76
+ ]);
77
+ }
78
+ }
79
+
80
+ class AXMEntityProvider {
81
+ constructor() {
82
+ this.injector = inject(Injector);
83
+ }
84
+ preload() {
85
+ const { entities, module } = RootConfig;
86
+ return [entities.users.name, entities.roles.name].map((entity) => ({ module: module.name, entity }));
87
+ }
88
+ async get(moduleName, entityName) {
89
+ const { entities, module } = RootConfig;
90
+ if (moduleName == module.name) {
91
+ switch (entityName) {
92
+ case RootConfig.entities.users.name:
93
+ return (await Promise.resolve().then(function () { return users_entity; })).factory(this.injector);
94
+ case RootConfig.entities.roles.name:
95
+ return (await Promise.resolve().then(function () { return roles_entity; })).factory(this.injector);
96
+ case RootConfig.entities.profile.name:
97
+ return (await Promise.resolve().then(function () { return profile_entity; })).factory(this.injector);
98
+ }
99
+ }
100
+ return null;
101
+ }
102
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
103
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityProvider }); }
104
+ }
105
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityProvider, decorators: [{
106
+ type: Injectable
107
+ }] });
108
+
109
+ class AXMSecurityManagementUsersEntityService extends AXMEntityCrudServiceImpl {
110
+ }
111
+ class AXMSecurityManagementUsersEntityServiceImpl extends AXMSecurityManagementUsersEntityService {
112
+ constructor() {
113
+ super(`${RootConfig.module.name}.${RootConfig.entities.users.name}`);
114
+ }
115
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementUsersEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
116
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementUsersEntityServiceImpl }); }
117
+ }
118
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementUsersEntityServiceImpl, decorators: [{
119
+ type: Injectable
120
+ }], ctorParameters: () => [] });
121
+
122
+ async function factory$2(injector) {
123
+ const dataService = injector.get(AXMSecurityManagementUsersEntityService);
124
+ const entityResolver = injector.get(AXPEntityResolver);
125
+ const i18n = RootConfig.config.i18n;
126
+ const entityDef = {
127
+ module: RootConfig.module.name,
128
+ name: RootConfig.entities.users.name,
129
+ source: '',
130
+ title: RootConfig.entities.users.title,
131
+ formats: {
132
+ individual: `t("user", { scope: "${i18n}" })`,
133
+ plural: `t("users", { scope: "${i18n}" })`,
134
+ },
135
+ relatedEntities: [],
136
+ groups: [
137
+ {
138
+ id: 'info',
139
+ title: `t("information", { scope: "${i18n}" })`,
140
+ },
141
+ {
142
+ id: 'authorizations',
143
+ title: `t("authorizations", { scope: "${i18n}" })`,
144
+ },
145
+ ],
146
+ properties: [
147
+ {
148
+ name: 'username',
149
+ title: `t("username", { scope: "${i18n}" })`,
150
+ groupId: 'info',
151
+ options: {
152
+ filter: {
153
+ advance: {
154
+ enabled: true,
155
+ },
156
+ inline: {
157
+ enabled: true,
158
+ },
159
+ },
160
+ sort: {
161
+ enabled: true,
162
+ },
163
+ },
164
+ schema: {
165
+ dataType: 'string',
166
+ interface: {
167
+ type: AXPWidgetsCatalog.text,
168
+ },
169
+ },
170
+ validations: [
171
+ {
172
+ rule: 'required',
173
+ },
174
+ ],
175
+ },
176
+ {
177
+ name: 'firstName',
178
+ title: `t("firstName", { scope: "${i18n}" })`,
179
+ groupId: 'info',
180
+ options: {
181
+ sort: {
182
+ enabled: true,
183
+ },
184
+ filter: {
185
+ advance: {
186
+ enabled: true,
187
+ },
188
+ },
189
+ },
190
+ schema: {
191
+ dataType: 'string',
192
+ interface: {
193
+ type: AXPWidgetsCatalog.text,
194
+ },
195
+ },
196
+ validations: [
197
+ {
198
+ rule: 'required',
199
+ },
200
+ ],
201
+ },
202
+ {
203
+ name: 'lastName',
204
+ title: `t("lastName", { scope: "${i18n}" })`,
205
+ groupId: 'info',
206
+ schema: {
207
+ dataType: 'string',
208
+ interface: {
209
+ type: AXPWidgetsCatalog.text,
210
+ },
211
+ },
212
+ options: {
213
+ filter: {
214
+ advance: {
215
+ enabled: true,
216
+ },
217
+ },
218
+ sort: {
219
+ enabled: true,
220
+ },
221
+ },
222
+ validations: [
223
+ {
224
+ rule: 'required',
225
+ },
226
+ ],
227
+ },
228
+ {
229
+ name: 'roles',
230
+ title: `t("roles", { scope: "${i18n}" })`,
231
+ groupId: 'authorizations',
232
+ schema: {
233
+ dataType: 'string',
234
+ interface: {
235
+ type: AXPWidgetsCatalog.select,
236
+ options: {
237
+ triggers: [
238
+ {
239
+ event: "{{ events.context('lastName') }}",
240
+ action: `{{console.log(context.eval('lastName'))}}`,
241
+ },
242
+ ],
243
+ dataSource: new AXDataSource({
244
+ load: async () => {
245
+ const rolesEntity = await entityResolver.get(RootConfig.module.name, 'roles');
246
+ const roles = await (rolesEntity?.queries.list?.execute)({ skip: 0, take: 100 });
247
+ return roles;
248
+ },
249
+ pageSize: 100,
250
+ key: 'name',
251
+ }),
252
+ valueField: 'name',
253
+ textField: 'title',
254
+ multiple: true,
255
+ },
256
+ },
257
+ },
258
+ validations: [
259
+ {
260
+ rule: 'required',
261
+ },
262
+ ],
263
+ },
264
+ ],
265
+ columns: [{ name: 'username' }, { name: 'firstName' }, { name: 'lastName' }],
266
+ commands: {
267
+ create: {
268
+ execute: async (data) => {
269
+ const res = await dataService.insertOne(data);
270
+ return { id: res };
271
+ },
272
+ },
273
+ delete: {
274
+ execute: async (id) => {
275
+ return await dataService.deleteOne(id);
276
+ },
277
+ },
278
+ update: {
279
+ execute: async (data) => {
280
+ return await dataService.updateOne(data.id, data);
281
+ },
282
+ },
283
+ },
284
+ queries: {
285
+ byKey: {
286
+ execute: async (id) => {
287
+ return await dataService.getOne(id);
288
+ },
289
+ type: AXPEntityQueryType.Single,
290
+ },
291
+ list: {
292
+ execute: async (e) => {
293
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
294
+ },
295
+ type: AXPEntityQueryType.List,
296
+ },
297
+ },
298
+ interfaces: {
299
+ master: {
300
+ create: {
301
+ sections: [
302
+ {
303
+ id: 'info',
304
+ },
305
+ {
306
+ id: 'authorizations',
307
+ },
308
+ ],
309
+ properties: [
310
+ {
311
+ name: 'username',
312
+ layout: {
313
+ positions: {
314
+ lg: {
315
+ colSpan: 6,
316
+ },
317
+ },
318
+ },
319
+ },
320
+ {
321
+ name: 'firstName',
322
+ layout: {
323
+ positions: {
324
+ lg: {
325
+ colSpan: 6,
326
+ },
327
+ },
328
+ },
329
+ },
330
+ {
331
+ name: 'lastName',
332
+ layout: {
333
+ positions: {
334
+ lg: {
335
+ colSpan: 6,
336
+ },
337
+ },
338
+ },
339
+ },
340
+ {
341
+ name: 'roles',
342
+ layout: {
343
+ positions: {
344
+ lg: {
345
+ colSpan: 12,
346
+ },
347
+ },
348
+ },
349
+ },
350
+ ],
351
+ },
352
+ update: {
353
+ sections: [
354
+ {
355
+ id: 'info',
356
+ },
357
+ {
358
+ id: 'authorizations',
359
+ },
360
+ ],
361
+ properties: [
362
+ {
363
+ name: 'username',
364
+ layout: {
365
+ positions: {
366
+ lg: {
367
+ colSpan: 6,
368
+ },
369
+ },
370
+ },
371
+ },
372
+ {
373
+ name: 'firstName',
374
+ layout: {
375
+ positions: {
376
+ lg: {
377
+ colSpan: 6,
378
+ },
379
+ },
380
+ },
381
+ },
382
+ {
383
+ name: 'lastName',
384
+ layout: {
385
+ positions: {
386
+ lg: {
387
+ colSpan: 6,
388
+ },
389
+ },
390
+ },
391
+ },
392
+ {
393
+ name: 'roles',
394
+ layout: {
395
+ positions: {
396
+ lg: {
397
+ colSpan: 12,
398
+ },
399
+ },
400
+ },
401
+ },
402
+ ],
403
+ },
404
+ single: {
405
+ title: '{{firstName}} {{lastName}}',
406
+ sections: [
407
+ {
408
+ id: 'info',
409
+ layout: {
410
+ positions: {
411
+ lg: {
412
+ colSpan: 12,
413
+ },
414
+ },
415
+ },
416
+ },
417
+ {
418
+ id: 'authorizations',
419
+ layout: {
420
+ positions: {
421
+ lg: {
422
+ colSpan: 12,
423
+ },
424
+ },
425
+ },
426
+ },
427
+ ],
428
+ properties: [
429
+ {
430
+ name: 'username',
431
+ layout: {
432
+ positions: {
433
+ lg: {
434
+ colSpan: 6,
435
+ },
436
+ },
437
+ },
438
+ },
439
+ {
440
+ name: 'firstName',
441
+ layout: {
442
+ positions: {
443
+ lg: {
444
+ colSpan: 6,
445
+ },
446
+ },
447
+ },
448
+ },
449
+ {
450
+ name: 'lastName',
451
+ layout: {
452
+ positions: {
453
+ lg: {
454
+ colSpan: 6,
455
+ },
456
+ },
457
+ },
458
+ },
459
+ {
460
+ name: 'roles',
461
+ layout: {
462
+ positions: {
463
+ lg: {
464
+ colSpan: 12,
465
+ },
466
+ },
467
+ },
468
+ },
469
+ ],
470
+ actions: [],
471
+ },
472
+ list: {
473
+ actions: [
474
+ {
475
+ title: `t("create")`,
476
+ command: 'create-entity',
477
+ priority: 'primary',
478
+ type: 'create',
479
+ scope: AXPEntityCommandScope.TypeLevel,
480
+ },
481
+ {
482
+ title: 't("deleteItems")',
483
+ command: 'delete-entity',
484
+ priority: 'primary',
485
+ type: 'delete',
486
+ scope: AXPEntityCommandScope.Selected,
487
+ },
488
+ {
489
+ title: 't("detail")',
490
+ command: 'open-entity',
491
+ priority: 'secondary',
492
+ type: 'view',
493
+ scope: AXPEntityCommandScope.Individual,
494
+ },
495
+ {
496
+ title: 't("delete")',
497
+ command: 'delete-entity',
498
+ priority: 'secondary',
499
+ type: 'delete',
500
+ scope: AXPEntityCommandScope.Individual,
501
+ },
502
+ ],
503
+ views: [
504
+ {
505
+ name: 'all',
506
+ title: 't("allItem")',
507
+ fixed: true,
508
+ columns: [],
509
+ conditions: [],
510
+ sorts: [],
511
+ },
512
+ ],
513
+ },
514
+ },
515
+ },
516
+ };
517
+ const x = entityDef.properties.find((x) => x.name === 'roles')?.schema.interface?.options;
518
+ console.log({ x });
519
+ return entityDef;
520
+ }
521
+
522
+ var users_entity = /*#__PURE__*/Object.freeze({
523
+ __proto__: null,
524
+ factory: factory$2
525
+ });
526
+
527
+ class AXMSecurityManagementUsersEntityModule {
528
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementUsersEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
529
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementUsersEntityModule }); }
530
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementUsersEntityModule, providers: [
531
+ {
532
+ provide: AXMSecurityManagementUsersEntityService,
533
+ useClass: AXMSecurityManagementUsersEntityServiceImpl,
534
+ },
535
+ ] }); }
536
+ }
537
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementUsersEntityModule, decorators: [{
538
+ type: NgModule,
539
+ args: [{
540
+ imports: [],
541
+ exports: [],
542
+ declarations: [],
543
+ providers: [
544
+ {
545
+ provide: AXMSecurityManagementUsersEntityService,
546
+ useClass: AXMSecurityManagementUsersEntityServiceImpl,
547
+ },
548
+ ],
549
+ }]
550
+ }] });
551
+
552
+ class AXMSecurityManagementRolesEntityService extends AXMEntityCrudServiceImpl {
553
+ }
554
+ class AXMSecurityManagementRolesEntityServiceImpl extends AXMSecurityManagementRolesEntityService {
555
+ constructor() {
556
+ super(`${RootConfig.module.name}.${RootConfig.entities.roles}`);
557
+ }
558
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementRolesEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
559
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementRolesEntityServiceImpl }); }
560
+ }
561
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementRolesEntityServiceImpl, decorators: [{
562
+ type: Injectable
563
+ }], ctorParameters: () => [] });
564
+
565
+ async function factory$1(injector) {
566
+ const dataService = injector.get(AXMSecurityManagementRolesEntityService);
567
+ const permissionService = injector.get(AXPPermissionProviderService);
568
+ const i18n = RootConfig.config.i18n;
569
+ const entityDef = {
570
+ module: RootConfig.module.name,
571
+ name: RootConfig.entities.roles.name,
572
+ source: '',
573
+ title: RootConfig.entities.roles.title,
574
+ formats: {
575
+ individual: `t("role", { scope: "${i18n}" })`,
576
+ plural: `t("roles", { scope: "${i18n}" })`,
577
+ },
578
+ relatedEntities: [],
579
+ groups: [
580
+ {
581
+ id: 'info',
582
+ title: `t("information", { scope: "${i18n}" })`,
583
+ },
584
+ {
585
+ id: 'permissions',
586
+ title: `t("permissions", { scope: "${i18n}" })`,
587
+ },
588
+ ],
589
+ properties: [
590
+ {
591
+ name: 'name',
592
+ title: `t("name")`,
593
+ groupId: 'info',
594
+ schema: {
595
+ dataType: 'string',
596
+ interface: {
597
+ type: AXPWidgetsCatalog.text,
598
+ },
599
+ },
600
+ validations: [
601
+ {
602
+ rule: 'required',
603
+ },
604
+ ],
605
+ },
606
+ {
607
+ name: 'title',
608
+ title: `t("title")`,
609
+ groupId: 'info',
610
+ options: {
611
+ sort: {
612
+ enabled: true,
613
+ },
614
+ filter: {
615
+ advance: {
616
+ enabled: true,
617
+ },
618
+ inline: {
619
+ enabled: true,
620
+ },
621
+ },
622
+ },
623
+ schema: {
624
+ dataType: 'string',
625
+ interface: {
626
+ type: AXPWidgetsCatalog.text,
627
+ },
628
+ },
629
+ },
630
+ {
631
+ name: 'disabled',
632
+ title: `t("active")`,
633
+ groupId: 'info',
634
+ options: {
635
+ filter: {
636
+ advance: {
637
+ enabled: true,
638
+ },
639
+ },
640
+ },
641
+ schema: {
642
+ dataType: 'boolean',
643
+ interface: {
644
+ type: AXPWidgetsCatalog.checkbox,
645
+ options: {
646
+ negative: true,
647
+ },
648
+ },
649
+ },
650
+ },
651
+ {
652
+ name: 'permissions',
653
+ title: `t("permissions", { scope: "${i18n}" })`,
654
+ groupId: 'permissions',
655
+ schema: {
656
+ dataType: 'string',
657
+ interface: {
658
+ type: AXPWidgetsCatalog.select,
659
+ options: {
660
+ dataSource: new AXDataSource({
661
+ load: async () => {
662
+ const permissions = await permissionService.permissions();
663
+ return {
664
+ items: permissions,
665
+ total: permissions.length,
666
+ };
667
+ },
668
+ pageSize: 1000,
669
+ key: 'name',
670
+ }),
671
+ valueField: 'name',
672
+ textField: 'title',
673
+ multiple: true,
674
+ },
675
+ },
676
+ },
677
+ },
678
+ ],
679
+ columns: [{ name: 'name' }, { name: 'title' }, { name: 'disabled' }],
680
+ commands: {
681
+ create: {
682
+ execute: async (data) => {
683
+ const res = await dataService.insertOne(data);
684
+ return { id: res };
685
+ },
686
+ },
687
+ delete: {
688
+ execute: async (id) => {
689
+ return await dataService.deleteOne(id);
690
+ },
691
+ },
692
+ update: {
693
+ execute: async (data) => {
694
+ return await dataService.updateOne(data.id, data);
695
+ },
696
+ },
697
+ },
698
+ queries: {
699
+ byKey: {
700
+ execute: async (id) => {
701
+ console.log('byKey', await dataService.getOne(id));
702
+ return await dataService.getOne(id);
703
+ },
704
+ type: AXPEntityQueryType.Single,
705
+ },
706
+ list: {
707
+ execute: async (e) => {
708
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
709
+ },
710
+ type: AXPEntityQueryType.List,
711
+ },
712
+ },
713
+ interfaces: {
714
+ master: {
715
+ create: {
716
+ sections: [
717
+ {
718
+ id: 'info',
719
+ },
720
+ {
721
+ id: 'permissions',
722
+ },
723
+ ],
724
+ properties: [
725
+ {
726
+ name: 'name',
727
+ layout: {
728
+ positions: {
729
+ lg: {
730
+ colSpan: 6,
731
+ },
732
+ },
733
+ },
734
+ },
735
+ {
736
+ name: 'title',
737
+ layout: {
738
+ positions: {
739
+ lg: {
740
+ colSpan: 6,
741
+ },
742
+ },
743
+ },
744
+ },
745
+ {
746
+ name: 'disabled',
747
+ layout: {
748
+ positions: {
749
+ lg: {
750
+ colSpan: 6,
751
+ },
752
+ },
753
+ },
754
+ },
755
+ {
756
+ name: 'permissions',
757
+ layout: {
758
+ positions: {
759
+ lg: {
760
+ colSpan: 12,
761
+ },
762
+ },
763
+ },
764
+ },
765
+ ],
766
+ },
767
+ update: {
768
+ sections: [
769
+ {
770
+ id: 'info',
771
+ },
772
+ {
773
+ id: 'permissions',
774
+ },
775
+ ],
776
+ properties: [
777
+ {
778
+ name: 'name',
779
+ layout: {
780
+ positions: {
781
+ lg: {
782
+ colSpan: 6,
783
+ },
784
+ },
785
+ },
786
+ },
787
+ {
788
+ name: 'title',
789
+ layout: {
790
+ positions: {
791
+ lg: {
792
+ colSpan: 6,
793
+ },
794
+ },
795
+ },
796
+ },
797
+ {
798
+ name: 'disabled',
799
+ layout: {
800
+ positions: {
801
+ lg: {
802
+ colSpan: 6,
803
+ },
804
+ },
805
+ },
806
+ },
807
+ {
808
+ name: 'permissions',
809
+ layout: {
810
+ positions: {
811
+ lg: {
812
+ colSpan: 12,
813
+ },
814
+ },
815
+ },
816
+ },
817
+ ],
818
+ },
819
+ single: {
820
+ title: '{{title}}',
821
+ sections: [
822
+ {
823
+ id: 'info',
824
+ layout: {
825
+ positions: {
826
+ lg: {
827
+ colSpan: 12,
828
+ },
829
+ },
830
+ },
831
+ },
832
+ {
833
+ id: 'permissions',
834
+ layout: {
835
+ positions: {
836
+ lg: {
837
+ colSpan: 12,
838
+ },
839
+ },
840
+ },
841
+ },
842
+ ],
843
+ properties: [
844
+ {
845
+ name: 'name',
846
+ layout: {
847
+ positions: {
848
+ lg: {
849
+ colSpan: 6,
850
+ },
851
+ },
852
+ },
853
+ },
854
+ {
855
+ name: 'title',
856
+ layout: {
857
+ positions: {
858
+ lg: {
859
+ colSpan: 6,
860
+ },
861
+ },
862
+ },
863
+ },
864
+ {
865
+ name: 'disabled',
866
+ layout: {
867
+ positions: {
868
+ lg: {
869
+ colSpan: 6,
870
+ },
871
+ },
872
+ },
873
+ },
874
+ {
875
+ name: 'permissions',
876
+ layout: {
877
+ positions: {
878
+ lg: {
879
+ colSpan: 12,
880
+ },
881
+ },
882
+ },
883
+ },
884
+ ],
885
+ actions: [],
886
+ },
887
+ list: {
888
+ actions: [
889
+ {
890
+ title: `t("create", { scope: "common" })`,
891
+ command: 'create-entity',
892
+ priority: 'primary',
893
+ type: 'create',
894
+ scope: AXPEntityCommandScope.TypeLevel,
895
+ },
896
+ {
897
+ title: 't("deleteItems", { scope: "common" })',
898
+ command: 'delete-entity',
899
+ priority: 'primary',
900
+ type: 'delete',
901
+ scope: AXPEntityCommandScope.Selected,
902
+ },
903
+ {
904
+ title: 't("detail", { scope: "common" })',
905
+ command: 'open-entity',
906
+ priority: 'secondary',
907
+ type: 'view',
908
+ scope: AXPEntityCommandScope.Individual,
909
+ },
910
+ {
911
+ title: 't("delete", { scope: "common" })',
912
+ command: 'delete-entity',
913
+ priority: 'secondary',
914
+ type: 'delete',
915
+ scope: AXPEntityCommandScope.Individual,
916
+ },
917
+ ],
918
+ views: [
919
+ {
920
+ name: 'all',
921
+ title: 't("allItem", { scope: "common" })',
922
+ fixed: true,
923
+ columns: [],
924
+ conditions: [],
925
+ sorts: [],
926
+ },
927
+ ],
928
+ },
929
+ },
930
+ },
931
+ };
932
+ return entityDef;
933
+ }
934
+
935
+ var roles_entity = /*#__PURE__*/Object.freeze({
936
+ __proto__: null,
937
+ factory: factory$1
938
+ });
939
+
940
+ class AXMSecurityManagementRolesEntityModule {
941
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementRolesEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
942
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementRolesEntityModule }); }
943
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementRolesEntityModule, providers: [
944
+ {
945
+ provide: AXMSecurityManagementRolesEntityService,
946
+ useClass: AXMSecurityManagementRolesEntityServiceImpl,
947
+ },
948
+ ] }); }
949
+ }
950
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementRolesEntityModule, decorators: [{
951
+ type: NgModule,
952
+ args: [{
953
+ imports: [],
954
+ exports: [],
955
+ declarations: [],
956
+ providers: [
957
+ {
958
+ provide: AXMSecurityManagementRolesEntityService,
959
+ useClass: AXMSecurityManagementRolesEntityServiceImpl,
960
+ },
961
+ ],
962
+ }]
963
+ }] });
964
+
965
+ class AXMSearchCommandProvider extends AXPSearchCommandProvider {
966
+ constructor() {
967
+ super(...arguments);
968
+ this.commands = [
969
+ {
970
+ id: 'create-security-user',
971
+ group: 'command',
972
+ title: 'New User',
973
+ icon: RootConfig.entities.users.icon,
974
+ description: 'Create a new user entity in the system.', // Added meaningful description
975
+ commands: {
976
+ 'create-entity': {
977
+ entity: `${RootConfig.module.name}.${RootConfig.entities.users.name}`,
978
+ },
979
+ },
980
+ },
981
+ {
982
+ id: 'create-security-role',
983
+ group: 'command',
984
+ title: 'New Security Role',
985
+ icon: RootConfig.entities.roles.icon,
986
+ description: 'Define a new security role to manage permissions.', // Added meaningful description
987
+ commands: {
988
+ 'create-entity': {
989
+ entity: `${RootConfig.module.name}.${RootConfig.entities.roles.name}`,
990
+ },
991
+ },
992
+ },
993
+ ];
994
+ }
995
+ }
996
+
997
+ class AXMSecurityManagementProfileEntityService {
998
+ }
999
+ class AXMSecurityManagementProfileEntityServiceImpl extends AXMSecurityManagementProfileEntityService {
1000
+ get() {
1001
+ return Promise.resolve({
1002
+ firstName: 'John',
1003
+ lastName: 'Doe',
1004
+ email: 'john.doe@example.com',
1005
+ phone: '123-456-7890',
1006
+ address: '123 Main St, Anytown, USA',
1007
+ city: 'Anytown',
1008
+ suburb: 'Downtown',
1009
+ });
1010
+ }
1011
+ update() {
1012
+ return Promise.resolve(null);
1013
+ }
1014
+ updateAvatar() {
1015
+ return Promise.resolve(null);
1016
+ }
1017
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementProfileEntityServiceImpl, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1018
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementProfileEntityServiceImpl }); }
1019
+ }
1020
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementProfileEntityServiceImpl, decorators: [{
1021
+ type: Injectable
1022
+ }] });
1023
+
1024
+ async function factory(injector) {
1025
+ const dataService = injector.get(AXMSecurityManagementProfileEntityService);
1026
+ const i18n = RootConfig.config.i18n;
1027
+ const entityDef = {
1028
+ module: RootConfig.module.name,
1029
+ name: RootConfig.entities.profile.name,
1030
+ source: '',
1031
+ title: RootConfig.entities.profile.title,
1032
+ formats: {
1033
+ individual: `t("profile", { scope: "${i18n}" })`,
1034
+ plural: RootConfig.entities.profile.title,
1035
+ },
1036
+ relatedEntities: [],
1037
+ groups: [
1038
+ {
1039
+ id: 'info',
1040
+ title: `t("profile", { scope: "${i18n}" })`,
1041
+ },
1042
+ {
1043
+ id: 'contact',
1044
+ title: `t("contactInformation", { scope: "${i18n}" })`,
1045
+ },
1046
+ {
1047
+ id: 'address',
1048
+ title: `t("addressInformation", { scope: "${i18n}" })`,
1049
+ },
1050
+ ],
1051
+ properties: [
1052
+ {
1053
+ name: 'firstName',
1054
+ title: `t("firstName", { scope: "${i18n}" })`,
1055
+ groupId: 'info',
1056
+ options: {
1057
+ sort: {
1058
+ enabled: true,
1059
+ },
1060
+ },
1061
+ schema: {
1062
+ dataType: 'string',
1063
+ interface: {
1064
+ type: AXPWidgetsCatalog.text,
1065
+ },
1066
+ },
1067
+ validations: [
1068
+ {
1069
+ rule: 'required',
1070
+ },
1071
+ ],
1072
+ },
1073
+ {
1074
+ name: 'lastName',
1075
+ title: `t("lastName", { scope: "${i18n}" })`,
1076
+ groupId: 'info',
1077
+ options: {
1078
+ sort: {
1079
+ enabled: true,
1080
+ },
1081
+ },
1082
+ schema: {
1083
+ dataType: 'string',
1084
+ interface: {
1085
+ type: AXPWidgetsCatalog.text,
1086
+ },
1087
+ },
1088
+ validations: [
1089
+ {
1090
+ rule: 'required',
1091
+ },
1092
+ ],
1093
+ },
1094
+ {
1095
+ name: 'email',
1096
+ title: `t("email", { scope: "${i18n}" })`,
1097
+ groupId: 'contact',
1098
+ options: {
1099
+ sort: {
1100
+ enabled: true,
1101
+ },
1102
+ },
1103
+ schema: {
1104
+ dataType: 'string',
1105
+ interface: {
1106
+ type: AXPWidgetsCatalog.contact,
1107
+ options: {
1108
+ type: 'email',
1109
+ hasLabel: false,
1110
+ },
1111
+ },
1112
+ },
1113
+ validations: [
1114
+ {
1115
+ rule: 'required',
1116
+ },
1117
+ {
1118
+ rule: 'email',
1119
+ },
1120
+ ],
1121
+ },
1122
+ {
1123
+ name: 'phone',
1124
+ title: `t("phone", { scope: "${i18n}" })`,
1125
+ groupId: 'contact',
1126
+ options: {
1127
+ sort: {
1128
+ enabled: true,
1129
+ },
1130
+ },
1131
+ schema: {
1132
+ dataType: 'string',
1133
+ interface: {
1134
+ type: AXPWidgetsCatalog.contact,
1135
+ options: {
1136
+ type: 'phone',
1137
+ hasLabel: false,
1138
+ },
1139
+ },
1140
+ },
1141
+ validations: [
1142
+ {
1143
+ rule: 'required',
1144
+ },
1145
+ ],
1146
+ },
1147
+ {
1148
+ name: 'address',
1149
+ title: `t("address", { scope: "${i18n}" })`,
1150
+ groupId: 'address',
1151
+ options: {
1152
+ sort: {
1153
+ enabled: true,
1154
+ },
1155
+ },
1156
+ schema: {
1157
+ dataType: 'string',
1158
+ interface: {
1159
+ type: AXPWidgetsCatalog.largeText,
1160
+ },
1161
+ },
1162
+ },
1163
+ {
1164
+ name: 'city',
1165
+ title: `t("city", { scope: "${i18n}" })`,
1166
+ groupId: 'address',
1167
+ options: {
1168
+ sort: {
1169
+ enabled: true,
1170
+ },
1171
+ },
1172
+ schema: {
1173
+ dataType: 'string',
1174
+ interface: {
1175
+ type: AXPWidgetsCatalog.text,
1176
+ },
1177
+ },
1178
+ },
1179
+ {
1180
+ name: 'suburb',
1181
+ title: `t("suburb", { scope: "${i18n}" })`,
1182
+ groupId: 'address',
1183
+ options: {
1184
+ sort: {
1185
+ enabled: true,
1186
+ },
1187
+ },
1188
+ schema: {
1189
+ dataType: 'string',
1190
+ interface: {
1191
+ type: AXPWidgetsCatalog.text,
1192
+ },
1193
+ },
1194
+ },
1195
+ ],
1196
+ columns: [{ name: 'firstName' }, { name: 'lastName' }, { name: 'email' }, { name: 'phone' }],
1197
+ commands: {
1198
+ create: {
1199
+ execute: async (data) => { },
1200
+ },
1201
+ delete: {
1202
+ execute: async (id) => { },
1203
+ },
1204
+ update: {
1205
+ execute: async (data) => {
1206
+ return await dataService.update(data.id, data);
1207
+ },
1208
+ },
1209
+ },
1210
+ queries: {
1211
+ byKey: {
1212
+ execute: async (id) => {
1213
+ return await dataService.get();
1214
+ },
1215
+ type: AXPEntityQueryType.Single,
1216
+ },
1217
+ list: {
1218
+ execute: async (e) => { },
1219
+ type: AXPEntityQueryType.List,
1220
+ },
1221
+ },
1222
+ interfaces: {
1223
+ master: {
1224
+ create: {
1225
+ sections: [
1226
+ {
1227
+ id: 'info',
1228
+ },
1229
+ {
1230
+ id: 'contact',
1231
+ },
1232
+ {
1233
+ id: 'address',
1234
+ },
1235
+ ],
1236
+ properties: [
1237
+ {
1238
+ name: 'firstName',
1239
+ layout: {
1240
+ positions: {
1241
+ lg: {
1242
+ colSpan: 6,
1243
+ },
1244
+ },
1245
+ },
1246
+ },
1247
+ {
1248
+ name: 'lastName',
1249
+ layout: {
1250
+ positions: {
1251
+ lg: {
1252
+ colSpan: 6,
1253
+ },
1254
+ },
1255
+ },
1256
+ },
1257
+ {
1258
+ name: 'email',
1259
+ layout: {
1260
+ positions: {
1261
+ lg: {
1262
+ colSpan: 6,
1263
+ },
1264
+ },
1265
+ },
1266
+ },
1267
+ {
1268
+ name: 'phone',
1269
+ layout: {
1270
+ positions: {
1271
+ lg: {
1272
+ colSpan: 6,
1273
+ },
1274
+ },
1275
+ },
1276
+ },
1277
+ {
1278
+ name: 'address',
1279
+ layout: {
1280
+ positions: {
1281
+ lg: {
1282
+ colSpan: 12,
1283
+ },
1284
+ },
1285
+ },
1286
+ },
1287
+ {
1288
+ name: 'city',
1289
+ layout: {
1290
+ positions: {
1291
+ lg: {
1292
+ colSpan: 6,
1293
+ },
1294
+ },
1295
+ },
1296
+ },
1297
+ {
1298
+ name: 'suburb',
1299
+ layout: {
1300
+ positions: {
1301
+ lg: {
1302
+ colSpan: 6,
1303
+ },
1304
+ },
1305
+ },
1306
+ },
1307
+ ],
1308
+ },
1309
+ update: {
1310
+ sections: [
1311
+ {
1312
+ id: 'info',
1313
+ },
1314
+ {
1315
+ id: 'contact',
1316
+ },
1317
+ {
1318
+ id: 'address',
1319
+ },
1320
+ ],
1321
+ properties: [
1322
+ {
1323
+ name: 'firstName',
1324
+ layout: {
1325
+ positions: {
1326
+ lg: {
1327
+ colSpan: 6,
1328
+ },
1329
+ },
1330
+ },
1331
+ },
1332
+ {
1333
+ name: 'lastName',
1334
+ layout: {
1335
+ positions: {
1336
+ lg: {
1337
+ colSpan: 6,
1338
+ },
1339
+ },
1340
+ },
1341
+ },
1342
+ {
1343
+ name: 'email',
1344
+ layout: {
1345
+ positions: {
1346
+ lg: {
1347
+ colSpan: 6,
1348
+ },
1349
+ },
1350
+ },
1351
+ },
1352
+ {
1353
+ name: 'phone',
1354
+ layout: {
1355
+ positions: {
1356
+ lg: {
1357
+ colSpan: 6,
1358
+ },
1359
+ },
1360
+ },
1361
+ },
1362
+ {
1363
+ name: 'address',
1364
+ layout: {
1365
+ positions: {
1366
+ lg: {
1367
+ colSpan: 12,
1368
+ },
1369
+ },
1370
+ },
1371
+ },
1372
+ {
1373
+ name: 'city',
1374
+ layout: {
1375
+ positions: {
1376
+ lg: {
1377
+ colSpan: 6,
1378
+ },
1379
+ },
1380
+ },
1381
+ },
1382
+ {
1383
+ name: 'suburb',
1384
+ layout: {
1385
+ positions: {
1386
+ lg: {
1387
+ colSpan: 6,
1388
+ },
1389
+ },
1390
+ },
1391
+ },
1392
+ ],
1393
+ },
1394
+ single: {
1395
+ title: '{{firstName}} {{lastName}}',
1396
+ sections: [
1397
+ {
1398
+ id: 'info',
1399
+ layout: {
1400
+ positions: {
1401
+ lg: {
1402
+ colSpan: 12,
1403
+ },
1404
+ },
1405
+ },
1406
+ },
1407
+ {
1408
+ id: 'contact',
1409
+ layout: {
1410
+ positions: {
1411
+ lg: {
1412
+ colSpan: 12,
1413
+ },
1414
+ },
1415
+ },
1416
+ },
1417
+ {
1418
+ id: 'address',
1419
+ layout: {
1420
+ positions: {
1421
+ lg: {
1422
+ colSpan: 12,
1423
+ },
1424
+ },
1425
+ },
1426
+ },
1427
+ ],
1428
+ properties: [
1429
+ {
1430
+ name: 'firstName',
1431
+ layout: {
1432
+ positions: {
1433
+ lg: {
1434
+ colSpan: 6,
1435
+ },
1436
+ },
1437
+ },
1438
+ },
1439
+ {
1440
+ name: 'lastName',
1441
+ layout: {
1442
+ positions: {
1443
+ lg: {
1444
+ colSpan: 6,
1445
+ },
1446
+ },
1447
+ },
1448
+ },
1449
+ {
1450
+ name: 'email',
1451
+ layout: {
1452
+ positions: {
1453
+ lg: {
1454
+ colSpan: 6,
1455
+ },
1456
+ },
1457
+ },
1458
+ },
1459
+ {
1460
+ name: 'phone',
1461
+ layout: {
1462
+ positions: {
1463
+ lg: {
1464
+ colSpan: 6,
1465
+ },
1466
+ },
1467
+ },
1468
+ },
1469
+ {
1470
+ name: 'address',
1471
+ layout: {
1472
+ positions: {
1473
+ lg: {
1474
+ colSpan: 12,
1475
+ },
1476
+ },
1477
+ },
1478
+ },
1479
+ {
1480
+ name: 'city',
1481
+ layout: {
1482
+ positions: {
1483
+ lg: {
1484
+ colSpan: 6,
1485
+ },
1486
+ },
1487
+ },
1488
+ },
1489
+ {
1490
+ name: 'suburb',
1491
+ layout: {
1492
+ positions: {
1493
+ lg: {
1494
+ colSpan: 6,
1495
+ },
1496
+ },
1497
+ },
1498
+ },
1499
+ ],
1500
+ actions: [],
1501
+ },
1502
+ list: {
1503
+ actions: [
1504
+ {
1505
+ title: `t("create", { scope: "common" })`,
1506
+ command: 'create-entity',
1507
+ priority: 'primary',
1508
+ type: 'create',
1509
+ scope: AXPEntityCommandScope.TypeLevel,
1510
+ },
1511
+ {
1512
+ title: 't("deleteItems", { scope: "common" })',
1513
+ command: 'delete-entity',
1514
+ priority: 'primary',
1515
+ type: 'delete',
1516
+ scope: AXPEntityCommandScope.Selected,
1517
+ },
1518
+ {
1519
+ title: 't("detail", { scope: "common" })',
1520
+ command: 'open-entity',
1521
+ priority: 'secondary',
1522
+ type: 'view',
1523
+ scope: AXPEntityCommandScope.Individual,
1524
+ },
1525
+ {
1526
+ title: 't("delete", { scope: "common" })',
1527
+ command: 'delete-entity',
1528
+ priority: 'secondary',
1529
+ type: 'delete',
1530
+ scope: AXPEntityCommandScope.Individual,
1531
+ },
1532
+ ],
1533
+ views: [
1534
+ {
1535
+ name: 'all',
1536
+ title: 't("allItem", { scope: "common" })',
1537
+ fixed: true,
1538
+ columns: [],
1539
+ conditions: [],
1540
+ sorts: [],
1541
+ },
1542
+ ],
1543
+ },
1544
+ },
1545
+ },
1546
+ };
1547
+ return entityDef;
1548
+ }
1549
+
1550
+ var profile_entity = /*#__PURE__*/Object.freeze({
1551
+ __proto__: null,
1552
+ factory: factory
1553
+ });
1554
+
1555
+ class AXMSecurityManagementProfileEntityModule {
1556
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementProfileEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1557
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementProfileEntityModule }); }
1558
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementProfileEntityModule, providers: [
1559
+ {
1560
+ provide: AXMSecurityManagementProfileEntityService,
1561
+ useClass: AXMSecurityManagementProfileEntityServiceImpl,
1562
+ },
1563
+ ] }); }
1564
+ }
1565
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementProfileEntityModule, decorators: [{
1566
+ type: NgModule,
1567
+ args: [{
1568
+ imports: [],
1569
+ exports: [],
1570
+ declarations: [],
1571
+ providers: [
1572
+ {
1573
+ provide: AXMSecurityManagementProfileEntityService,
1574
+ useClass: AXMSecurityManagementProfileEntityServiceImpl,
1575
+ },
1576
+ ],
1577
+ }]
1578
+ }] });
1579
+
1580
+ class AXMSecurityManagementModule {
1581
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1582
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementModule, imports: [AXMSecurityManagementProfileEntityModule, AXMSecurityManagementRolesEntityModule, AXMSecurityManagementUsersEntityModule] }); }
1583
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementModule, providers: [
1584
+ {
1585
+ provide: AXP_MENU_PROVIDER,
1586
+ useClass: AXMMenuProvider,
1587
+ multi: true,
1588
+ },
1589
+ {
1590
+ provide: AXP_ENTITY_DEFINITION_LOADER,
1591
+ useClass: AXMEntityProvider,
1592
+ multi: true,
1593
+ },
1594
+ {
1595
+ provide: AXP_SEARCH_PROVIDER,
1596
+ useClass: AXMSearchCommandProvider,
1597
+ multi: true,
1598
+ },
1599
+ ], imports: [AXMSecurityManagementProfileEntityModule, AXMSecurityManagementRolesEntityModule, AXMSecurityManagementUsersEntityModule] }); }
1600
+ }
1601
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMSecurityManagementModule, decorators: [{
1602
+ type: NgModule,
1603
+ args: [{
1604
+ imports: [AXMSecurityManagementProfileEntityModule, AXMSecurityManagementRolesEntityModule, AXMSecurityManagementUsersEntityModule],
1605
+ exports: [],
1606
+ declarations: [],
1607
+ providers: [
1608
+ {
1609
+ provide: AXP_MENU_PROVIDER,
1610
+ useClass: AXMMenuProvider,
1611
+ multi: true,
1612
+ },
1613
+ {
1614
+ provide: AXP_ENTITY_DEFINITION_LOADER,
1615
+ useClass: AXMEntityProvider,
1616
+ multi: true,
1617
+ },
1618
+ {
1619
+ provide: AXP_SEARCH_PROVIDER,
1620
+ useClass: AXMSearchCommandProvider,
1621
+ multi: true,
1622
+ },
1623
+ ]
1624
+ }]
1625
+ }] });
1626
+
1627
+ /**
1628
+ * Generated bundle index. Do not edit.
1629
+ */
1630
+
1631
+ export { AXMSecurityManagementModule, RootConfig };
1632
+ //# sourceMappingURL=acorex-modules-security-management.mjs.map