@acorex/connectivity 20.0.23 → 20.1.0
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/api/index.d.ts +62 -27
- package/fesm2022/acorex-connectivity-api.mjs +862 -152
- package/fesm2022/acorex-connectivity-api.mjs.map +1 -1
- package/fesm2022/acorex-connectivity-mock.mjs +1124 -748
- package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
- package/mock/index.d.ts +49 -26
- package/package.json +1 -1
@@ -2,14 +2,14 @@ import * as i1 from '@acorex/platform/core';
|
|
2
2
|
import { AXPSystemActionType, extractTextFromHtml, AXPDataGenerator, applySortArray, applyFilterArray, AXPActivityLogProvider, AXP_ACTIVITY_LOG_PROVIDER } from '@acorex/platform/core';
|
3
3
|
import Dexie from 'dexie';
|
4
4
|
import { transform, isEqual } from 'lodash';
|
5
|
-
import { AXPEntityDefinitionRegistryService, AXPEntityStorageService, AXP_DATA_SEEDER_TOKEN, AXPDataSeederService } from '@acorex/platform/layout/entity';
|
6
5
|
import * as i2 from '@acorex/platform/auth';
|
7
|
-
import { AXPSessionService, AXP_APPLICATION_LOADER, AXP_FEATURE_LOADER, AXP_PERMISSION_LOADER, AXP_TENANT_LOADER, AXPAuthModule } from '@acorex/platform/auth';
|
6
|
+
import { AXPSessionService, AXPAuthStrategy, AXP_APPLICATION_LOADER, AXP_FEATURE_LOADER, AXP_PERMISSION_LOADER, AXP_TENANT_LOADER, AXPAuthModule, AXPSessionContext } from '@acorex/platform/auth';
|
7
|
+
import { AXPLockService, AXPFileStorageStatus, AXPFileStorageService, AXPRegionalService, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
|
8
|
+
import { AXPEntityDefinitionRegistryService, AXPEntityStorageService, AXP_DATA_SEEDER_TOKEN, AXPDataSeederService } from '@acorex/platform/layout/entity';
|
8
9
|
import * as i0 from '@angular/core';
|
9
10
|
import { inject, Injectable, NgModule } from '@angular/core';
|
10
|
-
import { AXPLockService, AXPFileStorageStatus, AXPFileStorageService, AXPRegionalService, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
|
11
11
|
import { AXSafePipe } from '@acorex/core/pipes';
|
12
|
-
import { RootConfig, AXMUsersEntityService
|
12
|
+
import { RootConfig, AXMUsersEntityService } from '@acorex/modules/security-management';
|
13
13
|
import { AXMFormTemplateTypes, RootConfig as RootConfig$1, AXMFormTemplateManagementCategoryEntityServiceImpl, AXMFormTemplateManagementCategoryEntityService, AXMPermissionsKeys } from '@acorex/modules/form-template-management';
|
14
14
|
import { AXMOrganizationNodeType, RootConfig as RootConfig$2 } from '@acorex/modules/organization-management';
|
15
15
|
import { AXPRuntimeModule, provideCommandSetups, AXPQueryService } from '@acorex/platform/runtime';
|
@@ -24,6 +24,7 @@ import { AXMPermissionsKeys as AXMPermissionsKeys$1, RootConfig as RootConfig$e
|
|
24
24
|
import { RootConfig as RootConfig$7, AXMMetaDataDefinitionCategoryServiceImpl, AXMMetaDataDefinitionService, AXMMetaDataDefinitionCategoryService } from '@acorex/modules/platform-management';
|
25
25
|
import { AXFileService } from '@acorex/core/file';
|
26
26
|
import { RootConfig as RootConfig$8 } from '@acorex/modules/text-template-management';
|
27
|
+
import { AXMSessionStatusTypes, AXMDeviceSessionsServiceImpl, AXMDeviceSessionsService } from '@acorex/modules/auth';
|
27
28
|
import { RootConfig as RootConfig$9 } from '@acorex/modules/scheduler-job-management';
|
28
29
|
import { APPLICATION_SOURCE_NAME, MODULE_SOURCE_NAME, ENTITY_SOURCE_NAME, FEATURE_SOURCE_NAME, PERMISSION_SOURCE_NAME, PROPERTY_SOURCE_NAME, AXPModuleDesignerService } from '@acorex/modules/application-management';
|
29
30
|
import { RootConfig as RootConfig$b } from '@acorex/modules/training-management';
|
@@ -33,7 +34,8 @@ import { RootConfig as RootConfig$f } from '@acorex/modules/log-management';
|
|
33
34
|
import { AXTranslationService } from '@acorex/core/translation';
|
34
35
|
import { RootConfig as RootConfig$g } from '@acorex/modules/calendar-management';
|
35
36
|
import { RootConfig as RootConfig$h } from '@acorex/modules/data-management';
|
36
|
-
import {
|
37
|
+
import { JwtUtil } from '@acorex/connectivity/api';
|
38
|
+
import { Router } from '@angular/router';
|
37
39
|
|
38
40
|
class AXPDexieEntityStorageService extends Dexie {
|
39
41
|
constructor() {
|
@@ -59,31 +61,31 @@ class AXPDexieEntityStorageService extends Dexie {
|
|
59
61
|
const hasId = newArray.length > 0 && typeof newArray[0] === 'object' && newArray[0] !== null && 'id' in newArray[0];
|
60
62
|
if (hasId) {
|
61
63
|
// Compare by id for objects with id
|
62
|
-
const added = newArray.filter(item => !oldArray.some(oldItem => oldItem.id === item.id));
|
63
|
-
const removed = oldArray.filter(item => !newArray.some(newItem => newItem.id === item.id));
|
64
|
+
const added = newArray.filter((item) => !oldArray.some((oldItem) => oldItem.id === item.id));
|
65
|
+
const removed = oldArray.filter((item) => !newArray.some((newItem) => newItem.id === item.id));
|
64
66
|
result[key] = {
|
65
67
|
oldValue: oldObj[key],
|
66
68
|
newValue: value,
|
67
69
|
added,
|
68
|
-
removed
|
70
|
+
removed,
|
69
71
|
};
|
70
72
|
}
|
71
73
|
else {
|
72
74
|
// For primitive arrays or objects without id, use deep comparison
|
73
|
-
const added = newArray.filter(item => !oldArray.some(oldItem => isEqual(item, oldItem)));
|
74
|
-
const removed = oldArray.filter(item => !newArray.some(newItem => isEqual(item, newItem)));
|
75
|
+
const added = newArray.filter((item) => !oldArray.some((oldItem) => isEqual(item, oldItem)));
|
76
|
+
const removed = oldArray.filter((item) => !newArray.some((newItem) => isEqual(item, newItem)));
|
75
77
|
result[key] = {
|
76
78
|
oldValue: oldObj[key],
|
77
79
|
newValue: value,
|
78
80
|
added,
|
79
|
-
removed
|
81
|
+
removed,
|
80
82
|
};
|
81
83
|
}
|
82
84
|
}
|
83
85
|
else {
|
84
86
|
result[key] = {
|
85
87
|
oldValue: oldObj[key],
|
86
|
-
newValue: value
|
88
|
+
newValue: value,
|
87
89
|
};
|
88
90
|
}
|
89
91
|
}
|
@@ -111,7 +113,7 @@ class AXPDexieEntityStorageService extends Dexie {
|
|
111
113
|
let transformedChanges = {};
|
112
114
|
if (changeType === 'update' && changes && entityConfig) {
|
113
115
|
for (const [key, value] of Object.entries(changes)) {
|
114
|
-
const property = entityConfig.properties.find(p => p.name === key);
|
116
|
+
const property = entityConfig.properties.find((p) => p.name === key);
|
115
117
|
if (property && property.schema.interface) {
|
116
118
|
const widgetType = property.schema.interface.type;
|
117
119
|
// Handle different widget types
|
@@ -120,13 +122,13 @@ class AXPDexieEntityStorageService extends Dexie {
|
|
120
122
|
if (value.added?.length) {
|
121
123
|
actions.push({
|
122
124
|
type: AXPSystemActionType.Upload,
|
123
|
-
description: `"${value.added?.map(item => item.name).join(', ')}"
|
125
|
+
description: `"${value.added?.map((item) => item.name).join(', ')}"`,
|
124
126
|
});
|
125
127
|
}
|
126
128
|
if (value.removed?.length) {
|
127
129
|
actions.push({
|
128
130
|
type: AXPSystemActionType.Delete,
|
129
|
-
description: `"${value.removed?.map(item => item.name).join(', ')}"
|
131
|
+
description: `"${value.removed?.map((item) => item.name).join(', ')}"`,
|
130
132
|
});
|
131
133
|
}
|
132
134
|
transformedChanges[key] = {
|
@@ -139,7 +141,7 @@ class AXPDexieEntityStorageService extends Dexie {
|
|
139
141
|
const safeValue = extractTextFromHtml(value.newValue);
|
140
142
|
actions.push({
|
141
143
|
type: AXPSystemActionType.Update,
|
142
|
-
description: `${property.title} to "${safeValue.length > 100 ? safeValue.slice(0, 30) + '...' : safeValue}"
|
144
|
+
description: `${property.title} to "${safeValue.length > 100 ? safeValue.slice(0, 30) + '...' : safeValue}"`,
|
143
145
|
});
|
144
146
|
transformedChanges[key] = {
|
145
147
|
...value,
|
@@ -149,7 +151,7 @@ class AXPDexieEntityStorageService extends Dexie {
|
|
149
151
|
case 'text-editor':
|
150
152
|
actions.push({
|
151
153
|
type: AXPSystemActionType.Update,
|
152
|
-
description: `${property.title} to "${value.newValue.length > 100 ? value.newValue.slice(0, 30) + '...' : value.newValue}"
|
154
|
+
description: `${property.title} to "${value.newValue.length > 100 ? value.newValue.slice(0, 30) + '...' : value.newValue}"`,
|
153
155
|
});
|
154
156
|
transformedChanges[key] = {
|
155
157
|
...value,
|
@@ -160,7 +162,7 @@ class AXPDexieEntityStorageService extends Dexie {
|
|
160
162
|
//TODO @ a.b not working
|
161
163
|
actions.push({
|
162
164
|
type: AXPSystemActionType.Update,
|
163
|
-
description: `${property.title}
|
165
|
+
description: `${property.title}`,
|
164
166
|
});
|
165
167
|
transformedChanges[key] = {
|
166
168
|
...value,
|
@@ -186,13 +188,13 @@ class AXPDexieEntityStorageService extends Dexie {
|
|
186
188
|
},
|
187
189
|
changeType: changeType,
|
188
190
|
changes: actions,
|
189
|
-
data: { ...entity }
|
191
|
+
data: { ...entity },
|
190
192
|
};
|
191
193
|
// Add history record
|
192
194
|
await this.table('entity-store').add({
|
193
195
|
...data,
|
194
196
|
entityName: historyEntityName,
|
195
|
-
isCurrent: true
|
197
|
+
isCurrent: true,
|
196
198
|
});
|
197
199
|
}
|
198
200
|
//#region ---- Initialization Methods ----
|
@@ -207,23 +209,18 @@ class AXPDexieEntityStorageService extends Dexie {
|
|
207
209
|
* bulk-inserted.
|
208
210
|
*/
|
209
211
|
async initial(entityName, collection, options = { mergeType: 'merge', uniqueKeys: ['name'] }) {
|
210
|
-
// Return early when collection is empty
|
211
212
|
if (!collection?.length) {
|
212
213
|
return collection;
|
213
214
|
}
|
214
|
-
// Build existence check based on provided unique keys rather than hard-coded `id`
|
215
|
-
const firstItem = collection[0];
|
216
215
|
const uniqueKeys = options.uniqueKeys;
|
217
216
|
let exists = 0;
|
218
|
-
if (await this.table('entity-store').where({ entityName }).count() > 0) {
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
.filter((rec) => rec[key] === firstItem[key])
|
223
|
-
.first();
|
217
|
+
if ((await this.table('entity-store').where({ entityName }).count()) > 0) {
|
218
|
+
const allRecords = await this.table('entity-store').where({ entityName }).toArray();
|
219
|
+
for (const item of collection) {
|
220
|
+
const existingRecord = allRecords.find((rec) => uniqueKeys.every((key) => rec[key] === item[key]));
|
224
221
|
if (existingRecord) {
|
225
222
|
exists = 1;
|
226
|
-
break;
|
223
|
+
break;
|
227
224
|
}
|
228
225
|
}
|
229
226
|
}
|
@@ -294,15 +291,16 @@ class AXPDexieEntityStorageService extends Dexie {
|
|
294
291
|
items: result.slice(request.skip, (request.skip ?? 0) + (request.take ?? 0)),
|
295
292
|
});
|
296
293
|
}
|
297
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
298
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
294
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPDexieEntityStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
295
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPDexieEntityStorageService }); }
|
299
296
|
}
|
300
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPDexieEntityStorageService, decorators: [{
|
301
298
|
type: Injectable
|
302
299
|
}], ctorParameters: () => [] });
|
303
300
|
|
304
|
-
class MOCKStrategy {
|
301
|
+
class MOCKStrategy extends AXPAuthStrategy {
|
305
302
|
constructor() {
|
303
|
+
super();
|
306
304
|
this.entityRegistery = inject(AXPEntityDefinitionRegistryService);
|
307
305
|
}
|
308
306
|
get name() {
|
@@ -381,10 +379,13 @@ class MOCKStrategy {
|
|
381
379
|
},
|
382
380
|
};
|
383
381
|
}
|
384
|
-
|
385
|
-
|
382
|
+
async startAuthorizationFlow(tenantId, applicationId) {
|
383
|
+
throw new Error('startAuthorizationFlow is not implemented for this strategy');
|
384
|
+
}
|
385
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: MOCKStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
386
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: MOCKStrategy }); }
|
386
387
|
}
|
387
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
388
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: MOCKStrategy, decorators: [{
|
388
389
|
type: Injectable
|
389
390
|
}], ctorParameters: () => [] });
|
390
391
|
|
@@ -487,10 +488,10 @@ class AXPFormTemplateCategoryDataSeeder {
|
|
487
488
|
await this.storageService.initial(`${RootConfig$1.module.name}.${RootConfig$1.entities.category.name}`, TEMPLATE_CATEGORIES);
|
488
489
|
await this.storageService.initial(`${RootConfig$1.module.name}.${RootConfig$1.entities.template.name}`, TEMPLATE_FORM_TEMPLATES);
|
489
490
|
}
|
490
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
491
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
491
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPFormTemplateCategoryDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
492
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPFormTemplateCategoryDataSeeder }); }
|
492
493
|
}
|
493
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPFormTemplateCategoryDataSeeder, decorators: [{
|
494
495
|
type: Injectable
|
495
496
|
}] });
|
496
497
|
|
@@ -507,14 +508,9 @@ class AXCTemplateCategoryService extends AXMFormTemplateManagementCategoryEntity
|
|
507
508
|
}
|
508
509
|
|
509
510
|
class AXCFormTemplateManagementMockModule {
|
510
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
511
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
512
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
513
|
-
// {
|
514
|
-
// provide: AXP_WIDGET_DATASOURCE_PROVIDER,
|
515
|
-
// useClass: AXPMockWidgetDataSourceProvider,
|
516
|
-
// multi: true,
|
517
|
-
// },
|
511
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCFormTemplateManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
512
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCFormTemplateManagementMockModule }); }
|
513
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCFormTemplateManagementMockModule, providers: [
|
518
514
|
{
|
519
515
|
provide: AXP_DATA_SEEDER_TOKEN,
|
520
516
|
useClass: AXPFormTemplateCategoryDataSeeder,
|
@@ -526,18 +522,13 @@ class AXCFormTemplateManagementMockModule {
|
|
526
522
|
},
|
527
523
|
] }); }
|
528
524
|
}
|
529
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
525
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCFormTemplateManagementMockModule, decorators: [{
|
530
526
|
type: NgModule,
|
531
527
|
args: [{
|
532
528
|
imports: [],
|
533
529
|
exports: [],
|
534
530
|
declarations: [],
|
535
531
|
providers: [
|
536
|
-
// {
|
537
|
-
// provide: AXP_WIDGET_DATASOURCE_PROVIDER,
|
538
|
-
// useClass: AXPMockWidgetDataSourceProvider,
|
539
|
-
// multi: true,
|
540
|
-
// },
|
541
532
|
{
|
542
533
|
provide: AXP_DATA_SEEDER_TOKEN,
|
543
534
|
useClass: AXPFormTemplateCategoryDataSeeder,
|
@@ -551,6 +542,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
551
542
|
}]
|
552
543
|
}] });
|
553
544
|
|
545
|
+
function generateEmploymentType() {
|
546
|
+
const uuid = AXPDataGenerator.uuid;
|
547
|
+
const employmentTypes = [
|
548
|
+
{
|
549
|
+
id: uuid(),
|
550
|
+
title: 'Full-Time',
|
551
|
+
description: 'An employment category for full-time engagements.',
|
552
|
+
},
|
553
|
+
{
|
554
|
+
id: uuid(),
|
555
|
+
title: 'Part-Time',
|
556
|
+
description: 'An employment category for part-time work schedules.',
|
557
|
+
},
|
558
|
+
{
|
559
|
+
id: uuid(),
|
560
|
+
title: 'Contract',
|
561
|
+
description: 'An employment type based on fixed-term contractual agreements.',
|
562
|
+
},
|
563
|
+
{
|
564
|
+
id: uuid(),
|
565
|
+
title: 'Internship',
|
566
|
+
description: 'An employment type designed for internship programs.',
|
567
|
+
},
|
568
|
+
{
|
569
|
+
id: uuid(),
|
570
|
+
title: 'Freelance',
|
571
|
+
description: 'An employment type for freelance and project-based work.',
|
572
|
+
},
|
573
|
+
];
|
574
|
+
return employmentTypes;
|
575
|
+
}
|
576
|
+
const EMPLOYMENT_TYPES_MOCK = generateEmploymentType();
|
577
|
+
|
554
578
|
const SOFTWARE_COMPANY_ORGANIZATION = {
|
555
579
|
id: '1',
|
556
580
|
title: 'Tech Innovators Inc.',
|
@@ -1316,7 +1340,7 @@ function generateResponsibility() {
|
|
1316
1340
|
description: '',
|
1317
1341
|
id: AXPDataGenerator.uuid(),
|
1318
1342
|
title: responsibility,
|
1319
|
-
|
1343
|
+
categoriesId: [parentObj.id],
|
1320
1344
|
});
|
1321
1345
|
});
|
1322
1346
|
}
|
@@ -1433,10 +1457,11 @@ function generateSkill() {
|
|
1433
1457
|
const parentObj = skillsCategory.find((el) => el.title === parent);
|
1434
1458
|
if (parentObj) {
|
1435
1459
|
children.forEach((skill) => {
|
1436
|
-
skills.push({ description: '', id: AXPDataGenerator.uuid(), title: skill,
|
1460
|
+
skills.push({ description: '', id: AXPDataGenerator.uuid(), title: skill, categoriesId: [parentObj.id] });
|
1437
1461
|
});
|
1438
1462
|
}
|
1439
1463
|
});
|
1464
|
+
console.log('SKILLS List:', skills);
|
1440
1465
|
return skills;
|
1441
1466
|
}
|
1442
1467
|
const SKILLS_MOCK = generateSkill();
|
@@ -1555,11 +1580,11 @@ function generatePosition() {
|
|
1555
1580
|
description: '',
|
1556
1581
|
id: AXPDataGenerator.uuid(),
|
1557
1582
|
title: position,
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1561
|
-
|
1562
|
-
|
1583
|
+
categoriesId: [parentObj.id],
|
1584
|
+
skillsId: [SKILLS_MOCK[1].id],
|
1585
|
+
skills: [SKILLS_MOCK[1]],
|
1586
|
+
responsibilitiesId: [RESPONSIBILITIES_MOCK[0].id],
|
1587
|
+
responsibilities: [RESPONSIBILITIES_MOCK[0]],
|
1563
1588
|
});
|
1564
1589
|
});
|
1565
1590
|
}
|
@@ -1680,9 +1705,9 @@ function generateRole() {
|
|
1680
1705
|
description: '',
|
1681
1706
|
id: AXPDataGenerator.uuid(),
|
1682
1707
|
title: role,
|
1683
|
-
|
1684
|
-
|
1685
|
-
|
1708
|
+
categoriesId: [parentObj.id],
|
1709
|
+
skillsId: [SKILLS_MOCK[2].id],
|
1710
|
+
skills: [SKILLS_MOCK[2]],
|
1686
1711
|
});
|
1687
1712
|
});
|
1688
1713
|
}
|
@@ -1858,33 +1883,7 @@ class AXCOrganizationManagementDataSeeder {
|
|
1858
1883
|
// Role
|
1859
1884
|
await this.storageService.initial(RootConfig$2.entities.role.source, ROLES_MOCK);
|
1860
1885
|
// Employment Types
|
1861
|
-
await this.storageService.initial(RootConfig$2.entities.employmentType.source,
|
1862
|
-
{
|
1863
|
-
id: uuid(),
|
1864
|
-
title: 'Full-Time',
|
1865
|
-
description: 'An employment category for full-time engagements.',
|
1866
|
-
},
|
1867
|
-
{
|
1868
|
-
id: uuid(),
|
1869
|
-
title: 'Part-Time',
|
1870
|
-
description: 'An employment category for part-time work schedules.',
|
1871
|
-
},
|
1872
|
-
{
|
1873
|
-
id: uuid(),
|
1874
|
-
title: 'Contract',
|
1875
|
-
description: 'An employment type based on fixed-term contractual agreements.',
|
1876
|
-
},
|
1877
|
-
{
|
1878
|
-
id: uuid(),
|
1879
|
-
title: 'Internship',
|
1880
|
-
description: 'An employment type designed for internship programs.',
|
1881
|
-
},
|
1882
|
-
{
|
1883
|
-
id: uuid(),
|
1884
|
-
title: 'Freelance',
|
1885
|
-
description: 'An employment type for freelance and project-based work.',
|
1886
|
-
},
|
1887
|
-
]);
|
1886
|
+
await this.storageService.initial(RootConfig$2.entities.employmentType.source, EMPLOYMENT_TYPES_MOCK);
|
1888
1887
|
// Teams
|
1889
1888
|
await this.storageService.initial(RootConfig$2.entities.team.source, [
|
1890
1889
|
{
|
@@ -1941,21 +1940,12 @@ class AXCOrganizationManagementDataSeeder {
|
|
1941
1940
|
birthDate: new Date('1985-02-15'),
|
1942
1941
|
employeeCode: 'EMP002',
|
1943
1942
|
email: 'jane.smith@example.com',
|
1944
|
-
|
1945
|
-
|
1946
|
-
|
1947
|
-
|
1948
|
-
|
1949
|
-
|
1950
|
-
id: uuid(),
|
1951
|
-
title: 'Backend Developer',
|
1952
|
-
description: 'A role responsible for server-side logic and integration with databases.',
|
1953
|
-
},
|
1954
|
-
employmentType: {
|
1955
|
-
id: uuid(),
|
1956
|
-
title: 'Full-Time',
|
1957
|
-
description: 'An employment category for full-time engagements.',
|
1958
|
-
},
|
1943
|
+
rolesId: [ROLES_MOCK[0].id],
|
1944
|
+
roles: [ROLES_MOCK[0]],
|
1945
|
+
positionsId: [POSITIONS_MOCK[0].id],
|
1946
|
+
positions: [POSITIONS_MOCK[0]],
|
1947
|
+
employmentTypesId: [EMPLOYMENT_TYPES_MOCK[0].id],
|
1948
|
+
employmentTypes: [EMPLOYMENT_TYPES_MOCK[0]],
|
1959
1949
|
hireDate: new Date('2010-06-01'),
|
1960
1950
|
},
|
1961
1951
|
{
|
@@ -1965,21 +1955,12 @@ class AXCOrganizationManagementDataSeeder {
|
|
1965
1955
|
birthDate: new Date('1978-03-22'),
|
1966
1956
|
employeeCode: 'EMP003',
|
1967
1957
|
email: 'michael.johnson@example.com',
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1971
|
-
|
1972
|
-
|
1973
|
-
|
1974
|
-
id: uuid(),
|
1975
|
-
title: 'Sales Manager',
|
1976
|
-
description: 'A leadership position overseeing sales strategies and team performance.',
|
1977
|
-
},
|
1978
|
-
employmentType: {
|
1979
|
-
id: uuid(),
|
1980
|
-
title: 'Full-Time',
|
1981
|
-
description: 'An employment category for full-time engagements.',
|
1982
|
-
},
|
1958
|
+
rolesId: [ROLES_MOCK[1].id],
|
1959
|
+
roles: [ROLES_MOCK[1]],
|
1960
|
+
positionsId: [POSITIONS_MOCK[1].id],
|
1961
|
+
positions: [POSITIONS_MOCK[1]],
|
1962
|
+
employmentTypesId: [EMPLOYMENT_TYPES_MOCK[1]],
|
1963
|
+
employmentTypes: [EMPLOYMENT_TYPES_MOCK[1]],
|
1983
1964
|
hireDate: new Date('2005-09-12'),
|
1984
1965
|
},
|
1985
1966
|
{
|
@@ -1989,21 +1970,12 @@ class AXCOrganizationManagementDataSeeder {
|
|
1989
1970
|
birthDate: new Date('1992-04-10'),
|
1990
1971
|
employeeCode: 'EMP004',
|
1991
1972
|
email: 'emma.davis@example.com',
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
1995
|
-
|
1996
|
-
|
1997
|
-
|
1998
|
-
id: uuid(),
|
1999
|
-
title: 'Call Center Representative',
|
2000
|
-
description: 'A position dedicated to managing inbound and outbound customer calls.',
|
2001
|
-
},
|
2002
|
-
employmentType: {
|
2003
|
-
id: uuid(),
|
2004
|
-
title: 'Part-Time',
|
2005
|
-
description: 'An employment category for part-time work schedules.',
|
2006
|
-
},
|
1973
|
+
rolesId: [ROLES_MOCK[2].id],
|
1974
|
+
roles: [ROLES_MOCK[2]],
|
1975
|
+
positionsId: [POSITIONS_MOCK[2].id],
|
1976
|
+
positions: [POSITIONS_MOCK[2]],
|
1977
|
+
employmentTypesId: [EMPLOYMENT_TYPES_MOCK[2].id],
|
1978
|
+
employmentTypes: [EMPLOYMENT_TYPES_MOCK[2]],
|
2007
1979
|
hireDate: new Date('2018-01-15'),
|
2008
1980
|
},
|
2009
1981
|
{
|
@@ -2013,21 +1985,12 @@ class AXCOrganizationManagementDataSeeder {
|
|
2013
1985
|
birthDate: new Date('1980-09-18'),
|
2014
1986
|
employeeCode: 'EMP009',
|
2015
1987
|
email: 'robert.wilson@example.com',
|
2016
|
-
|
2017
|
-
|
2018
|
-
|
2019
|
-
|
2020
|
-
|
2021
|
-
|
2022
|
-
id: uuid(),
|
2023
|
-
title: 'Technical Support Specialist',
|
2024
|
-
description: 'A role providing specialized technical assistance and problem resolution.',
|
2025
|
-
},
|
2026
|
-
employmentType: {
|
2027
|
-
id: uuid(),
|
2028
|
-
title: 'Contract',
|
2029
|
-
description: 'An employment type based on fixed-term contractual agreements.',
|
2030
|
-
},
|
1988
|
+
rolesId: [ROLES_MOCK[3].id],
|
1989
|
+
roles: [ROLES_MOCK[3]],
|
1990
|
+
positionsId: [POSITIONS_MOCK[3].id],
|
1991
|
+
positions: [POSITIONS_MOCK[3]],
|
1992
|
+
employmentTypesId: [EMPLOYMENT_TYPES_MOCK[3].id],
|
1993
|
+
employmentTypes: [EMPLOYMENT_TYPES_MOCK[3]],
|
2031
1994
|
hireDate: new Date('2012-03-05'),
|
2032
1995
|
},
|
2033
1996
|
{
|
@@ -2037,21 +2000,12 @@ class AXCOrganizationManagementDataSeeder {
|
|
2037
2000
|
birthDate: new Date('1987-10-29'),
|
2038
2001
|
employeeCode: 'EMP010',
|
2039
2002
|
email: 'lisa.brown@example.com',
|
2040
|
-
|
2041
|
-
|
2042
|
-
|
2043
|
-
|
2044
|
-
|
2045
|
-
|
2046
|
-
id: uuid(),
|
2047
|
-
title: 'Sales Representative',
|
2048
|
-
description: 'A role tasked with building client relationships and closing sales deals.',
|
2049
|
-
},
|
2050
|
-
employmentType: {
|
2051
|
-
id: uuid(),
|
2052
|
-
title: 'Internship',
|
2053
|
-
description: 'An employment type designed for internship programs.',
|
2054
|
-
},
|
2003
|
+
rolesId: [ROLES_MOCK[4].id],
|
2004
|
+
roles: [ROLES_MOCK[4]],
|
2005
|
+
positionsId: [POSITIONS_MOCK[4].id],
|
2006
|
+
positions: [POSITIONS_MOCK[4]],
|
2007
|
+
employmentTypesId: [EMPLOYMENT_TYPES_MOCK[4].id],
|
2008
|
+
employmentTypes: [EMPLOYMENT_TYPES_MOCK[4]],
|
2055
2009
|
hireDate: new Date('2014-07-11'),
|
2056
2010
|
},
|
2057
2011
|
]);
|
@@ -2072,17 +2026,17 @@ class AXCOrganizationManagementDataSeeder {
|
|
2072
2026
|
// Responsibility
|
2073
2027
|
await this.storageService.initial(RootConfig$2.entities.responsibility.source, RESPONSIBILITIES_MOCK);
|
2074
2028
|
}
|
2075
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
2076
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
2029
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCOrganizationManagementDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
2030
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCOrganizationManagementDataSeeder }); }
|
2077
2031
|
}
|
2078
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
2032
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCOrganizationManagementDataSeeder, decorators: [{
|
2079
2033
|
type: Injectable
|
2080
2034
|
}] });
|
2081
2035
|
|
2082
2036
|
class AXCFOrganizationManagementMockModule {
|
2083
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
2084
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
2085
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
2037
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCFOrganizationManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
2038
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCFOrganizationManagementMockModule }); }
|
2039
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCFOrganizationManagementMockModule, providers: [
|
2086
2040
|
{
|
2087
2041
|
provide: AXP_DATA_SEEDER_TOKEN,
|
2088
2042
|
useClass: AXCOrganizationManagementDataSeeder,
|
@@ -2090,7 +2044,7 @@ class AXCFOrganizationManagementMockModule {
|
|
2090
2044
|
},
|
2091
2045
|
] }); }
|
2092
2046
|
}
|
2093
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
2047
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCFOrganizationManagementMockModule, decorators: [{
|
2094
2048
|
type: NgModule,
|
2095
2049
|
args: [{
|
2096
2050
|
imports: [],
|
@@ -2244,6 +2198,7 @@ const commonParameterGroups = [
|
|
2244
2198
|
description: 'Beginning of the reporting period',
|
2245
2199
|
widget: {
|
2246
2200
|
type: AXPWidgetsList.Editors.DateTimeBox,
|
2201
|
+
defaultValue: '{{ date.today() }}',
|
2247
2202
|
options: {
|
2248
2203
|
format: 'date',
|
2249
2204
|
validations: [
|
@@ -2260,6 +2215,7 @@ const commonParameterGroups = [
|
|
2260
2215
|
description: 'End of the reporting period',
|
2261
2216
|
widget: {
|
2262
2217
|
type: AXPWidgetsList.Editors.DateTimeBox,
|
2218
|
+
defaultValue: '{{ date.tomorrow() }}',
|
2263
2219
|
options: {
|
2264
2220
|
format: 'date',
|
2265
2221
|
}
|
@@ -2279,16 +2235,7 @@ const commonParameterGroups = [
|
|
2279
2235
|
widget: {
|
2280
2236
|
type: AXPWidgetsList.Editors.SelectBox,
|
2281
2237
|
options: {
|
2282
|
-
dataSource:
|
2283
|
-
'All Departments',
|
2284
|
-
'Finance',
|
2285
|
-
'Operations',
|
2286
|
-
'Human Resources',
|
2287
|
-
'Sales',
|
2288
|
-
'Marketing',
|
2289
|
-
'IT',
|
2290
|
-
'Legal'
|
2291
|
-
]
|
2238
|
+
dataSource: 'departments'
|
2292
2239
|
},
|
2293
2240
|
},
|
2294
2241
|
},
|
@@ -2431,7 +2378,7 @@ const whsIncidentParameterGroups = [
|
|
2431
2378
|
widget: {
|
2432
2379
|
type: AXPWidgetsList.Editors.SelectBox,
|
2433
2380
|
options: {
|
2434
|
-
dataSource:
|
2381
|
+
dataSource: 'departments',
|
2435
2382
|
multiple: true
|
2436
2383
|
}
|
2437
2384
|
}
|
@@ -2955,75 +2902,227 @@ function generateColumnsForReportType(reportTitle) {
|
|
2955
2902
|
const titleLower = reportTitle.toLowerCase();
|
2956
2903
|
if (titleLower.includes('balance sheet') || titleLower.includes('financial')) {
|
2957
2904
|
return [
|
2958
|
-
{ field: 'account', title: 'Account', visible: true, width: 150, align: 'left' },
|
2959
|
-
{ field: 'accountCode', title: 'Code', visible: true, width: 100, align: 'left' },
|
2960
|
-
{ field: 'currentAmount', title: 'Current Amount', visible: true, width: 120, align: 'right' },
|
2961
|
-
{ field: 'previousAmount', title: 'Previous Amount', visible: true, width: 120, align: 'right' },
|
2962
|
-
{ field: 'variance', title: 'Variance', visible: true, width: 100, align: 'right' },
|
2963
|
-
{ field: 'percentage', title: 'Change %', visible: true, width: 80, align: 'right' },
|
2964
|
-
{ field: 'category', title: 'Category', visible: true, width: 100, align: 'left' },
|
2905
|
+
{ field: 'account', title: 'Account', visible: true, width: 150, align: 'left', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'account' } },
|
2906
|
+
{ field: 'accountCode', title: 'Code', visible: true, width: 100, align: 'left', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'accountCode' } },
|
2907
|
+
{ field: 'currentAmount', title: 'Current Amount', visible: true, width: 120, align: 'right', widget: { type: AXPWidgetsList.Editors.NumberBox, path: 'currentAmount' } },
|
2908
|
+
{ field: 'previousAmount', title: 'Previous Amount', visible: true, width: 120, align: 'right', widget: { type: AXPWidgetsList.Editors.NumberBox, path: 'previousAmount' } },
|
2909
|
+
{ field: 'variance', title: 'Variance', visible: true, width: 100, align: 'right', widget: { type: AXPWidgetsList.Editors.NumberBox, path: 'variance' } },
|
2910
|
+
{ field: 'percentage', title: 'Change %', visible: true, width: 80, align: 'right', widget: { type: AXPWidgetsList.Editors.NumberBox, path: 'percentage' } },
|
2911
|
+
{ field: 'category', title: 'Category', visible: true, width: 100, align: 'left', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'category' } },
|
2965
2912
|
];
|
2966
2913
|
}
|
2967
2914
|
else if (titleLower.includes('income') || titleLower.includes('profit')) {
|
2968
2915
|
return [
|
2969
|
-
{ field: 'lineItem', title: 'Line Item', visible: true, width: 150, align: 'left' },
|
2970
|
-
{ field: 'amount', title: 'Amount', visible: true, width: 120, align: 'right' },
|
2971
|
-
{ field: 'budget', title: 'Budget', visible: true, width: 120, align: 'right' },
|
2972
|
-
{ field: 'variance', title: 'Variance', visible: true, width: 100, align: 'right' },
|
2973
|
-
{ field: 'percentOfRevenue', title: '% of Revenue', visible: true, width: 100, align: 'right' },
|
2974
|
-
{ field: 'category', title: 'Category', visible: true, width: 100, align: 'left' },
|
2916
|
+
{ field: 'lineItem', title: 'Line Item', visible: true, width: 150, align: 'left', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'lineItem' } },
|
2917
|
+
{ field: 'amount', title: 'Amount', visible: true, width: 120, align: 'right', widget: { type: AXPWidgetsList.Editors.NumberBox, path: 'amount' } },
|
2918
|
+
{ field: 'budget', title: 'Budget', visible: true, width: 120, align: 'right', widget: { type: AXPWidgetsList.Editors.NumberBox, path: 'budget' } },
|
2919
|
+
{ field: 'variance', title: 'Variance', visible: true, width: 100, align: 'right', widget: { type: AXPWidgetsList.Editors.NumberBox, path: 'variance' } },
|
2920
|
+
{ field: 'percentOfRevenue', title: '% of Revenue', visible: true, width: 100, align: 'right', widget: { type: AXPWidgetsList.Editors.NumberBox, path: 'percentOfRevenue' } },
|
2921
|
+
{ field: 'category', title: 'Category', visible: true, width: 100, align: 'left', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'category' } },
|
2975
2922
|
];
|
2976
2923
|
}
|
2977
2924
|
else if (titleLower.includes('employee') || titleLower.includes('performance')) {
|
2978
2925
|
return [
|
2979
|
-
{ field: 'employeeId', title: 'Employee ID', visible: true, width: 100, align: 'left' },
|
2980
|
-
{ field: 'name', title: 'Name', visible: true, width: 150, align: 'left' },
|
2981
|
-
{ field: 'department', title: 'Department', visible: true, width: 120, align: 'left' },
|
2982
|
-
{ field: 'position', title: 'Position', visible: true, width: 120, align: 'left' },
|
2983
|
-
{ field: 'performanceScore', title: 'Score', visible: true, width: 80, align: 'center' },
|
2984
|
-
{ field: 'goalsCompleted', title: 'Goals Done', visible: true, width: 90, align: 'center' },
|
2985
|
-
{ field: 'totalGoals', title: 'Total Goals', visible: true, width: 90, align: 'center' },
|
2986
|
-
{ field: 'status', title: 'Status', visible: true, width: 80, align: 'center' },
|
2926
|
+
{ field: 'employeeId', title: 'Employee ID', visible: true, width: 100, align: 'left', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'employeeId' } },
|
2927
|
+
{ field: 'name', title: 'Name', visible: true, width: 150, align: 'left', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'name' } },
|
2928
|
+
{ field: 'department', title: 'Department', visible: true, width: 120, align: 'left', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'department' } },
|
2929
|
+
{ field: 'position', title: 'Position', visible: true, width: 120, align: 'left', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'position' } },
|
2930
|
+
{ field: 'performanceScore', title: 'Score', visible: true, width: 80, align: 'center', widget: { type: AXPWidgetsList.Editors.NumberBox, path: 'performanceScore' } },
|
2931
|
+
{ field: 'goalsCompleted', title: 'Goals Done', visible: true, width: 90, align: 'center', widget: { type: AXPWidgetsList.Editors.NumberBox, path: 'goalsCompleted' } },
|
2932
|
+
{ field: 'totalGoals', title: 'Total Goals', visible: true, width: 90, align: 'center', widget: { type: AXPWidgetsList.Editors.NumberBox, path: 'totalGoals' } },
|
2933
|
+
{ field: 'status', title: 'Status', visible: true, width: 80, align: 'center', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'status' } },
|
2987
2934
|
];
|
2988
2935
|
}
|
2989
2936
|
else if (titleLower.includes('sales') || titleLower.includes('revenue')) {
|
2990
2937
|
return [
|
2991
|
-
{ field: 'salesRep', title: 'Sales Rep', visible: true, width: 120, align: 'left' },
|
2992
|
-
{ field: 'product', title: 'Product', visible: true, width: 100, align: 'left' },
|
2993
|
-
{ field: 'region', title: 'Region', visible: true, width: 80, align: 'left' },
|
2994
|
-
{ field: 'customer', title: 'Customer', visible: true, width: 150, align: 'left' },
|
2995
|
-
{ field: 'revenue', title: 'Revenue', visible: true, width: 100, align: 'right' },
|
2996
|
-
{ field: 'units', title: 'Units', visible: true, width: 80, align: 'right' },
|
2997
|
-
{ field: 'commission', title: 'Commission', visible: true, width: 100, align: 'right' },
|
2998
|
-
{ field: 'status', title: 'Status', visible: true, width: 80, align: 'center' },
|
2938
|
+
{ field: 'salesRep', title: 'Sales Rep', visible: true, width: 120, align: 'left', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'salesRep' } },
|
2939
|
+
{ field: 'product', title: 'Product', visible: true, width: 100, align: 'left', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'product' } },
|
2940
|
+
{ field: 'region', title: 'Region', visible: true, width: 80, align: 'left', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'region' } },
|
2941
|
+
{ field: 'customer', title: 'Customer', visible: true, width: 150, align: 'left', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'customer' } },
|
2942
|
+
{ field: 'revenue', title: 'Revenue', visible: true, width: 100, align: 'right', widget: { type: AXPWidgetsList.Editors.NumberBox, path: 'revenue' } },
|
2943
|
+
{ field: 'units', title: 'Units', visible: true, width: 80, align: 'right', widget: { type: AXPWidgetsList.Editors.NumberBox, path: 'units' } },
|
2944
|
+
{ field: 'commission', title: 'Commission', visible: true, width: 100, align: 'right', widget: { type: AXPWidgetsList.Editors.NumberBox, path: 'commission' } },
|
2945
|
+
{ field: 'status', title: 'Status', visible: true, width: 80, align: 'center', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'status' } },
|
2999
2946
|
];
|
3000
2947
|
}
|
3001
2948
|
else if (titleLower.includes('incident') || titleLower.includes('safety')) {
|
3002
2949
|
return [
|
3003
|
-
{ field: 'incidentId', title: 'Incident ID', visible: true, width: 100, align: 'left' },
|
3004
|
-
{ field: 'type', title: 'Type', visible: true, width: 120, align: 'left' },
|
3005
|
-
{ field: 'severity', title: 'Severity', visible: true, width: 80, align: 'center' },
|
3006
|
-
{ field: 'location', title: 'Location', visible: true, width: 120, align: 'left' },
|
3007
|
-
{ field: 'reportedBy', title: 'Reported By', visible: true, width: 120, align: 'left' },
|
3008
|
-
{ field: 'dateReported', title: 'Date Reported', visible: true, width: 100, align: 'center' },
|
3009
|
-
{ field: 'status', title: 'Status', visible: true, width: 100, align: 'center' },
|
3010
|
-
{ field: 'daysToResolve', title: 'Days to Resolve', visible: true, width: 100, align: 'right' },
|
2950
|
+
{ field: 'incidentId', title: 'Incident ID', visible: true, width: 100, align: 'left', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'incidentId' } },
|
2951
|
+
{ field: 'type', title: 'Type', visible: true, width: 120, align: 'left', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'type' } },
|
2952
|
+
{ field: 'severity', title: 'Severity', visible: true, width: 80, align: 'center', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'severity' } },
|
2953
|
+
{ field: 'location', title: 'Location', visible: true, width: 120, align: 'left', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'location' } },
|
2954
|
+
{ field: 'reportedBy', title: 'Reported By', visible: true, width: 120, align: 'left', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'reportedBy' } },
|
2955
|
+
{ field: 'dateReported', title: 'Date Reported', visible: true, width: 100, align: 'center', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'dateReported' } },
|
2956
|
+
{ field: 'status', title: 'Status', visible: true, width: 100, align: 'center', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'status' } },
|
2957
|
+
{ field: 'daysToResolve', title: 'Days to Resolve', visible: true, width: 100, align: 'right', widget: { type: AXPWidgetsList.Editors.NumberBox, path: 'daysToResolve' } },
|
3011
2958
|
];
|
3012
2959
|
}
|
3013
2960
|
else {
|
3014
2961
|
// Generic columns for other report types
|
3015
2962
|
return [
|
3016
|
-
{ field: 'title', title: 'Title', visible: true, width:
|
3017
|
-
{ field: 'category', title: 'Category', visible: true, width:
|
3018
|
-
{ field: 'value', title: 'Value', visible: true, width:
|
3019
|
-
{ field: 'status', title: 'Status', visible: true, width:
|
3020
|
-
{ field: 'priority', title: 'Priority', visible: true, width:
|
3021
|
-
{ field: 'owner', title: 'Owner', visible: true, width:
|
3022
|
-
{ field: 'createdDate', title: 'Created', visible: true, width:
|
2963
|
+
{ field: 'title', title: 'Title', visible: true, width: 300, align: 'left', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'title' } },
|
2964
|
+
{ field: 'category', title: 'Category', visible: true, width: 200, align: 'left', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'category' } },
|
2965
|
+
{ field: 'value', title: 'Value', visible: true, width: 100, align: 'right', widget: { type: AXPWidgetsList.Editors.NumberBox, path: 'value' } },
|
2966
|
+
{ field: 'status', title: 'Status', visible: true, width: 100, align: 'center', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'status' } },
|
2967
|
+
{ field: 'priority', title: 'Priority', visible: true, width: 100, align: 'center', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'priority' } },
|
2968
|
+
{ field: 'owner', title: 'Owner', visible: true, width: 200, align: 'left', widget: { type: AXPWidgetsList.Editors.TextBox, path: 'owner' } },
|
2969
|
+
{ field: 'createdDate', title: 'Created', visible: true, width: 150, align: 'center', widget: { type: AXPWidgetsList.Editors.DateTimeBox, path: 'createdDate', options: { format: 'date' } } },
|
3023
2970
|
];
|
3024
2971
|
}
|
3025
2972
|
}
|
3026
2973
|
//#endregion
|
2974
|
+
//#region ---- Layout Definitions Generator ----
|
2975
|
+
function generateLayoutsForReport(reportTitle) {
|
2976
|
+
const layouts = [];
|
2977
|
+
const titleLower = reportTitle.toLowerCase();
|
2978
|
+
// Generate base export options
|
2979
|
+
const baseExportOptions = {
|
2980
|
+
fileNameTemplate: 'Report_{date}_{user}',
|
2981
|
+
pdf: {
|
2982
|
+
enabled: true,
|
2983
|
+
pageSize: 'A4',
|
2984
|
+
headerEnabled: true,
|
2985
|
+
footerEnabled: true,
|
2986
|
+
showPageNumbers: true,
|
2987
|
+
watermarkText: 'Mock Report',
|
2988
|
+
watermarkOpacity: 0.5,
|
2989
|
+
compression: true,
|
2990
|
+
embedImages: true,
|
2991
|
+
},
|
2992
|
+
};
|
2993
|
+
// Table Layout (always available)
|
2994
|
+
layouts.push({
|
2995
|
+
id: AXPDataGenerator.uuid(),
|
2996
|
+
title: 'Table View',
|
2997
|
+
description: 'Detailed tabular view of the data',
|
2998
|
+
icon: 'fa-light fa-table',
|
2999
|
+
isDefault: true,
|
3000
|
+
layout: {
|
3001
|
+
type: 'table',
|
3002
|
+
columns: generateColumnsForReportType(reportTitle),
|
3003
|
+
actions: [
|
3004
|
+
{
|
3005
|
+
title: 'View',
|
3006
|
+
type: AXPSystemActionType.Delete,
|
3007
|
+
command: {
|
3008
|
+
name: 'view',
|
3009
|
+
options: {
|
3010
|
+
id: '{{ context.eval("id") }}',
|
3011
|
+
reportId: '{{ context.eval("reportId") }}',
|
3012
|
+
layoutId: '{{ context.eval("layoutId") }}',
|
3013
|
+
},
|
3014
|
+
},
|
3015
|
+
priority: 'primary',
|
3016
|
+
default: true,
|
3017
|
+
}
|
3018
|
+
],
|
3019
|
+
options: {
|
3020
|
+
pagination: true,
|
3021
|
+
stickyHeader: true,
|
3022
|
+
stripedRows: true,
|
3023
|
+
},
|
3024
|
+
},
|
3025
|
+
dataSource: {
|
3026
|
+
type: 'query',
|
3027
|
+
name: 'getEmployeeList',
|
3028
|
+
pagination: true,
|
3029
|
+
},
|
3030
|
+
export: {
|
3031
|
+
...baseExportOptions,
|
3032
|
+
fileNameTemplate: 'Report_{date}_{user}',
|
3033
|
+
excel: {
|
3034
|
+
enabled: true,
|
3035
|
+
sheetName: 'Report',
|
3036
|
+
},
|
3037
|
+
csv: {
|
3038
|
+
enabled: true,
|
3039
|
+
},
|
3040
|
+
pdf: {
|
3041
|
+
enabled: true,
|
3042
|
+
},
|
3043
|
+
},
|
3044
|
+
});
|
3045
|
+
// Chart Layout (for numeric data reports)
|
3046
|
+
if (titleLower.includes('performance') || titleLower.includes('revenue') ||
|
3047
|
+
titleLower.includes('sales') || titleLower.includes('financial') ||
|
3048
|
+
titleLower.includes('budget') || titleLower.includes('income') ||
|
3049
|
+
titleLower.includes('metrics') || titleLower.includes('trends')) {
|
3050
|
+
layouts.push({
|
3051
|
+
id: AXPDataGenerator.uuid(),
|
3052
|
+
title: 'Chart View',
|
3053
|
+
description: 'Visual chart representation of the data',
|
3054
|
+
icon: 'fa-light fa-chart-bar',
|
3055
|
+
layout: {
|
3056
|
+
type: 'chart',
|
3057
|
+
options: {
|
3058
|
+
chartType: titleLower.includes('trends') || titleLower.includes('monthly') ? 'line' : 'bar',
|
3059
|
+
dataMapping: {
|
3060
|
+
xField: titleLower.includes('sales') ? 'region' : 'month',
|
3061
|
+
yFields: titleLower.includes('sales') ? 'revenue' : 'value',
|
3062
|
+
groupBy: titleLower.includes('sales') ? 'region' : undefined,
|
3063
|
+
seriesField: titleLower.includes('trends') ? 'category' : undefined,
|
3064
|
+
aggregation: {
|
3065
|
+
method: 'sum',
|
3066
|
+
field: titleLower.includes('sales') ? 'revenue' : 'value'
|
3067
|
+
}
|
3068
|
+
},
|
3069
|
+
styling: {
|
3070
|
+
colorScheme: 'primary',
|
3071
|
+
gridLines: true,
|
3072
|
+
legend: {
|
3073
|
+
show: true,
|
3074
|
+
position: 'bottom'
|
3075
|
+
},
|
3076
|
+
animation: {
|
3077
|
+
enabled: true,
|
3078
|
+
duration: 750
|
3079
|
+
},
|
3080
|
+
chartSpecific: {
|
3081
|
+
bar: titleLower.includes('bar') ? {
|
3082
|
+
orientation: 'vertical',
|
3083
|
+
mode: 'grouped',
|
3084
|
+
barWidth: 0.8
|
3085
|
+
} : undefined,
|
3086
|
+
line: titleLower.includes('line') || titleLower.includes('trends') ? {
|
3087
|
+
style: 'straight',
|
3088
|
+
showPoints: true,
|
3089
|
+
tension: 0.4
|
3090
|
+
} : undefined
|
3091
|
+
}
|
3092
|
+
},
|
3093
|
+
interactivity: {
|
3094
|
+
tooltips: {
|
3095
|
+
enabled: true,
|
3096
|
+
showOnHover: true
|
3097
|
+
},
|
3098
|
+
zoom: {
|
3099
|
+
enabled: true,
|
3100
|
+
mode: 'x'
|
3101
|
+
},
|
3102
|
+
export: {
|
3103
|
+
enabled: true,
|
3104
|
+
formats: ['png', 'pdf', 'svg']
|
3105
|
+
}
|
3106
|
+
}
|
3107
|
+
},
|
3108
|
+
},
|
3109
|
+
dataSource: {
|
3110
|
+
type: 'aggregated',
|
3111
|
+
baseQuery: 'getEmployeeList',
|
3112
|
+
groupBy: titleLower.includes('sales') ? ['region'] : ['month'],
|
3113
|
+
aggregations: [
|
3114
|
+
{
|
3115
|
+
field: titleLower.includes('sales') ? 'revenue' : 'value',
|
3116
|
+
operation: 'sum',
|
3117
|
+
alias: 'total'
|
3118
|
+
}
|
3119
|
+
]
|
3120
|
+
},
|
3121
|
+
});
|
3122
|
+
}
|
3123
|
+
return layouts;
|
3124
|
+
}
|
3125
|
+
//#endregion
|
3027
3126
|
//#region ---- Mock Report Definitions ----
|
3028
3127
|
function generateReportDefinitions() {
|
3029
3128
|
const reports = [];
|
@@ -3118,7 +3217,7 @@ function generateReportDefinitions() {
|
|
3118
3217
|
{
|
3119
3218
|
path: 'salesRep',
|
3120
3219
|
title: 'Sales Representative',
|
3121
|
-
widget: { type: AXPWidgetsList.Editors.SelectBox, options: { dataSource:
|
3220
|
+
widget: { type: AXPWidgetsList.Editors.SelectBox, options: { dataSource: "users" } },
|
3122
3221
|
},
|
3123
3222
|
{
|
3124
3223
|
path: 'region',
|
@@ -3344,34 +3443,16 @@ function generateReportDefinitions() {
|
|
3344
3443
|
break;
|
3345
3444
|
}
|
3346
3445
|
reportsForCategory.forEach((report) => {
|
3446
|
+
const layouts = generateLayoutsForReport(report.title);
|
3447
|
+
const defaultLayout = layouts.find(l => l.isDefault) || layouts[0];
|
3347
3448
|
reports.push({
|
3348
3449
|
id: AXPDataGenerator.uuid(),
|
3349
3450
|
title: report.title,
|
3350
3451
|
description: report.description,
|
3351
3452
|
categoryIds: [category.id],
|
3352
3453
|
parameterGroups: report.parameterGroups,
|
3353
|
-
|
3354
|
-
|
3355
|
-
name: 'getEmployeeList',
|
3356
|
-
},
|
3357
|
-
layout: {
|
3358
|
-
type: 'table',
|
3359
|
-
columns: generateColumnsForReportType(report.title),
|
3360
|
-
},
|
3361
|
-
export: {
|
3362
|
-
fileNameTemplate: 'Report_{date}_{user}',
|
3363
|
-
pdf: {
|
3364
|
-
enabled: true,
|
3365
|
-
pageSize: 'A4',
|
3366
|
-
headerEnabled: true,
|
3367
|
-
footerEnabled: true,
|
3368
|
-
showPageNumbers: true,
|
3369
|
-
watermarkText: 'Mock Report',
|
3370
|
-
watermarkOpacity: 0.5,
|
3371
|
-
compression: true,
|
3372
|
-
embedImages: true,
|
3373
|
-
},
|
3374
|
-
},
|
3454
|
+
layouts: layouts,
|
3455
|
+
defaultLayoutId: defaultLayout?.id || '',
|
3375
3456
|
});
|
3376
3457
|
});
|
3377
3458
|
});
|
@@ -3402,17 +3483,17 @@ class AXPReportManagementDataSeeder {
|
|
3402
3483
|
// Seed report definitions
|
3403
3484
|
await this.storageService.initial(`${RootConfig$3.module.name}.${RootConfig$3.entities.report.name}`, REPORT_DEFINITIONS);
|
3404
3485
|
}
|
3405
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
3406
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
3486
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPReportManagementDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
3487
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPReportManagementDataSeeder }); }
|
3407
3488
|
}
|
3408
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
3489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPReportManagementDataSeeder, decorators: [{
|
3409
3490
|
type: Injectable
|
3410
3491
|
}] });
|
3411
3492
|
|
3412
3493
|
class AXCReportManagementMockModule {
|
3413
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
3414
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
3415
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
3494
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCReportManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
3495
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCReportManagementMockModule, imports: [AXPRuntimeModule] }); }
|
3496
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCReportManagementMockModule, providers: [
|
3416
3497
|
{
|
3417
3498
|
provide: AXP_DATA_SEEDER_TOKEN,
|
3418
3499
|
useClass: AXPReportManagementDataSeeder,
|
@@ -3426,7 +3507,7 @@ class AXCReportManagementMockModule {
|
|
3426
3507
|
]),
|
3427
3508
|
], imports: [AXPRuntimeModule] }); }
|
3428
3509
|
}
|
3429
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
3510
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCReportManagementMockModule, decorators: [{
|
3430
3511
|
type: NgModule,
|
3431
3512
|
args: [{
|
3432
3513
|
imports: [AXPRuntimeModule],
|
@@ -3521,10 +3602,10 @@ class AXCContactTypeDataSeeder {
|
|
3521
3602
|
async seed() {
|
3522
3603
|
await this.storageService.initial(`${RootConfig$4.module.name}.${RootConfig$4.entities.contactType.name}`, contactTypeMock);
|
3523
3604
|
}
|
3524
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
3525
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
3605
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactTypeDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
3606
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactTypeDataSeeder }); }
|
3526
3607
|
}
|
3527
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
3608
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactTypeDataSeeder, decorators: [{
|
3528
3609
|
type: Injectable
|
3529
3610
|
}] });
|
3530
3611
|
|
@@ -3592,10 +3673,10 @@ class AXCContactSourceDataSeeder {
|
|
3592
3673
|
async seed() {
|
3593
3674
|
await this.storageService.initial(`${RootConfig$4.module.name}.${RootConfig$4.entities.contactSource.name}`, contactSourceMock);
|
3594
3675
|
}
|
3595
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
3596
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
3676
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactSourceDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
3677
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactSourceDataSeeder }); }
|
3597
3678
|
}
|
3598
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
3679
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactSourceDataSeeder, decorators: [{
|
3599
3680
|
type: Injectable
|
3600
3681
|
}] });
|
3601
3682
|
|
@@ -3686,10 +3767,10 @@ class AXCContactMethodTypeDataSeeder {
|
|
3686
3767
|
async seed() {
|
3687
3768
|
await this.storageService.initial(`${RootConfig$4.module.name}.${RootConfig$4.entities.contactMethodType.name}`, contactMethodTypeMock);
|
3688
3769
|
}
|
3689
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
3690
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
3770
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactMethodTypeDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
3771
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactMethodTypeDataSeeder }); }
|
3691
3772
|
}
|
3692
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
3773
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactMethodTypeDataSeeder, decorators: [{
|
3693
3774
|
type: Injectable
|
3694
3775
|
}] });
|
3695
3776
|
|
@@ -3757,10 +3838,10 @@ class AXCAddressTypeDataSeeder {
|
|
3757
3838
|
async seed() {
|
3758
3839
|
await this.storageService.initial(`${RootConfig$4.module.name}.${RootConfig$4.entities.addressType.name}`, addressTypeMock);
|
3759
3840
|
}
|
3760
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
3761
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
3841
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCAddressTypeDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
3842
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCAddressTypeDataSeeder }); }
|
3762
3843
|
}
|
3763
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
3844
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCAddressTypeDataSeeder, decorators: [{
|
3764
3845
|
type: Injectable
|
3765
3846
|
}] });
|
3766
3847
|
|
@@ -3904,10 +3985,10 @@ class AXCContactDataSeeder {
|
|
3904
3985
|
async seed() {
|
3905
3986
|
await this.storageService.initial(`${RootConfig$4.module.name}.${RootConfig$4.entities.contact.name}`, contactMock);
|
3906
3987
|
}
|
3907
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
3908
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
3988
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
3989
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactDataSeeder }); }
|
3909
3990
|
}
|
3910
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
3991
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactDataSeeder, decorators: [{
|
3911
3992
|
type: Injectable
|
3912
3993
|
}] });
|
3913
3994
|
|
@@ -4077,10 +4158,10 @@ class AXCContactMethodDataSeeder {
|
|
4077
4158
|
async seed() {
|
4078
4159
|
await this.storageService.initial(`${RootConfig$4.module.name}.${RootConfig$4.entities.contactMethod.name}`, contactMethodMock);
|
4079
4160
|
}
|
4080
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
4081
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
4161
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactMethodDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
4162
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactMethodDataSeeder }); }
|
4082
4163
|
}
|
4083
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
4164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactMethodDataSeeder, decorators: [{
|
4084
4165
|
type: Injectable
|
4085
4166
|
}] });
|
4086
4167
|
|
@@ -4240,10 +4321,10 @@ class AXCContactAddressDataSeeder {
|
|
4240
4321
|
async seed() {
|
4241
4322
|
await this.storageService.initial(`${RootConfig$4.module.name}.${RootConfig$4.entities.contactAddress.name}`, contactAddressMock);
|
4242
4323
|
}
|
4243
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
4244
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
4324
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactAddressDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
4325
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactAddressDataSeeder }); }
|
4245
4326
|
}
|
4246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
4327
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactAddressDataSeeder, decorators: [{
|
4247
4328
|
type: Injectable
|
4248
4329
|
}] });
|
4249
4330
|
|
@@ -4327,10 +4408,10 @@ class AXCContactRelationshipDataSeeder {
|
|
4327
4408
|
async seed() {
|
4328
4409
|
await this.storageService.initial(`${RootConfig$4.module.name}.${RootConfig$4.entities.contactRelationship.name}`, contactRelationshipMock);
|
4329
4410
|
}
|
4330
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
4331
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
4411
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactRelationshipDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
4412
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactRelationshipDataSeeder }); }
|
4332
4413
|
}
|
4333
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
4414
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactRelationshipDataSeeder, decorators: [{
|
4334
4415
|
type: Injectable
|
4335
4416
|
}] });
|
4336
4417
|
|
@@ -4607,17 +4688,17 @@ class AXCEmergencyContactDataSeeder {
|
|
4607
4688
|
// Seed contacts
|
4608
4689
|
await this.storageService.initial(`${RootConfig$4.module.name}.${RootConfig$4.entities.emergencyContact.name}`, EMERGENCY_CONTACTS);
|
4609
4690
|
}
|
4610
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
4611
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
4691
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCEmergencyContactDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
4692
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCEmergencyContactDataSeeder }); }
|
4612
4693
|
}
|
4613
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
4694
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCEmergencyContactDataSeeder, decorators: [{
|
4614
4695
|
type: Injectable
|
4615
4696
|
}] });
|
4616
4697
|
|
4617
4698
|
class AXCContactManagementMockModule {
|
4618
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
4619
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
4620
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
4699
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
4700
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCContactManagementMockModule }); }
|
4701
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactManagementMockModule, providers: [
|
4621
4702
|
{
|
4622
4703
|
provide: AXP_DATA_SEEDER_TOKEN,
|
4623
4704
|
useClass: AXCContactTypeDataSeeder,
|
@@ -4665,7 +4746,7 @@ class AXCContactManagementMockModule {
|
|
4665
4746
|
},
|
4666
4747
|
] }); }
|
4667
4748
|
}
|
4668
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
4749
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCContactManagementMockModule, decorators: [{
|
4669
4750
|
type: NgModule,
|
4670
4751
|
args: [{
|
4671
4752
|
imports: [],
|
@@ -4914,6 +4995,17 @@ const mockUsers = [
|
|
4914
4995
|
mobile: '555-456-7890',
|
4915
4996
|
roleIds: [{ id: '1008', title: 'Developer' }],
|
4916
4997
|
},
|
4998
|
+
{
|
4999
|
+
id: AXPDataGenerator.uuid(),
|
5000
|
+
username: 'admin',
|
5001
|
+
firstName: 'Admin',
|
5002
|
+
lastName: 'User',
|
5003
|
+
nationalCode: '1111111111',
|
5004
|
+
mobile: '555-000-0000',
|
5005
|
+
roleIds: [
|
5006
|
+
{ id: '1001', title: 'Administrator' }
|
5007
|
+
],
|
5008
|
+
},
|
4917
5009
|
];
|
4918
5010
|
|
4919
5011
|
// Widget types that can be used for generating mock data
|
@@ -5667,17 +5759,17 @@ class AXPDashboardDataSeeder {
|
|
5667
5759
|
async seed() {
|
5668
5760
|
await this.storageService.initial(`${RootConfig$5.module.name}.${RootConfig$5.entities.dashboard.name}`, DASHBOARDS);
|
5669
5761
|
}
|
5670
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
5671
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
5762
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPDashboardDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
5763
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPDashboardDataSeeder }); }
|
5672
5764
|
}
|
5673
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
5765
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPDashboardDataSeeder, decorators: [{
|
5674
5766
|
type: Injectable
|
5675
5767
|
}] });
|
5676
5768
|
|
5677
5769
|
class AXCDashboardManagementMockModule {
|
5678
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
5679
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
5680
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
5770
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCDashboardManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
5771
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCDashboardManagementMockModule }); }
|
5772
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCDashboardManagementMockModule, providers: [
|
5681
5773
|
{
|
5682
5774
|
provide: AXP_DATA_SEEDER_TOKEN,
|
5683
5775
|
useClass: AXPDashboardDataSeeder,
|
@@ -5685,7 +5777,7 @@ class AXCDashboardManagementMockModule {
|
|
5685
5777
|
},
|
5686
5778
|
] }); }
|
5687
5779
|
}
|
5688
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
5780
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCDashboardManagementMockModule, decorators: [{
|
5689
5781
|
type: NgModule,
|
5690
5782
|
args: [{
|
5691
5783
|
imports: [],
|
@@ -5747,10 +5839,10 @@ class AXMAiResponderService {
|
|
5747
5839
|
];
|
5748
5840
|
return randomReplies[Math.floor(Math.random() * randomReplies.length)];
|
5749
5841
|
}
|
5750
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
5751
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
5842
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMAiResponderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
5843
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMAiResponderService, providedIn: 'root' }); }
|
5752
5844
|
}
|
5753
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
5845
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMAiResponderService, decorators: [{
|
5754
5846
|
type: Injectable,
|
5755
5847
|
args: [{
|
5756
5848
|
providedIn: 'root',
|
@@ -5998,10 +6090,10 @@ class AXPMessageDataSeeder {
|
|
5998
6090
|
}
|
5999
6091
|
});
|
6000
6092
|
}
|
6001
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
6002
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
6093
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPMessageDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
6094
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPMessageDataSeeder }); }
|
6003
6095
|
}
|
6004
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
6096
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPMessageDataSeeder, decorators: [{
|
6005
6097
|
type: Injectable
|
6006
6098
|
}] });
|
6007
6099
|
|
@@ -6012,17 +6104,17 @@ class AXPRoomDataSeeder {
|
|
6012
6104
|
async seed() {
|
6013
6105
|
await this.storageService.initial(`${RootConfig$6.module.name}.${RootConfig$6.entities.room.name}`, ROOMS);
|
6014
6106
|
}
|
6015
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
6016
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
6107
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPRoomDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
6108
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPRoomDataSeeder }); }
|
6017
6109
|
}
|
6018
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
6110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPRoomDataSeeder, decorators: [{
|
6019
6111
|
type: Injectable
|
6020
6112
|
}] });
|
6021
6113
|
|
6022
6114
|
class AXCConversationMockModule {
|
6023
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
6024
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
6025
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
6115
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCConversationMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
6116
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCConversationMockModule }); }
|
6117
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCConversationMockModule, providers: [
|
6026
6118
|
{
|
6027
6119
|
provide: AXP_DATA_SEEDER_TOKEN,
|
6028
6120
|
useClass: AXPMessageDataSeeder,
|
@@ -6035,7 +6127,7 @@ class AXCConversationMockModule {
|
|
6035
6127
|
},
|
6036
6128
|
] }); }
|
6037
6129
|
}
|
6038
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
6130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCConversationMockModule, decorators: [{
|
6039
6131
|
type: NgModule,
|
6040
6132
|
args: [{
|
6041
6133
|
imports: [],
|
@@ -6072,17 +6164,21 @@ class MockApplicationLoader {
|
|
6072
6164
|
version: '1.0.0',
|
6073
6165
|
editionName: 'Standard',
|
6074
6166
|
};
|
6075
|
-
|
6076
|
-
|
6077
|
-
|
6078
|
-
|
6079
|
-
|
6080
|
-
|
6081
|
-
|
6082
|
-
|
6083
|
-
|
6084
|
-
}
|
6085
|
-
|
6167
|
+
return of([demo_app, console_app]).pipe(delay(500));
|
6168
|
+
// debugger;
|
6169
|
+
// // if (!context.tenant) {
|
6170
|
+
// // return of([]);
|
6171
|
+
// // } else
|
6172
|
+
// if (context.user?.name == 'root' && context.tenant?.id == '99') {
|
6173
|
+
// return of([demo_app, console_app]).pipe(delay(500));
|
6174
|
+
// } else {
|
6175
|
+
// return of([demo_app]).pipe(delay(500));
|
6176
|
+
// }
|
6177
|
+
}
|
6178
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: MockApplicationLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
6179
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: MockApplicationLoader }); }
|
6180
|
+
}
|
6181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: MockApplicationLoader, decorators: [{
|
6086
6182
|
type: Injectable
|
6087
6183
|
}] });
|
6088
6184
|
|
@@ -6138,10 +6234,10 @@ class MockPermissionLoader {
|
|
6138
6234
|
return of(this.userPermissions);
|
6139
6235
|
}
|
6140
6236
|
}
|
6141
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
6142
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
6237
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: MockPermissionLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
6238
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: MockPermissionLoader }); }
|
6143
6239
|
}
|
6144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
6240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: MockPermissionLoader, decorators: [{
|
6145
6241
|
type: Injectable
|
6146
6242
|
}] });
|
6147
6243
|
|
@@ -6157,31 +6253,31 @@ class MockTenantLoader {
|
|
6157
6253
|
name: 'demo-tenant',
|
6158
6254
|
title: 'DEMO Tenant',
|
6159
6255
|
};
|
6160
|
-
|
6161
|
-
|
6162
|
-
|
6163
|
-
else {
|
6164
|
-
|
6165
|
-
}
|
6256
|
+
return of([demo_tenant, acorex_tenant]).pipe(delay(500));
|
6257
|
+
// if (context.user?.name == 'root') {
|
6258
|
+
// return of([demo_tenant, acorex_tenant]).pipe(delay(500));
|
6259
|
+
// } else {
|
6260
|
+
// return of([demo_tenant]).pipe(delay(500));
|
6261
|
+
// }
|
6166
6262
|
}
|
6167
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
6168
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
6263
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: MockTenantLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
6264
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: MockTenantLoader }); }
|
6169
6265
|
}
|
6170
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
6266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: MockTenantLoader, decorators: [{
|
6171
6267
|
type: Injectable
|
6172
6268
|
}] });
|
6173
6269
|
|
6174
6270
|
class AXCAuthMockModule {
|
6175
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
6176
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
6177
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
6271
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCAuthMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
6272
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCAuthMockModule }); }
|
6273
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCAuthMockModule, providers: [
|
6178
6274
|
{ provide: AXP_APPLICATION_LOADER, useClass: MockApplicationLoader },
|
6179
6275
|
{ provide: AXP_FEATURE_LOADER, useClass: MockFeatureLoader },
|
6180
6276
|
{ provide: AXP_PERMISSION_LOADER, useClass: MockPermissionLoader },
|
6181
6277
|
{ provide: AXP_TENANT_LOADER, useClass: MockTenantLoader },
|
6182
6278
|
] }); }
|
6183
6279
|
}
|
6184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
6280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCAuthMockModule, decorators: [{
|
6185
6281
|
type: NgModule,
|
6186
6282
|
args: [{
|
6187
6283
|
imports: [],
|
@@ -6196,40 +6292,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
6196
6292
|
}]
|
6197
6293
|
}] });
|
6198
6294
|
|
6199
|
-
const OHS_ID = AXPDataGenerator.uuid();
|
6200
|
-
const child1
|
6201
|
-
|
6202
|
-
|
6203
|
-
|
6204
|
-
|
6205
|
-
};
|
6206
|
-
const child2
|
6207
|
-
|
6208
|
-
|
6209
|
-
|
6210
|
-
|
6211
|
-
};
|
6212
|
-
const child3
|
6213
|
-
|
6214
|
-
|
6215
|
-
|
6216
|
-
|
6217
|
-
};
|
6295
|
+
// const OHS_ID = AXPDataGenerator.uuid();
|
6296
|
+
// const child1 = {
|
6297
|
+
// id: AXPDataGenerator.uuid(),
|
6298
|
+
// title: 'General',
|
6299
|
+
// parentId: OHS_ID,
|
6300
|
+
// childCount: 0,
|
6301
|
+
// };
|
6302
|
+
// const child2 = {
|
6303
|
+
// id: AXPDataGenerator.uuid(),
|
6304
|
+
// title: 'License',
|
6305
|
+
// parentId: OHS_ID,
|
6306
|
+
// childCount: 0,
|
6307
|
+
// };
|
6308
|
+
// const child3 = {
|
6309
|
+
// id: AXPDataGenerator.uuid(),
|
6310
|
+
// title: 'Training',
|
6311
|
+
// parentId: OHS_ID,
|
6312
|
+
// childCount: 0,
|
6313
|
+
// };
|
6218
6314
|
const METADATA_CATEGORY_MOCK = [
|
6219
6315
|
{
|
6220
6316
|
id: AXPDataGenerator.uuid(),
|
6221
6317
|
title: 'General',
|
6318
|
+
name: 'general',
|
6222
6319
|
childCount: 0,
|
6223
6320
|
},
|
6224
|
-
{
|
6225
|
-
|
6226
|
-
|
6227
|
-
|
6228
|
-
|
6229
|
-
},
|
6230
|
-
child1
|
6231
|
-
child2
|
6232
|
-
child3
|
6321
|
+
// {
|
6322
|
+
// id: OHS_ID,
|
6323
|
+
// title: 'OHS',
|
6324
|
+
// childCount: 2,
|
6325
|
+
// children: [child1, child2,child3],
|
6326
|
+
// },
|
6327
|
+
// child1,
|
6328
|
+
// child2,
|
6329
|
+
// child3,
|
6233
6330
|
];
|
6234
6331
|
const checkbox$2 = '{"type":"document-layout","children":[{"type":"page-layout","children":[{"type":"checkbox-editor","name":"checkbox-editor1","options":{"label":"i accept","readonly":false,"disabled":false},"defaultValue":false,"path":"accept-check-box"}],"name":"page-layout1"}],"name":"document"}';
|
6235
6332
|
const colorboxInterface = '{"type":"document-layout","children":[{"type":"page-layout","children":[{"type":"block-layout","name":"block-layout1","options":{"flexDirection":{"id":"ax-flex-row"},"flexJustifyContent":{"id":"ax-justify-normal"},"flexAlignItems":{"id":"ax-items-start"},"gap":2,"flexWrap":{"id":"ax-flex-nowrap"},"spacing":{"margin":"0px 0px 0px 0px","padding":"0px 0px 0px 0px"},"border":{"width":"0px","radius":"0px","color":"#000000","style":"none"},"flexOptions":{"gap":"0px","flexDirection":"row","flexWrap":"nowrap","justifyContent":"flex-start","alignItems":"flex-start"}}},"children":[{"type":"color-editor","name":"color-editor1","options":{"readonly":false,"disabled":false,"validations":{"required":{"rule":"required","message":"This field is required."}},"placeholder":"pick color"},"path":"color-box"}]}],"name":"page-layout1"}],"name":"document"}';
|
@@ -6257,42 +6354,42 @@ const METADATA_MOCK = [
|
|
6257
6354
|
categoryIds: [METADATA_CATEGORY_MOCK[0].id],
|
6258
6355
|
categories: [METADATA_CATEGORY_MOCK[0]],
|
6259
6356
|
},
|
6260
|
-
{
|
6261
|
-
|
6262
|
-
|
6263
|
-
|
6264
|
-
|
6265
|
-
|
6266
|
-
|
6267
|
-
|
6268
|
-
},
|
6269
|
-
{
|
6270
|
-
|
6271
|
-
|
6272
|
-
|
6273
|
-
|
6274
|
-
|
6275
|
-
|
6276
|
-
|
6277
|
-
},
|
6278
|
-
{
|
6279
|
-
|
6280
|
-
|
6281
|
-
|
6282
|
-
|
6283
|
-
|
6284
|
-
|
6285
|
-
|
6286
|
-
},
|
6287
|
-
{
|
6288
|
-
|
6289
|
-
|
6290
|
-
|
6291
|
-
|
6292
|
-
|
6293
|
-
|
6294
|
-
|
6295
|
-
},
|
6357
|
+
// {
|
6358
|
+
// id: AXPDataGenerator.uuid(),
|
6359
|
+
// name: 'agreement-check-box',
|
6360
|
+
// title: 'Agreement Box',
|
6361
|
+
// defaultValue: false,
|
6362
|
+
// interface: checkbox,
|
6363
|
+
// categoryIds: [METADATA_CATEGORY_MOCK[2].id!],
|
6364
|
+
// categories: [METADATA_CATEGORY_MOCK[2]],
|
6365
|
+
// },
|
6366
|
+
// {
|
6367
|
+
// id: AXPDataGenerator.uuid(),
|
6368
|
+
// name: 'contract-number',
|
6369
|
+
// title: 'Contract Number',
|
6370
|
+
// defaultValue: '',
|
6371
|
+
// interface: contractNumberInterface,
|
6372
|
+
// categoryIds: [METADATA_CATEGORY_MOCK[2].id!],
|
6373
|
+
// categories: [METADATA_CATEGORY_MOCK[2]],
|
6374
|
+
// },
|
6375
|
+
// {
|
6376
|
+
// id: AXPDataGenerator.uuid(),
|
6377
|
+
// name: 'evaluator',
|
6378
|
+
// title: 'Evaluator',
|
6379
|
+
// defaultValue: '',
|
6380
|
+
// interface: evaluatorInterface,
|
6381
|
+
// categoryIds: [METADATA_CATEGORY_MOCK[3].id!],
|
6382
|
+
// categories: [METADATA_CATEGORY_MOCK[3]],
|
6383
|
+
// },
|
6384
|
+
// {
|
6385
|
+
// id: AXPDataGenerator.uuid(),
|
6386
|
+
// name: 'company',
|
6387
|
+
// title: 'Company',
|
6388
|
+
// defaultValue: '',
|
6389
|
+
// interface: companyInterface,
|
6390
|
+
// categoryIds: [METADATA_CATEGORY_MOCK[4].id!],
|
6391
|
+
// categories: [METADATA_CATEGORY_MOCK[4]],
|
6392
|
+
// },
|
6296
6393
|
];
|
6297
6394
|
|
6298
6395
|
class AXCMetaDataDefinitionDataSeeder {
|
@@ -6303,10 +6400,10 @@ class AXCMetaDataDefinitionDataSeeder {
|
|
6303
6400
|
await this.storageService.initial(`${RootConfig$7.module.name}.${RootConfig$7.entities.metaDataDefinitionCategory.name}`, METADATA_CATEGORY_MOCK);
|
6304
6401
|
await this.storageService.initial(`${RootConfig$7.module.name}.${RootConfig$7.entities.metaDataDefinition.name}`, METADATA_MOCK);
|
6305
6402
|
}
|
6306
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
6307
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
6403
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCMetaDataDefinitionDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
6404
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCMetaDataDefinitionDataSeeder }); }
|
6308
6405
|
}
|
6309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
6406
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCMetaDataDefinitionDataSeeder, decorators: [{
|
6310
6407
|
type: Injectable
|
6311
6408
|
}] });
|
6312
6409
|
|
@@ -6338,10 +6435,10 @@ class AXCAppVersionDataSeeder {
|
|
6338
6435
|
async seed() {
|
6339
6436
|
await this.storageService.initial(`${RootConfig$7.module.name}.${RootConfig$7.entities.appVersion.name}`, APP_VERSIONS);
|
6340
6437
|
}
|
6341
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
6342
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
6438
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCAppVersionDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
6439
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCAppVersionDataSeeder }); }
|
6343
6440
|
}
|
6344
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
6441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCAppVersionDataSeeder, decorators: [{
|
6345
6442
|
type: Injectable
|
6346
6443
|
}] });
|
6347
6444
|
|
@@ -6369,10 +6466,10 @@ class AXCGlobalVariablesDataSeeder {
|
|
6369
6466
|
async seed() {
|
6370
6467
|
await this.storageService.initial(`${RootConfig$7.module.name}.${RootConfig$7.entities.globalVariable.name}`, GLOBAL_VARIABLES);
|
6371
6468
|
}
|
6372
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
6373
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
6469
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCGlobalVariablesDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
6470
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCGlobalVariablesDataSeeder }); }
|
6374
6471
|
}
|
6375
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
6472
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCGlobalVariablesDataSeeder, decorators: [{
|
6376
6473
|
type: Injectable
|
6377
6474
|
}] });
|
6378
6475
|
|
@@ -6418,10 +6515,10 @@ class AXCAppTermDataSeeder {
|
|
6418
6515
|
async seed() {
|
6419
6516
|
await this.storageService.initial(`${RootConfig$7.module.name}.${RootConfig$7.entities.appTerm.name}`, APP_TERMS);
|
6420
6517
|
}
|
6421
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
6422
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
6518
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCAppTermDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
6519
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCAppTermDataSeeder }); }
|
6423
6520
|
}
|
6424
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
6521
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCAppTermDataSeeder, decorators: [{
|
6425
6522
|
type: Injectable
|
6426
6523
|
}] });
|
6427
6524
|
|
@@ -6626,17 +6723,17 @@ class AXCFileStorageService {
|
|
6626
6723
|
.catch((error) => console.error('Error during cleanup:', error));
|
6627
6724
|
}, 5 * 60 * 1000); // Runs every 5 minutes
|
6628
6725
|
}
|
6629
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
6630
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
6726
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCFileStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
6727
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCFileStorageService }); }
|
6631
6728
|
}
|
6632
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
6729
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCFileStorageService, decorators: [{
|
6633
6730
|
type: Injectable
|
6634
6731
|
}], ctorParameters: () => [] });
|
6635
6732
|
|
6636
6733
|
class AXCPlatformManagementMockModule {
|
6637
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
6638
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
6639
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
6734
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCPlatformManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
6735
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCPlatformManagementMockModule }); }
|
6736
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCPlatformManagementMockModule, providers: [
|
6640
6737
|
{
|
6641
6738
|
provide: AXP_DATA_SEEDER_TOKEN,
|
6642
6739
|
useClass: AXCMetaDataDefinitionDataSeeder,
|
@@ -6667,7 +6764,7 @@ class AXCPlatformManagementMockModule {
|
|
6667
6764
|
},
|
6668
6765
|
] }); }
|
6669
6766
|
}
|
6670
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
6767
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCPlatformManagementMockModule, decorators: [{
|
6671
6768
|
type: NgModule,
|
6672
6769
|
args: [{
|
6673
6770
|
imports: [],
|
@@ -6830,10 +6927,10 @@ class AXCTextTemplateCategoryDataSeeder {
|
|
6830
6927
|
async seed() {
|
6831
6928
|
await this.storageService.initial(`${RootConfig$8.module.name}.${RootConfig$8.entities.category.name}`, TEXT_TEMPLATE_CATEGORY);
|
6832
6929
|
}
|
6833
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
6834
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
6930
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTextTemplateCategoryDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
6931
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTextTemplateCategoryDataSeeder }); }
|
6835
6932
|
}
|
6836
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
6933
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTextTemplateCategoryDataSeeder, decorators: [{
|
6837
6934
|
type: Injectable
|
6838
6935
|
}] });
|
6839
6936
|
|
@@ -6844,17 +6941,17 @@ class AXCTextTemplateDataSeeder {
|
|
6844
6941
|
async seed() {
|
6845
6942
|
await this.storageService.initial(`${RootConfig$8.module.name}.${RootConfig$8.entities.template.name}`, TEXT_TEMPLATES);
|
6846
6943
|
}
|
6847
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
6848
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
6944
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTextTemplateDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
6945
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTextTemplateDataSeeder }); }
|
6849
6946
|
}
|
6850
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
6947
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTextTemplateDataSeeder, decorators: [{
|
6851
6948
|
type: Injectable
|
6852
6949
|
}] });
|
6853
6950
|
|
6854
6951
|
class AXCTextTemplateManagementMockModule {
|
6855
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
6856
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
6857
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
6952
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTextTemplateManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
6953
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCTextTemplateManagementMockModule }); }
|
6954
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTextTemplateManagementMockModule, providers: [
|
6858
6955
|
{
|
6859
6956
|
provide: AXP_DATA_SEEDER_TOKEN,
|
6860
6957
|
useClass: AXCTextTemplateCategoryDataSeeder,
|
@@ -6867,7 +6964,7 @@ class AXCTextTemplateManagementMockModule {
|
|
6867
6964
|
},
|
6868
6965
|
] }); }
|
6869
6966
|
}
|
6870
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
6967
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTextTemplateManagementMockModule, decorators: [{
|
6871
6968
|
type: NgModule,
|
6872
6969
|
args: [{
|
6873
6970
|
imports: [],
|
@@ -6986,10 +7083,10 @@ class AXPSecurityManagementDeviceSessionDataSeeder {
|
|
6986
7083
|
}
|
6987
7084
|
return deviceSessions;
|
6988
7085
|
}
|
6989
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
6990
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
7086
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPSecurityManagementDeviceSessionDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
7087
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPSecurityManagementDeviceSessionDataSeeder }); }
|
6991
7088
|
}
|
6992
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
7089
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPSecurityManagementDeviceSessionDataSeeder, decorators: [{
|
6993
7090
|
type: Injectable
|
6994
7091
|
}] });
|
6995
7092
|
|
@@ -7008,10 +7105,10 @@ class AXPSecurityManagementRoleDataSeeder {
|
|
7008
7105
|
}));
|
7009
7106
|
await this.storageService.initial(`${RootConfig.module.name}.${RootConfig.entities.roles.name}`, roles);
|
7010
7107
|
}
|
7011
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
7012
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
7108
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPSecurityManagementRoleDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
7109
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPSecurityManagementRoleDataSeeder }); }
|
7013
7110
|
}
|
7014
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
7111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPSecurityManagementRoleDataSeeder, decorators: [{
|
7015
7112
|
type: Injectable
|
7016
7113
|
}] });
|
7017
7114
|
|
@@ -7034,10 +7131,10 @@ class AXPSecurityManagementUserDataSeeder {
|
|
7034
7131
|
roles: user.roleIds,
|
7035
7132
|
}));
|
7036
7133
|
}
|
7037
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
7038
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
7134
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPSecurityManagementUserDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
7135
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPSecurityManagementUserDataSeeder }); }
|
7039
7136
|
}
|
7040
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
7137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPSecurityManagementUserDataSeeder, decorators: [{
|
7041
7138
|
type: Injectable
|
7042
7139
|
}] });
|
7043
7140
|
|
@@ -7064,9 +7161,9 @@ class AXCDeviceSessionService extends AXMDeviceSessionsServiceImpl {
|
|
7064
7161
|
}
|
7065
7162
|
|
7066
7163
|
class AXCSecurityManagementMockModule {
|
7067
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
7068
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
7069
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
7164
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCSecurityManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
7165
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCSecurityManagementMockModule }); }
|
7166
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCSecurityManagementMockModule, providers: [
|
7070
7167
|
{
|
7071
7168
|
provide: AXP_DATA_SEEDER_TOKEN,
|
7072
7169
|
useClass: AXPSecurityManagementDeviceSessionDataSeeder,
|
@@ -7088,7 +7185,7 @@ class AXCSecurityManagementMockModule {
|
|
7088
7185
|
},
|
7089
7186
|
] }); }
|
7090
7187
|
}
|
7091
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
7188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCSecurityManagementMockModule, decorators: [{
|
7092
7189
|
type: NgModule,
|
7093
7190
|
args: [{
|
7094
7191
|
imports: [],
|
@@ -7142,17 +7239,17 @@ class AXCSchedulerJobDataSeeder {
|
|
7142
7239
|
async seed() {
|
7143
7240
|
await this.storageService.initial(`${RootConfig$9.module.name}.${RootConfig$9.entities.schedulerJob.name}`, SCHEDULER_JOB);
|
7144
7241
|
}
|
7145
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
7146
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
7242
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCSchedulerJobDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
7243
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCSchedulerJobDataSeeder }); }
|
7147
7244
|
}
|
7148
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
7245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCSchedulerJobDataSeeder, decorators: [{
|
7149
7246
|
type: Injectable
|
7150
7247
|
}] });
|
7151
7248
|
|
7152
7249
|
class AXCSchedulerJobManagementMockModule {
|
7153
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
7154
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
7155
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
7250
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCSchedulerJobManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
7251
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCSchedulerJobManagementMockModule }); }
|
7252
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCSchedulerJobManagementMockModule, providers: [
|
7156
7253
|
{
|
7157
7254
|
provide: AXP_DATA_SEEDER_TOKEN,
|
7158
7255
|
useClass: AXCSchedulerJobDataSeeder,
|
@@ -7160,7 +7257,7 @@ class AXCSchedulerJobManagementMockModule {
|
|
7160
7257
|
},
|
7161
7258
|
] }); }
|
7162
7259
|
}
|
7163
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
7260
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCSchedulerJobManagementMockModule, decorators: [{
|
7164
7261
|
type: NgModule,
|
7165
7262
|
args: [{
|
7166
7263
|
imports: [],
|
@@ -7192,10 +7289,10 @@ class AXCNotificationTemplateDataSeeder {
|
|
7192
7289
|
async seed() {
|
7193
7290
|
await this.storageService.initial(`${RootConfig$a.module.name}.${RootConfig$a.entities.template.name}`, NOTIFICATION_TEMPLATES);
|
7194
7291
|
}
|
7195
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
7196
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
7292
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCNotificationTemplateDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
7293
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCNotificationTemplateDataSeeder }); }
|
7197
7294
|
}
|
7198
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
7295
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCNotificationTemplateDataSeeder, decorators: [{
|
7199
7296
|
type: Injectable
|
7200
7297
|
}] });
|
7201
7298
|
|
@@ -7228,10 +7325,10 @@ class AXMMockNotificationService {
|
|
7228
7325
|
const notification = payload || generateNotification();
|
7229
7326
|
await this.storageService.insertOne(this.name, notification);
|
7230
7327
|
}
|
7231
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
7232
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
7328
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMMockNotificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
7329
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMMockNotificationService, providedIn: 'root' }); }
|
7233
7330
|
}
|
7234
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
7331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMMockNotificationService, decorators: [{
|
7235
7332
|
type: Injectable,
|
7236
7333
|
args: [{
|
7237
7334
|
providedIn: 'root',
|
@@ -7276,9 +7373,9 @@ function generateNotification() {
|
|
7276
7373
|
}
|
7277
7374
|
|
7278
7375
|
class AXCNotificationManagementMockModule {
|
7279
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
7280
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
7281
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
7376
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCNotificationManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
7377
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCNotificationManagementMockModule }); }
|
7378
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCNotificationManagementMockModule, providers: [
|
7282
7379
|
{
|
7283
7380
|
provide: AXP_DATA_SEEDER_TOKEN,
|
7284
7381
|
useClass: AXCNotificationTemplateDataSeeder,
|
@@ -7290,7 +7387,7 @@ class AXCNotificationManagementMockModule {
|
|
7290
7387
|
},
|
7291
7388
|
] }); }
|
7292
7389
|
}
|
7293
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
7390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCNotificationManagementMockModule, decorators: [{
|
7294
7391
|
type: NgModule,
|
7295
7392
|
args: [{
|
7296
7393
|
imports: [],
|
@@ -7432,10 +7529,10 @@ class AXCApplicationTemplateDataSeeder {
|
|
7432
7529
|
const properties = this.storageService.initial(PROPERTY_SOURCE_NAME, PROPERTIES);
|
7433
7530
|
await Promise.all([applications, modules, entities, features, permissions, editions, properties]);
|
7434
7531
|
}
|
7435
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
7436
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
7532
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCApplicationTemplateDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
7533
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCApplicationTemplateDataSeeder }); }
|
7437
7534
|
}
|
7438
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
7535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCApplicationTemplateDataSeeder, decorators: [{
|
7439
7536
|
type: Injectable
|
7440
7537
|
}] });
|
7441
7538
|
|
@@ -7521,10 +7618,10 @@ class AXCModuleDesignerService {
|
|
7521
7618
|
async createPermission(payload) { }
|
7522
7619
|
async updatePermission(payload) { }
|
7523
7620
|
async deletePermission(permissionId) { }
|
7524
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
7525
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
7621
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCModuleDesignerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
7622
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCModuleDesignerService, providedIn: 'root' }); }
|
7526
7623
|
}
|
7527
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
7624
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCModuleDesignerService, decorators: [{
|
7528
7625
|
type: Injectable,
|
7529
7626
|
args: [{
|
7530
7627
|
providedIn: 'root',
|
@@ -7532,9 +7629,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
7532
7629
|
}] });
|
7533
7630
|
|
7534
7631
|
class AXCApplicationManagementMockModule {
|
7535
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
7536
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
7537
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
7632
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCApplicationManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
7633
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCApplicationManagementMockModule }); }
|
7634
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCApplicationManagementMockModule, providers: [
|
7538
7635
|
{
|
7539
7636
|
provide: AXP_DATA_SEEDER_TOKEN,
|
7540
7637
|
useClass: AXCApplicationTemplateDataSeeder,
|
@@ -7546,7 +7643,7 @@ class AXCApplicationManagementMockModule {
|
|
7546
7643
|
},
|
7547
7644
|
] }); }
|
7548
7645
|
}
|
7549
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
7646
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCApplicationManagementMockModule, decorators: [{
|
7550
7647
|
type: NgModule,
|
7551
7648
|
args: [{
|
7552
7649
|
imports: [],
|
@@ -7824,10 +7921,10 @@ class AXCTrainingDataSeeder {
|
|
7824
7921
|
async seed() {
|
7825
7922
|
await this.storageService.initial(`${RootConfig$b.module.name}.${RootConfig$b.entities.training.name}`, trainingMock);
|
7826
7923
|
}
|
7827
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
7828
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
7924
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTrainingDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
7925
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTrainingDataSeeder }); }
|
7829
7926
|
}
|
7830
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
7927
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTrainingDataSeeder, decorators: [{
|
7831
7928
|
type: Injectable
|
7832
7929
|
}] });
|
7833
7930
|
|
@@ -7838,10 +7935,10 @@ class AXCTrainigTypeDataSeeder {
|
|
7838
7935
|
async seed() {
|
7839
7936
|
await this.storageService.initial(`${RootConfig$b.module.name}.${RootConfig$b.entities.trainingType.name}`, trainingTypeMockData);
|
7840
7937
|
}
|
7841
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
7842
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
7938
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTrainigTypeDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
7939
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTrainigTypeDataSeeder }); }
|
7843
7940
|
}
|
7844
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
7941
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTrainigTypeDataSeeder, decorators: [{
|
7845
7942
|
type: Injectable
|
7846
7943
|
}] });
|
7847
7944
|
|
@@ -7871,10 +7968,10 @@ class AXCTrainingParticipantDataSeeder {
|
|
7871
7968
|
async seed() {
|
7872
7969
|
await this.storageService.initial(`${RootConfig$b.module.name}.${RootConfig$b.entities.trainingParticipant.name}`, trainingParticipantMockData);
|
7873
7970
|
}
|
7874
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
7875
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
7971
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTrainingParticipantDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
7972
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTrainingParticipantDataSeeder }); }
|
7876
7973
|
}
|
7877
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
7974
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTrainingParticipantDataSeeder, decorators: [{
|
7878
7975
|
type: Injectable
|
7879
7976
|
}] });
|
7880
7977
|
|
@@ -7918,10 +8015,10 @@ class AXCTrainingFacilitatorDataSeeder {
|
|
7918
8015
|
async seed() {
|
7919
8016
|
await this.storageService.initial(`${RootConfig$b.module.name}.${RootConfig$b.entities.trainingFacilitator.name}`, trainingFacilitatorMock);
|
7920
8017
|
}
|
7921
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
7922
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
8018
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTrainingFacilitatorDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
8019
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTrainingFacilitatorDataSeeder }); }
|
7923
8020
|
}
|
7924
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
8021
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTrainingFacilitatorDataSeeder, decorators: [{
|
7925
8022
|
type: Injectable
|
7926
8023
|
}] });
|
7927
8024
|
|
@@ -7932,10 +8029,10 @@ class AXCPeriodDataSeeder {
|
|
7932
8029
|
async seed() {
|
7933
8030
|
await this.storageService.initial(`${RootConfig$b.module.name}.${RootConfig$b.entities.period.name}`, periodMock);
|
7934
8031
|
}
|
7935
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
7936
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
8032
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCPeriodDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
8033
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCPeriodDataSeeder }); }
|
7937
8034
|
}
|
7938
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
8035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCPeriodDataSeeder, decorators: [{
|
7939
8036
|
type: Injectable
|
7940
8037
|
}] });
|
7941
8038
|
|
@@ -7949,17 +8046,17 @@ class AXCCourseDataSeeder {
|
|
7949
8046
|
await this.storageService.initial(`${RootConfig$b.module.name}.${RootConfig$b.entities.courseLocation.name}`, courseLocationMock);
|
7950
8047
|
await this.storageService.initial(`${RootConfig$b.module.name}.${RootConfig$b.entities.coursePeriod.name}`, coursePeriodMockData);
|
7951
8048
|
}
|
7952
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
7953
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
8049
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCCourseDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
8050
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCCourseDataSeeder }); }
|
7954
8051
|
}
|
7955
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
8052
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCCourseDataSeeder, decorators: [{
|
7956
8053
|
type: Injectable
|
7957
8054
|
}] });
|
7958
8055
|
|
7959
8056
|
class AXCTrainingManagementMockModule {
|
7960
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
7961
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
7962
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
8057
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTrainingManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
8058
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCTrainingManagementMockModule }); }
|
8059
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTrainingManagementMockModule, providers: [
|
7963
8060
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCTrainingDataSeeder, multi: true },
|
7964
8061
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCTrainigTypeDataSeeder, multi: true },
|
7965
8062
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCTrainingParticipantDataSeeder, multi: true },
|
@@ -7968,7 +8065,7 @@ class AXCTrainingManagementMockModule {
|
|
7968
8065
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCCourseDataSeeder, multi: true },
|
7969
8066
|
] }); }
|
7970
8067
|
}
|
7971
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
8068
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTrainingManagementMockModule, decorators: [{
|
7972
8069
|
type: NgModule,
|
7973
8070
|
args: [{
|
7974
8071
|
imports: [],
|
@@ -8016,10 +8113,10 @@ class AXCProjectclientDataSeeder {
|
|
8016
8113
|
async seed() {
|
8017
8114
|
await this.storageService.initial(`${RootConfig$c.module.name}.${RootConfig$c.entities.client.name}`, ClientMock);
|
8018
8115
|
}
|
8019
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
8020
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
8116
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCProjectclientDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
8117
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCProjectclientDataSeeder }); }
|
8021
8118
|
}
|
8022
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
8119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCProjectclientDataSeeder, decorators: [{
|
8023
8120
|
type: Injectable
|
8024
8121
|
}] });
|
8025
8122
|
|
@@ -8061,10 +8158,10 @@ class AXCProjectDataSeeder {
|
|
8061
8158
|
async seed() {
|
8062
8159
|
await this.storageService.initial(`${RootConfig$c.module.name}.${RootConfig$c.entities.project.name}`, projectMock$1);
|
8063
8160
|
}
|
8064
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
8065
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
8161
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCProjectDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
8162
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCProjectDataSeeder }); }
|
8066
8163
|
}
|
8067
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
8164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCProjectDataSeeder, decorators: [{
|
8068
8165
|
type: Injectable
|
8069
8166
|
}] });
|
8070
8167
|
|
@@ -8132,10 +8229,10 @@ class AXCProjectMemberDataSeeder {
|
|
8132
8229
|
async seed() {
|
8133
8230
|
await this.storageService.initial(`${RootConfig$c.module.name}.${RootConfig$c.entities.projectMemeber.name}`, projectMemberMock);
|
8134
8231
|
}
|
8135
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
8136
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
8232
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCProjectMemberDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
8233
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCProjectMemberDataSeeder }); }
|
8137
8234
|
}
|
8138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
8235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCProjectMemberDataSeeder, decorators: [{
|
8139
8236
|
type: Injectable
|
8140
8237
|
}] });
|
8141
8238
|
|
@@ -8147,10 +8244,10 @@ class AXCProjectRoleMemberDataSeeder {
|
|
8147
8244
|
await this.storageService.initial(`${RootConfig$c.module.name}.${RootConfig$c.entities.projectType.name}`, projectTypeMock);
|
8148
8245
|
await this.storageService.initial(`${RootConfig$c.module.name}.${RootConfig$c.entities.projectRoleMember.name}`, projectRoleMemberMock);
|
8149
8246
|
}
|
8150
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
8151
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
8247
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCProjectRoleMemberDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
8248
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCProjectRoleMemberDataSeeder }); }
|
8152
8249
|
}
|
8153
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
8250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCProjectRoleMemberDataSeeder, decorators: [{
|
8154
8251
|
type: Injectable
|
8155
8252
|
}] });
|
8156
8253
|
|
@@ -8191,10 +8288,10 @@ class AXCsprintDataSeeder {
|
|
8191
8288
|
async seed() {
|
8192
8289
|
await this.storageService.initial(`${RootConfig$c.module.name}.${RootConfig$c.entities.sprint.name}`, sprintMock);
|
8193
8290
|
}
|
8194
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
8195
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
8291
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCsprintDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
8292
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCsprintDataSeeder }); }
|
8196
8293
|
}
|
8197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
8294
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCsprintDataSeeder, decorators: [{
|
8198
8295
|
type: Injectable
|
8199
8296
|
}] });
|
8200
8297
|
|
@@ -8229,10 +8326,10 @@ class AXCTaskTypeDataSeeder {
|
|
8229
8326
|
async seed() {
|
8230
8327
|
await this.storageService.initial(`${RootConfig$c.module.name}.${RootConfig$c.entities.taskType.name}`, taskTypeMock);
|
8231
8328
|
}
|
8232
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
8233
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
8329
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTaskTypeDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
8330
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTaskTypeDataSeeder }); }
|
8234
8331
|
}
|
8235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
8332
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTaskTypeDataSeeder, decorators: [{
|
8236
8333
|
type: Injectable
|
8237
8334
|
}] });
|
8238
8335
|
|
@@ -8298,10 +8395,10 @@ class AXCTaskDataSeeder {
|
|
8298
8395
|
async seed() {
|
8299
8396
|
await this.storageService.initial(`${RootConfig$c.module.name}.${RootConfig$c.entities.task.name}`, taskMock);
|
8300
8397
|
}
|
8301
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
8302
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
8398
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTaskDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
8399
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTaskDataSeeder }); }
|
8303
8400
|
}
|
8304
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
8401
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCTaskDataSeeder, decorators: [{
|
8305
8402
|
type: Injectable
|
8306
8403
|
}] });
|
8307
8404
|
|
@@ -8312,17 +8409,17 @@ class AXCWorkSiteSeeder {
|
|
8312
8409
|
async seed() {
|
8313
8410
|
await this.storageService.initial(`${RootConfig$c.module.name}.${RootConfig$c.entities.workSite.name}`, workSiteMock);
|
8314
8411
|
}
|
8315
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
8316
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
8412
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCWorkSiteSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
8413
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCWorkSiteSeeder }); }
|
8317
8414
|
}
|
8318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
8415
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCWorkSiteSeeder, decorators: [{
|
8319
8416
|
type: Injectable
|
8320
8417
|
}] });
|
8321
8418
|
|
8322
8419
|
class AXCProjectManagementMockModule {
|
8323
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
8324
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
8325
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
8420
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCProjectManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
8421
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCProjectManagementMockModule }); }
|
8422
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCProjectManagementMockModule, providers: [
|
8326
8423
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCProjectclientDataSeeder, multi: true },
|
8327
8424
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCProjectDataSeeder, multi: true },
|
8328
8425
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCProjectMemberDataSeeder, multi: true },
|
@@ -8333,7 +8430,7 @@ class AXCProjectManagementMockModule {
|
|
8333
8430
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCWorkSiteSeeder, multi: true },
|
8334
8431
|
] }); }
|
8335
8432
|
}
|
8336
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
8433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCProjectManagementMockModule, decorators: [{
|
8337
8434
|
type: NgModule,
|
8338
8435
|
args: [{
|
8339
8436
|
imports: [],
|
@@ -8965,10 +9062,10 @@ class AXCFolderDataSeeder {
|
|
8965
9062
|
await this.storageService.initial(`${RootConfig$d.module.name}.${RootConfig$d.entities.folder.name}`, FOLDER_MOCK_DATA);
|
8966
9063
|
await this.storageService.initial(`${RootConfig$d.module.name}.${RootConfig$d.entities.document.name}`, FILE_MOCK_DATA);
|
8967
9064
|
}
|
8968
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
8969
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
9065
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCFolderDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
9066
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCFolderDataSeeder }); }
|
8970
9067
|
}
|
8971
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
9068
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCFolderDataSeeder, decorators: [{
|
8972
9069
|
type: Injectable
|
8973
9070
|
}] });
|
8974
9071
|
|
@@ -8979,10 +9076,10 @@ class AXCDocumentTypeDataSeeder {
|
|
8979
9076
|
async seed() {
|
8980
9077
|
await this.storageService.initial(`${RootConfig$d.module.name}.${RootConfig$d.entities.documentType.name}`, DOCUMENT_TYPES);
|
8981
9078
|
}
|
8982
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
8983
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
9079
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCDocumentTypeDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
9080
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCDocumentTypeDataSeeder }); }
|
8984
9081
|
}
|
8985
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
9082
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCDocumentTypeDataSeeder, decorators: [{
|
8986
9083
|
type: Injectable
|
8987
9084
|
}] });
|
8988
9085
|
|
@@ -9303,16 +9400,16 @@ class AXMFileMockService extends AXMDocumentServiceImpl {
|
|
9303
9400
|
}
|
9304
9401
|
|
9305
9402
|
class AXCDocumentManagementMockModule {
|
9306
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
9307
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
9308
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
9403
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCDocumentManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
9404
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCDocumentManagementMockModule }); }
|
9405
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCDocumentManagementMockModule, providers: [
|
9309
9406
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCFolderDataSeeder, multi: true },
|
9310
9407
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXCDocumentTypeDataSeeder, multi: true },
|
9311
9408
|
{ provide: AXMFolderService, useClass: AXCFolderMockService },
|
9312
9409
|
{ provide: AXMDocumentService, useClass: AXMFileMockService },
|
9313
9410
|
] }); }
|
9314
9411
|
}
|
9315
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
9412
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCDocumentManagementMockModule, decorators: [{
|
9316
9413
|
type: NgModule,
|
9317
9414
|
args: [{
|
9318
9415
|
imports: [],
|
@@ -9400,21 +9497,21 @@ class AXPIssueTypeDataSeeder {
|
|
9400
9497
|
async seed() {
|
9401
9498
|
await this.storageService.initial(`${RootConfig$e.module.name}.${RootConfig$e.entities.issueType.name}`, ISSUE_TYPES);
|
9402
9499
|
}
|
9403
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
9404
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
9500
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPIssueTypeDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
9501
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPIssueTypeDataSeeder }); }
|
9405
9502
|
}
|
9406
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
9503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPIssueTypeDataSeeder, decorators: [{
|
9407
9504
|
type: Injectable
|
9408
9505
|
}] });
|
9409
9506
|
|
9410
9507
|
class AXCIssueManagementMockModule {
|
9411
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
9412
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
9413
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
9508
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCIssueManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
9509
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCIssueManagementMockModule }); }
|
9510
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCIssueManagementMockModule, providers: [
|
9414
9511
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXPIssueTypeDataSeeder, multi: true },
|
9415
9512
|
] }); }
|
9416
9513
|
}
|
9417
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
9514
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCIssueManagementMockModule, decorators: [{
|
9418
9515
|
type: NgModule,
|
9419
9516
|
args: [{
|
9420
9517
|
imports: [],
|
@@ -9429,61 +9526,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
9429
9526
|
const projectMock = [
|
9430
9527
|
{
|
9431
9528
|
id: AXPDataGenerator.uuid(),
|
9432
|
-
|
9433
|
-
message: 'Cannot access a disposed object.',
|
9434
|
-
actionName: 'ACoreX.OIDC.AuthorizeController.GetToken (ACoreX.OIDC.HttpApi)',
|
9435
|
-
operation: 'CheckPassword',
|
9436
|
-
category: 'Authentication',
|
9529
|
+
applicationName: 'DemoApp',
|
9437
9530
|
tenantId: 'b1e7040f-f219-2f64-2893-3a0e9c2315de',
|
9438
9531
|
tenantName: 'ark',
|
9439
9532
|
userId: 'fb0c9a89-f57f-43dd-82c2-b50992bdde8c',
|
9440
|
-
|
9441
|
-
|
9442
|
-
|
9443
|
-
|
9444
|
-
|
9445
|
-
|
9446
|
-
|
9447
|
-
|
9448
|
-
|
9449
|
-
|
9450
|
-
|
9451
|
-
|
9452
|
-
|
9453
|
-
|
9454
|
-
|
9455
|
-
|
9456
|
-
|
9457
|
-
|
9458
|
-
|
9459
|
-
|
9460
|
-
|
9461
|
-
|
9462
|
-
|
9463
|
-
|
9464
|
-
|
9465
|
-
|
9466
|
-
|
9467
|
-
|
9468
|
-
|
9469
|
-
|
9470
|
-
|
9471
|
-
|
9472
|
-
|
9473
|
-
|
9474
|
-
|
9475
|
-
|
9476
|
-
|
9477
|
-
|
9478
|
-
|
9479
|
-
|
9480
|
-
|
9481
|
-
|
9482
|
-
|
9483
|
-
|
9484
|
-
|
9485
|
-
sourceContext: '3Microsoft.AspNetCore.Identity.UserManager',
|
9486
|
-
},
|
9533
|
+
userName: 'admin',
|
9534
|
+
executionTime: new Date('2025-04-15T11:53:46Z'),
|
9535
|
+
executionDuration: 1234,
|
9536
|
+
clientIpAddress: '192.168.1.1',
|
9537
|
+
clientName: 'Chrome',
|
9538
|
+
clientId: 'client-123',
|
9539
|
+
correlationId: 'de5ccac8485c4c7f9afaf15603c36227',
|
9540
|
+
browserInfo: 'Chrome/90.0.4430.212',
|
9541
|
+
httpMethod: 'POST',
|
9542
|
+
url: '/api/auth/login',
|
9543
|
+
httpStatusCode: 200,
|
9544
|
+
exceptions: '',
|
9545
|
+
comments: 'Login successful',
|
9546
|
+
impersonatorUserId: undefined,
|
9547
|
+
impersonatorUserName: undefined,
|
9548
|
+
impersonatorTenantId: undefined,
|
9549
|
+
impersonatorTenantName: undefined,
|
9550
|
+
extraProperties: { custom: 'value' },
|
9551
|
+
actions: [
|
9552
|
+
{
|
9553
|
+
serviceName: 'AuthService',
|
9554
|
+
methodName: 'Login',
|
9555
|
+
parameters: '{ username: "admin" }',
|
9556
|
+
executionTime: new Date('2025-04-15T11:53:46Z'),
|
9557
|
+
executionDuration: 500,
|
9558
|
+
extraProperties: { action: 'login' },
|
9559
|
+
},
|
9560
|
+
],
|
9561
|
+
entityChanges: [
|
9562
|
+
{
|
9563
|
+
changeTime: new Date('2025-04-15T11:53:46Z'),
|
9564
|
+
entityId: 'user-1',
|
9565
|
+
entityTypeFullName: 'User',
|
9566
|
+
changeType: 'Update',
|
9567
|
+
propertyChanges: [
|
9568
|
+
{
|
9569
|
+
propertyName: 'lastLogin',
|
9570
|
+
propertyTypeFullName: 'DateTime',
|
9571
|
+
originalValue: '2025-04-14T10:00:00Z',
|
9572
|
+
newValue: '2025-04-15T11:53:46Z',
|
9573
|
+
},
|
9574
|
+
],
|
9575
|
+
extraProperties: { reason: 'login' },
|
9576
|
+
},
|
9577
|
+
],
|
9487
9578
|
},
|
9488
9579
|
];
|
9489
9580
|
|
@@ -9494,21 +9585,21 @@ class AXMLogDataSeeder {
|
|
9494
9585
|
async seed() {
|
9495
9586
|
await this.storageService.initial(`${RootConfig$f.module.name}.${RootConfig$f.entities.axpLog.name}`, projectMock);
|
9496
9587
|
}
|
9497
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
9498
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
9588
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMLogDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
9589
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMLogDataSeeder }); }
|
9499
9590
|
}
|
9500
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
9591
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMLogDataSeeder, decorators: [{
|
9501
9592
|
type: Injectable
|
9502
9593
|
}] });
|
9503
9594
|
|
9504
9595
|
class AXCLogManagementMockModule {
|
9505
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
9506
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
9507
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
9596
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCLogManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
9597
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCLogManagementMockModule }); }
|
9598
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCLogManagementMockModule, providers: [
|
9508
9599
|
{ provide: AXP_DATA_SEEDER_TOKEN, useClass: AXMLogDataSeeder, multi: true },
|
9509
9600
|
] }); }
|
9510
9601
|
}
|
9511
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
9602
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCLogManagementMockModule, decorators: [{
|
9512
9603
|
type: NgModule,
|
9513
9604
|
args: [{
|
9514
9605
|
imports: [],
|
@@ -9775,10 +9866,10 @@ class AXCLockService {
|
|
9775
9866
|
}
|
9776
9867
|
return collection.toArray();
|
9777
9868
|
}
|
9778
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
9779
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
9869
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCLockService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
9870
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCLockService }); }
|
9780
9871
|
}
|
9781
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
9872
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCLockService, decorators: [{
|
9782
9873
|
type: Injectable
|
9783
9874
|
}], ctorParameters: () => [] });
|
9784
9875
|
|
@@ -9877,9 +9968,9 @@ class AXCRegionalServiceImpl extends AXPRegionalService {
|
|
9877
9968
|
}
|
9878
9969
|
|
9879
9970
|
class AXCCommonMockModule {
|
9880
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
9881
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
9882
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
9971
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCCommonMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
9972
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCCommonMockModule }); }
|
9973
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCCommonMockModule, providers: [
|
9883
9974
|
{
|
9884
9975
|
provide: AXP_ACTIVITY_LOG_PROVIDER,
|
9885
9976
|
useClass: AXCPActivityLogService,
|
@@ -9900,7 +9991,7 @@ class AXCCommonMockModule {
|
|
9900
9991
|
}
|
9901
9992
|
] }); }
|
9902
9993
|
}
|
9903
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
9994
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCCommonMockModule, decorators: [{
|
9904
9995
|
type: NgModule,
|
9905
9996
|
args: [{
|
9906
9997
|
imports: [],
|
@@ -10091,10 +10182,10 @@ class AXCCalendarDataSeeder {
|
|
10091
10182
|
async seed() {
|
10092
10183
|
await this.storageService.initial(`${RootConfig$g.module.name}.${RootConfig$g.entities.calendar.name}`, calendarMock);
|
10093
10184
|
}
|
10094
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
10095
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
10185
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCCalendarDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
10186
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCCalendarDataSeeder }); }
|
10096
10187
|
}
|
10097
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
10188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCCalendarDataSeeder, decorators: [{
|
10098
10189
|
type: Injectable
|
10099
10190
|
}] });
|
10100
10191
|
|
@@ -10349,10 +10440,10 @@ class AXCCalendarEventDataSeeder {
|
|
10349
10440
|
async seed() {
|
10350
10441
|
await this.storageService.initial(`${RootConfig$g.module.name}.${RootConfig$g.entities.calendarEvent.name}`, calendarEventMock);
|
10351
10442
|
}
|
10352
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
10353
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
10443
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCCalendarEventDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
10444
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCCalendarEventDataSeeder }); }
|
10354
10445
|
}
|
10355
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
10446
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCCalendarEventDataSeeder, decorators: [{
|
10356
10447
|
type: Injectable
|
10357
10448
|
}] });
|
10358
10449
|
|
@@ -10363,17 +10454,17 @@ class AXMCalendarEventTypeSeeder {
|
|
10363
10454
|
async seed() {
|
10364
10455
|
await this.storageService.initial(`${RootConfig$g.module.name}.${RootConfig$g.entities.calendarEventType.name}`, calendarEventTypeMockData);
|
10365
10456
|
}
|
10366
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
10367
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
10457
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMCalendarEventTypeSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
10458
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMCalendarEventTypeSeeder }); }
|
10368
10459
|
}
|
10369
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
10460
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMCalendarEventTypeSeeder, decorators: [{
|
10370
10461
|
type: Injectable
|
10371
10462
|
}] });
|
10372
10463
|
|
10373
10464
|
class AXMCalendarManagementMockModule {
|
10374
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
10375
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
10376
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
10465
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMCalendarManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
10466
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXMCalendarManagementMockModule }); }
|
10467
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMCalendarManagementMockModule, providers: [
|
10377
10468
|
{
|
10378
10469
|
provide: AXP_DATA_SEEDER_TOKEN,
|
10379
10470
|
useClass: AXCCalendarDataSeeder,
|
@@ -10391,7 +10482,7 @@ class AXMCalendarManagementMockModule {
|
|
10391
10482
|
},
|
10392
10483
|
] }); }
|
10393
10484
|
}
|
10394
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
10485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMCalendarManagementMockModule, decorators: [{
|
10395
10486
|
type: NgModule,
|
10396
10487
|
args: [{
|
10397
10488
|
providers: [
|
@@ -10493,17 +10584,17 @@ class AXCQueryDataSeeder {
|
|
10493
10584
|
await this.storageService.initial(`${RootConfig$h.module.name}.${RootConfig$h.entities.queryCategory.name}`, QUERY_CATEGORY_MOCK);
|
10494
10585
|
await this.storageService.initial(`${RootConfig$h.module.name}.${RootConfig$h.entities.query.name}`, QUERY_MOCK);
|
10495
10586
|
}
|
10496
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
10497
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
10587
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCQueryDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
10588
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCQueryDataSeeder }); }
|
10498
10589
|
}
|
10499
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
10590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCQueryDataSeeder, decorators: [{
|
10500
10591
|
type: Injectable
|
10501
10592
|
}] });
|
10502
10593
|
|
10503
10594
|
class AXCDataManagementMockModule {
|
10504
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
10505
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
10506
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
10595
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCDataManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
10596
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCDataManagementMockModule }); }
|
10597
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCDataManagementMockModule, providers: [
|
10507
10598
|
{
|
10508
10599
|
provide: AXP_DATA_SEEDER_TOKEN,
|
10509
10600
|
useClass: AXCQueryDataSeeder,
|
@@ -10511,7 +10602,7 @@ class AXCDataManagementMockModule {
|
|
10511
10602
|
},
|
10512
10603
|
] }); }
|
10513
10604
|
}
|
10514
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
10605
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCDataManagementMockModule, decorators: [{
|
10515
10606
|
type: NgModule,
|
10516
10607
|
args: [{
|
10517
10608
|
imports: [],
|
@@ -10539,8 +10630,8 @@ class AXCMockModule {
|
|
10539
10630
|
},
|
10540
10631
|
});
|
10541
10632
|
}
|
10542
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
10543
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
10633
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCMockModule, deps: [{ token: i1.AXPAppStartUpService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
10634
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXCMockModule, imports: [i2.AXPAuthModule, AXCCommonMockModule,
|
10544
10635
|
AXCFormTemplateManagementMockModule,
|
10545
10636
|
AXCFOrganizationManagementMockModule,
|
10546
10637
|
AXCReportManagementMockModule,
|
@@ -10561,7 +10652,7 @@ class AXCMockModule {
|
|
10561
10652
|
AXCLogManagementMockModule,
|
10562
10653
|
AXMCalendarManagementMockModule,
|
10563
10654
|
AXCDataManagementMockModule] }); }
|
10564
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
10655
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCMockModule, providers: [
|
10565
10656
|
{
|
10566
10657
|
provide: AXPEntityStorageService,
|
10567
10658
|
useClass: AXPDexieEntityStorageService,
|
@@ -10592,7 +10683,7 @@ class AXCMockModule {
|
|
10592
10683
|
AXMCalendarManagementMockModule,
|
10593
10684
|
AXCDataManagementMockModule] }); }
|
10594
10685
|
}
|
10595
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
10686
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCMockModule, decorators: [{
|
10596
10687
|
type: NgModule,
|
10597
10688
|
args: [{
|
10598
10689
|
imports: [
|
@@ -10633,40 +10724,410 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
10633
10724
|
}]
|
10634
10725
|
}], ctorParameters: () => [{ type: i1.AXPAppStartUpService }, { type: i0.Injector }] });
|
10635
10726
|
|
10727
|
+
class AXCMockOidcStrategy extends AXPAuthStrategy {
|
10728
|
+
constructor() {
|
10729
|
+
super(...arguments);
|
10730
|
+
this.sessionService = inject(AXPSessionService);
|
10731
|
+
this.storageService = inject(AXPEntityStorageService);
|
10732
|
+
this.router = inject(Router);
|
10733
|
+
this.applicationLoader = inject(AXP_APPLICATION_LOADER);
|
10734
|
+
this.tenantLoader = inject(AXP_TENANT_LOADER);
|
10735
|
+
}
|
10736
|
+
get name() {
|
10737
|
+
return 'oidc';
|
10738
|
+
}
|
10739
|
+
async signin(credentials) {
|
10740
|
+
// If username and password exist, use the existing implementation
|
10741
|
+
if (credentials.strategy === 'oidc' &&
|
10742
|
+
credentials.hasOwnProperty('username') &&
|
10743
|
+
credentials.hasOwnProperty('password')) {
|
10744
|
+
let foundUser = null;
|
10745
|
+
let users = [];
|
10746
|
+
// Create a temporary user based on the provided credentials so that the tenant loader can
|
10747
|
+
// resolve the correct list (e.g. root user will get extra tenants).
|
10748
|
+
const tempUser = {
|
10749
|
+
id: '',
|
10750
|
+
name: credentials['username'],
|
10751
|
+
title: credentials['username'],
|
10752
|
+
};
|
10753
|
+
// Instantiate a proper AXPSessionContext instead of using a type-casted literal.
|
10754
|
+
const sessionContext = new AXPSessionContext({
|
10755
|
+
user: tempUser,
|
10756
|
+
tenant: null,
|
10757
|
+
application: null,
|
10758
|
+
});
|
10759
|
+
const tenants = await firstValueFrom(this.tenantLoader.getList(sessionContext));
|
10760
|
+
const applications = await firstValueFrom(this.applicationLoader.getList(sessionContext));
|
10761
|
+
// If only one tenant/application, select it directly
|
10762
|
+
const tenant = Array.isArray(tenants) && tenants.length === 1 ? tenants[0] : undefined;
|
10763
|
+
let application = undefined;
|
10764
|
+
if (tenants) {
|
10765
|
+
let application = Array.isArray(applications) && applications.length === 1 ? applications[0] : undefined;
|
10766
|
+
}
|
10767
|
+
try {
|
10768
|
+
if (credentials['username'] == 'root' && credentials['password'] == '123') {
|
10769
|
+
const user = {
|
10770
|
+
id: 'a683a19a-e3eb-56a7-b81c-7cf9468ae831',
|
10771
|
+
name: 'root',
|
10772
|
+
title: 'Root User',
|
10773
|
+
avatar: 'https://avatar.iran.liara.run/public/29',
|
10774
|
+
};
|
10775
|
+
return {
|
10776
|
+
succeed: true,
|
10777
|
+
data: {
|
10778
|
+
user,
|
10779
|
+
tenant,
|
10780
|
+
application,
|
10781
|
+
accessToken: 'mock_access_token',
|
10782
|
+
idToken: 'mock_id_token',
|
10783
|
+
refreshToken: 'mock_refresh_token',
|
10784
|
+
},
|
10785
|
+
};
|
10786
|
+
}
|
10787
|
+
if (credentials['username'] == 'admin' && credentials['password'] == '123') {
|
10788
|
+
const user = {
|
10789
|
+
id: 'a683a19a-e3eb-46a7-b81c-7cf9468ae831',
|
10790
|
+
name: 'admin',
|
10791
|
+
title: 'Admin User',
|
10792
|
+
avatar: 'https://avatar.iran.liara.run/public/47',
|
10793
|
+
};
|
10794
|
+
return {
|
10795
|
+
succeed: true,
|
10796
|
+
data: {
|
10797
|
+
user,
|
10798
|
+
tenant,
|
10799
|
+
application,
|
10800
|
+
accessToken: 'mock_access_token',
|
10801
|
+
idToken: 'mock_id_token',
|
10802
|
+
refreshToken: 'mock_refresh_token',
|
10803
|
+
},
|
10804
|
+
};
|
10805
|
+
}
|
10806
|
+
users = await this.storageService.getAll('SecurityManagement.users');
|
10807
|
+
}
|
10808
|
+
catch (e) {
|
10809
|
+
users = [];
|
10810
|
+
}
|
10811
|
+
foundUser = users.find((u) => u['username'] === credentials['username'] && u['password'] === credentials['password']);
|
10812
|
+
if (!foundUser) {
|
10813
|
+
return {
|
10814
|
+
succeed: false,
|
10815
|
+
};
|
10816
|
+
}
|
10817
|
+
const user = {
|
10818
|
+
id: foundUser.id,
|
10819
|
+
name: foundUser.name,
|
10820
|
+
title: foundUser.title || '',
|
10821
|
+
avatar: foundUser.avatar || '',
|
10822
|
+
};
|
10823
|
+
return {
|
10824
|
+
succeed: true,
|
10825
|
+
data: {
|
10826
|
+
accessToken: 'mock_access_token',
|
10827
|
+
refreshToken: 'mock_refresh_token',
|
10828
|
+
idToken: 'mock_id_token',
|
10829
|
+
user,
|
10830
|
+
tenant,
|
10831
|
+
application,
|
10832
|
+
},
|
10833
|
+
};
|
10834
|
+
}
|
10835
|
+
// If OIDC with idToken/accessToken (OAuth callback)
|
10836
|
+
if (credentials.strategy === 'oidc' && credentials['idToken'] && credentials['accessToken']) {
|
10837
|
+
const payload = JwtUtil.parseJwt(credentials['idToken']);
|
10838
|
+
const user = {
|
10839
|
+
id: payload['sub'] || payload['http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier'] || '',
|
10840
|
+
title: payload['name'] || payload['email'] || '',
|
10841
|
+
name: payload['name'] || payload['email'] || '',
|
10842
|
+
avatar: payload['picture'] || '',
|
10843
|
+
};
|
10844
|
+
const tenant = payload['tenantid'] || payload['tenant']
|
10845
|
+
? {
|
10846
|
+
id: payload['tenantid'] || payload['tenant'] || '',
|
10847
|
+
name: payload['tenantname'] || 'test',
|
10848
|
+
title: payload['tenanttitle'] || '',
|
10849
|
+
}
|
10850
|
+
: undefined;
|
10851
|
+
const application = payload['applicationid'] || payload['application']
|
10852
|
+
? {
|
10853
|
+
id: payload['applicationid'] || payload['application'] || '',
|
10854
|
+
name: payload['applicationname'] || '',
|
10855
|
+
title: payload['applicationtitle'] || '',
|
10856
|
+
}
|
10857
|
+
: undefined;
|
10858
|
+
return {
|
10859
|
+
succeed: true,
|
10860
|
+
data: {
|
10861
|
+
accessToken: credentials['accessToken'],
|
10862
|
+
refreshToken: credentials['refreshToken'],
|
10863
|
+
idToken: credentials['idToken'],
|
10864
|
+
user,
|
10865
|
+
tenant,
|
10866
|
+
application,
|
10867
|
+
},
|
10868
|
+
};
|
10869
|
+
}
|
10870
|
+
// If not OIDC, fail
|
10871
|
+
return {
|
10872
|
+
succeed: false,
|
10873
|
+
};
|
10874
|
+
}
|
10875
|
+
async signout() {
|
10876
|
+
// No-op for mock
|
10877
|
+
}
|
10878
|
+
async refreshToken(context) {
|
10879
|
+
return {
|
10880
|
+
succeed: true,
|
10881
|
+
data: {
|
10882
|
+
accessToken: 'mock_access_token',
|
10883
|
+
refreshToken: 'mock_refresh_token',
|
10884
|
+
tenant: context.tenant,
|
10885
|
+
application: context.application,
|
10886
|
+
},
|
10887
|
+
};
|
10888
|
+
}
|
10889
|
+
async startAuthorizationFlow(tenantId, applicationId) {
|
10890
|
+
// Just log or no-op for mock
|
10891
|
+
const user = this.sessionService.user;
|
10892
|
+
// Instantiate a proper AXPSessionContext instead of using a type-casted literal.
|
10893
|
+
const sessionContext = new AXPSessionContext({
|
10894
|
+
user: user,
|
10895
|
+
tenant: null,
|
10896
|
+
application: null,
|
10897
|
+
});
|
10898
|
+
const tenants = await firstValueFrom(this.tenantLoader.getList(sessionContext));
|
10899
|
+
const applications = await firstValueFrom(this.applicationLoader.getList(sessionContext));
|
10900
|
+
const tenant = tenants.find((t) => t.id === tenantId);
|
10901
|
+
let application = applications.find((a) => a.id === applicationId);
|
10902
|
+
if (!tenant) {
|
10903
|
+
application = undefined;
|
10904
|
+
}
|
10905
|
+
const payload = {
|
10906
|
+
tenantid: tenantId,
|
10907
|
+
applicationid: applicationId,
|
10908
|
+
tenantname: tenant?.name || '',
|
10909
|
+
applicationname: application?.name || '',
|
10910
|
+
applicationtitle: application?.title || '',
|
10911
|
+
username: user?.name || '',
|
10912
|
+
name: user?.name || '',
|
10913
|
+
title: user?.title || '',
|
10914
|
+
avatar: user?.avatar || '',
|
10915
|
+
sub: user?.id || '',
|
10916
|
+
email: user?.name || '',
|
10917
|
+
picture: user?.avatar || '',
|
10918
|
+
tenanttitle: tenant?.title || '',
|
10919
|
+
};
|
10920
|
+
const idToken = JwtUtil.createJwt(payload);
|
10921
|
+
await this.sessionService.signin({
|
10922
|
+
strategy: 'oidc',
|
10923
|
+
idToken: idToken,
|
10924
|
+
accessToken: 'mock_access_token',
|
10925
|
+
refreshToken: 'mock_refresh_token',
|
10926
|
+
});
|
10927
|
+
// Wait 1 second, then navigate based on tenant/application presence
|
10928
|
+
await new Promise(resolve => setTimeout(resolve, 1000));
|
10929
|
+
if (!tenant) {
|
10930
|
+
this.router.navigate(['/auth/account/tenant-chooser']);
|
10931
|
+
return;
|
10932
|
+
}
|
10933
|
+
if (!application) {
|
10934
|
+
this.router.navigate(['/auth/account/app-chooser']);
|
10935
|
+
return;
|
10936
|
+
}
|
10937
|
+
this.router.navigate(['/home']);
|
10938
|
+
console.log('Mock OIDC startAuthorizationFlow', user, tenantId, applicationId);
|
10939
|
+
}
|
10940
|
+
async completeAuthorizationCodeFlow(options) {
|
10941
|
+
console.log('Mock OIDC completeAuthorizationCodeFlow');
|
10942
|
+
}
|
10943
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCMockOidcStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
10944
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCMockOidcStrategy }); }
|
10945
|
+
}
|
10946
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXCMockOidcStrategy, decorators: [{
|
10947
|
+
type: Injectable
|
10948
|
+
}] });
|
10949
|
+
|
10636
10950
|
class AXMReportExecuteCommand {
|
10637
10951
|
constructor() {
|
10638
10952
|
this.queryService = inject(AXPQueryService);
|
10953
|
+
this.reportDataCache = new Map();
|
10954
|
+
this.CACHE_TTL_MS = 30 * 60 * 1000; // 30 minutes
|
10955
|
+
this.DEFAULT_TOTAL_ITEMS = 150;
|
10956
|
+
// Set up periodic cache cleanup every 10 minutes
|
10957
|
+
setInterval(() => {
|
10958
|
+
this.clearExpiredCache();
|
10959
|
+
}, 10 * 60 * 1000);
|
10639
10960
|
}
|
10640
10961
|
//#region ---- Command Implementation ----
|
10641
|
-
async execute(
|
10962
|
+
async execute(context) {
|
10642
10963
|
try {
|
10643
|
-
const { reportId,
|
10644
|
-
|
10964
|
+
const { reportId, layoutId, dataSource, parameters } = context;
|
10965
|
+
await new Promise(resolve => setTimeout(resolve, 500));
|
10966
|
+
// Get the report definition
|
10645
10967
|
const reportDefinition = await this.queryService.fetch("ReportManagement.Report:GetById", reportId);
|
10646
10968
|
if (!reportDefinition) {
|
10647
10969
|
throw new Error(`Report with ID ${reportId} not found`);
|
10648
10970
|
}
|
10649
|
-
//
|
10650
|
-
const
|
10651
|
-
|
10652
|
-
|
10971
|
+
// Find the specific layout
|
10972
|
+
const layoutDefinition = reportDefinition.layouts.find((l) => l.id === layoutId);
|
10973
|
+
if (!layoutDefinition) {
|
10974
|
+
throw new Error(`Layout with ID ${layoutId} not found in report ${reportId}`);
|
10975
|
+
}
|
10976
|
+
// Generate data based on the layout type and data source
|
10977
|
+
const executionResult = await this.generateLayoutData(reportDefinition, layoutDefinition, dataSource, parameters);
|
10978
|
+
// Return the combined layout configuration and data
|
10653
10979
|
return {
|
10654
|
-
|
10655
|
-
|
10656
|
-
page,
|
10657
|
-
pageSize
|
10980
|
+
...layoutDefinition.layout,
|
10981
|
+
data: executionResult
|
10658
10982
|
};
|
10659
10983
|
}
|
10660
10984
|
catch (error) {
|
10661
10985
|
console.error('Error executing report:', error);
|
10662
|
-
|
10986
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
|
10987
|
+
throw new Error(`Failed to execute report: ${errorMessage}`);
|
10663
10988
|
}
|
10664
10989
|
}
|
10665
10990
|
//#endregion
|
10991
|
+
//#region ---- Layout-Specific Data Generation ----
|
10992
|
+
async generateLayoutData(reportDefinition, layoutDefinition, dataSource, parameters) {
|
10993
|
+
const layoutType = layoutDefinition.layout.type;
|
10994
|
+
switch (layoutType) {
|
10995
|
+
case 'table':
|
10996
|
+
return this.generateTableData(reportDefinition, layoutDefinition, dataSource, parameters);
|
10997
|
+
case 'chart':
|
10998
|
+
return this.generateChartData(reportDefinition, layoutDefinition, dataSource, parameters);
|
10999
|
+
default:
|
11000
|
+
throw new Error(`Unsupported layout type: ${layoutType}`);
|
11001
|
+
}
|
11002
|
+
}
|
11003
|
+
generateTableData(reportDefinition, layoutDefinition, dataSource, parameters) {
|
11004
|
+
const skip = parameters['skip'] || 0;
|
11005
|
+
const take = parameters['take'] || 10;
|
11006
|
+
// Get or generate cached data for the entire report
|
11007
|
+
const allData = this.getCachedOrGenerateReportData(reportDefinition, parameters);
|
11008
|
+
// Apply pagination
|
11009
|
+
const items = allData.slice(skip, skip + take);
|
11010
|
+
const total = allData.length;
|
11011
|
+
return {
|
11012
|
+
type: 'table',
|
11013
|
+
items,
|
11014
|
+
total
|
11015
|
+
};
|
11016
|
+
}
|
11017
|
+
generateChartData(reportDefinition, layoutDefinition, dataSource, parameters) {
|
11018
|
+
// For charts, use cached data and take first 12 items for aggregation
|
11019
|
+
const allData = this.getCachedOrGenerateReportData(reportDefinition, parameters);
|
11020
|
+
const rawData = allData.slice(0, 12); // 12 months of data
|
11021
|
+
// Transform to chart-friendly format based on chart configuration
|
11022
|
+
const chartConfig = layoutDefinition.layout; // Chart layout
|
11023
|
+
const dataMapping = chartConfig.options?.dataMapping;
|
11024
|
+
const xField = dataMapping?.xField || 'month';
|
11025
|
+
const yField = Array.isArray(dataMapping?.yFields) ? dataMapping.yFields[0] : (dataMapping?.yFields || 'value');
|
11026
|
+
const chartData = rawData.reduce((acc, item, index) => {
|
11027
|
+
const key = item[xField] ||
|
11028
|
+
item['month'] ||
|
11029
|
+
item['period'] ||
|
11030
|
+
`Period ${index + 1}`;
|
11031
|
+
const value = item[yField] ||
|
11032
|
+
item['amount'] ||
|
11033
|
+
item['value'] ||
|
11034
|
+
AXPDataGenerator.number(1000, 50000);
|
11035
|
+
acc[key] = value;
|
11036
|
+
return acc;
|
11037
|
+
}, {});
|
11038
|
+
return {
|
11039
|
+
type: 'chart',
|
11040
|
+
data: chartData
|
11041
|
+
};
|
11042
|
+
}
|
11043
|
+
//#region ---- Cache Management ----
|
11044
|
+
getCachedOrGenerateReportData(reportDefinition, parameters) {
|
11045
|
+
const cacheKey = this.generateCacheKey(reportDefinition, parameters);
|
11046
|
+
const reportVersion = this.generateReportVersion(reportDefinition);
|
11047
|
+
// Check if we have valid cached data
|
11048
|
+
const cachedData = this.reportDataCache.get(cacheKey);
|
11049
|
+
if (this.isCacheValid(cachedData, reportVersion)) {
|
11050
|
+
console.log(`🔄 Using cached data for report: ${reportDefinition.title} (${cachedData.data.length} items)`);
|
11051
|
+
return cachedData.data;
|
11052
|
+
}
|
11053
|
+
// Generate new data
|
11054
|
+
console.log(`🔥 Generating new data for report: ${reportDefinition.title} (${this.DEFAULT_TOTAL_ITEMS} items)`);
|
11055
|
+
const newData = this.generateMockDataForReport(reportDefinition, parameters, this.DEFAULT_TOTAL_ITEMS);
|
11056
|
+
// Cache the new data
|
11057
|
+
this.reportDataCache.set(cacheKey, {
|
11058
|
+
reportId: reportDefinition.id,
|
11059
|
+
reportVersion,
|
11060
|
+
data: newData,
|
11061
|
+
generatedAt: new Date()
|
11062
|
+
});
|
11063
|
+
console.log(`💾 Cached data for report: ${reportDefinition.title}, Cache size: ${this.reportDataCache.size}`);
|
11064
|
+
return newData;
|
11065
|
+
}
|
11066
|
+
generateCacheKey(reportDefinition, parameters) {
|
11067
|
+
// Create a cache key based on report ID and parameters that affect data generation
|
11068
|
+
const relevantParams = {
|
11069
|
+
category: parameters['category'],
|
11070
|
+
period: parameters['period'],
|
11071
|
+
month: parameters['month'],
|
11072
|
+
year: parameters['year'],
|
11073
|
+
quarter: parameters['quarter']
|
11074
|
+
};
|
11075
|
+
return `${reportDefinition.id}-${JSON.stringify(relevantParams)}`;
|
11076
|
+
}
|
11077
|
+
generateReportVersion(reportDefinition) {
|
11078
|
+
// Generate a simple hash of the report definition to detect changes
|
11079
|
+
// In a real implementation, you might use the report's lastModified date or version number
|
11080
|
+
const reportString = JSON.stringify({
|
11081
|
+
id: reportDefinition.id,
|
11082
|
+
title: reportDefinition.title,
|
11083
|
+
layoutsCount: reportDefinition.layouts?.length || 0
|
11084
|
+
});
|
11085
|
+
return btoa(reportString).substring(0, 16); // Simple hash
|
11086
|
+
}
|
11087
|
+
isCacheValid(cachedData, currentVersion) {
|
11088
|
+
if (!cachedData) {
|
11089
|
+
return false;
|
11090
|
+
}
|
11091
|
+
// Check if report version changed
|
11092
|
+
if (cachedData.reportVersion !== currentVersion) {
|
11093
|
+
console.log(`🔄 Cache invalidated due to report version change`);
|
11094
|
+
return false;
|
11095
|
+
}
|
11096
|
+
// Check if cache expired
|
11097
|
+
const now = new Date();
|
11098
|
+
const ageMs = now.getTime() - cachedData.generatedAt.getTime();
|
11099
|
+
if (ageMs > this.CACHE_TTL_MS) {
|
11100
|
+
console.log(`⏰ Cache expired (age: ${Math.round(ageMs / 1000 / 60)} minutes)`);
|
11101
|
+
return false;
|
11102
|
+
}
|
11103
|
+
return true;
|
11104
|
+
}
|
11105
|
+
clearExpiredCache() {
|
11106
|
+
const now = new Date();
|
11107
|
+
let expiredCount = 0;
|
11108
|
+
for (const [key, data] of this.reportDataCache.entries()) {
|
11109
|
+
const ageMs = now.getTime() - data.generatedAt.getTime();
|
11110
|
+
if (ageMs > this.CACHE_TTL_MS) {
|
11111
|
+
this.reportDataCache.delete(key);
|
11112
|
+
expiredCount++;
|
11113
|
+
}
|
11114
|
+
}
|
11115
|
+
if (expiredCount > 0) {
|
11116
|
+
console.log(`🧹 Cleared ${expiredCount} expired cache entries. Remaining: ${this.reportDataCache.size}`);
|
11117
|
+
}
|
11118
|
+
}
|
11119
|
+
/**
|
11120
|
+
* Manually clear all cached report data (useful for debugging or forcing refresh)
|
11121
|
+
*/
|
11122
|
+
clearCache() {
|
11123
|
+
const cacheSize = this.reportDataCache.size;
|
11124
|
+
this.reportDataCache.clear();
|
11125
|
+
console.log(`🗑️ Manually cleared all cache entries (${cacheSize} items removed)`);
|
11126
|
+
}
|
11127
|
+
//#endregion
|
10666
11128
|
//#region ---- Mock Data Generation Based on Report Type ----
|
10667
11129
|
generateMockDataForReport(reportDefinition, parameters, pageSize) {
|
10668
11130
|
const reportTitle = reportDefinition.title.toLowerCase();
|
10669
|
-
const data = [];
|
10670
11131
|
// Generate data based on report type
|
10671
11132
|
if (reportTitle.includes('balance sheet') || reportTitle.includes('financial')) {
|
10672
11133
|
return this.generateFinancialData(reportDefinition, parameters, pageSize);
|
@@ -10701,7 +11162,9 @@ class AXMReportExecuteCommand {
|
|
10701
11162
|
percentage: AXPDataGenerator.number(-25, 25),
|
10702
11163
|
category: ['Assets', 'Liabilities', 'Equity'][i % 3],
|
10703
11164
|
period: parameters['period'] || '2024-Q4',
|
10704
|
-
lastUpdated: this.getRandomPastDate(30)
|
11165
|
+
lastUpdated: this.getRandomPastDate(30),
|
11166
|
+
month: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'][i % 6],
|
11167
|
+
value: AXPDataGenerator.number(10000, 1000000)
|
10705
11168
|
});
|
10706
11169
|
}
|
10707
11170
|
return data;
|
@@ -10718,9 +11181,10 @@ class AXMReportExecuteCommand {
|
|
10718
11181
|
budget: amount * AXPDataGenerator.number(0.8, 1.2),
|
10719
11182
|
variance: AXPDataGenerator.number(-100000, 100000),
|
10720
11183
|
percentOfRevenue: AXPDataGenerator.number(0, 100),
|
10721
|
-
month: parameters['month'] || '
|
11184
|
+
month: parameters['month'] || ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'][i % 6],
|
10722
11185
|
year: parameters['year'] || 2024,
|
10723
|
-
category: ['Revenue', 'Expenses', 'Other'][i % 3]
|
11186
|
+
category: ['Revenue', 'Expenses', 'Other'][i % 3],
|
11187
|
+
value: amount
|
10724
11188
|
});
|
10725
11189
|
}
|
10726
11190
|
return data;
|
@@ -10742,7 +11206,9 @@ class AXMReportExecuteCommand {
|
|
10742
11206
|
reviewDate: this.getRandomPastDate(90),
|
10743
11207
|
manager: `${AXPDataGenerator.firstName()} ${AXPDataGenerator.lastName()}`,
|
10744
11208
|
hireDate: this.getRandomPastDate(1825), // ~5 years ago
|
10745
|
-
status: ['Active', 'On Leave', 'Probation'][i % 3]
|
11209
|
+
status: ['Active', 'On Leave', 'Probation'][i % 3],
|
11210
|
+
month: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'][i % 6],
|
11211
|
+
value: AXPDataGenerator.number(50000, 150000) // salary
|
10746
11212
|
});
|
10747
11213
|
}
|
10748
11214
|
return data;
|
@@ -10753,18 +11219,21 @@ class AXMReportExecuteCommand {
|
|
10753
11219
|
const regions = ['North', 'South', 'East', 'West', 'Central'];
|
10754
11220
|
const companies = ['Acme Corp', 'Tech Solutions Inc', 'Global Industries', 'Innovative Systems', 'Business Partners LLC'];
|
10755
11221
|
for (let i = 0; i < pageSize; i++) {
|
11222
|
+
const revenue = AXPDataGenerator.number(1000, 100000);
|
10756
11223
|
data.push({
|
10757
11224
|
id: AXPDataGenerator.uuid(),
|
10758
11225
|
salesRep: `${AXPDataGenerator.firstName()} ${AXPDataGenerator.lastName()}`,
|
10759
11226
|
product: products[i % products.length],
|
10760
11227
|
region: regions[i % regions.length],
|
10761
|
-
revenue:
|
11228
|
+
revenue: revenue,
|
10762
11229
|
units: AXPDataGenerator.number(1, 500),
|
10763
11230
|
commission: AXPDataGenerator.number(50, 5000),
|
10764
11231
|
saleDate: this.getRandomPastDate(365),
|
10765
11232
|
customer: companies[i % companies.length],
|
10766
11233
|
status: ['Closed', 'Pending', 'In Progress'][i % 3],
|
10767
|
-
quarter: parameters['quarter'] || 'Q4 2024'
|
11234
|
+
quarter: parameters['quarter'] || 'Q4 2024',
|
11235
|
+
month: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'][i % 6],
|
11236
|
+
value: revenue
|
10768
11237
|
});
|
10769
11238
|
}
|
10770
11239
|
return data;
|
@@ -10787,7 +11256,9 @@ class AXMReportExecuteCommand {
|
|
10787
11256
|
description: `Safety incident involving ${incidentTypes[i % incidentTypes.length].toLowerCase()}`,
|
10788
11257
|
status: ['Open', 'Under Investigation', 'Closed', 'Pending'][i % 4],
|
10789
11258
|
daysToResolve: AXPDataGenerator.number(1, 30),
|
10790
|
-
category: parameters['category'] || 'General Safety'
|
11259
|
+
category: parameters['category'] || 'General Safety',
|
11260
|
+
month: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'][i % 6],
|
11261
|
+
value: AXPDataGenerator.number(1, 100) // incident count
|
10791
11262
|
});
|
10792
11263
|
}
|
10793
11264
|
return data;
|
@@ -10806,7 +11277,8 @@ class AXMReportExecuteCommand {
|
|
10806
11277
|
description: `Sample data item ${i + 1} for ${reportDefinition.title}`,
|
10807
11278
|
priority: ['Low', 'Medium', 'High'][i % 3],
|
10808
11279
|
owner: `${AXPDataGenerator.firstName()} ${AXPDataGenerator.lastName()}`,
|
10809
|
-
tags: [`tag${i % 5}`, `category${i % 3}`]
|
11280
|
+
tags: [`tag${i % 5}`, `category${i % 3}`],
|
11281
|
+
month: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'][i % 6]
|
10810
11282
|
});
|
10811
11283
|
}
|
10812
11284
|
return data;
|
@@ -10818,120 +11290,24 @@ class AXMReportExecuteCommand {
|
|
10818
11290
|
const pastDate = new Date(now.getTime() - (daysAgo * 24 * 60 * 60 * 1000));
|
10819
11291
|
return AXPDataGenerator.date(pastDate, now);
|
10820
11292
|
}
|
10821
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
10822
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
11293
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMReportExecuteCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
11294
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMReportExecuteCommand, providedIn: 'root' }); }
|
10823
11295
|
}
|
10824
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
11296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMReportExecuteCommand, decorators: [{
|
10825
11297
|
type: Injectable,
|
10826
11298
|
args: [{
|
10827
11299
|
providedIn: 'root',
|
10828
11300
|
}]
|
10829
|
-
}] });
|
11301
|
+
}], ctorParameters: () => [] });
|
10830
11302
|
|
10831
11303
|
var execute_command = /*#__PURE__*/Object.freeze({
|
10832
11304
|
__proto__: null,
|
10833
11305
|
AXMReportExecuteCommand: AXMReportExecuteCommand
|
10834
11306
|
});
|
10835
11307
|
|
10836
|
-
class AXPSecurityManagementMockWidgetDataSourceProvider {
|
10837
|
-
async items() {
|
10838
|
-
return [
|
10839
|
-
{
|
10840
|
-
name: 'mock.securityUsers',
|
10841
|
-
title: 'Security Users',
|
10842
|
-
valueField: 'id',
|
10843
|
-
textField: 'displayName',
|
10844
|
-
columns: [
|
10845
|
-
{
|
10846
|
-
name: 'id',
|
10847
|
-
title: 'Id',
|
10848
|
-
},
|
10849
|
-
{
|
10850
|
-
name: 'username',
|
10851
|
-
title: 'Username',
|
10852
|
-
},
|
10853
|
-
{
|
10854
|
-
name: 'displayName',
|
10855
|
-
title: 'Display Name',
|
10856
|
-
},
|
10857
|
-
],
|
10858
|
-
samples: [
|
10859
|
-
{
|
10860
|
-
id: '1',
|
10861
|
-
username: 'johndoe',
|
10862
|
-
displayName: 'John Doe',
|
10863
|
-
},
|
10864
|
-
{
|
10865
|
-
id: '2',
|
10866
|
-
username: 'janesmith',
|
10867
|
-
displayName: 'Jane Smith',
|
10868
|
-
},
|
10869
|
-
],
|
10870
|
-
source: () => convertArrayToDataSource([
|
10871
|
-
{
|
10872
|
-
id: '1',
|
10873
|
-
username: 'johndoe',
|
10874
|
-
displayName: 'John Doe',
|
10875
|
-
},
|
10876
|
-
{
|
10877
|
-
id: '2',
|
10878
|
-
username: 'janesmith',
|
10879
|
-
displayName: 'Jane Smith',
|
10880
|
-
},
|
10881
|
-
{
|
10882
|
-
id: '3',
|
10883
|
-
username: 'mikeross',
|
10884
|
-
displayName: 'Mike Ross',
|
10885
|
-
},
|
10886
|
-
]),
|
10887
|
-
},
|
10888
|
-
{
|
10889
|
-
name: 'mock.securityRoles',
|
10890
|
-
title: 'Security Roles',
|
10891
|
-
valueField: 'id',
|
10892
|
-
textField: 'title',
|
10893
|
-
columns: [
|
10894
|
-
{
|
10895
|
-
name: 'id',
|
10896
|
-
title: 'Id',
|
10897
|
-
},
|
10898
|
-
{
|
10899
|
-
name: 'title',
|
10900
|
-
title: 'Title',
|
10901
|
-
},
|
10902
|
-
],
|
10903
|
-
samples: [
|
10904
|
-
{
|
10905
|
-
id: 'admin',
|
10906
|
-
title: 'Administrator',
|
10907
|
-
},
|
10908
|
-
{
|
10909
|
-
id: 'user',
|
10910
|
-
title: 'Regular User',
|
10911
|
-
},
|
10912
|
-
],
|
10913
|
-
source: () => convertArrayToDataSource([
|
10914
|
-
{
|
10915
|
-
id: 'admin',
|
10916
|
-
title: 'Administrator',
|
10917
|
-
},
|
10918
|
-
{
|
10919
|
-
id: 'manager',
|
10920
|
-
title: 'Manager',
|
10921
|
-
},
|
10922
|
-
{
|
10923
|
-
id: 'user',
|
10924
|
-
title: 'Regular User',
|
10925
|
-
},
|
10926
|
-
]),
|
10927
|
-
},
|
10928
|
-
];
|
10929
|
-
}
|
10930
|
-
}
|
10931
|
-
|
10932
11308
|
/**
|
10933
11309
|
* Generated bundle index. Do not edit.
|
10934
11310
|
*/
|
10935
11311
|
|
10936
|
-
export { APPLICATIONS, APPLICATIONS_MODULES, AXCAppTermDataSeeder, AXCAppVersionDataSeeder, AXCApplicationManagementMockModule, AXCApplicationTemplateDataSeeder, AXCAuthMockModule, AXCCommonMockModule, AXCContactManagementMockModule, AXCConversationMockModule, AXCDashboardManagementMockModule, AXCDataManagementMockModule, AXCDocumentManagementMockModule, AXCFOrganizationManagementMockModule, AXCFileStorageService, AXCFormTemplateManagementMockModule, AXCGlobalVariablesDataSeeder, AXCIssueManagementMockModule, AXCLockService, AXCLogManagementMockModule, AXCMetaDataDefinitionDataSeeder, AXCMockModule, AXCNotificationManagementMockModule, AXCPlatformManagementMockModule, AXCProjectManagementMockModule, AXCReportManagementMockModule, AXCSchedulerJobDataSeeder, AXCSchedulerJobManagementMockModule, AXCSecurityManagementMockModule, AXCTextTemplateCategoryDataSeeder, AXCTextTemplateDataSeeder, AXCTextTemplateManagementMockModule, AXCTrainingManagementMockModule, AXMAiResponderService, AXMReportExecuteCommand, AXPDashboardDataSeeder, AXPDexieEntityStorageService, AXPMessageDataSeeder, AXPReportManagementDataSeeder, AXPRoomDataSeeder,
|
11312
|
+
export { APPLICATIONS, APPLICATIONS_MODULES, AXCAppTermDataSeeder, AXCAppVersionDataSeeder, AXCApplicationManagementMockModule, AXCApplicationTemplateDataSeeder, AXCAuthMockModule, AXCCommonMockModule, AXCContactManagementMockModule, AXCConversationMockModule, AXCDashboardManagementMockModule, AXCDataManagementMockModule, AXCDocumentManagementMockModule, AXCFOrganizationManagementMockModule, AXCFileStorageService, AXCFormTemplateManagementMockModule, AXCGlobalVariablesDataSeeder, AXCIssueManagementMockModule, AXCLockService, AXCLogManagementMockModule, AXCMetaDataDefinitionDataSeeder, AXCMockModule, AXCMockOidcStrategy, AXCNotificationManagementMockModule, AXCPlatformManagementMockModule, AXCProjectManagementMockModule, AXCReportManagementMockModule, AXCSchedulerJobDataSeeder, AXCSchedulerJobManagementMockModule, AXCSecurityManagementMockModule, AXCTextTemplateCategoryDataSeeder, AXCTextTemplateDataSeeder, AXCTextTemplateManagementMockModule, AXCTrainingManagementMockModule, AXMAiResponderService, AXMReportExecuteCommand, AXPDashboardDataSeeder, AXPDexieEntityStorageService, AXPMessageDataSeeder, AXPReportManagementDataSeeder, AXPRoomDataSeeder, AXPSecurityManagementRoleDataSeeder, AXPSecurityManagementUserDataSeeder, CATEGORY_REPORT_MAPPING, DASHBOARDS, EDITIONS, ENTITIES, FEATURES, GLOBAL_VARIABLES, MOCKStrategy, MODULES, PERMISSIONS, PROPERTIES, REPORT_CATEGORIES, REPORT_DEFINITIONS, TEXT_TEMPLATES, TEXT_TEMPLATE_CATEGORY, generateRandomDashboard };
|
10937
11313
|
//# sourceMappingURL=acorex-connectivity-mock.mjs.map
|