nuxeo-development-framework 4.5.5 → 4.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/nuxeo-development-framework.umd.js +35 -64
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/charts/components/base-chart.component.js +2 -5
- package/esm2015/lib/components/charts/components/chart.component.js +25 -33
- package/esm2015/lib/components/charts/components/data-chart.component.js +36 -38
- package/esm2015/lib/components/charts/defaults/doughnut.js +6 -9
- package/esm2015/lib/components/charts/defaults/line.js +9 -20
- package/esm2015/lib/components/charts/defaults/pie.js +6 -11
- package/esm2015/lib/components/pdf-tron/pdftron/pdftron.component.js +2 -2
- package/fesm2015/nuxeo-development-framework.js +77 -108
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/charts/components/base-chart.component.d.ts +1 -2
- package/package.json +1 -1
|
@@ -28558,7 +28558,7 @@ _PdftronComponent_docLoaded = new WeakMap(), _PdftronComponent_instances = new W
|
|
|
28558
28558
|
left: `${rect.left}px`,
|
|
28559
28559
|
width: `${rect.width}px`,
|
|
28560
28560
|
height: `${rect.height}px`,
|
|
28561
|
-
zIndex: '
|
|
28561
|
+
zIndex: '999',
|
|
28562
28562
|
display: 'block'
|
|
28563
28563
|
});
|
|
28564
28564
|
}, _PdftronComponent_afterLoadWebViewer = function _PdftronComponent_afterLoadWebViewer(instance) {
|
|
@@ -33022,7 +33022,6 @@ class BaseChartComponent extends DestroySubject {
|
|
|
33022
33022
|
constructor() {
|
|
33023
33023
|
super(...arguments);
|
|
33024
33024
|
this.responsive = true;
|
|
33025
|
-
this.legend = true;
|
|
33026
33025
|
this.onReady = new EventEmitter();
|
|
33027
33026
|
}
|
|
33028
33027
|
getChart() {
|
|
@@ -33035,7 +33034,7 @@ class BaseChartComponent extends DestroySubject {
|
|
|
33035
33034
|
}
|
|
33036
33035
|
}
|
|
33037
33036
|
BaseChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: BaseChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
33038
|
-
BaseChartComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: BaseChartComponent, inputs: { type: "type", plugins: "plugins", width: "width", height: "height", responsive: "responsive",
|
|
33037
|
+
BaseChartComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: BaseChartComponent, inputs: { type: "type", plugins: "plugins", width: "width", height: "height", responsive: "responsive", fontFamily: "fontFamily", fontSize: "fontSize" }, outputs: { onReady: "onReady" }, usesInheritance: true, ngImport: i0 });
|
|
33039
33038
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: BaseChartComponent, decorators: [{
|
|
33040
33039
|
type: Directive,
|
|
33041
33040
|
args: [{}]
|
|
@@ -33049,8 +33048,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
33049
33048
|
type: Input
|
|
33050
33049
|
}], responsive: [{
|
|
33051
33050
|
type: Input
|
|
33052
|
-
}], legend: [{
|
|
33053
|
-
type: Input
|
|
33054
33051
|
}], fontFamily: [{
|
|
33055
33052
|
type: Input
|
|
33056
33053
|
}], fontSize: [{
|
|
@@ -33101,18 +33098,11 @@ class ChartComponent extends BaseChartComponent {
|
|
|
33101
33098
|
initChart() {
|
|
33102
33099
|
const canvas = this.getCanvas();
|
|
33103
33100
|
if (canvas) {
|
|
33104
|
-
const options = ___default.merge({
|
|
33105
|
-
plugins: {
|
|
33106
|
-
legend: {
|
|
33107
|
-
display: this.legend,
|
|
33108
|
-
},
|
|
33109
|
-
},
|
|
33110
|
-
}, this.options);
|
|
33111
33101
|
this._chart = new Chart$1(canvas, {
|
|
33112
33102
|
type: this.type,
|
|
33113
33103
|
data: this.data,
|
|
33114
|
-
options: options,
|
|
33115
|
-
plugins: this.plugins
|
|
33104
|
+
options: this.options,
|
|
33105
|
+
plugins: this.plugins
|
|
33116
33106
|
});
|
|
33117
33107
|
this.onReady.emit(this._chart);
|
|
33118
33108
|
}
|
|
@@ -33142,37 +33132,37 @@ class ChartComponent extends BaseChartComponent {
|
|
|
33142
33132
|
}
|
|
33143
33133
|
ChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ChartComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: CHART_DEFAULTS_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
33144
33134
|
ChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ChartComponent, selector: "app-chart", inputs: { data: "data", options: "options" }, host: { classAttribute: "bs-chart" }, usesInheritance: true, ngImport: i0, template: `<canvas
|
|
33145
|
-
|
|
33146
|
-
|
|
33147
|
-
|
|
33148
|
-
|
|
33135
|
+
#canvas
|
|
33136
|
+
[attr.width]="responsive && !width ? null : width"
|
|
33137
|
+
[attr.height]="responsive && !height ? null : height"
|
|
33138
|
+
></canvas>`, isInline: true, styles: ["\n\t\t\t:host {\n\t\t\t\tposition: relative;\n\t\t\t\tdisplay: var(--chart-display, flex);\n\t\t\t\tflex-direction: var(--chart-direction, column);\n\t\t\t\tjustify-content: var(--chart-justify, center);\n\t\t\t\talign-items: var(--chart-align, center);\n\t\t\t\twidth: var(--chart-width, 100%);\n\t\t\t\tmax-height: var(--chart-height, 100%);\n\t\t\t\tmin-height: 0;\n\t\t\t}\n\t\t"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
33149
33139
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ChartComponent, decorators: [{
|
|
33150
33140
|
type: Component,
|
|
33151
33141
|
args: [{
|
|
33152
33142
|
selector: 'app-chart',
|
|
33153
33143
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
33154
33144
|
host: {
|
|
33155
|
-
class: 'bs-chart'
|
|
33145
|
+
class: 'bs-chart'
|
|
33156
33146
|
},
|
|
33157
33147
|
template: `<canvas
|
|
33158
|
-
|
|
33159
|
-
|
|
33160
|
-
|
|
33161
|
-
|
|
33148
|
+
#canvas
|
|
33149
|
+
[attr.width]="responsive && !width ? null : width"
|
|
33150
|
+
[attr.height]="responsive && !height ? null : height"
|
|
33151
|
+
></canvas>`,
|
|
33162
33152
|
styles: [
|
|
33163
33153
|
`
|
|
33164
|
-
|
|
33165
|
-
|
|
33166
|
-
|
|
33167
|
-
|
|
33168
|
-
|
|
33169
|
-
|
|
33170
|
-
|
|
33171
|
-
|
|
33172
|
-
|
|
33173
|
-
|
|
33174
|
-
|
|
33175
|
-
]
|
|
33154
|
+
:host {
|
|
33155
|
+
position: relative;
|
|
33156
|
+
display: var(--chart-display, flex);
|
|
33157
|
+
flex-direction: var(--chart-direction, column);
|
|
33158
|
+
justify-content: var(--chart-justify, center);
|
|
33159
|
+
align-items: var(--chart-align, center);
|
|
33160
|
+
width: var(--chart-width, 100%);
|
|
33161
|
+
max-height: var(--chart-height, 100%);
|
|
33162
|
+
min-height: 0;
|
|
33163
|
+
}
|
|
33164
|
+
`
|
|
33165
|
+
]
|
|
33176
33166
|
}]
|
|
33177
33167
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
33178
33168
|
type: Optional
|
|
@@ -33364,7 +33354,7 @@ class DataChartComponent extends BaseChartComponent {
|
|
|
33364
33354
|
this._rebuildTrigger$ = this._rebuildDataSub.asObservable();
|
|
33365
33355
|
this._isInitialized = false;
|
|
33366
33356
|
this._defaultParams = {
|
|
33367
|
-
pageSize: 1
|
|
33357
|
+
pageSize: 1
|
|
33368
33358
|
};
|
|
33369
33359
|
}
|
|
33370
33360
|
set dataSource(obj) {
|
|
@@ -33383,7 +33373,7 @@ class DataChartComponent extends BaseChartComponent {
|
|
|
33383
33373
|
ngOnInit() {
|
|
33384
33374
|
this._statisticService.prepareConfig({
|
|
33385
33375
|
translatePrefix: this.translatePrefix,
|
|
33386
|
-
bindValue: this.bindValue
|
|
33376
|
+
bindValue: this.bindValue
|
|
33387
33377
|
});
|
|
33388
33378
|
this.chartData$ = this._rebuildTrigger$.pipe(filter$1(Boolean), switchMap((params) => this._preparedData(params)));
|
|
33389
33379
|
this._subscribeToLanguage();
|
|
@@ -33403,8 +33393,8 @@ class DataChartComponent extends BaseChartComponent {
|
|
|
33403
33393
|
meta: of({
|
|
33404
33394
|
label: dataSource.label,
|
|
33405
33395
|
dataset: dataSource.dataset,
|
|
33406
|
-
colors: dataSource.colors
|
|
33407
|
-
})
|
|
33396
|
+
colors: dataSource.colors
|
|
33397
|
+
})
|
|
33408
33398
|
}).pipe(finalize(() => {
|
|
33409
33399
|
this._isInitialized = true;
|
|
33410
33400
|
}));
|
|
@@ -33430,7 +33420,7 @@ class DataChartComponent extends BaseChartComponent {
|
|
|
33430
33420
|
});
|
|
33431
33421
|
return {
|
|
33432
33422
|
labels: Array.from(_labels.values()),
|
|
33433
|
-
datasets: _datasets
|
|
33423
|
+
datasets: _datasets
|
|
33434
33424
|
};
|
|
33435
33425
|
}
|
|
33436
33426
|
_fetchStatistic(config, overridesParams = {}) {
|
|
@@ -33450,42 +33440,40 @@ class DataChartComponent extends BaseChartComponent {
|
|
|
33450
33440
|
}
|
|
33451
33441
|
DataChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DataChartComponent, deps: [{ token: i1.TranslateService }, { token: StatisticService }], target: i0.ɵɵFactoryTarget.Component });
|
|
33452
33442
|
DataChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DataChartComponent, selector: "app-data-chart", inputs: { dataSource: "dataSource", options: "options", dataset: "dataset", translatePrefix: "translatePrefix", bindValue: "bindValue", colors: "colors", updateOnLangChange: "updateOnLangChange", updateData: "updateData", transformData: "transformData" }, outputs: { onDataReady: "onDataReady" }, usesInheritance: true, ngImport: i0, template: `
|
|
33453
|
-
|
|
33454
|
-
|
|
33455
|
-
|
|
33456
|
-
|
|
33457
|
-
|
|
33458
|
-
|
|
33459
|
-
|
|
33460
|
-
|
|
33461
|
-
|
|
33462
|
-
|
|
33463
|
-
|
|
33464
|
-
|
|
33465
|
-
|
|
33466
|
-
|
|
33467
|
-
`, isInline: true, components: [{ type: ChartComponent, selector: "app-chart", inputs: ["data", "options"] }], directives: [{ type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4$1.AsyncPipe } });
|
|
33443
|
+
<app-chart
|
|
33444
|
+
*ngIf="chartData$ | async as data"
|
|
33445
|
+
[type]="type"
|
|
33446
|
+
[data]="data"
|
|
33447
|
+
[options]="options"
|
|
33448
|
+
[plugins]="plugins"
|
|
33449
|
+
[width]="width"
|
|
33450
|
+
[height]="height"
|
|
33451
|
+
[fontFamily]="fontFamily"
|
|
33452
|
+
[fontSize]="fontSize"
|
|
33453
|
+
[responsive]="responsive"
|
|
33454
|
+
(onReady)="onReady.emit($event)"
|
|
33455
|
+
></app-chart>
|
|
33456
|
+
`, isInline: true, components: [{ type: ChartComponent, selector: "app-chart", inputs: ["data", "options"] }], directives: [{ type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4$1.AsyncPipe } });
|
|
33468
33457
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DataChartComponent, decorators: [{
|
|
33469
33458
|
type: Component,
|
|
33470
33459
|
args: [{
|
|
33471
33460
|
selector: 'app-data-chart',
|
|
33472
33461
|
template: `
|
|
33473
|
-
|
|
33474
|
-
|
|
33475
|
-
|
|
33476
|
-
|
|
33477
|
-
|
|
33478
|
-
|
|
33479
|
-
|
|
33480
|
-
|
|
33481
|
-
|
|
33482
|
-
|
|
33483
|
-
|
|
33484
|
-
|
|
33485
|
-
|
|
33486
|
-
|
|
33487
|
-
|
|
33488
|
-
styles: [],
|
|
33462
|
+
<app-chart
|
|
33463
|
+
*ngIf="chartData$ | async as data"
|
|
33464
|
+
[type]="type"
|
|
33465
|
+
[data]="data"
|
|
33466
|
+
[options]="options"
|
|
33467
|
+
[plugins]="plugins"
|
|
33468
|
+
[width]="width"
|
|
33469
|
+
[height]="height"
|
|
33470
|
+
[fontFamily]="fontFamily"
|
|
33471
|
+
[fontSize]="fontSize"
|
|
33472
|
+
[responsive]="responsive"
|
|
33473
|
+
(onReady)="onReady.emit($event)"
|
|
33474
|
+
></app-chart>
|
|
33475
|
+
`,
|
|
33476
|
+
styles: []
|
|
33489
33477
|
}]
|
|
33490
33478
|
}], ctorParameters: function () { return [{ type: i1.TranslateService }, { type: StatisticService }]; }, propDecorators: { dataSource: [{
|
|
33491
33479
|
type: Input
|
|
@@ -33546,17 +33534,14 @@ const DOUGHNUT_OPTIONS = {
|
|
|
33546
33534
|
maintainAspectRatio: false,
|
|
33547
33535
|
plugins: {
|
|
33548
33536
|
tooltip: {
|
|
33549
|
-
enabled: true
|
|
33537
|
+
enabled: true
|
|
33550
33538
|
},
|
|
33551
33539
|
legend: {
|
|
33552
33540
|
labels: {
|
|
33553
|
-
usePointStyle: true
|
|
33554
|
-
|
|
33555
|
-
|
|
33556
|
-
|
|
33557
|
-
},
|
|
33558
|
-
},
|
|
33559
|
-
cutout: '30%',
|
|
33541
|
+
usePointStyle: true
|
|
33542
|
+
}
|
|
33543
|
+
}
|
|
33544
|
+
}
|
|
33560
33545
|
};
|
|
33561
33546
|
|
|
33562
33547
|
const LINE_OPTIONS = {
|
|
@@ -33567,52 +33552,36 @@ const LINE_OPTIONS = {
|
|
|
33567
33552
|
ticks: {
|
|
33568
33553
|
autoSkip: true,
|
|
33569
33554
|
maxTicksLimit: 12,
|
|
33570
|
-
source: 'labels'
|
|
33555
|
+
source: 'labels'
|
|
33571
33556
|
},
|
|
33572
33557
|
time: {
|
|
33573
33558
|
unit: 'week',
|
|
33574
33559
|
displayFormats: {
|
|
33575
|
-
week: 'DD-MM-yyyy'
|
|
33576
|
-
}
|
|
33577
|
-
}
|
|
33560
|
+
week: 'DD-MM-yyyy'
|
|
33561
|
+
}
|
|
33562
|
+
}
|
|
33578
33563
|
},
|
|
33579
33564
|
y: {
|
|
33580
33565
|
ticks: {
|
|
33581
|
-
precision: 0
|
|
33582
|
-
}
|
|
33583
|
-
}
|
|
33584
|
-
}
|
|
33585
|
-
plugins: {
|
|
33586
|
-
title: {
|
|
33587
|
-
display: true,
|
|
33588
|
-
text: '',
|
|
33589
|
-
},
|
|
33590
|
-
legend: {
|
|
33591
|
-
labels: {
|
|
33592
|
-
boxWidth: 12,
|
|
33593
|
-
},
|
|
33594
|
-
},
|
|
33595
|
-
},
|
|
33566
|
+
precision: 0
|
|
33567
|
+
}
|
|
33568
|
+
}
|
|
33569
|
+
}
|
|
33596
33570
|
};
|
|
33597
33571
|
|
|
33598
33572
|
const PIE_OPTIONS = {
|
|
33599
33573
|
plugins: {
|
|
33600
33574
|
title: {
|
|
33601
|
-
display: false
|
|
33575
|
+
display: false
|
|
33602
33576
|
},
|
|
33603
33577
|
legend: {
|
|
33604
33578
|
labels: {
|
|
33605
|
-
usePointStyle: true
|
|
33606
|
-
|
|
33607
|
-
|
|
33608
|
-
position: 'top',
|
|
33609
|
-
},
|
|
33610
|
-
},
|
|
33611
|
-
layout: {
|
|
33612
|
-
padding: 0,
|
|
33579
|
+
usePointStyle: true
|
|
33580
|
+
}
|
|
33581
|
+
}
|
|
33613
33582
|
},
|
|
33614
33583
|
responsive: true,
|
|
33615
|
-
maintainAspectRatio: false
|
|
33584
|
+
maintainAspectRatio: false
|
|
33616
33585
|
};
|
|
33617
33586
|
|
|
33618
33587
|
var index$1 = /*#__PURE__*/Object.freeze({
|