@acorex/modules 19.4.1 → 19.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/document-management/lib/document-management.module.d.ts +11 -10
- package/document-management/lib/entities/folder/folder.types.d.ts +2 -0
- package/document-management/lib/features/document-explorer/components/create-folder-dialog/create-folder-dialog.component.d.ts +2 -1
- package/document-management/lib/features/document-explorer/document-explorer.component.d.ts +0 -1
- package/document-management/lib/features/drive-choose/drive-choose.module.d.ts +7 -0
- package/document-management/lib/features/drive-choose/slots/file-uploader-widget-extension/file-uploader-widget-extension.component.d.ts +15 -0
- package/document-management/lib/features/shared/components/index.d.ts +0 -1
- package/document-management/lib/features/shared/document-manager.service.d.ts +0 -2
- package/document-management/lib/features/shared/document-manager.types.d.ts +1 -0
- package/fesm2022/{acorex-modules-application-management-module-designer.component-cD24pUfN.mjs → acorex-modules-application-management-module-designer.component-BRh6mzWA.mjs} +2 -2
- package/fesm2022/{acorex-modules-application-management-module-designer.component-cD24pUfN.mjs.map → acorex-modules-application-management-module-designer.component-BRh6mzWA.mjs.map} +1 -1
- package/fesm2022/acorex-modules-application-management.mjs +1 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-BhTLWa3y.mjs → acorex-modules-auth-acorex-modules-auth-B-OllEdK.mjs} +13 -13
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-BhTLWa3y.mjs.map → acorex-modules-auth-acorex-modules-auth-B-OllEdK.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-app-chooser.component-J5vGfv56.mjs → acorex-modules-auth-app-chooser.component-DNr963RR.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-app-chooser.component-J5vGfv56.mjs.map → acorex-modules-auth-app-chooser.component-DNr963RR.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-DUlctvyx.mjs → acorex-modules-auth-login.module-HfQItJY6.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-DUlctvyx.mjs.map → acorex-modules-auth-login.module-HfQItJY6.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout-BFCxBj8H.mjs → acorex-modules-auth-master.layout-DgN0Dh-I.mjs} +3 -3
- package/fesm2022/{acorex-modules-auth-master.layout-BFCxBj8H.mjs.map → acorex-modules-auth-master.layout-DgN0Dh-I.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-CSE7_3Ey.mjs → acorex-modules-auth-password.component-B-L3ksjM.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-CSE7_3Ey.mjs.map → acorex-modules-auth-password.component-B-L3ksjM.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-CPpJug_X.mjs → acorex-modules-auth-password.component-CVgNTaKI.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-CPpJug_X.mjs.map → acorex-modules-auth-password.component-CVgNTaKI.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-BSk5njsU.mjs → acorex-modules-auth-routes-CtoZQEq9.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-BSk5njsU.mjs.map → acorex-modules-auth-routes-CtoZQEq9.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-D3mhXLXx.mjs → acorex-modules-auth-two-factor.module-CCP_Oovk.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-two-factor.module-D3mhXLXx.mjs.map → acorex-modules-auth-two-factor.module-CCP_Oovk.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-user-sessions.component-COeH4jjg.mjs → acorex-modules-auth-user-sessions.component-6jRmJGeS.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-user-sessions.component-COeH4jjg.mjs.map → acorex-modules-auth-user-sessions.component-6jRmJGeS.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-common.mjs +2 -2
- package/fesm2022/acorex-modules-common.mjs.map +1 -1
- package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-BcgxVPuR.mjs → acorex-modules-document-management-acorex-modules-document-management-BpmG6Dyx.mjs} +148 -142
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-BpmG6Dyx.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-Cwa7HuUo.mjs → acorex-modules-document-management-attachment-widget.component-DIF_t4fE.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-Cwa7HuUo.mjs.map → acorex-modules-document-management-attachment-widget.component-DIF_t4fE.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-CCvKUDsw.mjs +141 -0
- package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-CCvKUDsw.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-details-view.component-DXn54h2g.mjs → acorex-modules-document-management-details-view.component-D0RIYrHB.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-details-view.component-DXn54h2g.mjs.map → acorex-modules-document-management-details-view.component-D0RIYrHB.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-CTrPj9t3.mjs → acorex-modules-document-management-drive-choose.component-DMAQr0nK.mjs} +4 -4
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-CTrPj9t3.mjs.map → acorex-modules-document-management-drive-choose.component-DMAQr0nK.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DwAyEZUU.mjs → acorex-modules-document-management-large-icons-view.component-C686Ec7s.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DwAyEZUU.mjs.map → acorex-modules-document-management-large-icons-view.component-C686Ec7s.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-B0n1rs-g.mjs → acorex-modules-document-management-large-tiles-view.component-0GpMVYv5.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-B0n1rs-g.mjs.map → acorex-modules-document-management-large-tiles-view.component-0GpMVYv5.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-list-view.component-CIAQBAcy.mjs → acorex-modules-document-management-list-view.component-C1inszTC.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-list-view.component-CIAQBAcy.mjs.map → acorex-modules-document-management-list-view.component-C1inszTC.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-BBXmMuIh.mjs → acorex-modules-document-management-permission-definition.provider-B7lgRLHi.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-BBXmMuIh.mjs.map → acorex-modules-document-management-permission-definition.provider-B7lgRLHi.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-D28zKZqZ.mjs → acorex-modules-document-management-rename-node-dialog.component-C9k8WgDG.mjs} +6 -6
- package/fesm2022/acorex-modules-document-management-rename-node-dialog.component-C9k8WgDG.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-Dg5nb2yW.mjs → acorex-modules-document-management-small-icons-view.component-BGcUzNCv.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-Dg5nb2yW.mjs.map → acorex-modules-document-management-small-icons-view.component-BGcUzNCv.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-BCaQYHQF.mjs → acorex-modules-document-management-small-tiles-view.component-CumumWvO.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-BCaQYHQF.mjs.map → acorex-modules-document-management-small-tiles-view.component-CumumWvO.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +2 -2
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-CO8rzxOh.mjs → acorex-modules-platform-management-acorex-modules-platform-management-C9ZApxct.mjs} +173 -13
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-C9ZApxct.mjs.map +1 -0
- package/fesm2022/{acorex-modules-platform-management-list-version.component-gWnz7cp6.mjs → acorex-modules-platform-management-list-version.component-D50Xundj.mjs} +2 -2
- package/fesm2022/{acorex-modules-platform-management-list-version.component-gWnz7cp6.mjs.map → acorex-modules-platform-management-list-version.component-D50Xundj.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-platform-management-settings.provider-JEwENvqy.mjs → acorex-modules-platform-management-settings.provider-DsHGn3AZ.mjs} +2 -2
- package/fesm2022/{acorex-modules-platform-management-settings.provider-JEwENvqy.mjs.map → acorex-modules-platform-management-settings.provider-DsHGn3AZ.mjs.map} +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +1 -1
- package/fesm2022/acorex-modules-training-management.mjs +1 -0
- package/fesm2022/acorex-modules-training-management.mjs.map +1 -1
- package/package.json +9 -9
- package/platform-management/lib/features/app-terms/settings.keys.d.ts +3 -0
- package/document-management/lib/features/shared/components/choose-document-type/choose-document-type.component.d.ts +0 -21
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-BcgxVPuR.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-BN0pWX7a.mjs +0 -135
- package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-BN0pWX7a.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-rename-node-dialog.component-D28zKZqZ.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-CO8rzxOh.mjs.map +0 -1
@@ -3552,6 +3552,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
3552
3552
|
args: [{ selector: 'acorex-platform-promotion-slot', imports: [CommonModule, AXSafePipe], template: "@for (item of listData(); track item.id) { @if (item.contentType?.name == 'media') {\n<img [src]=\"item.image?.url ?? ''\" class=\"ax-w-full ax-p-3 ax-border {{\n item.shape?.name == 'circle' ? 'ax-rounded-full' : 'ax-rounded-none'\n }}\" />\n} @if(item.contentType?.name == 'text'){\n<div class=\"ax-m-1 ax-px-6 ax-p-4 ax-border ax-bg-primary ax-rounded-lg\">\n <h1 class=\"ax-text-base/6\" [innerHTML]=\"item.body | safe : 'html'\"></h1>\n</div>\n\n} }\n" }]
|
3553
3553
|
}] });
|
3554
3554
|
|
3555
|
+
/**
|
3556
|
+
* Deeply sanitizes an object for storage in IndexedDB by removing non-serializable content
|
3557
|
+
*/
|
3558
|
+
function sanitizeForStorage(obj) {
|
3559
|
+
if (!obj) {
|
3560
|
+
return obj;
|
3561
|
+
}
|
3562
|
+
// Handle primitive values
|
3563
|
+
if (typeof obj !== 'object') {
|
3564
|
+
return obj;
|
3565
|
+
}
|
3566
|
+
// Handle arrays
|
3567
|
+
if (Array.isArray(obj)) {
|
3568
|
+
return obj.map(item => sanitizeForStorage(item));
|
3569
|
+
}
|
3570
|
+
// Handle Date objects
|
3571
|
+
if (obj instanceof Date) {
|
3572
|
+
return obj;
|
3573
|
+
}
|
3574
|
+
// Handle File objects specially
|
3575
|
+
if (obj instanceof File) {
|
3576
|
+
// File objects are handled separately, return as is
|
3577
|
+
return obj;
|
3578
|
+
}
|
3579
|
+
// Handle regular objects
|
3580
|
+
const cleanedObj = {};
|
3581
|
+
for (const [key, value] of Object.entries(obj)) {
|
3582
|
+
// Skip functions, symbols and other non-serializable types
|
3583
|
+
if (typeof value === 'function' || typeof value === 'symbol') {
|
3584
|
+
continue;
|
3585
|
+
}
|
3586
|
+
// Handle null values
|
3587
|
+
if (value === null) {
|
3588
|
+
cleanedObj[key] = null;
|
3589
|
+
continue;
|
3590
|
+
}
|
3591
|
+
// Recursively sanitize objects
|
3592
|
+
if (typeof value === 'object') {
|
3593
|
+
cleanedObj[key] = sanitizeForStorage(value);
|
3594
|
+
}
|
3595
|
+
else {
|
3596
|
+
cleanedObj[key] = value;
|
3597
|
+
}
|
3598
|
+
}
|
3599
|
+
return cleanedObj;
|
3600
|
+
}
|
3555
3601
|
async function promotionEntityFactory(injector) {
|
3556
3602
|
const dataService = injector.get(AXMAppPromotionService);
|
3557
3603
|
const i18n = RootConfig.config.i18n;
|
@@ -3649,9 +3695,6 @@ async function promotionEntityFactory(injector) {
|
|
3649
3695
|
type: AXPWidgetsCatalog.fileUploader,
|
3650
3696
|
options: {
|
3651
3697
|
multiple: true,
|
3652
|
-
// entity: `${RootConfig.module.name}.${RootConfig.entities.promotion.name}`,
|
3653
|
-
// record: '{{context.eval("id")}}',
|
3654
|
-
// types:['risk-assessment-report']
|
3655
3698
|
},
|
3656
3699
|
},
|
3657
3700
|
},
|
@@ -3788,12 +3831,32 @@ async function promotionEntityFactory(injector) {
|
|
3788
3831
|
// },
|
3789
3832
|
// },
|
3790
3833
|
],
|
3791
|
-
columns: [{ name: 'title' }, { name: 'placement' }],
|
3834
|
+
columns: [{ name: 'title' }, { name: 'placement' }, { name: 'imageId' }],
|
3792
3835
|
commands: {
|
3793
3836
|
create: {
|
3794
3837
|
execute: async (data) => {
|
3795
|
-
|
3838
|
+
// First deeply sanitize the data object to remove non-serializable content
|
3839
|
+
data = sanitizeForStorage(data);
|
3840
|
+
// Convert array of File objects to serializable format for IndexedDB storage
|
3841
|
+
data.imageId = await Promise.all((data.imageId || []).map(async (file) => {
|
3842
|
+
if (file instanceof File) {
|
3843
|
+
return {
|
3844
|
+
name: file.name,
|
3845
|
+
type: file.type,
|
3846
|
+
size: file.size,
|
3847
|
+
lastModified: file.lastModified,
|
3848
|
+
// Convert File to base64 string for storage
|
3849
|
+
data: await new Promise((resolve) => {
|
3850
|
+
const reader = new FileReader();
|
3851
|
+
reader.onloadend = () => resolve(reader.result);
|
3852
|
+
reader.readAsDataURL(file);
|
3853
|
+
})
|
3854
|
+
};
|
3855
|
+
}
|
3856
|
+
return file;
|
3857
|
+
}));
|
3796
3858
|
const res = await dataService.insertOne(data);
|
3859
|
+
// Return the same ID format that was used for storage
|
3797
3860
|
return { id: res };
|
3798
3861
|
},
|
3799
3862
|
},
|
@@ -3804,6 +3867,28 @@ async function promotionEntityFactory(injector) {
|
|
3804
3867
|
},
|
3805
3868
|
update: {
|
3806
3869
|
execute: async (data) => {
|
3870
|
+
// First deeply sanitize the data object to remove non-serializable content
|
3871
|
+
data = sanitizeForStorage(data);
|
3872
|
+
// Convert array of File objects to serializable format for IndexedDB storage
|
3873
|
+
if (data.imageId && Array.isArray(data.imageId)) {
|
3874
|
+
data.imageId = await Promise.all((data.imageId || []).map(async (file) => {
|
3875
|
+
if (file instanceof File) {
|
3876
|
+
return {
|
3877
|
+
name: file.name,
|
3878
|
+
type: file.type,
|
3879
|
+
size: file.size,
|
3880
|
+
lastModified: file.lastModified,
|
3881
|
+
// Convert File to base64 string for storage
|
3882
|
+
data: await new Promise((resolve) => {
|
3883
|
+
const reader = new FileReader();
|
3884
|
+
reader.onloadend = () => resolve(reader.result);
|
3885
|
+
reader.readAsDataURL(file);
|
3886
|
+
})
|
3887
|
+
};
|
3888
|
+
}
|
3889
|
+
return file;
|
3890
|
+
}));
|
3891
|
+
}
|
3807
3892
|
return await dataService.updateOne(data.id, data);
|
3808
3893
|
},
|
3809
3894
|
},
|
@@ -3811,7 +3896,74 @@ async function promotionEntityFactory(injector) {
|
|
3811
3896
|
queries: {
|
3812
3897
|
byKey: {
|
3813
3898
|
execute: async (id) => {
|
3814
|
-
|
3899
|
+
try {
|
3900
|
+
// Debug the incoming ID parameter
|
3901
|
+
console.log('byKey original id parameter:', id, typeof id);
|
3902
|
+
// Ensure id is a valid key for IndexedDB - needs to be string or number
|
3903
|
+
let validId;
|
3904
|
+
// If id is an object (e.g., from router params or complex structure)
|
3905
|
+
if (typeof id === 'object' && id !== null) {
|
3906
|
+
if ('id' in id) {
|
3907
|
+
validId = String(id.id);
|
3908
|
+
}
|
3909
|
+
else {
|
3910
|
+
validId = String(id);
|
3911
|
+
}
|
3912
|
+
console.warn('Converted object id to string:', validId);
|
3913
|
+
}
|
3914
|
+
else if (id === undefined || id === null) {
|
3915
|
+
console.error('Invalid id parameter: null or undefined');
|
3916
|
+
return null;
|
3917
|
+
}
|
3918
|
+
else {
|
3919
|
+
// Convert to string to ensure consistency
|
3920
|
+
validId = String(id);
|
3921
|
+
}
|
3922
|
+
// Log the ID being used for the query
|
3923
|
+
console.log('Fetching record with id:', validId, typeof validId);
|
3924
|
+
try {
|
3925
|
+
const data = await dataService.getOne(validId);
|
3926
|
+
console.log('getOne result:', data ? 'Data found' : 'No data found');
|
3927
|
+
// If no data was found
|
3928
|
+
if (!data) {
|
3929
|
+
console.warn(`No record found with id: ${validId}`);
|
3930
|
+
return null;
|
3931
|
+
}
|
3932
|
+
// Deserialize imageId field if it contains serialized file objects
|
3933
|
+
if (data.imageId && Array.isArray(data.imageId)) {
|
3934
|
+
data.imageId = await Promise.all(data.imageId.map(async (fileData) => {
|
3935
|
+
// Check if this is a serialized file
|
3936
|
+
if (fileData && fileData.data && fileData.name && fileData.type) {
|
3937
|
+
try {
|
3938
|
+
// Convert base64 string back to a Blob
|
3939
|
+
const response = await fetch(fileData.data);
|
3940
|
+
const blob = await response.blob();
|
3941
|
+
// Create a new File object
|
3942
|
+
return new File([blob], fileData.name, {
|
3943
|
+
type: fileData.type,
|
3944
|
+
lastModified: fileData.lastModified
|
3945
|
+
});
|
3946
|
+
}
|
3947
|
+
catch (error) {
|
3948
|
+
console.error('Failed to deserialize file:', fileData.name, error);
|
3949
|
+
return fileData; // Return original data if deserialization fails
|
3950
|
+
}
|
3951
|
+
}
|
3952
|
+
return fileData; // Return as is if not a serialized file
|
3953
|
+
})); // Cast to any to avoid type conflict
|
3954
|
+
}
|
3955
|
+
return data;
|
3956
|
+
}
|
3957
|
+
catch (error) {
|
3958
|
+
console.error(`Error fetching data with ID ${validId}:`, error);
|
3959
|
+
// Return null instead of throwing to avoid cascading errors
|
3960
|
+
return null;
|
3961
|
+
}
|
3962
|
+
}
|
3963
|
+
catch (error) {
|
3964
|
+
console.error('Critical error in byKey query:', error);
|
3965
|
+
return null; // Return null instead of throwing to avoid UI errors
|
3966
|
+
}
|
3815
3967
|
},
|
3816
3968
|
type: AXPEntityQueryType.Single,
|
3817
3969
|
},
|
@@ -4517,7 +4669,7 @@ class AXMPlatformManagementCommonModule {
|
|
4517
4669
|
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
4518
4670
|
useFactory: async () => {
|
4519
4671
|
const injector = inject(Injector);
|
4520
|
-
const provider = (await import('./acorex-modules-platform-management-settings.provider-
|
4672
|
+
const provider = (await import('./acorex-modules-platform-management-settings.provider-DsHGn3AZ.mjs')).AXMRegionalSettingProvider;
|
4521
4673
|
return new provider(injector);
|
4522
4674
|
},
|
4523
4675
|
multi: true
|
@@ -4528,7 +4680,7 @@ class AXMPlatformManagementCommonModule {
|
|
4528
4680
|
multi: true
|
4529
4681
|
},
|
4530
4682
|
], imports: [AXPComponentSlotModule.forChild({
|
4531
|
-
'header-end': [
|
4683
|
+
'root-header-end': [
|
4532
4684
|
{
|
4533
4685
|
name: 'language',
|
4534
4686
|
component: AXMLanguageSlotComponent
|
@@ -4541,7 +4693,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
4541
4693
|
args: [{
|
4542
4694
|
imports: [
|
4543
4695
|
AXPComponentSlotModule.forChild({
|
4544
|
-
'header-end': [
|
4696
|
+
'root-header-end': [
|
4545
4697
|
{
|
4546
4698
|
name: 'language',
|
4547
4699
|
component: AXMLanguageSlotComponent
|
@@ -4556,7 +4708,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
4556
4708
|
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
4557
4709
|
useFactory: async () => {
|
4558
4710
|
const injector = inject(Injector);
|
4559
|
-
const provider = (await import('./acorex-modules-platform-management-settings.provider-
|
4711
|
+
const provider = (await import('./acorex-modules-platform-management-settings.provider-DsHGn3AZ.mjs')).AXMRegionalSettingProvider;
|
4560
4712
|
return new provider(injector);
|
4561
4713
|
},
|
4562
4714
|
multi: true
|
@@ -4745,6 +4897,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
4745
4897
|
type: Injectable
|
4746
4898
|
}] });
|
4747
4899
|
|
4900
|
+
var AXPApplicationTermsSettings;
|
4901
|
+
(function (AXPApplicationTermsSettings) {
|
4902
|
+
AXPApplicationTermsSettings["ApplicationTerms"] = "general:startup:application-terms";
|
4903
|
+
})(AXPApplicationTermsSettings || (AXPApplicationTermsSettings = {}));
|
4904
|
+
|
4748
4905
|
class AppTermsCheckService {
|
4749
4906
|
constructor() {
|
4750
4907
|
this.settingsService = inject(AXPSettingService);
|
@@ -4765,7 +4922,10 @@ class AppTermsCheckService {
|
|
4765
4922
|
const isConfirm = await this.settingsService
|
4766
4923
|
.scope(AXPPlatformScope.User)
|
4767
4924
|
.get(`is-confirm-term-${term.id}`);
|
4768
|
-
|
4925
|
+
const isEnableToShow = await this.settingsService
|
4926
|
+
.scope(AXPPlatformScope.User)
|
4927
|
+
.get(AXPApplicationTermsSettings.ApplicationTerms);
|
4928
|
+
if (!isConfirm && isEnableToShow) {
|
4769
4929
|
filterTerms.push(term);
|
4770
4930
|
}
|
4771
4931
|
}
|
@@ -4793,7 +4953,7 @@ class AXMShowReleaseNotesPopupAction extends AXPWorkflowAction {
|
|
4793
4953
|
}
|
4794
4954
|
async execute(context) {
|
4795
4955
|
const scope = RootConfig.config.i18n;
|
4796
|
-
const comp = await (await import('./acorex-modules-platform-management-list-version.component-
|
4956
|
+
const comp = await (await import('./acorex-modules-platform-management-list-version.component-D50Xundj.mjs')).AXMListVersionComponent;
|
4797
4957
|
this.popupService.open(comp, {
|
4798
4958
|
title: `t('release-notes',{scope: "${scope}"})`,
|
4799
4959
|
});
|
@@ -5349,4 +5509,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
5349
5509
|
*/
|
5350
5510
|
|
5351
5511
|
export { AXPRegionalSetting as A, AXMGlossaryServiceImpl as B, metaDataDefinitionFactory as C, AXMMetaDataDefinitionService as D, AXMPMetaDataDefinitionServiceImpl as E, metaDataDefinitionCategoryEntityFactory as F, AXMMetaDataDefinitionCategoryService as G, AXMMetaDataDefinitionCategoryServiceImpl as H, AXMPromotionSlotComponent as I, promotionEntityFactory as J, AXMAppPromotionService as K, AXMPromotionServiceImpl as L, AXPRegionalStoreService as M, AXMUpdaterModule as N, AXPUpdaterService as O, RootConfig as R, AXMAppVersionService as a, AXMPlatformManagementModule as b, appTermEntityEntityFactory as c, AXMAppTermService as d, AXMAppTermServiceImpl as e, AXMListTermsComponent as f, AXMNotifyNewTermPopupAction as g, AXMTermUpdateSettingAction as h, AXMNewTermWorkflow as i, appVersionEntityEntityFactory as j, AXMAppVersionServiceImpl as k, AXMNotifyAppComponent as l, AXMAppVersionSlotComponent as m, AXMChangeLogPopupAction as n, AXMChangeLogUpdateSettingAction as o, AXMWhatsNewWorkflow as p, AXMCheckNewVersionAction as q, AXMCheckNewVersionWorkflow as r, dataSourceEntityFactory as s, AXMDataSourceService as t, AXMDataSourceServiceImpl as u, globalVariableEntityFactory as v, AXMGlobalVariablesService as w, AXMGlobalVariablesServiceImpl as x, glossaryEntityFactory as y, AXMGlossaryService as z };
|
5352
|
-
//# sourceMappingURL=acorex-modules-platform-management-acorex-modules-platform-management-
|
5512
|
+
//# sourceMappingURL=acorex-modules-platform-management-acorex-modules-platform-management-C9ZApxct.mjs.map
|