@shjjs/visual-ui 1.0.18 → 1.0.19
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/es/commons/core/useChart.mjs +59 -58
- package/es/commons/{core → plugins}/datasource/index.mjs +5 -5
- package/es/commons/plugins/datasource/utils/utils.d.ts +84 -0
- package/es/commons/plugins/datasource/utils/utils.mjs +156 -0
- package/es/commons/plugins/event/actions/fullScreenAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/fullScreenAction.mjs +8 -0
- package/es/commons/plugins/event/actions/invokeAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/invokeAction.mjs +10 -0
- package/es/commons/plugins/event/actions/linkAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/linkAction.mjs +7 -0
- package/es/commons/plugins/event/actions/moveAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/moveAction.mjs +15 -0
- package/es/commons/plugins/event/actions/pageAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/pageAction.mjs +14 -0
- package/es/commons/plugins/event/actions/rotateAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/rotateAction.mjs +19 -0
- package/es/commons/plugins/event/actions/scaleAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/scaleAction.mjs +24 -0
- package/es/commons/plugins/event/actions/sendApiAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/sendApiAction.mjs +16 -0
- package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.mjs +31 -0
- package/es/commons/plugins/event/actions/ueShjExecMethodAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/ueShjExecMethodAction.mjs +31 -0
- package/es/commons/plugins/event/actions/unityIframeExecMethodAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/unityIframeExecMethodAction.mjs +28 -0
- package/es/commons/plugins/event/actions/unityWebglExecMethodAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/unityWebglExecMethodAction.mjs +28 -0
- package/es/commons/plugins/event/actions/updatePageAction.d.ts +8 -0
- package/es/commons/plugins/event/actions/updatePageAction.mjs +6 -0
- package/es/commons/plugins/event/actions/updateVariableAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/updateVariableAction.mjs +23 -0
- package/es/commons/plugins/event/actions/updateWidgetAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/updateWidgetAction.mjs +13 -0
- package/es/commons/plugins/event/actions/vrSceneMethodAction.d.ts +7 -0
- package/es/commons/plugins/event/actions/vrSceneMethodAction.mjs +12 -0
- package/es/commons/plugins/event/index.d.ts +202 -0
- package/es/commons/plugins/event/index.mjs +150 -0
- package/es/commons/plugins/event/utils/utils.d.ts +22 -0
- package/es/commons/plugins/event/utils/utils.mjs +52 -0
- package/es/commons/utils/getNextElement.d.ts +7 -0
- package/es/commons/utils/getNextElement.mjs +12 -0
- package/es/components/chart-bar-animation/index.vue.mjs +24 -23
- package/es/components/chart-bar-basic/index.vue.mjs +24 -23
- package/es/components/chart-bar-contrast/index.vue.mjs +32 -31
- package/es/components/chart-bar-contrast2/index.vue.mjs +23 -22
- package/es/components/chart-bar-contrast3/index.vue.mjs +25 -24
- package/es/components/chart-bar-gradient-column-chart/index.vue.mjs +24 -23
- package/es/components/chart-bar-horizontal/index.vue.mjs +25 -24
- package/es/components/chart-bar-horizontal-stack/index.vue.mjs +25 -24
- package/es/components/chart-bar-line-bar/index.vue.mjs +23 -22
- package/es/components/chart-bar-line-bar2/index.vue.mjs +23 -22
- package/es/components/chart-bar-loop/index.vue.mjs +25 -24
- package/es/components/chart-bar-mini/index.vue.mjs +25 -24
- package/es/components/chart-bar-polar/index.vue.mjs +23 -22
- package/es/components/chart-bar-polar-stack/index.vue.mjs +23 -22
- package/es/components/chart-bar-polar2/index.vue.mjs +23 -22
- package/es/components/chart-bar-radius-circle/index.vue.mjs +23 -22
- package/es/components/chart-bar-rank/index.vue.mjs +25 -24
- package/es/components/chart-bar-segmented-progress/index.vue.mjs +27 -26
- package/es/components/chart-bar-spire/index.vue.mjs +30 -29
- package/es/components/chart-bar-stack/index.vue.mjs +24 -23
- package/es/components/chart-bar-stack-line/index.vue.mjs +23 -22
- package/es/components/chart-bar-stack2/index.vue.mjs +23 -22
- package/es/components/chart-bar-stack3/index.vue.mjs +23 -22
- package/es/components/chart-bar-staggered/index.vue.mjs +23 -22
- package/es/components/chart-bar-three/index.vue.mjs +21 -20
- package/es/components/chart-bar-waterfall/index.vue.mjs +30 -29
- package/es/components/chart-bar-zebra/index.vue.mjs +23 -22
- package/es/components/chart-line-area-gradient/index.vue.mjs +24 -23
- package/es/components/chart-line-area-highlight/index.vue.mjs +23 -22
- package/es/components/chart-line-area-highlight2/index.vue.mjs +23 -22
- package/es/components/chart-line-basic/index.vue.mjs +25 -24
- package/es/components/chart-line-bump/index.vue.mjs +30 -29
- package/es/components/chart-line-dashed/index.vue.mjs +24 -23
- package/es/components/chart-line-ladder/index.vue.mjs +24 -23
- package/es/components/chart-line-logarithm/index.vue.mjs +29 -28
- package/es/components/chart-line-multix/index.vue.mjs +29 -28
- package/es/components/chart-line-polar-double/index.vue.mjs +25 -24
- package/es/components/chart-line-rain-flow/index.vue.mjs +29 -28
- package/es/components/chart-line-scale/index.vue.mjs +24 -23
- package/es/components/chart-line-smooth/index.vue.mjs +24 -23
- package/es/components/chart-line-smooth-area/index.vue.mjs +29 -28
- package/es/components/chart-line-stack/index.vue.mjs +24 -23
- package/es/components/chart-line-stack-area/index.vue.mjs +24 -23
- package/es/components/chart-line-temp/index.vue.mjs +29 -28
- package/es/components/chart-line-vertical/index.vue.mjs +24 -23
- package/es/components/chart-map-basic/index.vue.mjs +29 -28
- package/es/components/chart-map-bmap-basic/index.vue.mjs +25 -24
- package/es/components/chart-map-bmap-heatmap/index.vue.mjs +24 -23
- package/es/components/chart-map-bmap-rich/index.vue.mjs +24 -23
- package/es/components/chart-map-customize/index.vue.mjs +23 -22
- package/es/components/chart-map-lines/index.vue.mjs +24 -23
- package/es/components/chart-map-scatter/index.vue.mjs +24 -23
- package/es/components/chart-other-candlestick-basic/index.vue.mjs +25 -24
- package/es/components/chart-other-candlestick-demo/index.vue.mjs +22 -21
- package/es/components/chart-other-candlestick-shanghai/index.vue.mjs +22 -21
- package/es/components/chart-other-circular-graph/index.vue.mjs +20 -19
- package/es/components/chart-other-force/index.vue.mjs +22 -21
- package/es/components/chart-other-force2/index.vue.mjs +22 -21
- package/es/components/chart-other-funnel/index.vue.mjs +20 -19
- package/es/components/chart-other-funnel-contrast/index.vue.mjs +20 -19
- package/es/components/chart-other-funnel-split/index.vue.mjs +20 -19
- package/es/components/chart-other-funnel2/index.vue.mjs +20 -19
- package/es/components/chart-other-gauge/index.vue.mjs +20 -19
- package/es/components/chart-other-gauge-grade/index.vue.mjs +20 -19
- package/es/components/chart-other-gauge-stage/index.vue.mjs +20 -19
- package/es/components/chart-other-graph-basic/index.vue.mjs +21 -20
- package/es/components/chart-other-graph-basic2/index.vue.mjs +21 -20
- package/es/components/chart-other-graph-calendar/index.vue.mjs +21 -20
- package/es/components/chart-other-grid-percentage/index.vue.mjs +25 -24
- package/es/components/chart-other-heatmap/index.vue.mjs +23 -22
- package/es/components/chart-other-label-gauge/index.vue.mjs +30 -29
- package/es/components/chart-other-liquidfill/index.vue.mjs +22 -21
- package/es/components/chart-other-parallel-basic/index.vue.mjs +21 -20
- package/es/components/chart-other-parallel-mul/index.vue.mjs +30 -29
- package/es/components/chart-other-radar/index.vue.mjs +32 -31
- package/es/components/chart-other-radar-stack/index.vue.mjs +23 -22
- package/es/components/chart-other-sunburst-basic/index.vue.mjs +22 -21
- package/es/components/chart-other-sunburst-basic2/index.vue.mjs +22 -21
- package/es/components/chart-other-sunburst-basic3/index.vue.mjs +22 -21
- package/es/components/chart-other-sunburst-basic4/index.vue.mjs +22 -21
- package/es/components/chart-other-sunburst-book/index.vue.mjs +22 -21
- package/es/components/chart-other-sunburst-flavors/index.vue.mjs +20 -19
- package/es/components/chart-other-sunburst-radius/index.vue.mjs +22 -21
- package/es/components/chart-other-theme-river/index.vue.mjs +25 -24
- package/es/components/chart-other-tree/index.vue.mjs +20 -19
- package/es/components/chart-other-tree-line/index.vue.mjs +21 -20
- package/es/components/chart-other-treemap/index.vue.mjs +19 -18
- package/es/components/chart-other-treemap-basic/index.vue.mjs +20 -19
- package/es/components/chart-other-word-cloud/index.vue.mjs +18 -17
- package/es/components/chart-pie-3d/index.vue.mjs +25 -24
- package/es/components/chart-pie-basic/index.vue.mjs +23 -22
- package/es/components/chart-pie-basic2/index.vue.mjs +23 -22
- package/es/components/chart-pie-customized/index.vue.mjs +28 -27
- package/es/components/chart-pie-index/index.vue.mjs +22 -21
- package/es/components/chart-pie-interval/index.vue.mjs +22 -21
- package/es/components/chart-pie-legend-scroll/index.vue.mjs +28 -27
- package/es/components/chart-pie-radius/index.vue.mjs +22 -21
- package/es/components/chart-pie-rose/index.vue.mjs +27 -26
- package/es/components/chart-pie-round/index.vue.mjs +27 -26
- package/es/components/chart-pie-semicircle/index.vue.mjs +23 -22
- package/es/components/chart-pie-sunburst/index.vue.mjs +23 -22
- package/es/components/chart-scatter-basic/index.vue.mjs +24 -23
- package/es/components/chart-scatter-basic2/index.vue.mjs +24 -23
- package/es/components/chart-scatter-bubble/index.vue.mjs +25 -24
- package/es/components/chart-scatter-ripples/index.vue.mjs +21 -20
- package/es/components/commons-echarts/compileAndRunEcharts.mjs +22 -21
- package/es/components/commons-loop-iterator/index.vue.mjs +2 -2
- package/es/components/commons-loop-iterator/index.vue2.mjs +39 -38
- package/es/components/commons-product-model/index.vue.mjs +1 -1
- package/es/components/commons-product-model/index.vue2.mjs +40 -39
- package/es/components/commons-three-loader/index.vue.mjs +2 -2
- package/es/components/commons-three-loader/index.vue2.mjs +6 -5
- package/es/components/commons-three-loader3/index.vue.mjs +2 -2
- package/es/components/commons-three-loader3/index.vue2.mjs +60 -59
- package/es/components/commons-weather/index.vue.mjs +2 -2
- package/es/components/commons-weather/index.vue2.mjs +45 -44
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +16 -14
- package/es/components/interaction-input/index.vue.mjs +1 -1
- package/es/components/interaction-input/index.vue2.mjs +56 -55
- package/es/components/interaction-select/index.vue.mjs +1 -1
- package/es/components/interaction-select/index.vue2.mjs +83 -82
- package/es/components/interaction-slider/index.vue.mjs +2 -2
- package/es/components/interaction-slider/index.vue2.mjs +45 -44
- package/es/components/interaction-switch/index.vue.mjs +2 -2
- package/es/components/interaction-switch/index.vue2.mjs +31 -30
- package/es/components/interaction-tabs/index.vue.mjs +2 -2
- package/es/components/interaction-tabs/index.vue2.mjs +31 -30
- package/es/components/interaction-tabs2/index.vue.mjs +2 -2
- package/es/components/interaction-tabs2/index.vue2.mjs +31 -30
- package/es/components/map-earth-basic/index.vue.d.ts +4 -4
- package/es/components/map-earth-basic/index.vue.mjs +30 -29
- package/es/components/map-earth-cool-tech/index.vue.d.ts +0 -2
- package/es/components/map-earth-cool-tech/index.vue.mjs +30 -29
- package/es/components/map-earth-fly-line/index.vue.d.ts +4 -2
- package/es/components/map-earth-fly-line/index.vue.mjs +34 -33
- package/es/components/map-earth-hacker/index.vue.d.ts +4 -2
- package/es/components/map-earth-hacker/index.vue.mjs +29 -28
- package/es/components/map-earth-particle/index.vue.d.ts +4 -2
- package/es/components/map-earth-particle/index.vue.mjs +30 -29
- package/es/components/media-audio/index.vue.mjs +1 -1
- package/es/components/media-audio/index.vue2.mjs +49 -48
- package/es/components/media-audio-dynamic/index.vue.mjs +1 -1
- package/es/components/media-audio-dynamic/index.vue2.mjs +58 -57
- package/es/components/media-flv/index.vue.mjs +40 -39
- package/es/components/media-iframe/index.vue.mjs +2 -2
- package/es/components/media-iframe/index.vue2.mjs +14 -13
- package/es/components/media-image-dynamic/index.vue.mjs +2 -2
- package/es/components/media-image-dynamic/index.vue2.mjs +23 -22
- package/es/components/media-m3u8/index.vue.mjs +39 -38
- package/es/components/media-m3u8-dynamic/index.vue.mjs +54 -53
- package/es/components/media-video/index.vue.mjs +1 -1
- package/es/components/media-video/index.vue2.mjs +38 -37
- package/es/components/media-video-dynamic/index.vue.mjs +1 -1
- package/es/components/media-video-dynamic/index.vue2.mjs +49 -48
- package/es/components/scene-amap2d/index.vue.mjs +1 -1
- package/es/components/scene-amap2d/index.vue2.mjs +107 -104
- package/es/components/scene-amap3d/index.vue.mjs +2 -2
- package/es/components/scene-amap3d/index.vue2.mjs +95 -92
- package/es/components/scene-default/index.d.ts +39 -0
- package/es/components/scene-default/index.mjs +7 -0
- package/es/components/scene-default/index.vue.d.ts +40 -0
- package/es/components/scene-default/index.vue.mjs +7 -0
- package/es/components/scene-default/index.vue2.mjs +35 -0
- package/es/components/scene-map3d/index.d.ts +1 -1
- package/es/components/scene-map3d/index.vue.d.ts +1 -1
- package/es/components/scene-map3d/index.vue.mjs +2 -2
- package/es/components/scene-map3d/index.vue2.mjs +129 -126
- package/es/components/scene-ue-iframe/index.vue.mjs +2 -2
- package/es/components/scene-ue-iframe/index.vue2.mjs +19 -18
- package/es/components/scene-ue-shj/index.vue.mjs +1 -1
- package/es/components/scene-ue-shj/index.vue2.mjs +14 -13
- package/es/components/scene-unity-iframe/index.vue.mjs +2 -2
- package/es/components/scene-unity-iframe/index.vue2.mjs +19 -16
- package/es/components/scene-unity-webgl/index.vue.mjs +1 -1
- package/es/components/scene-unity-webgl/index.vue2.mjs +16 -13
- package/es/components/scene-vr/index.vue.mjs +1 -1
- package/es/components/scene-vr/index.vue2.mjs +162 -159
- package/es/components/text-count-down/index.vue.mjs +1 -1
- package/es/components/text-count-down/index.vue2.mjs +34 -33
- package/es/components/text-over-number/index.vue.mjs +2 -2
- package/es/components/text-over-number/index.vue2.mjs +49 -48
- package/es/components/text-real-time/index.vue.mjs +2 -2
- package/es/components/text-real-time/index.vue2.mjs +26 -25
- package/es/components/text-row-scroll/index.vue.mjs +1 -1
- package/es/components/text-row-scroll/index.vue2.mjs +83 -82
- package/es/components/text-table-basic/index.vue.mjs +3 -3
- package/es/components/text-table-basic/index.vue2.mjs +97 -96
- package/es/components/text-table-scroll/index.vue.mjs +1 -1
- package/es/components/text-table-scroll/index.vue2.mjs +96 -95
- package/es/components/text-text-dynamic/index.vue.mjs +1 -1
- package/es/components/text-text-dynamic/index.vue2.mjs +29 -28
- package/es/env.d.ts +0 -2
- package/es/index.d.ts +3 -1
- package/es/index.mjs +351 -345
- package/es/widgets.css +1 -1
- package/lib/commons/core/useChart.js +1 -1
- package/lib/commons/{core → plugins}/datasource/index.js +1 -1
- package/lib/commons/plugins/datasource/utils/utils.js +1 -0
- package/lib/commons/plugins/event/actions/fullScreenAction.js +1 -0
- package/lib/commons/plugins/event/actions/invokeAction.js +1 -0
- package/lib/commons/plugins/event/actions/linkAction.js +1 -0
- package/lib/commons/plugins/event/actions/moveAction.js +1 -0
- package/lib/commons/plugins/event/actions/pageAction.js +1 -0
- package/lib/commons/plugins/event/actions/rotateAction.js +1 -0
- package/lib/commons/plugins/event/actions/scaleAction.js +1 -0
- package/lib/commons/plugins/event/actions/sendApiAction.js +1 -0
- package/lib/commons/plugins/event/actions/ueCommonsWebscoketAction.js +1 -0
- package/lib/commons/plugins/event/actions/ueShjExecMethodAction.js +1 -0
- package/lib/commons/plugins/event/actions/unityIframeExecMethodAction.js +1 -0
- package/lib/commons/plugins/event/actions/unityWebglExecMethodAction.js +1 -0
- package/lib/commons/plugins/event/actions/updatePageAction.js +1 -0
- package/lib/commons/plugins/event/actions/updateVariableAction.js +1 -0
- package/lib/commons/plugins/event/actions/updateWidgetAction.js +1 -0
- package/lib/commons/plugins/event/actions/vrSceneMethodAction.js +1 -0
- package/lib/commons/plugins/event/index.js +9 -0
- package/lib/commons/plugins/event/utils/utils.js +1 -0
- package/lib/commons/utils/getNextElement.js +1 -0
- package/lib/components/chart-bar-animation/index.vue.js +1 -1
- package/lib/components/chart-bar-basic/index.vue.js +1 -1
- package/lib/components/chart-bar-contrast/index.vue.js +1 -1
- package/lib/components/chart-bar-contrast2/index.vue.js +1 -1
- package/lib/components/chart-bar-contrast3/index.vue.js +1 -1
- package/lib/components/chart-bar-gradient-column-chart/index.vue.js +1 -1
- package/lib/components/chart-bar-horizontal/index.vue.js +1 -1
- package/lib/components/chart-bar-horizontal-stack/index.vue.js +1 -1
- package/lib/components/chart-bar-line-bar/index.vue.js +1 -1
- package/lib/components/chart-bar-line-bar2/index.vue.js +1 -1
- package/lib/components/chart-bar-loop/index.vue.js +1 -1
- package/lib/components/chart-bar-mini/index.vue.js +1 -1
- package/lib/components/chart-bar-polar/index.vue.js +1 -1
- package/lib/components/chart-bar-polar-stack/index.vue.js +1 -1
- package/lib/components/chart-bar-polar2/index.vue.js +1 -1
- package/lib/components/chart-bar-radius-circle/index.vue.js +1 -1
- package/lib/components/chart-bar-rank/index.vue.js +1 -1
- package/lib/components/chart-bar-segmented-progress/index.vue.js +1 -1
- package/lib/components/chart-bar-spire/index.vue.js +1 -1
- package/lib/components/chart-bar-stack/index.vue.js +1 -1
- package/lib/components/chart-bar-stack-line/index.vue.js +1 -1
- package/lib/components/chart-bar-stack2/index.vue.js +1 -1
- package/lib/components/chart-bar-stack3/index.vue.js +1 -1
- package/lib/components/chart-bar-staggered/index.vue.js +1 -1
- package/lib/components/chart-bar-three/index.vue.js +1 -1
- package/lib/components/chart-bar-waterfall/index.vue.js +1 -1
- package/lib/components/chart-bar-zebra/index.vue.js +1 -1
- package/lib/components/chart-line-area-gradient/index.vue.js +1 -1
- package/lib/components/chart-line-area-highlight/index.vue.js +1 -1
- package/lib/components/chart-line-area-highlight2/index.vue.js +1 -1
- package/lib/components/chart-line-basic/index.vue.js +1 -1
- package/lib/components/chart-line-bump/index.vue.js +1 -1
- package/lib/components/chart-line-dashed/index.vue.js +1 -1
- package/lib/components/chart-line-ladder/index.vue.js +1 -1
- package/lib/components/chart-line-logarithm/index.vue.js +1 -1
- package/lib/components/chart-line-multix/index.vue.js +1 -1
- package/lib/components/chart-line-polar-double/index.vue.js +1 -1
- package/lib/components/chart-line-rain-flow/index.vue.js +1 -1
- package/lib/components/chart-line-scale/index.vue.js +1 -1
- package/lib/components/chart-line-smooth/index.vue.js +1 -1
- package/lib/components/chart-line-smooth-area/index.vue.js +1 -1
- package/lib/components/chart-line-stack/index.vue.js +1 -1
- package/lib/components/chart-line-stack-area/index.vue.js +1 -1
- package/lib/components/chart-line-temp/index.vue.js +1 -1
- package/lib/components/chart-line-vertical/index.vue.js +1 -1
- package/lib/components/chart-map-basic/index.vue.js +1 -1
- package/lib/components/chart-map-bmap-basic/index.vue.js +1 -1
- package/lib/components/chart-map-bmap-heatmap/index.vue.js +1 -1
- package/lib/components/chart-map-bmap-rich/index.vue.js +1 -1
- package/lib/components/chart-map-customize/index.vue.js +1 -1
- package/lib/components/chart-map-lines/index.vue.js +1 -1
- package/lib/components/chart-map-scatter/index.vue.js +1 -1
- package/lib/components/chart-other-candlestick-basic/index.vue.js +1 -1
- package/lib/components/chart-other-candlestick-demo/index.vue.js +1 -1
- package/lib/components/chart-other-candlestick-shanghai/index.vue.js +1 -1
- package/lib/components/chart-other-circular-graph/index.vue.js +1 -1
- package/lib/components/chart-other-force/index.vue.js +1 -1
- package/lib/components/chart-other-force2/index.vue.js +1 -1
- package/lib/components/chart-other-funnel/index.vue.js +1 -1
- package/lib/components/chart-other-funnel-contrast/index.vue.js +1 -1
- package/lib/components/chart-other-funnel-split/index.vue.js +1 -1
- package/lib/components/chart-other-funnel2/index.vue.js +1 -1
- package/lib/components/chart-other-gauge/index.vue.js +1 -1
- package/lib/components/chart-other-gauge-grade/index.vue.js +1 -1
- package/lib/components/chart-other-gauge-stage/index.vue.js +1 -1
- package/lib/components/chart-other-graph-basic/index.vue.js +1 -1
- package/lib/components/chart-other-graph-basic2/index.vue.js +1 -1
- package/lib/components/chart-other-graph-calendar/index.vue.js +1 -1
- package/lib/components/chart-other-grid-percentage/index.vue.js +1 -1
- package/lib/components/chart-other-heatmap/index.vue.js +1 -1
- package/lib/components/chart-other-label-gauge/index.vue.js +1 -1
- package/lib/components/chart-other-liquidfill/index.vue.js +1 -1
- package/lib/components/chart-other-parallel-basic/index.vue.js +1 -1
- package/lib/components/chart-other-parallel-mul/index.vue.js +1 -1
- package/lib/components/chart-other-radar/index.vue.js +1 -1
- package/lib/components/chart-other-radar-stack/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-basic/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-basic2/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-basic3/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-basic4/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-book/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-flavors/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-radius/index.vue.js +1 -1
- package/lib/components/chart-other-theme-river/index.vue.js +1 -1
- package/lib/components/chart-other-tree/index.vue.js +1 -1
- package/lib/components/chart-other-tree-line/index.vue.js +1 -1
- package/lib/components/chart-other-treemap/index.vue.js +1 -1
- package/lib/components/chart-other-treemap-basic/index.vue.js +1 -1
- package/lib/components/chart-other-word-cloud/index.vue.js +1 -1
- package/lib/components/chart-pie-3d/index.vue.js +1 -1
- package/lib/components/chart-pie-basic/index.vue.js +1 -1
- package/lib/components/chart-pie-basic2/index.vue.js +1 -1
- package/lib/components/chart-pie-customized/index.vue.js +1 -1
- package/lib/components/chart-pie-index/index.vue.js +1 -1
- package/lib/components/chart-pie-interval/index.vue.js +1 -1
- package/lib/components/chart-pie-legend-scroll/index.vue.js +1 -1
- package/lib/components/chart-pie-radius/index.vue.js +1 -1
- package/lib/components/chart-pie-rose/index.vue.js +1 -1
- package/lib/components/chart-pie-round/index.vue.js +1 -1
- package/lib/components/chart-pie-semicircle/index.vue.js +1 -1
- package/lib/components/chart-pie-sunburst/index.vue.js +1 -1
- package/lib/components/chart-scatter-basic/index.vue.js +1 -1
- package/lib/components/chart-scatter-basic2/index.vue.js +1 -1
- package/lib/components/chart-scatter-bubble/index.vue.js +1 -1
- package/lib/components/chart-scatter-ripples/index.vue.js +1 -1
- package/lib/components/commons-echarts/compileAndRunEcharts.js +6 -6
- package/lib/components/commons-loop-iterator/index.vue.js +1 -1
- package/lib/components/commons-loop-iterator/index.vue2.js +1 -1
- package/lib/components/commons-product-model/index.vue.js +1 -1
- package/lib/components/commons-product-model/index.vue2.js +1 -1
- package/lib/components/commons-three-loader/index.vue.js +1 -1
- package/lib/components/commons-three-loader/index.vue2.js +1 -1
- package/lib/components/commons-three-loader3/index.vue.js +1 -1
- package/lib/components/commons-three-loader3/index.vue2.js +1 -1
- package/lib/components/commons-weather/index.vue.js +1 -1
- package/lib/components/commons-weather/index.vue2.js +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/interaction-input/index.vue.js +1 -1
- package/lib/components/interaction-input/index.vue2.js +1 -1
- package/lib/components/interaction-select/index.vue.js +1 -1
- package/lib/components/interaction-select/index.vue2.js +1 -1
- package/lib/components/interaction-slider/index.vue.js +1 -1
- package/lib/components/interaction-slider/index.vue2.js +1 -1
- package/lib/components/interaction-switch/index.vue.js +1 -1
- package/lib/components/interaction-switch/index.vue2.js +1 -1
- package/lib/components/interaction-tabs/index.vue.js +1 -1
- package/lib/components/interaction-tabs/index.vue2.js +1 -1
- package/lib/components/interaction-tabs2/index.vue.js +1 -1
- package/lib/components/interaction-tabs2/index.vue2.js +1 -1
- package/lib/components/map-earth-basic/index.vue.js +1 -1
- package/lib/components/map-earth-cool-tech/index.vue.js +1 -1
- package/lib/components/map-earth-fly-line/index.vue.js +1 -1
- package/lib/components/map-earth-hacker/index.vue.js +1 -1
- package/lib/components/map-earth-particle/index.vue.js +1 -1
- package/lib/components/media-audio/index.vue.js +1 -1
- package/lib/components/media-audio/index.vue2.js +1 -1
- package/lib/components/media-audio-dynamic/index.vue.js +1 -1
- package/lib/components/media-audio-dynamic/index.vue2.js +1 -1
- package/lib/components/media-flv/index.vue.js +1 -1
- package/lib/components/media-iframe/index.vue.js +1 -1
- package/lib/components/media-iframe/index.vue2.js +1 -1
- package/lib/components/media-image-dynamic/index.vue.js +1 -1
- package/lib/components/media-image-dynamic/index.vue2.js +1 -1
- package/lib/components/media-m3u8/index.vue.js +1 -1
- package/lib/components/media-m3u8-dynamic/index.vue.js +1 -1
- package/lib/components/media-video/index.vue.js +1 -1
- package/lib/components/media-video/index.vue2.js +1 -1
- package/lib/components/media-video-dynamic/index.vue.js +1 -1
- package/lib/components/media-video-dynamic/index.vue2.js +1 -1
- package/lib/components/scene-amap2d/index.vue.js +1 -1
- package/lib/components/scene-amap2d/index.vue2.js +1 -1
- package/lib/components/scene-amap3d/index.vue.js +1 -1
- package/lib/components/scene-amap3d/index.vue2.js +4 -4
- package/lib/components/scene-default/index.js +1 -0
- package/lib/components/scene-default/index.vue.js +1 -0
- package/lib/components/scene-default/index.vue2.js +1 -0
- package/lib/components/scene-map3d/index.vue.js +1 -1
- package/lib/components/scene-map3d/index.vue2.js +1 -1
- package/lib/components/scene-ue-iframe/index.vue.js +1 -1
- package/lib/components/scene-ue-iframe/index.vue2.js +1 -1
- package/lib/components/scene-ue-shj/index.vue.js +1 -1
- package/lib/components/scene-ue-shj/index.vue2.js +1 -1
- package/lib/components/scene-unity-iframe/index.vue.js +1 -1
- package/lib/components/scene-unity-iframe/index.vue2.js +1 -1
- package/lib/components/scene-unity-webgl/index.vue.js +1 -1
- package/lib/components/scene-unity-webgl/index.vue2.js +1 -1
- package/lib/components/scene-vr/index.vue.js +1 -1
- package/lib/components/scene-vr/index.vue2.js +2 -2
- package/lib/components/text-count-down/index.vue.js +1 -1
- package/lib/components/text-count-down/index.vue2.js +1 -1
- package/lib/components/text-over-number/index.vue.js +1 -1
- package/lib/components/text-over-number/index.vue2.js +1 -1
- package/lib/components/text-real-time/index.vue.js +1 -1
- package/lib/components/text-real-time/index.vue2.js +1 -1
- package/lib/components/text-row-scroll/index.vue.js +1 -1
- package/lib/components/text-row-scroll/index.vue2.js +1 -1
- package/lib/components/text-table-basic/index.vue.js +1 -1
- package/lib/components/text-table-basic/index.vue2.js +1 -1
- package/lib/components/text-table-scroll/index.vue.js +1 -1
- package/lib/components/text-table-scroll/index.vue2.js +1 -1
- package/lib/components/text-text-dynamic/index.vue.js +1 -1
- package/lib/components/text-text-dynamic/index.vue2.js +1 -1
- package/lib/index.js +1 -1
- package/lib/widgets.css +1 -1
- package/package.json +1 -1
- package/es/commons/core/datasource/utils/utils.d.ts +0 -50
- package/es/commons/core/datasource/utils/utils.mjs +0 -123
- package/lib/commons/core/datasource/utils/utils.js +0 -1
- /package/es/commons/{core → plugins}/datasource/index.d.ts +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/api.d.ts +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/api.mjs +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/static.d.ts +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/static.mjs +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/url.d.ts +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/url.mjs +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/variable.d.ts +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/variable.mjs +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/ws.d.ts +0 -0
- /package/es/commons/{core/datasource/core → plugins/datasource/sources}/ws.mjs +0 -0
- /package/es/commons/{core → plugins}/datasource/utils/axios.d.ts +0 -0
- /package/es/commons/{core → plugins}/datasource/utils/axios.mjs +0 -0
- /package/es/commons/{core → plugins}/datasource/utils/request.d.ts +0 -0
- /package/es/commons/{core → plugins}/datasource/utils/request.mjs +0 -0
- /package/es/commons/{core → plugins}/datasource/utils/wsManager.d.ts +0 -0
- /package/es/commons/{core → plugins}/datasource/utils/wsManager.mjs +0 -0
- /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/api.js +0 -0
- /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/static.js +0 -0
- /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/url.js +0 -0
- /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/variable.js +0 -0
- /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/ws.js +0 -0
- /package/lib/commons/{core → plugins}/datasource/utils/axios.js +0 -0
- /package/lib/commons/{core → plugins}/datasource/utils/request.js +0 -0
- /package/lib/commons/{core → plugins}/datasource/utils/wsManager.js +0 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { nanoid as
|
|
3
|
-
import { cloneDeep as
|
|
4
|
-
import { SHJDatasourceV2 as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { defineComponent as y, watch as v, ref as r, createElementBlock as F, openBlock as S, unref as d, withDirectives as H, createElementVNode as l, vShow as B, normalizeClass as T, createStaticVNode as z, onMounted as G, nextTick as J } from "vue";
|
|
2
|
+
import { nanoid as M } from "nanoid";
|
|
3
|
+
import { cloneDeep as f, isEqual as m } from "lodash";
|
|
4
|
+
import { SHJDatasourceV2 as N } from "../../commons/plugins/datasource/index.mjs";
|
|
5
|
+
import { SHJParseEvent as a } from "../../commons/plugins/event/index.mjs";
|
|
6
|
+
const R = ["autoplay", "loop", "muted"], U = ["src"], q = /* @__PURE__ */ z('<svg width="100%" height="100%" viewBox="0 0 75 75" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-6c497752><circle cx="37.5" cy="37.5" r="37.5" fill="#3D9CFF" fill-opacity="0.1" data-v-6c497752></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M51.3268 20.4054H33.1254C32.2255 20.4 31.3554 20.728 30.6832 21.3264C30.0109 21.9247 29.5841 22.7508 29.4852 23.6453L27.0161 44.2762C26.1001 43.746 25.053 43.4598 23.9763 43.4598C22.3672 43.4598 20.824 44.099 19.6862 45.2368C18.5484 46.3746 17.9092 47.9178 17.9092 49.5269C17.9092 51.136 18.5484 52.6792 19.6862 53.817C20.824 54.9548 22.3672 55.594 23.9763 55.594C25.5854 55.594 27.1286 54.9548 28.2664 53.817C29.3529 52.7305 29.9848 51.2743 30.0395 49.744L30.0555 49.746L32.361 31.3141H50.5623L48.8975 44.2994C47.9722 43.7543 46.9103 43.4598 45.818 43.4598C44.2089 43.4598 42.6657 44.099 41.5279 45.2368C40.3901 46.3746 39.7509 47.9178 39.7509 49.5269C39.7509 51.136 40.3901 52.6792 41.5279 53.817C42.6657 54.9548 44.2089 55.594 45.818 55.594C47.4271 55.594 48.9703 54.9548 50.1081 53.817C51.1946 52.7305 51.8265 51.2743 51.8812 49.744L51.8971 49.746L54.9792 24.434C55.034 23.9233 54.9801 23.4069 54.8211 22.9185C54.6621 22.4301 54.4015 21.981 54.0566 21.6005C53.7116 21.22 53.29 20.9168 52.8196 20.7108C52.3491 20.5049 51.8403 20.4008 51.3268 20.4054Z" fill="url(#paint0_linear_534:1941)" data-v-6c497752></path><defs data-v-6c497752><linearGradient id="paint0_linear_534:1941" x1="17.9092" y1="37.9996" x2="56.4836" y2="37.9996" gradientUnits="userSpaceOnUse" data-v-6c497752><stop stop-color="#3D9CFF" data-v-6c497752></stop><stop offset="1" stop-color="#43E8F3" data-v-6c497752></stop></linearGradient></defs></svg>', 1), I = [
|
|
7
|
+
q
|
|
8
|
+
], Z = y({ name: "zv-media-audio-dynamic" }), $ = /* @__PURE__ */ y({
|
|
9
|
+
...Z,
|
|
9
10
|
props: {
|
|
10
11
|
basicOption: {},
|
|
11
12
|
sources: {},
|
|
@@ -22,91 +23,91 @@ const N = ["autoplay", "loop", "muted"], R = ["src"], U = /* @__PURE__ */ B('<sv
|
|
|
22
23
|
"on-audio-error",
|
|
23
24
|
"on-audio-volumechange"
|
|
24
25
|
],
|
|
25
|
-
setup(
|
|
26
|
-
const e =
|
|
27
|
-
const o =
|
|
28
|
-
|
|
26
|
+
setup(E, { expose: C, emit: h }) {
|
|
27
|
+
const e = E, g = () => {
|
|
28
|
+
const o = r(""), t = r(M()), V = r(!1), c = () => {
|
|
29
|
+
N.parse({
|
|
29
30
|
tId: e.uuid,
|
|
30
31
|
sources: e.sources,
|
|
31
|
-
callback: ({ data:
|
|
32
|
+
callback: ({ data: p }) => {
|
|
32
33
|
try {
|
|
33
|
-
|
|
34
|
+
a.parseEvents(e.useEvents, "dataListener", p), o.value = p[0].data[0].src;
|
|
34
35
|
} catch {
|
|
35
|
-
|
|
36
|
+
a.parseEvents(e.useEvents, "dataListener", null);
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
});
|
|
39
40
|
};
|
|
40
|
-
return
|
|
41
|
-
}, { init: i, src:
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
return G(() => J(() => c())), { init: c, src: o, key: t, isAudioPlay: V };
|
|
42
|
+
}, { init: i, src: _, key: P, isAudioPlay: n } = g();
|
|
43
|
+
v(() => f(e.basicOption), (o, t) => {
|
|
44
|
+
m(o, t) || i();
|
|
44
45
|
}, {
|
|
45
46
|
deep: !0
|
|
46
|
-
}),
|
|
47
|
-
|
|
47
|
+
}), v(() => f(e.sources), (o, t) => {
|
|
48
|
+
m(o, t) || i();
|
|
48
49
|
}, { deep: !0 });
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
}, S = () => {
|
|
54
|
-
a("on-audio-pause"), window.SHJParseEvent(e.useEvents, "on-audio-pause"), n.value = !1;
|
|
55
|
-
}, H = () => {
|
|
56
|
-
a("on-audio-ended"), window.SHJParseEvent(e.useEvents, "on-audio-ended"), n.value = !1;
|
|
57
|
-
}, A = () => {
|
|
58
|
-
a("on-audio-playing"), window.SHJParseEvent(e.useEvents, "on-audio-playing");
|
|
59
|
-
}, J = () => {
|
|
60
|
-
a("on-audio-timeupdate"), window.SHJParseEvent(e.useEvents, "on-audio-timeupdate");
|
|
50
|
+
const u = r(), s = h, A = () => {
|
|
51
|
+
s("on-audio-progress"), a.parseEvents(e.useEvents, "on-audio-progress"), n.value = !0;
|
|
52
|
+
}, w = () => {
|
|
53
|
+
s("on-audio-play"), a.parseEvents(e.useEvents, "on-audio-play"), n.value = !0;
|
|
61
54
|
}, k = () => {
|
|
62
|
-
|
|
55
|
+
s("on-audio-pause"), a.parseEvents(e.useEvents, "on-audio-pause"), n.value = !1;
|
|
63
56
|
}, L = () => {
|
|
64
|
-
|
|
57
|
+
s("on-audio-ended"), a.parseEvents(e.useEvents, "on-audio-ended"), n.value = !1;
|
|
58
|
+
}, D = () => {
|
|
59
|
+
s("on-audio-playing"), a.parseEvents(e.useEvents, "on-audio-playing");
|
|
60
|
+
}, b = () => {
|
|
61
|
+
s("on-audio-timeupdate"), a.parseEvents(e.useEvents, "on-audio-timeupdate");
|
|
62
|
+
}, x = () => {
|
|
63
|
+
s("on-audio-error"), a.parseEvents(e.useEvents, "on-audio-error"), n.value = !1;
|
|
64
|
+
}, O = () => {
|
|
65
|
+
s("on-audio-volumechange"), a.parseEvents(e.useEvents, "on-audio-volumechange");
|
|
65
66
|
};
|
|
66
|
-
return
|
|
67
|
+
return C({
|
|
67
68
|
/** 开始播放 */
|
|
68
69
|
play: () => {
|
|
69
|
-
|
|
70
|
+
u.value && u.value.play();
|
|
70
71
|
},
|
|
71
72
|
/** 暂停播放 */
|
|
72
73
|
pause: () => {
|
|
73
|
-
|
|
74
|
+
u.value && u.value.pause();
|
|
74
75
|
},
|
|
75
76
|
refresh: () => i(),
|
|
76
77
|
refreshView: () => i(),
|
|
77
78
|
refreshData: () => i()
|
|
78
|
-
}), (o,
|
|
79
|
-
key: d(
|
|
79
|
+
}), (o, t) => (S(), F("div", {
|
|
80
|
+
key: d(P),
|
|
80
81
|
class: "audio"
|
|
81
82
|
}, [
|
|
82
|
-
|
|
83
|
+
H(l("audio", {
|
|
83
84
|
ref_key: "audioRef",
|
|
84
|
-
ref:
|
|
85
|
+
ref: u,
|
|
85
86
|
autoplay: o.basicOption.autoplay,
|
|
86
87
|
loop: o.basicOption.loop,
|
|
87
88
|
controls: !1,
|
|
88
89
|
muted: o.basicOption.muted,
|
|
89
|
-
onProgress:
|
|
90
|
-
onPlay:
|
|
91
|
-
onEnded:
|
|
92
|
-
onPlaying:
|
|
93
|
-
onPause:
|
|
94
|
-
onTimeupdate:
|
|
95
|
-
onError:
|
|
96
|
-
onVolumechange:
|
|
90
|
+
onProgress: A,
|
|
91
|
+
onPlay: w,
|
|
92
|
+
onEnded: L,
|
|
93
|
+
onPlaying: D,
|
|
94
|
+
onPause: k,
|
|
95
|
+
onTimeupdate: b,
|
|
96
|
+
onError: x,
|
|
97
|
+
onVolumechange: O
|
|
97
98
|
}, [
|
|
98
|
-
|
|
99
|
-
], 40,
|
|
100
|
-
[
|
|
99
|
+
l("source", { src: d(_) }, null, 8, U)
|
|
100
|
+
], 40, R), [
|
|
101
|
+
[B, !1]
|
|
101
102
|
]),
|
|
102
|
-
|
|
103
|
-
class:
|
|
103
|
+
l("div", {
|
|
104
|
+
class: T(["audio-svg", {
|
|
104
105
|
animation: d(n)
|
|
105
106
|
}])
|
|
106
|
-
},
|
|
107
|
+
}, I, 2)
|
|
107
108
|
]));
|
|
108
109
|
}
|
|
109
110
|
});
|
|
110
111
|
export {
|
|
111
|
-
|
|
112
|
+
$ as default
|
|
112
113
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cloneDeep as
|
|
1
|
+
import { defineComponent as p, watch as O, createElementBlock as _, openBlock as F, ref as R, onMounted as k } from "vue";
|
|
2
|
+
import { cloneDeep as w, isEqual as z } from "lodash";
|
|
3
3
|
import d from "flv.js";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import { SHJParseEvent as s } from "../../commons/plugins/event/index.mjs";
|
|
5
|
+
const B = ["poster", "autoplay", "controls", "loop", "muted"], M = p({ name: "zv-media-flv" }), C = /* @__PURE__ */ p({
|
|
6
|
+
...M,
|
|
6
7
|
props: {
|
|
7
8
|
basicOption: {},
|
|
8
9
|
sources: {},
|
|
@@ -18,42 +19,42 @@ const F = ["poster", "autoplay", "controls", "loop", "muted"], R = r({ name: "zv
|
|
|
18
19
|
"on-video-error",
|
|
19
20
|
"on-video-volumechange"
|
|
20
21
|
],
|
|
21
|
-
setup(v, { expose:
|
|
22
|
-
const e = v,
|
|
23
|
-
const o =
|
|
24
|
-
if (
|
|
22
|
+
setup(v, { expose: l, emit: u }) {
|
|
23
|
+
const e = v, c = () => {
|
|
24
|
+
const o = R(), t = (r) => {
|
|
25
|
+
if (r && d.isSupported())
|
|
25
26
|
try {
|
|
26
|
-
const
|
|
27
|
+
const a = d.createPlayer({
|
|
27
28
|
type: "flv",
|
|
28
|
-
url:
|
|
29
|
+
url: r
|
|
29
30
|
});
|
|
30
|
-
|
|
31
|
+
a.attachMediaElement(o.value), a.load(), e.basicOption.autoplay && a.play();
|
|
31
32
|
} catch {
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
|
-
return
|
|
35
|
-
}, { videoRef: i, initFlvVideo:
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
return k(() => t(e.basicOption.src)), { videoRef: o, initFlvVideo: t };
|
|
36
|
+
}, { videoRef: i, initFlvVideo: m } = c();
|
|
37
|
+
O(() => w(e.basicOption), (o, t) => {
|
|
38
|
+
z(o, t) || m(o.src);
|
|
38
39
|
}, { deep: !0 });
|
|
39
|
-
const n =
|
|
40
|
-
n("on-video-progress"),
|
|
41
|
-
}, f = () => {
|
|
42
|
-
n("on-video-play"), window.SHJParseEvent(e.useEvents, "on-video-play");
|
|
40
|
+
const n = u, f = () => {
|
|
41
|
+
n("on-video-progress"), s.parseEvents(e.useEvents, "on-video-progress");
|
|
43
42
|
}, E = () => {
|
|
44
|
-
n("on-video-
|
|
43
|
+
n("on-video-play"), s.parseEvents(e.useEvents, "on-video-play");
|
|
45
44
|
}, y = () => {
|
|
46
|
-
n("on-video-
|
|
47
|
-
}, P = () => {
|
|
48
|
-
n("on-video-playing"), window.SHJParseEvent(e.useEvents, "on-video-playing");
|
|
49
|
-
}, w = () => {
|
|
50
|
-
n("on-video-timeupdate"), window.SHJParseEvent(e.useEvents, "on-video-timeupdate");
|
|
45
|
+
n("on-video-pause"), s.parseEvents(e.useEvents, "on-video-pause");
|
|
51
46
|
}, g = () => {
|
|
52
|
-
n("on-video-
|
|
47
|
+
n("on-video-ended"), s.parseEvents(e.useEvents, "on-video-ended");
|
|
53
48
|
}, V = () => {
|
|
54
|
-
n("on-video-
|
|
49
|
+
n("on-video-playing"), s.parseEvents(e.useEvents, "on-video-playing");
|
|
50
|
+
}, P = () => {
|
|
51
|
+
n("on-video-timeupdate"), s.parseEvents(e.useEvents, "on-video-timeupdate");
|
|
52
|
+
}, h = () => {
|
|
53
|
+
n("on-video-error"), s.parseEvents(e.useEvents, "on-video-error");
|
|
54
|
+
}, b = () => {
|
|
55
|
+
n("on-video-volumechange"), s.parseEvents(e.useEvents, "on-video-volumechange");
|
|
55
56
|
};
|
|
56
|
-
return
|
|
57
|
+
return l({
|
|
57
58
|
/** 开始播放 */
|
|
58
59
|
play: () => {
|
|
59
60
|
i.value && i.value.play();
|
|
@@ -62,7 +63,7 @@ const F = ["poster", "autoplay", "controls", "loop", "muted"], R = r({ name: "zv
|
|
|
62
63
|
pause: () => {
|
|
63
64
|
i.value && i.value.pause();
|
|
64
65
|
}
|
|
65
|
-
}), (o,
|
|
66
|
+
}), (o, t) => (F(), _("video", {
|
|
66
67
|
ref_key: "videoRef",
|
|
67
68
|
ref: i,
|
|
68
69
|
class: "zerov-widget",
|
|
@@ -71,17 +72,17 @@ const F = ["poster", "autoplay", "controls", "loop", "muted"], R = r({ name: "zv
|
|
|
71
72
|
controls: o.basicOption.controls,
|
|
72
73
|
loop: o.basicOption.loop,
|
|
73
74
|
muted: o.basicOption.muted,
|
|
74
|
-
onProgress:
|
|
75
|
-
onPlay:
|
|
76
|
-
onEnded:
|
|
77
|
-
onPlaying:
|
|
78
|
-
onPause:
|
|
79
|
-
onTimeupdate:
|
|
80
|
-
onError:
|
|
81
|
-
onVolumechange:
|
|
82
|
-
}, null, 40,
|
|
75
|
+
onProgress: f,
|
|
76
|
+
onPlay: E,
|
|
77
|
+
onEnded: g,
|
|
78
|
+
onPlaying: V,
|
|
79
|
+
onPause: y,
|
|
80
|
+
onTimeupdate: P,
|
|
81
|
+
onError: h,
|
|
82
|
+
onVolumechange: b
|
|
83
|
+
}, null, 40, B));
|
|
83
84
|
}
|
|
84
85
|
});
|
|
85
86
|
export {
|
|
86
|
-
|
|
87
|
+
C as default
|
|
87
88
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ed1339a9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { defineComponent as a, ref as
|
|
1
|
+
import { defineComponent as a, ref as l, createElementBlock as f, openBlock as c } from "vue";
|
|
2
2
|
import { isArray as p } from "lodash";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { SHJParseEvent as d } from "../../commons/plugins/event/index.mjs";
|
|
4
|
+
const u = ["src"], v = a({ name: "zv-media-iframe" }), b = /* @__PURE__ */ a({
|
|
5
|
+
...v,
|
|
5
6
|
props: {
|
|
6
7
|
basicOption: {},
|
|
7
8
|
sceneOption: {},
|
|
8
9
|
useEvents: {}
|
|
9
10
|
},
|
|
10
11
|
emits: ["on-iframe-event-listener"],
|
|
11
|
-
setup(o, { expose:
|
|
12
|
-
const
|
|
12
|
+
setup(o, { expose: r, emit: i }) {
|
|
13
|
+
const t = l(), s = o, m = i;
|
|
13
14
|
return window.addEventListener("message", (e) => {
|
|
14
|
-
|
|
15
|
-
}, !1),
|
|
16
|
-
sendChildrenMessages: (e,
|
|
17
|
-
e[0].dataType === "params" ?
|
|
15
|
+
m("on-iframe-event-listener", e.data), s.useEvents && p(s.useEvents) && d.parseEvents(s.useEvents, "on-iframe-event-listener", e.data);
|
|
16
|
+
}, !1), r({
|
|
17
|
+
sendChildrenMessages: (e, n) => {
|
|
18
|
+
e[0].dataType === "params" ? t.value.contentWindow.postMessage(n, s.basicOption.url) : t.value.contentWindow.postMessage(e[0].data, s.basicOption.url);
|
|
18
19
|
}
|
|
19
|
-
}), (e,
|
|
20
|
+
}), (e, n) => (c(), f("iframe", {
|
|
20
21
|
ref_key: "iframeRef",
|
|
21
|
-
ref:
|
|
22
|
+
ref: t,
|
|
22
23
|
src: e.basicOption.url,
|
|
23
24
|
class: "iframe",
|
|
24
25
|
sandbox: "allow-scripts allow-same-origin allow-forms"
|
|
25
|
-
}, null, 8,
|
|
26
|
+
}, null, 8, u));
|
|
26
27
|
}
|
|
27
28
|
});
|
|
28
29
|
export {
|
|
29
|
-
|
|
30
|
+
b as default
|
|
30
31
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1cba2727"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cloneDeep as
|
|
3
|
-
import { SHJDatasourceV2 as
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { defineComponent as o, watch as m, createElementBlock as d, openBlock as l, normalizeStyle as f, unref as v, ref as b, onMounted as g, nextTick as k } from "vue";
|
|
2
|
+
import { cloneDeep as E, isEqual as _ } from "lodash";
|
|
3
|
+
import { SHJDatasourceV2 as h } from "../../commons/plugins/datasource/index.mjs";
|
|
4
|
+
import { SHJParseEvent as n } from "../../commons/plugins/event/index.mjs";
|
|
5
|
+
const y = o({ name: "zv-media-image-dynamic" }), O = /* @__PURE__ */ o({
|
|
6
|
+
...y,
|
|
6
7
|
props: {
|
|
7
8
|
basicOption: {},
|
|
8
9
|
sources: {},
|
|
9
10
|
useEvents: {},
|
|
10
11
|
uuid: {}
|
|
11
12
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const e =
|
|
13
|
+
setup(c, { expose: i }) {
|
|
14
|
+
const e = c, u = () => {
|
|
14
15
|
const r = b(""), t = () => {
|
|
15
|
-
|
|
16
|
+
h.parse({
|
|
16
17
|
tId: e.uuid,
|
|
17
18
|
sources: e.sources,
|
|
18
|
-
callback: ({ data:
|
|
19
|
+
callback: ({ data: a }) => {
|
|
19
20
|
try {
|
|
20
|
-
|
|
21
|
+
n.parseEvents(e.useEvents, "dataListener", a), r.value = a[0].data[0].src;
|
|
21
22
|
} catch {
|
|
22
|
-
|
|
23
|
+
n.parseEvents(e.useEvents, "dataListener", null);
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
});
|
|
26
27
|
};
|
|
27
28
|
return g(() => k(() => t())), { init: t, src: r };
|
|
28
|
-
}, { init:
|
|
29
|
-
return
|
|
30
|
-
_(r, t) ||
|
|
31
|
-
}, { deep: !0 }),
|
|
32
|
-
refresh: () =>
|
|
33
|
-
refreshView: () =>
|
|
34
|
-
refreshData: () =>
|
|
35
|
-
}), (r, t) => (
|
|
29
|
+
}, { init: s, src: p } = u();
|
|
30
|
+
return m(() => E(e.sources), (r, t) => {
|
|
31
|
+
_(r, t) || s();
|
|
32
|
+
}, { deep: !0 }), i({
|
|
33
|
+
refresh: () => s(),
|
|
34
|
+
refreshView: () => s(),
|
|
35
|
+
refreshData: () => s()
|
|
36
|
+
}), (r, t) => (l(), d("div", {
|
|
36
37
|
class: "zerov-image",
|
|
37
|
-
style:
|
|
38
|
-
backgroundImage: `url('${
|
|
38
|
+
style: f({
|
|
39
|
+
backgroundImage: `url('${v(p)}')`,
|
|
39
40
|
...e.basicOption.mode === "repeat" ? {
|
|
40
41
|
backgroundRepeat: "repeat",
|
|
41
42
|
backgroundSize: "auto"
|
|
@@ -48,5 +49,5 @@ const h = a({ name: "zv-media-image-dynamic" }), x = /* @__PURE__ */ a({
|
|
|
48
49
|
}
|
|
49
50
|
});
|
|
50
51
|
export {
|
|
51
|
-
|
|
52
|
+
O as default
|
|
52
53
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent as r, watch as
|
|
1
|
+
import { defineComponent as r, watch as O, createElementBlock as M, openBlock as _, ref as R, onMounted as S } from "vue";
|
|
2
2
|
import d from "hls.js";
|
|
3
|
-
import { cloneDeep as
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { cloneDeep as T, isEqual as k } from "lodash";
|
|
4
|
+
import { SHJParseEvent as s } from "../../commons/plugins/event/index.mjs";
|
|
5
|
+
const w = ["poster", "autoplay", "controls", "loop", "muted"], z = r({ name: "zv-media-m3u8" }), q = /* @__PURE__ */ r({
|
|
6
|
+
...z,
|
|
6
7
|
props: {
|
|
7
8
|
basicOption: {},
|
|
8
9
|
sources: {},
|
|
@@ -18,40 +19,40 @@ const _ = ["poster", "autoplay", "controls", "loop", "muted"], R = r({ name: "zv
|
|
|
18
19
|
"on-video-error",
|
|
19
20
|
"on-video-volumechange"
|
|
20
21
|
],
|
|
21
|
-
setup(
|
|
22
|
-
const o =
|
|
23
|
-
const e =
|
|
24
|
-
if (
|
|
22
|
+
setup(v, { expose: u, emit: l }) {
|
|
23
|
+
const o = v, c = () => {
|
|
24
|
+
const e = R(), t = (a) => {
|
|
25
|
+
if (a)
|
|
25
26
|
if (d.isSupported()) {
|
|
26
|
-
const
|
|
27
|
-
|
|
27
|
+
const p = new d();
|
|
28
|
+
p.loadSource(a), p.attachMedia(e.value), p.on(d.Events.MANIFEST_PARSED, () => {
|
|
28
29
|
o.basicOption.autoplay && e.value.play();
|
|
29
30
|
});
|
|
30
|
-
} else e.value.canPlayType("application/vnd.apple.mpegurl") && (e.value.src =
|
|
31
|
+
} else e.value.canPlayType("application/vnd.apple.mpegurl") && (e.value.src = a);
|
|
31
32
|
};
|
|
32
|
-
return
|
|
33
|
-
}, { videoRef: i, initM3u8Video:
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
return S(() => t(o.basicOption.src)), { videoRef: e, initM3u8Video: t };
|
|
34
|
+
}, { videoRef: i, initM3u8Video: m } = c();
|
|
35
|
+
O(() => T(o.basicOption), (e, t) => {
|
|
36
|
+
k(e, t) || m(e.src);
|
|
36
37
|
}, { deep: !0 });
|
|
37
|
-
const n =
|
|
38
|
-
n("on-video-progress"),
|
|
39
|
-
}, E = () => {
|
|
40
|
-
n("on-video-play"), window.SHJParseEvent(o.useEvents, "on-video-play");
|
|
38
|
+
const n = l, E = () => {
|
|
39
|
+
n("on-video-progress"), s.parseEvents(o.useEvents, "on-video-progress");
|
|
41
40
|
}, f = () => {
|
|
42
|
-
n("on-video-
|
|
41
|
+
n("on-video-play"), s.parseEvents(o.useEvents, "on-video-play");
|
|
43
42
|
}, y = () => {
|
|
44
|
-
n("on-video-
|
|
45
|
-
}, w = () => {
|
|
46
|
-
n("on-video-playing"), window.SHJParseEvent(o.useEvents, "on-video-playing");
|
|
47
|
-
}, P = () => {
|
|
48
|
-
n("on-video-timeupdate"), window.SHJParseEvent(o.useEvents, "on-video-timeupdate");
|
|
43
|
+
n("on-video-pause"), s.parseEvents(o.useEvents, "on-video-pause");
|
|
49
44
|
}, g = () => {
|
|
50
|
-
n("on-video-
|
|
45
|
+
n("on-video-ended"), s.parseEvents(o.useEvents, "on-video-ended");
|
|
51
46
|
}, V = () => {
|
|
52
|
-
n("on-video-
|
|
47
|
+
n("on-video-playing"), s.parseEvents(o.useEvents, "on-video-playing");
|
|
48
|
+
}, P = () => {
|
|
49
|
+
n("on-video-timeupdate"), s.parseEvents(o.useEvents, "on-video-timeupdate");
|
|
50
|
+
}, h = () => {
|
|
51
|
+
n("on-video-error"), s.parseEvents(o.useEvents, "on-video-error");
|
|
52
|
+
}, b = () => {
|
|
53
|
+
n("on-video-volumechange"), s.parseEvents(o.useEvents, "on-video-volumechange");
|
|
53
54
|
};
|
|
54
|
-
return
|
|
55
|
+
return u({
|
|
55
56
|
/** 开始播放 */
|
|
56
57
|
play: () => {
|
|
57
58
|
i.value && i.value.play();
|
|
@@ -60,7 +61,7 @@ const _ = ["poster", "autoplay", "controls", "loop", "muted"], R = r({ name: "zv
|
|
|
60
61
|
pause: () => {
|
|
61
62
|
i.value && i.value.pause();
|
|
62
63
|
}
|
|
63
|
-
}), (e,
|
|
64
|
+
}), (e, t) => (_(), M("video", {
|
|
64
65
|
ref_key: "videoRef",
|
|
65
66
|
ref: i,
|
|
66
67
|
class: "zerov-widget",
|
|
@@ -69,17 +70,17 @@ const _ = ["poster", "autoplay", "controls", "loop", "muted"], R = r({ name: "zv
|
|
|
69
70
|
controls: e.basicOption.controls,
|
|
70
71
|
loop: e.basicOption.loop,
|
|
71
72
|
muted: e.basicOption.muted,
|
|
72
|
-
onProgress:
|
|
73
|
-
onPlay:
|
|
74
|
-
onEnded:
|
|
75
|
-
onPlaying:
|
|
76
|
-
onPause:
|
|
73
|
+
onProgress: E,
|
|
74
|
+
onPlay: f,
|
|
75
|
+
onEnded: g,
|
|
76
|
+
onPlaying: V,
|
|
77
|
+
onPause: y,
|
|
77
78
|
onTimeupdate: P,
|
|
78
|
-
onError:
|
|
79
|
-
onVolumechange:
|
|
80
|
-
}, null, 40,
|
|
79
|
+
onError: h,
|
|
80
|
+
onVolumechange: b
|
|
81
|
+
}, null, 40, w));
|
|
81
82
|
}
|
|
82
83
|
});
|
|
83
84
|
export {
|
|
84
|
-
|
|
85
|
+
q as default
|
|
85
86
|
};
|