@acorex/platform 21.0.0-next.1 → 21.0.0-next.11
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 +235 -5
- package/common/index.d.ts +220 -218
- package/core/index.d.ts +370 -434
- package/fesm2022/acorex-platform-auth.mjs +200 -37
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/{acorex-platform-common-common-settings.provider-zhqNP3xb.mjs → acorex-platform-common-common-settings.provider-O8usQ0VC.mjs} +4 -4
- package/fesm2022/{acorex-platform-common-common-settings.provider-zhqNP3xb.mjs.map → acorex-platform-common-common-settings.provider-O8usQ0VC.mjs.map} +1 -1
- package/fesm2022/acorex-platform-common.mjs +215 -198
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +548 -585
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-domain.mjs +16 -16
- package/fesm2022/acorex-platform-domain.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +84 -37
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +303 -195
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +72 -72
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +3528 -1698
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +25 -17
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +190 -110
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-button-widget-designer.component-C3VoBb_b.mjs → acorex-platform-layout-widgets-button-widget-designer.component-D-NsRvRl.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-button-widget-designer.component-C3VoBb_b.mjs.map → acorex-platform-layout-widgets-button-widget-designer.component-D-NsRvRl.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-CxrsI6Hn.mjs → acorex-platform-layout-widgets-file-list-popup.component-CCcKHSHj.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-CxrsI6Hn.mjs.map → acorex-platform-layout-widgets-file-list-popup.component-CCcKHSHj.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-image-preview.popup-V31OpYah.mjs → acorex-platform-layout-widgets-image-preview.popup-IrT52Nh1.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-image-preview.popup-V31OpYah.mjs.map → acorex-platform-layout-widgets-image-preview.popup-IrT52Nh1.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-page-widget-designer.component-BtZMBxYp.mjs → acorex-platform-layout-widgets-page-widget-designer.component-DFbfh-OX.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-page-widget-designer.component-BtZMBxYp.mjs.map → acorex-platform-layout-widgets-page-widget-designer.component-DFbfh-OX.mjs.map} +1 -1
- package/fesm2022/acorex-platform-layout-widgets-repeater-widget-column.component-Dw6naXvq.mjs +111 -0
- package/fesm2022/acorex-platform-layout-widgets-repeater-widget-column.component-Dw6naXvq.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-edit-popup.component-Ck7-wpT2.mjs → acorex-platform-layout-widgets-tabular-data-edit-popup.component--4R3TUdJ.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-edit-popup.component-Ck7-wpT2.mjs.map → acorex-platform-layout-widgets-tabular-data-edit-popup.component--4R3TUdJ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-view-popup.component-y8vjUiVs.mjs → acorex-platform-layout-widgets-tabular-data-view-popup.component-BeVQuHFj.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-view-popup.component-y8vjUiVs.mjs.map → acorex-platform-layout-widgets-tabular-data-view-popup.component-BeVQuHFj.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-text-block-widget-designer.component-Df1BFkSa.mjs → acorex-platform-layout-widgets-text-block-widget-designer.component-CdQxqi0D.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-text-block-widget-designer.component-Df1BFkSa.mjs.map → acorex-platform-layout-widgets-text-block-widget-designer.component-CdQxqi0D.mjs.map} +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +2247 -1226
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-native.mjs +7 -7
- package/fesm2022/acorex-platform-native.mjs.map +1 -1
- package/fesm2022/acorex-platform-runtime.mjs +43 -43
- package/fesm2022/acorex-platform-runtime.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-VIGuU5M4.mjs → acorex-platform-themes-default-entity-master-create-view.component-D2ucwC3F.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-VIGuU5M4.mjs.map → acorex-platform-themes-default-entity-master-create-view.component-D2ucwC3F.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-DyDa_hyd.mjs → acorex-platform-themes-default-entity-master-list-view.component-CD4Q_UIG.mjs} +13 -13
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-CD4Q_UIG.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-Ua3ZA5hk.mjs → acorex-platform-themes-default-entity-master-modify-view.component-D5BYbUGK.mjs} +7 -8
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-D5BYbUGK.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-eMBby9k4.mjs → acorex-platform-themes-default-entity-master-single-view.component-Cf4ei46_.mjs} +7 -7
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-eMBby9k4.mjs.map → acorex-platform-themes-default-entity-master-single-view.component-Cf4ei46_.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-error-401.component-cfREo88K.mjs → acorex-platform-themes-default-error-401.component-DdMToZ9q.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-error-401.component-cfREo88K.mjs.map → acorex-platform-themes-default-error-401.component-DdMToZ9q.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-error-404.component-CdCV5ZoA.mjs → acorex-platform-themes-default-error-404.component-CKsa5aPE.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-error-404.component-CdCV5ZoA.mjs.map → acorex-platform-themes-default-error-404.component-CKsa5aPE.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-error-offline.component-E7SzBcAt.mjs → acorex-platform-themes-default-error-offline.component-1gxFTAuX.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-error-offline.component-E7SzBcAt.mjs.map → acorex-platform-themes-default-error-offline.component-1gxFTAuX.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +39 -42
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-column.component-C0EpfU2k.mjs → acorex-platform-themes-shared-icon-chooser-column.component-Ds8eRMuV.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-column.component-C0EpfU2k.mjs.map → acorex-platform-themes-shared-icon-chooser-column.component-Ds8eRMuV.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-view.component-9W52W6Nu.mjs → acorex-platform-themes-shared-icon-chooser-view.component-Dv38sOzr.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-view.component-9W52W6Nu.mjs.map → acorex-platform-themes-shared-icon-chooser-view.component-Dv38sOzr.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-column.component-DTnfRy5f.mjs → acorex-platform-themes-shared-theme-color-chooser-column.component-DcO6P6OG.mjs} +11 -11
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-DcO6P6OG.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-view.component-DY0JtT1v.mjs → acorex-platform-themes-shared-theme-color-chooser-view.component-B7T2qtaI.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-view.component-DY0JtT1v.mjs.map → acorex-platform-themes-shared-theme-color-chooser-view.component-B7T2qtaI.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +41 -41
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +1529 -1758
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/builder/index.d.ts +15 -3
- package/layout/components/index.d.ts +23 -6
- package/layout/entity/index.d.ts +438 -159
- package/layout/views/index.d.ts +16 -11
- package/layout/widget-core/index.d.ts +47 -10
- package/layout/widgets/index.d.ts +213 -42
- package/package.json +5 -5
- package/themes/default/index.d.ts +0 -1
- package/workflow/index.d.ts +1050 -1759
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DyDa_hyd.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Ua3ZA5hk.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-DTnfRy5f.mjs.map +0 -1
package/common/index.d.ts
CHANGED
|
@@ -3,16 +3,17 @@ import { InjectionToken, EnvironmentProviders, Injector, ErrorHandler, ModuleWit
|
|
|
3
3
|
import { AXStyleColorType, AXDataSourceOperator, AXDataSourceFilterOption } from '@acorex/cdk/common';
|
|
4
4
|
import * as i2 from '@acorex/components/popup';
|
|
5
5
|
import { AXPopupSizeType, AXPopupService } from '@acorex/components/popup';
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
6
|
+
import * as i5 from '@acorex/platform/core';
|
|
7
|
+
import { AXPValueTransformerFunctions, AXPGridLayoutOptions, AXPValidationRules, AXPSystemActionType, AXPMetaData, AXPOptionsData, AXPLogoConfig, AXPNavigateActionCommand, AXPExecuteCommand, AXPEntityReference, AXPApplicationUserReference, AXPPlatformScopeKey, AXPPlatformScope, AXPWidgetTriggers, AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviderContext } from '@acorex/platform/core';
|
|
8
|
+
import { AXPWidgetTypesMap, AXPMetaDataDefinition, AXPWidgetNode } from '@acorex/platform/layout/widget-core';
|
|
9
|
+
import * as i6 from '@angular/router';
|
|
9
10
|
import { Route, Routes } from '@angular/router';
|
|
10
|
-
import * as rxjs from 'rxjs';
|
|
11
|
-
import { Subject } from 'rxjs';
|
|
12
11
|
import * as i1 from '@acorex/platform/workflow';
|
|
13
12
|
import { AXPWorkflowAction, AXPWorkflowContext, AXPWorkflow } from '@acorex/platform/workflow';
|
|
14
13
|
import * as i3 from '@acorex/core/date-time';
|
|
15
14
|
import * as i4 from '@acorex/components/toast';
|
|
15
|
+
import * as rxjs from 'rxjs';
|
|
16
|
+
import { Subject } from 'rxjs';
|
|
16
17
|
import * as _ngrx_signals from '@ngrx/signals';
|
|
17
18
|
import { AXTranslationService } from '@acorex/core/translation';
|
|
18
19
|
import { AXLocaleProfile } from '@acorex/core/locale';
|
|
@@ -101,8 +102,6 @@ interface AXPEntityPropertyCreateView extends AXPEntityPropertyView {
|
|
|
101
102
|
}
|
|
102
103
|
interface AXPEntitySectionView {
|
|
103
104
|
id: string;
|
|
104
|
-
icon?: string;
|
|
105
|
-
description?: string;
|
|
106
105
|
order?: number;
|
|
107
106
|
collapsed?: boolean;
|
|
108
107
|
layout?: AXPEntityPropertyLayoutConfig;
|
|
@@ -486,206 +485,6 @@ declare class AXPGlobalErrorHandler extends ErrorHandler {
|
|
|
486
485
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPGlobalErrorHandler>;
|
|
487
486
|
}
|
|
488
487
|
|
|
489
|
-
interface AXPSettingValueProvider {
|
|
490
|
-
get scope(): AXPPlatformScope;
|
|
491
|
-
load(): Promise<AXPSettingValue[]>;
|
|
492
|
-
set(key: string, value: any): Promise<void>;
|
|
493
|
-
set(values: Record<string, any>): Promise<void>;
|
|
494
|
-
}
|
|
495
|
-
/**
|
|
496
|
-
* Provider interface for supplying default setting values from higher layers (e.g., app, mocks, API).
|
|
497
|
-
* Providers are merged by ascending priority; later providers override earlier values on key conflicts.
|
|
498
|
-
*/
|
|
499
|
-
interface AXPSettingDefaultValuesProvider {
|
|
500
|
-
/** Merge order; lower numbers are applied first. Default is 0. */
|
|
501
|
-
priority?: number;
|
|
502
|
-
/** Returns a flat map of setting key to default value. */
|
|
503
|
-
provide(): Promise<Record<string, unknown>>;
|
|
504
|
-
}
|
|
505
|
-
interface AXPSettingValue {
|
|
506
|
-
key: string;
|
|
507
|
-
value: any;
|
|
508
|
-
}
|
|
509
|
-
interface AXPSettingChangedEvent {
|
|
510
|
-
scope: AXPPlatformScope;
|
|
511
|
-
keys: string[];
|
|
512
|
-
values: Record<string, any>;
|
|
513
|
-
entries: AXPSettingValue[];
|
|
514
|
-
}
|
|
515
|
-
interface AXPSettingDefinition {
|
|
516
|
-
name: string;
|
|
517
|
-
title: string;
|
|
518
|
-
description?: string;
|
|
519
|
-
widget: AXPWidgetNode;
|
|
520
|
-
layout?: AXPGridLayoutOptions;
|
|
521
|
-
scope: AXPPlatformScopeKey;
|
|
522
|
-
isRequired?: boolean;
|
|
523
|
-
isInherited?: boolean;
|
|
524
|
-
isEncrypted?: boolean;
|
|
525
|
-
defaultValue?: unknown;
|
|
526
|
-
value?: unknown;
|
|
527
|
-
}
|
|
528
|
-
interface AXPSettingDefinitionGroup {
|
|
529
|
-
name: string;
|
|
530
|
-
title: string;
|
|
531
|
-
icon?: string;
|
|
532
|
-
description?: string;
|
|
533
|
-
groups: AXPSettingDefinitionGroup[];
|
|
534
|
-
sections: AXPSettingDefinitionSection[];
|
|
535
|
-
}
|
|
536
|
-
interface AXPSettingDefinitionSection {
|
|
537
|
-
name: string;
|
|
538
|
-
title: string;
|
|
539
|
-
description?: string;
|
|
540
|
-
settings: AXPSettingDefinition[];
|
|
541
|
-
}
|
|
542
|
-
interface AXPGroupSearchResult {
|
|
543
|
-
breadcrumb: {
|
|
544
|
-
name: string;
|
|
545
|
-
title: string;
|
|
546
|
-
description?: string;
|
|
547
|
-
}[];
|
|
548
|
-
sections: AXPSettingDefinitionSection[] | null;
|
|
549
|
-
groups: AXPSettingDefinitionGroup[] | null;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
declare class AXPSettingDefinitionProviderContext {
|
|
553
|
-
private rootGroups;
|
|
554
|
-
private groupMap;
|
|
555
|
-
addGroup(name: string, title: string, description?: string, icon?: string): AXPSettingDefinitionGroupBuilder;
|
|
556
|
-
group(name: string): AXPSettingDefinitionGroupBuilder | null;
|
|
557
|
-
getGroups(): AXPSettingDefinitionGroup[];
|
|
558
|
-
hasGroup(name: string): boolean;
|
|
559
|
-
getGroup(name: string): AXPSettingDefinitionGroup | undefined;
|
|
560
|
-
}
|
|
561
|
-
declare class AXPSettingDefinitionGroupBuilder {
|
|
562
|
-
private context;
|
|
563
|
-
private group;
|
|
564
|
-
constructor(context: AXPSettingDefinitionProviderContext, group: AXPSettingDefinitionGroup);
|
|
565
|
-
addSection(name: string, title: string, description?: string): AXPSettingDefinitionSectionBuilder;
|
|
566
|
-
section(name: string): AXPSettingDefinitionSectionBuilder | null;
|
|
567
|
-
addGroup(name: string, title: string, description?: string, icon?: string): AXPSettingDefinitionGroupBuilder;
|
|
568
|
-
endGroup(): AXPSettingDefinitionProviderContext;
|
|
569
|
-
}
|
|
570
|
-
declare class AXPSettingDefinitionSectionBuilder {
|
|
571
|
-
private groupBuilder;
|
|
572
|
-
private section;
|
|
573
|
-
constructor(groupBuilder: AXPSettingDefinitionGroupBuilder, section: AXPSettingDefinitionSection);
|
|
574
|
-
addSetting(setting: {
|
|
575
|
-
key: string;
|
|
576
|
-
title: string;
|
|
577
|
-
scope: AXPPlatformScopeKey;
|
|
578
|
-
widget: {
|
|
579
|
-
type: AXPWidgetTypesMap[keyof AXPWidgetTypesMap] | string;
|
|
580
|
-
options?: AXPOptionsData;
|
|
581
|
-
triggers?: AXPWidgetTriggers;
|
|
582
|
-
layout?: AXPGridLayoutOptions;
|
|
583
|
-
};
|
|
584
|
-
description?: string;
|
|
585
|
-
isRequired?: boolean;
|
|
586
|
-
isInherited?: boolean;
|
|
587
|
-
isEncrypted?: boolean;
|
|
588
|
-
defaultValue?: unknown;
|
|
589
|
-
valueTransforms?: AXPValueTransformerFunctions;
|
|
590
|
-
validationRules?: AXPValidationRules;
|
|
591
|
-
}): this;
|
|
592
|
-
endSection(): AXPSettingDefinitionGroupBuilder;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
interface AXPSettingDefinitionProvider {
|
|
596
|
-
provide(context: AXPSettingDefinitionProviderContext): Promise<void>;
|
|
597
|
-
}
|
|
598
|
-
declare const AXP_SETTING_DEFINITION_PROVIDER: InjectionToken<AXPSettingDefinitionProvider[]>;
|
|
599
|
-
declare class AXPSettingDefinitionProviderService {
|
|
600
|
-
private providers;
|
|
601
|
-
private providerRegistry;
|
|
602
|
-
private cache;
|
|
603
|
-
private load;
|
|
604
|
-
reload(): Promise<void>;
|
|
605
|
-
getListAsync(scope: AXPPlatformScopeKey): Promise<AXPSettingDefinitionGroup[]>;
|
|
606
|
-
getList(scope: AXPPlatformScopeKey): AXPSettingDefinitionGroup[];
|
|
607
|
-
defaultValues(): Promise<Record<string, unknown>>;
|
|
608
|
-
findGroup(scope: AXPPlatformScopeKey, groupName: string): AXPGroupSearchResult;
|
|
609
|
-
private searchRecursive;
|
|
610
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingDefinitionProviderService, never>;
|
|
611
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSettingDefinitionProviderService>;
|
|
612
|
-
}
|
|
613
|
-
declare const AXP_SETTING_DEFAULT_VALUES_PROVIDERS: InjectionToken<AXPSettingDefaultValuesProvider[]>;
|
|
614
|
-
declare class AXPSettingDefaultValuesAggregatorService {
|
|
615
|
-
private readonly definitionService;
|
|
616
|
-
private readonly providers;
|
|
617
|
-
getDefaults(): Promise<Record<string, unknown>>;
|
|
618
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingDefaultValuesAggregatorService, never>;
|
|
619
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSettingDefaultValuesAggregatorService>;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
declare const AXP_SETTING_VALUE_PROVIDER: InjectionToken<AXPSettingValueProvider[]>;
|
|
623
|
-
|
|
624
|
-
interface AXPSettingsServiceInterface {
|
|
625
|
-
load(): Promise<AXPSettingValue[]>;
|
|
626
|
-
get<T = any>(key: string): Promise<T>;
|
|
627
|
-
defaultValues(scope: AXPPlatformScope): Promise<Record<string, unknown>>;
|
|
628
|
-
scope(scope: AXPPlatformScope): ScopedSettingService;
|
|
629
|
-
}
|
|
630
|
-
declare class AXPSettingsService implements AXPSettingsServiceInterface {
|
|
631
|
-
private readonly providers;
|
|
632
|
-
private readonly injector;
|
|
633
|
-
private readonly eventService;
|
|
634
|
-
private readonly sessionService;
|
|
635
|
-
private readonly scopedSettingsCache;
|
|
636
|
-
readonly onChanged: Subject<AXPSettingChangedEvent>;
|
|
637
|
-
readonly onLoaded: Subject<void>;
|
|
638
|
-
constructor();
|
|
639
|
-
reload(): Promise<void>;
|
|
640
|
-
load(): Promise<AXPSettingValue[]>;
|
|
641
|
-
get<T = any>(key: string): Promise<T>;
|
|
642
|
-
defaultValues(scope: AXPPlatformScope): Promise<Record<string, unknown>>;
|
|
643
|
-
scope(scope: AXPPlatformScope): ScopedSettingService;
|
|
644
|
-
invokeChangeEvent(event: AXPSettingChangedEvent): void;
|
|
645
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingsService, never>;
|
|
646
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSettingsService>;
|
|
647
|
-
}
|
|
648
|
-
declare class ScopedSettingService {
|
|
649
|
-
private parent;
|
|
650
|
-
private provider;
|
|
651
|
-
private scopeCache;
|
|
652
|
-
constructor(parent: AXPSettingsService, provider: AXPSettingValueProvider, scopeCache: Map<string, any>);
|
|
653
|
-
get<T = any>(key: string): Promise<T>;
|
|
654
|
-
all(): Promise<any>;
|
|
655
|
-
defaultValues(): Promise<Record<string, unknown>>;
|
|
656
|
-
set<T = any>(key: string, value: T): Promise<void>;
|
|
657
|
-
set<T = any>(values: Record<string, T>): Promise<void>;
|
|
658
|
-
update<T = any>(key: string, updateFn: (currentValue: T) => T): Promise<void>;
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
/**
|
|
662
|
-
* Regional settings keys for date, time, and locale formatting.
|
|
663
|
-
* These keys are used by platform widgets and components to access regional settings.
|
|
664
|
-
* The actual setting definitions and providers are implemented in the locale-management module.
|
|
665
|
-
*/
|
|
666
|
-
declare enum AXPRegionalSetting {
|
|
667
|
-
LocaleProfile = "LocaleManagement:Setting:Regional.LocaleProfile",
|
|
668
|
-
TimeZone = "LocaleManagement:Setting:Regional.TimeZone",
|
|
669
|
-
Language = "LocaleManagement:Setting:Regional.Language",
|
|
670
|
-
Country = "LocaleManagement:Setting:Regional.Country",
|
|
671
|
-
Calendar = "LocaleManagement:Setting:Regional.Calendar",
|
|
672
|
-
FirstDayOfWeek = "LocaleManagement:Setting:Regional.FirstDayOfWeek",
|
|
673
|
-
WeekendDays = "LocaleManagement:Setting:Regional.WeekendDays",
|
|
674
|
-
ShortDate = "LocaleManagement:Setting:Regional.ShortDate",
|
|
675
|
-
MediumDate = "LocaleManagement:Setting:Regional.MediumDate",
|
|
676
|
-
LongDate = "LocaleManagement:Setting:Regional.LongDate",
|
|
677
|
-
ShortTime = "LocaleManagement:Setting:Regional.ShortTime",
|
|
678
|
-
MediumTime = "LocaleManagement:Setting:Regional.MediumTime",
|
|
679
|
-
LongTime = "LocaleManagement:Setting:Regional.LongTime",
|
|
680
|
-
MeasurementUnits = "LocaleManagement:Setting:Regional.MeasurementUnits",
|
|
681
|
-
TemperatureUnits = "LocaleManagement:Setting:Regional.TemperatureUnits",
|
|
682
|
-
DistanceUnits = "LocaleManagement:Setting:Regional.DistanceUnits",
|
|
683
|
-
WeightUnits = "LocaleManagement:Setting:Regional.WeightUnits",
|
|
684
|
-
VolumeUnits = "LocaleManagement:Setting:Regional.VolumeUnits",
|
|
685
|
-
SpeedUnits = "LocaleManagement:Setting:Regional.SpeedUnits",
|
|
686
|
-
AreaUnits = "LocaleManagement:Setting:Regional.AreaUnits"
|
|
687
|
-
}
|
|
688
|
-
|
|
689
488
|
interface AXPCommonModuleConfigs {
|
|
690
489
|
errorHandlers: (new () => AXPErrorHandler)[];
|
|
691
490
|
}
|
|
@@ -695,9 +494,9 @@ declare class AXPCommonModule {
|
|
|
695
494
|
/**
|
|
696
495
|
* @ignore
|
|
697
496
|
*/
|
|
698
|
-
constructor(instances: any[]
|
|
497
|
+
constructor(instances: any[]);
|
|
699
498
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPCommonModule, never>;
|
|
700
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPCommonModule, never, [typeof i1.AXPWorkflowModule, typeof i2.AXPopupModule, typeof i3.AXDateTimeModule, typeof i4.AXToastModule], [typeof
|
|
499
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPCommonModule, never, [typeof i1.AXPWorkflowModule, typeof i2.AXPopupModule, typeof i3.AXDateTimeModule, typeof i4.AXToastModule, typeof i5.AXPModuleManifestModule], [typeof i6.RouterModule]>;
|
|
701
500
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXPCommonModule>;
|
|
702
501
|
}
|
|
703
502
|
|
|
@@ -1184,7 +983,6 @@ interface AXPMenuProvider {
|
|
|
1184
983
|
declare const AXP_MENU_PROVIDER: InjectionToken<AXPMenuProvider[]>;
|
|
1185
984
|
declare class AXPMenuProviderService {
|
|
1186
985
|
private providers;
|
|
1187
|
-
private providerRegistry;
|
|
1188
986
|
private middlewareRegistry;
|
|
1189
987
|
private cache;
|
|
1190
988
|
private pendingInserts;
|
|
@@ -1604,7 +1402,6 @@ interface AXPSearchDefinitionProvider {
|
|
|
1604
1402
|
declare const AXP_SEARCH_DEFINITION_PROVIDER: InjectionToken<AXPSearchDefinitionProvider[]>;
|
|
1605
1403
|
declare class AXPSearchDefinitionProviderService {
|
|
1606
1404
|
private providers;
|
|
1607
|
-
private providerRegistry;
|
|
1608
1405
|
private cache;
|
|
1609
1406
|
private load;
|
|
1610
1407
|
getListAsync(): Promise<AXPSearchDefinition[]>;
|
|
@@ -1626,7 +1423,6 @@ declare abstract class AXPSearchCommandProvider {
|
|
|
1626
1423
|
declare const AXP_SEARCH_PROVIDER: InjectionToken<AXPSearchProvider[]>;
|
|
1627
1424
|
declare class AXPSearchService {
|
|
1628
1425
|
private providers;
|
|
1629
|
-
private providerRegistry;
|
|
1630
1426
|
private definitionService;
|
|
1631
1427
|
private formatService;
|
|
1632
1428
|
search(text: string): Promise<AXPSearchDisplayGroupResult[]>;
|
|
@@ -1706,6 +1502,205 @@ declare abstract class AXPLockService {
|
|
|
1706
1502
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPLockService>;
|
|
1707
1503
|
}
|
|
1708
1504
|
|
|
1505
|
+
interface AXPSettingValueProvider {
|
|
1506
|
+
get scope(): AXPPlatformScope;
|
|
1507
|
+
load(): Promise<AXPSettingValue[]>;
|
|
1508
|
+
set(key: string, value: any): Promise<void>;
|
|
1509
|
+
set(values: Record<string, any>): Promise<void>;
|
|
1510
|
+
}
|
|
1511
|
+
/**
|
|
1512
|
+
* Provider interface for supplying default setting values from higher layers (e.g., app, mocks, API).
|
|
1513
|
+
* Providers are merged by ascending priority; later providers override earlier values on key conflicts.
|
|
1514
|
+
*/
|
|
1515
|
+
interface AXPSettingDefaultValuesProvider {
|
|
1516
|
+
/** Merge order; lower numbers are applied first. Default is 0. */
|
|
1517
|
+
priority?: number;
|
|
1518
|
+
/** Returns a flat map of setting key to default value. */
|
|
1519
|
+
provide(): Promise<Record<string, unknown>>;
|
|
1520
|
+
}
|
|
1521
|
+
interface AXPSettingValue {
|
|
1522
|
+
key: string;
|
|
1523
|
+
value: any;
|
|
1524
|
+
}
|
|
1525
|
+
interface AXPSettingChangedEvent {
|
|
1526
|
+
scope: AXPPlatformScope;
|
|
1527
|
+
keys: string[];
|
|
1528
|
+
values: Record<string, any>;
|
|
1529
|
+
entries: AXPSettingValue[];
|
|
1530
|
+
}
|
|
1531
|
+
interface AXPSettingDefinition {
|
|
1532
|
+
name: string;
|
|
1533
|
+
title: string;
|
|
1534
|
+
description?: string;
|
|
1535
|
+
widget: AXPWidgetNode;
|
|
1536
|
+
layout?: AXPGridLayoutOptions;
|
|
1537
|
+
scope: AXPPlatformScopeKey;
|
|
1538
|
+
isRequired?: boolean;
|
|
1539
|
+
isInherited?: boolean;
|
|
1540
|
+
isEncrypted?: boolean;
|
|
1541
|
+
defaultValue?: unknown;
|
|
1542
|
+
value?: unknown;
|
|
1543
|
+
}
|
|
1544
|
+
interface AXPSettingDefinitionGroup {
|
|
1545
|
+
name: string;
|
|
1546
|
+
title: string;
|
|
1547
|
+
icon?: string;
|
|
1548
|
+
description?: string;
|
|
1549
|
+
groups: AXPSettingDefinitionGroup[];
|
|
1550
|
+
sections: AXPSettingDefinitionSection[];
|
|
1551
|
+
}
|
|
1552
|
+
interface AXPSettingDefinitionSection {
|
|
1553
|
+
name: string;
|
|
1554
|
+
title: string;
|
|
1555
|
+
description?: string;
|
|
1556
|
+
settings: AXPSettingDefinition[];
|
|
1557
|
+
}
|
|
1558
|
+
interface AXPGroupSearchResult {
|
|
1559
|
+
breadcrumb: {
|
|
1560
|
+
name: string;
|
|
1561
|
+
title: string;
|
|
1562
|
+
description?: string;
|
|
1563
|
+
}[];
|
|
1564
|
+
sections: AXPSettingDefinitionSection[] | null;
|
|
1565
|
+
groups: AXPSettingDefinitionGroup[] | null;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
declare class AXPSettingDefinitionProviderContext {
|
|
1569
|
+
private rootGroups;
|
|
1570
|
+
private groupMap;
|
|
1571
|
+
addGroup(name: string, title: string, description?: string, icon?: string): AXPSettingDefinitionGroupBuilder;
|
|
1572
|
+
group(name: string): AXPSettingDefinitionGroupBuilder | null;
|
|
1573
|
+
getGroups(): AXPSettingDefinitionGroup[];
|
|
1574
|
+
hasGroup(name: string): boolean;
|
|
1575
|
+
getGroup(name: string): AXPSettingDefinitionGroup | undefined;
|
|
1576
|
+
}
|
|
1577
|
+
declare class AXPSettingDefinitionGroupBuilder {
|
|
1578
|
+
private context;
|
|
1579
|
+
private group;
|
|
1580
|
+
constructor(context: AXPSettingDefinitionProviderContext, group: AXPSettingDefinitionGroup);
|
|
1581
|
+
addSection(name: string, title: string, description?: string): AXPSettingDefinitionSectionBuilder;
|
|
1582
|
+
section(name: string): AXPSettingDefinitionSectionBuilder | null;
|
|
1583
|
+
addGroup(name: string, title: string, description?: string, icon?: string): AXPSettingDefinitionGroupBuilder;
|
|
1584
|
+
endGroup(): AXPSettingDefinitionProviderContext;
|
|
1585
|
+
}
|
|
1586
|
+
declare class AXPSettingDefinitionSectionBuilder {
|
|
1587
|
+
private groupBuilder;
|
|
1588
|
+
private section;
|
|
1589
|
+
constructor(groupBuilder: AXPSettingDefinitionGroupBuilder, section: AXPSettingDefinitionSection);
|
|
1590
|
+
addSetting(setting: {
|
|
1591
|
+
key: string;
|
|
1592
|
+
title: string;
|
|
1593
|
+
scope: AXPPlatformScopeKey;
|
|
1594
|
+
widget: {
|
|
1595
|
+
type: AXPWidgetTypesMap[keyof AXPWidgetTypesMap] | string;
|
|
1596
|
+
options?: AXPOptionsData;
|
|
1597
|
+
triggers?: AXPWidgetTriggers;
|
|
1598
|
+
layout?: AXPGridLayoutOptions;
|
|
1599
|
+
};
|
|
1600
|
+
description?: string;
|
|
1601
|
+
isRequired?: boolean;
|
|
1602
|
+
isInherited?: boolean;
|
|
1603
|
+
isEncrypted?: boolean;
|
|
1604
|
+
defaultValue?: unknown;
|
|
1605
|
+
valueTransforms?: AXPValueTransformerFunctions;
|
|
1606
|
+
validationRules?: AXPValidationRules;
|
|
1607
|
+
}): this;
|
|
1608
|
+
endSection(): AXPSettingDefinitionGroupBuilder;
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
interface AXPSettingDefinitionProvider {
|
|
1612
|
+
provide(context: AXPSettingDefinitionProviderContext): Promise<void>;
|
|
1613
|
+
}
|
|
1614
|
+
declare const AXP_SETTING_DEFINITION_PROVIDER: InjectionToken<AXPSettingDefinitionProvider[]>;
|
|
1615
|
+
declare class AXPSettingDefinitionProviderService {
|
|
1616
|
+
private providers;
|
|
1617
|
+
private cache;
|
|
1618
|
+
private load;
|
|
1619
|
+
reload(): Promise<void>;
|
|
1620
|
+
getListAsync(scope: AXPPlatformScopeKey): Promise<AXPSettingDefinitionGroup[]>;
|
|
1621
|
+
getList(scope: AXPPlatformScopeKey): AXPSettingDefinitionGroup[];
|
|
1622
|
+
defaultValues(): Promise<Record<string, unknown>>;
|
|
1623
|
+
findGroup(scope: AXPPlatformScopeKey, groupName: string): AXPGroupSearchResult;
|
|
1624
|
+
private searchRecursive;
|
|
1625
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingDefinitionProviderService, never>;
|
|
1626
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSettingDefinitionProviderService>;
|
|
1627
|
+
}
|
|
1628
|
+
declare const AXP_SETTING_DEFAULT_VALUES_PROVIDERS: InjectionToken<AXPSettingDefaultValuesProvider[]>;
|
|
1629
|
+
declare class AXPSettingDefaultValuesAggregatorService {
|
|
1630
|
+
private readonly definitionService;
|
|
1631
|
+
private readonly providers;
|
|
1632
|
+
getDefaults(): Promise<Record<string, unknown>>;
|
|
1633
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingDefaultValuesAggregatorService, never>;
|
|
1634
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSettingDefaultValuesAggregatorService>;
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
declare const AXP_SETTING_VALUE_PROVIDER: InjectionToken<AXPSettingValueProvider[]>;
|
|
1638
|
+
|
|
1639
|
+
interface AXPSettingsServiceInterface {
|
|
1640
|
+
load(): Promise<AXPSettingValue[]>;
|
|
1641
|
+
get<T = any>(key: string): Promise<T>;
|
|
1642
|
+
defaultValues(scope: AXPPlatformScope): Promise<Record<string, unknown>>;
|
|
1643
|
+
scope(scope: AXPPlatformScope): ScopedSettingService;
|
|
1644
|
+
}
|
|
1645
|
+
declare class AXPSettingsService implements AXPSettingsServiceInterface {
|
|
1646
|
+
private readonly providers;
|
|
1647
|
+
private readonly injector;
|
|
1648
|
+
private readonly eventService;
|
|
1649
|
+
private readonly sessionService;
|
|
1650
|
+
private readonly scopedSettingsCache;
|
|
1651
|
+
readonly onChanged: Subject<AXPSettingChangedEvent>;
|
|
1652
|
+
readonly onLoaded: Subject<void>;
|
|
1653
|
+
constructor();
|
|
1654
|
+
reload(): Promise<void>;
|
|
1655
|
+
load(): Promise<AXPSettingValue[]>;
|
|
1656
|
+
get<T = any>(key: string): Promise<T>;
|
|
1657
|
+
defaultValues(scope: AXPPlatformScope): Promise<Record<string, unknown>>;
|
|
1658
|
+
scope(scope: AXPPlatformScope): ScopedSettingService;
|
|
1659
|
+
invokeChangeEvent(event: AXPSettingChangedEvent): void;
|
|
1660
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingsService, never>;
|
|
1661
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSettingsService>;
|
|
1662
|
+
}
|
|
1663
|
+
declare class ScopedSettingService {
|
|
1664
|
+
private parent;
|
|
1665
|
+
private provider;
|
|
1666
|
+
private scopeCache;
|
|
1667
|
+
constructor(parent: AXPSettingsService, provider: AXPSettingValueProvider, scopeCache: Map<string, any>);
|
|
1668
|
+
get<T = any>(key: string): Promise<T>;
|
|
1669
|
+
all(): Promise<any>;
|
|
1670
|
+
defaultValues(): Promise<Record<string, unknown>>;
|
|
1671
|
+
set<T = any>(key: string, value: T): Promise<void>;
|
|
1672
|
+
set<T = any>(values: Record<string, T>): Promise<void>;
|
|
1673
|
+
update<T = any>(key: string, updateFn: (currentValue: T) => T): Promise<void>;
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
/**
|
|
1677
|
+
* Regional settings keys for date, time, and locale formatting.
|
|
1678
|
+
* These keys are used by platform widgets and components to access regional settings.
|
|
1679
|
+
* The actual setting definitions and providers are implemented in the locale-management module.
|
|
1680
|
+
*/
|
|
1681
|
+
declare enum AXPRegionalSetting {
|
|
1682
|
+
LocaleProfile = "LocaleManagement:Setting:Regional.LocaleProfile",
|
|
1683
|
+
TimeZone = "LocaleManagement:Setting:Regional.TimeZone",
|
|
1684
|
+
Language = "LocaleManagement:Setting:Regional.Language",
|
|
1685
|
+
Country = "LocaleManagement:Setting:Regional.Country",
|
|
1686
|
+
Calendar = "LocaleManagement:Setting:Regional.Calendar",
|
|
1687
|
+
FirstDayOfWeek = "LocaleManagement:Setting:Regional.FirstDayOfWeek",
|
|
1688
|
+
WeekendDays = "LocaleManagement:Setting:Regional.WeekendDays",
|
|
1689
|
+
ShortDate = "LocaleManagement:Setting:Regional.ShortDate",
|
|
1690
|
+
MediumDate = "LocaleManagement:Setting:Regional.MediumDate",
|
|
1691
|
+
LongDate = "LocaleManagement:Setting:Regional.LongDate",
|
|
1692
|
+
ShortTime = "LocaleManagement:Setting:Regional.ShortTime",
|
|
1693
|
+
MediumTime = "LocaleManagement:Setting:Regional.MediumTime",
|
|
1694
|
+
LongTime = "LocaleManagement:Setting:Regional.LongTime",
|
|
1695
|
+
MeasurementUnits = "LocaleManagement:Setting:Regional.MeasurementUnits",
|
|
1696
|
+
TemperatureUnits = "LocaleManagement:Setting:Regional.TemperatureUnits",
|
|
1697
|
+
DistanceUnits = "LocaleManagement:Setting:Regional.DistanceUnits",
|
|
1698
|
+
WeightUnits = "LocaleManagement:Setting:Regional.WeightUnits",
|
|
1699
|
+
VolumeUnits = "LocaleManagement:Setting:Regional.VolumeUnits",
|
|
1700
|
+
SpeedUnits = "LocaleManagement:Setting:Regional.SpeedUnits",
|
|
1701
|
+
AreaUnits = "LocaleManagement:Setting:Regional.AreaUnits"
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1709
1704
|
/**
|
|
1710
1705
|
* Status Definition Types
|
|
1711
1706
|
* Defines the structure for status definitions and their transitions
|
|
@@ -1850,7 +1845,7 @@ declare const AXP_STATUS_PROVIDERS: InjectionToken<AXPStatusProvider[]>;
|
|
|
1850
1845
|
* }
|
|
1851
1846
|
*
|
|
1852
1847
|
* // Later, get the status:
|
|
1853
|
-
* const status = statusService.getStatus('task-management.status');
|
|
1848
|
+
* const status = await statusService.getStatus('task-management.status');
|
|
1854
1849
|
* if (status) {
|
|
1855
1850
|
* console.log('Statuses:', status.statuses);
|
|
1856
1851
|
* console.log('Transitions:', status.transitions);
|
|
@@ -1861,24 +1856,31 @@ declare class AXPStatusDefinitionProviderService {
|
|
|
1861
1856
|
private providers;
|
|
1862
1857
|
private commandService;
|
|
1863
1858
|
private statusMap;
|
|
1864
|
-
|
|
1859
|
+
private initializationPromise;
|
|
1860
|
+
private isInitialized;
|
|
1861
|
+
/**
|
|
1862
|
+
* Initialize providers (resolve promises if needed)
|
|
1863
|
+
* Called lazily on first access
|
|
1864
|
+
*/
|
|
1865
|
+
private initialize;
|
|
1866
|
+
private _doInitialize;
|
|
1865
1867
|
/**
|
|
1866
1868
|
* Get a status provider by key
|
|
1867
|
-
*
|
|
1869
|
+
* Ensures initialization is complete before accessing the status map.
|
|
1868
1870
|
*
|
|
1869
1871
|
* @param key - Status key (e.g., 'task-management.status')
|
|
1870
|
-
* @returns
|
|
1872
|
+
* @returns Promise that resolves to status provider with all statuses and transitions, or undefined if not found
|
|
1871
1873
|
*
|
|
1872
1874
|
* @example
|
|
1873
1875
|
* ```typescript
|
|
1874
|
-
* const status = statusService.getStatus('task-management.status');
|
|
1876
|
+
* const status = await statusService.getStatus('task-management.status');
|
|
1875
1877
|
* if (status) {
|
|
1876
1878
|
* console.log('Statuses:', status.statuses);
|
|
1877
1879
|
* console.log('Transitions:', status.transitions);
|
|
1878
1880
|
* }
|
|
1879
1881
|
* ```
|
|
1880
1882
|
*/
|
|
1881
|
-
getStatus(key: string): AXPStatusProvider | undefined
|
|
1883
|
+
getStatus(key: string): Promise<AXPStatusProvider | undefined>;
|
|
1882
1884
|
/**
|
|
1883
1885
|
* Execute a status transition workflow action
|
|
1884
1886
|
* Uses transition.command if provided, otherwise defaults to Entity:UpdateStatus
|