@acorex/platform 21.0.0-next.37 → 21.0.0-next.40
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/fesm2022/acorex-platform-common.mjs +25 -3
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +18 -172
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-domain.mjs +3 -0
- package/fesm2022/acorex-platform-domain.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +29 -13
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +62 -40
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +209 -62
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +1072 -358
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +171 -86
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +170 -63
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-9uCkMxcc.mjs → acorex-platform-layout-widgets-file-list-popup.component-CDYAGBku.mjs} +5 -60
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-CDYAGBku.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets.mjs +720 -415
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-runtime.mjs +120 -9
- package/fesm2022/acorex-platform-runtime.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-Cvvr4HnL.mjs → acorex-platform-themes-default-entity-master-create-view.component-Cx1lLUaR.mjs} +3 -3
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Cx1lLUaR.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-TYoLN1Jq.mjs → acorex-platform-themes-default-entity-master-modify-view.component-AOrcgjDF.mjs} +3 -3
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-AOrcgjDF.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-C2z5Lq9y.mjs → acorex-platform-themes-default-entity-master-single-view.component-BfCeUU5F.mjs} +3 -3
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-BfCeUU5F.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +26 -14
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-shared-settings.provider-DSs1o1M6.mjs → acorex-platform-themes-shared-settings.provider-D13QB3Hr.mjs} +2 -2
- package/fesm2022/acorex-platform-themes-shared-settings.provider-D13QB3Hr.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-D566Kdvy.mjs +94 -0
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-D566Kdvy.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-view.component-BSmvnUVq.mjs → acorex-platform-themes-shared-theme-color-chooser-view.component-D7-rCGl7.mjs} +38 -16
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-D7-rCGl7.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared.mjs +183 -84
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +75 -15
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/package.json +1 -1
- package/types/acorex-platform-common.d.ts +11 -6
- package/types/acorex-platform-core.d.ts +67 -101
- package/types/acorex-platform-domain.d.ts +28 -2
- package/types/acorex-platform-layout-builder.d.ts +41 -28
- package/types/acorex-platform-layout-components.d.ts +4 -3
- package/types/acorex-platform-layout-designer.d.ts +56 -16
- package/types/acorex-platform-layout-entity.d.ts +180 -40
- package/types/acorex-platform-layout-views.d.ts +31 -29
- package/types/acorex-platform-layout-widget-core.d.ts +81 -52
- package/types/acorex-platform-layout-widgets.d.ts +42 -16
- package/types/acorex-platform-runtime.d.ts +156 -61
- package/types/acorex-platform-themes-default.d.ts +1 -0
- package/types/acorex-platform-workflow.d.ts +64 -52
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-9uCkMxcc.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Cvvr4HnL.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-TYoLN1Jq.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-C2z5Lq9y.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-settings.provider-DSs1o1M6.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-CHfrTtol.mjs +0 -65
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-CHfrTtol.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-BSmvnUVq.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import { AXDataSourceOperator, AXStyleColorType, AXDataSourceFilterOption } from
|
|
|
4
4
|
import * as i2 from '@acorex/components/popup';
|
|
5
5
|
import { AXPopupSizeType, AXPopupService } from '@acorex/components/popup';
|
|
6
6
|
import * as i5 from '@acorex/platform/core';
|
|
7
|
-
import { AXPValueTransformerFunctions, AXPOptionsData, AXPExpression, AXPFilterDefinition, AXPMetaData, AXPSystemActionType, AXPValidationRules, AXPGridLayoutOptions, AXPLogoConfig, AXPFileListItem, AXPDataSourceDefinitionProvider, AXPDataSourceDefinition, AXPNavigateActionCommand, AXPExecuteCommand, AXPApplicationUserReference, AXPEntityReference, AXPPlatformScopeKey, AXPPlatformScope, AXPWidgetTriggers, AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviderContext } from '@acorex/platform/core';
|
|
7
|
+
import { AXPValueTransformerFunctions, AXPMultiLanguageString, AXPOptionsData, AXPExpression, AXPFilterDefinition, AXPMetaData, AXPSystemActionType, AXPValidationRules, AXPGridLayoutOptions, AXPLogoConfig, AXPFileListItem, AXPDataSourceDefinitionProvider, AXPDataSourceDefinition, AXPNavigateActionCommand, AXPExecuteCommand, AXPApplicationUserReference, AXPEntityReference, AXPPlatformScopeKey, AXPPlatformScope, AXPWidgetTriggers, AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviderContext } from '@acorex/platform/core';
|
|
8
8
|
import { AXPWidgetTypesMap, AXPMetaDataDefinition, AXPWidgetNode, AXPWidgetProperty } from '@acorex/platform/layout/widget-core';
|
|
9
9
|
import * as i6 from '@angular/router';
|
|
10
10
|
import { Route, Routes } from '@angular/router';
|
|
@@ -80,6 +80,7 @@ interface AXPEntityPropertyLayoutConfig extends AXPGridLayoutOptions {
|
|
|
80
80
|
visible?: boolean;
|
|
81
81
|
};
|
|
82
82
|
order?: number;
|
|
83
|
+
visible?: boolean | AXPExpression;
|
|
83
84
|
}
|
|
84
85
|
interface AXPEntityPropertyGroup {
|
|
85
86
|
id: string;
|
|
@@ -360,7 +361,7 @@ interface AXPEntityPage {
|
|
|
360
361
|
/**
|
|
361
362
|
* Title of the page (displayed in navigation)
|
|
362
363
|
*/
|
|
363
|
-
title?:
|
|
364
|
+
title?: AXPMultiLanguageString;
|
|
364
365
|
/**
|
|
365
366
|
* Icon for the page (displayed in navigation)
|
|
366
367
|
*/
|
|
@@ -368,7 +369,7 @@ interface AXPEntityPage {
|
|
|
368
369
|
/**
|
|
369
370
|
* Description of the page
|
|
370
371
|
*/
|
|
371
|
-
description?:
|
|
372
|
+
description?: AXPMultiLanguageString;
|
|
372
373
|
/**
|
|
373
374
|
* Layout configuration for page positioning
|
|
374
375
|
*/
|
|
@@ -408,18 +409,18 @@ interface AXPEntityVersionHistory {
|
|
|
408
409
|
interface AXPAggregate {
|
|
409
410
|
id: string;
|
|
410
411
|
name: string;
|
|
411
|
-
title:
|
|
412
|
+
title: AXPMultiLanguageString;
|
|
412
413
|
entities: AXPEntity[];
|
|
413
414
|
}
|
|
414
415
|
interface AXPModule {
|
|
415
416
|
name: string;
|
|
416
|
-
title:
|
|
417
|
+
title: AXPMultiLanguageString;
|
|
417
418
|
aggregates: AXPAggregate[];
|
|
418
419
|
relationships?: AXPRelationship[];
|
|
419
420
|
}
|
|
420
421
|
interface AXPApplication {
|
|
421
422
|
name: string;
|
|
422
|
-
title:
|
|
423
|
+
title: AXPMultiLanguageString;
|
|
423
424
|
modules: AXPModule[];
|
|
424
425
|
}
|
|
425
426
|
interface AXPEntityMasterLayoutView {
|
|
@@ -2356,6 +2357,10 @@ declare class AXPStatusDefinitionProviderService {
|
|
|
2356
2357
|
* Checks if the transition exists in the provider's transitions list
|
|
2357
2358
|
*/
|
|
2358
2359
|
private isValidTransition;
|
|
2360
|
+
/**
|
|
2361
|
+
* Best-effort plain string for {@link Error} messages (no i18n lookup).
|
|
2362
|
+
*/
|
|
2363
|
+
private commandMessageTextForError;
|
|
2359
2364
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPStatusDefinitionProviderService, never>;
|
|
2360
2365
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPStatusDefinitionProviderService>;
|
|
2361
2366
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Type, InjectionToken, OnInit, ViewContainerRef, ModuleWithProviders, ElementRef, EventEmitter, OnChanges, Renderer2, SimpleChanges, OnDestroy, Injector, PipeTransform, Provider } from '@angular/core';
|
|
3
3
|
import { AXStyleColorType, AXDataSource, AXDataSourceSortOption, AXDataSourceFilterOption, AXDataSourceQuery, AXDataSourceCallbackResult } from '@acorex/cdk/common';
|
|
4
|
+
import { AXMultiLanguageString } from '@acorex/core/translation';
|
|
4
5
|
import * as _ngrx_signals from '@ngrx/signals';
|
|
5
6
|
import * as _acorex_platform_core from '@acorex/platform/core';
|
|
6
7
|
import { Observable } from 'rxjs';
|
|
@@ -918,7 +919,18 @@ type AXPExpression = string;
|
|
|
918
919
|
* @example Per-locale map (e.g. after multi-language editor save)
|
|
919
920
|
* `{ "en-US": "<p>Pick one</p>", "fa-IR": "<p>یکی را انتخاب کنید</p>" }`
|
|
920
921
|
*/
|
|
921
|
-
type AXPMultiLanguageString =
|
|
922
|
+
type AXPMultiLanguageString = AXMultiLanguageString;
|
|
923
|
+
/**
|
|
924
|
+
* Shared category descriptor for widgets, query catalog tooling, and other definition groupings.
|
|
925
|
+
*/
|
|
926
|
+
interface AXPDefinitionCategory {
|
|
927
|
+
name: string;
|
|
928
|
+
title: AXPMultiLanguageString;
|
|
929
|
+
order: number;
|
|
930
|
+
icon?: string;
|
|
931
|
+
}
|
|
932
|
+
/** Normalizes definition categories to an array for iteration and serialization. */
|
|
933
|
+
declare function normalizeDefinitionCategories(categories?: AXPDefinitionCategory | AXPDefinitionCategory[]): AXPDefinitionCategory[];
|
|
922
934
|
type AXPMetaData = Record<string, any>;
|
|
923
935
|
type AXPOptionsData<T extends Record<string, unknown> = Record<string, any>> = T;
|
|
924
936
|
interface AXPValueUnit {
|
|
@@ -1183,7 +1195,7 @@ interface AXPFilterQuery extends Pick<AXPFilterDefinition, 'field' | 'value' | '
|
|
|
1183
1195
|
|
|
1184
1196
|
type AXPActionMenuItem = {
|
|
1185
1197
|
name?: string;
|
|
1186
|
-
title:
|
|
1198
|
+
title: AXPMultiLanguageString;
|
|
1187
1199
|
icon?: string;
|
|
1188
1200
|
iconOnly?: boolean;
|
|
1189
1201
|
color?: string;
|
|
@@ -1195,11 +1207,11 @@ type AXPActionMenuItem = {
|
|
|
1195
1207
|
policy?: string;
|
|
1196
1208
|
};
|
|
1197
1209
|
type AXPBackButton = {
|
|
1198
|
-
title:
|
|
1210
|
+
title: AXPMultiLanguageString;
|
|
1199
1211
|
};
|
|
1200
1212
|
type AXPBreadcrumbItem = {
|
|
1201
1213
|
name?: string;
|
|
1202
|
-
title:
|
|
1214
|
+
title: AXPMultiLanguageString;
|
|
1203
1215
|
icon?: string;
|
|
1204
1216
|
command?: AXPExecuteCommand;
|
|
1205
1217
|
};
|
|
@@ -1217,7 +1229,7 @@ type AXPPageStatus = {
|
|
|
1217
1229
|
interface AXPCommandMessage {
|
|
1218
1230
|
type?: 'info' | 'success' | 'warning' | 'error';
|
|
1219
1231
|
code?: string;
|
|
1220
|
-
text:
|
|
1232
|
+
text: AXPMultiLanguageString;
|
|
1221
1233
|
details?: unknown;
|
|
1222
1234
|
}
|
|
1223
1235
|
type AXPExecuteCommand = {
|
|
@@ -1239,7 +1251,7 @@ interface AXPQueryFetchResult<T = any> {
|
|
|
1239
1251
|
};
|
|
1240
1252
|
message?: {
|
|
1241
1253
|
code?: string;
|
|
1242
|
-
text?:
|
|
1254
|
+
text?: AXPMultiLanguageString;
|
|
1243
1255
|
details?: any;
|
|
1244
1256
|
};
|
|
1245
1257
|
}
|
|
@@ -1252,7 +1264,7 @@ type AXPNavigateActionOptions = {
|
|
|
1252
1264
|
};
|
|
1253
1265
|
modal: {
|
|
1254
1266
|
component: Type<any>;
|
|
1255
|
-
title:
|
|
1267
|
+
title: AXPMultiLanguageString;
|
|
1256
1268
|
options?: any;
|
|
1257
1269
|
};
|
|
1258
1270
|
};
|
|
@@ -1304,23 +1316,6 @@ declare class AXPIconLogoConfig implements AXPLogoConfig {
|
|
|
1304
1316
|
constructor(icon: string, color?: string | undefined);
|
|
1305
1317
|
}
|
|
1306
1318
|
|
|
1307
|
-
type AXPPlatformScopeKey = 'P' | 'T' | 'U';
|
|
1308
|
-
declare enum AXPPlatformScope {
|
|
1309
|
-
Platform = "P",
|
|
1310
|
-
Tenant = "T",
|
|
1311
|
-
User = "U"
|
|
1312
|
-
}
|
|
1313
|
-
declare function resolvePlatformScopeKey(name: string): AXPPlatformScopeKey;
|
|
1314
|
-
declare function resolvePlatformScopeName(scope: AXPPlatformScopeKey): string;
|
|
1315
|
-
|
|
1316
|
-
interface AXPSortDefinition {
|
|
1317
|
-
name: string;
|
|
1318
|
-
title: string;
|
|
1319
|
-
dir?: 'asc' | 'desc';
|
|
1320
|
-
}
|
|
1321
|
-
interface AXPSortQuery extends Pick<AXPSortDefinition, 'name' | 'dir'> {
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
1319
|
type AXPValidationRule = {
|
|
1325
1320
|
rule: string;
|
|
1326
1321
|
message?: string;
|
|
@@ -1357,6 +1352,52 @@ interface AXPReqexValidationRule extends AXPValidationRule {
|
|
|
1357
1352
|
}
|
|
1358
1353
|
type AXPStringValidationRules = (AXPRequiredValidationRule | AXPMinLengthValidationRule | AXPMaxLengthValidationRule | AXPEqualValidationRule<string> | AXPReqexValidationRule)[];
|
|
1359
1354
|
|
|
1355
|
+
interface AXPPropertyGroup {
|
|
1356
|
+
name: string;
|
|
1357
|
+
title: AXPMultiLanguageString;
|
|
1358
|
+
icon?: string;
|
|
1359
|
+
description?: AXPMultiLanguageString;
|
|
1360
|
+
order?: number;
|
|
1361
|
+
}
|
|
1362
|
+
interface AXPPropertyInterface {
|
|
1363
|
+
type: string;
|
|
1364
|
+
options: AXPOptionsData;
|
|
1365
|
+
triggers?: AXPWidgetTriggers;
|
|
1366
|
+
}
|
|
1367
|
+
/**
|
|
1368
|
+
* Platform property bag (entity fields, workflow inputs, etc.).
|
|
1369
|
+
*
|
|
1370
|
+
* For property viewer rows, use `mapAXPPropertyToWidgetProperty` from `@acorex/platform/layout/widget-core`
|
|
1371
|
+
* (keeps `platform/core` free of a dependency on `layout/widget-core`).
|
|
1372
|
+
*/
|
|
1373
|
+
interface AXPProperty {
|
|
1374
|
+
name: string;
|
|
1375
|
+
title: AXPMultiLanguageString;
|
|
1376
|
+
description?: AXPMultiLanguageString;
|
|
1377
|
+
dataType: AXPDataType;
|
|
1378
|
+
validations?: AXPValidationRules;
|
|
1379
|
+
group?: AXPPropertyGroup | string;
|
|
1380
|
+
order?: number;
|
|
1381
|
+
interface: AXPPropertyInterface;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
type AXPPlatformScopeKey = 'P' | 'T' | 'U';
|
|
1385
|
+
declare enum AXPPlatformScope {
|
|
1386
|
+
Platform = "P",
|
|
1387
|
+
Tenant = "T",
|
|
1388
|
+
User = "U"
|
|
1389
|
+
}
|
|
1390
|
+
declare function resolvePlatformScopeKey(name: string): AXPPlatformScopeKey;
|
|
1391
|
+
declare function resolvePlatformScopeName(scope: AXPPlatformScopeKey): string;
|
|
1392
|
+
|
|
1393
|
+
interface AXPSortDefinition {
|
|
1394
|
+
name: string;
|
|
1395
|
+
title: string;
|
|
1396
|
+
dir?: 'asc' | 'desc';
|
|
1397
|
+
}
|
|
1398
|
+
interface AXPSortQuery extends Pick<AXPSortDefinition, 'name' | 'dir'> {
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1360
1401
|
interface AXPViewQuery {
|
|
1361
1402
|
name: string;
|
|
1362
1403
|
fixed: boolean;
|
|
@@ -2510,61 +2551,6 @@ declare const AXP_SESSION_SERVICE: InjectionToken<AXPISessionService>;
|
|
|
2510
2551
|
*/
|
|
2511
2552
|
declare const AXP_MODULE_MANIFEST_PROVIDER: InjectionToken<AXPModuleManifest[]>;
|
|
2512
2553
|
|
|
2513
|
-
/**
|
|
2514
|
-
* Resolves {@link AXPMultiLanguageString} using the active app locale, and exposes
|
|
2515
|
-
* {@link currentLocale$} for code that prefers an observable (e.g. manual subscriptions).
|
|
2516
|
-
* Templates usually use {@link AXPResolveMultiLanguageStringPipe} instead.
|
|
2517
|
-
*/
|
|
2518
|
-
declare class AXPMultiLanguageStringResolverService {
|
|
2519
|
-
private readonly translation;
|
|
2520
|
-
/**
|
|
2521
|
-
* Emits the active locale on subscribe and whenever the language changes.
|
|
2522
|
-
*/
|
|
2523
|
-
readonly currentLocale$: Observable<string>;
|
|
2524
|
-
/**
|
|
2525
|
-
* Resolves multi-language content for an optional locale (defaults to active).
|
|
2526
|
-
*/
|
|
2527
|
-
resolve(content: AXPMultiLanguageString | null | undefined, locale?: string): string;
|
|
2528
|
-
/**
|
|
2529
|
-
* Checks if a value is a valid multi-language object map.
|
|
2530
|
-
* Key format must be `xx-XX` (e.g. en-US, fa-IR) or fallback `*-*`.
|
|
2531
|
-
* All values must be strings.
|
|
2532
|
-
*/
|
|
2533
|
-
isValidMultiLanguageObject(value: unknown): value is Record<string, string>;
|
|
2534
|
-
/**
|
|
2535
|
-
* Normalizes multi-language content to a locale map for editors (e.g. multi-language popup `values`).
|
|
2536
|
-
* If `content` is already a locale-to-string map, returns a shallow copy.
|
|
2537
|
-
* If it is a plain string or empty, wraps it as `{ [activeLocale]: text }`.
|
|
2538
|
-
*/
|
|
2539
|
-
toLocaleMap(content: AXPMultiLanguageString | null | undefined, activeLocale: string): Record<string, string>;
|
|
2540
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXPMultiLanguageStringResolverService, never>;
|
|
2541
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXPMultiLanguageStringResolverService>;
|
|
2542
|
-
}
|
|
2543
|
-
|
|
2544
|
-
/**
|
|
2545
|
-
* Resolves {@link AXPMultiLanguageString} via {@link AXPMultiLanguageStringResolverService}.
|
|
2546
|
-
* Impure and subscribes to {@link AXPMultiLanguageStringResolverService#currentLocale$} so
|
|
2547
|
-
* OnPush hosts (e.g. grid cells) still refresh when the language changes.
|
|
2548
|
-
*
|
|
2549
|
-
* Optional second argument: explicit locale (e.g. from a host `locale` input). When omitted or null/empty,
|
|
2550
|
-
* the active language is used.
|
|
2551
|
-
*
|
|
2552
|
-
* @example
|
|
2553
|
-
* ```html
|
|
2554
|
-
* {{ value | axpResolveMultiLanguageString }}
|
|
2555
|
-
* {{ value | axpResolveMultiLanguageString: locale() }}
|
|
2556
|
-
* ```
|
|
2557
|
-
*/
|
|
2558
|
-
declare class AXPResolveMultiLanguageStringPipe implements PipeTransform, OnDestroy {
|
|
2559
|
-
private readonly resolver;
|
|
2560
|
-
private readonly cdr;
|
|
2561
|
-
private readonly localeSubscription;
|
|
2562
|
-
transform(value: AXPMultiLanguageString | null | undefined, locale?: string | null): string;
|
|
2563
|
-
ngOnDestroy(): void;
|
|
2564
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXPResolveMultiLanguageStringPipe, never>;
|
|
2565
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<AXPResolveMultiLanguageStringPipe, "axpResolveMultiLanguageString", true>;
|
|
2566
|
-
}
|
|
2567
|
-
|
|
2568
2554
|
/**
|
|
2569
2555
|
* Locale-aware comparison of {@link AXPMultiLanguageString} values (plain string, `@scope:key`, or locale map).
|
|
2570
2556
|
* Resolves each side with {@link resolveMultiLanguageString} for `locale`, then compares with `String#localeCompare`.
|
|
@@ -2575,26 +2561,6 @@ declare function compareMultiLanguageStrings(a: AXPMultiLanguageString | null |
|
|
|
2575
2561
|
*/
|
|
2576
2562
|
declare function sortByMultiLanguageString<T>(items: readonly T[], getValue: (item: T) => AXPMultiLanguageString | null | undefined, locale: string, collatorOptions?: Intl.CollatorOptions): T[];
|
|
2577
2563
|
|
|
2578
|
-
/**
|
|
2579
|
-
* Checks whether value is a valid locale map (`xx-XX` or `*-*` keys, string values).
|
|
2580
|
-
*/
|
|
2581
|
-
declare function isValidMultiLanguageObject(value: unknown): value is Record<string, string>;
|
|
2582
|
-
/**
|
|
2583
|
-
* Resolves {@link AXPMultiLanguageString} to a single string for the given locale.
|
|
2584
|
-
* Fallback order: `currentLocale` → `en-US` → first map value.
|
|
2585
|
-
*/
|
|
2586
|
-
declare function resolveMultiLanguageString(content: AXPMultiLanguageString | null | undefined, currentLocale: string): string;
|
|
2587
|
-
/**
|
|
2588
|
-
* Creates an {@link AXPMultiLanguageString} with `en-US` and `fa-IR` entries.
|
|
2589
|
-
* Use for seed data, tests, and demos that supply English and Persian copy explicitly.
|
|
2590
|
-
*/
|
|
2591
|
-
declare function createMultiLanguageString(enUs: string, faIr: string): AXPMultiLanguageString;
|
|
2592
|
-
/**
|
|
2593
|
-
* True when there is no displayable text in any locale (plain string or ML map).
|
|
2594
|
-
* Pure helper for predicates (e.g. default section detection); prefer widgets / pipes for display.
|
|
2595
|
-
*/
|
|
2596
|
-
declare function isEffectivelyEmptyLocalizedValue(value: unknown): boolean;
|
|
2597
|
-
|
|
2598
2564
|
/**
|
|
2599
2565
|
* Represents a tag with text, color, and metadata
|
|
2600
2566
|
*/
|
|
@@ -2912,5 +2878,5 @@ declare function containsHtmlMarkup(value: string | null | undefined): boolean;
|
|
|
2912
2878
|
*/
|
|
2913
2879
|
declare function generateKebabCase(title: string): string;
|
|
2914
2880
|
|
|
2915
|
-
export { AXHighlightService, AXPActivityLogProvider, AXPActivityLogService, AXPAppStartUpProvider, AXPAppStartUpService, AXPBroadcastEventService, AXPColorPaletteProvider, AXPColorPaletteService, AXPColumnWidthService, AXPComponentLogoConfig, AXPComponentSlot, AXPComponentSlotDirective, AXPComponentSlotModule, AXPComponentSlotRegistryService, AXPContentCheckerDirective, AXPContextChangeEvent, AXPContextStore, AXPCountdownPipe, AXPDataGenerator, AXPDataSourceDefinitionProviderService, AXPDblClickDirective, AXPDefaultColorPalettesProvider, AXPDeviceService, AXPDeviceType, AXPDistributedEventListenerService, AXPElementDataDirective, AXPExportTemplateToken, AXPExpressionEvaluatorScopeProviderContext, AXPExpressionEvaluatorScopeProviderService, AXPExpressionEvaluatorService, AXPFeatureDefinitionProviderContext, AXPGridLayoutDirective, AXPHookService, AXPIconLogoConfig, AXPImageUrlLogoConfig, AXPModuleManifestModule, AXPModuleManifestRegistry, AXPModuleManifestsDataSourceDefinition,
|
|
2916
|
-
export type { AXPActionMenuItem, AXPActivityLog, AXPActivityLogChange, AXPApplicationUserReference, AXPBackButton, AXPBadge, AXPBreadcrumbItem, AXPCategorizedEntity, AXPCategorizedEntityDto, AXPCategoryEntity, AXPCategoryEntityWithItems, AXPCategoryListItem, AXPColorPalette, AXPColorPaletteFilterOptions, AXPColumnQuery, AXPColumnWidthMatcher, AXPColumnWidthProvider, AXPCommandMessage, AXPComponentSlotConfig, AXPComponentSlotModuleConfigs, AXPContent, AXPContentDirection, AXPContentType, AXPContextData, AXPContextState, AXPDataSource, AXPDataSourceArray, AXPDataSourceDataFieldDefinition, AXPDataSourceDefinition, AXPDataSourceDefinitionProvider, AXPDataSourceSample, AXPDataSourceType, AXPDataSourceValue, AXPDataType, AXPDistributedEventListenerProvider, AXPDistributedEventListenerProviderToken, AXPEntityOp, AXPEntityReference, AXPEqualValidationRule, AXPExecuteCommand, AXPExecuteCommandResult, AXPExportCsvOptions, AXPExportExcelOptions, AXPExportOptions, AXPExportPdfOptions, AXPExportPrintOptions, AXPExpression, AXPExpressionEvaluatorScope, AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviders, AXPFeatureDefinition, AXPFeatureDefinitionProvider, AXPFeatureName, AXPFileListItem, AXPFileSource, AXPFileStatus, AXPFilterClause, AXPFilterDefinition, AXPFilterQuery, AXPFilterTriggerDefinition, AXPFlowDirection, AXPGridLayoutOptions, AXPGridPlacement, AXPISessionService, AXPLazyDataSource, AXPLogoConfig, AXPMaxLengthValidationRule, AXPMaybePromise, AXPMetaData, AXPMiddlewareErrorResponse, AXPMinLengthValidationRule, AXPModuleFeatureDefinition, AXPModuleFeatureDefinitionWithKey, AXPModuleManifest, AXPMultiLanguageString, AXPNavigateActionCommand, AXPNavigateActionOptions, AXPOptionsData, AXPPageStatus, AXPPagedListResult, AXPPartialNested, AXPPlatformScopeKey, AXPQueryFetchResult, AXPQueryRequest, AXPReqexValidationRule, AXPRequiredValidationRule, AXPSortDefinition, AXPSortQuery, AXPStartUpTask, AXPStringValidationRules, AXPSystemAction, AXPTag, AXPTagFilterOptions, AXPUserReference, AXPValidationRule, AXPValidationRules, AXPValueTransformerFunction, AXPValueTransformerFunctions, AXPValueUnit, AXPValueUnits, AXPViewBlockDefinition, AXPViewDefinition, AXPViewFieldDefinition, AXPViewQuery, AXPWidgetTrigger, AXPWidgetTriggers, ColumnNameMatcher, ColumnWidthValue, IColumnWithWidth, WidgetTypeMatcher };
|
|
2881
|
+
export { AXHighlightService, AXPActivityLogProvider, AXPActivityLogService, AXPAppStartUpProvider, AXPAppStartUpService, AXPBroadcastEventService, AXPColorPaletteProvider, AXPColorPaletteService, AXPColumnWidthService, AXPComponentLogoConfig, AXPComponentSlot, AXPComponentSlotDirective, AXPComponentSlotModule, AXPComponentSlotRegistryService, AXPContentCheckerDirective, AXPContextChangeEvent, AXPContextStore, AXPCountdownPipe, AXPDataGenerator, AXPDataSourceDefinitionProviderService, AXPDblClickDirective, AXPDefaultColorPalettesProvider, AXPDeviceService, AXPDeviceType, AXPDistributedEventListenerService, AXPElementDataDirective, AXPExportTemplateToken, AXPExpressionEvaluatorScopeProviderContext, AXPExpressionEvaluatorScopeProviderService, AXPExpressionEvaluatorService, AXPFeatureDefinitionProviderContext, AXPGridLayoutDirective, AXPHookService, AXPIconLogoConfig, AXPImageUrlLogoConfig, AXPModuleManifestModule, AXPModuleManifestRegistry, AXPModuleManifestsDataSourceDefinition, AXPPlatformScope, AXPScreenSize, AXPSystemActionType, AXPSystemActions, AXPTagProvider, AXPTagService, AXP_ACTIVITY_LOG_PROVIDER, AXP_COLOR_PALETTE_PROVIDER, AXP_COLUMN_WIDTH_PROVIDER, AXP_DATASOURCE_DEFINITION_PROVIDER, AXP_DISTRIBUTED_EVENT_LISTENER_PROVIDER, AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, AXP_FEATURE_DEFINITION_PROVIDER, AXP_MODULE_MANIFEST_PROVIDER, AXP_SESSION_SERVICE, AXP_TAG_PROVIDER, MODULE_MANIFESTS_DATASOURCE_NAME, applyFilterArray, applyPagination, applyQueryArray, applySortArray, applySystemActionDefault, cleanDeep, compareMultiLanguageStrings, containsHtmlMarkup, createProviderWithInjectionContext, defaultColumnWidthProvider, extractNestedFieldsWildcard, extractTextFromHtml, extractValue, generateKebabCase, getActionButton, getChangedPaths, getDetailedChanges, getEnumValues, getNestedKeys, getSmart, getSystemActions, normalizeDefinitionCategories, objectKeyValueTransforms, provideLazyProvider, resolveActionLook, resolvePlatformScopeKey, resolvePlatformScopeName, setSmart, sortByMultiLanguageString };
|
|
2882
|
+
export type { AXPActionMenuItem, AXPActivityLog, AXPActivityLogChange, AXPApplicationUserReference, AXPBackButton, AXPBadge, AXPBreadcrumbItem, AXPCategorizedEntity, AXPCategorizedEntityDto, AXPCategoryEntity, AXPCategoryEntityWithItems, AXPCategoryListItem, AXPColorPalette, AXPColorPaletteFilterOptions, AXPColumnQuery, AXPColumnWidthMatcher, AXPColumnWidthProvider, AXPCommandMessage, AXPComponentSlotConfig, AXPComponentSlotModuleConfigs, AXPContent, AXPContentDirection, AXPContentType, AXPContextData, AXPContextState, AXPDataSource, AXPDataSourceArray, AXPDataSourceDataFieldDefinition, AXPDataSourceDefinition, AXPDataSourceDefinitionProvider, AXPDataSourceSample, AXPDataSourceType, AXPDataSourceValue, AXPDataType, AXPDefinitionCategory, AXPDistributedEventListenerProvider, AXPDistributedEventListenerProviderToken, AXPEntityOp, AXPEntityReference, AXPEqualValidationRule, AXPExecuteCommand, AXPExecuteCommandResult, AXPExportCsvOptions, AXPExportExcelOptions, AXPExportOptions, AXPExportPdfOptions, AXPExportPrintOptions, AXPExpression, AXPExpressionEvaluatorScope, AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviders, AXPFeatureDefinition, AXPFeatureDefinitionProvider, AXPFeatureName, AXPFileListItem, AXPFileSource, AXPFileStatus, AXPFilterClause, AXPFilterDefinition, AXPFilterQuery, AXPFilterTriggerDefinition, AXPFlowDirection, AXPGridLayoutOptions, AXPGridPlacement, AXPISessionService, AXPLazyDataSource, AXPLogoConfig, AXPMaxLengthValidationRule, AXPMaybePromise, AXPMetaData, AXPMiddlewareErrorResponse, AXPMinLengthValidationRule, AXPModuleFeatureDefinition, AXPModuleFeatureDefinitionWithKey, AXPModuleManifest, AXPMultiLanguageString, AXPNavigateActionCommand, AXPNavigateActionOptions, AXPOptionsData, AXPPageStatus, AXPPagedListResult, AXPPartialNested, AXPPlatformScopeKey, AXPProperty, AXPPropertyGroup, AXPPropertyInterface, AXPQueryFetchResult, AXPQueryRequest, AXPReqexValidationRule, AXPRequiredValidationRule, AXPSortDefinition, AXPSortQuery, AXPStartUpTask, AXPStringValidationRules, AXPSystemAction, AXPTag, AXPTagFilterOptions, AXPUserReference, AXPValidationRule, AXPValidationRules, AXPValueTransformerFunction, AXPValueTransformerFunctions, AXPValueUnit, AXPValueUnits, AXPViewBlockDefinition, AXPViewDefinition, AXPViewFieldDefinition, AXPViewQuery, AXPWidgetTrigger, AXPWidgetTriggers, ColumnNameMatcher, ColumnWidthValue, IColumnWithWidth, WidgetTypeMatcher };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, Type, EnvironmentProviders } from '@angular/core';
|
|
3
|
-
import { AXPExpression, AXPMetaData, AXPDataType, AXPOptionsData, AXPValidationRules } from '@acorex/platform/core';
|
|
3
|
+
import { AXPExpression, AXPMetaData, AXPDataType, AXPOptionsData, AXPDefinitionCategory, AXPValidationRules } from '@acorex/platform/core';
|
|
4
4
|
import * as i1 from '@acorex/platform/runtime';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -307,6 +307,8 @@ interface AXPCommandRegistryRecord {
|
|
|
307
307
|
* Omitted or empty means no declared surface; consumers may still apply legacy rules (e.g. AI `ai-tool` tag).
|
|
308
308
|
*/
|
|
309
309
|
capabilities?: AXPCommandCapability[];
|
|
310
|
+
/** Optional grouping from build-time command metadata (`categories` on `defineCommand`). */
|
|
311
|
+
categories?: AXPDefinitionCategory[];
|
|
310
312
|
}
|
|
311
313
|
|
|
312
314
|
/**
|
|
@@ -334,6 +336,22 @@ interface AXPQueryRegistryRecord {
|
|
|
334
336
|
* Omitted or empty means no declared surface; consumers may still apply legacy rules (e.g. AI `ai-tool` tag).
|
|
335
337
|
*/
|
|
336
338
|
capabilities?: AXPCommandCapability[];
|
|
339
|
+
/** Optional grouping from build-time query metadata (`categories` on `defineQuery`). */
|
|
340
|
+
categories?: AXPDefinitionCategory[];
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Persisted layout-widget catalog row (Dexie/Firestore via AXPEntityDefinitionCrudService).
|
|
345
|
+
* `name` is the widget registry name from build-time `defineWidget` metadata; `metadataJson` holds the full payload.
|
|
346
|
+
*/
|
|
347
|
+
interface AXPWidgetCatalogRecord {
|
|
348
|
+
name: string;
|
|
349
|
+
active: boolean;
|
|
350
|
+
description?: string;
|
|
351
|
+
/** Localized / catalog title from metadata `title`. */
|
|
352
|
+
catalogTitle?: string;
|
|
353
|
+
/** Pretty-printed JSON of full widget metadata (`defineWidget` sidecar). */
|
|
354
|
+
metadataJson?: string;
|
|
337
355
|
}
|
|
338
356
|
|
|
339
357
|
/**
|
|
@@ -437,6 +455,14 @@ interface AXPEntityDefinitionCrudService {
|
|
|
437
455
|
createQuery(id: string, definition: AXPQueryRegistryRecord): Promise<void>;
|
|
438
456
|
updateQuery(id: string, definition: AXPQueryRegistryRecord): Promise<void>;
|
|
439
457
|
deleteQuery(id: string): Promise<void>;
|
|
458
|
+
listWidgets(): Promise<Array<{
|
|
459
|
+
id: string;
|
|
460
|
+
definition: AXPWidgetCatalogRecord;
|
|
461
|
+
}>>;
|
|
462
|
+
getWidget(id: string): Promise<AXPWidgetCatalogRecord | null>;
|
|
463
|
+
createWidget(id: string, definition: AXPWidgetCatalogRecord): Promise<void>;
|
|
464
|
+
updateWidget(id: string, definition: AXPWidgetCatalogRecord): Promise<void>;
|
|
465
|
+
deleteWidget(id: string): Promise<void>;
|
|
440
466
|
}
|
|
441
467
|
declare const AXP_ENTITY_DEFINITION_CRUD_SERVICE: InjectionToken<AXPEntityDefinitionCrudService | null>;
|
|
442
468
|
|
|
@@ -2350,4 +2376,4 @@ declare function provideDomainMiddleware(config: {
|
|
|
2350
2376
|
}): EnvironmentProviders;
|
|
2351
2377
|
|
|
2352
2378
|
export { AXPAggregateModel, AXPDomainActionSide, AXPDomainMiddlewareContext, AXPDomainModule, AXPDomainRegistry, AXPDomainService, AXPEntityCommandScope, AXPEntityFieldModel, AXPEntityModel, AXPEntityType, AXPModuleHelper, AXPModuleModel, AXPPropertyMiddlewareContext, AXPPropertyModel, AXPPropertyRegistry, AXPPropertyService, AXPRelationModel, AXPRelationshipCardinality, AXPRelationshipKind, AXP_AGGREGATE_MIDDLEWARE_SETUP, AXP_ENTITY_CRUD_SETUP, AXP_ENTITY_DEFINITION_CRUD_SERVICE, AXP_ENTITY_MIDDLEWARE_SETUP, AXP_MODULE_MIDDLEWARE_SETUP, AXP_PROPERTY_EXTENSION, AXP_PROPERTY_LOADER_SETUP, AXP_PROPERTY_MIDDLEWARE_SETUP, AXP_PROPERTY_SETUP, provideAggregateMiddleware, provideDomainLoader, provideDomainLoaders, provideDomainMiddleware, provideEntityMiddleware, provideModuleMiddleware, providePropertiesFromFactory, provideProperty, providePropertyLoaders, providePropertyMiddleware, providePropertySetups, toPropertyDefinition };
|
|
2353
|
-
export type { AXPAggregateDefinition, AXPAggregateEntityList, AXPCommandCapability, AXPCommandRegistryRecord, AXPDomainAction, AXPDomainDefinition, AXPDomainLoader, AXPDomainLoaderConfig, AXPDomainMiddleware, AXPDomainPathInfo, AXPDomainRealtedModuleEntity, AXPEntityDefinition, AXPEntityDefinitionCrudService, AXPEntityPropertyDefinition, AXPEntityPropertyFeatures, AXPInterfaceCategory, AXPInterfaceDefinition, AXPInterfaceDefinitionValue, AXPMenuDefinitionEntityListRef, AXPMenuDefinitionRecord, AXPMenuDefinitionStoredCommand, AXPModuleDefinition, AXPPermissionDefinitionRecord, AXPPermissionGroupDefinitionRecord, AXPPermissionLeafRecord, AXPPluginDefinition, AXPPluginDefinitionValue, AXPPropertyDefinition, AXPPropertyEntry, AXPPropertyFeatures, AXPPropertyLoader, AXPPropertyLoaderConfig, AXPPropertyMiddleware, AXPPropertyMiddlewareEntry, AXPPropertyRegistrationOptions, AXPQueryRegistryRecord, AXPRegisteredProperty, AXPRelationDefinition, AXPValidationRuleDefinition, AXPValidationRuleValue, AXPValidationRunAt };
|
|
2379
|
+
export type { AXPAggregateDefinition, AXPAggregateEntityList, AXPCommandCapability, AXPCommandRegistryRecord, AXPDomainAction, AXPDomainDefinition, AXPDomainLoader, AXPDomainLoaderConfig, AXPDomainMiddleware, AXPDomainPathInfo, AXPDomainRealtedModuleEntity, AXPEntityDefinition, AXPEntityDefinitionCrudService, AXPEntityPropertyDefinition, AXPEntityPropertyFeatures, AXPInterfaceCategory, AXPInterfaceDefinition, AXPInterfaceDefinitionValue, AXPMenuDefinitionEntityListRef, AXPMenuDefinitionRecord, AXPMenuDefinitionStoredCommand, AXPModuleDefinition, AXPPermissionDefinitionRecord, AXPPermissionGroupDefinitionRecord, AXPPermissionLeafRecord, AXPPluginDefinition, AXPPluginDefinitionValue, AXPPropertyDefinition, AXPPropertyEntry, AXPPropertyFeatures, AXPPropertyLoader, AXPPropertyLoaderConfig, AXPPropertyMiddleware, AXPPropertyMiddlewareEntry, AXPPropertyRegistrationOptions, AXPQueryRegistryRecord, AXPRegisteredProperty, AXPRelationDefinition, AXPValidationRuleDefinition, AXPValidationRuleValue, AXPValidationRunAt, AXPWidgetCatalogRecord };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { AXFormComponent } from '@acorex/components/form';
|
|
@@ -231,9 +231,14 @@ interface AXPFieldsetContainerOptions extends LayoutWidgetOptions {
|
|
|
231
231
|
showHeader?: boolean;
|
|
232
232
|
cols?: number;
|
|
233
233
|
}
|
|
234
|
+
/** How optional `hint` text is rendered in `form-field` layout widgets. */
|
|
235
|
+
type AXPFormFieldHintDisplayMode = 'icon' | 'note';
|
|
234
236
|
interface AXPFormFieldOptions extends LayoutWidgetOptions {
|
|
235
237
|
label?: string;
|
|
236
238
|
showLabel?: boolean;
|
|
239
|
+
/** Translated/helper copy; pairing with {@link hintDisplayMode}. */
|
|
240
|
+
hint?: AXPMultiLanguageString;
|
|
241
|
+
hintDisplayMode?: AXPFormFieldHintDisplayMode;
|
|
237
242
|
}
|
|
238
243
|
interface AXPDialogContainerOptions extends LayoutWidgetOptions {
|
|
239
244
|
title?: string;
|
|
@@ -246,6 +251,10 @@ interface RichTextOptions extends ValueWidgetOptions {
|
|
|
246
251
|
placeholder?: AXPMultiLanguageString;
|
|
247
252
|
toolbar?: string[];
|
|
248
253
|
readonly?: boolean;
|
|
254
|
+
/** Max height (px) for scrollable full preview when `showFullContent` is true. */
|
|
255
|
+
height?: number;
|
|
256
|
+
/** When true, view mode renders full HTML in a scrollable area instead of a truncated snippet. */
|
|
257
|
+
showFullContent?: boolean;
|
|
249
258
|
}
|
|
250
259
|
interface PasswordBoxOptions extends ValueWidgetOptions {
|
|
251
260
|
placeholder?: AXPMultiLanguageString;
|
|
@@ -650,38 +659,43 @@ declare class AXPLayoutRendererComponent implements OnInit {
|
|
|
650
659
|
/**
|
|
651
660
|
* Form definition containing groups and fields OR widget tree
|
|
652
661
|
*/
|
|
653
|
-
layout:
|
|
662
|
+
layout: _angular_core.InputSignal<AXPWidgetNode | AXPDynamicFormDefinition>;
|
|
654
663
|
/**
|
|
655
664
|
* Form context/model data
|
|
656
665
|
*/
|
|
657
|
-
context:
|
|
666
|
+
context: _angular_core.ModelSignal<any>;
|
|
658
667
|
/**
|
|
659
668
|
* Form appearance and density styling (normal, compact, spacious)
|
|
660
669
|
*/
|
|
661
|
-
look:
|
|
670
|
+
look: _angular_core.InputSignal<AXPDynamicFormLook>;
|
|
662
671
|
/**
|
|
663
672
|
* Default form mode. Can be overridden by section/group and field.
|
|
664
673
|
*/
|
|
665
|
-
mode:
|
|
666
|
-
protected widgetTree:
|
|
674
|
+
mode: _angular_core.InputSignal<AXPDynamicFormMode>;
|
|
675
|
+
protected widgetTree: _angular_core.WritableSignal<AXPWidgetNode | null>;
|
|
676
|
+
/**
|
|
677
|
+
* Prefer explicit {@link AXPWidgetNode.mode} on the root node (e.g. dialog flex `mode('view')`)
|
|
678
|
+
* so nested widgets resolve view vs edit correctly; fall back to the layout `mode` input.
|
|
679
|
+
*/
|
|
680
|
+
protected effectiveRenderMode: _angular_core.Signal<"view" | "edit" | "column" | "designer" | "print" | "filter">;
|
|
667
681
|
/**
|
|
668
682
|
* Convert layout data to widget tree when inputs change
|
|
669
683
|
*/
|
|
670
|
-
conversionEffect:
|
|
684
|
+
conversionEffect: _angular_core.EffectRef;
|
|
671
685
|
/**
|
|
672
686
|
* Emitted when context change is initiated
|
|
673
687
|
*/
|
|
674
|
-
contextInitiated:
|
|
688
|
+
contextInitiated: _angular_core.OutputEmitterRef<any>;
|
|
675
689
|
/**
|
|
676
690
|
* Emitted when form becomes valid/invalid
|
|
677
691
|
*/
|
|
678
|
-
validityChange:
|
|
692
|
+
validityChange: _angular_core.OutputEmitterRef<boolean>;
|
|
679
693
|
private form;
|
|
680
694
|
private container;
|
|
681
695
|
/**
|
|
682
696
|
* Internal context signal for reactivity
|
|
683
697
|
*/
|
|
684
|
-
protected internalContext:
|
|
698
|
+
protected internalContext: _angular_core.WritableSignal<any>;
|
|
685
699
|
/**
|
|
686
700
|
* Initial context for reset functionality
|
|
687
701
|
*/
|
|
@@ -735,14 +749,14 @@ declare class AXPLayoutRendererComponent implements OnInit {
|
|
|
735
749
|
* Type guard to check if the input is a widget node
|
|
736
750
|
*/
|
|
737
751
|
private isWidgetNode;
|
|
738
|
-
static ɵfac:
|
|
739
|
-
static ɵcmp:
|
|
752
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPLayoutRendererComponent, never>;
|
|
753
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPLayoutRendererComponent, "axp-layout-renderer", never, { "layout": { "alias": "layout"; "required": true; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; }, { "context": "contextChange"; "contextInitiated": "contextInitiated"; "validityChange": "validityChange"; }, never, never, true, never>;
|
|
740
754
|
}
|
|
741
755
|
|
|
742
756
|
declare class LayoutBuilderModule {
|
|
743
|
-
static ɵfac:
|
|
744
|
-
static ɵmod:
|
|
745
|
-
static ɵinj:
|
|
757
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LayoutBuilderModule, never>;
|
|
758
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<LayoutBuilderModule, never, [typeof i1.CommonModule, typeof AXPLayoutRendererComponent], [typeof AXPLayoutRendererComponent]>;
|
|
759
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<LayoutBuilderModule>;
|
|
746
760
|
}
|
|
747
761
|
|
|
748
762
|
declare class AXPLayoutBuilderService {
|
|
@@ -751,8 +765,8 @@ declare class AXPLayoutBuilderService {
|
|
|
751
765
|
* Create a new layout builder
|
|
752
766
|
*/
|
|
753
767
|
create(): ILayoutBuilder;
|
|
754
|
-
static ɵfac:
|
|
755
|
-
static ɵprov:
|
|
768
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPLayoutBuilderService, never>;
|
|
769
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPLayoutBuilderService>;
|
|
756
770
|
}
|
|
757
771
|
|
|
758
772
|
declare class AXPLayoutConversionService {
|
|
@@ -817,8 +831,8 @@ declare class AXPLayoutConversionService {
|
|
|
817
831
|
* Create a simple hash from a string
|
|
818
832
|
*/
|
|
819
833
|
private createSimpleHash;
|
|
820
|
-
static ɵfac:
|
|
821
|
-
static ɵprov:
|
|
834
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPLayoutConversionService, never>;
|
|
835
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPLayoutConversionService>;
|
|
822
836
|
}
|
|
823
837
|
|
|
824
838
|
interface DialogRendererConfig {
|
|
@@ -849,12 +863,12 @@ declare class AXPDialogRendererComponent extends AXBasePageComponent implements
|
|
|
849
863
|
private widgetCoreService;
|
|
850
864
|
private expressionEvaluator;
|
|
851
865
|
private dialogResult?;
|
|
852
|
-
context:
|
|
866
|
+
context: _angular_core.WritableSignal<any>;
|
|
853
867
|
callBack: (dialogRef: AXPDialogRef) => void;
|
|
854
868
|
data: any;
|
|
855
869
|
private isDialogLoading;
|
|
856
|
-
footerPrefix:
|
|
857
|
-
footerSuffix:
|
|
870
|
+
footerPrefix: _angular_core.WritableSignal<AXPWidgetCoreElementAction[]>;
|
|
871
|
+
footerSuffix: _angular_core.WritableSignal<AXPWidgetCoreElementAction[]>;
|
|
858
872
|
ngOnInit(): void;
|
|
859
873
|
private layoutRenderer;
|
|
860
874
|
private debounceTimer?;
|
|
@@ -876,8 +890,8 @@ declare class AXPDialogRendererComponent extends AXBasePageComponent implements
|
|
|
876
890
|
private evaluatePredicates;
|
|
877
891
|
private evalBool;
|
|
878
892
|
private resolveApi;
|
|
879
|
-
static ɵfac:
|
|
880
|
-
static ɵcmp:
|
|
893
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPDialogRendererComponent, never>;
|
|
894
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPDialogRendererComponent, "axp-dialog-renderer", never, {}, { "result": "result"; }, never, never, true, never>;
|
|
881
895
|
}
|
|
882
896
|
|
|
883
897
|
/** Registration key for {@link AXPPreviewWidgetFieldCommand}; lives alone so `LayoutBuilderModule` can reference it without static-importing the command implementation. */
|
|
@@ -910,7 +924,6 @@ declare class AXPPreviewWidgetFieldCommand implements AXPCommand<AXPPreviewWidge
|
|
|
910
924
|
private readonly formBuilderService;
|
|
911
925
|
private readonly widgetRegistry;
|
|
912
926
|
private readonly translationService;
|
|
913
|
-
private readonly mlResolver;
|
|
914
927
|
private readonly crudService;
|
|
915
928
|
execute(input: AXPPreviewWidgetFieldInvocation): Promise<AXPExecuteCommandResult<void>>;
|
|
916
929
|
private mergeInvocation;
|
|
@@ -918,9 +931,9 @@ declare class AXPPreviewWidgetFieldCommand implements AXPCommand<AXPPreviewWidge
|
|
|
918
931
|
private resolveFieldTitleLabel;
|
|
919
932
|
private isCancelDialogOutcome;
|
|
920
933
|
private resolveWidgetDisplayTitle;
|
|
921
|
-
static ɵfac:
|
|
922
|
-
static ɵprov:
|
|
934
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPPreviewWidgetFieldCommand, never>;
|
|
935
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPPreviewWidgetFieldCommand>;
|
|
923
936
|
}
|
|
924
937
|
|
|
925
938
|
export { AXPDialogRendererComponent, AXPLayoutBuilderService, AXPLayoutConversionService, AXPLayoutRendererComponent, AXPPreviewWidgetFieldCommand, AXP_PREVIEW_WIDGET_FIELD_COMMAND_KEY, LayoutBuilderModule };
|
|
926
|
-
export type { AXPDialogContainerOptions, AXPDialogRef, AXPDynamicFormDefinition, AXPDynamicFormDirection, AXPDynamicFormFieldDefinition, AXPDynamicFormGroupDefinition, AXPDynamicFormLook, AXPDynamicFormMode, AXPFieldsetContainerOptions, AXPFlexContainerOptions, AXPFormFieldOptions, AXPGridContainerOptions, AXPListWidgetColumn, AXPListWidgetOptions, AXPListWidgetRowCommand, AXPPageContainerOptions, AXPPanelContainerOptions, AXPPreviewWidgetFieldCommandInput, AXPStepDefinition, AXPStepWizardContainerOptions, AXPStepWizardDefinition, AXPStepWizardGuardPayload, AXPStepWizardStatus, AXPTabsetContainerOptions, AXPWidgetConfiguration, AXPWidgetNodeExtendedProperties, AXPWizardActionDefinition, AXPWizardActions, ColorBoxOptions, DateTimeBoxOptions, DialogBuilderState, DialogRendererConfig, DialogRendererResult, FormFieldBuilderState, IActionBuilder, IBaseContainerBuilder, IChildContainerBuilder, IDialogBuilder, IFieldsetContainerBuilder, IFlexContainerBuilder, IFormFieldBuilder, IGridContainerBuilder, ILayoutBuilder, ILayoutContainerBuilder, IListWidgetBuilder, IPageContainerBuilder, IPanelContainerBuilder, IStepBuilder, IStepWizardBuilder, ITabsetContainerBuilder, IWidgetBuilder, IWidgetContainerBuilder, InheritanceContext, InheritedProperties, LargeTextBoxOptions, LayoutBuilderState, LayoutWidgetOptions, LookupBoxOptions, NumberBoxOptions, PasswordBoxOptions, RichTextOptions, SelectBoxOptions, SelectionListOptions, TextBoxOptions, ToggleSwitchOptions, ValueWidgetOptions, WidgetBuilderState };
|
|
939
|
+
export type { AXPDialogContainerOptions, AXPDialogRef, AXPDynamicFormDefinition, AXPDynamicFormDirection, AXPDynamicFormFieldDefinition, AXPDynamicFormGroupDefinition, AXPDynamicFormLook, AXPDynamicFormMode, AXPFieldsetContainerOptions, AXPFlexContainerOptions, AXPFormFieldHintDisplayMode, AXPFormFieldOptions, AXPGridContainerOptions, AXPListWidgetColumn, AXPListWidgetOptions, AXPListWidgetRowCommand, AXPPageContainerOptions, AXPPanelContainerOptions, AXPPreviewWidgetFieldCommandInput, AXPStepDefinition, AXPStepWizardContainerOptions, AXPStepWizardDefinition, AXPStepWizardGuardPayload, AXPStepWizardStatus, AXPTabsetContainerOptions, AXPWidgetConfiguration, AXPWidgetNodeExtendedProperties, AXPWizardActionDefinition, AXPWizardActions, ColorBoxOptions, DateTimeBoxOptions, DialogBuilderState, DialogRendererConfig, DialogRendererResult, FormFieldBuilderState, IActionBuilder, IBaseContainerBuilder, IChildContainerBuilder, IDialogBuilder, IFieldsetContainerBuilder, IFlexContainerBuilder, IFormFieldBuilder, IGridContainerBuilder, ILayoutBuilder, ILayoutContainerBuilder, IListWidgetBuilder, IPageContainerBuilder, IPanelContainerBuilder, IStepBuilder, IStepWizardBuilder, ITabsetContainerBuilder, IWidgetBuilder, IWidgetContainerBuilder, InheritanceContext, InheritedProperties, LargeTextBoxOptions, LayoutBuilderState, LayoutWidgetOptions, LookupBoxOptions, NumberBoxOptions, PasswordBoxOptions, RichTextOptions, SelectBoxOptions, SelectionListOptions, TextBoxOptions, ToggleSwitchOptions, ValueWidgetOptions, WidgetBuilderState };
|
|
@@ -13,6 +13,7 @@ import { AXBasePageComponent } from '@acorex/components/page';
|
|
|
13
13
|
import { AXDropListDroppedEvent } from '@acorex/cdk/drag-drop';
|
|
14
14
|
import { AXTagBoxComponent } from '@acorex/components/tag-box';
|
|
15
15
|
import { AXCalendarService } from '@acorex/core/date-time';
|
|
16
|
+
import * as _acorex_core_translation from '@acorex/core/translation';
|
|
16
17
|
import { AXTranslationService } from '@acorex/core/translation';
|
|
17
18
|
import { AXFormComponent } from '@acorex/components/form';
|
|
18
19
|
import { AXTreeViewNode, AXTreeViewDragBehavior, AXTreeViewDragArea, AXTreeViewComponent, AXTreeViewBeforeDropEvent, AXTreeViewDropEvent } from '@acorex/components/tree-view';
|
|
@@ -2344,7 +2345,6 @@ interface ItemConfiguratorSelectRow {
|
|
|
2344
2345
|
* Bound state: {@link selectedItemId} and {@link values} (context returned from the viewer). Not tied to {@link AXPWidgetNode}.
|
|
2345
2346
|
*/
|
|
2346
2347
|
declare class AXPItemConfiguratorComponent {
|
|
2347
|
-
private readonly mlResolver;
|
|
2348
2348
|
/** Selected list entry id ({@link ItemConfiguratorListItem.id}). */
|
|
2349
2349
|
selectedItemId: _angular_core.ModelSignal<string>;
|
|
2350
2350
|
/** Values edited in the property viewer (merged from dialog result). */
|
|
@@ -2363,7 +2363,7 @@ declare class AXPItemConfiguratorComponent {
|
|
|
2363
2363
|
protected resolvedPropertyDefinitions: _angular_core.Signal<AXPWidgetProperty[]>;
|
|
2364
2364
|
protected currentItemConfig: _angular_core.Signal<{
|
|
2365
2365
|
title: string;
|
|
2366
|
-
description:
|
|
2366
|
+
description: _acorex_core_translation.AXMultiLanguageString | undefined;
|
|
2367
2367
|
icon: string | undefined;
|
|
2368
2368
|
hasProperties: boolean;
|
|
2369
2369
|
} | null>;
|
|
@@ -2392,7 +2392,7 @@ declare class AXPWidgetFieldConfiguratorComponent {
|
|
|
2392
2392
|
widget: _angular_core.ModelSignal<AXPWidgetNode>;
|
|
2393
2393
|
label: _angular_core.InputSignal<string>;
|
|
2394
2394
|
fieldName: _angular_core.InputSignal<string>;
|
|
2395
|
-
fieldTitle: _angular_core.InputSignal<
|
|
2395
|
+
fieldTitle: _angular_core.InputSignal<_acorex_core_translation.AXMultiLanguageString>;
|
|
2396
2396
|
readonly: _angular_core.InputSignal<boolean>;
|
|
2397
2397
|
private readonly widgetRegistry;
|
|
2398
2398
|
private readonly translation;
|
|
@@ -2618,6 +2618,7 @@ declare class AXPResourceAppointmentComponent implements OnInit {
|
|
|
2618
2618
|
providerName: _angular_core.InputSignal<string | undefined>;
|
|
2619
2619
|
private readonly resourceAppointmentService;
|
|
2620
2620
|
private readonly formatService;
|
|
2621
|
+
private readonly translateService;
|
|
2621
2622
|
private readonly contextMenu;
|
|
2622
2623
|
protected readonly schedulerRef: _angular_core.Signal<AXSchedulerComponent | undefined>;
|
|
2623
2624
|
protected readonly isReady: _angular_core.WritableSignal<boolean>;
|