@acorex/modules 18.1.5 → 18.1.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.
- package/application-management/index.d.ts +2 -0
- package/application-management/lib/application-management.module.d.ts +0 -2
- package/application-management/lib/application-management.route.d.ts +2 -0
- package/application-management/lib/application-management.service.d.ts +18 -0
- package/application-management/lib/application-management.source.d.ts +7 -0
- package/application-management/lib/application-management.types.d.ts +50 -0
- package/application-management/lib/entity.loader.d.ts +9 -0
- package/application-management/lib/menu.provider.d.ts +4 -0
- package/auth/lib/auth.module.d.ts +4 -7
- package/auth/lib/menu.provider.d.ts +4 -0
- package/backend/lib/data/api/data-provider.d.ts +1 -0
- package/backend/lib/data/index.d.ts +0 -1
- package/backend/lib/data/local/local-data-provider.d.ts +1 -0
- package/esm2022/application-management/index.mjs +3 -1
- package/esm2022/application-management/lib/application-management.module.mjs +17 -47
- package/esm2022/application-management/lib/application-management.route.mjs +29 -0
- package/esm2022/application-management/lib/application-management.service.mjs +18 -2
- package/esm2022/application-management/lib/application-management.source.mjs +8 -0
- package/esm2022/application-management/lib/application-management.types.mjs +2 -0
- package/esm2022/application-management/lib/entities/property.entity.mjs +1 -2
- package/esm2022/application-management/lib/entity.loader.mjs +46 -0
- package/esm2022/application-management/lib/layouts/module-entity-detail-view/module-entity-detail-view.component.mjs +3 -3
- package/esm2022/application-management/lib/menu.provider.mjs +24 -0
- package/esm2022/auth/lib/account/app-chooser/app-chooser-slot.component.mjs +2 -2
- package/esm2022/auth/lib/account/profile/profile-slot.component.mjs +6 -3
- package/esm2022/auth/lib/auth.module.mjs +20 -14
- package/esm2022/auth/lib/login/password/password.component.mjs +2 -2
- package/esm2022/auth/lib/menu.provider.mjs +45 -0
- package/esm2022/backend/lib/backend.module.mjs +22 -26
- package/esm2022/backend/lib/data/api/data-provider.mjs +9 -1
- package/esm2022/backend/lib/data/index.mjs +1 -2
- package/esm2022/backend/lib/data/local/local-data-provider.mjs +11 -1
- package/esm2022/form-management/lib/form-management.module.mjs +32 -9
- package/esm2022/form-management/lib/menu.provider.mjs +29 -0
- package/esm2022/notification-management/index.mjs +3 -1
- package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-item/admin-notification-item.component.mjs +8 -16
- package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-panel/admin-notification-panel.component.mjs +31 -7
- package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-slot/admin-notification-slot.component.mjs +3 -3
- package/esm2022/notification-management/lib/entities/my-notification.mjs +243 -0
- package/esm2022/notification-management/lib/entities/notification-channel.entity.mjs +2 -3
- package/esm2022/notification-management/lib/entities/notification-log.entity.mjs +180 -0
- package/esm2022/notification-management/lib/entity.loader.mjs +41 -0
- package/esm2022/notification-management/lib/menu.provider.mjs +51 -0
- package/esm2022/notification-management/lib/notification-management-mock-data.mjs +2 -2
- package/esm2022/notification-management/lib/notification-management.module.mjs +34 -39
- package/esm2022/notification-management/lib/notification-management.type.mjs +1 -1
- package/esm2022/notification-management/lib/notification.service.mjs +1 -1
- package/esm2022/{language-management/acorex-modules-language-management.mjs → platform-management/acorex-modules-platform-management.mjs} +1 -1
- package/esm2022/platform-management/index.mjs +5 -0
- package/esm2022/platform-management/lib/comments/comment-management.service.mjs +18 -0
- package/esm2022/platform-management/lib/global-variables/entities/global-variable.entity.mjs +295 -0
- package/esm2022/platform-management/lib/global-variables/entity.loader.mjs +26 -0
- package/esm2022/platform-management/lib/global-variables/global-variables.service.mjs +16 -0
- package/esm2022/platform-management/lib/global-variables/global-variables.types.mjs +2 -0
- package/esm2022/platform-management/lib/global-variables/index.mjs +5 -0
- package/esm2022/platform-management/lib/languages/entities/language.entity.mjs +234 -0
- package/esm2022/platform-management/lib/languages/entity.loader.mjs +26 -0
- package/esm2022/platform-management/lib/languages/index.mjs +5 -0
- package/esm2022/platform-management/lib/languages/language-management.service.mjs +16 -0
- package/esm2022/platform-management/lib/languages/language.types.mjs +2 -0
- package/esm2022/platform-management/lib/menu.provider.mjs +46 -0
- package/esm2022/platform-management/lib/platform-management.module.mjs +82 -0
- package/esm2022/template-management/index.mjs +7 -3
- package/esm2022/template-management/lib/entities/category.entity.mjs +233 -0
- package/esm2022/template-management/lib/entities/index.mjs +4 -0
- package/esm2022/template-management/lib/entities/template-variable.entity.mjs +113 -110
- package/esm2022/template-management/lib/entities/text-template.entity.mjs +385 -0
- package/esm2022/template-management/lib/entity.loader.mjs +36 -0
- package/esm2022/template-management/lib/menu.provider.mjs +37 -0
- package/esm2022/template-management/lib/template-management.module.mjs +53 -37
- package/esm2022/template-management/lib/template-management.types.mjs +2 -0
- package/esm2022/template-management/lib/template.service.mjs +17 -0
- package/esm2022/template-management/lib/text-management.source.mjs +3 -0
- package/esm2022/template-management/lib/text-template-category.service.mjs +17 -0
- package/fesm2022/{acorex-modules-application-management-module-designer.component-CFLXuP2G.mjs → acorex-modules-application-management-module-designer.component-BCaCCEXO.mjs} +2 -2
- package/fesm2022/{acorex-modules-application-management-module-designer.component-CFLXuP2G.mjs.map → acorex-modules-application-management-module-designer.component-BCaCCEXO.mjs.map} +1 -1
- package/fesm2022/acorex-modules-application-management.mjs +140 -50
- package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-iGiPFEeb.mjs → acorex-modules-auth-acorex-modules-auth-B0aeYVeJ.mjs} +78 -24
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-B0aeYVeJ.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-app-chooser.component-BB3SIzCP.mjs → acorex-modules-auth-app-chooser.component-4b6b3ttW.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-app-chooser.component-BB3SIzCP.mjs.map → acorex-modules-auth-app-chooser.component-4b6b3ttW.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-ChEv9c5I.mjs → acorex-modules-auth-login.module-A7u1YYeo.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-ChEv9c5I.mjs.map → acorex-modules-auth-login.module-A7u1YYeo.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout-CZv3BD5c.mjs → acorex-modules-auth-master.layout--UllrmW0.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-master.layout-CZv3BD5c.mjs.map → acorex-modules-auth-master.layout--UllrmW0.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-CxZ1weks.mjs → acorex-modules-auth-password.component-BjqQ-qVo.mjs} +3 -3
- package/fesm2022/acorex-modules-auth-password.component-BjqQ-qVo.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-password.component-CPWiBXdG.mjs → acorex-modules-auth-password.component-Dv0VXzh_.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-CPWiBXdG.mjs.map → acorex-modules-auth-password.component-Dv0VXzh_.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-C7r2Jm6s.mjs → acorex-modules-auth-routes-C4eNPru3.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-C7r2Jm6s.mjs.map → acorex-modules-auth-routes-C4eNPru3.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-BgkJYe7T.mjs → acorex-modules-auth-two-factor.module-C6V_pb_Q.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-two-factor.module-BgkJYe7T.mjs.map → acorex-modules-auth-two-factor.module-C6V_pb_Q.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-backend.mjs +40 -232
- package/fesm2022/acorex-modules-backend.mjs.map +1 -1
- package/fesm2022/acorex-modules-form-management.mjs +57 -6
- package/fesm2022/acorex-modules-form-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +590 -64
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +752 -0
- package/fesm2022/acorex-modules-platform-management.mjs.map +1 -0
- package/fesm2022/acorex-modules-template-management.mjs +600 -194
- package/fesm2022/acorex-modules-template-management.mjs.map +1 -1
- package/form-management/lib/form-management.module.d.ts +2 -2
- package/form-management/lib/menu.provider.d.ts +4 -0
- package/notification-management/index.d.ts +2 -0
- package/notification-management/lib/admin-notification-slot/admin-notification-item/admin-notification-item.component.d.ts +0 -4
- package/notification-management/lib/admin-notification-slot/admin-notification-panel/admin-notification-panel.component.d.ts +7 -2
- package/{template-management/lib/entities/global-template.entity.d.ts → notification-management/lib/entities/my-notification.d.ts} +1 -1
- package/notification-management/lib/entities/notification-log.entity.d.ts +3 -0
- package/notification-management/lib/entity.loader.d.ts +9 -0
- package/notification-management/lib/menu.provider.d.ts +4 -0
- package/notification-management/lib/notification-management-mock-data.d.ts +2 -3
- package/notification-management/lib/notification-management.module.d.ts +1 -7
- package/notification-management/lib/notification-management.service.d.ts +2 -2
- package/notification-management/lib/notification-management.type.d.ts +1 -1
- package/notification-management/lib/notification.service.d.ts +3 -4
- package/package.json +6 -6
- package/platform-management/README.md +4 -0
- package/platform-management/index.d.ts +4 -0
- package/platform-management/lib/comments/comment-management.service.d.ts +10 -0
- package/platform-management/lib/global-variables/entities/global-variable.entity.d.ts +3 -0
- package/platform-management/lib/global-variables/entity.loader.d.ts +9 -0
- package/platform-management/lib/global-variables/global-variables.service.d.ts +10 -0
- package/platform-management/lib/global-variables/global-variables.types.d.ts +7 -0
- package/platform-management/lib/global-variables/index.d.ts +4 -0
- package/platform-management/lib/languages/entity.loader.d.ts +9 -0
- package/platform-management/lib/languages/index.d.ts +4 -0
- package/platform-management/lib/languages/language-management.service.d.ts +10 -0
- package/platform-management/lib/languages/language.types.d.ts +5 -0
- package/platform-management/lib/menu.provider.d.ts +4 -0
- package/platform-management/lib/platform-management.module.d.ts +6 -0
- package/template-management/index.d.ts +6 -2
- package/template-management/lib/entities/category.entity.d.ts +3 -0
- package/template-management/lib/entities/index.d.ts +3 -0
- package/template-management/lib/entities/template-variable.entity.d.ts +1 -1
- package/template-management/lib/entities/text-template.entity.d.ts +3 -0
- package/template-management/lib/entity.loader.d.ts +9 -0
- package/template-management/lib/menu.provider.d.ts +4 -0
- package/template-management/lib/template-management.module.d.ts +4 -10
- package/template-management/lib/template-management.types.d.ts +19 -0
- package/template-management/lib/template.service.d.ts +10 -0
- package/template-management/lib/text-management.source.d.ts +2 -0
- package/template-management/lib/text-template-category.service.d.ts +10 -0
- package/backend/lib/data/api/comment.mock.service.d.ts +0 -62
- package/backend/lib/data/api/notification.mock.service.d.ts +0 -34
- package/esm2022/backend/lib/data/api/comment.mock.service.mjs +0 -142
- package/esm2022/backend/lib/data/api/notification.mock.service.mjs +0 -71
- package/esm2022/language-management/index.mjs +0 -2
- package/esm2022/language-management/lib/entities/language.entity.mjs +0 -242
- package/esm2022/language-management/lib/language-management.module.mjs +0 -39
- package/esm2022/language-management/lib/notification-management.service.mjs +0 -23
- package/esm2022/template-management/lib/entities/global-template.entity.mjs +0 -298
- package/esm2022/template-management/lib/template-management-mock-data.mjs +0 -11
- package/esm2022/template-management/lib/template-management.service.mjs +0 -24
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-iGiPFEeb.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-password.component-CxZ1weks.mjs.map +0 -1
- package/fesm2022/acorex-modules-language-management-language.entity-CwD5FHGc.mjs +0 -266
- package/fesm2022/acorex-modules-language-management-language.entity-CwD5FHGc.mjs.map +0 -1
- package/fesm2022/acorex-modules-language-management.mjs +0 -46
- package/fesm2022/acorex-modules-language-management.mjs.map +0 -1
- package/language-management/README.md +0 -3
- package/language-management/index.d.ts +0 -1
- package/language-management/lib/language-management.module.d.ts +0 -12
- package/language-management/lib/notification-management.service.d.ts +0 -9
- package/template-management/lib/template-management-mock-data.d.ts +0 -7
- package/template-management/lib/template-management.service.d.ts +0 -9
- /package/{language-management/lib → platform-management/lib/languages}/entities/language.entity.d.ts +0 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-modules-auth-routes-
|
1
|
+
{"version":3,"file":"acorex-modules-auth-routes-C4eNPru3.mjs","sources":["../../../../libs/modules/auth/src/lib/forgot/routes.ts"],"sourcesContent":["import { Route } from '@angular/router';\n\nexport default [{\n path: 'forgot',\n loadComponent: () => {\n return import('./password/password.component').then(\n (c) => c.AXPForgetPasswordComponent\n );\n },\n}] as Route[];"],"names":[],"mappings":"AAEA,aAAe,CAAC;AACZ,QAAA,IAAI,EAAE,QAAQ;QACd,aAAa,EAAE,MAAK;AAChB,YAAA,OAAO,OAAO,uDAA+B,CAAC,CAAC,IAAI,CAC/C,CAAC,CAAC,KAAK,CAAC,CAAC,0BAA0B,CACtC;SACJ;AACJ,KAAA,CAAY;;;;"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
2
|
import { inject, NgModule } from '@angular/core';
|
3
3
|
import { RouterModule, ROUTES } from '@angular/router';
|
4
|
-
import { A as AXM_AUTH_CONFIG_TOKEN } from './acorex-modules-auth-acorex-modules-auth-
|
4
|
+
import { A as AXM_AUTH_CONFIG_TOKEN } from './acorex-modules-auth-acorex-modules-auth-B0aeYVeJ.mjs';
|
5
5
|
import '@acorex/platform/auth';
|
6
6
|
import '@acorex/platform/common';
|
7
7
|
import '@angular/common/http';
|
@@ -58,4 +58,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
58
58
|
}] });
|
59
59
|
|
60
60
|
export { AXPTwoFactorModule };
|
61
|
-
//# sourceMappingURL=acorex-modules-auth-two-factor.module-
|
61
|
+
//# sourceMappingURL=acorex-modules-auth-two-factor.module-C6V_pb_Q.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-modules-auth-two-factor.module-
|
1
|
+
{"version":3,"file":"acorex-modules-auth-two-factor.module-C6V_pb_Q.mjs","sources":["../../../../libs/modules/auth/src/lib/two-factor/two-factor.module.ts"],"sourcesContent":["import { inject, NgModule } from '@angular/core';\nimport { RouterModule, ROUTES, Routes } from '@angular/router';\nimport { AXM_AUTH_CONFIG_TOKEN } from '../auth.config';\n\nfunction routesFacory() {\n const val = inject(AXM_AUTH_CONFIG_TOKEN);\n let routes: Routes = [];\n routes = [\n {\n path: 'two-step',\n loadComponent: () =>\n import('./two-factor-code/two-factor-code.component').then(\n (c) => c.AXPAuthTwoFactorCodeComponent\n ),\n },\n ];\n return routes;\n}\n\n@NgModule({\n declarations: [],\n imports: [RouterModule],\n exports: [],\n providers: [\n {\n provide: ROUTES,\n multi: true,\n useFactory: routesFacory,\n },\n ],\n})\nexport class AXPTwoFactorModule { }\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,SAAS,YAAY,GAAA;AACnB,IAAA,MAAM,GAAG,GAAG,MAAM,CAAC,qBAAqB,CAAC;IACzC,IAAI,MAAM,GAAW,EAAE;AACvB,IAAA,MAAM,GAAG;AACP,QAAA;AACE,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,aAAa,EAAE,MACb,OAAO,8DAA6C,CAAC,CAAC,IAAI,CACxD,CAAC,CAAC,KAAK,CAAC,CAAC,6BAA6B,CACvC;AACJ,SAAA;KACF;AACD,IAAA,OAAO,MAAM;AACf;MAca,kBAAkB,CAAA;8GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAVnB,YAAY,CAAA,EAAA,CAAA,CAAA;AAUX,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EARlB,SAAA,EAAA;AACT,YAAA;AACE,gBAAA,OAAO,EAAE,MAAM;AACf,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,UAAU,EAAE,YAAY;AACzB,aAAA;AACF,SAAA,EAAA,OAAA,EAAA,CARS,YAAY,CAAA,EAAA,CAAA,CAAA;;2FAUX,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAZ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;oBAChB,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,MAAM;AACf,4BAAA,KAAK,EAAE,IAAI;AACX,4BAAA,UAAU,EAAE,YAAY;AACzB,yBAAA;AACF,qBAAA;AACF,iBAAA;;;;;"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { d as AXMAuthErrorHandler, g as AXMAuthModule, a as AXMAuthenticationTypes, e as AXMDefaultAuthConfigs, A as AXM_AUTH_CONFIG_TOKEN, h as AXPIdleService, f as configAuthModule } from './acorex-modules-auth-acorex-modules-auth-
|
1
|
+
export { d as AXMAuthErrorHandler, g as AXMAuthModule, a as AXMAuthenticationTypes, e as AXMDefaultAuthConfigs, A as AXM_AUTH_CONFIG_TOKEN, h as AXPIdleService, f as configAuthModule } from './acorex-modules-auth-acorex-modules-auth-B0aeYVeJ.mjs';
|
2
2
|
import '@acorex/platform/auth';
|
3
3
|
import '@acorex/platform/common';
|
4
4
|
import '@angular/common/http';
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import * as i2 from '@acorex/modules/auth';
|
2
1
|
import { AXM_AUTH_CONFIG_TOKEN, AXMAuthModule } from '@acorex/modules/auth';
|
3
|
-
import * as
|
2
|
+
import * as i2 from '@acorex/platform/auth';
|
4
3
|
import { AXPSessionService, AXP_TENANT_LOADER, AXP_APPLICATION_LOADER, AXP_PERMISSION_LOADER, AXP_FEATURE_LOADER, AXPAuthModule } from '@acorex/platform/auth';
|
5
|
-
import { AXP_ROOT_CONFIG_TOKEN,
|
4
|
+
import { AXP_ROOT_CONFIG_TOKEN, AXPDataProvider } from '@acorex/platform/common';
|
6
5
|
import * as i0 from '@angular/core';
|
7
6
|
import { inject, Injectable, Component, NgModule } from '@angular/core';
|
8
7
|
import * as i1$1 from '@angular/router';
|
@@ -13,8 +12,6 @@ import { map, BehaviorSubject, tap, filter, take, of, switchMap, delay, firstVal
|
|
13
12
|
import * as i1$3 from 'angular-oauth2-oidc';
|
14
13
|
import { OAuthService, OAuthModule } from 'angular-oauth2-oidc';
|
15
14
|
import { AXPModuleDesignerService } from '@acorex/modules/application-management';
|
16
|
-
import { AXMNotificationService } from '@acorex/modules/notification-management';
|
17
|
-
import { AXPCommentService } from '@acorex/platform/themes/shared';
|
18
15
|
import { AXPFileManagementService } from '@acorex/platform/widgets';
|
19
16
|
import { AXNetworkService, AXUploadStatus, AXDownloadStatus } from '@acorex/core/network';
|
20
17
|
import { AXPEntityDefinitionRegistryService } from '@acorex/platform/layout/entity';
|
@@ -519,6 +516,14 @@ class AXMBackendDataProvider {
|
|
519
516
|
formData.append('Title', title);
|
520
517
|
return firstValueFrom(this.http.post(url, formData));
|
521
518
|
}
|
519
|
+
// to update a uploaded file
|
520
|
+
updateFile(id, file, title, customUrl) {
|
521
|
+
const url = customUrl ? `${this.mainUrl}/${customUrl}` : `${this.mainUrl}/common/files?id=${id}`;
|
522
|
+
const formData = new FormData();
|
523
|
+
formData.append('File', file);
|
524
|
+
formData.append('Title', title);
|
525
|
+
return firstValueFrom(this.http.put(url, formData));
|
526
|
+
}
|
522
527
|
// Function to upload multiple files
|
523
528
|
uploadMultipleFiles(files, title) {
|
524
529
|
const uploadPromises = files.map((file) => this.uploadFile(file, title));
|
@@ -582,145 +587,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
582
587
|
}]
|
583
588
|
}], ctorParameters: () => [{ type: i1$1.Router }, { type: i1$1.ActivatedRoute }] });
|
584
589
|
|
585
|
-
class AXMMockCommentService {
|
586
|
-
constructor() {
|
587
|
-
this.storageService = inject(AXPEntityStorageService);
|
588
|
-
this.name = 'comments';
|
589
|
-
}
|
590
|
-
async get(params) {
|
591
|
-
const data = (await this.storageService.getAll(this.name));
|
592
|
-
return Promise.resolve({ totalCount: data.length, items: data });
|
593
|
-
}
|
594
|
-
async post(payload) {
|
595
|
-
const extraPayload = {
|
596
|
-
id: AXPDataGenerator.uuid(), // Generate a unique ID for the comment
|
597
|
-
memberId: AXPDataGenerator.uuid(), // Simulate member ID (e.g., the user posting)
|
598
|
-
memberType: AXPDataGenerator.pick(['user', 'admin']), // Simulate the member type (user/admin)
|
599
|
-
roomId: AXPDataGenerator.uuid(), // Generate a random room ID
|
600
|
-
messageVisibles: [], // Empty array for visibility, can be customized
|
601
|
-
messageStatuses: [], // Empty array for statuses, can be customized
|
602
|
-
messageHistories: [], // Empty array for history, can be customized
|
603
|
-
replies: [], // Initially no replies
|
604
|
-
isArchived: false, // Default to not archived
|
605
|
-
isLiked: false, // Default to not liked
|
606
|
-
reactionsCount: 0, // Default to 0 reactions
|
607
|
-
repliesCount: 0, // Default to 0 replies
|
608
|
-
user: {
|
609
|
-
userName: AXPDataGenerator.firstName().toLowerCase(),
|
610
|
-
firstName: AXPDataGenerator.firstName(),
|
611
|
-
lastName: AXPDataGenerator.lastName(),
|
612
|
-
picture: null,
|
613
|
-
id: AXPDataGenerator.uuid(),
|
614
|
-
},
|
615
|
-
};
|
616
|
-
const fullPayload = { ...payload, ...extraPayload };
|
617
|
-
if (payload.replyId) {
|
618
|
-
const message = await this.storageService.getOne(this.name, payload.replyId);
|
619
|
-
await this.storageService.updateOne(this.name, payload.replyId, {
|
620
|
-
...message,
|
621
|
-
replies: [...message.replies, fullPayload],
|
622
|
-
});
|
623
|
-
return Promise.resolve('done');
|
624
|
-
}
|
625
|
-
else {
|
626
|
-
await this.storageService.insertOne(this.name, fullPayload);
|
627
|
-
return Promise.resolve('done');
|
628
|
-
}
|
629
|
-
}
|
630
|
-
async put(payload) {
|
631
|
-
//const message = await this.storageService.getOne(this.name, payload.id);
|
632
|
-
await this.storageService.updateOne(this.name, payload.id, { content: payload.content });
|
633
|
-
return Promise.resolve('done');
|
634
|
-
}
|
635
|
-
async delete(payload) {
|
636
|
-
await this.storageService.deleteOne(this.name, payload.id);
|
637
|
-
return Promise.resolve();
|
638
|
-
}
|
639
|
-
async like(payload) {
|
640
|
-
const message = await this.storageService.getOne(this.name, payload.messageId);
|
641
|
-
await this.storageService.updateOne(this.name, payload.messageId, {
|
642
|
-
...message,
|
643
|
-
isLiked: !message.isLiked,
|
644
|
-
reactionsCount: message.isLiked ? --message.reactionsCount : ++message.reactionsCount,
|
645
|
-
});
|
646
|
-
return Promise.resolve('done');
|
647
|
-
}
|
648
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMMockCommentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
649
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMMockCommentService, providedIn: 'root' }); }
|
650
|
-
}
|
651
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMMockCommentService, decorators: [{
|
652
|
-
type: Injectable,
|
653
|
-
args: [{
|
654
|
-
providedIn: 'root',
|
655
|
-
}]
|
656
|
-
}] });
|
657
|
-
const COMMENTS = Array.from({ length: 10 }).map(() => {
|
658
|
-
const contentSource = [
|
659
|
-
'This is a comment.',
|
660
|
-
'I really like this!',
|
661
|
-
'Could you clarify your point?',
|
662
|
-
'Great job on this!',
|
663
|
-
'I have some suggestions.',
|
664
|
-
'This is quite insightful.',
|
665
|
-
'Thanks for sharing!',
|
666
|
-
'I disagree with this perspective.',
|
667
|
-
'Interesting take!',
|
668
|
-
'What do you think about this?',
|
669
|
-
];
|
670
|
-
const repliesCount = AXPDataGenerator.number(0, 3);
|
671
|
-
return {
|
672
|
-
id: AXPDataGenerator.uuid(),
|
673
|
-
entityId: 'test', // AXPDataGenerator.pick(ENTITIES).id,//need to fix
|
674
|
-
content: `<p>${AXPDataGenerator.pick(contentSource)}</p>`,
|
675
|
-
contentType: AXPDataGenerator.pick(['text', 'image', 'video']),
|
676
|
-
memberId: AXPDataGenerator.uuid(),
|
677
|
-
memberType: AXPDataGenerator.pick(['user', 'admin']),
|
678
|
-
roomId: AXPDataGenerator.uuid(),
|
679
|
-
isPrivate: AXPDataGenerator.boolean(),
|
680
|
-
replyId: null,
|
681
|
-
messageVisibles: [],
|
682
|
-
messageStatuses: [],
|
683
|
-
messageHistories: [],
|
684
|
-
replies: Array.from({ length: repliesCount }).map(() => {
|
685
|
-
return {
|
686
|
-
id: AXPDataGenerator.uuid(),
|
687
|
-
content: `<p>${AXPDataGenerator.pick(contentSource)}</p>`,
|
688
|
-
contentType: AXPDataGenerator.pick(['text']),
|
689
|
-
memberId: AXPDataGenerator.uuid(),
|
690
|
-
memberType: AXPDataGenerator.pick(['user', 'admin']),
|
691
|
-
roomId: AXPDataGenerator.uuid(),
|
692
|
-
isPrivate: AXPDataGenerator.boolean(),
|
693
|
-
replyId: AXPDataGenerator.uuid(),
|
694
|
-
messageVisibles: [],
|
695
|
-
messageStatuses: [],
|
696
|
-
messageHistories: [],
|
697
|
-
isArchived: AXPDataGenerator.boolean(),
|
698
|
-
isLiked: AXPDataGenerator.boolean(),
|
699
|
-
reactionsCount: AXPDataGenerator.number(0, 10),
|
700
|
-
repliesCount: 0,
|
701
|
-
user: {
|
702
|
-
userName: AXPDataGenerator.firstName().toLowerCase(),
|
703
|
-
firstName: AXPDataGenerator.firstName(),
|
704
|
-
lastName: AXPDataGenerator.lastName(),
|
705
|
-
picture: null,
|
706
|
-
id: AXPDataGenerator.uuid(),
|
707
|
-
},
|
708
|
-
};
|
709
|
-
}),
|
710
|
-
isArchived: AXPDataGenerator.boolean(),
|
711
|
-
isLiked: AXPDataGenerator.boolean(),
|
712
|
-
reactionsCount: AXPDataGenerator.number(0, 100),
|
713
|
-
repliesCount: repliesCount,
|
714
|
-
user: {
|
715
|
-
userName: AXPDataGenerator.firstName().toLowerCase(),
|
716
|
-
firstName: AXPDataGenerator.firstName(),
|
717
|
-
lastName: AXPDataGenerator.lastName(),
|
718
|
-
picture: null,
|
719
|
-
id: AXPDataGenerator.uuid(),
|
720
|
-
},
|
721
|
-
};
|
722
|
-
});
|
723
|
-
|
724
590
|
class AXMCommentService {
|
725
591
|
constructor() {
|
726
592
|
this.configs = inject(AXP_ROOT_CONFIG_TOKEN);
|
@@ -997,6 +863,16 @@ class AXMLocalDataProvider {
|
|
997
863
|
});
|
998
864
|
});
|
999
865
|
}
|
866
|
+
updateFile(id, file, title) {
|
867
|
+
return new Promise((resolve) => {
|
868
|
+
// Mock file ID generation
|
869
|
+
const fileId = `mock-file-id-${Math.random().toString(36).substr(2, 9)}`;
|
870
|
+
const fileRecord = { id: fileId, title, file };
|
871
|
+
this.storageService.insertOrupdateOne('files', fileRecord).then(() => {
|
872
|
+
resolve(fileId);
|
873
|
+
});
|
874
|
+
});
|
875
|
+
}
|
1000
876
|
// Mock function to upload multiple files
|
1001
877
|
uploadMultipleFiles(files, title) {
|
1002
878
|
const uploadPromises = files.map((file) => this.uploadFile(file, title));
|
@@ -1028,81 +904,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
1028
904
|
}]
|
1029
905
|
}], ctorParameters: () => [{ type: i1$2.AXPStorageMockService }] });
|
1030
906
|
|
1031
|
-
class AXMMockNotificationService {
|
1032
|
-
constructor() {
|
1033
|
-
this.storageService = inject(AXPEntityStorageService);
|
1034
|
-
this.name = 'notification';
|
1035
|
-
}
|
1036
|
-
async getList() {
|
1037
|
-
await this.storageService.initial(this.name, NOTIFICATIONS);
|
1038
|
-
const notificationList = (await this.storageService.getAll(this.name));
|
1039
|
-
return { total: notificationList.length, items: notificationList };
|
1040
|
-
}
|
1041
|
-
async markAsRead(payload) {
|
1042
|
-
const entityName = 'notifications';
|
1043
|
-
let notifications = [];
|
1044
|
-
if (payload && payload.id && payload.id.length > 0) {
|
1045
|
-
notifications = await Promise.all(payload.id.map((id) => this.storageService.getOne(entityName, id)));
|
1046
|
-
}
|
1047
|
-
else {
|
1048
|
-
notifications = await this.storageService.getAll(entityName);
|
1049
|
-
}
|
1050
|
-
await Promise.all(notifications.map((notification) => {
|
1051
|
-
if (notification.readAt === null) {
|
1052
|
-
return this.storageService.updateOne(entityName, notification.id, { readAt: new Date() });
|
1053
|
-
}
|
1054
|
-
return Promise.resolve();
|
1055
|
-
}));
|
1056
|
-
}
|
1057
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMMockNotificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1058
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMMockNotificationService, providedIn: 'root' }); }
|
1059
|
-
}
|
1060
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMMockNotificationService, decorators: [{
|
1061
|
-
type: Injectable,
|
1062
|
-
args: [{
|
1063
|
-
providedIn: 'root',
|
1064
|
-
}]
|
1065
|
-
}] });
|
1066
|
-
const CHANNELS = ['InApp', 'Email', 'SMS'];
|
1067
|
-
const TITLES = ['Buy Me!', 'Black Friday', 'New Message'];
|
1068
|
-
const BODIES = ['Buy New Glass From Shop', 'New Offers For Black Friday!', 'Saeed Send New File Message'];
|
1069
|
-
const CATEGORIES = ['Inbox', 'Archive', 'Role'];
|
1070
|
-
const TYPES = ['File', 'Person', 'Notification'];
|
1071
|
-
const PRORITIES = ['Warning', 'Danger', 'Notice'];
|
1072
|
-
const NOTIFICATIONS = Array.from({ length: 5 }).map((_, i) => {
|
1073
|
-
return {
|
1074
|
-
id: AXPDataGenerator.uuid(),
|
1075
|
-
title: AXPDataGenerator.pick(TITLES),
|
1076
|
-
body: AXPDataGenerator.pick(BODIES),
|
1077
|
-
channel: AXPDataGenerator.pick(CHANNELS),
|
1078
|
-
data: {},
|
1079
|
-
RelativeType: 'demo.sample',
|
1080
|
-
RelativeId: '535c8c8a-5e64-4079-929d-752394669b51',
|
1081
|
-
user: {
|
1082
|
-
id: AXPDataGenerator.uuid(),
|
1083
|
-
name: AXPDataGenerator.firstName() + ' ' + AXPDataGenerator.lastName(),
|
1084
|
-
image: 'https://i.pravatar.cc/300',
|
1085
|
-
},
|
1086
|
-
template: {
|
1087
|
-
category: AXPDataGenerator.pick(CATEGORIES),
|
1088
|
-
prority: AXPDataGenerator.pick(PRORITIES),
|
1089
|
-
type: AXPDataGenerator.pick(TYPES),
|
1090
|
-
icon: 'fa-image',
|
1091
|
-
isPinned: AXPDataGenerator.boolean(),
|
1092
|
-
},
|
1093
|
-
readAt: AXPDataGenerator.pick([AXPDataGenerator.date(), null]),
|
1094
|
-
createAt: AXPDataGenerator.date(),
|
1095
|
-
entityName: 'notifications',
|
1096
|
-
};
|
1097
|
-
});
|
1098
|
-
|
1099
907
|
function routesFactory() {
|
1100
908
|
const routes = [{ path: 'auth/signincallback', component: SignincallbackComponent }];
|
1101
909
|
return routes;
|
1102
910
|
}
|
1103
911
|
class AXMBackendModule {
|
1104
912
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMBackendModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1105
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMBackendModule, imports: [i1$3.OAuthModule,
|
913
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMBackendModule, imports: [i1$3.OAuthModule, AXMAuthModule, i2.AXPAuthModule] }); }
|
1106
914
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMBackendModule, providers: [
|
1107
915
|
{
|
1108
916
|
provide: AXPDataProvider,
|
@@ -1128,14 +936,14 @@ class AXMBackendModule {
|
|
1128
936
|
provide: AXPFileManagementService,
|
1129
937
|
useClass: AXMFileManagementService,
|
1130
938
|
},
|
1131
|
-
{
|
1132
|
-
|
1133
|
-
|
1134
|
-
},
|
1135
|
-
{
|
1136
|
-
|
1137
|
-
|
1138
|
-
},
|
939
|
+
// {
|
940
|
+
// provide: AXPCommentService,
|
941
|
+
// useClass: AXMCommentService,
|
942
|
+
// },
|
943
|
+
// {
|
944
|
+
// provide: AXMNotificationService,
|
945
|
+
// useClass: AXMMockNotificationService,
|
946
|
+
// },
|
1139
947
|
{
|
1140
948
|
provide: AXPModuleDesignerService,
|
1141
949
|
useClass: AXMModuleDesignerService,
|
@@ -1146,7 +954,7 @@ class AXMBackendModule {
|
|
1146
954
|
useFactory: routesFactory,
|
1147
955
|
},
|
1148
956
|
], imports: [OAuthModule.forRoot(),
|
1149
|
-
AXMAuthModule
|
957
|
+
AXMAuthModule,
|
1150
958
|
AXPAuthModule.forRoot({
|
1151
959
|
strategies: [AXMOidcStrategy],
|
1152
960
|
})] }); }
|
@@ -1156,7 +964,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
1156
964
|
args: [{
|
1157
965
|
imports: [
|
1158
966
|
OAuthModule.forRoot(),
|
1159
|
-
AXMAuthModule
|
967
|
+
AXMAuthModule,
|
1160
968
|
AXPAuthModule.forRoot({
|
1161
969
|
strategies: [AXMOidcStrategy],
|
1162
970
|
}),
|
@@ -1188,14 +996,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
1188
996
|
provide: AXPFileManagementService,
|
1189
997
|
useClass: AXMFileManagementService,
|
1190
998
|
},
|
1191
|
-
{
|
1192
|
-
|
1193
|
-
|
1194
|
-
},
|
1195
|
-
{
|
1196
|
-
|
1197
|
-
|
1198
|
-
},
|
999
|
+
// {
|
1000
|
+
// provide: AXPCommentService,
|
1001
|
+
// useClass: AXMCommentService,
|
1002
|
+
// },
|
1003
|
+
// {
|
1004
|
+
// provide: AXMNotificationService,
|
1005
|
+
// useClass: AXMMockNotificationService,
|
1006
|
+
// },
|
1199
1007
|
{
|
1200
1008
|
provide: AXPModuleDesignerService,
|
1201
1009
|
useClass: AXMModuleDesignerService,
|
@@ -1213,5 +1021,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
1213
1021
|
* Generated bundle index. Do not edit.
|
1214
1022
|
*/
|
1215
1023
|
|
1216
|
-
export { AXMBackendDataProvider, AXMBackendModule, AXMCommentService, AXMConfigurationService, AXMFileManagementService, AXMLocalDataProvider,
|
1024
|
+
export { AXMBackendDataProvider, AXMBackendModule, AXMCommentService, AXMConfigurationService, AXMFileManagementService, AXMLocalDataProvider, AXMModuleDesignerService, AXMOidcApplicationLoader, AXMOidcFeatureLoader, AXMOidcPermissionLoader, AXMOidcStrategy, AXMOidcTenantLoader };
|
1217
1025
|
//# sourceMappingURL=acorex-modules-backend.mjs.map
|