@bizdoc/core 1.17.23 → 1.17.24
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/esm2020/lib/admin/positions/positions.component.mjs +2 -2
- package/esm2020/lib/core/fields/options.base.mjs +17 -10
- package/esm2020/lib/dashboard/cube/cube-chart.widget.mjs +10 -1
- package/fesm2015/bizdoc-core.mjs +21 -6
- package/fesm2015/bizdoc-core.mjs.map +1 -1
- package/fesm2020/bizdoc-core.mjs +21 -6
- package/fesm2020/bizdoc-core.mjs.map +1 -1
- package/lib/core/fields/options.base.d.ts +3 -1
- package/lib/dashboard/cube/cube-chart.widget.d.ts +2 -1
- package/lib/dashboard/cube/cube-chart.widget.d.ts.map +1 -1
- package/package.json +14 -14
package/fesm2020/bizdoc-core.mjs
CHANGED
@@ -3095,23 +3095,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
3095
3095
|
}], ctorParameters: function () { return [{ type: i1$3.HttpClient }]; } });
|
3096
3096
|
|
3097
3097
|
class OptionsControlField {
|
3098
|
-
constructor(_ds) {
|
3098
|
+
constructor(_session, _ds) {
|
3099
|
+
this._session = _session;
|
3099
3100
|
this._ds = _ds;
|
3100
3101
|
}
|
3101
3102
|
ngOnInit() {
|
3102
3103
|
this.required && this.control.addValidators(Validators.required);
|
3103
|
-
if (this.dataType)
|
3104
|
-
this.
|
3104
|
+
if (this.dataType) {
|
3105
|
+
const dataType = this._session.profile.types.find(t => t.name == this.dataType), column = dataType.columns.find(c => !c.flags || c.flags.indexOf('Key') < 0);
|
3106
|
+
this._ds.all(this.dataType).
|
3107
|
+
subscribe(v => this.options = dataType.columns ? v.map(o => ({
|
3108
|
+
key: o.key, value: o.value[column.name]
|
3109
|
+
})) : v);
|
3110
|
+
}
|
3105
3111
|
}
|
3106
3112
|
optionOf(value) {
|
3107
3113
|
return this.options?.find(o => o.key === value)?.value;
|
3108
3114
|
}
|
3109
3115
|
}
|
3110
|
-
OptionsControlField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: OptionsControlField, deps: [{ token: DatasourceService }], target: i0.ɵɵFactoryTarget.Directive });
|
3116
|
+
OptionsControlField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: OptionsControlField, deps: [{ token: SessionService }, { token: DatasourceService }], target: i0.ɵɵFactoryTarget.Directive });
|
3111
3117
|
OptionsControlField.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: OptionsControlField, ngImport: i0 });
|
3112
3118
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: OptionsControlField, decorators: [{
|
3113
3119
|
type: Directive
|
3114
|
-
}], ctorParameters: function () { return [{ type: DatasourceService }]; } });
|
3120
|
+
}], ctorParameters: function () { return [{ type: SessionService }, { type: DatasourceService }]; } });
|
3115
3121
|
class OptionsControlDesigner {
|
3116
3122
|
constructor(_service) {
|
3117
3123
|
this._service = _service;
|
@@ -23462,8 +23468,10 @@ class CubeChartAnalysisWidget extends CubeAnalysisBase {
|
|
23462
23468
|
width: 10,
|
23463
23469
|
height: 10
|
23464
23470
|
};
|
23471
|
+
this.multiLevelLabels = [];
|
23465
23472
|
this.primaryXAxis = {
|
23466
23473
|
valueType: 'Category',
|
23474
|
+
//multiLevelLabels: this.multiLevelLabels,
|
23467
23475
|
labelStyle: {
|
23468
23476
|
fontFamily: FONT_FAMILY
|
23469
23477
|
}
|
@@ -23492,6 +23500,12 @@ class CubeChartAnalysisWidget extends CubeAnalysisBase {
|
|
23492
23500
|
this.animation = { enable: true };
|
23493
23501
|
}
|
23494
23502
|
onLoad(data) {
|
23503
|
+
//if (isArray(this._options.series) && this._options.series.length > 1) {
|
23504
|
+
// this.multiLevelLabels = [{
|
23505
|
+
// textStyle: {},
|
23506
|
+
// categories: [{ text: '' }]
|
23507
|
+
// }];
|
23508
|
+
//}
|
23495
23509
|
const series = data.map(s => {
|
23496
23510
|
if (s.index)
|
23497
23511
|
return {
|
@@ -23510,6 +23524,7 @@ class CubeChartAnalysisWidget extends CubeAnalysisBase {
|
|
23510
23524
|
return {
|
23511
23525
|
yName: 'y', xName: 'name', type: this.type,
|
23512
23526
|
dataSource: s.points,
|
23527
|
+
//groupName: '',
|
23513
23528
|
name: s.title ||
|
23514
23529
|
this._translate.get('Usage')
|
23515
23530
|
};
|
@@ -31425,7 +31440,7 @@ let PositionsComponent = class PositionsComponent {
|
|
31425
31440
|
value: ''
|
31426
31441
|
}];
|
31427
31442
|
if (type.columns)
|
31428
|
-
type.columns.slice(2).forEach((
|
31443
|
+
type.columns.slice(2).forEach((_, i) => cells.push({
|
31429
31444
|
index: i + 4,
|
31430
31445
|
value: ''
|
31431
31446
|
}));
|