Skip to content

Commit

Permalink
Fix backwards compatibility (#143)
Browse files Browse the repository at this point in the history
* Fix error with rendering when ItemDropDown values are undefined

* Fix tests

* Set topLevelSlice for "Cursor", "First Day of Week" formatting settings cards

* Update API to 5.8.0

* Fix height and width calculation when enableManualSizing is enabled

* Limit max text size in range header and labels

* Rollback capabilities.json to previous configuration to keep backwards compatibility

* Update packages

Bump version to 2.5.0.0

* Remove jquery

* Update GitHub actions to use node 18, 20

* Add TimelineSettingsModel.ts

* Refactor calendar interfaces

* Migrate to formatting model

* Add visual short and long description localization keys

* Fix granularity value backwards compatibility (use numbers instead of string)

* Add cursor formatting settings

* Add "Cells" card settings: stroke width and gap width

* Add formatting setting to manually resize cell height and width

* Split D3 into submodules like d3-selection

* Update packages

* Update API to 5.9.0

* Refactor event handlers into behavior.ts

* Refactor behavior.ts into static

* Fix karma.config
  • Loading branch information
adiletelf authored Apr 2, 2024
1 parent 0db94ca commit 8eb7b1b
Show file tree
Hide file tree
Showing 21 changed files with 3,216 additions and 2,226 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm audit
continue-on-error: true
- run: npm ci
- run: npm outdated
continue-on-error: true
- run: npm run eslint
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ webpack.statistics.html
webpack.statistics.dev.html
webpack.statistics.prod.html

# JetBrains
## JetBrains
.idea/
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## 2.5.3
* Update API to 5.9.0
* Fix npm vulnerabilities
* Refactor event handlers into behavior.ts

## 2.5.2
* Fix backwards compatibility with 2.4.0
* Packages update

## 2.5.1
* powerbi-visuals-api was updated to 5.8.0
* Packages update


## 2.5.0
* powerbi-visuals-api was updated to 5.7.0
* Updated to new formatting model api provided
Expand Down
162 changes: 149 additions & 13 deletions capabilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,22 @@
}
}
},
"weeksDeterminationStandards": {
"weeksDetermintaionStandards": {
"properties": {
"weekStandard": {
"type": {
"text": true
"enumeration": [
{
"value": "0",
"displayName": "-- none --",
"displayNameKey": "Visual_Week_Standard_None"
},
{
"value": "1",
"displayName": "ISO 8601",
"displayNameKey": "Visual_Week_Standard_ISO8601"
}
]
}
}
}
Expand All @@ -90,7 +101,68 @@
"properties": {
"month": {
"type": {
"text": true
"enumeration": [
{
"value": "0",
"displayName": "January",
"displayNameKey": "Visual_Month_January"
},
{
"value": "1",
"displayName": "February",
"displayNameKey": "Visual_Month_February"
},
{
"value": "2",
"displayName": "March",
"displayNameKey": "Visual_Month_March"
},
{
"value": "3",
"displayName": "April",
"displayNameKey": "Visual_Month_April"
},
{
"value": "4",
"displayName": "May",
"displayNameKey": "Visual_Month_May"
},
{
"value": "5",
"displayName": "June",
"displayNameKey": "Visual_Month_June"
},
{
"value": "6",
"displayName": "July",
"displayNameKey": "Visual_Month_July"
},
{
"value": "7",
"displayName": "August",
"displayNameKey": "Visual_Month_August"
},
{
"value": "8",
"displayName": "September",
"displayNameKey": "Visual_Month_September"
},
{
"value": "9",
"displayName": "October",
"displayNameKey": "Visual_Month_October"
},
{
"value": "10",
"displayName": "November",
"displayNameKey": "Visual_Month_November"
},
{
"value": "11",
"displayName": "December",
"displayNameKey": "Visual_Month_December"
}
]
}
},
"day": {
Expand All @@ -109,7 +181,43 @@
},
"day": {
"type": {
"text": true
"enumeration": [
{
"value": "0",
"displayName": "Sunday",
"displayNameKey": "Visual_Day_Sunday"
},
{
"value": "1",
"displayName": "Monday",
"displayNameKey": "Visual_Day_Monday"
},
{
"value": "2",
"displayName": "Tuesday",
"displayNameKey": "Visual_Day_Tuesday"
},
{
"value": "3",
"displayName": "Wednesday",
"displayNameKey": "Visual_Day_Wednesday"
},
{
"value": "4",
"displayName": "Thursday",
"displayNameKey": "Visual_Day_Thursday"
},
{
"value": "5",
"displayName": "Friday",
"displayNameKey": "Visual_Day_Friday"
},
{
"value": "6",
"displayName": "Saturday",
"displayNameKey": "Visual_Day_Saturday"
}
]
}
}
}
Expand Down Expand Up @@ -148,31 +256,33 @@
}
}
},
"fillUnselected": {
"strokeSelected": {
"type": {
"fill": {
"solid": {
"color": {
"nullable": true
}
"color": true
}
}
}
},
"strokeColor": {
"fillUnselected": {
"type": {
"fill": {
"solid": {
"color": true
"color": {
"nullable": true
}
}
}
}
},
"selectedStrokeColor": {
"strokeUnselected": {
"type": {
"fill": {
"solid": {
"color": true
"color": {
"nullable": true
}
}
}
}
Expand Down Expand Up @@ -231,7 +341,33 @@
},
"granularity": {
"type": {
"text": true
"enumeration": [
{
"value": "0",
"displayName": "Year",
"displayNameKey": "Visual_Granularity_Year"
},
{
"value": "1",
"displayName": "Quarter",
"displayNameKey": "Visual_Granularity_Quarter"
},
{
"value": "2",
"displayName": "Month",
"displayNameKey": "Visual_Granularity_Month"
},
{
"value": "3",
"displayName": "Week",
"displayNameKey": "Visual_Granularity_Week"
},
{
"value": "4",
"displayName": "Day",
"displayNameKey": "Visual_Granularity_Day"
}
]
},
"filterState": true
},
Expand Down
6 changes: 6 additions & 0 deletions karma.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ process.env.CHROME_BIN = require("playwright-chromium").chromium.executablePath(
module.exports = (config) => {
config.set({
browsers: ["ChromeHeadless"],
customLaunchers: {
ChromeDebugging: {
base: "ChromeHeadless",
flags: ["--remote-debugging-port=9333"]
}
},
colors: true,
coverageReporter: {
dir: path.join(__dirname, coverageFolder),
Expand Down
Loading

0 comments on commit 8eb7b1b

Please sign in to comment.