@covalent/echarts 4.0.0 → 4.1.1-beta.3
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/README.md +4 -90
- package/bar/README.md +23 -21
- package/bar/bar.component.d.ts +30 -27
- package/bar/bar.module.d.ts +6 -1
- package/bar/covalent-echarts-bar.d.ts +2 -1
- package/bar/package.json +6 -7
- package/bar/{public-api.d.ts → public_api.d.ts} +0 -0
- package/base/README.md +26 -26
- package/base/axis/axis.component.d.ts +32 -29
- package/base/axis/x-axis.component.d.ts +3 -0
- package/base/axis/y-axis.component.d.ts +3 -0
- package/base/base.module.d.ts +9 -1
- package/base/chart-options.service.d.ts +3 -0
- package/base/chart.component.d.ts +6 -3
- package/base/covalent-echarts-base.d.ts +2 -2
- package/base/dataset/dataset.component.d.ts +8 -5
- package/base/package.json +6 -7
- package/base/{public-api.d.ts → public_api.d.ts} +0 -0
- package/base/series/series.component.d.ts +18 -15
- package/base/{axis → src/axis}/README.md +19 -19
- package/base/{dataset → src/dataset}/README.md +19 -16
- package/covalent-echarts.d.ts +2 -1
- package/esm2020/bar/bar.component.mjs +135 -0
- package/esm2020/bar/bar.module.mjs +19 -0
- package/esm2020/bar/covalent-echarts-bar.mjs +5 -0
- package/esm2020/bar/public_api.mjs +3 -0
- package/esm2020/base/axis/axis.component.mjs +127 -0
- package/esm2020/base/axis/axis.interface.mjs +2 -0
- package/esm2020/base/axis/x-axis.component.mjs +55 -0
- package/esm2020/base/axis/y-axis.component.mjs +55 -0
- package/esm2020/base/base.module.mjs +35 -0
- package/esm2020/base/base.types.mjs +2 -0
- package/esm2020/base/chart-options.service.mjs +65 -0
- package/esm2020/base/chart.component.mjs +195 -0
- package/esm2020/base/covalent-echarts-base.mjs +5 -0
- package/esm2020/base/dataset/dataset.component.mjs +52 -0
- package/esm2020/base/public_api.mjs +10 -0
- package/esm2020/base/series/series.component.mjs +91 -0
- package/esm2020/base/series/series.interface.mjs +2 -0
- package/esm2020/base/themes/aqua-splash.mjs +487 -0
- package/esm2020/base/themes/california-coast.mjs +460 -0
- package/esm2020/base/themes/hawaiian-sunrise.mjs +460 -0
- package/esm2020/base/themes/passion-flower.mjs +460 -0
- package/esm2020/base/themes/razzleberry-pie.mjs +487 -0
- package/esm2020/base/themes/teradata-classic.mjs +487 -0
- package/{esm2015/base/themes/razzleberry-pie.js → esm2020/base/themes/teradata-default.mjs} +30 -35
- package/esm2020/base/themes/urban-sunrise.mjs +460 -0
- package/esm2020/base/themes/volcanic-eruption.mjs +460 -0
- package/esm2020/base/utils/assign-defined.mjs +25 -0
- package/esm2020/base/utils/echarts.mjs +49 -0
- package/esm2020/base/utils/index.mjs +3 -0
- package/esm2020/covalent-echarts.mjs +5 -0
- package/esm2020/graph/covalent-echarts-graph.mjs +5 -0
- package/esm2020/graph/graph.component.mjs +185 -0
- package/esm2020/graph/graph.module.mjs +21 -0
- package/esm2020/graph/public_api.mjs +3 -0
- package/esm2020/line/covalent-echarts-line.mjs +5 -0
- package/esm2020/line/line.component.mjs +159 -0
- package/esm2020/line/line.module.mjs +19 -0
- package/esm2020/line/public_api.mjs +3 -0
- package/esm2020/map/covalent-echarts-map.mjs +5 -0
- package/esm2020/map/map.component.mjs +132 -0
- package/esm2020/map/map.module.mjs +19 -0
- package/esm2020/map/public_api.mjs +3 -0
- package/esm2020/pie/covalent-echarts-pie.mjs +5 -0
- package/esm2020/pie/pie.component.mjs +127 -0
- package/esm2020/pie/pie.module.mjs +19 -0
- package/esm2020/pie/public_api.mjs +3 -0
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/sankey/covalent-echarts-sankey.mjs +5 -0
- package/esm2020/sankey/public_api.mjs +3 -0
- package/esm2020/sankey/sankey.component.mjs +117 -0
- package/esm2020/sankey/sankey.module.mjs +21 -0
- package/esm2020/scatter/covalent-echarts-scatter.mjs +5 -0
- package/esm2020/scatter/public_api.mjs +3 -0
- package/esm2020/scatter/scatter.component.mjs +144 -0
- package/esm2020/scatter/scatter.module.mjs +21 -0
- package/esm2020/toolbox/covalent-echarts-toolbox.mjs +5 -0
- package/esm2020/toolbox/public_api.mjs +3 -0
- package/esm2020/toolbox/toolbox.component.mjs +135 -0
- package/esm2020/toolbox/toolbox.module.mjs +24 -0
- package/esm2020/tooltip/covalent-echarts-tooltip.mjs +5 -0
- package/esm2020/tooltip/public_api.mjs +4 -0
- package/esm2020/tooltip/series-tooltip.component.mjs +102 -0
- package/esm2020/tooltip/tooltip.component.mjs +156 -0
- package/esm2020/tooltip/tooltip.module.mjs +28 -0
- package/esm2020/tree/covalent-echarts-tree.mjs +5 -0
- package/esm2020/tree/public_api.mjs +3 -0
- package/esm2020/tree/tree.component.mjs +117 -0
- package/esm2020/tree/tree.module.mjs +19 -0
- package/esm2020/treemap/covalent-echarts-treemap.mjs +5 -0
- package/esm2020/treemap/public_api.mjs +3 -0
- package/esm2020/treemap/treemap.component.mjs +149 -0
- package/esm2020/treemap/treemap.module.mjs +21 -0
- package/esm2020/wordcloud/covalent-echarts-wordcloud.mjs +5 -0
- package/esm2020/wordcloud/public_api.mjs +3 -0
- package/esm2020/wordcloud/wordcloud.component.mjs +92 -0
- package/esm2020/wordcloud/wordcloud.module.mjs +21 -0
- package/fesm2015/covalent-echarts-bar.mjs +158 -0
- package/fesm2015/covalent-echarts-bar.mjs.map +1 -0
- package/fesm2015/{covalent-echarts-base.js → covalent-echarts-base.mjs} +390 -856
- package/fesm2015/covalent-echarts-base.mjs.map +1 -0
- package/fesm2015/covalent-echarts-graph.mjs +210 -0
- package/fesm2015/covalent-echarts-graph.mjs.map +1 -0
- package/fesm2015/covalent-echarts-line.mjs +182 -0
- package/fesm2015/covalent-echarts-line.mjs.map +1 -0
- package/fesm2015/covalent-echarts-map.mjs +155 -0
- package/fesm2015/covalent-echarts-map.mjs.map +1 -0
- package/fesm2015/covalent-echarts-pie.mjs +150 -0
- package/fesm2015/covalent-echarts-pie.mjs.map +1 -0
- package/fesm2015/covalent-echarts-sankey.mjs +142 -0
- package/fesm2015/covalent-echarts-sankey.mjs.map +1 -0
- package/fesm2015/covalent-echarts-scatter.mjs +169 -0
- package/fesm2015/covalent-echarts-scatter.mjs.map +1 -0
- package/fesm2015/covalent-echarts-toolbox.mjs +158 -0
- package/fesm2015/covalent-echarts-toolbox.mjs.map +1 -0
- package/fesm2015/covalent-echarts-tooltip.mjs +283 -0
- package/fesm2015/covalent-echarts-tooltip.mjs.map +1 -0
- package/fesm2015/covalent-echarts-tree.mjs +140 -0
- package/fesm2015/covalent-echarts-tree.mjs.map +1 -0
- package/fesm2015/covalent-echarts-treemap.mjs +174 -0
- package/fesm2015/covalent-echarts-treemap.mjs.map +1 -0
- package/fesm2015/covalent-echarts-wordcloud.mjs +117 -0
- package/fesm2015/covalent-echarts-wordcloud.mjs.map +1 -0
- package/fesm2015/covalent-echarts.mjs +4 -0
- package/fesm2015/covalent-echarts.mjs.map +1 -0
- package/fesm2020/covalent-echarts-bar.mjs +158 -0
- package/fesm2020/covalent-echarts-bar.mjs.map +1 -0
- package/fesm2020/covalent-echarts-base.mjs +4930 -0
- package/fesm2020/covalent-echarts-base.mjs.map +1 -0
- package/fesm2020/covalent-echarts-graph.mjs +210 -0
- package/fesm2020/covalent-echarts-graph.mjs.map +1 -0
- package/fesm2020/covalent-echarts-line.mjs +182 -0
- package/fesm2020/covalent-echarts-line.mjs.map +1 -0
- package/fesm2020/covalent-echarts-map.mjs +155 -0
- package/fesm2020/covalent-echarts-map.mjs.map +1 -0
- package/fesm2020/covalent-echarts-pie.mjs +150 -0
- package/fesm2020/covalent-echarts-pie.mjs.map +1 -0
- package/fesm2020/covalent-echarts-sankey.mjs +142 -0
- package/fesm2020/covalent-echarts-sankey.mjs.map +1 -0
- package/fesm2020/covalent-echarts-scatter.mjs +169 -0
- package/fesm2020/covalent-echarts-scatter.mjs.map +1 -0
- package/fesm2020/covalent-echarts-toolbox.mjs +163 -0
- package/fesm2020/covalent-echarts-toolbox.mjs.map +1 -0
- package/fesm2020/covalent-echarts-tooltip.mjs +283 -0
- package/fesm2020/covalent-echarts-tooltip.mjs.map +1 -0
- package/fesm2020/covalent-echarts-tree.mjs +140 -0
- package/fesm2020/covalent-echarts-tree.mjs.map +1 -0
- package/fesm2020/covalent-echarts-treemap.mjs +174 -0
- package/fesm2020/covalent-echarts-treemap.mjs.map +1 -0
- package/fesm2020/covalent-echarts-wordcloud.mjs +117 -0
- package/fesm2020/covalent-echarts-wordcloud.mjs.map +1 -0
- package/fesm2020/covalent-echarts.mjs +4 -0
- package/fesm2020/covalent-echarts.mjs.map +1 -0
- package/graph/README.md +21 -19
- package/graph/covalent-echarts-graph.d.ts +2 -1
- package/graph/graph.component.d.ts +63 -60
- package/graph/graph.module.d.ts +6 -1
- package/graph/package.json +6 -7
- package/graph/{public-api.d.ts → public_api.d.ts} +0 -0
- package/line/README.md +19 -21
- package/line/covalent-echarts-line.d.ts +2 -1
- package/line/line.component.d.ts +38 -35
- package/line/line.module.d.ts +6 -1
- package/line/package.json +6 -7
- package/line/{public-api.d.ts → public_api.d.ts} +0 -0
- package/map/README.md +19 -17
- package/map/covalent-echarts-map.d.ts +2 -1
- package/map/map.component.d.ts +30 -27
- package/map/map.module.d.ts +6 -1
- package/map/package.json +6 -7
- package/map/{public-api.d.ts → public_api.d.ts} +0 -0
- package/package.json +130 -31
- package/pie/README.md +17 -15
- package/pie/covalent-echarts-pie.d.ts +2 -1
- package/pie/package.json +6 -7
- package/pie/pie.component.d.ts +29 -26
- package/pie/pie.module.d.ts +6 -1
- package/pie/{public-api.d.ts → public_api.d.ts} +0 -0
- package/{index.d.ts → public_api.d.ts} +0 -0
- package/sankey/README.md +22 -20
- package/sankey/covalent-echarts-sankey.d.ts +2 -1
- package/sankey/package.json +6 -7
- package/sankey/{public-api.d.ts → public_api.d.ts} +0 -0
- package/sankey/sankey.component.d.ts +25 -22
- package/sankey/sankey.module.d.ts +6 -1
- package/scatter/README.md +19 -21
- package/scatter/covalent-echarts-scatter.d.ts +2 -1
- package/scatter/package.json +6 -7
- package/scatter/{public-api.d.ts → public_api.d.ts} +0 -0
- package/scatter/scatter.component.d.ts +34 -31
- package/scatter/scatter.module.d.ts +6 -1
- package/toolbox/README.md +12 -11
- package/toolbox/covalent-echarts-toolbox.d.ts +2 -1
- package/toolbox/package.json +6 -7
- package/toolbox/{public-api.d.ts → public_api.d.ts} +0 -0
- package/toolbox/toolbox.component.d.ts +15 -10
- package/toolbox/toolbox.module.d.ts +6 -1
- package/tooltip/README.md +30 -26
- package/tooltip/covalent-echarts-tooltip.d.ts +2 -1
- package/tooltip/package.json +6 -7
- package/tooltip/{public-api.d.ts → public_api.d.ts} +0 -0
- package/tooltip/series-tooltip.component.d.ts +14 -9
- package/tooltip/tooltip.component.d.ts +21 -16
- package/tooltip/tooltip.module.d.ts +7 -1
- package/tree/README.md +20 -18
- package/tree/covalent-echarts-tree.d.ts +2 -1
- package/tree/package.json +6 -7
- package/tree/{public-api.d.ts → public_api.d.ts} +0 -0
- package/tree/tree.component.d.ts +27 -24
- package/tree/tree.module.d.ts +6 -1
- package/treemap/README.md +23 -21
- package/treemap/covalent-echarts-treemap.d.ts +2 -1
- package/treemap/package.json +6 -7
- package/treemap/{public-api.d.ts → public_api.d.ts} +0 -0
- package/treemap/treemap.component.d.ts +40 -37
- package/treemap/treemap.module.d.ts +6 -1
- package/wordcloud/README.md +25 -23
- package/wordcloud/covalent-echarts-wordcloud.d.ts +2 -1
- package/wordcloud/package.json +6 -7
- package/wordcloud/{public-api.d.ts → public_api.d.ts} +0 -0
- package/wordcloud/wordcloud.component.d.ts +17 -14
- package/wordcloud/wordcloud.module.d.ts +6 -1
- package/bar/covalent-echarts-bar.metadata.json +0 -1
- package/bar/index.d.ts +0 -1
- package/base/chart.component.scss +0 -4
- package/base/covalent-echarts-base.metadata.json +0 -1
- package/base/index.d.ts +0 -1
- package/bundles/covalent-echarts-bar.umd.js +0 -588
- package/bundles/covalent-echarts-bar.umd.js.map +0 -1
- package/bundles/covalent-echarts-bar.umd.min.js +0 -16
- package/bundles/covalent-echarts-bar.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-base.umd.js +0 -5750
- package/bundles/covalent-echarts-base.umd.js.map +0 -1
- package/bundles/covalent-echarts-base.umd.min.js +0 -16
- package/bundles/covalent-echarts-base.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-graph.umd.js +0 -745
- package/bundles/covalent-echarts-graph.umd.js.map +0 -1
- package/bundles/covalent-echarts-graph.umd.min.js +0 -16
- package/bundles/covalent-echarts-graph.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-line.umd.js +0 -638
- package/bundles/covalent-echarts-line.umd.js.map +0 -1
- package/bundles/covalent-echarts-line.umd.min.js +0 -16
- package/bundles/covalent-echarts-line.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-map.umd.js +0 -600
- package/bundles/covalent-echarts-map.umd.js.map +0 -1
- package/bundles/covalent-echarts-map.umd.min.js +0 -16
- package/bundles/covalent-echarts-map.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-pie.umd.js +0 -574
- package/bundles/covalent-echarts-pie.umd.js.map +0 -1
- package/bundles/covalent-echarts-pie.umd.min.js +0 -16
- package/bundles/covalent-echarts-pie.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-sankey.umd.js +0 -570
- package/bundles/covalent-echarts-sankey.umd.js.map +0 -1
- package/bundles/covalent-echarts-sankey.umd.min.js +0 -16
- package/bundles/covalent-echarts-sankey.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-scatter.umd.js +0 -610
- package/bundles/covalent-echarts-scatter.umd.js.map +0 -1
- package/bundles/covalent-echarts-scatter.umd.min.js +0 -16
- package/bundles/covalent-echarts-scatter.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-toolbox.umd.js +0 -460
- package/bundles/covalent-echarts-toolbox.umd.js.map +0 -1
- package/bundles/covalent-echarts-toolbox.umd.min.js +0 -2
- package/bundles/covalent-echarts-toolbox.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-tooltip.umd.js +0 -476
- package/bundles/covalent-echarts-tooltip.umd.js.map +0 -1
- package/bundles/covalent-echarts-tooltip.umd.min.js +0 -2
- package/bundles/covalent-echarts-tooltip.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-tree.umd.js +0 -584
- package/bundles/covalent-echarts-tree.umd.js.map +0 -1
- package/bundles/covalent-echarts-tree.umd.min.js +0 -16
- package/bundles/covalent-echarts-tree.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-treemap.umd.js +0 -728
- package/bundles/covalent-echarts-treemap.umd.js.map +0 -1
- package/bundles/covalent-echarts-treemap.umd.min.js +0 -16
- package/bundles/covalent-echarts-treemap.umd.min.js.map +0 -1
- package/bundles/covalent-echarts-wordcloud.umd.js +0 -521
- package/bundles/covalent-echarts-wordcloud.umd.js.map +0 -1
- package/bundles/covalent-echarts-wordcloud.umd.min.js +0 -16
- package/bundles/covalent-echarts-wordcloud.umd.min.js.map +0 -1
- package/bundles/covalent-echarts.umd.js +0 -9
- package/bundles/covalent-echarts.umd.js.map +0 -1
- package/bundles/covalent-echarts.umd.min.js +0 -2
- package/bundles/covalent-echarts.umd.min.js.map +0 -1
- package/covalent-echarts.metadata.json +0 -1
- package/esm2015/bar/bar.component.js +0 -241
- package/esm2015/bar/bar.module.js +0 -21
- package/esm2015/bar/covalent-echarts-bar.js +0 -10
- package/esm2015/bar/index.js +0 -7
- package/esm2015/bar/public-api.js +0 -8
- package/esm2015/base/axis/axis.component.js +0 -209
- package/esm2015/base/axis/axis.interface.js +0 -324
- package/esm2015/base/axis/x-axis.component.js +0 -67
- package/esm2015/base/axis/y-axis.component.js +0 -67
- package/esm2015/base/base.module.js +0 -31
- package/esm2015/base/base.types.js +0 -278
- package/esm2015/base/chart-options.service.js +0 -115
- package/esm2015/base/chart.component.js +0 -354
- package/esm2015/base/covalent-echarts-base.js +0 -11
- package/esm2015/base/dataset/dataset.component.js +0 -93
- package/esm2015/base/index.js +0 -7
- package/esm2015/base/public-api.js +0 -15
- package/esm2015/base/series/series.component.js +0 -187
- package/esm2015/base/series/series.interface.js +0 -178
- package/esm2015/base/themes/aqua-splash.js +0 -465
- package/esm2015/base/themes/california-coast.js +0 -465
- package/esm2015/base/themes/hawaiian-sunrise.js +0 -465
- package/esm2015/base/themes/passion-flower.js +0 -465
- package/esm2015/base/themes/teradata-classic.js +0 -465
- package/esm2015/base/themes/teradata-default.js +0 -465
- package/esm2015/base/themes/urban-sunrise.js +0 -465
- package/esm2015/base/themes/volcanic-eruption.js +0 -465
- package/esm2015/base/utils/assign-defined.js +0 -37
- package/esm2015/base/utils/echarts.js +0 -60
- package/esm2015/base/utils/index.js +0 -8
- package/esm2015/covalent-echarts.js +0 -10
- package/esm2015/graph/covalent-echarts-graph.js +0 -10
- package/esm2015/graph/graph.component.js +0 -398
- package/esm2015/graph/graph.module.js +0 -21
- package/esm2015/graph/index.js +0 -7
- package/esm2015/graph/public-api.js +0 -8
- package/esm2015/index.js +0 -7
- package/esm2015/line/covalent-echarts-line.js +0 -10
- package/esm2015/line/index.js +0 -7
- package/esm2015/line/line.component.js +0 -291
- package/esm2015/line/line.module.js +0 -21
- package/esm2015/line/public-api.js +0 -8
- package/esm2015/map/covalent-echarts-map.js +0 -10
- package/esm2015/map/index.js +0 -7
- package/esm2015/map/map.component.js +0 -253
- package/esm2015/map/map.module.js +0 -21
- package/esm2015/map/public-api.js +0 -8
- package/esm2015/pie/covalent-echarts-pie.js +0 -10
- package/esm2015/pie/index.js +0 -7
- package/esm2015/pie/pie.component.js +0 -227
- package/esm2015/pie/pie.module.js +0 -21
- package/esm2015/pie/public-api.js +0 -8
- package/esm2015/sankey/covalent-echarts-sankey.js +0 -10
- package/esm2015/sankey/index.js +0 -7
- package/esm2015/sankey/public-api.js +0 -8
- package/esm2015/sankey/sankey.component.js +0 -223
- package/esm2015/sankey/sankey.module.js +0 -21
- package/esm2015/scatter/covalent-echarts-scatter.js +0 -10
- package/esm2015/scatter/index.js +0 -7
- package/esm2015/scatter/public-api.js +0 -8
- package/esm2015/scatter/scatter.component.js +0 -263
- package/esm2015/scatter/scatter.module.js +0 -21
- package/esm2015/toolbox/covalent-echarts-toolbox.js +0 -10
- package/esm2015/toolbox/index.js +0 -7
- package/esm2015/toolbox/public-api.js +0 -8
- package/esm2015/toolbox/toolbox.component.js +0 -405
- package/esm2015/toolbox/toolbox.module.js +0 -21
- package/esm2015/tooltip/covalent-echarts-tooltip.js +0 -10
- package/esm2015/tooltip/index.js +0 -7
- package/esm2015/tooltip/public-api.js +0 -9
- package/esm2015/tooltip/series-tooltip.component.js +0 -170
- package/esm2015/tooltip/tooltip.component.js +0 -246
- package/esm2015/tooltip/tooltip.module.js +0 -26
- package/esm2015/tree/covalent-echarts-tree.js +0 -10
- package/esm2015/tree/index.js +0 -7
- package/esm2015/tree/public-api.js +0 -8
- package/esm2015/tree/tree.component.js +0 -237
- package/esm2015/tree/tree.module.js +0 -21
- package/esm2015/treemap/covalent-echarts-treemap.js +0 -10
- package/esm2015/treemap/index.js +0 -7
- package/esm2015/treemap/public-api.js +0 -8
- package/esm2015/treemap/treemap.component.js +0 -380
- package/esm2015/treemap/treemap.module.js +0 -21
- package/esm2015/wordcloud/covalent-echarts-wordcloud.js +0 -10
- package/esm2015/wordcloud/index.js +0 -7
- package/esm2015/wordcloud/public-api.js +0 -8
- package/esm2015/wordcloud/wordcloud.component.js +0 -174
- package/esm2015/wordcloud/wordcloud.module.js +0 -21
- package/fesm2015/covalent-echarts-bar.js +0 -281
- package/fesm2015/covalent-echarts-bar.js.map +0 -1
- package/fesm2015/covalent-echarts-base.js.map +0 -1
- package/fesm2015/covalent-echarts-graph.js +0 -438
- package/fesm2015/covalent-echarts-graph.js.map +0 -1
- package/fesm2015/covalent-echarts-line.js +0 -331
- package/fesm2015/covalent-echarts-line.js.map +0 -1
- package/fesm2015/covalent-echarts-map.js +0 -293
- package/fesm2015/covalent-echarts-map.js.map +0 -1
- package/fesm2015/covalent-echarts-pie.js +0 -267
- package/fesm2015/covalent-echarts-pie.js.map +0 -1
- package/fesm2015/covalent-echarts-sankey.js +0 -263
- package/fesm2015/covalent-echarts-sankey.js.map +0 -1
- package/fesm2015/covalent-echarts-scatter.js +0 -303
- package/fesm2015/covalent-echarts-scatter.js.map +0 -1
- package/fesm2015/covalent-echarts-toolbox.js +0 -445
- package/fesm2015/covalent-echarts-toolbox.js.map +0 -1
- package/fesm2015/covalent-echarts-tooltip.js +0 -457
- package/fesm2015/covalent-echarts-tooltip.js.map +0 -1
- package/fesm2015/covalent-echarts-tree.js +0 -277
- package/fesm2015/covalent-echarts-tree.js.map +0 -1
- package/fesm2015/covalent-echarts-treemap.js +0 -420
- package/fesm2015/covalent-echarts-treemap.js.map +0 -1
- package/fesm2015/covalent-echarts-wordcloud.js +0 -214
- package/fesm2015/covalent-echarts-wordcloud.js.map +0 -1
- package/fesm2015/covalent-echarts.js +0 -12
- package/fesm2015/covalent-echarts.js.map +0 -1
- package/graph/covalent-echarts-graph.metadata.json +0 -1
- package/graph/index.d.ts +0 -1
- package/line/covalent-echarts-line.metadata.json +0 -1
- package/line/index.d.ts +0 -1
- package/map/covalent-echarts-map.metadata.json +0 -1
- package/map/index.d.ts +0 -1
- package/pie/covalent-echarts-pie.metadata.json +0 -1
- package/pie/index.d.ts +0 -1
- package/sankey/covalent-echarts-sankey.metadata.json +0 -1
- package/sankey/index.d.ts +0 -1
- package/scatter/covalent-echarts-scatter.metadata.json +0 -1
- package/scatter/index.d.ts +0 -1
- package/toolbox/covalent-echarts-toolbox.metadata.json +0 -1
- package/toolbox/index.d.ts +0 -1
- package/tooltip/covalent-echarts-tooltip.metadata.json +0 -1
- package/tooltip/index.d.ts +0 -1
- package/tree/covalent-echarts-tree.metadata.json +0 -1
- package/tree/index.d.ts +0 -1
- package/treemap/covalent-echarts-treemap.metadata.json +0 -1
- package/treemap/index.d.ts +0 -1
- package/wordcloud/covalent-echarts-wordcloud.metadata.json +0 -1
- package/wordcloud/index.d.ts +0 -1
|
@@ -1,457 +0,0 @@
|
|
|
1
|
-
import { Directive, Component, ChangeDetectionStrategy, ChangeDetectorRef, ElementRef, Input, ContentChild, TemplateRef, ViewChild, NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import 'echarts/lib/component/tooltip';
|
|
4
|
-
import { assignDefined, TdChartOptionsService, TdSeriesDirective } from '@covalent/echarts/base';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @fileoverview added by tsickle
|
|
8
|
-
* Generated from: tooltip.component.ts
|
|
9
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10
|
-
*/
|
|
11
|
-
class TdTooltipContext {
|
|
12
|
-
}
|
|
13
|
-
if (false) {
|
|
14
|
-
/** @type {?} */
|
|
15
|
-
TdTooltipContext.prototype.$implicit;
|
|
16
|
-
/** @type {?} */
|
|
17
|
-
TdTooltipContext.prototype.ticket;
|
|
18
|
-
}
|
|
19
|
-
class TdChartTooltipFormatterDirective {
|
|
20
|
-
}
|
|
21
|
-
TdChartTooltipFormatterDirective.decorators = [
|
|
22
|
-
{ type: Directive, args: [{
|
|
23
|
-
selector: 'ng-template[tdTooltipFormatter]',
|
|
24
|
-
},] }
|
|
25
|
-
];
|
|
26
|
-
class TdChartTooltipComponent {
|
|
27
|
-
/**
|
|
28
|
-
* @param {?} _changeDetectorRef
|
|
29
|
-
* @param {?} _elementRef
|
|
30
|
-
* @param {?} _optionsService
|
|
31
|
-
*/
|
|
32
|
-
constructor(_changeDetectorRef, _elementRef, _optionsService) {
|
|
33
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
34
|
-
this._elementRef = _elementRef;
|
|
35
|
-
this._optionsService = _optionsService;
|
|
36
|
-
this._state = {};
|
|
37
|
-
this._context = new TdTooltipContext();
|
|
38
|
-
this.config = {};
|
|
39
|
-
this.show = true;
|
|
40
|
-
this.trigger = 'axis';
|
|
41
|
-
this.showContent = true;
|
|
42
|
-
this.alwaysShowContent = false;
|
|
43
|
-
this.triggerOn = 'mousemove|click';
|
|
44
|
-
this.showDelay = 0;
|
|
45
|
-
this.hideDelay = 0;
|
|
46
|
-
this.enterable = false;
|
|
47
|
-
this.confine = false;
|
|
48
|
-
this.transitionDuration = 0.5;
|
|
49
|
-
// series
|
|
50
|
-
this.backgroundColor = 'rgba(50,50,50,0.7)'; // series
|
|
51
|
-
// series
|
|
52
|
-
this.borderColor = '#333'; // series
|
|
53
|
-
// series
|
|
54
|
-
this.borderWidth = 0; // series
|
|
55
|
-
// series
|
|
56
|
-
this.padding = 5; // series
|
|
57
|
-
// series
|
|
58
|
-
this.textStyle = {
|
|
59
|
-
// series
|
|
60
|
-
color: '#FFF',
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* @return {?}
|
|
65
|
-
*/
|
|
66
|
-
ngOnChanges() {
|
|
67
|
-
this._setOptions();
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* @return {?}
|
|
71
|
-
*/
|
|
72
|
-
ngOnDestroy() {
|
|
73
|
-
this._removeOption();
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* @private
|
|
77
|
-
* @return {?}
|
|
78
|
-
*/
|
|
79
|
-
_setOptions() {
|
|
80
|
-
/** @type {?} */
|
|
81
|
-
const config = assignDefined(this._state, {
|
|
82
|
-
show: this.show,
|
|
83
|
-
trigger: this.trigger,
|
|
84
|
-
axisPointer: this.axisPointer,
|
|
85
|
-
showContent: this.showContent,
|
|
86
|
-
alwaysShowContent: this.alwaysShowContent,
|
|
87
|
-
triggerOn: this.triggerOn,
|
|
88
|
-
showDelay: this.showDelay,
|
|
89
|
-
hideDelay: this.hideDelay,
|
|
90
|
-
enterable: this.enterable,
|
|
91
|
-
confine: this.confine,
|
|
92
|
-
transitionDuration: this.transitionDuration,
|
|
93
|
-
position: this.position,
|
|
94
|
-
formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,
|
|
95
|
-
backgroundColor: this.backgroundColor,
|
|
96
|
-
borderColor: this.borderColor,
|
|
97
|
-
borderWidth: this.borderWidth,
|
|
98
|
-
padding: this.padding,
|
|
99
|
-
textStyle: this.textStyle,
|
|
100
|
-
extraCssText: this.extraCssText,
|
|
101
|
-
}, this.config ? this.config : {});
|
|
102
|
-
// set tooltip configuration in parent chart and render new configurations
|
|
103
|
-
this._optionsService.setOption('tooltip', config);
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* @private
|
|
107
|
-
* @return {?}
|
|
108
|
-
*/
|
|
109
|
-
_removeOption() {
|
|
110
|
-
this._optionsService.clearOption('tooltip');
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* @private
|
|
114
|
-
* @return {?}
|
|
115
|
-
*/
|
|
116
|
-
_formatter() {
|
|
117
|
-
return (/**
|
|
118
|
-
* @param {?} params
|
|
119
|
-
* @param {?} ticket
|
|
120
|
-
* @param {?} callback
|
|
121
|
-
* @return {?}
|
|
122
|
-
*/
|
|
123
|
-
(params, ticket, callback) => {
|
|
124
|
-
this._context = {
|
|
125
|
-
$implicit: params,
|
|
126
|
-
ticket,
|
|
127
|
-
};
|
|
128
|
-
// timeout set since we need to set the HTML at the end of the angular lifecycle when
|
|
129
|
-
// the tooltip delay is more than 0
|
|
130
|
-
setTimeout((/**
|
|
131
|
-
* @return {?}
|
|
132
|
-
*/
|
|
133
|
-
() => {
|
|
134
|
-
callback(ticket, ((/** @type {?} */ (this._elementRef.nativeElement))).innerHTML);
|
|
135
|
-
}));
|
|
136
|
-
this._changeDetectorRef.markForCheck();
|
|
137
|
-
return ((/** @type {?} */ (this._elementRef.nativeElement))).innerHTML;
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
TdChartTooltipComponent.decorators = [
|
|
142
|
-
{ type: Component, args: [{
|
|
143
|
-
selector: 'td-chart-tooltip',
|
|
144
|
-
template: "<ng-template #tooltipContent [ngTemplateOutlet]=\"formatterTemplate\" [ngTemplateOutletContext]=\"_context\"></ng-template>\n",
|
|
145
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
146
|
-
}] }
|
|
147
|
-
];
|
|
148
|
-
/** @nocollapse */
|
|
149
|
-
TdChartTooltipComponent.ctorParameters = () => [
|
|
150
|
-
{ type: ChangeDetectorRef },
|
|
151
|
-
{ type: ElementRef },
|
|
152
|
-
{ type: TdChartOptionsService }
|
|
153
|
-
];
|
|
154
|
-
TdChartTooltipComponent.propDecorators = {
|
|
155
|
-
config: [{ type: Input }],
|
|
156
|
-
show: [{ type: Input }],
|
|
157
|
-
trigger: [{ type: Input }],
|
|
158
|
-
axisPointer: [{ type: Input }],
|
|
159
|
-
showContent: [{ type: Input }],
|
|
160
|
-
alwaysShowContent: [{ type: Input }],
|
|
161
|
-
triggerOn: [{ type: Input }],
|
|
162
|
-
showDelay: [{ type: Input }],
|
|
163
|
-
hideDelay: [{ type: Input }],
|
|
164
|
-
enterable: [{ type: Input }],
|
|
165
|
-
renderMode: [{ type: Input }],
|
|
166
|
-
confine: [{ type: Input }],
|
|
167
|
-
transitionDuration: [{ type: Input }],
|
|
168
|
-
position: [{ type: Input }],
|
|
169
|
-
formatter: [{ type: Input }],
|
|
170
|
-
backgroundColor: [{ type: Input }],
|
|
171
|
-
borderColor: [{ type: Input }],
|
|
172
|
-
borderWidth: [{ type: Input }],
|
|
173
|
-
padding: [{ type: Input }],
|
|
174
|
-
textStyle: [{ type: Input }],
|
|
175
|
-
extraCssText: [{ type: Input }],
|
|
176
|
-
formatterTemplate: [{ type: ContentChild, args: [TdChartTooltipFormatterDirective, { read: TemplateRef, static: true },] }],
|
|
177
|
-
fullTemplate: [{ type: ViewChild, args: ['tooltipContent', { static: true },] }]
|
|
178
|
-
};
|
|
179
|
-
if (false) {
|
|
180
|
-
/**
|
|
181
|
-
* @type {?}
|
|
182
|
-
* @private
|
|
183
|
-
*/
|
|
184
|
-
TdChartTooltipComponent.prototype._state;
|
|
185
|
-
/** @type {?} */
|
|
186
|
-
TdChartTooltipComponent.prototype._context;
|
|
187
|
-
/** @type {?} */
|
|
188
|
-
TdChartTooltipComponent.prototype.config;
|
|
189
|
-
/** @type {?} */
|
|
190
|
-
TdChartTooltipComponent.prototype.show;
|
|
191
|
-
/** @type {?} */
|
|
192
|
-
TdChartTooltipComponent.prototype.trigger;
|
|
193
|
-
/** @type {?} */
|
|
194
|
-
TdChartTooltipComponent.prototype.axisPointer;
|
|
195
|
-
/** @type {?} */
|
|
196
|
-
TdChartTooltipComponent.prototype.showContent;
|
|
197
|
-
/** @type {?} */
|
|
198
|
-
TdChartTooltipComponent.prototype.alwaysShowContent;
|
|
199
|
-
/** @type {?} */
|
|
200
|
-
TdChartTooltipComponent.prototype.triggerOn;
|
|
201
|
-
/** @type {?} */
|
|
202
|
-
TdChartTooltipComponent.prototype.showDelay;
|
|
203
|
-
/** @type {?} */
|
|
204
|
-
TdChartTooltipComponent.prototype.hideDelay;
|
|
205
|
-
/** @type {?} */
|
|
206
|
-
TdChartTooltipComponent.prototype.enterable;
|
|
207
|
-
/** @type {?} */
|
|
208
|
-
TdChartTooltipComponent.prototype.renderMode;
|
|
209
|
-
/** @type {?} */
|
|
210
|
-
TdChartTooltipComponent.prototype.confine;
|
|
211
|
-
/** @type {?} */
|
|
212
|
-
TdChartTooltipComponent.prototype.transitionDuration;
|
|
213
|
-
/** @type {?} */
|
|
214
|
-
TdChartTooltipComponent.prototype.position;
|
|
215
|
-
/** @type {?} */
|
|
216
|
-
TdChartTooltipComponent.prototype.formatter;
|
|
217
|
-
/** @type {?} */
|
|
218
|
-
TdChartTooltipComponent.prototype.backgroundColor;
|
|
219
|
-
/** @type {?} */
|
|
220
|
-
TdChartTooltipComponent.prototype.borderColor;
|
|
221
|
-
/** @type {?} */
|
|
222
|
-
TdChartTooltipComponent.prototype.borderWidth;
|
|
223
|
-
/** @type {?} */
|
|
224
|
-
TdChartTooltipComponent.prototype.padding;
|
|
225
|
-
/** @type {?} */
|
|
226
|
-
TdChartTooltipComponent.prototype.textStyle;
|
|
227
|
-
/** @type {?} */
|
|
228
|
-
TdChartTooltipComponent.prototype.extraCssText;
|
|
229
|
-
/** @type {?} */
|
|
230
|
-
TdChartTooltipComponent.prototype.formatterTemplate;
|
|
231
|
-
/** @type {?} */
|
|
232
|
-
TdChartTooltipComponent.prototype.fullTemplate;
|
|
233
|
-
/**
|
|
234
|
-
* @type {?}
|
|
235
|
-
* @private
|
|
236
|
-
*/
|
|
237
|
-
TdChartTooltipComponent.prototype._changeDetectorRef;
|
|
238
|
-
/**
|
|
239
|
-
* @type {?}
|
|
240
|
-
* @private
|
|
241
|
-
*/
|
|
242
|
-
TdChartTooltipComponent.prototype._elementRef;
|
|
243
|
-
/**
|
|
244
|
-
* @type {?}
|
|
245
|
-
* @private
|
|
246
|
-
*/
|
|
247
|
-
TdChartTooltipComponent.prototype._optionsService;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* @fileoverview added by tsickle
|
|
252
|
-
* Generated from: series-tooltip.component.ts
|
|
253
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
254
|
-
*/
|
|
255
|
-
class TdSeriesTooltipComponent {
|
|
256
|
-
/**
|
|
257
|
-
* @param {?} _changeDetectorRef
|
|
258
|
-
* @param {?} _elementRef
|
|
259
|
-
* @param {?} _seriesComponent
|
|
260
|
-
*/
|
|
261
|
-
constructor(_changeDetectorRef, _elementRef, _seriesComponent) {
|
|
262
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
263
|
-
this._elementRef = _elementRef;
|
|
264
|
-
this._seriesComponent = _seriesComponent;
|
|
265
|
-
this._state = {};
|
|
266
|
-
this._context = new TdTooltipContext();
|
|
267
|
-
this.backgroundColor = 'rgba(50,50,50,0.7)';
|
|
268
|
-
this.borderColor = '#333';
|
|
269
|
-
this.borderWidth = 0;
|
|
270
|
-
this.padding = 5;
|
|
271
|
-
this.textStyle = {
|
|
272
|
-
color: '#FFF',
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
* @return {?}
|
|
277
|
-
*/
|
|
278
|
-
ngOnChanges() {
|
|
279
|
-
this._setOptions();
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
* @return {?}
|
|
283
|
-
*/
|
|
284
|
-
ngOnDestroy() {
|
|
285
|
-
this._removeOption();
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* @private
|
|
289
|
-
* @return {?}
|
|
290
|
-
*/
|
|
291
|
-
_setOptions() {
|
|
292
|
-
/** @type {?} */
|
|
293
|
-
const config = assignDefined(this._state, {
|
|
294
|
-
position: this.position,
|
|
295
|
-
backgroundColor: this.backgroundColor,
|
|
296
|
-
borderColor: this.borderColor,
|
|
297
|
-
borderWidth: this.borderWidth,
|
|
298
|
-
padding: this.padding,
|
|
299
|
-
textStyle: this.textStyle,
|
|
300
|
-
extraCssText: this.extraCssText,
|
|
301
|
-
formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,
|
|
302
|
-
}, this.config ? this.config : {});
|
|
303
|
-
// set series tooltip configuration in parent chart and render new configurations
|
|
304
|
-
this._seriesComponent.setStateOption('tooltip', config);
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* Formatter for tooltip
|
|
308
|
-
*
|
|
309
|
-
* @private
|
|
310
|
-
* @return {?}
|
|
311
|
-
*/
|
|
312
|
-
_formatter() {
|
|
313
|
-
return (/**
|
|
314
|
-
* @param {?} params
|
|
315
|
-
* @param {?} ticket
|
|
316
|
-
* @param {?} callback
|
|
317
|
-
* @return {?}
|
|
318
|
-
*/
|
|
319
|
-
(params, ticket, callback) => {
|
|
320
|
-
this._context = {
|
|
321
|
-
$implicit: params,
|
|
322
|
-
ticket,
|
|
323
|
-
};
|
|
324
|
-
// timeout set since we need to set the HTML at the end of the angular lifecycle when
|
|
325
|
-
// the tooltip delay is more than 0
|
|
326
|
-
setTimeout((/**
|
|
327
|
-
* @return {?}
|
|
328
|
-
*/
|
|
329
|
-
() => {
|
|
330
|
-
callback(ticket, ((/** @type {?} */ (this._elementRef.nativeElement))).innerHTML);
|
|
331
|
-
}));
|
|
332
|
-
this._changeDetectorRef.markForCheck();
|
|
333
|
-
return ((/** @type {?} */ (this._elementRef.nativeElement))).innerHTML;
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
|
-
/**
|
|
337
|
-
* @private
|
|
338
|
-
* @return {?}
|
|
339
|
-
*/
|
|
340
|
-
_removeOption() {
|
|
341
|
-
this._seriesComponent.removeStateOption('tooltip');
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
TdSeriesTooltipComponent.decorators = [
|
|
345
|
-
{ type: Component, args: [{
|
|
346
|
-
selector: 'td-chart-series-tooltip',
|
|
347
|
-
template: "<ng-template #tooltipContent [ngTemplateOutlet]=\"formatterTemplate\" [ngTemplateOutletContext]=\"_context\"></ng-template>\n",
|
|
348
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
349
|
-
}] }
|
|
350
|
-
];
|
|
351
|
-
/** @nocollapse */
|
|
352
|
-
TdSeriesTooltipComponent.ctorParameters = () => [
|
|
353
|
-
{ type: ChangeDetectorRef },
|
|
354
|
-
{ type: ElementRef },
|
|
355
|
-
{ type: TdSeriesDirective }
|
|
356
|
-
];
|
|
357
|
-
TdSeriesTooltipComponent.propDecorators = {
|
|
358
|
-
config: [{ type: Input }],
|
|
359
|
-
formatter: [{ type: Input }],
|
|
360
|
-
position: [{ type: Input }],
|
|
361
|
-
backgroundColor: [{ type: Input }],
|
|
362
|
-
borderColor: [{ type: Input }],
|
|
363
|
-
borderWidth: [{ type: Input }],
|
|
364
|
-
padding: [{ type: Input }],
|
|
365
|
-
textStyle: [{ type: Input }],
|
|
366
|
-
extraCssText: [{ type: Input }],
|
|
367
|
-
formatterTemplate: [{ type: ContentChild, args: [TdChartTooltipFormatterDirective, { read: TemplateRef, static: true },] }],
|
|
368
|
-
fullTemplate: [{ type: ViewChild, args: ['tooltipContent', { static: true },] }]
|
|
369
|
-
};
|
|
370
|
-
if (false) {
|
|
371
|
-
/**
|
|
372
|
-
* @type {?}
|
|
373
|
-
* @private
|
|
374
|
-
*/
|
|
375
|
-
TdSeriesTooltipComponent.prototype._state;
|
|
376
|
-
/** @type {?} */
|
|
377
|
-
TdSeriesTooltipComponent.prototype._context;
|
|
378
|
-
/** @type {?} */
|
|
379
|
-
TdSeriesTooltipComponent.prototype.config;
|
|
380
|
-
/** @type {?} */
|
|
381
|
-
TdSeriesTooltipComponent.prototype.formatter;
|
|
382
|
-
/** @type {?} */
|
|
383
|
-
TdSeriesTooltipComponent.prototype.position;
|
|
384
|
-
/** @type {?} */
|
|
385
|
-
TdSeriesTooltipComponent.prototype.backgroundColor;
|
|
386
|
-
/** @type {?} */
|
|
387
|
-
TdSeriesTooltipComponent.prototype.borderColor;
|
|
388
|
-
/** @type {?} */
|
|
389
|
-
TdSeriesTooltipComponent.prototype.borderWidth;
|
|
390
|
-
/** @type {?} */
|
|
391
|
-
TdSeriesTooltipComponent.prototype.padding;
|
|
392
|
-
/** @type {?} */
|
|
393
|
-
TdSeriesTooltipComponent.prototype.textStyle;
|
|
394
|
-
/** @type {?} */
|
|
395
|
-
TdSeriesTooltipComponent.prototype.extraCssText;
|
|
396
|
-
/** @type {?} */
|
|
397
|
-
TdSeriesTooltipComponent.prototype.formatterTemplate;
|
|
398
|
-
/** @type {?} */
|
|
399
|
-
TdSeriesTooltipComponent.prototype.fullTemplate;
|
|
400
|
-
/**
|
|
401
|
-
* @type {?}
|
|
402
|
-
* @private
|
|
403
|
-
*/
|
|
404
|
-
TdSeriesTooltipComponent.prototype._changeDetectorRef;
|
|
405
|
-
/**
|
|
406
|
-
* @type {?}
|
|
407
|
-
* @private
|
|
408
|
-
*/
|
|
409
|
-
TdSeriesTooltipComponent.prototype._elementRef;
|
|
410
|
-
/**
|
|
411
|
-
* @type {?}
|
|
412
|
-
* @private
|
|
413
|
-
*/
|
|
414
|
-
TdSeriesTooltipComponent.prototype._seriesComponent;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* @fileoverview added by tsickle
|
|
419
|
-
* Generated from: tooltip.module.ts
|
|
420
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
421
|
-
*/
|
|
422
|
-
/** @type {?} */
|
|
423
|
-
const TOOLTIP_MODULE_COMPONENTS = [
|
|
424
|
-
TdChartTooltipComponent,
|
|
425
|
-
TdChartTooltipFormatterDirective,
|
|
426
|
-
TdSeriesTooltipComponent,
|
|
427
|
-
];
|
|
428
|
-
class CovalentTooltipEchartsModule {
|
|
429
|
-
}
|
|
430
|
-
CovalentTooltipEchartsModule.decorators = [
|
|
431
|
-
{ type: NgModule, args: [{
|
|
432
|
-
imports: [CommonModule],
|
|
433
|
-
declarations: [TOOLTIP_MODULE_COMPONENTS],
|
|
434
|
-
exports: [TOOLTIP_MODULE_COMPONENTS],
|
|
435
|
-
},] }
|
|
436
|
-
];
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
* @fileoverview added by tsickle
|
|
440
|
-
* Generated from: public-api.ts
|
|
441
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
442
|
-
*/
|
|
443
|
-
|
|
444
|
-
/**
|
|
445
|
-
* @fileoverview added by tsickle
|
|
446
|
-
* Generated from: index.ts
|
|
447
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
448
|
-
*/
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* @fileoverview added by tsickle
|
|
452
|
-
* Generated from: covalent-echarts-tooltip.ts
|
|
453
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
454
|
-
*/
|
|
455
|
-
|
|
456
|
-
export { CovalentTooltipEchartsModule, TOOLTIP_MODULE_COMPONENTS, TdChartTooltipComponent, TdChartTooltipFormatterDirective, TdSeriesTooltipComponent, TdTooltipContext };
|
|
457
|
-
//# sourceMappingURL=covalent-echarts-tooltip.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"covalent-echarts-tooltip.js","sources":["../../../../src/platform/echarts/tooltip/tooltip.component.ts","../../../../src/platform/echarts/tooltip/series-tooltip.component.ts","../../../../src/platform/echarts/tooltip/tooltip.module.ts"],"sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n TdTooltipTrigger,\n TdTooltipTriggerOn,\n TdTooltipPosition,\n} from '@covalent/echarts/base';\n\nexport class TdTooltipContext {\n $implicit: any;\n ticket: string;\n}\n\n@Directive({\n selector: 'ng-template[tdTooltipFormatter]',\n})\nexport class TdChartTooltipFormatterDirective {}\n\n@Component({\n selector: 'td-chart-tooltip',\n templateUrl: './tooltip.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartTooltipComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n _context: TdTooltipContext = new TdTooltipContext();\n\n @Input() config: any = {};\n\n @Input() show: boolean = true;\n @Input() trigger: TdTooltipTrigger = 'axis';\n @Input() axisPointer: any;\n @Input() showContent: boolean = true;\n @Input() alwaysShowContent: boolean = false;\n @Input() triggerOn: TdTooltipTriggerOn = 'mousemove|click';\n @Input() showDelay: number = 0;\n @Input() hideDelay: number = 0;\n @Input() enterable: boolean = false;\n @Input() renderMode: 'html' | 'richText';\n @Input() confine: boolean = false;\n @Input() transitionDuration: number = 0.5;\n @Input() position: TdTooltipPosition; // series\n @Input() formatter: string | Function; // series\n @Input() backgroundColor: string = 'rgba(50,50,50,0.7)'; // series\n @Input() borderColor: string = '#333'; // series\n @Input() borderWidth: number = 0; // series\n @Input() padding: number = 5; // series\n @Input() textStyle: any = {\n // series\n color: '#FFF',\n };\n @Input() extraCssText: string; // series\n\n @ContentChild(TdChartTooltipFormatterDirective, { read: TemplateRef, static: true })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('tooltipContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n trigger: this.trigger,\n axisPointer: this.axisPointer,\n showContent: this.showContent,\n alwaysShowContent: this.alwaysShowContent,\n triggerOn: this.triggerOn,\n showDelay: this.showDelay,\n hideDelay: this.hideDelay,\n enterable: this.enterable,\n confine: this.confine,\n transitionDuration: this.transitionDuration,\n position: this.position,\n formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,\n backgroundColor: this.backgroundColor,\n borderColor: this.borderColor,\n borderWidth: this.borderWidth,\n padding: this.padding,\n textStyle: this.textStyle,\n extraCssText: this.extraCssText,\n },\n this.config ? this.config : {},\n );\n // set tooltip configuration in parent chart and render new configurations\n this._optionsService.setOption('tooltip', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('tooltip');\n }\n\n private _formatter(): (params: any, ticket: any, callback: (ticket: string, html: string) => void) => string {\n return (params: any, ticket: any, callback: (ticket: string, html: string) => void) => {\n this._context = {\n $implicit: params,\n ticket,\n };\n // timeout set since we need to set the HTML at the end of the angular lifecycle when\n // the tooltip delay is more than 0\n setTimeout(() => {\n callback(ticket, (<HTMLElement>this._elementRef.nativeElement).innerHTML);\n });\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","import {\n Component,\n Input,\n ContentChild,\n ViewChild,\n TemplateRef,\n ChangeDetectorRef,\n ElementRef,\n ChangeDetectionStrategy,\n OnChanges,\n OnDestroy,\n} from '@angular/core';\n\nimport { assignDefined, TdSeriesDirective } from '@covalent/echarts/base';\n\nimport { TdChartTooltipFormatterDirective, TdTooltipContext } from './tooltip.component';\n\n@Component({\n selector: 'td-chart-series-tooltip',\n templateUrl: './tooltip.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdSeriesTooltipComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n _context: TdTooltipContext = new TdTooltipContext();\n\n @Input() config: any;\n\n @Input() formatter: any;\n // Parent tooltip trigger must be set to 'item' to render these properties\n @Input() position: string | string[] | number[];\n @Input() backgroundColor: string = 'rgba(50,50,50,0.7)';\n @Input() borderColor: string = '#333';\n @Input() borderWidth: number = 0;\n @Input() padding: number = 5;\n @Input() textStyle: any = {\n color: '#FFF',\n };\n @Input() extraCssText: string;\n\n @ContentChild(TdChartTooltipFormatterDirective, { read: TemplateRef, static: true })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('tooltipContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _seriesComponent: TdSeriesDirective,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n position: this.position,\n backgroundColor: this.backgroundColor,\n borderColor: this.borderColor,\n borderWidth: this.borderWidth,\n padding: this.padding,\n textStyle: this.textStyle,\n extraCssText: this.extraCssText,\n formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,\n },\n this.config ? this.config : {},\n );\n // set series tooltip configuration in parent chart and render new configurations\n this._seriesComponent.setStateOption('tooltip', config);\n }\n\n /**\n * Formatter for tooltip\n *\n */\n private _formatter(): (params: any, ticket: any, callback: (ticket: string, html: string) => void) => string {\n return (params: any, ticket: any, callback: (ticket: string, html: string) => void) => {\n this._context = {\n $implicit: params,\n ticket,\n };\n // timeout set since we need to set the HTML at the end of the angular lifecycle when\n // the tooltip delay is more than 0\n setTimeout(() => {\n callback(ticket, (<HTMLElement>this._elementRef.nativeElement).innerHTML);\n });\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n\n private _removeOption(): void {\n this._seriesComponent.removeStateOption('tooltip');\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport 'echarts/lib/component/tooltip';\n\nimport { TdChartTooltipComponent, TdChartTooltipFormatterDirective } from './tooltip.component';\nimport { TdSeriesTooltipComponent } from './series-tooltip.component';\n\nexport const TOOLTIP_MODULE_COMPONENTS: Type<any>[] = [\n TdChartTooltipComponent,\n TdChartTooltipFormatterDirective,\n TdSeriesTooltipComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLTIP_MODULE_COMPONENTS],\n exports: [TOOLTIP_MODULE_COMPONENTS],\n})\nexport class CovalentTooltipEchartsModule {}\n"],"names":[],"mappings":";;;;;;;;;;MAsBa,gBAAgB;CAG5B;;;IAFC,qCAAe;;IACf,kCAAe;;MAMJ,gCAAgC;;;YAH5C,SAAS,SAAC;gBACT,QAAQ,EAAE,iCAAiC;aAC5C;;MAQY,uBAAuB;;;;;;IAmClC,YACU,kBAAqC,EACrC,WAAuB,EACvB,eAAsC;QAFtC,uBAAkB,GAAlB,kBAAkB,CAAmB;QACrC,gBAAW,GAAX,WAAW,CAAY;QACvB,oBAAe,GAAf,eAAe,CAAuB;QArCxC,WAAM,GAAQ,EAAE,CAAC;QAEzB,aAAQ,GAAqB,IAAI,gBAAgB,EAAE,CAAC;QAE3C,WAAM,GAAQ,EAAE,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