ochre-sdk 1.0.0-beta.10 → 1.0.0-beta.11
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.mjs +10 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5006,12 +5006,19 @@ declare function local:put-property-detail(
|
|
|
5006
5006
|
return
|
|
5007
5007
|
if (
|
|
5008
5008
|
empty($existing)
|
|
5009
|
-
or (
|
|
5009
|
+
or (not($existing/content) and exists($label-content))
|
|
5010
|
+
or (
|
|
5011
|
+
not($existing/content)
|
|
5012
|
+
and string-length(string($existing)) = 0
|
|
5013
|
+
and string-length($display) gt 0
|
|
5014
|
+
)
|
|
5010
5015
|
) then
|
|
5011
5016
|
map:put(
|
|
5012
5017
|
$details,
|
|
5013
5018
|
$key,
|
|
5014
|
-
<propertyValue scope="{$scope}" variableUuid="{$variable-uuid}" uuid="{$value-uuid}" rawValue="{$raw-value}" dataType="{$data-type}">{
|
|
5019
|
+
<propertyValue scope="{$scope}" variableUuid="{$variable-uuid}" uuid="{$value-uuid}" rawValue="{$raw-value}" dataType="{$data-type}">{
|
|
5020
|
+
if (exists($label-content)) then $label-content else $display
|
|
5021
|
+
}</propertyValue>
|
|
5015
5022
|
)
|
|
5016
5023
|
else ()
|
|
5017
5024
|
};
|
|
@@ -5086,7 +5093,7 @@ let $property-values :=
|
|
|
5086
5093
|
let $detail := map:get($variable-property-details, $key)
|
|
5087
5094
|
let $global-key := map:get($variable-property-global-keys, $key)
|
|
5088
5095
|
return <propertyValue scope="variable" variableUuid="{string($detail/@variableUuid)}" uuid="{string($detail/@uuid)}" rawValue="{string($detail/@rawValue)}" dataType="{string($detail/@dataType)}" count="{map:get($variable-property-counts, $key)}" globalCount="{map:get($global-property-counts, $global-key)}">{
|
|
5089
|
-
|
|
5096
|
+
$detail/node()
|
|
5090
5097
|
}</propertyValue>
|
|
5091
5098
|
)`);
|
|
5092
5099
|
returnedSequences.push("$property-values");
|
package/package.json
CHANGED