@shjjs/visual-ui 1.0.18 → 1.0.20
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 +6 -1
- package/es/index.mjs +358 -346
- 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,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { cloneDeep as
|
|
4
|
-
import { nanoid as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { defineComponent as E, watch as l, createElementBlock as D, openBlock as T, unref as H, ref as d, onMounted as z } from "vue";
|
|
2
|
+
import u from "hls.js";
|
|
3
|
+
import { cloneDeep as c, isEqual as m } from "lodash";
|
|
4
|
+
import { nanoid as A } from "nanoid";
|
|
5
|
+
import { SHJParseEvent as n } from "../../commons/plugins/event/index.mjs";
|
|
6
|
+
import { SHJDatasourceV2 as B } from "../../commons/plugins/datasource/index.mjs";
|
|
7
|
+
const I = ["poster", "autoplay", "controls", "loop", "muted"], J = E({ name: "zv-media-m3u8-dynamic" }), G = /* @__PURE__ */ E({
|
|
8
|
+
...J,
|
|
8
9
|
props: {
|
|
9
10
|
basicOption: {},
|
|
10
11
|
sources: {},
|
|
@@ -21,52 +22,52 @@ const A = ["poster", "autoplay", "controls", "loop", "muted"], B = m({ name: "zv
|
|
|
21
22
|
"on-video-error",
|
|
22
23
|
"on-video-volumechange"
|
|
23
24
|
],
|
|
24
|
-
setup(
|
|
25
|
-
const e =
|
|
26
|
-
const o =
|
|
27
|
-
|
|
25
|
+
setup(f, { expose: y, emit: g }) {
|
|
26
|
+
const e = f, V = () => {
|
|
27
|
+
const o = d(), s = d(""), w = d(A()), p = () => {
|
|
28
|
+
B.parse({
|
|
28
29
|
tId: e.uuid,
|
|
29
30
|
sources: e.sources,
|
|
30
31
|
callback: ({ data: v }) => {
|
|
31
32
|
try {
|
|
32
|
-
if (
|
|
33
|
-
if (
|
|
34
|
-
const
|
|
35
|
-
|
|
33
|
+
if (n.parseEvents(e.useEvents, "dataListener", v), s.value = v[0].data[0].src, s.value)
|
|
34
|
+
if (u.isSupported()) {
|
|
35
|
+
const r = new u();
|
|
36
|
+
r.loadSource(s.value), r.attachMedia(o.value), r.on(u.Events.MANIFEST_PARSED, () => {
|
|
36
37
|
e.basicOption.autoplay && o.value.play();
|
|
37
38
|
});
|
|
38
|
-
} else o.value.canPlayType("application/vnd.apple.mpegurl") && (o.value.src =
|
|
39
|
+
} else o.value.canPlayType("application/vnd.apple.mpegurl") && (o.value.src = s.value);
|
|
39
40
|
} catch {
|
|
40
|
-
|
|
41
|
+
n.parseEvents(e.useEvents, "dataListener", null);
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
});
|
|
44
45
|
};
|
|
45
|
-
return
|
|
46
|
-
}, { key:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}, { deep: !0 }),
|
|
50
|
-
|
|
46
|
+
return z(() => p()), { key: w, videoRef: o, initM3u8Video: p };
|
|
47
|
+
}, { key: h, videoRef: i, initM3u8Video: a } = V();
|
|
48
|
+
l(() => c(e.basicOption), (o, s) => {
|
|
49
|
+
m(o, s) || a();
|
|
50
|
+
}, { deep: !0 }), l(() => c(e.sources), (o, s) => {
|
|
51
|
+
m(o, s) || a();
|
|
51
52
|
}, { deep: !0 });
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
}, V = () => {
|
|
55
|
-
s("on-video-play"), window.SHJParseEvent(e.useEvents, "on-video-play");
|
|
56
|
-
}, S = () => {
|
|
57
|
-
s("on-video-pause"), window.SHJParseEvent(e.useEvents, "on-video-pause");
|
|
58
|
-
}, h = () => {
|
|
59
|
-
s("on-video-ended"), window.SHJParseEvent(e.useEvents, "on-video-ended");
|
|
60
|
-
}, H = () => {
|
|
61
|
-
s("on-video-playing"), window.SHJParseEvent(e.useEvents, "on-video-playing");
|
|
62
|
-
}, J = () => {
|
|
63
|
-
s("on-video-timeupdate"), window.SHJParseEvent(e.useEvents, "on-video-timeupdate");
|
|
53
|
+
const t = g, P = () => {
|
|
54
|
+
t("on-video-progress"), n.parseEvents(e.useEvents, "on-video-progress");
|
|
64
55
|
}, b = () => {
|
|
65
|
-
|
|
56
|
+
t("on-video-play"), n.parseEvents(e.useEvents, "on-video-play");
|
|
66
57
|
}, k = () => {
|
|
67
|
-
|
|
58
|
+
t("on-video-pause"), n.parseEvents(e.useEvents, "on-video-pause");
|
|
59
|
+
}, O = () => {
|
|
60
|
+
t("on-video-ended"), n.parseEvents(e.useEvents, "on-video-ended");
|
|
61
|
+
}, M = () => {
|
|
62
|
+
t("on-video-playing"), n.parseEvents(e.useEvents, "on-video-playing");
|
|
63
|
+
}, _ = () => {
|
|
64
|
+
t("on-video-timeupdate"), n.parseEvents(e.useEvents, "on-video-timeupdate");
|
|
65
|
+
}, S = () => {
|
|
66
|
+
t("on-video-error"), n.parseEvents(e.useEvents, "on-video-error");
|
|
67
|
+
}, R = () => {
|
|
68
|
+
t("on-video-volumechange"), n.parseEvents(e.useEvents, "on-video-volumechange");
|
|
68
69
|
};
|
|
69
|
-
return
|
|
70
|
+
return y({
|
|
70
71
|
/** 开始播放 */
|
|
71
72
|
play: () => {
|
|
72
73
|
i.value && i.value.play();
|
|
@@ -75,11 +76,11 @@ const A = ["poster", "autoplay", "controls", "loop", "muted"], B = m({ name: "zv
|
|
|
75
76
|
pause: () => {
|
|
76
77
|
i.value && i.value.pause();
|
|
77
78
|
},
|
|
78
|
-
refresh: () =>
|
|
79
|
-
refreshView: () =>
|
|
80
|
-
refreshData: () =>
|
|
81
|
-
}), (o,
|
|
82
|
-
key:
|
|
79
|
+
refresh: () => a(),
|
|
80
|
+
refreshView: () => a(),
|
|
81
|
+
refreshData: () => a()
|
|
82
|
+
}), (o, s) => (T(), D("video", {
|
|
83
|
+
key: H(h),
|
|
83
84
|
ref_key: "videoRef",
|
|
84
85
|
ref: i,
|
|
85
86
|
class: "zerov-widget",
|
|
@@ -88,17 +89,17 @@ const A = ["poster", "autoplay", "controls", "loop", "muted"], B = m({ name: "zv
|
|
|
88
89
|
controls: o.basicOption.controls,
|
|
89
90
|
loop: o.basicOption.loop,
|
|
90
91
|
muted: o.basicOption.muted,
|
|
91
|
-
onProgress:
|
|
92
|
-
onPlay:
|
|
93
|
-
onEnded:
|
|
94
|
-
onPlaying:
|
|
95
|
-
onPause:
|
|
96
|
-
onTimeupdate:
|
|
97
|
-
onError:
|
|
98
|
-
onVolumechange:
|
|
99
|
-
}, null, 40,
|
|
92
|
+
onProgress: P,
|
|
93
|
+
onPlay: b,
|
|
94
|
+
onEnded: O,
|
|
95
|
+
onPlaying: M,
|
|
96
|
+
onPause: k,
|
|
97
|
+
onTimeupdate: _,
|
|
98
|
+
onError: S,
|
|
99
|
+
onVolumechange: R
|
|
100
|
+
}, null, 40, I));
|
|
100
101
|
}
|
|
101
102
|
});
|
|
102
103
|
export {
|
|
103
|
-
|
|
104
|
+
G as default
|
|
104
105
|
};
|
|
@@ -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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c69fb493"]]);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { nanoid as
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { defineComponent as a, ref as t, createElementBlock as P, openBlock as V } from "vue";
|
|
2
|
+
import { nanoid as b } from "nanoid";
|
|
3
|
+
import { SHJParseEvent as n } from "../../commons/plugins/event/index.mjs";
|
|
4
|
+
const h = ["poster", "autoplay", "controls", "loop", "muted", "src"], O = a({ name: "zv-media-video" }), R = /* @__PURE__ */ a({
|
|
5
|
+
...O,
|
|
5
6
|
props: {
|
|
6
7
|
basicOption: {},
|
|
7
8
|
sources: {},
|
|
@@ -17,55 +18,55 @@ const V = ["poster", "autoplay", "controls", "loop", "muted", "src"], H = d({ na
|
|
|
17
18
|
"on-video-error",
|
|
18
19
|
"on-video-volumechange"
|
|
19
20
|
],
|
|
20
|
-
setup(
|
|
21
|
-
const e =
|
|
22
|
-
o("on-video-progress"),
|
|
23
|
-
}, u = () => {
|
|
24
|
-
o("on-video-play"), window.SHJParseEvent(e.useEvents, "on-video-play");
|
|
21
|
+
setup(d, { expose: r, emit: p }) {
|
|
22
|
+
const e = d, v = t(b()), i = t(), o = p, u = () => {
|
|
23
|
+
o("on-video-progress"), n.parseEvents(e.useEvents, "on-video-progress");
|
|
25
24
|
}, l = () => {
|
|
26
|
-
o("on-video-
|
|
25
|
+
o("on-video-play"), n.parseEvents(e.useEvents, "on-video-play");
|
|
27
26
|
}, c = () => {
|
|
28
|
-
o("on-video-
|
|
27
|
+
o("on-video-pause"), n.parseEvents(e.useEvents, "on-video-pause");
|
|
29
28
|
}, m = () => {
|
|
30
|
-
o("on-video-
|
|
29
|
+
o("on-video-ended"), n.parseEvents(e.useEvents, "on-video-ended");
|
|
31
30
|
}, E = () => {
|
|
32
|
-
o("on-video-
|
|
31
|
+
o("on-video-playing"), n.parseEvents(e.useEvents, "on-video-playing");
|
|
33
32
|
}, y = () => {
|
|
34
|
-
o("on-video-
|
|
35
|
-
},
|
|
36
|
-
o("on-video-
|
|
33
|
+
o("on-video-timeupdate"), n.parseEvents(e.useEvents, "on-video-timeupdate");
|
|
34
|
+
}, g = () => {
|
|
35
|
+
o("on-video-error"), n.parseEvents(e.useEvents, "on-video-error");
|
|
36
|
+
}, f = () => {
|
|
37
|
+
o("on-video-volumechange"), n.parseEvents(e.useEvents, "on-video-volumechange");
|
|
37
38
|
};
|
|
38
|
-
return
|
|
39
|
+
return r({
|
|
39
40
|
/** 开始播放 */
|
|
40
41
|
play: () => {
|
|
41
|
-
|
|
42
|
+
i.value && i.value.play();
|
|
42
43
|
},
|
|
43
44
|
/** 暂停播放 */
|
|
44
45
|
pause: () => {
|
|
45
|
-
|
|
46
|
+
i.value && i.value.pause();
|
|
46
47
|
}
|
|
47
|
-
}), (
|
|
48
|
+
}), (s, k) => (V(), P("video", {
|
|
48
49
|
ref_key: "videoRef",
|
|
49
|
-
ref:
|
|
50
|
+
ref: i,
|
|
50
51
|
key: v.value,
|
|
51
|
-
poster:
|
|
52
|
-
autoplay:
|
|
53
|
-
controls:
|
|
54
|
-
loop:
|
|
55
|
-
muted:
|
|
52
|
+
poster: s.basicOption.poster,
|
|
53
|
+
autoplay: s.basicOption.autoplay,
|
|
54
|
+
controls: s.basicOption.controls,
|
|
55
|
+
loop: s.basicOption.loop,
|
|
56
|
+
muted: s.basicOption.muted,
|
|
56
57
|
class: "zerov-widget-video",
|
|
57
|
-
src:
|
|
58
|
-
onProgress:
|
|
59
|
-
onPlay:
|
|
60
|
-
onEnded:
|
|
61
|
-
onPlaying:
|
|
62
|
-
onPause:
|
|
63
|
-
onTimeupdate:
|
|
64
|
-
onError:
|
|
65
|
-
onVolumechange:
|
|
66
|
-
}, null, 40,
|
|
58
|
+
src: s.basicOption.src,
|
|
59
|
+
onProgress: u,
|
|
60
|
+
onPlay: l,
|
|
61
|
+
onEnded: m,
|
|
62
|
+
onPlaying: E,
|
|
63
|
+
onPause: c,
|
|
64
|
+
onTimeupdate: y,
|
|
65
|
+
onError: g,
|
|
66
|
+
onVolumechange: f
|
|
67
|
+
}, null, 40, h));
|
|
67
68
|
}
|
|
68
69
|
});
|
|
69
70
|
export {
|
|
70
|
-
|
|
71
|
+
R as default
|
|
71
72
|
};
|
|
@@ -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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fb3135d9"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as v, watch as
|
|
2
|
-
import { nanoid as
|
|
3
|
-
import { cloneDeep as
|
|
4
|
-
import { SHJDatasourceV2 as
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { defineComponent as v, watch as D, ref as a, createElementBlock as w, openBlock as T, unref as u, onMounted as z, nextTick as B } from "vue";
|
|
2
|
+
import { nanoid as H } from "nanoid";
|
|
3
|
+
import { cloneDeep as J, isEqual as L } from "lodash";
|
|
4
|
+
import { SHJDatasourceV2 as R } from "../../commons/plugins/datasource/index.mjs";
|
|
5
|
+
import { SHJParseEvent as n } from "../../commons/plugins/event/index.mjs";
|
|
6
|
+
const S = ["poster", "autoplay", "controls", "loop", "muted", "src"], q = v({ name: "zv-media-video-dynamic" }), G = /* @__PURE__ */ v({
|
|
7
|
+
...q,
|
|
7
8
|
props: {
|
|
8
9
|
basicOption: {},
|
|
9
10
|
sources: {},
|
|
@@ -20,77 +21,77 @@ const L = ["poster", "autoplay", "controls", "loop", "muted", "src"], R = v({ na
|
|
|
20
21
|
"on-video-error",
|
|
21
22
|
"on-video-volumechange"
|
|
22
23
|
],
|
|
23
|
-
setup(c, { expose:
|
|
24
|
-
const e = c,
|
|
25
|
-
const o =
|
|
26
|
-
|
|
24
|
+
setup(c, { expose: l, emit: m }) {
|
|
25
|
+
const e = c, E = () => {
|
|
26
|
+
const o = a(""), r = a(H()), d = () => {
|
|
27
|
+
R.parse({
|
|
27
28
|
tId: e.uuid,
|
|
28
29
|
sources: e.sources,
|
|
29
|
-
callback: ({ data:
|
|
30
|
+
callback: ({ data: p }) => {
|
|
30
31
|
try {
|
|
31
|
-
|
|
32
|
+
n.parseEvents(e.useEvents, "dataListener", p), o.value = p[0].data[0].src;
|
|
32
33
|
} catch {
|
|
33
|
-
|
|
34
|
+
n.parseEvents(e.useEvents, "dataListener", null);
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
});
|
|
37
38
|
};
|
|
38
|
-
return
|
|
39
|
-
}, { init: i, src:
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
return z(() => B(() => d())), { init: d, src: o, key: r };
|
|
40
|
+
}, { init: i, src: y, key: f } = E();
|
|
41
|
+
D(() => J(e.sources), (o, r) => {
|
|
42
|
+
L(o, r) || i();
|
|
42
43
|
}, { deep: !0 });
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
}, f = () => {
|
|
46
|
-
n("on-video-play"), window.SHJParseEvent(e.useEvents, "on-video-play");
|
|
47
|
-
}, P = () => {
|
|
48
|
-
n("on-video-pause"), window.SHJParseEvent(e.useEvents, "on-video-pause");
|
|
49
|
-
}, g = () => {
|
|
50
|
-
n("on-video-ended"), window.SHJParseEvent(e.useEvents, "on-video-ended");
|
|
44
|
+
const t = a(), s = m, g = () => {
|
|
45
|
+
s("on-video-progress"), n.parseEvents(e.useEvents, "on-video-progress");
|
|
51
46
|
}, V = () => {
|
|
52
|
-
|
|
47
|
+
s("on-video-play"), n.parseEvents(e.useEvents, "on-video-play");
|
|
53
48
|
}, h = () => {
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
|
|
49
|
+
s("on-video-pause"), n.parseEvents(e.useEvents, "on-video-pause");
|
|
50
|
+
}, P = () => {
|
|
51
|
+
s("on-video-ended"), n.parseEvents(e.useEvents, "on-video-ended");
|
|
52
|
+
}, k = () => {
|
|
53
|
+
s("on-video-playing"), n.parseEvents(e.useEvents, "on-video-playing");
|
|
54
|
+
}, b = () => {
|
|
55
|
+
s("on-video-timeupdate"), n.parseEvents(e.useEvents, "on-video-timeupdate");
|
|
56
|
+
}, O = () => {
|
|
57
|
+
s("on-video-error"), n.parseEvents(e.useEvents, "on-video-error");
|
|
58
|
+
}, _ = () => {
|
|
59
|
+
s("on-video-volumechange"), n.parseEvents(e.useEvents, "on-video-volumechange");
|
|
59
60
|
};
|
|
60
|
-
return
|
|
61
|
+
return l({
|
|
61
62
|
/** 开始播放 */
|
|
62
63
|
play: () => {
|
|
63
|
-
|
|
64
|
+
t.value && t.value.play();
|
|
64
65
|
},
|
|
65
66
|
/** 暂停播放 */
|
|
66
67
|
pause: () => {
|
|
67
|
-
|
|
68
|
+
t.value && t.value.pause();
|
|
68
69
|
},
|
|
69
70
|
refresh: () => i(),
|
|
70
71
|
refreshView: () => i(),
|
|
71
72
|
refreshData: () => i()
|
|
72
|
-
}), (o,
|
|
73
|
+
}), (o, r) => (T(), w("video", {
|
|
73
74
|
ref_key: "videoRef",
|
|
74
|
-
ref:
|
|
75
|
-
key: u(
|
|
75
|
+
ref: t,
|
|
76
|
+
key: u(f),
|
|
76
77
|
poster: o.basicOption.poster,
|
|
77
78
|
autoplay: o.basicOption.autoplay,
|
|
78
79
|
controls: o.basicOption.controls,
|
|
79
80
|
loop: o.basicOption.loop,
|
|
80
81
|
muted: o.basicOption.muted,
|
|
81
82
|
class: "zerov-widget-video",
|
|
82
|
-
src: u(
|
|
83
|
-
onProgress:
|
|
84
|
-
onPlay:
|
|
85
|
-
onEnded:
|
|
86
|
-
onPlaying:
|
|
87
|
-
onPause:
|
|
88
|
-
onTimeupdate:
|
|
89
|
-
onError:
|
|
90
|
-
onVolumechange:
|
|
91
|
-
}, null, 40,
|
|
83
|
+
src: u(y),
|
|
84
|
+
onProgress: g,
|
|
85
|
+
onPlay: V,
|
|
86
|
+
onEnded: P,
|
|
87
|
+
onPlaying: k,
|
|
88
|
+
onPause: h,
|
|
89
|
+
onTimeupdate: b,
|
|
90
|
+
onError: O,
|
|
91
|
+
onVolumechange: _
|
|
92
|
+
}, null, 40, S));
|
|
92
93
|
}
|
|
93
94
|
});
|
|
94
95
|
export {
|
|
95
|
-
|
|
96
|
+
G as default
|
|
96
97
|
};
|
|
@@ -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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-67e74be1"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|