@genesislcap/foundation-entity-management 14.447.1 → 14.448.0-canary.wealth
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-bar-utils.d.ts","sourceRoot":"","sources":["../../../src/utils/search-bar-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAgC,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAAE,eAAe,EAAwC,MAAM,4BAA4B,CAAC;AACnG,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,eAAO,MAAM,yBAAyB,GACpC,SAAS,UAAU,EAAE,EACrB,MAAM,QAAQ,EACd,YAAY,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"search-bar-utils.d.ts","sourceRoot":"","sources":["../../../src/utils/search-bar-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAgC,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAAE,eAAe,EAAwC,MAAM,4BAA4B,CAAC;AACnG,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,eAAO,MAAM,yBAAyB,GACpC,SAAS,UAAU,EAAE,EACrB,MAAM,QAAQ,EACd,YAAY,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,sBAepC,CAAC;AAEJ,eAAO,MAAM,sBAAsB,GAAI,MAAM,QAAQ,EAAE,YAAY,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,sBAazF,CAAC"}
|
|
@@ -4,9 +4,8 @@ export const getSearchBarColumnsConfig = (columns, meta, changeCase) => columns.
|
|
|
4
4
|
label: (searchTerm) => `${searchTerm} as ${column.headerName || (changeCase ? changeCase(column.field) : column.field)}`,
|
|
5
5
|
resourceType: meta.TYPE,
|
|
6
6
|
createCriteria: getCriteriaBuilder,
|
|
7
|
-
isEnabled: (searchTerm, selectedOption) => {
|
|
8
|
-
return (searchTerm.length >=
|
|
9
|
-
!selectedOption.some((e) => e.field === column.field));
|
|
7
|
+
isEnabled: (searchTerm, selectedOption, minLength = INPUT_MIN_LENGTH) => {
|
|
8
|
+
return (searchTerm.length >= minLength && !selectedOption.some((e) => e.field === column.field));
|
|
10
9
|
},
|
|
11
10
|
}));
|
|
12
11
|
export const getSearchBarMetaConfig = (meta, changeCase) => {
|
|
@@ -16,9 +15,8 @@ export const getSearchBarMetaConfig = (meta, changeCase) => {
|
|
|
16
15
|
label: (searchTerm) => `${searchTerm} as ${changeCase ? changeCase(field.NAME) : field.NAME}`,
|
|
17
16
|
resourceType: meta.TYPE,
|
|
18
17
|
createCriteria: getCriteriaBuilder,
|
|
19
|
-
isEnabled: (searchTerm, selectedOption) => {
|
|
20
|
-
return (searchTerm.length >=
|
|
21
|
-
!selectedOption.some((e) => e.field === field.NAME));
|
|
18
|
+
isEnabled: (searchTerm, selectedOption, minLength = INPUT_MIN_LENGTH) => {
|
|
19
|
+
return (searchTerm.length >= minLength && !selectedOption.some((e) => e.field === field.NAME));
|
|
22
20
|
},
|
|
23
21
|
}));
|
|
24
22
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-entity-management",
|
|
3
3
|
"description": "Genesis Foundation Entity Management",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.448.0-canary.wealth",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -54,32 +54,32 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@genesislcap/foundation-testing": "14.
|
|
58
|
-
"@genesislcap/genx": "14.
|
|
59
|
-
"@genesislcap/rollup-builder": "14.
|
|
60
|
-
"@genesislcap/ts-builder": "14.
|
|
61
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
62
|
-
"@genesislcap/vite-builder": "14.
|
|
63
|
-
"@genesislcap/webpack-builder": "14.
|
|
57
|
+
"@genesislcap/foundation-testing": "14.448.0-canary.wealth",
|
|
58
|
+
"@genesislcap/genx": "14.448.0-canary.wealth",
|
|
59
|
+
"@genesislcap/rollup-builder": "14.448.0-canary.wealth",
|
|
60
|
+
"@genesislcap/ts-builder": "14.448.0-canary.wealth",
|
|
61
|
+
"@genesislcap/uvu-playwright-builder": "14.448.0-canary.wealth",
|
|
62
|
+
"@genesislcap/vite-builder": "14.448.0-canary.wealth",
|
|
63
|
+
"@genesislcap/webpack-builder": "14.448.0-canary.wealth"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@ag-grid-community/core": "29.2.0"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@genesislcap/foundation-ai": "14.
|
|
70
|
-
"@genesislcap/foundation-comms": "14.
|
|
71
|
-
"@genesislcap/foundation-errors": "14.
|
|
72
|
-
"@genesislcap/foundation-events": "14.
|
|
73
|
-
"@genesislcap/foundation-forms": "14.
|
|
74
|
-
"@genesislcap/foundation-logger": "14.
|
|
75
|
-
"@genesislcap/foundation-login": "14.
|
|
76
|
-
"@genesislcap/foundation-notifications": "14.
|
|
77
|
-
"@genesislcap/foundation-ui": "14.
|
|
78
|
-
"@genesislcap/foundation-utils": "14.
|
|
79
|
-
"@genesislcap/foundation-zero": "14.
|
|
80
|
-
"@genesislcap/foundation-zero-grid-pro": "14.
|
|
81
|
-
"@genesislcap/grid-pro": "14.
|
|
82
|
-
"@genesislcap/web-core": "14.
|
|
69
|
+
"@genesislcap/foundation-ai": "14.448.0-canary.wealth",
|
|
70
|
+
"@genesislcap/foundation-comms": "14.448.0-canary.wealth",
|
|
71
|
+
"@genesislcap/foundation-errors": "14.448.0-canary.wealth",
|
|
72
|
+
"@genesislcap/foundation-events": "14.448.0-canary.wealth",
|
|
73
|
+
"@genesislcap/foundation-forms": "14.448.0-canary.wealth",
|
|
74
|
+
"@genesislcap/foundation-logger": "14.448.0-canary.wealth",
|
|
75
|
+
"@genesislcap/foundation-login": "14.448.0-canary.wealth",
|
|
76
|
+
"@genesislcap/foundation-notifications": "14.448.0-canary.wealth",
|
|
77
|
+
"@genesislcap/foundation-ui": "14.448.0-canary.wealth",
|
|
78
|
+
"@genesislcap/foundation-utils": "14.448.0-canary.wealth",
|
|
79
|
+
"@genesislcap/foundation-zero": "14.448.0-canary.wealth",
|
|
80
|
+
"@genesislcap/foundation-zero-grid-pro": "14.448.0-canary.wealth",
|
|
81
|
+
"@genesislcap/grid-pro": "14.448.0-canary.wealth",
|
|
82
|
+
"@genesislcap/web-core": "14.448.0-canary.wealth",
|
|
83
83
|
"change-case": "^4.1.2"
|
|
84
84
|
},
|
|
85
85
|
"repository": {
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"require": "./dist/react.cjs"
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "dd463812d10b19835162f58c2c04624fe52c6a36"
|
|
106
106
|
}
|