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.
@@ -30579,7 +30579,7 @@
30579
30579
  left: rect.left + "px",
30580
30580
  width: rect.width + "px",
30581
30581
  height: rect.height + "px",
30582
- zIndex: '9999',
30582
+ zIndex: '999',
30583
30583
  display: 'block'
30584
30584
  });
30585
30585
  }, _PdftronComponent_afterLoadWebViewer = function _PdftronComponent_afterLoadWebViewer(instance) {
@@ -35175,7 +35175,6 @@
35175
35175
  function BaseChartComponent() {
35176
35176
  var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
35177
35177
  _this.responsive = true;
35178
- _this.legend = true;
35179
35178
  _this.onReady = new i0.EventEmitter();
35180
35179
  return _this;
35181
35180
  }
@@ -35190,7 +35189,7 @@
35190
35189
  return BaseChartComponent;
35191
35190
  }(DestroySubject));
35192
35191
  BaseChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseChartComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
35193
- BaseChartComponent.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: BaseChartComponent, inputs: { type: "type", plugins: "plugins", width: "width", height: "height", responsive: "responsive", legend: "legend", fontFamily: "fontFamily", fontSize: "fontSize" }, outputs: { onReady: "onReady" }, usesInheritance: true, ngImport: i0__namespace });
35192
+ BaseChartComponent.ɵdir = i0__namespace.ɵɵ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__namespace });
35194
35193
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseChartComponent, decorators: [{
35195
35194
  type: i0.Directive,
35196
35195
  args: [{}]
@@ -35204,8 +35203,6 @@
35204
35203
  type: i0.Input
35205
35204
  }], responsive: [{
35206
35205
  type: i0.Input
35207
- }], legend: [{
35208
- type: i0.Input
35209
35206
  }], fontFamily: [{
35210
35207
  type: i0.Input
35211
35208
  }], fontSize: [{
@@ -35267,18 +35264,11 @@
35267
35264
  ChartComponent.prototype.initChart = function () {
35268
35265
  var canvas = this.getCanvas();
35269
35266
  if (canvas) {
35270
- var options = ___default["default"].merge({
35271
- plugins: {
35272
- legend: {
35273
- display: this.legend,
35274
- },
35275
- },
35276
- }, this.options);
35277
35267
  this._chart = new Chart__default["default"](canvas, {
35278
35268
  type: this.type,
35279
35269
  data: this.data,
35280
- options: options,
35281
- plugins: this.plugins,
35270
+ options: this.options,
35271
+ plugins: this.plugins
35282
35272
  });
35283
35273
  this.onReady.emit(this._chart);
35284
35274
  }
@@ -35308,19 +35298,19 @@
35308
35298
  return ChartComponent;
35309
35299
  }(BaseChartComponent));
35310
35300
  ChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ChartComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.NgZone }, { token: CHART_DEFAULTS_OPTIONS, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
35311
- ChartComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, template: "<canvas\n #canvas\n [attr.width]=\"responsive && !width ? null : width\"\n [attr.height]=\"responsive && !height ? null : height\"\n ></canvas>", isInline: true, styles: ["\n :host {\n position: relative;\n display: var(--chart-display, flex);\n flex-direction: var(--chart-direction, column);\n justify-content: var(--chart-justify, center);\n align-items: var(--chart-align, center);\n width: var(--chart-width, 100%);\n max-height: var(--chart-height, 100%);\n min-height : 0;\n }\n "], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
35301
+ ChartComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, template: "<canvas\n\t\t#canvas\n\t\t[attr.width]=\"responsive && !width ? null : width\"\n\t\t[attr.height]=\"responsive && !height ? null : height\"\n\t></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__namespace.ChangeDetectionStrategy.OnPush });
35312
35302
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ChartComponent, decorators: [{
35313
35303
  type: i0.Component,
35314
35304
  args: [{
35315
35305
  selector: 'app-chart',
35316
35306
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
35317
35307
  host: {
35318
- class: 'bs-chart',
35308
+ class: 'bs-chart'
35319
35309
  },
35320
- template: "<canvas\n #canvas\n [attr.width]=\"responsive && !width ? null : width\"\n [attr.height]=\"responsive && !height ? null : height\"\n ></canvas>",
35310
+ template: "<canvas\n\t\t#canvas\n\t\t[attr.width]=\"responsive && !width ? null : width\"\n\t\t[attr.height]=\"responsive && !height ? null : height\"\n\t></canvas>",
35321
35311
  styles: [
35322
- "\n :host {\n position: relative;\n display: var(--chart-display, flex);\n flex-direction: var(--chart-direction, column);\n justify-content: var(--chart-justify, center);\n align-items: var(--chart-align, center);\n width: var(--chart-width, 100%);\n max-height: var(--chart-height, 100%);\n min-height : 0;\n }\n ",
35323
- ],
35312
+ "\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"
35313
+ ]
35324
35314
  }]
35325
35315
  }], ctorParameters: function () {
35326
35316
  return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.NgZone }, { type: undefined, decorators: [{
@@ -35526,7 +35516,7 @@
35526
35516
  _this._rebuildTrigger$ = _this._rebuildDataSub.asObservable();
35527
35517
  _this._isInitialized = false;
35528
35518
  _this._defaultParams = {
35529
- pageSize: 1,
35519
+ pageSize: 1
35530
35520
  };
35531
35521
  return _this;
35532
35522
  }
@@ -35555,7 +35545,7 @@
35555
35545
  var _this = this;
35556
35546
  this._statisticService.prepareConfig({
35557
35547
  translatePrefix: this.translatePrefix,
35558
- bindValue: this.bindValue,
35548
+ bindValue: this.bindValue
35559
35549
  });
35560
35550
  this.chartData$ = this._rebuildTrigger$.pipe(operators.filter(Boolean), operators.switchMap(function (params) { return _this._preparedData(params); }));
35561
35551
  this._subscribeToLanguage();
@@ -35578,8 +35568,8 @@
35578
35568
  meta: rxjs.of({
35579
35569
  label: dataSource.label,
35580
35570
  dataset: dataSource.dataset,
35581
- colors: dataSource.colors,
35582
- }),
35571
+ colors: dataSource.colors
35572
+ })
35583
35573
  }).pipe(operators.finalize(function () {
35584
35574
  _this._isInitialized = true;
35585
35575
  }));
