bbj-screen-widget 2.4.57 → 2.4.59
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/bbj-screen-widget.metadata.json +1 -1
- package/bundles/bbj-screen-widget.umd.js +101 -74
- package/bundles/bbj-screen-widget.umd.js.map +1 -1
- package/bundles/bbj-screen-widget.umd.min.js +1 -1
- package/bundles/bbj-screen-widget.umd.min.js.map +1 -1
- package/esm2015/lib/calendar/background-events/background-events.component.js +3 -1
- package/esm2015/lib/calendar/calendar-events-child.js +1 -8
- package/esm2015/lib/calendar/calendar.component.js +26 -8
- package/esm2015/lib/calendar/calendar.util.js +12 -0
- package/esm2015/lib/calendar/events/events.component.js +6 -2
- package/esm2015/lib/gauge-progress/gauge-progress.component.js +3 -3
- package/esm2015/lib/gauge-progress/gauge.module.js +5 -4
- package/esm2015/lib/iframe/iframe.component.js +2 -2
- package/esm2015/lib/item-swiper/item-swiper.component.js +42 -33
- package/esm2015/lib/item-swiper/item-swiper.module.js +6 -12
- package/esm2015/lib/screen-widget.module.js +3 -3
- package/esm2015/lib/tabs/tabs.component.js +2 -2
- package/esm2015/lib/temporary-data/temporary-data.component.js +2 -2
- package/esm2015/lib/video-grid/video-grid.component.js +2 -2
- package/esm2015/lib/workbench-widget.module.js +3 -3
- package/fesm2015/bbj-screen-widget.js +98 -70
- package/fesm2015/bbj-screen-widget.js.map +1 -1
- package/lib/calendar/calendar-events-child.d.ts +1 -2
- package/lib/calendar/calendar.component.d.ts +5 -1
- package/lib/calendar/calendar.util.d.ts +6 -0
- package/lib/gauge-progress/gauge.module.d.ts +1 -0
- package/lib/item-swiper/item-swiper.module.d.ts +1 -0
- package/package.json +2 -2
- package/src/assets/img/screen/bulletin-board.png +0 -0
- package/src/assets/img/screen/tabs.png +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('bbj-screen-widget/core'), require('@angular/common/http'), require('@delon/util'), require('@delon/util/other'), require('@angular/common'), require('bbj-widget-base'), require('ngx-echarts'), require('ng-zorro-antd/icon'), require('@angular/forms'), require('ng-zorro-antd/checkbox'), require('ng-zorro-antd/select'), require('ng-zorro-antd/button'), require('ng-zorro-antd/input'), require('ng-zorro-antd/pipes'), require('ng-zorro-antd/radio'), require('ng-zorro-antd/rate'), require('ng-zorro-antd/slider'), require('echarts-gl'), require('ng-zorro-antd/core/resize-observers'), require('rxjs'), require('rxjs/operators'), require('echarts-liquidfill'), require('ng-zorro-antd/tooltip'), require('echarts'), require('ng-zorro-antd/tree'), require('ng-zorro-antd/core/highlight'), require('date-fns'), require('ng-zorro-antd/i18n'), require('date-fns/fp'), require('ng-zorro-antd/date-picker'), require('ng-zorro-antd/time-picker'), require('ng-zorro-antd/dropdown'), require('@angular/cdk/scrolling'), require('uuid'), require('ng-zorro-antd/core/no-animation'), require('ng-zorro-antd/message'), require('ng-zorro-antd/upload'), require('ng-zorro-antd/table'), require('swiper/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('bbj-screen-widget', ['exports', '@angular/core', 'bbj-screen-widget/core', '@angular/common/http', '@delon/util', '@delon/util/other', '@angular/common', 'bbj-widget-base', 'ngx-echarts', 'ng-zorro-antd/icon', '@angular/forms', 'ng-zorro-antd/checkbox', 'ng-zorro-antd/select', 'ng-zorro-antd/button', 'ng-zorro-antd/input', 'ng-zorro-antd/pipes', 'ng-zorro-antd/radio', 'ng-zorro-antd/rate', 'ng-zorro-antd/slider', 'echarts-gl', 'ng-zorro-antd/core/resize-observers', 'rxjs', 'rxjs/operators', 'echarts-liquidfill', 'ng-zorro-antd/tooltip', 'echarts', 'ng-zorro-antd/tree', 'ng-zorro-antd/core/highlight', 'date-fns', 'ng-zorro-antd/i18n', 'date-fns/fp', 'ng-zorro-antd/date-picker', 'ng-zorro-antd/time-picker', 'ng-zorro-antd/dropdown', '@angular/cdk/scrolling', 'uuid', 'ng-zorro-antd/core/no-animation', 'ng-zorro-antd/message', 'ng-zorro-antd/upload', 'ng-zorro-antd/table', 'swiper/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['bbj-screen-widget'] = {}, global.ng.core, global['bbj-screen-widget'].core, global.ng.common.http, global['@delon/util'], global['@delon/util/other'], global.ng.common, global['bbj-widget-base'], global['ngx-echarts'], global['ng-zorro-antd/icon'], global.ng.forms, global['ng-zorro-antd/checkbox'], global['ng-zorro-antd/select'], global['ng-zorro-antd/button'], global['ng-zorro-antd/input'], global['ng-zorro-antd/pipes'], global['ng-zorro-antd/radio'], global['ng-zorro-antd/rate'], global['ng-zorro-antd/slider'], null, global['ng-zorro-antd/core/resize-observers'], global.rxjs, global.rxjs.operators, null, global['ng-zorro-antd/tooltip'], global.echarts, global['ng-zorro-antd/tree'], global['ng-zorro-antd/core/highlight'], global['date-fns'], global['ng-zorro-antd/i18n'], global['date-fns/fp'], global['ng-zorro-antd/date-picker'], global['ng-zorro-antd/time-picker'], global['ng-zorro-antd/dropdown'], global.ng.cdk.scrolling, global.uuid, global['ng-zorro-antd/core/no-animation'], global['ng-zorro-antd/message'], global['ng-zorro-antd/upload'], global['ng-zorro-antd/table'],
|
|
5
|
-
}(this, (function (exports, i0, i1, i2, util, i1$1, common, bbjWidgetBase, ngxEcharts, icon, forms, checkbox, select, button, input, pipes, radio, rate, slider, echartsGl, resizeObservers, rxjs, operators, echartsLiquidfill, tooltip, echarts, tree, highlight, dateFns, i18n, fp, datePicker, timePicker, dropdown, scrolling, uuid, noAnimation, message, upload, table,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('bbj-screen-widget/core'), require('@angular/common/http'), require('@delon/util'), require('@delon/util/other'), require('@angular/common'), require('bbj-widget-base'), require('ngx-echarts'), require('ng-zorro-antd/icon'), require('@angular/forms'), require('ng-zorro-antd/checkbox'), require('ng-zorro-antd/select'), require('ng-zorro-antd/button'), require('ng-zorro-antd/input'), require('ng-zorro-antd/pipes'), require('ng-zorro-antd/radio'), require('ng-zorro-antd/rate'), require('ng-zorro-antd/slider'), require('echarts-gl'), require('ng-zorro-antd/core/resize-observers'), require('rxjs'), require('rxjs/operators'), require('echarts-liquidfill'), require('ng-zorro-antd/tooltip'), require('echarts'), require('ng-zorro-antd/tree'), require('ng-zorro-antd/core/highlight'), require('date-fns'), require('ng-zorro-antd/i18n'), require('date-fns/fp'), require('ng-zorro-antd/date-picker'), require('ng-zorro-antd/time-picker'), require('ng-zorro-antd/dropdown'), require('@angular/cdk/scrolling'), require('uuid'), require('ng-zorro-antd/core/no-animation'), require('ng-zorro-antd/message'), require('ng-zorro-antd/upload'), require('ng-zorro-antd/table'), require('swiper/swiper-element-bundle.js'), require('ng-zorro-antd/space'), require('ng-zorro-antd/grid'), require('@angular/router'), require('@fullcalendar/angular'), require('@fullcalendar/daygrid'), require('@fullcalendar/timegrid'), require('@fullcalendar/interaction'), require('ng-zorro-antd/tabs'), require('@fullcalendar/resource-timeline')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('bbj-screen-widget', ['exports', '@angular/core', 'bbj-screen-widget/core', '@angular/common/http', '@delon/util', '@delon/util/other', '@angular/common', 'bbj-widget-base', 'ngx-echarts', 'ng-zorro-antd/icon', '@angular/forms', 'ng-zorro-antd/checkbox', 'ng-zorro-antd/select', 'ng-zorro-antd/button', 'ng-zorro-antd/input', 'ng-zorro-antd/pipes', 'ng-zorro-antd/radio', 'ng-zorro-antd/rate', 'ng-zorro-antd/slider', 'echarts-gl', 'ng-zorro-antd/core/resize-observers', 'rxjs', 'rxjs/operators', 'echarts-liquidfill', 'ng-zorro-antd/tooltip', 'echarts', 'ng-zorro-antd/tree', 'ng-zorro-antd/core/highlight', 'date-fns', 'ng-zorro-antd/i18n', 'date-fns/fp', 'ng-zorro-antd/date-picker', 'ng-zorro-antd/time-picker', 'ng-zorro-antd/dropdown', '@angular/cdk/scrolling', 'uuid', 'ng-zorro-antd/core/no-animation', 'ng-zorro-antd/message', 'ng-zorro-antd/upload', 'ng-zorro-antd/table', 'swiper/swiper-element-bundle.js', 'ng-zorro-antd/space', 'ng-zorro-antd/grid', '@angular/router', '@fullcalendar/angular', '@fullcalendar/daygrid', '@fullcalendar/timegrid', '@fullcalendar/interaction', 'ng-zorro-antd/tabs', '@fullcalendar/resource-timeline'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['bbj-screen-widget'] = {}, global.ng.core, global['bbj-screen-widget'].core, global.ng.common.http, global['@delon/util'], global['@delon/util/other'], global.ng.common, global['bbj-widget-base'], global['ngx-echarts'], global['ng-zorro-antd/icon'], global.ng.forms, global['ng-zorro-antd/checkbox'], global['ng-zorro-antd/select'], global['ng-zorro-antd/button'], global['ng-zorro-antd/input'], global['ng-zorro-antd/pipes'], global['ng-zorro-antd/radio'], global['ng-zorro-antd/rate'], global['ng-zorro-antd/slider'], null, global['ng-zorro-antd/core/resize-observers'], global.rxjs, global.rxjs.operators, null, global['ng-zorro-antd/tooltip'], global.echarts, global['ng-zorro-antd/tree'], global['ng-zorro-antd/core/highlight'], global['date-fns'], global['ng-zorro-antd/i18n'], global['date-fns/fp'], global['ng-zorro-antd/date-picker'], global['ng-zorro-antd/time-picker'], global['ng-zorro-antd/dropdown'], global.ng.cdk.scrolling, global.uuid, global['ng-zorro-antd/core/no-animation'], global['ng-zorro-antd/message'], global['ng-zorro-antd/upload'], global['ng-zorro-antd/table'], null, global['ng-zorro-antd/space'], global.grid, global.ng.router, global['@fullcalendar/angular'], global['@fullcalendar/daygrid'], global['@fullcalendar/timegrid'], global['@fullcalendar/interaction'], global['ng-zorro-antd/tabs'], global['@fullcalendar/resource-timeline']));
|
|
5
|
+
}(this, (function (exports, i0, i1, i2, util, i1$1, common, bbjWidgetBase, ngxEcharts, icon, forms, checkbox, select, button, input, pipes, radio, rate, slider, echartsGl, resizeObservers, rxjs, operators, echartsLiquidfill, tooltip, echarts, tree, highlight, dateFns, i18n, fp, datePicker, timePicker, dropdown, scrolling, uuid, noAnimation, message, upload, table, swiperElementBundle_js, space, grid, router, angular, dayGridPlugin, timeGridPlugin, interactionPlugin, tabs, resourceTimelinePlugin) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
9
|
-
var SwiperCore__default = /*#__PURE__*/_interopDefaultLegacy(SwiperCore);
|
|
10
9
|
var dayGridPlugin__default = /*#__PURE__*/_interopDefaultLegacy(dayGridPlugin);
|
|
11
10
|
var timeGridPlugin__default = /*#__PURE__*/_interopDefaultLegacy(timeGridPlugin);
|
|
12
11
|
var interactionPlugin__default = /*#__PURE__*/_interopDefaultLegacy(interactionPlugin);
|
|
@@ -18339,8 +18338,8 @@
|
|
|
18339
18338
|
exports.ɵdn.decorators = [
|
|
18340
18339
|
{ type: i0.Component, args: [{
|
|
18341
18340
|
selector: 'sc-gauge-progress',
|
|
18342
|
-
template: "\n<swiper\n #swiper\n [slidesPerView]=\"slidesPerView\"\n [spaceBetween]=\"spaceBetween\"\n [navigation]=\"navigation && navigationLeftIcon && navigationRightIcon ? navigationBtnConfig : navigation\"\n class=\"swiper-no-swiping\"\n [noSwiping]=\"true\"\n>\n <
|
|
18343
|
-
styles: [":host{display:block}:host,:host ::ng-deep
|
|
18341
|
+
template: "\n<swiper-container\n #swiper\n [slidesPerView]=\"slidesPerView\"\n [spaceBetween]=\"spaceBetween\"\n [navigation]=\"navigation && navigationLeftIcon && navigationRightIcon ? navigationBtnConfig : navigation\"\n class=\"swiper-no-swiping\"\n [noSwiping]=\"true\"\n>\n <swiper-slide *ngFor=\"let item of data\">\n <!-- <div class=\"item-img\">\n <div class=\"item-val\" [ngStyle]=\"numfont\">{{ item.value }}</div>\n <img [src]=\"cardBgImg\" alt=\"\" />\n </div>\n <div [ngStyle]=\"font\">{{ item.label }}</div> -->\n <div echarts [options]=\"item\" class=\"demo-chart\" [initOpts]=\"{ renderer: 'svg' }\"></div>\n </swiper-slide>\n</swiper-container>\n<ng-container *ngIf=\"navigation && navigationLeftIcon && navigationRightIcon\">\n <div class=\"navigationbtn swiper-navigation-prev\" [style]=\"{ left: (navigationMoveVal || '-60') + 'px' }\">\n <img [src]=\"navigationLeftIcon\" alt=\"\" />\n </div>\n <div class=\"navigationbtn swiper-navigation-next\" [style]=\"{ right: (navigationMoveVal || '-60') + 'px' }\">\n <img [src]=\"navigationRightIcon\" alt=\"\" />\n </div>\n</ng-container>\n\n\n\n",
|
|
18342
|
+
styles: [":host{display:block}:host,:host ::ng-deep swiper-container{height:100%;width:100%}:host ::ng-deep swiper-slide{text-align:center;position:relative}:host ::ng-deep .item-img{position:relative}:host ::ng-deep .item-img img{display:block;width:100%}:host ::ng-deep .item-val{position:absolute;text-align:center;top:0;bottom:0;left:0;width:100%;z-index:99}:host ::ng-deep .navigationbtn{cursor:pointer;position:absolute;top:0;bottom:0;display:flex;align-items:center;outline:none}:host ::ng-deep .swiper-navigation-prev{left:-60px}:host ::ng-deep .swiper-navigation-next{right:-60px}.demo-chart{height:100%}"]
|
|
18344
18343
|
},] }
|
|
18345
18344
|
];
|
|
18346
18345
|
exports.ɵdn.ctorParameters = function () { return []; };
|
|
@@ -18529,7 +18528,8 @@
|
|
|
18529
18528
|
GaugeProgressModule.decorators = [
|
|
18530
18529
|
{ type: i0.NgModule, args: [{
|
|
18531
18530
|
declarations: [exports.ɵdn],
|
|
18532
|
-
imports: [common.CommonModule, bbjWidgetBase.WidgetBaseModule, ngxEcharts.NgxEchartsModule
|
|
18531
|
+
imports: [common.CommonModule, bbjWidgetBase.WidgetBaseModule, ngxEcharts.NgxEchartsModule],
|
|
18532
|
+
schemas: [i0.CUSTOM_ELEMENTS_SCHEMA],
|
|
18533
18533
|
},] }
|
|
18534
18534
|
];
|
|
18535
18535
|
GaugeProgressModule.ctorParameters = function () { return [
|
|
@@ -18715,23 +18715,37 @@
|
|
|
18715
18715
|
]; };
|
|
18716
18716
|
|
|
18717
18717
|
// install Swiper components
|
|
18718
|
-
|
|
18719
|
-
|
|
18720
|
-
|
|
18721
|
-
|
|
18722
|
-
|
|
18723
|
-
|
|
18724
|
-
|
|
18725
|
-
|
|
18726
|
-
|
|
18727
|
-
|
|
18728
|
-
]);
|
|
18718
|
+
// SwiperCore.use([
|
|
18719
|
+
// Navigation,
|
|
18720
|
+
// Pagination,
|
|
18721
|
+
// Scrollbar,
|
|
18722
|
+
// A11y,
|
|
18723
|
+
// Virtual,
|
|
18724
|
+
// Zoom,
|
|
18725
|
+
// Autoplay,
|
|
18726
|
+
// Thumbs,
|
|
18727
|
+
// Controller
|
|
18728
|
+
// ]);
|
|
18729
18729
|
exports.ɵdp = /** @class */ (function () {
|
|
18730
18730
|
function ItemSwiperComponent(ele) {
|
|
18731
18731
|
this.ele = ele;
|
|
18732
18732
|
this.font = { family: 'Microsoft YaHei', color: '#ffffff', weight: 'normal', size: 20, space: 0, lineHeight: '66' };
|
|
18733
|
-
this.numfont = {
|
|
18734
|
-
|
|
18733
|
+
this.numfont = {
|
|
18734
|
+
family: 'Microsoft YaHei',
|
|
18735
|
+
color: '#ffffff',
|
|
18736
|
+
weight: 'normal',
|
|
18737
|
+
size: 21,
|
|
18738
|
+
space: 0,
|
|
18739
|
+
lineHeight: '25',
|
|
18740
|
+
};
|
|
18741
|
+
this.titlefont = {
|
|
18742
|
+
family: 'Microsoft YaHei',
|
|
18743
|
+
color: '#ffffff',
|
|
18744
|
+
weight: 'normal',
|
|
18745
|
+
size: 21,
|
|
18746
|
+
space: 0,
|
|
18747
|
+
lineHeight: '25',
|
|
18748
|
+
};
|
|
18735
18749
|
this.slidesPerView = 3;
|
|
18736
18750
|
this.selectHeight = 180;
|
|
18737
18751
|
this.gourpHeight = 0;
|
|
@@ -18774,7 +18788,7 @@
|
|
|
18774
18788
|
this.valueChange = new i0.EventEmitter();
|
|
18775
18789
|
this.navigationBtnConfig = {
|
|
18776
18790
|
prevEl: '.swiper-navigation-prev',
|
|
18777
|
-
nextEl: '.swiper-navigation-next'
|
|
18791
|
+
nextEl: '.swiper-navigation-next',
|
|
18778
18792
|
};
|
|
18779
18793
|
this.data = [];
|
|
18780
18794
|
this.items = {};
|
|
@@ -18825,7 +18839,7 @@
|
|
|
18825
18839
|
img = ((_a = _this.images[i]) === null || _a === void 0 ? void 0 : _a.imageUrl) || _this.images[_this.images.length - 1].imageUrl;
|
|
18826
18840
|
t.imgstyle = {
|
|
18827
18841
|
height: (_this.height || 30) + 'px',
|
|
18828
|
-
width: (_this.width || 30) + 'px'
|
|
18842
|
+
width: (_this.width || 30) + 'px',
|
|
18829
18843
|
};
|
|
18830
18844
|
}
|
|
18831
18845
|
t.img = img;
|
|
@@ -18854,7 +18868,7 @@
|
|
|
18854
18868
|
a.img = e.imageUrl || '';
|
|
18855
18869
|
a.imgstyle = {
|
|
18856
18870
|
height: (_this.height || 30) + 'px',
|
|
18857
|
-
width: (_this.width || 30) + 'px'
|
|
18871
|
+
width: (_this.width || 30) + 'px',
|
|
18858
18872
|
};
|
|
18859
18873
|
});
|
|
18860
18874
|
}
|
|
@@ -18872,17 +18886,15 @@
|
|
|
18872
18886
|
}
|
|
18873
18887
|
console.log(this.data);
|
|
18874
18888
|
};
|
|
18875
|
-
ItemSwiperComponent.prototype.onSwiper = function (swiper) {
|
|
18876
|
-
};
|
|
18877
|
-
ItemSwiperComponent.prototype.onSlideChange = function () {
|
|
18878
|
-
};
|
|
18889
|
+
ItemSwiperComponent.prototype.onSwiper = function (swiper) { };
|
|
18890
|
+
ItemSwiperComponent.prototype.onSlideChange = function () { };
|
|
18879
18891
|
return ItemSwiperComponent;
|
|
18880
18892
|
}());
|
|
18881
18893
|
exports.ɵdp.decorators = [
|
|
18882
18894
|
{ type: i0.Component, args: [{
|
|
18883
18895
|
selector: 'sc-item-swiper',
|
|
18884
|
-
template: "<swiper\n #swiper\n [
|
|
18885
|
-
styles: [":host{position:relative;display:block}:host ::ng-deep
|
|
18896
|
+
template: "<swiper-container appSwiper\n #swiper\n [attr.slides-per-view]=\"slidesPerView\"\n [attr.space-between]=\"spaceBetween\"\n [attr.navigation]=\"navigation && navigationLeftIcon && navigationRightIcon ? navigationBtnConfig : navigation\"\n class=\"swiper-no-swiping\"\n [attr.no-swiping]=\"true\"\n>\n <swiper-slide *ngFor=\"let item of data\">\n <ng-container *ngIf=\"!isgroup\">\n <div class=\"item-img\">\n <div class=\"item-val\" [ngStyle]=\"numfont\">{{ item.value }}</div>\n <img [src]=\"item.img\" alt=\"\" [ngStyle]=\"item.imgstyle\" />\n </div>\n <div [ngStyle]=\"font\">{{ item.label }}</div>\n </ng-container>\n <!-- <ng-container *ngFor=\"let i of item\"> -->\n <ng-container *ngIf=\"isgroup\">\n <div class=\"content\" [style.height]=\"selectHeight + 'px'\">\n <div [ngStyle]=\"groupfont\" class=\"title\">{{ item.group }}</div>\n <div class=\"item-img\">\n <!-- <ng-container *ngIf=\"item.img\"> -->\n <img [src]=\"item.img\" alt=\"\" [ngStyle]=\"item.imgstyle\" />\n <!-- </ng-container> -->\n </div>\n <div class=\"kvbox\" [style.bottom]=\"valueBottom + 'px'\">\n <div style=\"display: inline-flex\">\n <ng-container *ngFor=\"let a of item.field\">\n <span style=\"flex: 1; left: 0px\" class=\"label\">\n <div [ngStyle]=\"font\">{{ a.label }}</div>\n <div [ngStyle]=\"numfont\">{{ a.value }}</div>\n </span>\n </ng-container>\n </div>\n </div>\n </div>\n </ng-container>\n <!-- </ng-container> -->\n </swiper-slide>\n</swiper-container>\n<ng-container *ngIf=\"navigationLeftIcon && navigationRightIcon\">\n <div class=\"navigationbtn swiper-navigation-prev\" [style.left.px]=\"navigationMoveVal || -60\" [class.hidden]=\"!showNavigation\">\n <img [src]=\"navigationLeftIcon\" alt=\"\" />\n </div>\n <div class=\"navigationbtn swiper-navigation-next\" [style.right.px]=\"navigationMoveVal || -60\" [class.hidden]=\"!showNavigation\">\n <img [src]=\"navigationRightIcon\" alt=\"\" />\n </div>\n</ng-container>\n",
|
|
18897
|
+
styles: [":host{position:relative;display:block}:host ::ng-deep swiper-container{width:100%}:host ::ng-deep .title{z-index:100;position:absolute;left:0;width:100%;text-align:center}:host ::ng-deep swiper-slide{text-align:center;position:relative;overflow:visible;padding-top:30px}:host ::ng-deep .content,:host ::ng-deep .item-img{position:relative;height:100%;width:100%}:host ::ng-deep .item-img img{display:block;margin:auto}:host ::ng-deep .item-val{position:absolute;text-align:center;top:0;bottom:0;left:0;width:100%;z-index:99;overflow:visible}:host ::ng-deep .navigationbtn{cursor:pointer;position:absolute;top:0;bottom:0;display:flex;align-items:center;outline:none}:host ::ng-deep .navigationbtn.hidden{display:none}:host ::ng-deep .swiper-navigation-prev{left:-60px}:host ::ng-deep .swiper-navigation-next{right:-60px}:host ::ng-deep .label{margin:0 8px}:host ::ng-deep .kvbox{position:absolute;text-align:center;left:0;width:100%;z-index:99}"]
|
|
18886
18898
|
},] }
|
|
18887
18899
|
];
|
|
18888
18900
|
exports.ɵdp.ctorParameters = function () { return [
|
|
@@ -18935,7 +18947,7 @@
|
|
|
18935
18947
|
type: 'string',
|
|
18936
18948
|
ui: {
|
|
18937
18949
|
widget: 'myUpload',
|
|
18938
|
-
}
|
|
18950
|
+
},
|
|
18939
18951
|
}),
|
|
18940
18952
|
__metadata("design:type", Object)
|
|
18941
18953
|
], exports.ɵdp.prototype, "navigationLeftIcon", void 0);
|
|
@@ -18944,16 +18956,14 @@
|
|
|
18944
18956
|
type: 'string',
|
|
18945
18957
|
ui: {
|
|
18946
18958
|
widget: 'myUpload',
|
|
18947
|
-
}
|
|
18959
|
+
},
|
|
18948
18960
|
}),
|
|
18949
18961
|
__metadata("design:type", Object)
|
|
18950
18962
|
], exports.ɵdp.prototype, "navigationRightIcon", void 0);
|
|
18951
18963
|
__decorate([
|
|
18952
18964
|
bbjWidgetBase.Property('显示模式', {
|
|
18953
18965
|
ui: { widget: 'select' },
|
|
18954
|
-
enum: [
|
|
18955
|
-
{ label: '图标卡片', value: 'card' },
|
|
18956
|
-
],
|
|
18966
|
+
enum: [{ label: '图标卡片', value: 'card' }],
|
|
18957
18967
|
}),
|
|
18958
18968
|
__metadata("design:type", Object)
|
|
18959
18969
|
], exports.ɵdp.prototype, "showType", void 0);
|
|
@@ -19010,7 +19020,7 @@
|
|
|
19010
19020
|
properties: {
|
|
19011
19021
|
groupName: {
|
|
19012
19022
|
type: 'string',
|
|
19013
|
-
title: '组名'
|
|
19023
|
+
title: '组名',
|
|
19014
19024
|
},
|
|
19015
19025
|
imageUrl: {
|
|
19016
19026
|
type: 'string',
|
|
@@ -19031,7 +19041,7 @@
|
|
|
19031
19041
|
properties: {
|
|
19032
19042
|
label: { title: '标题', type: 'string' },
|
|
19033
19043
|
value: { title: '值', type: 'string' },
|
|
19034
|
-
group: { title: '分组', type: 'string' }
|
|
19044
|
+
group: { title: '分组', type: 'string' },
|
|
19035
19045
|
},
|
|
19036
19046
|
}),
|
|
19037
19047
|
__metadata("design:type", Array)
|
|
@@ -19053,15 +19063,9 @@
|
|
|
19053
19063
|
}());
|
|
19054
19064
|
ItemSwiperModule.decorators = [
|
|
19055
19065
|
{ type: i0.NgModule, args: [{
|
|
19056
|
-
declarations: [
|
|
19057
|
-
|
|
19058
|
-
],
|
|
19059
|
-
imports: [
|
|
19060
|
-
common.CommonModule,
|
|
19061
|
-
bbjWidgetBase.WidgetBaseModule,
|
|
19062
|
-
space.NzSpaceModule,
|
|
19063
|
-
angular.SwiperModule
|
|
19064
|
-
]
|
|
19066
|
+
declarations: [exports.ɵdp],
|
|
19067
|
+
imports: [common.CommonModule, bbjWidgetBase.WidgetBaseModule, space.NzSpaceModule],
|
|
19068
|
+
schemas: [i0.CUSTOM_ELEMENTS_SCHEMA],
|
|
19065
19069
|
},] }
|
|
19066
19070
|
];
|
|
19067
19071
|
ItemSwiperModule.ctorParameters = function () { return [
|
|
@@ -19110,7 +19114,7 @@
|
|
|
19110
19114
|
__metadata("design:type", Object)
|
|
19111
19115
|
], exports.ɵdt.prototype, "dataChange", void 0);
|
|
19112
19116
|
exports.ɵdt = __decorate([
|
|
19113
|
-
bbjWidgetBase.Widget('临时数据'),
|
|
19117
|
+
bbjWidgetBase.Widget('临时数据', { group: 'component', image: 'assets/img/screen/temporary-data.png', icon: 'iconmokuai' }),
|
|
19114
19118
|
__metadata("design:paramtypes", [i0.Renderer2, i0.ElementRef])
|
|
19115
19119
|
], exports.ɵdt);
|
|
19116
19120
|
|
|
@@ -19431,7 +19435,7 @@
|
|
|
19431
19435
|
__metadata("design:returntype", void 0)
|
|
19432
19436
|
], exports.ɵdw.prototype, "setUrl", null);
|
|
19433
19437
|
exports.ɵdw = __decorate([
|
|
19434
|
-
bbjWidgetBase.Widget('iframe'),
|
|
19438
|
+
bbjWidgetBase.Widget('iframe', { group: 'component', image: 'assets/img/screen/iframe.png', icon: 'iconmokuai' }),
|
|
19435
19439
|
__metadata("design:paramtypes", [])
|
|
19436
19440
|
], exports.ɵdw);
|
|
19437
19441
|
|
|
@@ -19578,7 +19582,7 @@
|
|
|
19578
19582
|
__metadata("design:type", Object)
|
|
19579
19583
|
], exports.ɵdy.prototype, "data", void 0);
|
|
19580
19584
|
exports.ɵdy = __decorate([
|
|
19581
|
-
bbjWidgetBase.Widget('视频宫格'),
|
|
19585
|
+
bbjWidgetBase.Widget('视频宫格', { group: 'component', image: 'assets/img/screen/video-grid.png', icon: 'iconmokuai' }),
|
|
19582
19586
|
__metadata("design:paramtypes", [])
|
|
19583
19587
|
], exports.ɵdy);
|
|
19584
19588
|
|
|
@@ -19888,13 +19892,13 @@
|
|
|
19888
19892
|
},
|
|
19889
19893
|
});
|
|
19890
19894
|
widgetService.register(exports.ɵbp, {
|
|
19891
|
-
title: '
|
|
19895
|
+
title: '视频demo',
|
|
19892
19896
|
option: {
|
|
19893
19897
|
type: 'video',
|
|
19894
19898
|
src: 'https://xiche.oss-cn-beijing.aliyuncs.com/video/20180417154421.mp4',
|
|
19895
19899
|
},
|
|
19896
19900
|
}, {
|
|
19897
|
-
title: '
|
|
19901
|
+
title: '音频demo',
|
|
19898
19902
|
option: {
|
|
19899
19903
|
type: 'audio',
|
|
19900
19904
|
src: 'https://xiche.oss-cn-beijing.aliyuncs.com/video/20180417154421.mp4',
|
|
@@ -20333,6 +20337,17 @@
|
|
|
20333
20337
|
{ type: bbjWidgetBase.WidgetService }
|
|
20334
20338
|
]; };
|
|
20335
20339
|
|
|
20340
|
+
var dayFormat = 'yyyy-MM-dd';
|
|
20341
|
+
/**
|
|
20342
|
+
* 如果结束时间是仅日期的格式,加上一天
|
|
20343
|
+
* @param event
|
|
20344
|
+
*/
|
|
20345
|
+
function updateEndTime(event) {
|
|
20346
|
+
if (typeof event.end === 'string' && dateFns.isMatch(event.end, dayFormat)) {
|
|
20347
|
+
event.end = dateFns.format(dateFns.addDays(dateFns.parse(event.end, dayFormat, new Date()), 1), dayFormat);
|
|
20348
|
+
}
|
|
20349
|
+
}
|
|
20350
|
+
|
|
20336
20351
|
var ɵ0$d = { type: 'string', title: 'id' };
|
|
20337
20352
|
exports.ɵeg = /** @class */ (function () {
|
|
20338
20353
|
function CalendarComponent(router, cd) {
|
|
@@ -20347,7 +20362,7 @@
|
|
|
20347
20362
|
{ end: '2020-07-22', start: '2020-07-20', title: 'event 5' },
|
|
20348
20363
|
];
|
|
20349
20364
|
this.dataClick = new i0.EventEmitter();
|
|
20350
|
-
this.
|
|
20365
|
+
this.datesSetChange = new i0.EventEmitter();
|
|
20351
20366
|
this.eventMap = new Map();
|
|
20352
20367
|
this.eventClick = function (event) {
|
|
20353
20368
|
_this.dataClick.emit({ id: event.id, title: event.title });
|
|
@@ -20358,14 +20373,21 @@
|
|
|
20358
20373
|
var _a;
|
|
20359
20374
|
if (changes.data) {
|
|
20360
20375
|
if ((_a = this.data) === null || _a === void 0 ? void 0 : _a.length) {
|
|
20361
|
-
var events = this.data.map(function (item) {
|
|
20362
|
-
|
|
20363
|
-
|
|
20376
|
+
var events = this.data.map(function (item) {
|
|
20377
|
+
var event = Object.assign(Object.assign({}, item), { extendedProps: {
|
|
20378
|
+
eventClick: _this.eventClick,
|
|
20379
|
+
} });
|
|
20380
|
+
updateEndTime(event);
|
|
20381
|
+
return event;
|
|
20382
|
+
});
|
|
20364
20383
|
this.setEvents(this.id, events);
|
|
20365
20384
|
}
|
|
20366
20385
|
else {
|
|
20367
20386
|
this.removeEvents(this.id);
|
|
20368
20387
|
}
|
|
20388
|
+
if (!this.calendarOptions) {
|
|
20389
|
+
this.update();
|
|
20390
|
+
}
|
|
20369
20391
|
// const events = this.data.map((item) => ({
|
|
20370
20392
|
// id: item.id,
|
|
20371
20393
|
// start: item.start.indexOf(' 00:00:00') > -1 ? item.start.split(' ')[0] : item.start,
|
|
@@ -20435,9 +20457,12 @@
|
|
|
20435
20457
|
// this.dataClick.emit({ id: info.event.id, title: info.event.title });
|
|
20436
20458
|
},
|
|
20437
20459
|
datesSet: function (arg) {
|
|
20460
|
+
console.log(arg);
|
|
20438
20461
|
var type = arg.view.type;
|
|
20439
20462
|
type = type.substring(type.indexOf('Grid') + 4).toLowerCase();
|
|
20440
|
-
|
|
20463
|
+
var start = dateFns.format(arg.start, 'yyyy-MM-dd');
|
|
20464
|
+
var end = dateFns.format(arg.end, 'yyyy-MM-dd');
|
|
20465
|
+
_this.datesSetChange.emit({ type: type, start: start, end: end });
|
|
20441
20466
|
},
|
|
20442
20467
|
};
|
|
20443
20468
|
this.cd.markForCheck();
|
|
@@ -20479,9 +20504,15 @@
|
|
|
20479
20504
|
__metadata("design:type", Object)
|
|
20480
20505
|
], exports.ɵeg.prototype, "dataClick", void 0);
|
|
20481
20506
|
__decorate([
|
|
20482
|
-
bbjWidgetBase.DataOutput(
|
|
20507
|
+
bbjWidgetBase.DataOutput({
|
|
20508
|
+
properties: {
|
|
20509
|
+
type: { type: 'string', title: '视图类型' },
|
|
20510
|
+
start: { type: 'string', title: '开始时间' },
|
|
20511
|
+
end: { type: 'string', title: '结束时间' },
|
|
20512
|
+
},
|
|
20513
|
+
}, { triggerLink: false }),
|
|
20483
20514
|
__metadata("design:type", Object)
|
|
20484
|
-
], exports.ɵeg.prototype, "
|
|
20515
|
+
], exports.ɵeg.prototype, "datesSetChange", void 0);
|
|
20485
20516
|
exports.ɵeg = __decorate([
|
|
20486
20517
|
bbjWidgetBase.Widget('日历', {
|
|
20487
20518
|
group: 'component',
|
|
@@ -20497,17 +20528,9 @@
|
|
|
20497
20528
|
this.parent = parent;
|
|
20498
20529
|
}
|
|
20499
20530
|
CalendarEventsChild.prototype.ngOnChanges = function (changes) {
|
|
20500
|
-
var _this = this;
|
|
20501
20531
|
if (changes.data) {
|
|
20502
20532
|
if (this.data) {
|
|
20503
20533
|
var events = this.getEvents(this.data);
|
|
20504
|
-
if (events && this.eventClick) {
|
|
20505
|
-
events = events.map(function (event) {
|
|
20506
|
-
return Object.assign(Object.assign({}, event), { extendedProps: {
|
|
20507
|
-
eventClick: _this.eventClick,
|
|
20508
|
-
} });
|
|
20509
|
-
});
|
|
20510
|
-
}
|
|
20511
20534
|
this.parent.setEvents(this.id, events);
|
|
20512
20535
|
}
|
|
20513
20536
|
else {
|
|
@@ -20547,6 +20570,7 @@
|
|
|
20547
20570
|
if (!event.color && _this.color) {
|
|
20548
20571
|
event.color = _this.color;
|
|
20549
20572
|
}
|
|
20573
|
+
updateEndTime(event);
|
|
20550
20574
|
return event;
|
|
20551
20575
|
});
|
|
20552
20576
|
};
|
|
@@ -20607,10 +20631,13 @@
|
|
|
20607
20631
|
EventsComponent.prototype.getEvents = function (data) {
|
|
20608
20632
|
var _this = this;
|
|
20609
20633
|
return data.map(function (item) {
|
|
20610
|
-
var event = Object.assign({}, item)
|
|
20634
|
+
var event = Object.assign(Object.assign({}, item), { extendedProps: {
|
|
20635
|
+
eventClick: _this.eventClick,
|
|
20636
|
+
} });
|
|
20611
20637
|
if (!event.color && _this.color) {
|
|
20612
20638
|
event.color = _this.color;
|
|
20613
20639
|
}
|
|
20640
|
+
updateEndTime(event);
|
|
20614
20641
|
return event;
|
|
20615
20642
|
});
|
|
20616
20643
|
};
|
|
@@ -20657,7 +20684,7 @@
|
|
|
20657
20684
|
|
|
20658
20685
|
var CalendarModule = /** @class */ (function () {
|
|
20659
20686
|
function CalendarModule(widgetService) {
|
|
20660
|
-
angular
|
|
20687
|
+
angular.FullCalendarModule.registerPlugins([
|
|
20661
20688
|
dayGridPlugin__default['default'],
|
|
20662
20689
|
timeGridPlugin__default['default'],
|
|
20663
20690
|
interactionPlugin__default['default'],
|
|
@@ -20671,7 +20698,7 @@
|
|
|
20671
20698
|
CalendarModule.decorators = [
|
|
20672
20699
|
{ type: i0.NgModule, args: [{
|
|
20673
20700
|
declarations: [exports.ɵeg, exports.ɵeh, exports.ɵej],
|
|
20674
|
-
imports: [common.CommonModule, bbjWidgetBase.WidgetBaseModule, angular
|
|
20701
|
+
imports: [common.CommonModule, bbjWidgetBase.WidgetBaseModule, angular.FullCalendarModule],
|
|
20675
20702
|
},] }
|
|
20676
20703
|
];
|
|
20677
20704
|
CalendarModule.ctorParameters = function () { return [
|
|
@@ -20745,7 +20772,7 @@
|
|
|
20745
20772
|
], exports.ɵed.prototype, "tabBarGutter", void 0);
|
|
20746
20773
|
exports.ɵed = __decorate([
|
|
20747
20774
|
bbjWidgetBase.Widget('标签页', {
|
|
20748
|
-
group: 'component',
|
|
20775
|
+
group: 'component', image: 'assets/img/screen/tabs.png', icon: 'iconmokuai',
|
|
20749
20776
|
children: [
|
|
20750
20777
|
{
|
|
20751
20778
|
title: '选项卡1',
|
|
@@ -21023,7 +21050,7 @@
|
|
|
21023
21050
|
// import {NzDatePickerModule} from 'ng-zorro-antd/date-picker';
|
|
21024
21051
|
var GanttModule = /** @class */ (function () {
|
|
21025
21052
|
function GanttModule(widgetService) {
|
|
21026
|
-
angular
|
|
21053
|
+
angular.FullCalendarModule.registerPlugins([
|
|
21027
21054
|
// register FullCalendar plugins
|
|
21028
21055
|
dayGridPlugin__default['default'],
|
|
21029
21056
|
timeGridPlugin__default['default'],
|
|
@@ -21040,7 +21067,7 @@
|
|
|
21040
21067
|
imports: [
|
|
21041
21068
|
common.CommonModule,
|
|
21042
21069
|
bbjWidgetBase.WidgetBaseModule,
|
|
21043
|
-
angular
|
|
21070
|
+
angular.FullCalendarModule,
|
|
21044
21071
|
tooltip.NzToolTipModule,
|
|
21045
21072
|
],
|
|
21046
21073
|
},] }
|
|
@@ -21186,13 +21213,13 @@
|
|
|
21186
21213
|
size: { width: 7, height: 3 },
|
|
21187
21214
|
});
|
|
21188
21215
|
widgetService.register(exports.ɵbp, {
|
|
21189
|
-
title: '
|
|
21216
|
+
title: '视频demo',
|
|
21190
21217
|
option: {
|
|
21191
21218
|
type: 'video',
|
|
21192
21219
|
src: 'https://xiche.oss-cn-beijing.aliyuncs.com/video/20180417154421.mp4',
|
|
21193
21220
|
},
|
|
21194
21221
|
}, {
|
|
21195
|
-
title: '
|
|
21222
|
+
title: '音频demo',
|
|
21196
21223
|
option: {
|
|
21197
21224
|
type: 'audio',
|
|
21198
21225
|
src: 'https://xiche.oss-cn-beijing.aliyuncs.com/video/20180417154421.mp4',
|