@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const parseAPIPort: (source: any, id: string, noUseMapping: boolean) => Promise<unknown>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SHJDatasourceV2 as T } from "../index.mjs";
|
|
2
|
+
import { httpRequest as s } from "../utils/request.mjs";
|
|
3
|
+
import { DataSourceUtils as t } from "../utils/utils.mjs";
|
|
4
|
+
const q = (f, e, y) => new Promise(function(r, U) {
|
|
5
|
+
const { api: n } = f.source;
|
|
6
|
+
try {
|
|
7
|
+
if (n) {
|
|
8
|
+
let { isHeaders: m, isBody: h, headers: c, contentType: u, url: a, postParam: o } = n;
|
|
9
|
+
const E = t.getEnvironments(), l = t.getVariableData(), i = (P) => {
|
|
10
|
+
P.then((D) => {
|
|
11
|
+
if (D.status === 200) {
|
|
12
|
+
const { filter: V, mapping: g } = f.source;
|
|
13
|
+
T.processData(V, D.data, g, e, f.source.dynamicMapping, y).then((b) => {
|
|
14
|
+
b && r(b);
|
|
15
|
+
}).catch(() => r(t.noneData(e)));
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
r(t.noneData(e));
|
|
19
|
+
}).catch(() => {
|
|
20
|
+
r(t.noneData(e));
|
|
21
|
+
});
|
|
22
|
+
}, p = t.replaceEnvVariables(a, E);
|
|
23
|
+
a = t.replaceURLVariables(a, l), h && (o = t.replaceObjectVariables(o, l)), m && (c = t.replaceObjectVariables(c, l)), n.type === "GET" && i(s.get(p + a, { headers: c })), n.type === "POST" && i(s.post(p + a, o, { headers: c }, u)), n.type === "PUT" && i(s.put(p + a, o, { headers: c }, u)), n.type === "DELETE" && i(s.delete(p + a, { headers: c }));
|
|
24
|
+
} else
|
|
25
|
+
r(t.noneData(e));
|
|
26
|
+
} catch {
|
|
27
|
+
r(t.noneData(e));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
q as parseAPIPort
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const parseStaticData: (source: any, id: string, noUseMapping: boolean) => Promise<unknown>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SHJDatasourceV2 as e } from "../index.mjs";
|
|
2
|
+
import { DataSourceUtils as n } from "../utils/utils.mjs";
|
|
3
|
+
const m = (t, a, c) => new Promise(function(r, i) {
|
|
4
|
+
if (t.source.static !== void 0) {
|
|
5
|
+
e.processData(t.source.filter, t.source.static, t.source.mapping, a, t.source.dynamicMapping, c).then((o) => {
|
|
6
|
+
r(o);
|
|
7
|
+
}).catch(() => {
|
|
8
|
+
r(n.noneData(a));
|
|
9
|
+
});
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
r(n.noneData(a));
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
m as parseStaticData
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const parseUrlData: (source: any, id: string, noUseMapping: boolean) => Promise<unknown>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SHJDatasourceV2 as i } from "../index.mjs";
|
|
2
|
+
import { DataSourceUtils as n } from "../utils/utils.mjs";
|
|
3
|
+
const f = (t, a, c) => new Promise(function(r, m) {
|
|
4
|
+
const o = new URLSearchParams(window.location.search), e = Object.fromEntries(o.entries());
|
|
5
|
+
if (Object.keys(e).length > 0) {
|
|
6
|
+
i.processData(t.source.filter, e, t.source.mapping, a, t.source.dynamicMapping, c).then((s) => {
|
|
7
|
+
r(s);
|
|
8
|
+
}).catch(() => {
|
|
9
|
+
r(n.noneData(a));
|
|
10
|
+
});
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
r(n.noneData(a));
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
f as parseUrlData
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const parseVariableData: (source: any, id: string, noUseMapping: boolean) => Promise<unknown>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SHJDatasourceV2 as c } from "../index.mjs";
|
|
2
|
+
import { DataSourceUtils as n } from "../utils/utils.mjs";
|
|
3
|
+
const s = (a, r, o) => new Promise(function(e, D) {
|
|
4
|
+
const i = n.getVariableData().find((t) => t.id === a.source.variableId || t.name === a.source.variableId);
|
|
5
|
+
if (i) {
|
|
6
|
+
c.processData(a.source.filter, i._value, a.source.mapping, r, a.source.dynamicMapping, o).then((t) => {
|
|
7
|
+
e(t);
|
|
8
|
+
}).catch(() => {
|
|
9
|
+
e(n.noneData(r));
|
|
10
|
+
});
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
e(n.noneData(r));
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
s as parseVariableData
|
|
17
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare type WsCallback = (data: any) => void;
|
|
2
|
+
declare type WsEventCallback = (event: string, data?: any) => void;
|
|
3
|
+
export declare class WebSocketInstance {
|
|
4
|
+
private source;
|
|
5
|
+
private id;
|
|
6
|
+
private noUseMapping;
|
|
7
|
+
private tId;
|
|
8
|
+
private onData?;
|
|
9
|
+
private onEvent?;
|
|
10
|
+
private ws;
|
|
11
|
+
private reconnectAttempts;
|
|
12
|
+
private timeoutTimer?;
|
|
13
|
+
private isDisconnecting;
|
|
14
|
+
private config;
|
|
15
|
+
constructor(source: any, id: string, noUseMapping: boolean, tId: string, onData?: WsCallback, onEvent?: WsEventCallback);
|
|
16
|
+
getId(): string;
|
|
17
|
+
isConnected(): boolean;
|
|
18
|
+
private processProtocols;
|
|
19
|
+
private injectHeadersToUrl;
|
|
20
|
+
private connect;
|
|
21
|
+
private handleOpen;
|
|
22
|
+
private handleMessage;
|
|
23
|
+
private handleError;
|
|
24
|
+
private handleClose;
|
|
25
|
+
private shouldReconnect;
|
|
26
|
+
private scheduleReconnect;
|
|
27
|
+
send(data: string | object): void;
|
|
28
|
+
disconnect(): void;
|
|
29
|
+
getWebSocket(): WebSocket;
|
|
30
|
+
}
|
|
31
|
+
export declare const parseWebSocket: (source: any, id: string, noUseMapping: boolean, tId: string, onData?: WsCallback, onEvent?: WsEventCallback) => WebSocketInstance;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
var p = Object.defineProperty;
|
|
2
|
+
var g = (c, t, e) => t in c ? p(c, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[t] = e;
|
|
3
|
+
var d = (c, t, e) => g(c, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { SHJDatasourceV2 as f } from "../index.mjs";
|
|
5
|
+
import { wsManager as m } from "../utils/wsManager.mjs";
|
|
6
|
+
import { DataSourceUtils as l } from "../utils/utils.mjs";
|
|
7
|
+
class w {
|
|
8
|
+
constructor(t, e, s, i, n, o) {
|
|
9
|
+
d(this, "ws", null);
|
|
10
|
+
d(this, "reconnectAttempts", 0);
|
|
11
|
+
d(this, "timeoutTimer");
|
|
12
|
+
d(this, "isDisconnecting", !1);
|
|
13
|
+
d(this, "config");
|
|
14
|
+
this.source = t, this.id = e, this.noUseMapping = s, this.tId = i, this.onData = n, this.onEvent = o;
|
|
15
|
+
const { websocket: r } = t.source;
|
|
16
|
+
if (!r) {
|
|
17
|
+
n == null || n(l.noneData(e)), this.config = {
|
|
18
|
+
url: "",
|
|
19
|
+
reconnect: !1,
|
|
20
|
+
timeout: 3e4
|
|
21
|
+
};
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
this.config = r, this.connect();
|
|
25
|
+
}
|
|
26
|
+
// 新增:获取连接ID
|
|
27
|
+
getId() {
|
|
28
|
+
return this.id;
|
|
29
|
+
}
|
|
30
|
+
// 新增:检查连接是否有效
|
|
31
|
+
isConnected() {
|
|
32
|
+
return this.ws !== null && this.ws.readyState === WebSocket.OPEN;
|
|
33
|
+
}
|
|
34
|
+
processProtocols() {
|
|
35
|
+
const { protocols: t = "" } = this.config;
|
|
36
|
+
return t ? Array.isArray(t) ? t : t.split(/\s*,\s*/) : [];
|
|
37
|
+
}
|
|
38
|
+
injectHeadersToUrl(t) {
|
|
39
|
+
try {
|
|
40
|
+
const e = new URL(t);
|
|
41
|
+
return Object.entries(this.config.headers || {}).forEach(([s, i]) => {
|
|
42
|
+
e.searchParams.append(s, i);
|
|
43
|
+
}), e.toString();
|
|
44
|
+
} catch {
|
|
45
|
+
return t;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
connect() {
|
|
49
|
+
var r, h;
|
|
50
|
+
if (this.isDisconnecting) return;
|
|
51
|
+
const {
|
|
52
|
+
url: t,
|
|
53
|
+
isHeaders: e = !1,
|
|
54
|
+
binaryType: s = "blob",
|
|
55
|
+
timeout: i = 3e4
|
|
56
|
+
} = this.config, n = e ? this.injectHeadersToUrl(t) : t, o = this.processProtocols();
|
|
57
|
+
m.closeByComponentIds(this.tId);
|
|
58
|
+
try {
|
|
59
|
+
this.ws = o.length > 0 ? new WebSocket(n, o) : new WebSocket(n), this.ws && (m.add(this.ws, this.tId), this.ws.binaryType = s, this.timeoutTimer = setTimeout(() => {
|
|
60
|
+
var a, u;
|
|
61
|
+
((a = this.ws) == null ? void 0 : a.readyState) === WebSocket.CONNECTING && (this.ws.close(), (u = this.onEvent) == null || u.call(this, "error", "Connection timeout"), this.handleClose({ code: 4001, reason: "Timeout" }));
|
|
62
|
+
}, 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"));
|
|
63
|
+
} catch (a) {
|
|
64
|
+
(h = this.onEvent) == null || h.call(this, "error", a), this.scheduleReconnect();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
handleOpen() {
|
|
68
|
+
var s, i, n, o;
|
|
69
|
+
this.timeoutTimer && clearTimeout(this.timeoutTimer), (s = this.onEvent) == null || s.call(this, "connected"), this.reconnectAttempts = 0;
|
|
70
|
+
const { message: t, isMessage: e } = this.config;
|
|
71
|
+
if (t && e)
|
|
72
|
+
try {
|
|
73
|
+
const r = l.getVariableData(), h = typeof t == "string" ? l.replaceStringVariables(t, r) : l.replaceObjectVariables(t, r), a = typeof h == "string" ? h : JSON.stringify(h);
|
|
74
|
+
(i = this.ws) == null || i.send(a), (n = this.onEvent) == null || n.call(this, "messageSent", a);
|
|
75
|
+
} catch {
|
|
76
|
+
(o = this.onEvent) == null || o.call(this, "error", "Failed to send initial message");
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
async handleMessage(t) {
|
|
80
|
+
var e, s, i, n;
|
|
81
|
+
try {
|
|
82
|
+
let o = t.data;
|
|
83
|
+
if (typeof o == "string")
|
|
84
|
+
try {
|
|
85
|
+
o = JSON.parse(o);
|
|
86
|
+
} catch {
|
|
87
|
+
}
|
|
88
|
+
const r = await f.processData(
|
|
89
|
+
this.source.source.filter,
|
|
90
|
+
o,
|
|
91
|
+
this.source.source.mapping,
|
|
92
|
+
this.id,
|
|
93
|
+
this.source.source.dynamicMapping,
|
|
94
|
+
this.noUseMapping
|
|
95
|
+
);
|
|
96
|
+
(e = this.onData) == null || e.call(this, r), (s = this.onEvent) == null || s.call(this, "data", r);
|
|
97
|
+
} catch {
|
|
98
|
+
(i = this.onEvent) == null || i.call(this, "error", "Data processing failed"), (n = this.onData) == null || n.call(this, l.noneData(this.id));
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
handleError(t) {
|
|
102
|
+
var e, s, i;
|
|
103
|
+
(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.noneData(this.id)));
|
|
104
|
+
}
|
|
105
|
+
handleClose(t) {
|
|
106
|
+
var e, s;
|
|
107
|
+
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.noneData(this.id));
|
|
108
|
+
}
|
|
109
|
+
shouldReconnect(t) {
|
|
110
|
+
const { reconnect: e = !1, maxReconnectAttempts: s = 10 } = this.config;
|
|
111
|
+
return !this.isDisconnecting && e && this.reconnectAttempts < s && t.code !== 1e3 && t.code !== 4001;
|
|
112
|
+
}
|
|
113
|
+
scheduleReconnect() {
|
|
114
|
+
var s;
|
|
115
|
+
if (this.isDisconnecting) return;
|
|
116
|
+
const { reconnectInterval: t = 5e3 } = this.config;
|
|
117
|
+
this.reconnectAttempts++;
|
|
118
|
+
const e = t * Math.pow(2, this.reconnectAttempts - 1);
|
|
119
|
+
(s = this.onEvent) == null || s.call(this, "reconnecting", { attempt: this.reconnectAttempts, delay: e }), setTimeout(() => this.connect(), Math.min(e, 3e4));
|
|
120
|
+
}
|
|
121
|
+
send(t) {
|
|
122
|
+
if (!this.ws || this.ws.readyState !== WebSocket.OPEN)
|
|
123
|
+
throw new Error("WebSocket 未连接");
|
|
124
|
+
const e = typeof t == "string" ? t : JSON.stringify(t);
|
|
125
|
+
this.ws.send(e);
|
|
126
|
+
}
|
|
127
|
+
disconnect() {
|
|
128
|
+
this.isDisconnecting = !0, this.ws && (this.ws.close(1e3, "Manual close"), this.timeoutTimer && clearTimeout(this.timeoutTimer), m.closeByComponentIds(this.tId));
|
|
129
|
+
}
|
|
130
|
+
getWebSocket() {
|
|
131
|
+
return this.ws;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
const T = (c, t, e, s, i, n) => new w(c, t, e, s, i, n);
|
|
135
|
+
export {
|
|
136
|
+
w as WebSocketInstance,
|
|
137
|
+
T as parseWebSocket
|
|
138
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export declare class SHJDatasourceV2 {
|
|
2
|
+
private static wsInstances;
|
|
3
|
+
private static parsers;
|
|
4
|
+
static addParser(type: string, parser: Function): void;
|
|
5
|
+
static getParser(type: string): Function | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* 解析数据源
|
|
8
|
+
* @param sources 数据源
|
|
9
|
+
* @param callback 回调函数
|
|
10
|
+
* @param tId 组件id
|
|
11
|
+
* @param isStore 是否存储
|
|
12
|
+
* @param noUseMapping 是否不使用映射
|
|
13
|
+
* @param isInterval 是否开启定时任务
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
static parse({ sources, callback, tId, isStore, noUseMapping, isInterval }: {
|
|
17
|
+
sources: any;
|
|
18
|
+
callback: any;
|
|
19
|
+
tId: any;
|
|
20
|
+
isStore?: boolean;
|
|
21
|
+
noUseMapping?: boolean;
|
|
22
|
+
isInterval?: boolean;
|
|
23
|
+
}): Promise<unknown>;
|
|
24
|
+
/**
|
|
25
|
+
* 执行数据源任务
|
|
26
|
+
* @param sources 数据源
|
|
27
|
+
* @param isStore 是否存储
|
|
28
|
+
* @param noUseMapping 是否不使用映射
|
|
29
|
+
* @param tId 组件id
|
|
30
|
+
* @param callback 回调函数
|
|
31
|
+
* @returns
|
|
32
|
+
*/
|
|
33
|
+
static task(sources: any, isStore: boolean, noUseMapping: boolean, tId: string, callback?: Function): Promise<unknown> | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* 过滤数据
|
|
36
|
+
* @param filter 过滤器
|
|
37
|
+
* @param data 数据
|
|
38
|
+
* @returns
|
|
39
|
+
*/
|
|
40
|
+
static filterData(filter: any, data: any): Promise<unknown>;
|
|
41
|
+
/**
|
|
42
|
+
* 处理数据
|
|
43
|
+
* @param filter 过滤器
|
|
44
|
+
* @param data 数据
|
|
45
|
+
* @param mappings 映射
|
|
46
|
+
* @param id 组件id
|
|
47
|
+
* @param dynamicMapping 是否动态映射
|
|
48
|
+
* @param noUseMapping 是否不使用映射
|
|
49
|
+
* @returns
|
|
50
|
+
*/
|
|
51
|
+
static processData(filter: any, data: any, mappings: any[], id: string, dynamicMapping?: boolean, noUseMapping?: boolean): Promise<unknown>;
|
|
52
|
+
/**
|
|
53
|
+
* 解析数据为Key、Data格式
|
|
54
|
+
* @param data 数据
|
|
55
|
+
* @param mappings 映射
|
|
56
|
+
* @param id 组件id
|
|
57
|
+
* @returns
|
|
58
|
+
*/
|
|
59
|
+
static parseMappedData(data: any[], mappings: any[], id: string): {
|
|
60
|
+
key: string;
|
|
61
|
+
data: any[];
|
|
62
|
+
}[];
|
|
63
|
+
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
var x = Object.defineProperty;
|
|
2
|
+
var A = (h, t, a) => t in h ? x(h, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : h[t] = a;
|
|
3
|
+
var T = (h, t, a) => A(h, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
+
import { isArray as V, isString as K, cloneDeep as P } from "lodash";
|
|
5
|
+
import { parseStaticData as U } from "./core/static.mjs";
|
|
6
|
+
import { parseUrlData as j } from "./core/url.mjs";
|
|
7
|
+
import { parseVariableData as E } from "./core/variable.mjs";
|
|
8
|
+
import { parseAPIPort as F } from "./core/api.mjs";
|
|
9
|
+
import { parseWebSocket as W } from "./core/ws.mjs";
|
|
10
|
+
import { DataSourceUtils as g } from "./utils/utils.mjs";
|
|
11
|
+
const D = class D {
|
|
12
|
+
static addParser(t, a) {
|
|
13
|
+
this.parsers.add({ type: t, parser: a });
|
|
14
|
+
}
|
|
15
|
+
static getParser(t) {
|
|
16
|
+
const a = Array.from(this.parsers).find((e) => e.type === t);
|
|
17
|
+
return a == null ? void 0 : a.parser;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 解析数据源
|
|
21
|
+
* @param sources 数据源
|
|
22
|
+
* @param callback 回调函数
|
|
23
|
+
* @param tId 组件id
|
|
24
|
+
* @param isStore 是否存储
|
|
25
|
+
* @param noUseMapping 是否不使用映射
|
|
26
|
+
* @param isInterval 是否开启定时任务
|
|
27
|
+
* @returns
|
|
28
|
+
*/
|
|
29
|
+
static parse({ sources: t, callback: a, tId: e, isStore: s = !1, noUseMapping: n = !1, isInterval: i = !0 }) {
|
|
30
|
+
return window.SHJDatasourceV2Timer ?? (window.SHJDatasourceV2Timer = []), a ?? (a = () => {
|
|
31
|
+
}), t && V(t) && t.length > 0 ? new Promise((p, o) => {
|
|
32
|
+
g.cleanupPreviousWebSockets(this.wsInstances, t.map((r) => r.id), e);
|
|
33
|
+
const c = /* @__PURE__ */ new Set(), m = this.wsInstances.get(e) || /* @__PURE__ */ new Set();
|
|
34
|
+
t.forEach((r) => {
|
|
35
|
+
var S;
|
|
36
|
+
if (i) {
|
|
37
|
+
const { source: f } = r, d = `${e}-${r.id}`, y = window.SHJDatasourceV2Timer.findIndex((w) => w.id === d);
|
|
38
|
+
if (y !== -1 && (clearInterval(window.SHJDatasourceV2Timer[y].timer), window.SHJDatasourceV2Timer.splice(y, 1)), f.isAutoUpdate) {
|
|
39
|
+
const w = setInterval(() => {
|
|
40
|
+
var l;
|
|
41
|
+
(l = this.task(r, s, n, e, (u) => a(u))) == null || l.then((u) => p(u));
|
|
42
|
+
}, f.autoUpdateTime * 1e3);
|
|
43
|
+
window.SHJDatasourceV2Timer.push({ id: d, timer: w });
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
if (r.source.type !== "ws") {
|
|
47
|
+
(S = this.task(r, s, n, e, (f) => a(f))) == null || S.then((f) => p(f));
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
if (g.hasValidWebSocket(this.wsInstances, e, r.id))
|
|
51
|
+
m.forEach((f) => {
|
|
52
|
+
f.getId() === r.id && c.add(f);
|
|
53
|
+
});
|
|
54
|
+
else {
|
|
55
|
+
const f = W(r, r.id, n, e, (d) => {
|
|
56
|
+
p(d), a({ data: [{ data: d.finalUserData.data }] });
|
|
57
|
+
});
|
|
58
|
+
c.add(f);
|
|
59
|
+
}
|
|
60
|
+
}), c.size > 0 && this.wsInstances.set(e, c);
|
|
61
|
+
}) : (a([]), Promise.resolve([]));
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* 执行数据源任务
|
|
65
|
+
* @param sources 数据源
|
|
66
|
+
* @param isStore 是否存储
|
|
67
|
+
* @param noUseMapping 是否不使用映射
|
|
68
|
+
* @param tId 组件id
|
|
69
|
+
* @param callback 回调函数
|
|
70
|
+
* @returns
|
|
71
|
+
*/
|
|
72
|
+
static task(t, a = !1, e = !1, s, n = () => {
|
|
73
|
+
}) {
|
|
74
|
+
return t ? new Promise((i, p) => {
|
|
75
|
+
let o = null;
|
|
76
|
+
const { source: c } = t, m = this.getParser(c.type);
|
|
77
|
+
m && (o = m(t, t.id, e)), o.then((r) => {
|
|
78
|
+
n(e ? r.noMappingData : r.finalKeyData), i(r);
|
|
79
|
+
});
|
|
80
|
+
}) : (n([]), Promise.resolve([]));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* 过滤数据
|
|
84
|
+
* @param filter 过滤器
|
|
85
|
+
* @param data 数据
|
|
86
|
+
* @returns
|
|
87
|
+
*/
|
|
88
|
+
static filterData(t, a) {
|
|
89
|
+
return new Promise((e, s) => {
|
|
90
|
+
if (K(t)) {
|
|
91
|
+
try {
|
|
92
|
+
const n = g.getVariableData();
|
|
93
|
+
let i = `
|
|
94
|
+
${t}
|
|
95
|
+
|
|
96
|
+
// 在这里调用 filter 函数,并传递 data 参数
|
|
97
|
+
return filter(data);
|
|
98
|
+
`;
|
|
99
|
+
i = i.replace(/\/\*[\s\S]*?\*\/|\/\/.*/g, ""), i = g.replaceStringVariables(i, n);
|
|
100
|
+
const p = new Function("data", i);
|
|
101
|
+
e(p(a));
|
|
102
|
+
} catch {
|
|
103
|
+
e(a);
|
|
104
|
+
}
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
e(a);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* 处理数据
|
|
112
|
+
* @param filter 过滤器
|
|
113
|
+
* @param data 数据
|
|
114
|
+
* @param mappings 映射
|
|
115
|
+
* @param id 组件id
|
|
116
|
+
* @param dynamicMapping 是否动态映射
|
|
117
|
+
* @param noUseMapping 是否不使用映射
|
|
118
|
+
* @returns
|
|
119
|
+
*/
|
|
120
|
+
static processData(t, a, e, s, n, i) {
|
|
121
|
+
return new Promise(function(p) {
|
|
122
|
+
const o = P({ id: s, data: a });
|
|
123
|
+
D.filterData(t, a).then((c) => {
|
|
124
|
+
const m = P({ id: s, data: c });
|
|
125
|
+
if (i)
|
|
126
|
+
p({
|
|
127
|
+
id: s,
|
|
128
|
+
finalKeyData: [],
|
|
129
|
+
finalUserData: { id: s, data: c },
|
|
130
|
+
filteredData: m,
|
|
131
|
+
rawData: o,
|
|
132
|
+
noMappingData: c
|
|
133
|
+
});
|
|
134
|
+
else {
|
|
135
|
+
let r = [];
|
|
136
|
+
V(c) && (r = c.map((d, y) => {
|
|
137
|
+
const w = {};
|
|
138
|
+
if (n && n && y === 0) {
|
|
139
|
+
const l = [];
|
|
140
|
+
for (const u in d) {
|
|
141
|
+
const I = e.find((b) => b.name === u);
|
|
142
|
+
I ? l.push({ alias: I.alias, name: u, type: "any", label: u, mapping: I.mapping, status: !0 }) : l.push({ alias: u, name: u, type: "any", label: u, mapping: u, status: !0 });
|
|
143
|
+
}
|
|
144
|
+
e.splice(0, e.length), e.push(...l);
|
|
145
|
+
}
|
|
146
|
+
return e.forEach((l) => {
|
|
147
|
+
l.alias ? w[l.alias] = d[l.mapping] : w[l.name] = d[l.mapping];
|
|
148
|
+
}), w;
|
|
149
|
+
}));
|
|
150
|
+
const S = P({ id: s, data: r }), f = P({ id: s, data: D.parseMappedData(r, e, s) });
|
|
151
|
+
p({
|
|
152
|
+
id: s,
|
|
153
|
+
finalKeyData: r.length === 0 ? { id: s, data: c } : f,
|
|
154
|
+
finalUserData: r.length === 0 ? { id: s, data: c } : S,
|
|
155
|
+
filteredData: m,
|
|
156
|
+
rawData: o,
|
|
157
|
+
noMappingData: []
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* 解析数据为Key、Data格式
|
|
165
|
+
* @param data 数据
|
|
166
|
+
* @param mappings 映射
|
|
167
|
+
* @param id 组件id
|
|
168
|
+
* @returns
|
|
169
|
+
*/
|
|
170
|
+
static parseMappedData(t, a, e) {
|
|
171
|
+
return t.reduce(
|
|
172
|
+
(s, n) => {
|
|
173
|
+
let i = "系列一";
|
|
174
|
+
a && a.find((o) => o.name === "series") && (i = n[a.find((o) => o.name === "series").name], delete n[a.find((o) => o.name === "series").name]);
|
|
175
|
+
const p = s.find((o) => o.key === i);
|
|
176
|
+
return p ? p.data.push(n) : s.push({ key: i, data: [n] }), s;
|
|
177
|
+
},
|
|
178
|
+
[]
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
T(D, "wsInstances", /* @__PURE__ */ new Map()), T(D, "parsers", /* @__PURE__ */ new Set([
|
|
183
|
+
{ type: "url", parser: j },
|
|
184
|
+
{ type: "static", parser: U },
|
|
185
|
+
{ type: "variable", parser: E },
|
|
186
|
+
{ type: "api", parser: F }
|
|
187
|
+
]));
|
|
188
|
+
let k = D;
|
|
189
|
+
export {
|
|
190
|
+
k as SHJDatasourceV2
|
|
191
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare class DataSourceUtils {
|
|
2
|
+
/**
|
|
3
|
+
* 解析URL中是否包含全局变量
|
|
4
|
+
* 包含 则解析全局变量
|
|
5
|
+
* 不包含 则忽略
|
|
6
|
+
*/
|
|
7
|
+
static replaceURLVariables(url: string, variableData: any[]): string;
|
|
8
|
+
/**
|
|
9
|
+
* 解析对象中是否包含全局变量
|
|
10
|
+
* 包含 则解析全局变量
|
|
11
|
+
* 不包含 则忽略
|
|
12
|
+
*/
|
|
13
|
+
static replaceObjectVariables(obj: any, variableData: any[]): any;
|
|
14
|
+
/**
|
|
15
|
+
* 解析字符串中是否包含全局变量
|
|
16
|
+
* 包含 则解析全局变量
|
|
17
|
+
* 不包含 则忽略
|
|
18
|
+
*/
|
|
19
|
+
static replaceStringVariables(str: string, variableData: any[]): string;
|
|
20
|
+
/**
|
|
21
|
+
* 解析环境变量
|
|
22
|
+
* 包含 则解析环境变量
|
|
23
|
+
* 不包含 则忽略
|
|
24
|
+
*/
|
|
25
|
+
static replaceEnvVariables(url: string, environments: any[]): string;
|
|
26
|
+
/**
|
|
27
|
+
* 返回空数据
|
|
28
|
+
*/
|
|
29
|
+
static noneData(id: string): {
|
|
30
|
+
id: string;
|
|
31
|
+
finalKeyData: any[];
|
|
32
|
+
finalUserData: {
|
|
33
|
+
id: string;
|
|
34
|
+
data: any[];
|
|
35
|
+
};
|
|
36
|
+
filteredData: any[];
|
|
37
|
+
rawData: any[];
|
|
38
|
+
noMappingData: any[];
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* 获取环境变量
|
|
42
|
+
*/
|
|
43
|
+
static getEnvironments(): any;
|
|
44
|
+
/**
|
|
45
|
+
* 获取变量数据
|
|
46
|
+
*/
|
|
47
|
+
static getVariableData(): any;
|
|
48
|
+
static hasValidWebSocket(wsInstances: any, tId: string, sourceId: string): boolean;
|
|
49
|
+
static cleanupPreviousWebSockets(wsInstances: any, sourceIds: string[], tId: string): void;
|
|
50
|
+
}
|