@@ -35607,7 +35597,7 @@
35607
35597
  });
35608
35598
  return {
35609
35599
  labels: Array.from(_labels.values()),
35610
- datasets: _datasets,
35600
+ datasets: _datasets
35611
35601
  };
35612
35602
  };
35613
35603
  DataChartComponent.prototype._fetchStatistic = function (config, overridesParams) {
@@ -35630,13 +35620,13 @@
35630
35620
  return DataChartComponent;
35631
35621
  }(BaseChartComponent));
35632
35622
  DataChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DataChartComponent, deps: [{ token: i1__namespace.TranslateService }, { token: StatisticService }], target: i0__namespace.ɵɵFactoryTarget.Component });
35633
- DataChartComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, template: "\n <app-chart\n *ngIf=\"chartData$ | async as data\"\n [type]=\"type\"\n [data]=\"data\"\n [options]=\"options\"\n [plugins]=\"plugins\"\n [width]=\"width\"\n [height]=\"height\"\n [legend]=\"legend\"\n [fontFamily]=\"fontFamily\"\n [fontSize]=\"fontSize\"\n [responsive]=\"responsive\"\n (onReady)=\"onReady.emit($event)\"\n ></app-chart>\n ", isInline: true, components: [{ type: ChartComponent, selector: "app-chart", inputs: ["data", "options"] }], directives: [{ type: i4__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4__namespace$1.AsyncPipe } });
35623
+ DataChartComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, template: "\n\t\t<app-chart\n\t\t\t*ngIf=\"chartData$ | async as data\"\n\t\t\t[type]=\"type\"\n\t\t\t[data]=\"data\"\n\t\t\t[options]=\"options\"\n\t\t\t[plugins]=\"plugins\"\n\t\t\t[width]=\"width\"\n\t\t\t[height]=\"height\"\n\t\t\t[fontFamily]=\"fontFamily\"\n\t\t\t[fontSize]=\"fontSize\"\n\t\t\t[responsive]=\"responsive\"\n\t\t\t(onReady)=\"onReady.emit($event)\"\n\t\t></app-chart>\n\t", isInline: true, components: [{ type: ChartComponent, selector: "app-chart", inputs: ["data", "options"] }], directives: [{ type: i4__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4__namespace$1.AsyncPipe } });
35634
35624
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DataChartComponent, decorators: [{
35635
35625
  type: i0.Component,
35636
35626
  args: [{
35637
35627
  selector: 'app-data-chart',
35638
- template: "\n <app-chart\n *ngIf=\"chartData$ | async as data\"\n [type]=\"type\"\n [data]=\"data\"\n [options]=\"options\"\n [plugins]=\"plugins\"\n [width]=\"width\"\n [height]=\"height\"\n [legend]=\"legend\"\n [fontFamily]=\"fontFamily\"\n [fontSize]=\"fontSize\"\n [responsive]=\"responsive\"\n (onReady)=\"onReady.emit($event)\"\n ></app-chart>\n ",
35639
- styles: [],
35628
+ template: "\n\t\t<app-chart\n\t\t\t*ngIf=\"chartData$ | async as data\"\n\t\t\t[type]=\"type\"\n\t\t\t[data]=\"data\"\n\t\t\t[options]=\"options\"\n\t\t\t[plugins]=\"plugins\"\n\t\t\t[width]=\"width\"\n\t\t\t[height]=\"height\"\n\t\t\t[fontFamily]=\"fontFamily\"\n\t\t\t[fontSize]=\"fontSize\"\n\t\t\t[responsive]=\"responsive\"\n\t\t\t(onReady)=\"onReady.emit($event)\"\n\t\t></app-chart>\n\t",
35629
+ styles: []
35640
35630
  }]
35641
35631
  }], ctorParameters: function () { return [{ type: i1__namespace.TranslateService }, { type: StatisticService }]; }, propDecorators: { dataSource: [{
35642
35632
  type: i0.Input
@@ -35700,17 +35690,14 @@
35700
35690
  maintainAspectRatio: false,
35701
35691
  plugins: {
35702
35692
  tooltip: {
35703
- enabled: true,
35693
+ enabled: true
35704
35694
  },
35705
35695
  legend: {
35706
35696
  labels: {
35707
- usePointStyle: true,
35708
- boxWidth: 8,
35709
- },
35710
- display: true,
35711
- },
35712
- },
35713
- cutout: '30%',
35697
+ usePointStyle: true
35698
+ }
35699
+ }
35700
+ }
35714
35701
  };
