@salesforce/ui-bundle-template-app-react-template-b2e 11.59.1 → 11.59.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/CHANGELOG.md +8 -0
- package/dist/force-app/main/default/uiBundles/reactinternalapp/package.json +4 -4
- package/dist/force-app/main/default/uiBundles/reactinternalapp/src/features/search/components/filters/DefaultFilterPanel.tsx +7 -1
- package/dist/force-app/main/default/uiBundles/reactinternalapp/src/features/search/utils/filterUtils.ts +12 -3
- package/dist/package-lock.json +2 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [11.59.2](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.59.1...v11.59.2) (2026-08-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [11.59.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.59.0...v11.59.1) (2026-08-14)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"graphql:schema": "node scripts/get-graphql-schema.mjs"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@salesforce/platform-sdk": "^11.59.
|
|
22
|
-
"@salesforce/ui-bundle": "^11.59.
|
|
21
|
+
"@salesforce/platform-sdk": "^11.59.2",
|
|
22
|
+
"@salesforce/ui-bundle": "^11.59.2",
|
|
23
23
|
"@tailwindcss/vite": "^4.1.17",
|
|
24
24
|
"class-variance-authority": "^0.7.1",
|
|
25
25
|
"clsx": "^2.1.1",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@graphql-eslint/eslint-plugin": "^4.1.0",
|
|
46
46
|
"@graphql-tools/utils": "^11.0.0",
|
|
47
47
|
"@playwright/test": "^1.49.0",
|
|
48
|
-
"@salesforce/graphiti": "^11.59.
|
|
49
|
-
"@salesforce/vite-plugin-ui-bundle": "^11.59.
|
|
48
|
+
"@salesforce/graphiti": "^11.59.2",
|
|
49
|
+
"@salesforce/vite-plugin-ui-bundle": "^11.59.2",
|
|
50
50
|
"@testing-library/jest-dom": "^6.6.3",
|
|
51
51
|
"@testing-library/react": "^16.1.0",
|
|
52
52
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -64,7 +64,13 @@ function DefaultFilterField({ filter, source }: DefaultFilterFieldProps) {
|
|
|
64
64
|
return <PicklistField filter={filter} source={source} multi={true} />;
|
|
65
65
|
case "numeric":
|
|
66
66
|
return (
|
|
67
|
-
<NumericRangeFilter
|
|
67
|
+
<NumericRangeFilter
|
|
68
|
+
field={filter.field}
|
|
69
|
+
label={filter.label}
|
|
70
|
+
helpText={filter.helpText}
|
|
71
|
+
min={filter.min}
|
|
72
|
+
max={filter.max}
|
|
73
|
+
/>
|
|
68
74
|
);
|
|
69
75
|
case "boolean":
|
|
70
76
|
return <BooleanFilter field={filter.field} label={filter.label} helpText={filter.helpText} />;
|
|
@@ -49,6 +49,9 @@ export type FilterFieldConfig<TFieldName extends string = string> = {
|
|
|
49
49
|
/** Date-family only — see {@link DateFilterMode}. Defaults to `"comparison"`. */
|
|
50
50
|
dateMode?: DateFilterMode;
|
|
51
51
|
helpText?: string;
|
|
52
|
+
// Numeric-family only.
|
|
53
|
+
min?: number;
|
|
54
|
+
max?: number;
|
|
52
55
|
};
|
|
53
56
|
|
|
54
57
|
export type ActiveFilterValue<TFieldName extends string = string> = {
|
|
@@ -205,7 +208,7 @@ function toEndOfDay(d: string) {
|
|
|
205
208
|
return `${d}T23:59:59.999Z`;
|
|
206
209
|
}
|
|
207
210
|
|
|
208
|
-
function buildSingleFilter(filter: ActiveFilterValue,
|
|
211
|
+
function buildSingleFilter(filter: ActiveFilterValue, config?: FilterFieldConfig): unknown {
|
|
209
212
|
const { field, type, value, min, max } = filter;
|
|
210
213
|
switch (type) {
|
|
211
214
|
case "text": {
|
|
@@ -219,8 +222,14 @@ function buildSingleFilter(filter: ActiveFilterValue, _config?: FilterFieldConfi
|
|
|
219
222
|
case "numeric": {
|
|
220
223
|
if (!min && !max) return null;
|
|
221
224
|
const ops: Record<string, number> = {};
|
|
222
|
-
|
|
223
|
-
|
|
225
|
+
// clamp both endpoints into the declared [min,max] bounds
|
|
226
|
+
const clamp = (n: number) => {
|
|
227
|
+
if (config?.min != null) n = Math.max(n, config.min);
|
|
228
|
+
if (config?.max != null) n = Math.min(n, config.max);
|
|
229
|
+
return n;
|
|
230
|
+
};
|
|
231
|
+
if (min) ops.gte = clamp(Number(min));
|
|
232
|
+
if (max) ops.lte = clamp(Number(max));
|
|
224
233
|
return { [field]: ops };
|
|
225
234
|
}
|
|
226
235
|
case "boolean": {
|
package/dist/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/ui-bundle-template-base-sfdx-project",
|
|
3
|
-
"version": "11.59.
|
|
3
|
+
"version": "11.59.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@salesforce/ui-bundle-template-base-sfdx-project",
|
|
9
|
-
"version": "11.59.
|
|
9
|
+
"version": "11.59.2",
|
|
10
10
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"fast-xml-parser": "^5.9.3",
|
package/dist/package.json
CHANGED