@acorex/connectivity 19.2.4 → 19.2.6

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,11 +12,11 @@ import Dexie from 'dexie';
12
12
  import { AXP_WIDGET_DATASOURCE_PROVIDER } from '@acorex/platform/layout/builder';
13
13
  import { convertArrayToDataSource } from '@acorex/components/common';
14
14
  import { RootConfig } from '@acorex/modules/form-template-management';
15
- import { RootConfig as RootConfig$2 } from '@acorex/modules/platform-management';
15
+ import { RootConfig as RootConfig$2 } from '@acorex/modules/organization-managment';
16
+ import { RootConfig as RootConfig$3 } from '@acorex/modules/platform-management';
16
17
  import { AXFileService } from '@acorex/core/file';
17
- import { RootConfig as RootConfig$3 } from '@acorex/modules/scheduler-job-management';
18
- import { RootConfig as RootConfig$4 } from '@acorex/modules/text-template-management';
19
- import { RootConfig as RootConfig$5 } from '@acorex/modules/organization-managment';
18
+ import { RootConfig as RootConfig$4 } from '@acorex/modules/scheduler-job-management';
19
+ import { RootConfig as RootConfig$5 } from '@acorex/modules/text-template-management';
20
20
 
21
21
  const APPLICATIONS = Array.from({ length: 5 }).map((_, i) => {
22
22
  const source = ['appOne', 'appTwo', 'appThree', 'myCoolApp', 'awesomeApp', 'superApp'];
@@ -126,7 +126,7 @@ const PROPERTIES = Array.from({ length: 10 }).map((_, i) => {
126
126
  };
127
127
  });
128
128
 
129
- class AXPApplicationTemplateDataSeeder {
129
+ class AXCApplicationTemplateDataSeeder {
130
130
  constructor() {
131
131
  this.storageService = inject(AXPDexieEntityStorageService);
132
132
  }
@@ -140,10 +140,10 @@ class AXPApplicationTemplateDataSeeder {
140
140
  const properties = this.storageService.initial(PROPERTY_SOURCE_NAME, PROPERTIES);
141
141
  await Promise.all([applications, modules, entities, features, permissions, editions, properties]);
142
142
  }
143
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPApplicationTemplateDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
144
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPApplicationTemplateDataSeeder }); }
143
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCApplicationTemplateDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
144
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCApplicationTemplateDataSeeder }); }
145
145
  }
146
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPApplicationTemplateDataSeeder, decorators: [{
146
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCApplicationTemplateDataSeeder, decorators: [{
147
147
  type: Injectable
148
148
  }] });
149
149
 
@@ -848,17 +848,275 @@ const NOTIFICATION_TEMPLATES = [
848
848
  },
849
849
  ];
850
850
 
851
- class AXPNotificationTemplateDataSeeder {
851
+ class AXCNotificationTemplateDataSeeder {
852
852
  constructor() {
853
853
  this.storageService = inject(AXPDexieEntityStorageService);
854
854
  }
855
855
  async seed() {
856
856
  await this.storageService.initial(`${RootConfig$1.module.name}.${RootConfig$1.entities.template.name}`, NOTIFICATION_TEMPLATES);
857
857
  }
858
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPNotificationTemplateDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
859
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPNotificationTemplateDataSeeder }); }
858
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCNotificationTemplateDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
859
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCNotificationTemplateDataSeeder }); }
860
860
  }
