@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,79 +1,80 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useResizeObserver as
|
|
3
|
-
import { debounce as
|
|
4
|
-
import
|
|
5
|
-
import * as
|
|
6
|
-
import { nanoid as
|
|
7
|
-
import { HoverLoop as V } from "../utils/hoverLoop.mjs";
|
|
1
|
+
import { ref as p, shallowRef as O, onMounted as b, onBeforeUnmount as k } from "vue";
|
|
2
|
+
import { useResizeObserver as D } from "@vueuse/core";
|
|
3
|
+
import { debounce as M, cloneDeep as y, isArray as n } from "lodash";
|
|
4
|
+
import T from "is-electron";
|
|
5
|
+
import * as m from "echarts";
|
|
6
|
+
import { nanoid as x } from "nanoid";
|
|
8
7
|
import "echarts-wordcloud";
|
|
9
8
|
import "echarts-liquidfill";
|
|
10
|
-
|
|
9
|
+
import { SHJParseEvent as f } from "../plugins/event/index.mjs";
|
|
10
|
+
import { HoverLoop as L } from "../utils/hoverLoop.mjs";
|
|
11
|
+
const z = (l) => {
|
|
11
12
|
const e = [];
|
|
12
13
|
l.geo && (n(l.geo) ? e.push(...l.geo.map((r) => r.map)) : e.push(l.geo.map)), l.series && n(l.series) && l.series.forEach((r) => {
|
|
13
14
|
r.map && e.push(r.map);
|
|
14
15
|
});
|
|
15
|
-
const
|
|
16
|
+
const v = e.map((r) => {
|
|
16
17
|
if (r === "customize")
|
|
17
18
|
if (n(l.geo)) {
|
|
18
19
|
const c = JSON.parse(l.geo.find((h) => h.map === "customize").geoData);
|
|
19
|
-
return
|
|
20
|
+
return m.registerMap(r, c);
|
|
20
21
|
} else {
|
|
21
22
|
const c = JSON.parse(l.geo.geoData);
|
|
22
|
-
return
|
|
23
|
+
return m.registerMap(r, c);
|
|
23
24
|
}
|
|
24
25
|
else
|
|
25
|
-
return fetch((
|
|
26
|
-
|
|
26
|
+
return fetch((T() ? "gismap/" : "/gismap/") + r + ".json").then((c) => c.json()).then((c) => {
|
|
27
|
+
m.registerMap(r, c);
|
|
27
28
|
}).catch((c) => {
|
|
28
29
|
});
|
|
29
30
|
});
|
|
30
|
-
return Promise.all(
|
|
31
|
-
},
|
|
31
|
+
return Promise.all(v);
|
|
32
|
+
}, B = async (l) => {
|
|
32
33
|
l.bmap && await import(
|
|
33
34
|
/* @vite-ignore */
|
|
34
35
|
"echarts/extension/bmap/bmap"
|
|
35
36
|
);
|
|
36
|
-
},
|
|
37
|
-
const c =
|
|
37
|
+
}, _ = ({ basicOption: l, useEvents: e, customRenderData: v, emit: r }) => {
|
|
38
|
+
const c = x(), h = p(!0), t = O(null), d = v, u = p(null), i = p(null), S = (s, w) => {
|
|
38
39
|
try {
|
|
39
|
-
t.value || (t.value =
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
42
|
-
if (t.value.setOption(
|
|
43
|
-
if (i.value && clearInterval(i.value), u.value && u.value.closeSwitchTooltip(),
|
|
44
|
-
let
|
|
45
|
-
|
|
46
|
-
const
|
|
40
|
+
t.value || (t.value = m.init(document.getElementById(c), null, { renderer: w || "svg" }));
|
|
41
|
+
const a = y(s);
|
|
42
|
+
if (a) {
|
|
43
|
+
if (t.value.setOption(a, !0), a.hoverLoop)
|
|
44
|
+
if (i.value && clearInterval(i.value), u.value && u.value.closeSwitchTooltip(), a.hoverLoop.type === "方式二") {
|
|
45
|
+
let o = 0;
|
|
46
|
+
a.dataset && a.dataset.source && (o = a.dataset.source.length), a.series[0] && a.series[0].data && (o = a.series[0].data.length);
|
|
47
|
+
const Z = a.dataZoom[0].endValue, I = a.dataZoom[0].startValue, V = () => {
|
|
47
48
|
i.value = setInterval(() => {
|
|
48
|
-
|
|
49
|
-
},
|
|
49
|
+
a.dataZoom[0].endValue > o - 2 ? (a.dataZoom[0].endValue = Z, a.dataZoom[0].startValue = I) : (a.dataZoom[0].endValue = a.dataZoom[0].endValue + 1, a.dataZoom[0].startValue = a.dataZoom[0].startValue + 1), t.value.setOption(a);
|
|
50
|
+
}, a.hoverLoop.delay2);
|
|
50
51
|
};
|
|
51
52
|
t.value.on("mousemove", function() {
|
|
52
53
|
i.value && clearInterval(i.value);
|
|
53
54
|
}), t.value.on("mouseout", function() {
|
|
54
|
-
i.value && clearInterval(i.value),
|
|
55
|
-
}),
|
|
56
|
-
} else
|
|
55
|
+
i.value && clearInterval(i.value), V();
|
|
56
|
+
}), V();
|
|
57
|
+
} else a.hoverLoop.type === "方式一" && (t.value.on("mousemove", function() {
|
|
57
58
|
u.value && u.value.closeSwitchTooltip();
|
|
58
59
|
}), t.value.on("mouseout", function() {
|
|
59
|
-
u.value && u.value.closeSwitchTooltip(), u.value = new
|
|
60
|
-
}), u.value = new
|
|
60
|
+
u.value && u.value.closeSwitchTooltip(), u.value = new L(t.value, a);
|
|
61
|
+
}), u.value = new L(t.value, a));
|
|
61
62
|
else
|
|
62
63
|
i.value && clearInterval(i.value), u.value && u.value.closeSwitchTooltip();
|
|
63
|
-
t.value.on("click", (
|
|
64
|
-
e && n(e) && e.length > 0 && (r("chart-click",
|
|
65
|
-
}), t.value.on("dblclick", (
|
|
66
|
-
e && n(e) && e.length > 0 && (r("chart-dblclick",
|
|
67
|
-
}), t.value.on("mousedown", (
|
|
68
|
-
e && n(e) && e.length > 0 && (r("chart-mousedown",
|
|
69
|
-
}), t.value.on("mouseup", (
|
|
70
|
-
e && n(e) && e.length > 0 && (r("chart-mouseup",
|
|
71
|
-
}), t.value.on("mouseover", (
|
|
72
|
-
e && n(e) && e.length > 0 && (r("chart-mouseover",
|
|
73
|
-
}), t.value.on("mouseout", (
|
|
74
|
-
e && n(e) && e.length > 0 && (r("chart-mouseout",
|
|
75
|
-
}), t.value.on("contextmenu", (
|
|
76
|
-
e && n(e) && e.length > 0 && (r("chart-contextmenu",
|
|
64
|
+
t.value.on("click", (o) => {
|
|
65
|
+
e && n(e) && e.length > 0 && (r("chart-click", o), f.parseEvents(e, "chart-click", o));
|
|
66
|
+
}), t.value.on("dblclick", (o) => {
|
|
67
|
+
e && n(e) && e.length > 0 && (r("chart-dblclick", o), f.parseEvents(e, "chart-dblclick", o));
|
|
68
|
+
}), t.value.on("mousedown", (o) => {
|
|
69
|
+
e && n(e) && e.length > 0 && (r("chart-mousedown", o), f.parseEvents(e, "chart-mousedown", o));
|
|
70
|
+
}), t.value.on("mouseup", (o) => {
|
|
71
|
+
e && n(e) && e.length > 0 && (r("chart-mouseup", o), f.parseEvents(e, "chart-mouseup", o));
|
|
72
|
+
}), t.value.on("mouseover", (o) => {
|
|
73
|
+
e && n(e) && e.length > 0 && (r("chart-mouseover", o), f.parseEvents(e, "chart-mouseover", o));
|
|
74
|
+
}), t.value.on("mouseout", (o) => {
|
|
75
|
+
e && n(e) && e.length > 0 && (r("chart-mouseout", o), f.parseEvents(e, "chart-mouseout", o));
|
|
76
|
+
}), t.value.on("contextmenu", (o) => {
|
|
77
|
+
e && n(e) && e.length > 0 && (r("chart-contextmenu", o), f.parseEvents(e, "chart-contextmenu", o));
|
|
77
78
|
}), h.value = !1;
|
|
78
79
|
}
|
|
79
80
|
} catch {
|
|
@@ -83,19 +84,19 @@ const D = (l) => {
|
|
|
83
84
|
}
|
|
84
85
|
t.value = null;
|
|
85
86
|
}
|
|
86
|
-
},
|
|
87
|
-
h.value = !0, s =
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
}, g = M((s) => {
|
|
88
|
+
h.value = !0, s = y(s), z(s).then(() => {
|
|
89
|
+
B(s).then(() => {
|
|
90
|
+
d(s);
|
|
90
91
|
});
|
|
91
|
-
}).catch((
|
|
92
|
+
}).catch((w) => {
|
|
92
93
|
});
|
|
93
94
|
}, 100);
|
|
94
|
-
return
|
|
95
|
-
|
|
95
|
+
return b(() => {
|
|
96
|
+
g(l), D(document.getElementById(c), (s) => {
|
|
96
97
|
t.value && t.value.resize();
|
|
97
98
|
});
|
|
98
|
-
}),
|
|
99
|
+
}), k(() => {
|
|
99
100
|
u.value && u.value.closeSwitchTooltip(), i.value && clearInterval(i.value);
|
|
100
101
|
try {
|
|
101
102
|
t.value && t.value.dispose();
|
|
@@ -105,11 +106,11 @@ const D = (l) => {
|
|
|
105
106
|
id: c,
|
|
106
107
|
status: h,
|
|
107
108
|
chart: t,
|
|
108
|
-
setOption:
|
|
109
|
-
renderChart:
|
|
110
|
-
renderData:
|
|
109
|
+
setOption: S,
|
|
110
|
+
renderChart: g,
|
|
111
|
+
renderData: d
|
|
111
112
|
};
|
|
112
113
|
};
|
|
113
114
|
export {
|
|
114
|
-
|
|
115
|
+
_ as useChart
|
|
115
116
|
};
|
|
@@ -2,11 +2,11 @@ var x = Object.defineProperty;
|
|
|
2
2
|
var A = (h, t, a) => t in h ? x(h, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : h[t] = a;
|
|
3
3
|
var T = (h, t, a) => A(h, typeof t != "symbol" ? t + "" : t, a);
|
|
4
4
|
import { isArray as V, isString as K, cloneDeep as P } from "lodash";
|
|
5
|
-
import { parseStaticData as U } from "./
|
|
6
|
-
import { parseUrlData as j } from "./
|
|
7
|
-
import { parseVariableData as E } from "./
|
|
8
|
-
import { parseAPIPort as F } from "./
|
|
9
|
-
import { parseWebSocket as W } from "./
|
|
5
|
+
import { parseStaticData as U } from "./sources/static.mjs";
|
|
6
|
+
import { parseUrlData as j } from "./sources/url.mjs";
|
|
7
|
+
import { parseVariableData as E } from "./sources/variable.mjs";
|
|
8
|
+
import { parseAPIPort as F } from "./sources/api.mjs";
|
|
9
|
+
import { parseWebSocket as W } from "./sources/ws.mjs";
|
|
10
10
|
import { DataSourceUtils as g } from "./utils/utils.mjs";
|
|
11
11
|
const D = class D {
|
|
12
12
|
static addParser(t, a) {
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 数据源工具类
|
|
3
|
+
*/
|
|
4
|
+
export declare class DataSourceUtils {
|
|
5
|
+
/**
|
|
6
|
+
* 解析URL中是否包含全局变量
|
|
7
|
+
* @param url URL
|
|
8
|
+
* @param variableData 变量数据
|
|
9
|
+
* @returns 解析后的URL
|
|
10
|
+
*/
|
|
11
|
+
static replaceURLVariables(url: string, variableData: any[]): string;
|
|
12
|
+
/**
|
|
13
|
+
* 解析对象中是否包含全局变量
|
|
14
|
+
* @param obj 对象
|
|
15
|
+
* @param variableData 变量数据
|
|
16
|
+
* @returns 解析后的对象
|
|
17
|
+
*/
|
|
18
|
+
static replaceObjectVariables(obj: any, variableData: any[]): any;
|
|
19
|
+
/**
|
|
20
|
+
* 解析字符串中是否包含全局变量
|
|
21
|
+
* @param str 字符串
|
|
22
|
+
* @param variableData 变量数据
|
|
23
|
+
* @returns 解析后的字符串
|
|
24
|
+
*/
|
|
25
|
+
static replaceStringVariables(str: string, variableData: any[]): string;
|
|
26
|
+
/**
|
|
27
|
+
* 解析环境变量
|
|
28
|
+
* @param url URL
|
|
29
|
+
* @param environments 环境变量
|
|
30
|
+
* @returns 解析后的环境变量
|
|
31
|
+
*/
|
|
32
|
+
static replaceEnvVariables(url: string, environments: any[]): string;
|
|
33
|
+
/**
|
|
34
|
+
* 返回空数据
|
|
35
|
+
* @param id 数据源 ID
|
|
36
|
+
* @returns 空数据
|
|
37
|
+
*/
|
|
38
|
+
static noneData(id: string): {
|
|
39
|
+
id: string;
|
|
40
|
+
finalKeyData: any[];
|
|
41
|
+
finalUserData: {
|
|
42
|
+
id: string;
|
|
43
|
+
data: any[];
|
|
44
|
+
};
|
|
45
|
+
filteredData: any[];
|
|
46
|
+
rawData: any[];
|
|
47
|
+
noMappingData: any[];
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* 获取环境变量
|
|
51
|
+
* @returns 环境变量
|
|
52
|
+
*/
|
|
53
|
+
static getEnvironments(): any;
|
|
54
|
+
/**
|
|
55
|
+
* 设置环境变量
|
|
56
|
+
* @param environments 环境变量
|
|
57
|
+
*/
|
|
58
|
+
static setEnvironments(environments: any): void;
|
|
59
|
+
/**
|
|
60
|
+
* 获取变量数据
|
|
61
|
+
* @returns 变量数据
|
|
62
|
+
*/
|
|
63
|
+
static getVariableData(): any;
|
|
64
|
+
/**
|
|
65
|
+
* 设置变量数据
|
|
66
|
+
* @param variableData 变量数据
|
|
67
|
+
*/
|
|
68
|
+
static setVariableData(variableData: any): void;
|
|
69
|
+
/**
|
|
70
|
+
* 检查 WebSocket 是否已存在且有效
|
|
71
|
+
* @param wsInstances WebSocket 实例
|
|
72
|
+
* @param tId WebSocket 实例的 ID
|
|
73
|
+
* @param sourceId WebSocket 实例的源 ID
|
|
74
|
+
* @returns 是否有效
|
|
75
|
+
*/
|
|
76
|
+
static hasValidWebSocket(wsInstances: any, tId: string, sourceId: string): boolean;
|
|
77
|
+
/**
|
|
78
|
+
* 只在必要时清理 WebSocket 连接
|
|
79
|
+
* @param wsInstances WebSocket 实例
|
|
80
|
+
* @param sourceIds 源 ID
|
|
81
|
+
* @param tId WebSocket 实例的 ID
|
|
82
|
+
*/
|
|
83
|
+
static cleanupPreviousWebSockets(wsInstances: any, sourceIds: string[], tId: string): void;
|
|
84
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { isArray as l } from "lodash";
|
|
2
|
+
class g {
|
|
3
|
+
/**
|
|
4
|
+
* 解析URL中是否包含全局变量
|
|
5
|
+
* @param url URL
|
|
6
|
+
* @param variableData 变量数据
|
|
7
|
+
* @returns 解析后的URL
|
|
8
|
+
*/
|
|
9
|
+
static replaceURLVariables(e, n) {
|
|
10
|
+
try {
|
|
11
|
+
const r = e.match(/\${(.*?)}/g);
|
|
12
|
+
if (r)
|
|
13
|
+
for (let t = 0; t < r.length; t++) {
|
|
14
|
+
const a = n.filter((i) => i.name === r[t].substring(2, r[t].length - 1));
|
|
15
|
+
a && l(a) && a.length > 0 && (e = e.replaceAll(r[t], a[0]._value));
|
|
16
|
+
}
|
|
17
|
+
return e;
|
|
18
|
+
} catch {
|
|
19
|
+
return e;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* 解析对象中是否包含全局变量
|
|
24
|
+
* @param obj 对象
|
|
25
|
+
* @param variableData 变量数据
|
|
26
|
+
* @returns 解析后的对象
|
|
27
|
+
*/
|
|
28
|
+
static replaceObjectVariables(e, n) {
|
|
29
|
+
try {
|
|
30
|
+
let r = JSON.stringify(e);
|
|
31
|
+
const t = r.match(/\$g{(.*?)}/g);
|
|
32
|
+
if (t) {
|
|
33
|
+
for (let a = 0; a < t.length; a++) {
|
|
34
|
+
const i = n.filter((c) => c.name === t[a].substring(3, t[a].length - 1));
|
|
35
|
+
i && l(i) && i.length > 0 && (r = r.replaceAll(t[a], i[0]._value));
|
|
36
|
+
}
|
|
37
|
+
return JSON.parse(r);
|
|
38
|
+
}
|
|
39
|
+
return e;
|
|
40
|
+
} catch {
|
|
41
|
+
return e;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* 解析字符串中是否包含全局变量
|
|
46
|
+
* @param str 字符串
|
|
47
|
+
* @param variableData 变量数据
|
|
48
|
+
* @returns 解析后的字符串
|
|
49
|
+
*/
|
|
50
|
+
static replaceStringVariables(e, n) {
|
|
51
|
+
try {
|
|
52
|
+
const r = e.match(/\$g{(.*?)}/g);
|
|
53
|
+
if (r)
|
|
54
|
+
for (let t = 0; t < r.length; t++) {
|
|
55
|
+
const a = n.filter((i) => i.name === r[t].substring(3, r[t].length - 1));
|
|
56
|
+
a && l(a) && a.length > 0 && (e = e.replaceAll(r[t], a[0]._value));
|
|
57
|
+
}
|
|
58
|
+
return e;
|
|
59
|
+
} catch {
|
|
60
|
+
return e;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* 解析环境变量
|
|
65
|
+
* @param url URL
|
|
66
|
+
* @param environments 环境变量
|
|
67
|
+
* @returns 解析后的环境变量
|
|
68
|
+
*/
|
|
69
|
+
static replaceEnvVariables(e, n) {
|
|
70
|
+
try {
|
|
71
|
+
let r = "";
|
|
72
|
+
if (!e.includes("http") && n) {
|
|
73
|
+
const t = n.filter((a) => a.selected);
|
|
74
|
+
t && l(t) && t.length > 0 && (r = t[0].envBaseUrl || "");
|
|
75
|
+
}
|
|
76
|
+
return r;
|
|
77
|
+
} catch {
|
|
78
|
+
return "";
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* 返回空数据
|
|
83
|
+
* @param id 数据源 ID
|
|
84
|
+
* @returns 空数据
|
|
85
|
+
*/
|
|
86
|
+
static noneData(e) {
|
|
87
|
+
return {
|
|
88
|
+
id: e,
|
|
89
|
+
finalKeyData: [],
|
|
90
|
+
finalUserData: { id: e, data: [] },
|
|
91
|
+
filteredData: [],
|
|
92
|
+
rawData: [],
|
|
93
|
+
noMappingData: []
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* 获取环境变量
|
|
98
|
+
* @returns 环境变量
|
|
99
|
+
*/
|
|
100
|
+
static getEnvironments() {
|
|
101
|
+
let e = localStorage.getItem("currentApiEnvironments");
|
|
102
|
+
return e && (e = JSON.parse(e)), e;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* 设置环境变量
|
|
106
|
+
* @param environments 环境变量
|
|
107
|
+
*/
|
|
108
|
+
static setEnvironments(e) {
|
|
109
|
+
localStorage.setItem("currentApiEnvironments", JSON.stringify(e));
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* 获取变量数据
|
|
113
|
+
* @returns 变量数据
|
|
114
|
+
*/
|
|
115
|
+
static getVariableData() {
|
|
116
|
+
let e = localStorage.getItem("currentVariableData");
|
|
117
|
+
return e && (e = JSON.parse(e)), e;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* 设置变量数据
|
|
121
|
+
* @param variableData 变量数据
|
|
122
|
+
*/
|
|
123
|
+
static setVariableData(e) {
|
|
124
|
+
localStorage.setItem("currentVariableData", JSON.stringify(e));
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* 检查 WebSocket 是否已存在且有效
|
|
128
|
+
* @param wsInstances WebSocket 实例
|
|
129
|
+
* @param tId WebSocket 实例的 ID
|
|
130
|
+
* @param sourceId WebSocket 实例的源 ID
|
|
131
|
+
* @returns 是否有效
|
|
132
|
+
*/
|
|
133
|
+
static hasValidWebSocket(e, n, r) {
|
|
134
|
+
const t = e.get(n);
|
|
135
|
+
if (!t) return !1;
|
|
136
|
+
for (const a of t)
|
|
137
|
+
if (a.getId() === r && a.isConnected())
|
|
138
|
+
return !0;
|
|
139
|
+
return !1;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* 只在必要时清理 WebSocket 连接
|
|
143
|
+
* @param wsInstances WebSocket 实例
|
|
144
|
+
* @param sourceIds 源 ID
|
|
145
|
+
* @param tId WebSocket 实例的 ID
|
|
146
|
+
*/
|
|
147
|
+
static cleanupPreviousWebSockets(e, n, r) {
|
|
148
|
+
const t = e.get(r);
|
|
149
|
+
t && (t.forEach((a) => {
|
|
150
|
+
n.includes(a.getId()) || (a.disconnect(), t.delete(a));
|
|
151
|
+
}), t.size === 0 && e.delete(r));
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
export {
|
|
155
|
+
g as DataSourceUtils
|
|
156
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { useFullscreen as s } from "@vueuse/core";
|
|
2
|
+
const { enter: n, exit: o, toggle: c } = s(), i = (e, l) => {
|
|
3
|
+
const { fullscreenAction: t } = e;
|
|
4
|
+
t && t.status && (t.status === "fullscreen" && n(), t.status === "window" && o(), t.status === "toggle" && c());
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
i as executeFullScreenAction
|
|
8
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const a = (i, s) => {
|
|
2
|
+
var n;
|
|
3
|
+
const { moveAction: t } = i;
|
|
4
|
+
(n = t.layerIds) != null && n.length && t.layerIds.forEach((r) => {
|
|
5
|
+
const e = document.getElementById(r);
|
|
6
|
+
e._transitionTimer && clearTimeout(e._transitionTimer), e.style.transform = `matrix(1, 0, 0, 1, ${t.x}, ${t.y}) `, e.style.transition = `transform ${t.duration}ms ${t.speed} ${t.delay}ms`;
|
|
7
|
+
const o = t.duration + t.delay;
|
|
8
|
+
e._transitionTimer = setTimeout(() => {
|
|
9
|
+
e.style.transition = "";
|
|
10
|
+
}, o);
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
a as executeMoveAction
|
|
15
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DataSourceUtils as o } from "../../datasource/utils/utils.mjs";
|
|
2
|
+
import { EventUtils as l } from "../utils/utils.mjs";
|
|
3
|
+
const u = (n, p) => {
|
|
4
|
+
const { pageAction: t } = n;
|
|
5
|
+
if (!t.target)
|
|
6
|
+
return;
|
|
7
|
+
const i = o.getVariableData(), a = o.replaceStringVariables(t.parameter, i), r = a ? l.urlParamToJson(a) : null, e = new URL(t.target, window.location.origin);
|
|
8
|
+
r && Object.entries(r).forEach(([c, s]) => {
|
|
9
|
+
e.searchParams.append(c, s);
|
|
10
|
+
}), window.location.href = e.toString();
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
u as executePageAction
|
|
14
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const d = (o, m) => {
|
|
2
|
+
var r;
|
|
3
|
+
const { rotateAction: t } = o;
|
|
4
|
+
(r = t.layerIds) != null && r.length && t.layerIds.forEach((i) => {
|
|
5
|
+
const s = document.getElementById(i), e = s.children[0];
|
|
6
|
+
e._transitionTimer && clearTimeout(e._transitionTimer);
|
|
7
|
+
const n = e.style.transform.split(" "), a = n[0] || "", c = n[1] || "";
|
|
8
|
+
if (e.style.transform = `${a} ${c} rotateX(${t.x}deg) rotateY(${t.y}deg) rotateZ(${t.z}deg)`, (t.x > 0 || t.y > 0 || t.z > 0) && (s.style.perspective = t.perspective + "px"), t.speed !== "") {
|
|
9
|
+
e.style.transition = `transform ${t.duration}ms ${t.speed} ${t.delay}ms`;
|
|
10
|
+
const l = t.duration + t.delay;
|
|
11
|
+
e._transitionTimer = setTimeout(() => {
|
|
12
|
+
e.style.transition = "";
|
|
13
|
+
}, l);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
d as executeRotateAction
|
|
19
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const y = (i, c) => {
|
|
2
|
+
var a;
|
|
3
|
+
const { scaleAction: t } = i;
|
|
4
|
+
(a = t.layerIds) != null && a.length && t.layerIds.forEach((l) => {
|
|
5
|
+
const e = document.getElementById(l).children[0], s = e.style.transform.split(" ");
|
|
6
|
+
if (e._transitionTimer && clearTimeout(e._transitionTimer), s.length >= 5) {
|
|
7
|
+
const r = s[2] || "", n = s[3] || "", o = s[4] || "";
|
|
8
|
+
e.style.transform = `scaleX(${t.x / 100}) scaleY(${t.y / 100}) ${r} ${n} ${o}`;
|
|
9
|
+
} else {
|
|
10
|
+
const r = s[0] || "", n = s[1] || "", o = s[2] || "";
|
|
11
|
+
e.style.transform = `scaleX(${t.x / 100}) scaleY(${t.y / 100}) ${r} ${n} ${o}`;
|
|
12
|
+
}
|
|
13
|
+
if (e.style.transformOrigin = t.origin, t.speed !== "") {
|
|
14
|
+
e.style.transition = `transform ${t.duration}ms ${t.speed} ${t.delay}ms`;
|
|
15
|
+
const r = t.duration + t.delay;
|
|
16
|
+
e._transitionTimer = setTimeout(() => {
|
|
17
|
+
e.style.transition = "";
|
|
18
|
+
}, r);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
y as executeScaleAction
|
|
24
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SHJDatasourceV2 as s } from "../../datasource/index.mjs";
|
|
2
|
+
const o = (a, t) => {
|
|
3
|
+
const { sendAPIAction: e } = a;
|
|
4
|
+
e.useDataSource && s.parse({
|
|
5
|
+
sources: [e.useDataSource],
|
|
6
|
+
callback: () => {
|
|
7
|
+
},
|
|
8
|
+
isStore: !1,
|
|
9
|
+
noUseMapping: !0,
|
|
10
|
+
tId: "",
|
|
11
|
+
isInterval: !1
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
o as executeSendApiAction
|
|
16
|
+
};
|