@acorex/connectivity 20.0.21 → 20.0.22
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.
@@ -12,6 +12,7 @@ import { AXSafePipe } from '@acorex/core/pipes';
|
|
12
12
|
import { RootConfig, AXMUsersEntityService, AXMSessionStatusTypes, AXMDeviceSessionsServiceImpl, AXMDeviceSessionsService } 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
|
+
import { AXPRuntimeModule, provideCommandSetups, AXPQueryService } from '@acorex/platform/runtime';
|
15
16
|
import { RootConfig as RootConfig$3 } from '@acorex/modules/report-management';
|
16
17
|
import { AXPWidgetsList } from '@acorex/modules/common';
|
17
18
|
import { RootConfig as RootConfig$4 } from '@acorex/modules/contact-management';
|
@@ -2207,8 +2208,12 @@ const commonParameterGroups = [
|
|
2207
2208
|
widget: {
|
2208
2209
|
type: AXPWidgetsList.Editors.DateTimeBox,
|
2209
2210
|
options: {
|
2210
|
-
|
2211
|
-
|
2211
|
+
format: 'date',
|
2212
|
+
validations: [
|
2213
|
+
{
|
2214
|
+
rule: 'required',
|
2215
|
+
}
|
2216
|
+
]
|
2212
2217
|
}
|
2213
2218
|
},
|
2214
2219
|
},
|
@@ -2219,8 +2224,7 @@ const commonParameterGroups = [
|
|
2219
2224
|
widget: {
|
2220
2225
|
type: AXPWidgetsList.Editors.DateTimeBox,
|
2221
2226
|
options: {
|
2222
|
-
|
2223
|
-
format: 'yyyy-MM-dd'
|
2227
|
+
format: 'date',
|
2224
2228
|
}
|
2225
2229
|
},
|
2226
2230
|
},
|
@@ -2909,6 +2913,80 @@ const ergonomicsParameterGroups = [
|
|
2909
2913
|
}
|
2910
2914
|
];
|
2911
2915
|
//#endregion
|
2916
|
+
//#region ---- Column Definitions Generator ----
|
2917
|
+
function generateColumnsForReportType(reportTitle) {
|
2918
|
+
const titleLower = reportTitle.toLowerCase();
|
2919
|
+
if (titleLower.includes('balance sheet') || titleLower.includes('financial')) {
|
2920
|
+
return [
|
2921
|
+
{ field: 'account', title: 'Account', visible: true, width: 150, align: 'left' },
|
2922
|
+
{ field: 'accountCode', title: 'Code', visible: true, width: 100, align: 'left' },
|
2923
|
+
{ field: 'currentAmount', title: 'Current Amount', visible: true, width: 120, align: 'right' },
|
2924
|
+
{ field: 'previousAmount', title: 'Previous Amount', visible: true, width: 120, align: 'right' },
|
2925
|
+
{ field: 'variance', title: 'Variance', visible: true, width: 100, align: 'right' },
|
2926
|
+
{ field: 'percentage', title: 'Change %', visible: true, width: 80, align: 'right' },
|
2927
|
+
{ field: 'category', title: 'Category', visible: true, width: 100, align: 'left' },
|
2928
|
+
];
|
2929
|
+
}
|
2930
|
+
else if (titleLower.includes('income') || titleLower.includes('profit')) {
|
2931
|
+
return [
|
2932
|
+
{ field: 'lineItem', title: 'Line Item', visible: true, width: 150, align: 'left' },
|
2933
|
+
{ field: 'amount', title: 'Amount', visible: true, width: 120, align: 'right' },
|
2934
|
+
{ field: 'budget', title: 'Budget', visible: true, width: 120, align: 'right' },
|
2935
|
+
{ field: 'variance', title: 'Variance', visible: true, width: 100, align: 'right' },
|
2936
|
+
{ field: 'percentOfRevenue', title: '% of Revenue', visible: true, width: 100, align: 'right' },
|
2937
|
+
{ field: 'category', title: 'Category', visible: true, width: 100, align: 'left' },
|
2938
|
+
];
|
2939
|
+
}
|
2940
|
+
else if (titleLower.includes('employee') || titleLower.includes('performance')) {
|
2941
|
+
return [
|
2942
|
+
{ field: 'employeeId', title: 'Employee ID', visible: true, width: 100, align: 'left' },
|
2943
|
+
{ field: 'name', title: 'Name', visible: true, width: 150, align: 'left' },
|
2944
|
+
{ field: 'department', title: 'Department', visible: true, width: 120, align: 'left' },
|
2945
|
+
{ field: 'position', title: 'Position', visible: true, width: 120, align: 'left' },
|
2946
|
+
{ field: 'performanceScore', title: 'Score', visible: true, width: 80, align: 'center' },
|
2947
|
+
{ field: 'goalsCompleted', title: 'Goals Done', visible: true, width: 90, align: 'center' },
|
2948
|
+
{ field: 'totalGoals', title: 'Total Goals', visible: true, width: 90, align: 'center' },
|
2949
|
+
{ field: 'status', title: 'Status', visible: true, width: 80, align: 'center' },
|
2950
|
+
];
|
2951
|
+
}
|
2952
|
+
else if (titleLower.includes('sales') || titleLower.includes('revenue')) {
|
2953
|
+
return [
|
2954
|
+
{ field: 'salesRep', title: 'Sales Rep', visible: true, width: 120, align: 'left' },
|
2955
|
+
{ field: 'product', title: 'Product', visible: true, width: 100, align: 'left' },
|
2956
|
+
{ field: 'region', title: 'Region', visible: true, width: 80, align: 'left' },
|
2957
|
+
{ field: 'customer', title: 'Customer', visible: true, width: 150, align: 'left' },
|
2958
|
+
{ field: 'revenue', title: 'Revenue', visible: true, width: 100, align: 'right' },
|
2959
|
+
{ field: 'units', title: 'Units', visible: true, width: 80, align: 'right' },
|
2960
|
+
{ field: 'commission', title: 'Commission', visible: true, width: 100, align: 'right' },
|
2961
|
+
{ field: 'status', title: 'Status', visible: true, width: 80, align: 'center' },
|
2962
|
+
];
|
2963
|
+
}
|
2964
|
+
else if (titleLower.includes('incident') || titleLower.includes('safety')) {
|
2965
|
+
return [
|
2966
|
+
{ field: 'incidentId', title: 'Incident ID', visible: true, width: 100, align: 'left' },
|
2967
|
+
{ field: 'type', title: 'Type', visible: true, width: 120, align: 'left' },
|
2968
|
+
{ field: 'severity', title: 'Severity', visible: true, width: 80, align: 'center' },
|
2969
|
+
{ field: 'location', title: 'Location', visible: true, width: 120, align: 'left' },
|
2970
|
+
{ field: 'reportedBy', title: 'Reported By', visible: true, width: 120, align: 'left' },
|
2971
|
+
{ field: 'dateReported', title: 'Date Reported', visible: true, width: 100, align: 'center' },
|
2972
|
+
{ field: 'status', title: 'Status', visible: true, width: 100, align: 'center' },
|
2973
|
+
{ field: 'daysToResolve', title: 'Days to Resolve', visible: true, width: 100, align: 'right' },
|
2974
|
+
];
|
2975
|
+
}
|
2976
|
+
else {
|
2977
|
+
// Generic columns for other report types
|
2978
|
+
return [
|
2979
|
+
{ field: 'title', title: 'Title', visible: true, width: 200, align: 'left' },
|
2980
|
+
{ field: 'category', title: 'Category', visible: true, width: 100, align: 'left' },
|
2981
|
+
{ field: 'value', title: 'Value', visible: true, width: 80, align: 'right' },
|
2982
|
+
{ field: 'status', title: 'Status', visible: true, width: 80, align: 'center' },
|
2983
|
+
{ field: 'priority', title: 'Priority', visible: true, width: 80, align: 'center' },
|
2984
|
+
{ field: 'owner', title: 'Owner', visible: true, width: 120, align: 'left' },
|
2985
|
+
{ field: 'createdDate', title: 'Created', visible: true, width: 100, align: 'center' },
|
2986
|
+
];
|
2987
|
+
}
|
2988
|
+
}
|
2989
|
+
//#endregion
|
2912
2990
|
//#region ---- Mock Report Definitions ----
|
2913
2991
|
function generateReportDefinitions() {
|
2914
2992
|
const reports = [];
|
@@ -3241,22 +3319,7 @@ function generateReportDefinitions() {
|
|
3241
3319
|
},
|
3242
3320
|
layout: {
|
3243
3321
|
type: 'table',
|
3244
|
-
columns:
|
3245
|
-
{
|
3246
|
-
field: 'name',
|
3247
|
-
title: 'Name',
|
3248
|
-
visible: true,
|
3249
|
-
width: 100,
|
3250
|
-
align: 'left',
|
3251
|
-
},
|
3252
|
-
{
|
3253
|
-
field: 'age',
|
3254
|
-
title: 'Age',
|
3255
|
-
visible: true,
|
3256
|
-
width: 100,
|
3257
|
-
align: 'left',
|
3258
|
-
},
|
3259
|
-
],
|
3322
|
+
columns: generateColumnsForReportType(report.title),
|
3260
3323
|
},
|
3261
3324
|
export: {
|
3262
3325
|
fileNameTemplate: 'Report_{date}_{user}',
|
@@ -3311,19 +3374,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
3311
3374
|
|
3312
3375
|
class AXCReportManagementMockModule {
|
3313
3376
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXCReportManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
3314
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.7", ngImport: i0, type: AXCReportManagementMockModule }); }
|
3377
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.7", ngImport: i0, type: AXCReportManagementMockModule, imports: [AXPRuntimeModule] }); }
|
3315
3378
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXCReportManagementMockModule, providers: [
|
3316
3379
|
{
|
3317
3380
|
provide: AXP_DATA_SEEDER_TOKEN,
|
3318
3381
|
useClass: AXPReportManagementDataSeeder,
|
3319
3382
|
multi: true,
|
3320
3383
|
},
|
3321
|
-
|
3384
|
+
provideCommandSetups([
|
3385
|
+
{
|
3386
|
+
key: 'ReportManagement.Report:Execute',
|
3387
|
+
command: () => Promise.resolve().then(function () { return execute_command; }).then((c) => c.AXMReportExecuteCommand),
|
3388
|
+
},
|
3389
|
+
]),
|
3390
|
+
], imports: [AXPRuntimeModule] }); }
|
3322
3391
|
}
|
3323
3392
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXCReportManagementMockModule, decorators: [{
|
3324
3393
|
type: NgModule,
|
3325
3394
|
args: [{
|
3326
|
-
imports: [],
|
3395
|
+
imports: [AXPRuntimeModule],
|
3327
3396
|
exports: [],
|
3328
3397
|
declarations: [],
|
3329
3398
|
providers: [
|
@@ -3332,6 +3401,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
3332
3401
|
useClass: AXPReportManagementDataSeeder,
|
3333
3402
|
multi: true,
|
3334
3403
|
},
|
3404
|
+
provideCommandSetups([
|
3405
|
+
{
|
3406
|
+
key: 'ReportManagement.Report:Execute',
|
3407
|
+
command: () => Promise.resolve().then(function () { return execute_command; }).then((c) => c.AXMReportExecuteCommand),
|
3408
|
+
},
|
3409
|
+
]),
|
3335
3410
|
],
|
3336
3411
|
}]
|
3337
3412
|
}] });
|
@@ -10519,6 +10594,206 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
10519
10594
|
}]
|
10520
10595
|
}], ctorParameters: () => [{ type: i1.AXPAppStartUpService }, { type: i0.Injector }] });
|
10521
10596
|
|
10597
|
+
class AXMReportExecuteCommand {
|
10598
|
+
constructor() {
|
10599
|
+
this.queryService = inject(AXPQueryService);
|
10600
|
+
}
|
10601
|
+
//#region ---- Command Implementation ----
|
10602
|
+
async execute(input) {
|
10603
|
+
try {
|
10604
|
+
const { reportId, parameters, page = 1, pageSize = 50 } = input;
|
10605
|
+
// Find the report definition
|
10606
|
+
const reportDefinition = await this.queryService.fetch("ReportManagement.Report:GetById", reportId);
|
10607
|
+
if (!reportDefinition) {
|
10608
|
+
throw new Error(`Report with ID ${reportId} not found`);
|
10609
|
+
}
|
10610
|
+
// Generate mock data based on report type and parameters
|
10611
|
+
const mockData = this.generateMockDataForReport(reportDefinition, parameters, pageSize);
|
10612
|
+
// Simulate total records (more than current page)
|
10613
|
+
const total = Math.max(mockData.length, pageSize * 3 + Math.floor(Math.random() * 50));
|
10614
|
+
return {
|
10615
|
+
data: mockData,
|
10616
|
+
total,
|
10617
|
+
page,
|
10618
|
+
pageSize
|
10619
|
+
};
|
10620
|
+
}
|
10621
|
+
catch (error) {
|
10622
|
+
console.error('Error executing report:', error);
|
10623
|
+
throw new Error('Failed to execute report');
|
10624
|
+
}
|
10625
|
+
}
|
10626
|
+
//#endregion
|
10627
|
+
//#region ---- Mock Data Generation Based on Report Type ----
|
10628
|
+
generateMockDataForReport(reportDefinition, parameters, pageSize) {
|
10629
|
+
const reportTitle = reportDefinition.title.toLowerCase();
|
10630
|
+
const data = [];
|
10631
|
+
// Generate data based on report type
|
10632
|
+
if (reportTitle.includes('balance sheet') || reportTitle.includes('financial')) {
|
10633
|
+
return this.generateFinancialData(reportDefinition, parameters, pageSize);
|
10634
|
+
}
|
10635
|
+
else if (reportTitle.includes('income') || reportTitle.includes('profit')) {
|
10636
|
+
return this.generateIncomeData(reportDefinition, parameters, pageSize);
|
10637
|
+
}
|
10638
|
+
else if (reportTitle.includes('employee') || reportTitle.includes('performance')) {
|
10639
|
+
return this.generateEmployeeData(reportDefinition, parameters, pageSize);
|
10640
|
+
}
|
10641
|
+
else if (reportTitle.includes('sales') || reportTitle.includes('revenue')) {
|
10642
|
+
return this.generateSalesData(reportDefinition, parameters, pageSize);
|
10643
|
+
}
|
10644
|
+
else if (reportTitle.includes('incident') || reportTitle.includes('safety')) {
|
10645
|
+
return this.generateSafetyData(reportDefinition, parameters, pageSize);
|
10646
|
+
}
|
10647
|
+
else {
|
10648
|
+
return this.generateGenericData(reportDefinition, parameters, pageSize);
|
10649
|
+
}
|
10650
|
+
}
|
10651
|
+
generateFinancialData(reportDefinition, parameters, pageSize) {
|
10652
|
+
const data = [];
|
10653
|
+
const accounts = ['Cash', 'Accounts Receivable', 'Inventory', 'Equipment', 'Accounts Payable', 'Long-term Debt', 'Equity'];
|
10654
|
+
for (let i = 0; i < pageSize; i++) {
|
10655
|
+
data.push({
|
10656
|
+
id: AXPDataGenerator.uuid(),
|
10657
|
+
account: accounts[i % accounts.length],
|
10658
|
+
accountCode: `${1000 + i}`,
|
10659
|
+
currentAmount: AXPDataGenerator.number(10000, 1000000),
|
10660
|
+
previousAmount: AXPDataGenerator.number(10000, 1000000),
|
10661
|
+
variance: AXPDataGenerator.number(-50000, 50000),
|
10662
|
+
percentage: AXPDataGenerator.number(-25, 25),
|
10663
|
+
category: ['Assets', 'Liabilities', 'Equity'][i % 3],
|
10664
|
+
period: parameters['period'] || '2024-Q4',
|
10665
|
+
lastUpdated: this.getRandomPastDate(30)
|
10666
|
+
});
|
10667
|
+
}
|
10668
|
+
return data;
|
10669
|
+
}
|
10670
|
+
generateIncomeData(reportDefinition, parameters, pageSize) {
|
10671
|
+
const data = [];
|
10672
|
+
const items = ['Revenue', 'Cost of Goods Sold', 'Gross Profit', 'Operating Expenses', 'Operating Income', 'Interest Expense', 'Net Income'];
|
10673
|
+
for (let i = 0; i < pageSize; i++) {
|
10674
|
+
const amount = AXPDataGenerator.number(50000, 2000000);
|
10675
|
+
data.push({
|
10676
|
+
id: AXPDataGenerator.uuid(),
|
10677
|
+
lineItem: items[i % items.length],
|
10678
|
+
amount: amount,
|
10679
|
+
budget: amount * AXPDataGenerator.number(0.8, 1.2),
|
10680
|
+
variance: AXPDataGenerator.number(-100000, 100000),
|
10681
|
+
percentOfRevenue: AXPDataGenerator.number(0, 100),
|
10682
|
+
month: parameters['month'] || 'December',
|
10683
|
+
year: parameters['year'] || 2024,
|
10684
|
+
category: ['Revenue', 'Expenses', 'Other'][i % 3]
|
10685
|
+
});
|
10686
|
+
}
|
10687
|
+
return data;
|
10688
|
+
}
|
10689
|
+
generateEmployeeData(reportDefinition, parameters, pageSize) {
|
10690
|
+
const data = [];
|
10691
|
+
const departments = ['Engineering', 'Sales', 'Marketing', 'HR', 'Finance', 'Operations'];
|
10692
|
+
const positions = ['Manager', 'Senior Specialist', 'Specialist', 'Junior', 'Lead'];
|
10693
|
+
for (let i = 0; i < pageSize; i++) {
|
10694
|
+
data.push({
|
10695
|
+
id: AXPDataGenerator.uuid(),
|
10696
|
+
employeeId: `EMP${1000 + i}`,
|
10697
|
+
name: `${AXPDataGenerator.firstName()} ${AXPDataGenerator.lastName()}`,
|
10698
|
+
department: departments[i % departments.length],
|
10699
|
+
position: positions[i % positions.length],
|
10700
|
+
performanceScore: AXPDataGenerator.number(1, 5),
|
10701
|
+
goalsCompleted: AXPDataGenerator.number(0, 10),
|
10702
|
+
totalGoals: AXPDataGenerator.number(8, 12),
|
10703
|
+
reviewDate: this.getRandomPastDate(90),
|
10704
|
+
manager: `${AXPDataGenerator.firstName()} ${AXPDataGenerator.lastName()}`,
|
10705
|
+
hireDate: this.getRandomPastDate(1825), // ~5 years ago
|
10706
|
+
status: ['Active', 'On Leave', 'Probation'][i % 3]
|
10707
|
+
});
|
10708
|
+
}
|
10709
|
+
return data;
|
10710
|
+
}
|
10711
|
+
generateSalesData(reportDefinition, parameters, pageSize) {
|
10712
|
+
const data = [];
|
10713
|
+
const products = ['Product A', 'Product B', 'Product C', 'Service X', 'Service Y'];
|
10714
|
+
const regions = ['North', 'South', 'East', 'West', 'Central'];
|
10715
|
+
const companies = ['Acme Corp', 'Tech Solutions Inc', 'Global Industries', 'Innovative Systems', 'Business Partners LLC'];
|
10716
|
+
for (let i = 0; i < pageSize; i++) {
|
10717
|
+
data.push({
|
10718
|
+
id: AXPDataGenerator.uuid(),
|
10719
|
+
salesRep: `${AXPDataGenerator.firstName()} ${AXPDataGenerator.lastName()}`,
|
10720
|
+
product: products[i % products.length],
|
10721
|
+
region: regions[i % regions.length],
|
10722
|
+
revenue: AXPDataGenerator.number(1000, 100000),
|
10723
|
+
units: AXPDataGenerator.number(1, 500),
|
10724
|
+
commission: AXPDataGenerator.number(50, 5000),
|
10725
|
+
saleDate: this.getRandomPastDate(365),
|
10726
|
+
customer: companies[i % companies.length],
|
10727
|
+
status: ['Closed', 'Pending', 'In Progress'][i % 3],
|
10728
|
+
quarter: parameters['quarter'] || 'Q4 2024'
|
10729
|
+
});
|
10730
|
+
}
|
10731
|
+
return data;
|
10732
|
+
}
|
10733
|
+
generateSafetyData(reportDefinition, parameters, pageSize) {
|
10734
|
+
const data = [];
|
10735
|
+
const incidentTypes = ['Slip/Fall', 'Equipment Malfunction', 'Chemical Exposure', 'Cut/Laceration', 'Burn', 'Strain/Sprain'];
|
10736
|
+
const severities = ['Low', 'Medium', 'High', 'Critical'];
|
10737
|
+
const locations = ['Factory Floor', 'Warehouse', 'Office', 'Loading Dock', 'Laboratory'];
|
10738
|
+
for (let i = 0; i < pageSize; i++) {
|
10739
|
+
data.push({
|
10740
|
+
id: AXPDataGenerator.uuid(),
|
10741
|
+
incidentId: `INC${2024}${String(i + 1).padStart(4, '0')}`,
|
10742
|
+
type: incidentTypes[i % incidentTypes.length],
|
10743
|
+
severity: severities[i % severities.length],
|
10744
|
+
location: locations[i % locations.length],
|
10745
|
+
reportedBy: `${AXPDataGenerator.firstName()} ${AXPDataGenerator.lastName()}`,
|
10746
|
+
dateReported: this.getRandomPastDate(180),
|
10747
|
+
dateOccurred: this.getRandomPastDate(180),
|
10748
|
+
description: `Safety incident involving ${incidentTypes[i % incidentTypes.length].toLowerCase()}`,
|
10749
|
+
status: ['Open', 'Under Investigation', 'Closed', 'Pending'][i % 4],
|
10750
|
+
daysToResolve: AXPDataGenerator.number(1, 30),
|
10751
|
+
category: parameters['category'] || 'General Safety'
|
10752
|
+
});
|
10753
|
+
}
|
10754
|
+
return data;
|
10755
|
+
}
|
10756
|
+
generateGenericData(reportDefinition, parameters, pageSize) {
|
10757
|
+
const data = [];
|
10758
|
+
for (let i = 0; i < pageSize; i++) {
|
10759
|
+
data.push({
|
10760
|
+
id: AXPDataGenerator.uuid(),
|
10761
|
+
title: `${reportDefinition.title} Item ${i + 1}`,
|
10762
|
+
category: parameters['category'] || 'General',
|
10763
|
+
value: AXPDataGenerator.number(1, 1000),
|
10764
|
+
status: ['Active', 'Pending', 'Completed', 'Draft'][i % 4],
|
10765
|
+
createdDate: this.getRandomPastDate(365),
|
10766
|
+
updatedDate: this.getRandomPastDate(30),
|
10767
|
+
description: `Sample data item ${i + 1} for ${reportDefinition.title}`,
|
10768
|
+
priority: ['Low', 'Medium', 'High'][i % 3],
|
10769
|
+
owner: `${AXPDataGenerator.firstName()} ${AXPDataGenerator.lastName()}`,
|
10770
|
+
tags: [`tag${i % 5}`, `category${i % 3}`]
|
10771
|
+
});
|
10772
|
+
}
|
10773
|
+
return data;
|
10774
|
+
}
|
10775
|
+
//#endregion
|
10776
|
+
//#region ---- Helper Methods ----
|
10777
|
+
getRandomPastDate(daysAgo) {
|
10778
|
+
const now = new Date();
|
10779
|
+
const pastDate = new Date(now.getTime() - (daysAgo * 24 * 60 * 60 * 1000));
|
10780
|
+
return AXPDataGenerator.date(pastDate, now);
|
10781
|
+
}
|
10782
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMReportExecuteCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
10783
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMReportExecuteCommand, providedIn: 'root' }); }
|
10784
|
+
}
|
10785
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AXMReportExecuteCommand, decorators: [{
|
10786
|
+
type: Injectable,
|
10787
|
+
args: [{
|
10788
|
+
providedIn: 'root',
|
10789
|
+
}]
|
10790
|
+
}] });
|
10791
|
+
|
10792
|
+
var execute_command = /*#__PURE__*/Object.freeze({
|
10793
|
+
__proto__: null,
|
10794
|
+
AXMReportExecuteCommand: AXMReportExecuteCommand
|
10795
|
+
});
|
10796
|
+
|
10522
10797
|
class AXPSecurityManagementMockWidgetDataSourceProvider {
|
10523
10798
|
async items() {
|
10524
10799
|
return [
|
@@ -10619,5 +10894,5 @@ class AXPSecurityManagementMockWidgetDataSourceProvider {
|
|
10619
10894
|
* Generated bundle index. Do not edit.
|
10620
10895
|
*/
|
10621
10896
|
|
10622
|
-
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, AXPDashboardDataSeeder, AXPDexieEntityStorageService, AXPMessageDataSeeder, AXPReportManagementDataSeeder, AXPRoomDataSeeder, AXPSecurityManagementMockWidgetDataSourceProvider, 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 };
|
10897
|
+
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, AXPSecurityManagementMockWidgetDataSourceProvider, 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 };
|
10623
10898
|
//# sourceMappingURL=acorex-connectivity-mock.mjs.map
|