Skip to content

Commit 2cd6c79

Browse files
committed
chore(data-widgets): multiple fix rebase
1 parent bd49b44 commit 2cd6c79

File tree

13 files changed

+24
-32
lines changed

13 files changed

+24
-32
lines changed

packages/modules/data-widgets/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@mendix/data-widgets",
33
"moduleName": "Data Widgets",
4-
"version": "2.32.1",
4+
"version": "2.27.5",
55
"copyright": "© Mendix Technology BV 2025. All rights reserved.",
66
"license": "Apache-2.0",
77
"private": true,
@@ -27,13 +27,13 @@
2727
},
2828
"moduleFolderNameInModeler": "datawidgets",
2929
"marketplace": {
30-
"minimumMXVersion": "10.21.0.64362",
30+
"minimumMXVersion": "9.24.0.2965",
3131
"appNumber": 116540,
3232
"appName": "Data Widgets"
3333
},
3434
"testProject": {
3535
"githubUrl": "https://github.com/mendix/DataWidgets-module",
36-
"branchName": "mts/10.21"
36+
"branchName": "data-widgets-backport-9-24"
3737
},
3838
"scripts": {
3939
"build:deps": "turbo run build --filter=data-widgets^...",

packages/pluggableWidgets/datagrid-date-filter-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"packagePath": "com.mendix.widget.web",
2020
"marketplace": {
21-
"minimumMXVersion": "9.17.0",
21+
"minimumMXVersion": "9.24.0.2965",
2222
"appName": "Date Filter"
2323
},
2424
"testProject": {

packages/pluggableWidgets/datagrid-dropdown-filter-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"packagePath": "com.mendix.widget.web",
2020
"marketplace": {
21-
"minimumMXVersion": "9.17.0",
21+
"minimumMXVersion": "9.24.0.2965",
2222
"appName": "Drop-down Filter"
2323
},
2424
"testProject": {

packages/pluggableWidgets/datagrid-dropdown-filter-web/src/DatagridDropdownFilter.editorPreview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ enableStaticRendering(true);
44
import { createElement, ReactElement } from "react";
55
import { DatagridDropdownFilterPreviewProps } from "../typings/DatagridDropdownFilterProps";
66
import { parseStyle } from "@mendix/widget-plugin-platform/preview/parse-style";
7-
import { Select } from "@mendix/widget-plugin-filtering/controls/select/Select";
7+
import { Select_inner } from "@mendix/widget-plugin-filtering/controls/select/Select";
88

99
function Preview(props: DatagridDropdownFilterPreviewProps): ReactElement {
1010
return (
11-
<Select
11+
<Select_inner
1212
className={props.class}
1313
style={parseStyle(props.style)}
1414
options={[]}

packages/pluggableWidgets/datagrid-number-filter-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"packagePath": "com.mendix.widget.web",
2020
"marketplace": {
21-
"minimumMXVersion": "9.17.0",
21+
"minimumMXVersion": "9.24.0.2965",
2222
"appName": "Number Filter"
2323
},
2424
"testProject": {

packages/pluggableWidgets/datagrid-web/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
### Changed
10+
11+
- We have removed support for reference set associations to allow data grid to work on SP 9.24.
12+
913
## [2.30.6] - 2025-05-28
1014

1115
### Fixed

packages/pluggableWidgets/datagrid-web/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@mendix/datagrid-web",
33
"widgetName": "Datagrid",
4-
"version": "2.30.6",
4+
"version": "2.27.5",
55
"description": "",
66
"copyright": "© Mendix Technology BV 2025. All rights reserved.",
77
"license": "Apache-2.0",
@@ -18,7 +18,7 @@
1818
},
1919
"packagePath": "com.mendix.widget.web",
2020
"marketplace": {
21-
"minimumMXVersion": "10.12.0",
21+
"minimumMXVersion": "9.24.0.2965",
2222
"appName": "Data Grid 2"
2323
},
2424
"testProject": {

packages/pluggableWidgets/datagrid-web/src/Datagrid.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@
8686
<attributeType name="Integer" />
8787
<attributeType name="Long" />
8888
</attributeTypes>
89-
<associationTypes>
90-
<associationType name="Reference" />
91-
<associationType name="ReferenceSet" />
92-
</associationTypes>
9389
</property>
9490
<property key="content" type="widgets" dataSource="../datasource" required="false">
9591
<caption>Custom content</caption>

packages/pluggableWidgets/datagrid-web/src/helpers/state/column/ColumnFilterStore.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { StaticSelectFilterStore } from "@mendix/widget-plugin-filtering/stores/
44
import { InputFilterStore, attrgroupFilterStore } from "@mendix/widget-plugin-filtering/stores/input/store-utils";
55
import { ensure } from "@mendix/widget-plugin-platform/utils/ensure";
66
import { FilterCondition } from "mendix/filters";
7-
import { ListAttributeValue, ListAttributeListValue } from "mendix";
87
import { action, computed, makeObservable } from "mobx";
98
import { ReactNode, createElement } from "react";
109
import { ColumnsType } from "../../../../typings/DatagridProps";
@@ -59,7 +58,7 @@ export class ColumnFilterStore implements IColumnFilterStore {
5958

6059
if (store.storeType === "refselect") {
6160
store.updateProps(this.toRefselectProps(props));
62-
} else if (isListAttributeValue(props.attribute)) {
61+
} else if (props.attribute) {
6362
store.updateProps([props.attribute]);
6463
}
6564
}
@@ -85,7 +84,7 @@ export class ColumnFilterStore implements IColumnFilterStore {
8584
return new RefFilterStore(this.toRefselectProps(props), dsViewState);
8685
}
8786

88-
if (isListAttributeValue(props.attribute)) {
87+
if (props.attribute) {
8988
return attrgroupFilterStore(props.attribute.type, [props.attribute], dsViewState);
9089
}
9190

@@ -124,11 +123,5 @@ export class ColumnFilterStore implements IColumnFilterStore {
124123
}
125124
}
126125

127-
const isListAttributeValue = (
128-
attribute?: ListAttributeValue | ListAttributeListValue
129-
): attribute is ListAttributeValue => {
130-
return !!(attribute && attribute.isList === false);
131-
};
132-
133126
const errorMessage = (propName: string): string =>
134127
`Can't map ColumnsType to AssociationProperties: ${propName} is undefined`;

packages/pluggableWidgets/datagrid-web/src/helpers/state/column/ColumnStore.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {
22
DynamicValue,
33
ListAttributeValue,
4-
ListAttributeListValue,
54
ListExpressionValue,
65
ListWidgetValue,
76
ObjectItem,
@@ -35,9 +34,7 @@ export class ColumnStore implements GridColumn {
3534
private _header?: DynamicValue<string> = undefined; // can render when unavailable
3635
private _columnClass?: ListExpressionValue<string> = undefined; // can render when unavailable
3736
private _tooltip?: ListExpressionValue<string> = undefined; // part of attribute or dynamicText
38-
private _attribute?:
39-
| ListAttributeValue<string | Big | boolean | Date>
40-
| ListAttributeListValue<string | Big | boolean | Date> = undefined; // as "attribute"
37+
private _attribute?: ListAttributeValue<string | Big | boolean | Date> = undefined; // as "attribute"
4138
private _dynamicText?: ListExpressionValue<string> = undefined; // as "dynamicText"
4239
private _content?: ListWidgetValue = undefined; // as "customContent"
4340

0 commit comments

Comments
 (0)