@acorex/modules 19.2.4 → 19.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auth/lib/store/auth.effects.d.ts +2 -2
- package/fesm2022/{acorex-modules-application-management-module-designer.component-uLfQYtpy.mjs → acorex-modules-application-management-module-designer.component-DPJ4qpK3.mjs} +5 -5
- package/fesm2022/acorex-modules-application-management-module-designer.component-DPJ4qpK3.mjs.map +1 -0
- 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-C-qPiQhk.mjs → acorex-modules-auth-acorex-modules-auth-D75igkfc.mjs} +25 -25
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-D75igkfc.mjs.map +1 -0
- package/fesm2022/acorex-modules-auth-app-chooser.component-BZb8n5Ag.mjs +64 -0
- package/fesm2022/acorex-modules-auth-app-chooser.component-BZb8n5Ag.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-login.module-nqFBpUaE.mjs → acorex-modules-auth-login.module-DAtJYcHZ.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-nqFBpUaE.mjs.map → acorex-modules-auth-login.module-DAtJYcHZ.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-master.layout-qeAQTygT.mjs +23 -0
- package/fesm2022/acorex-modules-auth-master.layout-qeAQTygT.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-password.component-DZ6TiNI-.mjs → acorex-modules-auth-password.component-20Ofs9FL.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-DZ6TiNI-.mjs.map → acorex-modules-auth-password.component-20Ofs9FL.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-3t_WqB4c.mjs → acorex-modules-auth-password.component-CRvI9sIa.mjs} +4 -4
- package/fesm2022/acorex-modules-auth-password.component-CRvI9sIa.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-routes-nnrAlvkD.mjs → acorex-modules-auth-routes-BDED-qaZ.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-nnrAlvkD.mjs.map → acorex-modules-auth-routes-BDED-qaZ.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-CKsbiOUX.mjs +83 -0
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-CKsbiOUX.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-two-factor.module-DWtEYnHW.mjs → acorex-modules-auth-two-factor.module-B0C2aBWh.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-two-factor.module-DWtEYnHW.mjs.map → acorex-modules-auth-two-factor.module-B0C2aBWh.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +10 -10
- package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-xiRKc4FF.mjs +126 -0
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-xiRKc4FF.mjs.map +1 -0
- package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +417 -4
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-organization-managment-employee.entity-oo5Tyyp2.mjs → acorex-modules-organization-managment-employee.entity-D4BSxGAW.mjs} +40 -2
- package/fesm2022/acorex-modules-organization-managment-employee.entity-D4BSxGAW.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-managment-org-chart-configuration.page-DEFgztyn.mjs +92 -0
- package/fesm2022/acorex-modules-organization-managment-org-chart-configuration.page-DEFgztyn.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-managment-org-chart-configuration.service-D-LkPUIw.mjs +145 -0
- package/fesm2022/acorex-modules-organization-managment-org-chart-configuration.service-D-LkPUIw.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-managment-org-chart.page-B3aaLlm2.mjs +597 -0
- package/fesm2022/acorex-modules-organization-managment-org-chart.page-B3aaLlm2.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-managment-setting.keys-CF6Giykz.mjs +22 -0
- package/fesm2022/acorex-modules-organization-managment-setting.keys-CF6Giykz.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-managment-setting.provider-BtkaTjLS.mjs → acorex-modules-organization-managment-setting.provider-nKs53GcA.mjs} +2 -20
- package/fesm2022/acorex-modules-organization-managment-setting.provider-nKs53GcA.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-managment.mjs +44 -27
- package/fesm2022/acorex-modules-organization-managment.mjs.map +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +404 -145
- package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-security-management.mjs +12 -1
- package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
- package/notification-management/lib/components/promotion-slot/promotion-slot.component.d.ts +11 -0
- package/notification-management/lib/entities/channel/channel.types.d.ts +11 -1
- package/organization-managment/lib/const.d.ts +12 -0
- package/organization-managment/lib/features/organization-chart/org-chart-configuration.page.d.ts +141 -0
- package/organization-managment/lib/features/organization-chart/org-chart-configuration.service.d.ts +24 -0
- package/organization-managment/lib/features/organization-chart/org-chart-print.service.d.ts +22 -0
- package/organization-managment/lib/features/organization-chart/org-chart.page.d.ts +162 -0
- package/organization-managment/lib/features/organization-chart/org-chart.service.d.ts +19 -0
- package/organization-managment/lib/features/organization-chart/org-chart.type.d.ts +25 -0
- package/organization-managment/lib/setting.keys.d.ts +2 -1
- package/package.json +5 -5
- package/platform-management/index.d.ts +1 -0
- package/platform-management/lib/const.d.ts +2 -0
- package/platform-management/lib/entities/app-term/app-term.types.d.ts +12 -2
- package/platform-management/lib/entities/app-term/components/notify-app/notify-app.component.d.ts +16 -0
- package/platform-management/lib/entities/app-term/index.d.ts +2 -0
- package/platform-management/lib/entities/app-term/pages/index.d.ts +1 -0
- package/platform-management/lib/entities/app-term/pages/list/list-terms.component.d.ts +20 -0
- package/platform-management/lib/entities/app-term/workflows/index.d.ts +1 -0
- package/platform-management/lib/entities/app-term/workflows/notify-new-term.workflow.d.ts +15 -0
- package/platform-management/lib/entities/app-version/app-version.types.d.ts +7 -0
- package/platform-management/lib/entities/app-version/components/index.d.ts +2 -0
- package/platform-management/lib/entities/app-version/components/list-versions/list-version.component.d.ts +13 -0
- package/platform-management/lib/entities/app-version/{workflow/test/test.component.d.ts → components/notify-app/notify-app.component.d.ts} +3 -3
- package/platform-management/lib/entities/app-version/components/slots/app-version-slot.component.d.ts +12 -0
- package/platform-management/lib/entities/app-version/index.d.ts +2 -1
- package/platform-management/lib/entities/app-version/{workflow → workflows}/index.d.ts +0 -1
- package/platform-management/lib/entities/check-version.d.ts +12 -0
- package/platform-management/lib/entities/index.d.ts +1 -0
- package/platform-management/lib/platform-management.module.d.ts +2 -2
- package/security-management/index.d.ts +1 -0
- package/security-management/lib/menu.keys.d.ts +5 -0
- package/fesm2022/acorex-modules-application-management-module-designer.component-uLfQYtpy.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-C-qPiQhk.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-app-chooser.component-j3JgxtBC.mjs +0 -64
- package/fesm2022/acorex-modules-auth-app-chooser.component-j3JgxtBC.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-master.layout-C9eKuJgU.mjs +0 -23
- package/fesm2022/acorex-modules-auth-master.layout-C9eKuJgU.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-password.component-3t_WqB4c.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-Cx3fK__H.mjs +0 -83
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-Cx3fK__H.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-DW0iMqAA.mjs +0 -126
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-DW0iMqAA.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-managment-employee.entity-oo5Tyyp2.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-managment-org-chart.page-fOxjGb8i.mjs +0 -297
- package/fesm2022/acorex-modules-organization-managment-org-chart.page-fOxjGb8i.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-managment-setting.provider-BtkaTjLS.mjs.map +0 -1
- package/organization-managment/lib/pages/org-chart/org-chart.page.d.ts +0 -28
- package/organization-managment/lib/pages/org-chart/org-chart.type.d.ts +0 -9
- package/platform-management/lib/entities/app-version/check-version.d.ts +0 -11
- /package/platform-management/lib/entities/app-version/{workflow → workflows}/change-log.workflow.d.ts +0 -0
@@ -1,12 +1,14 @@
|
|
1
1
|
import * as i1$1 from '@acorex/platform/common';
|
2
2
|
import { AXPSettingScope, AXPSettingService, AXP_SETTING_DEFINITION_PROVIDER, AXPComponentSlotModule, AXMEntityCrudServiceImpl, AXPEntityQueryType, AXPEntityCommandScope, AXP_APP_VERSION_PROVIDER, AXPAppStartUpService, AXP_MENU_PROVIDER } from '@acorex/platform/common';
|
3
|
-
import { AXP_ENTITY_DEFINITION_LOADER, AXPEntityService } from '@acorex/platform/layout/entity';
|
4
|
-
import * as i2$
|
3
|
+
import { AXP_ENTITY_DEFINITION_LOADER, AXPEntityService, AXP_ENTITY_CONFIG_TOKEN } from '@acorex/platform/layout/entity';
|
4
|
+
import * as i2$4 from '@acorex/platform/workflow';
|
5
5
|
import { AXPWorkflowAction, AXPWorkflowService, AXPWorkflowModule } from '@acorex/platform/workflow';
|
6
6
|
import * as i0 from '@angular/core';
|
7
|
-
import { inject, Injector, Injectable, signal, Component, NgModule } from '@angular/core';
|
7
|
+
import { inject, Injector, Injectable, signal, Component, NgModule, HostListener, ChangeDetectionStrategy, Input } from '@angular/core';
|
8
|
+
import { ROUTES } from '@angular/router';
|
8
9
|
import { objectKeyValueTransforms, AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
|
9
|
-
import
|
10
|
+
import * as i6 from '@acorex/core/translation';
|
11
|
+
import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
|
10
12
|
import { signalStore, withState, withMethods, patchState, withHooks } from '@ngrx/signals';
|
11
13
|
import * as i3 from '@acorex/components/button';
|
12
14
|
import { AXButtonModule } from '@acorex/components/button';
|
@@ -15,12 +17,26 @@ import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
15
17
|
import * as i1 from '@acorex/components/dropdown';
|
16
18
|
import { AXDropdownModule } from '@acorex/components/dropdown';
|
17
19
|
import { AXPopoverModule } from '@acorex/components/popover';
|
20
|
+
import * as i1$2 from '@angular/common';
|
18
21
|
import { CommonModule } from '@angular/common';
|
19
|
-
import
|
22
|
+
import * as i5 from '@acorex/cdk/outline';
|
23
|
+
import { AXOutlineModule } from '@acorex/cdk/outline';
|
20
24
|
import { AXBasePageComponent } from '@acorex/components/page';
|
25
|
+
import * as i4 from '@acorex/components/side-menu';
|
26
|
+
import { AXSideMenuModule } from '@acorex/components/side-menu';
|
27
|
+
import * as i2$1 from '@acorex/core/format';
|
28
|
+
import { AXFormatModule, AXFormatService } from '@acorex/core/format';
|
21
29
|
import { AXPHtmlUtils } from '@acorex/platform/core';
|
22
|
-
import
|
23
|
-
import {
|
30
|
+
import { AXPSimplePageLayout } from '@acorex/platform/themes/default';
|
31
|
+
import { AXPThemeLayoutHeaderTemplateComponent, AXPThemeLayoutBlockComponent } from '@acorex/platform/themes/shared';
|
32
|
+
import { AXPopupService } from '@acorex/components/popup';
|
33
|
+
import * as i3$1 from '@acorex/components/check-box';
|
34
|
+
import { AXCheckBoxModule } from '@acorex/components/check-box';
|
35
|
+
import * as i2$2 from '@acorex/components/label';
|
36
|
+
import { AXLabelModule } from '@acorex/components/label';
|
37
|
+
import * as i2$3 from '@acorex/components/time-line';
|
38
|
+
import { AXTimeLineModule } from '@acorex/components/time-line';
|
39
|
+
import { AXDateTimeModule } from '@acorex/core/date-time';
|
24
40
|
import { AXPSessionService } from '@acorex/platform/auth';
|
25
41
|
|
26
42
|
class AXMCommonModuleEntityProvider {
|
@@ -337,7 +353,7 @@ class AXMLanguageSlotComponent {
|
|
337
353
|
this.items.set(items);
|
338
354
|
}
|
339
355
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLanguageSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
340
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMLanguageSlotComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ax-button color=\"primary\">\n <ax-icon class=\"fa-regular fa-globe\"> </ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(lang of items(); track lang){\n <ax-button-item [text]=\"lang.title\" [selected]=\"store.language()===lang.code\"\n (onClick)=\"store.changeLanguage(lang.code)\">\n <ax-prefix>\n <ax-icon icon=\"fa-solid fa-flag\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n</ax-button>", dependencies: [{ kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i1.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-
|
356
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMLanguageSlotComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ax-button color=\"primary\">\n <ax-icon class=\"fa-regular fa-globe\"> </ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(lang of items(); track lang){\n <ax-button-item [text]=\"lang.title\" [selected]=\"store.language()===lang.code\"\n (onClick)=\"store.changeLanguage(lang.code)\">\n <ax-prefix>\n <ax-icon icon=\"fa-solid fa-flag\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n</ax-button>", dependencies: [{ kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i1.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: i3.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i3.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: CommonModule }] }); }
|
341
357
|
}
|
342
358
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMLanguageSlotComponent, decorators: [{
|
343
359
|
type: Component,
|
@@ -432,11 +448,13 @@ const RootConfig = {
|
|
432
448
|
appVersion: {
|
433
449
|
name: 'app-version',
|
434
450
|
title: `t("appVersion", {scope:"${config.i18n}"})`,
|
451
|
+
titlePlural: `t("appVersionPlural", {scope:"${config.i18n}"})`,
|
435
452
|
icon: 'fa-regular fa-code-branch',
|
436
453
|
},
|
437
454
|
appTerm: {
|
438
455
|
name: 'app-term',
|
439
456
|
title: `t("appTerm", {scope:"${config.i18n}"})`,
|
457
|
+
titlePlural: `t("appTermPlural", {scope:"${config.i18n}"})`,
|
440
458
|
icon: 'fa-light fa-scale-balanced',
|
441
459
|
},
|
442
460
|
},
|
@@ -457,14 +475,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
457
475
|
|
458
476
|
async function appTermEntityEntityFactory(injector) {
|
459
477
|
const dataService = injector.get(AXMAppTermService);
|
478
|
+
const i18n = RootConfig.config.i18n;
|
460
479
|
const entityDef = {
|
461
480
|
module: RootConfig.module.name,
|
462
481
|
name: RootConfig.entities.appTerm.name,
|
463
482
|
source: '',
|
464
483
|
title: RootConfig.entities.appTerm.title,
|
465
484
|
formats: {
|
466
|
-
individual:
|
467
|
-
plural:
|
485
|
+
individual: RootConfig.entities.appTerm.title,
|
486
|
+
plural: RootConfig.entities.appTerm.titlePlural,
|
468
487
|
},
|
469
488
|
relatedEntities: [],
|
470
489
|
groups: [
|
@@ -475,8 +494,8 @@ async function appTermEntityEntityFactory(injector) {
|
|
475
494
|
],
|
476
495
|
properties: [
|
477
496
|
{
|
478
|
-
name: '
|
479
|
-
title:
|
497
|
+
name: 'type',
|
498
|
+
title: `t("type", { scope: "common" })`,
|
480
499
|
groupId: 'section',
|
481
500
|
schema: {
|
482
501
|
dataType: 'string',
|
@@ -492,7 +511,7 @@ async function appTermEntityEntityFactory(injector) {
|
|
492
511
|
},
|
493
512
|
{
|
494
513
|
name: 'title',
|
495
|
-
title:
|
514
|
+
title: `t("title", { scope: "common" })`,
|
496
515
|
groupId: 'section',
|
497
516
|
schema: {
|
498
517
|
dataType: 'string',
|
@@ -508,7 +527,7 @@ async function appTermEntityEntityFactory(injector) {
|
|
508
527
|
},
|
509
528
|
{
|
510
529
|
name: 'content',
|
511
|
-
title:
|
530
|
+
title: `t("content", { scope: "${i18n}" })`,
|
512
531
|
groupId: 'section',
|
513
532
|
schema: {
|
514
533
|
dataType: 'string',
|
@@ -524,7 +543,7 @@ async function appTermEntityEntityFactory(injector) {
|
|
524
543
|
},
|
525
544
|
{
|
526
545
|
name: 'version',
|
527
|
-
title:
|
546
|
+
title: `t("version", { scope: "${i18n}" })`,
|
528
547
|
groupId: 'section',
|
529
548
|
schema: {
|
530
549
|
dataType: 'number',
|
@@ -540,7 +559,7 @@ async function appTermEntityEntityFactory(injector) {
|
|
540
559
|
},
|
541
560
|
{
|
542
561
|
name: 'effectiveDate',
|
543
|
-
title:
|
562
|
+
title: `t("effectiveDate", { scope: "${i18n}" })`,
|
544
563
|
groupId: 'section',
|
545
564
|
schema: {
|
546
565
|
dataType: 'dateTime',
|
@@ -554,30 +573,8 @@ async function appTermEntityEntityFactory(injector) {
|
|
554
573
|
},
|
555
574
|
],
|
556
575
|
},
|
557
|
-
{
|
558
|
-
name: 'isActive',
|
559
|
-
title: 'Is Active',
|
560
|
-
groupId: 'section',
|
561
|
-
schema: {
|
562
|
-
dataType: 'boolean',
|
563
|
-
interface: {
|
564
|
-
type: AXPWidgetsCatalog.checkbox,
|
565
|
-
},
|
566
|
-
},
|
567
|
-
validations: [
|
568
|
-
{
|
569
|
-
rule: 'required',
|
570
|
-
},
|
571
|
-
],
|
572
|
-
},
|
573
|
-
],
|
574
|
-
columns: [
|
575
|
-
{ name: 'title' },
|
576
|
-
{ name: 'content' },
|
577
|
-
{ name: 'version' },
|
578
|
-
{ name: 'effectiveDate' },
|
579
|
-
{ name: 'isActive' },
|
580
576
|
],
|
577
|
+
columns: [{ name: 'title' }, { name: 'content' }, { name: 'version' }, { name: 'effectiveDate' }],
|
581
578
|
commands: {
|
582
579
|
create: {
|
583
580
|
execute: async (data) => {
|
@@ -632,21 +629,23 @@ async function appTermEntityEntityFactory(injector) {
|
|
632
629
|
],
|
633
630
|
properties: [
|
634
631
|
{
|
635
|
-
name: '
|
632
|
+
name: 'title',
|
636
633
|
layout: {
|
637
634
|
positions: {
|
638
635
|
lg: {
|
639
|
-
colSpan:
|
636
|
+
colSpan: 12,
|
637
|
+
order: 1,
|
640
638
|
},
|
641
639
|
},
|
642
640
|
},
|
643
641
|
},
|
644
642
|
{
|
645
|
-
name: '
|
643
|
+
name: 'type',
|
646
644
|
layout: {
|
647
645
|
positions: {
|
648
646
|
lg: {
|
649
|
-
colSpan:
|
647
|
+
colSpan: 4,
|
648
|
+
order: 2,
|
650
649
|
},
|
651
650
|
},
|
652
651
|
},
|
@@ -656,7 +655,8 @@ async function appTermEntityEntityFactory(injector) {
|
|
656
655
|
layout: {
|
657
656
|
positions: {
|
658
657
|
lg: {
|
659
|
-
colSpan:
|
658
|
+
colSpan: 4,
|
659
|
+
order: 3,
|
660
660
|
},
|
661
661
|
},
|
662
662
|
},
|
@@ -667,26 +667,18 @@ async function appTermEntityEntityFactory(injector) {
|
|
667
667
|
positions: {
|
668
668
|
lg: {
|
669
669
|
colSpan: 12,
|
670
|
+
order: 10,
|
670
671
|
},
|
671
672
|
},
|
672
673
|
},
|
673
674
|
},
|
674
675
|
{
|
675
676
|
name: 'effectiveDate',
|
676
|
-
layout: {
|
677
|
-
positions: {
|
678
|
-
lg: {
|
679
|
-
colSpan: 8,
|
680
|
-
},
|
681
|
-
},
|
682
|
-
},
|
683
|
-
},
|
684
|
-
{
|
685
|
-
name: 'isActive',
|
686
677
|
layout: {
|
687
678
|
positions: {
|
688
679
|
lg: {
|
689
680
|
colSpan: 4,
|
681
|
+
order: 4,
|
690
682
|
},
|
691
683
|
},
|
692
684
|
},
|
@@ -701,21 +693,23 @@ async function appTermEntityEntityFactory(injector) {
|
|
701
693
|
],
|
702
694
|
properties: [
|
703
695
|
{
|
704
|
-
name: '
|
696
|
+
name: 'title',
|
705
697
|
layout: {
|
706
698
|
positions: {
|
707
699
|
lg: {
|
708
|
-
colSpan:
|
700
|
+
colSpan: 12,
|
701
|
+
order: 1,
|
709
702
|
},
|
710
703
|
},
|
711
704
|
},
|
712
705
|
},
|
713
706
|
{
|
714
|
-
name: '
|
707
|
+
name: 'type',
|
715
708
|
layout: {
|
716
709
|
positions: {
|
717
710
|
lg: {
|
718
|
-
colSpan:
|
711
|
+
colSpan: 4,
|
712
|
+
order: 2,
|
719
713
|
},
|
720
714
|
},
|
721
715
|
},
|
@@ -725,7 +719,8 @@ async function appTermEntityEntityFactory(injector) {
|
|
725
719
|
layout: {
|
726
720
|
positions: {
|
727
721
|
lg: {
|
728
|
-
colSpan:
|
722
|
+
colSpan: 4,
|
723
|
+
order: 3,
|
729
724
|
},
|
730
725
|
},
|
731
726
|
},
|
@@ -736,26 +731,18 @@ async function appTermEntityEntityFactory(injector) {
|
|
736
731
|
positions: {
|
737
732
|
lg: {
|
738
733
|
colSpan: 12,
|
734
|
+
order: 10,
|
739
735
|
},
|
740
736
|
},
|
741
737
|
},
|
742
738
|
},
|
743
739
|
{
|
744
740
|
name: 'effectiveDate',
|
745
|
-
layout: {
|
746
|
-
positions: {
|
747
|
-
lg: {
|
748
|
-
colSpan: 8,
|
749
|
-
},
|
750
|
-
},
|
751
|
-
},
|
752
|
-
},
|
753
|
-
{
|
754
|
-
name: 'isActive',
|
755
741
|
layout: {
|
756
742
|
positions: {
|
757
743
|
lg: {
|
758
744
|
colSpan: 4,
|
745
|
+
order: 4,
|
759
746
|
},
|
760
747
|
},
|
761
748
|
},
|
@@ -763,7 +750,7 @@ async function appTermEntityEntityFactory(injector) {
|
|
763
750
|
],
|
764
751
|
},
|
765
752
|
single: {
|
766
|
-
title: '{{
|
753
|
+
title: '{{title}}',
|
767
754
|
sections: [
|
768
755
|
{
|
769
756
|
id: 'section',
|
@@ -771,21 +758,23 @@ async function appTermEntityEntityFactory(injector) {
|
|
771
758
|
],
|
772
759
|
properties: [
|
773
760
|
{
|
774
|
-
name: '
|
761
|
+
name: 'title',
|
775
762
|
layout: {
|
776
763
|
positions: {
|
777
764
|
lg: {
|
778
|
-
colSpan:
|
765
|
+
colSpan: 6,
|
766
|
+
order: 1,
|
779
767
|
},
|
780
768
|
},
|
781
769
|
},
|
782
770
|
},
|
783
771
|
{
|
784
|
-
name: '
|
772
|
+
name: 'type',
|
785
773
|
layout: {
|
786
774
|
positions: {
|
787
775
|
lg: {
|
788
|
-
colSpan:
|
776
|
+
colSpan: 6,
|
777
|
+
order: 2,
|
789
778
|
},
|
790
779
|
},
|
791
780
|
},
|
@@ -795,7 +784,8 @@ async function appTermEntityEntityFactory(injector) {
|
|
795
784
|
layout: {
|
796
785
|
positions: {
|
797
786
|
lg: {
|
798
|
-
colSpan:
|
787
|
+
colSpan: 6,
|
788
|
+
order: 3,
|
799
789
|
},
|
800
790
|
},
|
801
791
|
},
|
@@ -806,6 +796,7 @@ async function appTermEntityEntityFactory(injector) {
|
|
806
796
|
positions: {
|
807
797
|
lg: {
|
808
798
|
colSpan: 12,
|
799
|
+
order: 10,
|
809
800
|
},
|
810
801
|
},
|
811
802
|
},
|
@@ -815,17 +806,8 @@ async function appTermEntityEntityFactory(injector) {
|
|
815
806
|
layout: {
|
816
807
|
positions: {
|
817
808
|
lg: {
|
818
|
-
colSpan:
|
819
|
-
|
820
|
-
},
|
821
|
-
},
|
822
|
-
},
|
823
|
-
{
|
824
|
-
name: 'isActive',
|
825
|
-
layout: {
|
826
|
-
positions: {
|
827
|
-
lg: {
|
828
|
-
colSpan: 4,
|
809
|
+
colSpan: 6,
|
810
|
+
order: 4,
|
829
811
|
},
|
830
812
|
},
|
831
813
|
},
|
@@ -881,6 +863,139 @@ async function appTermEntityEntityFactory(injector) {
|
|
881
863
|
return entityDef;
|
882
864
|
}
|
883
865
|
|
866
|
+
class AXMListTermsComponent extends AXBasePageComponent {
|
867
|
+
constructor() {
|
868
|
+
super(...arguments);
|
869
|
+
this.service = inject(AXMAppTermService);
|
870
|
+
this.htmlUtil = inject(AXPHtmlUtils);
|
871
|
+
this.i18n = RootConfig.config.i18n;
|
872
|
+
this.pageTitle = RootConfig.entities.appTerm.titlePlural;
|
873
|
+
this.terms = [];
|
874
|
+
this.loaded = signal(false);
|
875
|
+
this.showScrollSide = false;
|
876
|
+
}
|
877
|
+
ngAfterViewInit() {
|
878
|
+
this.checkScroll();
|
879
|
+
}
|
880
|
+
onResize() {
|
881
|
+
this.checkScroll();
|
882
|
+
}
|
883
|
+
checkScroll() {
|
884
|
+
const contentElement = document.getElementById('contentDiv');
|
885
|
+
if (contentElement != null) {
|
886
|
+
this.showScrollSide = contentElement.offsetHeight > window.innerHeight - 140;
|
887
|
+
}
|
888
|
+
}
|
889
|
+
async ngOnInit() {
|
890
|
+
super.ngOnInit();
|
891
|
+
const result = await this.service.query({
|
892
|
+
skip: 0,
|
893
|
+
take: 1000,
|
894
|
+
});
|
895
|
+
this.terms = result.items.map((term) => {
|
896
|
+
return {
|
897
|
+
...term,
|
898
|
+
content: this.htmlUtil.getTextFromHTML(term.content),
|
899
|
+
};
|
900
|
+
});
|
901
|
+
this.loaded.set(true);
|
902
|
+
setTimeout(() => this.checkScroll(), 50);
|
903
|
+
}
|
904
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMListTermsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
905
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMListTermsComponent, isStandalone: true, selector: "acorex-platform-list-terms", host: { listeners: { "window:resize": "onResize($event)" } }, usesInheritance: true, ngImport: i0, template: "<axp-layout-simple-page>\n <axp-layout-header>\n <axp-layout-title> {{ pageTitle | translate : { scope: i18n } | async }} </axp-layout-title>\n\n <axp-layout-description>Please review the terms and conditions carefully. </axp-layout-description>\n </axp-layout-header>\n @if(loaded()){\n <axp-layout-content id=\"contentDiv\" axOutlineContainer target=\"h2\">\n <div class=\"ax-flex\">\n <div class=\"ax-flex ax-flex-col\">\n @for (term of terms; track term.id) {\n <div class=\"ax-flex ax-flex-col\">\n <h2 class=\"ax-px-4 ax-font-semibold ax-text-xl\">{{ term.title }}</h2>\n <p class=\"ax-px-4 ax-text-sm ax-leading-5 ax-text-neutral-700\">\n {{ term.effectiveDate | format : 'datetime' | async }}\n </p>\n <div class=\"ax-pt-3 ax-px-6 ax-text-base/6\" [innerHTML]=\"term.content\"></div>\n </div>\n }\n </div>\n @if(showScrollSide){\n <div class=\"ax-hidden lg:ax-block ax-min-w-60 ax-sticky ax-top-0\">\n <ax-side-menu axOutlineSideMenu look=\"with-line\" class=\"ax-w-full\"></ax-side-menu>\n </div>\n }\n </div>\n </axp-layout-content>\n }\n</axp-layout-simple-page>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "ngmodule", type: AXFormatModule }, { kind: "pipe", type: i2$1.AXFormatPipe, name: "format" }, { kind: "component", type: AXPSimplePageLayout, selector: "axp-layout-simple-page" }, { kind: "component", type: AXPThemeLayoutHeaderTemplateComponent, selector: "axp-layout-header" }, { kind: "component", type: AXPThemeLayoutBlockComponent, selector: " axp-layout-content, axp-layout-header-container, axp-layout-footer-container, axp-layout-side-container, axp-layout-sections, axp-layout-section-container, axp-layout-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title, axp-layout-nav-button, axp-layout-description, axp-layout-toolbar, axp-layout-title-bar, axp-layout-breadcrumbs, axp-layout-list-action, " }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }, { kind: "ngmodule", type: AXSideMenuModule }, { kind: "component", type: i4.AXSideMenuComponent, selector: "ax-side-menu", inputs: ["items", "look", "location"], outputs: ["itemsChange"] }, { kind: "directive", type: i4.AXOutlineSideMenuDirective, selector: "[axOutlineSideMenu]", exportAs: ["axOutlineSideMenu"] }, { kind: "ngmodule", type: AXOutlineModule }, { kind: "directive", type: i5.AXOutlineContainerDirective, selector: "[axOutlineContainer]", inputs: ["target", "smoothScroll", "activationOffset", "activateLastAtBottom"], exportAs: ["axOutlineContainer"] }] }); }
|
906
|
+
}
|
907
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMListTermsComponent, decorators: [{
|
908
|
+
type: Component,
|
909
|
+
args: [{ selector: 'acorex-platform-list-terms', imports: [
|
910
|
+
CommonModule,
|
911
|
+
AXDecoratorModule,
|
912
|
+
AXFormatModule,
|
913
|
+
AXPSimplePageLayout,
|
914
|
+
AXPThemeLayoutHeaderTemplateComponent,
|
915
|
+
AXPThemeLayoutBlockComponent,
|
916
|
+
AXTranslationModule,
|
917
|
+
AXSideMenuModule,
|
918
|
+
AXOutlineModule,
|
919
|
+
], template: "<axp-layout-simple-page>\n <axp-layout-header>\n <axp-layout-title> {{ pageTitle | translate : { scope: i18n } | async }} </axp-layout-title>\n\n <axp-layout-description>Please review the terms and conditions carefully. </axp-layout-description>\n </axp-layout-header>\n @if(loaded()){\n <axp-layout-content id=\"contentDiv\" axOutlineContainer target=\"h2\">\n <div class=\"ax-flex\">\n <div class=\"ax-flex ax-flex-col\">\n @for (term of terms; track term.id) {\n <div class=\"ax-flex ax-flex-col\">\n <h2 class=\"ax-px-4 ax-font-semibold ax-text-xl\">{{ term.title }}</h2>\n <p class=\"ax-px-4 ax-text-sm ax-leading-5 ax-text-neutral-700\">\n {{ term.effectiveDate | format : 'datetime' | async }}\n </p>\n <div class=\"ax-pt-3 ax-px-6 ax-text-base/6\" [innerHTML]=\"term.content\"></div>\n </div>\n }\n </div>\n @if(showScrollSide){\n <div class=\"ax-hidden lg:ax-block ax-min-w-60 ax-sticky ax-top-0\">\n <ax-side-menu axOutlineSideMenu look=\"with-line\" class=\"ax-w-full\"></ax-side-menu>\n </div>\n }\n </div>\n </axp-layout-content>\n }\n</axp-layout-simple-page>\n" }]
|
920
|
+
}], propDecorators: { onResize: [{
|
921
|
+
type: HostListener,
|
922
|
+
args: ['window:resize', ['$event']]
|
923
|
+
}] } });
|
924
|
+
|
925
|
+
class AXMNotifyAppTermComponent extends AXBasePageComponent {
|
926
|
+
constructor() {
|
927
|
+
super(...arguments);
|
928
|
+
this.isConfirm = false;
|
929
|
+
this.htmlUtil = inject(AXPHtmlUtils);
|
930
|
+
this.i18n = RootConfig.config.i18n;
|
931
|
+
}
|
932
|
+
ngOnInit() {
|
933
|
+
super.ngOnInit();
|
934
|
+
this.safeData = this.htmlUtil.getSafeHTMLfromHTML(this.data.content);
|
935
|
+
}
|
936
|
+
send() {
|
937
|
+
this.close({ data: this.data });
|
938
|
+
}
|
939
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyAppTermComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
940
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXMNotifyAppTermComponent, isStandalone: true, selector: "axm-notify-app", usesInheritance: true, ngImport: i0, template: "<ax-content class=\"ax-block ax-px-4 ax-py-4\" [innerHTML]=\"safeData\"></ax-content>\n<ax-footer class=\"ax-flex ax-items-center ax-justify-between ax-p-2\">\n <ax-check-box [(value)]=\"isConfirm\">\n <ax-label>{{ 'agreeTerm' | translate : { scope: i18n } | async }}</ax-label>\n </ax-check-box>\n <ax-button (click)=\"send()\" [text]=\"'okay' | translate | async\" [disabled]=\"!isConfirm\" color=\"primary\"></ax-button>\n</ax-footer>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i2$2.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "component", type: i3$1.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "checked", "indeterminate"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }] }); }
|
941
|
+
}
|
942
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyAppTermComponent, decorators: [{
|
943
|
+
type: Component,
|
944
|
+
args: [{ selector: 'axm-notify-app', imports: [CommonModule, AXLabelModule, AXCheckBoxModule, AXDecoratorModule, AXButtonModule, AXTranslationModule], template: "<ax-content class=\"ax-block ax-px-4 ax-py-4\" [innerHTML]=\"safeData\"></ax-content>\n<ax-footer class=\"ax-flex ax-items-center ax-justify-between ax-p-2\">\n <ax-check-box [(value)]=\"isConfirm\">\n <ax-label>{{ 'agreeTerm' | translate : { scope: i18n } | async }}</ax-label>\n </ax-check-box>\n <ax-button (click)=\"send()\" [text]=\"'okay' | translate | async\" [disabled]=\"!isConfirm\" color=\"primary\"></ax-button>\n</ax-footer>\n" }]
|
945
|
+
}] });
|
946
|
+
|
947
|
+
class AXMNotifyNewTermPopupAction extends AXPWorkflowAction {
|
948
|
+
constructor() {
|
949
|
+
super(...arguments);
|
950
|
+
this.popupService = inject(AXPopupService);
|
951
|
+
}
|
952
|
+
async execute(context) {
|
953
|
+
const data = context.getVariable();
|
954
|
+
await this.popupService.open(AXMNotifyAppTermComponent, {
|
955
|
+
title: `${data.title}`,
|
956
|
+
data: { data },
|
957
|
+
closeButton: false,
|
958
|
+
});
|
959
|
+
}
|
960
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyNewTermPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
961
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyNewTermPopupAction }); }
|
962
|
+
}
|
963
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyNewTermPopupAction, decorators: [{
|
964
|
+
type: Injectable
|
965
|
+
}] });
|
966
|
+
class AXMTermUpdateSettingAction extends AXPWorkflowAction {
|
967
|
+
constructor() {
|
968
|
+
super(...arguments);
|
969
|
+
this.settingService = inject(AXPSettingService);
|
970
|
+
}
|
971
|
+
async execute(context) {
|
972
|
+
const data = context.getVariable();
|
973
|
+
await this.settingService.scope(AXPSettingScope.User).set(`is-confirm-term-${data.id}`, true);
|
974
|
+
}
|
975
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMTermUpdateSettingAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
976
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMTermUpdateSettingAction }); }
|
977
|
+
}
|
978
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMTermUpdateSettingAction, decorators: [{
|
979
|
+
type: Injectable
|
980
|
+
}] });
|
981
|
+
const AXMNewTermWorkflow = {
|
982
|
+
startStepId: 'show-popup',
|
983
|
+
steps: {
|
984
|
+
'show-popup': {
|
985
|
+
action: 'AXMNotifyNewTermPopupAction',
|
986
|
+
nextSteps: [
|
987
|
+
{
|
988
|
+
conditions: [],
|
989
|
+
nextStepId: 'first-time-add-to-setting',
|
990
|
+
},
|
991
|
+
],
|
992
|
+
},
|
993
|
+
'first-time-add-to-setting': {
|
994
|
+
action: 'AXMTermUpdateSettingAction',
|
995
|
+
},
|
996
|
+
},
|
997
|
+
};
|
998
|
+
|
884
999
|
class AXMAppVersionService extends AXMEntityCrudServiceImpl {
|
885
1000
|
}
|
886
1001
|
class AXMAppVersionServiceImpl extends AXMEntityCrudServiceImpl {
|
@@ -896,14 +1011,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
896
1011
|
|
897
1012
|
async function appVersionEntityEntityFactory(injector) {
|
898
1013
|
const dataService = injector.get(AXMAppVersionService);
|
1014
|
+
const i18n = RootConfig.config.i18n;
|
899
1015
|
const entityDef = {
|
900
1016
|
module: RootConfig.module.name,
|
901
1017
|
name: RootConfig.entities.appVersion.name,
|
902
1018
|
source: '',
|
903
1019
|
title: RootConfig.entities.appVersion.title,
|
904
1020
|
formats: {
|
905
|
-
individual:
|
906
|
-
plural:
|
1021
|
+
individual: RootConfig.entities.appVersion.title,
|
1022
|
+
plural: RootConfig.entities.appVersion.title,
|
907
1023
|
},
|
908
1024
|
relatedEntities: [],
|
909
1025
|
groups: [
|
@@ -915,7 +1031,7 @@ async function appVersionEntityEntityFactory(injector) {
|
|
915
1031
|
properties: [
|
916
1032
|
{
|
917
1033
|
name: 'versionNumber',
|
918
|
-
title:
|
1034
|
+
title: `t("versionNumber", { scope: "${i18n}" })`,
|
919
1035
|
groupId: 'section',
|
920
1036
|
schema: {
|
921
1037
|
dataType: 'string',
|
@@ -931,7 +1047,7 @@ async function appVersionEntityEntityFactory(injector) {
|
|
931
1047
|
},
|
932
1048
|
{
|
933
1049
|
name: 'changeLog',
|
934
|
-
title:
|
1050
|
+
title: `t("changeLogs", { scope: "${i18n}" })`,
|
935
1051
|
groupId: 'section',
|
936
1052
|
schema: {
|
937
1053
|
dataType: 'string',
|
@@ -948,7 +1064,7 @@ async function appVersionEntityEntityFactory(injector) {
|
|
948
1064
|
},
|
949
1065
|
{
|
950
1066
|
name: 'publishDate',
|
951
|
-
title:
|
1067
|
+
title: `t("publishDate", { scope: "${i18n}" })`,
|
952
1068
|
groupId: 'section',
|
953
1069
|
schema: {
|
954
1070
|
dataType: 'dateTime',
|
@@ -964,7 +1080,7 @@ async function appVersionEntityEntityFactory(injector) {
|
|
964
1080
|
},
|
965
1081
|
{
|
966
1082
|
name: 'showFirstTimePopup',
|
967
|
-
title:
|
1083
|
+
title: `t("notifyUser", { scope: "${i18n}" })`,
|
968
1084
|
groupId: 'section',
|
969
1085
|
schema: {
|
970
1086
|
dataType: 'boolean',
|
@@ -1038,6 +1154,7 @@ async function appVersionEntityEntityFactory(injector) {
|
|
1038
1154
|
layout: {
|
1039
1155
|
positions: {
|
1040
1156
|
lg: {
|
1157
|
+
order: 1,
|
1041
1158
|
colSpan: 4,
|
1042
1159
|
},
|
1043
1160
|
},
|
@@ -1048,6 +1165,7 @@ async function appVersionEntityEntityFactory(injector) {
|
|
1048
1165
|
layout: {
|
1049
1166
|
positions: {
|
1050
1167
|
lg: {
|
1168
|
+
order: 2,
|
1051
1169
|
colSpan: 4,
|
1052
1170
|
},
|
1053
1171
|
},
|
@@ -1059,6 +1177,7 @@ async function appVersionEntityEntityFactory(injector) {
|
|
1059
1177
|
positions: {
|
1060
1178
|
lg: {
|
1061
1179
|
colSpan: 4,
|
1180
|
+
order: 3,
|
1062
1181
|
},
|
1063
1182
|
},
|
1064
1183
|
},
|
@@ -1068,6 +1187,7 @@ async function appVersionEntityEntityFactory(injector) {
|
|
1068
1187
|
layout: {
|
1069
1188
|
positions: {
|
1070
1189
|
lg: {
|
1190
|
+
order: 10,
|
1071
1191
|
colSpan: 12,
|
1072
1192
|
},
|
1073
1193
|
},
|
@@ -1088,6 +1208,7 @@ async function appVersionEntityEntityFactory(injector) {
|
|
1088
1208
|
positions: {
|
1089
1209
|
lg: {
|
1090
1210
|
colSpan: 4,
|
1211
|
+
order: 1,
|
1091
1212
|
},
|
1092
1213
|
},
|
1093
1214
|
},
|
@@ -1098,6 +1219,7 @@ async function appVersionEntityEntityFactory(injector) {
|
|
1098
1219
|
positions: {
|
1099
1220
|
lg: {
|
1100
1221
|
colSpan: 4,
|
1222
|
+
order: 2,
|
1101
1223
|
},
|
1102
1224
|
},
|
1103
1225
|
},
|
@@ -1108,6 +1230,7 @@ async function appVersionEntityEntityFactory(injector) {
|
|
1108
1230
|
positions: {
|
1109
1231
|
lg: {
|
1110
1232
|
colSpan: 4,
|
1233
|
+
order: 3,
|
1111
1234
|
},
|
1112
1235
|
},
|
1113
1236
|
},
|
@@ -1118,6 +1241,7 @@ async function appVersionEntityEntityFactory(injector) {
|
|
1118
1241
|
positions: {
|
1119
1242
|
lg: {
|
1120
1243
|
colSpan: 12,
|
1244
|
+
order: 4,
|
1121
1245
|
},
|
1122
1246
|
},
|
1123
1247
|
},
|
@@ -1223,7 +1347,7 @@ async function appVersionEntityEntityFactory(injector) {
|
|
1223
1347
|
return entityDef;
|
1224
1348
|
}
|
1225
1349
|
|
1226
|
-
class
|
1350
|
+
class AXMNotifyAppComponent extends AXBasePageComponent {
|
1227
1351
|
constructor() {
|
1228
1352
|
super(...arguments);
|
1229
1353
|
this.isShowAgain = true;
|
@@ -1236,17 +1360,81 @@ class AXMAppVersionPopupComponent extends AXBasePageComponent {
|
|
1236
1360
|
send() {
|
1237
1361
|
this.close({ data: this.data, isShowAgain: !this.isShowAgain });
|
1238
1362
|
}
|
1239
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
1240
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type:
|
1363
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyAppComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
1364
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXMNotifyAppComponent, isStandalone: true, selector: "axm-notify-app", usesInheritance: true, ngImport: i0, template: "<ax-content class=\"ax-block ax-px-4 ax-py-4\" [innerHTML]=\"safeData\"></ax-content>\n<ax-footer class=\"ax-flex ax-items-center ax-justify-between ax-p-2\">\n <ax-check-box [(value)]=\"isShowAgain\">\n <ax-label>Don't Show Again</ax-label>\n </ax-check-box>\n <ax-button (click)=\"send()\" [text]=\"'okay' | translate | async\"></ax-button>\n</ax-footer>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i2$2.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "component", type: i3$1.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "checked", "indeterminate"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }] }); }
|
1241
1365
|
}
|
1242
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
1366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMNotifyAppComponent, decorators: [{
|
1243
1367
|
type: Component,
|
1244
|
-
args: [{ selector: 'app
|
1368
|
+
args: [{ selector: 'axm-notify-app', imports: [CommonModule, AXLabelModule, AXCheckBoxModule, AXDecoratorModule, AXButtonModule, AXTranslationModule], template: "<ax-content class=\"ax-block ax-px-4 ax-py-4\" [innerHTML]=\"safeData\"></ax-content>\n<ax-footer class=\"ax-flex ax-items-center ax-justify-between ax-p-2\">\n <ax-check-box [(value)]=\"isShowAgain\">\n <ax-label>Don't Show Again</ax-label>\n </ax-check-box>\n <ax-button (click)=\"send()\" [text]=\"'okay' | translate | async\"></ax-button>\n</ax-footer>\n" }]
|
1369
|
+
}] });
|
1370
|
+
|
1371
|
+
class AXMListVersionComponent extends AXBasePageComponent {
|
1372
|
+
constructor() {
|
1373
|
+
super(...arguments);
|
1374
|
+
this.appVersionService = inject(AXMAppVersionService);
|
1375
|
+
this.formatService = inject(AXFormatService);
|
1376
|
+
this.htmlUtil = inject(AXPHtmlUtils);
|
1377
|
+
this.versions = signal([]);
|
1378
|
+
}
|
1379
|
+
async ngOnInit() {
|
1380
|
+
const result = await this.appVersionService.query({
|
1381
|
+
take: 1000,
|
1382
|
+
skip: 0,
|
1383
|
+
});
|
1384
|
+
const mappedItems = result.items.map((item) => ({
|
1385
|
+
id: item.id,
|
1386
|
+
//TODO to translate
|
1387
|
+
title: `Version ${item.versionNumber} Published at ${this.formatService.format(item.publishDate, 'datetime', {
|
1388
|
+
format: 'date',
|
1389
|
+
})}`,
|
1390
|
+
content: this.htmlUtil.getSafeHTMLfromHTML(item.changeLog) ?? '',
|
1391
|
+
}));
|
1392
|
+
this.versions.set(mappedItems);
|
1393
|
+
}
|
1394
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMListVersionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
1395
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMListVersionComponent, isStandalone: true, selector: "axm-list-version", usesInheritance: true, ngImport: i0, template: "<div class=\"ax-px-12 ax-min-h-96\">\n <ax-time-line>\n @for(version of versions();track version.id){\n <ax-time-line-item [text]=\"version.title\" [isCollapsed]=\"$index == 0 ? false : true\">\n <ax-icon class=\"fa-solid fa-flag-checkered\"></ax-icon>\n <ax-content class=\"ax-px-8 ax-py-2\" [innerHtml]=\"version.content\"></ax-content>\n </ax-time-line-item>\n }\n </ax-time-line>\n <ax-footer class=\"ax-flex !ax-justify-end\"\n ><ax-button [text]=\"'okay' | translate | async\" color=\"primary\" (onClick)=\"this.close()\"></ax-button\n ></ax-footer>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXTimeLineModule }, { kind: "component", type: i2$3.AXTimeLineComponent, selector: "ax-time-line", inputs: ["mode"] }, { kind: "component", type: i2$3.AXTimeLineItemComponent, selector: "ax-time-line-item", inputs: ["text", "isActive", "isCollapsed"], outputs: ["isCollapsedChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXFormatModule }, { kind: "ngmodule", type: AXDateTimeModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
1396
|
+
}
|
1397
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMListVersionComponent, decorators: [{
|
1398
|
+
type: Component,
|
1399
|
+
args: [{ selector: 'axm-list-version', imports: [
|
1245
1400
|
CommonModule,
|
1246
|
-
|
1247
|
-
|
1401
|
+
AXTimeLineModule,
|
1402
|
+
AXDecoratorModule,
|
1403
|
+
AXFormatModule,
|
1404
|
+
AXDateTimeModule,
|
1405
|
+
AXButtonModule,
|
1406
|
+
AXTranslationModule,
|
1407
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ax-px-12 ax-min-h-96\">\n <ax-time-line>\n @for(version of versions();track version.id){\n <ax-time-line-item [text]=\"version.title\" [isCollapsed]=\"$index == 0 ? false : true\">\n <ax-icon class=\"fa-solid fa-flag-checkered\"></ax-icon>\n <ax-content class=\"ax-px-8 ax-py-2\" [innerHtml]=\"version.content\"></ax-content>\n </ax-time-line-item>\n }\n </ax-time-line>\n <ax-footer class=\"ax-flex !ax-justify-end\"\n ><ax-button [text]=\"'okay' | translate | async\" color=\"primary\" (onClick)=\"this.close()\"></ax-button\n ></ax-footer>\n</div>\n" }]
|
1248
1408
|
}] });
|
1249
1409
|
|
1410
|
+
class AXMAppVersionSlotComponent {
|
1411
|
+
constructor() {
|
1412
|
+
this.versionProvider = inject(AXP_APP_VERSION_PROVIDER);
|
1413
|
+
this.popupService = inject(AXPopupService);
|
1414
|
+
this.versionNumber = '';
|
1415
|
+
}
|
1416
|
+
async ngOnInit() {
|
1417
|
+
this.versionNumber = (await this.versionProvider.provider()).version;
|
1418
|
+
}
|
1419
|
+
openPopup() {
|
1420
|
+
this.popupService.open(AXMListVersionComponent, {
|
1421
|
+
title: 'Versions',
|
1422
|
+
//data: { data },
|
1423
|
+
});
|
1424
|
+
}
|
1425
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMAppVersionSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
1426
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXMAppVersionSlotComponent, isStandalone: true, selector: "ng-component", inputs: { text: "text" }, ngImport: i0, template: ` <small class="ax-text-sm ax-cursor-pointer" (click)="openPopup()">{{ versionNumber }}</small> `, isInline: true }); }
|
1427
|
+
}
|
1428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMAppVersionSlotComponent, decorators: [{
|
1429
|
+
type: Component,
|
1430
|
+
args: [{
|
1431
|
+
template: ` <small class="ax-text-sm ax-cursor-pointer" (click)="openPopup()">{{ versionNumber }}</small> `,
|
1432
|
+
standalone: true,
|
1433
|
+
}]
|
1434
|
+
}], propDecorators: { text: [{
|
1435
|
+
type: Input
|
1436
|
+
}] } });
|
1437
|
+
|
1250
1438
|
class AXMChangeLogPopupAction extends AXPWorkflowAction {
|
1251
1439
|
constructor() {
|
1252
1440
|
super(...arguments);
|
@@ -1254,7 +1442,10 @@ class AXMChangeLogPopupAction extends AXPWorkflowAction {
|
|
1254
1442
|
}
|
1255
1443
|
async execute(context) {
|
1256
1444
|
const data = context.getVariable();
|
1257
|
-
const result = await this.popupService.open(
|
1445
|
+
const result = await this.popupService.open(AXMNotifyAppComponent, {
|
1446
|
+
title: `New Features in Version ${data.versionNumber}`,
|
1447
|
+
data: { data },
|
1448
|
+
});
|
1258
1449
|
if (result.data?.isShowAgain) {
|
1259
1450
|
context.setOutput('result', false);
|
1260
1451
|
}
|
@@ -1303,6 +1494,59 @@ const AXMChangeLogWorkflow = {
|
|
1303
1494
|
},
|
1304
1495
|
};
|
1305
1496
|
|
1497
|
+
class AppTermAndVersionCheck {
|
1498
|
+
constructor() {
|
1499
|
+
this.versionProvider = inject(AXP_APP_VERSION_PROVIDER);
|
1500
|
+
this.settingsService = inject(AXPSettingService);
|
1501
|
+
this.workflowService = inject(AXPWorkflowService);
|
1502
|
+
this.appVersionService = inject(AXMAppVersionService);
|
1503
|
+
this.appTermService = inject(AXMAppTermService);
|
1504
|
+
this.appInitService = inject(AXPAppStartUpService);
|
1505
|
+
//check new version
|
1506
|
+
this.appInitService.registerTask({
|
1507
|
+
name: 'Version',
|
1508
|
+
statusText: 'Check New Version...',
|
1509
|
+
run: async () => {
|
1510
|
+
const versions = await this.appVersionService.query();
|
1511
|
+
versions.items.forEach(async (v) => {
|
1512
|
+
const current = (await this.versionProvider.provider()).version;
|
1513
|
+
if (v.versionNumber == current) {
|
1514
|
+
const isSee = await this.settingsService
|
1515
|
+
.scope(AXPSettingScope.User)
|
1516
|
+
.get(`is-see-check-version-${v.versionNumber}`);
|
1517
|
+
if (!isSee) {
|
1518
|
+
setTimeout(() => {
|
1519
|
+
this.workflowService.execute('change-log-version', v);
|
1520
|
+
}, 500);
|
1521
|
+
}
|
1522
|
+
}
|
1523
|
+
});
|
1524
|
+
},
|
1525
|
+
});
|
1526
|
+
//check new term
|
1527
|
+
this.appInitService.registerTask({
|
1528
|
+
name: 'Terms',
|
1529
|
+
statusText: 'Check New Terms And Conditions...',
|
1530
|
+
run: async () => {
|
1531
|
+
const terms = await this.appTermService.query();
|
1532
|
+
terms.items.forEach(async (t) => {
|
1533
|
+
const isConfirm = await this.settingsService.scope(AXPSettingScope.User).get(`is-confirm-term-${t.id}`);
|
1534
|
+
if (!isConfirm) {
|
1535
|
+
setTimeout(() => {
|
1536
|
+
this.workflowService.execute('new-term', t);
|
1537
|
+
}, 500);
|
1538
|
+
}
|
1539
|
+
});
|
1540
|
+
},
|
1541
|
+
});
|
1542
|
+
}
|
1543
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppTermAndVersionCheck, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1544
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppTermAndVersionCheck }); }
|
1545
|
+
}
|
1546
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppTermAndVersionCheck, decorators: [{
|
1547
|
+
type: Injectable
|
1548
|
+
}], ctorParameters: () => [] });
|
1549
|
+
|
1306
1550
|
class AXMGlobalVariablesService extends AXMEntityCrudServiceImpl {
|
1307
1551
|
}
|
1308
1552
|
class AXMGlobalVariablesServiceImpl extends AXMEntityCrudServiceImpl {
|
@@ -1323,7 +1567,7 @@ async function globalVariableEntityFactory(injector) {
|
|
1323
1567
|
module: RootConfig.module.name,
|
1324
1568
|
name: RootConfig.entities.globalVariable.name,
|
1325
1569
|
source: '',
|
1326
|
-
title:
|
1570
|
+
title: RootConfig.entities.globalVariable.title,
|
1327
1571
|
formats: {
|
1328
1572
|
individual: 'Global Variable',
|
1329
1573
|
plural: 'Global Variables',
|
@@ -1338,7 +1582,7 @@ async function globalVariableEntityFactory(injector) {
|
|
1338
1582
|
properties: [
|
1339
1583
|
{
|
1340
1584
|
name: 'name',
|
1341
|
-
title: `t("name", { scope: "
|
1585
|
+
title: `t("name", { scope: "common" })`,
|
1342
1586
|
groupId: 'section',
|
1343
1587
|
schema: {
|
1344
1588
|
dataType: 'string',
|
@@ -1354,7 +1598,7 @@ async function globalVariableEntityFactory(injector) {
|
|
1354
1598
|
},
|
1355
1599
|
{
|
1356
1600
|
name: 'title',
|
1357
|
-
title: `t("title", { scope: "
|
1601
|
+
title: `t("title", { scope: "common" })`,
|
1358
1602
|
groupId: 'section',
|
1359
1603
|
schema: {
|
1360
1604
|
dataType: 'string',
|
@@ -1663,54 +1907,25 @@ var index = /*#__PURE__*/Object.freeze({
|
|
1663
1907
|
__proto__: null,
|
1664
1908
|
AXMAppTermService: AXMAppTermService,
|
1665
1909
|
AXMAppTermServiceImpl: AXMAppTermServiceImpl,
|
1666
|
-
AXMAppVersionPopupComponent: AXMAppVersionPopupComponent,
|
1667
1910
|
AXMAppVersionService: AXMAppVersionService,
|
1668
1911
|
AXMAppVersionServiceImpl: AXMAppVersionServiceImpl,
|
1912
|
+
AXMAppVersionSlotComponent: AXMAppVersionSlotComponent,
|
1669
1913
|
AXMChangeLogPopupAction: AXMChangeLogPopupAction,
|
1670
1914
|
AXMChangeLogUpdateSettingAction: AXMChangeLogUpdateSettingAction,
|
1671
1915
|
AXMChangeLogWorkflow: AXMChangeLogWorkflow,
|
1672
1916
|
AXMGlobalVariablesService: AXMGlobalVariablesService,
|
1673
1917
|
AXMGlobalVariablesServiceImpl: AXMGlobalVariablesServiceImpl,
|
1918
|
+
AXMListTermsComponent: AXMListTermsComponent,
|
1919
|
+
AXMNewTermWorkflow: AXMNewTermWorkflow,
|
1920
|
+
AXMNotifyAppComponent: AXMNotifyAppComponent,
|
1921
|
+
AXMNotifyNewTermPopupAction: AXMNotifyNewTermPopupAction,
|
1922
|
+
AXMTermUpdateSettingAction: AXMTermUpdateSettingAction,
|
1923
|
+
AppTermAndVersionCheck: AppTermAndVersionCheck,
|
1674
1924
|
appTermEntityEntityFactory: appTermEntityEntityFactory,
|
1675
1925
|
appVersionEntityEntityFactory: appVersionEntityEntityFactory,
|
1676
1926
|
globalVariableEntityFactory: globalVariableEntityFactory
|
1677
1927
|
});
|
1678
1928
|
|
1679
|
-
class AppVersionCheck {
|
1680
|
-
constructor() {
|
1681
|
-
this.versionProvider = inject(AXP_APP_VERSION_PROVIDER);
|
1682
|
-
this.settingsService = inject(AXPSettingService);
|
1683
|
-
this.workflowService = inject(AXPWorkflowService);
|
1684
|
-
this.appVersionService = inject(AXMAppVersionService);
|
1685
|
-
this.appInitService = inject(AXPAppStartUpService);
|
1686
|
-
this.appInitService.registerTask({
|
1687
|
-
name: 'Version',
|
1688
|
-
statusText: 'Check New Version...',
|
1689
|
-
run: async () => {
|
1690
|
-
const versions = await this.appVersionService.query();
|
1691
|
-
versions.items.forEach(async (v) => {
|
1692
|
-
const current = (await this.versionProvider.provider()).version;
|
1693
|
-
if (v.versionNumber == current) {
|
1694
|
-
const isSee = await this.settingsService
|
1695
|
-
.scope(AXPSettingScope.User)
|
1696
|
-
.get(`is-see-check-version-${v.versionNumber}`);
|
1697
|
-
if (!isSee) {
|
1698
|
-
setTimeout(() => {
|
1699
|
-
this.workflowService.execute('change-log-version', v);
|
1700
|
-
}, 500);
|
1701
|
-
}
|
1702
|
-
}
|
1703
|
-
});
|
1704
|
-
},
|
1705
|
-
});
|
1706
|
-
}
|
1707
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppVersionCheck, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1708
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppVersionCheck }); }
|
1709
|
-
}
|
1710
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppVersionCheck, decorators: [{
|
1711
|
-
type: Injectable
|
1712
|
-
}], ctorParameters: () => [] });
|
1713
|
-
|
1714
1929
|
class AXMEntityLoader {
|
1715
1930
|
constructor() {
|
1716
1931
|
this.injector = inject(Injector);
|
@@ -1824,17 +2039,50 @@ class AXMMenuProvider {
|
|
1824
2039
|
],
|
1825
2040
|
},
|
1826
2041
|
]);
|
2042
|
+
//
|
2043
|
+
context.find('edit-profile').insert([
|
2044
|
+
{
|
2045
|
+
name: 'app-term-help',
|
2046
|
+
text: RootConfig.entities.appTerm.title,
|
2047
|
+
icon: 'fa-light fa-bell',
|
2048
|
+
path: `/${appName}/list-term`,
|
2049
|
+
data: {
|
2050
|
+
// requiredPermission: '',
|
2051
|
+
},
|
2052
|
+
},
|
2053
|
+
], 'after');
|
1827
2054
|
}
|
1828
2055
|
}
|
1829
2056
|
|
2057
|
+
function routesFactory() {
|
2058
|
+
const config = inject(AXP_ENTITY_CONFIG_TOKEN);
|
2059
|
+
const routes = [
|
2060
|
+
{
|
2061
|
+
path: ':app',
|
2062
|
+
component: config.viewers.root(),
|
2063
|
+
children: [
|
2064
|
+
{
|
2065
|
+
path: 'list-term',
|
2066
|
+
loadComponent: () => Promise.resolve().then(function () { return index; }).then((c) => c.AXMListTermsComponent),
|
2067
|
+
},
|
2068
|
+
],
|
2069
|
+
},
|
2070
|
+
];
|
2071
|
+
return routes;
|
2072
|
+
}
|
1830
2073
|
class AXMPlatformManagementModule {
|
1831
2074
|
/**
|
1832
2075
|
* @ignore
|
1833
2076
|
*/
|
1834
2077
|
constructor(appVersionCheck) { }
|
1835
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, deps: [{ token:
|
1836
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, imports: [AXMPlatformManagementCommonModule, i2$
|
2078
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, deps: [{ token: AppTermAndVersionCheck }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
2079
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, imports: [AXMPlatformManagementCommonModule, i2$4.AXPWorkflowModule] }); }
|
1837
2080
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, providers: [
|
2081
|
+
{
|
2082
|
+
provide: ROUTES,
|
2083
|
+
multi: true,
|
2084
|
+
useFactory: routesFactory,
|
2085
|
+
},
|
1838
2086
|
{
|
1839
2087
|
provide: AXMGlobalVariablesService,
|
1840
2088
|
useClass: AXMGlobalVariablesServiceImpl,
|
@@ -1857,15 +2105,18 @@ class AXMPlatformManagementModule {
|
|
1857
2105
|
useClass: AXMMenuProvider,
|
1858
2106
|
multi: true,
|
1859
2107
|
},
|
1860
|
-
|
2108
|
+
AppTermAndVersionCheck,
|
1861
2109
|
], imports: [AXMPlatformManagementCommonModule,
|
1862
2110
|
AXPWorkflowModule.forChild({
|
1863
2111
|
actions: {
|
1864
2112
|
AXMChangeLogPopupAction,
|
1865
2113
|
AXMChangeLogUpdateSettingAction,
|
2114
|
+
AXMNotifyNewTermPopupAction,
|
2115
|
+
AXMTermUpdateSettingAction,
|
1866
2116
|
},
|
1867
2117
|
workflows: {
|
1868
2118
|
'change-log-version': AXMChangeLogWorkflow,
|
2119
|
+
'new-term': AXMNewTermWorkflow,
|
1869
2120
|
},
|
1870
2121
|
})] }); }
|
1871
2122
|
}
|
@@ -1878,15 +2129,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
1878
2129
|
actions: {
|
1879
2130
|
AXMChangeLogPopupAction,
|
1880
2131
|
AXMChangeLogUpdateSettingAction,
|
2132
|
+
AXMNotifyNewTermPopupAction,
|
2133
|
+
AXMTermUpdateSettingAction,
|
1881
2134
|
},
|
1882
2135
|
workflows: {
|
1883
2136
|
'change-log-version': AXMChangeLogWorkflow,
|
2137
|
+
'new-term': AXMNewTermWorkflow,
|
1884
2138
|
},
|
1885
2139
|
}),
|
1886
2140
|
],
|
1887
2141
|
exports: [],
|
1888
2142
|
declarations: [],
|
1889
2143
|
providers: [
|
2144
|
+
{
|
2145
|
+
provide: ROUTES,
|
2146
|
+
multi: true,
|
2147
|
+
useFactory: routesFactory,
|
2148
|
+
},
|
1890
2149
|
{
|
1891
2150
|
provide: AXMGlobalVariablesService,
|
1892
2151
|
useClass: AXMGlobalVariablesServiceImpl,
|
@@ -1909,14 +2168,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
1909
2168
|
useClass: AXMMenuProvider,
|
1910
2169
|
multi: true,
|
1911
2170
|
},
|
1912
|
-
|
2171
|
+
AppTermAndVersionCheck,
|
1913
2172
|
],
|
1914
2173
|
}]
|
1915
|
-
}], ctorParameters: () => [{ type:
|
2174
|
+
}], ctorParameters: () => [{ type: AppTermAndVersionCheck }] });
|
1916
2175
|
|
1917
2176
|
/**
|
1918
2177
|
* Generated bundle index. Do not edit.
|
1919
2178
|
*/
|
1920
2179
|
|
1921
|
-
export { AXMCommonModuleEntityProvider, AXMPlatformManagementModule, RootConfig };
|
2180
|
+
export { AXMAppTermService, AXMAppTermServiceImpl, AXMAppVersionService, AXMAppVersionServiceImpl, AXMAppVersionSlotComponent, AXMChangeLogPopupAction, AXMChangeLogUpdateSettingAction, AXMChangeLogWorkflow, AXMCommonModuleEntityProvider, AXMGlobalVariablesService, AXMGlobalVariablesServiceImpl, AXMListTermsComponent, AXMNewTermWorkflow, AXMNotifyAppComponent, AXMNotifyNewTermPopupAction, AXMPlatformManagementModule, AXMTermUpdateSettingAction, AppTermAndVersionCheck, RootConfig, appTermEntityEntityFactory, appVersionEntityEntityFactory, globalVariableEntityFactory };
|
1922
2181
|
//# sourceMappingURL=acorex-modules-platform-management.mjs.map
|