@pitcher/canvas-ui 2025.12.16-233553-beta → 2025.12.16-235205-beta
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/canvas-ui.js +12 -1
- package/canvas-ui.js.map +1 -1
- package/package.json +1 -1
package/canvas-ui.js
CHANGED
|
@@ -88168,6 +88168,10 @@ function setNestedProperty(obj, path, value) {
|
|
|
88168
88168
|
}
|
|
88169
88169
|
current[parts[parts.length - 1]] = value;
|
|
88170
88170
|
}
|
|
88171
|
+
function isAllFieldsSelector(field) {
|
|
88172
|
+
const trimmed = field.trim();
|
|
88173
|
+
return trimmed === "*" || /^FIELDS\s*\(\s*(ALL|STANDARD|CUSTOM)\s*\)$/i.test(trimmed);
|
|
88174
|
+
}
|
|
88171
88175
|
function transformSmartStoreResults(smartStoreResults, fields, objectName) {
|
|
88172
88176
|
if (!smartStoreResults || !Array.isArray(smartStoreResults)) {
|
|
88173
88177
|
return [];
|
|
@@ -88176,7 +88180,14 @@ function transformSmartStoreResults(smartStoreResults, fields, objectName) {
|
|
|
88176
88180
|
const record = {};
|
|
88177
88181
|
fields.forEach((field, index) => {
|
|
88178
88182
|
if (index < row.length) {
|
|
88179
|
-
|
|
88183
|
+
const value = row[index];
|
|
88184
|
+
if (isAllFieldsSelector(field)) {
|
|
88185
|
+
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
88186
|
+
Object.assign(record, value);
|
|
88187
|
+
}
|
|
88188
|
+
} else {
|
|
88189
|
+
setNestedProperty(record, field, value);
|
|
88190
|
+
}
|
|
88180
88191
|
}
|
|
88181
88192
|
});
|
|
88182
88193
|
const recordId = record["Id"] || record["id"] || "";
|