udp-stencil-component-library 26.4.0-beta.1 → 26.4.0-beta.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.
Files changed (26) hide show
  1. package/dist/cjs/ag-grid-base_63.cjs.entry.js +2 -2
  2. package/dist/cjs/api-method-instance-grid.cjs.entry.js +3 -3
  3. package/dist/cjs/{apiMethodInstance-0K09_ZVK.js → apiMethodInstance-hLQDl9AB.js} +1 -1
  4. package/dist/cjs/{configureUdpColumnMods-BH2vf0d0.js → configureUdpColumnMods-ZrZ1hJX-.js} +1 -1
  5. package/dist/cjs/index.cjs.js +3 -3
  6. package/dist/cjs/{lookupHelper-BRE25uqB.js → lookupHelper-UyFRGwLL.js} +9 -2
  7. package/dist/cjs/search-method-grid.cjs.entry.js +1 -1
  8. package/dist/collection/components/grid/new-grid/helperFunctions/lookupHelper.js +9 -2
  9. package/dist/components/configureUdpColumnMods.js +1 -1
  10. package/dist/docs.json +1 -1
  11. package/dist/esm/ag-grid-base_63.entry.js +2 -2
  12. package/dist/esm/api-method-instance-grid.entry.js +3 -3
  13. package/dist/esm/{apiMethodInstance-ntvOZHfA.js → apiMethodInstance-De6Fopgy.js} +1 -1
  14. package/dist/esm/{configureUdpColumnMods-CXhuwtXi.js → configureUdpColumnMods-D_QiM61M.js} +1 -1
  15. package/dist/esm/index.js +3 -3
  16. package/dist/esm/{lookupHelper-Cq8dS6ZL.js → lookupHelper-Bsc0nCBf.js} +9 -2
  17. package/dist/esm/search-method-grid.entry.js +1 -1
  18. package/dist/stencil-library/ag-grid-base_63.entry.js +1 -1
  19. package/dist/stencil-library/api-method-instance-grid.entry.js +1 -1
  20. package/dist/stencil-library/{apiMethodInstance-ntvOZHfA.js → apiMethodInstance-De6Fopgy.js} +1 -1
  21. package/dist/stencil-library/{configureUdpColumnMods-CXhuwtXi.js → configureUdpColumnMods-D_QiM61M.js} +1 -1
  22. package/dist/stencil-library/index.esm.js +1 -1
  23. package/dist/stencil-library/lookupHelper-Bsc0nCBf.js +1 -0
  24. package/dist/stencil-library/search-method-grid.entry.js +1 -1
  25. package/package.json +1 -1
  26. package/dist/stencil-library/lookupHelper-Cq8dS6ZL.js +0 -1
@@ -3,10 +3,10 @@
3
3
  var index = require('./index-G1ccGqOs.js');
4
4
  var agGridEnterpriseV33 = require('ag-grid-enterprise-v33');
5
5
  var apiUtils = require('./apiUtils-CizHWZU8.js');
6
- var lookupHelper = require('./lookupHelper-BRE25uqB.js');
6
+ var lookupHelper = require('./lookupHelper-UyFRGwLL.js');
7
7
  var tenantUtils = require('./tenantUtils-BCKSE0vq.js');
8
8
  var statusRenderer = require('./status-renderer-9CQ-hhq8.js');
9
- var configureUdpColumnMods = require('./configureUdpColumnMods-BH2vf0d0.js');
9
+ var configureUdpColumnMods = require('./configureUdpColumnMods-ZrZ1hJX-.js');
10
10
  var lodashEs = require('lodash-es');
11
11
  var makeApiCall = require('./makeApiCall-CFfg9gI0.js');
12
12
  var configService = require('./configService-D-lDX-f_.js');
@@ -4,11 +4,11 @@ var index = require('./index-G1ccGqOs.js');
4
4
  var makeApiCall = require('./makeApiCall-CFfg9gI0.js');
