@acorex/modules 18.1.3 → 18.1.5
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/backend/lib/data/api/comment.mock.service.d.ts +62 -0
- package/backend/lib/data/api/notification.mock.service.d.ts +34 -0
- package/backend/lib/data/index.d.ts +1 -0
- package/esm2022/application-management/lib/application-management.service.mjs +3 -3
- package/esm2022/application-management/lib/module-designer/module-designer.component.mjs +1 -1
- package/esm2022/auth/lib/account/profile/profile-slot.component.mjs +3 -3
- package/esm2022/backend/lib/backend.module.mjs +11 -1
- package/esm2022/backend/lib/data/api/comment.mock.service.mjs +142 -0
- package/esm2022/backend/lib/data/api/notification.mock.service.mjs +71 -0
- package/esm2022/backend/lib/data/index.mjs +2 -1
- package/esm2022/form-management/lib/form-management.module.mjs +5 -4
- package/esm2022/language-management/acorex-modules-language-management.mjs +5 -0
- package/esm2022/language-management/index.mjs +2 -0
- package/esm2022/language-management/lib/entities/language.entity.mjs +242 -0
- package/esm2022/language-management/lib/language-management.module.mjs +39 -0
- package/esm2022/language-management/lib/notification-management.service.mjs +23 -0
- package/esm2022/notification-management/acorex-modules-notification-management.mjs +5 -0
- package/esm2022/notification-management/index.mjs +7 -0
- package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-item/admin-notification-item.component.mjs +47 -0
- package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-panel/admin-notification-panel.component.mjs +131 -0
- package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-slot/admin-notification-slot.component.mjs +36 -0
- package/esm2022/notification-management/lib/entities/notification-channel.entity.mjs +345 -0
- package/esm2022/notification-management/lib/entities/notification-template.entity.mjs +298 -0
- package/esm2022/notification-management/lib/entities/notification.entity.mjs +207 -0
- package/esm2022/notification-management/lib/notification-management-mock-data.mjs +55 -0
- package/esm2022/notification-management/lib/notification-management.module.mjs +66 -0
- package/esm2022/notification-management/lib/notification-management.service.mjs +39 -0
- package/esm2022/notification-management/lib/notification-management.type.mjs +2 -0
- package/esm2022/notification-management/lib/notification.service.mjs +3 -0
- package/esm2022/template-management/acorex-modules-template-management.mjs +5 -0
- package/esm2022/template-management/index.mjs +4 -0
- package/esm2022/template-management/lib/entities/global-template.entity.mjs +298 -0
- package/esm2022/template-management/lib/entities/template-variable.entity.mjs +304 -0
- package/esm2022/template-management/lib/template-management-mock-data.mjs +11 -0
- package/esm2022/template-management/lib/template-management.module.mjs +45 -0
- package/esm2022/template-management/lib/template-management.service.mjs +24 -0
- package/fesm2022/{acorex-modules-application-management-module-designer.component-C-lY0Apl.mjs → acorex-modules-application-management-module-designer.component-CFLXuP2G.mjs} +2 -2
- package/fesm2022/{acorex-modules-application-management-module-designer.component-C-lY0Apl.mjs.map → acorex-modules-application-management-module-designer.component-CFLXuP2G.mjs.map} +1 -1
- package/fesm2022/acorex-modules-application-management.mjs +3 -3
- package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-4OzzidjS.mjs → acorex-modules-auth-acorex-modules-auth-iGiPFEeb.mjs} +10 -10
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-iGiPFEeb.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-app-chooser.component-CHTEeWgx.mjs → acorex-modules-auth-app-chooser.component-BB3SIzCP.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-app-chooser.component-CHTEeWgx.mjs.map → acorex-modules-auth-app-chooser.component-BB3SIzCP.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-blank.layout-Bq822Iz4.mjs.map +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-DMit4yw0.mjs → acorex-modules-auth-login.module-ChEv9c5I.mjs} +4 -4
- package/fesm2022/acorex-modules-auth-login.module-ChEv9c5I.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-master.layout-BCYIjTB0.mjs → acorex-modules-auth-master.layout-CZv3BD5c.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-master.layout-BCYIjTB0.mjs.map → acorex-modules-auth-master.layout-CZv3BD5c.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-WA-CA0Ln.mjs → acorex-modules-auth-password.component-CPWiBXdG.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-WA-CA0Ln.mjs.map → acorex-modules-auth-password.component-CPWiBXdG.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-D16ms36y.mjs → acorex-modules-auth-password.component-CxZ1weks.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-D16ms36y.mjs.map → acorex-modules-auth-password.component-CxZ1weks.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-C3ye31RS.mjs → acorex-modules-auth-routes-C7r2Jm6s.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-C3ye31RS.mjs.map → acorex-modules-auth-routes-C7r2Jm6s.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-CHr5_kh7.mjs.map +1 -1
- package/fesm2022/acorex-modules-auth-two-factor-code.component-B_7l39pX.mjs.map +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-CkZCBo0B.mjs → acorex-modules-auth-two-factor.module-BgkJYe7T.mjs} +2 -2
- package/fesm2022/acorex-modules-auth-two-factor.module-BgkJYe7T.mjs.map +1 -0
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-backend.mjs +218 -2
- package/fesm2022/acorex-modules-backend.mjs.map +1 -1
- package/fesm2022/acorex-modules-form-management-designer.page-SoPH2V7i.mjs.map +1 -1
- package/fesm2022/acorex-modules-form-management.mjs +4 -3
- package/fesm2022/acorex-modules-form-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-language-management-language.entity-CwD5FHGc.mjs +266 -0
- package/fesm2022/acorex-modules-language-management-language.entity-CwD5FHGc.mjs.map +1 -0
- package/fesm2022/acorex-modules-language-management.mjs +46 -0
- package/fesm2022/acorex-modules-language-management.mjs.map +1 -0
- package/fesm2022/acorex-modules-notification-management.mjs +1203 -0
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -0
- package/fesm2022/acorex-modules-template-management.mjs +690 -0
- package/fesm2022/acorex-modules-template-management.mjs.map +1 -0
- package/form-management/lib/form-management.module.d.ts +2 -1
- package/language-management/README.md +3 -0
- package/language-management/index.d.ts +1 -0
- package/language-management/lib/entities/language.entity.d.ts +3 -0
- package/language-management/lib/language-management.module.d.ts +12 -0
- package/language-management/lib/notification-management.service.d.ts +9 -0
- package/notification-management/README.md +3 -0
- package/notification-management/index.d.ts +6 -0
- package/notification-management/lib/admin-notification-slot/admin-notification-item/admin-notification-item.component.d.ts +14 -0
- package/notification-management/lib/admin-notification-slot/admin-notification-panel/admin-notification-panel.component.d.ts +30 -0
- package/notification-management/lib/admin-notification-slot/admin-notification-slot/admin-notification-slot.component.d.ts +7 -0
- package/notification-management/lib/entities/notification-channel.entity.d.ts +3 -0
- package/notification-management/lib/entities/notification-template.entity.d.ts +3 -0
- package/notification-management/lib/entities/notification.entity.d.ts +3 -0
- package/notification-management/lib/notification-management-mock-data.d.ts +41 -0
- package/notification-management/lib/notification-management.module.d.ts +13 -0
- package/notification-management/lib/notification-management.service.d.ts +15 -0
- package/notification-management/lib/notification-management.type.d.ts +42 -0
- package/notification-management/lib/notification.service.d.ts +7 -0
- package/package.json +23 -11
- package/template-management/README.md +3 -0
- package/template-management/index.d.ts +3 -0
- package/template-management/lib/entities/global-template.entity.d.ts +3 -0
- package/template-management/lib/entities/template-variable.entity.d.ts +3 -0
- package/template-management/lib/template-management-mock-data.d.ts +7 -0
- package/template-management/lib/template-management.module.d.ts +12 -0
- package/template-management/lib/template-management.service.d.ts +9 -0
- package/esm2022/notification/acorex-modules-notification.mjs +0 -5
- package/esm2022/notification/index.mjs +0 -4
- package/esm2022/notification/lib/notification.module.mjs +0 -16
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-4OzzidjS.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-login.module-DMit4yw0.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-two-factor.module-CkZCBo0B.mjs.map +0 -1
- package/fesm2022/acorex-modules-notification.mjs +0 -26
- package/fesm2022/acorex-modules-notification.mjs.map +0 -1
- package/notification/README.md +0 -4
- package/notification/index.d.ts +0 -1
- package/notification/lib/notification.module.d.ts +0 -6
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-modules-auth-two-factor-code.component-B_7l39pX.mjs","sources":["../../../../libs/modules/auth/src/lib/two-factor/two-factor-code/two-factor-code.component.ts","../../../../libs/modules/auth/src/lib/two-factor/two-factor-code/two-factor-code.component.html"],"sourcesContent":["import { Component, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';\n\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXPasswordBoxModule } from '@acorex/components/password-box';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\n\n\n@Component({\n selector: 'axp-auth-two-factor-code',\n templateUrl: './two-factor-code.component.html',\n imports: [\n CommonModule,\n AXFormModule,\n AXButtonModule,\n AXDecoratorModule,\n AXFormModule,\n AXTextBoxModule,\n AXLabelModule,\n AXPasswordBoxModule,\n AXTranslationModule,\n ],\n encapsulation: ViewEncapsulation.None,\n standalone: true\n})\nexport class AXPAuthTwoFactorCodeComponent implements OnInit, OnDestroy {\n ngOnInit(): void { }\n\n ngOnDestroy(): void { }\n}\n","<ng-container *translate=\"let t\">\n <div class=\"ax-text-center ax-mb-8\">\n <h1 class=\"ax-font-bold ax-text-xl ax-mb-2\">\n {{ t('auth.twofactor.title') | async }}\n </h1>\n <p class=\"ax-text-base ax-text-neutral-600 ax-mb-4\">\n {{ t('auth.twofactor.hint') | async }}\n </p>\n <p class=\"ax-text-base ax-font-medium\">**** *** 3320</p>\n </div>\n <div class=\"ax-w-80 lg:ax-w-96\">\n <ax-form>\n <div class=\"ax-flex ax-flex-col ax-gap-6\">\n <ax-form-field>\n <ax-label class=\"ax-text-start\">{{ t('auth.twofactor.textBoxHint') | async }}</ax-label>\n <ax-password-box></ax-password-box>\n </ax-form-field>\n <ax-button class=\"ax-w-full\" [text]=\"t('common.submit') | async\" color=\"primary\"> </ax-button>\n </div>\n </ax-form>\n </div>\n</ng-container>"],"names":["i3","i4","i6"],"mappings":";;;;;;;;;;;;;;;;;MA6Ba,6BAA6B,CAAA;AACxC,IAAA,QAAQ
|
1
|
+
{"version":3,"file":"acorex-modules-auth-two-factor-code.component-B_7l39pX.mjs","sources":["../../../../libs/modules/auth/src/lib/two-factor/two-factor-code/two-factor-code.component.ts","../../../../libs/modules/auth/src/lib/two-factor/two-factor-code/two-factor-code.component.html"],"sourcesContent":["import { Component, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';\n\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXPasswordBoxModule } from '@acorex/components/password-box';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\n\n\n@Component({\n selector: 'axp-auth-two-factor-code',\n templateUrl: './two-factor-code.component.html',\n imports: [\n CommonModule,\n AXFormModule,\n AXButtonModule,\n AXDecoratorModule,\n AXFormModule,\n AXTextBoxModule,\n AXLabelModule,\n AXPasswordBoxModule,\n AXTranslationModule,\n ],\n encapsulation: ViewEncapsulation.None,\n standalone: true\n})\nexport class AXPAuthTwoFactorCodeComponent implements OnInit, OnDestroy {\n ngOnInit(): void { }\n\n ngOnDestroy(): void { }\n}\n","<ng-container *translate=\"let t\">\n <div class=\"ax-text-center ax-mb-8\">\n <h1 class=\"ax-font-bold ax-text-xl ax-mb-2\">\n {{ t('auth.twofactor.title') | async }}\n </h1>\n <p class=\"ax-text-base ax-text-neutral-600 ax-mb-4\">\n {{ t('auth.twofactor.hint') | async }}\n </p>\n <p class=\"ax-text-base ax-font-medium\">**** *** 3320</p>\n </div>\n <div class=\"ax-w-80 lg:ax-w-96\">\n <ax-form>\n <div class=\"ax-flex ax-flex-col ax-gap-6\">\n <ax-form-field>\n <ax-label class=\"ax-text-start\">{{ t('auth.twofactor.textBoxHint') | async }}</ax-label>\n <ax-password-box></ax-password-box>\n </ax-form-field>\n <ax-button class=\"ax-w-full\" [text]=\"t('common.submit') | async\" color=\"primary\"> </ax-button>\n </div>\n </ax-form>\n </div>\n</ng-container>"],"names":["i3","i4","i6"],"mappings":";;;;;;;;;;;;;;;;;MA6Ba,6BAA6B,CAAA;AACxC,IAAA,QAAQ;AAER,IAAA,WAAW;8GAHA,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA7B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,6BAA6B,oFC7B1C,m1BAqBe,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDLX,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACZ,YAAY,EACZ,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,WAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,WAAA,EAAA,cAAA,EAAA,UAAA,CAAA,EAAA,OAAA,EAAA,CAAA,YAAA,EAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,cAAc,EACd,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,IAAA,CAAA,iBAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,MAAA,EAAA,UAAA,EAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,YAAA,EAAA,UAAA,EAAA,MAAA,EAAA,cAAA,EAAA,aAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,SAAA,EAAA,SAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,YAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,oBAAA,EAAA,mBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAiB,8BAEjB,eAAe,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACf,aAAa,EACb,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,KAAA,CAAA,EAAA,OAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,mBAAmB,+ZACnB,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,qBAAA,EAAA,QAAA,EAAA,aAAA,EAAA,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAKV,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAjBzC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,0BAA0B,EAE3B,OAAA,EAAA;wBACP,YAAY;wBACZ,YAAY;wBACZ,cAAc;wBACd,iBAAiB;wBACjB,YAAY;wBACZ,eAAe;wBACf,aAAa;wBACb,mBAAmB;wBACnB,mBAAmB;AACpB,qBAAA,EAAA,aAAA,EACc,iBAAiB,CAAC,IAAI,EAAA,UAAA,EACzB,IAAI,EAAA,QAAA,EAAA,m1BAAA,EAAA;;;;;"}
|
@@ -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-iGiPFEeb.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-BgkJYe7T.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"acorex-modules-auth-two-factor.module-BgkJYe7T.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-iGiPFEeb.mjs';
|
2
2
|
import '@acorex/platform/auth';
|
3
3
|
import '@acorex/platform/common';
|
4
4
|
import '@angular/common/http';
|
@@ -2,7 +2,7 @@ import * as i2 from '@acorex/modules/auth';
|
|
2
2
|
import { AXM_AUTH_CONFIG_TOKEN, AXMAuthModule } from '@acorex/modules/auth';
|
3
3
|
import * as i3 from '@acorex/platform/auth';
|
4
4
|
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, AXPDataProvider } from '@acorex/platform/common';
|
5
|
+
import { AXP_ROOT_CONFIG_TOKEN, AXPEntityStorageService, AXPDataGenerator, AXPDataProvider } from '@acorex/platform/common';
|
6
6
|
import * as i0 from '@angular/core';
|
7
7
|
import { inject, Injectable, Component, NgModule } from '@angular/core';
|
8
8
|
import * as i1$1 from '@angular/router';
|
@@ -13,6 +13,7 @@ import { map, BehaviorSubject, tap, filter, take, of, switchMap, delay, firstVal
|
|
13
13
|
import * as i1$3 from 'angular-oauth2-oidc';
|
14
14
|
import { OAuthService, OAuthModule } from 'angular-oauth2-oidc';
|
15
15
|
import { AXPModuleDesignerService } from '@acorex/modules/application-management';
|
16
|
+
import { AXMNotificationService } from '@acorex/modules/notification-management';
|
16
17
|
import { AXPCommentService } from '@acorex/platform/themes/shared';
|
17
18
|
import { AXPFileManagementService } from '@acorex/platform/widgets';
|
18
19
|
import { AXNetworkService, AXUploadStatus, AXDownloadStatus } from '@acorex/core/network';
|
@@ -581,6 +582,145 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
581
582
|
}]
|
582
583
|
}], ctorParameters: () => [{ type: i1$1.Router }, { type: i1$1.ActivatedRoute }] });
|
583
584
|
|
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
|
+
|
584
724
|
class AXMCommentService {
|
585
725
|
constructor() {
|
586
726
|
this.configs = inject(AXP_ROOT_CONFIG_TOKEN);
|
@@ -888,6 +1028,74 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
888
1028
|
}]
|
889
1029
|
}], ctorParameters: () => [{ type: i1$2.AXPStorageMockService }] });
|
890
1030
|
|
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
|
+
|
891
1099
|
function routesFactory() {
|
892
1100
|
const routes = [{ path: 'auth/signincallback', component: SignincallbackComponent }];
|
893
1101
|
return routes;
|
@@ -924,6 +1132,10 @@ class AXMBackendModule {
|
|
924
1132
|
provide: AXPCommentService,
|
925
1133
|
useClass: AXMCommentService,
|
926
1134
|
},
|
1135
|
+
{
|
1136
|
+
provide: AXMNotificationService,
|
1137
|
+
useClass: AXMMockNotificationService,
|
1138
|
+
},
|
927
1139
|
{
|
928
1140
|
provide: AXPModuleDesignerService,
|
929
1141
|
useClass: AXMModuleDesignerService,
|
@@ -980,6 +1192,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
980
1192
|
provide: AXPCommentService,
|
981
1193
|
useClass: AXMCommentService,
|
982
1194
|
},
|
1195
|
+
{
|
1196
|
+
provide: AXMNotificationService,
|
1197
|
+
useClass: AXMMockNotificationService,
|
1198
|
+
},
|
983
1199
|
{
|
984
1200
|
provide: AXPModuleDesignerService,
|
985
1201
|
useClass: AXMModuleDesignerService,
|
@@ -997,5 +1213,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
997
1213
|
* Generated bundle index. Do not edit.
|
998
1214
|
*/
|
999
1215
|
|
1000
|
-
export { AXMBackendDataProvider, AXMBackendModule, AXMCommentService, AXMConfigurationService, AXMFileManagementService, AXMLocalDataProvider, AXMModuleDesignerService, AXMOidcApplicationLoader, AXMOidcFeatureLoader, AXMOidcPermissionLoader, AXMOidcStrategy, AXMOidcTenantLoader };
|
1216
|
+
export { AXMBackendDataProvider, AXMBackendModule, AXMCommentService, AXMConfigurationService, AXMFileManagementService, AXMLocalDataProvider, AXMMockCommentService, AXMModuleDesignerService, AXMOidcApplicationLoader, AXMOidcFeatureLoader, AXMOidcPermissionLoader, AXMOidcStrategy, AXMOidcTenantLoader, COMMENTS };
|
1001
1217
|
//# sourceMappingURL=acorex-modules-backend.mjs.map
|