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.
@@ -3610,7 +3610,7 @@
3610
3610
  exports.ɵbl.decorators = [
3611
3611
  { type: i0.Component, args: [{
3612
3612
  selector: 'sc-wordart',
3613
- 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>",
3613
+ 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>",
3614
3614
  styles: [".text{display:inline-block}.gradual{-webkit-background-clip:text;-webkit-text-fill-color:transparent}:host{display:inline-block;width:100%;height:100%}"]
3615
3615
  },] }
3616
3616
  ];
@@ -6606,9 +6606,17 @@
6606
6606
  lineHeight: '',
6607
6607
  };
6608
6608
  _this.align = 'auto';
6609
+ _this.label = false;
6609
6610
  _this.shape = 'polygon';
6610
6611
  _this.area = false;
6611
- _this.radius = 100;
6612
+ _this.grid = {
6613
+ top: 30,
6614
+ right: 30,
6615
+ bottom: 40,
6616
+ left: 36,
6617
+ };
6618
+ // @Property('缩放', { type: 'number' })
6619
+ // radius = 100;
6612
6620
  _this.chartOption = {};
6613
6621
  _this._data = [
6614
6622
  { x: '销售', y: 10, m: 37, s: '预算' },
@@ -6652,11 +6660,23 @@
6652
6660
  textStyle: style,
6653
6661
  },
6654
6662
  indicator: [],
6655
- radius: this.radius,
6656
6663
  },
6657
6664
  color: this.lineColor,
6665
+ grid: {
6666
+ top: this.grid.top,
6667
+ right: this.grid.right,
6668
+ left: this.grid.left,
6669
+ bottom: this.grid.bottom,
6670
+ },
6658
6671
  series: [
6659
6672
  {
6673
+ label: {
6674
+ show: this.label,
6675
+ textStyle: this.getTextStyle(this.font),
6676
+ formatter: function (params) {
6677
+ return params.value;
6678
+ },
6679
+ },
6660
6680
  type: 'radar',
6661
6681
  areaStyle: { opacity: this.area ? 0.3 : 0 },
6662
6682
  data: [],
@@ -6791,6 +6811,10 @@
6791
6811
  }),
6792
6812
  __metadata("design:type", Object)
6793
6813
  ], exports.ɵi.prototype, "align", void 0);
