@acorex/platform 21.0.0-next.1 → 21.0.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auth/index.d.ts +6 -1
- package/common/index.d.ts +208 -207
- package/core/index.d.ts +31 -44
- package/fesm2022/acorex-platform-auth.mjs +10 -3
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/acorex-platform-common.mjs +20 -30
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +100 -93
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4,14 +4,13 @@ import { kebabCase, merge, sortBy, cloneDeep, get, omit } from 'lodash-es';
|
|
|
4
4
|
import { Router, ROUTES, RouterModule } from '@angular/router';
|
|
5
5
|
import { AXPSessionService, AXPSessionStatus } from '@acorex/platform/auth';
|
|
6
6
|
import { Subject, distinctUntilChanged, merge as merge$1 } from 'rxjs';
|
|
7
|
-
import
|
|
8
|
-
import { AXPModuleProviderRegistry, AXPPlatformScope, AXPBroadcastEventService, objectKeyValueTransforms, AXPSystemActionType, AXP_MODULE_PROVIDER_INITIALIZER, AXPAppStartUpProvider, AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, AXPModuleManifestRegistry } from '@acorex/platform/core';
|
|
7
|
+
import { AXPModuleProviderRegistry, AXPPlatformScope, AXPBroadcastEventService, objectKeyValueTransforms, AXPSystemActionType, AXPModuleManifestModule, AXPAppStartUpProvider, AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, AXPModuleManifestRegistry } from '@acorex/platform/core';
|
|
9
8
|
import { AXTranslationService } from '@acorex/core/translation';
|
|
10
9
|
import { AXPWidgetsCatalog } from '@acorex/platform/layout/widget-core';
|
|
11
10
|
import { AXPopupModule, AXPopupService } from '@acorex/components/popup';
|
|
12
11
|
import { AXToastService, AXToastModule } from '@acorex/components/toast';
|
|
13
12
|
import { AXDateTimeModule } from '@acorex/core/date-time';
|
|
14
|
-
import * as
|
|
13
|
+
import * as i1 from '@acorex/platform/workflow';
|
|
15
14
|
import { AXPWorkflowService, createWorkFlowEvent, AXPWorkflowAction, AXPWorkflowError, AXPWorkflowModule } from '@acorex/platform/workflow';
|
|
16
15
|
import { AXPCommandExecutor, AXPCommandService } from '@acorex/platform/runtime';
|
|
17
16
|
import { signalStore, withState, withMethods, patchState, withHooks } from '@ngrx/signals';
|
|
@@ -24,7 +23,7 @@ import * as i6 from '@acorex/components/color-box';
|
|
|
24
23
|
import { AXColorBoxModule } from '@acorex/components/color-box';
|
|
25
24
|
import * as i4 from '@acorex/components/decorators';
|
|
26
25
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
27
|
-
import * as i3
|
|
26
|
+
import * as i3 from '@acorex/components/label';
|
|
28
27
|
import { AXLabelModule } from '@acorex/components/label';
|
|
29
28
|
import * as i2 from '@acorex/components/number-box';
|
|
30
29
|
import { AXNumberBoxModule } from '@acorex/components/number-box';
|
|
@@ -2222,13 +2221,6 @@ class AXPMenuVisibilityService {
|
|
|
2222
2221
|
if (!policy) {
|
|
2223
2222
|
return true; // No policy means visible
|
|
2224
2223
|
}
|
|
2225
|
-
// Check permissions
|
|
2226
|
-
if (policy.permissions && policy.permissions.length > 0) {
|
|
2227
|
-
const permissionKeys = Array.isArray(policy.permissions) ? policy.permissions : [policy.permissions];
|
|
2228
|
-
if (!this.sessionService.authorize(...permissionKeys)) {
|
|
2229
|
-
return false;
|
|
2230
|
-
}
|
|
2231
|
-
}
|
|
2232
2224
|
// Check features
|
|
2233
2225
|
if (policy.features && policy.features.length > 0) {
|
|
2234
2226
|
const featureKeys = Array.isArray(policy.features) ? policy.features : [policy.features];
|
|
@@ -2236,6 +2228,13 @@ class AXPMenuVisibilityService {
|
|
|
2236
2228
|
return false;
|
|
2237
2229
|
}
|
|
2238
2230
|
}
|
|
2231
|
+
// Check permissions
|
|
2232
|
+
if (policy.permissions && policy.permissions.length > 0) {
|
|
2233
|
+
const permissionKeys = Array.isArray(policy.permissions) ? policy.permissions : [policy.permissions];
|
|
2234
|
+
if (!this.sessionService.authorize(...permissionKeys)) {
|
|
2235
|
+
return false;
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2239
2238
|
return true;
|
|
2240
2239
|
}
|
|
2241
2240
|
/**
|
|
@@ -2849,27 +2848,16 @@ class AXPCommonModule {
|
|
|
2849
2848
|
/**
|
|
2850
2849
|
* @ignore
|
|
2851
2850
|
*/
|
|
2852
|
-
constructor(instances
|
|
2851
|
+
constructor(instances) {
|
|
2853
2852
|
instances.forEach((f) => {
|
|
2854
2853
|
f();
|
|
2855
2854
|
});
|
|
2856
|
-
appInitService.registerTask(manifestInitializer.createStartupTask());
|
|
2857
|
-
const moduleProviderInitializer = injector.get(AXP_MODULE_PROVIDER_INITIALIZER);
|
|
2858
|
-
appInitService.registerTask(moduleProviderInitializer.createRequiredModulesTask());
|
|
2859
|
-
appInitService.registerTask({
|
|
2860
|
-
name: 'Settings',
|
|
2861
|
-
statusText: 'Loading Settings ...',
|
|
2862
|
-
priority: 2,
|
|
2863
|
-
run: async () => {
|
|
2864
|
-
await settingsService.load();
|
|
2865
|
-
},
|
|
2866
|
-
});
|
|
2867
|
-
appInitService.registerTask(moduleProviderInitializer.createStartupTask());
|
|
2868
2855
|
}
|
|
2869
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXPCommonModule, deps: [{ token: 'AXPCommonModuleFactory' }
|
|
2870
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.12", ngImport: i0, type: AXPCommonModule, imports: [
|
|
2856
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXPCommonModule, deps: [{ token: 'AXPCommonModuleFactory' }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2857
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.12", ngImport: i0, type: AXPCommonModule, imports: [i1.AXPWorkflowModule, AXPopupModule,
|
|
2871
2858
|
AXDateTimeModule,
|
|
2872
|
-
AXToastModule
|
|
2859
|
+
AXToastModule,
|
|
2860
|
+
AXPModuleManifestModule], exports: [RouterModule] }); }
|
|
2873
2861
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXPCommonModule, providers: [
|
|
2874
2862
|
AXPAppStartUpProvider,
|
|
2875
2863
|
{
|
|
@@ -2921,7 +2909,8 @@ class AXPCommonModule {
|
|
|
2921
2909
|
}),
|
|
2922
2910
|
AXPopupModule,
|
|
2923
2911
|
AXDateTimeModule,
|
|
2924
|
-
AXToastModule,
|
|
2912
|
+
AXToastModule,
|
|
2913
|
+
AXPModuleManifestModule, RouterModule] }); }
|
|
2925
2914
|
}
|
|
2926
2915
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXPCommonModule, decorators: [{
|
|
2927
2916
|
type: NgModule,
|
|
@@ -2941,6 +2930,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
|
|
|
2941
2930
|
AXPopupModule,
|
|
2942
2931
|
AXDateTimeModule,
|
|
2943
2932
|
AXToastModule,
|
|
2933
|
+
AXPModuleManifestModule,
|
|
2944
2934
|
],
|
|
2945
2935
|
exports: [RouterModule],
|
|
2946
2936
|
providers: [
|
|
@@ -2986,7 +2976,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
|
|
|
2986
2976
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2987
2977
|
type: Inject,
|
|
2988
2978
|
args: ['AXPCommonModuleFactory']
|
|
2989
|
-
}] }
|
|
2979
|
+
}] }] });
|
|
2990
2980
|
|
|
2991
2981
|
const ENVIRONMENT = new InjectionToken('ENVIRONMENT');
|
|
2992
2982
|
const AXP_PLATFORM_CONFIG_TOKEN = new InjectionToken('AXP_PLATFORM_CONFIG_TOKEN', {
|
|
@@ -3800,7 +3790,7 @@ class AXMOrgChartPrintPage extends AXBasePageComponent {
|
|
|
3800
3790
|
<ax-icon class="fa-solid fa-print"> </ax-icon>
|
|
3801
3791
|
</ax-button>
|
|
3802
3792
|
</ax-suffix>
|
|
3803
|
-
</ax-footer>`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "ngmodule", type: AXNumberBoxModule }, { kind: "component", type: i2.AXNumberBoxComponent, selector: "ax-number-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "minValue", "maxValue", "showSpinButtons", "thousandsSeparator", "decimals", "changeOnScroll", "step"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress", "thousandsSeparatorChange"] }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i3
|
|
3793
|
+
</ax-footer>`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "ngmodule", type: AXNumberBoxModule }, { kind: "component", type: i2.AXNumberBoxComponent, selector: "ax-number-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "minValue", "maxValue", "showSpinButtons", "thousandsSeparator", "decimals", "changeOnScroll", "step"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress", "thousandsSeparatorChange"] }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i3.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i4.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i4.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: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXColorBoxModule }, { kind: "component", type: i6.AXColorBoxComponent, selector: "ax-color-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "showBadge", "showValue", "showClearButton", "showIcon"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }] }); }
|
|
3804
3794
|
}
|
|
3805
3795
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMOrgChartPrintPage, decorators: [{
|
|
3806
3796
|
type: Component,
|