Skip to content

Commit

Permalink
[WTF-1986] Generate types for metadata attribute properties (#102)
Browse files Browse the repository at this point in the history
## Checklist

-   Contains unit tests ✅
-   Contains breaking changes ❌
-   Compatible with: MX 🔟 (After next release of typings package)
-   Did you update version and changelog?  ✅
-   PR title properly formatted (`[XX-000]: description`)? ✅

## This PR contains

-   [ ] Bug fix
-   [x] Feature
-   [ ] Refactor
-   [ ] Documentation
-   [ ] Other (describe)

## What is the purpose of this PR?

To lay the groundwork for offering cross-widget filtering and sorting of
data sources. Enabling widget developers to build reusable and flexible
filter controls.

## Relevant changes

This PR introduces the `AttributeMetaDataProperty` type. 

## What should be covered while testing?

That an attribute with the `isMetaData=true` flag results in a
`AttributeMetaData` type.
  • Loading branch information
weirdwater authored Sep 24, 2024
2 parents 58bd02c + d884a76 commit 8b2e956
Show file tree
Hide file tree
Showing 29 changed files with 1,104 additions and 616 deletions.
4 changes: 4 additions & 0 deletions packages/generator-widget/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Changed

- We updated dependencies with non-breaking security patches.

## [10.7.3] - 2024-07-10

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"output": "./dist/testresults/TESTS-Jest.xml"
},
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^10.7.1"
"@mendix/pluggable-widgets-tools": "^10.15.0"
},
"dependencies": {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"release": "pluggable-widgets-tools release:native"
},
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^10.7.1"
"@mendix/pluggable-widgets-tools": "^10.15.0"
},
"dependencies": {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"output": "./dist/testresults/TESTS-Jest.xml"
},
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^10.7.1",
"@mendix/pluggable-widgets-tools": "^10.15.0",
"@types/big.js": "^6.0.2",
"@types/enzyme": "^3.10.8",
"@types/jest": "^29.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"release": "pluggable-widgets-tools release:native"
},
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^10.7.1",
"@mendix/pluggable-widgets-tools": "^10.15.0",
"@types/big.js": "^6.0.2"
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"release": "pluggable-widgets-tools release:web"
},
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^10.7.1",
"@mendix/pluggable-widgets-tools": "^10.15.0",
"cypress": "^10.10.0"
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"release": "pluggable-widgets-tools release:web"
},
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^10.7.1",
"@mendix/pluggable-widgets-tools": "^10.15.0",
"cypress": "^10.10.0"
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"release": "pluggable-widgets-tools release:web"
},
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^10.7.1"
"@mendix/pluggable-widgets-tools": "^10.15.0"
},
"dependencies": {
"classnames": "^2.2.6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"release": "pluggable-widgets-tools release:web"
},
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^10.7.1"
"@mendix/pluggable-widgets-tools": "^10.15.0"
},
"dependencies": {
"classnames": "^2.2.6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"release": "pluggable-widgets-tools release:web"
},
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^10.7.1",
"@mendix/pluggable-widgets-tools": "^10.15.0",
"@types/big.js": "^6.0.2",
"@types/enzyme": "^3.10.8",
"@types/jasmine": "^3.6.9",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"release": "pluggable-widgets-tools release:web"
},
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^10.7.1",
"@mendix/pluggable-widgets-tools": "^10.15.0",
"@types/big.js": "^6.0.2",
"@types/enzyme": "^3.10.8",
"@types/jasmine": "^3.6.9",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"release": "pluggable-widgets-tools release:web"
},
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^10.7.1",
"@mendix/pluggable-widgets-tools": "^10.15.0",
"@types/big.js": "^6.0.2",
"@types/enzyme": "^3.10.8",
"@types/jest": "^29.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"release": "pluggable-widgets-tools release:web"
},
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^10.7.1",
"@mendix/pluggable-widgets-tools": "^10.15.0",
"@types/big.js": "^6.0.2"
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"output": "./dist/testresults/TESTS-Jest.xml"
},<% } %>
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^10.7.1"<% if (isLanguageTS) { %>,
"@mendix/pluggable-widgets-tools": "^10.15.0"<% if (isLanguageTS) { %>,
"@types/big.js": "^6.0.2"<% if (hasUnitTests) { %>,
"@types/enzyme": "^3.10.8",
"@types/jest": "^29.0.0"<% } %><% } %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"release": "pluggable-widgets-tools release:web"
},
"devDependencies": {
"@mendix/pluggable-widgets-tools": "^10.7.1"<% if (isLanguageTS) { %>,
"@mendix/pluggable-widgets-tools": "^10.15.0"<% if (isLanguageTS) { %>,
"@types/big.js": "^6.0.2"<% if (hasUnitTests || hasE2eTests) { %>,
"@types/enzyme": "^3.10.8"<% } %><% if (hasE2eTests) { %>,
"@types/jasmine": "^3.6.9"<% } %><% if (hasUnitTests) { %>,
Expand Down
52 changes: 30 additions & 22 deletions packages/generator-widget/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/generator-widget/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mendix/generator-widget",
"version": "10.7.3",
"version": "10.7.4",
"description": "Mendix Pluggable Widgets Generator",
"engines": {
"node": ">=16"
Expand Down
10 changes: 10 additions & 0 deletions packages/pluggable-widgets-tools/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Added

- We added the property type AttributeMetaData which exposes useful metadata for filtering and sorting datasources.

### Changed

- We updated the Mendix package to 10.15.46408.

- We updated dependencies with non-breaking security patches.

## [10.12.1] - 2024-07-10

### Added
Expand Down
Loading

0 comments on commit 8b2e956

Please sign in to comment.