861
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPNotificationTemplateDataSeeder, decorators: [{
861
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCNotificationTemplateDataSeeder, decorators: [{
862
+ type: Injectable
863
+ }] });
864
+
865
+ class AXCOrganizationManagementDataSeeder {
866
+ constructor() {
867
+ this.storageService = inject(AXPDexieEntityStorageService);
868
+ }
869
+ async seed() {
870
+ const uuid = AXPDataGenerator.uuid;
871
+ // Departments
872
+ const departments = await this.storageService.initial(RootConfig$2.entities.department.source, [
873
+ { id: uuid(), title: 'Human Resources' },
874
+ { id: uuid(), title: 'Financial Services' },
875
+ { id: uuid(), title: 'Information Technology' },
876
+ { id: uuid(), title: 'Marketing and Communications' },
877
+ { id: uuid(), title: 'Sales and Customer Relations' },
878
+ ]);
879
+ // Divisions
880
+ const divisions = await this.storageService.initial(RootConfig$2.entities.division.source, [
881
+ { id: uuid(), title: 'Northern Division' },
882
+ { id: uuid(), title: 'Southern Division' },
883
+ { id: uuid(), title: 'Eastern Division' },
884
+ { id: uuid(), title: 'Western Division' },
885
+ { id: uuid(), title: 'Central Division' },
886
+ ]);
887
+ // Branches
888
+ const branches = await this.storageService.initial(RootConfig$2.entities.branch.source, [
889
+ { id: uuid(), title: 'Headquarters' },
890
+ { id: uuid(), title: 'Regional Office A' },
891
+ { id: uuid(), title: 'Regional Office B' },
892
+ { id: uuid(), title: 'Regional Office C' },
893
+ { id: uuid(), title: 'Regional Office D' },
894
+ ]);
895
+ // Positions
896
+ const positions = await this.storageService.initial(RootConfig$2.entities.position.source, [
897
+ { id: uuid(), title: 'General Manager' },
898
+ { id: uuid(), title: 'Assistant General Manager' },
899
+ { id: uuid(), title: 'Senior Software Developer' },
900
+ { id: uuid(), title: 'Junior Software Developer' },
901
+ { id: uuid(), title: 'Software Development Intern' },
902
+ ]);
903
+ // Employment Types
904
+ await this.storageService.initial(RootConfig$2.entities.employmentType.source, [
905
+ { id: uuid(), title: 'Full-Time' },
906
+ { id: uuid(), title: 'Part-Time' },
907
+ { id: uuid(), title: 'Contract' },
908
+ { id: uuid(), title: 'Internship' },
909
+ { id: uuid(), title: 'Freelance' },
910
+ ]);
911
+ // Employees
912
+ const employees = await this.storageService.initial(RootConfig$2.entities.employee.source, [
913
+ { id: uuid(), firstname: 'John', lastname: 'Doe', birthDate: new Date('1990-01-01'), employeeID: 'EMP001' },
914
+ { id: uuid(), firstname: 'Jane', lastname: 'Smith', birthDate: new Date('1985-02-15'), employeeID: 'EMP002' },
915
+ { id: uuid(), firstname: 'Michael', lastname: 'Johnson', birthDate: new Date('1978-03-22'), employeeID: 'EMP003' },
916
+ { id: uuid(), firstname: 'Emily', lastname: 'Davis', birthDate: new Date('1992-04-10'), employeeID: 'EMP004' },
917
+ { id: uuid(), firstname: 'Daniel', lastname: 'Brown', birthDate: new Date('1988-05-30'), employeeID: 'EMP005' },
918
+ { id: uuid(), firstname: 'Jessica', lastname: 'Wilson', birthDate: new Date('1995-06-25'), employeeID: 'EMP006' },
919
+ { id: uuid(), firstname: 'David', lastname: 'Martinez', birthDate: new Date('1982-07-14'), employeeID: 'EMP007' },
920
+ { id: uuid(), firstname: 'Sarah', lastname: 'Anderson', birthDate: new Date('1993-08-05'), employeeID: 'EMP008' },
921
+ { id: uuid(), firstname: 'James', lastname: 'Taylor', birthDate: new Date('1980-09-18'), employeeID: 'EMP009' },
922
+ { id: uuid(), firstname: 'Laura', lastname: 'Thomas', birthDate: new Date('1987-10-29'), employeeID: 'EMP010' },
923
+ ]);
924
+ // Chart Nodes
925
+ const chartNodes = [
926
+ {
927
+ id: uuid(),
928
+ entity: { id: divisions[0].id, source: RootConfig$2.entities.division.source },
929
+ title: divisions[0].title,
930
+ parentId: null, // Root node
931
+ },
932
+ {
933
+ id: uuid(),
934
+ entity: { id: branches[0].id, source: RootConfig$2.entities.branch.source },
935
+ title: branches[0].title,
936
+ parentId: divisions[0].id,
937
+ },
938
+ {
939
+ id: uuid(),
940
+ entity: { id: departments[0].id, source: RootConfig$2.entities.department.source },
941
+ title: departments[0].title,
942
+ parentId: branches[0].id,
943
+ },
944
+ {
945
+ id: uuid(),
946
+ entity: { id: positions[0].id, source: RootConfig$2.entities.position.source },
947
+ title: positions[0].title,
948
+ parentId: departments[0].id,
949
+ },
950
+ {
951
+ id: uuid(),
952
+ entity: { id: employees[0].id, source: RootConfig$2.entities.employee.source },
953
+ title: `${employees[0].firstname} ${employees[0].lastname}`,
954
+ parentId: positions[0].id,
955
+ },
956
+ ];
957
+ // Store Chart Data
958
+ await this.storageService.initial(RootConfig$2.entities.chart.source, [
959
+ {
960
+ id: uuid(),
961
+ version: '1.0',
962
+ nodes: chartNodes,
963
+ },
964
+ ]);
965
+ }
966
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCOrganizationManagementDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
967
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCOrganizationManagementDataSeeder }); }
968
+ }
969
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCOrganizationManagementDataSeeder, decorators: [{
970
+ type: Injectable
971
+ }] });
972
+
973
+ class AXCFOrganizationManagementMockModule {
974
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCFOrganizationManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
975
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXCFOrganizationManagementMockModule }); }
976
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCFOrganizationManagementMockModule, providers: [
977
+ {
978
+ provide: AXP_DATA_SEEDER_TOKEN,
979
+ useClass: AXCOrganizationManagementDataSeeder,
980
+ multi: true,
981
+ },
982
+ ] }); }
983
+ }
984
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCFOrganizationManagementMockModule, decorators: [{
985
+ type: NgModule,
986
+ args: [{
987
+ imports: [],
988
+ exports: [],
989
+ declarations: [],
990
+ providers: [
991
+ {
992
+ provide: AXP_DATA_SEEDER_TOKEN,
993
+ useClass: AXCOrganizationManagementDataSeeder,
994
+ multi: true,
995
+ },
996
+ ],
997
+ }]
998
+ }] });
999
+
1000
+ const titles = ['Term and Condition Bank App', 'Term and Condition Social App'];
1001
+ const APP_TERMS = Array.from({ length: 10 }).map((element, i) => {
1002
+ const publishDate = new Date();
1003
+ publishDate.setDate(publishDate.getDate() - i * 7); // Subtract i weeks from the current date
1004
+ return {
1005
+ id: AXPDataGenerator.uuid(),
1006
+ title: titles[i],
1007
+ content: `Welcome to <b>[Your App]</b> ("we," "our," or "us"). By accessing and using our banking application (the "App"), you agree to abide by these Terms and Conditions. If you do not agree, please refrain from using the App.
1008
+
1009
+ <b>1. Acceptance of Terms</b>
1010
+ By accessing or using <b>[Your Banking App]</b>, you acknowledge that you have read, understood, and agree to these Terms and Conditions. We reserve the right to modify these terms at any time. Continued use of the App constitutes acceptance of the updated terms.
1011
+
1012
+ <b>2. User Eligibility</b>
1013
+ You must be at least 18 years old or the legal age in your jurisdiction to use the App.
1014
+ You must provide accurate and complete information for account registration.
1015
+ You agree to comply with all applicable financial and banking regulations.
1016
+
1017
+ <b>3. Account Registration & Security</b>
1018
+ You are responsible for maintaining the confidentiality of your login credentials.
1019
+ You must notify us immediately of any unauthorized access to your account.
1020
+ We are not liable for any losses incurred due to unauthorized access caused by your failure to secure your account.
1021
+
1022
+ <b>4. Transactions & Banking Services</b>
1023
+ All transactions made through the App are subject to verification and approval.
1024
+ Transaction limits, fees, and processing times may vary based on your account type and applicable regulations.
1025
+ You agree to provide accurate transaction details and maintain sufficient funds for transactions.
1026
+
1027
+ <b>5. Fees & Charges</b>
1028
+ Certain transactions and services may be subject to fees.
1029
+ We reserve the right to modify or introduce new fees with prior notice.
1030
+ Users will be responsible for any government-imposed taxes on transactions.
1031
+
1032
+ <b>6. Privacy & Data Protection</b>
1033
+ Your privacy is important to us. Our Privacy Policy outlines how we collect, use, and protect your personal and financial information.
1034
+
1035
+ <b>7. Security & Fraud Prevention</b>
1036
+ We implement industry-standard security measures to protect your data and transactions.
1037
+ Users must not engage in fraudulent activities, including identity theft, money laundering, or unauthorized transactions.
1038
+ Any suspicious activity may result in account suspension, investigation, or legal action.
1039
+
1040
+ <b>8. Account Suspension & Termination</b>
1041
+ We reserve the right to suspend or terminate your account if:
1042
+ You violate these Terms and Conditions.
1043
+ We detect suspicious or fraudulent activities.
1044
+ Required by law enforcement or regulatory authorities.
1045
+
1046
+ <b>9. Liability & Disclaimers</b>
1047
+ The App is provided on an "as is" and "as available" basis.
1048
+ We do not guarantee uninterrupted service, and we are not responsible for losses due to service outages.
1049
+ We are not liable for third-party actions, including fraudulent transactions made by other users.
1050
+
1051
+ <b>10. Third-Party Services</b>
1052
+ The App may integrate with third-party services for payments and other banking functions.
1053
+ We are not responsible for the privacy, security, or functionality of third-party services.
1054
+
1055
+ <b>11. Changes to Terms</b>
1056
+ We may update these Terms and Conditions periodically.
1057
+ Changes will be effective upon posting, and continued use of the App indicates acceptance of the revised terms.
1058
+
1059
+ <b>12. Governing Law & Dispute Resolution</b>
1060
+ These Terms shall be governed by and construed in accordance with the laws of [Your Country/State].
1061
+ Any disputes shall be resolved through arbitration or legal proceedings in the appropriate jurisdiction.
1062
+
1063
+ <b>13. Contact Us</b>
1064
+ For any inquiries, support, or concerns regarding these Terms and Conditions, please contact us at [your contact email].
1065
+
1066
+ By using <b>[Your Banking App]</b>, you acknowledge that you have read, understood, and agreed to these Terms and Conditions.`,
1067
+ effectiveDate: publishDate.toString(),
1068
+ notifyUser: true,
1069
+ type: 'term',
1070
+ version: 1,
1071
+ };
1072
+ });
1073
+
1074
+ class AXCAppTermDataSeeder {
1075
+ constructor() {
1076
+ this.storageService = inject(AXPDexieEntityStorageService);
1077
+ }
1078
+ async seed() {
1079
+ await this.storageService.initial(`${RootConfig$3.module.name}.${RootConfig$3.entities.appVersion.name}`, APP_TERMS);
1080
+ }
1081
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCAppTermDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1082
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCAppTermDataSeeder }); }
1083
+ }
1084
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCAppTermDataSeeder, decorators: [{
1085
+ type: Injectable
1086
+ }] });
1087
+
1088
+ const changeLog = [];
1089
+ for (let i = 0; i < 10; i++) {
1090
+ changeLog.push(`This is a detailed description of the changes made in version 1.5.3${i}.
1091
+ It includes various updates, bug fixes, and improvements.
1092
+ The changes are extensive and cover multiple aspects of the application,
1093
+ ensuring better performance, enhanced security, and a more user-friendly interface.
1094
+ Each update is carefully tested to maintain the highest quality standards.
1095
+ This description is intentionally verbose to exceed 300 characters and provide a comprehensive overview of the changes in this version.`);
1096
+ }
1097
+ const APP_VERSIONS = Array.from({ length: 10 }).map((element, i) => {
1098
+ const publishDate = new Date();
1099
+ publishDate.setDate(publishDate.getDate() - i * 7); // Subtract i weeks from the current date
1100
+ return {
1101
+ id: AXPDataGenerator.uuid(),
1102
+ versionNumber: `1.5.3${i}`,
1103
+ changeLog: changeLog[i],
1104
+ publishDate: publishDate.toString(),
1105
+ showFirstTimePopup: true,
1106
+ };
1107
+ });
1108
+
1109
+ class AXCAppVersionDataSeeder {
1110
+ constructor() {
1111
+ this.storageService = inject(AXPDexieEntityStorageService);
1112
+ }
1113
+ async seed() {
1114
+ await this.storageService.initial(`${RootConfig$3.module.name}.${RootConfig$3.entities.appVersion.name}`, APP_VERSIONS);
1115
+ }
1116
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCAppVersionDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1117
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCAppVersionDataSeeder }); }
1118
+ }
1119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCAppVersionDataSeeder, decorators: [{
862
1120
  type: Injectable
863
1121
  }] });