5
5
  var searchObject = require('./searchObject-DeDFFGcx.js');
6
6
  var lodashEs = require('lodash-es');
7
- var apiMethodInstance = require('./apiMethodInstance-0K09_ZVK.js');
7
+ var apiMethodInstance = require('./apiMethodInstance-hLQDl9AB.js');
8
8
  var configService = require('./configService-D-lDX-f_.js');
9
9
  require('axios');
10
- require('./configureUdpColumnMods-BH2vf0d0.js');
11
- require('./lookupHelper-BRE25uqB.js');
10
+ require('./configureUdpColumnMods-ZrZ1hJX-.js');
11
+ require('./lookupHelper-UyFRGwLL.js');
12
12
  require('./apiUtils-CizHWZU8.js');
13
13
  require('deep-equal');
14
14
  require('@stencil/store');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var configureUdpColumnMods = require('./configureUdpColumnMods-BH2vf0d0.js');
3
+ var configureUdpColumnMods = require('./configureUdpColumnMods-ZrZ1hJX-.js');
4
4
 
5
5
  function mapDotNetTypeToAgGridType(type) {
6
6
  const normalized = type.replace(/\?$/, '').trim().toLowerCase();
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var lookupHelper = require('./lookupHelper-BRE25uqB.js');
3
+ var lookupHelper = require('./lookupHelper-UyFRGwLL.js');
4
4
 
5
5
  /**
6
6
  * Finds an existing 'actions' column in an array of ColDefs and applies
@@ -8,15 +8,15 @@ var SearchBuilder = require('./SearchBuilder-ClIYV_dJ.js');
8
8
  var searchObject = require('./searchObject-DeDFFGcx.js');
9
9
  var catalogTree = require('./catalogTree-CnzW15ah.js');
10
10
  var configService = require('./configService-D-lDX-f_.js');
11
- var apiMethodInstance = require('./apiMethodInstance-0K09_ZVK.js');
11
+ var apiMethodInstance = require('./apiMethodInstance-hLQDl9AB.js');
12
12
  var themeManager = require('./theme-manager-vLJfQYn8.js');
13
13
  require('@stencil/store');
14
14
  require('./apiUtils-CizHWZU8.js');
15
15
  require('deep-equal');
16
16
  require('./makeApiCall-CFfg9gI0.js');
17
17
  require('./tenantUtils-BCKSE0vq.js');
18
- require('./configureUdpColumnMods-BH2vf0d0.js');
19
- require('./lookupHelper-BRE25uqB.js');
18
+ require('./configureUdpColumnMods-ZrZ1hJX-.js');
19
+ require('./lookupHelper-UyFRGwLL.js');
20
20
  require('@fluentui/web-components');
21
21
  require('@fluentui/tokens');
22
22
 
@@ -70,14 +70,21 @@ async function processLookupsInData(rowData, columnDefs) {
70
70
  }
71
71
  await Promise.all(Array.from(uniqueLookupIds).map(id => getLookupTable(id)));
72
72
  return rowData.map(row => {
73
+ var _a;
73
74
  const newRow = Object.assign({}, row);
74
75
  for (const [field, lookupId] of lookupsByField.entries()) {
75
76
  const lookup = resolvedLookups.get(lookupId);
76
77
  if (!(lookup === null || lookup === void 0 ? void 0 : lookup.valueMap))
77
78
  continue;
79
+ const keys = (_a = lookup.keys) !== null && _a !== void 0 ? _a : [];
78
80
  for (const [innerMap, resolvedValue] of lookup.valueMap.entries()) {
79
- // The row must match on all keys to get the correct resolved value (handles multi-key lookups)
80
- const allMatch = lookup.keys.every(k => String(innerMap.get(k.name)) === String(newRow[k.name]));
81
+ // Single-key lookups: the row holds the key value under the COLUMN's field, which may
82
+ // differ from the lookup's key-column name (e.g. grid row `status_id` vs lookup key
83
+ // `statusId`). Match on the column field so resolution works regardless of that naming
84
+ // difference. Multi-key lookups: match each key by its own name on the row.
85
+ const allMatch = keys.length === 1
86
+ ? String(innerMap.get(keys[0].name)) === String(newRow[field])
87
+ : keys.every(k => String(innerMap.get(k.name)) === String(newRow[k.name]));
81
88
  if (allMatch) {
82
89
  newRow[field + 'LookupValue'] = resolvedValue;
83
90
  break;
@@ -3,7 +3,7 @@
3
3
  var index = require('./index-G1ccGqOs.js');
4
4
  var apiUtils = require('./apiUtils-CizHWZU8.js');
5
5
  var searchObject = require('./searchObject-DeDFFGcx.js');
6
- var lookupHelper = require('./lookupHelper-BRE25uqB.js');
6
+ var lookupHelper = require('./lookupHelper-UyFRGwLL.js');
7
7
  var makeApiCall = require('./makeApiCall-CFfg9gI0.js');
8
8
  var configService = require('./configService-D-lDX-f_.js');
9
9
  var isEqual = require('lodash-es/isEqual');
@@ -64,14 +64,21 @@ export async function processLookupsInData(rowData, columnDefs) {
64
64
  }
65
65
  await Promise.all(Array.from(uniqueLookupIds).map(id => getLookupTable(id)));
66
66
  return rowData.map(row => {
67
+ var _a;
67
68
  const newRow = Object.assign({}, row);
68
69
  for (const [field, lookupId] of lookupsByField.entries()) {
69
70
  const lookup = resolvedLookups.get(lookupId);
70
71
  if (!(lookup === null || lookup === void 0 ? void 0 : lookup.valueMap))
71
72
  continue;
73
+ const keys = (_a = lookup.keys) !== null && _a !== void 0 ? _a : [];
72
74
  for (const [innerMap, resolvedValue] of lookup.valueMap.entries()) {
73
- // The row must match on all keys to get the correct resolved value (handles multi-key lookups)
74
- const allMatch = lookup.keys.every(k => String(innerMap.get(k.name)) === String(newRow[k.name]));
75
+ // Single-key lookups: the row holds the key value under the COLUMN's field, which may
76
+ // differ from the lookup's key-column name (e.g. grid row `status_id` vs lookup key
77
+ // `statusId`). Match on the column field so resolution works regardless of that naming
78
+ // difference. Multi-key lookups: match each key by its own name on the row.
79
+ const allMatch = keys.length === 1
80
+ ? String(innerMap.get(keys[0].name)) === String(newRow[field])
81
+ : keys.every(k => String(innerMap.get(k.name)) === String(newRow[k.name]));
75
82
  if (allMatch) {
76
83
  newRow[field + 'LookupValue'] = resolvedValue;
77
84
  break;
@@ -1 +1 @@
1
- import{d as n,q as t}from"./apiUtils.js";function e(){return sessionStorage.getItem("current-api-catalog-id")}const o=new Map,r=new Map;async function i(i){const l=o.get(i);if(l)return l;const u=r.get(i);if(void 0!==u)return u;const a=(async()=>{var l,u;const a={keys:[],valueName:"",valueMap:new Map};try{const r=null===(u=null===(l=await n(e()))||void 0===l?void 0:l.unityBaseGetDataMethod)||void 0===u?void 0:u.apiMethodId;if(!r)return a;const v=await t({data:{id:i}},r);let{keyName:d,udpLookupUdpLookupKey:s,valueName:c,data:f}=null!=v?v:{};if(!f||!d&&!s||!c)return a;d&&(s=[{name:d}]);const p=s,b=new Map(f.map((n=>[new Map(p.map((t=>[t.name,String(n[t.name])]))),n[c]]))),m={keys:s,valueName:c,valueMap:b};return o.set(i,m),m}catch(n){return a}finally{r.delete(i)}})();return r.set(i,a),a}async function l(n,t){if(!(null==n?void 0:n.length))return n;const e=new Map,r=new Set;return t.forEach((n=>{var t;const o=null===(t=null==n?void 0:n.context)||void 0===t?void 0:t.lookupId;o&&"string"==typeof o&&n.field&&(e.set(n.field,o),r.add(o))})),0===r.size?n:(await Promise.all(Array.from(r).map((n=>i(n)))),n.map((n=>{const t=Object.assign({},n);for(const[n,r]of e.entries()){const e=o.get(r);if(null==e?void 0:e.valueMap)for(const[o,r]of e.valueMap.entries())if(e.keys.every((n=>String(o.get(n.name))===String(t[n.name])))){t[n+"LookupValue"]=r;break}}return t})))}function u(n,t=!1){return n.map((n=>{var e,r,l,u,a;if("actions"===n.field){const t=(null===(r=null===(e=n.cellRendererParams)||void 0===e?void 0:e.actionList)||void 0===r?void 0:r.length)>5?5:null===(u=null===(l=n.cellRendererParams)||void 0===l?void 0:l.actionList)||void 0===u?void 0:u.length;if(0===t)return n;let o=30*t+4*(t-1)+40;return o<80&&(o=80),Object.assign(Object.assign({},n),{pinned:"right",width:o,minWidth:o,maxWidth:o,sortable:!1,filter:!1,suppressHeaderMenuButton:!0,suppressMovable:!0})}if(null===(a=null==n?void 0:n.context)||void 0===a?void 0:a.lookupId){const t=n.context.lookupId,e=n.field;return Object.assign(Object.assign({},n),!1===n.filter?{valueGetter:n=>n.data[e+"LookupValue"],sortable:!1}:{valueGetter:n=>n.data[e+"LookupValue"],filterValueGetter:n=>{var t;return null===(t=n.data)||void 0===t?void 0:t[e]},filter:"agSetColumnFilter",filterParams:Object.assign({values:n=>{i(t).then((t=>{var o,r,i,l;const u=null!==(l=null!==(r=null===(o=t.keys.find((n=>n.name.toLowerCase()===(null!=e?e:"").toLowerCase())))||void 0===o?void 0:o.name)&&void 0!==r?r:null===(i=t.keys[0])||void 0===i?void 0:i.name)&&void 0!==l?l:"",a=new Set(Array.from(t.valueMap.keys()).map((n=>{var t;return null!==(t=n.get(u))&&void 0!==t?t:""})));n.success(Array.from(a))})).catch((()=>n.success([])))},valueFormatter:n=>{var r,i,l,u,a;const v=null==n.value?"":String(n.value),d=function(n){return o.get(n)}(t);if(!d)return v;const s=null!==(u=null!==(i=null===(r=d.keys.find((n=>n.name.toLowerCase()===(null!=e?e:"").toLowerCase())))||void 0===r?void 0:r.name)&&void 0!==i?i:null===(l=d.keys[0])||void 0===l?void 0:l.name)&&void 0!==u?u:"";for(const[n,t]of d.valueMap.entries())if(String(null!==(a=n.get(s))&&void 0!==a?a:"")===v)return t;return v}},n.filterParams),sortable:!1})}return t?Object.assign(Object.assign({},n),{filter:!1}):n}))}export{u as c,e as g,l as p}
1
+ import{d as n,q as t}from"./apiUtils.js";function o(){return sessionStorage.getItem("current-api-catalog-id")}const r=new Map,e=new Map;async function i(i){const l=r.get(i);if(l)return l;const u=e.get(i);if(void 0!==u)return u;const a=(async()=>{var l,u;const a={keys:[],valueName:"",valueMap:new Map};try{const e=null===(u=null===(l=await n(o()))||void 0===l?void 0:l.unityBaseGetDataMethod)||void 0===u?void 0:u.apiMethodId;if(!e)return a;const v=await t({data:{id:i}},e);let{keyName:d,udpLookupUdpLookupKey:s,valueName:c,data:f}=null!=v?v:{};if(!f||!d&&!s||!c)return a;d&&(s=[{name:d}]);const p=s,b=new Map(f.map((n=>[new Map(p.map((t=>[t.name,String(n[t.name])]))),n[c]]))),g={keys:s,valueName:c,valueMap:b};return r.set(i,g),g}catch(n){return a}finally{e.delete(i)}})();return e.set(i,a),a}async function l(n,t){if(!(null==n?void 0:n.length))return n;const o=new Map,e=new Set;return t.forEach((n=>{var t;const r=null===(t=null==n?void 0:n.context)||void 0===t?void 0:t.lookupId;r&&"string"==typeof r&&n.field&&(o.set(n.field,r),e.add(r))})),0===e.size?n:(await Promise.all(Array.from(e).map((n=>i(n)))),n.map((n=>{var t;const e=Object.assign({},n);for(const[n,i]of o.entries()){const o=r.get(i);if(!(null==o?void 0:o.valueMap))continue;const l=null!==(t=o.keys)&&void 0!==t?t:[];for(const[t,r]of o.valueMap.entries())if(1===l.length?String(t.get(l[0].name))===String(e[n]):l.every((n=>String(t.get(n.name))===String(e[n.name])))){e[n+"LookupValue"]=r;break}}return e})))}function u(n,t=!1){return n.map((n=>{var o,e,l,u,a;if("actions"===n.field){const t=(null===(e=null===(o=n.cellRendererParams)||void 0===o?void 0:o.actionList)||void 0===e?void 0:e.length)>5?5:null===(u=null===(l=n.cellRendererParams)||void 0===l?void 0:l.actionList)||void 0===u?void 0:u.length;if(0===t)return n;let r=30*t+4*(t-1)+40;return r<80&&(r=80),Object.assign(Object.assign({},n),{pinned:"right",width:r,minWidth:r,maxWidth:r,sortable:!1,filter:!1,suppressHeaderMenuButton:!0,suppressMovable:!0})}if(null===(a=null==n?void 0:n.context)||void 0===a?void 0:a.lookupId){const t=n.context.lookupId,o=n.field;return Object.assign(Object.assign({},n),!1===n.filter?{valueGetter:n=>n.data[o+"LookupValue"],sortable:!1}:{valueGetter:n=>n.data[o+"LookupValue"],filterValueGetter:n=>{var t;return null===(t=n.data)||void 0===t?void 0:t[o]},filter:"agSetColumnFilter",filterParams:Object.assign({values:n=>{i(t).then((t=>{var r,e,i,l;const u=null!==(l=null!==(e=null===(r=t.keys.find((n=>n.name.toLowerCase()===(null!=o?o:"").toLowerCase())))||void 0===r?void 0:r.name)&&void 0!==e?e:null===(i=t.keys[0])||void 0===i?void 0:i.name)&&void 0!==l?l:"",a=new Set(Array.from(t.valueMap.keys()).map((n=>{var t;return null!==(t=n.get(u))&&void 0!==t?t:""})));n.success(Array.from(a))})).catch((()=>n.success([])))},valueFormatter:n=>{var e,i,l,u,a;const v=null==n.value?"":String(n.value),d=function(n){return r.get(n)}(t);if(!d)return v;const s=null!==(u=null!==(i=null===(e=d.keys.find((n=>n.name.toLowerCase()===(null!=o?o:"").toLowerCase())))||void 0===e?void 0:e.name)&&void 0!==i?i:null===(l=d.keys[0])||void 0===l?void 0:l.name)&&void 0!==u?u:"";for(const[n,t]of d.valueMap.entries())if(String(null!==(a=n.get(s))&&void 0!==a?a:"")===v)return t;return v}},n.filterParams),sortable:!1})}return t?Object.assign(Object.assign({},n),{filter:!1}):n}))}export{u as c,o as g,l as p}
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-06-17T18:37:40",
2
+ "timestamp": "2026-06-17T21:12:07",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.41.3",
@@ -1,10 +1,10 @@
1
1
  import { h, r as registerInstance, c as createEvent, H as Host, a as getElement } from './index-Cgpvu-iV.js';
2
2
  import { themeQuartz, ModuleRegistry, AllEnterpriseModule, LicenseManager, createGrid } from 'ag-grid-enterprise-v33';
3
3
  import { g as getGridViewsWithConfigurations, d as deleteSelectedView, u as updateViewAndConfigurations, s as saveView, a as updateView, b as getAvailableGridActions } from './apiUtils-Crz00whk.js';
4
- import { g as getCurrentApiCatalogId } from './lookupHelper-Cq8dS6ZL.js';
4
+ import { g as getCurrentApiCatalogId } from './lookupHelper-Bsc0nCBf.js';
5
5
  import { g as getCurrentTenantId } from './tenantUtils-Basdb1b1.js';
6
6
  import { S as StatusRenderer, I as IconRenderer, A as ActionsRenderer } from './status-renderer-BoY7sar9.js';
7
- import { c as configureUdpColumnMods } from './configureUdpColumnMods-CXhuwtXi.js';
7
+ import { c as configureUdpColumnMods } from './configureUdpColumnMods-D_QiM61M.js';
8
8
  import { isEqual } from 'lodash-es';
9
9
  import { m as makeApiCall } from './makeApiCall-B-daVutk.js';
10
10
  import { C as ConfigService } from './configService-DgYnEcjx.js';
@@ -2,11 +2,11 @@ import { r as registerInstance, h } from './index-Cgpvu-iV.js';
2
2
  import { m as makeApiCall } from './makeApiCall-B-daVutk.js';
3
3
  import { L as LogicalSearchOperator } from './searchObject-CDJVsMG_.js';
4
4
  import { isEqual } from 'lodash-es';
5
- import { b as buildColumnDefsFromCatalog } from './apiMethodInstance-ntvOZHfA.js';
5
+ import { b as buildColumnDefsFromCatalog } from './apiMethodInstance-De6Fopgy.js';
6
6
  import { C as ConfigService } from './configService-DgYnEcjx.js';
7
7
  import 'axios';
8
- import './configureUdpColumnMods-CXhuwtXi.js';
9
- import './lookupHelper-Cq8dS6ZL.js';
8
+ import './configureUdpColumnMods-D_QiM61M.js';
9
+ import './lookupHelper-Bsc0nCBf.js';
10
10
  import './apiUtils-Crz00whk.js';
11
11
  import 'deep-equal';
12
12
  import '@stencil/store';
@@ -1,4 +1,4 @@
1
- import { c as configureUdpColumnMods } from './configureUdpColumnMods-CXhuwtXi.js';
1
+ import { c as configureUdpColumnMods } from './configureUdpColumnMods-D_QiM61M.js';
2
2
 
3
3
  function mapDotNetTypeToAgGridType(type) {
4
4
  const normalized = type.replace(/\?$/, '').trim().toLowerCase();
@@ -1,4 +1,4 @@
1
- import { a as getLookupTableSync, b as getLookupTable } from './lookupHelper-Cq8dS6ZL.js';
1
+ import { a as getLookupTableSync, b as getLookupTable } from './lookupHelper-Bsc0nCBf.js';
2
2
 
3
3
  /**
4
4
  * Finds an existing 'actions' column in an array of ColDefs and applies
package/dist/esm/index.js CHANGED
@@ -6,15 +6,15 @@ export { L as LogicalSearchOperator, S as SearchBuilder, a as SearchUtilities }
6
6
  export { A as ALLOWED_GROUP_OPERATIONS, d as SearchConstants, S as SearchGroupingType, a as SearchOperators, b as SearchValueType, c as SortOrder, a as SqlFilterOperators } from './searchObject-CDJVsMG_.js';
7
7
  export { b as buildCatalogTree, a as buildIndices, f as findNodeByPath, i as isCatalogModelObject } from './catalogTree-Ca8SiTsU.js';
8
8
  export { C as ConfigService } from './configService-DgYnEcjx.js';
9
- export { b as buildColumnDefsFromCatalog } from './apiMethodInstance-ntvOZHfA.js';
9
+ export { b as buildColumnDefsFromCatalog } from './apiMethodInstance-De6Fopgy.js';
10
10
  export { g as getCurrentThemeMode, i as initializeTheme, s as setThemeMode } from './theme-manager-DeVqiL0i.js';
11
11
  import '@stencil/store';
12
12
  import './apiUtils-Crz00whk.js';
13
13
  import 'deep-equal';
14
14
  import './makeApiCall-B-daVutk.js';
15
15
  import './tenantUtils-Basdb1b1.js';
16
- import './configureUdpColumnMods-CXhuwtXi.js';
17
- import './lookupHelper-Cq8dS6ZL.js';
16
+ import './configureUdpColumnMods-D_QiM61M.js';
17
+ import './lookupHelper-Bsc0nCBf.js';
18
18
  import '@fluentui/web-components';
19
19
  import '@fluentui/tokens';
20
20
 
@@ -68,14 +68,21 @@ async function processLookupsInData(rowData, columnDefs) {
68
68
  }
69
69
  await Promise.all(Array.from(uniqueLookupIds).map(id => getLookupTable(id)));
70
70
  return rowData.map(row => {
71
+ var _a;
71
72
  const newRow = Object.assign({}, row);
72
73
  for (const [field, lookupId] of lookupsByField.entries()) {
73
74
  const lookup = resolvedLookups.get(lookupId);
74
75
  if (!(lookup === null || lookup === void 0 ? void 0 : lookup.valueMap))
75
76
  continue;
77
+ const keys = (_a = lookup.keys) !== null && _a !== void 0 ? _a : [];
76
78
  for (const [innerMap, resolvedValue] of lookup.valueMap.entries()) {
77
- // The row must match on all keys to get the correct resolved value (handles multi-key lookups)
78
- const allMatch = lookup.keys.every(k => String(innerMap.get(k.name)) === String(newRow[k.name]));
79
+ // Single-key lookups: the row holds the key value under the COLUMN's field, which may
80
+ // differ from the lookup's key-column name (e.g. grid row `status_id` vs lookup key
81
+ // `statusId`). Match on the column field so resolution works regardless of that naming
82
+ // difference. Multi-key lookups: match each key by its own name on the row.
83
+ const allMatch = keys.length === 1
84
+ ? String(innerMap.get(keys[0].name)) === String(newRow[field])
85
+ : keys.every(k => String(innerMap.get(k.name)) === String(newRow[k.name]));
79
86
  if (allMatch) {
80
87
  newRow[field + 'LookupValue'] = resolvedValue;
81
88
  break;
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-Cgpvu-iV.js';
2
2
  import { r as executeQueryAdHoc } from './apiUtils-Crz00whk.js';
3
3
  import { L as LogicalSearchOperator, S as SearchGroupingType, a as SearchOperators, d as SearchConstants } from './searchObject-CDJVsMG_.js';
4
- import { p as processLookupsInData } from './lookupHelper-Cq8dS6ZL.js';
4
+ import { p as processLookupsInData } from './lookupHelper-Bsc0nCBf.js';
5
5
  import { m as makeApiCall } from './makeApiCall-B-daVutk.js';
6
6
  import { C as ConfigService } from './configService-DgYnEcjx.js';
7
7
  import isEqual from 'lodash-es/isEqual';