@acorex/connectivity 19.3.0-next.5 → 19.3.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.
Files changed (30) hide show
  1. package/fesm2022/acorex-connectivity-mock-profiles-MJ9xFTtp.mjs +19 -0
  2. package/fesm2022/acorex-connectivity-mock-profiles-MJ9xFTtp.mjs.map +1 -0
  3. package/fesm2022/acorex-connectivity-mock.mjs +602 -129
  4. package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
  5. package/mock/lib/issue-management/issue-type/mock.data.d.ts +2 -0
  6. package/mock/lib/platform-management/common/data/profiles.d.ts +2 -0
  7. package/mock/lib/platform-management/common/regional-util.service.d.ts +2 -2
  8. package/mock/lib/project-management/client/client.mock.d.ts +7 -0
  9. package/mock/lib/project-management/client/client.seeder.d.ts +8 -0
  10. package/mock/lib/project-management/project/project.mock.d.ts +22 -0
  11. package/mock/lib/project-management/project/project.seeder.d.ts +8 -0
  12. package/mock/lib/project-management/project-member/project-member.mock.d.ts +9 -0
  13. package/mock/lib/project-management/project-member/project.member.seeder.d.ts +8 -0
  14. package/mock/lib/project-management/project-role-member/project-role-member.mock.d.ts +9 -0
  15. package/mock/lib/project-management/project-role-member/project-role-member.seeder.d.ts +8 -0
  16. package/mock/lib/project-management/project-type/project-type.mock.d.ts +4 -0
  17. package/mock/lib/project-management/sprint/sprint.mock.d.ts +9 -0
  18. package/mock/lib/project-management/sprint/sprint.seeder.d.ts +8 -0
  19. package/mock/lib/project-management/task/task.mock.d.ts +45 -0
  20. package/mock/lib/project-management/task/task.seeder.d.ts +8 -0
  21. package/mock/lib/project-management/task-type/task-type-seeder.d.ts +8 -0
  22. package/mock/lib/project-management/task-type/task-type.mock.d.ts +10 -0
  23. package/mock/lib/project-management/worksite/worksite.mock.d.ts +15 -0
  24. package/mock/lib/project-management/worksite/worksite.seeder.d.ts +8 -0
  25. package/package.json +1 -1
  26. package/fesm2022/acorex-connectivity-mock-regional-formats-BDoMreUD.mjs +0 -95
  27. package/fesm2022/acorex-connectivity-mock-regional-formats-BDoMreUD.mjs.map +0 -1
  28. package/mock/lib/platform-management/common/data/regional-formats.d.ts +0 -2
  29. package/mock/lib/platform-management/issue-type/mock.data.d.ts +0 -2
  30. /package/mock/lib/{platform-management → issue-management}/issue-type/data.seeder.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  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';
2
2
  import { RootConfig as RootConfig$1, AXMFolderServiceImpl, AXMDocumentServiceImpl, AXMFolderService, AXMDocumentService } from '@acorex/modules/document-management';
3
- import { RootConfig as RootConfig$5, AXMNotificationEntityService } from '@acorex/modules/notification-management';
4
- import { RootConfig as RootConfig$4, AXMDeviceSessionsServiceImpl, AXMSessionStatusTypes, AXMDeviceSessionsService } from '@acorex/modules/security-management';
3
+ import { RootConfig as RootConfig$6, AXMNotificationEntityService } from '@acorex/modules/notification-management';
4
+ import { RootConfig as RootConfig$5, AXMDeviceSessionsServiceImpl, AXMSessionStatusTypes, AXMDeviceSessionsService } from '@acorex/modules/security-management';
5
5
  import * as i1$1 from '@acorex/platform/auth';
6
6
  import { AXPSessionService, AXPAuthModule } from '@acorex/platform/auth';