864
1122
 
@@ -879,17 +1137,17 @@ const GLOBAL_VARIABLES = Array.from({ length: 4 }).map((element, i) => {
879
1137
  };
880
1138
  });
881
1139
 
882
- class AXPGlobalVariablesDataSeeder {
1140
+ class AXCGlobalVariablesDataSeeder {
883
1141
  constructor() {
884
1142
  this.storageService = inject(AXPDexieEntityStorageService);
885
1143
  }
886
1144
  async seed() {
887
- await this.storageService.initial(`${RootConfig$2.module.name}.${RootConfig$2.entities.globalVariable.name}`, GLOBAL_VARIABLES);
1145
+ await this.storageService.initial(`${RootConfig$3.module.name}.${RootConfig$3.entities.globalVariable.name}`, GLOBAL_VARIABLES);
888
1146
  }
889
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPGlobalVariablesDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
890
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPGlobalVariablesDataSeeder }); }
1147
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCGlobalVariablesDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1148
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCGlobalVariablesDataSeeder }); }
891
1149
  }
892
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPGlobalVariablesDataSeeder, decorators: [{
1150
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCGlobalVariablesDataSeeder, decorators: [{
893
1151
  type: Injectable
894
1152
  }] });
895
1153
 
@@ -1036,17 +1294,17 @@ const SCHEDULER_JOB = [
1036
1294
  },
