IDEMPIERE-5933 Update billboard.js to version 3.10.3 (#2112)

This commit is contained in:
hengsin 2023-11-18 20:05:56 +08:00 committed by GitHub
parent 52a92ba767
commit 0f6ac9e6d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 3386 additions and 2909 deletions

View File

@ -2,11 +2,12 @@
1. Wrap https://github.com/naver/billboard.js as zk component. 1. Wrap https://github.com/naver/billboard.js as zk component.
2. Get latest billboard.min.js and billboard.js from https://github.com/naver/billboard.js. Following Zk naming convention, rename billboard.min.js to billboard.js and rename billboard.js to billboard.src.js. 2. Get latest billboard.min.js and billboard.js from https://naver.github.io/billboard.js/#download. Following Zk naming convention, rename billboard.min.js to billboard.js and rename billboard.js to billboard.src.js.
3. Get d3 from https://d3js.org/. The current version use by billboard is v6 so the corresponding link is https://d3js.org/d3.v6.js and https://d3js.org/d3.v6.min.js. Again, following Zk naming conversion, we need to rename d3.v6.js to d3.v6.src.js and rename d3.v6.min.js to d3.v6.js. 3. Get d3 from https://d3js.org/. The current version use by billboard is v6 so the corresponding link is https://d3js.org/d3.v6.js and https://d3js.org/d3.v6.min.js. Again, following Zk naming conversion, we need to rename d3.v6.js to d3.v6.src.js
and rename d3.v6.min.js to d3.v6.js.
4. Replace billboard.css with latest billboard.css from https://github.com/naver/billboard.js. 4. Replace billboard.css with latest billboard.css from https://naver.github.io/billboard.js/#download.
* Add !important to padding and text-align of .bb-tooltip th and padding of .bb-tooltip td to fix conflict with zk css * Add !important to padding and text-align of .bb-tooltip th and padding of .bb-tooltip td to fix conflict with zk css
* Change font-size of text.bb-chart-arcs-gauge-title from 2.7em to 1.5em. * Change font-size of text.bb-chart-arcs-gauge-title from 2.7em to 1.5em.
* Original: text.bb-chart-arcs-gauge-title { * Original: text.bb-chart-arcs-gauge-title {

View File

@ -6,7 +6,7 @@
<language-name>xul/html</language-name> <language-name>xul/html</language-name>
<version> <version>
<version-class>org.idempiere.zk.billboard.Version</version-class> <version-class>org.idempiere.zk.billboard.Version</version-class>
<version-uid>3.9.0.20230713</version-uid> <version-uid>3.10.3.20231118</version-uid>
</version> </version>
<component> <component>
<component-name>billboard</component-name> <component-name>billboard</component-name>
@ -19,7 +19,7 @@
</component> </component>
<stylesheet href="~./js/zul/billboard/css/billboard.css" type="text/css"/> <stylesheet href="~./js/zul/billboard/css/billboard.css" type="text/css"/>
<javascript-module name="zul.billboard" version="3.9.0.202307131000"/> <javascript-module name="zul.billboard" version="3.10.3.20231118"/>
<!-- this js module doesn't actually exists and it is here for billboard.css version --> <!-- this js module doesn't actually exists and it is here for modern.css version -->
<javascript-module name="zul.billboard.css" version="3.9.0.202307131000"/> <javascript-module name="zul.billboard.css" version="3.10.3.20231118"/>
</language-addon> </language-addon>

View File

@ -34,5 +34,5 @@ public class Version {
* Returns the version UID.<br/> * Returns the version UID.<br/>
* Must match with version-uid value in lang-addon.xml * Must match with version-uid value in lang-addon.xml
*/ */
public static final String UID = "3.9.0.20230713"; public static final String UID = "3.10.3.20231118";
} }

View File

@ -5,7 +5,7 @@
* billboard.js, JavaScript chart library * billboard.js, JavaScript chart library
* https://naver.github.io/billboard.js/ * https://naver.github.io/billboard.js/
* *
* @version 3.9.0 * @version 3.10.3
*/ */
/*-- Chart --*/ /*-- Chart --*/
.bb svg { .bb svg {
@ -102,7 +102,7 @@
opacity: .05 !important; } opacity: .05 !important; }
/*-- Region --*/ /*-- Region --*/
.bb-region { .bb-region rect {
fill: steelblue; fill: steelblue;
fill-opacity: .1; } fill-opacity: .1; }
@ -169,7 +169,7 @@
height: 10px; height: 10px;
margin-right: 6px; } margin-right: 6px; }
.bb-tooltip.value { .bb-tooltip.value {
text-align: right !important; } text-align: right; }
/*-- Area --*/ /*-- Area --*/
.bb-area { .bb-area {

File diff suppressed because one or more lines are too long