@shjjs/visual-ui 1.0.13 → 1.0.15
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/datasource/core/api.d.ts +1 -0
- package/es/commons/core/datasource/core/api.mjs +32 -0
- package/es/commons/core/datasource/core/static.d.ts +1 -0
- package/es/commons/core/datasource/core/static.mjs +16 -0
- package/es/commons/core/datasource/core/url.d.ts +1 -0
- package/es/commons/core/datasource/core/url.mjs +17 -0
- package/es/commons/core/datasource/core/variable.d.ts +1 -0
- package/es/commons/core/datasource/core/variable.mjs +17 -0
- package/es/commons/core/datasource/core/ws.d.ts +32 -0
- package/es/commons/core/datasource/core/ws.mjs +138 -0
- package/es/commons/core/datasource/index.d.ts +63 -0
- package/es/commons/core/datasource/index.mjs +191 -0
- package/es/commons/core/datasource/utils/request.d.ts +3 -0
- package/es/commons/core/datasource/utils/request.mjs +7 -0
- package/es/commons/core/datasource/utils/utils.d.ts +50 -0
- package/es/commons/core/datasource/utils/utils.mjs +123 -0
- package/es/commons/core/datasource/utils/wsManager.d.ts +16 -0
- package/es/commons/core/datasource/utils/wsManager.mjs +78 -0
- package/es/commons/core/earth/base64/Aperture.d.ts +1 -0
- package/es/commons/core/earth/base64/Aperture.mjs +4 -0
- package/es/commons/core/earth/base64/Callout.d.ts +1 -0
- package/es/commons/core/earth/base64/Callout.mjs +4 -0
- package/es/commons/core/earth/base64/CalloutAperture.d.ts +1 -0
- package/es/commons/core/earth/base64/CalloutAperture.mjs +4 -0
- package/es/commons/core/earth/base64/CloudCover.d.ts +1 -0
- package/es/commons/core/earth/base64/CloudCover.mjs +4 -0
- package/es/commons/core/earth/base64/LightColumn.d.ts +1 -0
- package/es/commons/core/earth/base64/LightColumn.mjs +4 -0
- package/es/commons/core/earth/base64/StarrySky.d.ts +1 -0
- package/es/commons/core/earth/base64/StarrySky.mjs +4 -0
- package/es/commons/core/earth/base64/rotation/innner.d.ts +1 -0
- package/es/commons/core/earth/base64/rotation/innner.mjs +4 -0
- package/es/commons/core/earth/base64/rotation/out.d.ts +1 -0
- package/es/commons/core/earth/base64/rotation/out.mjs +4 -0
- package/es/commons/core/earth/border.vue.d.ts +70 -0
- package/es/commons/core/earth/border.vue.mjs +19 -0
- package/es/commons/core/earth/border.vue2.mjs +4 -0
- package/es/commons/core/earth/geojson/china-border.d.ts +22 -0
- package/es/commons/core/earth/geojson/china-border.mjs +29305 -0
- package/es/commons/core/earth/geojson/china.d.ts +84 -0
- package/es/commons/core/earth/geojson/china.mjs +103022 -0
- package/es/commons/core/earth/geojson/world.d.ts +25 -0
- package/es/commons/core/earth/geojson/world.mjs +43220 -0
- package/es/commons/core/earth/interface.d.ts +190 -0
- package/es/commons/core/earth/main.d.ts +94 -0
- package/es/commons/core/earth/main.mjs +504 -0
- package/es/commons/core/earth/main.vue.d.ts +834 -0
- package/es/commons/core/earth/main.vue.mjs +7 -0
- package/es/commons/core/earth/main.vue2.mjs +290 -0
- package/es/commons/core/earth/types.d.ts +108 -0
- package/es/commons/core/earth/utils/GradientLine.d.ts +17 -0
- package/es/commons/core/earth/utils/GradientLine.mjs +78 -0
- package/es/commons/core/earth/utils/composer.d.ts +38 -0
- package/es/commons/core/earth/utils/composer.mjs +40 -0
- package/es/commons/core/earth/utils/controls/obt.d.ts +9 -0
- package/es/commons/core/earth/utils/controls/obt.mjs +19 -0
- package/es/commons/core/earth/utils/interface.d.ts +134 -0
- package/es/commons/core/earth/utils/label.d.ts +4 -0
- package/es/commons/core/earth/utils/label.mjs +15 -0
- package/es/commons/core/earth/utils/line2.d.ts +3 -0
- package/es/commons/core/earth/utils/line2.mjs +21 -0
- package/es/commons/core/earth/utils/scene.d.ts +28 -0
- package/es/commons/core/earth/utils/scene.mjs +120 -0
- package/es/commons/core/useChart.d.ts +15 -0
- package/es/commons/core/useChart.mjs +115 -0
- package/es/commons/utils/babylon/ColorConvert.d.ts +3 -0
- package/es/commons/utils/babylon/ColorConvert.mjs +21 -0
- package/es/commons/utils/clickOutSide.d.ts +5 -0
- package/es/commons/utils/clickOutSide.mjs +13 -0
- package/es/commons/utils/cloneSeries.d.ts +7 -0
- package/es/commons/utils/cloneSeries.mjs +12 -0
- package/es/commons/utils/hoverLoop.d.ts +10 -0
- package/es/commons/utils/hoverLoop.mjs +43 -0
- package/es/commons/utils/imgPreloader.d.ts +1 -0
- package/es/commons/utils/imgPreloader.mjs +16 -0
- package/es/commons/utils/install.d.ts +2 -0
- package/es/commons/utils/install.mjs +7 -0
- package/es/commons/utils/json2css.d.ts +3 -0
- package/es/commons/utils/json2css.mjs +31 -0
- package/es/commons/utils/parseDataset.d.ts +4 -0
- package/es/commons/utils/parseDataset.mjs +19 -0
- package/es/commons/utils/parseOtherData.d.ts +1 -0
- package/es/commons/utils/parseOtherData.mjs +10 -0
- package/es/commons/utils/parseScatterData.d.ts +3 -0
- package/es/commons/utils/parseScatterData.mjs +14 -0
- package/es/commons/utils/shj/component-refs.d.ts +6 -0
- package/es/commons/utils/shj/component-refs.mjs +10 -0
- package/es/commons/utils/typescript.d.ts +5 -0
- package/es/components/chart-bar-animation/index.d.ts +1 -1
- package/es/components/chart-bar-animation/index.mjs +1 -1
- package/es/components/chart-bar-animation/index.vue.mjs +21 -20
- package/es/components/chart-bar-basic/index.d.ts +1 -1
- package/es/components/chart-bar-basic/index.mjs +1 -1
- package/es/components/chart-bar-basic/index.vue.mjs +21 -20
- package/es/components/chart-bar-contrast/index.d.ts +1 -1
- package/es/components/chart-bar-contrast/index.mjs +1 -1
- package/es/components/chart-bar-contrast/index.vue.mjs +34 -33
- package/es/components/chart-bar-contrast2/index.d.ts +1 -1
- package/es/components/chart-bar-contrast2/index.mjs +1 -1
- package/es/components/chart-bar-contrast2/index.vue.mjs +20 -19
- package/es/components/chart-bar-contrast3/index.d.ts +1 -1
- package/es/components/chart-bar-contrast3/index.mjs +1 -1
- package/es/components/chart-bar-contrast3/index.vue.mjs +19 -18
- package/es/components/chart-bar-gradient-column-chart/index.d.ts +1 -1
- package/es/components/chart-bar-gradient-column-chart/index.mjs +1 -1
- package/es/components/chart-bar-gradient-column-chart/index.vue.mjs +21 -20
- package/es/components/chart-bar-horizontal/index.d.ts +1 -1
- package/es/components/chart-bar-horizontal/index.mjs +1 -1
- package/es/components/chart-bar-horizontal/index.vue.mjs +21 -20
- package/es/components/chart-bar-horizontal-stack/index.d.ts +1 -1
- package/es/components/chart-bar-horizontal-stack/index.mjs +1 -1
- package/es/components/chart-bar-horizontal-stack/index.vue.mjs +21 -20
- package/es/components/chart-bar-line-bar/index.d.ts +1 -1
- package/es/components/chart-bar-line-bar/index.mjs +1 -1
- package/es/components/chart-bar-line-bar/index.vue.mjs +26 -25
- package/es/components/chart-bar-line-bar2/index.d.ts +1 -1
- package/es/components/chart-bar-line-bar2/index.mjs +1 -1
- package/es/components/chart-bar-line-bar2/index.vue.mjs +26 -25
- package/es/components/chart-bar-loop/index.d.ts +1 -1
- package/es/components/chart-bar-loop/index.mjs +1 -1
- package/es/components/chart-bar-loop/index.vue.mjs +14 -13
- package/es/components/chart-bar-mini/index.d.ts +1 -1
- package/es/components/chart-bar-mini/index.mjs +1 -1
- package/es/components/chart-bar-mini/index.vue.mjs +23 -22
- package/es/components/chart-bar-polar/index.d.ts +1 -1
- package/es/components/chart-bar-polar/index.mjs +1 -1
- package/es/components/chart-bar-polar/index.vue.mjs +20 -19
- package/es/components/chart-bar-polar-stack/index.d.ts +1 -1
- package/es/components/chart-bar-polar-stack/index.mjs +1 -1
- package/es/components/chart-bar-polar-stack/index.vue.mjs +20 -19
- package/es/components/chart-bar-polar2/index.d.ts +1 -1
- package/es/components/chart-bar-polar2/index.mjs +1 -1
- package/es/components/chart-bar-polar2/index.vue.mjs +20 -19
- package/es/components/chart-bar-radius-circle/index.d.ts +1 -1
- package/es/components/chart-bar-radius-circle/index.mjs +1 -1
- package/es/components/chart-bar-radius-circle/index.vue.mjs +20 -19
- package/es/components/chart-bar-rank/index.d.ts +1 -1
- package/es/components/chart-bar-rank/index.mjs +1 -1
- package/es/components/chart-bar-rank/index.vue.mjs +19 -18
- package/es/components/chart-bar-segmented-progress/index.d.ts +1 -1
- package/es/components/chart-bar-segmented-progress/index.mjs +1 -1
- package/es/components/chart-bar-segmented-progress/index.vue.mjs +19 -18
- package/es/components/chart-bar-spire/index.d.ts +1 -1
- package/es/components/chart-bar-spire/index.mjs +1 -1
- package/es/components/chart-bar-spire/index.vue.mjs +22 -21
- package/es/components/chart-bar-stack/index.d.ts +1 -1
- package/es/components/chart-bar-stack/index.mjs +1 -1
- package/es/components/chart-bar-stack/index.vue.mjs +21 -20
- package/es/components/chart-bar-stack-line/index.d.ts +1 -1
- package/es/components/chart-bar-stack-line/index.mjs +1 -1
- package/es/components/chart-bar-stack-line/index.vue.mjs +20 -19
- package/es/components/chart-bar-stack2/index.d.ts +1 -1
- package/es/components/chart-bar-stack2/index.mjs +1 -1
- package/es/components/chart-bar-stack2/index.vue.mjs +20 -19
- package/es/components/chart-bar-stack3/index.d.ts +1 -1
- package/es/components/chart-bar-stack3/index.mjs +1 -1
- package/es/components/chart-bar-stack3/index.vue.mjs +20 -19
- package/es/components/chart-bar-staggered/index.d.ts +1 -1
- package/es/components/chart-bar-staggered/index.mjs +1 -1
- package/es/components/chart-bar-staggered/index.vue.mjs +20 -19
- package/es/components/chart-bar-three/index.d.ts +1 -1
- package/es/components/chart-bar-three/index.mjs +1 -1
- package/es/components/chart-bar-three/index.vue.mjs +18 -17
- package/es/components/chart-bar-waterfall/index.d.ts +1 -1
- package/es/components/chart-bar-waterfall/index.mjs +1 -1
- package/es/components/chart-bar-waterfall/index.vue.mjs +18 -17
- package/es/components/chart-bar-zebra/index.d.ts +1 -1
- package/es/components/chart-bar-zebra/index.mjs +1 -1
- package/es/components/chart-bar-zebra/index.vue.mjs +20 -19
- package/es/components/chart-line-area-gradient/index.d.ts +1 -1
- package/es/components/chart-line-area-gradient/index.mjs +1 -1
- package/es/components/chart-line-area-gradient/index.vue.mjs +18 -17
- package/es/components/chart-line-area-highlight/index.d.ts +1 -1
- package/es/components/chart-line-area-highlight/index.mjs +1 -1
- package/es/components/chart-line-area-highlight/index.vue.mjs +19 -18
- package/es/components/chart-line-area-highlight2/index.d.ts +1 -1
- package/es/components/chart-line-area-highlight2/index.mjs +1 -1
- package/es/components/chart-line-area-highlight2/index.vue.mjs +19 -18
- package/es/components/chart-line-basic/index.d.ts +1 -1
- package/es/components/chart-line-basic/index.mjs +1 -1
- package/es/components/chart-line-basic/index.vue.mjs +18 -17
- package/es/components/chart-line-bump/index.d.ts +1 -1
- package/es/components/chart-line-bump/index.mjs +1 -1
- package/es/components/chart-line-bump/index.vue.mjs +17 -16
- package/es/components/chart-line-dashed/index.d.ts +1 -1
- package/es/components/chart-line-dashed/index.mjs +1 -1
- package/es/components/chart-line-dashed/index.vue.mjs +20 -19
- package/es/components/chart-line-ladder/index.d.ts +1 -1
- package/es/components/chart-line-ladder/index.mjs +1 -1
- package/es/components/chart-line-ladder/index.vue.mjs +18 -17
- package/es/components/chart-line-logarithm/index.d.ts +1 -1
- package/es/components/chart-line-logarithm/index.mjs +1 -1
- package/es/components/chart-line-logarithm/index.vue.mjs +18 -17
- package/es/components/chart-line-multix/index.d.ts +1 -1
- package/es/components/chart-line-multix/index.mjs +1 -1
- package/es/components/chart-line-multix/index.vue.mjs +18 -17
- package/es/components/chart-line-polar-double/index.d.ts +1 -1
- package/es/components/chart-line-polar-double/index.mjs +1 -1
- package/es/components/chart-line-polar-double/index.vue.mjs +14 -13
- package/es/components/chart-line-rain-flow/index.d.ts +1 -1
- package/es/components/chart-line-rain-flow/index.mjs +1 -1
- package/es/components/chart-line-rain-flow/index.vue.mjs +20 -19
- package/es/components/chart-line-scale/index.d.ts +1 -1
- package/es/components/chart-line-scale/index.mjs +1 -1
- package/es/components/chart-line-scale/index.vue.mjs +18 -17
- package/es/components/chart-line-smooth/index.d.ts +1 -1
- package/es/components/chart-line-smooth/index.mjs +1 -1
- package/es/components/chart-line-smooth/index.vue.mjs +21 -20
- package/es/components/chart-line-smooth-area/index.d.ts +1 -1
- package/es/components/chart-line-smooth-area/index.mjs +1 -1
- package/es/components/chart-line-smooth-area/index.vue.mjs +21 -20
- package/es/components/chart-line-stack/index.d.ts +1 -1
- package/es/components/chart-line-stack/index.mjs +1 -1
- package/es/components/chart-line-stack/index.vue.mjs +18 -17
- package/es/components/chart-line-stack-area/index.d.ts +1 -1
- package/es/components/chart-line-stack-area/index.mjs +1 -1
- package/es/components/chart-line-stack-area/index.vue.mjs +18 -17
- package/es/components/chart-line-temp/index.d.ts +1 -1
- package/es/components/chart-line-temp/index.mjs +1 -1
- package/es/components/chart-line-temp/index.vue.mjs +17 -16
- package/es/components/chart-line-vertical/index.d.ts +1 -1
- package/es/components/chart-line-vertical/index.mjs +1 -1
- package/es/components/chart-line-vertical/index.vue.mjs +18 -17
- package/es/components/chart-map-basic/index.d.ts +1 -1
- package/es/components/chart-map-basic/index.mjs +1 -1
- package/es/components/chart-map-basic/index.vue.mjs +18 -17
- package/es/components/chart-map-bmap-basic/index.d.ts +1 -1
- package/es/components/chart-map-bmap-basic/index.mjs +1 -1
- package/es/components/chart-map-bmap-basic/index.vue.mjs +24 -23
- package/es/components/chart-map-bmap-heatmap/index.d.ts +1 -1
- package/es/components/chart-map-bmap-heatmap/index.mjs +1 -1
- package/es/components/chart-map-bmap-heatmap/index.vue.mjs +24 -23
- package/es/components/chart-map-bmap-rich/index.d.ts +1 -1
- package/es/components/chart-map-bmap-rich/index.mjs +1 -1
- package/es/components/chart-map-bmap-rich/index.vue.mjs +24 -23
- package/es/components/chart-map-customize/index.d.ts +1 -1
- package/es/components/chart-map-customize/index.mjs +1 -1
- package/es/components/chart-map-customize/index.vue.mjs +25 -24
- package/es/components/chart-map-lines/index.d.ts +1 -1
- package/es/components/chart-map-lines/index.mjs +1 -1
- package/es/components/chart-map-lines/index.vue.mjs +23 -22
- package/es/components/chart-map-scatter/index.d.ts +1 -1
- package/es/components/chart-map-scatter/index.mjs +1 -1
- package/es/components/chart-map-scatter/index.vue.mjs +25 -24
- package/es/components/chart-other-candlestick-basic/index.d.ts +1 -1
- package/es/components/chart-other-candlestick-basic/index.mjs +1 -1
- package/es/components/chart-other-candlestick-basic/index.vue.mjs +20 -19
- package/es/components/chart-other-candlestick-demo/index.d.ts +1 -1
- package/es/components/chart-other-candlestick-demo/index.mjs +1 -1
- package/es/components/chart-other-candlestick-demo/index.vue.mjs +31 -30
- package/es/components/chart-other-candlestick-shanghai/index.d.ts +1 -1
- package/es/components/chart-other-candlestick-shanghai/index.mjs +1 -1
- package/es/components/chart-other-candlestick-shanghai/index.vue.mjs +17 -16
- package/es/components/chart-other-circular-graph/index.d.ts +1 -1
- package/es/components/chart-other-circular-graph/index.mjs +1 -1
- package/es/components/chart-other-circular-graph/index.vue.mjs +13 -12
- package/es/components/chart-other-force/index.d.ts +1 -1
- package/es/components/chart-other-force/index.mjs +1 -1
- package/es/components/chart-other-force/index.vue.mjs +27 -26
- package/es/components/chart-other-force2/index.d.ts +1 -1
- package/es/components/chart-other-force2/index.mjs +1 -1
- package/es/components/chart-other-force2/index.vue.mjs +27 -26
- package/es/components/chart-other-funnel/index.d.ts +1 -1
- package/es/components/chart-other-funnel/index.mjs +1 -1
- package/es/components/chart-other-funnel/index.vue.mjs +25 -24
- package/es/components/chart-other-funnel-contrast/index.d.ts +1 -1
- package/es/components/chart-other-funnel-contrast/index.mjs +1 -1
- package/es/components/chart-other-funnel-contrast/index.vue.mjs +25 -24
- package/es/components/chart-other-funnel-split/index.d.ts +1 -1
- package/es/components/chart-other-funnel-split/index.mjs +1 -1
- package/es/components/chart-other-funnel-split/index.vue.mjs +25 -24
- package/es/components/chart-other-funnel2/index.d.ts +1 -1
- package/es/components/chart-other-funnel2/index.mjs +1 -1
- package/es/components/chart-other-funnel2/index.vue.mjs +25 -24
- package/es/components/chart-other-gauge/index.d.ts +1 -1
- package/es/components/chart-other-gauge/index.mjs +1 -1
- package/es/components/chart-other-gauge/index.vue.mjs +23 -22
- package/es/components/chart-other-gauge-grade/index.d.ts +1 -1
- package/es/components/chart-other-gauge-grade/index.mjs +1 -1
- package/es/components/chart-other-gauge-grade/index.vue.mjs +24 -23
- package/es/components/chart-other-gauge-stage/index.d.ts +1 -1
- package/es/components/chart-other-gauge-stage/index.mjs +1 -1
- package/es/components/chart-other-gauge-stage/index.vue.mjs +24 -23
- package/es/components/chart-other-graph-basic/index.d.ts +1 -1
- package/es/components/chart-other-graph-basic/index.mjs +1 -1
- package/es/components/chart-other-graph-basic/index.vue.mjs +13 -12
- package/es/components/chart-other-graph-basic2/index.d.ts +1 -1
- package/es/components/chart-other-graph-basic2/index.mjs +1 -1
- package/es/components/chart-other-graph-basic2/index.vue.mjs +13 -12
- package/es/components/chart-other-graph-calendar/index.d.ts +1 -1
- package/es/components/chart-other-graph-calendar/index.mjs +1 -1
- package/es/components/chart-other-graph-calendar/index.vue.mjs +13 -12
- package/es/components/chart-other-grid-percentage/index.d.ts +1 -1
- package/es/components/chart-other-grid-percentage/index.mjs +1 -1
- package/es/components/chart-other-grid-percentage/index.vue.mjs +11 -10
- package/es/components/chart-other-heatmap/index.d.ts +1 -1
- package/es/components/chart-other-heatmap/index.mjs +1 -1
- package/es/components/chart-other-heatmap/index.vue.mjs +27 -26
- package/es/components/chart-other-label-gauge/index.d.ts +1 -1
- package/es/components/chart-other-label-gauge/index.mjs +1 -1
- package/es/components/chart-other-label-gauge/index.vue.mjs +11 -10
- package/es/components/chart-other-liquidfill/index.d.ts +1 -1
- package/es/components/chart-other-liquidfill/index.mjs +1 -1
- package/es/components/chart-other-liquidfill/index.vue.mjs +11 -10
- package/es/components/chart-other-parallel-basic/index.d.ts +1 -1
- package/es/components/chart-other-parallel-basic/index.mjs +1 -1
- package/es/components/chart-other-parallel-basic/index.vue.mjs +13 -12
- package/es/components/chart-other-parallel-mul/index.d.ts +1 -1
- package/es/components/chart-other-parallel-mul/index.mjs +1 -1
- package/es/components/chart-other-parallel-mul/index.vue.mjs +18 -17
- package/es/components/chart-other-radar/index.d.ts +1 -1
- package/es/components/chart-other-radar/index.mjs +1 -1
- package/es/components/chart-other-radar/index.vue.mjs +30 -29
- package/es/components/chart-other-radar-stack/index.d.ts +1 -1
- package/es/components/chart-other-radar-stack/index.mjs +1 -1
- package/es/components/chart-other-radar-stack/index.vue.mjs +21 -20
- package/es/components/chart-other-sunburst-basic/index.d.ts +1 -1
- package/es/components/chart-other-sunburst-basic/index.mjs +1 -1
- package/es/components/chart-other-sunburst-basic/index.vue.mjs +20 -19
- package/es/components/chart-other-sunburst-basic2/index.d.ts +1 -1
- package/es/components/chart-other-sunburst-basic2/index.mjs +1 -1
- package/es/components/chart-other-sunburst-basic2/index.vue.mjs +20 -19
- package/es/components/chart-other-sunburst-basic3/index.d.ts +1 -1
- package/es/components/chart-other-sunburst-basic3/index.mjs +1 -1
- package/es/components/chart-other-sunburst-basic3/index.vue.mjs +20 -19
- package/es/components/chart-other-sunburst-basic4/index.d.ts +1 -1
- package/es/components/chart-other-sunburst-basic4/index.mjs +1 -1
- package/es/components/chart-other-sunburst-basic4/index.vue.mjs +20 -19
- package/es/components/chart-other-sunburst-book/index.d.ts +1 -1
- package/es/components/chart-other-sunburst-book/index.mjs +1 -1
- package/es/components/chart-other-sunburst-book/index.vue.mjs +17 -16
- package/es/components/chart-other-sunburst-flavors/index.d.ts +1 -1
- package/es/components/chart-other-sunburst-flavors/index.mjs +1 -1
- package/es/components/chart-other-sunburst-flavors/index.vue.mjs +13 -12
- package/es/components/chart-other-sunburst-radius/index.d.ts +1 -1
- package/es/components/chart-other-sunburst-radius/index.mjs +1 -1
- package/es/components/chart-other-sunburst-radius/index.vue.mjs +27 -26
- package/es/components/chart-other-theme-river/index.d.ts +1 -1
- package/es/components/chart-other-theme-river/index.mjs +1 -1
- package/es/components/chart-other-theme-river/index.vue.mjs +23 -22
- package/es/components/chart-other-tree/index.d.ts +1 -1
- package/es/components/chart-other-tree/index.mjs +1 -1
- package/es/components/chart-other-tree/index.vue.mjs +16 -15
- package/es/components/chart-other-tree-line/index.d.ts +1 -1
- package/es/components/chart-other-tree-line/index.mjs +1 -1
- package/es/components/chart-other-tree-line/index.vue.mjs +15 -14
- package/es/components/chart-other-treemap/index.d.ts +1 -1
- package/es/components/chart-other-treemap/index.mjs +1 -1
- package/es/components/chart-other-treemap/index.vue.mjs +16 -15
- package/es/components/chart-other-treemap-basic/index.d.ts +1 -1
- package/es/components/chart-other-treemap-basic/index.mjs +1 -1
- package/es/components/chart-other-treemap-basic/index.vue.mjs +19 -18
- package/es/components/chart-other-word-cloud/index.d.ts +1 -1
- package/es/components/chart-other-word-cloud/index.mjs +1 -1
- package/es/components/chart-other-word-cloud/index.vue.mjs +15 -14
- package/es/components/chart-pie-3d/index.d.ts +1 -1
- package/es/components/chart-pie-3d/index.mjs +1 -1
- package/es/components/chart-pie-3d/index.vue.mjs +21 -20
- package/es/components/chart-pie-basic/index.d.ts +1 -1
- package/es/components/chart-pie-basic/index.mjs +1 -1
- package/es/components/chart-pie-basic/index.vue.mjs +17 -16
- package/es/components/chart-pie-basic2/index.d.ts +1 -1
- package/es/components/chart-pie-basic2/index.mjs +1 -1
- package/es/components/chart-pie-basic2/index.vue.mjs +17 -16
- package/es/components/chart-pie-customized/index.d.ts +1 -1
- package/es/components/chart-pie-customized/index.mjs +1 -1
- package/es/components/chart-pie-customized/index.vue.mjs +19 -18
- package/es/components/chart-pie-index/index.d.ts +1 -1
- package/es/components/chart-pie-index/index.mjs +1 -1
- package/es/components/chart-pie-index/index.vue.mjs +26 -25
- package/es/components/chart-pie-interval/index.d.ts +1 -1
- package/es/components/chart-pie-interval/index.mjs +1 -1
- package/es/components/chart-pie-interval/index.vue.mjs +23 -22
- package/es/components/chart-pie-legend-scroll/index.d.ts +1 -1
- package/es/components/chart-pie-legend-scroll/index.mjs +1 -1
- package/es/components/chart-pie-legend-scroll/index.vue.mjs +17 -16
- package/es/components/chart-pie-radius/index.d.ts +1 -1
- package/es/components/chart-pie-radius/index.mjs +1 -1
- package/es/components/chart-pie-radius/index.vue.mjs +17 -16
- package/es/components/chart-pie-rose/index.d.ts +1 -1
- package/es/components/chart-pie-rose/index.mjs +1 -1
- package/es/components/chart-pie-rose/index.vue.mjs +20 -19
- package/es/components/chart-pie-round/index.d.ts +1 -1
- package/es/components/chart-pie-round/index.mjs +1 -1
- package/es/components/chart-pie-round/index.vue.mjs +17 -16
- package/es/components/chart-pie-semicircle/index.d.ts +1 -1
- package/es/components/chart-pie-semicircle/index.mjs +1 -1
- package/es/components/chart-pie-semicircle/index.vue.mjs +20 -19
- package/es/components/chart-pie-sunburst/index.d.ts +1 -1
- package/es/components/chart-pie-sunburst/index.mjs +1 -1
- package/es/components/chart-pie-sunburst/index.vue.mjs +17 -16
- package/es/components/chart-scatter-basic/index.d.ts +1 -1
- package/es/components/chart-scatter-basic/index.mjs +1 -1
- package/es/components/chart-scatter-basic/index.vue.mjs +21 -20
- package/es/components/chart-scatter-basic2/index.d.ts +1 -1
- package/es/components/chart-scatter-basic2/index.mjs +1 -1
- package/es/components/chart-scatter-basic2/index.vue.mjs +21 -20
- package/es/components/chart-scatter-bubble/index.d.ts +1 -1
- package/es/components/chart-scatter-bubble/index.mjs +1 -1
- package/es/components/chart-scatter-bubble/index.vue.mjs +18 -17
- package/es/components/chart-scatter-ripples/index.d.ts +1 -1
- package/es/components/chart-scatter-ripples/index.mjs +1 -1
- package/es/components/chart-scatter-ripples/index.vue.mjs +19 -18
- package/es/components/commons-babylon/index.mjs +1 -1
- package/es/components/commons-echarts/compileAndRunEcharts.mjs +4 -3
- package/es/components/commons-echarts/index.d.ts +1 -37
- package/es/components/commons-echarts/index.mjs +1 -1
- package/es/components/commons-gaussian-splatting-view/index.mjs +1 -1
- package/es/components/commons-gaussian-splatting-view/index.vue.mjs +2 -2
- package/es/components/commons-gaussian-splatting-view/index.vue2.mjs +1 -1
- package/es/components/commons-loop-iterator/index.d.ts +1 -1
- package/es/components/commons-loop-iterator/index.mjs +1 -1
- package/es/components/commons-loop-iterator/index.vue.mjs +1 -1
- package/es/components/commons-loop-iterator/index.vue2.mjs +28 -27
- package/es/components/commons-product-model/index.mjs +1 -1
- package/es/components/commons-product-model/index.vue.mjs +2 -2
- package/es/components/commons-product-model/index.vue2.mjs +1 -1
- package/es/components/commons-qrcode/index.mjs +1 -1
- package/es/components/commons-svg/index.d.ts +1 -1
- package/es/components/commons-svg/index.mjs +1 -1
- package/es/components/commons-three-loader/index.mjs +1 -1
- package/es/components/commons-three-loader/index.vue.mjs +2 -2
- package/es/components/commons-three-loader/index.vue2.mjs +1 -1
- package/es/components/commons-three-loader3/index.d.ts +1 -1
- package/es/components/commons-three-loader3/index.mjs +1 -1
- package/es/components/commons-three-loader3/index.vue.mjs +2 -2
- package/es/components/commons-three-loader3/index.vue2.mjs +1 -1
- package/es/components/commons-vr-photo/index.mjs +1 -1
- package/es/components/commons-vr-video/index.mjs +1 -1
- package/es/components/commons-weather/index.mjs +1 -1
- package/es/components/commons-weather/index.vue.mjs +1 -1
- package/es/components/commons-weather/index.vue2.mjs +1 -1
- package/es/components/graphical-circle/index.d.ts +1 -1
- package/es/components/graphical-circle/index.mjs +1 -1
- package/es/components/graphical-diamond/index.d.ts +1 -1
- package/es/components/graphical-diamond/index.mjs +1 -1
- package/es/components/graphical-hexagon/index.d.ts +1 -1
- package/es/components/graphical-hexagon/index.mjs +1 -1
- package/es/components/graphical-isosceles-triangle/index.d.ts +1 -1
- package/es/components/graphical-isosceles-triangle/index.mjs +1 -1
- package/es/components/graphical-pentagon/index.d.ts +1 -1
- package/es/components/graphical-pentagon/index.mjs +1 -1
- package/es/components/graphical-rect/index.d.ts +1 -1
- package/es/components/graphical-rect/index.mjs +1 -1
- package/es/components/graphical-right-triangle/index.d.ts +1 -1
- package/es/components/graphical-right-triangle/index.mjs +1 -1
- package/es/components/interaction-button/index.d.ts +1 -1
- package/es/components/interaction-button/index.mjs +1 -1
- package/es/components/interaction-button/index.vue.mjs +2 -2
- package/es/components/interaction-button/index.vue2.mjs +1 -1
- package/es/components/interaction-button-image/index.d.ts +1 -1
- package/es/components/interaction-button-image/index.mjs +1 -1
- package/es/components/interaction-button-image/index.vue.mjs +2 -2
- package/es/components/interaction-button-image/index.vue2.mjs +2 -2
- package/es/components/interaction-button-refresh/index.d.ts +1 -1
- package/es/components/interaction-button-refresh/index.mjs +1 -1
- package/es/components/interaction-button-refresh/index.vue.mjs +2 -2
- package/es/components/interaction-button-refresh/index.vue2.mjs +2 -2
- package/es/components/interaction-data-picker/index.d.ts +1 -1
- package/es/components/interaction-data-picker/index.mjs +1 -1
- package/es/components/interaction-input/index.d.ts +1 -1
- package/es/components/interaction-input/index.mjs +1 -1
- package/es/components/interaction-input/index.vue.mjs +1 -1
- package/es/components/interaction-input/index.vue2.mjs +31 -30
- package/es/components/interaction-radio/index.d.ts +1 -1
- package/es/components/interaction-radio/index.mjs +1 -1
- package/es/components/interaction-select/index.d.ts +1 -1
- package/es/components/interaction-select/index.mjs +1 -1
- package/es/components/interaction-select/index.vue.mjs +2 -2
- package/es/components/interaction-select/index.vue2.mjs +27 -26
- package/es/components/interaction-slider/index.d.ts +1 -1
- package/es/components/interaction-slider/index.mjs +1 -1
- package/es/components/interaction-slider/index.vue.mjs +2 -2
- package/es/components/interaction-slider/index.vue2.mjs +41 -40
- package/es/components/interaction-switch/index.d.ts +1 -1
- package/es/components/interaction-switch/index.mjs +1 -1
- package/es/components/interaction-tabs/index.d.ts +1 -1
- package/es/components/interaction-tabs/index.mjs +1 -1
- package/es/components/interaction-tabs/index.vue.mjs +2 -2
- package/es/components/interaction-tabs/index.vue2.mjs +1 -1
- package/es/components/interaction-tabs2/index.d.ts +1 -1
- package/es/components/interaction-tabs2/index.mjs +1 -1
- package/es/components/interaction-tabs2/index.vue.mjs +2 -2
- package/es/components/interaction-tabs2/index.vue2.mjs +1 -1
- package/es/components/map-earth-basic/index.d.ts +3 -3
- package/es/components/map-earth-basic/index.mjs +1 -1
- package/es/components/map-earth-basic/index.vue.d.ts +6 -4
- package/es/components/map-earth-basic/index.vue.mjs +16 -15
- package/es/components/map-earth-cool-tech/index.d.ts +3 -3
- package/es/components/map-earth-cool-tech/index.mjs +1 -1
- package/es/components/map-earth-cool-tech/index.vue.d.ts +4 -4
- package/es/components/map-earth-cool-tech/index.vue.mjs +16 -15
- package/es/components/map-earth-fly-line/index.d.ts +3 -3
- package/es/components/map-earth-fly-line/index.mjs +1 -1
- package/es/components/map-earth-fly-line/index.vue.d.ts +4 -6
- package/es/components/map-earth-fly-line/index.vue.mjs +10 -9
- package/es/components/map-earth-hacker/index.d.ts +3 -3
- package/es/components/map-earth-hacker/index.mjs +1 -1
- package/es/components/map-earth-hacker/index.vue.d.ts +2 -6
- package/es/components/map-earth-hacker/index.vue.mjs +10 -9
- package/es/components/map-earth-particle/index.d.ts +3 -3
- package/es/components/map-earth-particle/index.mjs +1 -1
- package/es/components/map-earth-particle/index.vue.d.ts +4 -6
- package/es/components/map-earth-particle/index.vue.mjs +16 -15
- package/es/components/media-audio/index.d.ts +1 -1
- package/es/components/media-audio/index.mjs +1 -1
- package/es/components/media-audio-dynamic/index.d.ts +1 -1
- package/es/components/media-audio-dynamic/index.mjs +1 -1
- package/es/components/media-audio-dynamic/index.vue.mjs +2 -2
- package/es/components/media-audio-dynamic/index.vue2.mjs +18 -17
- package/es/components/media-carousel/index.d.ts +1 -1
- package/es/components/media-carousel/index.mjs +1 -1
- package/es/components/media-carousel-slides/index.d.ts +1 -1
- package/es/components/media-carousel-slides/index.mjs +1 -1
- package/es/components/media-flv/index.d.ts +1 -1
- package/es/components/media-flv/index.mjs +1 -1
- package/es/components/media-iframe/index.d.ts +1 -1
- package/es/components/media-iframe/index.mjs +1 -1
- package/es/components/media-iframe-carousel/index.d.ts +1 -1
- package/es/components/media-iframe-carousel/index.mjs +1 -1
- package/es/components/media-image/index.d.ts +1 -1
- package/es/components/media-image/index.mjs +1 -1
- package/es/components/media-image-dynamic/index.d.ts +1 -1
- package/es/components/media-image-dynamic/index.mjs +1 -1
- package/es/components/media-image-dynamic/index.vue.mjs +1 -1
- package/es/components/media-image-dynamic/index.vue2.mjs +14 -13
- package/es/components/media-m3u8/index.d.ts +1 -1
- package/es/components/media-m3u8/index.mjs +1 -1
- package/es/components/media-m3u8-dynamic/index.d.ts +1 -1
- package/es/components/media-m3u8-dynamic/index.mjs +1 -1
- package/es/components/media-m3u8-dynamic/index.vue.mjs +12 -11
- package/es/components/media-video/index.d.ts +1 -1
- package/es/components/media-video/index.mjs +1 -1
- package/es/components/media-video-dynamic/index.d.ts +1 -1
- package/es/components/media-video-dynamic/index.mjs +1 -1
- package/es/components/media-video-dynamic/index.vue.mjs +2 -2
- package/es/components/media-video-dynamic/index.vue2.mjs +10 -9
- package/es/components/media-wavesurfer/index.d.ts +1 -1
- package/es/components/media-wavesurfer/index.mjs +1 -1
- package/es/components/scene-amap2d/index.d.ts +1 -1
- package/es/components/scene-amap2d/index.mjs +1 -1
- package/es/components/scene-amap2d/index.vue.mjs +2 -2
- package/es/components/scene-amap2d/index.vue2.mjs +9 -8
- package/es/components/scene-amap3d/index.d.ts +1 -1
- package/es/components/scene-amap3d/index.mjs +1 -1
- package/es/components/scene-amap3d/index.vue.mjs +2 -2
- package/es/components/scene-amap3d/index.vue2.mjs +23 -22
- package/es/components/scene-map3d/index.d.ts +1 -1
- package/es/components/scene-map3d/index.mjs +1 -1
- package/es/components/scene-map3d/index.vue.mjs +2 -2
- package/es/components/scene-map3d/index.vue2.mjs +10 -9
- package/es/components/scene-map3d/map3d/map.mjs +1 -1
- package/es/components/scene-ue-iframe/index.d.ts +1 -1
- package/es/components/scene-ue-iframe/index.mjs +1 -1
- package/es/components/scene-ue-iframe/index.vue.mjs +2 -2
- package/es/components/scene-ue-iframe/index.vue2.mjs +32 -23
- package/es/components/scene-ue-shj/index.d.ts +1 -1
- package/es/components/scene-ue-shj/index.mjs +1 -1
- package/es/components/scene-unity-iframe/index.d.ts +1 -1
- package/es/components/scene-unity-iframe/index.mjs +1 -1
- package/es/components/scene-unity-webgl/index.d.ts +1 -1
- package/es/components/scene-unity-webgl/index.mjs +1 -1
- package/es/components/scene-vr/index.d.ts +1 -1
- package/es/components/scene-vr/index.mjs +1 -1
- package/es/components/text-carousel/index.d.ts +1 -1
- package/es/components/text-carousel/index.mjs +1 -1
- package/es/components/text-carousel/index.vue.mjs +2 -2
- package/es/components/text-carousel/index.vue2.mjs +7 -7
- package/es/components/text-count-down/index.mjs +1 -1
- package/es/components/text-count-down/index.vue.mjs +2 -2
- package/es/components/text-count-down/index.vue2.mjs +1 -1
- package/es/components/text-over-number/index.mjs +1 -1
- package/es/components/text-over-number/index.vue.d.ts +16 -16
- package/es/components/text-over-number/index.vue.mjs +2 -2
- package/es/components/text-over-number/index.vue2.mjs +8 -7
- package/es/components/text-real-time/index.mjs +1 -1
- package/es/components/text-real-time/index.vue.mjs +1 -1
- package/es/components/text-real-time/index.vue2.mjs +1 -1
- package/es/components/text-row-scroll/index.d.ts +1 -1
- package/es/components/text-row-scroll/index.mjs +1 -1
- package/es/components/text-row-scroll/index.vue.mjs +1 -1
- package/es/components/text-row-scroll/index.vue2.mjs +45 -44
- package/es/components/text-table-basic/index.d.ts +1 -1
- package/es/components/text-table-basic/index.mjs +1 -1
- package/es/components/text-table-basic/index.vue.mjs +3 -3
- package/es/components/text-table-basic/index.vue2.mjs +69 -68
- package/es/components/text-table-scroll/index.d.ts +1 -1
- package/es/components/text-table-scroll/index.mjs +1 -1
- package/es/components/text-table-scroll/index.vue.mjs +2 -2
- package/es/components/text-table-scroll/index.vue2.mjs +36 -35
- package/es/components/text-text-basic/index.d.ts +1 -1
- package/es/components/text-text-basic/index.mjs +1 -1
- package/es/components/text-text-basic/index.vue.mjs +2 -2
- package/es/components/text-text-basic/index.vue2.mjs +1 -1
- package/es/components/text-text-dynamic/index.d.ts +1 -1
- package/es/components/text-text-dynamic/index.mjs +1 -1
- package/es/components/text-text-dynamic/index.vue.mjs +1 -1
- package/es/components/text-text-dynamic/index.vue2.mjs +26 -25
- package/es/components/text-title/index.d.ts +1 -1
- package/es/components/text-title/index.mjs +1 -1
- package/es/components/text-title/index.vue.mjs +2 -2
- package/es/components/text-title/index.vue2.mjs +1 -1
- package/es/core/datasource/core/api.d.ts +1 -0
- package/es/core/datasource/core/api.mjs +32 -0
- package/es/core/datasource/core/static.d.ts +1 -0
- package/es/core/datasource/core/static.mjs +16 -0
- package/es/core/datasource/core/url.d.ts +1 -0
- package/es/core/datasource/core/url.mjs +17 -0
- package/es/core/datasource/core/variable.d.ts +1 -0
- package/es/core/datasource/core/variable.mjs +17 -0
- package/es/core/datasource/core/ws.d.ts +32 -0
- package/es/core/datasource/core/ws.mjs +138 -0
- package/es/core/datasource/index.d.ts +63 -0
- package/es/core/datasource/index.mjs +188 -0
- package/es/core/datasource/utils/request.d.ts +3 -0
- package/es/core/datasource/utils/request.mjs +7 -0
- package/es/core/datasource/utils/useMapping.d.ts +7 -0
- package/es/core/datasource/utils/useMapping.mjs +55 -0
- package/es/core/datasource/utils/userRequest.d.ts +3 -0
- package/es/core/datasource/utils/userRequest.mjs +7 -0
- package/es/core/datasource/utils/utils.d.ts +50 -0
- package/es/core/datasource/utils/utils.mjs +123 -0
- package/es/core/datasource/utils/wsManager.d.ts +16 -0
- package/es/core/datasource/utils/wsManager.mjs +78 -0
- package/es/env.d.ts +0 -2
- package/es/index.d.ts +2 -1
- package/es/index.mjs +347 -345
- package/es/widgets.css +1 -1
- package/lib/commons/core/datasource/core/api.js +1 -0
- package/lib/commons/core/datasource/core/static.js +1 -0
- package/lib/commons/core/datasource/core/url.js +1 -0
- package/lib/commons/core/datasource/core/variable.js +1 -0
- package/lib/commons/core/datasource/core/ws.js +1 -0
- package/lib/commons/core/datasource/index.js +6 -0
- package/lib/commons/core/datasource/utils/request.js +1 -0
- package/lib/commons/core/datasource/utils/utils.js +1 -0
- package/lib/commons/core/datasource/utils/wsManager.js +1 -0
- package/lib/commons/core/earth/base64/Aperture.js +1 -0
- package/lib/commons/core/earth/base64/Callout.js +1 -0
- package/lib/commons/core/earth/base64/CalloutAperture.js +1 -0
- package/lib/commons/core/earth/base64/CloudCover.js +1 -0
- package/lib/commons/core/earth/base64/LightColumn.js +1 -0
- package/lib/commons/core/earth/base64/StarrySky.js +1 -0
- package/lib/commons/core/earth/base64/rotation/innner.js +1 -0
- package/lib/commons/core/earth/base64/rotation/out.js +1 -0
- package/lib/commons/core/earth/border.vue.js +1 -0
- package/lib/commons/core/earth/border.vue2.js +1 -0
- package/lib/commons/core/earth/geojson/china-border.js +1 -0
- package/lib/commons/core/earth/geojson/china.js +1 -0
- package/lib/commons/core/earth/geojson/world.js +1 -0
- package/lib/commons/core/earth/main.js +32 -0
- package/lib/commons/core/earth/main.vue.js +1 -0
- package/lib/commons/core/earth/main.vue2.js +1 -0
- package/lib/commons/core/earth/utils/GradientLine.js +1 -0
- package/lib/commons/core/earth/utils/composer.js +1 -0
- package/lib/commons/core/earth/utils/controls/obt.js +1 -0
- package/lib/commons/core/earth/utils/label.js +1 -0
- package/lib/commons/core/earth/utils/line2.js +1 -0
- package/lib/commons/core/earth/utils/scene.js +1 -0
- package/lib/commons/core/useChart.js +1 -0
- package/lib/commons/utils/babylon/ColorConvert.js +1 -0
- package/lib/commons/utils/clickOutSide.js +1 -0
- package/lib/commons/utils/cloneSeries.js +1 -0
- package/lib/commons/utils/hoverLoop.js +1 -0
- package/lib/commons/utils/imgPreloader.js +1 -0
- package/lib/commons/utils/install.js +1 -0
- package/lib/commons/utils/json2css.js +1 -0
- package/lib/commons/utils/parseDataset.js +1 -0
- package/lib/commons/utils/parseOtherData.js +1 -0
- package/lib/commons/utils/parseScatterData.js +1 -0
- package/lib/commons/utils/shj/component-refs.js +1 -0
- package/lib/components/chart-bar-animation/index.js +1 -1
- package/lib/components/chart-bar-animation/index.vue.js +1 -1
- package/lib/components/chart-bar-basic/index.js +1 -1
- package/lib/components/chart-bar-basic/index.vue.js +1 -1
- package/lib/components/chart-bar-contrast/index.js +1 -1
- package/lib/components/chart-bar-contrast/index.vue.js +1 -1
- package/lib/components/chart-bar-contrast2/index.js +1 -1
- package/lib/components/chart-bar-contrast2/index.vue.js +1 -1
- package/lib/components/chart-bar-contrast3/index.js +1 -1
- package/lib/components/chart-bar-contrast3/index.vue.js +1 -1
- package/lib/components/chart-bar-gradient-column-chart/index.js +1 -1
- package/lib/components/chart-bar-gradient-column-chart/index.vue.js +1 -1
- package/lib/components/chart-bar-horizontal/index.js +1 -1
- package/lib/components/chart-bar-horizontal/index.vue.js +1 -1
- package/lib/components/chart-bar-horizontal-stack/index.js +1 -1
- package/lib/components/chart-bar-horizontal-stack/index.vue.js +1 -1
- package/lib/components/chart-bar-line-bar/index.js +1 -1
- package/lib/components/chart-bar-line-bar/index.vue.js +1 -1
- package/lib/components/chart-bar-line-bar2/index.js +1 -1
- package/lib/components/chart-bar-line-bar2/index.vue.js +1 -1
- package/lib/components/chart-bar-loop/index.js +1 -1
- package/lib/components/chart-bar-loop/index.vue.js +1 -1
- package/lib/components/chart-bar-mini/index.js +1 -1
- package/lib/components/chart-bar-mini/index.vue.js +1 -1
- package/lib/components/chart-bar-polar/index.js +1 -1
- package/lib/components/chart-bar-polar/index.vue.js +1 -1
- package/lib/components/chart-bar-polar-stack/index.js +1 -1
- package/lib/components/chart-bar-polar-stack/index.vue.js +1 -1
- package/lib/components/chart-bar-polar2/index.js +1 -1
- package/lib/components/chart-bar-polar2/index.vue.js +1 -1
- package/lib/components/chart-bar-radius-circle/index.js +1 -1
- package/lib/components/chart-bar-radius-circle/index.vue.js +1 -1
- package/lib/components/chart-bar-rank/index.js +1 -1
- package/lib/components/chart-bar-rank/index.vue.js +1 -1
- package/lib/components/chart-bar-segmented-progress/index.js +1 -1
- package/lib/components/chart-bar-segmented-progress/index.vue.js +1 -1
- package/lib/components/chart-bar-spire/index.js +1 -1
- package/lib/components/chart-bar-spire/index.vue.js +1 -1
- package/lib/components/chart-bar-stack/index.js +1 -1
- package/lib/components/chart-bar-stack/index.vue.js +1 -1
- package/lib/components/chart-bar-stack-line/index.js +1 -1
- package/lib/components/chart-bar-stack-line/index.vue.js +1 -1
- package/lib/components/chart-bar-stack2/index.js +1 -1
- package/lib/components/chart-bar-stack2/index.vue.js +1 -1
- package/lib/components/chart-bar-stack3/index.js +1 -1
- package/lib/components/chart-bar-stack3/index.vue.js +1 -1
- package/lib/components/chart-bar-staggered/index.js +1 -1
- package/lib/components/chart-bar-staggered/index.vue.js +1 -1
- package/lib/components/chart-bar-three/index.js +1 -1
- package/lib/components/chart-bar-three/index.vue.js +1 -1
- package/lib/components/chart-bar-waterfall/index.js +1 -1
- package/lib/components/chart-bar-waterfall/index.vue.js +1 -1
- package/lib/components/chart-bar-zebra/index.js +1 -1
- package/lib/components/chart-bar-zebra/index.vue.js +1 -1
- package/lib/components/chart-line-area-gradient/index.js +1 -1
- package/lib/components/chart-line-area-gradient/index.vue.js +1 -1
- package/lib/components/chart-line-area-highlight/index.js +1 -1
- package/lib/components/chart-line-area-highlight/index.vue.js +1 -1
- package/lib/components/chart-line-area-highlight2/index.js +1 -1
- package/lib/components/chart-line-area-highlight2/index.vue.js +1 -1
- package/lib/components/chart-line-basic/index.js +1 -1
- package/lib/components/chart-line-basic/index.vue.js +1 -1
- package/lib/components/chart-line-bump/index.js +1 -1
- package/lib/components/chart-line-bump/index.vue.js +1 -1
- package/lib/components/chart-line-dashed/index.js +1 -1
- package/lib/components/chart-line-dashed/index.vue.js +1 -1
- package/lib/components/chart-line-ladder/index.js +1 -1
- package/lib/components/chart-line-ladder/index.vue.js +1 -1
- package/lib/components/chart-line-logarithm/index.js +1 -1
- package/lib/components/chart-line-logarithm/index.vue.js +1 -1
- package/lib/components/chart-line-multix/index.js +1 -1
- package/lib/components/chart-line-multix/index.vue.js +1 -1
- package/lib/components/chart-line-polar-double/index.js +1 -1
- package/lib/components/chart-line-polar-double/index.vue.js +1 -1
- package/lib/components/chart-line-rain-flow/index.js +1 -1
- package/lib/components/chart-line-rain-flow/index.vue.js +1 -1
- package/lib/components/chart-line-scale/index.js +1 -1
- package/lib/components/chart-line-scale/index.vue.js +1 -1
- package/lib/components/chart-line-smooth/index.js +1 -1
- package/lib/components/chart-line-smooth/index.vue.js +1 -1
- package/lib/components/chart-line-smooth-area/index.js +1 -1
- package/lib/components/chart-line-smooth-area/index.vue.js +1 -1
- package/lib/components/chart-line-stack/index.js +1 -1
- package/lib/components/chart-line-stack/index.vue.js +1 -1
- package/lib/components/chart-line-stack-area/index.js +1 -1
- package/lib/components/chart-line-stack-area/index.vue.js +1 -1
- package/lib/components/chart-line-temp/index.js +1 -1
- package/lib/components/chart-line-temp/index.vue.js +1 -1
- package/lib/components/chart-line-vertical/index.js +1 -1
- package/lib/components/chart-line-vertical/index.vue.js +1 -1
- package/lib/components/chart-map-basic/index.js +1 -1
- package/lib/components/chart-map-basic/index.vue.js +1 -1
- package/lib/components/chart-map-bmap-basic/index.js +1 -1
- package/lib/components/chart-map-bmap-basic/index.vue.js +1 -1
- package/lib/components/chart-map-bmap-heatmap/index.js +1 -1
- package/lib/components/chart-map-bmap-heatmap/index.vue.js +1 -1
- package/lib/components/chart-map-bmap-rich/index.js +1 -1
- package/lib/components/chart-map-bmap-rich/index.vue.js +1 -1
- package/lib/components/chart-map-customize/index.js +1 -1
- package/lib/components/chart-map-customize/index.vue.js +1 -1
- package/lib/components/chart-map-lines/index.js +1 -1
- package/lib/components/chart-map-lines/index.vue.js +1 -1
- package/lib/components/chart-map-scatter/index.js +1 -1
- package/lib/components/chart-map-scatter/index.vue.js +1 -1
- package/lib/components/chart-other-candlestick-basic/index.js +1 -1
- package/lib/components/chart-other-candlestick-basic/index.vue.js +1 -1
- package/lib/components/chart-other-candlestick-demo/index.js +1 -1
- package/lib/components/chart-other-candlestick-demo/index.vue.js +1 -1
- package/lib/components/chart-other-candlestick-shanghai/index.js +1 -1
- package/lib/components/chart-other-candlestick-shanghai/index.vue.js +1 -1
- package/lib/components/chart-other-circular-graph/index.js +1 -1
- package/lib/components/chart-other-circular-graph/index.vue.js +1 -1
- package/lib/components/chart-other-force/index.js +1 -1
- package/lib/components/chart-other-force/index.vue.js +1 -1
- package/lib/components/chart-other-force2/index.js +1 -1
- package/lib/components/chart-other-force2/index.vue.js +1 -1
- package/lib/components/chart-other-funnel/index.js +1 -1
- package/lib/components/chart-other-funnel/index.vue.js +1 -1
- package/lib/components/chart-other-funnel-contrast/index.js +1 -1
- package/lib/components/chart-other-funnel-contrast/index.vue.js +1 -1
- package/lib/components/chart-other-funnel-split/index.js +1 -1
- package/lib/components/chart-other-funnel-split/index.vue.js +1 -1
- package/lib/components/chart-other-funnel2/index.js +1 -1
- package/lib/components/chart-other-funnel2/index.vue.js +1 -1
- package/lib/components/chart-other-gauge/index.js +1 -1
- package/lib/components/chart-other-gauge/index.vue.js +1 -1
- package/lib/components/chart-other-gauge-grade/index.js +1 -1
- package/lib/components/chart-other-gauge-grade/index.vue.js +1 -1
- package/lib/components/chart-other-gauge-stage/index.js +1 -1
- package/lib/components/chart-other-gauge-stage/index.vue.js +1 -1
- package/lib/components/chart-other-graph-basic/index.js +1 -1
- package/lib/components/chart-other-graph-basic/index.vue.js +1 -1
- package/lib/components/chart-other-graph-basic2/index.js +1 -1
- package/lib/components/chart-other-graph-basic2/index.vue.js +1 -1
- package/lib/components/chart-other-graph-calendar/index.js +1 -1
- package/lib/components/chart-other-graph-calendar/index.vue.js +1 -1
- package/lib/components/chart-other-grid-percentage/index.js +1 -1
- package/lib/components/chart-other-grid-percentage/index.vue.js +1 -1
- package/lib/components/chart-other-heatmap/index.js +1 -1
- package/lib/components/chart-other-heatmap/index.vue.js +1 -1
- package/lib/components/chart-other-label-gauge/index.js +1 -1
- package/lib/components/chart-other-label-gauge/index.vue.js +1 -1
- package/lib/components/chart-other-liquidfill/index.js +1 -1
- package/lib/components/chart-other-liquidfill/index.vue.js +1 -1
- package/lib/components/chart-other-parallel-basic/index.js +1 -1
- package/lib/components/chart-other-parallel-basic/index.vue.js +1 -1
- package/lib/components/chart-other-parallel-mul/index.js +1 -1
- package/lib/components/chart-other-parallel-mul/index.vue.js +1 -1
- package/lib/components/chart-other-radar/index.js +1 -1
- package/lib/components/chart-other-radar/index.vue.js +1 -1
- package/lib/components/chart-other-radar-stack/index.js +1 -1
- package/lib/components/chart-other-radar-stack/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-basic/index.js +1 -1
- package/lib/components/chart-other-sunburst-basic/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-basic2/index.js +1 -1
- package/lib/components/chart-other-sunburst-basic2/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-basic3/index.js +1 -1
- package/lib/components/chart-other-sunburst-basic3/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-basic4/index.js +1 -1
- package/lib/components/chart-other-sunburst-basic4/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-book/index.js +1 -1
- package/lib/components/chart-other-sunburst-book/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-flavors/index.js +1 -1
- package/lib/components/chart-other-sunburst-flavors/index.vue.js +1 -1
- package/lib/components/chart-other-sunburst-radius/index.js +1 -1
- package/lib/components/chart-other-sunburst-radius/index.vue.js +1 -1
- package/lib/components/chart-other-theme-river/index.js +1 -1
- package/lib/components/chart-other-theme-river/index.vue.js +1 -1
- package/lib/components/chart-other-tree/index.js +1 -1
- package/lib/components/chart-other-tree/index.vue.js +1 -1
- package/lib/components/chart-other-tree-line/index.js +1 -1
- package/lib/components/chart-other-tree-line/index.vue.js +1 -1
- package/lib/components/chart-other-treemap/index.js +1 -1
- package/lib/components/chart-other-treemap/index.vue.js +1 -1
- package/lib/components/chart-other-treemap-basic/index.js +1 -1
- package/lib/components/chart-other-treemap-basic/index.vue.js +1 -1
- package/lib/components/chart-other-word-cloud/index.js +1 -1
- package/lib/components/chart-other-word-cloud/index.vue.js +1 -1
- package/lib/components/chart-pie-3d/index.js +1 -1
- package/lib/components/chart-pie-3d/index.vue.js +1 -1
- package/lib/components/chart-pie-basic/index.js +1 -1
- package/lib/components/chart-pie-basic/index.vue.js +1 -1
- package/lib/components/chart-pie-basic2/index.js +1 -1
- package/lib/components/chart-pie-basic2/index.vue.js +1 -1
- package/lib/components/chart-pie-customized/index.js +1 -1
- package/lib/components/chart-pie-customized/index.vue.js +1 -1
- package/lib/components/chart-pie-index/index.js +1 -1
- package/lib/components/chart-pie-index/index.vue.js +1 -1
- package/lib/components/chart-pie-interval/index.js +1 -1
- package/lib/components/chart-pie-interval/index.vue.js +1 -1
- package/lib/components/chart-pie-legend-scroll/index.js +1 -1
- package/lib/components/chart-pie-legend-scroll/index.vue.js +1 -1
- package/lib/components/chart-pie-radius/index.js +1 -1
- package/lib/components/chart-pie-radius/index.vue.js +1 -1
- package/lib/components/chart-pie-rose/index.js +1 -1
- package/lib/components/chart-pie-rose/index.vue.js +1 -1
- package/lib/components/chart-pie-round/index.js +1 -1
- package/lib/components/chart-pie-round/index.vue.js +1 -1
- package/lib/components/chart-pie-semicircle/index.js +1 -1
- package/lib/components/chart-pie-semicircle/index.vue.js +1 -1
- package/lib/components/chart-pie-sunburst/index.js +1 -1
- package/lib/components/chart-pie-sunburst/index.vue.js +1 -1
- package/lib/components/chart-scatter-basic/index.js +1 -1
- package/lib/components/chart-scatter-basic/index.vue.js +1 -1
- package/lib/components/chart-scatter-basic2/index.js +1 -1
- package/lib/components/chart-scatter-basic2/index.vue.js +1 -1
- package/lib/components/chart-scatter-bubble/index.js +1 -1
- package/lib/components/chart-scatter-bubble/index.vue.js +1 -1
- package/lib/components/chart-scatter-ripples/index.js +1 -1
- package/lib/components/chart-scatter-ripples/index.vue.js +1 -1
- package/lib/components/commons-babylon/index.js +1 -1
- package/lib/components/commons-echarts/compileAndRunEcharts.js +4 -4
- package/lib/components/commons-echarts/index.js +1 -1
- package/lib/components/commons-gaussian-splatting-view/index.js +1 -1
- package/lib/components/commons-gaussian-splatting-view/index.vue.js +1 -1
- package/lib/components/commons-gaussian-splatting-view/index.vue2.js +1 -1
- package/lib/components/commons-loop-iterator/index.js +1 -1
- 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.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-qrcode/index.js +1 -1
- package/lib/components/commons-svg/index.js +1 -1
- package/lib/components/commons-three-loader/index.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.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-vr-photo/index.js +1 -1
- package/lib/components/commons-vr-video/index.js +1 -1
- package/lib/components/commons-weather/index.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/graphical-circle/index.js +1 -1
- package/lib/components/graphical-diamond/index.js +1 -1
- package/lib/components/graphical-hexagon/index.js +1 -1
- package/lib/components/graphical-isosceles-triangle/index.js +1 -1
- package/lib/components/graphical-pentagon/index.js +1 -1
- package/lib/components/graphical-rect/index.js +1 -1
- package/lib/components/graphical-right-triangle/index.js +1 -1
- package/lib/components/interaction-button/index.js +1 -1
- package/lib/components/interaction-button/index.vue.js +1 -1
- package/lib/components/interaction-button/index.vue2.js +1 -1
- package/lib/components/interaction-button-image/index.js +1 -1
- package/lib/components/interaction-button-image/index.vue.js +1 -1
- package/lib/components/interaction-button-image/index.vue2.js +1 -1
- package/lib/components/interaction-button-refresh/index.js +1 -1
- package/lib/components/interaction-button-refresh/index.vue.js +1 -1
- package/lib/components/interaction-button-refresh/index.vue2.js +1 -1
- package/lib/components/interaction-data-picker/index.js +1 -1
- package/lib/components/interaction-input/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-radio/index.js +1 -1
- package/lib/components/interaction-select/index.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.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.js +1 -1
- package/lib/components/interaction-tabs/index.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.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.js +1 -1
- package/lib/components/map-earth-basic/index.vue.js +1 -1
- package/lib/components/map-earth-cool-tech/index.js +1 -1
- package/lib/components/map-earth-cool-tech/index.vue.js +1 -1
- package/lib/components/map-earth-fly-line/index.js +1 -1
- package/lib/components/map-earth-fly-line/index.vue.js +1 -1
- package/lib/components/map-earth-hacker/index.js +1 -1
- package/lib/components/map-earth-hacker/index.vue.js +1 -1
- package/lib/components/map-earth-particle/index.js +1 -1
- package/lib/components/map-earth-particle/index.vue.js +1 -1
- package/lib/components/media-audio/index.js +1 -1
- package/lib/components/media-audio-dynamic/index.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-carousel/index.js +1 -1
- package/lib/components/media-carousel-slides/index.js +1 -1
- package/lib/components/media-flv/index.js +1 -1
- package/lib/components/media-iframe/index.js +1 -1
- package/lib/components/media-iframe-carousel/index.js +1 -1
- package/lib/components/media-image/index.js +1 -1
- package/lib/components/media-image-dynamic/index.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.js +1 -1
- package/lib/components/media-m3u8-dynamic/index.js +1 -1
- package/lib/components/media-m3u8-dynamic/index.vue.js +1 -1
- package/lib/components/media-video/index.js +1 -1
- package/lib/components/media-video-dynamic/index.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/media-wavesurfer/index.js +1 -1
- package/lib/components/scene-amap2d/index.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.js +1 -1
- package/lib/components/scene-amap3d/index.vue.js +1 -1
- package/lib/components/scene-amap3d/index.vue2.js +2 -2
- package/lib/components/scene-map3d/index.js +1 -1
- package/lib/components/scene-map3d/index.vue.js +1 -1
- package/lib/components/scene-map3d/index.vue2.js +1 -1
- package/lib/components/scene-map3d/map3d/map.js +1 -1
- package/lib/components/scene-ue-iframe/index.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.js +1 -1
- package/lib/components/scene-unity-iframe/index.js +1 -1
- package/lib/components/scene-unity-webgl/index.js +1 -1
- package/lib/components/scene-vr/index.js +1 -1
- package/lib/components/text-carousel/index.js +1 -1
- package/lib/components/text-carousel/index.vue.js +1 -1
- package/lib/components/text-carousel/index.vue2.js +1 -1
- package/lib/components/text-count-down/index.js +1 -1
- 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.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.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.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.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.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-basic/index.js +1 -1
- package/lib/components/text-text-basic/index.vue.js +1 -1
- package/lib/components/text-text-basic/index.vue2.js +1 -1
- package/lib/components/text-text-dynamic/index.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/components/text-title/index.js +1 -1
- package/lib/components/text-title/index.vue.js +1 -1
- package/lib/components/text-title/index.vue2.js +1 -1
- package/lib/core/datasource/core/api.js +1 -0
- package/lib/core/datasource/core/static.js +1 -0
- package/lib/core/datasource/core/url.js +1 -0
- package/lib/core/datasource/core/variable.js +1 -0
- package/lib/core/datasource/core/ws.js +1 -0
- package/lib/core/datasource/index.js +6 -0
- package/lib/core/datasource/utils/request.js +1 -0
- package/lib/core/datasource/utils/useMapping.js +1 -0
- package/lib/core/datasource/utils/userRequest.js +1 -0
- package/lib/core/datasource/utils/utils.js +1 -0
- package/lib/core/datasource/utils/wsManager.js +1 -0
- package/lib/index.js +1 -1
- package/lib/widgets.css +1 -1
- package/package.json +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),i=require("lodash"),C=require("gsap"),D=require("@vueuse/core"),J=require("./map3d/map.js"),M=require("./watch.js");require("three");require("d3-geo");require("three/examples/jsm/controls/OrbitControls");require("three/examples/jsm/loaders/GLTFLoader");require("three/examples/jsm/loaders/DRACOLoader.js");const W=require("./map3d/mini3d/utils/CreateHistory.js");require("three/examples/jsm/libs/lil-gui.module.min");require("three/examples/jsm/utils/BufferGeometryUtils");require("three/examples/jsm/renderers/CSS3DRenderer");const v=require("../../utils/json2css.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),i=require("lodash"),C=require("gsap"),D=require("@vueuse/core"),J=require("./map3d/map.js"),M=require("./watch.js");require("three");require("d3-geo");require("three/examples/jsm/controls/OrbitControls");require("three/examples/jsm/loaders/GLTFLoader");require("three/examples/jsm/loaders/DRACOLoader.js");const W=require("./map3d/mini3d/utils/CreateHistory.js");require("three/examples/jsm/libs/lil-gui.module.min");require("three/examples/jsm/utils/BufferGeometryUtils");require("three/examples/jsm/renderers/CSS3DRenderer");const T=require("../../commons/core/datasource/index.js"),v=require("../../commons/utils/json2css.js"),R={class:"value"},V=["onClick"],N={key:3,class:"fps"},j=o.defineComponent({name:"zv-scene-map3d"}),$=o.defineComponent({...j,props:{basicOption:{},sources:{},useEvents:{},uuid:{}},emits:["on-loaded","on-animated","on-drill-down","on-area-mouseover","on-area-mouseout","on-area-click","on-bar-click","on-scatter-click","on-flyline-click","on-return","on-data-change"],setup(B,{expose:O,emit:H}){const s=H,a=B,n=o.ref(),m=o.ref(!1),h=o.ref(!1),f="zerov-map3d-scene",b="zerov-map3d-scene-wrap",r=new W.createHistory,p=o.ref(!1),g=(e=!0)=>{n.value.cleanAllBar(),n.value.cleanAllScatter(),n.value.cleanAllFlyLine(),n.value.createAllRegionalLevel(),a.sources&&a.sources.length>0&&T.SHJDatasourceV2.parse({tId:a.uuid,sources:a.sources,callback:l=>{try{const t=a.basicOption.widgets&&a.basicOption.widgets.find(d=>d._sourceId===l.id);t&&t.type==="bar"&&n.value.createBar(t,l.data[0].data,!0,e),t&&t.type==="scatter"&&n.value.createScatter(t,l.data[0].data,!0,e),t&&t.type==="flyline"&&n.value.createFlyLine(t,l.data[0].data,!0,e),t&&t.type==="regionalLevel"&&n.value.createRegionalLevel(t,l.data[0].data,!0,e),e&&(n.value.createBarTimeLine(),n.value.createScatterTimeLine(),n.value.createFlyLineTimeLine(),n.value.createRegionalLevelTimeLine()),s("on-data-change",l),window.SHJParseEvent(a.useEvents,"on-data-change",l)}catch{s("on-data-change",null),window.SHJParseEvent(a.useEvents,"on-data-change",null)}}})},q=()=>{document.getElementById(f)&&document.getElementById(b).removeChild(document.getElementById(f));const e=document.createElement("canvas");e.id=f,e.className="zerov-map-3d",e.style.width="100%",e.style.height="100%",document.getElementById(b).appendChild(e)},y=e=>(m.value=!1,h.value=!1,n.value&&(n.value.destroy(),n.value=null),q(),new J.World(document.getElementById(f),{geoProjectionCenter:[108.55,36.32]},e,{onAreaMouseover:t=>{s("on-area-mouseover",t),window.SHJParseEvent(a.useEvents,"on-area-mouseover",t)},onAreaMouseout:t=>{s("on-area-mouseout",t),window.SHJParseEvent(a.useEvents,"on-area-mouseout",t)},onLoadChild:t=>{if(s("on-area-click",t),window.SHJParseEvent(a.useEvents,"on-area-click",t),t.adcode!==r.present&&a.basicOption.scene.isDrilling&&a.basicOption.scene.defaultMapAdcode!==1){s("on-drill-down",t),window.SHJParseEvent(a.useEvents,"on-drill-down",t);const d=i.cloneDeep(a.basicOption);d.scene.defaultMapAdcode=t.adcode,n.value=y(d),r.push(t.adcode),r.past.length<=0?p.value=!1:p.value=!0}},onMapSuccess:()=>{m.value=!0,s("on-loaded"),window.SHJParseEvent(a.useEvents,"on-loaded",null)},onMapAnimationSuccess:()=>{g(),h.value=!0,s("on-animated"),window.SHJParseEvent(a.useEvents,"on-animated",null)},onClickBar:t=>{s("on-bar-click",t),window.SHJParseEvent(a.useEvents,"on-bar-click",t)},onClickScatter:t=>{s("on-scatter-click",t),window.SHJParseEvent(a.useEvents,"on-scatter-click",t)},onClickFlyline:t=>{s("on-flyline-click",t),window.SHJParseEvent(a.useEvents,"on-flyline-click",t)}}));o.onMounted(()=>{setTimeout(()=>{n.value=y(a.basicOption),r.push(a.basicOption.scene.defaultMapAdcode),M.initWatch(a,n,y,g,L)},0)}),o.onBeforeUnmount(()=>{n.value&&n.value.destroy()});const S=()=>{s("on-return",{parentAdcode:r.past[r.past.length-1],adcode:r.present}),window.SHJParseEvent(a.useEvents,"on-return",{parentAdcode:r.past[r.past.length-1],adcode:r.present}),r.undo();const e=i.cloneDeep(a.basicOption);e.scene.defaultMapAdcode=r.present,n.value=y(e),r.past.length<=0?p.value=!1:p.value=!0},L=()=>{r.empty(),r.push(a.basicOption.scene.defaultMapAdcode),n.value=y(a.basicOption),r.past.length<=0?p.value=!1:p.value=!0},I=(e,l,t)=>{C.timeline().add(C.to(n.value.camera.instance.position,{duration:2,delay:0,x:e,y:l,z:t,ease:"circ.out"}))};O({refresh:()=>g(),refreshView:()=>g(),refreshData:()=>g(),goBack:()=>S(),setCameraPosition:(e,l,t)=>I(e,l,t)});const z=D.useFps(),w=o.ref(),F=e=>{if(w.value&&e){v.autoInstallFont(a.basicOption.backButtonCss.fontFamily);const l=`url(${e.backgroundImage})`;return{...v.jsonToCssStyle(e),left:a.basicOption.backButtonLeft+"%",bottom:a.basicOption.backButtonBottom+"%","background-image":l}}return{}},u=o.ref(i.cloneDeep(a.basicOption.widgets)),c=o.computed(()=>{try{const e=u.value.filter(l=>l.type==="regionalLevel");return e.length>0?(v.autoInstallFont(e[0].labelStyle.fontFamily),e[0].isHide?null:e[0]):null}catch{return null}});o.watch(()=>i.cloneDeep(a.basicOption.widgets),(e,l)=>{try{!i.isEqual(e,l)&&n.value&&(u.value=i.cloneDeep(a.basicOption.widgets))}catch{}},{deep:!0}),o.watch(()=>i.cloneDeep(u.value.filter(e=>e.type==="bar")),(e,l)=>{try{!i.isEqual(e,l)&&n.value&&e.length===l.length&&e.forEach(t=>{n.value.createBar(t,void 0,!1)})}catch{}},{deep:!0}),o.watch(()=>i.cloneDeep(u.value.filter(e=>e.type==="scatter")),(e,l)=>{try{!i.isEqual(e,l)&&n.value&&e.length===l.length&&e.forEach(t=>{n.value.createScatter(t,void 0,!1)})}catch{}},{deep:!0}),o.watch(()=>i.cloneDeep(u.value.filter(e=>e.type==="flyline")),(e,l)=>{try{!i.isEqual(e,l)&&n.value&&e.length===l.length&&e.forEach(t=>{n.value.createFlyLine(t,void 0,!1)})}catch{}},{deep:!0}),o.watch(()=>i.cloneDeep(u.value.filter(e=>e.type==="regionalLevel")),(e,l)=>{try{!i.isEqual(e,l)&&n.value&&e.length===l.length&&e.forEach(t=>{n.value.createRegionalLevel(t,void 0,!1)})}catch{}},{deep:!0});const P=e=>{try{e.isHide===void 0?e.isHide=!0:e.isHide=!e.isHide}catch{}},A=()=>{try{const e=u.value.every(l=>!l.isHide);u.value.forEach(l=>l.isHide=e)}catch{}},k=e=>{v.autoInstallFont(a.basicOption.widgetControlStyle.fontFamily);const l=`url(${e.backgroundImage})`,t=`url(${E(e.hover.backgroundImage)})`,d=`url(${E(e.active.backgroundImage)})`;return{...v.jsonToCssStyle(e),...v.jsonToCssStyle(e.hover,"hover"),...v.jsonToCssStyle(e.active,"active"),"background-image":l,"--hover-background-image":t,"--active-background-image":d}},E=e=>!e.startsWith("http")&&!e.startsWith("//")?"../"+e:e;return(e,l)=>(o.openBlock(),o.createElementBlock("div",{id:"zerov-map3d-scene-wrap",class:o.normalizeClass(["map-3d-wrap",{show:m.value}])},[h.value&&p.value&&e.basicOption.backButton?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"buttonRef",ref:w,class:"return-btn",style:o.normalizeStyle(F(e.basicOption.backButtonCss)),onClick:S}," 返回上一级 ",4)):o.createCommentVNode("",!0),c.value?(o.openBlock(),o.createElementBlock("div",{key:1,class:"regional-level",style:o.normalizeStyle({left:c.value.labelStyle.left+"%",top:c.value.labelStyle.top+"%",flexDirection:c.value.labelStyle.direction,gap:c.value.labelStyle.gap+"px",fontSize:c.value.labelStyle.fontSize+"px",fontFamily:c.value.labelStyle.fontFamily,fontStyle:c.value.labelStyle.fontStyle,color:c.value.labelStyle.color,"--color-width":c.value.labelStyle.colorStyle.width+"px","--color-height":c.value.labelStyle.colorStyle.height+"px","--color-borderRadius":c.value.labelStyle.colorStyle.borderRadius+"px"})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.value.rules,(t,d)=>(o.openBlock(),o.createElementBlock("div",{key:d,class:"item"},[o.createElementVNode("div",{class:"color",style:o.normalizeStyle({backgroundColor:t.color})},null,4),o.createElementVNode("span",R,o.toDisplayString(t.label),1)]))),128))],4)):o.createCommentVNode("",!0),e.basicOption.widgets.length>0&&e.basicOption.widgetControlStyle&&e.basicOption.widgetControlStyle.show?(o.openBlock(),o.createElementBlock("div",{key:2,class:"widget-control",style:o.normalizeStyle({left:e.basicOption.widgetControlStyle.left+"%",top:e.basicOption.widgetControlStyle.top+"%",flexDirection:e.basicOption.widgetControlStyle.direction,gap:e.basicOption.widgetControlStyle.gap+"px","--widget-width":e.basicOption.widgetControlStyle.width+"px","--widget-height":e.basicOption.widgetControlStyle.height+"px"})},[o.createElementVNode("div",{class:o.normalizeClass(["control-button",{active:u.value.every(t=>!t.isHide)}]),style:o.normalizeStyle(k(e.basicOption.widgetControlStyle)),onClick:A},o.toDisplayString(u.value.every(t=>!t.isHide)?"隐藏":"显示")+"/全部 ",7),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,t=>(o.openBlock(),o.createElementBlock("div",{key:t.id,class:o.normalizeClass(["control-button",{active:!t.isHide}]),style:o.normalizeStyle(k(e.basicOption.widgetControlStyle)),onClick:d=>P(t)},o.toDisplayString(t.name||"-"),15,V))),128))],4)):o.createCommentVNode("",!0),e.basicOption.debugger?(o.openBlock(),o.createElementBlock("div",N," fps:"+o.toDisplayString(o.unref(z)),1)):o.createCommentVNode("",!0)],2))}});exports.default=$;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var F=Object.defineProperty;var j=(S,w,e)=>w in S?F(S,w,{enumerable:!0,configurable:!0,writable:!0,value:e}):S[w]=e;var n=(S,w,e)=>j(S,typeof w!="symbol"?w+"":w,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("three"),D=require("three-mesh-bvh"),q=require("pinyin-pro"),R=require("./mini3d/core/index.js");require("three/examples/jsm/loaders/GLTFLoader");require("three/examples/jsm/loaders/DRACOLoader.js");const T=require("./mini3d/utils/utils.js");require("three/examples/jsm/libs/lil-gui.module.min");require("three/examples/jsm/utils/BufferGeometryUtils");const C=require("./mini3d/components/Label3d.js"),I=require("./mini3d/components/FlyLine.js"),z=require("./mini3d/components/ToastLoading.js"),P=require("./mini3d/components/PathLine.js"),O=require("./map/assets.js"),H=require("./map/extrudeMap.js"),f=require("gsap"),v=require("lodash"),A=require("../../../utils/json2css.js"),N=require("./module/FloorGaoGuang.js"),E=require("./module/FloorRotateBorder.js"),W=require("./module/FloorGridRipple.js"),Q=require("./module/MapMirror.js"),$=require("./module/Timeline.js"),U=require("./module/Particles.js"),B=require("./map/utils.js"),V=require("./module/Environment.js");s.BufferGeometry.prototype.computeBoundsTree=D.computeBoundsTree;s.BufferGeometry.prototype.disposeBoundsTree=D.disposeBoundsTree;s.Mesh.prototype.raycast=D.acceleratedRaycast;s.Sprite.prototype.raycast=D.acceleratedRaycast;class X extends R.Mini3d{constructor(e,t,a,o){super(e,t,a);n(this,"pointCenter");n(this,"depth");n(this,"toastLoading");n(this,"sceneGroup");n(this,"assets");n(this,"mainSceneGroup");n(this,"childSceneGroup");n(this,"allAreaLabel");n(this,"areaLabelGroup");n(this,"label3d");n(this,"rotateBorder1");n(this,"rotateBorder2");n(this,"mapBoxHelper");n(this,"quan");n(this,"areaMapGroup");n(this,"provinceMesh");n(this,"provinceLineMaterial");n(this,"areaMapTopMaterial");n(this,"areaMapSideMaterial");n(this,"childMap");n(this,"groundMirror");n(this,"particles");n(this,"barGroup");n(this,"barGuangQuanGroup");n(this,"allBar");n(this,"allBarMaterial");n(this,"allBarGuangquan");n(this,"allBarLabel");n(this,"allScatterLabel");n(this,"barLabelGroup");n(this,"scatterLabelGroup");n(this,"pathLine");n(this,"pathLineTexture");n(this,"gaoguangMesh");n(this,"gridRippleGroup");n(this,"diffuseShader");n(this,"scale",1);n(this,"datasource",{});n(this,"flyLineGroup");n(this,"allFlyLine");n(this,"hoverAreaMap");n(this,"raycasterMousemove");n(this,"clientRect");n(this,"mouse");n(this,"isMousedown");n(this,"isMapAnimationSuccess");n(this,"mapBackgroundImgMesh");n(this,"mapBackgroundImgMaterial");n(this,"mapJsonData");n(this,"allRegionalLevel");n(this,"axesHelper");this.option=a,this.onCallBack=o,this.pointCenter=t.geoProjectionCenter,this.depth=this.option.map.depth,this.option.scene.isBackground!==!1&&(this.scene.background=new s.Color(this.option.scene.background||"#000000")),this.camera.instance.position.set(this.option.camera.position.x+(a.scene.translateX||0),this.option.camera.position.y+(a.scene.translateY||0)+200,this.option.camera.position.z+(a.scene.translateZ||0)),this.camera.instance.near=1,this.camera.instance.far=1e4,this.camera.instance.updateProjectionMatrix(),this.option.camera.target&&this.camera.controls.target.set(this.option.camera.target[0]+(a.scene.translateX||0),this.option.camera.target[1]+(a.scene.translateY||0),this.option.camera.target[2]+(a.scene.translateZ||0)),this.hoverAreaMap=null,this.clickMapObj=null,this.axesHelper=new s.AxesHelper(100),this.axesHelper.visible=this.option.debugger,this.scene.add(this.axesHelper),this.raycasterMousemove=new s.Raycaster,this.clientRect=this.renderer.instance.domElement.getBoundingClientRect(),this.mouse=new s.Vector2,this.isMousedown=!1,this.isMapAnimationSuccess=!1,V.createEnvironment(this,this.option.light,this.option.debugger),this.toastLoading=new z.ToastLoading,this.assets=new O.Assets(()=>{this.mapBoxHelper=null,this.sceneGroup=new s.Group,this.mainSceneGroup=new s.Group,this.childSceneGroup=new s.Group,this.mapTitleLabel=null,this.mapTitleLableGroup=new s.Group,this.areaMapGroup=new s.Group,this.allAreaLabel=[],this.areaLabelGroup=new s.Group,this.allBar=[],this.allBarLabel=[],this.allBarMaterial=[],this.allBarGuangquan=[],this.barGroup=new s.Group,this.barLabelGroup=new s.Group,this.barGuangQuanGroup=new s.Group,this.allScatterLabel=[],this.scatterLabelGroup=new s.Group,this.flyLineGroup=new s.Group,this.flyLineLabelGroup=new s.Group,this.allFlyLine=[],this.allFlyLineLabel=[],this.allRegionalLevel=[],this.label3d=new C.Label3d(this),this.mainSceneGroup.rotateX(-Math.PI/2),this.mainSceneGroup.add(this.areaLabelGroup,this.areaMapGroup,this.mapTitleLableGroup),this.sceneGroup.add(this.mainSceneGroup,this.childSceneGroup),this.scene.add(this.sceneGroup),this.createAreaMapModel(()=>{this.createAreaMapStorke(this.option.map.storkeAnimation,!0).then(()=>{this.time.on("tick",i=>{this.pathLineTexture&&(this.pathLineTexture.offset.x+=this.option.map.storkeAnimation.speed*i)}),U.createParticles(this,this.option.particle),N.createFloorGaoGuang(this,this.option.floor.gaoguang,this.option.floor.quan),E.createFloorRotateBorder(this,this.option.floor.rotateBorder),W.createFloorGridRipple(this,this.option.floor.gridRipple),this.time.on("tick",i=>{this.diffuseShader.pointShader&&(this.diffuseShader.pointShader.uniforms.uTime.value+=i,this.diffuseShader.pointShader.uniforms.uTime.value>600/this.option.floor.gridRipple.diffuseSpeed&&(this.diffuseShader.pointShader.uniforms.uTime.value=0))}),this.createMapBackgroundImg(),this.canvas.addEventListener("mousemove",this.handleHoverAreaMap.bind(this),!1),this.canvas.addEventListener("mousedown",this.handleMapMousedown.bind(this),!1),this.canvas.addEventListener("mouseup",this.handleMapMouseup.bind(this),!1);try{this.onCallBack.onMapSuccess()}catch{}$.createTimeLine(this,this.option)})})},{topMap:this.option.map.topMaterial.map,topNormal:this.option.map.topMaterial.normalMap,sideMap:this.option.map.sideMaterial.map,pathLine:this.option.map.storkeAnimation.texture,gridRippleMap:this.option.floor.gridRipple.map,gridRippleAlphaMap:this.option.floor.gridRipple.alphaMap,rotateBorder1Map:this.option.floor.rotateBorder.rotateBorder1.map,rotateBorder2Map:this.option.floor.rotateBorder.rotateBorder2.map})}createMapBackgroundImg(e=!0){try{const t=this.scene.getObjectByName("MapBackgroundImgMesh");if(t&&this.scene.remove(t),this.option.map.backgroundImg&&this.option.map.backgroundImg.show){const{src:a,alphaMap:o,color:i,opacity:r,rotation:l,position:p,scale:c}=this.option.map.backgroundImg,h=new s.PlaneGeometry(500,500),u=new s.TextureLoader().load(a);u.encoding=s.sRGBEncoding;const d=a?{map:u}:{},m=new s.TextureLoader().load(o),M=o?{alphaMap:m}:{};this.mapBackgroundImgMaterial=new s.MeshBasicMaterial({...d,...M,color:i,transparent:!0,opacity:e?0:r,side:s.DoubleSide}),u.wrapS=u.wrapT=s.RepeatWrapping,this.mapBackgroundImgMesh=new s.Mesh(h,this.mapBackgroundImgMaterial),this.mapBackgroundImgMesh.rotation.x=l[0]*(Math.PI/180),this.mapBackgroundImgMesh.rotation.y=l[1]*(Math.PI/180),this.mapBackgroundImgMesh.rotation.z=l[2]*(Math.PI/180),this.mapBackgroundImgMesh.position.x=p[0],this.mapBackgroundImgMesh.position.y=p[1],this.mapBackgroundImgMesh.position.z=p[2],this.mapBackgroundImgMesh.scale.x=c[0],this.mapBackgroundImgMesh.scale.y=c[1],this.mapBackgroundImgMesh.scale.z=c[2],this.mapBackgroundImgMesh.name="MapBackgroundImgMesh",this.scene.add(this.mapBackgroundImgMesh)}}catch{}}createAreaMapModel(e){this.createArea(t=>{this.provinceMesh=t,this.createMapTitleLabel(this.mapTitleLableGroup),t.setParent(this.areaMapGroup),this.areaMapGroup.position.set(0,0,-5),this.areaMapGroup.scale.set(1,1,0),this.areaMapGroup.visible=!1,this.createAreaLabel(this.areaData,this.areaLabelGroup),Q.createMirror(this),e(!0)})}createArea(e){const t=a=>{this.mapJsonData=a,this.provinceLineMaterial=new s.LineBasicMaterial({color:new s.Color(this.option.map.lineColor||"#000000"),transparent:!0});let[o,i]=this.createProvinceMaterial(this.option.map.topMaterial,this.option.map.sideMaterial);this.areaMapTopMaterial=o,this.areaMapSideMaterial=i;let r=new H.ExtrudeMap(this,{center:this.pointCenter,position:new s.Vector3(0,0,.06),data:a,depth:this.depth,topFaceMaterial:this.areaMapTopMaterial,sideMaterial:this.areaMapSideMaterial,lineMaterial:this.provinceLineMaterial,renderOrder:9});this.option.scene.defaultMapAdcode!==1e5&&B.setScaleArea(this,r),this.areaData=r.coordinates,this.time.on("tick",()=>{i.map&&(i.map.offset.y+=.002)});const l=T.getBoundBox(r.mapGroup);this.mapBoxHelper=new s.Box3Helper(l.box3,new s.Color("#ffffff")),this.mapBoxHelper.rotation.x=Math.PI/2,this.mapBoxHelper.visible=this.option.debugger,this.mapBoxHelper.name="mapBoxHelper",this.scene.add(this.mapBoxHelper),r.mapGroup.children.map((p,c)=>{p.children.map(h=>{h.type==="Mesh"&&B.calcUv2(h.geometry,l.boxSize.x,l.boxSize.y,l.box3.min.x,l.box3.min.y)})}),e&&e(r)};this.option.scene.defaultMapAdcode&&this.option.scene.defaultMapAdcode!==1&&B.getMapDataByAdcode(this.option.scene.defaultMapAdcode,a=>t(a)),this.option.scene.defaultMapAdcode&&this.option.scene.defaultMapAdcode===1&&this.option.scene.geojson&&B.getMapDataByUrl(this.option.scene.geojson,a=>t(a))}createAreaMapStorke(e,t=!0){return new Promise((a,o)=>{if(this.option.scene.defaultMapAdcode===1){a(!0);return}try{const i=this.mainSceneGroup.getObjectByName("PathLine");i&&this.mainSceneGroup.remove(i);let r=B.getTextureResource(this,"pathLine",e.texture,"texture");if(v.isEmpty(r))a(!0);else{let l=r.texture;l.wrapS=l.wrapT=s.RepeatWrapping,l.repeat.set(1,1),this.pathLineTexture=l,B.getMapDataByAdcode2(this.option.scene.defaultMapAdcode,p=>{try{if(p){p=JSON.parse(p);let c=p.features.map(d=>({geometry:d.geometry})),h=new P.PathLine(this,{data:c,texture:l,renderOrder:21,speed:e.speed,radius:e.radius/this.scale,segments:e.segments||2560,radialSegments:4,material:new s.MeshBasicMaterial({color:new s.Color(e.color||"#2bc4dc"),map:l,alphaMap:l,fog:!1,transparent:!0,opacity:t?0:1,blending:s.AdditiveBlending})});h.instance.name="PathLine";const u=this.mainSceneGroup.getObjectByName("PathLine");if(u&&this.mainSceneGroup.remove(u),h.setParent(this.mainSceneGroup),this.boundBox){h.instance.scale.set(this.scale,this.scale,this.scale);const d=this.boundBox;h.instance.position.x=-d.center.x,h.instance.position.y=-d.center.y}h.instance.position.z=this.depth+.38+(e.top||0),this.pathLine=h}}catch{}finally{a(!0)}})}}catch{a(!0)}})}createAreaLabel(e,t){const a=(o,i,r)=>{let l=this.label3d.create("","area-label",!0);return l.init(`<p class="label">${o.name}</p>`,r),this.label3d.setLabelStyle(l,.08/this.scale,"x"),l.setParent(t),l.userData.adcode=o.adcode,l.userData.position=[r.x,r.y,r.z],l};e.map((o,i)=>{if(o.name&&o.centroid&&o.adcode){let[r,l]=this.geoProjection(o.centroid),p=a(o,i,new s.Vector3(r,-l,this.depth+2));this.allAreaLabel.push(p)}}),this.option.scene.defaultMapAdcode!==1e5&&this.setAreaLabelScale(),this.setAreaLabelStyle(this.option.map.arealabel)}createMapTitleLabel(e){if(this.option.scene.defaultMapAdcode!==1e5&&this.option.scene.defaultMapAdcode!==1){let t=T.getBoundBox(this.provinceMesh.mapGroup);const a=this.option.map.titleLabel&&this.option.map.titleLabel.gaodeAPI||"",o=`https://restapi.amap.com/v3/config/district?keywords=${this.option.scene.defaultMapAdcode}&subdistrict=0&key=${a}`;fetch(o).then(i=>i.text()).then(i=>{try{const r=JSON.parse(i);if(r.status==="1"&&r.districts.length>0){const l=this.option.map.titleLabel&&this.option.map.titleLabel.offsetX||0,p=this.option.map.titleLabel&&this.option.map.titleLabel.offsetY||2,c=d=>{let m=this.label3d.create("","map-label",!1);return m.init(`<div class="other-label"><span class="title">${d.name}</span><span>${d.enName}</span></div>`,new s.Vector3(t.center.x/this.scale+l,(t.center.y-t.boxSize.y/2-p)/this.scale,.4)),this.label3d.setLabelStyle(m,.115/this.scale,"x"),m.setParent(e),m},h=q.pinyin(r.districts[0].name.slice(0,-1),{toneType:"none",separator:""}).toUpperCase();this.mapTitleLabel=c({name:r.districts[0].name,enName:h+" "+r.districts[0].level.toUpperCase()}),this.mapTitleLableGroup.scale.set(this.scale,this.scale,this.scale);let u=(this.depth+.4)/this.scale;this.mapTitleLabel.position.z=u,this.mapTitleLabel.position.y-=1.5/this.scale,this.setMapTitleLabelStyle(this.option.map.titleLabel)}}catch{}}).catch(i=>{})}}setMapTitleLabelStyle(e){if(e){A.autoInstallFont(e.fontFamily);const t=this.mapTitleLabel.element.querySelector(".map-label>.other-label");e.show?t.style.opacity=1:t.style.opacity=0,t.style.fontSize=e.fontSize+"px",t.style.fontFamily=e.fontFamily,t.style.color=e.color}else this.mapTitleLabel.element.style.opacity=0}setAreaLabelScale(){this.areaLabelGroup.scale.set(this.scale,this.scale,this.scale);const e=this.boundBox;this.areaLabelGroup.position.x=-e.center.x,this.areaLabelGroup.position.y=-e.center.y,this.allAreaLabel.map(t=>{let a=(this.depth+.4)/this.scale;t.position.z=a,t.position.y-=1.5/this.scale,t.userData.position=[t.position.x,t.position.y,t.position.z]})}setAreaLabelStyle(e){e&&(A.autoInstallFont(e.fontFamily),this.allAreaLabel.map((t,a)=>{const o=t.element.querySelector(".area-label>p.label");e.show?o.style.opacity=1:o.style.opacity=0,o.style.fontSize=e.fontSize+"px",o.style.fontFamily=e.fontFamily,o.style.color=e.color}))}setAreaLabelMove(e,t="up"){this.allAreaLabel.map(a=>{if(a.userData.adcode===e){const o=a.userData.position[2]+(this.depth/2+.3)/this.scale,i=a.userData.position[2];f.to(a.position,{duration:.3,z:t==="up"?o:i})}})}createProvinceMaterial(e,t){let a=B.getTextureResource(this,"topMap",e.map,"map"),o=B.getTextureResource(this,"topNormal",e.normalMap,"normalMap"),i=new s.MeshStandardMaterial({...a,...o,color:new s.Color(e.color||"#061e47"),emissive:new s.Color(e.emissive||"#000000"),transparent:!0,opacity:e.opacity}),r=B.getTextureResource(this,"sideMap",t.map,"map");v.isEmpty(r)||(r.map.repeat.set(1,.2),r.map.offset.y+=.01);let l=new s.MeshStandardMaterial({...r,color:new s.Color(t.color||"#061e47"),transparent:!0,opacity:t.opacity,side:s.DoubleSide});return[i,l]}createBar(e,t,a=!0,o=!1){if(!(!a&&(t=this.datasource[e._sourceId],!t))&&(a||(this.barGroup.remove(...this.barGroup.children.filter(i=>i.name==="bar-"+e.id)),this.barGuangQuanGroup.remove(...this.barGuangQuanGroup.children.filter(i=>i.name==="bar-"+e.id)),this.barLabelGroup.remove(...this.barLabelGroup.children.filter(i=>i.name==="bar-"+e.id)),this.allBar=this.allBar.filter(i=>i.name!=="bar-"+e.id),this.allBarLabel=this.allBarLabel.filter(i=>i.name!=="bar-"+e.id),this.allBarMaterial=this.allBarMaterial.filter(i=>i.name!=="bar-"+e.id),this.allBarGuangquan=this.allBarGuangquan.filter(i=>i.name!=="bar-"+e.id)),t&&v.isArray(t)&&t.length>0))try{if(this.datasource[e._sourceId]=t,!e.isHide){const i=(c,h,u)=>{let d=e.format;try{const M=e.format.match(/\{(.*?)}/g);if(M)for(let y=0;y<M.length;y++)d=d.replaceAll(M[y],c[M[y].slice(1,-1)])}catch{}let m=this.label3d.create("","bar-label bar-"+e.id,!0);return m.init(`
|
|
1
|
+
"use strict";var F=Object.defineProperty;var j=(S,w,e)=>w in S?F(S,w,{enumerable:!0,configurable:!0,writable:!0,value:e}):S[w]=e;var n=(S,w,e)=>j(S,typeof w!="symbol"?w+"":w,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("three"),D=require("three-mesh-bvh"),q=require("pinyin-pro"),R=require("./mini3d/core/index.js");require("three/examples/jsm/loaders/GLTFLoader");require("three/examples/jsm/loaders/DRACOLoader.js");const T=require("./mini3d/utils/utils.js");require("three/examples/jsm/libs/lil-gui.module.min");require("three/examples/jsm/utils/BufferGeometryUtils");const C=require("./mini3d/components/Label3d.js"),I=require("./mini3d/components/FlyLine.js"),z=require("./mini3d/components/ToastLoading.js"),P=require("./mini3d/components/PathLine.js"),O=require("./map/assets.js"),H=require("./map/extrudeMap.js"),f=require("gsap"),v=require("lodash"),A=require("../../../commons/utils/json2css.js"),N=require("./module/FloorGaoGuang.js"),E=require("./module/FloorRotateBorder.js"),W=require("./module/FloorGridRipple.js"),Q=require("./module/MapMirror.js"),$=require("./module/Timeline.js"),U=require("./module/Particles.js"),B=require("./map/utils.js"),V=require("./module/Environment.js");s.BufferGeometry.prototype.computeBoundsTree=D.computeBoundsTree;s.BufferGeometry.prototype.disposeBoundsTree=D.disposeBoundsTree;s.Mesh.prototype.raycast=D.acceleratedRaycast;s.Sprite.prototype.raycast=D.acceleratedRaycast;class X extends R.Mini3d{constructor(e,t,a,o){super(e,t,a);n(this,"pointCenter");n(this,"depth");n(this,"toastLoading");n(this,"sceneGroup");n(this,"assets");n(this,"mainSceneGroup");n(this,"childSceneGroup");n(this,"allAreaLabel");n(this,"areaLabelGroup");n(this,"label3d");n(this,"rotateBorder1");n(this,"rotateBorder2");n(this,"mapBoxHelper");n(this,"quan");n(this,"areaMapGroup");n(this,"provinceMesh");n(this,"provinceLineMaterial");n(this,"areaMapTopMaterial");n(this,"areaMapSideMaterial");n(this,"childMap");n(this,"groundMirror");n(this,"particles");n(this,"barGroup");n(this,"barGuangQuanGroup");n(this,"allBar");n(this,"allBarMaterial");n(this,"allBarGuangquan");n(this,"allBarLabel");n(this,"allScatterLabel");n(this,"barLabelGroup");n(this,"scatterLabelGroup");n(this,"pathLine");n(this,"pathLineTexture");n(this,"gaoguangMesh");n(this,"gridRippleGroup");n(this,"diffuseShader");n(this,"scale",1);n(this,"datasource",{});n(this,"flyLineGroup");n(this,"allFlyLine");n(this,"hoverAreaMap");n(this,"raycasterMousemove");n(this,"clientRect");n(this,"mouse");n(this,"isMousedown");n(this,"isMapAnimationSuccess");n(this,"mapBackgroundImgMesh");n(this,"mapBackgroundImgMaterial");n(this,"mapJsonData");n(this,"allRegionalLevel");n(this,"axesHelper");this.option=a,this.onCallBack=o,this.pointCenter=t.geoProjectionCenter,this.depth=this.option.map.depth,this.option.scene.isBackground!==!1&&(this.scene.background=new s.Color(this.option.scene.background||"#000000")),this.camera.instance.position.set(this.option.camera.position.x+(a.scene.translateX||0),this.option.camera.position.y+(a.scene.translateY||0)+200,this.option.camera.position.z+(a.scene.translateZ||0)),this.camera.instance.near=1,this.camera.instance.far=1e4,this.camera.instance.updateProjectionMatrix(),this.option.camera.target&&this.camera.controls.target.set(this.option.camera.target[0]+(a.scene.translateX||0),this.option.camera.target[1]+(a.scene.translateY||0),this.option.camera.target[2]+(a.scene.translateZ||0)),this.hoverAreaMap=null,this.clickMapObj=null,this.axesHelper=new s.AxesHelper(100),this.axesHelper.visible=this.option.debugger,this.scene.add(this.axesHelper),this.raycasterMousemove=new s.Raycaster,this.clientRect=this.renderer.instance.domElement.getBoundingClientRect(),this.mouse=new s.Vector2,this.isMousedown=!1,this.isMapAnimationSuccess=!1,V.createEnvironment(this,this.option.light,this.option.debugger),this.toastLoading=new z.ToastLoading,this.assets=new O.Assets(()=>{this.mapBoxHelper=null,this.sceneGroup=new s.Group,this.mainSceneGroup=new s.Group,this.childSceneGroup=new s.Group,this.mapTitleLabel=null,this.mapTitleLableGroup=new s.Group,this.areaMapGroup=new s.Group,this.allAreaLabel=[],this.areaLabelGroup=new s.Group,this.allBar=[],this.allBarLabel=[],this.allBarMaterial=[],this.allBarGuangquan=[],this.barGroup=new s.Group,this.barLabelGroup=new s.Group,this.barGuangQuanGroup=new s.Group,this.allScatterLabel=[],this.scatterLabelGroup=new s.Group,this.flyLineGroup=new s.Group,this.flyLineLabelGroup=new s.Group,this.allFlyLine=[],this.allFlyLineLabel=[],this.allRegionalLevel=[],this.label3d=new C.Label3d(this),this.mainSceneGroup.rotateX(-Math.PI/2),this.mainSceneGroup.add(this.areaLabelGroup,this.areaMapGroup,this.mapTitleLableGroup),this.sceneGroup.add(this.mainSceneGroup,this.childSceneGroup),this.scene.add(this.sceneGroup),this.createAreaMapModel(()=>{this.createAreaMapStorke(this.option.map.storkeAnimation,!0).then(()=>{this.time.on("tick",i=>{this.pathLineTexture&&(this.pathLineTexture.offset.x+=this.option.map.storkeAnimation.speed*i)}),U.createParticles(this,this.option.particle),N.createFloorGaoGuang(this,this.option.floor.gaoguang,this.option.floor.quan),E.createFloorRotateBorder(this,this.option.floor.rotateBorder),W.createFloorGridRipple(this,this.option.floor.gridRipple),this.time.on("tick",i=>{this.diffuseShader.pointShader&&(this.diffuseShader.pointShader.uniforms.uTime.value+=i,this.diffuseShader.pointShader.uniforms.uTime.value>600/this.option.floor.gridRipple.diffuseSpeed&&(this.diffuseShader.pointShader.uniforms.uTime.value=0))}),this.createMapBackgroundImg(),this.canvas.addEventListener("mousemove",this.handleHoverAreaMap.bind(this),!1),this.canvas.addEventListener("mousedown",this.handleMapMousedown.bind(this),!1),this.canvas.addEventListener("mouseup",this.handleMapMouseup.bind(this),!1);try{this.onCallBack.onMapSuccess()}catch{}$.createTimeLine(this,this.option)})})},{topMap:this.option.map.topMaterial.map,topNormal:this.option.map.topMaterial.normalMap,sideMap:this.option.map.sideMaterial.map,pathLine:this.option.map.storkeAnimation.texture,gridRippleMap:this.option.floor.gridRipple.map,gridRippleAlphaMap:this.option.floor.gridRipple.alphaMap,rotateBorder1Map:this.option.floor.rotateBorder.rotateBorder1.map,rotateBorder2Map:this.option.floor.rotateBorder.rotateBorder2.map})}createMapBackgroundImg(e=!0){try{const t=this.scene.getObjectByName("MapBackgroundImgMesh");if(t&&this.scene.remove(t),this.option.map.backgroundImg&&this.option.map.backgroundImg.show){const{src:a,alphaMap:o,color:i,opacity:r,rotation:l,position:p,scale:c}=this.option.map.backgroundImg,h=new s.PlaneGeometry(500,500),u=new s.TextureLoader().load(a);u.encoding=s.sRGBEncoding;const d=a?{map:u}:{},m=new s.TextureLoader().load(o),M=o?{alphaMap:m}:{};this.mapBackgroundImgMaterial=new s.MeshBasicMaterial({...d,...M,color:i,transparent:!0,opacity:e?0:r,side:s.DoubleSide}),u.wrapS=u.wrapT=s.RepeatWrapping,this.mapBackgroundImgMesh=new s.Mesh(h,this.mapBackgroundImgMaterial),this.mapBackgroundImgMesh.rotation.x=l[0]*(Math.PI/180),this.mapBackgroundImgMesh.rotation.y=l[1]*(Math.PI/180),this.mapBackgroundImgMesh.rotation.z=l[2]*(Math.PI/180),this.mapBackgroundImgMesh.position.x=p[0],this.mapBackgroundImgMesh.position.y=p[1],this.mapBackgroundImgMesh.position.z=p[2],this.mapBackgroundImgMesh.scale.x=c[0],this.mapBackgroundImgMesh.scale.y=c[1],this.mapBackgroundImgMesh.scale.z=c[2],this.mapBackgroundImgMesh.name="MapBackgroundImgMesh",this.scene.add(this.mapBackgroundImgMesh)}}catch{}}createAreaMapModel(e){this.createArea(t=>{this.provinceMesh=t,this.createMapTitleLabel(this.mapTitleLableGroup),t.setParent(this.areaMapGroup),this.areaMapGroup.position.set(0,0,-5),this.areaMapGroup.scale.set(1,1,0),this.areaMapGroup.visible=!1,this.createAreaLabel(this.areaData,this.areaLabelGroup),Q.createMirror(this),e(!0)})}createArea(e){const t=a=>{this.mapJsonData=a,this.provinceLineMaterial=new s.LineBasicMaterial({color:new s.Color(this.option.map.lineColor||"#000000"),transparent:!0});let[o,i]=this.createProvinceMaterial(this.option.map.topMaterial,this.option.map.sideMaterial);this.areaMapTopMaterial=o,this.areaMapSideMaterial=i;let r=new H.ExtrudeMap(this,{center:this.pointCenter,position:new s.Vector3(0,0,.06),data:a,depth:this.depth,topFaceMaterial:this.areaMapTopMaterial,sideMaterial:this.areaMapSideMaterial,lineMaterial:this.provinceLineMaterial,renderOrder:9});this.option.scene.defaultMapAdcode!==1e5&&B.setScaleArea(this,r),this.areaData=r.coordinates,this.time.on("tick",()=>{i.map&&(i.map.offset.y+=.002)});const l=T.getBoundBox(r.mapGroup);this.mapBoxHelper=new s.Box3Helper(l.box3,new s.Color("#ffffff")),this.mapBoxHelper.rotation.x=Math.PI/2,this.mapBoxHelper.visible=this.option.debugger,this.mapBoxHelper.name="mapBoxHelper",this.scene.add(this.mapBoxHelper),r.mapGroup.children.map((p,c)=>{p.children.map(h=>{h.type==="Mesh"&&B.calcUv2(h.geometry,l.boxSize.x,l.boxSize.y,l.box3.min.x,l.box3.min.y)})}),e&&e(r)};this.option.scene.defaultMapAdcode&&this.option.scene.defaultMapAdcode!==1&&B.getMapDataByAdcode(this.option.scene.defaultMapAdcode,a=>t(a)),this.option.scene.defaultMapAdcode&&this.option.scene.defaultMapAdcode===1&&this.option.scene.geojson&&B.getMapDataByUrl(this.option.scene.geojson,a=>t(a))}createAreaMapStorke(e,t=!0){return new Promise((a,o)=>{if(this.option.scene.defaultMapAdcode===1){a(!0);return}try{const i=this.mainSceneGroup.getObjectByName("PathLine");i&&this.mainSceneGroup.remove(i);let r=B.getTextureResource(this,"pathLine",e.texture,"texture");if(v.isEmpty(r))a(!0);else{let l=r.texture;l.wrapS=l.wrapT=s.RepeatWrapping,l.repeat.set(1,1),this.pathLineTexture=l,B.getMapDataByAdcode2(this.option.scene.defaultMapAdcode,p=>{try{if(p){p=JSON.parse(p);let c=p.features.map(d=>({geometry:d.geometry})),h=new P.PathLine(this,{data:c,texture:l,renderOrder:21,speed:e.speed,radius:e.radius/this.scale,segments:e.segments||2560,radialSegments:4,material:new s.MeshBasicMaterial({color:new s.Color(e.color||"#2bc4dc"),map:l,alphaMap:l,fog:!1,transparent:!0,opacity:t?0:1,blending:s.AdditiveBlending})});h.instance.name="PathLine";const u=this.mainSceneGroup.getObjectByName("PathLine");if(u&&this.mainSceneGroup.remove(u),h.setParent(this.mainSceneGroup),this.boundBox){h.instance.scale.set(this.scale,this.scale,this.scale);const d=this.boundBox;h.instance.position.x=-d.center.x,h.instance.position.y=-d.center.y}h.instance.position.z=this.depth+.38+(e.top||0),this.pathLine=h}}catch{}finally{a(!0)}})}}catch{a(!0)}})}createAreaLabel(e,t){const a=(o,i,r)=>{let l=this.label3d.create("","area-label",!0);return l.init(`<p class="label">${o.name}</p>`,r),this.label3d.setLabelStyle(l,.08/this.scale,"x"),l.setParent(t),l.userData.adcode=o.adcode,l.userData.position=[r.x,r.y,r.z],l};e.map((o,i)=>{if(o.name&&o.centroid&&o.adcode){let[r,l]=this.geoProjection(o.centroid),p=a(o,i,new s.Vector3(r,-l,this.depth+2));this.allAreaLabel.push(p)}}),this.option.scene.defaultMapAdcode!==1e5&&this.setAreaLabelScale(),this.setAreaLabelStyle(this.option.map.arealabel)}createMapTitleLabel(e){if(this.option.scene.defaultMapAdcode!==1e5&&this.option.scene.defaultMapAdcode!==1){let t=T.getBoundBox(this.provinceMesh.mapGroup);const a=this.option.map.titleLabel&&this.option.map.titleLabel.gaodeAPI||"",o=`https://restapi.amap.com/v3/config/district?keywords=${this.option.scene.defaultMapAdcode}&subdistrict=0&key=${a}`;fetch(o).then(i=>i.text()).then(i=>{try{const r=JSON.parse(i);if(r.status==="1"&&r.districts.length>0){const l=this.option.map.titleLabel&&this.option.map.titleLabel.offsetX||0,p=this.option.map.titleLabel&&this.option.map.titleLabel.offsetY||2,c=d=>{let m=this.label3d.create("","map-label",!1);return m.init(`<div class="other-label"><span class="title">${d.name}</span><span>${d.enName}</span></div>`,new s.Vector3(t.center.x/this.scale+l,(t.center.y-t.boxSize.y/2-p)/this.scale,.4)),this.label3d.setLabelStyle(m,.115/this.scale,"x"),m.setParent(e),m},h=q.pinyin(r.districts[0].name.slice(0,-1),{toneType:"none",separator:""}).toUpperCase();this.mapTitleLabel=c({name:r.districts[0].name,enName:h+" "+r.districts[0].level.toUpperCase()}),this.mapTitleLableGroup.scale.set(this.scale,this.scale,this.scale);let u=(this.depth+.4)/this.scale;this.mapTitleLabel.position.z=u,this.mapTitleLabel.position.y-=1.5/this.scale,this.setMapTitleLabelStyle(this.option.map.titleLabel)}}catch{}}).catch(i=>{})}}setMapTitleLabelStyle(e){if(e){A.autoInstallFont(e.fontFamily);const t=this.mapTitleLabel.element.querySelector(".map-label>.other-label");e.show?t.style.opacity=1:t.style.opacity=0,t.style.fontSize=e.fontSize+"px",t.style.fontFamily=e.fontFamily,t.style.color=e.color}else this.mapTitleLabel.element.style.opacity=0}setAreaLabelScale(){this.areaLabelGroup.scale.set(this.scale,this.scale,this.scale);const e=this.boundBox;this.areaLabelGroup.position.x=-e.center.x,this.areaLabelGroup.position.y=-e.center.y,this.allAreaLabel.map(t=>{let a=(this.depth+.4)/this.scale;t.position.z=a,t.position.y-=1.5/this.scale,t.userData.position=[t.position.x,t.position.y,t.position.z]})}setAreaLabelStyle(e){e&&(A.autoInstallFont(e.fontFamily),this.allAreaLabel.map((t,a)=>{const o=t.element.querySelector(".area-label>p.label");e.show?o.style.opacity=1:o.style.opacity=0,o.style.fontSize=e.fontSize+"px",o.style.fontFamily=e.fontFamily,o.style.color=e.color}))}setAreaLabelMove(e,t="up"){this.allAreaLabel.map(a=>{if(a.userData.adcode===e){const o=a.userData.position[2]+(this.depth/2+.3)/this.scale,i=a.userData.position[2];f.to(a.position,{duration:.3,z:t==="up"?o:i})}})}createProvinceMaterial(e,t){let a=B.getTextureResource(this,"topMap",e.map,"map"),o=B.getTextureResource(this,"topNormal",e.normalMap,"normalMap"),i=new s.MeshStandardMaterial({...a,...o,color:new s.Color(e.color||"#061e47"),emissive:new s.Color(e.emissive||"#000000"),transparent:!0,opacity:e.opacity}),r=B.getTextureResource(this,"sideMap",t.map,"map");v.isEmpty(r)||(r.map.repeat.set(1,.2),r.map.offset.y+=.01);let l=new s.MeshStandardMaterial({...r,color:new s.Color(t.color||"#061e47"),transparent:!0,opacity:t.opacity,side:s.DoubleSide});return[i,l]}createBar(e,t,a=!0,o=!1){if(!(!a&&(t=this.datasource[e._sourceId],!t))&&(a||(this.barGroup.remove(...this.barGroup.children.filter(i=>i.name==="bar-"+e.id)),this.barGuangQuanGroup.remove(...this.barGuangQuanGroup.children.filter(i=>i.name==="bar-"+e.id)),this.barLabelGroup.remove(...this.barLabelGroup.children.filter(i=>i.name==="bar-"+e.id)),this.allBar=this.allBar.filter(i=>i.name!=="bar-"+e.id),this.allBarLabel=this.allBarLabel.filter(i=>i.name!=="bar-"+e.id),this.allBarMaterial=this.allBarMaterial.filter(i=>i.name!=="bar-"+e.id),this.allBarGuangquan=this.allBarGuangquan.filter(i=>i.name!=="bar-"+e.id)),t&&v.isArray(t)&&t.length>0))try{if(this.datasource[e._sourceId]=t,!e.isHide){const i=(c,h,u)=>{let d=e.format;try{const M=e.format.match(/\{(.*?)}/g);if(M)for(let y=0;y<M.length;y++)d=d.replaceAll(M[y],c[M[y].slice(1,-1)])}catch{}let m=this.label3d.create("","bar-label bar-"+e.id,!0);return m.init(`
|
|
2
2
|
<div class="wrap">
|
|
3
3
|
<span class="label">${d}</span>
|
|
4
4
|
<span class="unit">${e.label.unit||""}</span>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),l=require("../../utils/install.js"),e=l.withInstall(t.default);exports.ZvSceneUeIframe=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),l=require("../../commons/utils/install.js"),e=l.withInstall(t.default);exports.ZvSceneUeIframe=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-a0eceb2b"]]);exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),l={class:"iframe-webscoket"},w=["src"],u=o.defineComponent({name:"zv-scene-ue-iframe"}),E=o.defineComponent({...u,props:{basicOption:{},sources:{},useEvents:{},uuid:{},isPreview:{type:Boolean}},emits:["ue-scoket-on-message"],setup(i,{emit:m}){const c=i,S=m;return(t=>{let n=0,r;const a=()=>{window.SHJSceneUEIframeWebscoket&&(window.SHJSceneUEIframeWebscoket.onclose=null,window.SHJSceneUEIframeWebscoket.close()),window.SHJSceneUEIframeWebscoket=new WebSocket(t.webSocketUrl),window.SHJSceneUEIframeWebscoket.onmessage=s=>{try{const e=JSON.parse(s.data);if(e.type==="ping")return;if(!e.data)throw new Error("数据格式异常");S("ue-scoket-on-message",e.data),window.SHJParseEvent(c.useEvents,"ue-scoket-on-message",e.data)}catch{}},window.SHJSceneUEIframeWebscoket.onopen=()=>{n=0,clearTimeout(r)},window.SHJSceneUEIframeWebscoket.onerror=()=>{},window.SHJSceneUEIframeWebscoket.onclose=s=>{const e=3e3*Math.pow(2,n);r=setTimeout(()=>{n<1/0&&(n++,a())},e)}};o.onMounted(()=>{if(t.webSocketUrl)try{a()}catch{}}),o.onBeforeUnmount(()=>{window.SHJSceneUEIframeWebscoket&&window.SHJSceneUEIframeWebscoket.close()})})(c.basicOption),(t,d)=>(o.openBlock(),o.createElementBlock("div",l,[o.createElementVNode("iframe",{src:t.basicOption.iframeUrl,sandbox:"allow-scripts allow-same-origin",style:{width:"100%",height:"100%",border:"0"}},null,8,w)]))}});exports.default=E;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),l=require("../../utils/install.js"),e=l.withInstall(t.default);exports.ZvSceneUeShj=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),l=require("../../commons/utils/install.js"),e=l.withInstall(t.default);exports.ZvSceneUeShj=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),n=require("../../utils/install.js"),e=n.withInstall(t.default);exports.ZvSceneUnityIframe=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),n=require("../../commons/utils/install.js"),e=n.withInstall(t.default);exports.ZvSceneUnityIframe=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),l=require("../../utils/install.js"),e=l.withInstall(t.default);exports.ZvSceneUnityWebgl=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),l=require("../../commons/utils/install.js"),e=l.withInstall(t.default);exports.ZvSceneUnityWebgl=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),l=require("../../utils/install.js"),e=l.withInstall(t.default);exports.ZvSceneVr=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),l=require("../../commons/utils/install.js"),e=l.withInstall(t.default);exports.ZvSceneVr=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),l=require("../../utils/install.js"),e=l.withInstall(t.default);exports.ZvTextCarousel=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),l=require("../../commons/utils/install.js"),e=l.withInstall(t.default);exports.ZvTextCarousel=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-af559243"]]);exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),r=require("../../utils/json2css.js"),u={class:"text-carousel"},s=["text","ztitle"],
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),r=require("../../commons/utils/json2css.js"),u={class:"text-carousel"},s=["text","ztitle"],c=t.defineComponent({name:"zv-text-carousel"}),d=t.defineComponent({...c,props:{basicOption:{},sources:{}},setup(p){t.useCssVars(o=>({ac059ce8:o.basicOption.animation+"s","62e7f995":o.basicOption.gap+"px"}));const i=()=>({rendererDomStyle:e=>{r.autoInstallFont(e.fontFamily);const n={};e.color&&e.color.includes("linear-gradient")&&(n.backgroundImage=e.color,n["-webkit-background-clip"]="text",n.color="transparent");const l={};return e.textAlign==="left"&&(e.justifyContent="flex-start"),e.textAlign==="center"&&(e.justifyContent="center"),e.textAlign==="right"&&(e.justifyContent="flex-end"),{...r.jsonToCssStyle(e),...n,...l,...e.textShadow.show?{"--text-shadow":`${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}`}:{}}}}),{rendererDomStyle:a}=i();return(o,e)=>(t.openBlock(),t.createElementBlock("div",u,[t.createElementVNode("p",{class:"words",text:o.basicOption.value,style:t.normalizeStyle(t.unref(a)(o.basicOption.css)),ztitle:o.basicOption.value},t.toDisplayString(o.basicOption.value),13,s)]))}});exports.default=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),n=require("../../utils/install.js"),e=n.withInstall(t.default);exports.ZvTextCountDown=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),n=require("../../commons/utils/install.js"),e=n.withInstall(t.default);exports.ZvTextCountDown=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-e5c184aa"]]);exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),g=require("../../utils/json2css.js"),x=["ztitle"],k=["ztitle"],T=["ztitle"],C=n.defineComponent({name:"zv-text-count-down"}),H=n.defineComponent({...C,props:{basicOption:{},useEvents:{}},emits:["on-end","on-start"],setup(y,{expose:M,emit:D}){const m=D,S=window.requestAnimationFrame,o=y,h=n.ref(0),l=n.ref(0),a=n.computed(()=>({showMillisecond:o.basicOption.conf.format.includes("SSS"),showYear:o.basicOption.conf.format.includes("Y"),showMonth:o.basicOption.conf.format.includes("M"),showDay:o.basicOption.conf.format.includes("D"),showHour:o.basicOption.conf.format.includes("H"),showMinute:o.basicOption.conf.format.includes("m"),showSecond:o.basicOption.conf.format.includes("s")}));function i(e){return e<10?"0"+e:String(e)}function b(e){if(e===null)return"--";let t=o.basicOption.conf.format,r=0;a.value.showMillisecond&&(r=e%1e3,t=t.replace("SSS","0".repeat(3-String(r).length)+r)),e=Math.floor(e/1e3);let c=0;a.value.showYear?(c=Math.floor(e/(60*60*24*30*12)),t=t.includes("YY")?t.replace("YY",i(c)):t.replace("Y",String(c))):c=0;let u=0;a.value.showMonth?(e=e-c*60*60*24*30*12,u=Math.floor(e/(60*60*24*30)),t=t.includes("MM")?t.replace("MM",i(u)):t.replace("M",String(u))):u=0;let f=0;a.value.showDay?(e=e-u*60*60*24*30,f=Math.floor(e/(60*60*24)),t=t.includes("DD")?t.replace("DD",i(f)):t.replace("D",String(f))):f=0;let p=0;a.value.showHour?(e=e-f*60*60*24,p=Math.floor(e/(60*60)),t=t.includes("HH")?t.replace("HH",i(p)):t.replace("H",String(p))):p=0;let d=0;a.value.showMinute?(e=e-p*60*60,d=Math.floor(e/60),t=t.includes("mm")?t.replace("mm",i(d)):t.replace("m",String(d))):d=0;let v=0;return a.value.showSecond&&(v=e-d*60,t=t.includes("ss")?t.replace("ss",i(v)):t.replace("s",String(v))),t}function O(){l.value!==null&&(h.value>Date.now()?(l.value=h.value-Date.now(),S(O)):(l.value=0,m("on-end"),window.SHJParseEvent(o.useEvents,"end-count-down",null)))}const s=()=>{m("on-start"),window.SHJParseEvent(o.useEvents,"on-start",null),l.value=0,Number.isFinite(o.basicOption.conf.value)?(o.basicOption.conf.future?o.basicOption.conf.value>=Date.now()&&(h.value=o.basicOption.conf.value):o.basicOption.conf.value>=0&&(h.value=o.basicOption.conf.value+Date.now()),S(O)):l.value=null};n.watchEffect(()=>{o.basicOption.conf.autoStart?s():l.value=null});const w=e=>{g.autoInstallFont(e.fontFamily);const t={};e.color&&e.color.includes("linear-gradient")&&(t.backgroundImage=e.color,t["-webkit-background-clip"]="text",t.color="transparent");const r={};return e.textAlign==="left"&&(e.justifyContent="flex-start"),e.textAlign==="center"&&(e.justifyContent="center"),e.textAlign==="right"&&(e.justifyContent="flex-end"),{...g.jsonToCssStyle(e),...t,...r,...e.textShadow.show?{"--text-shadow":`${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}`}:{}}};return M({start:()=>s(),startAgain:()=>s(),refresh:()=>s(),refreshView:()=>s(),refreshData:()=>s()}),(e,t)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[e.basicOption.conf.finishedText&&l.value===0&&l.value!==null?(n.openBlock(),n.createElementBlock("span",{key:0,class:"count-down",style:n.normalizeStyle(w(e.basicOption.css)),ztitle:e.basicOption.conf.finishedText},n.toDisplayString(e.basicOption.conf.finishedText),13,x)):n.createCommentVNode("",!0),e.basicOption.conf.defaultText&&l.value===null?(n.openBlock(),n.createElementBlock("span",{key:1,class:"count-down",style:n.normalizeStyle(w(e.basicOption.css)),ztitle:e.basicOption.conf.defaultText},n.toDisplayString(e.basicOption.conf.defaultText),13,k)):n.createCommentVNode("",!0),Number.isFinite(l.value)&&l.value>0?(n.openBlock(),n.createElementBlock("span",{key:2,class:"count-down",style:n.normalizeStyle(w(e.basicOption.css)),ztitle:b(l.value)},n.toDisplayString(b(l.value)),13,T)):n.createCommentVNode("",!0)],64))}});exports.default=H;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),g=require("../../commons/utils/json2css.js"),x=["ztitle"],k=["ztitle"],T=["ztitle"],C=n.defineComponent({name:"zv-text-count-down"}),H=n.defineComponent({...C,props:{basicOption:{},useEvents:{}},emits:["on-end","on-start"],setup(y,{expose:M,emit:D}){const m=D,S=window.requestAnimationFrame,o=y,h=n.ref(0),l=n.ref(0),a=n.computed(()=>({showMillisecond:o.basicOption.conf.format.includes("SSS"),showYear:o.basicOption.conf.format.includes("Y"),showMonth:o.basicOption.conf.format.includes("M"),showDay:o.basicOption.conf.format.includes("D"),showHour:o.basicOption.conf.format.includes("H"),showMinute:o.basicOption.conf.format.includes("m"),showSecond:o.basicOption.conf.format.includes("s")}));function i(e){return e<10?"0"+e:String(e)}function b(e){if(e===null)return"--";let t=o.basicOption.conf.format,r=0;a.value.showMillisecond&&(r=e%1e3,t=t.replace("SSS","0".repeat(3-String(r).length)+r)),e=Math.floor(e/1e3);let c=0;a.value.showYear?(c=Math.floor(e/(60*60*24*30*12)),t=t.includes("YY")?t.replace("YY",i(c)):t.replace("Y",String(c))):c=0;let u=0;a.value.showMonth?(e=e-c*60*60*24*30*12,u=Math.floor(e/(60*60*24*30)),t=t.includes("MM")?t.replace("MM",i(u)):t.replace("M",String(u))):u=0;let f=0;a.value.showDay?(e=e-u*60*60*24*30,f=Math.floor(e/(60*60*24)),t=t.includes("DD")?t.replace("DD",i(f)):t.replace("D",String(f))):f=0;let p=0;a.value.showHour?(e=e-f*60*60*24,p=Math.floor(e/(60*60)),t=t.includes("HH")?t.replace("HH",i(p)):t.replace("H",String(p))):p=0;let d=0;a.value.showMinute?(e=e-p*60*60,d=Math.floor(e/60),t=t.includes("mm")?t.replace("mm",i(d)):t.replace("m",String(d))):d=0;let v=0;return a.value.showSecond&&(v=e-d*60,t=t.includes("ss")?t.replace("ss",i(v)):t.replace("s",String(v))),t}function O(){l.value!==null&&(h.value>Date.now()?(l.value=h.value-Date.now(),S(O)):(l.value=0,m("on-end"),window.SHJParseEvent(o.useEvents,"end-count-down",null)))}const s=()=>{m("on-start"),window.SHJParseEvent(o.useEvents,"on-start",null),l.value=0,Number.isFinite(o.basicOption.conf.value)?(o.basicOption.conf.future?o.basicOption.conf.value>=Date.now()&&(h.value=o.basicOption.conf.value):o.basicOption.conf.value>=0&&(h.value=o.basicOption.conf.value+Date.now()),S(O)):l.value=null};n.watchEffect(()=>{o.basicOption.conf.autoStart?s():l.value=null});const w=e=>{g.autoInstallFont(e.fontFamily);const t={};e.color&&e.color.includes("linear-gradient")&&(t.backgroundImage=e.color,t["-webkit-background-clip"]="text",t.color="transparent");const r={};return e.textAlign==="left"&&(e.justifyContent="flex-start"),e.textAlign==="center"&&(e.justifyContent="center"),e.textAlign==="right"&&(e.justifyContent="flex-end"),{...g.jsonToCssStyle(e),...t,...r,...e.textShadow.show?{"--text-shadow":`${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}`}:{}}};return M({start:()=>s(),startAgain:()=>s(),refresh:()=>s(),refreshView:()=>s(),refreshData:()=>s()}),(e,t)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[e.basicOption.conf.finishedText&&l.value===0&&l.value!==null?(n.openBlock(),n.createElementBlock("span",{key:0,class:"count-down",style:n.normalizeStyle(w(e.basicOption.css)),ztitle:e.basicOption.conf.finishedText},n.toDisplayString(e.basicOption.conf.finishedText),13,x)):n.createCommentVNode("",!0),e.basicOption.conf.defaultText&&l.value===null?(n.openBlock(),n.createElementBlock("span",{key:1,class:"count-down",style:n.normalizeStyle(w(e.basicOption.css)),ztitle:e.basicOption.conf.defaultText},n.toDisplayString(e.basicOption.conf.defaultText),13,k)):n.createCommentVNode("",!0),Number.isFinite(l.value)&&l.value>0?(n.openBlock(),n.createElementBlock("span",{key:2,class:"count-down",style:n.normalizeStyle(w(e.basicOption.css)),ztitle:b(l.value)},n.toDisplayString(b(l.value)),13,T)):n.createCommentVNode("",!0)],64))}});exports.default=H;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),r=require("../../utils/install.js"),e=r.withInstall(t.default);exports.ZvTextOverNumber=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),r=require("../../commons/utils/install.js"),e=r.withInstall(t.default);exports.ZvTextOverNumber=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-f0914c1d"]]);exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),c=require("lodash"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),c=require("lodash"),V=require("vue-countup-v3"),C=require("odometer_countup"),p=require("nanoid"),F=require("../../commons/core/datasource/index.js"),v=require("../../commons/utils/json2css.js"),I=t.defineComponent({name:"zv-text-over-number"}),M=t.defineComponent({...I,props:{basicOption:{},sources:{},useEvents:{},uuid:{}},setup(m,{expose:h}){const r=m,s=t.ref(r.basicOption.countUp.startVal),x=n=>{const a=t.ref(p.nanoid()),l=t.ref(0),d=t.ref(),u=t.ref(),f=()=>{F.SHJDatasourceV2.parse({tId:r.uuid,sources:r.sources,callback:({data:e})=>{try{window.SHJParseEvent(r.useEvents,"dataListener",e),a.value=p.nanoid(),l.value=Number(e[0].data[0].value),d.value={startVal:s.value,separator:n.countUp.separator,decimal:n.countUp.decimal,decimalPlaces:n.countUp.decimalPlaces,duration:n.countUp.duration,prefix:n.countUp.prefix,suffix:n.countUp.suffix},n.countUp.isOdometer&&(d.value.plugin=new C.Odometer({duration:n.countUp.duration,lastDigitDelay:0})),s.value=l.value,n.isImitate?b():u.value&&clearInterval(u.value)}catch{window.SHJParseEvent(r.useEvents,"dataListener",null)}}})},k=e=>{v.autoInstallFont(e.fontFamily);const o={};e.color&&e.color.includes("linear-gradient")&&(o.backgroundImage=e.color,o["-webkit-background-clip"]="text",o.color="transparent");const q={};return e.textAlign==="left"&&(e.justifyContent="flex-start"),e.textAlign==="center"&&(e.justifyContent="center"),e.textAlign==="right"&&(e.justifyContent="flex-end"),{...v.jsonToCssStyle(e),...o,...q,...e.textShadow.show?{textShadow:`${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}`}:{}}},D=()=>{},b=()=>{u.value&&clearInterval(u.value);const e=n.countUp.isOdometer?Math.floor(Math.random()*6)+5:Math.floor(Math.random()*4)+3;u.value=setInterval(()=>{s.value=l.value,d.value.startVal=s.value;const o=Number((Math.random()*10).toFixed(n.countUp.decimalPlaces));o>3?l.value+=o:l.value-=o},e*1e3)};return t.onMounted(()=>t.nextTick(()=>f())),t.onBeforeUnmount(()=>{u.value&&clearInterval(u.value)}),{key:a,init:f,options:d,endValue:l,onFinished:D,rendererDomStyle:k}},{key:y,init:i,options:w,endValue:S,onFinished:U,rendererDomStyle:g}=x(r.basicOption);return t.watch(()=>c.cloneDeep(r.basicOption),(n,a)=>{c.isEqual(n,a)||i()},{deep:!0}),t.watch(()=>c.cloneDeep(r.sources),(n,a)=>{c.isEqual(n,a)||i()},{deep:!0}),h({refresh:()=>i(),refreshView:()=>i(),refreshData:()=>i()}),(n,a)=>(t.openBlock(),t.createBlock(t.unref(V),{key:t.unref(y),class:"zerov-widget-over-number","end-val":t.unref(S),options:t.unref(w),loop:n.basicOption.countUp.loop,delay:n.basicOption.countUp.delay,style:t.normalizeStyle(t.unref(g)(n.basicOption.css)),onFinished:t.unref(U)},null,8,["end-val","options","loop","delay","style","onFinished"]))}});exports.default=M;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),l=require("../../utils/install.js"),e=l.withInstall(t.default);exports.ZvTextRealTime=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),l=require("../../commons/utils/install.js"),e=l.withInstall(t.default);exports.ZvTextRealTime=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-54bb5d61"]]);exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),s=require("lodash"),i=require("dayjs");require("dayjs/locale/zh-cn");const d=require("../../utils/json2css.js"),S=["ztitle"],w=t.defineComponent({name:"zv-text-real-time"}),T=t.defineComponent({...w,props:{basicOption:{},datasource:{},useEvents:{}},emits:["on-change"],setup(f,{emit:m}){const u=m,r=f,v=o=>{const n=t.ref(),a=t.ref(i().locale("zh-cn").format(o.format)),x=e=>{d.autoInstallFont(e.fontFamily);const l={};e.color&&e.color.includes("linear-gradient")&&(l.backgroundImage=e.color,l["-webkit-background-clip"]="text",l.color="transparent");const y={};return e.textAlign==="left"&&(e.justifyContent="flex-start"),e.textAlign==="center"&&(e.justifyContent="center"),e.textAlign==="right"&&(e.justifyContent="flex-end"),{...d.jsonToCssStyle(e),...l,...y,...e.textShadow.show?{"--text-shadow":`${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}`}:{}}},g=e=>{n.value&&clearInterval(n.value),n.value=setInterval(()=>{a.value=i().locale("zh-cn").format(e),u("on-change",a.value),window.SHJParseEvent(r.useEvents,"on-change",a.value)},1e3)};return t.onMounted(()=>{n.value=setInterval(()=>{a.value=i().locale("zh-cn").format(o.format),u("on-change",a.value),window.SHJParseEvent(r.useEvents,"on-change",a.value)},1e3)}),t.onBeforeUnmount(()=>{n.value&&clearInterval(n.value)}),{updateRealTime:g,realTime:a,rendererDomStyle:x}},{updateRealTime:p,realTime:c,rendererDomStyle:h}=v(r.basicOption);return t.watch(()=>s.cloneDeep(r.basicOption.format),(o,n)=>{s.isEqual(o,n)||p(o)},{deep:!0}),(o,n)=>(t.openBlock(),t.createElementBlock("div",{class:"real-time",style:t.normalizeStyle(t.unref(h)(o.basicOption.css)),ztitle:t.unref(c)},t.toDisplayString(t.unref(c)),13,S))}});exports.default=T;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),s=require("lodash"),i=require("dayjs");require("dayjs/locale/zh-cn");const d=require("../../commons/utils/json2css.js"),S=["ztitle"],w=t.defineComponent({name:"zv-text-real-time"}),T=t.defineComponent({...w,props:{basicOption:{},datasource:{},useEvents:{}},emits:["on-change"],setup(f,{emit:m}){const u=m,r=f,v=o=>{const n=t.ref(),a=t.ref(i().locale("zh-cn").format(o.format)),x=e=>{d.autoInstallFont(e.fontFamily);const l={};e.color&&e.color.includes("linear-gradient")&&(l.backgroundImage=e.color,l["-webkit-background-clip"]="text",l.color="transparent");const y={};return e.textAlign==="left"&&(e.justifyContent="flex-start"),e.textAlign==="center"&&(e.justifyContent="center"),e.textAlign==="right"&&(e.justifyContent="flex-end"),{...d.jsonToCssStyle(e),...l,...y,...e.textShadow.show?{"--text-shadow":`${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}`}:{}}},g=e=>{n.value&&clearInterval(n.value),n.value=setInterval(()=>{a.value=i().locale("zh-cn").format(e),u("on-change",a.value),window.SHJParseEvent(r.useEvents,"on-change",a.value)},1e3)};return t.onMounted(()=>{n.value=setInterval(()=>{a.value=i().locale("zh-cn").format(o.format),u("on-change",a.value),window.SHJParseEvent(r.useEvents,"on-change",a.value)},1e3)}),t.onBeforeUnmount(()=>{n.value&&clearInterval(n.value)}),{updateRealTime:g,realTime:a,rendererDomStyle:x}},{updateRealTime:p,realTime:c,rendererDomStyle:h}=v(r.basicOption);return t.watch(()=>s.cloneDeep(r.basicOption.format),(o,n)=>{s.isEqual(o,n)||p(o)},{deep:!0}),(o,n)=>(t.openBlock(),t.createElementBlock("div",{class:"real-time",style:t.normalizeStyle(t.unref(h)(o.basicOption.css)),ztitle:t.unref(c)},t.toDisplayString(t.unref(c)),13,S))}});exports.default=T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),l=require("../../utils/install.js"),e=l.withInstall(t.default);exports.ZvTextRowScroll=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),l=require("../../commons/utils/install.js"),e=l.withInstall(t.default);exports.ZvTextRowScroll=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-9b2fa9eb"]]);exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),u=require("lodash"),z=require("vue3-seamless-scroll"),h=require("nanoid"),V=["onClick","onMouseenter","onMouseout"],
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),u=require("lodash"),z=require("vue3-seamless-scroll"),h=require("nanoid"),V=require("../../commons/core/datasource/index.js"),M=["onClick","onMouseenter","onMouseout"],D=["onClick"],W={key:1},q=o.defineComponent({name:"zv-text-row-scroll"}),H=o.defineComponent({...q,props:{basicOption:{},useEvents:{},sources:{},uuid:{}},emits:["on-click-item","on-click-row","on-mouseenter-row","on-mouseout-row"],setup(v,{expose:O,emit:w}){o.useCssVars(e=>({"0666b15e":e.basicOption.css.table.borderWidth+"px","5631c5a7":e.basicOption.css.table.borderStyle,"554dd759":e.basicOption.css.table.borderColor,"1f395ad3":e.basicOption.css.table.paddingLeft+"px","35998ab9":e.basicOption.css.table.alignItems,c3358072:e.basicOption.css.table.justifyContent,"06bfebde":e.basicOption.css.header.background,"345149c3":e.basicOption.css.header.height+"px","33c4b8a0":e.basicOption.css.header.color,f3c30acc:e.basicOption.css.header.fontSize+"px","2041388a":e.basicOption.css.header.fontWeight,"091b1d5f":e.basicOption.css.header.fontStyle,"246ef798":e.basicOption.css.body.height+"px","2b879748":e.basicOption.css.body.background,"4a3ad39f":e.basicOption.css.oddBackground,"2b37e916":e.basicOption.css.body.color,"34eff1a2":e.basicOption.css.body.fontSize+"px","0ddd62d5":e.basicOption.css.body.fontWeight,"310a0498":e.basicOption.css.body.fontStyle}));const d=w,b=o.ref(h.nanoid()),l=o.ref([]),s=v,p=o.ref(s.basicOption.scroll.start),a=()=>{V.SHJDatasourceV2.parse({tId:s.uuid,sources:s.sources,callback:e=>{try{window.SHJParseEvent(s.useEvents,"dataListener",l),l.value=u.cloneDeep(e.data[0].data)||[],b.value=h.nanoid(),p.value=s.basicOption.scroll.start}catch{window.SHJParseEvent(s.useEvents,"dataListener",null),l.value=[],b.value=h.nanoid(),p.value=s.basicOption.scroll.start}}})},y=e=>{const t=[];for(const n in e)t.push(e[n]);return t};o.onMounted(()=>a()),o.watch(()=>u.cloneDeep(s.basicOption),(e,t)=>{u.isEqual(e,t)||a()},{deep:!0}),o.watch(()=>u.cloneDeep(s.sources),(e,t)=>{u.isEqual(e,t)||a()},{deep:!0}),O({refresh:()=>a(),refreshView:()=>a(),refreshData:()=>a()});const g=e=>{if(!s.basicOption.columns)return!0;const t=s.basicOption.columns.find(n=>n.index===e);return t?t.font.auto:!0},m=e=>{if(!s.basicOption.columns)return null;const t=s.basicOption.columns.find(n=>n.index===e);return t&&t.font.auto===!1?t.font:null},f=e=>{if(!s.basicOption.columns)return!0;const t=s.basicOption.columns.find(n=>n.index===e);return t?t.width.auto:!0},k=e=>{if(!s.basicOption.columns)return null;const t=s.basicOption.columns.find(n=>n.index===e);return t&&t.width.auto===!1?t.width.width:null},S=(e,t)=>{const n={row:e,rowIndex:t};d("on-click-row",n),window.SHJParseEvent(s.useEvents,"on-click-row",n)},E=(e,t)=>{const n={row:e,rowIndex:t};d("on-mouseenter-row",n),window.SHJParseEvent(s.useEvents,"on-mouseenter-row",n)},C=(e,t)=>{const n={row:e,rowIndex:t};d("on-mouseout-row",n),window.SHJParseEvent(s.useEvents,"on-mouseout-row",n)},B=(e,t,n,r)=>{const i={row:e,item:t,rowIndex:n,columnIndex:r};d("on-click-item",i),window.SHJParseEvent(s.useEvents,"on-click-item",i)};return(e,t)=>l.value.length>0?(o.openBlock(),o.createElementBlock("div",{key:b.value,class:"table-scroll"},[e.basicOption.css.header.show?(o.openBlock(),o.createElementBlock("div",{key:0,class:"table-header",style:o.normalizeStyle({"--header-background-image":`url(${e.basicOption.css.header.backgroundImage})`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Object.keys(l.value[0]),(n,r)=>(o.openBlock(),o.createElementBlock("div",{key:n,class:o.normalizeClass(["th",{customWidth:!f(r+1)}]),style:o.normalizeStyle({"--width":k(r+1)+"px"})},[o.createElementVNode("p",null,o.toDisplayString(n),1)],6))),128))],4)):o.createCommentVNode("",!0),o.createVNode(o.unref(z.Vue3SeamlessScroll),{modelValue:p.value,"onUpdate:modelValue":t[0]||(t[0]=n=>p.value=n),direction:e.basicOption.scroll.direction,list:l.value,"is-watch":"",hover:e.basicOption.scroll.hover,"limit-scroll-num":e.basicOption.scroll.limitScrollNum,"single-height":e.basicOption.scroll.isSingle?e.basicOption.css.body.height:0,"single-wait-time":e.basicOption.scroll.singleWaitTime,class:"table-body"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,(n,r)=>(o.openBlock(),o.createElementBlock("div",{key:n,class:"tr",style:o.normalizeStyle({"--row-hover":e.basicOption.css.hoverColor}),onClick:i=>S(n,r),onMouseenter:i=>E(n,r),onMouseout:i=>C(n,r)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(y(n),(i,c)=>(o.openBlock(),o.createElementBlock("div",{key:i,class:o.normalizeClass(["td",{customWidth:!f(c+1)}]),style:o.normalizeStyle({"--width":k(c+1)+"px"}),onClick:J=>B(n,i,r,c)},[g(c+1)?(o.openBlock(),o.createElementBlock("p",W,o.toDisplayString(i),1)):(o.openBlock(),o.createElementBlock("p",{key:0,class:"customFont",style:o.normalizeStyle({"--text-color":m(c+1).color,"--text-font-size":m(c+1).fontSize+"px","--text-font-style":m(c+1).fontStyle})},o.toDisplayString(i),5))],14,D))),128))],44,M))),128))]),_:1},8,["modelValue","direction","list","hover","limit-scroll-num","single-height","single-wait-time"])])):o.createCommentVNode("",!0)}});exports.default=H;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),l=require("../../utils/install.js"),e=l.withInstall(t.default);exports.ZvTextTableBasic=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),l=require("../../commons/utils/install.js"),e=l.withInstall(t.default);exports.ZvTextTableBasic=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-c9a58eea"]]);exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),l=require("lodash"),f=require("nanoid"),B=require("vue-virtual-scroller");require("vue-virtual-scroller/dist/vue-virtual-scroller.css");const V=require("../../commons/core/datasource/index.js"),M=["onClick","onMouseenter","onMouseout"],q=["onClick"],D=o.defineComponent({name:"zv-text-table-basic"}),H=o.defineComponent({...D,props:{basicOption:{},useEvents:{},sources:{},uuid:{}},emits:["on-click-item","on-click-row","on-mouseenter-row","on-mouseout-row"],setup(w,{expose:y,emit:k}){o.useCssVars(e=>({"832a4e1c":e.basicOption.css.table.borderWidth+"px","52e7b726":e.basicOption.css.table.borderStyle,"5203c8d8":e.basicOption.css.table.borderColor,"3e50e718":e.basicOption.css.table.paddingLeft+"px","08a0254c":e.basicOption.css.table.alignItems,"51512c30":e.basicOption.css.table.justifyContent,"0d5408e0":e.basicOption.css.header.background,"6d4373e4":e.basicOption.css.header.height+"px",e220d87e:e.basicOption.css.header.color,"4b2ea07b":e.basicOption.css.header.fontSize+"px","1cf72a09":e.basicOption.css.header.fontWeight,"619d0000":e.basicOption.css.header.fontStyle,"8311940e":e.basicOption.css.body.height+"px","2a6e799b":e.basicOption.css.body.background,e1c58a54:e.basicOption.css.body.color,"1e7a3150":e.basicOption.css.body.fontSize+"px","4e0fa814":e.basicOption.css.body.fontWeight,"235b9495":e.basicOption.css.body.fontStyle}));const d=k,p=o.ref(f.nanoid()),c=o.ref([]),a=w,O=()=>{if(!c.value.length)return;const e=Object.keys(c.value[0]),t=a.basicOption.columns||[],s=e.map((n,r)=>{const i=t.find(h=>h.name===n)||{};return{name:i.name||n,label:i.label||n,visible:i.visible!==void 0?i.visible:!0,index:i.index!==void 0?i.index:r,width:i.width||{auto:!0,width:100},font:i.font||{auto:!0,color:"#ffffff",fontSize:12,fontStyle:"normal"}}});a.basicOption.columns=s.sort((n,r)=>n.index-r.index)},b=o.computed(()=>a.basicOption.columns||[]),m=o.computed(()=>b.value.filter(e=>e.visible).map(e=>e.name)),u=()=>{V.SHJDatasourceV2.parse({tId:a.uuid,sources:a.sources,callback:e=>{try{window.SHJParseEvent(a.useEvents,"dataListener",c),p.value=f.nanoid(),c.value=l.cloneDeep(e.data[0].data).map((t,s)=>({id:t.id||s,...t})),O()}catch{window.SHJParseEvent(a.useEvents,"dataListener",null),p.value=f.nanoid(),c.value=[]}}})},v=e=>{const t=b.value.find(s=>s.name===e);return t!=null&&t.width.auto?null:`${t==null?void 0:t.width.width}px`},S=e=>{const t=b.value.find(n=>n.name===e);if(!t)return{};const s={whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"};return{color:t.font.color,fontSize:`${t.font.fontSize}px`,fontStyle:t.font.fontStyle,...s,...t.textStyle}},g=l.debounce((e,t)=>{const s={row:e,rowIndex:t};d("on-click-row",s),window.SHJParseEvent(a.useEvents,"on-click-row",s)},100),E=l.debounce((e,t)=>{const s={row:e,rowIndex:t};d("on-mouseenter-row",s),window.SHJParseEvent(a.useEvents,"on-mouseenter-row",s)},100),C=l.debounce((e,t)=>{const s={row:e,rowIndex:t};d("on-mouseout-row",s),window.SHJParseEvent(a.useEvents,"on-mouseout-row",s)},100),z=l.debounce((e,t,s,n)=>{const r={row:e,item:t,rowIndex:s,columnIndex:n};d("on-click-item",r),window.SHJParseEvent(a.useEvents,"on-click-item",r)},100);return o.watch(()=>l.cloneDeep(a.sources),(e,t)=>{l.isEqual(e,t)||u()},{deep:!0}),o.watch(()=>l.cloneDeep(a.basicOption),(e,t)=>{l.isEqual(e,t)||u()},{deep:!0}),o.onMounted(()=>u()),y({refresh:()=>u(),refreshView:()=>u(),refreshData:()=>u()}),(e,t)=>{const s=o.resolveComponent("el-tooltip");return c.value.length>0?(o.openBlock(),o.createElementBlock("div",{key:p.value,class:"table-scroll"},[e.basicOption.css.header.show?(o.openBlock(),o.createElementBlock("div",{key:0,class:"table-header",style:o.normalizeStyle({"--header-background-image":`url(${e.basicOption.css.header.background})`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m.value,n=>(o.openBlock(),o.createElementBlock("div",{key:n,class:"th",style:o.normalizeStyle({width:v(n)})},[o.createElementVNode("p",null,o.toDisplayString(n),1)],4))),128))],4)):o.createCommentVNode("",!0),o.createVNode(o.unref(B.RecycleScroller),{id:"",class:"table-body",items:c.value,"item-size":e.basicOption.css.body.height,"key-field":"id"},{default:o.withCtx(({item:n,index:r})=>[o.createElementVNode("div",{class:"tr",style:o.normalizeStyle({"--row-hover":e.basicOption.css.hoverColor,"--odd-background":e.basicOption.css.oddBackground}),onClick:i=>o.unref(g)(n,r),onMouseenter:i=>o.unref(E)(n,r),onMouseout:i=>o.unref(C)(n,r)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m.value,i=>(o.openBlock(),o.createElementBlock("div",{key:i,class:"td",style:o.normalizeStyle({width:v(i)}),onClick:h=>o.unref(z)(n,n[i],r,m.value.indexOf(i))},[o.createVNode(s,{content:n[i]},{default:o.withCtx(()=>[o.createElementVNode("p",{style:o.normalizeStyle(S(i))},o.toDisplayString(n[i]),5)]),_:2},1032,["content"])],12,q))),128))],44,M)]),_:1},8,["items","item-size"])])):o.createCommentVNode("",!0)}}});exports.default=H;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./index.vue.js"),t=require("../../utils/install.js"),e=t.withInstall(l.default);exports.ZvTextTableScroll=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./index.vue.js"),t=require("../../commons/utils/install.js"),e=t.withInstall(l.default);exports.ZvTextTableScroll=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-7a9a366c"]]);exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),u=require("lodash"),z=require("vue3-seamless-scroll"),h=require("nanoid"),V=["onClick","onMouseenter","onMouseout"],
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),u=require("lodash"),z=require("vue3-seamless-scroll"),h=require("nanoid"),V=require("../../commons/core/datasource/index.js"),M=["onClick","onMouseenter","onMouseout"],D=["onClick"],H={key:1},W=o.defineComponent({name:"zv-text-table-scroll"}),q=o.defineComponent({...W,props:{basicOption:{},useEvents:{},sources:{},uuid:{}},emits:["on-click-item","on-click-row","on-mouseenter-row","on-mouseout-row"],setup(v,{expose:O,emit:y}){o.useCssVars(e=>({c8ab01be:e.basicOption.css.table.borderWidth+"px","16a7d052":e.basicOption.css.table.borderStyle,"186facee":e.basicOption.css.table.borderColor,"83d19aba":e.basicOption.css.table.paddingLeft+"px",32743289:e.basicOption.css.table.alignItems,"49f100d2":e.basicOption.css.table.justifyContent,c9cb477e:e.basicOption.css.header.background,"70f38993":e.basicOption.css.header.height+"px","6d4bc870":e.basicOption.css.header.color,"2330066a":e.basicOption.css.header.fontSize+"px","8288ea8c":e.basicOption.css.header.fontWeight,"05f5c52f":e.basicOption.css.header.fontStyle,"7685528c":e.basicOption.css.body.background,"4195bdcf":e.basicOption.css.oddBackground,a9e66176:e.basicOption.css.body.color,"222a46ff":e.basicOption.css.body.fontSize+"px",cbb2fdf6:e.basicOption.css.body.fontWeight,"49054cf8":e.basicOption.css.body.fontStyle}));const d=y,b=o.ref(h.nanoid()),r=o.ref([]),s=v,p=o.ref(s.basicOption.scroll.start),a=()=>{V.SHJDatasourceV2.parse({tId:s.uuid,sources:s.sources,callback:e=>{try{window.SHJParseEvent(s.useEvents,"dataListener",r),r.value=u.cloneDeep(e.data[0].data)||[],b.value=h.nanoid(),p.value=s.basicOption.scroll.start}catch{window.SHJParseEvent(s.useEvents,"dataListener",null),b.value=h.nanoid(),r.value=[],p.value=s.basicOption.scroll.start}}})},w=e=>{const t=[];for(const n in e)t.push(e[n]);return t};o.onMounted(()=>a()),o.watch(()=>u.cloneDeep(s.basicOption),(e,t)=>{u.isEqual(e,t)||a()},{deep:!0}),o.watch(()=>u.cloneDeep(s.sources),(e,t)=>{u.isEqual(e,t)||a()},{deep:!0}),O({refresh:()=>a(),refreshView:()=>a(),refreshData:()=>a()});const g=e=>{if(!s.basicOption.columns)return!0;const t=s.basicOption.columns.find(n=>n.index===e);return t?t.font.auto:!0},m=e=>{if(!s.basicOption.columns)return null;const t=s.basicOption.columns.find(n=>n.index===e);return t&&t.font.auto===!1?t.font:null},f=e=>{if(!s.basicOption.columns)return!0;const t=s.basicOption.columns.find(n=>n.index===e);return t?t.width.auto:!0},k=e=>{if(!s.basicOption.columns)return null;const t=s.basicOption.columns.find(n=>n.index===e);return t&&t.width.auto===!1?t.width.width:null},S=(e,t)=>{const n={row:e,rowIndex:t};d("on-click-row",n),window.SHJParseEvent(s.useEvents,"on-click-row",n)},E=(e,t)=>{const n={row:e,rowIndex:t};d("on-mouseenter-row",n),window.SHJParseEvent(s.useEvents,"on-mouseenter-row",n)},C=(e,t)=>{const n={row:e,rowIndex:t};d("on-mouseout-row",n),window.SHJParseEvent(s.useEvents,"on-mouseout-row",n)},B=(e,t,n,l)=>{const i={row:e,item:t,rowIndex:n,columnIndex:l};d("on-click-item",i),window.SHJParseEvent(s.useEvents,"on-click-item",i)};return(e,t)=>r.value.length>0?(o.openBlock(),o.createElementBlock("div",{key:b.value,class:"table-scroll",style:o.normalizeStyle({lineHeight:e.basicOption.css.body.height+"px"})},[e.basicOption.css.header.show?(o.openBlock(),o.createElementBlock("div",{key:0,class:"table-header",style:o.normalizeStyle({"--header-background-image":`url(${e.basicOption.css.header.backgroundImage})`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Object.keys(r.value[0]),(n,l)=>(o.openBlock(),o.createElementBlock("div",{key:n,class:o.normalizeClass(["th",{customWidth:!f(l+1)}]),style:o.normalizeStyle({"--width":k(l+1)+"px"})},[o.createElementVNode("p",null,o.toDisplayString(n),1)],6))),128))],4)):o.createCommentVNode("",!0),o.createVNode(o.unref(z.Vue3SeamlessScroll),{modelValue:p.value,"onUpdate:modelValue":t[0]||(t[0]=n=>p.value=n),direction:e.basicOption.scroll.direction,list:r.value,"is-watch":"",hover:e.basicOption.scroll.hover,"limit-scroll-num":e.basicOption.scroll.limitScrollNum,"single-height":e.basicOption.scroll.isSingle?e.basicOption.css.body.height:0,"single-wait-time":e.basicOption.scroll.singleWaitTime,class:"table-body",style:o.normalizeStyle([{color:"red"},{"line-height":"36px"}])},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,(n,l)=>(o.openBlock(),o.createElementBlock("div",{key:n,class:"tr",style:o.normalizeStyle({"--row-hover":e.basicOption.css.hoverColor}),onClick:i=>S(n,l),onMouseenter:i=>E(n,l),onMouseout:i=>C(n,l)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(w(n),(i,c)=>(o.openBlock(),o.createElementBlock("div",{key:i,class:o.normalizeClass(["td",{customWidth:!f(c+1)}]),style:o.normalizeStyle({"--width":k(c+1)+"px"}),onClick:J=>B(n,i,l,c)},[g(c+1)?(o.openBlock(),o.createElementBlock("p",H,o.toDisplayString(i),1)):(o.openBlock(),o.createElementBlock("p",{key:0,class:"customFont",style:o.normalizeStyle({"--text-color":m(c+1).color,"--text-font-size":m(c+1).fontSize+"px","--text-font-style":m(c+1).fontStyle})},o.toDisplayString(i),5))],14,D))),128))],44,M))),128))]),_:1},8,["modelValue","direction","list","hover","limit-scroll-num","single-height","single-wait-time"])],4)):o.createCommentVNode("",!0)}});exports.default=q;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),i=require("../../utils/install.js"),e=i.withInstall(t.default);exports.ZvTextTextBasic=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),i=require("../../commons/utils/install.js"),e=i.withInstall(t.default);exports.ZvTextTextBasic=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-7dcb2cfd"]]);exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),r=require("../../utils/json2css.js"),u=["ztitle"],d=t.defineComponent({name:"zv-text-text-basic"}),c=t.defineComponent({...d,props:{basicOption:{}},setup(p){const i=()=>({rendererDomStyle:e=>{r.autoInstallFont(e.fontFamily);const n={};e.color&&e.color.includes("linear-gradient")&&(n.backgroundImage=e.color,n["-webkit-background-clip"]="text",n.color="transparent");const a={};return e.textAlign==="left"&&(e.justifyContent="flex-start"),e.textAlign==="center"&&(e.justifyContent="center"),e.textAlign==="right"&&(e.justifyContent="flex-end"),{...r.jsonToCssStyle(e),...n,...a,...e.textShadow.show?{"--text-shadow":`${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}`}:{}}}}),{rendererDomStyle:l}=i();return(o,e)=>(t.openBlock(),t.createElementBlock("p",{class:"zerov-widget-text",style:t.normalizeStyle(t.unref(l)(o.basicOption.css)),ztitle:o.basicOption.value},t.toDisplayString(o.basicOption.value),13,u))}});exports.default=c;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),r=require("../../commons/utils/json2css.js"),u=["ztitle"],d=t.defineComponent({name:"zv-text-text-basic"}),c=t.defineComponent({...d,props:{basicOption:{}},setup(p){const i=()=>({rendererDomStyle:e=>{r.autoInstallFont(e.fontFamily);const n={};e.color&&e.color.includes("linear-gradient")&&(n.backgroundImage=e.color,n["-webkit-background-clip"]="text",n.color="transparent");const a={};return e.textAlign==="left"&&(e.justifyContent="flex-start"),e.textAlign==="center"&&(e.justifyContent="center"),e.textAlign==="right"&&(e.justifyContent="flex-end"),{...r.jsonToCssStyle(e),...n,...a,...e.textShadow.show?{"--text-shadow":`${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}`}:{}}}}),{rendererDomStyle:l}=i();return(o,e)=>(t.openBlock(),t.createElementBlock("p",{class:"zerov-widget-text",style:t.normalizeStyle(t.unref(l)(o.basicOption.css)),ztitle:o.basicOption.value},t.toDisplayString(o.basicOption.value),13,u))}});exports.default=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),i=require("../../utils/install.js"),e=i.withInstall(t.default);exports.ZvTextTextDynamic=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),i=require("../../commons/utils/install.js"),e=i.withInstall(t.default);exports.ZvTextTextDynamic=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-a95bb805"]]);exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),u=require("lodash"),y=require("../../commons/core/datasource/index.js"),c=require("../../commons/utils/json2css.js"),v=["ztitle"],w=t.defineComponent({name:"zv-text-text-dynamic"}),S=t.defineComponent({...w,props:{basicOption:{},sources:{},useEvents:{},uuid:{}},setup(d,{expose:f}){const o=d,p=()=>{const n=t.ref(""),r=e=>{c.autoInstallFont(e.fontFamily);const a={};e.color&&e.color.includes("linear-gradient")&&(a.backgroundImage=e.color,a["-webkit-background-clip"]="text",a.color="transparent");const h={};return e.textAlign==="left"&&(e.justifyContent="flex-start"),e.textAlign==="center"&&(e.justifyContent="center"),e.textAlign==="right"&&(e.justifyContent="flex-end"),{...c.jsonToCssStyle(e),...a,...h,...e.textShadow.show?{"--text-shadow":`${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}`}:{}}},s=()=>{y.SHJDatasourceV2.parse({tId:o.uuid,sources:o.sources,callback:({data:e})=>{try{window.SHJParseEvent(o.useEvents,"dataListener",e),n.value=e[0].data[0].value}catch{window.SHJParseEvent(o.useEvents,"dataListener",null)}}})};return t.onMounted(()=>t.nextTick(()=>s())),{rendererDomStyle:r,init:s,value:n}},{rendererDomStyle:x,init:i,value:l}=p();return t.watch(()=>u.cloneDeep(o.basicOption),(n,r)=>{u.isEqual(n,r)||i()},{deep:!0}),t.watch(()=>u.cloneDeep(o.sources),(n,r)=>{u.isEqual(n,r)||i()},{deep:!0}),f({refresh:()=>i(),refreshView:()=>i(),refreshData:()=>i()}),(n,r)=>(t.openBlock(),t.createElementBlock("p",{class:"zerov-widget-text",style:t.normalizeStyle(t.unref(x)(n.basicOption.css)),ztitle:t.unref(l)},t.toDisplayString(t.unref(l)),13,v))}});exports.default=S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),l=require("../../utils/install.js"),e=l.withInstall(t.default);exports.ZvTextTitle=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.vue.js"),l=require("../../commons/utils/install.js"),e=l.withInstall(t.default);exports.ZvTextTitle=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-3e8689ba"]]);exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),r=require("../../utils/json2css.js"),u=t.defineComponent({name:"zv-text-title"}),d=t.defineComponent({...u,props:{basicOption:{},sources:{}},setup(c){const i=()=>({rendererDomStyle:e=>{r.autoInstallFont(e.fontFamily);const n={};e.color&&e.color.includes("linear-gradient")&&(n.backgroundImage=e.color,n["-webkit-background-clip"]="text",n.color="transparent");const a={};return e.textAlign==="left"&&(e.justifyContent="flex-start"),e.textAlign==="center"&&(e.justifyContent="center"),e.textAlign==="right"&&(e.justifyContent="flex-end"),{...r.jsonToCssStyle(e),...n,...a,...e.textShadow.show?{"--text-shadow":`${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}`}:{}}}}),{rendererDomStyle:l}=i();return(o,e)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.basicOption.type),{class:"zerov-widget-title",style:t.normalizeStyle(t.unref(l)(o.basicOption.css)),ztitle:o.basicOption.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.basicOption.value),1)]),_:1},8,["style","ztitle"]))}});exports.default=d;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),r=require("../../commons/utils/json2css.js"),u=t.defineComponent({name:"zv-text-title"}),d=t.defineComponent({...u,props:{basicOption:{},sources:{}},setup(c){const i=()=>({rendererDomStyle:e=>{r.autoInstallFont(e.fontFamily);const n={};e.color&&e.color.includes("linear-gradient")&&(n.backgroundImage=e.color,n["-webkit-background-clip"]="text",n.color="transparent");const a={};return e.textAlign==="left"&&(e.justifyContent="flex-start"),e.textAlign==="center"&&(e.justifyContent="center"),e.textAlign==="right"&&(e.justifyContent="flex-end"),{...r.jsonToCssStyle(e),...n,...a,...e.textShadow.show?{"--text-shadow":`${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}`}:{}}}}),{rendererDomStyle:l}=i();return(o,e)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.basicOption.type),{class:"zerov-widget-title",style:t.normalizeStyle(t.unref(l)(o.basicOption.css)),ztitle:o.basicOption.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.basicOption.value),1)]),_:1},8,["style","ztitle"]))}});exports.default=d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../index.js"),u=require("../utils/request.js"),t=require("../utils/utils.js"),E=(l,a,b)=>new Promise(function(r,T){const{api:s}=l.source;try{if(s){let{isHeaders:D,isBody:h,headers:c,contentType:S,url:e,postParam:n}=s;const y=t.DataSourceUtils.getEnvironments(),p=t.DataSourceUtils.getVariableData(),i=q=>{q.then(U=>{if(U.status===200){const{filter:P,mapping:g}=l.source;m.SHJDatasourceV2.processData(P,U.data,g,a,l.source.dynamicMapping,b).then(f=>{f&&r(f)}).catch(()=>r(t.DataSourceUtils.noneData(a)));return}r(t.DataSourceUtils.noneData(a))}).catch(()=>{r(t.DataSourceUtils.noneData(a))})},o=t.DataSourceUtils.replaceEnvVariables(e,y);e=t.DataSourceUtils.replaceURLVariables(e,p),h&&(n=t.DataSourceUtils.replaceObjectVariables(n,p)),D&&(c=t.DataSourceUtils.replaceObjectVariables(c,p)),s.type==="GET"&&i(u.httpRequest.get(o+e,{headers:c})),s.type==="POST"&&i(u.httpRequest.post(o+e,n,{headers:c},S)),s.type==="PUT"&&i(u.httpRequest.put(o+e,n,{headers:c},S)),s.type==="DELETE"&&i(u.httpRequest.delete(o+e,{headers:c}))}else r(t.DataSourceUtils.noneData(a))}catch{r(t.DataSourceUtils.noneData(a))}});exports.parseAPIPort=E;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../index.js"),r=require("../utils/utils.js"),o=(t,a,c)=>new Promise(function(e,s){if(t.source.static!==void 0){n.SHJDatasourceV2.processData(t.source.filter,t.source.static,t.source.mapping,a,t.source.dynamicMapping,c).then(i=>{e(i)}).catch(()=>{e(r.DataSourceUtils.noneData(a))});return}e(r.DataSourceUtils.noneData(a))});exports.parseStaticData=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../index.js"),n=require("../utils/utils.js"),u=(e,t,c)=>new Promise(function(a,l){const s=new URLSearchParams(window.location.search),r=Object.fromEntries(s.entries());if(Object.keys(r).length>0){i.SHJDatasourceV2.processData(e.source.filter,r,e.source.mapping,t,e.source.dynamicMapping,c).then(o=>{a(o)}).catch(()=>{a(n.DataSourceUtils.noneData(t))});return}a(n.DataSourceUtils.noneData(t))});exports.parseUrlData=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../index.js"),i=require("../utils/utils.js"),s=(a,t,c)=>new Promise(function(r,u){const n=i.DataSourceUtils.getVariableData().find(e=>e.id===a.source.variableId||e.name===a.source.variableId);if(n){o.SHJDatasourceV2.processData(a.source.filter,n._value,a.source.mapping,t,a.source.dynamicMapping,c).then(e=>{r(e)}).catch(()=>{r(i.DataSourceUtils.noneData(t))});return}r(i.DataSourceUtils.noneData(t))});exports.parseVariableData=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var p=Object.defineProperty;var f=(c,t,e)=>t in c?p(c,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):c[t]=e;var d=(c,t,e)=>f(c,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../index.js"),u=require("../utils/wsManager.js"),l=require("../utils/utils.js");class m{constructor(t,e,s,i,n,o){d(this,"ws",null);d(this,"reconnectAttempts",0);d(this,"timeoutTimer");d(this,"isDisconnecting",!1);d(this,"config");this.source=t,this.id=e,this.noUseMapping=s,this.tId=i,this.onData=n,this.onEvent=o;const{websocket:r}=t.source;if(!r){n==null||n(l.DataSourceUtils.noneData(e)),this.config={url:"",reconnect:!1,timeout:3e4};return}this.config=r,this.connect()}getId(){return this.id}isConnected(){return this.ws!==null&&this.ws.readyState===WebSocket.OPEN}processProtocols(){const{protocols:t=""}=this.config;return t?Array.isArray(t)?t:t.split(/\s*,\s*/):[]}injectHeadersToUrl(t){try{const e=new URL(t);return Object.entries(this.config.headers||{}).forEach(([s,i])=>{e.searchParams.append(s,i)}),e.toString()}catch{return t}}connect(){var r,a;if(this.isDisconnecting)return;const{url:t,isHeaders:e=!1,binaryType:s="blob",timeout:i=3e4}=this.config,n=e?this.injectHeadersToUrl(t):t,o=this.processProtocols();u.wsManager.closeByComponentIds(this.tId);try{this.ws=o.length>0?new WebSocket(n,o):new WebSocket(n),this.ws&&(u.wsManager.add(this.ws,this.tId),this.ws.binaryType=s,this.timeoutTimer=setTimeout(()=>{var h,g;((h=this.ws)==null?void 0:h.readyState)===WebSocket.CONNECTING&&(this.ws.close(),(g=this.onEvent)==null||g.call(this,"error","Connection timeout"),this.handleClose({code:4001,reason:"Timeout"}))},i),this.ws.onopen=this.handleOpen.bind(this),this.ws.onmessage=this.handleMessage.bind(this),this.ws.onerror=this.handleError.bind(this),this.ws.onclose=this.handleClose.bind(this),(r=this.onEvent)==null||r.call(this,"connecting"))}catch(h){(a=this.onEvent)==null||a.call(this,"error",h),this.scheduleReconnect()}}handleOpen(){var s,i,n,o;this.timeoutTimer&&clearTimeout(this.timeoutTimer),(s=this.onEvent)==null||s.call(this,"connected"),this.reconnectAttempts=0;const{message:t,isMessage:e}=this.config;if(t&&e)try{const r=l.DataSourceUtils.getVariableData(),a=typeof t=="string"?l.DataSourceUtils.replaceStringVariables(t,r):l.DataSourceUtils.replaceObjectVariables(t,r),h=typeof a=="string"?a:JSON.stringify(a);(i=this.ws)==null||i.send(h),(n=this.onEvent)==null||n.call(this,"messageSent",h)}catch{(o=this.onEvent)==null||o.call(this,"error","Failed to send initial message")}}async handleMessage(t){var e,s,i,n;try{let o=t.data;if(typeof o=="string")try{o=JSON.parse(o)}catch{}const r=await w.SHJDatasourceV2.processData(this.source.source.filter,o,this.source.source.mapping,this.id,this.source.source.dynamicMapping,this.noUseMapping);(e=this.onData)==null||e.call(this,r),(s=this.onEvent)==null||s.call(this,"data",r)}catch{(i=this.onEvent)==null||i.call(this,"error","Data processing failed"),(n=this.onData)==null||n.call(this,l.DataSourceUtils.noneData(this.id))}}handleError(t){var e,s,i;(e=this.onEvent)==null||e.call(this,"error",t),((s=this.ws)==null?void 0:s.readyState)!==WebSocket.OPEN&&((i=this.onData)==null||i.call(this,l.DataSourceUtils.noneData(this.id)))}handleClose(t){var e,s;this.timeoutTimer&&clearTimeout(this.timeoutTimer),(e=this.onEvent)==null||e.call(this,"disconnected",{code:t.code,reason:t.reason}),this.shouldReconnect(t)?this.scheduleReconnect():(s=this.onData)==null||s.call(this,l.DataSourceUtils.noneData(this.id))}shouldReconnect(t){const{reconnect:e=!1,maxReconnectAttempts:s=10}=this.config;return!this.isDisconnecting&&e&&this.reconnectAttempts<s&&t.code!==1e3&&t.code!==4001}scheduleReconnect(){var s;if(this.isDisconnecting)return;const{reconnectInterval:t=5e3}=this.config;this.reconnectAttempts++;const e=t*Math.pow(2,this.reconnectAttempts-1);(s=this.onEvent)==null||s.call(this,"reconnecting",{attempt:this.reconnectAttempts,delay:e}),setTimeout(()=>this.connect(),Math.min(e,3e4))}send(t){if(!this.ws||this.ws.readyState!==WebSocket.OPEN)throw new Error("WebSocket 未连接");const e=typeof t=="string"?t:JSON.stringify(t);this.ws.send(e)}disconnect(){this.isDisconnecting=!0,this.ws&&(this.ws.close(1e3,"Manual close"),this.timeoutTimer&&clearTimeout(this.timeoutTimer),u.wsManager.closeByComponentIds(this.tId))}getWebSocket(){return this.ws}}const S=(c,t,e,s,i,n)=>new m(c,t,e,s,i,n);exports.WebSocketInstance=m;exports.parseWebSocket=S;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";var U=Object.defineProperty;var V=(S,e,a)=>e in S?U(S,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):S[e]=a;var T=(S,e,a)=>V(S,typeof e!="symbol"?e+"":e,a);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("lodash"),k=require("./core/static.js"),v=require("./core/url.js"),A=require("./core/variable.js"),j=require("./core/api.js"),K=require("./core/ws.js"),g=require("./utils/utils.js"),y=class y{static addParser(e,a){this.parsers.add({type:e,parser:a})}static getParser(e){const a=Array.from(this.parsers).find(t=>t.type===e);return a==null?void 0:a.parser}static parse({sources:e,callback:a,tId:t,isStore:s=!1,noUseMapping:n=!1,isInterval:i=!0}){return window.SHJDatasourceV2Timer??(window.SHJDatasourceV2Timer=[]),a??(a=()=>{}),e&&h.isArray(e)&&e.length>0?new Promise((u,c)=>{g.DataSourceUtils.cleanupPreviousWebSockets(this.wsInstances,e.map(r=>r.id),t);const o=new Set,D=this.wsInstances.get(t)||new Set;e.forEach(r=>{var P;if(i){const{source:l}=r,d=`${t}-${r.id}`,m=window.SHJDatasourceV2Timer.findIndex(w=>w.id===d);if(m!==-1&&(clearInterval(window.SHJDatasourceV2Timer[m].timer),window.SHJDatasourceV2Timer.splice(m,1)),l.isAutoUpdate){const w=setInterval(()=>{var f;(f=this.task(r,s,n,t,p=>a(p)))==null||f.then(p=>u(p))},l.autoUpdateTime*1e3);window.SHJDatasourceV2Timer.push({id:d,timer:w})}}if(r.source.type!=="ws"){(P=this.task(r,s,n,t,l=>a(l)))==null||P.then(l=>u(l));return}if(g.DataSourceUtils.hasValidWebSocket(this.wsInstances,t,r.id))D.forEach(l=>{l.getId()===r.id&&o.add(l)});else{const l=K.parseWebSocket(r,r.id,n,t,d=>{u(d),a({data:[{data:d.finalUserData.data}]})});o.add(l)}}),o.size>0&&this.wsInstances.set(t,o)}):(a([]),Promise.resolve([]))}static task(e,a=!1,t=!1,s,n=()=>{}){return e?new Promise((i,u)=>{let c=null;const{source:o}=e,D=this.getParser(o.type);D&&(c=D(e,e.id,t)),c.then(r=>{n(t?r.noMappingData:r.finalKeyData),i(r)})}):(n([]),Promise.resolve([]))}static filterData(e,a){return new Promise((t,s)=>{if(h.isString(e))try{const n=g.DataSourceUtils.getVariableData();let i=`
|
|
2
|
+
${e}
|
|
3
|
+
|
|
4
|
+
// 在这里调用 filter 函数,并传递 data 参数
|
|
5
|
+
return filter(data);
|
|
6
|
+
`;i=i.replace(/\/\*[\s\S]*?\*\/|\/\/.*/g,""),i=g.DataSourceUtils.replaceStringVariables(i,n);const u=new Function("data",i);t(u(a))}catch{t(null)}})}static processData(e,a,t,s,n,i){return new Promise(function(u){const c=h.cloneDeep({id:s,data:a});y.filterData(e,a).then(o=>{const D=h.cloneDeep({id:s,data:o});if(i)u({id:s,finalKeyData:[],finalUserData:{id:s,data:o},filteredData:D,rawData:c,noMappingData:o});else{let r=[];h.isArray(o)&&(r=o.map((d,m)=>{const w={};if(n&&n&&m===0){const f=[];for(const p in d){const I=t.find(q=>q.name===p);I?f.push({alias:I.alias,name:p,type:"any",label:p,mapping:I.mapping,status:!0}):f.push({alias:p,name:p,type:"any",label:p,mapping:p,status:!0})}t.splice(0,t.length),t.push(...f)}return t.forEach(f=>{f.alias?w[f.alias]=d[f.mapping]:w[f.name]=d[f.mapping]}),w}));const P=h.cloneDeep({id:s,data:r}),l=h.cloneDeep({id:s,data:y.parseMappedData(r,t,s)});u({id:s,finalKeyData:r.length===0?{id:s,data:o}:l,finalUserData:r.length===0?{id:s,data:o}:P,filteredData:D,rawData:c,noMappingData:[]})}})})}static parseMappedData(e,a,t){return e.reduce((s,n)=>{let i="系列一";a&&a.find(c=>c.name==="series")&&(i=n[a.find(c=>c.name==="series").name],delete n[a.find(c=>c.name==="series").name]);const u=s.find(c=>c.key===i);return u?u.data.push(n):s.push({key:i,data:[n]}),s},[])}};T(y,"wsInstances",new Map),T(y,"parsers",new Set([{type:"url",parser:v.parseUrlData},{type:"static",parser:k.parseStaticData},{type:"variable",parser:A.parseVariableData},{type:"api",parser:j.parseAPIPort}]));let b=y;exports.SHJDatasourceV2=b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@zerov/packages-request"),t=new e.HttpRequest;Object.defineProperty(exports,"IContentType",{enumerable:!0,get:()=>e.IContentType});exports.httpRequest=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("lodash"),P=require("../index.js"),S=(f,n,s,a,r,o)=>new Promise(function(i){const e=D.cloneDeep({id:a,data:n});P.SHJDatasourceV2.filterData(f,n).then(l=>{const h=D.cloneDeep({id:a,data:l});if(o)i({id:a,finalKeyData:[],finalUserData:{id:a,data:l},filteredData:h,rawData:e,noMappingData:l});else{let u=[];D.isArray(l)&&(u=l.map((y,k)=>{const p={};if(r&&r&&k===0){const t=[];for(const c in y){const d=s.find(M=>M.name===c);d?t.push({alias:d.alias,name:c,type:"any",label:c,mapping:d.mapping,status:!0}):t.push({alias:c,name:c,type:"any",label:c,mapping:c,status:!0})}s.splice(0,s.length),s.push(...t)}return s.forEach(t=>{t.alias?p[t.alias]=y[t.mapping]:p[t.name]=y[t.mapping]}),p}));const b=D.cloneDeep({id:a,data:u}),g=D.cloneDeep({id:a,data:m(u,s)});i({id:a,finalKeyData:u.length===0?{id:a,data:l}:g,finalUserData:u.length===0?{id:a,data:l}:b,filteredData:h,rawData:e,noMappingData:[]})}})}),m=(f,n,s)=>f.reduce((a,r)=>{let o="系列一";n&&n.find(e=>e.name==="series")&&(o=r[n.find(e=>e.name==="series").name],delete r[n.find(e=>e.name==="series").name]);const i=a.find(e=>e.key===o);return i?i.data.push(r):a.push({key:o,data:[r]}),a},[]);exports.parseMappedData=m;exports.useProcessData=S;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@zerov/packages-request"),t=new e.HttpRequest;Object.defineProperty(exports,"IContentType",{enumerable:!0,get:()=>e.IContentType});exports.httpRequest=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("lodash");class s{static replaceURLVariables(e,i){try{const r=e.match(/\${(.*?)}/g);if(r)for(let t=0;t<r.length;t++){const a=i.filter(l=>l.name===r[t].substring(2,r[t].length-1));a&&n.isArray(a)&&a.length>0&&(e=e.replaceAll(r[t],a[0]._value))}return e}catch{return e}}static replaceObjectVariables(e,i){try{let r=JSON.stringify(e);const t=r.match(/\$g{(.*?)}/g);if(t){for(let a=0;a<t.length;a++){const l=i.filter(c=>c.name===t[a].substring(3,t[a].length-1));l&&n.isArray(l)&&l.length>0&&(r=r.replaceAll(t[a],l[0]._value))}return JSON.parse(r)}return e}catch{return e}}static replaceStringVariables(e,i){try{const r=e.match(/\$g{(.*?)}/g);if(r)for(let t=0;t<r.length;t++){const a=i.filter(l=>l.name===r[t].substring(3,r[t].length-1));a&&n.isArray(a)&&a.length>0&&(e=e.replaceAll(r[t],a[0]._value))}return e}catch{return e}}static replaceEnvVariables(e,i){try{let r="";if(!e.includes("http")&&i){const t=i.filter(a=>a.selected);t&&n.isArray(t)&&t.length>0&&(r=t[0].envBaseUrl||"")}return r}catch{return""}}static noneData(e){return{id:e,finalKeyData:[],finalUserData:{id:e,data:[]},filteredData:[],rawData:[],noMappingData:[]}}static getEnvironments(){let e=localStorage.getItem("currentApiEnvironments");return e&&(e=JSON.parse(e)),e}static getVariableData(){let e=localStorage.getItem("currentVariableData");return e&&(e=JSON.parse(e)),e}static hasValidWebSocket(e,i,r){const t=e.get(i);if(!t)return!1;for(const a of t)if(a.getId()===r&&a.isConnected())return!0;return!1}static cleanupPreviousWebSockets(e,i,r){const t=e.get(r);t&&(t.forEach(a=>{i.includes(a.getId())||(a.disconnect(),t.delete(a))}),t.size===0&&e.delete(r))}}exports.DataSourceUtils=s;
|