1037
1295
  ];
1038
1296
 
1039
- class AXPSchedulerJobDataSeeder {
1297
+ class AXCSchedulerJobDataSeeder {
1040
1298
  constructor() {
1041
1299
  this.storageService = inject(AXPDexieEntityStorageService);
1042
1300
  }
1043
1301
  async seed() {
1044
- await this.storageService.initial(`${RootConfig$3.module.name}.${RootConfig$3.entities.schedulerJob.name}`, SCHEDULER_JOB);
1302
+ await this.storageService.initial(`${RootConfig$4.module.name}.${RootConfig$4.entities.schedulerJob.name}`, SCHEDULER_JOB);
1045
1303
  }
1046
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSchedulerJobDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1047
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSchedulerJobDataSeeder }); }
1304
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCSchedulerJobDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1305
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCSchedulerJobDataSeeder }); }
1048
1306
  }
1049
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSchedulerJobDataSeeder, decorators: [{
1307
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCSchedulerJobDataSeeder, decorators: [{
1050
1308
  type: Injectable
1051
1309
  }] });
1052
1310
 
@@ -1167,169 +1425,34 @@ const TEXT_TEMPLATES = [
1167
1425
  },
1168
1426
  ];
1169
1427
 
1170
- class AXPTextTemplateCategoryDataSeeder {
1171
- constructor() {
1172
- this.storageService = inject(AXPDexieEntityStorageService);
1173
- }
1174
- async seed() {
1175
- await this.storageService.initial(`${RootConfig$4.module.name}.${RootConfig$4.entities.category.name}`, TEXT_TEMPLATE_CATEGORY);
1176
- }
1177
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTextTemplateCategoryDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1178
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTextTemplateCategoryDataSeeder }); }
1179
- }
1180
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTextTemplateCategoryDataSeeder, decorators: [{
1181
- type: Injectable
1182
- }] });
1183
-
1184
- class AXPTextTemplateDataSeeder {
1428
+ class AXCTextTemplateCategoryDataSeeder {
1185
1429
  constructor() {
1186
1430
  this.storageService = inject(AXPDexieEntityStorageService);
1187
1431
  }
1188
1432
  async seed() {
1189
- await this.storageService.initial(`${RootConfig$4.module.name}.${RootConfig$4.entities.template.name}`, TEXT_TEMPLATES);
1433
+ await this.storageService.initial(`${RootConfig$5.module.name}.${RootConfig$5.entities.category.name}`, TEXT_TEMPLATE_CATEGORY);
1190
1434
  }
1191
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTextTemplateDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1192
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTextTemplateDataSeeder }); }
1435
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTextTemplateCategoryDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1436
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTextTemplateCategoryDataSeeder }); }
1193
1437
  }
