bbj-screen-widget 2.4.54 → 2.4.56

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.
@@ -3116,7 +3116,7 @@ let WordartComponent = class WordartComponent {
3116
3116
  WordartComponent.decorators = [
3117
3117
  { type: Component, args: [{
3118
3118
  selector: 'sc-wordart',
3119
- template: "<div *ngIf=\"data && data[0]\" [ngStyle]=\"style\" class=\"text\" [class.gradual]=\"this.backgroundImage\">{{data[0].value != null? data[0].value:title}}</div>\n<div *ngIf=\"!data[0]\" [ngStyle]=\"style\" class=\"text\" [class.gradual]=\"this.backgroundImage\">{{title}}</div>",
3119
+ template: "<div *ngIf=\"data && data[0]\" [ngStyle]=\"style\" class=\"text\" [class.gradual]=\"this.backgroundImage\">{{data[0].value != null? data[0].value:title}}</div>\n<div *ngIf=\"!data||!data[0]\" [ngStyle]=\"style\" class=\"text\" [class.gradual]=\"this.backgroundImage\">{{title}}</div>",
3120
3120
  styles: [".text{display:inline-block}.gradual{-webkit-background-clip:text;-webkit-text-fill-color:transparent}:host{display:inline-block;width:100%;height:100%}"]
3121
3121
  },] }
3122
3122
  ];
@@ -6020,9 +6020,17 @@ let RadarChartComponent = class RadarChartComponent extends BasicLineChartCompon
6020
6020
  lineHeight: '',
6021
6021
  };
6022
6022
  this.align = 'auto';
6023
+ this.label = false;
6023
6024
  this.shape = 'polygon';
6024
6025
  this.area = false;
6025
- this.radius = 100;
6026
+ this.grid = {
6027
+ top: 30,
6028
+ right: 30,
6029
+ bottom: 40,
6030
+ left: 36,
6031
+ };
6032
+ // @Property('缩放', { type: 'number' })
6033
+ // radius = 100;
6026
6034
  this.chartOption = {};
6027
6035
  this._data = [
6028
6036
  { x: '销售', y: 10, m: 37, s: '预算' },
@@ -6064,11 +6072,23 @@ let RadarChartComponent = class RadarChartComponent extends BasicLineChartCompon
6064
6072
  textStyle: style,
6065
6073
  },
6066
6074
  indicator: [],
6067
- radius: this.radius,
6068
6075
  },
6069
6076
  color: this.lineColor,
6077
+ grid: {
6078
+ top: this.grid.top,
6079
+ right: this.grid.right,
6080
+ left: this.grid.left,
6081
+ bottom: this.grid.bottom,
6082
+ },
6070
6083
  series: [
6071
6084
  {
6085
+ label: {
6086
+ show: this.label,
6087
+ textStyle: this.getTextStyle(this.font),
6088
+ formatter: function (params) {
6089
+ return params.value;
6090
+ },
6091
+ },
6072
6092
  type: 'radar',
6073
6093
  areaStyle: { opacity: this.area ? 0.3 : 0 },
6074
6094
  data: [],
@@ -6194,6 +6214,10 @@ __decorate([
6194
6214
  }),
6195
6215
  __metadata("design:type", Object)
6196
6216
  ], RadarChartComponent.prototype, "align", void 0);
