@acorex/platform 20.0.2 → 20.0.4
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/common/index.d.ts +40 -71
- package/core/index.d.ts +245 -217
- package/fesm2022/acorex-platform-common.mjs +9 -26
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +63 -57
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +7 -4
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-BFIGLwd9.mjs → acorex-platform-themes-default-entity-master-create-view.component-CzSqhYfE.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-BFIGLwd9.mjs.map → acorex-platform-themes-default-entity-master-create-view.component-CzSqhYfE.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-BuyMyK_I.mjs → acorex-platform-themes-default-entity-master-list-view.component-BxdQ5JWS.mjs} +10 -270
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-BxdQ5JWS.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-CHHmHz2a.mjs → acorex-platform-themes-default-entity-master-modify-view.component-12xcM8FJ.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-CHHmHz2a.mjs.map → acorex-platform-themes-default-entity-master-modify-view.component-12xcM8FJ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-CnjDBPeT.mjs → acorex-platform-themes-default-entity-master-single-view.component-cvoKMP84.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-CnjDBPeT.mjs.map → acorex-platform-themes-default-entity-master-single-view.component-cvoKMP84.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +10 -10
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-widgets.mjs +26 -8
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +13 -44
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/components/index.d.ts +2 -2
- package/layout/entity/index.d.ts +2 -2
- package/package.json +1 -5
- package/widgets/index.d.ts +4 -0
- package/workflow/index.d.ts +11 -3
- package/fesm2022/acorex-platform-layout-filters.mjs +0 -163
- package/fesm2022/acorex-platform-layout-filters.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-BuyMyK_I.mjs.map +0 -1
- package/layout/filters/README.md +0 -3
- package/layout/filters/index.d.ts +0 -34
|
@@ -832,7 +832,7 @@ class AXPExpressionEvaluatorService {
|
|
|
832
832
|
});
|
|
833
833
|
}
|
|
834
834
|
// Evaluate all expressions in parallel
|
|
835
|
-
const values = await Promise.all(matches.map(m => {
|
|
835
|
+
const values = await Promise.all(matches.map((m) => {
|
|
836
836
|
const sandbox = this.getOrCompileFunction(m.expression);
|
|
837
837
|
return sandbox(scope);
|
|
838
838
|
}));
|
|
@@ -848,6 +848,12 @@ class AXPExpressionEvaluatorService {
|
|
|
848
848
|
result += templateExpression.slice(lastIndex);
|
|
849
849
|
return result;
|
|
850
850
|
}
|
|
851
|
+
isExpression(expression) {
|
|
852
|
+
if (typeof expression === 'string') {
|
|
853
|
+
return expression.includes('{{');
|
|
854
|
+
}
|
|
855
|
+
return false;
|
|
856
|
+
}
|
|
851
857
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: AXPExpressionEvaluatorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
852
858
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: AXPExpressionEvaluatorService, providedIn: 'root' }); }
|
|
853
859
|
}
|
|
@@ -893,62 +899,6 @@ const AXPAppStartUpProvider = provideAppInitializer(() => {
|
|
|
893
899
|
return initializerFn();
|
|
894
900
|
});
|
|
895
901
|
|
|
896
|
-
function getNestedKeys(obj, prefix = '') {
|
|
897
|
-
let keys = [];
|
|
898
|
-
for (const key in obj) {
|
|
899
|
-
if (typeof obj[key] === 'object' && obj[key] !== null && !Array.isArray(obj[key])) {
|
|
900
|
-
keys = [...keys, ...getNestedKeys(obj[key], prefix + key + '.')];
|
|
901
|
-
}
|
|
902
|
-
else {
|
|
903
|
-
keys.push(prefix + key);
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
return keys;
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
class AXPImageUrlLogoConfig {
|
|
910
|
-
constructor(url, width, height) {
|
|
911
|
-
this.url = url;
|
|
912
|
-
this.width = width;
|
|
913
|
-
this.height = height;
|
|
914
|
-
}
|
|
915
|
-
}
|
|
916
|
-
class AXPComponentLogoConfig {
|
|
917
|
-
constructor(component) {
|
|
918
|
-
this.component = component;
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
var AXPPlatformScope;
|
|
923
|
-
(function (AXPPlatformScope) {
|
|
924
|
-
AXPPlatformScope["Environment"] = "C";
|
|
925
|
-
AXPPlatformScope["Global"] = "G";
|
|
926
|
-
AXPPlatformScope["Platform"] = "P";
|
|
927
|
-
AXPPlatformScope["Tenant"] = "T";
|
|
928
|
-
AXPPlatformScope["User"] = "U";
|
|
929
|
-
})(AXPPlatformScope || (AXPPlatformScope = {}));
|
|
930
|
-
;
|
|
931
|
-
function resolvePlatformScopeKey(name) {
|
|
932
|
-
const scopeMap = {
|
|
933
|
-
environment: AXPPlatformScope.Environment,
|
|
934
|
-
global: AXPPlatformScope.Global,
|
|
935
|
-
platform: AXPPlatformScope.Platform,
|
|
936
|
-
tenant: AXPPlatformScope.Tenant,
|
|
937
|
-
user: AXPPlatformScope.User,
|
|
938
|
-
};
|
|
939
|
-
return scopeMap[name.toLowerCase()] ?? AXPPlatformScope.User;
|
|
940
|
-
}
|
|
941
|
-
function resolvePlatformScopeName(scope) {
|
|
942
|
-
const scopeMap = {
|
|
943
|
-
C: 'environment',
|
|
944
|
-
G: 'global',
|
|
945
|
-
P: 'platform',
|
|
946
|
-
T: 'tenant',
|
|
947
|
-
U: 'user',
|
|
948
|
-
};
|
|
949
|
-
return scopeMap[scope] ?? 'user';
|
|
950
|
-
}
|
|
951
|
-
|
|
952
902
|
var AXPSystemActionType;
|
|
953
903
|
(function (AXPSystemActionType) {
|
|
954
904
|
AXPSystemActionType["View"] = "view";
|
|
@@ -1313,6 +1263,62 @@ function getSystemActions(type) {
|
|
|
1313
1263
|
return Object.values(AXPSystemActions).find(action => action.key === type);
|
|
1314
1264
|
}
|
|
1315
1265
|
|
|
1266
|
+
function getNestedKeys(obj, prefix = '') {
|
|
1267
|
+
let keys = [];
|
|
1268
|
+
for (const key in obj) {
|
|
1269
|
+
if (typeof obj[key] === 'object' && obj[key] !== null && !Array.isArray(obj[key])) {
|
|
1270
|
+
keys = [...keys, ...getNestedKeys(obj[key], prefix + key + '.')];
|
|
1271
|
+
}
|
|
1272
|
+
else {
|
|
1273
|
+
keys.push(prefix + key);
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
return keys;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
class AXPImageUrlLogoConfig {
|
|
1280
|
+
constructor(url, width, height) {
|
|
1281
|
+
this.url = url;
|
|
1282
|
+
this.width = width;
|
|
1283
|
+
this.height = height;
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
class AXPComponentLogoConfig {
|
|
1287
|
+
constructor(component) {
|
|
1288
|
+
this.component = component;
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
var AXPPlatformScope;
|
|
1293
|
+
(function (AXPPlatformScope) {
|
|
1294
|
+
AXPPlatformScope["Environment"] = "C";
|
|
1295
|
+
AXPPlatformScope["Global"] = "G";
|
|
1296
|
+
AXPPlatformScope["Platform"] = "P";
|
|
1297
|
+
AXPPlatformScope["Tenant"] = "T";
|
|
1298
|
+
AXPPlatformScope["User"] = "U";
|
|
1299
|
+
})(AXPPlatformScope || (AXPPlatformScope = {}));
|
|
1300
|
+
;
|
|
1301
|
+
function resolvePlatformScopeKey(name) {
|
|
1302
|
+
const scopeMap = {
|
|
1303
|
+
environment: AXPPlatformScope.Environment,
|
|
1304
|
+
global: AXPPlatformScope.Global,
|
|
1305
|
+
platform: AXPPlatformScope.Platform,
|
|
1306
|
+
tenant: AXPPlatformScope.Tenant,
|
|
1307
|
+
user: AXPPlatformScope.User,
|
|
1308
|
+
};
|
|
1309
|
+
return scopeMap[name.toLowerCase()] ?? AXPPlatformScope.User;
|
|
1310
|
+
}
|
|
1311
|
+
function resolvePlatformScopeName(scope) {
|
|
1312
|
+
const scopeMap = {
|
|
1313
|
+
C: 'environment',
|
|
1314
|
+
G: 'global',
|
|
1315
|
+
P: 'platform',
|
|
1316
|
+
T: 'tenant',
|
|
1317
|
+
U: 'user',
|
|
1318
|
+
};
|
|
1319
|
+
return scopeMap[scope] ?? 'user';
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1316
1322
|
class AXPCountdownPipe {
|
|
1317
1323
|
constructor() {
|
|
1318
1324
|
this.calendarService = inject(AXCalendarService);
|