7
7
  import { AXPDataGenerator, AXPRegionalService, AXPFileStorageStatus, AXPFileStorageService, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
@@ -10,19 +10,21 @@ import * as i0 from '@angular/core';
10
10
  import { inject, Injectable, NgModule } from '@angular/core';
11
11
  import { applySortArray, applyFilterArray, AXPDataGenerator as AXPDataGenerator$1 } from '@acorex/platform/core';
12
12
  import Dexie from 'dexie';
13
- import { AXPBarChartWidget, AXPClockCalendarWidget, AXPWeatherWidget, AXPStickyNoteWidget, AXPNotificationWidget, AXPDonutChartWidget, AXPGaugeChartWidget, AXPTaskListWidget } from '@acorex/platform/widgets';
14
- import { RootConfig } from '@acorex/modules/common';
13
+ import { AXPBarChartWidget, AXPClockCalendarWidget, AXPWeatherWidget, AXPStickyNoteWidget, AXPNotificationWidget, AXPDonutChartWidget, AXPGaugeChartWidget, AXPChartColors, AXPLineChartWidget, AXPTaskListWidget } from '@acorex/platform/widgets';
14
+ import { RootConfig } from '@acorex/modules/dashboard-management';
15
15
  import * as i1 from '@acorex/modules/conversation';
16
16
  import { AXMConverstionModuleConst, AXMChatServiceImpl, AXMCommentServiceImpl, AXMChatModule, AXMChatService } from '@acorex/modules/conversation';
17
17
  import { AXMFormTemplateTypes, RootConfig as RootConfig$2 } from '@acorex/modules/form-template-management';
18
- import { RootConfig as RootConfig$3 } from '@acorex/modules/log-management';
19
- import { AXMOrganizationNodeType, RootConfig as RootConfig$6 } from '@acorex/modules/organization-management';
20
- import { RootConfig as RootConfig$7 } from '@acorex/modules/platform-management';
18
+ import { RootConfig as RootConfig$3 } from '@acorex/modules/issue-management';
19
+ import { RootConfig as RootConfig$4 } from '@acorex/modules/log-management';
20
+ import { AXMOrganizationNodeType, RootConfig as RootConfig$7 } from '@acorex/modules/organization-management';
21
+ import { RootConfig as RootConfig$8 } from '@acorex/modules/platform-management';
21
22
  import { AXTranslationService } from '@acorex/core/translation';
22
23
  import { firstValueFrom } from 'rxjs';
23
24
  import { AXFileService } from '@acorex/core/file';
24
- import { RootConfig as RootConfig$8 } from '@acorex/modules/scheduler-job-management';
25
- import { RootConfig as RootConfig$9 } from '@acorex/modules/text-template-management';
25
+ import { RootConfig as RootConfig$9 } from '@acorex/modules/project-management';
26
+ import { RootConfig as RootConfig$a } from '@acorex/modules/scheduler-job-management';
27
+ import { RootConfig as RootConfig$b } from '@acorex/modules/text-template-management';
26
28
 
27
29
  const APPLICATIONS = Array.from({ length: 5 }).map((_, i) => {
28
30
  const source = ['appOne', 'appTwo', 'appThree', 'myCoolApp', 'awesomeApp', 'superApp'];
@@ -378,6 +380,7 @@ const widgetTypes = [
378
380
  'bar-chart',
379
381
  'donut-chart',
380
382
  'gauge-chart',
383
+ 'line-chart',
381
384
  'map',
382
385
  'clock-calendar',
383
386
  'weather',
@@ -387,7 +390,7 @@ const widgetTypes = [
387
390
  ];
388
391
  // Generate bar chart widget
389
392
  function generateBarChartWidget() {
390
- const uniqueId = AXPDataGenerator$1.alphabet(3).toUpperCase();
393
+ const uniqueId = AXPDataGenerator$1.uuid();
391
394
  return {
392
395
  config: {
393
396
  id: AXPDataGenerator$1.uuid(),
@@ -395,7 +398,7 @@ function generateBarChartWidget() {
395
398
  },
396
399
  node: {
397
400
  name: `bar-chart-${uniqueId}`,
398
- path: 'bar-chart',
401
+ path: `bar-chart-${uniqueId}`,
399
402
  type: 'bar-chart',
400
403
  defaultValue: [
401
404
  { id: 'a', label: 'Category A', value: AXPDataGenerator$1.number(30, 100), color: 'green' },
@@ -415,7 +418,7 @@ function generateBarChartWidget() {
415
418
  }
416
419
  // Generate clock-calendar widget
417
420
  function generateClockCalendarWidget() {
418
- const uniqueId = AXPDataGenerator$1.alphabet(3).toUpperCase();
421
+ const uniqueId = AXPDataGenerator$1.uuid();
419
422
  return {
420
423
  config: {
421
424
  id: AXPDataGenerator$1.uuid(),
@@ -423,7 +426,7 @@ function generateClockCalendarWidget() {
423
426
  },
424
427
  node: {
425
428
  name: `clock-calendar-${uniqueId}`,
426
- path: 'clock-calendar',
429
+ path: `clock-calendar-${uniqueId}`,
427
430
  type: 'clock-calendar',
428
431
  defaultValue: JSON.stringify({
429
432
  showDigital: true,
@@ -443,7 +446,7 @@ function generateClockCalendarWidget() {
443
446
  }
444
447
  // Generate weather widget
445
448
  function generateWeatherWidget() {
446
- const uniqueId = AXPDataGenerator$1.alphabet(3).toUpperCase();
449
+ const uniqueId = AXPDataGenerator$1.uuid();
447
450
  return {
448
451
  config: {
449
452
  id: AXPDataGenerator$1.uuid(),
@@ -451,7 +454,7 @@ function generateWeatherWidget() {
451
454
  },
452
455
  node: {
453
456
  name: `weather-${uniqueId}`,
454
- path: 'weather',
457
+ path: `weather-${uniqueId}`,
455
458
  type: 'weather',
456
459
  options: {
457
460
  city: AXPDataGenerator$1.city(),
@@ -465,7 +468,7 @@ function generateWeatherWidget() {
465
468
  }
466
469
  // Generate sticky-note widget
467
470
  function generateStickyNoteWidget() {
468
- const uniqueId = AXPDataGenerator$1.alphabet(3).toUpperCase();
471
+ const uniqueId = AXPDataGenerator$1.uuid();
469
472
  return {
470
473
  config: {
471
474
  id: AXPDataGenerator$1.uuid(),
@@ -473,7 +476,7 @@ function generateStickyNoteWidget() {
473
476
  },
474
477
  node: {
475
478
  name: `sticky-note-${uniqueId}`,
476
- path: 'sticky-note',
479
+ path: `sticky-note-${uniqueId}`,
477
480
  type: 'sticky-note',
478
481
  defaultValue: `Note from ${AXPDataGenerator$1.firstName()} ${AXPDataGenerator$1.lastName()}:
479
482
  Remember to complete the ${AXPDataGenerator$1.pick(['project', 'task', 'meeting', 'report'])} by end of day.`,
@@ -485,7 +488,7 @@ Remember to complete the ${AXPDataGenerator$1.pick(['project', 'task', 'meeting'
485
488
  }
486
489
  // Generate notification widget
487
490
  function generateNotificationWidget() {
488
- const uniqueId = AXPDataGenerator$1.alphabet(3).toUpperCase();
491
+ const uniqueId = AXPDataGenerator$1.uuid();
489
492
  // Generate 3-8 random notifications
490
493
  const notifications = Array.from({ length: AXPDataGenerator$1.number(3, 8) }).map((_, index) => {
491
494
  const firstName = AXPDataGenerator$1.firstName();
@@ -561,7 +564,7 @@ function generateNotificationWidget() {
561
564
  },
562
565
  node: {
563
566
  name: `notification-${uniqueId}`,
564
- path: 'notification',
567
+ path: `notification-${uniqueId}`,
565
568
  type: 'notification',
566
569
  defaultValue: {
567
570
  data: notifications,
@@ -578,7 +581,7 @@ function generateNotificationWidget() {
578
581
  }
579
582
  // Generate donut-chart widget
580
583
  function generateDonutChartWidget() {
581
- const uniqueId = AXPDataGenerator$1.alphabet(3).toUpperCase();
584
+ const uniqueId = AXPDataGenerator$1.uuid();
582
585
  return {
583
586
  config: {
584
587
  id: AXPDataGenerator$1.uuid(),
@@ -586,7 +589,7 @@ function generateDonutChartWidget() {
586
589
  },
587
590
  node: {
588
591
  name: `donut-chart-${uniqueId}`,
589
- path: 'donut-chart',
592
+ path: `donut-chart-${uniqueId}`,
590
593
  type: 'donut-chart',
591
594
  defaultValue: [
592
595
  { id: 'a', name: 'Apples', value: AXPDataGenerator$1.number(20, 50), color: '#E57373' },
@@ -608,7 +611,7 @@ function generateDonutChartWidget() {
608
611
  }
609
612
  // Generate gauge-chart widget
610
613
  function generateGaugeChartWidget() {
611
- const uniqueId = AXPDataGenerator$1.alphabet(3).toUpperCase();
614
+ const uniqueId = AXPDataGenerator$1.uuid();
612
615
  return {
613
616
  config: {
614
617
  id: AXPDataGenerator$1.uuid(),
@@ -616,7 +619,7 @@ function generateGaugeChartWidget() {
616
619
  },
617
620
  node: {
618
621
  name: `gauge-chart-${uniqueId}`,
619
- path: 'gauge-chart',
622
+ path: `gauge-chart-${uniqueId}`,
620
623
  type: 'gauge-chart',
621
624
  defaultValue: AXPDataGenerator$1.number(30, 90),
622
625
  options: {
@@ -624,15 +627,69 @@ function generateGaugeChartWidget() {
624
627
  height: 250,
625
628
  minValue: 0,
626
629
  maxValue: 100,
627
- label: 'CPU Usage',
630
+ label: 'KPI',
628
631
  animationDuration: 3000,
629
632
  },
630
633
  },
631
634
  };
632
635
  }
636
+ // Generate line chart widget
637
+ function generateLineChartWidget() {
638
+ const uniqueId = AXPDataGenerator$1.uuid();
639
+ // Generate random data points for the line chart
640
+ const generateDataPoints = (seriesName, count, color) => {
641
+ return Array.from({ length: count }).map((_, index) => ({
642
+ id: `${seriesName}-${index}`,
643
+ label: `Point ${index + 1}`,
644
+ value: AXPDataGenerator$1.number(10, 100),
645
+ xValue: index + 1,
646
+ seriesName,
647
+ color,
648
+ }));
649
+ };
650
+ // Create 1-3 data series
651
+ const seriesCount = AXPDataGenerator$1.number(1, 3);
652
+ const seriesNames = ['Revenue', 'Users', 'Growth', 'Sales', 'Traffic', 'Engagement'];
653
+ const pointsPerSeries = AXPDataGenerator$1.number(5, 10);
654
+ // Generate data organized by series for better visualization
655
+ const allDataSeries = [];
656
+ for (let i = 0; i < seriesCount; i++) {
657
+ const seriesName = seriesNames[i % seriesNames.length];
658
+ // Use a bright color from our palette to avoid dark/black colors
659
+ const seriesColor = AXPChartColors.getColor(i);
660
+ const dataPoints = generateDataPoints(seriesName, pointsPerSeries, seriesColor);
661
+ allDataSeries.push(dataPoints);
662
+ }
663
+ // Flatten the array for single series if needed, otherwise keep as multi-series
664
+ const chartData = seriesCount === 1 ? allDataSeries[0] : allDataSeries.flat();
665
+ return {
666
+ config: {
667
+ id: AXPDataGenerator$1.uuid(),
668
+ ...AXPLineChartWidget?.meta?.['dimensions'],
669
+ },
670
+ node: {
671
+ name: `line-chart-${uniqueId}`,
672
+ path: `line-chart-${uniqueId}`,
673
+ type: 'line-chart',
674
+ defaultValue: chartData,
675
+ options: {
676
+ width: 600,
677
+ height: 400,
678
+ lineWidth: AXPDataGenerator$1.number(1, 4),
679
+ showPoints: true,
680
+ pointRadius: AXPDataGenerator$1.number(3, 6),
681
+ smoothLine: true,
682
+ fillArea: false, // Set fillArea to false by default to avoid unwanted fills
683
+ fillOpacity: 0.1, // Use very light opacity if fill is enabled
684
+ showGrid: true,
685
+ hasConfiguration: true,
686
+ },
687
+ },
688
+ };
689
+ }
633
690
  // Generate task list widget
634
691
  function generateTaskListWidget() {
635
- const uniqueId = AXPDataGenerator$1.alphabet(3).toUpperCase();
692
+ const uniqueId = AXPDataGenerator$1.uuid();
636
693
  // Generate 5-12 random tasks
637
694
  const tasks = Array.from({ length: AXPDataGenerator$1.number(5, 12) }).map((_, index) => {
638
695
  // Generate random due date between yesterday and next month
@@ -725,7 +782,7 @@ function generateTaskListWidget() {
725
782
  },
726
783
  node: {
727
784
  name: `task-list-${uniqueId}`,
728
- path: 'task-list',
785
+ path: `task-list-${uniqueId}`,
729
786
  type: 'task-list',
730
787
  defaultValue: {
731
788
  data: tasks,
@@ -751,6 +808,8 @@ function getWidgetGenerator(type) {
751
808
  return generateDonutChartWidget;
752
809
  case 'gauge-chart':
753
810
  return generateGaugeChartWidget;
811
+ case 'line-chart':
812
+ return generateLineChartWidget;
754
813
  case 'clock-calendar':
755
814
  return generateClockCalendarWidget;
756
815
  case 'weather':
@@ -790,7 +849,7 @@ function generateExtraRandomDashboards(count) {
790
849
  return Array.from({ length: count }).map(() => generateRandomDashboard());
791
850
  }
792
851
  // Create dashboards: predefined + some random ones
793
- const DASHBOARDS = [...generateExtraRandomDashboards(AXPDataGenerator$1.number(2, 5))];
852
+ const DASHBOARDS = [...generateExtraRandomDashboards(AXPDataGenerator$1.number(3, 5))];
794
853
 
795
854
  class AXPDashboardDataSeeder {
796
855
  constructor() {
@@ -2337,7 +2396,82 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
2337
2396
  }]
2338
2397
  }] });
2339
2398
 
2340
- const projectMock = [
2399
+ function generateIssueTypes() {
2400
+ const issueTypes = [
2401
+ {
2402
+ id: AXPDataGenerator$1.uuid(),
2403
+ name: 'system-error',
2404
+ title: 'System Error',
2405
+ description: 'Technical issues related to system functionality, crashes, or unexpected errors',
2406
+ },
2407
+ {
2408
+ id: AXPDataGenerator$1.uuid(),
2409
+ name: 'performance',
2410
+ title: 'Performance Issue',
2411
+ description: 'Problems with system speed, response time, or resource usage',
2412
+ },
2413
+ {
2414
+ id: AXPDataGenerator$1.uuid(),
2415
+ name: 'security',
2416
+ title: 'Security Concern',
2417
+ description: 'Security-related issues, access problems, or potential vulnerabilities',
2418
+ },
2419
+ {
2420
+ id: AXPDataGenerator$1.uuid(),
2421
+ name: 'data',
2422
+ title: 'Data Issue',
2423
+ description: 'Problems with data integrity, synchronization, or corruption',
2424
+ },
2425
+ {
2426
+ id: AXPDataGenerator$1.uuid(),
2427
+ name: 'ui-ux',
2428
+ title: 'UI/UX Problem',
2429
+ description: 'Issues with user interface, layout, or user experience',
2430
+ },
2431
+ {
2432
+ id: AXPDataGenerator$1.uuid(),
2433
+ name: 'configuration',
2434
+ title: 'Configuration Error',
2435
+ description: 'Problems with system settings, environment configuration, or setup',
2436
+ },
2437
+ {
2438
+ id: AXPDataGenerator$1.uuid(),
2439
+ name: 'integration',
2440
+ title: 'Integration Issue',
2441
+ },
2442
+ {
2443
+ id: AXPDataGenerator$1.uuid(),
2444
+ name: 'network',
2445
+ title: 'Network Problem',
2446
+ description: 'Connectivity issues, network timeouts, or communication errors',
2447
+ },
2448
+ {
2449
+ id: AXPDataGenerator$1.uuid(),
2450
+ name: 'feature-request',
2451
+ title: 'Feature Request',
2452
+ description: 'Requests for new features, enhancements, or functionality improvements',
2453
+ },
2454
+ {
2455
+ id: AXPDataGenerator$1.uuid(),
2456
+ name: 'documentation',
2457
+ title: 'Documentation Issue',
2458
+ description: 'Problems with system documentation, help guides, or instructions',
2459
+ },
2460
+ ];
2461
+ return issueTypes;
2462
+ }
2463
+ const ISSUE_TYPES = generateIssueTypes();
2464
+
2465
+ class AXPIssueTypeDataSeeder {
2466
+ constructor() {
2467
+ this.storageService = inject(AXPDexieEntityStorageService);
2468
+ }
2469
+ async seed() {
2470
+ await this.storageService.initial(`${RootConfig$3.module.name}.${RootConfig$3.entities.issueType.name}`, ISSUE_TYPES);
2471
+ }
2472
+ }
2473
+
2474
+ const projectMock$1 = [
2341
2475
  {
2342
2476
  id: AXPDataGenerator.uuid(),
2343
2477
  level: 'Error',
@@ -2404,7 +2538,7 @@ class AXMLogDataSeeder {
2404
2538
  this.storageService = inject(AXPDexieEntityStorageService);
2405
2539
  }
2406
2540
  async seed() {
2407
- await this.storageService.initial(`${RootConfig$3.module.name}.${RootConfig$3.entities.axpLog.name}`, projectMock);
2541
+ await this.storageService.initial(`${RootConfig$4.module.name}.${RootConfig$4.entities.axpLog.name}`, projectMock$1);
2408
2542
  }
2409
2543
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLogDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2410
2544
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLogDataSeeder }); }
@@ -2421,13 +2555,13 @@ class MOCKStrategy {
2421
2555
  return 'user-pass';
2422
2556
  }
2423
2557
  async signin(credentials) {
2424
- const entityRef = await this.entityRegistery.resolve(RootConfig$4.module.name, RootConfig$4.entities.users.name);
2558
+ const entityRef = await this.entityRegistery.resolve(RootConfig$5.module.name, RootConfig$5.entities.users.name);
2425
2559
  const accessToken = 'access_token';
2426
2560
  const refreshToken = 'refresh_token';
2427
2561
  try {
2428
2562
  if (credentials.username == 'root' && credentials.password == '123') {
2429
2563
  const user = {
2430
- id: 'a683a19a-e3eb-46a7-b81c-7cf9468ae831',
2564
+ id: 'a683a19a-e3eb-56a7-b81c-7cf9468ae831',
2431
2565
  name: 'Root',
2432
2566
  title: 'Root User',
2433
2567
  avatar: 'https://avatar.iran.liara.run/public/29',
@@ -2600,7 +2734,7 @@ class AXCNotificationTemplateDataSeeder {
2600
2734
  this.storageService = inject(AXPDexieEntityStorageService);
2601
2735
  }
2602
2736
  async seed() {
2603
- await this.storageService.initial(`${RootConfig$5.module.name}.${RootConfig$5.entities.template.name}`, NOTIFICATION_TEMPLATES);
2737
+ await this.storageService.initial(`${RootConfig$6.module.name}.${RootConfig$6.entities.template.name}`, NOTIFICATION_TEMPLATES);
2604
2738
  }
2605
2739
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCNotificationTemplateDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2606
2740
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCNotificationTemplateDataSeeder }); }
@@ -3155,7 +3289,7 @@ class AXCOrganizationManagementDataSeeder {
3155
3289
  async seed() {
3156
3290
  const uuid = AXPDataGenerator.uuid;
3157
3291
  // Departments
3158
- await this.storageService.initial(RootConfig$6.entities.department.source, [
3292
+ await this.storageService.initial(RootConfig$7.entities.department.source, [
3159
3293
  {
3160
3294
  id: uuid(),
3161
3295
  title: 'Software Development',
@@ -3214,7 +3348,7 @@ class AXCOrganizationManagementDataSeeder {
3214
3348
  },
3215
3349
  ]);
3216
3350
  // Divisions
3217
- await this.storageService.initial(RootConfig$6.entities.division.source, [
3351
+ await this.storageService.initial(RootConfig$7.entities.division.source, [
3218
3352
  {
3219
3353
  id: uuid(),
3220
3354
  title: 'Technology Division',
@@ -3259,7 +3393,7 @@ class AXCOrganizationManagementDataSeeder {
3259
3393
  },
3260
3394
  ]);
3261
3395
  // Branches
3262
- await this.storageService.initial(RootConfig$6.entities.branch.source, [
3396
+ await this.storageService.initial(RootConfig$7.entities.branch.source, [
3263
3397
  {
3264
3398
  id: uuid(),
3265
3399
  title: 'Headquarters',
@@ -3307,7 +3441,7 @@ class AXCOrganizationManagementDataSeeder {
3307
3441
  },
3308
3442
  ]);
3309
3443
  // Positions
3310
- await this.storageService.initial(RootConfig$6.entities.position.source, [
3444
+ await this.storageService.initial(RootConfig$7.entities.position.source, [
3311
3445
  {
3312
3446
  id: uuid(),
3313
3447
  title: 'Backend Developer',
@@ -3340,7 +3474,7 @@ class AXCOrganizationManagementDataSeeder {
3340
3474
  },
3341
3475
  ]);
3342
3476
  // Roles
3343
- await this.storageService.initial(RootConfig$6.entities.role.source, [
3477
+ await this.storageService.initial(RootConfig$7.entities.role.source, [
3344
3478
  {
3345
3479
  id: uuid(),
3346
3480
  title: 'Software Engineer',
@@ -3363,7 +3497,7 @@ class AXCOrganizationManagementDataSeeder {
3363
3497
  },
3364
3498
  ]);
3365
3499
  // Employment Types
3366
- await this.storageService.initial(RootConfig$6.entities.employmentType.source, [
3500
+ await this.storageService.initial(RootConfig$7.entities.employmentType.source, [
3367
3501
  {
3368
3502
  id: uuid(),
3369
3503
  title: 'Full-Time',
@@ -3391,7 +3525,7 @@ class AXCOrganizationManagementDataSeeder {
3391
3525
  },
3392
3526
  ]);
3393
3527
  // Teams
3394
- await this.storageService.initial(RootConfig$6.entities.team.source, [
3528
+ await this.storageService.initial(RootConfig$7.entities.team.source, [
3395
3529
  {
3396
3530
  id: uuid(),
3397
3531
  title: 'Backend Development Team',
@@ -3438,7 +3572,7 @@ class AXCOrganizationManagementDataSeeder {
3438
3572
  },
3439
3573
  ]);
3440
3574
  // Employees
3441
- await this.storageService.initial(RootConfig$6.entities.employee.source, [
3575
+ await this.storageService.initial(RootConfig$7.entities.employee.source, [
3442
3576
  {
3443
3577
  id: uuid(),
3444
3578
  firstname: 'Jane',
@@ -3561,7 +3695,7 @@ class AXCOrganizationManagementDataSeeder {
3561
3695
  },
3562
3696
  ]);
3563
3697
  // Store Chart Data
3564
- await this.storageService.initial(RootConfig$6.entities.chart.source, [
3698
+ await this.storageService.initial(RootConfig$7.entities.chart.source, [
3565
3699
  {
3566
3700
  id: uuid(),
3567
3701
  version: '1.0',
@@ -3687,7 +3821,7 @@ class AXCAppTermDataSeeder {
3687
3821
  this.storageService = inject(AXPDexieEntityStorageService);
3688
3822
  }
3689
3823
  async seed() {
3690
- await this.storageService.initial(`${RootConfig$7.module.name}.${RootConfig$7.entities.appTerm.name}`, APP_TERMS);
3824
+ await this.storageService.initial(`${RootConfig$8.module.name}.${RootConfig$8.entities.appTerm.name}`, APP_TERMS);
3691
3825
  }
3692
3826
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCAppTermDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3693
3827
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCAppTermDataSeeder }); }
@@ -3722,7 +3856,7 @@ class AXCAppVersionDataSeeder {
3722
3856
  this.storageService = inject(AXPDexieEntityStorageService);
3723
3857
  }
3724
3858
  async seed() {
3725
- await this.storageService.initial(`${RootConfig$7.module.name}.${RootConfig$7.entities.appVersion.name}`, APP_VERSIONS);
3859
+ await this.storageService.initial(`${RootConfig$8.module.name}.${RootConfig$8.entities.appVersion.name}`, APP_VERSIONS);
3726
3860
  }
3727
3861
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCAppVersionDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3728
3862
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCAppVersionDataSeeder }); }
@@ -3753,7 +3887,7 @@ class AXCGlobalVariablesDataSeeder {
3753
3887
  this.storageService = inject(AXPDexieEntityStorageService);
3754
3888
  }
3755
3889
  async seed() {
3756
- await this.storageService.initial(`${RootConfig$7.module.name}.${RootConfig$7.entities.globalVariable.name}`, GLOBAL_VARIABLES);
3890
+ await this.storageService.initial(`${RootConfig$8.module.name}.${RootConfig$8.entities.globalVariable.name}`, GLOBAL_VARIABLES);
3757
3891
  }
3758
3892
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCGlobalVariablesDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3759
3893
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCGlobalVariablesDataSeeder }); }
@@ -3827,12 +3961,12 @@ class AXCRegionalServiceImpl extends AXPRegionalService {
3827
3961
  const { currencies } = await import('./acorex-connectivity-mock-currencies-B-x3Mxql.mjs');
3828
3962
  return currencies;
3829
3963
  }
3830
- async getRegionalFormats() {
3831
- const { regionalFormats } = await import('./acorex-connectivity-mock-regional-formats-BDoMreUD.mjs');
3832
- return regionalFormats;
3964
+ async getLocaleProfiles() {
3965
+ const { profiles } = await import('./acorex-connectivity-mock-profiles-MJ9xFTtp.mjs');
3966
+ return profiles.filter((c) => ['en-US', 'fa-IR'].some((e) => e == c.localeInfo.code));
3833
3967
  }
3834
3968
  async getLanguages() {
3835
- return (await this.getRegionalFormats()).map((c) => ({ code: c.locale, title: c.title }));
3969
+ return (await this.getLocaleProfiles()).map((c) => ({ code: c.localeInfo.code, title: c.title }));
3836
3970
  }
3837
3971
  async getAvailableLanguages() {
3838
3972
  return (await this.getLanguages()).filter((c) => ['fa-IR', 'en-US'].some((e) => e == c.code));
@@ -3982,81 +4116,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
3982
4116
  type: Injectable
3983
4117
  }], ctorParameters: () => [] });
3984
4118
 
3985
- function generateIssueTypes() {
3986
- const issueTypes = [
3987
- {
3988
- id: AXPDataGenerator$1.uuid(),
3989
- name: 'system-error',
3990
- title: 'System Error',
3991
- description: 'Technical issues related to system functionality, crashes, or unexpected errors',
3992
- },
3993
- {
3994
- id: AXPDataGenerator$1.uuid(),
3995
- name: 'performance',
3996
- title: 'Performance Issue',
3997
- description: 'Problems with system speed, response time, or resource usage',
3998
- },
3999
- {
4000
- id: AXPDataGenerator$1.uuid(),
4001
- name: 'security',
4002
- title: 'Security Concern',
4003
- description: 'Security-related issues, access problems, or potential vulnerabilities',
4004
- },
4005
- {
4006
- id: AXPDataGenerator$1.uuid(),
4007
- name: 'data',
4008
- title: 'Data Issue',
4009
- description: 'Problems with data integrity, synchronization, or corruption',
4010
- },
4011
- {
4012
- id: AXPDataGenerator$1.uuid(),
4013
- name: 'ui-ux',
4014
- title: 'UI/UX Problem',
4015
- description: 'Issues with user interface, layout, or user experience',
4016
- },
4017
- {
4018
- id: AXPDataGenerator$1.uuid(),
4019
- name: 'configuration',
4020
- title: 'Configuration Error',
4021
- description: 'Problems with system settings, environment configuration, or setup',
4022
- },
4023
- {
4024
- id: AXPDataGenerator$1.uuid(),
4025
- name: 'integration',
4026
- title: 'Integration Issue',
4027
- },
4028
- {
4029
- id: AXPDataGenerator$1.uuid(),
4030
- name: 'network',
4031
- title: 'Network Problem',
4032
- description: 'Connectivity issues, network timeouts, or communication errors',
4033
- },
4034
- {
4035
- id: AXPDataGenerator$1.uuid(),
4036
- name: 'feature-request',
4037
- title: 'Feature Request',
4038
- description: 'Requests for new features, enhancements, or functionality improvements',
4039
- },
4040
- {
4041
- id: AXPDataGenerator$1.uuid(),
4042
- name: 'documentation',
4043
- title: 'Documentation Issue',
4044
- description: 'Problems with system documentation, help guides, or instructions',
4045
- },
4046
- ];
4047
- return issueTypes;
4048
- }
4049
- const ISSUE_TYPES = generateIssueTypes();
4050
-
4051
- class AXPIssueTypeDataSeeder {
4052
- constructor() {
4053
- this.storageService = inject(AXPDexieEntityStorageService);
4054
- }
4055
- async seed() {
4056
- await this.storageService.initial(`${RootConfig$7.module.name}.${RootConfig$7.entities.issueType.name}`, ISSUE_TYPES);
4057
- }
4058
- }
4059
-
4060
4119
  const OHS_ID = AXPDataGenerator$1.uuid();
4061
4120
  const child1 = {
4062
4121
  id: AXPDataGenerator$1.uuid(),
@@ -4144,8 +4203,8 @@ class AXCMetaDataDefinitionDataSeeder {
4144
4203
  this.storageService = inject(AXPDexieEntityStorageService);
4145
4204
  }
4146
4205
  async seed() {
4147
- await this.storageService.initial(`${RootConfig$7.module.name}.${RootConfig$7.entities.metaDataDefinitionCategory.name}`, METADATA_CATEGORY_MOCK);
4148
- await this.storageService.initial(`${RootConfig$7.module.name}.${RootConfig$7.entities.metaDataDefinition.name}`, METADATA_MOCK);
4206
+ await this.storageService.initial(`${RootConfig$8.module.name}.${RootConfig$8.entities.metaDataDefinitionCategory.name}`, METADATA_CATEGORY_MOCK);
4207
+ await this.storageService.initial(`${RootConfig$8.module.name}.${RootConfig$8.entities.metaDataDefinition.name}`, METADATA_MOCK);
4149
4208
  }
4150
4209
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCMetaDataDefinitionDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4151
4210
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCMetaDataDefinitionDataSeeder }); }
@@ -4154,6 +4213,340 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
4154
4213
  type: Injectable
4155
4214
  }] });
4156
4215
 
4216
+ const ClientMock = [
4217
+ {
4218
+ id: AXPDataGenerator.uuid(),
4219
+ title: 'Kapitol Group',
4220
+ description: 'Kapitol Group description',
4221
+ personId: 0,
4222
+ location: '466 William Street'
4223
+ },
4224
+ {
4225
+ id: AXPDataGenerator.uuid(),
4226
+ title: 'Maben Group',
4227
+ description: 'Maben Group description',
4228
+ personId: 0,
4229
+ location: '22 Blackwood Street'
4230
+ },
4231
+ {
4232
+ id: AXPDataGenerator.uuid(),
4233
+ title: 'Raysett Construction',
4234
+ description: 'Raysett Construction description',
4235
+ personId: 0,
4236
+ location: '18 Station Street'
4237
+ },
4238
+ ];
4239
+
4240
+ class AXCProjectclientDataSeeder {
4241
+ constructor() {
4242
+ this.storageService = inject(AXPDexieEntityStorageService);
4243
+ }
4244
+ async seed() {
4245
+ await this.storageService.initial(`${RootConfig$9.module.name}.${RootConfig$9.entities.client.name}`, ClientMock);
4246
+ }
4247
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCProjectclientDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4248
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCProjectclientDataSeeder }); }
4249
+ }
4250
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCProjectclientDataSeeder, decorators: [{
4251
+ type: Injectable
4252
+ }] });
4253
+
4254
+ const projectTypeMock = [
4255
+ {
4256
+ id: AXPDataGenerator.uuid(),
4257
+ title: 'JSA'
4258
+ },
4259
+ {
4260
+ id: AXPDataGenerator.uuid(),
4261
+ title: 'SWMS'
4262
+ },
4263
+ {
4264
+ id: AXPDataGenerator.uuid(),
4265
+ title: 'Permits'
4266
+ },
4267
+ ];
4268
+
4269
+ const projectMock = [
4270
+ {
4271
+ id: AXPDataGenerator.uuid(),
4272
+ projectName: 'QA 63 - 207',
4273
+ projectNo: '1709CS',
4274
+ description: 'DOMESTIC/RESIDENTIAL SWMS',
4275
+ projectTypeId: projectTypeMock[0].id,
4276
+ projectType: projectTypeMock[0],
4277
+ projectStatus: 'Initial',
4278
+ estimatetime: '2h:7m',
4279
+ projectWeight: 1.2,
4280
+ clientId: ClientMock[1].id,
4281
+ client: ClientMock[1]
4282
+ }
4283
+ ];
4284
+
4285
+ const projectRoleMemberMock = [
4286
+ {
4287
+ id: AXPDataGenerator.uuid(),
4288
+ title: 'designer',
4289
+ projectTypeId: projectTypeMock[0].id,
4290
+ projectType: projectTypeMock[0]
4291
+ },
4292
+ {
4293
+ id: AXPDataGenerator.uuid(),
4294
+ title: 'front-developer',
4295
+ projectTypeId: projectTypeMock[2].id,
4296
+ projectType: projectTypeMock[2]
4297
+ },
4298
+ {
4299
+ id: AXPDataGenerator.uuid(),
4300
+ title: 'backend-developer',
4301
+ projectTypeId: projectTypeMock[1].id,
4302
+ projectType: projectTypeMock[1]
4303
+ },
4304
+ {
4305
+ id: AXPDataGenerator.uuid(),
4306
+ title: 'devops',
4307
+ projectTypeId: projectTypeMock[1].id,
4308
+ projectType: projectTypeMock[1]
4309
+ },
4310
+ ];
4311
+
4312
+ const projectMemberMock = [
4313
+ {
4314
+ id: AXPDataGenerator.uuid(),
4315
+ description: "Faranak",
4316
+ projectId: projectMock[0].id,
4317
+ project: projectMock[0].projectName,
4318
+ personId: 1,
4319
+ projectRoleMemberId: projectRoleMemberMock[0].id,
4320
+ projectRoleMember: projectRoleMemberMock[0].title
4321
+ },
4322
+ {
4323
+ id: AXPDataGenerator.uuid(),
4324
+ description: "Reza",
4325
+ projectId: projectMock[0].id,
4326
+ project: projectMock[0].projectName,
4327
+ personId: 0,
4328
+ projectRoleMemberId: projectRoleMemberMock[1].id,
4329
+ projectRoleMember: projectRoleMemberMock[1].title
4330
+ },
4331
+ {
4332
+ id: AXPDataGenerator.uuid(),
4333
+ description: "Zari",
4334
+ projectId: projectMock[0].id,
4335
+ project: projectMock[0].projectName,
4336
+ personId: 2,
4337
+ projectRoleMemberId: projectRoleMemberMock[2].id,
4338
+ projectRoleMember: projectRoleMemberMock[2].title
4339
+ }
4340
+ ];
4341
+
4342
+ class AXCProjectMemberDataSeeder {
4343
+ constructor() {
4344
+ this.storageService = inject(AXPDexieEntityStorageService);
4345
+ }
4346
+ async seed() {
4347
+ await this.storageService.initial(`${RootConfig$9.module.name}.${RootConfig$9.entities.projectMemeber.name}`, projectMemberMock);
4348
+ }
4349
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCProjectMemberDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4350
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCProjectMemberDataSeeder }); }
4351
+ }
4352
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCProjectMemberDataSeeder, decorators: [{
4353
+ type: Injectable
4354
+ }] });
4355
+
4356
+ class AXCProjectRoleMemberDataSeeder {
4357
+ constructor() {
4358
+ this.storageService = inject(AXPDexieEntityStorageService);
4359
+ }
4360
+ async seed() {
4361
+ await this.storageService.initial(`${RootConfig$9.module.name}.${RootConfig$9.entities.projectType.name}`, projectTypeMock);
4362
+ await this.storageService.initial(`${RootConfig$9.module.name}.${RootConfig$9.entities.projectRoleMember.name}`, projectRoleMemberMock);
4363
+ }
4364
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCProjectRoleMemberDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4365
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCProjectRoleMemberDataSeeder }); }
4366
+ }
4367
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCProjectRoleMemberDataSeeder, decorators: [{
4368
+ type: Injectable
4369
+ }] });
4370
+
4371
+ class AXCProjectDataSeeder {
4372
+ constructor() {
4373
+ this.storageService = inject(AXPDexieEntityStorageService);
4374
+ }
4375
+ async seed() {
4376
+ await this.storageService.initial(`${RootConfig$9.module.name}.${RootConfig$9.entities.project.name}`, projectMock);
4377
+ }
4378
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCProjectDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4379
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCProjectDataSeeder }); }
4380
+ }
4381
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCProjectDataSeeder, decorators: [{
4382
+ type: Injectable
4383
+ }] });
4384
+
4385
+ const sprintMock = [
4386
+ {
4387
+ id: AXPDataGenerator.uuid(),
4388
+ title: 'Sprint 1',
4389
+ description: 'Sprint 1 description',
4390
+ startDate: new Date('2021-01-01'),
4391
+ endDate: new Date('2021-01-15'),
4392
+ projectId: projectMock[0].id,
4393
+ project: projectMock[0].projectName
4394
+ },
4395
+ {
4396
+ id: AXPDataGenerator.uuid(),
4397
+ title: 'Sprint 2',
4398
+ description: 'Sprint 2 description',
4399
+ startDate: new Date('2021-01-16'),
4400
+ endDate: new Date('2021-01-30'),
4401
+ projectId: projectMock[0].id,
4402
+ project: projectMock[0].projectName
4403
+ },
4404
+ {
4405
+ id: AXPDataGenerator.uuid(),
4406
+ title: 'Sprint 3',
4407
+ description: 'Sprint 3 description',
4408
+ startDate: new Date('2021-02-01'),
4409
+ endDate: new Date('2021-02-15'),
4410
+ projectId: projectMock[0].id,
4411
+ project: projectMock[0].projectName
4412
+ },
4413
+ ];
4414
+
4415
+ class AXCsprintDataSeeder {
4416
+ constructor() {
4417
+ this.storageService = inject(AXPDexieEntityStorageService);
4418
+ }
4419
+ async seed() {
4420
+ await this.storageService.initial(`${RootConfig$9.module.name}.${RootConfig$9.entities.sprint.name}`, sprintMock);
4421
+ }
4422
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCsprintDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4423
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCsprintDataSeeder }); }
4424
+ }
4425
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCsprintDataSeeder, decorators: [{
4426
+ type: Injectable
4427
+ }] });
4428
+
4429
+ const taskTypeMock = [
4430
+ {
4431
+ id: AXPDataGenerator.uuid(),
4432
+ title: 'Issue',
4433
+ projectTypeId: projectTypeMock[0].id,
4434
+ projectType: projectTypeMock[0],
4435
+ description: 'Issue description'
4436
+ },
4437
+ {
4438
+ id: AXPDataGenerator.uuid(),
4439
+ title: 'UserStory',
4440
+ projectTypeId: projectTypeMock[2].id,
4441
+ projectType: projectTypeMock[2],
4442
+ description: 'UserStory description'
4443
+ },
4444
+ {
4445
+ id: AXPDataGenerator.uuid(),
4446
+ title: 'Activity',
4447
+ projectTypeId: projectTypeMock[0].id,
4448
+ projectType: projectTypeMock[0],
4449
+ description: 'Activity description'
4450
+ },
4451
+ ];
4452
+
4453
+ class AXCTaskTypeDataSeeder {
4454
+ constructor() {
4455
+ this.storageService = inject(AXPDexieEntityStorageService);
4456
+ }
4457
+ async seed() {
4458
+ await this.storageService.initial(`${RootConfig$9.module.name}.${RootConfig$9.entities.taskType.name}`, taskTypeMock);
4459
+ }
4460
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTaskTypeDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4461
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTaskTypeDataSeeder }); }
4462
+ }
4463
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTaskTypeDataSeeder, decorators: [{
4464
+ type: Injectable
4465
+ }] });
4466
+
4467
+ const workSiteMock = [
4468
+ {
4469
+ id: AXPDataGenerator.uuid(),
4470
+ title: 'SPEC SAVERS',
4471
+ description: 'SPEC SAVERS description',
4472
+ personId: 0,
4473
+ location: '520 GRAHAM STREET',
4474
+ clientId: ClientMock[0].id,
4475
+ client: ClientMock[0]
4476
+ },
4477
+ {
4478
+ id: AXPDataGenerator.uuid(),
4479
+ title: 'SPORTSBET',
4480
+ description: 'SPORTSBET description',
4481
+ personId: 0,
4482
+ location: 'LEVEL 17',
4483
+ clientId: ClientMock[2].id,
4484
+ client: ClientMock[2]
4485
+ },
4486
+ {
4487
+ id: AXPDataGenerator.uuid(),
4488
+ title: 'ST VINCENTS PRIVATE HOSPITAL MELBOURNE',
4489
+ description: 'ST VINCENTS PRIVATE HOSPITAL MELBOURNE description',
4490
+ personId: 0,
4491
+ location: '59 - 61 VICTORIA PARADE',
4492
+ clientId: ClientMock[1].id,
4493
+ client: ClientMock[1]
4494
+ },
4495
+ ];
4496
+
4497
+ const taskMock = [
4498
+ {
4499
+ id: AXPDataGenerator.uuid(),
4500
+ date: new Date('2025-04-23'),
4501
+ starttime: new Date('2025-04-23T09:00:00'),
4502
+ endTime: new Date('2025-04-23T17:00:00'),
4503
+ duration: 20,
4504
+ asignedTo: '12',
4505
+ title: 'Task 1',
4506
+ description: 'Task 1 description',
4507
+ estimatetime: 8,
4508
+ workSiteId: workSiteMock[0].id,
4509
+ workSite: workSiteMock[0],
4510
+ typeId: taskTypeMock[0].id,
4511
+ type: taskTypeMock[0],
4512
+ parentTaskId: null,
4513
+ status: 'Current',
4514
+ projectId: projectMock[0].id,
4515
+ project: projectMock[0].projectName,
4516
+ wieght: 10,
4517
+ priorityIndex: 1,
4518
+ priorityCritical: 'Low',
4519
+ }
4520
+ ];
4521
+
4522
+ class AXCTaskDataSeeder {
4523
+ constructor() {
4524
+ this.storageService = inject(AXPDexieEntityStorageService);
4525
+ }
4526
+ async seed() {
4527
+ await this.storageService.initial(`${RootConfig$9.module.name}.${RootConfig$9.entities.task.name}`, taskMock);
4528
+ }
4529
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTaskDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4530
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTaskDataSeeder }); }
4531
+ }
4532
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTaskDataSeeder, decorators: [{
4533
+ type: Injectable
4534
+ }] });
4535
+
4536
+ class AXCWorkSiteSeeder {
4537
+ constructor() {
4538
+ this.storageService = inject(AXPDexieEntityStorageService);
4539
+ }
4540
+ async seed() {
4541
+ await this.storageService.initial(`${RootConfig$9.module.name}.${RootConfig$9.entities.workSite.name}`, workSiteMock);
4542
+ }
4543
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCWorkSiteSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4544
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCWorkSiteSeeder }); }
4545
+ }
4546
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCWorkSiteSeeder, decorators: [{
4547
+ type: Injectable
4548
+ }] });
4549
+
4157
4550
  const SCHEDULER_JOB = [
4158
4551
  {
4159
4552
  id: AXPDataGenerator.uuid(),
@@ -4176,7 +4569,7 @@ class AXCSchedulerJobDataSeeder {
4176
4569
  this.storageService = inject(AXPDexieEntityStorageService);
4177
4570
  }
4178
4571
  async seed() {
4179
- await this.storageService.initial(`${RootConfig$8.module.name}.${RootConfig$8.entities.schedulerJob.name}`, SCHEDULER_JOB);
4572
+ await this.storageService.initial(`${RootConfig$a.module.name}.${RootConfig$a.entities.schedulerJob.name}`, SCHEDULER_JOB);
4180
4573
  }
4181
4574
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCSchedulerJobDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4182
4575
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCSchedulerJobDataSeeder }); }
@@ -4213,7 +4606,7 @@ class AXPSecurityManagementDeviceSessionDataSeeder {
4213
4606
  this.sessionService = inject(AXPSessionService);
4214
4607
  }
4215
4608
  async seed() {
4216
- await this.storageService.initial(`${RootConfig$4.module.name}.${RootConfig$4.entities.deviceSessions.name}`, this.generateDeviceSessions());
4609
+ await this.storageService.initial(`${RootConfig$5.module.name}.${RootConfig$5.entities.deviceSessions.name}`, this.generateDeviceSessions());
4217
4610
  }
4218
4611
  generateDeviceSessions() {
4219
4612
  const deviceSessions = [];
@@ -4434,7 +4827,7 @@ class AXCTextTemplateCategoryDataSeeder {
4434
4827
  this.storageService = inject(AXPDexieEntityStorageService);
4435
4828
  }
4436
4829
  async seed() {
4437
- await this.storageService.initial(`${RootConfig$9.module.name}.${RootConfig$9.entities.category.name}`, TEXT_TEMPLATE_CATEGORY);
4830
+ await this.storageService.initial(`${RootConfig$b.module.name}.${RootConfig$b.entities.category.name}`, TEXT_TEMPLATE_CATEGORY);
4438
4831
  }
4439
4832
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTextTemplateCategoryDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4440
4833
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTextTemplateCategoryDataSeeder }); }
@@ -4448,7 +4841,7 @@ class AXCTextTemplateDataSeeder {
4448
4841
  this.storageService = inject(AXPDexieEntityStorageService);
4449
4842
  }
4450
4843
  async seed() {
4451
- await this.storageService.initial(`${RootConfig$9.module.name}.${RootConfig$9.entities.template.name}`, TEXT_TEMPLATES);
4844
+ await this.storageService.initial(`${RootConfig$b.module.name}.${RootConfig$b.entities.template.name}`, TEXT_TEMPLATES);
4452
4845
  }
4453
4846
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTextTemplateDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4454
4847
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTextTemplateDataSeeder }); }
@@ -4576,6 +4969,46 @@ class AXCMockModule {
4576
4969
  useClass: AXMLogDataSeeder,
4577
4970
  multi: true,
4578
4971
  },
4972
+ {
4973
+ provide: AXP_DATA_SEEDER_TOKEN,
4974
+ useClass: AXCProjectclientDataSeeder,
4975
+ multi: true,
4976
+ },
4977
+ {
4978
+ provide: AXP_DATA_SEEDER_TOKEN,
4979
+ useClass: AXCWorkSiteSeeder,
4980
+ multi: true,
4981
+ },
4982
+ {
4983
+ provide: AXP_DATA_SEEDER_TOKEN,
4984
+ useClass: AXCProjectRoleMemberDataSeeder,
4985
+ multi: true,
4986
+ },
4987
+ {
4988
+ provide: AXP_DATA_SEEDER_TOKEN,
4989
+ useClass: AXCTaskTypeDataSeeder,
4990
+ multi: true,
4991
+ },
4992
+ {
4993
+ provide: AXP_DATA_SEEDER_TOKEN,
4994
+ useClass: AXCProjectDataSeeder,
4995
+ multi: true,
4996
+ },
4997
+ {
4998
+ provide: AXP_DATA_SEEDER_TOKEN,
4999
+ useClass: AXCProjectMemberDataSeeder,
5000
+ multi: true,
5001
+ },
5002
+ {
5003
+ provide: AXP_DATA_SEEDER_TOKEN,
5004
+ useClass: AXCsprintDataSeeder,
5005
+ multi: true,
5006
+ },
5007
+ {
5008
+ provide: AXP_DATA_SEEDER_TOKEN,
5009
+ useClass: AXCTaskDataSeeder,
5010
+ multi: true,
5011
+ },
4579
5012
  ], imports: [AXPAuthModule.forRoot({
4580
5013
  strategies: [MOCKStrategy],
4581
5014
  }),
@@ -4710,6 +5143,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
4710
5143
  useClass: AXMLogDataSeeder,
4711
5144
  multi: true,
4712
5145
  },
5146
+ {
5147
+ provide: AXP_DATA_SEEDER_TOKEN,
5148
+ useClass: AXCProjectclientDataSeeder,
5149
+ multi: true,
5150
+ },
5151
+ {
5152
+ provide: AXP_DATA_SEEDER_TOKEN,
5153
+ useClass: AXCWorkSiteSeeder,
5154
+ multi: true,
5155
+ },
5156
+ {
5157
+ provide: AXP_DATA_SEEDER_TOKEN,
5158
+ useClass: AXCProjectRoleMemberDataSeeder,
5159
+ multi: true,
5160
+ },
5161
+ {
5162
+ provide: AXP_DATA_SEEDER_TOKEN,
5163
+ useClass: AXCTaskTypeDataSeeder,
5164
+ multi: true,
5165
+ },
5166
+ {
5167
+ provide: AXP_DATA_SEEDER_TOKEN,
5168
+ useClass: AXCProjectDataSeeder,
5169
+ multi: true,
5170
+ },
5171
+ {
5172
+ provide: AXP_DATA_SEEDER_TOKEN,
5173
+ useClass: AXCProjectMemberDataSeeder,
5174
+ multi: true,
5175
+ },
5176
+ {
5177
+ provide: AXP_DATA_SEEDER_TOKEN,
5178
+ useClass: AXCsprintDataSeeder,
5179
+ multi: true,
5180
+ },
5181
+ {
5182
+ provide: AXP_DATA_SEEDER_TOKEN,
5183
+ useClass: AXCTaskDataSeeder,
5184
+ multi: true,
5185
+ },
4713
5186
  ],
4714
5187
  }]
4715
5188
  }] });