35715
35702
 
35716
35703
  var LINE_OPTIONS = {
@@ -35721,52 +35708,36 @@
35721
35708
  ticks: {
35722
35709
  autoSkip: true,
35723
35710
  maxTicksLimit: 12,
35724
- source: 'labels',
35711
+ source: 'labels'
35725
35712
  },
35726
35713
  time: {
35727
35714
  unit: 'week',
35728
35715
  displayFormats: {
35729
- week: 'DD-MM-yyyy',
35730
- },
35731
- },
35716
+ week: 'DD-MM-yyyy'
35717
+ }
35718
+ }
35732
35719
  },
35733
35720
  y: {
35734
35721
  ticks: {
35735
- precision: 0,
35736
- },
35737
- },
35738
- },
35739
- plugins: {
35740
- title: {
35741
- display: true,
35742
- text: '',
35743
- },
35744
- legend: {
35745
- labels: {
35746
- boxWidth: 12,
35747
- },
35748
- },
35749
- },
35722
+ precision: 0
35723
+ }
35724
+ }
35725
+ }
35750
35726
  };
35751
35727
 
35752
35728
  var PIE_OPTIONS = {
35753
35729
  plugins: {
35754
35730
  title: {
35755
- display: false,
35731
+ display: false
35756
35732
  },
35757
35733
  legend: {
35758
35734
  labels: {
35759
- usePointStyle: true,
35760
- boxWidth: 8,
35761
- },
35762
- position: 'top',
35763
- },
35764
- },
35765
- layout: {
35766
- padding: 0,
35735
+ usePointStyle: true
35736
+ }
35737
+ }
35767
35738
  },
35768
35739
  responsive: true,
35769
- maintainAspectRatio: false,
35740
+ maintainAspectRatio: false
35770
35741
  };
35771
35742
 
35772
35743
  var index$1 = /*#__PURE__*/Object.freeze({