@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260615062630 → 0.8.1-dev.20260615064052
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/index.js +8 -2
- package/dist/index.mjs +8 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5649,8 +5649,14 @@ var DivContainer = async (props) => {
|
|
|
5649
5649
|
}
|
|
5650
5650
|
const shouldHideContainer = () => {
|
|
5651
5651
|
if (!props.node.fieldVisibleOnTrue) return false;
|
|
5652
|
-
const
|
|
5653
|
-
|
|
5652
|
+
const condition = props.node.fieldVisibleOnTrue;
|
|
5653
|
+
const isNegated = condition.startsWith("!");
|
|
5654
|
+
const fieldName = isNegated ? condition.substring(1) : condition;
|
|
5655
|
+
const fieldValue = getNestedValue3(props.dataitem, fieldName);
|
|
5656
|
+
if (fieldValue === void 0) {
|
|
5657
|
+
return false;
|
|
5658
|
+
}
|
|
5659
|
+
return isNegated ? fieldValue === true : fieldValue === false;
|
|
5654
5660
|
};
|
|
5655
5661
|
const isHidden = shouldHideContainer();
|
|
5656
5662
|
let odataString = void 0;
|
package/dist/index.mjs
CHANGED
|
@@ -4043,8 +4043,14 @@ var DivContainer = async (props) => {
|
|
|
4043
4043
|
}
|
|
4044
4044
|
const shouldHideContainer = () => {
|
|
4045
4045
|
if (!props.node.fieldVisibleOnTrue) return false;
|
|
4046
|
-
const
|
|
4047
|
-
|
|
4046
|
+
const condition = props.node.fieldVisibleOnTrue;
|
|
4047
|
+
const isNegated = condition.startsWith("!");
|
|
4048
|
+
const fieldName = isNegated ? condition.substring(1) : condition;
|
|
4049
|
+
const fieldValue = getNestedValue3(props.dataitem, fieldName);
|
|
4050
|
+
if (fieldValue === void 0) {
|
|
4051
|
+
return false;
|
|
4052
|
+
}
|
|
4053
|
+
return isNegated ? fieldValue === true : fieldValue === false;
|
|
4048
4054
|
};
|
|
4049
4055
|
const isHidden = shouldHideContainer();
|
|
4050
4056
|
let odataString = void 0;
|
package/package.json
CHANGED