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.
- package/dist/cjs/ag-grid-base_63.cjs.entry.js +2 -2
- package/dist/cjs/api-method-instance-grid.cjs.entry.js +3 -3
- package/dist/cjs/{apiMethodInstance-0K09_ZVK.js → apiMethodInstance-hLQDl9AB.js} +1 -1
- package/dist/cjs/{configureUdpColumnMods-BH2vf0d0.js → configureUdpColumnMods-ZrZ1hJX-.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{lookupHelper-BRE25uqB.js → lookupHelper-UyFRGwLL.js} +9 -2
- package/dist/cjs/search-method-grid.cjs.entry.js +1 -1
- package/dist/collection/components/grid/new-grid/helperFunctions/lookupHelper.js +9 -2
- package/dist/components/configureUdpColumnMods.js +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/ag-grid-base_63.entry.js +2 -2
- package/dist/esm/api-method-instance-grid.entry.js +3 -3
- package/dist/esm/{apiMethodInstance-ntvOZHfA.js → apiMethodInstance-De6Fopgy.js} +1 -1
- package/dist/esm/{configureUdpColumnMods-CXhuwtXi.js → configureUdpColumnMods-D_QiM61M.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{lookupHelper-Cq8dS6ZL.js → lookupHelper-Bsc0nCBf.js} +9 -2
- package/dist/esm/search-method-grid.entry.js +1 -1
- package/dist/stencil-library/ag-grid-base_63.entry.js +1 -1
- package/dist/stencil-library/api-method-instance-grid.entry.js +1 -1
- package/dist/stencil-library/{apiMethodInstance-ntvOZHfA.js → apiMethodInstance-De6Fopgy.js} +1 -1
- package/dist/stencil-library/{configureUdpColumnMods-CXhuwtXi.js → configureUdpColumnMods-D_QiM61M.js} +1 -1
- package/dist/stencil-library/index.esm.js +1 -1
- package/dist/stencil-library/lookupHelper-Bsc0nCBf.js +1 -0
- package/dist/stencil-library/search-method-grid.entry.js +1 -1
- package/package.json +1 -1
- 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-
|
|
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-
|
|
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-
|
|
7
|
+
var apiMethodInstance = require('./apiMethodInstance-hLQDl9AB.js');
|
|
8
8
|
var configService = require('./configService-D-lDX-f_.js');
|
|
9
9
|
require('axios');
|
|
10
|
-
require('./configureUdpColumnMods-
|
|
11
|
-
require('./lookupHelper-
|
|
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-
|
|
3
|
+
var configureUdpColumnMods = require('./configureUdpColumnMods-ZrZ1hJX-.js');
|
|
4
4
|
|
|
5
5
|
function mapDotNetTypeToAgGridType(type) {
|
|
6
6
|
const normalized = type.replace(/\?$/, '').trim().toLowerCase();
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -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-
|
|
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-
|
|
19
|
-
require('./lookupHelper-
|
|
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
|
-
//
|
|
80
|
-
|
|
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-
|
|
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
|
-
//
|
|
74
|
-
|
|
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
|
|
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,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-
|
|
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-
|
|
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-
|
|
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-
|
|
9
|
-
import './lookupHelper-
|
|
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-
|
|
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();
|
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-
|
|
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-
|
|
17
|
-
import './lookupHelper-
|
|
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
|
-
//
|
|
78
|
-
|
|
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-
|
|
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';
|