bbj-screen-widget 2.4.56 → 2.4.58
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.d.ts +5 -2
- package/bbj-screen-widget.metadata.json +1 -1
- package/bundles/bbj-screen-widget.umd.js +434 -149
- 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/bbj-screen-widget.js +6 -3
- package/esm2015/lib/calendar/background-events/background-events.component.js +65 -0
- package/esm2015/lib/calendar/calendar-events-child.js +28 -0
- package/esm2015/lib/calendar/calendar.component.js +103 -34
- package/esm2015/lib/calendar/calendar.module.js +7 -3
- package/esm2015/lib/calendar/calendar.util.js +12 -0
- package/esm2015/lib/calendar/events/events.component.js +75 -0
- package/esm2015/lib/iframe/iframe.component.js +2 -2
- package/esm2015/lib/planimetric-map2d/planimetric-map2d.component.js +124 -87
- package/esm2015/lib/radar-chart/radar-chart.component.js +2 -7
- 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 +397 -135
- package/fesm2015/bbj-screen-widget.js.map +1 -1
- package/lib/calendar/background-events/background-events.component.d.ts +10 -0
- package/lib/calendar/calendar-events-child.d.ts +12 -0
- package/lib/calendar/calendar.component.d.ts +15 -2
- package/lib/calendar/calendar.util.d.ts +6 -0
- package/lib/calendar/events/events.component.d.ts +13 -0
- package/package.json +1 -1
- package/src/assets/img/screen/bulletin-board.png +0 -0
- package/src/assets/img/screen/tabs.png +0 -0
|
@@ -6662,12 +6662,7 @@
|
|
|
6662
6662
|
indicator: [],
|
|
6663
6663
|
},
|
|
6664
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
|
-
},
|
|
6665
|
+
grid: this.grid,
|
|
6671
6666
|
series: [
|
|
6672
6667
|
{
|
|
6673
6668
|
label: {
|
|
@@ -9683,182 +9678,219 @@
|
|
|
9683
9678
|
_this.data = [];
|
|
9684
9679
|
_this.areaClick = new i0.EventEmitter();
|
|
9685
9680
|
_this.nameMap = {
|
|
9681
|
+
Somalia: '索马里',
|
|
9682
|
+
Liechtenstein: '列支敦士登',
|
|
9683
|
+
Morocco: '摩洛哥',
|
|
9684
|
+
'W. Sahara': '西撒哈拉',
|
|
9685
|
+
Serbia: '塞尔维亚',
|
|
9686
9686
|
Afghanistan: '阿富汗',
|
|
9687
|
-
Albania: '阿尔巴尼亚',
|
|
9688
|
-
Algeria: '阿尔及利亚',
|
|
9689
9687
|
Angola: '安哥拉',
|
|
9688
|
+
Albania: '阿尔巴尼亚',
|
|
9689
|
+
Aland: '奥兰群岛',
|
|
9690
|
+
Andorra: '安道尔',
|
|
9691
|
+
'United Arab Emirates': '阿拉伯联合酋长国',
|
|
9690
9692
|
Argentina: '阿根廷',
|
|
9691
9693
|
Armenia: '亚美尼亚',
|
|
9694
|
+
'American Samoa': '美属萨摩亚',
|
|
9695
|
+
'Fr. S. Antarctic Lands': '法属南部领地',
|
|
9696
|
+
'Antigua and Barb.': '安提瓜和巴布达',
|
|
9692
9697
|
Australia: '澳大利亚',
|
|
9693
9698
|
Austria: '奥地利',
|
|
9694
9699
|
Azerbaijan: '阿塞拜疆',
|
|
9700
|
+
Burundi: '布隆迪',
|
|
9701
|
+
Belgium: '比利时',
|
|
9702
|
+
Benin: '贝宁',
|
|
9703
|
+
'Burkina Faso': '布基纳法索',
|
|
9695
9704
|
Bangladesh: '孟加拉国',
|
|
9705
|
+
Bulgaria: '保加利亚',
|
|
9706
|
+
Bahrain: '巴林',
|
|
9707
|
+
Bahamas: '巴哈马',
|
|
9708
|
+
'Bosnia and Herz.': '波斯尼亚和黑塞哥维那',
|
|
9696
9709
|
Belarus: '白俄罗斯',
|
|
9697
|
-
Belgium: '比利时',
|
|
9698
9710
|
Belize: '伯利兹',
|
|
9699
|
-
Benin: '贝宁',
|
|
9700
9711
|
Bermuda: '百慕大',
|
|
9701
|
-
Bhutan: '不丹',
|
|
9702
9712
|
Bolivia: '玻利维亚',
|
|
9703
|
-
'Bosnia and Herzegovina': '波斯尼亚和黑塞哥维那',
|
|
9704
|
-
Botswana: '博茨瓦纳',
|
|
9705
9713
|
Brazil: '巴西',
|
|
9714
|
+
Barbados: '巴巴多斯',
|
|
9706
9715
|
Brunei: '文莱',
|
|
9707
|
-
|
|
9708
|
-
|
|
9709
|
-
|
|
9710
|
-
Cambodia: '柬埔寨',
|
|
9711
|
-
Cameroon: '喀麦隆',
|
|
9716
|
+
Bhutan: '不丹',
|
|
9717
|
+
Botswana: '博茨瓦纳',
|
|
9718
|
+
'Central African Rep.': '中非共和国',
|
|
9712
9719
|
Canada: '加拿大',
|
|
9713
|
-
|
|
9714
|
-
Chad: '乍得',
|
|
9720
|
+
Switzerland: '瑞士',
|
|
9715
9721
|
Chile: '智利',
|
|
9716
9722
|
China: '中国',
|
|
9723
|
+
"Côte d'Ivoire": '科特迪瓦',
|
|
9724
|
+
Cameroon: '喀麦隆',
|
|
9725
|
+
'Dem. Rep. Congo': '刚果(金)',
|
|
9726
|
+
Congo: '刚果(布)',
|
|
9717
9727
|
Colombia: '哥伦比亚',
|
|
9728
|
+
Comoros: '科摩罗',
|
|
9729
|
+
'Cape Verde': '佛得角',
|
|
9718
9730
|
'Costa Rica': '哥斯达黎加',
|
|
9719
|
-
Croatia: '克罗地亚',
|
|
9720
9731
|
Cuba: '古巴',
|
|
9732
|
+
Curaçao: '库拉索',
|
|
9733
|
+
'Cayman Is.': '开曼群岛',
|
|
9734
|
+
'N. Cyprus': '北塞浦路斯',
|
|
9721
9735
|
Cyprus: '塞浦路斯',
|
|
9722
|
-
'Czech
|
|
9723
|
-
|
|
9724
|
-
Denmark: '丹麦',
|
|
9736
|
+
'Czech Rep.': '捷克',
|
|
9737
|
+
Germany: '德国',
|
|
9725
9738
|
Djibouti: '吉布提',
|
|
9726
|
-
|
|
9727
|
-
|
|
9739
|
+
Dominica: '多米尼克',
|
|
9740
|
+
Denmark: '丹麦',
|
|
9741
|
+
'Dominican Rep.': '多米尼加',
|
|
9742
|
+
Algeria: '阿尔及利亚',
|
|
9728
9743
|
Ecuador: '厄瓜多尔',
|
|
9729
9744
|
Egypt: '埃及',
|
|
9730
|
-
'El Salvador': '萨尔瓦多',
|
|
9731
|
-
'Equatorial Guinea': '赤道几内亚',
|
|
9732
9745
|
Eritrea: '厄立特里亚',
|
|
9746
|
+
Spain: '西班牙',
|
|
9733
9747
|
Estonia: '爱沙尼亚',
|
|
9734
9748
|
Ethiopia: '埃塞俄比亚',
|
|
9735
|
-
'Falkland Islands': '福克兰群岛',
|
|
9736
|
-
Fiji: '斐',
|
|
9737
9749
|
Finland: '芬兰',
|
|
9750
|
+
Fiji: '斐济',
|
|
9751
|
+
'Falkland Is.': '福克兰群岛',
|
|
9738
9752
|
France: '法国',
|
|
9739
|
-
'
|
|
9740
|
-
|
|
9753
|
+
'Faeroe Is.': '法罗群岛',
|
|
9754
|
+
Micronesia: '密克罗尼西亚',
|
|
9741
9755
|
Gabon: '加蓬',
|
|
9742
|
-
|
|
9756
|
+
'United Kingdom': '英国',
|
|
9743
9757
|
Georgia: '格鲁吉亚',
|
|
9744
|
-
Germany: '德国',
|
|
9745
9758
|
Ghana: '加纳',
|
|
9759
|
+
Guinea: '几内亚',
|
|
9760
|
+
Gambia: '冈比亚',
|
|
9761
|
+
'Guinea-Bissau': '几内亚比绍',
|
|
9762
|
+
'Eq. Guinea': '赤道几内亚',
|
|
9746
9763
|
Greece: '希腊',
|
|
9764
|
+
Grenada: '格林纳达',
|
|
9747
9765
|
Greenland: '格陵兰',
|
|
9748
9766
|
Guatemala: '危地马拉',
|
|
9749
|
-
|
|
9750
|
-
'Guinea Bissau': '几内亚比绍',
|
|
9767
|
+
Guam: '关岛',
|
|
9751
9768
|
Guyana: '圭亚那',
|
|
9752
|
-
|
|
9769
|
+
'Heard I. and McDonald Is.': '赫德岛和麦克唐纳群岛',
|
|
9753
9770
|
Honduras: '洪都拉斯',
|
|
9771
|
+
Croatia: '克罗地亚',
|
|
9772
|
+
Haiti: '海地',
|
|
9754
9773
|
Hungary: '匈牙利',
|
|
9755
|
-
|
|
9774
|
+
Indonesia: '印度尼西亚',
|
|
9775
|
+
'Isle of Man': '马恩岛',
|
|
9756
9776
|
India: '印度',
|
|
9757
|
-
|
|
9777
|
+
'Br. Indian Ocean Ter.': '英属印度洋领地',
|
|
9778
|
+
Ireland: '爱尔兰',
|
|
9758
9779
|
Iran: '伊朗',
|
|
9759
9780
|
Iraq: '伊拉克',
|
|
9760
|
-
|
|
9781
|
+
Iceland: '冰岛',
|
|
9761
9782
|
Israel: '以色列',
|
|
9762
9783
|
Italy: '意大利',
|
|
9763
|
-
'Ivory Coast': '象牙海岸',
|
|
9764
9784
|
Jamaica: '牙买加',
|
|
9765
|
-
|
|
9785
|
+
Jersey: '泽西岛',
|
|
9766
9786
|
Jordan: '约旦',
|
|
9787
|
+
Japan: '日本',
|
|
9788
|
+
'Siachen Glacier': '锡亚琴冰川',
|
|
9767
9789
|
Kazakhstan: '哈萨克斯坦',
|
|
9768
9790
|
Kenya: '肯尼亚',
|
|
9769
|
-
Kosovo: '科索沃',
|
|
9770
|
-
Kuwait: '科威特',
|
|
9771
9791
|
Kyrgyzstan: '吉尔吉斯斯坦',
|
|
9772
|
-
|
|
9773
|
-
|
|
9792
|
+
Cambodia: '柬埔寨',
|
|
9793
|
+
Kiribati: '基里巴斯',
|
|
9794
|
+
Korea: '韩国',
|
|
9795
|
+
Kuwait: '科威特',
|
|
9796
|
+
'Lao PDR': '老挝',
|
|
9774
9797
|
Lebanon: '黎巴嫩',
|
|
9775
|
-
Lesotho: '莱索托',
|
|
9776
9798
|
Liberia: '利比里亚',
|
|
9777
9799
|
Libya: '利比亚',
|
|
9800
|
+
'Saint Lucia': '圣卢西亚',
|
|
9801
|
+
'Sri Lanka': '斯里兰卡',
|
|
9802
|
+
Lesotho: '莱索托',
|
|
9778
9803
|
Lithuania: '立陶宛',
|
|
9779
9804
|
Luxembourg: '卢森堡',
|
|
9780
|
-
|
|
9805
|
+
Latvia: '拉脱维亚',
|
|
9806
|
+
Moldova: '摩尔多瓦',
|
|
9781
9807
|
Madagascar: '马达加斯加',
|
|
9782
|
-
Malawi: '马拉维',
|
|
9783
|
-
Malaysia: '马来西亚',
|
|
9784
|
-
Mali: '马里',
|
|
9785
|
-
Mauritania: '毛里塔尼亚',
|
|
9786
9808
|
Mexico: '墨西哥',
|
|
9787
|
-
|
|
9788
|
-
|
|
9809
|
+
Macedonia: '北马其顿',
|
|
9810
|
+
Mali: '马里',
|
|
9811
|
+
Malta: '马耳他',
|
|
9812
|
+
Myanmar: '缅甸',
|
|
9789
9813
|
Montenegro: '黑山',
|
|
9790
|
-
|
|
9814
|
+
Mongolia: '蒙古',
|
|
9815
|
+
'N. Mariana Is.': '北马里亚纳群岛',
|
|
9791
9816
|
Mozambique: '莫桑比克',
|
|
9792
|
-
|
|
9817
|
+
Mauritania: '毛里塔尼亚',
|
|
9818
|
+
Montserrat: '蒙特塞拉特',
|
|
9819
|
+
Mauritius: '毛里求斯',
|
|
9820
|
+
Malawi: '马拉维',
|
|
9821
|
+
Malaysia: '马来西亚',
|
|
9793
9822
|
Namibia: '纳米比亚',
|
|
9794
|
-
Nepal: '尼泊尔',
|
|
9795
|
-
Netherlands: '荷兰',
|
|
9796
9823
|
'New Caledonia': '新喀里多尼亚',
|
|
9797
|
-
'New Zealand': '新西兰',
|
|
9798
|
-
Nicaragua: '尼加拉瓜',
|
|
9799
9824
|
Niger: '尼日尔',
|
|
9800
9825
|
Nigeria: '尼日利亚',
|
|
9801
|
-
|
|
9802
|
-
|
|
9826
|
+
Nicaragua: '尼加拉瓜',
|
|
9827
|
+
Niue: '纽埃',
|
|
9828
|
+
Netherlands: '荷兰',
|
|
9803
9829
|
Norway: '挪威',
|
|
9830
|
+
Nepal: '尼泊尔',
|
|
9831
|
+
'New Zealand': '新西兰',
|
|
9804
9832
|
Oman: '阿曼',
|
|
9805
9833
|
Pakistan: '巴基斯坦',
|
|
9806
9834
|
Panama: '巴拿马',
|
|
9807
|
-
'Papua New Guinea': '巴布亚新几内亚',
|
|
9808
|
-
Paraguay: '巴拉圭',
|
|
9809
9835
|
Peru: '秘鲁',
|
|
9810
9836
|
Philippines: '菲律宾',
|
|
9837
|
+
Palau: '帕劳',
|
|
9838
|
+
'Papua New Guinea': '巴布亚新几内亚',
|
|
9811
9839
|
Poland: '波兰',
|
|
9812
|
-
Portugal: '葡萄牙',
|
|
9813
9840
|
'Puerto Rico': '波多黎各',
|
|
9841
|
+
'Dem. Rep. Korea': '朝鲜',
|
|
9842
|
+
Portugal: '葡萄牙',
|
|
9843
|
+
Paraguay: '巴拉圭',
|
|
9844
|
+
Palestine: '巴勒斯坦',
|
|
9845
|
+
'Fr. Polynesia': '法属波利尼西亚',
|
|
9814
9846
|
Qatar: '卡塔尔',
|
|
9815
|
-
'Republic of Serbia': '塞尔维亚',
|
|
9816
|
-
'Republic of the Congo': '刚果共和国',
|
|
9817
9847
|
Romania: '罗马尼亚',
|
|
9818
9848
|
Russia: '俄罗斯',
|
|
9819
9849
|
Rwanda: '卢旺达',
|
|
9820
9850
|
'Saudi Arabia': '沙特阿拉伯',
|
|
9851
|
+
Sudan: '苏丹',
|
|
9852
|
+
'S. Sudan': '南苏丹',
|
|
9821
9853
|
Senegal: '塞内加尔',
|
|
9822
|
-
'Sierra Leone': '塞拉利昂',
|
|
9823
9854
|
Singapore: '新加坡',
|
|
9855
|
+
'S. Geo. and S. Sandw. Is.': '南乔治亚岛和南桑威奇群岛',
|
|
9856
|
+
'Saint Helena': '圣赫勒拿',
|
|
9857
|
+
'Solomon Is.': '所罗门群岛',
|
|
9858
|
+
'Sierra Leone': '塞拉利昂',
|
|
9859
|
+
'El Salvador': '萨尔瓦多',
|
|
9860
|
+
'St. Pierre and Miquelon': '圣皮埃尔和密克隆',
|
|
9861
|
+
'São Tomé and Principe': '圣多美和普林西比',
|
|
9862
|
+
Suriname: '苏里南',
|
|
9824
9863
|
Slovakia: '斯洛伐克',
|
|
9825
9864
|
Slovenia: '斯洛文尼亚',
|
|
9826
|
-
'Solomon Islands': '所罗门群岛',
|
|
9827
|
-
Somalia: '索马里',
|
|
9828
|
-
Somaliland: '索马里兰',
|
|
9829
|
-
'South Africa': '南非',
|
|
9830
|
-
'South Korea': '韩国',
|
|
9831
|
-
'South Sudan': '南苏丹',
|
|
9832
|
-
Spain: '西班牙',
|
|
9833
|
-
'Sri Lanka': '斯里兰卡',
|
|
9834
|
-
Sudan: '苏丹',
|
|
9835
|
-
Suriname: '苏里南',
|
|
9836
|
-
Swaziland: '斯威士兰',
|
|
9837
9865
|
Sweden: '瑞典',
|
|
9838
|
-
|
|
9866
|
+
Swaziland: '斯威士兰',
|
|
9867
|
+
Seychelles: '塞舌尔',
|
|
9839
9868
|
Syria: '叙利亚',
|
|
9840
|
-
|
|
9841
|
-
|
|
9842
|
-
'The Bahamas': '巴哈马',
|
|
9869
|
+
'Turks and Caicos Is.': '特克斯和凯科斯群岛',
|
|
9870
|
+
Chad: '乍得',
|
|
9843
9871
|
Togo: '多哥',
|
|
9844
|
-
|
|
9872
|
+
Thailand: '泰国',
|
|
9873
|
+
Tajikistan: '塔吉克斯坦',
|
|
9874
|
+
Turkmenistan: '土库曼斯坦',
|
|
9875
|
+
'Timor-Leste': '东帝汶',
|
|
9876
|
+
Tonga: '汤加',
|
|
9877
|
+
'Trinidad and Tobago': '特立尼达和多巴哥',
|
|
9845
9878
|
Tunisia: '突尼斯',
|
|
9846
9879
|
Turkey: '土耳其',
|
|
9847
|
-
|
|
9880
|
+
Tanzania: '坦桑尼亚',
|
|
9848
9881
|
Uganda: '乌干达',
|
|
9849
9882
|
Ukraine: '乌克兰',
|
|
9850
|
-
'United Arab Emirates': '阿联酋',
|
|
9851
|
-
'United Kingdom': '英国',
|
|
9852
|
-
'United Republic of Tanzania': '坦桑尼亚',
|
|
9853
|
-
'United States': '美国',
|
|
9854
9883
|
Uruguay: '乌拉圭',
|
|
9884
|
+
'United States': '美国',
|
|
9855
9885
|
Uzbekistan: '乌兹别克斯坦',
|
|
9856
|
-
|
|
9886
|
+
'St. Vin. and Gren.': '圣文森特和格林纳丁斯',
|
|
9857
9887
|
Venezuela: '委内瑞拉',
|
|
9888
|
+
'U.S. Virgin Is.': '美属维尔京群岛',
|
|
9858
9889
|
Vietnam: '越南',
|
|
9859
|
-
|
|
9860
|
-
|
|
9890
|
+
Vanuatu: '瓦努阿图',
|
|
9891
|
+
Samoa: '萨摩亚',
|
|
9861
9892
|
Yemen: '也门',
|
|
9893
|
+
'South Africa': '南非',
|
|
9862
9894
|
Zambia: '赞比亚',
|
|
9863
9895
|
Zimbabwe: '津巴布韦',
|
|
9864
9896
|
};
|
|
@@ -19078,7 +19110,7 @@
|
|
|
19078
19110
|
__metadata("design:type", Object)
|
|
19079
19111
|
], exports.ɵdt.prototype, "dataChange", void 0);
|
|
19080
19112
|
exports.ɵdt = __decorate([
|
|
19081
|
-
bbjWidgetBase.Widget('临时数据'),
|
|
19113
|
+
bbjWidgetBase.Widget('临时数据', { group: 'component', image: 'assets/img/screen/temporary-data.png', icon: 'iconmokuai' }),
|
|
19082
19114
|
__metadata("design:paramtypes", [i0.Renderer2, i0.ElementRef])
|
|
19083
19115
|
], exports.ɵdt);
|
|
19084
19116
|
|
|
@@ -19399,7 +19431,7 @@
|
|
|
19399
19431
|
__metadata("design:returntype", void 0)
|
|
19400
19432
|
], exports.ɵdw.prototype, "setUrl", null);
|
|
19401
19433
|
exports.ɵdw = __decorate([
|
|
19402
|
-
bbjWidgetBase.Widget('iframe'),
|
|
19434
|
+
bbjWidgetBase.Widget('iframe', { group: 'component', image: 'assets/img/screen/iframe.png', icon: 'iconmokuai' }),
|
|
19403
19435
|
__metadata("design:paramtypes", [])
|
|
19404
19436
|
], exports.ɵdw);
|
|
19405
19437
|
|
|
@@ -19546,7 +19578,7 @@
|
|
|
19546
19578
|
__metadata("design:type", Object)
|
|
19547
19579
|
], exports.ɵdy.prototype, "data", void 0);
|
|
19548
19580
|
exports.ɵdy = __decorate([
|
|
19549
|
-
bbjWidgetBase.Widget('视频宫格'),
|
|
19581
|
+
bbjWidgetBase.Widget('视频宫格', { group: 'component', image: 'assets/img/screen/video-grid.png', icon: 'iconmokuai' }),
|
|
19550
19582
|
__metadata("design:paramtypes", [])
|
|
19551
19583
|
], exports.ɵdy);
|
|
19552
19584
|
|
|
@@ -19856,13 +19888,13 @@
|
|
|
19856
19888
|
},
|
|
19857
19889
|
});
|
|
19858
19890
|
widgetService.register(exports.ɵbp, {
|
|
19859
|
-
title: '
|
|
19891
|
+
title: '视频demo',
|
|
19860
19892
|
option: {
|
|
19861
19893
|
type: 'video',
|
|
19862
19894
|
src: 'https://xiche.oss-cn-beijing.aliyuncs.com/video/20180417154421.mp4',
|
|
19863
19895
|
},
|
|
19864
19896
|
}, {
|
|
19865
|
-
title: '
|
|
19897
|
+
title: '音频demo',
|
|
19866
19898
|
option: {
|
|
19867
19899
|
type: 'audio',
|
|
19868
19900
|
src: 'https://xiche.oss-cn-beijing.aliyuncs.com/video/20180417154421.mp4',
|
|
@@ -20301,10 +20333,23 @@
|
|
|
20301
20333
|
{ type: bbjWidgetBase.WidgetService }
|
|
20302
20334
|
]; };
|
|
20303
20335
|
|
|
20336
|
+
var dayFormat = 'yyyy-MM-dd';
|
|
20337
|
+
/**
|
|
20338
|
+
* 如果结束时间是仅日期的格式,加上一天
|
|
20339
|
+
* @param event
|
|
20340
|
+
*/
|
|
20341
|
+
function updateEndTime(event) {
|
|
20342
|
+
if (typeof event.end === 'string' && dateFns.isMatch(event.end, dayFormat)) {
|
|
20343
|
+
event.end = dateFns.format(dateFns.addDays(dateFns.parse(event.end, dayFormat, new Date()), 1), dayFormat);
|
|
20344
|
+
}
|
|
20345
|
+
}
|
|
20346
|
+
|
|
20304
20347
|
var ɵ0$d = { type: 'string', title: 'id' };
|
|
20305
20348
|
exports.ɵeg = /** @class */ (function () {
|
|
20306
|
-
function CalendarComponent(router) {
|
|
20349
|
+
function CalendarComponent(router, cd) {
|
|
20350
|
+
var _this = this;
|
|
20307
20351
|
this.router = router;
|
|
20352
|
+
this.cd = cd;
|
|
20308
20353
|
this.isInitialDate = true;
|
|
20309
20354
|
this.initialDate = '2020-07-18';
|
|
20310
20355
|
this.data = [
|
|
@@ -20313,57 +20358,120 @@
|
|
|
20313
20358
|
{ end: '2020-07-22', start: '2020-07-20', title: 'event 5' },
|
|
20314
20359
|
];
|
|
20315
20360
|
this.dataClick = new i0.EventEmitter();
|
|
20361
|
+
this.datesSetChange = new i0.EventEmitter();
|
|
20362
|
+
this.eventMap = new Map();
|
|
20363
|
+
this.eventClick = function (event) {
|
|
20364
|
+
_this.dataClick.emit({ id: event.id, title: event.title });
|
|
20365
|
+
};
|
|
20316
20366
|
}
|
|
20317
20367
|
CalendarComponent.prototype.ngOnChanges = function (changes) {
|
|
20318
20368
|
var _this = this;
|
|
20369
|
+
var _a;
|
|
20319
20370
|
if (changes.data) {
|
|
20371
|
+
if ((_a = this.data) === null || _a === void 0 ? void 0 : _a.length) {
|
|
20372
|
+
var events = this.data.map(function (item) {
|
|
20373
|
+
var event = Object.assign(Object.assign({}, item), { extendedProps: {
|
|
20374
|
+
eventClick: _this.eventClick,
|
|
20375
|
+
} });
|
|
20376
|
+
updateEndTime(event);
|
|
20377
|
+
return event;
|
|
20378
|
+
});
|
|
20379
|
+
this.setEvents(this.id, events);
|
|
20380
|
+
}
|
|
20381
|
+
else {
|
|
20382
|
+
this.removeEvents(this.id);
|
|
20383
|
+
}
|
|
20320
20384
|
// const events = this.data.map((item) => ({
|
|
20321
20385
|
// id: item.id,
|
|
20322
20386
|
// start: item.start.indexOf(' 00:00:00') > -1 ? item.start.split(' ')[0] : item.start,
|
|
20323
20387
|
// end: item.end.indexOf(' 00:00:00') > -1 ? item.end.split(' ')[0] : item.end,
|
|
20324
20388
|
// title: item.title,
|
|
20325
20389
|
// }));
|
|
20326
|
-
this.calendarOptions = {
|
|
20327
|
-
headerToolbar: {
|
|
20328
|
-
left: 'prev,next today',
|
|
20329
|
-
center: 'title',
|
|
20330
|
-
right: 'timeGridDay,timeGridWeek,dayGridMonth',
|
|
20331
|
-
},
|
|
20332
|
-
buttonText: {
|
|
20333
|
-
dayGridMonth: '月',
|
|
20334
|
-
timeGridWeek: '周',
|
|
20335
|
-
timeGridDay: '日',
|
|
20336
|
-
today: '今日',
|
|
20337
|
-
},
|
|
20338
|
-
timeZone: 'local',
|
|
20339
|
-
initialDate: this.isInitialDate ? this.initialDate : null,
|
|
20340
|
-
events: this.data,
|
|
20341
|
-
locale: 'zh',
|
|
20342
|
-
eventTimeFormat: {
|
|
20343
|
-
hour: 'numeric',
|
|
20344
|
-
minute: '2-digit',
|
|
20345
|
-
hour12: false,
|
|
20346
|
-
},
|
|
20347
|
-
slotLabelFormat: { hour: 'numeric', minute: '2-digit', hour12: false },
|
|
20348
|
-
eventClick: function (info) {
|
|
20349
|
-
info.jsEvent.preventDefault();
|
|
20350
|
-
_this.dataClick.emit({ id: info.event.id, title: info.event.title });
|
|
20351
|
-
},
|
|
20352
|
-
};
|
|
20353
20390
|
}
|
|
20354
20391
|
};
|
|
20355
20392
|
CalendarComponent.prototype.ngOnInit = function () { };
|
|
20393
|
+
CalendarComponent.prototype.setEvents = function (key, events) {
|
|
20394
|
+
this.eventMap.set(key, events);
|
|
20395
|
+
this.update();
|
|
20396
|
+
};
|
|
20397
|
+
CalendarComponent.prototype.removeEvents = function (key) {
|
|
20398
|
+
if (this.eventMap.has(key)) {
|
|
20399
|
+
this.eventMap.delete(key);
|
|
20400
|
+
this.update();
|
|
20401
|
+
}
|
|
20402
|
+
};
|
|
20403
|
+
CalendarComponent.prototype.update = function () {
|
|
20404
|
+
var e_1, _b;
|
|
20405
|
+
var _this = this;
|
|
20406
|
+
var events = [];
|
|
20407
|
+
try {
|
|
20408
|
+
for (var _c = __values(this.eventMap.values()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
20409
|
+
var event = _d.value;
|
|
20410
|
+
if (event) {
|
|
20411
|
+
events.push.apply(events, __spread(event));
|
|
20412
|
+
}
|
|
20413
|
+
}
|
|
20414
|
+
}
|
|
20415
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
20416
|
+
finally {
|
|
20417
|
+
try {
|
|
20418
|
+
if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
|
|
20419
|
+
}
|
|
20420
|
+
finally { if (e_1) throw e_1.error; }
|
|
20421
|
+
}
|
|
20422
|
+
this.calendarOptions = {
|
|
20423
|
+
headerToolbar: {
|
|
20424
|
+
left: 'prev,next today',
|
|
20425
|
+
center: 'title',
|
|
20426
|
+
right: 'timeGridDay,timeGridWeek,dayGridMonth',
|
|
20427
|
+
},
|
|
20428
|
+
buttonText: {
|
|
20429
|
+
dayGridMonth: '月',
|
|
20430
|
+
timeGridWeek: '周',
|
|
20431
|
+
timeGridDay: '日',
|
|
20432
|
+
today: '今日',
|
|
20433
|
+
},
|
|
20434
|
+
timeZone: 'local',
|
|
20435
|
+
initialDate: this.isInitialDate ? this.initialDate : null,
|
|
20436
|
+
events: events,
|
|
20437
|
+
locale: 'zh',
|
|
20438
|
+
eventTimeFormat: {
|
|
20439
|
+
hour: 'numeric',
|
|
20440
|
+
minute: '2-digit',
|
|
20441
|
+
hour12: false,
|
|
20442
|
+
},
|
|
20443
|
+
slotLabelFormat: { hour: 'numeric', minute: '2-digit', hour12: false },
|
|
20444
|
+
eventClick: function (info) {
|
|
20445
|
+
var _a;
|
|
20446
|
+
info.jsEvent.preventDefault();
|
|
20447
|
+
if ((_a = info.event.extendedProps) === null || _a === void 0 ? void 0 : _a.eventClick) {
|
|
20448
|
+
info.event.extendedProps.eventClick(info.event);
|
|
20449
|
+
}
|
|
20450
|
+
// this.dataClick.emit({ id: info.event.id, title: info.event.title });
|
|
20451
|
+
},
|
|
20452
|
+
datesSet: function (arg) {
|
|
20453
|
+
console.log(arg);
|
|
20454
|
+
var type = arg.view.type;
|
|
20455
|
+
type = type.substring(type.indexOf('Grid') + 4).toLowerCase();
|
|
20456
|
+
var start = dateFns.format(arg.start, 'yyyy-MM-dd');
|
|
20457
|
+
var end = dateFns.format(arg.end, 'yyyy-MM-dd');
|
|
20458
|
+
_this.datesSetChange.emit({ type: type, start: start, end: end });
|
|
20459
|
+
},
|
|
20460
|
+
};
|
|
20461
|
+
this.cd.markForCheck();
|
|
20462
|
+
};
|
|
20356
20463
|
return CalendarComponent;
|
|
20357
20464
|
}());
|
|
20358
20465
|
exports.ɵeg.decorators = [
|
|
20359
20466
|
{ type: i0.Component, args: [{
|
|
20360
20467
|
selector: 'sc-calendar',
|
|
20361
|
-
template: "<full-calendar *ngIf=\"calendarOptions\" [options]=\"calendarOptions\"></full-calendar>\n",
|
|
20468
|
+
template: "<full-calendar *ngIf=\"calendarOptions\" [options]=\"calendarOptions\"></full-calendar>\n<ng-template *ngFor=\"let child of children\" widget-host [widget]=\"child\"></ng-template>\n",
|
|
20362
20469
|
styles: [":host ::ng-deep .fc-direction-ltr{height:100%}:host ::ng-deep .fc .fc-view-harness{padding-bottom:0!important}:host ::ng-deep .fc-license-message{display:none}:host ::ng-deep .fc-daygrid-event{white-space:normal}"]
|
|
20363
20470
|
},] }
|
|
20364
20471
|
];
|
|
20365
20472
|
exports.ɵeg.ctorParameters = function () { return [
|
|
20366
|
-
{ type: router.Router }
|
|
20473
|
+
{ type: router.Router },
|
|
20474
|
+
{ type: i0.ChangeDetectorRef }
|
|
20367
20475
|
]; };
|
|
20368
20476
|
__decorate([
|
|
20369
20477
|
bbjWidgetBase.Property('是否自定义初始日期', { ui: { format: 'date', widget: 'checkbox', spanLabel: 0, spanControl: 24 } }),
|
|
@@ -20388,11 +20496,185 @@
|
|
|
20388
20496
|
bbjWidgetBase.DataOutput(['id', 'title']),
|
|
20389
20497
|
__metadata("design:type", Object)
|
|
20390
20498
|
], exports.ɵeg.prototype, "dataClick", void 0);
|
|
20499
|
+
__decorate([
|
|
20500
|
+
bbjWidgetBase.DataOutput({
|
|
20501
|
+
properties: {
|
|
20502
|
+
type: { type: 'string', title: '视图类型' },
|
|
20503
|
+
start: { type: 'string', title: '开始时间' },
|
|
20504
|
+
end: { type: 'string', title: '结束时间' },
|
|
20505
|
+
},
|
|
20506
|
+
}, { triggerLink: false }),
|
|
20507
|
+
__metadata("design:type", Object)
|
|
20508
|
+
], exports.ɵeg.prototype, "datesSetChange", void 0);
|
|
20391
20509
|
exports.ɵeg = __decorate([
|
|
20392
|
-
bbjWidgetBase.Widget('日历', {
|
|
20393
|
-
|
|
20510
|
+
bbjWidgetBase.Widget('日历', {
|
|
20511
|
+
group: 'component',
|
|
20512
|
+
image: 'assets/img/screen/rili.png',
|
|
20513
|
+
icon: 'iconmokuai',
|
|
20514
|
+
childTypes: ['sc-calendar-events', 'sc-calendar-background-events'],
|
|
20515
|
+
}),
|
|
20516
|
+
__metadata("design:paramtypes", [router.Router, i0.ChangeDetectorRef])
|
|
20394
20517
|
], exports.ɵeg);
|
|
20395
20518
|
|
|
20519
|
+
var CalendarEventsChild = /** @class */ (function () {
|
|
20520
|
+
function CalendarEventsChild(parent) {
|
|
20521
|
+
this.parent = parent;
|
|
20522
|
+
}
|
|
20523
|
+
CalendarEventsChild.prototype.ngOnChanges = function (changes) {
|
|
20524
|
+
if (changes.data) {
|
|
20525
|
+
if (this.data) {
|
|
20526
|
+
var events = this.getEvents(this.data);
|
|
20527
|
+
this.parent.setEvents(this.id, events);
|
|
20528
|
+
}
|
|
20529
|
+
else {
|
|
20530
|
+
this.parent.removeEvents(this.id);
|
|
20531
|
+
}
|
|
20532
|
+
}
|
|
20533
|
+
};
|
|
20534
|
+
CalendarEventsChild.prototype.ngOnDestroy = function () {
|
|
20535
|
+
this.parent.removeEvents(this.id);
|
|
20536
|
+
};
|
|
20537
|
+
return CalendarEventsChild;
|
|
20538
|
+
}());
|
|
20539
|
+
CalendarEventsChild.decorators = [
|
|
20540
|
+
{ type: i0.Directive }
|
|
20541
|
+
];
|
|
20542
|
+
CalendarEventsChild.ctorParameters = function () { return [
|
|
20543
|
+
{ type: exports.ɵeg }
|
|
20544
|
+
]; };
|
|
20545
|
+
|
|
20546
|
+
var ɵ0$e = { type: 'string', title: 'id' };
|
|
20547
|
+
exports.ɵeh = /** @class */ (function (_super) {
|
|
20548
|
+
__extends(BackgroundEventsComponent, _super);
|
|
20549
|
+
function BackgroundEventsComponent(parent) {
|
|
20550
|
+
var _this = _super.call(this, parent) || this;
|
|
20551
|
+
_this.parent = parent;
|
|
20552
|
+
_this.data = [
|
|
20553
|
+
{ end: '2020-07-21 00:00:00', start: '2020-07-19 00:00:00', title: 'event 3' },
|
|
20554
|
+
{ end: '2020-07-19 00:00:00', start: '2020-07-18 00:00:00', title: 'event 4' },
|
|
20555
|
+
{ end: '2020-07-22', start: '2020-07-20', title: 'event 5' },
|
|
20556
|
+
];
|
|
20557
|
+
return _this;
|
|
20558
|
+
}
|
|
20559
|
+
BackgroundEventsComponent.prototype.getEvents = function (data) {
|
|
20560
|
+
var _this = this;
|
|
20561
|
+
return data.map(function (item) {
|
|
20562
|
+
var event = Object.assign(Object.assign({}, item), { display: 'background' });
|
|
20563
|
+
if (!event.color && _this.color) {
|
|
20564
|
+
event.color = _this.color;
|
|
20565
|
+
}
|
|
20566
|
+
updateEndTime(event);
|
|
20567
|
+
return event;
|
|
20568
|
+
});
|
|
20569
|
+
};
|
|
20570
|
+
return BackgroundEventsComponent;
|
|
20571
|
+
}(CalendarEventsChild));
|
|
20572
|
+
exports.ɵeh.decorators = [
|
|
20573
|
+
{ type: i0.Component, args: [{
|
|
20574
|
+
selector: 'sc-calendar-background-events',
|
|
20575
|
+
template: "",
|
|
20576
|
+
styles: [""]
|
|
20577
|
+
},] }
|
|
20578
|
+
];
|
|
20579
|
+
exports.ɵeh.ctorParameters = function () { return [
|
|
20580
|
+
{ type: exports.ɵeg }
|
|
20581
|
+
]; };
|
|
20582
|
+
__decorate([
|
|
20583
|
+
bbjWidgetBase.Property('颜色', {
|
|
20584
|
+
ui: {
|
|
20585
|
+
widget: 'myColor',
|
|
20586
|
+
},
|
|
20587
|
+
}),
|
|
20588
|
+
__metadata("design:type", String)
|
|
20589
|
+
], exports.ɵeh.prototype, "color", void 0);
|
|
20590
|
+
__decorate([
|
|
20591
|
+
bbjWidgetBase.Data({
|
|
20592
|
+
properties: {
|
|
20593
|
+
id: ɵ0$e,
|
|
20594
|
+
start: { type: 'string', title: '开始日期' },
|
|
20595
|
+
end: { type: 'string', title: '结束日期' },
|
|
20596
|
+
title: { type: 'string', title: '标题' },
|
|
20597
|
+
color: { type: 'string', title: '背景颜色' },
|
|
20598
|
+
},
|
|
20599
|
+
}),
|
|
20600
|
+
__metadata("design:type", Array)
|
|
20601
|
+
], exports.ɵeh.prototype, "data", void 0);
|
|
20602
|
+
exports.ɵeh = __decorate([
|
|
20603
|
+
bbjWidgetBase.Widget('背景颜色', { hidden: true }),
|
|
20604
|
+
__metadata("design:paramtypes", [exports.ɵeg])
|
|
20605
|
+
], exports.ɵeh);
|
|
20606
|
+
|
|
20607
|
+
var ɵ0$f = { type: 'string', title: 'id' };
|
|
20608
|
+
exports.ɵej = /** @class */ (function (_super) {
|
|
20609
|
+
__extends(EventsComponent, _super);
|
|
20610
|
+
function EventsComponent(parent) {
|
|
20611
|
+
var _this = _super.call(this, parent) || this;
|
|
20612
|
+
_this.parent = parent;
|
|
20613
|
+
_this.data = [
|
|
20614
|
+
{ end: '2020-07-21 00:00:00', start: '2020-07-19 00:00:00', title: 'event 3' },
|
|
20615
|
+
{ end: '2020-07-19 00:00:00', start: '2020-07-18 00:00:00', title: 'event 4' },
|
|
20616
|
+
{ end: '2020-07-22', start: '2020-07-20', title: 'event 5' },
|
|
20617
|
+
];
|
|
20618
|
+
_this.dataClick = new i0.EventEmitter();
|
|
20619
|
+
_this.eventClick = function (event) {
|
|
20620
|
+
_this.dataClick.emit(event);
|
|
20621
|
+
};
|
|
20622
|
+
return _this;
|
|
20623
|
+
}
|
|
20624
|
+
EventsComponent.prototype.getEvents = function (data) {
|
|
20625
|
+
var _this = this;
|
|
20626
|
+
return data.map(function (item) {
|
|
20627
|
+
var event = Object.assign(Object.assign({}, item), { extendedProps: {
|
|
20628
|
+
eventClick: _this.eventClick,
|
|
20629
|
+
} });
|
|
20630
|
+
if (!event.color && _this.color) {
|
|
20631
|
+
event.color = _this.color;
|
|
20632
|
+
}
|
|
20633
|
+
updateEndTime(event);
|
|
20634
|
+
return event;
|
|
20635
|
+
});
|
|
20636
|
+
};
|
|
20637
|
+
return EventsComponent;
|
|
20638
|
+
}(CalendarEventsChild));
|
|
20639
|
+
exports.ɵej.decorators = [
|
|
20640
|
+
{ type: i0.Component, args: [{
|
|
20641
|
+
selector: 'sc-calendar-events',
|
|
20642
|
+
template: "",
|
|
20643
|
+
styles: [""]
|
|
20644
|
+
},] }
|
|
20645
|
+
];
|
|
20646
|
+
exports.ɵej.ctorParameters = function () { return [
|
|
20647
|
+
{ type: exports.ɵeg }
|
|
20648
|
+
]; };
|
|
20649
|
+
__decorate([
|
|
20650
|
+
bbjWidgetBase.Property('颜色', {
|
|
20651
|
+
ui: {
|
|
20652
|
+
widget: 'myColor',
|
|
20653
|
+
},
|
|
20654
|
+
}),
|
|
20655
|
+
__metadata("design:type", String)
|
|
20656
|
+
], exports.ɵej.prototype, "color", void 0);
|
|
20657
|
+
__decorate([
|
|
20658
|
+
bbjWidgetBase.Data({
|
|
20659
|
+
properties: {
|
|
20660
|
+
id: ɵ0$f,
|
|
20661
|
+
start: { type: 'string', title: '开始日期' },
|
|
20662
|
+
end: { type: 'string', title: '结束日期' },
|
|
20663
|
+
title: { type: 'string', title: '标题' },
|
|
20664
|
+
color: { type: 'string', title: '颜色' },
|
|
20665
|
+
},
|
|
20666
|
+
}),
|
|
20667
|
+
__metadata("design:type", Array)
|
|
20668
|
+
], exports.ɵej.prototype, "data", void 0);
|
|
20669
|
+
__decorate([
|
|
20670
|
+
bbjWidgetBase.DataOutput(['id', 'title']),
|
|
20671
|
+
__metadata("design:type", Object)
|
|
20672
|
+
], exports.ɵej.prototype, "dataClick", void 0);
|
|
20673
|
+
exports.ɵej = __decorate([
|
|
20674
|
+
bbjWidgetBase.Widget('事件', { hidden: true }),
|
|
20675
|
+
__metadata("design:paramtypes", [exports.ɵeg])
|
|
20676
|
+
], exports.ɵej);
|
|
20677
|
+
|
|
20396
20678
|
var CalendarModule = /** @class */ (function () {
|
|
20397
20679
|
function CalendarModule(widgetService) {
|
|
20398
20680
|
angular$1.FullCalendarModule.registerPlugins([
|
|
@@ -20401,12 +20683,14 @@
|
|
|
20401
20683
|
interactionPlugin__default['default'],
|
|
20402
20684
|
]);
|
|
20403
20685
|
widgetService.register(exports.ɵeg);
|
|
20686
|
+
widgetService.register(exports.ɵej);
|
|
20687
|
+
widgetService.register(exports.ɵeh);
|
|
20404
20688
|
}
|
|
20405
20689
|
return CalendarModule;
|
|
20406
20690
|
}());
|
|
20407
20691
|
CalendarModule.decorators = [
|
|
20408
20692
|
{ type: i0.NgModule, args: [{
|
|
20409
|
-
declarations: [exports.ɵeg],
|
|
20693
|
+
declarations: [exports.ɵeg, exports.ɵeh, exports.ɵej],
|
|
20410
20694
|
imports: [common.CommonModule, bbjWidgetBase.WidgetBaseModule, angular$1.FullCalendarModule],
|
|
20411
20695
|
},] }
|
|
20412
20696
|
];
|
|
@@ -20481,7 +20765,7 @@
|
|
|
20481
20765
|
], exports.ɵed.prototype, "tabBarGutter", void 0);
|
|
20482
20766
|
exports.ɵed = __decorate([
|
|
20483
20767
|
bbjWidgetBase.Widget('标签页', {
|
|
20484
|
-
group: 'component',
|
|
20768
|
+
group: 'component', image: 'assets/img/screen/tabs.png', icon: 'iconmokuai',
|
|
20485
20769
|
children: [
|
|
20486
20770
|
{
|
|
20487
20771
|
title: '选项卡1',
|
|
@@ -20537,7 +20821,7 @@
|
|
|
20537
20821
|
{ type: bbjWidgetBase.WidgetService }
|
|
20538
20822
|
]; };
|
|
20539
20823
|
|
|
20540
|
-
exports.ɵ
|
|
20824
|
+
exports.ɵel = /** @class */ (function () {
|
|
20541
20825
|
function GanttComponent(ele) {
|
|
20542
20826
|
this.ele = ele;
|
|
20543
20827
|
this.contentRenderers = new Map();
|
|
@@ -20696,27 +20980,27 @@
|
|
|
20696
20980
|
};
|
|
20697
20981
|
return GanttComponent;
|
|
20698
20982
|
}());
|
|
20699
|
-
exports.ɵ
|
|
20983
|
+
exports.ɵel.decorators = [
|
|
20700
20984
|
{ type: i0.Component, args: [{
|
|
20701
20985
|
selector: 'sc-gantt',
|
|
20702
20986
|
template: "<!--<nz-date-picker [(ngModel)]=\"initDate\" (ngModelChange)=\"onChange(initDate)\"></nz-date-picker>-->\n<full-calendar *ngIf=\"calendarOptions\" [options]=\"calendarOptions\" ></full-calendar>\n<ng-template #fcEventContent let-data=\"data\">\n\n <div class=\"progress\" nz-tooltip [nzTooltipTitle]=\"titleTemplate\" [ngStyle]=\"data.progressStyle\">\n <span class=\"bar\" [ngStyle]=\"data.barStyle\">{{data.title}}</span>\n </div>\n <ng-template #titleTemplate><i nz-icon nzType=\"file\" style=\"margin-right: 8px\"></i> <span>{{data.title}}<br/>\u5F00\u59CB:{{data.start}}<br/>\u7ED3\u675F:{{data.end}}<br/>\u8FDB\u5EA6:{{data.progress}}</span></ng-template>\n</ng-template>\n\n",
|
|
20703
20987
|
styles: [":host ::ng-deep .fc-direction-ltr{height:100%}:host ::ng-deep .fc .fc-view-harness{padding-bottom:0!important}:host ::ng-deep .progress{overflow:hidden;height:var(--height);background-color:#f7f7f7;background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\"#fff5f5f5\",endColorstr=\"#fff9f9f9\",GradientType=0);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);border-radius:4px;width:100%}:host ::ng-deep .progress .bar{white-space:nowrap;width:0;height:100%;color:#fff;float:left;font-size:12px;text-align:center;align-items:center;display:flex;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#0e90d2;background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\"#ff149bdf\",endColorstr=\"#ff0480be\",GradientType=0);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-sizing:border-box;transition:width .6s ease}:host ::ng-deep .fc-license-message{display:none!important}:host ::ng-deep .fc table{font-size:17px!important}:host ::ng-deep .fc-resource .fc-datagrid-cell-main{font-size:var(--fontSize);color:var(--color);font-weight:var(--weight);font-family:var(--family);line-height:var(--lineHeight)}"]
|
|
20704
20988
|
},] }
|
|
20705
20989
|
];
|
|
20706
|
-
exports.ɵ
|
|
20990
|
+
exports.ɵel.ctorParameters = function () { return [
|
|
20707
20991
|
{ type: i0.ElementRef }
|
|
20708
20992
|
]; };
|
|
20709
|
-
exports.ɵ
|
|
20993
|
+
exports.ɵel.propDecorators = {
|
|
20710
20994
|
eventContent: [{ type: i0.ViewChild, args: ['fcEventContent', { static: true },] }]
|
|
20711
20995
|
};
|
|
20712
20996
|
__decorate([
|
|
20713
20997
|
bbjWidgetBase.Property('头部名称', { type: 'string' }),
|
|
20714
20998
|
__metadata("design:type", Object)
|
|
20715
|
-
], exports.ɵ
|
|
20999
|
+
], exports.ɵel.prototype, "headerContent", void 0);
|
|
20716
21000
|
__decorate([
|
|
20717
21001
|
bbjWidgetBase.Property('项目字体', { ui: { widget: 'myFont' } }),
|
|
20718
21002
|
__metadata("design:type", Object)
|
|
20719
|
-
], exports.ɵ
|
|
21003
|
+
], exports.ɵel.prototype, "contentFont", void 0);
|
|
20720
21004
|
__decorate([
|
|
20721
21005
|
bbjWidgetBase.Property('系列颜色', {
|
|
20722
21006
|
ui: {
|
|
@@ -20725,19 +21009,19 @@
|
|
|
20725
21009
|
},
|
|
20726
21010
|
}),
|
|
20727
21011
|
__metadata("design:type", Object)
|
|
20728
|
-
], exports.ɵ
|
|
21012
|
+
], exports.ɵel.prototype, "lineColor", void 0);
|
|
20729
21013
|
__decorate([
|
|
20730
21014
|
bbjWidgetBase.Property('进度透明', { type: 'number', max: 1 }),
|
|
20731
21015
|
__metadata("design:type", Object)
|
|
20732
|
-
], exports.ɵ
|
|
21016
|
+
], exports.ɵel.prototype, "progressTransparency", void 0);
|
|
20733
21017
|
__decorate([
|
|
20734
21018
|
bbjWidgetBase.Property('区域占比', { type: 'number' }),
|
|
20735
21019
|
__metadata("design:type", Object)
|
|
20736
|
-
], exports.ɵ
|
|
21020
|
+
], exports.ɵel.prototype, "areaRate", void 0);
|
|
20737
21021
|
__decorate([
|
|
20738
21022
|
bbjWidgetBase.Property('进度条高度', { type: 'number' }),
|
|
20739
21023
|
__metadata("design:type", Object)
|
|
20740
|
-
], exports.ɵ
|
|
21024
|
+
], exports.ɵel.prototype, "progressHeight", void 0);
|
|
20741
21025
|
__decorate([
|
|
20742
21026
|
bbjWidgetBase.Data({
|
|
20743
21027
|
properties: {
|
|
@@ -20749,11 +21033,11 @@
|
|
|
20749
21033
|
},
|
|
20750
21034
|
}),
|
|
20751
21035
|
__metadata("design:type", Array)
|
|
20752
|
-
], exports.ɵ
|
|
20753
|
-
exports.ɵ
|
|
21036
|
+
], exports.ɵel.prototype, "data", void 0);
|
|
21037
|
+
exports.ɵel = __decorate([
|
|
20754
21038
|
bbjWidgetBase.Widget('甘特图', { group: 'component', image: 'assets/img/screen/gantt.png', icon: 'iconmokuai' }),
|
|
20755
21039
|
__metadata("design:paramtypes", [i0.ElementRef])
|
|
20756
|
-
], exports.ɵ
|
|
21040
|
+
], exports.ɵel);
|
|
20757
21041
|
|
|
20758
21042
|
// import {FormsModule} from '@angular/forms';
|
|
20759
21043
|
// import {NzDatePickerModule} from 'ng-zorro-antd/date-picker';
|
|
@@ -20766,13 +21050,13 @@
|
|
|
20766
21050
|
interactionPlugin__default['default'],
|
|
20767
21051
|
resourceTimelinePlugin__default['default'],
|
|
20768
21052
|
]);
|
|
20769
|
-
widgetService.register(exports.ɵ
|
|
21053
|
+
widgetService.register(exports.ɵel);
|
|
20770
21054
|
}
|
|
20771
21055
|
return GanttModule;
|
|
20772
21056
|
}());
|
|
20773
21057
|
GanttModule.decorators = [
|
|
20774
21058
|
{ type: i0.NgModule, args: [{
|
|
20775
|
-
declarations: [exports.ɵ
|
|
21059
|
+
declarations: [exports.ɵel],
|
|
20776
21060
|
imports: [
|
|
20777
21061
|
common.CommonModule,
|
|
20778
21062
|
bbjWidgetBase.WidgetBaseModule,
|
|
@@ -20922,13 +21206,13 @@
|
|
|
20922
21206
|
size: { width: 7, height: 3 },
|
|
20923
21207
|
});
|
|
20924
21208
|
widgetService.register(exports.ɵbp, {
|
|
20925
|
-
title: '
|
|
21209
|
+
title: '视频demo',
|
|
20926
21210
|
option: {
|
|
20927
21211
|
type: 'video',
|
|
20928
21212
|
src: 'https://xiche.oss-cn-beijing.aliyuncs.com/video/20180417154421.mp4',
|
|
20929
21213
|
},
|
|
20930
21214
|
}, {
|
|
20931
|
-
title: '
|
|
21215
|
+
title: '音频demo',
|
|
20932
21216
|
option: {
|
|
20933
21217
|
type: 'audio',
|
|
20934
21218
|
src: 'https://xiche.oss-cn-beijing.aliyuncs.com/video/20180417154421.mp4',
|
|
@@ -21407,7 +21691,8 @@
|
|
|
21407
21691
|
exports.ɵea = AnnouncementModule;
|
|
21408
21692
|
exports.ɵec = TabsModule;
|
|
21409
21693
|
exports.ɵef = CalendarModule;
|
|
21410
|
-
exports.ɵ
|
|
21694
|
+
exports.ɵei = CalendarEventsChild;
|
|
21695
|
+
exports.ɵek = GanttModule;
|
|
21411
21696
|
exports.ɵo = ButtonModule;
|
|
21412
21697
|
exports.ɵq = HttpService;
|
|
21413
21698
|
exports.ɵr = TimerModule;
|