@acorex/modules 19.3.0-next.0 → 19.3.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/document-management/lib/features/document-explorer/components/create-folder-dialog/create-folder-dialog.component.d.ts +4 -1
- package/document-management/lib/features/document-explorer/document-explorer.component.d.ts +2 -0
- package/document-management/lib/features/shared/document-manager.service.d.ts +2 -0
- package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-CI0m4lpX.mjs → acorex-modules-document-management-acorex-modules-document-management-C36haVZ_.mjs} +81 -48
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-C36haVZ_.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-D8anTs3Q.mjs → acorex-modules-document-management-create-folder-dialog.component-C9YP1aFi.mjs} +33 -15
- package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-C9YP1aFi.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-details-view.component-z05RykKt.mjs → acorex-modules-document-management-details-view.component-BFMgAxeK.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-details-view.component-z05RykKt.mjs.map → acorex-modules-document-management-details-view.component-BFMgAxeK.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-BeiXQNAw.mjs → acorex-modules-document-management-drive-choose.component-Bo-I7TN5.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-BeiXQNAw.mjs.map → acorex-modules-document-management-drive-choose.component-Bo-I7TN5.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DctO0SZ7.mjs → acorex-modules-document-management-large-icons-view.component-CZ-GUtnO.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DctO0SZ7.mjs.map → acorex-modules-document-management-large-icons-view.component-CZ-GUtnO.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-CtCdVI_p.mjs → acorex-modules-document-management-large-tiles-view.component-Cw5yZ851.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-CtCdVI_p.mjs.map → acorex-modules-document-management-large-tiles-view.component-Cw5yZ851.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-list-view.component-Cz2wNqhM.mjs → acorex-modules-document-management-list-view.component-BPkaAGjR.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-list-view.component-Cz2wNqhM.mjs.map → acorex-modules-document-management-list-view.component-BPkaAGjR.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-DB868l1X.mjs → acorex-modules-document-management-rename-node-dialog.component-DEhPxW3b.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-DB868l1X.mjs.map → acorex-modules-document-management-rename-node-dialog.component-DEhPxW3b.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-B_O5Qpmi.mjs → acorex-modules-document-management-small-icons-view.component-Cz-sHFPj.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-B_O5Qpmi.mjs.map → acorex-modules-document-management-small-icons-view.component-Cz-sHFPj.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-b2lauUIY.mjs → acorex-modules-document-management-small-tiles-view.component-C_SlJ79h.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-b2lauUIY.mjs.map → acorex-modules-document-management-small-tiles-view.component-C_SlJ79h.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +1 -1
- package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-HYqIufS1.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-C3bCqH0S.mjs} +7 -7
- package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-HYqIufS1.mjs.map → acorex-modules-form-template-management-acorex-modules-form-template-management-C3bCqH0S.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-category.entity-CLFAo0Cn.mjs → acorex-modules-form-template-management-category.entity-B8FoSfDd.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-category.entity-CLFAo0Cn.mjs.map → acorex-modules-form-template-management-category.entity-B8FoSfDd.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-setting.provider-DgHwqlhz.mjs → acorex-modules-form-template-management-setting.provider-2gDLkJ82.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-setting.provider-DgHwqlhz.mjs.map → acorex-modules-form-template-management-setting.provider-2gDLkJ82.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-CYAyug_g.mjs → acorex-modules-form-template-management-template-widget-edit.component-CGLJ_4tB.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-CYAyug_g.mjs.map → acorex-modules-form-template-management-template-widget-edit.component-CGLJ_4tB.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-template.entity-DGU1QNSN.mjs → acorex-modules-form-template-management-template.entity-Cm57FCm7.mjs} +4 -4
- package/fesm2022/acorex-modules-form-template-management-template.entity-Cm57FCm7.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-DXJxzTfM.mjs → acorex-modules-form-template-management-viewer-popup.component-C8QVMY0f.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-DXJxzTfM.mjs.map → acorex-modules-form-template-management-viewer-popup.component-C8QVMY0f.mjs.map} +1 -1
- package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-DNUdH0N9.mjs → acorex-modules-platform-management-acorex-modules-platform-management-C-vMSeD0.mjs} +158 -115
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-C-vMSeD0.mjs.map +1 -0
- package/fesm2022/{acorex-modules-platform-management-list-version.component-D3yLcmjw.mjs → acorex-modules-platform-management-list-version.component-EHtlPye1.mjs} +2 -2
- package/fesm2022/acorex-modules-platform-management-list-version.component-EHtlPye1.mjs.map +1 -0
- package/fesm2022/{acorex-modules-platform-management-setting.provider-CQCoLwHW.mjs → acorex-modules-platform-management-setting.provider-Bbd_enhk.mjs} +2 -2
- package/fesm2022/acorex-modules-platform-management-setting.provider-Bbd_enhk.mjs.map +1 -0
- package/fesm2022/acorex-modules-platform-management.mjs +1 -1
- package/notification-management/lib/{components → features/components}/admin-notification-item/admin-notification-item.component.d.ts +1 -1
- package/notification-management/lib/{components → features/components}/admin-notification-panel/admin-notification-panel.component.d.ts +1 -1
- package/package.json +1 -1
- package/platform-management/index.d.ts +1 -1
- package/platform-management/lib/entities/app-term/index.d.ts +2 -2
- package/platform-management/lib/entities/app-version/index.d.ts +2 -2
- package/platform-management/lib/entities/index.d.ts +0 -1
- package/platform-management/lib/entities/promotion/index.d.ts +1 -1
- package/platform-management/lib/features/app-terms/check-terms.service.d.ts +11 -0
- package/platform-management/lib/{entities/app-term → features/app-terms}/components/notify-app/notify-app.component.d.ts +1 -1
- package/platform-management/lib/{entities/app-term → features/app-terms}/pages/list/list-terms.component.d.ts +2 -2
- package/platform-management/lib/{entities/check-version.d.ts → features/app-version/check-version.service.d.ts} +3 -4
- package/platform-management/lib/{entities → features}/app-version/components/list-versions/list-version.component.d.ts +1 -1
- package/platform-management/lib/{entities → features}/app-version/components/notify-app/notify-app.component.d.ts +1 -1
- package/platform-management/lib/{common → features/common}/index.d.ts +1 -1
- package/platform-management/lib/{entities → features}/promotion/components/promotion-slot/promotion-slot.component.d.ts +2 -2
- package/platform-management/lib/platform-management.module.d.ts +4 -3
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-CI0m4lpX.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-D8anTs3Q.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-template.entity-DGU1QNSN.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-DNUdH0N9.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-list-version.component-D3yLcmjw.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-setting.provider-CQCoLwHW.mjs.map +0 -1
- /package/notification-management/lib/{components → features/components}/admin-notification-slot/admin-notification-slot.component.d.ts +0 -0
- /package/platform-management/lib/{entities/app-term → features/app-terms}/pages/index.d.ts +0 -0
- /package/platform-management/lib/{entities/app-term → features/app-terms}/workflows/index.d.ts +0 -0
- /package/platform-management/lib/{entities/app-term → features/app-terms}/workflows/notify-new-term.workflow.d.ts +0 -0
- /package/platform-management/lib/{entities → features}/app-version/components/index.d.ts +0 -0
- /package/platform-management/lib/{entities → features}/app-version/components/slots/app-version-slot.component.d.ts +0 -0
- /package/platform-management/lib/{entities → features}/app-version/workflows/change-log.workflow.d.ts +0 -0
- /package/platform-management/lib/{entities → features}/app-version/workflows/index.d.ts +0 -0
- /package/platform-management/lib/{entities → features}/app-version/workflows/show-release-notes.workflow.d.ts +0 -0
- /package/platform-management/lib/{common → features/common}/common.module.d.ts +0 -0
- /package/platform-management/lib/{common → features/common}/entity.provider.d.ts +0 -0
- /package/platform-management/lib/{common → features/common}/regional/data-source.provider.d.ts +0 -0
- /package/platform-management/lib/{common → features/common}/regional/index.d.ts +0 -0
- /package/platform-management/lib/{common → features/common}/regional/language-slot/language-slot.component.d.ts +0 -0
- /package/platform-management/lib/{common → features/common}/regional/regional-store.service.d.ts +0 -0
- /package/platform-management/lib/{common → features/common}/regional/setting.keys.d.ts +0 -0
- /package/platform-management/lib/{common → features/common}/regional/setting.provider.d.ts +0 -0
- /package/platform-management/lib/{entities → features}/promotion/components/index.d.ts +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as i1$1 from '@acorex/platform/common';
|
2
|
-
import { AXPSettingService, AXPRegionalService, AXPComponentSlotModule, AXP_SETTING_DEFINITION_PROVIDER, createAllQueryView, AXPEntityCommandScope, AXPEntityQueryType, AXP_APP_VERSION_PROVIDER,
|
2
|
+
import { AXPSettingService, AXPRegionalService, AXPComponentSlotModule, AXP_SETTING_DEFINITION_PROVIDER, createAllQueryView, AXPEntityCommandScope, AXPEntityQueryType, AXP_APP_VERSION_PROVIDER, createQueryView, AXPFileStorageService, AXPAppStartUpService, AXP_MENU_PROVIDER } from '@acorex/platform/common';
|
3
3
|
import { AXP_ENTITY_DEFINITION_LOADER, AXMEntityCrudServiceImpl, AXPEntityDefinitionRegistryService, AXPEntityResolver, AXPEntityService, AXP_ENTITY_CONFIG_TOKEN } from '@acorex/platform/layout/entity';
|
4
|
-
import * as
|
4
|
+
import * as i3$2 from '@acorex/platform/workflow';
|
5
5
|
import { AXPWorkflowAction, AXPWorkflowService, AXPWorkflowModule } from '@acorex/platform/workflow';
|
6
6
|
import * as i0 from '@angular/core';
|
7
7
|
import { inject, Injector, Injectable, signal, Component, NgModule, HostListener, Input } from '@angular/core';
|
@@ -36,9 +36,9 @@ import { AXCheckBoxModule } from '@acorex/components/check-box';
|
|
36
36
|
import * as i2$2 from '@acorex/components/label';
|
37
37
|
import { AXLabelModule } from '@acorex/components/label';
|
38
38
|
import { AXSafePipe } from '@acorex/core/pipes';
|
39
|
-
import { AXPSessionService } from '@acorex/platform/auth';
|
40
39
|
import { upperFirst, camelCase } from 'lodash-es';
|
41
40
|
import get from 'lodash-es/get';
|
41
|
+
import { AXPSessionService } from '@acorex/platform/auth';
|
42
42
|
import { firstValueFrom } from 'rxjs';
|
43
43
|
|
44
44
|
class AXMCommonModuleEntityProvider {
|
@@ -371,7 +371,7 @@ class AXMPlatformManagementCommonModule {
|
|
371
371
|
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
372
372
|
useFactory: async () => {
|
373
373
|
const injector = inject(Injector);
|
374
|
-
const provider = (await import('./acorex-modules-platform-management-setting.provider-
|
374
|
+
const provider = (await import('./acorex-modules-platform-management-setting.provider-Bbd_enhk.mjs')).AXMRegionalSettingProvider;
|
375
375
|
return new provider(injector);
|
376
376
|
},
|
377
377
|
multi: true
|
@@ -415,7 +415,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
415
415
|
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
416
416
|
useFactory: async () => {
|
417
417
|
const injector = inject(Injector);
|
418
|
-
const provider = (await import('./acorex-modules-platform-management-setting.provider-
|
418
|
+
const provider = (await import('./acorex-modules-platform-management-setting.provider-Bbd_enhk.mjs')).AXMRegionalSettingProvider;
|
419
419
|
return new provider(injector);
|
420
420
|
},
|
421
421
|
multi: true
|
@@ -1558,80 +1558,6 @@ const AXMWhatsNewWorkflow = {
|
|
1558
1558
|
},
|
1559
1559
|
};
|
1560
1560
|
|
1561
|
-
class AppTermAndVersionCheck {
|
1562
|
-
constructor() {
|
1563
|
-
this.versionProvider = inject(AXP_APP_VERSION_PROVIDER);
|
1564
|
-
this.settingsService = inject(AXPSettingService);
|
1565
|
-
this.workflowService = inject(AXPWorkflowService);
|
1566
|
-
this.appVersionService = inject(AXMAppVersionService);
|
1567
|
-
this.appTermService = inject(AXMAppTermService);
|
1568
|
-
this.appInitService = inject(AXPAppStartUpService);
|
1569
|
-
this.sessionService = inject(AXPSessionService);
|
1570
|
-
//check new version
|
1571
|
-
this.appInitService.registerTask({
|
1572
|
-
name: 'Version',
|
1573
|
-
statusText: 'Check New Version...',
|
1574
|
-
run: async () => {
|
1575
|
-
this.sessionService.application$.subscribe(async (app) => {
|
1576
|
-
const current = (await this.versionProvider.provider()).version;
|
1577
|
-
const initVersion = await this.settingsService.scope(AXPPlatformScope.User).get(`init-application-version`);
|
1578
|
-
if (initVersion == null) {
|
1579
|
-
await this.settingsService.scope(AXPPlatformScope.User).set(`init-application-version`, current);
|
1580
|
-
}
|
1581
|
-
else {
|
1582
|
-
if (app != null) {
|
1583
|
-
const versions = await this.appVersionService.query();
|
1584
|
-
for (const v of versions.items) {
|
1585
|
-
if (v.versionNumber == current && v.versionNumber != initVersion) {
|
1586
|
-
const isSee = await this.settingsService
|
1587
|
-
.scope(AXPPlatformScope.User)
|
1588
|
-
.get(`is-see-check-version-${v.versionNumber}`);
|
1589
|
-
if (!isSee) {
|
1590
|
-
setTimeout(() => {
|
1591
|
-
this.workflowService.execute('show-what-is-new', v);
|
1592
|
-
}, 300);
|
1593
|
-
}
|
1594
|
-
}
|
1595
|
-
}
|
1596
|
-
}
|
1597
|
-
}
|
1598
|
-
});
|
1599
|
-
},
|
1600
|
-
});
|
1601
|
-
//check new term
|
1602
|
-
this.appInitService.registerTask({
|
1603
|
-
name: 'Terms',
|
1604
|
-
statusText: 'Check New Terms And Conditions...',
|
1605
|
-
run: async () => {
|
1606
|
-
this.sessionService.application$.subscribe(async (app) => {
|
1607
|
-
if (app != null) {
|
1608
|
-
const filterTerms = [];
|
1609
|
-
const terms = await this.appTermService.query();
|
1610
|
-
for (const term of terms.items) {
|
1611
|
-
const isConfirm = await this.settingsService
|
1612
|
-
.scope(AXPPlatformScope.User)
|
1613
|
-
.get(`is-confirm-term-${term.id}`);
|
1614
|
-
if (!isConfirm) {
|
1615
|
-
filterTerms.push(term);
|
1616
|
-
}
|
1617
|
-
}
|
1618
|
-
if (filterTerms.length > 0) {
|
1619
|
-
setTimeout(() => {
|
1620
|
-
this.workflowService.execute('new-term', filterTerms);
|
1621
|
-
}, 500);
|
1622
|
-
}
|
1623
|
-
}
|
1624
|
-
});
|
1625
|
-
},
|
1626
|
-
});
|
1627
|
-
}
|
1628
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppTermAndVersionCheck, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1629
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppTermAndVersionCheck }); }
|
1630
|
-
}
|
1631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppTermAndVersionCheck, decorators: [{
|
1632
|
-
type: Injectable
|
1633
|
-
}], ctorParameters: () => [] });
|
1634
|
-
|
1635
1561
|
const AXM_COLUMN_DEF_WIDGET = [
|
1636
1562
|
{
|
1637
1563
|
type: 'grid-row-layout',
|
@@ -2578,6 +2504,16 @@ async function globalVariableEntityFactory(injector) {
|
|
2578
2504
|
rule: 'required',
|
2579
2505
|
},
|
2580
2506
|
],
|
2507
|
+
options: {
|
2508
|
+
filter: {
|
2509
|
+
inline: {
|
2510
|
+
enabled: true,
|
2511
|
+
},
|
2512
|
+
},
|
2513
|
+
sort: {
|
2514
|
+
enabled: true,
|
2515
|
+
},
|
2516
|
+
},
|
2581
2517
|
},
|
2582
2518
|
{
|
2583
2519
|
name: 'title',
|
@@ -2594,6 +2530,16 @@ async function globalVariableEntityFactory(injector) {
|
|
2594
2530
|
rule: 'required',
|
2595
2531
|
},
|
2596
2532
|
],
|
2533
|
+
options: {
|
2534
|
+
filter: {
|
2535
|
+
inline: {
|
2536
|
+
enabled: true,
|
2537
|
+
},
|
2538
|
+
},
|
2539
|
+
sort: {
|
2540
|
+
enabled: true,
|
2541
|
+
},
|
2542
|
+
},
|
2597
2543
|
},
|
2598
2544
|
{
|
2599
2545
|
name: 'value',
|
@@ -2640,6 +2586,16 @@ async function globalVariableEntityFactory(injector) {
|
|
2640
2586
|
rule: 'required',
|
2641
2587
|
},
|
2642
2588
|
],
|
2589
|
+
options: {
|
2590
|
+
filter: {
|
2591
|
+
advance: {
|
2592
|
+
enabled: true,
|
2593
|
+
},
|
2594
|
+
},
|
2595
|
+
sort: {
|
2596
|
+
enabled: true,
|
2597
|
+
},
|
2598
|
+
},
|
2643
2599
|
},
|
2644
2600
|
],
|
2645
2601
|
columns: [{ name: 'title' }, { name: 'dataType' }, { name: 'value' }],
|
@@ -4181,7 +4137,6 @@ var index = /*#__PURE__*/Object.freeze({
|
|
4181
4137
|
AXMPromotionSlotComponent: AXMPromotionSlotComponent,
|
4182
4138
|
AXMTermUpdateSettingAction: AXMTermUpdateSettingAction,
|
4183
4139
|
AXMWhatsNewWorkflow: AXMWhatsNewWorkflow,
|
4184
|
-
AppTermAndVersionCheck: AppTermAndVersionCheck,
|
4185
4140
|
appTermEntityEntityFactory: appTermEntityEntityFactory,
|
4186
4141
|
appVersionEntityEntityFactory: appVersionEntityEntityFactory,
|
4187
4142
|
dataSourceEntityFactory: dataSourceEntityFactory,
|
@@ -4191,33 +4146,6 @@ var index = /*#__PURE__*/Object.freeze({
|
|
4191
4146
|
promotionEntityFactory: promotionEntityFactory
|
4192
4147
|
});
|
4193
4148
|
|
4194
|
-
class AXMShowReleaseNotesPopupAction extends AXPWorkflowAction {
|
4195
|
-
constructor() {
|
4196
|
-
super(...arguments);
|
4197
|
-
this.popupService = inject(AXPopupService);
|
4198
|
-
}
|
4199
|
-
async execute(context) {
|
4200
|
-
const scope = RootConfig.config.i18n;
|
4201
|
-
const comp = await (await import('./acorex-modules-platform-management-list-version.component-D3yLcmjw.mjs')).AXMListVersionComponent;
|
4202
|
-
this.popupService.open(comp, {
|
4203
|
-
title: `t('release-notes',{scope: "${scope}"})`,
|
4204
|
-
});
|
4205
|
-
}
|
4206
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMShowReleaseNotesPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
4207
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMShowReleaseNotesPopupAction }); }
|
4208
|
-
}
|
4209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMShowReleaseNotesPopupAction, decorators: [{
|
4210
|
-
type: Injectable
|
4211
|
-
}] });
|
4212
|
-
const AXMShowReleaseNotesWorkflow = {
|
4213
|
-
startStepId: 'show-popup',
|
4214
|
-
steps: {
|
4215
|
-
'show-popup': {
|
4216
|
-
action: 'AXMShowReleaseNotesPopupAction',
|
4217
|
-
},
|
4218
|
-
},
|
4219
|
-
};
|
4220
|
-
|
4221
4149
|
class AXMDynamicDataSourceProvider {
|
4222
4150
|
constructor() {
|
4223
4151
|
this.dataSourceService = inject(AXMDataSourceService);
|
@@ -4332,6 +4260,119 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
4332
4260
|
type: Injectable
|
4333
4261
|
}] });
|
4334
4262
|
|
4263
|
+
class AppTermsCheckService {
|
4264
|
+
constructor() {
|
4265
|
+
this.settingsService = inject(AXPSettingService);
|
4266
|
+
this.workflowService = inject(AXPWorkflowService);
|
4267
|
+
this.appTermService = inject(AXMAppTermService);
|
4268
|
+
this.appInitService = inject(AXPAppStartUpService);
|
4269
|
+
this.sessionService = inject(AXPSessionService);
|
4270
|
+
this.appInitService.registerTask({
|
4271
|
+
name: 'Terms',
|
4272
|
+
statusText: 'Check New Terms And Conditions...',
|
4273
|
+
run: async () => {
|
4274
|
+
this.sessionService.application$.subscribe(async (app) => {
|
4275
|
+
if (app != null) {
|
4276
|
+
const filterTerms = [];
|
4277
|
+
const terms = await this.appTermService.query();
|
4278
|
+
for (const term of terms.items) {
|
4279
|
+
const isConfirm = await this.settingsService
|
4280
|
+
.scope(AXPPlatformScope.User)
|
4281
|
+
.get(`is-confirm-term-${term.id}`);
|
4282
|
+
if (!isConfirm) {
|
4283
|
+
filterTerms.push(term);
|
4284
|
+
}
|
4285
|
+
}
|
4286
|
+
if (filterTerms.length > 0) {
|
4287
|
+
setTimeout(() => {
|
4288
|
+
this.workflowService.execute('new-term', filterTerms);
|
4289
|
+
}, 500);
|
4290
|
+
}
|
4291
|
+
}
|
4292
|
+
});
|
4293
|
+
},
|
4294
|
+
});
|
4295
|
+
}
|
4296
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppTermsCheckService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
4297
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppTermsCheckService }); }
|
4298
|
+
}
|
4299
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppTermsCheckService, decorators: [{
|
4300
|
+
type: Injectable
|
4301
|
+
}], ctorParameters: () => [] });
|
4302
|
+
|
4303
|
+
class AppVersionCheckService {
|
4304
|
+
constructor() {
|
4305
|
+
this.versionProvider = inject(AXP_APP_VERSION_PROVIDER);
|
4306
|
+
this.settingsService = inject(AXPSettingService);
|
4307
|
+
this.workflowService = inject(AXPWorkflowService);
|
4308
|
+
this.appVersionService = inject(AXMAppVersionService);
|
4309
|
+
this.appInitService = inject(AXPAppStartUpService);
|
4310
|
+
this.sessionService = inject(AXPSessionService);
|
4311
|
+
this.appInitService.registerTask({
|
4312
|
+
name: 'Version',
|
4313
|
+
statusText: 'Check New Version...',
|
4314
|
+
run: async () => {
|
4315
|
+
this.sessionService.application$.subscribe(async (app) => {
|
4316
|
+
const current = (await this.versionProvider.provider()).version;
|
4317
|
+
const initVersion = await this.settingsService.scope(AXPPlatformScope.User).get(`init-application-version`);
|
4318
|
+
if (initVersion == null) {
|
4319
|
+
await this.settingsService.scope(AXPPlatformScope.User).set(`init-application-version`, current);
|
4320
|
+
}
|
4321
|
+
else {
|
4322
|
+
if (app != null) {
|
4323
|
+
const versions = await this.appVersionService.query();
|
4324
|
+
for (const v of versions.items) {
|
4325
|
+
if (v.versionNumber == current && v.versionNumber != initVersion) {
|
4326
|
+
const isSee = await this.settingsService
|
4327
|
+
.scope(AXPPlatformScope.User)
|
4328
|
+
.get(`is-see-check-version-${v.versionNumber}`);
|
4329
|
+
if (!isSee) {
|
4330
|
+
setTimeout(() => {
|
4331
|
+
this.workflowService.execute('show-what-is-new', v);
|
4332
|
+
}, 300);
|
4333
|
+
}
|
4334
|
+
}
|
4335
|
+
}
|
4336
|
+
}
|
4337
|
+
}
|
4338
|
+
});
|
4339
|
+
},
|
4340
|
+
});
|
4341
|
+
}
|
4342
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppVersionCheckService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
4343
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppVersionCheckService }); }
|
4344
|
+
}
|
4345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AppVersionCheckService, decorators: [{
|
4346
|
+
type: Injectable
|
4347
|
+
}], ctorParameters: () => [] });
|
4348
|
+
|
4349
|
+
class AXMShowReleaseNotesPopupAction extends AXPWorkflowAction {
|
4350
|
+
constructor() {
|
4351
|
+
super(...arguments);
|
4352
|
+
this.popupService = inject(AXPopupService);
|
4353
|
+
}
|
4354
|
+
async execute(context) {
|
4355
|
+
const scope = RootConfig.config.i18n;
|
4356
|
+
const comp = await (await import('./acorex-modules-platform-management-list-version.component-EHtlPye1.mjs')).AXMListVersionComponent;
|
4357
|
+
this.popupService.open(comp, {
|
4358
|
+
title: `t('release-notes',{scope: "${scope}"})`,
|
4359
|
+
});
|
4360
|
+
}
|
4361
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMShowReleaseNotesPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
4362
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMShowReleaseNotesPopupAction }); }
|
4363
|
+
}
|
4364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMShowReleaseNotesPopupAction, decorators: [{
|
4365
|
+
type: Injectable
|
4366
|
+
}] });
|
4367
|
+
const AXMShowReleaseNotesWorkflow = {
|
4368
|
+
startStepId: 'show-popup',
|
4369
|
+
steps: {
|
4370
|
+
'show-popup': {
|
4371
|
+
action: 'AXMShowReleaseNotesPopupAction',
|
4372
|
+
},
|
4373
|
+
},
|
4374
|
+
};
|
4375
|
+
|
4335
4376
|
class AXMMenuProvider {
|
4336
4377
|
constructor() {
|
4337
4378
|
this.entityService = inject(AXPEntityService);
|
@@ -4504,9 +4545,9 @@ class AXMPlatformManagementModule {
|
|
4504
4545
|
/**
|
4505
4546
|
* @ignore
|
4506
4547
|
*/
|
4507
|
-
constructor(appVersionCheck) { }
|
4508
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, deps: [{ token:
|
4509
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, imports: [AXMPlatformManagementCommonModule,
|
4548
|
+
constructor(appVersionCheck, appTermsCheck) { }
|
4549
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, deps: [{ token: AppVersionCheckService }, { token: AppTermsCheckService }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
4550
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, imports: [AXMPlatformManagementCommonModule, i3$2.AXPWorkflowModule, i1$1.AXPComponentSlotModule] }); }
|
4510
4551
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, providers: [
|
4511
4552
|
{
|
4512
4553
|
provide: ROUTES,
|
@@ -4556,7 +4597,8 @@ class AXMPlatformManagementModule {
|
|
4556
4597
|
useClass: AXMDynamicDataSourceProvider,
|
4557
4598
|
multi: true,
|
4558
4599
|
},
|
4559
|
-
|
4600
|
+
AppVersionCheckService,
|
4601
|
+
AppTermsCheckService,
|
4560
4602
|
], imports: [AXMPlatformManagementCommonModule,
|
4561
4603
|
AXPWorkflowModule.forChild({
|
4562
4604
|
actions: {
|
@@ -4690,14 +4732,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
4690
4732
|
useClass: AXMDynamicDataSourceProvider,
|
4691
4733
|
multi: true,
|
4692
4734
|
},
|
4693
|
-
|
4735
|
+
AppVersionCheckService,
|
4736
|
+
AppTermsCheckService,
|
4694
4737
|
],
|
4695
4738
|
}]
|
4696
|
-
}], ctorParameters: () => [{ type:
|
4739
|
+
}], ctorParameters: () => [{ type: AppVersionCheckService }, { type: AppTermsCheckService }] });
|
4697
4740
|
|
4698
4741
|
/**
|
4699
4742
|
* Generated bundle index. Do not edit.
|
4700
4743
|
*/
|
4701
4744
|
|
4702
|
-
export { AXPRegionalSetting as A,
|
4703
|
-
//# sourceMappingURL=acorex-modules-platform-management-acorex-modules-platform-management-
|
4745
|
+
export { AXPRegionalSetting as A, AXMPMetaDataDefinitionServiceImpl as B, metaDataDefinitionCategoryEntityFactory as C, AXMMetaDataDefinitionCategoryService as D, AXMMetaDataDefinitionCategoryServiceImpl as E, AXMPromotionSlotComponent as F, promotionEntityFactory as G, AXMAppPromotionService as H, AXMPromotionServiceImpl as I, RootConfig as R, AXMAppVersionService as a, AXMPlatformManagementModule as b, AXPRegionalStoreService as c, AXMCommonModuleEntityProvider as d, appTermEntityEntityFactory as e, AXMAppTermService as f, AXMAppTermServiceImpl as g, AXMListTermsComponent as h, AXMNotifyNewTermPopupAction as i, AXMTermUpdateSettingAction as j, AXMNewTermWorkflow as k, appVersionEntityEntityFactory as l, AXMAppVersionServiceImpl as m, AXMNotifyAppComponent as n, AXMAppVersionSlotComponent as o, AXMChangeLogPopupAction as p, AXMChangeLogUpdateSettingAction as q, AXMWhatsNewWorkflow as r, dataSourceEntityFactory as s, AXMDataSourceService as t, AXMDataSourceServiceImpl as u, globalVariableEntityFactory as v, AXMGlobalVariablesService as w, AXMGlobalVariablesServiceImpl as x, metaDataDefinitionFactory as y, AXMMetaDataDefinitionService as z };
|
4746
|
+
//# sourceMappingURL=acorex-modules-platform-management-acorex-modules-platform-management-C-vMSeD0.mjs.map
|