@almadar/ui 4.54.0 → 4.54.2
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/dist/avl/index.cjs +20 -10
- package/dist/avl/index.js +20 -10
- package/dist/runtime/index.cjs +17 -8
- package/dist/runtime/index.js +17 -8
- package/package.json +1 -1
package/dist/avl/index.cjs
CHANGED
|
@@ -59474,15 +59474,24 @@ function buildMockData(schema) {
|
|
|
59474
59474
|
const sourceEntity = trait.sourceEntityDefinition;
|
|
59475
59475
|
if (!sourceEntity || core.isEntityCall(sourceEntity)) continue;
|
|
59476
59476
|
const sourceName = sourceEntity.name;
|
|
59477
|
-
if (!sourceName
|
|
59478
|
-
if (
|
|
59479
|
-
result[sourceName] = sourceEntity.instances
|
|
59480
|
-
|
|
59477
|
+
if (!sourceName) continue;
|
|
59478
|
+
if (!result[sourceName]) {
|
|
59479
|
+
result[sourceName] = sourceEntity.instances && sourceEntity.instances.length > 0 ? sourceEntity.instances : Array.from(
|
|
59480
|
+
{ length: 10 },
|
|
59481
|
+
(_, i) => generateEntityRow(sourceEntity, i + 1)
|
|
59482
|
+
);
|
|
59481
59483
|
}
|
|
59482
|
-
|
|
59483
|
-
|
|
59484
|
-
|
|
59485
|
-
);
|
|
59484
|
+
const reboundName = trait.linkedEntity;
|
|
59485
|
+
if (!reboundName || reboundName === sourceName) continue;
|
|
59486
|
+
const reboundRows = result[reboundName];
|
|
59487
|
+
if (!reboundRows || reboundRows.length === 0) continue;
|
|
59488
|
+
reboundRows.forEach((row, i) => {
|
|
59489
|
+
for (const f3 of sourceEntity.fields) {
|
|
59490
|
+
if (f3.name === void 0 || f3.name === "id") continue;
|
|
59491
|
+
if (row[f3.name] !== void 0) continue;
|
|
59492
|
+
row[f3.name] = generateFieldValue(sourceName, f3, i + 1);
|
|
59493
|
+
}
|
|
59494
|
+
});
|
|
59486
59495
|
}
|
|
59487
59496
|
}
|
|
59488
59497
|
perfEnd("build-mock-data", t, { orbitalCount: schema.orbitals.length, entityCount: Object.keys(result).length });
|
|
@@ -60450,12 +60459,13 @@ var OrbPreviewNodeInner = (props) => {
|
|
|
60450
60459
|
const eventSources = data.eventSources ?? [];
|
|
60451
60460
|
const layerColor = data.layer ? LAYER_COLORS[data.layer] : void 0;
|
|
60452
60461
|
const isExpanded = Boolean(data.traitName);
|
|
60462
|
+
const isImportedGroup = Boolean(data.behaviorAlias);
|
|
60453
60463
|
const status = data.status ?? "idle";
|
|
60454
60464
|
const isRunning = status === "running";
|
|
60455
60465
|
const isSuccess = status === "success";
|
|
60456
60466
|
const isError = status === "error";
|
|
60457
|
-
const label = isExpanded ? `${data.transitionEvent ?? ""}` : data.orbitalName;
|
|
60458
|
-
const sublabel = isExpanded ? `${data.fromState ?? ""} \u2192 ${data.toState ?? ""}` : data.entityName ?? "";
|
|
60467
|
+
const label = isImportedGroup ? data.behaviorAlias ?? "" : isExpanded ? `${data.transitionEvent ?? ""}` : data.orbitalName;
|
|
60468
|
+
const sublabel = isImportedGroup ? `${data.behaviorName ?? ""}${typeof data.transitionCount === "number" && data.transitionCount > 1 ? ` \xB7 ${data.transitionCount} screens` : ""}` : isExpanded ? `${data.fromState ?? ""} \u2192 ${data.toState ?? ""}` : data.entityName ?? "";
|
|
60459
60469
|
const orbitalSchema = React96.useMemo(() => {
|
|
60460
60470
|
const fullSchema = data._fullSchema;
|
|
60461
60471
|
if (!fullSchema) return void 0;
|
package/dist/avl/index.js
CHANGED
|
@@ -59428,15 +59428,24 @@ function buildMockData(schema) {
|
|
|
59428
59428
|
const sourceEntity = trait.sourceEntityDefinition;
|
|
59429
59429
|
if (!sourceEntity || isEntityCall(sourceEntity)) continue;
|
|
59430
59430
|
const sourceName = sourceEntity.name;
|
|
59431
|
-
if (!sourceName
|
|
59432
|
-
if (
|
|
59433
|
-
result[sourceName] = sourceEntity.instances
|
|
59434
|
-
|
|
59431
|
+
if (!sourceName) continue;
|
|
59432
|
+
if (!result[sourceName]) {
|
|
59433
|
+
result[sourceName] = sourceEntity.instances && sourceEntity.instances.length > 0 ? sourceEntity.instances : Array.from(
|
|
59434
|
+
{ length: 10 },
|
|
59435
|
+
(_, i) => generateEntityRow(sourceEntity, i + 1)
|
|
59436
|
+
);
|
|
59435
59437
|
}
|
|
59436
|
-
|
|
59437
|
-
|
|
59438
|
-
|
|
59439
|
-
);
|
|
59438
|
+
const reboundName = trait.linkedEntity;
|
|
59439
|
+
if (!reboundName || reboundName === sourceName) continue;
|
|
59440
|
+
const reboundRows = result[reboundName];
|
|
59441
|
+
if (!reboundRows || reboundRows.length === 0) continue;
|
|
59442
|
+
reboundRows.forEach((row, i) => {
|
|
59443
|
+
for (const f3 of sourceEntity.fields) {
|
|
59444
|
+
if (f3.name === void 0 || f3.name === "id") continue;
|
|
59445
|
+
if (row[f3.name] !== void 0) continue;
|
|
59446
|
+
row[f3.name] = generateFieldValue(sourceName, f3, i + 1);
|
|
59447
|
+
}
|
|
59448
|
+
});
|
|
59440
59449
|
}
|
|
59441
59450
|
}
|
|
59442
59451
|
perfEnd("build-mock-data", t, { orbitalCount: schema.orbitals.length, entityCount: Object.keys(result).length });
|
|
@@ -60404,12 +60413,13 @@ var OrbPreviewNodeInner = (props) => {
|
|
|
60404
60413
|
const eventSources = data.eventSources ?? [];
|
|
60405
60414
|
const layerColor = data.layer ? LAYER_COLORS[data.layer] : void 0;
|
|
60406
60415
|
const isExpanded = Boolean(data.traitName);
|
|
60416
|
+
const isImportedGroup = Boolean(data.behaviorAlias);
|
|
60407
60417
|
const status = data.status ?? "idle";
|
|
60408
60418
|
const isRunning = status === "running";
|
|
60409
60419
|
const isSuccess = status === "success";
|
|
60410
60420
|
const isError = status === "error";
|
|
60411
|
-
const label = isExpanded ? `${data.transitionEvent ?? ""}` : data.orbitalName;
|
|
60412
|
-
const sublabel = isExpanded ? `${data.fromState ?? ""} \u2192 ${data.toState ?? ""}` : data.entityName ?? "";
|
|
60421
|
+
const label = isImportedGroup ? data.behaviorAlias ?? "" : isExpanded ? `${data.transitionEvent ?? ""}` : data.orbitalName;
|
|
60422
|
+
const sublabel = isImportedGroup ? `${data.behaviorName ?? ""}${typeof data.transitionCount === "number" && data.transitionCount > 1 ? ` \xB7 ${data.transitionCount} screens` : ""}` : isExpanded ? `${data.fromState ?? ""} \u2192 ${data.toState ?? ""}` : data.entityName ?? "";
|
|
60413
60423
|
const orbitalSchema = useMemo(() => {
|
|
60414
60424
|
const fullSchema = data._fullSchema;
|
|
60415
60425
|
if (!fullSchema) return void 0;
|
package/dist/runtime/index.cjs
CHANGED
|
@@ -47263,15 +47263,24 @@ function buildMockData(schema) {
|
|
|
47263
47263
|
const sourceEntity = trait.sourceEntityDefinition;
|
|
47264
47264
|
if (!sourceEntity || core.isEntityCall(sourceEntity)) continue;
|
|
47265
47265
|
const sourceName = sourceEntity.name;
|
|
47266
|
-
if (!sourceName
|
|
47267
|
-
if (
|
|
47268
|
-
result[sourceName] = sourceEntity.instances
|
|
47269
|
-
|
|
47266
|
+
if (!sourceName) continue;
|
|
47267
|
+
if (!result[sourceName]) {
|
|
47268
|
+
result[sourceName] = sourceEntity.instances && sourceEntity.instances.length > 0 ? sourceEntity.instances : Array.from(
|
|
47269
|
+
{ length: 10 },
|
|
47270
|
+
(_, i) => generateEntityRow(sourceEntity, i + 1)
|
|
47271
|
+
);
|
|
47270
47272
|
}
|
|
47271
|
-
|
|
47272
|
-
|
|
47273
|
-
|
|
47274
|
-
);
|
|
47273
|
+
const reboundName = trait.linkedEntity;
|
|
47274
|
+
if (!reboundName || reboundName === sourceName) continue;
|
|
47275
|
+
const reboundRows = result[reboundName];
|
|
47276
|
+
if (!reboundRows || reboundRows.length === 0) continue;
|
|
47277
|
+
reboundRows.forEach((row, i) => {
|
|
47278
|
+
for (const f3 of sourceEntity.fields) {
|
|
47279
|
+
if (f3.name === void 0 || f3.name === "id") continue;
|
|
47280
|
+
if (row[f3.name] !== void 0) continue;
|
|
47281
|
+
row[f3.name] = generateFieldValue(sourceName, f3, i + 1);
|
|
47282
|
+
}
|
|
47283
|
+
});
|
|
47275
47284
|
}
|
|
47276
47285
|
}
|
|
47277
47286
|
perfEnd("build-mock-data", t, { orbitalCount: schema.orbitals.length, entityCount: Object.keys(result).length });
|
package/dist/runtime/index.js
CHANGED
|
@@ -47217,15 +47217,24 @@ function buildMockData(schema) {
|
|
|
47217
47217
|
const sourceEntity = trait.sourceEntityDefinition;
|
|
47218
47218
|
if (!sourceEntity || isEntityCall(sourceEntity)) continue;
|
|
47219
47219
|
const sourceName = sourceEntity.name;
|
|
47220
|
-
if (!sourceName
|
|
47221
|
-
if (
|
|
47222
|
-
result[sourceName] = sourceEntity.instances
|
|
47223
|
-
|
|
47220
|
+
if (!sourceName) continue;
|
|
47221
|
+
if (!result[sourceName]) {
|
|
47222
|
+
result[sourceName] = sourceEntity.instances && sourceEntity.instances.length > 0 ? sourceEntity.instances : Array.from(
|
|
47223
|
+
{ length: 10 },
|
|
47224
|
+
(_, i) => generateEntityRow(sourceEntity, i + 1)
|
|
47225
|
+
);
|
|
47224
47226
|
}
|
|
47225
|
-
|
|
47226
|
-
|
|
47227
|
-
|
|
47228
|
-
);
|
|
47227
|
+
const reboundName = trait.linkedEntity;
|
|
47228
|
+
if (!reboundName || reboundName === sourceName) continue;
|
|
47229
|
+
const reboundRows = result[reboundName];
|
|
47230
|
+
if (!reboundRows || reboundRows.length === 0) continue;
|
|
47231
|
+
reboundRows.forEach((row, i) => {
|
|
47232
|
+
for (const f3 of sourceEntity.fields) {
|
|
47233
|
+
if (f3.name === void 0 || f3.name === "id") continue;
|
|
47234
|
+
if (row[f3.name] !== void 0) continue;
|
|
47235
|
+
row[f3.name] = generateFieldValue(sourceName, f3, i + 1);
|
|
47236
|
+
}
|
|
47237
|
+
});
|
|
47229
47238
|
}
|
|
47230
47239
|
}
|
|
47231
47240
|
perfEnd("build-mock-data", t, { orbitalCount: schema.orbitals.length, entityCount: Object.keys(result).length });
|