@acorex/platform 21.0.0-beta.0 → 21.0.0-beta.10
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-auth.mjs +4 -0
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/{acorex-platform-common-common-settings.provider-G9XcXXOG.mjs → acorex-platform-common-common-settings.provider-Bi1RYif5.mjs} +58 -22
- package/fesm2022/acorex-platform-common-common-settings.provider-Bi1RYif5.mjs.map +1 -0
- package/fesm2022/acorex-platform-common.mjs +275 -130
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +106 -5
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +104 -13
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +224 -6
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +37 -2
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +1107 -72
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +7 -5
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +72 -6
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +181 -158
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-runtime.mjs +65 -2
- package/fesm2022/acorex-platform-runtime.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +121 -15
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-shared-settings.provider-D13QB3Hr.mjs → acorex-platform-themes-shared-settings.provider-DK6R87Lf.mjs} +23 -24
- package/fesm2022/acorex-platform-themes-shared-settings.provider-DK6R87Lf.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared.mjs +2 -2
- package/fesm2022/acorex-platform-workflow.mjs +85 -4
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/package.json +2 -4
- package/types/acorex-platform-common.d.ts +105 -52
- package/types/acorex-platform-core.d.ts +26 -3
- package/types/acorex-platform-layout-builder.d.ts +26 -3
- package/types/acorex-platform-layout-components.d.ts +52 -1
- package/types/acorex-platform-layout-entity.d.ts +262 -8
- package/types/acorex-platform-layout-widget-core.d.ts +15 -0
- package/types/acorex-platform-layout-widgets.d.ts +33 -23
- package/types/acorex-platform-runtime.d.ts +6 -0
- package/types/acorex-platform-themes-default.d.ts +8 -0
- package/types/acorex-platform-workflow.d.ts +68 -2
- package/fesm2022/acorex-platform-common-common-settings.provider-G9XcXXOG.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-settings.provider-D13QB3Hr.mjs.map +0 -1
|
@@ -2472,6 +2472,18 @@ function compareMultiLanguageStrings(a, b, locale, collatorOptions = DEFAULT_COL
|
|
|
2472
2472
|
function sortByMultiLanguageString(items, getValue, locale, collatorOptions) {
|
|
2473
2473
|
return [...items].sort((x, y) => compareMultiLanguageStrings(getValue(x), getValue(y), locale, collatorOptions));
|
|
2474
2474
|
}
|
|
2475
|
+
/**
|
|
2476
|
+
* True when the resolved value contains `query` (case-insensitive) for `locale`.
|
|
2477
|
+
* Useful for search/filter flows over {@link AXPMultiLanguageString}.
|
|
2478
|
+
*/
|
|
2479
|
+
function searchInMultiLanguageString(value, query, locale) {
|
|
2480
|
+
const q = query.trim().toLocaleLowerCase(locale);
|
|
2481
|
+
if (!q) {
|
|
2482
|
+
return true;
|
|
2483
|
+
}
|
|
2484
|
+
const text = resolveMultiLanguageString(value ?? '', locale).toLocaleLowerCase(locale);
|
|
2485
|
+
return text.includes(q);
|
|
2486
|
+
}
|
|
2475
2487
|
//#endregion
|
|
2476
2488
|
|
|
2477
2489
|
//#region ---- Tag Types ----
|
|
@@ -3573,10 +3585,11 @@ function normalizeDefinitionCategories(categories) {
|
|
|
3573
3585
|
function applySystemActionDefault(action, type) {
|
|
3574
3586
|
const systemAction = getSystemActions(type);
|
|
3575
3587
|
return {
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3588
|
+
...action,
|
|
3589
|
+
name: action.name ?? systemAction.key,
|
|
3590
|
+
title: action.title ?? systemAction.title,
|
|
3591
|
+
icon: action.icon ?? systemAction.icon,
|
|
3592
|
+
color: action.color ?? systemAction.color,
|
|
3580
3593
|
};
|
|
3581
3594
|
}
|
|
3582
3595
|
|
|
@@ -4288,6 +4301,94 @@ function provideLazyProvider(token, loader, multi = true) {
|
|
|
4288
4301
|
};
|
|
4289
4302
|
}
|
|
4290
4303
|
|
|
4304
|
+
//#region ---- Unwrapping ----
|
|
4305
|
+
/**
|
|
4306
|
+
* If `raw` is a plain non-array object with a `value` property, returns `value`; otherwise returns `raw`.
|
|
4307
|
+
*/
|
|
4308
|
+
function unwrapValueProperty(raw) {
|
|
4309
|
+
if (raw && typeof raw === 'object' && !Array.isArray(raw) && !(raw instanceof Date) && 'value' in raw) {
|
|
4310
|
+
return raw.value;
|
|
4311
|
+
}
|
|
4312
|
+
return raw;
|
|
4313
|
+
}
|
|
4314
|
+
//#endregion
|
|
4315
|
+
//#region ---- Scalar coercion ----
|
|
4316
|
+
/**
|
|
4317
|
+
* Coerces to a trimmed string. Plain objects may carry `{ value }` from setting widgets or `{ id }` from select payloads using `valueField: 'id'`.
|
|
4318
|
+
*/
|
|
4319
|
+
function coerceUnknownToTrimmedString(raw) {
|
|
4320
|
+
if (typeof raw === 'string') {
|
|
4321
|
+
return raw.trim();
|
|
4322
|
+
}
|
|
4323
|
+
if (raw && typeof raw === 'object' && !Array.isArray(raw) && !(raw instanceof Date)) {
|
|
4324
|
+
const r = raw;
|
|
4325
|
+
if ('value' in r && r['value'] != null) {
|
|
4326
|
+
return String(r['value']).trim();
|
|
4327
|
+
}
|
|
4328
|
+
if ('id' in r && r['id'] != null) {
|
|
4329
|
+
return String(r['id']).trim();
|
|
4330
|
+
}
|
|
4331
|
+
}
|
|
4332
|
+
return '';
|
|
4333
|
+
}
|
|
4334
|
+
/**
|
|
4335
|
+
* Coerces to boolean: direct booleans pass through; wrapped `{ value: true | 'true' }` is respected; otherwise false.
|
|
4336
|
+
*/
|
|
4337
|
+
function coerceUnknownToBoolean(raw) {
|
|
4338
|
+
if (typeof raw === 'boolean') {
|
|
4339
|
+
return raw;
|
|
4340
|
+
}
|
|
4341
|
+
if (raw && typeof raw === 'object' && 'value' in raw) {
|
|
4342
|
+
const v = raw.value;
|
|
4343
|
+
return v === true || v === 'true';
|
|
4344
|
+
}
|
|
4345
|
+
return false;
|
|
4346
|
+
}
|
|
4347
|
+
/** Parses a finite number after optional `{ value }` unwrap; non-finite or empty string yields NaN. */
|
|
4348
|
+
function coerceUnknownToFiniteNumber(raw) {
|
|
4349
|
+
const v = unwrapValueProperty(raw);
|
|
4350
|
+
if (v === null || v === undefined) {
|
|
4351
|
+
return NaN;
|
|
4352
|
+
}
|
|
4353
|
+
if (typeof v === 'number') {
|
|
4354
|
+
return Number.isFinite(v) ? v : NaN;
|
|
4355
|
+
}
|
|
4356
|
+
if (typeof v === 'boolean') {
|
|
4357
|
+
return v ? 1 : 0;
|
|
4358
|
+
}
|
|
4359
|
+
if (typeof v === 'string') {
|
|
4360
|
+
const t = v.trim();
|
|
4361
|
+
if (t === '') {
|
|
4362
|
+
return NaN;
|
|
4363
|
+
}
|
|
4364
|
+
const n = Number(t);
|
|
4365
|
+
return Number.isFinite(n) ? n : NaN;
|
|
4366
|
+
}
|
|
4367
|
+
return NaN;
|
|
4368
|
+
}
|
|
4369
|
+
/** Parses a Date after optional `{ value }` unwrap; invalid input yields Invalid Date. */
|
|
4370
|
+
function coerceUnknownToDate(raw) {
|
|
4371
|
+
const v = unwrapValueProperty(raw);
|
|
4372
|
+
if (v === null || v === undefined) {
|
|
4373
|
+
return new Date(NaN);
|
|
4374
|
+
}
|
|
4375
|
+
if (v instanceof Date) {
|
|
4376
|
+
return new Date(v.getTime());
|
|
4377
|
+
}
|
|
4378
|
+
if (typeof v === 'number' && Number.isFinite(v)) {
|
|
4379
|
+
return new Date(v);
|
|
4380
|
+
}
|
|
4381
|
+
if (typeof v === 'string') {
|
|
4382
|
+
const t = v.trim();
|
|
4383
|
+
if (t === '') {
|
|
4384
|
+
return new Date(NaN);
|
|
4385
|
+
}
|
|
4386
|
+
return new Date(t);
|
|
4387
|
+
}
|
|
4388
|
+
return new Date(NaN);
|
|
4389
|
+
}
|
|
4390
|
+
//#endregion
|
|
4391
|
+
|
|
4291
4392
|
function extractTextFromHtml(value) {
|
|
4292
4393
|
const div = document.createElement('div');
|
|
4293
4394
|
div.innerHTML = value;
|
|
@@ -4324,5 +4425,5 @@ function generateKebabCase(title) {
|
|
|
4324
4425
|
* Generated bundle index. Do not edit.
|
|
4325
4426
|
*/
|
|
4326
4427
|
|
|
4327
|
-
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 };
|
|
4428
|
+
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, coerceUnknownToBoolean, coerceUnknownToDate, coerceUnknownToFiniteNumber, coerceUnknownToTrimmedString, compareMultiLanguageStrings, containsHtmlMarkup, createProviderWithInjectionContext, defaultColumnWidthProvider, extractNestedFieldsWildcard, extractTextFromHtml, extractValue, generateKebabCase, getActionButton, getChangedPaths, getDetailedChanges, getEnumValues, getNestedKeys, getSmart, getSystemActions, normalizeDefinitionCategories, objectKeyValueTransforms, provideLazyProvider, resolveActionLook, resolvePlatformScopeKey, resolvePlatformScopeName, searchInMultiLanguageString, setSmart, sortByMultiLanguageString, unwrapValueProperty };
|
|
4328
4429
|
//# sourceMappingURL=acorex-platform-core.mjs.map
|