6814
+ __decorate([
6815
+ bbjWidgetBase.Property('标签', { type: 'boolean' }),
6816
+ __metadata("design:type", Object)
6817
+ ], exports.ɵi.prototype, "label", void 0);
6794
6818
  __decorate([
6795
6819
  bbjWidgetBase.Property('形状', {
6796
6820
  ui: { widget: 'select' },
@@ -6808,9 +6832,9 @@
6808
6832
  __metadata("design:type", Object)
6809
6833
  ], exports.ɵi.prototype, "area", void 0);
6810
6834
  __decorate([
6811
- bbjWidgetBase.Property('缩放', { type: 'number' }),
6835
+ bbjWidgetBase.Property('边距', { ui: { widget: 'myGrid' } }),
6812
6836
  __metadata("design:type", Object)
6813
- ], exports.ɵi.prototype, "radius", void 0);
6837
+ ], exports.ɵi.prototype, "grid", void 0);
6814
6838
  __decorate([
6815
6839
  bbjWidgetBase.Data({
6816
6840
  properties: {
@@ -8399,6 +8423,7 @@
8399
8423
  };
8400
8424
  ShufflingListComponent.prototype.updateColumns = function () {
8401
8425
  var e_1, _c;
8426
+ var _a;
8402
8427
  this.columns = [];
8403
8428
  var keys;
8404
8429
  if (this.schema && this.schema.properties) {
@@ -8430,7 +8455,7 @@
8430
8455
  var cellStyle = {};
8431
8456
  var column = { index: key, title: title, headStyle: headStyle, cellStyle: cellStyle };
8432
8457
  var titleStyle = titleStyleMap[key];
8433
- if (this.titleStyle.length && (titleStyle == null || !titleStyle.show)) {
8458
+ if (((_a = this.titleStyle) === null || _a === void 0 ? void 0 : _a.length) && (titleStyle == null || !titleStyle.show)) {
8434
8459
  continue;
8435
8460
  }
8436
8461
  var width = void 0;
@@ -9840,6 +9865,7 @@
9840
9865
  _this._children = [];
9841
9866
  _this.loadedMap = {};
9842
9867
  _this.stack = [];
9868
+ _this.renderer = 'svg';
9843
9869
  return _this;
9844
9870
  }
9845
9871
  PlanimetricMap2dComponent.prototype.ngOnChanges = function (changes) {
@@ -9881,6 +9907,7 @@
9881
9907
  // this.loadMap(this.mapStyle).then((data) => {
9882
9908
  var series = [];
9883
9909
  this.visualMap = [];
9910
+ this.renderer = 'svg';
9884
9911
  this._children.forEach(function (child) {
9885
9912
  if (child.type === 'visual') {
9886
9913
  // series = child.series;
@@ -9903,6 +9930,8 @@
9903
9930
  series.forEach(function (layer, index) {
9904
9931
  if (layer.type === 'lines') {
9905
9932
  delete layer.coordinateSystem;
9933
+ // 飞线层不支持svg渲染
9934
+ _this.renderer = 'canvas';
9906
9935
  }
9907
9936
  if (layer.type === 'scatter') {
9908
9937
  layer.coordinateSystem = 'geo';
@@ -10149,7 +10178,7 @@
10149
10178
  exports.ɵcc.decorators = [
10150
10179
  { type: i0.Component, args: [{
10151
10180
  selector: 'sc-planimetric-map2d',
10152
- 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<!-- -->",
10181
+ 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",
10153
10182
  providers: [{ provide: ParentContainerComponent, useExisting: i0.forwardRef(function () { return PlanimetricMap2dComponent_1; }) }],
10154
10183
  styles: [".demo-chart,:host{height:100%}:host{display:block;width:100%}"]
10155
10184
  },] }
@@ -14953,6 +14982,7 @@
14953
14982
  space: 0,
14954
14983
  lineHeight: 0,
14955
14984
  };
14985
+ _this.shadow = { color: '', X: 0, Y: 0, Z: 0 };
14956
14986
  _this.unselectOnClickBlank = true;
14957
14987
  _this.groups = [];
14958
14988
  _this._data = [
@@ -15026,8 +15056,24 @@
15026
15056
  // color: '#fff',
15027
15057
  // fontFamily: 'Microsoft Yahei',
15028
15058
  // fontSize: 14,
15029
- flat: false, collides: true, offset: [this.labelOffsetX || 0, this.labelOffsetY || 0], padding: [2, 2], margin: [0, 0]
15059
+ flat: false, collides: true, offset: [this.labelOffsetX || 0, this.labelOffsetY || 0], stroke: {
15060
+ color: this.stroke,
15061
+ }, padding: [2, 2], margin: [0, 0]
15030
15062
  });
15063
+ if (this.stroke && this.stroke !== 'rgba(0,0,0,0)') {
15064
+ textOptions.stroke = { color: this.stroke };
15065
+ }
15066
+ if (this.strokeWidth) {
15067
+ textOptions.lineWidth = this.strokeWidth;
15068
+ }
15069
+ if (this.shadow) {
15070
+ textOptions.shadow = {
15071
+ color: this.shadow.color,
15072
+ blur: this.shadow.Z,
15073
+ offsetX: this.shadow.X,
15074
+ offsetY: this.shadow.Y,
15075
+ };
15076
+ }
15031
15077
  this.textLayer = new mapvgl.TextLayer(textOptions);
15032
15078
  if (this.showLabelMinZoom != null) {
15033
15079
  this.parent.init$.then(function () {
@@ -15213,6 +15259,20 @@
15213
15259
  textOptions.fontFamily = font.family;
15214
15260
  if (font.color)
15215
15261
  textOptions.color = font.color;
15262
+ // switch (font.weight) {
15263
+ // case 'lighter':
15264
+ // textOptions.lineWidth = 1;
15265
+ // break;
15266
+ // case 'normal':
15267
+ // textOptions.lineWidth = 2;
15268
+ // break;
15269
+ // case 'bold':
15270
+ // textOptions.lineWidth = 3;
15271
+ // break;
15272
+ // case 'bolder':
15273
+ // textOptions.lineWidth = 4;
15274
+ // break;
15275
+ // }
15216
15276
  }
15217
15277
  return textOptions;
15218
15278
  };
@@ -15439,6 +15499,22 @@
15439
15499
  bbjWidgetBase.Property('标签字体', { ui: { widget: 'myFont', visibleIf: { showLabel: [true] } } }),
15440
15500
  __metadata("design:type", Object)
15441
15501
  ], exports.ɵcz.prototype, "labelFont", void 0);
15502
+ __decorate([
15503
+ bbjWidgetBase.Property('描边颜色', {
15504
+ ui: {
15505
+ widget: 'myColor',
15506
+ },
15507
+ }),
15508
+ __metadata("design:type", String)
15509
+ ], exports.ɵcz.prototype, "stroke", void 0);
15510
+ __decorate([
15511
+ bbjWidgetBase.Property('描边粗细', { type: 'integer' }),
15512
+ __metadata("design:type", Number)
15513
+ ], exports.ɵcz.prototype, "strokeWidth", void 0);
15514
+ __decorate([
15515
+ bbjWidgetBase.Property('阴影', { ui: { widget: 'myShadow' } }),
15516
+ __metadata("design:type", Object)
15517
+ ], exports.ɵcz.prototype, "shadow", void 0);
15442
15518
  __decorate([
15443
15519
  bbjWidgetBase.Property('标签偏移x', { ui: { widget: 'number', visibleIf: { showLabel: [true] } } }),
15444
15520
  __metadata("design:type", Number)
@@ -18060,7 +18136,14 @@
18060
18136
 
18061
18137
  exports.ɵdn = /** @class */ (function () {
18062
18138
  function GaugeProgressComponent() {
18063
- this.numfont = { family: 'Microsoft YaHei', color: '#ffffff', weight: 'normal', size: 21, space: 0, lineHeight: '20' };
18139
+ this.numfont = {
18140
+ family: 'Microsoft YaHei',
18141
+ color: '#ffffff',
18142
+ weight: 'normal',
18143
+ size: 21,
18144
+ space: 0,
18145
+ lineHeight: '20',
18146
+ };
18064
18147
  this.slidesPerView = 1;
18065
18148
  this.spaceBetween = 0;
18066
18149
  this.navigation = true;
@@ -18071,7 +18154,7 @@
18071
18154
  this.cardBgImg = null;
18072
18155
  this.navigationBtnConfig = {
18073
18156
  prevEl: '.swiper-navigation-prev',
18074
- nextEl: '.swiper-navigation-next'
18157
+ nextEl: '.swiper-navigation-next',
18075
18158
  };
18076
18159
  //========================================
18077
18160
  this.seriesColor = { gradient: false, value: [['#6D7597', '#6D7597']] };
@@ -18111,79 +18194,82 @@
18111
18194
  GaugeProgressComponent.prototype.ngOnChanges = function (changes) {
18112
18195
  var _this = this;
18113
18196
  if (changes._data) {
18114
- if (this._data.length <= this.slidesPerView) {
18115
- this.navigation = false;
18116
- }
18117
- this._data.forEach(function (e) {
18118
- var sourceData = [];
18119
- sourceData.push(e);
18120
- var chartOption = {
18121
- series: [
18122
- {
18123
- // name: this.title,
18124
- type: 'gauge',
18125
- startAngle: _this.startAngle,
18126
- endAngle: _this.endAngle,
18127
- progress: {
18128
- show: e.value && Number(e.value) > 0 ? true : false,
18129
- overlap: false,
18130
- roundCap: true,
18131
- clip: false,
18132
- itemStyle: {
18133
- borderWidth: 1,
18134
- color: _this.getColor(_this.progressColor, 'progress'),
18135
- shadowColor: _this.progressShadow,
18136
- shadowBlur: 5
18137
- }
18138
- },
18139
- detail: {
18140
- show: _this.labelVal,
18141
- formatter: _this.percent ? '' + ((e.value / _this.max) * 100).toFixed(2) + '%' : '{value}',
18142
- color: _this.numFont.color,
18143
- fontFamily: _this.numFont.family,
18144
- fontWeight: _this.numFont.weight,
18145
- fontSize: _this.numFont.size,
18146
- lineHeight: _this.numFont.lineHeight,
18147
- offsetCenter: [0, _this.labelValOffset + "%"],
18148
- },
18149
- data: sourceData,
18150
- title: {
18151
- show: _this.label,
18152
- color: _this.font.color,
18153
- fontFamily: _this.font.family,
18154
- fontWeight: _this.font.weight,
18155
- fontSize: _this.font.size,
18156
- lineHeight: _this.font.lineHeight,
18157
- offsetCenter: [0, _this.labelOffset + "%"],
18158
- overflow: 'breakAll',
18159
- width: _this.labelWidth
18160
- },
18161
- axisLine: {
18162
- roundCap: true,
18163
- lineStyle: {
18164
- width: _this.width,
18165
- color: _this.getColor(_this.seriesColor)
18197
+ this.data = [];
18198
+ if (this._data) {
18199
+ if (this._data.length <= this.slidesPerView) {
18200
+ this.navigation = false;
18201
+ }
18202
+ this._data.forEach(function (e) {
18203
+ var sourceData = [];
18204
+ sourceData.push(e);
18205
+ var chartOption = {
18206
+ series: [
18207
+ {
18208
+ // name: this.title,
18209
+ type: 'gauge',
18210
+ startAngle: _this.startAngle,
18211
+ endAngle: _this.endAngle,
18212
+ progress: {
18213
+ show: e.value && Number(e.value) > 0 ? true : false,
18214
+ overlap: false,
18215
+ roundCap: true,
18216
+ clip: false,
18217
+ itemStyle: {
18218
+ borderWidth: 1,
18219
+ color: _this.getColor(_this.progressColor, 'progress'),
18220
+ shadowColor: _this.progressShadow,
18221
+ shadowBlur: 5,
18222
+ },
18223
+ },
18224
+ detail: {
18225
+ show: _this.labelVal,
18226
+ formatter: _this.percent ? '' + ((e.value / _this.max) * 100).toFixed(2) + '%' : '{value}',
18227
+ color: _this.numFont.color,
18228
+ fontFamily: _this.numFont.family,
18229
+ fontWeight: _this.numFont.weight,
18230
+ fontSize: _this.numFont.size,
18231
+ lineHeight: _this.numFont.lineHeight,
18232
+ offsetCenter: [0, _this.labelValOffset + "%"],
18233
+ },
18234
+ data: sourceData,
18235
+ title: {
18236
+ show: _this.label,
18237
+ color: _this.font.color,
18238
+ fontFamily: _this.font.family,
18239
+ fontWeight: _this.font.weight,
18240
+ fontSize: _this.font.size,
18241
+ lineHeight: _this.font.lineHeight,
18242
+ offsetCenter: [0, _this.labelOffset + "%"],
18243
+ overflow: 'breakAll',
18244
+ width: _this.labelWidth,
18245
+ },
18246
+ axisLine: {
18247
+ roundCap: true,
18248
+ lineStyle: {
18249
+ width: _this.width,
18250
+ color: _this.getColor(_this.seriesColor),
18251
+ },
18252
+ },
18253
+ max: _this.max,
18254
+ min: _this.min,
18255
+ axisLabel: {
18256
+ show: false,
18257
+ },
18258
+ splitLine: {
18259
+ show: false,
18260
+ },
18261
+ axisTick: {
18262
+ show: false,
18263
+ },
18264
+ pointer: {
18265
+ show: false,
18166
18266
  },
18167
18267
  },
18168
- max: _this.max,
18169
- min: _this.min,
18170
- axisLabel: {
18171
- show: false
18172
- },
18173
- splitLine: {
18174
- show: false
18175
- },
18176
- axisTick: {
18177
- show: false
18178
- },
18179
- pointer: {
18180
- show: false
18181
- },
18182
- },
18183
- ],
18184
- };
18185
- _this.data.push(chartOption);
18186
- });
18268
+ ],
18269
+ };
18270
+ _this.data.push(chartOption);
18271
+ });
18272
+ }
18187
18273
  // console.log(this._data[0].value,this._data[0].value && Number(this._data[0].value) !== 0 ? true : false)
18188
18274
  // console.log(JSON.stringify(this.chartOption));
18189
18275
  }
@@ -18253,7 +18339,7 @@
18253
18339
  type: 'string',
18254
18340
  ui: {
18255
18341
  widget: 'myUpload',
18256
- }
18342
+ },
18257
18343
  }),
18258
18344
  __metadata("design:type", Object)
18259
18345
  ], exports.ɵdn.prototype, "navigationLeftIcon", void 0);
@@ -18262,16 +18348,14 @@
18262
18348
  type: 'string',
18263
18349
  ui: {
18264
18350
  widget: 'myUpload',
18265
- }
18351
+ },
18266
18352
  }),
18267
18353
  __metadata("design:type", Object)
18268
18354
  ], exports.ɵdn.prototype, "navigationRightIcon", void 0);
18269
18355
  __decorate([
18270
18356
  bbjWidgetBase.Property('显示模式', {
18271
18357
  ui: { widget: 'select' },
18272
- enum: [
18273
- { label: '图标卡片', value: 'card' },
18274
- ],
18358
+ enum: [{ label: '图标卡片', value: 'card' }],
18275
18359
  }),
18276
18360
  __metadata("design:type", Object)
18277
18361
  ], exports.ɵdn.prototype, "showType", void 0);
@@ -18372,7 +18456,7 @@
18372
18456
  bbjWidgetBase.Property('进度颜色', {
18373
18457
  ui: {
18374
18458
  widget: 'seriesColor',
18375
- type: 'gradual'
18459
+ type: 'gradual',
18376
18460
  },
18377
18461
  }),
18378
18462
  __metadata("design:type", Object)
@@ -18381,7 +18465,7 @@
18381
18465
  bbjWidgetBase.Property('进度阴影', {
18382
18466
  ui: {
18383
18467
  widget: 'myColor',
18384
- example: ['#ffffff', '#F5A623', '#F8E71C', '#50E3C2', '#3285FF', '#B45FFF', '#9B9B9B', null]
18468
+ example: ['#ffffff', '#F5A623', '#F8E71C', '#50E3C2', '#3285FF', '#B45FFF', '#9B9B9B', null],
18385
18469
  },
18386
18470
  }),
18387
18471
  __metadata("design:type", Object)