@almadar/ui 2.55.1 → 2.56.0
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
CHANGED
|
@@ -3641,6 +3641,9 @@ function exprToTree(expr) {
|
|
|
3641
3641
|
function parseApplicationLevel(schema) {
|
|
3642
3642
|
const orbitals = [];
|
|
3643
3643
|
const crossLinks = [];
|
|
3644
|
+
if (!schema.orbitals || schema.orbitals.length === 0) {
|
|
3645
|
+
return { orbitals: [], crossLinks: [] };
|
|
3646
|
+
}
|
|
3644
3647
|
const count = schema.orbitals.length;
|
|
3645
3648
|
const cols = Math.ceil(Math.sqrt(count));
|
|
3646
3649
|
const rows = Math.ceil(count / cols);
|
|
@@ -3695,6 +3698,7 @@ function parseApplicationLevel(schema) {
|
|
|
3695
3698
|
return { orbitals, crossLinks };
|
|
3696
3699
|
}
|
|
3697
3700
|
function parseOrbitalLevel(schema, orbitalName) {
|
|
3701
|
+
if (!schema.orbitals) return null;
|
|
3698
3702
|
const orbital = schema.orbitals.find((o) => o.name === orbitalName);
|
|
3699
3703
|
if (!orbital) return null;
|
|
3700
3704
|
const entity = getEntity(orbital);
|
|
@@ -3763,6 +3767,7 @@ function parseOrbitalLevel(schema, orbitalName) {
|
|
|
3763
3767
|
};
|
|
3764
3768
|
}
|
|
3765
3769
|
function parseTraitLevel(schema, orbitalName, traitName) {
|
|
3770
|
+
if (!schema.orbitals) return null;
|
|
3766
3771
|
const orbital = schema.orbitals.find((o) => o.name === orbitalName);
|
|
3767
3772
|
if (!orbital) return null;
|
|
3768
3773
|
const traits2 = getTraits(orbital);
|
package/dist/avl/index.js
CHANGED
|
@@ -3595,6 +3595,9 @@ function exprToTree(expr) {
|
|
|
3595
3595
|
function parseApplicationLevel(schema) {
|
|
3596
3596
|
const orbitals = [];
|
|
3597
3597
|
const crossLinks = [];
|
|
3598
|
+
if (!schema.orbitals || schema.orbitals.length === 0) {
|
|
3599
|
+
return { orbitals: [], crossLinks: [] };
|
|
3600
|
+
}
|
|
3598
3601
|
const count = schema.orbitals.length;
|
|
3599
3602
|
const cols = Math.ceil(Math.sqrt(count));
|
|
3600
3603
|
const rows = Math.ceil(count / cols);
|
|
@@ -3649,6 +3652,7 @@ function parseApplicationLevel(schema) {
|
|
|
3649
3652
|
return { orbitals, crossLinks };
|
|
3650
3653
|
}
|
|
3651
3654
|
function parseOrbitalLevel(schema, orbitalName) {
|
|
3655
|
+
if (!schema.orbitals) return null;
|
|
3652
3656
|
const orbital = schema.orbitals.find((o) => o.name === orbitalName);
|
|
3653
3657
|
if (!orbital) return null;
|
|
3654
3658
|
const entity = getEntity(orbital);
|
|
@@ -3717,6 +3721,7 @@ function parseOrbitalLevel(schema, orbitalName) {
|
|
|
3717
3721
|
};
|
|
3718
3722
|
}
|
|
3719
3723
|
function parseTraitLevel(schema, orbitalName, traitName) {
|
|
3724
|
+
if (!schema.orbitals) return null;
|
|
3720
3725
|
const orbital = schema.orbitals.find((o) => o.name === orbitalName);
|
|
3721
3726
|
if (!orbital) return null;
|
|
3722
3727
|
const traits2 = getTraits(orbital);
|
|
@@ -3499,6 +3499,9 @@ function exprToTree(expr) {
|
|
|
3499
3499
|
function parseApplicationLevel(schema) {
|
|
3500
3500
|
const orbitals = [];
|
|
3501
3501
|
const crossLinks = [];
|
|
3502
|
+
if (!schema.orbitals || schema.orbitals.length === 0) {
|
|
3503
|
+
return { orbitals: [], crossLinks: [] };
|
|
3504
|
+
}
|
|
3502
3505
|
const count = schema.orbitals.length;
|
|
3503
3506
|
const cols = Math.ceil(Math.sqrt(count));
|
|
3504
3507
|
const rows = Math.ceil(count / cols);
|
|
@@ -3553,6 +3556,7 @@ function parseApplicationLevel(schema) {
|
|
|
3553
3556
|
return { orbitals, crossLinks };
|
|
3554
3557
|
}
|
|
3555
3558
|
function parseOrbitalLevel(schema, orbitalName) {
|
|
3559
|
+
if (!schema.orbitals) return null;
|
|
3556
3560
|
const orbital = schema.orbitals.find((o) => o.name === orbitalName);
|
|
3557
3561
|
if (!orbital) return null;
|
|
3558
3562
|
const entity = getEntity(orbital);
|
|
@@ -3621,6 +3625,7 @@ function parseOrbitalLevel(schema, orbitalName) {
|
|
|
3621
3625
|
};
|
|
3622
3626
|
}
|
|
3623
3627
|
function parseTraitLevel(schema, orbitalName, traitName) {
|
|
3628
|
+
if (!schema.orbitals) return null;
|
|
3624
3629
|
const orbital = schema.orbitals.find((o) => o.name === orbitalName);
|
|
3625
3630
|
if (!orbital) return null;
|
|
3626
3631
|
const traits = getTraits(orbital);
|
|
@@ -3475,6 +3475,9 @@ function exprToTree(expr) {
|
|
|
3475
3475
|
function parseApplicationLevel(schema) {
|
|
3476
3476
|
const orbitals = [];
|
|
3477
3477
|
const crossLinks = [];
|
|
3478
|
+
if (!schema.orbitals || schema.orbitals.length === 0) {
|
|
3479
|
+
return { orbitals: [], crossLinks: [] };
|
|
3480
|
+
}
|
|
3478
3481
|
const count = schema.orbitals.length;
|
|
3479
3482
|
const cols = Math.ceil(Math.sqrt(count));
|
|
3480
3483
|
const rows = Math.ceil(count / cols);
|
|
@@ -3529,6 +3532,7 @@ function parseApplicationLevel(schema) {
|
|
|
3529
3532
|
return { orbitals, crossLinks };
|
|
3530
3533
|
}
|
|
3531
3534
|
function parseOrbitalLevel(schema, orbitalName) {
|
|
3535
|
+
if (!schema.orbitals) return null;
|
|
3532
3536
|
const orbital = schema.orbitals.find((o) => o.name === orbitalName);
|
|
3533
3537
|
if (!orbital) return null;
|
|
3534
3538
|
const entity = getEntity(orbital);
|
|
@@ -3597,6 +3601,7 @@ function parseOrbitalLevel(schema, orbitalName) {
|
|
|
3597
3601
|
};
|
|
3598
3602
|
}
|
|
3599
3603
|
function parseTraitLevel(schema, orbitalName, traitName) {
|
|
3604
|
+
if (!schema.orbitals) return null;
|
|
3600
3605
|
const orbital = schema.orbitals.find((o) => o.name === orbitalName);
|
|
3601
3606
|
if (!orbital) return null;
|
|
3602
3607
|
const traits = getTraits(orbital);
|