NEW Upgrade chartjs library to 3.7.1
This commit is contained in:
parent
9ff4903608
commit
45fca25408
@ -49,7 +49,7 @@ TCPDI 1.0.0 LGPL-3+ / Apache 2.0 Yes
|
||||
|
||||
JS libraries:
|
||||
Ace 1.4.8 BSD Yes JS library to get code syntaxique coloration in a textarea.
|
||||
ChartJS 2.9.4 MIT License Yes JS library for graph
|
||||
ChartJS 3.7.1 MIT License Yes JS library for graph
|
||||
jQuery 3.5.1 MIT License Yes JS library
|
||||
jQuery UI 1.12.1 GPL and MIT License Yes JS library plugin UI
|
||||
jQuery select2 4.0.13 GPL and Apache License Yes JS library plugin for sexier multiselect. Warning: 4.0.6+ create troubles without patching css
|
||||
|
||||
@ -150,7 +150,7 @@ class box_graph_product_distribution extends ModeleBoxes
|
||||
$userid = 0; // No filter on user creation
|
||||
|
||||
$WIDTH = ($nbofgraph >= 2 || !empty($conf->dol_optimize_smallscreen)) ? '300' : '320';
|
||||
$HEIGHT = '120';
|
||||
$HEIGHT = '150'; // Height require to have 5+1 entries into legend visible.
|
||||
|
||||
if (!empty($conf->propal->enabled) && !empty($user->rights->propale->lire)) {
|
||||
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
|
||||
|
||||
@ -1161,40 +1161,36 @@ class DolGraph
|
||||
// Special case for Graph of type 'pie', 'piesemicircle', or 'polar'
|
||||
if (isset($this->type[$firstlot]) && (in_array($this->type[$firstlot], array('pie', 'polar', 'piesemicircle')))) {
|
||||
$type = $this->type[$firstlot]; // pie or polar
|
||||
$this->stringtoshow .= 'var options = {' . "\n";
|
||||
//$this->stringtoshow .= 'var options = {' . "\n";
|
||||
$this->stringtoshow .= 'var options = { maintainAspectRatio: false, aspectRatio: 2.5, ';
|
||||
|
||||
|
||||
$legendMaxLines = 0; // Does not work
|
||||
|
||||
/* For Chartjs v2.9 */
|
||||
if (empty($showlegend)) {
|
||||
$this->stringtoshow .= 'legend: { display: false }, ';
|
||||
} else {
|
||||
$this->stringtoshow .= 'legend: { position: \'' . ($showlegend == 2 ? 'right' : 'top') . '\'';
|
||||
$this->stringtoshow .= 'legend: { labels: { boxWidth: 15 }, position: \'' . ($showlegend == 2 ? 'right' : 'top') . '\'';
|
||||
if (!empty($legendMaxLines)) {
|
||||
$this->stringtoshow .= ', maxLines: ' . $legendMaxLines . '';
|
||||
}
|
||||
/* This has no effect on chartjs version with dol v14
|
||||
$this->stringtoshow .= ', labels: {
|
||||
color: \'rgb(255, 0, 0)\',
|
||||
// This more specific font property overrides the global property
|
||||
font: {
|
||||
size: 24
|
||||
}
|
||||
}';
|
||||
*/
|
||||
$this->stringtoshow .= ' }, ' . "\n";
|
||||
}
|
||||
|
||||
/* This has no effect on chartjs version with dol v14
|
||||
$this->stringtoshow .= 'plugins: {
|
||||
legend: {
|
||||
display: true,
|
||||
labels: {
|
||||
color: \'rgb(255, 0, 0)\',
|
||||
// This more specific font property overrides the global property
|
||||
font: {
|
||||
size: 24
|
||||
}
|
||||
}
|
||||
/* For Chartjs v3.5 */
|
||||
$this->stringtoshow .= 'plugins: { ';
|
||||
if (empty($showlegend)) {
|
||||
$this->stringtoshow .= 'legend: { display: false }, ';
|
||||
} else {
|
||||
$this->stringtoshow .= 'legend: { labels: { boxWidth: 15 }, position: \'' . ($showlegend == 2 ? 'right' : 'top') . '\'';
|
||||
if (!empty($legendMaxLines)) {
|
||||
$this->stringtoshow .= ', maxLines: ' . $legendMaxLines . '';
|
||||
}
|
||||
},'."\n"; */
|
||||
$this->stringtoshow .= ' }, ' . "\n";
|
||||
}
|
||||
$this->stringtoshow .= ' }, ' . "\n";
|
||||
|
||||
|
||||
if ($this->type[$firstlot] == 'piesemicircle') {
|
||||
$this->stringtoshow .= 'circumference: Math.PI,' . "\n";
|
||||
@ -1291,24 +1287,37 @@ class DolGraph
|
||||
$this->stringtoshow .= '});' . "\n";
|
||||
} else {
|
||||
// Other cases, graph of type 'bars', 'lines', 'linesnopoint'
|
||||
$type = 'bar';
|
||||
$type = 'bar'; $xaxis = '';
|
||||
|
||||
if (!isset($this->type[$firstlot]) || $this->type[$firstlot] == 'bars') {
|
||||
$type = 'bar';
|
||||
}
|
||||
if (isset($this->type[$firstlot]) && $this->type[$firstlot] == 'horizontalbars') {
|
||||
$type = 'horizontalBar';
|
||||
$type = 'bar'; $xaxis = "indexAxis: 'y', ";
|
||||
}
|
||||
if (isset($this->type[$firstlot]) && ($this->type[$firstlot] == 'lines' || $this->type[$firstlot] == 'linesnopoint')) {
|
||||
$type = 'line';
|
||||
}
|
||||
|
||||
$this->stringtoshow .= 'var options = { maintainAspectRatio: false, aspectRatio: 2.5, ';
|
||||
$this->stringtoshow .= $xaxis;
|
||||
|
||||
/* For Chartjs v2.9 */
|
||||
if (empty($showlegend)) {
|
||||
$this->stringtoshow .= 'legend: { display: false }, ';
|
||||
$this->stringtoshow .= 'legend: { display: false }, '."\n";
|
||||
} else {
|
||||
$this->stringtoshow .= 'legend: { position: \'' . ($showlegend == 2 ? 'right' : 'top') . '\' },';
|
||||
$this->stringtoshow .= 'legend: { maxWidth: '.round($this->width / 2).', labels: { boxWidth: 15 }, position: \'' . ($showlegend == 2 ? 'right' : 'top') . '\' }, '."\n";
|
||||
}
|
||||
|
||||
/* For Chartjs v3.5 */
|
||||
$this->stringtoshow .= 'plugins: { '."\n";
|
||||
if (empty($showlegend)) {
|
||||
$this->stringtoshow .= 'legend: { display: false }, '."\n";
|
||||
} else {
|
||||
$this->stringtoshow .= 'legend: { maxWidth: '.round($this->width / 2).', labels: { boxWidth: 15 }, position: \'' . ($showlegend == 2 ? 'right' : 'top') . '\' },'."\n";
|
||||
}
|
||||
$this->stringtoshow .= "}, \n";
|
||||
|
||||
$this->stringtoshow .= 'scales: { xAxes: [{ ';
|
||||
if ($this->hideXValues) {
|
||||
$this->stringtoshow .= ' ticks: { display: false }, display: true,';
|
||||
|
||||
@ -546,7 +546,7 @@ function getNumberInvoicesPieChart($mode)
|
||||
,array($langs->trans('InvoiceNotLate15Days'), $obj->nbnotlate15 - $obj->nbnotlate30)
|
||||
,array($langs->trans('InvoiceNotLate30Days'), $obj->nbnotlate30));
|
||||
*/
|
||||
$dataseries[$i]=array($langs->trans('NbOfOpenInvoices'), $obj->nblate30, $obj->nblate15 - $obj->nblate30, $obj->nblatenow - $obj->nblate15, $obj->nbnotlatenow - $obj->nbnotlate15, $obj->nbnotlate15 - $obj->nbnotlate30, $obj->nbnotlate30);
|
||||
$dataseries[$i]=array($langs->transnoentitiesnoconv('NbOfOpenInvoices'), $obj->nblate30, $obj->nblate15 - $obj->nblate30, $obj->nblatenow - $obj->nblate15, $obj->nbnotlatenow - $obj->nbnotlate15, $obj->nbnotlate15 - $obj->nbnotlate30, $obj->nbnotlate30);
|
||||
$i++;
|
||||
}
|
||||
if (!empty($dataseries[0])) {
|
||||
|
||||
@ -1,19 +0,0 @@
|
||||
version: "2"
|
||||
plugins:
|
||||
duplication:
|
||||
enabled: true
|
||||
config:
|
||||
languages:
|
||||
- javascript
|
||||
fixme:
|
||||
enabled: true
|
||||
exclude_patterns:
|
||||
- "dist/"
|
||||
- "docs/"
|
||||
- "samples/"
|
||||
- "scripts/"
|
||||
- "test/"
|
||||
- "*.js"
|
||||
- "*.json"
|
||||
- "*.md"
|
||||
- ".*"
|
||||
@ -1,18 +0,0 @@
|
||||
# https://editorconfig.org
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = tab
|
||||
indent_size = 4
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[gulpfile.js]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.yml]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
@ -1 +0,0 @@
|
||||
**/*{.,-}min.js
|
||||
@ -1,7 +0,0 @@
|
||||
extends: chartjs
|
||||
|
||||
env:
|
||||
browser: true
|
||||
node: true
|
||||
|
||||
plugins: ['html']
|
||||
22
htdocs/includes/nnnick/chartjs/.gitignore
vendored
22
htdocs/includes/nnnick/chartjs/.gitignore
vendored
@ -1,22 +0,0 @@
|
||||
.github
|
||||
/_book
|
||||
/coverage
|
||||
/custom
|
||||
/dist
|
||||
/docs
|
||||
/samples
|
||||
/scripts
|
||||
/src
|
||||
/test
|
||||
/gh-pages
|
||||
/jsdoc
|
||||
/node_modules
|
||||
.DS_Store
|
||||
.idea
|
||||
.project
|
||||
.settings
|
||||
.vscode
|
||||
bower.json
|
||||
*.log
|
||||
*.swp
|
||||
*.stackdump
|
||||
@ -1,19 +0,0 @@
|
||||
{
|
||||
"indent-style": "tabs",
|
||||
"line-end-style": false,
|
||||
"attr-quote-style": "double",
|
||||
"spec-char-escape": false,
|
||||
"attr-bans": [
|
||||
"align",
|
||||
"background",
|
||||
"bgcolor",
|
||||
"border",
|
||||
"frameborder",
|
||||
"longdesc",
|
||||
"marginwidth",
|
||||
"marginheight",
|
||||
"scrolling"
|
||||
],
|
||||
"tag-bans": [ "b", "i" ],
|
||||
"id-class-style": false
|
||||
}
|
||||
@ -1,57 +0,0 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
# Using node 12.18.2 instead of lts
|
||||
# https://github.com/chartjs/Chart.js/issues/7863#issuecomment-705222874
|
||||
- "12.18.2"
|
||||
|
||||
before_install:
|
||||
- "export CHROME_BIN=/usr/bin/google-chrome"
|
||||
- "export DISPLAY=:99.0"
|
||||
- "sh -e /etc/init.d/xvfb start"
|
||||
|
||||
script:
|
||||
- gulp build
|
||||
- gulp test --coverage
|
||||
- gulp docs
|
||||
- gulp package
|
||||
- gulp bower
|
||||
- cat ./coverage/lcov.info | ./node_modules/.bin/coveralls || true
|
||||
|
||||
sudo: required
|
||||
dist: trusty
|
||||
|
||||
addons:
|
||||
chrome: stable
|
||||
firefox: latest
|
||||
|
||||
# IMPORTANT: scripts require GITHUB_AUTH_TOKEN and GITHUB_AUTH_EMAIL environment variables
|
||||
# IMPORTANT: scripts has to be set executables in the Git repository (error 127)
|
||||
# https://github.com/travis-ci/travis-ci/issues/5538#issuecomment-225025939
|
||||
|
||||
deploy:
|
||||
- provider: script
|
||||
script: ./scripts/deploy.sh
|
||||
skip_cleanup: true
|
||||
on:
|
||||
all_branches: true
|
||||
- provider: script
|
||||
script: ./scripts/release.sh
|
||||
skip_cleanup: true
|
||||
on:
|
||||
branch: release
|
||||
- provider: releases
|
||||
api_key: $GITHUB_AUTH_TOKEN
|
||||
skip_cleanup: true
|
||||
file_glob: true
|
||||
file:
|
||||
- ./dist/*.css
|
||||
- ./dist/*.js
|
||||
- ./dist/*.zip
|
||||
on:
|
||||
tags: true
|
||||
- provider: npm
|
||||
email: $NPM_AUTH_EMAIL
|
||||
api_key: $NPM_AUTH_TOKEN
|
||||
skip_cleanup: true
|
||||
on:
|
||||
tags: true
|
||||
@ -1,9 +0,0 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 Chart.js Contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
@ -1,36 +0,0 @@
|
||||
# Maintaining
|
||||
## Release Process
|
||||
Chart.js relies on [Travis CI](https://travis-ci.org/) to automate the library [releases](https://github.com/chartjs/Chart.js/releases).
|
||||
|
||||
### Releasing a New Version
|
||||
|
||||
1. draft release notes on [GitHub](https://github.com/chartjs/Chart.js/releases/new) for the upcoming tag
|
||||
1. update `master` `package.json` version using [semver](https://semver.org/) semantic
|
||||
1. merge `master` into the `release` branch
|
||||
1. follow the build process on [Travis CI](https://travis-ci.org/chartjs/Chart.js)
|
||||
|
||||
> **Note:** if `master` is merged in `release` with a `package.json` version that already exists, the tag
|
||||
creation fails and the release process is aborted.
|
||||
|
||||
### Automated Tasks
|
||||
Merging into the `release` branch kicks off the automated release process:
|
||||
|
||||
* build of the `dist/*.js` files
|
||||
* `bower.json` is generated from `package.json`
|
||||
* `dist/*.js` and `bower.json` are added to a detached branch
|
||||
* a tag is created from the `package.json` version
|
||||
* tag (with dist files) is pushed to GitHub
|
||||
|
||||
Creation of this tag triggers a new build:
|
||||
|
||||
* `Chart.js.zip` package is generated, containing dist files and examples
|
||||
* `dist/*.js` and `Chart.js.zip` are attached to the GitHub release (downloads)
|
||||
* a new npm package is published on [npmjs](https://www.npmjs.com/package/chart.js)
|
||||
|
||||
Finally, [cdnjs](https://cdnjs.com/libraries/Chart.js) is automatically updated from the npm release.
|
||||
|
||||
### Further Reading
|
||||
|
||||
* [Travis GitHub releases](https://github.com/chartjs/Chart.js/pull/2555)
|
||||
* [Bower support and dist/* files](https://github.com/chartjs/Chart.js/issues/3033)
|
||||
* [cdnjs npm auto update](https://github.com/cdnjs/cdnjs/pull/8401)
|
||||
@ -1,32 +0,0 @@
|
||||
<p align="center">
|
||||
<img src="https://www.chartjs.org/media/logo-title.svg"><br/>
|
||||
Simple yet flexible JavaScript charting for designers & developers
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://www.chartjs.org/docs/latest/getting-started/installation.html"><img src="https://img.shields.io/github/release/chartjs/Chart.js.svg?style=flat-square&maxAge=600" alt="Downloads"></a>
|
||||
<a href="https://travis-ci.org/chartjs/Chart.js"><img src="https://img.shields.io/travis/chartjs/Chart.js.svg?style=flat-square&maxAge=600" alt="Builds"></a>
|
||||
<a href="https://coveralls.io/github/chartjs/Chart.js?branch=master"><img src="https://img.shields.io/coveralls/chartjs/Chart.js.svg?style=flat-square&maxAge=600" alt="Coverage"></a>
|
||||
<a href="https://github.com/chartjs/awesome"><img src="https://awesome.re/badge-flat2.svg" alt="Awesome"></a>
|
||||
<a href="https://chartjs-slack.herokuapp.com/"><img src="https://img.shields.io/badge/slack-chartjs-blue.svg?style=flat-square&maxAge=3600" alt="Slack"></a>
|
||||
</p>
|
||||
|
||||
## Documentation
|
||||
|
||||
- [Introduction](https://www.chartjs.org/docs/latest/)
|
||||
- [Getting Started](https://www.chartjs.org/docs/latest/getting-started/)
|
||||
- [General](https://www.chartjs.org/docs/latest/general/)
|
||||
- [Configuration](https://www.chartjs.org/docs/latest/configuration/)
|
||||
- [Charts](https://www.chartjs.org/docs/latest/charts/)
|
||||
- [Axes](https://www.chartjs.org/docs/latest/axes/)
|
||||
- [Developers](https://www.chartjs.org/docs/latest/developers/)
|
||||
- [Popular Extensions](https://github.com/chartjs/awesome)
|
||||
- [Samples](https://www.chartjs.org/samples/)
|
||||
|
||||
## Contributing
|
||||
|
||||
Instructions on building and testing Chart.js can be found in [the documentation](https://github.com/chartjs/Chart.js/blob/master/docs/developers/contributing.md#building-and-testing). Before submitting an issue or a pull request, please take a moment to look over the [contributing guidelines](https://github.com/chartjs/Chart.js/blob/master/docs/developers/contributing.md) first. For support, please post questions on [Stack Overflow](https://stackoverflow.com/questions/tagged/chartjs) with the `chartjs` tag.
|
||||
|
||||
## License
|
||||
|
||||
Chart.js is available under the [MIT license](https://opensource.org/licenses/MIT).
|
||||
@ -1,32 +0,0 @@
|
||||
{
|
||||
"root": "./docs",
|
||||
"title": "Chart.js documentation",
|
||||
"author": "chartjs",
|
||||
"gitbook": "3.2.2",
|
||||
"plugins": [
|
||||
"-lunr",
|
||||
"-search",
|
||||
"search-plus",
|
||||
"anchorjs",
|
||||
"chartjs",
|
||||
"ga",
|
||||
"redirect"
|
||||
],
|
||||
"pluginsConfig": {
|
||||
"anchorjs": {
|
||||
"icon": "#",
|
||||
"placement": "left",
|
||||
"visible": "always"
|
||||
},
|
||||
"ga": {
|
||||
"token": "UA-28909194-3",
|
||||
"configuration": "auto"
|
||||
},
|
||||
"theme-default": {
|
||||
"showLevel": false,
|
||||
"styles": {
|
||||
"website": "style.css"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,26 +0,0 @@
|
||||
{
|
||||
"name": "nnnick/chartjs",
|
||||
"type": "library",
|
||||
"description": "Simple HTML5 charts using the canvas element.",
|
||||
"keywords": [
|
||||
"chart",
|
||||
"js"
|
||||
],
|
||||
"homepage": "https://www.chartjs.org/",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "NICK DOWNIE",
|
||||
"email": "hello@nickdownie.com"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.3.3"
|
||||
},
|
||||
"minimum-stability": "stable",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"release/2.0": "v2.0-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
20776
htdocs/includes/nnnick/chartjs/dist/Chart.bundle.js
vendored
20776
htdocs/includes/nnnick/chartjs/dist/Chart.bundle.js
vendored
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
47
htdocs/includes/nnnick/chartjs/dist/Chart.css
vendored
47
htdocs/includes/nnnick/chartjs/dist/Chart.css
vendored
@ -1,47 +0,0 @@
|
||||
/*
|
||||
* DOM element rendering detection
|
||||
* https://davidwalsh.name/detect-node-insertion
|
||||
*/
|
||||
@keyframes chartjs-render-animation {
|
||||
from { opacity: 0.99; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
.chartjs-render-monitor {
|
||||
animation: chartjs-render-animation 0.001s;
|
||||
}
|
||||
|
||||
/*
|
||||
* DOM element resizing detection
|
||||
* https://github.com/marcj/css-element-queries
|
||||
*/
|
||||
.chartjs-size-monitor,
|
||||
.chartjs-size-monitor-expand,
|
||||
.chartjs-size-monitor-shrink {
|
||||
position: absolute;
|
||||
direction: ltr;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
visibility: hidden;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.chartjs-size-monitor-expand > div {
|
||||
position: absolute;
|
||||
width: 1000000px;
|
||||
height: 1000000px;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.chartjs-size-monitor-shrink > div {
|
||||
position: absolute;
|
||||
width: 200%;
|
||||
height: 200%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
16172
htdocs/includes/nnnick/chartjs/dist/Chart.js
vendored
16172
htdocs/includes/nnnick/chartjs/dist/Chart.js
vendored
File diff suppressed because it is too large
Load Diff
@ -1 +0,0 @@
|
||||
@keyframes chartjs-render-animation{from{opacity:.99}to{opacity:1}}.chartjs-render-monitor{animation:chartjs-render-animation 1ms}.chartjs-size-monitor,.chartjs-size-monitor-expand,.chartjs-size-monitor-shrink{position:absolute;direction:ltr;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1}.chartjs-size-monitor-expand>div{position:absolute;width:1000000px;height:1000000px;left:0;top:0}.chartjs-size-monitor-shrink>div{position:absolute;width:200%;height:200%;left:0;top:0}
|
||||
File diff suppressed because one or more lines are too long
10645
htdocs/includes/nnnick/chartjs/dist/chart.esm.js
vendored
Normal file
10645
htdocs/includes/nnnick/chartjs/dist/chart.esm.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
13304
htdocs/includes/nnnick/chartjs/dist/chart.js
vendored
Normal file
13304
htdocs/includes/nnnick/chartjs/dist/chart.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
13
htdocs/includes/nnnick/chartjs/dist/chart.min.js
vendored
Normal file
13
htdocs/includes/nnnick/chartjs/dist/chart.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2519
htdocs/includes/nnnick/chartjs/dist/chunks/helpers.segment.js
vendored
Normal file
2519
htdocs/includes/nnnick/chartjs/dist/chunks/helpers.segment.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
htdocs/includes/nnnick/chartjs/dist/helpers.esm.js
vendored
Normal file
7
htdocs/includes/nnnick/chartjs/dist/helpers.esm.js
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
/*!
|
||||
* Chart.js v3.7.1
|
||||
* https://www.chartjs.org
|
||||
* (c) 2022 Chart.js Contributors
|
||||
* Released under the MIT License
|
||||
*/
|
||||
export { H as HALF_PI, aY as INFINITY, P as PI, aX as PITAU, a_ as QUARTER_PI, aZ as RAD_PER_DEG, T as TAU, a$ as TWO_THIRDS_PI, Q as _addGrace, V as _alignPixel, a0 as _alignStartEnd, p as _angleBetween, b0 as _angleDiff, _ as _arrayUnique, a6 as _attachContext, ar as _bezierCurveTo, ao as _bezierInterpolation, aw as _boundSegment, am as _boundSegments, a3 as _capitalize, al as _computeSegments, a7 as _createResolver, aI as _decimalPlaces, aQ as _deprecated, a8 as _descriptors, ag as _elementsEqual, M as _factorize, aK as _filterBetween, F as _getParentNode, U as _int16Range, ai as _isBetween, ah as _isClickEvent, K as _isDomSupported, af as _isPointInArea, w as _limitValue, aJ as _longestText, aL as _lookup, x as _lookupByKey, S as _measureText, aO as _merger, aP as _mergerIf, ax as _normalizeAngle, y as _parseObjectDataRadialScale, ap as _pointInLine, aj as _readValueToProps, A as _rlookupByKey, aE as _setMinAndMaxByKey, an as _steppedInterpolation, aq as _steppedLineTo, aA as _textX, $ as _toLeftRightCenter, ak as _updateBezierControlPoints, at as addRoundedRectPath, aH as almostEquals, aG as almostWhole, O as callback, ad as clearCanvas, W as clipArea, aN as clone, c as color, h as createContext, ab as debounce, j as defined, aD as distanceBetweenPoints, as as drawPoint, D as each, e as easingEffects, N as finiteOrDefault, aV as fontString, o as formatNumber, B as getAngleFromPoint, aM as getHoverColor, E as getMaximumSize, z as getRelativePosition, ay as getRtlAdapter, aU as getStyle, b as isArray, g as isFinite, a5 as isFunction, k as isNullOrUndef, q as isNumber, i as isObject, l as listenArrayEvents, L as log10, a2 as merge, a9 as mergeIf, aF as niceNum, aC as noop, az as overrideTextDirection, G as readUsedSize, X as renderText, r as requestAnimFrame, a as resolve, f as resolveObjectKey, aB as restoreTextDirection, ac as retinaScale, ae as setsEqual, s as sign, aS as splineCurve, aT as splineCurveMonotone, J as supportsEventListenerOptions, I as throttled, R as toDegrees, n as toDimension, Z as toFont, aR as toFontString, aW as toLineHeight, C as toPadding, m as toPercentage, t as toRadians, au as toTRBL, av as toTRBLCorners, aa as uid, Y as unclipArea, u as unlistenArrayEvents, v as valueOrDefault } from './chunks/helpers.segment.js';
|
||||
@ -1,172 +0,0 @@
|
||||
var gulp = require('gulp');
|
||||
var eslint = require('gulp-eslint');
|
||||
var file = require('gulp-file');
|
||||
var replace = require('gulp-replace');
|
||||
var size = require('gulp-size');
|
||||
var streamify = require('gulp-streamify');
|
||||
var terser = require('gulp-terser');
|
||||
var zip = require('gulp-zip');
|
||||
var exec = require('child_process').exec;
|
||||
var karma = require('karma');
|
||||
var merge = require('merge-stream');
|
||||
var yargs = require('yargs');
|
||||
var path = require('path');
|
||||
var htmllint = require('gulp-htmllint');
|
||||
var pkg = require('./package.json');
|
||||
|
||||
var argv = yargs
|
||||
.option('verbose', {default: false})
|
||||
.argv;
|
||||
|
||||
var srcDir = './src/';
|
||||
var outDir = './dist/';
|
||||
|
||||
gulp.task('bower', bowerTask);
|
||||
gulp.task('build', buildTask);
|
||||
gulp.task('package', packageTask);
|
||||
gulp.task('lint-html', lintHtmlTask);
|
||||
gulp.task('lint-js', lintJsTask);
|
||||
gulp.task('lint', gulp.parallel('lint-html', 'lint-js'));
|
||||
gulp.task('docs', docsTask);
|
||||
gulp.task('unittest', unittestTask);
|
||||
gulp.task('test', gulp.parallel('lint', 'unittest'));
|
||||
gulp.task('library-size', librarySizeTask);
|
||||
gulp.task('module-sizes', moduleSizesTask);
|
||||
gulp.task('size', gulp.parallel('library-size', 'module-sizes'));
|
||||
gulp.task('default', gulp.parallel('build'));
|
||||
|
||||
function run(bin, args, done) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
var exe = '"' + process.execPath + '"';
|
||||
var src = require.resolve(bin);
|
||||
var cmd = [exe, src].concat(args || []).join(' ');
|
||||
var ps = exec(cmd);
|
||||
|
||||
ps.stdout.pipe(process.stdout);
|
||||
ps.stderr.pipe(process.stderr);
|
||||
ps.on('close', function(error) {
|
||||
if (error) {
|
||||
reject(error);
|
||||
} else {
|
||||
resolve();
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates the bower.json manifest file which will be pushed along release tags.
|
||||
* Specs: https://github.com/bower/spec/blob/master/json.md
|
||||
*/
|
||||
function bowerTask() {
|
||||
var json = JSON.stringify({
|
||||
name: pkg.name,
|
||||
description: pkg.description,
|
||||
homepage: pkg.homepage,
|
||||
license: pkg.license,
|
||||
version: pkg.version,
|
||||
main: outDir + 'Chart.js',
|
||||
ignore: [
|
||||
'.github',
|
||||
'.codeclimate.yml',
|
||||
'.gitignore',
|
||||
'.npmignore',
|
||||
'.travis.yml',
|
||||
'scripts'
|
||||
]
|
||||
}, null, 2);
|
||||
|
||||
return file('bower.json', json, { src: true })
|
||||
.pipe(gulp.dest('./'));
|
||||
}
|
||||
|
||||
function buildTask() {
|
||||
return run('rollup/dist/bin/rollup', ['-c', argv.watch ? '--watch' : '']);
|
||||
}
|
||||
|
||||
function packageTask() {
|
||||
return merge(
|
||||
// gather "regular" files landing in the package root
|
||||
gulp.src([outDir + '*.js', outDir + '*.css', 'LICENSE.md']),
|
||||
|
||||
// since we moved the dist files one folder up (package root), we need to rewrite
|
||||
// samples src="../dist/ to src="../ and then copy them in the /samples directory.
|
||||
gulp.src('./samples/**/*', { base: '.' })
|
||||
.pipe(streamify(replace(/src="((?:\.\.\/)+)dist\//g, 'src="$1')))
|
||||
)
|
||||
// finally, create the zip archive
|
||||
.pipe(zip('Chart.js.zip'))
|
||||
.pipe(gulp.dest(outDir));
|
||||
}
|
||||
|
||||
function lintJsTask() {
|
||||
var files = [
|
||||
'samples/**/*.html',
|
||||
'samples/**/*.js',
|
||||
'src/**/*.js',
|
||||
'test/**/*.js'
|
||||
];
|
||||
|
||||
// NOTE(SB) codeclimate has 'complexity' and 'max-statements' eslint rules way too strict
|
||||
// compare to what the current codebase can support, and since it's not straightforward
|
||||
// to fix, let's turn them as warnings and rewrite code later progressively.
|
||||
var options = {
|
||||
rules: {
|
||||
'complexity': [1, 10],
|
||||
'max-statements': [1, 30]
|
||||
}
|
||||
};
|
||||
|
||||
return gulp.src(files)
|
||||
.pipe(eslint(options))
|
||||
.pipe(eslint.format())
|
||||
.pipe(eslint.failAfterError());
|
||||
}
|
||||
|
||||
function lintHtmlTask() {
|
||||
return gulp.src('samples/**/*.html')
|
||||
.pipe(htmllint({
|
||||
failOnError: true,
|
||||
}));
|
||||
}
|
||||
|
||||
function docsTask() {
|
||||
var bin = 'gitbook-cli/bin/gitbook.js';
|
||||
var cmd = argv.watch ? 'serve' : 'build';
|
||||
|
||||
return run(bin, ['install', './'])
|
||||
.then(() => run(bin, [cmd, './', './dist/docs']));
|
||||
}
|
||||
|
||||
function unittestTask(done) {
|
||||
new karma.Server({
|
||||
configFile: path.join(__dirname, 'karma.conf.js'),
|
||||
singleRun: !argv.watch,
|
||||
args: {
|
||||
coverage: !!argv.coverage,
|
||||
inputs: (argv.inputs || 'test/specs/**/*.js').split(';'),
|
||||
watch: argv.watch
|
||||
}
|
||||
},
|
||||
// https://github.com/karma-runner/gulp-karma/issues/18
|
||||
function(error) {
|
||||
error = error ? new Error('Karma returned with the error code: ' + error) : undefined;
|
||||
done(error);
|
||||
}).start();
|
||||
}
|
||||
|
||||
function librarySizeTask() {
|
||||
return gulp.src('dist/Chart.bundle.min.js')
|
||||
.pipe(size({
|
||||
gzip: true
|
||||
}));
|
||||
}
|
||||
|
||||
function moduleSizesTask() {
|
||||
return gulp.src(srcDir + '**/*.js')
|
||||
.pipe(terser())
|
||||
.pipe(size({
|
||||
showFiles: true,
|
||||
gzip: true
|
||||
}));
|
||||
}
|
||||
@ -1,108 +0,0 @@
|
||||
/* eslint-env es6 */
|
||||
|
||||
const commonjs = require('rollup-plugin-commonjs');
|
||||
const istanbul = require('rollup-plugin-istanbul');
|
||||
const resolve = require('rollup-plugin-node-resolve');
|
||||
const builds = require('./rollup.config');
|
||||
|
||||
module.exports = function(karma) {
|
||||
const args = karma.args || {};
|
||||
|
||||
// Use the same rollup config as our dist files: when debugging (--watch),
|
||||
// we will prefer the unminified build which is easier to browse and works
|
||||
// better with source mapping. In other cases, pick the minified build to
|
||||
// make sure that the minification process (terser) doesn't break anything.
|
||||
const regex = args.watch ? /Chart\.js$/ : /Chart\.min\.js$/;
|
||||
const build = builds.filter(v => v.output.file.match(regex))[0];
|
||||
|
||||
if (args.watch) {
|
||||
build.output.sourcemap = 'inline';
|
||||
}
|
||||
|
||||
karma.set({
|
||||
frameworks: ['jasmine'],
|
||||
reporters: ['progress', 'kjhtml'],
|
||||
browsers: ['chrome', 'firefox'],
|
||||
logLevel: karma.LOG_WARN,
|
||||
|
||||
// Explicitly disable hardware acceleration to make image
|
||||
// diff more stable when ran on Travis and dev machine.
|
||||
// https://github.com/chartjs/Chart.js/pull/5629
|
||||
customLaunchers: {
|
||||
chrome: {
|
||||
base: 'Chrome',
|
||||
flags: [
|
||||
'--disable-accelerated-2d-canvas'
|
||||
]
|
||||
},
|
||||
firefox: {
|
||||
base: 'Firefox',
|
||||
prefs: {
|
||||
'layers.acceleration.disabled': true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
files: [
|
||||
{pattern: 'test/fixtures/**/*.js', included: false},
|
||||
{pattern: 'test/fixtures/**/*.json', included: false},
|
||||
{pattern: 'test/fixtures/**/*.png', included: false},
|
||||
'node_modules/moment/min/moment.min.js',
|
||||
'test/index.js',
|
||||
'src/index.js'
|
||||
].concat(args.inputs),
|
||||
|
||||
preprocessors: {
|
||||
'test/index.js': ['rollup'],
|
||||
'src/index.js': ['sources']
|
||||
},
|
||||
|
||||
rollupPreprocessor: {
|
||||
plugins: [
|
||||
resolve(),
|
||||
commonjs()
|
||||
],
|
||||
output: {
|
||||
name: 'test',
|
||||
format: 'umd'
|
||||
}
|
||||
},
|
||||
|
||||
customPreprocessors: {
|
||||
sources: {
|
||||
base: 'rollup',
|
||||
options: build
|
||||
}
|
||||
},
|
||||
|
||||
// These settings deal with browser disconnects. We had seen test flakiness from Firefox
|
||||
// [Firefox 56.0.0 (Linux 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.
|
||||
// https://github.com/jasmine/jasmine/issues/1327#issuecomment-332939551
|
||||
browserDisconnectTolerance: 3
|
||||
});
|
||||
|
||||
// https://swizec.com/blog/how-to-run-javascript-tests-in-chrome-on-travis/swizec/6647
|
||||
if (process.env.TRAVIS) {
|
||||
karma.customLaunchers.chrome.flags.push('--no-sandbox');
|
||||
}
|
||||
|
||||
if (args.coverage) {
|
||||
karma.reporters.push('coverage');
|
||||
karma.coverageReporter = {
|
||||
dir: 'coverage/',
|
||||
reporters: [
|
||||
{type: 'html', subdir: 'html'},
|
||||
{type: 'lcovonly', subdir: '.'}
|
||||
]
|
||||
};
|
||||
[
|
||||
karma.rollupPreprocessor,
|
||||
karma.customPreprocessors.sources.options
|
||||
].forEach(v => {
|
||||
(v.plugins || (v.plugins = [])).unshift(
|
||||
istanbul({
|
||||
include: 'src/**/*.js'
|
||||
}));
|
||||
});
|
||||
}
|
||||
};
|
||||
12752
htdocs/includes/nnnick/chartjs/package-lock.json
generated
12752
htdocs/includes/nnnick/chartjs/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,69 +0,0 @@
|
||||
{
|
||||
"name": "chart.js",
|
||||
"homepage": "https://www.chartjs.org",
|
||||
"description": "Simple HTML5 charts using the canvas element.",
|
||||
"version": "2.9.4",
|
||||
"license": "MIT",
|
||||
"jsdelivr": "dist/Chart.min.js",
|
||||
"unpkg": "dist/Chart.min.js",
|
||||
"main": "dist/Chart.js",
|
||||
"keywords": [
|
||||
"canvas",
|
||||
"charts",
|
||||
"data",
|
||||
"graphs",
|
||||
"html5",
|
||||
"responsive"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/chartjs/Chart.js.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/chartjs/Chart.js/issues"
|
||||
},
|
||||
"files": [
|
||||
"bower.json",
|
||||
"composer.json",
|
||||
"dist/*.css",
|
||||
"dist/*.js"
|
||||
],
|
||||
"devDependencies": {
|
||||
"clean-css": "^4.2.1",
|
||||
"coveralls": "^3.0.0",
|
||||
"eslint": "^5.9.0",
|
||||
"eslint-config-chartjs": "^0.1.0",
|
||||
"eslint-plugin-html": "^5.0.0",
|
||||
"gitbook-cli": "^2.3.2",
|
||||
"gulp": "^4.0.0",
|
||||
"gulp-eslint": "^5.0.0",
|
||||
"gulp-file": "^0.4.0",
|
||||
"gulp-htmllint": "^0.0.16",
|
||||
"gulp-replace": "^1.0.0",
|
||||
"gulp-size": "^3.0.0",
|
||||
"gulp-streamify": "^1.0.2",
|
||||
"gulp-terser": "^1.1.6",
|
||||
"gulp-zip": "^4.2.0",
|
||||
"jasmine": "^3.3.0",
|
||||
"jasmine-core": "^3.3.0",
|
||||
"karma": "^4.0.0",
|
||||
"karma-chrome-launcher": "^2.2.0",
|
||||
"karma-coverage": "^1.1.1",
|
||||
"karma-firefox-launcher": "^1.0.1",
|
||||
"karma-jasmine": "^2.0.1",
|
||||
"karma-jasmine-html-reporter": "^1.4.0",
|
||||
"karma-rollup-preprocessor": "^7.0.0",
|
||||
"merge-stream": "^1.0.1",
|
||||
"pixelmatch": "^4.0.2",
|
||||
"rollup": "^1.0.0",
|
||||
"rollup-plugin-commonjs": "^10.0.0",
|
||||
"rollup-plugin-istanbul": "^2.0.1",
|
||||
"rollup-plugin-node-resolve": "^5.0.0",
|
||||
"rollup-plugin-terser": "^5.0.0",
|
||||
"yargs": "^12.0.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"chartjs-color": "^2.1.0",
|
||||
"moment": "^2.10.2"
|
||||
}
|
||||
}
|
||||
@ -1,119 +0,0 @@
|
||||
/* eslint-env es6 */
|
||||
|
||||
const commonjs = require('rollup-plugin-commonjs');
|
||||
const resolve = require('rollup-plugin-node-resolve');
|
||||
const terser = require('rollup-plugin-terser').terser;
|
||||
const optional = require('./rollup.plugins').optional;
|
||||
const stylesheet = require('./rollup.plugins').stylesheet;
|
||||
const pkg = require('./package.json');
|
||||
|
||||
const input = 'src/index.js';
|
||||
const banner = `/*!
|
||||
* Chart.js v${pkg.version}
|
||||
* ${pkg.homepage}
|
||||
* (c) ${new Date().getFullYear()} Chart.js Contributors
|
||||
* Released under the MIT License
|
||||
*/`;
|
||||
|
||||
module.exports = [
|
||||
// UMD builds (excluding moment)
|
||||
// dist/Chart.min.js
|
||||
// dist/Chart.js
|
||||
{
|
||||
input: input,
|
||||
plugins: [
|
||||
resolve(),
|
||||
commonjs(),
|
||||
stylesheet({
|
||||
extract: true
|
||||
}),
|
||||
optional({
|
||||
include: ['moment']
|
||||
})
|
||||
],
|
||||
output: {
|
||||
name: 'Chart',
|
||||
file: 'dist/Chart.js',
|
||||
banner: banner,
|
||||
format: 'umd',
|
||||
indent: false,
|
||||
globals: {
|
||||
moment: 'moment'
|
||||
}
|
||||
},
|
||||
external: [
|
||||
'moment'
|
||||
]
|
||||
},
|
||||
{
|
||||
input: input,
|
||||
plugins: [
|
||||
resolve(),
|
||||
commonjs(),
|
||||
optional({
|
||||
include: ['moment']
|
||||
}),
|
||||
stylesheet({
|
||||
extract: true,
|
||||
minify: true
|
||||
}),
|
||||
terser({
|
||||
output: {
|
||||
preamble: banner
|
||||
}
|
||||
})
|
||||
],
|
||||
output: {
|
||||
name: 'Chart',
|
||||
file: 'dist/Chart.min.js',
|
||||
format: 'umd',
|
||||
indent: false,
|
||||
globals: {
|
||||
moment: 'moment'
|
||||
}
|
||||
},
|
||||
external: [
|
||||
'moment'
|
||||
]
|
||||
},
|
||||
|
||||
// UMD builds (including moment)
|
||||
// dist/Chart.bundle.min.js
|
||||
// dist/Chart.bundle.js
|
||||
{
|
||||
input: input,
|
||||
plugins: [
|
||||
resolve(),
|
||||
commonjs(),
|
||||
stylesheet()
|
||||
],
|
||||
output: {
|
||||
name: 'Chart',
|
||||
file: 'dist/Chart.bundle.js',
|
||||
banner: banner,
|
||||
format: 'umd',
|
||||
indent: false
|
||||
}
|
||||
},
|
||||
{
|
||||
input: input,
|
||||
plugins: [
|
||||
resolve(),
|
||||
commonjs(),
|
||||
stylesheet({
|
||||
minify: true
|
||||
}),
|
||||
terser({
|
||||
output: {
|
||||
preamble: banner
|
||||
}
|
||||
})
|
||||
],
|
||||
output: {
|
||||
name: 'Chart',
|
||||
file: 'dist/Chart.bundle.min.js',
|
||||
format: 'umd',
|
||||
indent: false
|
||||
}
|
||||
}
|
||||
];
|
||||
@ -1,110 +0,0 @@
|
||||
/* eslint-env es6 */
|
||||
const cleancss = require('clean-css');
|
||||
const path = require('path');
|
||||
|
||||
const UMD_WRAPPER_RE = /(\(function \(global, factory\) \{)((?:\s.*?)*)(\}\(this,)/;
|
||||
const CJS_FACTORY_RE = /(module.exports = )(factory\(.*?\))( :)/;
|
||||
const AMD_FACTORY_RE = /(define\()(.*?, factory)(\) :)/;
|
||||
|
||||
function optional(config = {}) {
|
||||
return {
|
||||
name: 'optional',
|
||||
renderChunk(code, chunk, options) {
|
||||
if (options.format !== 'umd') {
|
||||
this.error('only UMD format is currently supported');
|
||||
}
|
||||
|
||||
const wrapper = UMD_WRAPPER_RE.exec(code);
|
||||
const include = config.include;
|
||||
if (!wrapper) {
|
||||
this.error('failed to parse the UMD wrapper');
|
||||
}
|
||||
|
||||
let content = wrapper[2];
|
||||
let factory = (CJS_FACTORY_RE.exec(content) || [])[2];
|
||||
let updated = false;
|
||||
|
||||
for (let lib of chunk.imports) {
|
||||
if (!include || include.indexOf(lib) !== -1) {
|
||||
const regex = new RegExp(`require\\('${lib}'\\)`);
|
||||
if (!regex.test(factory)) {
|
||||
this.error(`failed to parse the CJS require for ${lib}`);
|
||||
}
|
||||
|
||||
// We need to write inline try / catch with explicit require
|
||||
// in order to enable statical extraction of dependencies:
|
||||
// try { return require('moment'); } catch(e) {}
|
||||
const loader = `function() { try { return require('${lib}'); } catch(e) { } }()`;
|
||||
factory = factory.replace(regex, loader);
|
||||
updated = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!updated) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Replace the CJS factory by our updated one.
|
||||
content = content.replace(CJS_FACTORY_RE, `$1${factory}$3`);
|
||||
|
||||
// Replace the AMD factory by our updated one: we need to use the
|
||||
// following AMD form in order to be able to try/catch require:
|
||||
// define(['require'], function(require) { ... require(...); ... })
|
||||
// https://github.com/amdjs/amdjs-api/wiki/AMD#using-require-and-exports
|
||||
content = content.replace(AMD_FACTORY_RE, `$1['require'], function(require) { return ${factory}; }$3`);
|
||||
|
||||
return code.replace(UMD_WRAPPER_RE, `$1${content}$3`);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// https://github.com/chartjs/Chart.js/issues/5208
|
||||
function stylesheet(config = {}) {
|
||||
const minifier = new cleancss();
|
||||
const styles = [];
|
||||
|
||||
return {
|
||||
name: 'stylesheet',
|
||||
transform(code, id) {
|
||||
// Note that 'id' can be mapped to a CJS proxy import, in which case
|
||||
// 'id' will start with 'commonjs-proxy', so let's first check if we
|
||||
// are importing an existing css file (i.e. startsWith()).
|
||||
if (!id.startsWith(path.resolve('.')) || !id.endsWith('.css')) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (config.minify) {
|
||||
code = minifier.minify(code).styles;
|
||||
}
|
||||
|
||||
// keep track of all imported stylesheets (already minified)
|
||||
styles.push(code);
|
||||
|
||||
return {
|
||||
code: 'export default ' + JSON.stringify(code)
|
||||
};
|
||||
},
|
||||
generateBundle(opts, bundle) {
|
||||
if (!config.extract) {
|
||||
return;
|
||||
}
|
||||
|
||||
const entry = Object.keys(bundle).find(v => bundle[v].isEntry);
|
||||
const name = (entry || '').replace(/\.js$/i, '.css');
|
||||
if (!name) {
|
||||
this.error('failed to guess the output file name');
|
||||
}
|
||||
|
||||
this.emitFile({
|
||||
type: 'asset',
|
||||
source: styles.filter(v => !!v).join(''),
|
||||
fileName: name
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
optional,
|
||||
stylesheet
|
||||
};
|
||||
@ -289,9 +289,9 @@ ReportPurchaseTurnover=Purchase turnover invoiced
|
||||
ReportPurchaseTurnoverCollected=Purchase turnover collected
|
||||
IncludeVarpaysInResults = Include various payments in reports
|
||||
IncludeLoansInResults = Include loans in reports
|
||||
InvoiceLate30Days = Invoices late (> 30 days)
|
||||
InvoiceLate15Days = Invoices late (15 to 30 days)
|
||||
InvoiceLateMinus15Days = Invoices late (< 15 days)
|
||||
InvoiceLate30Days = Late (> 30 days)
|
||||
InvoiceLate15Days = Late (15 to 30 days)
|
||||
InvoiceLateMinus15Days = Late (< 15 days)
|
||||
InvoiceNotLate = To be collected (< 15 days)
|
||||
InvoiceNotLate15Days = To be collected (15 to 30 days)
|
||||
InvoiceNotLate30Days = To be collected (> 30 days)
|
||||
|
||||
@ -1681,7 +1681,7 @@ function top_htmlhead($head, $title = '', $disablejs = 0, $disablehead = 0, $arr
|
||||
}
|
||||
// Chart
|
||||
if (empty($disableforlogin) && (empty($conf->global->MAIN_JS_GRAPH) || $conf->global->MAIN_JS_GRAPH == 'chart') && !defined('DISABLE_JS_GRAPH')) {
|
||||
print '<script src="'.DOL_URL_ROOT.'/includes/nnnick/chartjs/dist/Chart.min.js'.($ext ? '?'.$ext : '').'"></script>'."\n";
|
||||
print '<script src="'.DOL_URL_ROOT.'/includes/nnnick/chartjs/dist/chart.min.js'.($ext ? '?'.$ext : '').'"></script>'."\n";
|
||||
}
|
||||
|
||||
// jQuery jeditable for Edit In Place features
|
||||
|
||||
@ -243,7 +243,7 @@ if ($user->rights->projet->all->creer || $user->rights->projet->creer) {
|
||||
}
|
||||
}
|
||||
|
||||
$linktocreatetask = dolGetButtonTitle($langs->trans('AddTask'), '', 'fa fa-plus-circle paddingleft', DOL_URL_ROOT.'/projet/tasks.php?id='.$object->id.'&action=create'.$param.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$object->id), '', $linktocreatetaskUserRight, $linktocreatetaskParam);
|
||||
$linktocreatetask = dolGetButtonTitle($langs->trans('AddTask'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/projet/tasks.php?id='.$object->id.'&action=create'.$param.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$object->id), '', $linktocreatetaskUserRight, $linktocreatetaskParam);
|
||||
|
||||
$linktotasks = dolGetButtonTitle($langs->trans('ViewList'), '', 'fa fa-list-alt paddingleft imgforviewmode', DOL_URL_ROOT.'/projet/tasks.php?id='.$object->id, '', 1, array('morecss'=>'reposition'));
|
||||
$linktotasks .= dolGetButtonTitle($langs->trans('ViewGantt'), '', 'fa fa-stream paddingleft imgforviewmode', DOL_URL_ROOT.'/projet/ganttview.php?id='.$object->id.'&withproject=1', '', 1, array('morecss'=>'reposition marginleftonly btnTitleSelected'));
|
||||
|
||||
@ -3646,9 +3646,11 @@ table.liste tr:last-of-type td, table.noborder:not(#tablelines) tr:last-of-type
|
||||
border-bottom-color: var(--colortopbordertitle1);
|
||||
border-bottom-style: solid;
|
||||
}
|
||||
/*
|
||||
div.tabBar div.fichehalfright table.noborder:not(.margintable):not(.paymenttable):not(.lastrecordtable):last-of-type {
|
||||
border-bottom: 1px solid var(--colortopbordertitle1);
|
||||
}
|
||||
*/
|
||||
div.tabBar table.border>tbody>tr:last-of-type>td {
|
||||
border-bottom-width: 1px;
|
||||
border-bottom-color: var(--colortopbordertitle1);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user