1194
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTextTemplateDataSeeder, decorators: [{
1438
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTextTemplateCategoryDataSeeder, decorators: [{
1195
1439
  type: Injectable
1196
1440
  }] });
1197
1441
 
1198
- class AXCOrganizationManagementDataSeeder {
1442
+ class AXCTextTemplateDataSeeder {
1199
1443
  constructor() {
1200
1444
  this.storageService = inject(AXPDexieEntityStorageService);
1201
1445
  }
1202
1446
  async seed() {
1203
- const uuid = AXPDataGenerator.uuid;
1204
- // Departments
1205
- const departments = await this.storageService.initial(RootConfig$5.entities.department.source, [
1206
- { id: uuid(), title: 'Human Resources' },
1207
- { id: uuid(), title: 'Financial Services' },
1208
- { id: uuid(), title: 'Information Technology' },
1209
- { id: uuid(), title: 'Marketing and Communications' },
1210
- { id: uuid(), title: 'Sales and Customer Relations' },
1211
- ]);
1212
- // Divisions
1213
- const divisions = await this.storageService.initial(RootConfig$5.entities.division.source, [
1214
- { id: uuid(), title: 'Northern Division' },
1215
- { id: uuid(), title: 'Southern Division' },
1216
- { id: uuid(), title: 'Eastern Division' },
1217
- { id: uuid(), title: 'Western Division' },
1218
- { id: uuid(), title: 'Central Division' },
1219
- ]);
1220
- // Branches
1221
- const branches = await this.storageService.initial(RootConfig$5.entities.branch.source, [
1222
- { id: uuid(), title: 'Headquarters' },
1223
- { id: uuid(), title: 'Regional Office A' },
1224
- { id: uuid(), title: 'Regional Office B' },
1225
- { id: uuid(), title: 'Regional Office C' },
1226
- { id: uuid(), title: 'Regional Office D' },
1227
- ]);
1228
- // Positions
1229
- const positions = await this.storageService.initial(RootConfig$5.entities.position.source, [
1230
- { id: uuid(), title: 'General Manager' },
1231
- { id: uuid(), title: 'Assistant General Manager' },
1232
- { id: uuid(), title: 'Senior Software Developer' },
1233
- { id: uuid(), title: 'Junior Software Developer' },
1234
- { id: uuid(), title: 'Software Development Intern' },
1235
- ]);
1236
- // Employment Types
1237
- await this.storageService.initial(RootConfig$5.entities.employmentType.source, [
1238
- { id: uuid(), title: 'Full-Time' },
1239
- { id: uuid(), title: 'Part-Time' },
1240
- { id: uuid(), title: 'Contract' },
1241
- { id: uuid(), title: 'Internship' },
1242
- { id: uuid(), title: 'Freelance' },
1243
- ]);
1244
- // Employees
1245
- const employees = await this.storageService.initial(RootConfig$5.entities.employee.source, [
1246
- { id: uuid(), firstname: 'John', lastname: 'Doe', birthDate: new Date('1990-01-01'), employeeID: 'EMP001' },
1247
- { id: uuid(), firstname: 'Jane', lastname: 'Smith', birthDate: new Date('1985-02-15'), employeeID: 'EMP002' },
1248
- { id: uuid(), firstname: 'Michael', lastname: 'Johnson', birthDate: new Date('1978-03-22'), employeeID: 'EMP003' },
1249
- { id: uuid(), firstname: 'Emily', lastname: 'Davis', birthDate: new Date('1992-04-10'), employeeID: 'EMP004' },
1250
- { id: uuid(), firstname: 'Daniel', lastname: 'Brown', birthDate: new Date('1988-05-30'), employeeID: 'EMP005' },
1251
- { id: uuid(), firstname: 'Jessica', lastname: 'Wilson', birthDate: new Date('1995-06-25'), employeeID: 'EMP006' },
1252
- { id: uuid(), firstname: 'David', lastname: 'Martinez', birthDate: new Date('1982-07-14'), employeeID: 'EMP007' },
1253
- { id: uuid(), firstname: 'Sarah', lastname: 'Anderson', birthDate: new Date('1993-08-05'), employeeID: 'EMP008' },
1254
- { id: uuid(), firstname: 'James', lastname: 'Taylor', birthDate: new Date('1980-09-18'), employeeID: 'EMP009' },
1255
- { id: uuid(), firstname: 'Laura', lastname: 'Thomas', birthDate: new Date('1987-10-29'), employeeID: 'EMP010' },
1256
- ]);
1257
- // Chart Nodes
1258
- const chartNodes = [
1259
- {
1260
- id: uuid(),
1261
- entity: { id: divisions[0].id, source: RootConfig$5.entities.division.source },
1262
- title: divisions[0].title,
1263
- parentId: null, // Root node
1264
- },
1265
- {
1266
- id: uuid(),
1267
- entity: { id: branches[0].id, source: RootConfig$5.entities.branch.source },
1268
- title: branches[0].title,
1269
- parentId: divisions[0].id,
1270
- },
1271
- {
1272
- id: uuid(),
1273
- entity: { id: departments[0].id, source: RootConfig$5.entities.department.source },
1274
- title: departments[0].title,
1275
- parentId: branches[0].id,
1276
- },
1277
- {
1278
- id: uuid(),
1279
- entity: { id: positions[0].id, source: RootConfig$5.entities.position.source },
1280
- title: positions[0].title,
1281
- parentId: departments[0].id,
1282
- },
1283
- {
1284
- id: uuid(),
1285
- entity: { id: employees[0].id, source: RootConfig$5.entities.employee.source },
1286
- title: `${employees[0].firstname} ${employees[0].lastname}`,
1287
- parentId: positions[0].id,
1288
- },
1289
- ];
1290
- // Store Chart Data
1291
- await this.storageService.initial(RootConfig$5.entities.chart.source, [
1292
- {
1293
- id: uuid(),
1294
- version: '1.0',
1295
- nodes: chartNodes,
1296
- },
1297
- ]);
1447
+ await this.storageService.initial(`${RootConfig$5.module.name}.${RootConfig$5.entities.template.name}`, TEXT_TEMPLATES);
1298
1448
  }
1299
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCOrganizationManagementDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1300
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCOrganizationManagementDataSeeder }); }
1449
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTextTemplateDataSeeder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1450
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTextTemplateDataSeeder }); }
1301
1451
  }