6217
+ __decorate([
6218
+ Property('标签', { type: 'boolean' }),
6219
+ __metadata("design:type", Object)
6220
+ ], RadarChartComponent.prototype, "label", void 0);
6197
6221
  __decorate([
6198
6222
  Property('形状', {
6199
6223
  ui: { widget: 'select' },
@@ -6211,9 +6235,9 @@ __decorate([
6211
6235
  __metadata("design:type", Object)
6212
6236
  ], RadarChartComponent.prototype, "area", void 0);
6213
6237
  __decorate([
6214
- Property('缩放', { type: 'number' }),
6238
+ Property('边距', { ui: { widget: 'myGrid' } }),
6215
6239
  __metadata("design:type", Object)
6216
- ], RadarChartComponent.prototype, "radius", void 0);
6240
+ ], RadarChartComponent.prototype, "grid", void 0);
6217
6241
  __decorate([
6218
6242
  Data({
6219
6243
  properties: {
@@ -7782,6 +7806,7 @@ let ShufflingListComponent = class ShufflingListComponent {
7782
7806
  }
7783
7807
  }
7784
7808
  updateColumns() {
7809
+ var _a;
7785
7810
  this.columns = [];
7786
7811
  let keys;
7787
7812
  if (this.schema && this.schema.properties) {
@@ -7811,7 +7836,7 @@ let ShufflingListComponent = class ShufflingListComponent {
7811
7836
  const cellStyle = {};
7812
7837
  const column = { index: key, title, headStyle, cellStyle };
7813
7838
  const titleStyle = titleStyleMap[key];
7814
- if (this.titleStyle.length && (titleStyle == null || !titleStyle.show)) {
7839
+ if (((_a = this.titleStyle) === null || _a === void 0 ? void 0 : _a.length) && (titleStyle == null || !titleStyle.show)) {
7815
7840
  continue;
7816
7841
  }
7817
7842
  let width;
@@ -9173,6 +9198,7 @@ let PlanimetricMap2dComponent = PlanimetricMap2dComponent_1 = class PlanimetricM
9173
9198
  this._children = [];
9174
9199
  this.loadedMap = {};
9175
9200
  this.stack = [];
9201
+ this.renderer = 'svg';
9176
9202
  }
9177
9203
  ngOnChanges(changes) {
9178
9204
  if (changes.data) {
@@ -9207,6 +9233,7 @@ let PlanimetricMap2dComponent = PlanimetricMap2dComponent_1 = class PlanimetricM
9207
9233
  // this.loadMap(this.mapStyle).then((data) => {
9208
9234
  let series = [];
9209
9235
  this.visualMap = [];
9236
+ this.renderer = 'svg';
9210
9237
  this._children.forEach((child) => {
9211
9238
  if (child.type === 'visual') {
9212
9239
  // series = child.series;
@@ -9229,6 +9256,8 @@ let PlanimetricMap2dComponent = PlanimetricMap2dComponent_1 = class PlanimetricM
9229
9256
  series.forEach((layer, index) => {
9230
9257
  if (layer.type === 'lines') {
9231
9258
  delete layer.coordinateSystem;
9259
+ // 飞线层不支持svg渲染
9260
+ this.renderer = 'canvas';
9232
9261
  }
9233
9262
  if (layer.type === 'scatter') {
9234
9263
  layer.coordinateSystem = 'geo';
@@ -9462,7 +9491,7 @@ let PlanimetricMap2dComponent = PlanimetricMap2dComponent_1 = class PlanimetricM
9462
9491
  PlanimetricMap2dComponent.decorators = [
9463
9492
  { type: Component, args: [{
9464
9493
  selector: 'sc-planimetric-map2d',
9465
- template: "<ng-template *ngFor=\"let child of children\" widget-host [widget]=\"child\"></ng-template>\n<div echarts *ngIf=\"hasMap\" [options]=\"chartOption\" class=\"demo-chart\" (chartClick)='markClick($event)' (contextmenu)='rollback($event)'></div> \n<!-- -->",
9494
+ template: "<ng-template *ngFor=\"let child of children\" widget-host [widget]=\"child\"></ng-template>\n<div\n echarts\n *ngIf=\"hasMap\"\n [options]=\"chartOption\"\n class=\"demo-chart\"\n (chartClick)=\"markClick($event)\"\n (contextmenu)=\"rollback($event)\"\n [initOpts]=\"{ renderer: renderer}\"\n></div>\n<!-- -->\n",
9466
9495
  providers: [{ provide: ParentContainerComponent, useExisting: forwardRef(() => PlanimetricMap2dComponent_1) }],
9467
9496
  styles: [".demo-chart,:host{height:100%}:host{display:block;width:100%}"]
9468
9497
  },] }
@@ -14107,6 +14136,7 @@ let BaiduMarkerLayerComponent = class BaiduMarkerLayerComponent extends BaseLaye
14107
14136
  space: 0,
14108
14137
  lineHeight: 0,
14109
14138
  };
14139
+ this.shadow = { color: '', X: 0, Y: 0, Z: 0 };
14110
14140
  this.unselectOnClickBlank = true;
14111
14141
  this.groups = [];
14112
14142
  this._data = [
@@ -14176,7 +14206,23 @@ let BaiduMarkerLayerComponent = class BaiduMarkerLayerComponent extends BaseLaye
14176
14206
  // color: '#fff',
14177
14207
  // fontFamily: 'Microsoft Yahei',
14178
14208
  // fontSize: 14,
14179
- flat: false, collides: true, offset: [this.labelOffsetX || 0, this.labelOffsetY || 0], padding: [2, 2], margin: [0, 0] });
14209
+ flat: false, collides: true, offset: [this.labelOffsetX || 0, this.labelOffsetY || 0], stroke: {
14210
+ color: this.stroke,
14211
+ }, padding: [2, 2], margin: [0, 0] });
14212
+ if (this.stroke && this.stroke !== 'rgba(0,0,0,0)') {
14213
+ textOptions.stroke = { color: this.stroke };
14214
+ }
14215
+ if (this.strokeWidth) {
14216
+ textOptions.lineWidth = this.strokeWidth;
14217
+ }
14218
+ if (this.shadow) {
14219
+ textOptions.shadow = {
14220
+ color: this.shadow.color,
14221
+ blur: this.shadow.Z,
14222
+ offsetX: this.shadow.X,
14223
+ offsetY: this.shadow.Y,
14224
+ };
14225
+ }
14180
14226
  this.textLayer = new mapvgl.TextLayer(textOptions);
14181
14227
  if (this.showLabelMinZoom != null) {
14182
14228
  this.parent.init$.then(() => {
@@ -14360,6 +14406,20 @@ let BaiduMarkerLayerComponent = class BaiduMarkerLayerComponent extends BaseLaye
14360
14406
  textOptions.fontFamily = font.family;
14361
14407
  if (font.color)
14362
14408
  textOptions.color = font.color;
14409
+ // switch (font.weight) {
14410
+ // case 'lighter':
14411
+ // textOptions.lineWidth = 1;
14412
+ // break;
14413
+ // case 'normal':
14414
+ // textOptions.lineWidth = 2;
14415
+ // break;
14416
+ // case 'bold':
14417
+ // textOptions.lineWidth = 3;
14418
+ // break;
14419
+ // case 'bolder':
14420
+ // textOptions.lineWidth = 4;
14421
+ // break;
14422
+ // }
14363
14423
  }
14364
14424
  return textOptions;
14365
14425
  }
@@ -14580,6 +14640,22 @@ __decorate([
14580
14640
  Property('标签字体', { ui: { widget: 'myFont', visibleIf: { showLabel: [true] } } }),
14581
14641
  __metadata("design:type", Object)
14582
14642
  ], BaiduMarkerLayerComponent.prototype, "labelFont", void 0);
14643
+ __decorate([
14644
+ Property('描边颜色', {
14645
+ ui: {
14646
+ widget: 'myColor',
14647
+ },
14648
+ }),
14649
+ __metadata("design:type", String)
14650
+ ], BaiduMarkerLayerComponent.prototype, "stroke", void 0);
14651
+ __decorate([
14652
+ Property('描边粗细', { type: 'integer' }),
14653
+ __metadata("design:type", Number)
14654
+ ], BaiduMarkerLayerComponent.prototype, "strokeWidth", void 0);
14655
+ __decorate([
14656
+ Property('阴影', { ui: { widget: 'myShadow' } }),
14657
+ __metadata("design:type", Object)
14658
+ ], BaiduMarkerLayerComponent.prototype, "shadow", void 0);
14583
14659
  __decorate([
14584
14660
  Property('标签偏移x', { ui: { widget: 'number', visibleIf: { showLabel: [true] } } }),
14585
14661
  __metadata("design:type", Number)
@@ -17109,7 +17185,14 @@ MultiTitleGaugeModule.ctorParameters = () => [
17109
17185
 
17110
17186
  let GaugeProgressComponent = class GaugeProgressComponent {
17111
17187
  constructor() {
17112
- this.numfont = { family: 'Microsoft YaHei', color: '#ffffff', weight: 'normal', size: 21, space: 0, lineHeight: '20' };
17188
+ this.numfont = {
17189
+ family: 'Microsoft YaHei',
17190
+ color: '#ffffff',
17191
+ weight: 'normal',
17192
+ size: 21,
17193
+ space: 0,
17194
+ lineHeight: '20',
17195
+ };
17113
17196
  this.slidesPerView = 1;
17114
17197
  this.spaceBetween = 0;
17115
17198
  this.navigation = true;
@@ -17120,7 +17203,7 @@ let GaugeProgressComponent = class GaugeProgressComponent {
17120
17203
  this.cardBgImg = null;
17121
17204
  this.navigationBtnConfig = {
17122
17205
  prevEl: '.swiper-navigation-prev',
17123
- nextEl: '.swiper-navigation-next'
17206
+ nextEl: '.swiper-navigation-next',
17124
17207
  };
17125
17208
  //========================================
17126
17209
  this.seriesColor = { gradient: false, value: [['#6D7597', '#6D7597']] };
@@ -17159,79 +17242,82 @@ let GaugeProgressComponent = class GaugeProgressComponent {
17159
17242
  }
17160
17243
  ngOnChanges(changes) {
17161
17244
  if (changes._data) {
17162
- if (this._data.length <= this.slidesPerView) {
17163
- this.navigation = false;
17164
- }
17165
- this._data.forEach((e) => {
17166
- let sourceData = [];
17167
- sourceData.push(e);
17168
- let chartOption = {
17169
- series: [
17170
- {
17171
- // name: this.title,
17172
- type: 'gauge',
17173
- startAngle: this.startAngle,
17174
- endAngle: this.endAngle,
17175
- progress: {
17176
- show: e.value && Number(e.value) > 0 ? true : false,
17177
- overlap: false,
17178
- roundCap: true,
17179
- clip: false,
17180
- itemStyle: {
17181
- borderWidth: 1,
17182
- color: this.getColor(this.progressColor, 'progress'),
17183
- shadowColor: this.progressShadow,
17184
- shadowBlur: 5
17185
- }
17186
- },
17187
- detail: {
17188
- show: this.labelVal,
17189
- formatter: this.percent ? '' + ((e.value / this.max) * 100).toFixed(2) + '%' : '{value}',
17190
- color: this.numFont.color,
17191
- fontFamily: this.numFont.family,
17192
- fontWeight: this.numFont.weight,
17193
- fontSize: this.numFont.size,
17194
- lineHeight: this.numFont.lineHeight,
17195
- offsetCenter: [0, `${this.labelValOffset}%`],
17196
- },
17197
- data: sourceData,
17198
- title: {
17199
- show: this.label,
17200
- color: this.font.color,
17201
- fontFamily: this.font.family,
17202
- fontWeight: this.font.weight,
17203
- fontSize: this.font.size,
17204
- lineHeight: this.font.lineHeight,
17205
- offsetCenter: [0, `${this.labelOffset}%`],
17206
- overflow: 'breakAll',
17207
- width: this.labelWidth
17208
- },
17209
- axisLine: {
17210
- roundCap: true,
17211
- lineStyle: {
17212
- width: this.width,
17213
- color: this.getColor(this.seriesColor)
17245
+ this.data = [];
17246
+ if (this._data) {
17247
+ if (this._data.length <= this.slidesPerView) {
17248
+ this.navigation = false;
17249
+ }
17250
+ this._data.forEach((e) => {
17251
+ let sourceData = [];
17252
+ sourceData.push(e);
17253
+ let chartOption = {
17254
+ series: [
17255
+ {
17256
+ // name: this.title,
17257
+ type: 'gauge',
17258
+ startAngle: this.startAngle,
17259
+ endAngle: this.endAngle,
17260
+ progress: {
17261
+ show: e.value && Number(e.value) > 0 ? true : false,
17262
+ overlap: false,
17263
+ roundCap: true,
17264
+ clip: false,
17265
+ itemStyle: {
17266
+ borderWidth: 1,
17267
+ color: this.getColor(this.progressColor, 'progress'),
17268
+ shadowColor: this.progressShadow,
17269
+ shadowBlur: 5,
17270
+ },
17271
+ },
17272
+ detail: {
17273
+ show: this.labelVal,
17274
+ formatter: this.percent ? '' + ((e.value / this.max) * 100).toFixed(2) + '%' : '{value}',
17275
+ color: this.numFont.color,
17276
+ fontFamily: this.numFont.family,
17277
+ fontWeight: this.numFont.weight,
17278
+ fontSize: this.numFont.size,
17279
+ lineHeight: this.numFont.lineHeight,
17280
+ offsetCenter: [0, `${this.labelValOffset}%`],
17281
+ },
17282
+ data: sourceData,
17283
+ title: {
17284
+ show: this.label,
17285
+ color: this.font.color,
17286
+ fontFamily: this.font.family,
17287
+ fontWeight: this.font.weight,
17288
+ fontSize: this.font.size,
17289
+ lineHeight: this.font.lineHeight,
17290
+ offsetCenter: [0, `${this.labelOffset}%`],
17291
+ overflow: 'breakAll',
17292
+ width: this.labelWidth,
17293
+ },
17294
+ axisLine: {
17295
+ roundCap: true,
17296
+ lineStyle: {
17297
+ width: this.width,
17298
+ color: this.getColor(this.seriesColor),
17299
+ },
17300
+ },
17301
+ max: this.max,
17302
+ min: this.min,
17303
+ axisLabel: {
17304
+ show: false,
17305
+ },
17306
+ splitLine: {
17307
+ show: false,
17308
+ },
17309
+ axisTick: {
17310
+ show: false,
17311
+ },
17312
+ pointer: {
17313
+ show: false,
17214
17314
  },
17215
17315
  },
17216
- max: this.max,
17217
- min: this.min,
17218
- axisLabel: {
17219
- show: false
17220
- },
17221
- splitLine: {
17222
- show: false
17223
- },
17224
- axisTick: {
17225
- show: false
17226
- },
17227
- pointer: {
17228
- show: false
17229
- },
17230
- },
17231
- ],
17232
- };
17233
- this.data.push(chartOption);
17234
- });
17316
+ ],
17317
+ };
17318
+ this.data.push(chartOption);
17319
+ });
17320
+ }
17235
17321
  // console.log(this._data[0].value,this._data[0].value && Number(this._data[0].value) !== 0 ? true : false)
17236
17322
  // console.log(JSON.stringify(this.chartOption));
17237
17323
  }
@@ -17241,7 +17327,7 @@ let GaugeProgressComponent = class GaugeProgressComponent {
17241
17327
  const color = [];
17242
17328
  const color1 = [];
17243
17329
  const colorInfo = colorBox && colorBox.value ? colorBox.value : colorBox;
17244
- colorInfo.forEach(item => {
17330
+ colorInfo.forEach((item) => {
17245
17331
  color.push({
17246
17332
  type: 'linear',
17247
17333
  x: 0,
@@ -17300,7 +17386,7 @@ __decorate([
17300
17386
  type: 'string',
17301
17387
  ui: {
17302
17388
  widget: 'myUpload',
17303
- }
17389
+ },
17304
17390
  }),
17305
17391
  __metadata("design:type", Object)
17306
17392
  ], GaugeProgressComponent.prototype, "navigationLeftIcon", void 0);
@@ -17309,16 +17395,14 @@ __decorate([
17309
17395
  type: 'string',
17310
17396
  ui: {
17311
17397
  widget: 'myUpload',
17312
- }
17398
+ },
17313
17399
  }),
17314
17400
  __metadata("design:type", Object)
17315
17401
  ], GaugeProgressComponent.prototype, "navigationRightIcon", void 0);
17316
17402
  __decorate([
17317
17403
  Property('显示模式', {
17318
17404
  ui: { widget: 'select' },
17319
- enum: [
17320
- { label: '图标卡片', value: 'card' },
17321
- ],
17405
+ enum: [{ label: '图标卡片', value: 'card' }],
17322
17406
  }),
17323
17407
  __metadata("design:type", Object)
17324
17408
  ], GaugeProgressComponent.prototype, "showType", void 0);
@@ -17419,7 +17503,7 @@ __decorate([
17419
17503
  Property('进度颜色', {
17420
17504
  ui: {
17421
17505
  widget: 'seriesColor',
17422
- type: 'gradual'
17506
+ type: 'gradual',
17423
17507
  },
17424
17508
  }),
17425
17509
  __metadata("design:type", Object)
@@ -17428,7 +17512,7 @@ __decorate([
17428
17512
  Property('进度阴影', {
17429
17513
  ui: {
17430
17514
  widget: 'myColor',
17431
- example: ['#ffffff', '#F5A623', '#F8E71C', '#50E3C2', '#3285FF', '#B45FFF', '#9B9B9B', null]
17515
+ example: ['#ffffff', '#F5A623', '#F8E71C', '#50E3C2', '#3285FF', '#B45FFF', '#9B9B9B', null],
17432
17516
  },
17433
17517
  }),
17434
17518
  __metadata("design:type", Object)