bbj-screen-widget 2.4.53 → 2.4.55

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.
@@ -13,7 +13,6 @@ import { FormsModule } from '@angular/forms';
13
13
  import { NzCheckboxModule } from 'ng-zorro-antd/checkbox';
14
14
  import { NzSelectModule } from 'ng-zorro-antd/select';
15
15
  import { NzButtonModule } from 'ng-zorro-antd/button';
16
- import { NzDividerModule } from 'ng-zorro-antd/divider';
17
16
  import { NzInputModule } from 'ng-zorro-antd/input';
18
17
  import { NzPipesModule } from 'ng-zorro-antd/pipes';
19
18
  import { NzRadioModule } from 'ng-zorro-antd/radio';
@@ -1757,7 +1756,7 @@ let SelectComponent = class SelectComponent {
1757
1756
  SelectComponent.decorators = [
1758
1757
  { type: Component, args: [{
1759
1758
  selector: 'sc-select',
1760
- template: "<nz-select\n class=\"select-wrap\"\n [ngClass]=\"align\"\n [ngModel]=\"selectedValue\"\n [nzMode]=\"mode\"\n [nzMaxTagCount]=\"num\"\n [nzDropdownClassName]=\"'dropDown'\"\n [ngStyle]=\"ngStyle\"\n [nzDropdownStyle]=\"dropdownStyle\"\n [nzDropdownClassName]=\"'selectComp'\"\n [nzDropdownRender]=\"renderTemplate\"\n [nzShowSearch]=\"showSearch\"\n (ngModelChange)=\"selectChange($event)\"\n [nzAllowClear]=\"showClean\"\n [nzPlaceHolder]=\"hint\"\n [(nzOpen)]=\"open\"\n>\n <nz-option\n *ngFor=\"let item of options\"\n [nzValue]=\"item.value ? item.value : item.label\"\n [nzLabel]=\"item.label\"\n ></nz-option>\n</nz-select>\n<ng-template #renderTemplate>\n <nz-divider></nz-divider>\n <div *ngIf=\"options && options.length > 0 && mode === 'multiple'\" class=\"select-footer\">\n <button nz-button (click)=\"selectAllData()\">\u5168\u9009</button>\n <button nz-button *ngIf=\"showClean\" (click)=\"selectChange(null)\">\u6E05\u7A7A</button>\n <button nz-button *ngIf=\"showConfirm\" (click)=\"open = false\">\u67E5\u770B</button>\n </div>\n</ng-template>\n",
1759
+ template: "<nz-select\n class=\"select-wrap\"\n [ngClass]=\"align\"\n [ngModel]=\"selectedValue\"\n [nzMode]=\"mode\"\n [nzMaxTagCount]=\"num\"\n [nzDropdownClassName]=\"'dropDown'\"\n [ngStyle]=\"ngStyle\"\n [nzDropdownStyle]=\"dropdownStyle\"\n [nzDropdownClassName]=\"'selectComp'\"\n [nzDropdownRender]=\"renderTemplate\"\n [nzShowSearch]=\"showSearch\"\n (ngModelChange)=\"selectChange($event)\"\n [nzAllowClear]=\"showClean\"\n [nzPlaceHolder]=\"hint\"\n [(nzOpen)]=\"open\"\n>\n <nz-option\n *ngFor=\"let item of options\"\n [nzValue]=\"item.value ? item.value : item.label\"\n [nzLabel]=\"item.label\"\n ></nz-option>\n</nz-select>\n<ng-template #renderTemplate>\n <div *ngIf=\"options && options.length > 0 && mode === 'multiple'\" class=\"select-footer\">\n <button nz-button (click)=\"selectAllData()\">\u5168\u9009</button>\n <button nz-button *ngIf=\"showClean\" (click)=\"selectChange(null)\">\u6E05\u7A7A</button>\n <button nz-button *ngIf=\"showConfirm\" (click)=\"open = false\">\u67E5\u770B</button>\n </div>\n</ng-template>\n",
1761
1760
  styles: [":host{display:inline-block}:host,:host ::ng-deep .ant-select{width:100%;height:100%}:host ::ng-deep .ant-select.center .ant-select-selection-item{justify-content:center}:host ::ng-deep .ant-select.right .ant-select-selection-item{justify-content:flex-end}:host ::ng-deep .ant-select-selection-item{display:flex;align-items:center}:host ::ng-deep .ant-select-single:not(.ant-select-customize-input) .ant-select-selector{background-color:inherit;border:0;height:100%;box-shadow:none!important}:host ::ng-deep .ant-select-single:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input{height:100%}:host ::ng-deep .ant-select-arrow,:host ::ng-deep .ant-select-item,:host ::ng-deep .ant-select-item-empty{color:inherit}:host ::ng-deep .ant-select-single.ant-select-show-arrow .ant-select-selection-item,:host ::ng-deep .ant-select-single.ant-select-show-arrow .ant-select-selection-placeholder{line-height:inherit}.select-allCheck:hover{background-color:#f8f8f8}.select-allCheck{display:flex;align-items:center;border-top:1px solid #eee;justify-content:flex-end;height:32px;padding:5px 12px;font-size:14px;position:relative;line-height:22px;font-weight:400;color:#333}.select-allCheck span{flex:1}.select-allCheck p{line-height:32px}:host ::ng-deep ::-webkit-scrollbar{width:2px}::ng-deep .selectComp .cdk-virtual-scroll-viewport::-webkit-scrollbar{width:0}::ng-deep .selectComp .ant-select-item-option{color:inherit;font-size:12px}::ng-deep .selectComp .ant-select-item-option-active{background:var(--selectHoverBackgroundColor);color:var(--selectHoverColor)}::ng-deep .selectComp .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background:var(--dropdownBackgroundColor);color:var(--selectDropDownColor)}::ng-deep .selectComp .ant-select-dropdown{background-color:transparent}.select-footer{padding:8px}"]
1762
1761
  },] }
1763
1762
  ];
@@ -1969,7 +1968,7 @@ class SelectModule {
1969
1968
  SelectModule.decorators = [
1970
1969
  { type: NgModule, args: [{
1971
1970
  declarations: [SelectComponent],
1972
- imports: [CommonModule, WidgetBaseModule, NzSelectModule, FormsModule, NzButtonModule, NzDividerModule],
1971
+ imports: [CommonModule, WidgetBaseModule, NzSelectModule, FormsModule, NzButtonModule],
1973
1972
  },] }
1974
1973
  ];
1975
1974
  SelectModule.ctorParameters = () => [
@@ -3117,7 +3116,7 @@ let WordartComponent = class WordartComponent {
3117
3116
  WordartComponent.decorators = [
3118
3117
  { type: Component, args: [{
3119
3118
  selector: 'sc-wordart',
3120
- 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>",
3121
3120
  styles: [".text{display:inline-block}.gradual{-webkit-background-clip:text;-webkit-text-fill-color:transparent}:host{display:inline-block;width:100%;height:100%}"]
3122
3121
  },] }
3123
3122
  ];
@@ -7783,6 +7782,7 @@ let ShufflingListComponent = class ShufflingListComponent {
7783
7782
  }
7784
7783
  }
7785
7784
  updateColumns() {
7785
+ var _a;
7786
7786
  this.columns = [];
7787
7787
  let keys;
7788
7788
  if (this.schema && this.schema.properties) {
@@ -7812,7 +7812,7 @@ let ShufflingListComponent = class ShufflingListComponent {
7812
7812
  const cellStyle = {};
7813
7813
  const column = { index: key, title, headStyle, cellStyle };
7814
7814
  const titleStyle = titleStyleMap[key];
7815
- if (this.titleStyle.length && (titleStyle == null || !titleStyle.show)) {
7815
+ if (((_a = this.titleStyle) === null || _a === void 0 ? void 0 : _a.length) && (titleStyle == null || !titleStyle.show)) {
7816
7816
  continue;
7817
7817
  }
7818
7818
  let width;
@@ -9174,6 +9174,7 @@ let PlanimetricMap2dComponent = PlanimetricMap2dComponent_1 = class PlanimetricM
9174
9174
  this._children = [];
9175
9175
  this.loadedMap = {};
9176
9176
  this.stack = [];
9177
+ this.renderer = 'svg';
9177
9178
  }
9178
9179
  ngOnChanges(changes) {
9179
9180
  if (changes.data) {
@@ -9208,6 +9209,7 @@ let PlanimetricMap2dComponent = PlanimetricMap2dComponent_1 = class PlanimetricM
9208
9209
  // this.loadMap(this.mapStyle).then((data) => {
9209
9210
  let series = [];
9210
9211
  this.visualMap = [];
9212
+ this.renderer = 'svg';
9211
9213
  this._children.forEach((child) => {
9212
9214
  if (child.type === 'visual') {
9213
9215
  // series = child.series;
@@ -9230,6 +9232,8 @@ let PlanimetricMap2dComponent = PlanimetricMap2dComponent_1 = class PlanimetricM
9230
9232
  series.forEach((layer, index) => {
9231
9233
  if (layer.type === 'lines') {
9232
9234
  delete layer.coordinateSystem;
9235
+ // 飞线层不支持svg渲染
9236
+ this.renderer = 'canvas';
9233
9237
  }
9234
9238
  if (layer.type === 'scatter') {
9235
9239
  layer.coordinateSystem = 'geo';
@@ -9463,7 +9467,7 @@ let PlanimetricMap2dComponent = PlanimetricMap2dComponent_1 = class PlanimetricM
9463
9467
  PlanimetricMap2dComponent.decorators = [
9464
9468
  { type: Component, args: [{
9465
9469
  selector: 'sc-planimetric-map2d',
9466
- 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<!-- -->",
9470
+ 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",
9467
9471
  providers: [{ provide: ParentContainerComponent, useExisting: forwardRef(() => PlanimetricMap2dComponent_1) }],
9468
9472
  styles: [".demo-chart,:host{height:100%}:host{display:block;width:100%}"]
9469
9473
  },] }
@@ -14108,6 +14112,7 @@ let BaiduMarkerLayerComponent = class BaiduMarkerLayerComponent extends BaseLaye
14108
14112
  space: 0,
14109
14113
  lineHeight: 0,
14110
14114
  };
14115
+ this.shadow = { color: '', X: 0, Y: 0, Z: 0 };
14111
14116
  this.unselectOnClickBlank = true;
14112
14117
  this.groups = [];
14113
14118
  this._data = [
@@ -14177,7 +14182,23 @@ let BaiduMarkerLayerComponent = class BaiduMarkerLayerComponent extends BaseLaye
14177
14182
  // color: '#fff',
14178
14183
  // fontFamily: 'Microsoft Yahei',
14179
14184
  // fontSize: 14,
14180
- flat: false, collides: true, offset: [this.labelOffsetX || 0, this.labelOffsetY || 0], padding: [2, 2], margin: [0, 0] });
14185
+ flat: false, collides: true, offset: [this.labelOffsetX || 0, this.labelOffsetY || 0], stroke: {
14186
+ color: this.stroke,
14187
+ }, padding: [2, 2], margin: [0, 0] });
14188
+ if (this.stroke && this.stroke !== 'rgba(0,0,0,0)') {
14189
+ textOptions.stroke = { color: this.stroke };
14190
+ }
14191
+ if (this.strokeWidth) {
14192
+ textOptions.lineWidth = this.strokeWidth;
14193
+ }
14194
+ if (this.shadow) {
14195
+ textOptions.shadow = {
14196
+ color: this.shadow.color,
14197
+ blur: this.shadow.Z,
14198
+ offsetX: this.shadow.X,
14199
+ offsetY: this.shadow.Y,
14200
+ };
14201
+ }
14181
14202
  this.textLayer = new mapvgl.TextLayer(textOptions);
14182
14203
  if (this.showLabelMinZoom != null) {
14183
14204
  this.parent.init$.then(() => {
@@ -14361,6 +14382,20 @@ let BaiduMarkerLayerComponent = class BaiduMarkerLayerComponent extends BaseLaye
14361
14382
  textOptions.fontFamily = font.family;
14362
14383
  if (font.color)
14363
14384
  textOptions.color = font.color;
14385
+ // switch (font.weight) {
14386
+ // case 'lighter':
14387
+ // textOptions.lineWidth = 1;
14388
+ // break;
14389
+ // case 'normal':
14390
+ // textOptions.lineWidth = 2;
14391
+ // break;
14392
+ // case 'bold':
14393
+ // textOptions.lineWidth = 3;
14394
+ // break;
14395
+ // case 'bolder':
14396
+ // textOptions.lineWidth = 4;
14397
+ // break;
14398
+ // }
14364
14399
  }
14365
14400
  return textOptions;
14366
14401
  }
@@ -14581,6 +14616,22 @@ __decorate([
14581
14616
  Property('标签字体', { ui: { widget: 'myFont', visibleIf: { showLabel: [true] } } }),
14582
14617
  __metadata("design:type", Object)
14583
14618
  ], BaiduMarkerLayerComponent.prototype, "labelFont", void 0);
14619
+ __decorate([
14620
+ Property('描边颜色', {
14621
+ ui: {
14622
+ widget: 'myColor',
14623
+ },
14624
+ }),
14625
+ __metadata("design:type", String)
14626
+ ], BaiduMarkerLayerComponent.prototype, "stroke", void 0);
14627
+ __decorate([
14628
+ Property('描边粗细', { type: 'integer' }),
14629
+ __metadata("design:type", Number)
14630
+ ], BaiduMarkerLayerComponent.prototype, "strokeWidth", void 0);
14631
+ __decorate([
14632
+ Property('阴影', { ui: { widget: 'myShadow' } }),
14633
+ __metadata("design:type", Object)
14634
+ ], BaiduMarkerLayerComponent.prototype, "shadow", void 0);
14584
14635
  __decorate([
14585
14636
  Property('标签偏移x', { ui: { widget: 'number', visibleIf: { showLabel: [true] } } }),
14586
14637
  __metadata("design:type", Number)
@@ -17110,7 +17161,14 @@ MultiTitleGaugeModule.ctorParameters = () => [
17110
17161
 
17111
17162
  let GaugeProgressComponent = class GaugeProgressComponent {
17112
17163
  constructor() {
17113
- this.numfont = { family: 'Microsoft YaHei', color: '#ffffff', weight: 'normal', size: 21, space: 0, lineHeight: '20' };
17164
+ this.numfont = {
17165
+ family: 'Microsoft YaHei',
17166
+ color: '#ffffff',
17167
+ weight: 'normal',
17168
+ size: 21,
17169
+ space: 0,
17170
+ lineHeight: '20',
17171
+ };
17114
17172
  this.slidesPerView = 1;
17115
17173
  this.spaceBetween = 0;
17116
17174
  this.navigation = true;
@@ -17121,7 +17179,7 @@ let GaugeProgressComponent = class GaugeProgressComponent {
17121
17179
  this.cardBgImg = null;
17122
17180
  this.navigationBtnConfig = {
17123
17181
  prevEl: '.swiper-navigation-prev',
17124
- nextEl: '.swiper-navigation-next'
17182
+ nextEl: '.swiper-navigation-next',
17125
17183
  };
17126
17184
  //========================================
17127
17185
  this.seriesColor = { gradient: false, value: [['#6D7597', '#6D7597']] };
@@ -17160,79 +17218,82 @@ let GaugeProgressComponent = class GaugeProgressComponent {
17160
17218
  }
17161
17219
  ngOnChanges(changes) {
17162
17220
  if (changes._data) {
17163
- if (this._data.length <= this.slidesPerView) {
17164
- this.navigation = false;
17165
- }
17166
- this._data.forEach((e) => {
17167
- let sourceData = [];
17168
- sourceData.push(e);
17169
- let chartOption = {
17170
- series: [
17171
- {
17172
- // name: this.title,
17173
- type: 'gauge',
17174
- startAngle: this.startAngle,
17175
- endAngle: this.endAngle,
17176
- progress: {
17177
- show: e.value && Number(e.value) > 0 ? true : false,
17178
- overlap: false,
17179
- roundCap: true,
17180
- clip: false,
17181
- itemStyle: {
17182
- borderWidth: 1,
17183
- color: this.getColor(this.progressColor, 'progress'),
17184
- shadowColor: this.progressShadow,
17185
- shadowBlur: 5
17186
- }
17187
- },
17188
- detail: {
17189
- show: this.labelVal,
17190
- formatter: this.percent ? '' + ((e.value / this.max) * 100).toFixed(2) + '%' : '{value}',
17191
- color: this.numFont.color,
17192
- fontFamily: this.numFont.family,
17193
- fontWeight: this.numFont.weight,
17194
- fontSize: this.numFont.size,
17195
- lineHeight: this.numFont.lineHeight,
17196
- offsetCenter: [0, `${this.labelValOffset}%`],
17197
- },
17198
- data: sourceData,
17199
- title: {
17200
- show: this.label,
17201
- color: this.font.color,
17202
- fontFamily: this.font.family,
17203
- fontWeight: this.font.weight,
17204
- fontSize: this.font.size,
17205
- lineHeight: this.font.lineHeight,
17206
- offsetCenter: [0, `${this.labelOffset}%`],
17207
- overflow: 'breakAll',
17208
- width: this.labelWidth
17209
- },
17210
- axisLine: {
17211
- roundCap: true,
17212
- lineStyle: {
17213
- width: this.width,
17214
- color: this.getColor(this.seriesColor)
17221
+ this.data = [];
17222
+ if (this._data) {
17223
+ if (this._data.length <= this.slidesPerView) {
17224
+ this.navigation = false;
17225
+ }
17226
+ this._data.forEach((e) => {
17227
+ let sourceData = [];
17228
+ sourceData.push(e);
17229
+ let chartOption = {
17230
+ series: [
17231
+ {
17232
+ // name: this.title,
17233
+ type: 'gauge',
17234
+ startAngle: this.startAngle,
17235
+ endAngle: this.endAngle,
17236
+ progress: {
17237
+ show: e.value && Number(e.value) > 0 ? true : false,
17238
+ overlap: false,
17239
+ roundCap: true,
17240
+ clip: false,
17241
+ itemStyle: {
17242
+ borderWidth: 1,
17243
+ color: this.getColor(this.progressColor, 'progress'),
17244
+ shadowColor: this.progressShadow,
17245
+ shadowBlur: 5,
17246
+ },
17247
+ },
17248
+ detail: {
17249
+ show: this.labelVal,
17250
+ formatter: this.percent ? '' + ((e.value / this.max) * 100).toFixed(2) + '%' : '{value}',
17251
+ color: this.numFont.color,
17252
+ fontFamily: this.numFont.family,
17253
+ fontWeight: this.numFont.weight,
17254
+ fontSize: this.numFont.size,
17255
+ lineHeight: this.numFont.lineHeight,
17256
+ offsetCenter: [0, `${this.labelValOffset}%`],
17257
+ },
17258
+ data: sourceData,
17259
+ title: {
17260
+ show: this.label,
17261
+ color: this.font.color,
17262
+ fontFamily: this.font.family,
17263
+ fontWeight: this.font.weight,
17264
+ fontSize: this.font.size,
17265
+ lineHeight: this.font.lineHeight,
17266
+ offsetCenter: [0, `${this.labelOffset}%`],
17267
+ overflow: 'breakAll',
17268
+ width: this.labelWidth,
17269
+ },
17270
+ axisLine: {
17271
+ roundCap: true,
17272
+ lineStyle: {
17273
+ width: this.width,
17274
+ color: this.getColor(this.seriesColor),
17275
+ },
17276
+ },
17277
+ max: this.max,
17278
+ min: this.min,
17279
+ axisLabel: {
17280
+ show: false,
17281
+ },
17282
+ splitLine: {
17283
+ show: false,
17284
+ },
17285
+ axisTick: {
17286
+ show: false,
17287
+ },
17288
+ pointer: {
17289
+ show: false,
17215
17290
  },
17216
17291
  },
17217
- max: this.max,
17218
- min: this.min,
17219
- axisLabel: {
17220
- show: false
17221
- },
17222
- splitLine: {
17223
- show: false
17224
- },
17225
- axisTick: {
17226
- show: false
17227
- },
17228
- pointer: {
17229
- show: false
17230
- },
17231
- },
17232
- ],
17233
- };
17234
- this.data.push(chartOption);
17235
- });
17292
+ ],
17293
+ };
17294
+ this.data.push(chartOption);
17295
+ });
17296
+ }
17236
17297
  // console.log(this._data[0].value,this._data[0].value && Number(this._data[0].value) !== 0 ? true : false)
17237
17298
  // console.log(JSON.stringify(this.chartOption));
17238
17299
  }
@@ -17242,7 +17303,7 @@ let GaugeProgressComponent = class GaugeProgressComponent {
17242
17303
  const color = [];
17243
17304
  const color1 = [];
17244
17305
  const colorInfo = colorBox && colorBox.value ? colorBox.value : colorBox;
17245
- colorInfo.forEach(item => {
17306
+ colorInfo.forEach((item) => {
17246
17307
  color.push({
17247
17308
  type: 'linear',
17248
17309
  x: 0,
@@ -17301,7 +17362,7 @@ __decorate([
17301
17362
  type: 'string',
17302
17363
  ui: {
17303
17364
  widget: 'myUpload',
17304
- }
17365
+ },
17305
17366
  }),
17306
17367
  __metadata("design:type", Object)
17307
17368
  ], GaugeProgressComponent.prototype, "navigationLeftIcon", void 0);
@@ -17310,16 +17371,14 @@ __decorate([
17310
17371
  type: 'string',
17311
17372
  ui: {
17312
17373
  widget: 'myUpload',
17313
- }
17374
+ },
17314
17375
  }),
17315
17376
  __metadata("design:type", Object)
17316
17377
  ], GaugeProgressComponent.prototype, "navigationRightIcon", void 0);
17317
17378
  __decorate([
17318
17379
  Property('显示模式', {
17319
17380
  ui: { widget: 'select' },
17320
- enum: [
17321
- { label: '图标卡片', value: 'card' },
17322
- ],
17381
+ enum: [{ label: '图标卡片', value: 'card' }],
17323
17382
  }),
17324
17383
  __metadata("design:type", Object)
17325
17384
  ], GaugeProgressComponent.prototype, "showType", void 0);
@@ -17420,7 +17479,7 @@ __decorate([
17420
17479
  Property('进度颜色', {
17421
17480
  ui: {
17422
17481
  widget: 'seriesColor',
17423
- type: 'gradual'
17482
+ type: 'gradual',
17424
17483
  },
17425
17484
  }),
17426
17485
  __metadata("design:type", Object)
@@ -17429,7 +17488,7 @@ __decorate([
17429
17488
  Property('进度阴影', {
17430
17489
  ui: {
17431
17490
  widget: 'myColor',
17432
- example: ['#ffffff', '#F5A623', '#F8E71C', '#50E3C2', '#3285FF', '#B45FFF', '#9B9B9B', null]
17491
+ example: ['#ffffff', '#F5A623', '#F8E71C', '#50E3C2', '#3285FF', '#B45FFF', '#9B9B9B', null],
17433
17492
  },
17434
17493
  }),
17435
17494
  __metadata("design:type", Object)