bbj-screen-widget 2.4.60 → 2.4.62
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/core/package.json +2 -10
- package/core/src/service/baidu-map.service.ts +107 -0
- package/karma.conf.js +32 -0
- package/ng-package.json +59 -0
- package/package.json +4 -13
- package/src/lib/announcement/announcement.component.html +3 -0
- package/src/lib/announcement/announcement.component.less +5 -0
- package/src/lib/announcement/announcement.component.spec.ts +25 -0
- package/src/lib/announcement/announcement.component.ts +55 -0
- package/src/lib/announcement/announcement.module.ts +19 -0
- package/src/lib/audio/audio.component.html +6 -0
- package/src/lib/audio/audio.component.less +12 -0
- package/src/lib/audio/audio.component.spec.ts +25 -0
- package/src/lib/audio/audio.component.ts +167 -0
- package/src/lib/audio/audio.module.ts +15 -0
- package/src/lib/background/background.component.html +1 -0
- package/src/lib/background/background.component.less +6 -0
- package/src/lib/background/background.component.spec.ts +25 -0
- package/src/lib/background/background.component.ts +33 -0
- package/src/lib/background/background.module.ts +14 -0
- package/src/lib/bar-chart-three-d/bar-chart-three-d.component.html +1 -0
- package/src/lib/bar-chart-three-d/bar-chart-three-d.component.less +8 -0
- package/src/lib/bar-chart-three-d/bar-chart-three-d.component.spec.ts +25 -0
- package/src/lib/bar-chart-three-d/bar-chart-three-d.component.ts +271 -0
- package/src/lib/bar-chart-three-d/bar-chart-three-d.module.ts +15 -0
- package/src/lib/basic-bar-chart/basic-bar-chart.component.html +7 -0
- package/src/lib/basic-bar-chart/basic-bar-chart.component.less +5 -0
- package/src/lib/basic-bar-chart/basic-bar-chart.component.spec.ts +25 -0
- package/src/lib/basic-bar-chart/basic-bar-chart.component.ts +493 -0
- package/src/lib/basic-bar-chart/basic-bar-chart.module.ts +21 -0
- package/src/lib/basic-line-chart/basic-line-chart.component.html +7 -0
- package/src/lib/basic-line-chart/basic-line-chart.component.less +8 -0
- package/src/lib/basic-line-chart/basic-line-chart.component.spec.ts +25 -0
- package/src/lib/basic-line-chart/basic-line-chart.component.ts +654 -0
- package/src/lib/basic-line-chart/basic-line-chart.module.ts +15 -0
- package/src/lib/basic-pie-chart/basic-pie-chart.component.html +7 -0
- package/src/lib/basic-pie-chart/basic-pie-chart.component.less +8 -0
- package/src/lib/basic-pie-chart/basic-pie-chart.component.spec.ts +25 -0
- package/src/lib/basic-pie-chart/basic-pie-chart.component.ts +439 -0
- package/src/lib/basic-pie-chart/basic-pie-chart.module.ts +15 -0
- package/src/lib/basic-planimetric-map/basic-planimetric-map.component.html +2 -0
- package/src/lib/basic-planimetric-map/basic-planimetric-map.component.less +9 -0
- package/src/lib/basic-planimetric-map/basic-planimetric-map.component.spec.ts +25 -0
- package/src/lib/basic-planimetric-map/basic-planimetric-map.component.ts +211 -0
- package/src/lib/basic-planimetric-map/basic-planimetric-map.module.ts +16 -0
- package/src/lib/breathing-bubble-layer/breathing-bubble-layer.component.css +0 -0
- package/src/lib/breathing-bubble-layer/breathing-bubble-layer.component.html +1 -0
- package/src/lib/breathing-bubble-layer/breathing-bubble-layer.component.spec.ts +25 -0
- package/src/lib/breathing-bubble-layer/breathing-bubble-layer.component.ts +487 -0
- package/src/lib/breathing-bubble-layer/breathing-bubble-layer.module.ts +14 -0
- package/src/lib/bubble-chart/bubble-chart.component.html +7 -0
- package/src/lib/bubble-chart/bubble-chart.component.less +8 -0
- package/src/lib/bubble-chart/bubble-chart.component.spec.ts +25 -0
- package/src/lib/bubble-chart/bubble-chart.component.ts +307 -0
- package/src/lib/bubble-chart/bubble-chart.module.ts +15 -0
- package/src/lib/bulletin-board/bulletin-board.component.html +15 -0
- package/src/lib/bulletin-board/bulletin-board.component.less +27 -0
- package/src/lib/bulletin-board/bulletin-board.component.spec.ts +25 -0
- package/src/lib/bulletin-board/bulletin-board.component.ts +127 -0
- package/src/lib/bulletin-board/bulletin-board.module.ts +20 -0
- package/src/lib/button/button.component.html +1 -0
- package/src/lib/button/button.component.less +17 -0
- package/src/lib/button/button.component.spec.ts +25 -0
- package/src/lib/button/button.component.ts +137 -0
- package/src/lib/button/button.module.ts +16 -0
- package/src/lib/calendar/background-events/background-events.component.html +0 -0
- package/src/lib/calendar/background-events/background-events.component.less +0 -0
- package/src/lib/calendar/background-events/background-events.component.spec.ts +25 -0
- package/src/lib/calendar/background-events/background-events.component.ts +51 -0
- package/src/lib/calendar/calendar-events-child.ts +27 -0
- package/src/lib/calendar/calendar.component.html +2 -0
- package/src/lib/calendar/calendar.component.less +14 -0
- package/src/lib/calendar/calendar.component.spec.ts +25 -0
- package/src/lib/calendar/calendar.component.ts +151 -0
- package/src/lib/calendar/calendar.module.ts +27 -0
- package/src/lib/calendar/calendar.util.ts +14 -0
- package/src/lib/calendar/events/events.component.html +0 -0
- package/src/lib/calendar/events/events.component.less +0 -0
- package/src/lib/calendar/events/events.component.spec.ts +25 -0
- package/src/lib/calendar/events/events.component.ts +61 -0
- package/src/lib/checkbox/checkbox.component.html +61 -0
- package/src/lib/checkbox/checkbox.component.less +104 -0
- package/src/lib/checkbox/checkbox.component.spec.ts +25 -0
- package/src/lib/checkbox/checkbox.component.ts +292 -0
- package/src/lib/checkbox/checkbox.module.ts +16 -0
- package/src/lib/cross-table/cross-table.component.html +16 -0
- package/src/lib/cross-table/cross-table.component.less +75 -0
- package/src/lib/cross-table/cross-table.component.spec.ts +25 -0
- package/src/lib/cross-table/cross-table.component.ts +257 -0
- package/src/lib/cross-table/cross-table.module.ts +18 -0
- package/src/lib/custom-baidu-map/baidu-marker-layer/baidu-marker-layer.component.html +32 -0
- package/src/lib/custom-baidu-map/baidu-marker-layer/baidu-marker-layer.component.less +11 -0
- package/src/lib/custom-baidu-map/baidu-marker-layer/baidu-marker-layer.component.spec.ts +25 -0
- package/src/lib/custom-baidu-map/baidu-marker-layer/baidu-marker-layer.component.ts +689 -0
- package/src/lib/custom-baidu-map/baidu-polyline-layer/baidu-polyline-layer.component.html +0 -0
- package/src/lib/custom-baidu-map/baidu-polyline-layer/baidu-polyline-layer.component.less +0 -0
- package/src/lib/custom-baidu-map/baidu-polyline-layer/baidu-polyline-layer.component.spec.ts +25 -0
- package/src/lib/custom-baidu-map/baidu-polyline-layer/baidu-polyline-layer.component.ts +248 -0
- package/src/lib/custom-baidu-map/base-layer.ts +50 -0
- package/src/lib/custom-baidu-map/custom-baidu-map.component.html +15 -0
- package/src/lib/custom-baidu-map/custom-baidu-map.component.less +69 -0
- package/src/lib/custom-baidu-map/custom-baidu-map.component.spec.ts +25 -0
- package/src/lib/custom-baidu-map/custom-baidu-map.component.ts +652 -0
- package/src/lib/custom-baidu-map/custom-baidu-map.module.ts +41 -0
- package/src/lib/custom-baidu-map/typhoon-area-layer/typhoon-area-layer.component.html +0 -0
- package/src/lib/custom-baidu-map/typhoon-area-layer/typhoon-area-layer.component.less +0 -0
- package/src/lib/custom-baidu-map/typhoon-area-layer/typhoon-area-layer.component.spec.ts +25 -0
- package/src/lib/custom-baidu-map/typhoon-area-layer/typhoon-area-layer.component.ts +99 -0
- package/src/lib/custom-baidu-map/wind-layer/wind-layer.component.html +0 -0
- package/src/lib/custom-baidu-map/wind-layer/wind-layer.component.less +0 -0
- package/src/lib/custom-baidu-map/wind-layer/wind-layer.component.spec.ts +25 -0
- package/src/lib/custom-baidu-map/wind-layer/wind-layer.component.ts +404 -0
- package/src/lib/data-map/data-map.component.html +9 -0
- package/src/lib/data-map/data-map.component.less +0 -0
- package/src/lib/data-map/data-map.component.spec.ts +25 -0
- package/src/lib/data-map/data-map.component.ts +105 -0
- package/src/lib/data-map/data-map.module.ts +15 -0
- package/src/lib/date-picker/date-picker.component.html +32 -0
- package/src/lib/date-picker/date-picker.component.less +20 -0
- package/src/lib/date-picker/date-picker.component.spec.ts +25 -0
- package/src/lib/date-picker/date-picker.component.ts +389 -0
- package/src/lib/date-picker/date-picker.module.ts +18 -0
- package/src/lib/drop-down-detail-list/drop-down-detail-list.component.html +25 -0
- package/src/lib/drop-down-detail-list/drop-down-detail-list.component.less +35 -0
- package/src/lib/drop-down-detail-list/drop-down-detail-list.component.spec.ts +25 -0
- package/src/lib/drop-down-detail-list/drop-down-detail-list.component.ts +117 -0
- package/src/lib/drop-down-detail-list/drop-down-detail-list.module.ts +15 -0
- package/src/lib/dynamic-list/dynamic-list.component.html +15 -0
- package/src/lib/dynamic-list/dynamic-list.component.less +31 -0
- package/src/lib/dynamic-list/dynamic-list.component.spec.ts +25 -0
- package/src/lib/dynamic-list/dynamic-list.component.ts +57 -0
- package/src/lib/dynamic-list/dynamic-list.module.ts +15 -0
- package/src/lib/funnel-chart/funnel-chart.component.html +7 -0
- package/src/lib/funnel-chart/funnel-chart.component.less +8 -0
- package/src/lib/funnel-chart/funnel-chart.component.spec.ts +25 -0
- package/src/lib/funnel-chart/funnel-chart.component.ts +198 -0
- package/src/lib/funnel-chart/funnel-chart.module.ts +15 -0
- package/src/lib/gantt/gantt.component.html +10 -0
- package/src/lib/gantt/gantt.component.less +76 -0
- package/src/lib/gantt/gantt.component.spec.ts +25 -0
- package/src/lib/gantt/gantt.component.ts +213 -0
- package/src/lib/gantt/gantt.module.ts +37 -0
- package/src/lib/gauge/gauge.component.html +1 -0
- package/src/lib/gauge/gauge.component.less +8 -0
- package/src/lib/gauge/gauge.component.spec.ts +25 -0
- package/src/lib/gauge/gauge.component.ts +268 -0
- package/src/lib/gauge/gauge.module.ts +15 -0
- package/src/lib/gauge-progress/gauge-progress.component.html +29 -0
- package/src/lib/gauge-progress/gauge-progress.component.less +51 -0
- package/src/lib/gauge-progress/gauge-progress.component.ts +293 -0
- package/src/lib/gauge-progress/gauge.module.ts +17 -0
- package/src/lib/general-text/general-text.component.html +7 -0
- package/src/lib/general-text/general-text.component.less +8 -0
- package/src/lib/general-text/general-text.component.spec.ts +25 -0
- package/src/lib/general-text/general-text.component.ts +114 -0
- package/src/lib/general-text/general-text.module.ts +15 -0
- package/src/lib/iconfont/icon.ts +198 -0
- package/src/lib/iconfont/iconfont.component.html +4 -0
- package/src/lib/iconfont/iconfont.component.less +5 -0
- package/src/lib/iconfont/iconfont.component.spec.ts +25 -0
- package/src/lib/iconfont/iconfont.component.ts +42 -0
- package/src/lib/iconfont/iconfont.module.ts +15 -0
- package/src/lib/iframe/iframe.component.html +1 -0
- package/src/lib/iframe/iframe.component.less +13 -0
- package/src/lib/iframe/iframe.component.spec.ts +25 -0
- package/src/lib/iframe/iframe.component.ts +34 -0
- package/src/lib/iframe/iframe.module.ts +15 -0
- package/src/lib/image/image.component.html +2 -0
- package/src/lib/image/image.component.less +13 -0
- package/src/lib/image/image.component.spec.ts +25 -0
- package/src/lib/image/image.component.ts +79 -0
- package/src/lib/image/image.module.ts +14 -0
- package/src/lib/item-swiper/item-swiper.component.html +48 -0
- package/src/lib/item-swiper/item-swiper.component.less +75 -0
- package/src/lib/item-swiper/item-swiper.component.spec.ts +25 -0
- package/src/lib/item-swiper/item-swiper.component.ts +277 -0
- package/src/lib/item-swiper/item-swiper.module.ts +17 -0
- package/src/lib/line-bar-chart/line-bar-chart.component.html +7 -0
- package/src/lib/line-bar-chart/line-bar-chart.component.less +3 -0
- package/src/lib/line-bar-chart/line-bar-chart.component.spec.ts +25 -0
- package/src/lib/line-bar-chart/line-bar-chart.component.ts +346 -0
- package/src/lib/line-bar-chart/line-bar-chart.module.ts +15 -0
- package/src/lib/line-light-flow/line-light-flow.component.css +0 -0
- package/src/lib/line-light-flow/line-light-flow.component.html +3 -0
- package/src/lib/line-light-flow/line-light-flow.component.spec.ts +25 -0
- package/src/lib/line-light-flow/line-light-flow.component.ts +274 -0
- package/src/lib/line-light-flow/line-light-flow.module.ts +21 -0
- package/src/lib/liquid-fill/liquid-fill.component.html +1 -0
- package/src/lib/liquid-fill/liquid-fill.component.less +8 -0
- package/src/lib/liquid-fill/liquid-fill.component.spec.ts +25 -0
- package/src/lib/liquid-fill/liquid-fill.component.ts +127 -0
- package/src/lib/liquid-fill/liquid-fill.module.ts +15 -0
- package/src/lib/marquee/marquee.component.html +5 -0
- package/src/lib/marquee/marquee.component.less +9 -0
- package/src/lib/marquee/marquee.component.spec.ts +25 -0
- package/src/lib/marquee/marquee.component.ts +84 -0
- package/src/lib/marquee/marquee.module.ts +14 -0
- package/src/lib/mip-anim/mip-anim.component.html +1 -0
- package/src/lib/mip-anim/mip-anim.component.less +7 -0
- package/src/lib/mip-anim/mip-anim.component.spec.ts +25 -0
- package/src/lib/mip-anim/mip-anim.component.ts +18 -0
- package/src/lib/mip-anim/mip-anim.module.ts +14 -0
- package/src/lib/multi-title-gauge/multi-title-gauge.component.html +1 -0
- package/src/lib/multi-title-gauge/multi-title-gauge.component.less +9 -0
- package/src/lib/multi-title-gauge/multi-title-gauge.component.spec.ts +25 -0
- package/src/lib/multi-title-gauge/multi-title-gauge.component.ts +231 -0
- package/src/lib/multi-title-gauge/multi-title-gauge.module.ts +19 -0
- package/src/lib/number-flop/number-flop.component.html +31 -0
- package/src/lib/number-flop/number-flop.component.less +155 -0
- package/src/lib/number-flop/number-flop.component.spec.ts +25 -0
- package/src/lib/number-flop/number-flop.component.ts +96 -0
- package/src/lib/number-flop/number-flop.module.ts +14 -0
- package/src/lib/parent-container/parent-container.component.html +0 -0
- package/src/lib/parent-container/parent-container.component.less +0 -0
- package/src/lib/parent-container/parent-container.component.spec.ts +25 -0
- package/src/lib/parent-container/parent-container.component.ts +21 -0
- package/src/lib/parent-container/parent-container.module.ts +14 -0
- package/src/lib/percent-pie-chart/percent-pie-chart.component.html +8 -0
- package/src/lib/percent-pie-chart/percent-pie-chart.component.less +8 -0
- package/src/lib/percent-pie-chart/percent-pie-chart.component.spec.ts +25 -0
- package/src/lib/percent-pie-chart/percent-pie-chart.component.ts +213 -0
- package/src/lib/percent-pie-chart/percent-pie-chart.module.ts +15 -0
- package/src/lib/pie3d-chart/pie3d-chart.component.html +1 -0
- package/src/lib/pie3d-chart/pie3d-chart.component.less +9 -0
- package/src/lib/pie3d-chart/pie3d-chart.component.spec.ts +25 -0
- package/src/lib/pie3d-chart/pie3d-chart.component.ts +278 -0
- package/src/lib/pie3d-chart/pie3d-chart.module.ts +16 -0
- package/src/lib/planimetric-map2d/fly-line-layer/fly-line-layer.component.html +0 -0
- package/src/lib/planimetric-map2d/fly-line-layer/fly-line-layer.component.less +0 -0
- package/src/lib/planimetric-map2d/fly-line-layer/fly-line-layer.component.spec.ts +25 -0
- package/src/lib/planimetric-map2d/fly-line-layer/fly-line-layer.component.ts +411 -0
- package/src/lib/planimetric-map2d/fly-line-layer/fly-line-layer.module.ts +13 -0
- package/src/lib/planimetric-map2d/map2d-mark-layer/map2d-mark-layer.component.html +1 -0
- package/src/lib/planimetric-map2d/map2d-mark-layer/map2d-mark-layer.component.less +0 -0
- package/src/lib/planimetric-map2d/map2d-mark-layer/map2d-mark-layer.component.spec.ts +25 -0
- package/src/lib/planimetric-map2d/map2d-mark-layer/map2d-mark-layer.component.ts +235 -0
- package/src/lib/planimetric-map2d/map2d-mark-layer/map2d-mark-layer.module.ts +16 -0
- package/src/lib/planimetric-map2d/map2d-polyline-layer/map2d-polyline-layer.component.html +0 -0
- package/src/lib/planimetric-map2d/map2d-polyline-layer/map2d-polyline-layer.component.less +0 -0
- package/src/lib/planimetric-map2d/map2d-polyline-layer/map2d-polyline-layer.component.spec.ts +25 -0
- package/src/lib/planimetric-map2d/map2d-polyline-layer/map2d-polyline-layer.component.ts +107 -0
- package/src/lib/planimetric-map2d/map2d-polyline-layer/map2d-polyline-layer.module.ts +17 -0
- package/src/lib/planimetric-map2d/map2d-visual-layer/map2d-visual-layer.component.html +0 -0
- package/src/lib/planimetric-map2d/map2d-visual-layer/map2d-visual-layer.component.less +0 -0
- package/src/lib/planimetric-map2d/map2d-visual-layer/map2d-visual-layer.component.spec.ts +25 -0
- package/src/lib/planimetric-map2d/map2d-visual-layer/map2d-visual-layer.component.ts +337 -0
- package/src/lib/planimetric-map2d/map2d-visual-layer/map2d-visual-layer.module.ts +18 -0
- package/src/lib/planimetric-map2d/planimetric-map2d.component.html +11 -0
- package/src/lib/planimetric-map2d/planimetric-map2d.component.less +9 -0
- package/src/lib/planimetric-map2d/planimetric-map2d.component.spec.ts +25 -0
- package/src/lib/planimetric-map2d/planimetric-map2d.component.ts +690 -0
- package/src/lib/planimetric-map2d/planimetric-map2d.module.ts +29 -0
- package/src/lib/planimetric-map3d/map3d-line-layer/map3d-line-layer.component.html +0 -0
- package/src/lib/planimetric-map3d/map3d-line-layer/map3d-line-layer.component.less +0 -0
- package/src/lib/planimetric-map3d/map3d-line-layer/map3d-line-layer.component.spec.ts +25 -0
- package/src/lib/planimetric-map3d/map3d-line-layer/map3d-line-layer.component.ts +123 -0
- package/src/lib/planimetric-map3d/map3d-line-layer/map3d-line-layer.module.ts +14 -0
- package/src/lib/planimetric-map3d/map3d-mark-layer/map3d-mark-layer.component.html +0 -0
- package/src/lib/planimetric-map3d/map3d-mark-layer/map3d-mark-layer.component.less +0 -0
- package/src/lib/planimetric-map3d/map3d-mark-layer/map3d-mark-layer.component.spec.ts +25 -0
- package/src/lib/planimetric-map3d/map3d-mark-layer/map3d-mark-layer.component.ts +229 -0
- package/src/lib/planimetric-map3d/map3d-mark-layer/map3d-mark-layer.module.ts +14 -0
- package/src/lib/planimetric-map3d/planimetric-map3d.component.html +2 -0
- package/src/lib/planimetric-map3d/planimetric-map3d.component.less +10 -0
- package/src/lib/planimetric-map3d/planimetric-map3d.component.spec.ts +25 -0
- package/src/lib/planimetric-map3d/planimetric-map3d.component.ts +227 -0
- package/src/lib/planimetric-map3d/planimetric-map3d.module.ts +17 -0
- package/src/lib/radar-chart/radar-chart.component.html +7 -0
- package/src/lib/radar-chart/radar-chart.component.less +8 -0
- package/src/lib/radar-chart/radar-chart.component.spec.ts +25 -0
- package/src/lib/radar-chart/radar-chart.component.ts +219 -0
- package/src/lib/radar-chart/radar-chart.module.ts +15 -0
- package/src/lib/radio/radio.component.html +18 -0
- package/src/lib/radio/radio.component.less +61 -0
- package/src/lib/radio/radio.component.spec.ts +25 -0
- package/src/lib/radio/radio.component.ts +116 -0
- package/src/lib/radio/radio.module.ts +16 -0
- package/src/lib/rate/rate.component.html +16 -0
- package/src/lib/rate/rate.component.less +39 -0
- package/src/lib/rate/rate.component.spec.ts +25 -0
- package/src/lib/rate/rate.component.ts +40 -0
- package/src/lib/rate/rate.module.ts +18 -0
- package/src/lib/scatter3d/scatter3d.component.html +1 -0
- package/src/lib/scatter3d/scatter3d.component.less +8 -0
- package/src/lib/scatter3d/scatter3d.component.spec.ts +25 -0
- package/src/lib/scatter3d/scatter3d.component.ts +129 -0
- package/src/lib/scatter3d/scatter3d.module.ts +15 -0
- package/src/lib/screen-widget.module.ts +592 -0
- package/src/lib/search/search.component.html +30 -0
- package/src/lib/search/search.component.less +30 -0
- package/src/lib/search/search.component.spec.ts +25 -0
- package/src/lib/search/search.component.ts +103 -0
- package/src/lib/search/search.module.ts +22 -0
- package/src/lib/select/select.component.html +30 -0
- package/src/lib/select/select.component.less +117 -0
- package/src/lib/select/select.component.spec.ts +25 -0
- package/src/lib/select/select.component.ts +297 -0
- package/src/lib/select/select.module.ts +18 -0
- package/src/lib/shape/shape.component.html +39 -0
- package/src/lib/shape/shape.component.less +8 -0
- package/src/lib/shape/shape.component.spec.ts +25 -0
- package/src/lib/shape/shape.component.ts +207 -0
- package/src/lib/shape/shape.module.ts +14 -0
- package/src/lib/shared/component/video-player/video-player.component.html +2 -0
- package/src/lib/shared/component/video-player/video-player.component.less +15 -0
- package/src/lib/shared/component/video-player/video-player.component.spec.ts +25 -0
- package/src/lib/shared/component/video-player/video-player.component.ts +132 -0
- package/src/lib/shared/component/video-player/video-player.module.ts +11 -0
- package/src/lib/shared/model/scale.token.ts +8 -0
- package/src/lib/shared/service/common.service.ts +28 -0
- package/src/lib/shared/service/file-url.service.ts +8 -0
- package/src/lib/shared/service/gaode-map.service.ts +37 -0
- package/src/lib/shared/service/highcharts.service.ts +29 -0
- package/src/lib/shared/service/http.service.ts +15 -0
- package/src/lib/shared/util/base.util.ts +4 -0
- package/src/lib/shared/util/echarts.util.ts +11 -0
- package/src/lib/shared/util/style.util.ts +12 -0
- package/src/lib/shuffling-list/color.pipe.ts +21 -0
- package/src/lib/shuffling-list/shuffling-list.component.html +37 -0
- package/src/lib/shuffling-list/shuffling-list.component.less +55 -0
- package/src/lib/shuffling-list/shuffling-list.component.spec.ts +25 -0
- package/src/lib/shuffling-list/shuffling-list.component.ts +534 -0
- package/src/lib/shuffling-list/shuffling-list.module.ts +17 -0
- package/src/lib/table/table.component.html +123 -0
- package/src/lib/table/table.component.less +76 -0
- package/src/lib/table/table.component.spec.ts +25 -0
- package/src/lib/table/table.component.ts +608 -0
- package/src/lib/table/table.module.ts +33 -0
- package/src/lib/tabs/tab/tab.component.html +1 -0
- package/src/lib/tabs/tab/tab.component.less +5 -0
- package/src/lib/tabs/tab/tab.component.spec.ts +25 -0
- package/src/lib/tabs/tab/tab.component.ts +18 -0
- package/src/lib/tabs/tabs.component.html +13 -0
- package/src/lib/tabs/tabs.component.less +40 -0
- package/src/lib/tabs/tabs.component.spec.ts +25 -0
- package/src/lib/tabs/tabs.component.ts +68 -0
- package/src/lib/tabs/tabs.module.ts +17 -0
- package/src/lib/temporary-data/temporary-data.component.html +1 -0
- package/src/lib/temporary-data/temporary-data.component.less +4 -0
- package/src/lib/temporary-data/temporary-data.component.spec.ts +25 -0
- package/src/lib/temporary-data/temporary-data.component.ts +46 -0
- package/src/lib/temporary-data/temporary-data.module.ts +15 -0
- package/src/lib/text/text.component.css +0 -0
- package/src/lib/text/text.component.html +3 -0
- package/src/lib/text/text.component.spec.ts +25 -0
- package/src/lib/text/text.component.ts +22 -0
- package/src/lib/text/text.module.ts +14 -0
- package/src/lib/time-picker/time-picker.component.html +1 -0
- package/src/lib/time-picker/time-picker.component.less +14 -0
- package/src/lib/time-picker/time-picker.component.spec.ts +25 -0
- package/src/lib/time-picker/time-picker.component.ts +86 -0
- package/src/lib/time-picker/time-picker.module.ts +19 -0
- package/src/lib/timer/timer.component.html +7 -0
- package/src/lib/timer/timer.component.less +24 -0
- package/src/lib/timer/timer.component.spec.ts +25 -0
- package/src/lib/timer/timer.component.ts +74 -0
- package/src/lib/timer/timer.module.ts +15 -0
- package/src/lib/tree-control/tree-control.component.html +97 -0
- package/src/lib/tree-control/tree-control.component.less +111 -0
- package/src/lib/tree-control/tree-control.component.spec.ts +25 -0
- package/src/lib/tree-control/tree-control.component.ts +363 -0
- package/src/lib/tree-control/tree-control.module.ts +18 -0
- package/src/lib/tree-ring-chart/tree-ring-chart.component.html +7 -0
- package/src/lib/tree-ring-chart/tree-ring-chart.component.less +8 -0
- package/src/lib/tree-ring-chart/tree-ring-chart.component.spec.ts +25 -0
- package/src/lib/tree-ring-chart/tree-ring-chart.component.ts +192 -0
- package/src/lib/tree-ring-chart/tree-ring-chart.module.ts +15 -0
- package/src/lib/upload/upload.component.html +32 -0
- package/src/lib/upload/upload.component.less +14 -0
- package/src/lib/upload/upload.component.spec.ts +25 -0
- package/src/lib/upload/upload.component.ts +109 -0
- package/src/lib/upload/upload.module.ts +19 -0
- package/src/lib/video-grid/video-grid.component.html +33 -0
- package/src/lib/video-grid/video-grid.component.less +68 -0
- package/src/lib/video-grid/video-grid.component.spec.ts +25 -0
- package/src/lib/video-grid/video-grid.component.ts +115 -0
- package/src/lib/video-grid/video-grid.module.ts +17 -0
- package/src/lib/visual-map-chart/visual-map-chart.component.html +8 -0
- package/src/lib/visual-map-chart/visual-map-chart.component.less +21 -0
- package/src/lib/visual-map-chart/visual-map-chart.component.spec.ts +25 -0
- package/src/lib/visual-map-chart/visual-map-chart.component.ts +365 -0
- package/src/lib/visual-map-chart/visual-map-chart.module.ts +18 -0
- package/src/lib/vote/vote.component.html +6 -0
- package/src/lib/vote/vote.component.less +41 -0
- package/src/lib/vote/vote.component.spec.ts +25 -0
- package/src/lib/vote/vote.component.ts +71 -0
- package/src/lib/vote/vote.module.ts +16 -0
- package/src/lib/weather/weather.component.html +27 -0
- package/src/lib/weather/weather.component.less +67 -0
- package/src/lib/weather/weather.component.spec.ts +25 -0
- package/src/lib/weather/weather.component.ts +78 -0
- package/src/lib/weather/weather.module.ts +16 -0
- package/src/lib/wordart/wordart.component.html +2 -0
- package/src/lib/wordart/wordart.component.less +12 -0
- package/src/lib/wordart/wordart.component.spec.ts +25 -0
- package/src/lib/wordart/wordart.component.ts +56 -0
- package/src/lib/wordart/wordart.module.ts +14 -0
- package/src/lib/workbench-widget.module.ts +675 -0
- package/{public-api.d.ts → src/public-api.ts} +46 -35
- package/src/test.ts +22 -0
- package/tsconfig.lib.json +37 -0
- package/tsconfig.lib.prod.json +9 -0
- package/tsconfig.spec.json +17 -0
- package/tslint.json +17 -0
- package/bbj-screen-widget.d.ts +0 -119
- package/bbj-screen-widget.metadata.json +0 -1
- package/bundles/bbj-screen-widget-core.umd.js +0 -606
- package/bundles/bbj-screen-widget-core.umd.js.map +0 -1
- package/bundles/bbj-screen-widget-core.umd.min.js +0 -2
- package/bundles/bbj-screen-widget-core.umd.min.js.map +0 -1
- package/bundles/bbj-screen-widget.umd.js +0 -21720
- package/bundles/bbj-screen-widget.umd.js.map +0 -1
- package/bundles/bbj-screen-widget.umd.min.js +0 -2
- package/bundles/bbj-screen-widget.umd.min.js.map +0 -1
- package/core/bbj-screen-widget-core.d.ts +0 -4
- package/core/bbj-screen-widget-core.metadata.json +0 -1
- package/core/service/baidu-map.service.d.ts +0 -16
- package/esm2015/bbj-screen-widget.js +0 -120
- package/esm2015/core/bbj-screen-widget-core.js +0 -5
- package/esm2015/core/public_api.js +0 -2
- package/esm2015/core/service/baidu-map.service.js +0 -101
- package/esm2015/lib/announcement/announcement.component.js +0 -80
- package/esm2015/lib/announcement/announcement.module.js +0 -25
- package/esm2015/lib/audio/audio.component.js +0 -167
- package/esm2015/lib/audio/audio.module.js +0 -20
- package/esm2015/lib/background/background.component.js +0 -52
- package/esm2015/lib/background/background.module.js +0 -19
- package/esm2015/lib/bar-chart-three-d/bar-chart-three-d.component.js +0 -323
- package/esm2015/lib/bar-chart-three-d/bar-chart-three-d.module.js +0 -20
- package/esm2015/lib/basic-bar-chart/basic-bar-chart.component.js +0 -604
- package/esm2015/lib/basic-bar-chart/basic-bar-chart.module.js +0 -27
- package/esm2015/lib/basic-line-chart/basic-line-chart.component.js +0 -782
- package/esm2015/lib/basic-line-chart/basic-line-chart.module.js +0 -20
- package/esm2015/lib/basic-pie-chart/basic-pie-chart.component.js +0 -471
- package/esm2015/lib/basic-pie-chart/basic-pie-chart.module.js +0 -20
- package/esm2015/lib/basic-planimetric-map/basic-planimetric-map.component.js +0 -233
- package/esm2015/lib/basic-planimetric-map/basic-planimetric-map.module.js +0 -21
- package/esm2015/lib/breathing-bubble-layer/breathing-bubble-layer.component.js +0 -503
- package/esm2015/lib/breathing-bubble-layer/breathing-bubble-layer.module.js +0 -19
- package/esm2015/lib/bubble-chart/bubble-chart.component.js +0 -348
- package/esm2015/lib/bubble-chart/bubble-chart.module.js +0 -20
- package/esm2015/lib/bulletin-board/bulletin-board.component.js +0 -160
- package/esm2015/lib/bulletin-board/bulletin-board.module.js +0 -23
- package/esm2015/lib/button/button.component.js +0 -186
- package/esm2015/lib/button/button.module.js +0 -21
- package/esm2015/lib/calendar/background-events/background-events.component.js +0 -65
- package/esm2015/lib/calendar/calendar-events-child.js +0 -28
- package/esm2015/lib/calendar/calendar.component.js +0 -168
- package/esm2015/lib/calendar/calendar.module.js +0 -32
- package/esm2015/lib/calendar/calendar.util.js +0 -12
- package/esm2015/lib/calendar/events/events.component.js +0 -75
- package/esm2015/lib/checkbox/checkbox.component.js +0 -333
- package/esm2015/lib/checkbox/checkbox.module.js +0 -21
- package/esm2015/lib/cross-table/cross-table.component.js +0 -291
- package/esm2015/lib/cross-table/cross-table.module.js +0 -20
- package/esm2015/lib/custom-baidu-map/baidu-marker-layer/baidu-marker-layer.component.js +0 -732
- package/esm2015/lib/custom-baidu-map/baidu-polyline-layer/baidu-polyline-layer.component.js +0 -278
- package/esm2015/lib/custom-baidu-map/base-layer.js +0 -53
- package/esm2015/lib/custom-baidu-map/custom-baidu-map.component.js +0 -675
- package/esm2015/lib/custom-baidu-map/custom-baidu-map.module.js +0 -46
- package/esm2015/lib/custom-baidu-map/typhoon-area-layer/typhoon-area-layer.component.js +0 -116
- package/esm2015/lib/custom-baidu-map/wind-layer/wind-layer.component.js +0 -331
- package/esm2015/lib/date-picker/date-picker.component.js +0 -447
- package/esm2015/lib/date-picker/date-picker.module.js +0 -22
- package/esm2015/lib/funnel-chart/funnel-chart.component.js +0 -241
- package/esm2015/lib/funnel-chart/funnel-chart.module.js +0 -20
- package/esm2015/lib/gantt/gantt.component.js +0 -222
- package/esm2015/lib/gantt/gantt.module.js +0 -39
- package/esm2015/lib/gauge/gauge.component.js +0 -324
- package/esm2015/lib/gauge/gauge.module.js +0 -20
- package/esm2015/lib/gauge-progress/gauge-progress.component.js +0 -356
- package/esm2015/lib/gauge-progress/gauge.module.js +0 -22
- package/esm2015/lib/general-text/general-text.component.js +0 -144
- package/esm2015/lib/general-text/general-text.module.js +0 -20
- package/esm2015/lib/iconfont/icon.js +0 -199
- package/esm2015/lib/iconfont/iconfont.component.js +0 -56
- package/esm2015/lib/iconfont/iconfont.module.js +0 -20
- package/esm2015/lib/iframe/iframe.component.js +0 -46
- package/esm2015/lib/iframe/iframe.module.js +0 -20
- package/esm2015/lib/image/image.component.js +0 -98
- package/esm2015/lib/image/image.module.js +0 -19
- package/esm2015/lib/item-swiper/item-swiper.component.js +0 -343
- package/esm2015/lib/item-swiper/item-swiper.module.js +0 -22
- package/esm2015/lib/line-bar-chart/line-bar-chart.component.js +0 -398
- package/esm2015/lib/line-bar-chart/line-bar-chart.module.js +0 -20
- package/esm2015/lib/line-light-flow/line-light-flow.component.js +0 -241
- package/esm2015/lib/line-light-flow/line-light-flow.module.js +0 -24
- package/esm2015/lib/liquid-fill/liquid-fill.component.js +0 -158
- package/esm2015/lib/liquid-fill/liquid-fill.module.js +0 -20
- package/esm2015/lib/marquee/marquee.component.js +0 -110
- package/esm2015/lib/marquee/marquee.module.js +0 -19
- package/esm2015/lib/mip-anim/mip-anim.component.js +0 -26
- package/esm2015/lib/mip-anim/mip-anim.module.js +0 -19
- package/esm2015/lib/multi-title-gauge/multi-title-gauge.component.js +0 -277
- package/esm2015/lib/multi-title-gauge/multi-title-gauge.module.js +0 -22
- package/esm2015/lib/number-flop/number-flop.component.js +0 -124
- package/esm2015/lib/number-flop/number-flop.module.js +0 -19
- package/esm2015/lib/parent-container/parent-container.component.js +0 -21
- package/esm2015/lib/parent-container/parent-container.module.js +0 -19
- package/esm2015/lib/percent-pie-chart/percent-pie-chart.component.js +0 -248
- package/esm2015/lib/percent-pie-chart/percent-pie-chart.module.js +0 -20
- package/esm2015/lib/pie3d-chart/pie3d-chart.component.js +0 -303
- package/esm2015/lib/pie3d-chart/pie3d-chart.module.js +0 -19
- package/esm2015/lib/planimetric-map2d/fly-line-layer/fly-line-layer.component.js +0 -431
- package/esm2015/lib/planimetric-map2d/fly-line-layer/fly-line-layer.module.js +0 -19
- package/esm2015/lib/planimetric-map2d/map2d-mark-layer/map2d-mark-layer.component.js +0 -252
- package/esm2015/lib/planimetric-map2d/map2d-mark-layer/map2d-mark-layer.module.js +0 -19
- package/esm2015/lib/planimetric-map2d/map2d-polyline-layer/map2d-polyline-layer.component.js +0 -124
- package/esm2015/lib/planimetric-map2d/map2d-polyline-layer/map2d-polyline-layer.module.js +0 -19
- package/esm2015/lib/planimetric-map2d/map2d-visual-layer/map2d-visual-layer.component.js +0 -359
- package/esm2015/lib/planimetric-map2d/map2d-visual-layer/map2d-visual-layer.module.js +0 -21
- package/esm2015/lib/planimetric-map2d/planimetric-map2d.component.js +0 -753
- package/esm2015/lib/planimetric-map2d/planimetric-map2d.module.js +0 -34
- package/esm2015/lib/planimetric-map3d/map3d-line-layer/map3d-line-layer.component.js +0 -128
- package/esm2015/lib/planimetric-map3d/map3d-line-layer/map3d-line-layer.module.js +0 -19
- package/esm2015/lib/planimetric-map3d/map3d-mark-layer/map3d-mark-layer.component.js +0 -242
- package/esm2015/lib/planimetric-map3d/map3d-mark-layer/map3d-mark-layer.module.js +0 -19
- package/esm2015/lib/planimetric-map3d/planimetric-map3d.component.js +0 -265
- package/esm2015/lib/planimetric-map3d/planimetric-map3d.module.js +0 -22
- package/esm2015/lib/radar-chart/radar-chart.component.js +0 -255
- package/esm2015/lib/radar-chart/radar-chart.module.js +0 -20
- package/esm2015/lib/radio/radio.component.js +0 -148
- package/esm2015/lib/radio/radio.module.js +0 -21
- package/esm2015/lib/rate/rate.component.js +0 -57
- package/esm2015/lib/rate/rate.module.js +0 -23
- package/esm2015/lib/scatter3d/scatter3d.component.js +0 -166
- package/esm2015/lib/scatter3d/scatter3d.module.js +0 -20
- package/esm2015/lib/screen-widget.module.js +0 -536
- package/esm2015/lib/search/search.component.js +0 -130
- package/esm2015/lib/search/search.module.js +0 -29
- package/esm2015/lib/select/select.component.js +0 -359
- package/esm2015/lib/select/select.module.js +0 -22
- package/esm2015/lib/shape/shape.component.js +0 -248
- package/esm2015/lib/shape/shape.module.js +0 -19
- package/esm2015/lib/shared/component/video-player/video-player.component.js +0 -114
- package/esm2015/lib/shared/component/video-player/video-player.module.js +0 -14
- package/esm2015/lib/shared/service/common.service.js +0 -39
- package/esm2015/lib/shared/service/file-url.service.js +0 -12
- package/esm2015/lib/shared/service/gaode-map.service.js +0 -36
- package/esm2015/lib/shared/service/highcharts.service.js +0 -36
- package/esm2015/lib/shared/service/http.service.js +0 -20
- package/esm2015/lib/shared/util/base.util.js +0 -5
- package/esm2015/lib/shared/util/echarts.util.js +0 -12
- package/esm2015/lib/shared/util/style.util.js +0 -19
- package/esm2015/lib/shuffling-list/color.pipe.js +0 -23
- package/esm2015/lib/shuffling-list/shuffling-list.component.js +0 -601
- package/esm2015/lib/shuffling-list/shuffling-list.module.js +0 -22
- package/esm2015/lib/table/table.component.js +0 -657
- package/esm2015/lib/table/table.module.js +0 -38
- package/esm2015/lib/tabs/tab/tab.component.js +0 -27
- package/esm2015/lib/tabs/tabs.component.js +0 -85
- package/esm2015/lib/tabs/tabs.module.js +0 -22
- package/esm2015/lib/temporary-data/temporary-data.component.js +0 -49
- package/esm2015/lib/temporary-data/temporary-data.module.js +0 -20
- package/esm2015/lib/time-picker/time-picker.component.js +0 -112
- package/esm2015/lib/time-picker/time-picker.module.js +0 -21
- package/esm2015/lib/timer/timer.component.js +0 -108
- package/esm2015/lib/timer/timer.module.js +0 -20
- package/esm2015/lib/tree-control/tree-control.component.js +0 -435
- package/esm2015/lib/tree-control/tree-control.module.js +0 -24
- package/esm2015/lib/tree-ring-chart/tree-ring-chart.component.js +0 -215
- package/esm2015/lib/tree-ring-chart/tree-ring-chart.module.js +0 -20
- package/esm2015/lib/upload/upload.component.js +0 -127
- package/esm2015/lib/upload/upload.module.js +0 -22
- package/esm2015/lib/video-grid/video-grid.component.js +0 -140
- package/esm2015/lib/video-grid/video-grid.module.js +0 -22
- package/esm2015/lib/visual-map-chart/visual-map-chart.component.js +0 -395
- package/esm2015/lib/visual-map-chart/visual-map-chart.module.js +0 -20
- package/esm2015/lib/vote/vote.component.js +0 -100
- package/esm2015/lib/vote/vote.module.js +0 -21
- package/esm2015/lib/weather/weather.component.js +0 -92
- package/esm2015/lib/weather/weather.module.js +0 -21
- package/esm2015/lib/wordart/wordart.component.js +0 -84
- package/esm2015/lib/wordart/wordart.module.js +0 -19
- package/esm2015/lib/workbench-widget.module.js +0 -620
- package/esm2015/public-api.js +0 -40
- package/fesm2015/bbj-screen-widget-core.js +0 -107
- package/fesm2015/bbj-screen-widget-core.js.map +0 -1
- package/fesm2015/bbj-screen-widget.js +0 -20618
- package/fesm2015/bbj-screen-widget.js.map +0 -1
- package/lib/announcement/announcement.component.d.ts +0 -13
- package/lib/announcement/announcement.module.d.ts +0 -5
- package/lib/audio/audio.component.d.ts +0 -22
- package/lib/audio/audio.module.d.ts +0 -4
- package/lib/background/background.component.d.ts +0 -12
- package/lib/background/background.module.d.ts +0 -4
- package/lib/bar-chart-three-d/bar-chart-three-d.component.d.ts +0 -30
- package/lib/bar-chart-three-d/bar-chart-three-d.module.d.ts +0 -4
- package/lib/basic-bar-chart/basic-bar-chart.component.d.ts +0 -105
- package/lib/basic-bar-chart/basic-bar-chart.module.d.ts +0 -5
- package/lib/basic-line-chart/basic-line-chart.component.d.ts +0 -102
- package/lib/basic-line-chart/basic-line-chart.module.d.ts +0 -4
- package/lib/basic-pie-chart/basic-pie-chart.component.d.ts +0 -56
- package/lib/basic-pie-chart/basic-pie-chart.module.d.ts +0 -4
- package/lib/basic-planimetric-map/basic-planimetric-map.component.d.ts +0 -18
- package/lib/basic-planimetric-map/basic-planimetric-map.module.d.ts +0 -4
- package/lib/breathing-bubble-layer/breathing-bubble-layer.component.d.ts +0 -210
- package/lib/breathing-bubble-layer/breathing-bubble-layer.module.d.ts +0 -4
- package/lib/bubble-chart/bubble-chart.component.d.ts +0 -75
- package/lib/bubble-chart/bubble-chart.module.d.ts +0 -4
- package/lib/bulletin-board/bulletin-board.component.d.ts +0 -25
- package/lib/bulletin-board/bulletin-board.module.d.ts +0 -4
- package/lib/button/button.component.d.ts +0 -25
- package/lib/button/button.module.d.ts +0 -4
- package/lib/calendar/background-events/background-events.component.d.ts +0 -10
- package/lib/calendar/calendar-events-child.d.ts +0 -12
- package/lib/calendar/calendar.component.d.ts +0 -27
- package/lib/calendar/calendar.module.d.ts +0 -4
- package/lib/calendar/calendar.util.d.ts +0 -6
- package/lib/calendar/events/events.component.d.ts +0 -13
- package/lib/checkbox/checkbox.component.d.ts +0 -45
- package/lib/checkbox/checkbox.module.d.ts +0 -4
- package/lib/cross-table/cross-table.component.d.ts +0 -30
- package/lib/cross-table/cross-table.module.d.ts +0 -4
- package/lib/custom-baidu-map/baidu-marker-layer/baidu-marker-layer.component.d.ts +0 -70
- package/lib/custom-baidu-map/baidu-polyline-layer/baidu-polyline-layer.component.d.ts +0 -23
- package/lib/custom-baidu-map/base-layer.d.ts +0 -16
- package/lib/custom-baidu-map/custom-baidu-map.component.d.ts +0 -93
- package/lib/custom-baidu-map/custom-baidu-map.module.d.ts +0 -4
- package/lib/custom-baidu-map/typhoon-area-layer/typhoon-area-layer.component.d.ts +0 -16
- package/lib/custom-baidu-map/wind-layer/wind-layer.component.d.ts +0 -28
- package/lib/date-picker/date-picker.component.d.ts +0 -63
- package/lib/date-picker/date-picker.module.d.ts +0 -4
- package/lib/funnel-chart/funnel-chart.component.d.ts +0 -24
- package/lib/funnel-chart/funnel-chart.module.d.ts +0 -4
- package/lib/gantt/gantt.component.d.ts +0 -25
- package/lib/gantt/gantt.module.d.ts +0 -4
- package/lib/gauge/gauge.component.d.ts +0 -37
- package/lib/gauge/gauge.module.d.ts +0 -4
- package/lib/gauge-progress/gauge-progress.component.d.ts +0 -46
- package/lib/gauge-progress/gauge.module.d.ts +0 -5
- package/lib/general-text/general-text.component.d.ts +0 -21
- package/lib/general-text/general-text.module.d.ts +0 -4
- package/lib/iconfont/icon.d.ts +0 -1
- package/lib/iconfont/iconfont.component.d.ts +0 -11
- package/lib/iconfont/iconfont.module.d.ts +0 -4
- package/lib/iframe/iframe.component.d.ts +0 -10
- package/lib/iframe/iframe.module.d.ts +0 -4
- package/lib/image/image.component.d.ts +0 -21
- package/lib/image/image.module.d.ts +0 -4
- package/lib/item-swiper/item-swiper.component.d.ts +0 -41
- package/lib/item-swiper/item-swiper.module.d.ts +0 -5
- package/lib/line-bar-chart/line-bar-chart.component.d.ts +0 -63
- package/lib/line-bar-chart/line-bar-chart.module.d.ts +0 -4
- package/lib/line-light-flow/line-light-flow.component.d.ts +0 -26
- package/lib/line-light-flow/line-light-flow.module.d.ts +0 -4
- package/lib/liquid-fill/liquid-fill.component.d.ts +0 -18
- package/lib/liquid-fill/liquid-fill.module.d.ts +0 -4
- package/lib/marquee/marquee.component.d.ts +0 -20
- package/lib/marquee/marquee.module.d.ts +0 -4
- package/lib/mip-anim/mip-anim.component.d.ts +0 -6
- package/lib/mip-anim/mip-anim.module.d.ts +0 -4
- package/lib/multi-title-gauge/multi-title-gauge.component.d.ts +0 -26
- package/lib/multi-title-gauge/multi-title-gauge.module.d.ts +0 -4
- package/lib/number-flop/number-flop.component.d.ts +0 -22
- package/lib/number-flop/number-flop.module.d.ts +0 -4
- package/lib/parent-container/parent-container.component.d.ts +0 -9
- package/lib/parent-container/parent-container.module.d.ts +0 -4
- package/lib/percent-pie-chart/percent-pie-chart.component.d.ts +0 -24
- package/lib/percent-pie-chart/percent-pie-chart.module.d.ts +0 -4
- package/lib/pie3d-chart/pie3d-chart.component.d.ts +0 -30
- package/lib/pie3d-chart/pie3d-chart.module.d.ts +0 -4
- package/lib/planimetric-map2d/fly-line-layer/fly-line-layer.component.d.ts +0 -206
- package/lib/planimetric-map2d/fly-line-layer/fly-line-layer.module.d.ts +0 -4
- package/lib/planimetric-map2d/map2d-mark-layer/map2d-mark-layer.component.d.ts +0 -15
- package/lib/planimetric-map2d/map2d-mark-layer/map2d-mark-layer.module.d.ts +0 -4
- package/lib/planimetric-map2d/map2d-polyline-layer/map2d-polyline-layer.component.d.ts +0 -15
- package/lib/planimetric-map2d/map2d-polyline-layer/map2d-polyline-layer.module.d.ts +0 -4
- package/lib/planimetric-map2d/map2d-visual-layer/map2d-visual-layer.component.d.ts +0 -49
- package/lib/planimetric-map2d/map2d-visual-layer/map2d-visual-layer.module.d.ts +0 -4
- package/lib/planimetric-map2d/planimetric-map2d.component.d.ts +0 -49
- package/lib/planimetric-map2d/planimetric-map2d.module.d.ts +0 -4
- package/lib/planimetric-map3d/map3d-line-layer/map3d-line-layer.component.d.ts +0 -14
- package/lib/planimetric-map3d/map3d-line-layer/map3d-line-layer.module.d.ts +0 -4
- package/lib/planimetric-map3d/map3d-mark-layer/map3d-mark-layer.component.d.ts +0 -41
- package/lib/planimetric-map3d/map3d-mark-layer/map3d-mark-layer.module.d.ts +0 -4
- package/lib/planimetric-map3d/planimetric-map3d.component.d.ts +0 -29
- package/lib/planimetric-map3d/planimetric-map3d.module.d.ts +0 -4
- package/lib/radar-chart/radar-chart.component.d.ts +0 -24
- package/lib/radar-chart/radar-chart.module.d.ts +0 -4
- package/lib/radio/radio.component.d.ts +0 -21
- package/lib/radio/radio.module.d.ts +0 -4
- package/lib/rate/rate.component.d.ts +0 -13
- package/lib/rate/rate.module.d.ts +0 -4
- package/lib/scatter3d/scatter3d.component.d.ts +0 -25
- package/lib/scatter3d/scatter3d.module.d.ts +0 -4
- package/lib/screen-widget.module.d.ts +0 -4
- package/lib/search/search.component.d.ts +0 -21
- package/lib/search/search.module.d.ts +0 -6
- package/lib/select/select.component.d.ts +0 -37
- package/lib/select/select.module.d.ts +0 -4
- package/lib/shape/shape.component.d.ts +0 -50
- package/lib/shape/shape.module.d.ts +0 -4
- package/lib/shared/component/video-player/video-player.component.d.ts +0 -28
- package/lib/shared/component/video-player/video-player.module.d.ts +0 -2
- package/lib/shared/service/common.service.d.ts +0 -21
- package/lib/shared/service/file-url.service.d.ts +0 -3
- package/lib/shared/service/gaode-map.service.d.ts +0 -10
- package/lib/shared/service/highcharts.service.d.ts +0 -9
- package/lib/shared/service/http.service.d.ts +0 -7
- package/lib/shared/util/base.util.d.ts +0 -1
- package/lib/shared/util/echarts.util.d.ts +0 -1
- package/lib/shared/util/style.util.d.ts +0 -1
- package/lib/shuffling-list/color.pipe.d.ts +0 -4
- package/lib/shuffling-list/shuffling-list.component.d.ts +0 -76
- package/lib/shuffling-list/shuffling-list.module.d.ts +0 -4
- package/lib/table/table.component.d.ts +0 -65
- package/lib/table/table.module.d.ts +0 -4
- package/lib/tabs/tab/tab.component.d.ts +0 -7
- package/lib/tabs/tabs.component.d.ts +0 -13
- package/lib/tabs/tabs.module.d.ts +0 -4
- package/lib/temporary-data/temporary-data.component.d.ts +0 -13
- package/lib/temporary-data/temporary-data.module.d.ts +0 -4
- package/lib/time-picker/time-picker.component.d.ts +0 -17
- package/lib/time-picker/time-picker.module.d.ts +0 -4
- package/lib/timer/timer.component.d.ts +0 -21
- package/lib/timer/timer.module.d.ts +0 -4
- package/lib/tree-control/tree-control.component.d.ts +0 -62
- package/lib/tree-control/tree-control.module.d.ts +0 -4
- package/lib/tree-ring-chart/tree-ring-chart.component.d.ts +0 -24
- package/lib/tree-ring-chart/tree-ring-chart.module.d.ts +0 -4
- package/lib/upload/upload.component.d.ts +0 -21
- package/lib/upload/upload.module.d.ts +0 -4
- package/lib/video-grid/video-grid.component.d.ts +0 -23
- package/lib/video-grid/video-grid.module.d.ts +0 -4
- package/lib/visual-map-chart/visual-map-chart.component.d.ts +0 -49
- package/lib/visual-map-chart/visual-map-chart.module.d.ts +0 -4
- package/lib/vote/vote.component.d.ts +0 -15
- package/lib/vote/vote.module.d.ts +0 -4
- package/lib/weather/weather.component.d.ts +0 -26
- package/lib/weather/weather.module.d.ts +0 -4
- package/lib/wordart/wordart.component.d.ts +0 -14
- package/lib/wordart/wordart.module.d.ts +0 -4
- package/lib/workbench-widget.module.d.ts +0 -4
- /package/core/{public_api.d.ts → src/public_api.ts} +0 -0
package/core/package.json
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
"module": "../fesm2015/bbj-screen-widget-core.js",
|
|
4
|
-
"es2015": "../fesm2015/bbj-screen-widget-core.js",
|
|
5
|
-
"esm2015": "../esm2015/core/bbj-screen-widget-core.js",
|
|
6
|
-
"fesm2015": "../fesm2015/bbj-screen-widget-core.js",
|
|
7
|
-
"typings": "bbj-screen-widget-core.d.ts",
|
|
8
|
-
"metadata": "bbj-screen-widget-core.metadata.json",
|
|
9
|
-
"sideEffects": false,
|
|
10
|
-
"name": "bbj-screen-widget/core"
|
|
1
|
+
{
|
|
2
|
+
"ngPackage": {}
|
|
11
3
|
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { LazyService } from '@delon/util';
|
|
4
|
+
|
|
5
|
+
declare const BMap;
|
|
6
|
+
declare const BMapGL;
|
|
7
|
+
|
|
8
|
+
@Injectable({ providedIn: 'root' })
|
|
9
|
+
export class BaiduMapService {
|
|
10
|
+
private loadMapPromise: Promise<any>;
|
|
11
|
+
private loadMapGLPromise: Promise<any>;
|
|
12
|
+
private loadMarkerClustererPromise: Promise<any>;
|
|
13
|
+
private loadMarkerClustererGLPromise: Promise<any>;
|
|
14
|
+
private loadMapVGLPromise: Promise<any>;
|
|
15
|
+
private ak = 'hyaNdQpNwKB440Xtm8QqQqwneuRfJ59U';
|
|
16
|
+
constructor(public lazy: LazyService) {}
|
|
17
|
+
|
|
18
|
+
loadScript(url: string, callback: string) {
|
|
19
|
+
return new Promise<void>((resolve) => {
|
|
20
|
+
(window as any)[callback] = () => {
|
|
21
|
+
resolve();
|
|
22
|
+
delete window[callback];
|
|
23
|
+
};
|
|
24
|
+
var script = document.createElement('script');
|
|
25
|
+
script.type = 'text/javascript';
|
|
26
|
+
script.src = url + `&ak=${this.ak}&callback=${callback}`;
|
|
27
|
+
document.body.appendChild(script);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
loadMap(): Promise<any> {
|
|
32
|
+
if (typeof BMap !== 'undefined') {
|
|
33
|
+
return Promise.resolve();
|
|
34
|
+
}
|
|
35
|
+
if (!this.loadMapPromise) {
|
|
36
|
+
this.loadMapPromise = this.loadScript('https://api.map.baidu.com/api?v=3.0', 'loadBMapCallback');
|
|
37
|
+
}
|
|
38
|
+
return this.loadMapPromise;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
loadMapGL(): Promise<any> {
|
|
42
|
+
if (typeof BMapGL !== 'undefined') {
|
|
43
|
+
return Promise.resolve();
|
|
44
|
+
}
|
|
45
|
+
if (!this.loadMapGLPromise) {
|
|
46
|
+
this.loadMapGLPromise = this.loadScript(
|
|
47
|
+
'https://api.map.baidu.com/api?type=webgl&v=1.0',
|
|
48
|
+
'loadBMapGLCallback',
|
|
49
|
+
).then(() => {
|
|
50
|
+
// 百度地图重写了contains方法,当参数为null时会报错,这里把它重写回来
|
|
51
|
+
HTMLElement.prototype.contains = function (e) {
|
|
52
|
+
if (e) {
|
|
53
|
+
if (e == this) {
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
while ((e = e.parentNode)) {
|
|
57
|
+
if (e == this) {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return false;
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
return this.loadMapGLPromise;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// loadMarkerClusterer() {
|
|
70
|
+
// if (!this.loadMarkerClustererPromise) {
|
|
71
|
+
// this.loadMarkerClustererPromise = Promise.all([
|
|
72
|
+
// this.lazy.loadScript('assets/js/BMap/MarkerClusterer_min.js'),
|
|
73
|
+
// this.lazy.loadScript('assets/js/BMap/TextIconOverlay_min.js'),
|
|
74
|
+
// ]);
|
|
75
|
+
// }
|
|
76
|
+
// return this.loadMarkerClustererPromise;
|
|
77
|
+
// }
|
|
78
|
+
|
|
79
|
+
// loadMarkerClustererGL() {
|
|
80
|
+
// if (!this.loadMarkerClustererGLPromise) {
|
|
81
|
+
// this.loadMarkerClustererGLPromise = Promise.all([
|
|
82
|
+
// this.lazy.loadScript('assets/js/BMapGL/MarkerClusterer_min.js'),
|
|
83
|
+
// this.lazy.loadScript('assets/js/BMapGL/TextIconOverlay_min.js'),
|
|
84
|
+
// ]);
|
|
85
|
+
// }
|
|
86
|
+
// return this.loadMarkerClustererGLPromise;
|
|
87
|
+
// }
|
|
88
|
+
|
|
89
|
+
loadMapVGL() {
|
|
90
|
+
if (!this.loadMapVGLPromise) {
|
|
91
|
+
this.loadMapVGLPromise = this.lazy.loadScript('assets/js/BMapGL/mapvgl.min.js');
|
|
92
|
+
this.loadMapVGLPromise.catch((e) => {
|
|
93
|
+
console.error(e);
|
|
94
|
+
this.loadMapGLPromise = null;
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
return this.loadMapVGLPromise;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
async localCity() {
|
|
101
|
+
await this.loadMapGL();
|
|
102
|
+
return new Promise<any>((resolve) => {
|
|
103
|
+
const myCity = new BMapGL.LocalCity();
|
|
104
|
+
myCity.get(resolve);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
package/karma.conf.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Karma configuration file, see link for more information
|
|
2
|
+
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
+
|
|
4
|
+
module.exports = function (config) {
|
|
5
|
+
config.set({
|
|
6
|
+
basePath: '',
|
|
7
|
+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
8
|
+
plugins: [
|
|
9
|
+
require('karma-jasmine'),
|
|
10
|
+
require('karma-chrome-launcher'),
|
|
11
|
+
require('karma-jasmine-html-reporter'),
|
|
12
|
+
require('karma-coverage-istanbul-reporter'),
|
|
13
|
+
require('@angular-devkit/build-angular/plugins/karma')
|
|
14
|
+
],
|
|
15
|
+
client: {
|
|
16
|
+
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
17
|
+
},
|
|
18
|
+
coverageIstanbulReporter: {
|
|
19
|
+
dir: require('path').join(__dirname, '../../coverage/screen-widget'),
|
|
20
|
+
reports: ['html', 'lcovonly'],
|
|
21
|
+
fixWebpackSourcePaths: true
|
|
22
|
+
},
|
|
23
|
+
reporters: ['progress', 'kjhtml'],
|
|
24
|
+
port: 9876,
|
|
25
|
+
colors: true,
|
|
26
|
+
logLevel: config.LOG_INFO,
|
|
27
|
+
autoWatch: true,
|
|
28
|
+
browsers: ['Chrome'],
|
|
29
|
+
singleRun: false,
|
|
30
|
+
restartOnFileChange: true
|
|
31
|
+
});
|
|
32
|
+
};
|
package/ng-package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
|
|
3
|
+
"dest": "../../dist/screen-widget",
|
|
4
|
+
"lib": {
|
|
5
|
+
"entryFile": "src/public-api.ts",
|
|
6
|
+
"umdModuleIds": {
|
|
7
|
+
"@delon/util": "@delon/util",
|
|
8
|
+
"@delon/util/other":"@delon/util/other",
|
|
9
|
+
"@fullcalendar/angular": "@fullcalendar/angular",
|
|
10
|
+
"@fullcalendar/daygrid": "@fullcalendar/daygrid",
|
|
11
|
+
"@fullcalendar/timegrid": "@fullcalendar/timegrid",
|
|
12
|
+
"@fullcalendar/resource-timeline":"@fullcalendar/resource-timeline",
|
|
13
|
+
"@fullcalendar/interaction": "@fullcalendar/interaction",
|
|
14
|
+
"date-fns": "date-fns",
|
|
15
|
+
"date-fns/fp":"date-fns/fp",
|
|
16
|
+
"echarts": "echarts",
|
|
17
|
+
"ngx-echarts": "ngx-echarts",
|
|
18
|
+
"ng-zorro-antd/button": "ng-zorro-antd/button",
|
|
19
|
+
"ng-zorro-antd/checkbox": "ng-zorro-antd/checkbox",
|
|
20
|
+
"ng-zorro-antd/core/highlight":"ng-zorro-antd/core/highlight",
|
|
21
|
+
"ng-zorro-antd/core/no-animation":"ng-zorro-antd/core/no-animation",
|
|
22
|
+
"ng-zorro-antd/core/resize-observers":"ng-zorro-antd/core/resize-observers",
|
|
23
|
+
"ng-zorro-antd/core/transition-patch": "ng-zorro-antd/core/transition-patch",
|
|
24
|
+
"ng-zorro-antd/core/wave": "ng-zorro-antd/core/wave",
|
|
25
|
+
"ng-zorro-antd/date-picker": "ng-zorro-antd/date-picker",
|
|
26
|
+
"ng-zorro-antd/dropdown":"ng-zorro-antd/dropdown",
|
|
27
|
+
"ng-zorro-antd/icon": "ng-zorro-antd/icon",
|
|
28
|
+
"ng-zorro-antd/input": "ng-zorro-antd/input",
|
|
29
|
+
"ng-zorro-antd/i18n":"ng-zorro-antd/i18n",
|
|
30
|
+
"ng-zorro-antd/message": "ng-zorro-antd/message",
|
|
31
|
+
"ng-zorro-antd/pipes":"ng-zorro-antd/pipes",
|
|
32
|
+
"ng-zorro-antd/rate": "ng-zorro-antd/rate",
|
|
33
|
+
"ng-zorro-antd/radio": "ng-zorro-antd/radio",
|
|
34
|
+
"ng-zorro-antd/select": "ng-zorro-antd/select",
|
|
35
|
+
"ng-zorro-antd/slider": "ng-zorro-antd/slider",
|
|
36
|
+
"ng-zorro-antd/space":"ng-zorro-antd/space",
|
|
37
|
+
"ng-zorro-antd/table": "ng-zorro-antd/table",
|
|
38
|
+
"ng-zorro-antd/tabs": "ng-zorro-antd/tabs",
|
|
39
|
+
"ng-zorro-antd/time-picker": "ng-zorro-antd/time-picker",
|
|
40
|
+
"ng-zorro-antd/tooltip":"ng-zorro-antd/tooltip",
|
|
41
|
+
"ng-zorro-antd/tree": "ng-zorro-antd/tree",
|
|
42
|
+
"ng-zorro-antd/upload": "ng-zorro-antd/upload",
|
|
43
|
+
"swiper/angular":"swiper/angular",
|
|
44
|
+
"swiper/core":"swiper/core",
|
|
45
|
+
"bbj-widget-base": "bbj-widget-base",
|
|
46
|
+
"util": "util",
|
|
47
|
+
"uuid":"uuid"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"assets": ["src/assets"],
|
|
51
|
+
"allowedNonPeerDependencies": [
|
|
52
|
+
"@fullcalendar/angular",
|
|
53
|
+
"@fullcalendar/daygrid",
|
|
54
|
+
"@fullcalendar/interaction",
|
|
55
|
+
"@fullcalendar/resource-timeline",
|
|
56
|
+
"@fullcalendar/timegrid",
|
|
57
|
+
"swiper"
|
|
58
|
+
]
|
|
59
|
+
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bbj-screen-widget",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.62",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@fullcalendar/angular": "~5.5.0",
|
|
6
6
|
"@fullcalendar/daygrid": "~5.5.0",
|
|
7
7
|
"@fullcalendar/interaction": "~5.5.0",
|
|
8
8
|
"@fullcalendar/resource-timeline": "~5.5.0",
|
|
9
9
|
"@fullcalendar/timegrid": "~5.5.0",
|
|
10
|
-
"swiper":
|
|
11
|
-
"tslib": "^2.0.0"
|
|
10
|
+
"swiper":"11.2.6"
|
|
12
11
|
},
|
|
13
12
|
"peerDependencies": {
|
|
14
13
|
"@angular/common": "^11.0.0",
|
|
@@ -18,13 +17,5 @@
|
|
|
18
17
|
"echarts": "^5.0.1",
|
|
19
18
|
"echarts-gl": "^2.0.0",
|
|
20
19
|
"echarts-liquidfill": "^3.0.0"
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
"module": "fesm2015/bbj-screen-widget.js",
|
|
24
|
-
"es2015": "fesm2015/bbj-screen-widget.js",
|
|
25
|
-
"esm2015": "esm2015/bbj-screen-widget.js",
|
|
26
|
-
"fesm2015": "fesm2015/bbj-screen-widget.js",
|
|
27
|
-
"typings": "bbj-screen-widget.d.ts",
|
|
28
|
-
"metadata": "bbj-screen-widget.metadata.json",
|
|
29
|
-
"sideEffects": false
|
|
30
|
-
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { AnnouncementComponent } from './announcement.component';
|
|
4
|
+
|
|
5
|
+
describe('AnnouncementComponent', () => {
|
|
6
|
+
let component: AnnouncementComponent;
|
|
7
|
+
let fixture: ComponentFixture<AnnouncementComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(waitForAsync(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ AnnouncementComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
}));
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(AnnouncementComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Component, OnInit, ElementRef } from '@angular/core';
|
|
2
|
+
import { Widget, Property, Data } from 'bbj-widget-base';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'sc-announcement',
|
|
6
|
+
templateUrl: './announcement.component.html',
|
|
7
|
+
styleUrls: ['./announcement.component.less'],
|
|
8
|
+
})
|
|
9
|
+
@Widget('公告', { group: 'component', image: 'assets/img/screen/announcement.png', icon: 'iconmokuai' })
|
|
10
|
+
export class AnnouncementComponent implements OnInit {
|
|
11
|
+
@Property('显示图标', { type: 'boolean' })
|
|
12
|
+
headIconDisplay = true;
|
|
13
|
+
@Property('内边距', { ui: { widget: 'myGrid' } })
|
|
14
|
+
padding: any = {
|
|
15
|
+
top: 30,
|
|
16
|
+
right: 24,
|
|
17
|
+
bottom: 30,
|
|
18
|
+
left: 24,
|
|
19
|
+
};
|
|
20
|
+
@Property('字体', { ui: { widget: 'myFont' } })
|
|
21
|
+
font: any = {
|
|
22
|
+
family: '',
|
|
23
|
+
color: '#333333',
|
|
24
|
+
weight: 'normal',
|
|
25
|
+
size: 13,
|
|
26
|
+
space: 0,
|
|
27
|
+
lineHeight: '',
|
|
28
|
+
};
|
|
29
|
+
@Property('图标', { ui: { hidden: true } })
|
|
30
|
+
icon = 'sound';
|
|
31
|
+
@Data({
|
|
32
|
+
properties: {
|
|
33
|
+
content: { type: 'string', title: '公告内容' },
|
|
34
|
+
},
|
|
35
|
+
})
|
|
36
|
+
data = [
|
|
37
|
+
{
|
|
38
|
+
content:
|
|
39
|
+
'陆十三,男,共产党员,村小组长。多年来,他始终怀着对党、对人民无比热爱的赤诚之心,热衷于社会公益慈善事业,尽心竭力地为人民群众做好事实事,通过自身捐款、社会筹款等多种途径融资,为贫困山区、失学儿童送去…',
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
constructor(private element: ElementRef) {}
|
|
43
|
+
|
|
44
|
+
ngOnInit() {
|
|
45
|
+
if (this.padding) {
|
|
46
|
+
this.element.nativeElement.style.padding = `${this.padding.top}px ${this.padding.right}px ${this.padding.bottom}px ${this.padding.left}px`;
|
|
47
|
+
this.element.nativeElement.style.fontSize = this.font.size + 'px';
|
|
48
|
+
this.element.nativeElement.style.fontFamily = this.font.family;
|
|
49
|
+
this.element.nativeElement.style.color = this.font.color;
|
|
50
|
+
this.element.nativeElement.style.fontWeight = this.font.weight;
|
|
51
|
+
this.element.nativeElement.style.letterSpacing = this.font.space + 'px';
|
|
52
|
+
this.element.nativeElement.style.lineHeight = this.font.lineHeight + 'px';
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {NgModule} from '@angular/core';
|
|
2
|
+
import {CommonModule} from '@angular/common';
|
|
3
|
+
import { AnnouncementComponent } from './announcement.component';
|
|
4
|
+
import { WidgetBaseModule, WidgetService } from 'bbj-widget-base';
|
|
5
|
+
|
|
6
|
+
@NgModule({
|
|
7
|
+
declarations: [
|
|
8
|
+
AnnouncementComponent
|
|
9
|
+
],
|
|
10
|
+
imports: [
|
|
11
|
+
CommonModule,
|
|
12
|
+
WidgetBaseModule
|
|
13
|
+
]
|
|
14
|
+
})
|
|
15
|
+
export class AnnouncementModule {
|
|
16
|
+
constructor(private widgetService:WidgetService){
|
|
17
|
+
widgetService.register(AnnouncementComponent);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<ng-container [ngSwitch]="_type">
|
|
2
|
+
<img *ngSwitchCase="'image'" [src]="_src" />
|
|
3
|
+
<audio *ngSwitchCase="'audio'" [src]="_src" controls="controls" [ngStyle]="style"></audio>
|
|
4
|
+
<sc-video-player *ngSwitchCase="'flv'" [type]="'flv'" [src]="_src"></sc-video-player>
|
|
5
|
+
<video #video *ngSwitchCase="'video'" [src]="_src" controls="controls" autoplay [ngStyle]="style"></video>
|
|
6
|
+
</ng-container>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { AudioComponent } from './audio.component';
|
|
4
|
+
|
|
5
|
+
describe('AudioComponent', () => {
|
|
6
|
+
let component: AudioComponent;
|
|
7
|
+
let fixture: ComponentFixture<AudioComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(waitForAsync(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ AudioComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
}));
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(AudioComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { Component, ElementRef, OnChanges, OnDestroy, OnInit, SimpleChanges, ViewChild } from '@angular/core';
|
|
2
|
+
import { LazyService } from '@delon/util';
|
|
3
|
+
import { Widget, Property, Data } from 'bbj-widget-base';
|
|
4
|
+
import { FileUrlService } from '../shared/service/file-url.service';
|
|
5
|
+
declare const flvjs;
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'sc-audio',
|
|
8
|
+
templateUrl: './audio.component.html',
|
|
9
|
+
styleUrls: ['./audio.component.less'],
|
|
10
|
+
})
|
|
11
|
+
@Widget('音频', { group: 'audio', icon: 'icontupian' })
|
|
12
|
+
export class AudioComponent implements OnInit, OnChanges{
|
|
13
|
+
@Property('', {
|
|
14
|
+
min: 1,
|
|
15
|
+
type: 'string',
|
|
16
|
+
ui: { widget: 'radio', spanLabel: 0, spanControl: 24 },
|
|
17
|
+
enum: [
|
|
18
|
+
{ value: 'video', label: '视频' },
|
|
19
|
+
{ value: 'audio', label: '音频' },
|
|
20
|
+
{ value: 'auto', label: '自动' },
|
|
21
|
+
],
|
|
22
|
+
})
|
|
23
|
+
type = 'video';
|
|
24
|
+
@Property('', {
|
|
25
|
+
min: 1,
|
|
26
|
+
ui: {
|
|
27
|
+
widget: 'myUploadAudio',
|
|
28
|
+
spanLabel: 0,
|
|
29
|
+
spanControl: 24,
|
|
30
|
+
list: [
|
|
31
|
+
{ name: '无', value: null },
|
|
32
|
+
{ name: '测试一号', value: 'https://xiche.oss-cn-beijing.aliyuncs.com/video/20180417154421.mp4' },
|
|
33
|
+
{ name: '测试二号', value: 'https://xiche.oss-cn-beijing.aliyuncs.com/video/20180508102521.mp4' },
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
})
|
|
37
|
+
src: string;
|
|
38
|
+
@Property('透明度', { ui: { widget: 'myRange', min: 0, max: 1, step: 0.1 } })
|
|
39
|
+
opacity = 1;
|
|
40
|
+
@Property('阴影', { ui: { widget: 'myShadow' } })
|
|
41
|
+
shadow: any = { color: '', X: 0, Y: 0, Z: 0 };
|
|
42
|
+
@Data({
|
|
43
|
+
properties: {
|
|
44
|
+
src: { title: '视频/音频地址', type: 'string' },
|
|
45
|
+
},
|
|
46
|
+
})
|
|
47
|
+
data: any[];
|
|
48
|
+
_src: string;
|
|
49
|
+
|
|
50
|
+
@Property('视频格式', {
|
|
51
|
+
enum: [
|
|
52
|
+
{ label: 'MP4', value: 'mp4' },
|
|
53
|
+
{ label: 'flv', value: 'flv' },
|
|
54
|
+
],
|
|
55
|
+
ui: { visibleIf: { type: ['video'] }, widget: 'select' },
|
|
56
|
+
})
|
|
57
|
+
videoType: string;
|
|
58
|
+
|
|
59
|
+
@Property('是否有声音', { ui: { visibleIf: { videoType: ['flv'] } } })
|
|
60
|
+
hasAudio: boolean;
|
|
61
|
+
style: any;
|
|
62
|
+
@ViewChild('video')
|
|
63
|
+
video: ElementRef;
|
|
64
|
+
flvPlayer: any;
|
|
65
|
+
obj: any;
|
|
66
|
+
// loadFlvPromise: Promise<any>;
|
|
67
|
+
_type: string;
|
|
68
|
+
// destroyed: boolean;
|
|
69
|
+
constructor( private fileUrlService: FileUrlService) {}
|
|
70
|
+
|
|
71
|
+
ngOnInit() {}
|
|
72
|
+
|
|
73
|
+
ngOnChanges(changes: SimpleChanges): void {
|
|
74
|
+
this.style = {
|
|
75
|
+
opacity: this.opacity,
|
|
76
|
+
boxShadow: this.shadow.color + ' ' + this.shadow.X + 'px ' + this.shadow.Y + 'px ' + this.shadow.Z + 'px',
|
|
77
|
+
};
|
|
78
|
+
if (changes.type || changes.videoType || changes.src || changes.data) {
|
|
79
|
+
this.reset();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
async reset() {
|
|
84
|
+
this._src = null;
|
|
85
|
+
let url: string;
|
|
86
|
+
if (this.data && this.data.length && this.data[0].src) {
|
|
87
|
+
url = this.data[0].src;
|
|
88
|
+
} else {
|
|
89
|
+
url = this.src;
|
|
90
|
+
}
|
|
91
|
+
url = this.fileUrlService.getUrl(url);
|
|
92
|
+
if (this.type === 'auto' && url && url.includes('.')) {
|
|
93
|
+
const ext = url.substring(url.lastIndexOf('.') + 1);
|
|
94
|
+
switch (ext) {
|
|
95
|
+
case 'png':
|
|
96
|
+
case 'jpg':
|
|
97
|
+
this._type = 'image';
|
|
98
|
+
break;
|
|
99
|
+
case 'mp4':
|
|
100
|
+
this._type = 'video';
|
|
101
|
+
break;
|
|
102
|
+
case 'mp3':
|
|
103
|
+
this._type = 'audio';
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
} else {
|
|
107
|
+
this._type = this.type;
|
|
108
|
+
if (this._type === 'video' && this.videoType === 'flv') {
|
|
109
|
+
this._type = 'flv';
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
this._src = url;
|
|
113
|
+
// if (url) {
|
|
114
|
+
// if (this._type === 'video' && this.videoType === 'flv') {
|
|
115
|
+
// const obj = new Object();
|
|
116
|
+
// this.obj = obj;
|
|
117
|
+
// await this.loadFlv();
|
|
118
|
+
// if (this.obj === obj && !this.destroyed) {
|
|
119
|
+
// this.destroyFlv();
|
|
120
|
+
// // 防止异步操作先后顺序问题
|
|
121
|
+
// this.flvPlayer = flvjs.createPlayer(
|
|
122
|
+
// {
|
|
123
|
+
// type: 'flv',
|
|
124
|
+
// url,
|
|
125
|
+
// hasAudio: this.hasAudio === true,
|
|
126
|
+
// hasVideo: true,
|
|
127
|
+
// isLive: true,
|
|
128
|
+
// withCredentials: false,
|
|
129
|
+
// },
|
|
130
|
+
// {
|
|
131
|
+
// enableWorker: false,
|
|
132
|
+
// lazyLoadMaxDuration: 3 * 60,
|
|
133
|
+
// seekType: 'range',
|
|
134
|
+
// },
|
|
135
|
+
// );
|
|
136
|
+
// this.flvPlayer.attachMediaElement(this.video.nativeElement);
|
|
137
|
+
// console.log('load');
|
|
138
|
+
// this.flvPlayer.load();
|
|
139
|
+
// }
|
|
140
|
+
// } else {
|
|
141
|
+
// this._src = url;
|
|
142
|
+
// }
|
|
143
|
+
// }
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// loadFlv() {
|
|
147
|
+
// if (this.loadFlvPromise == null) {
|
|
148
|
+
// this.loadFlvPromise = this.lazy.loadScript('assets/js/flv.min.js');
|
|
149
|
+
// }
|
|
150
|
+
// return this.loadFlvPromise;
|
|
151
|
+
// }
|
|
152
|
+
|
|
153
|
+
// destroyFlv() {
|
|
154
|
+
// if (this.flvPlayer) {
|
|
155
|
+
// console.log('destroy');
|
|
156
|
+
// this.flvPlayer.unload();
|
|
157
|
+
// this.flvPlayer.detachMediaElement();
|
|
158
|
+
// this.flvPlayer.destroy();
|
|
159
|
+
// this.flvPlayer = null;
|
|
160
|
+
// }
|
|
161
|
+
// }
|
|
162
|
+
|
|
163
|
+
// ngOnDestroy(): void {
|
|
164
|
+
// this.destroyFlv();
|
|
165
|
+
// this.destroyed = true;
|
|
166
|
+
// }
|
|
167
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { AudioComponent } from './audio.component';
|
|
4
|
+
import { WidgetBaseModule, WidgetService } from 'bbj-widget-base';
|
|
5
|
+
import { VideoPlayerModule } from '../shared/component/video-player/video-player.module';
|
|
6
|
+
|
|
7
|
+
@NgModule({
|
|
8
|
+
declarations: [AudioComponent],
|
|
9
|
+
imports: [CommonModule, WidgetBaseModule, VideoPlayerModule],
|
|
10
|
+
})
|
|
11
|
+
export class AudioModule {
|
|
12
|
+
constructor(widgetService: WidgetService) {
|
|
13
|
+
widgetService.register(AudioComponent);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<div [ngStyle]="style" [style.backgroundImage]="'url(' + image + ')'" class="background"></div>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import {BackgroundComponent} from './background.component';
|
|
4
|
+
|
|
5
|
+
describe('ImageComponent', () => {
|
|
6
|
+
let component: BackgroundComponent;
|
|
7
|
+
let fixture: ComponentFixture<BackgroundComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(waitForAsync(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ BackgroundComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
}));
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(BackgroundComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Component, ElementRef, HostBinding, HostListener, OnInit } from '@angular/core';
|
|
2
|
+
import { Property, Widget } from 'bbj-widget-base';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'sc-background',
|
|
6
|
+
templateUrl: './background.component.html',
|
|
7
|
+
styleUrls: ['./background.component.less'],
|
|
8
|
+
})
|
|
9
|
+
@Widget('图片', { group: 'background', icon: 'iconbeijing' })
|
|
10
|
+
export class BackgroundComponent implements OnInit {
|
|
11
|
+
@Property('', { min: 1, ui: { widget: 'myUpload', spanLabel: 0, spanControl: 24 } })
|
|
12
|
+
image: string;
|
|
13
|
+
@Property('透明度', { ui: { widget: 'myRange', min: 0, max: 1, step: 0.1 } })
|
|
14
|
+
opacity = 1;
|
|
15
|
+
@Property('阴影', { ui: { widget: 'myShadow' } })
|
|
16
|
+
shadow: any = { color: '', X: 0, Y: 0, Z: 0 };
|
|
17
|
+
style: any;
|
|
18
|
+
type: string;
|
|
19
|
+
@Property('响应鼠标事件', { type: 'boolean', default: true })
|
|
20
|
+
pointerEvents = false;
|
|
21
|
+
|
|
22
|
+
constructor(private ele: ElementRef) {}
|
|
23
|
+
|
|
24
|
+
ngOnInit() {
|
|
25
|
+
this.style = {
|
|
26
|
+
opacity: this.opacity,
|
|
27
|
+
boxShadow: this.shadow.color + ' ' + this.shadow.X + 'px ' + this.shadow.Y + 'px ' + this.shadow.Z + 'px',
|
|
28
|
+
};
|
|
29
|
+
if (this.pointerEvents === false) {
|
|
30
|
+
this.ele.nativeElement.style.pointerEvents = 'none';
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|