1302
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCOrganizationManagementDataSeeder, decorators: [{
1452
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCTextTemplateDataSeeder, decorators: [{
1303
1453
  type: Injectable
1304
1454
  }] });
1305
1455
 
1306
- class AXCFOrganizationManagementMockModule {
1307
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCFOrganizationManagementMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1308
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXCFOrganizationManagementMockModule }); }
1309
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCFOrganizationManagementMockModule, providers: [
1310
- {
1311
- provide: AXP_DATA_SEEDER_TOKEN,
1312
- useClass: AXCOrganizationManagementDataSeeder,
1313
- multi: true,
1314
- },
1315
- ] }); }
1316
- }
1317
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCFOrganizationManagementMockModule, decorators: [{
1318
- type: NgModule,
1319
- args: [{
1320
- imports: [],
1321
- exports: [],
1322
- declarations: [],
1323
- providers: [
1324
- {
1325
- provide: AXP_DATA_SEEDER_TOKEN,
1326
- useClass: AXCOrganizationManagementDataSeeder,
1327
- multi: true,
1328
- },
1329
- ],
1330
- }]
1331
- }] });
1332
-
1333
1456
  class AXCMockModule {
1334
1457
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXCMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1335
1458
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXCMockModule, imports: [i1$1.AXPAuthModule, AXCFormTemplateManagementMockModule,
@@ -1347,32 +1470,42 @@ class AXCMockModule {
1347
1470
  },
1348
1471
  {
1349
1472
  provide: AXP_DATA_SEEDER_TOKEN,
1350
- useClass: AXPGlobalVariablesDataSeeder,
1473
+ useClass: AXCGlobalVariablesDataSeeder,
1474
+ multi: true,
1475
+ },
1476
+ {
1477
+ provide: AXP_DATA_SEEDER_TOKEN,
1478
+ useClass: AXCTextTemplateCategoryDataSeeder,
1351
1479
  multi: true,
1352
1480
  },
1353
1481
  {
1354
1482
  provide: AXP_DATA_SEEDER_TOKEN,
1355
- useClass: AXPTextTemplateCategoryDataSeeder,
1483
+ useClass: AXCTextTemplateDataSeeder,
1356
1484
  multi: true,
1357
1485
  },
1358
1486
  {
1359
1487
  provide: AXP_DATA_SEEDER_TOKEN,
1360
- useClass: AXPTextTemplateDataSeeder,
1488
+ useClass: AXCApplicationTemplateDataSeeder,
1361
1489
  multi: true,
1362
1490
  },
1363
1491
  {
1364
1492
  provide: AXP_DATA_SEEDER_TOKEN,
1365
- useClass: AXPApplicationTemplateDataSeeder,
1493
+ useClass: AXCSchedulerJobDataSeeder,
1366
1494
  multi: true,
1367
1495
  },
1368
1496
  {
1369
1497
  provide: AXP_DATA_SEEDER_TOKEN,
1370
- useClass: AXPSchedulerJobDataSeeder,
1498
+ useClass: AXCNotificationTemplateDataSeeder,
1371
1499
  multi: true,
1372
1500
  },
1373
1501
  {
1374
1502
  provide: AXP_DATA_SEEDER_TOKEN,
1375
- useClass: AXPNotificationTemplateDataSeeder,
1503
+ useClass: AXCAppVersionDataSeeder,
1504
+ multi: true,
1505
+ },
1506
+ {
1507
+ provide: AXP_DATA_SEEDER_TOKEN,
1508
+ useClass: AXCAppTermDataSeeder,
1376
1509
  multi: true,
1377
1510
  },
1378
1511
  {
@@ -1420,32 +1553,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
1420
1553
  },
1421
1554
  {
1422
1555
  provide: AXP_DATA_SEEDER_TOKEN,
1423
- useClass: AXPGlobalVariablesDataSeeder,
1556
+ useClass: AXCGlobalVariablesDataSeeder,
1557
+ multi: true,
1558
+ },
1559
+ {
1560
+ provide: AXP_DATA_SEEDER_TOKEN,
1561
+ useClass: AXCTextTemplateCategoryDataSeeder,
1562
+ multi: true,
1563
+ },
1564
+ {
1565
+ provide: AXP_DATA_SEEDER_TOKEN,
1566
+ useClass: AXCTextTemplateDataSeeder,
1424
1567
  multi: true,
1425
1568
  },
1426
1569
  {
1427
1570
  provide: AXP_DATA_SEEDER_TOKEN,
1428
- useClass: AXPTextTemplateCategoryDataSeeder,
1571
+ useClass: AXCApplicationTemplateDataSeeder,
1429
1572
  multi: true,
1430
1573
  },
1431
1574
  {
1432
1575
  provide: AXP_DATA_SEEDER_TOKEN,
1433
- useClass: AXPTextTemplateDataSeeder,
1576
+ useClass: AXCSchedulerJobDataSeeder,
1434
1577
  multi: true,
1435
1578
  },
1436
1579
  {
1437
1580
  provide: AXP_DATA_SEEDER_TOKEN,
1438
- useClass: AXPApplicationTemplateDataSeeder,
1581
+ useClass: AXCNotificationTemplateDataSeeder,
1439
1582
  multi: true,
1440
1583
  },
1441
1584
  {
1442
1585
  provide: AXP_DATA_SEEDER_TOKEN,
1443
- useClass: AXPSchedulerJobDataSeeder,
1586
+ useClass: AXCAppVersionDataSeeder,
1444
1587
  multi: true,
1445
1588
  },
1446
1589
  {
1447
1590
  provide: AXP_DATA_SEEDER_TOKEN,
1448
- useClass: AXPNotificationTemplateDataSeeder,
1591
+ useClass: AXCAppTermDataSeeder,
1449
1592
  multi: true,
1450
1593
  },
1451
1594
  {