@covalent/echarts 4.0.0 → 4.1.0-develop.10
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 -22
- 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 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/platform/echarts/toolbox/toolbox.component.ts","../../../../src/platform/echarts/toolbox/toolbox.module.ts"],"names":["Directive","args","selector","TdChartToolboxComponent","_changeDetectorRef","_elementRef","_optionsService","this","_state","config","show","showTitle","transitionDuration","left","top","right","bottom","width","height","prototype","ngOnChanges","_setOptions","ngOnDestroy","_removeOption","_checkFormatterTemplate","assignDefined","name","trigger","orient","itemSize","itemGap","label","feature","iconStyle","zlevel","z","setOption","clearOption","formatterTemplate","Object","assign","dataView","optionToContent","_optionToContentFormatter","_this","markForCheck","innerHTML","Component","template","changeDetection","ChangeDetectionStrategy","OnPush","ChangeDetectorRef","ElementRef","TdChartOptionsService","Input","ContentChild","TdChartViewDataFormatterDirective","read","TemplateRef","ViewChild","static","TOOLBOX_MODULE_COMPONENTS","NgModule","imports","CommonModule","declarations","exports"],"mappings":"6nBA0IA,iCAHCA,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,wDAqCV,SAAAC,EACUC,EACAC,EACAC,GAFAC,KAAAH,mBAAAA,EACAG,KAAAF,YAAAA,EACAE,KAAAD,gBAAAA,EA9BFC,KAAAC,OAAc,GAEbD,KAAAE,OAAc,GAEdF,KAAAG,MAAgB,EAKhBH,KAAAI,WAAqB,EAMrBJ,KAAAK,mBAA6B,GAC7BL,KAAAM,KAAwB,OACxBN,KAAAO,IAAuB,OACvBP,KAAAQ,MAAyB,OACzBR,KAAAS,OAA0B,OAC1BT,KAAAU,MAAyB,OACzBV,KAAAW,OAA0B,cAYnCf,EAAAgB,UAAAC,YAAA,WACEb,KAAKc,eAGPlB,EAAAgB,UAAAG,YAAA,WACEf,KAAKgB,iBAGCpB,EAAAgB,UAAAE,YAAA,WACNd,KAAKiB,8BAECf,EAAcgB,EAAAA,cAClBlB,KAAKC,OACL,CACEE,KAAMH,KAAKG,KACXgB,KAAMnB,KAAKoB,QACXC,OAAQrB,KAAKqB,OACbC,SAAUtB,KAAKsB,SACfC,QAASvB,KAAKuB,QACdnB,UA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AAEC,KAAMC,EAAAA,oCAExDC,EAAAA,UAAS3D,KAAA,CAAC,iBAAkB,CAAE4D,QAAQ,WCpK5BC,EAAyC,CAAC3D,EAAyBsD,KAOhF,iCALCM,EAAAA,SAAQ9D,KAAA,CAAC,CACR+D,QAAS,CAACC,EAAAA,cACVC,aAAc,CAACJ,GACfK,QAAS,CAACL","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 ITdLabel,\n ITdShadow,\n ITdItemStyle,\n TdTextPosition,\n TdTextAlign,\n} from '@covalent/echarts/base';\n\nexport type TdToolboxOrient = 'horizontal' | 'vertical';\nexport type TdImageType = 'png' | 'jpeg';\n\nexport interface ITdAcceptedBrushTypes {\n rect?: string;\n polygon?: string;\n lineX?: string;\n lineY?: string;\n keep?: string;\n clear?: string;\n}\n\nexport interface ITdAcceptedMagicTypes {\n line?: string;\n bar?: string;\n stack?: string;\n tiled?: string;\n}\n\nexport interface ITdToolboxIconEmphasis extends ITdItemStyle, ITdShadow {}\n\nexport interface ITdFeatureIconStyle extends ITdItemStyle, ITdShadow {\n textPosition?: TdTextPosition;\n textAlign?: TdTextAlign;\n emphasis?: ITdToolboxIconEmphasis;\n}\n\nexport interface ITdZoomTitles {\n zoom?: string;\n back?: string;\n}\n\nexport interface ITdSaveAsImage {\n type?: TdImageType;\n name?: string;\n backgroundColor?: any;\n excludeComponents?: string[]; // defaults to ['toolbox']\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n pixelRatio?: number;\n}\n\nexport interface ITdRestore {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n}\n\nexport interface ITdDataView {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n readOnly?: boolean;\n optionToContent?: Function;\n contentToOption?: Function;\n lang?: string[]; // Defaults to Chinese, there are 3 names in data view, which are ['data view', 'turn off' and 'refresh'].\n textareaColor?: string;\n textareaBorderColor?: string;\n textColor?: string;\n buttonColor?: string;\n buttonTextColor?: string;\n}\n\nexport interface ITdDataZoom {\n show?: boolean;\n title?: ITdZoomTitles;\n icon?: ITdZoomTitles;\n iconStyle?: ITdFeatureIconStyle;\n xAxisIndex?: number | number[] | boolean;\n yAxisIndex?: number | number[] | boolean;\n}\n\nexport interface ITdMagicType {\n show?: boolean;\n type?: string[]; // only expects 'line' | 'bar' | 'stack' | 'tiled';\n title?: ITdAcceptedMagicTypes;\n icon?: ITdAcceptedMagicTypes;\n iconStyle?: ITdFeatureIconStyle;\n option?: {\n line?: object;\n bar?: object;\n stack?: object;\n tiled?: object;\n };\n seriesIndex?: {\n line?: any[];\n bar?: any[];\n stack?: any[];\n tiled?: any[];\n };\n}\n\nexport interface ITdBrush {\n type?: any[];\n icon?: ITdAcceptedBrushTypes;\n title?: ITdAcceptedBrushTypes;\n}\n\nexport interface ITdToolboxFeature {\n saveAsImage?: ITdSaveAsImage;\n restore?: ITdRestore;\n dataView?: ITdDataView;\n dataZoom?: ITdDataZoom;\n magicType?: ITdMagicType;\n brush?: ITdBrush;\n}\n\n@Directive({\n selector: 'ng-template[tdViewDataFormatter]',\n})\nexport class TdChartViewDataFormatterDirective {}\n\n@Component({\n selector: 'td-chart-toolbox',\n templateUrl: './toolbox.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartToolboxComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n @Input() config: any = {};\n\n @Input() show: boolean = true;\n @Input() trigger: string;\n @Input() orient: TdToolboxOrient;\n @Input() itemSize: number;\n @Input() itemGap: number;\n @Input() showTitle: boolean = true;\n @Input() label: ITdLabel;\n @Input() feature: ITdToolboxFeature;\n @Input() iconStyle: ITdFeatureIconStyle;\n @Input() zlevel: number;\n @Input() z: number;\n @Input() transitionDuration: number = 0.5;\n @Input() left: string | number = 'auto';\n @Input() top: string | number = 'auto';\n @Input() right: string | number = 'auto';\n @Input() bottom: string | number = 'auto';\n @Input() width: string | number = 'auto';\n @Input() height: string | number = 'auto';\n\n @ContentChild(TdChartViewDataFormatterDirective, { read: TemplateRef })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('toolboxContent', { 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 this._checkFormatterTemplate();\n\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n name: this.trigger,\n orient: this.orient,\n itemSize: this.itemSize,\n itemGap: this.itemGap,\n showTitle: this.showTitle,\n label: this.label,\n feature: this.feature,\n iconStyle: this.iconStyle,\n zlevel: this.zlevel,\n z: this.z,\n transitionDuration: this.transitionDuration,\n left: this.left,\n top: this.top,\n right: this.right,\n bottom: this.bottom,\n width: this.width,\n height: this.height,\n },\n this.config ? this.config : {},\n );\n // set toolbox configuration in parent chart and render new configurations\n this._optionsService.setOption('toolbox', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('toolbox');\n }\n\n private _checkFormatterTemplate(): void {\n if (this.formatterTemplate) {\n this.feature = {\n ...this.feature,\n dataView: {\n ...this.feature.dataView,\n optionToContent: this._optionToContentFormatter(),\n },\n };\n }\n }\n\n private _optionToContentFormatter(): () => string {\n return () => {\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport 'echarts/lib/component/toolbox';\n\nimport { TdChartToolboxComponent, TdChartViewDataFormatterDirective } from './toolbox.component';\n\nexport const TOOLBOX_MODULE_COMPONENTS: Type<any>[] = [TdChartToolboxComponent, TdChartViewDataFormatterDirective];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLBOX_MODULE_COMPONENTS],\n exports: [TOOLBOX_MODULE_COMPONENTS],\n})\nexport class CovalentToolboxEchartsModule {}\n"]}
|
|
@@ -1,476 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('echarts/lib/component/tooltip'), require('@covalent/echarts/base')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@covalent/echarts/tooltip', ['exports', '@angular/core', '@angular/common', 'echarts/lib/component/tooltip', '@covalent/echarts/base'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.covalent = global.covalent || {}, global.covalent.echarts = global.covalent.echarts || {}, global.covalent.echarts.tooltip = {}), global.ng.core, global.ng.common, null, global.covalent.echarts.base));
|
|
5
|
-
}(this, (function (exports, core, common, tooltip, base) { 'use strict';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @fileoverview added by tsickle
|
|
9
|
-
* Generated from: tooltip.component.ts
|
|
10
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11
|
-
*/
|
|
12
|
-
var TdTooltipContext = /** @class */ (function () {
|
|
13
|
-
function TdTooltipContext() {
|
|
14
|
-
}
|
|
15
|
-
return TdTooltipContext;
|
|
16
|
-
}());
|
|
17
|
-
if (false) {
|
|
18
|
-
/** @type {?} */
|
|
19
|
-
TdTooltipContext.prototype.$implicit;
|
|
20
|
-
/** @type {?} */
|
|
21
|
-
TdTooltipContext.prototype.ticket;
|
|
22
|
-
}
|
|
23
|
-
var TdChartTooltipFormatterDirective = /** @class */ (function () {
|
|
24
|
-
function TdChartTooltipFormatterDirective() {
|
|
25
|
-
}
|
|
26
|
-
return TdChartTooltipFormatterDirective;
|
|
27
|
-
}());
|
|
28
|
-
TdChartTooltipFormatterDirective.decorators = [
|
|
29
|
-
{ type: core.Directive, args: [{
|
|
30
|
-
selector: 'ng-template[tdTooltipFormatter]',
|
|
31
|
-
},] }
|
|
32
|
-
];
|
|
33
|
-
var TdChartTooltipComponent = /** @class */ (function () {
|
|
34
|
-
/**
|
|
35
|
-
* @param {?} _changeDetectorRef
|
|
36
|
-
* @param {?} _elementRef
|
|
37
|
-
* @param {?} _optionsService
|
|
38
|
-
*/
|
|
39
|
-
function TdChartTooltipComponent(_changeDetectorRef, _elementRef, _optionsService) {
|
|
40
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
41
|
-
this._elementRef = _elementRef;
|
|
42
|
-
this._optionsService = _optionsService;
|
|
43
|
-
this._state = {};
|
|
44
|
-
this._context = new TdTooltipContext();
|
|
45
|
-
this.config = {};
|
|
46
|
-
this.show = true;
|
|
47
|
-
this.trigger = 'axis';
|
|
48
|
-
this.showContent = true;
|
|
49
|
-
this.alwaysShowContent = false;
|
|
50
|
-
this.triggerOn = 'mousemove|click';
|
|
51
|
-
this.showDelay = 0;
|
|
52
|
-
this.hideDelay = 0;
|
|
53
|
-
this.enterable = false;
|
|
54
|
-
this.confine = false;
|
|
55
|
-
this.transitionDuration = 0.5;
|
|
56
|
-
// series
|
|
57
|
-
this.backgroundColor = 'rgba(50,50,50,0.7)'; // series
|
|
58
|
-
// series
|
|
59
|
-
this.borderColor = '#333'; // series
|
|
60
|
-
// series
|
|
61
|
-
this.borderWidth = 0; // series
|
|
62
|
-
// series
|
|
63
|
-
this.padding = 5; // series
|
|
64
|
-
// series
|
|
65
|
-
this.textStyle = {
|
|
66
|
-
// series
|
|
67
|
-
color: '#FFF',
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* @return {?}
|
|
72
|
-
*/
|
|
73
|
-
TdChartTooltipComponent.prototype.ngOnChanges = function () {
|
|
74
|
-
this._setOptions();
|
|
75
|
-
};
|
|
76
|
-
/**
|
|
77
|
-
* @return {?}
|
|
78
|
-
*/
|
|
79
|
-
TdChartTooltipComponent.prototype.ngOnDestroy = function () {
|
|
80
|
-
this._removeOption();
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* @private
|
|
84
|
-
* @return {?}
|
|
85
|
-
*/
|
|
86
|
-
TdChartTooltipComponent.prototype._setOptions = function () {
|
|
87
|
-
/** @type {?} */
|
|
88
|
-
var config = base.assignDefined(this._state, {
|
|
89
|
-
show: this.show,
|
|
90
|
-
trigger: this.trigger,
|
|
91
|
-
axisPointer: this.axisPointer,
|
|
92
|
-
showContent: this.showContent,
|
|
93
|
-
alwaysShowContent: this.alwaysShowContent,
|
|
94
|
-
triggerOn: this.triggerOn,
|
|
95
|
-
showDelay: this.showDelay,
|
|
96
|
-
hideDelay: this.hideDelay,
|
|
97
|
-
enterable: this.enterable,
|
|
98
|
-
confine: this.confine,
|
|
99
|
-
transitionDuration: this.transitionDuration,
|
|
100
|
-
position: this.position,
|
|
101
|
-
formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,
|
|
102
|
-
backgroundColor: this.backgroundColor,
|
|
103
|
-
borderColor: this.borderColor,
|
|
104
|
-
borderWidth: this.borderWidth,
|
|
105
|
-
padding: this.padding,
|
|
106
|
-
textStyle: this.textStyle,
|
|
107
|
-
extraCssText: this.extraCssText,
|
|
108
|
-
}, this.config ? this.config : {});
|
|
109
|
-
// set tooltip configuration in parent chart and render new configurations
|
|
110
|
-
this._optionsService.setOption('tooltip', config);
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* @private
|
|
114
|
-
* @return {?}
|
|
115
|
-
*/
|
|
116
|
-
TdChartTooltipComponent.prototype._removeOption = function () {
|
|
117
|
-
this._optionsService.clearOption('tooltip');
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* @private
|
|
121
|
-
* @return {?}
|
|
122
|
-
*/
|
|
123
|
-
TdChartTooltipComponent.prototype._formatter = function () {
|
|
124
|
-
var _this = this;
|
|
125
|
-
return ( /**
|
|
126
|
-
* @param {?} params
|
|
127
|
-
* @param {?} ticket
|
|
128
|
-
* @param {?} callback
|
|
129
|
-
* @return {?}
|
|
130
|
-
*/function (params, ticket, callback) {
|
|
131
|
-
_this._context = {
|
|
132
|
-
$implicit: params,
|
|
133
|
-
ticket: ticket,
|
|
134
|
-
};
|
|
135
|
-
// timeout set since we need to set the HTML at the end of the angular lifecycle when
|
|
136
|
-
// the tooltip delay is more than 0
|
|
137
|
-
setTimeout(( /**
|
|
138
|
-
* @return {?}
|
|
139
|
-
*/function () {
|
|
140
|
-
callback(ticket, (( /** @type {?} */(_this._elementRef.nativeElement))).innerHTML);
|
|
141
|
-
}));
|
|
142
|
-
_this._changeDetectorRef.markForCheck();
|
|
143
|
-
return (( /** @type {?} */(_this._elementRef.nativeElement))).innerHTML;
|
|
144
|
-
});
|
|
145
|
-
};
|
|
146
|
-
return TdChartTooltipComponent;
|
|
147
|
-
}());
|
|
148
|
-
TdChartTooltipComponent.decorators = [
|
|
149
|
-
{ type: core.Component, args: [{
|
|
150
|
-
selector: 'td-chart-tooltip',
|
|
151
|
-
template: "<ng-template #tooltipContent [ngTemplateOutlet]=\"formatterTemplate\" [ngTemplateOutletContext]=\"_context\"></ng-template>\n",
|
|
152
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
153
|
-
}] }
|
|
154
|
-
];
|
|
155
|
-
/** @nocollapse */
|
|
156
|
-
TdChartTooltipComponent.ctorParameters = function () { return [
|
|
157
|
-
{ type: core.ChangeDetectorRef },
|
|
158
|
-
{ type: core.ElementRef },
|
|
159
|
-
{ type: base.TdChartOptionsService }
|
|
160
|
-
]; };
|
|
161
|
-
TdChartTooltipComponent.propDecorators = {
|
|
162
|
-
config: [{ type: core.Input }],
|
|
163
|
-
show: [{ type: core.Input }],
|
|
164
|
-
trigger: [{ type: core.Input }],
|
|
165
|
-
axisPointer: [{ type: core.Input }],
|
|
166
|
-
showContent: [{ type: core.Input }],
|
|
167
|
-
alwaysShowContent: [{ type: core.Input }],
|
|
168
|
-
triggerOn: [{ type: core.Input }],
|
|
169
|
-
showDelay: [{ type: core.Input }],
|
|
170
|
-
hideDelay: [{ type: core.Input }],
|
|
171
|
-
enterable: [{ type: core.Input }],
|
|
172
|
-
renderMode: [{ type: core.Input }],
|
|
173
|
-
confine: [{ type: core.Input }],
|
|
174
|
-
transitionDuration: [{ type: core.Input }],
|
|
175
|
-
position: [{ type: core.Input }],
|
|
176
|
-
formatter: [{ type: core.Input }],
|
|
177
|
-
backgroundColor: [{ type: core.Input }],
|
|
178
|
-
borderColor: [{ type: core.Input }],
|
|
179
|
-
borderWidth: [{ type: core.Input }],
|
|
180
|
-
padding: [{ type: core.Input }],
|
|
181
|
-
textStyle: [{ type: core.Input }],
|
|
182
|
-
extraCssText: [{ type: core.Input }],
|
|
183
|
-
formatterTemplate: [{ type: core.ContentChild, args: [TdChartTooltipFormatterDirective, { read: core.TemplateRef, static: true },] }],
|
|
184
|
-
fullTemplate: [{ type: core.ViewChild, args: ['tooltipContent', { static: true },] }]
|
|
185
|
-
};
|
|
186
|
-
if (false) {
|
|
187
|
-
/**
|
|
188
|
-
* @type {?}
|
|
189
|
-
* @private
|
|
190
|
-
*/
|
|
191
|
-
TdChartTooltipComponent.prototype._state;
|
|
192
|
-
/** @type {?} */
|
|
193
|
-
TdChartTooltipComponent.prototype._context;
|
|
194
|
-
/** @type {?} */
|
|
195
|
-
TdChartTooltipComponent.prototype.config;
|
|
196
|
-
/** @type {?} */
|
|
197
|
-
TdChartTooltipComponent.prototype.show;
|
|
198
|
-
/** @type {?} */
|
|
199
|
-
TdChartTooltipComponent.prototype.trigger;
|
|
200
|
-
/** @type {?} */
|
|
201
|
-
TdChartTooltipComponent.prototype.axisPointer;
|
|
202
|
-
/** @type {?} */
|
|
203
|
-
TdChartTooltipComponent.prototype.showContent;
|
|
204
|
-
/** @type {?} */
|
|
205
|
-
TdChartTooltipComponent.prototype.alwaysShowContent;
|
|
206
|
-
/** @type {?} */
|
|
207
|
-
TdChartTooltipComponent.prototype.triggerOn;
|
|
208
|
-
/** @type {?} */
|
|
209
|
-
TdChartTooltipComponent.prototype.showDelay;
|
|
210
|
-
/** @type {?} */
|
|
211
|
-
TdChartTooltipComponent.prototype.hideDelay;
|
|
212
|
-
/** @type {?} */
|
|
213
|
-
TdChartTooltipComponent.prototype.enterable;
|
|
214
|
-
/** @type {?} */
|
|
215
|
-
TdChartTooltipComponent.prototype.renderMode;
|
|
216
|
-
/** @type {?} */
|
|
217
|
-
TdChartTooltipComponent.prototype.confine;
|
|
218
|
-
/** @type {?} */
|
|
219
|
-
TdChartTooltipComponent.prototype.transitionDuration;
|
|
220
|
-
/** @type {?} */
|
|
221
|
-
TdChartTooltipComponent.prototype.position;
|
|
222
|
-
/** @type {?} */
|
|
223
|
-
TdChartTooltipComponent.prototype.formatter;
|
|
224
|
-
/** @type {?} */
|
|
225
|
-
TdChartTooltipComponent.prototype.backgroundColor;
|
|
226
|
-
/** @type {?} */
|
|
227
|
-
TdChartTooltipComponent.prototype.borderColor;
|
|
228
|
-
/** @type {?} */
|
|
229
|
-
TdChartTooltipComponent.prototype.borderWidth;
|
|
230
|
-
/** @type {?} */
|
|
231
|
-
TdChartTooltipComponent.prototype.padding;
|
|
232
|
-
/** @type {?} */
|
|
233
|
-
TdChartTooltipComponent.prototype.textStyle;
|
|
234
|
-
/** @type {?} */
|
|
235
|
-
TdChartTooltipComponent.prototype.extraCssText;
|
|
236
|
-
/** @type {?} */
|
|
237
|
-
TdChartTooltipComponent.prototype.formatterTemplate;
|
|
238
|
-
/** @type {?} */
|
|
239
|
-
TdChartTooltipComponent.prototype.fullTemplate;
|
|
240
|
-
/**
|
|
241
|
-
* @type {?}
|
|
242
|
-
* @private
|
|
243
|
-
*/
|
|
244
|
-
TdChartTooltipComponent.prototype._changeDetectorRef;
|
|
245
|
-
/**
|
|
246
|
-
* @type {?}
|
|
247
|
-
* @private
|
|
248
|
-
*/
|
|
249
|
-
TdChartTooltipComponent.prototype._elementRef;
|
|
250
|
-
/**
|
|
251
|
-
* @type {?}
|
|
252
|
-
* @private
|
|
253
|
-
*/
|
|
254
|
-
TdChartTooltipComponent.prototype._optionsService;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* @fileoverview added by tsickle
|
|
259
|
-
* Generated from: series-tooltip.component.ts
|
|
260
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
261
|
-
*/
|
|
262
|
-
var TdSeriesTooltipComponent = /** @class */ (function () {
|
|
263
|
-
/**
|
|
264
|
-
* @param {?} _changeDetectorRef
|
|
265
|
-
* @param {?} _elementRef
|
|
266
|
-
* @param {?} _seriesComponent
|
|
267
|
-
*/
|
|
268
|
-
function TdSeriesTooltipComponent(_changeDetectorRef, _elementRef, _seriesComponent) {
|
|
269
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
270
|
-
this._elementRef = _elementRef;
|
|
271
|
-
this._seriesComponent = _seriesComponent;
|
|
272
|
-
this._state = {};
|
|
273
|
-
this._context = new TdTooltipContext();
|
|
274
|
-
this.backgroundColor = 'rgba(50,50,50,0.7)';
|
|
275
|
-
this.borderColor = '#333';
|
|
276
|
-
this.borderWidth = 0;
|
|
277
|
-
this.padding = 5;
|
|
278
|
-
this.textStyle = {
|
|
279
|
-
color: '#FFF',
|
|
280
|
-
};
|
|
281
|
-
}
|
|
282
|
-
/**
|
|
283
|
-
* @return {?}
|
|
284
|
-
*/
|
|
285
|
-
TdSeriesTooltipComponent.prototype.ngOnChanges = function () {
|
|
286
|
-
this._setOptions();
|
|
287
|
-
};
|
|
288
|
-
/**
|
|
289
|
-
* @return {?}
|
|
290
|
-
*/
|
|
291
|
-
TdSeriesTooltipComponent.prototype.ngOnDestroy = function () {
|
|
292
|
-
this._removeOption();
|
|
293
|
-
};
|
|
294
|
-
/**
|
|
295
|
-
* @private
|
|
296
|
-
* @return {?}
|
|
297
|
-
*/
|
|
298
|
-
TdSeriesTooltipComponent.prototype._setOptions = function () {
|
|
299
|
-
/** @type {?} */
|
|
300
|
-
var config = base.assignDefined(this._state, {
|
|
301
|
-
position: this.position,
|
|
302
|
-
backgroundColor: this.backgroundColor,
|
|
303
|
-
borderColor: this.borderColor,
|
|
304
|
-
borderWidth: this.borderWidth,
|
|
305
|
-
padding: this.padding,
|
|
306
|
-
textStyle: this.textStyle,
|
|
307
|
-
extraCssText: this.extraCssText,
|
|
308
|
-
formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,
|
|
309
|
-
}, this.config ? this.config : {});
|
|
310
|
-
// set series tooltip configuration in parent chart and render new configurations
|
|
311
|
-
this._seriesComponent.setStateOption('tooltip', config);
|
|
312
|
-
};
|
|
313
|
-
/**
|
|
314
|
-
* Formatter for tooltip
|
|
315
|
-
*
|
|
316
|
-
* @private
|
|
317
|
-
* @return {?}
|
|
318
|
-
*/
|
|
319
|
-
TdSeriesTooltipComponent.prototype._formatter = function () {
|
|
320
|
-
var _this = this;
|
|
321
|
-
return ( /**
|
|
322
|
-
* @param {?} params
|
|
323
|
-
* @param {?} ticket
|
|
324
|
-
* @param {?} callback
|
|
325
|
-
* @return {?}
|
|
326
|
-
*/function (params, ticket, callback) {
|
|
327
|
-
_this._context = {
|
|
328
|
-
$implicit: params,
|
|
329
|
-
ticket: ticket,
|
|
330
|
-
};
|
|
331
|
-
// timeout set since we need to set the HTML at the end of the angular lifecycle when
|
|
332
|
-
// the tooltip delay is more than 0
|
|
333
|
-
setTimeout(( /**
|
|
334
|
-
* @return {?}
|
|
335
|
-
*/function () {
|
|
336
|
-
callback(ticket, (( /** @type {?} */(_this._elementRef.nativeElement))).innerHTML);
|
|
337
|
-
}));
|
|
338
|
-
_this._changeDetectorRef.markForCheck();
|
|
339
|
-
return (( /** @type {?} */(_this._elementRef.nativeElement))).innerHTML;
|
|
340
|
-
});
|
|
341
|
-
};
|
|
342
|
-
/**
|
|
343
|
-
* @private
|
|
344
|
-
* @return {?}
|
|
345
|
-
*/
|
|
346
|
-
TdSeriesTooltipComponent.prototype._removeOption = function () {
|
|
347
|
-
this._seriesComponent.removeStateOption('tooltip');
|
|
348
|
-
};
|
|
349
|
-
return TdSeriesTooltipComponent;
|
|
350
|
-
}());
|
|
351
|
-
TdSeriesTooltipComponent.decorators = [
|
|
352
|
-
{ type: core.Component, args: [{
|
|
353
|
-
selector: 'td-chart-series-tooltip',
|
|
354
|
-
template: "<ng-template #tooltipContent [ngTemplateOutlet]=\"formatterTemplate\" [ngTemplateOutletContext]=\"_context\"></ng-template>\n",
|
|
355
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
356
|
-
}] }
|
|
357
|
-
];
|
|
358
|
-
/** @nocollapse */
|
|
359
|
-
TdSeriesTooltipComponent.ctorParameters = function () { return [
|
|
360
|
-
{ type: core.ChangeDetectorRef },
|
|
361
|
-
{ type: core.ElementRef },
|
|
362
|
-
{ type: base.TdSeriesDirective }
|
|
363
|
-
]; };
|
|
364
|
-
TdSeriesTooltipComponent.propDecorators = {
|
|
365
|
-
config: [{ type: core.Input }],
|
|
366
|
-
formatter: [{ type: core.Input }],
|
|
367
|
-
position: [{ type: core.Input }],
|
|
368
|
-
backgroundColor: [{ type: core.Input }],
|
|
369
|
-
borderColor: [{ type: core.Input }],
|
|
370
|
-
borderWidth: [{ type: core.Input }],
|
|
371
|
-
padding: [{ type: core.Input }],
|
|
372
|
-
textStyle: [{ type: core.Input }],
|
|
373
|
-
extraCssText: [{ type: core.Input }],
|
|
374
|
-
formatterTemplate: [{ type: core.ContentChild, args: [TdChartTooltipFormatterDirective, { read: core.TemplateRef, static: true },] }],
|
|
375
|
-
fullTemplate: [{ type: core.ViewChild, args: ['tooltipContent', { static: true },] }]
|
|
376
|
-
};
|
|
377
|
-
if (false) {
|
|
378
|
-
/**
|
|
379
|
-
* @type {?}
|
|
380
|
-
* @private
|
|
381
|
-
*/
|
|
382
|
-
TdSeriesTooltipComponent.prototype._state;
|
|
383
|
-
/** @type {?} */
|
|
384
|
-
TdSeriesTooltipComponent.prototype._context;
|
|
385
|
-
/** @type {?} */
|
|
386
|
-
TdSeriesTooltipComponent.prototype.config;
|
|
387
|
-
/** @type {?} */
|
|
388
|
-
TdSeriesTooltipComponent.prototype.formatter;
|
|
389
|
-
/** @type {?} */
|
|
390
|
-
TdSeriesTooltipComponent.prototype.position;
|
|
391
|
-
/** @type {?} */
|
|
392
|
-
TdSeriesTooltipComponent.prototype.backgroundColor;
|
|
393
|
-
/** @type {?} */
|
|
394
|
-
TdSeriesTooltipComponent.prototype.borderColor;
|
|
395
|
-
/** @type {?} */
|
|
396
|
-
TdSeriesTooltipComponent.prototype.borderWidth;
|
|
397
|
-
/** @type {?} */
|
|
398
|
-
TdSeriesTooltipComponent.prototype.padding;
|
|
399
|
-
/** @type {?} */
|
|
400
|
-
TdSeriesTooltipComponent.prototype.textStyle;
|
|
401
|
-
/** @type {?} */
|
|
402
|
-
TdSeriesTooltipComponent.prototype.extraCssText;
|
|
403
|
-
/** @type {?} */
|
|
404
|
-
TdSeriesTooltipComponent.prototype.formatterTemplate;
|
|
405
|
-
/** @type {?} */
|
|
406
|
-
TdSeriesTooltipComponent.prototype.fullTemplate;
|
|
407
|
-
/**
|
|
408
|
-
* @type {?}
|
|
409
|
-
* @private
|
|
410
|
-
*/
|
|
411
|
-
TdSeriesTooltipComponent.prototype._changeDetectorRef;
|
|
412
|
-
/**
|
|
413
|
-
* @type {?}
|
|
414
|
-
* @private
|
|
415
|
-
*/
|
|
416
|
-
TdSeriesTooltipComponent.prototype._elementRef;
|
|
417
|
-
/**
|
|
418
|
-
* @type {?}
|
|
419
|
-
* @private
|
|
420
|
-
*/
|
|
421
|
-
TdSeriesTooltipComponent.prototype._seriesComponent;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
/**
|
|
425
|
-
* @fileoverview added by tsickle
|
|
426
|
-
* Generated from: tooltip.module.ts
|
|
427
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
428
|
-
*/
|
|
429
|
-
/** @type {?} */
|
|
430
|
-
var TOOLTIP_MODULE_COMPONENTS = [
|
|
431
|
-
TdChartTooltipComponent,
|
|
432
|
-
TdChartTooltipFormatterDirective,
|
|
433
|
-
TdSeriesTooltipComponent,
|
|
434
|
-
];
|
|
435
|
-
var CovalentTooltipEchartsModule = /** @class */ (function () {
|
|
436
|
-
function CovalentTooltipEchartsModule() {
|
|
437
|
-
}
|
|
438
|
-
return CovalentTooltipEchartsModule;
|
|
439
|
-
}());
|
|
440
|
-
CovalentTooltipEchartsModule.decorators = [
|
|
441
|
-
{ type: core.NgModule, args: [{
|
|
442
|
-
imports: [common.CommonModule],
|
|
443
|
-
declarations: [TOOLTIP_MODULE_COMPONENTS],
|
|
444
|
-
exports: [TOOLTIP_MODULE_COMPONENTS],
|
|
445
|
-
},] }
|
|
446
|
-
];
|
|
447
|
-
|
|
448
|
-
/**
|
|
449
|
-
* @fileoverview added by tsickle
|
|
450
|
-
* Generated from: public-api.ts
|
|
451
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
452
|
-
*/
|
|
453
|
-
|
|
454
|
-
/**
|
|
455
|
-
* @fileoverview added by tsickle
|
|
456
|
-
* Generated from: index.ts
|
|
457
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
458
|
-
*/
|
|
459
|
-
|
|
460
|
-
/**
|
|
461
|
-
* @fileoverview added by tsickle
|
|
462
|
-
* Generated from: covalent-echarts-tooltip.ts
|
|
463
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
464
|
-
*/
|
|
465
|
-
|
|
466
|
-
exports.CovalentTooltipEchartsModule = CovalentTooltipEchartsModule;
|
|
467
|
-
exports.TOOLTIP_MODULE_COMPONENTS = TOOLTIP_MODULE_COMPONENTS;
|
|
468
|
-
exports.TdChartTooltipComponent = TdChartTooltipComponent;
|
|
469
|
-
exports.TdChartTooltipFormatterDirective = TdChartTooltipFormatterDirective;
|
|
470
|
-
exports.TdSeriesTooltipComponent = TdSeriesTooltipComponent;
|
|
471
|
-
exports.TdTooltipContext = TdTooltipContext;
|
|
472
|
-
|
|
473
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
474
|
-
|
|
475
|
-
})));
|
|
476
|
-
//# sourceMappingURL=covalent-echarts-tooltip.umd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"covalent-echarts-tooltip.umd.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":["Directive","assignDefined","Component","ChangeDetectionStrategy","ChangeDetectorRef","ElementRef","TdChartOptionsService","Input","ContentChild","TemplateRef","ViewChild","TdSeriesDirective","NgModule","CommonModule"],"mappings":";;;;;;;;;;;;QAsBA;SAGC;+BAAA;KAAA,IAAA;;;QAFC,qCAAe;;QACf,kCAAe;;;QAMjB;;;;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uBAAuB;QACvB,gCAAgC;QAChC,wBAAwB;;;QAQ1B;;;;;gBALCE,aAAQ,SAAC;oBACR,OAAO,EAAE,CAACC,mBAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,yBAAyB,CAAC;oBACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;iBACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("echarts/lib/component/tooltip"),require("@covalent/echarts/base")):"function"==typeof define&&define.amd?define("@covalent/echarts/tooltip",["exports","@angular/core","@angular/common","echarts/lib/component/tooltip","@covalent/echarts/base"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).covalent=t.covalent||{},t.covalent.echarts=t.covalent.echarts||{},t.covalent.echarts.tooltip={}),t.ng.core,t.ng.common,null,t.covalent.echarts.base)}(this,(function(t,e,o,n,i){"use strict";var r=function(){};var s=function(){};s.decorators=[{type:e.Directive,args:[{selector:"ng-template[tdTooltipFormatter]"}]}];var a=function(){function t(t,e,o){this._changeDetectorRef=t,this._elementRef=e,this._optionsService=o,this._state={},this._context=new r,this.config={},this.show=!0,this.trigger="axis",this.showContent=!0,this.alwaysShowContent=!1,this.triggerOn="mousemove|click",this.showDelay=0,this.hideDelay=0,this.enterable=!1,this.confine=!1,this.transitionDuration=.5,this.backgroundColor="rgba(50,50,50,0.7)",this.borderColor="#333",this.borderWidth=0,this.padding=5,this.textStyle={color:"#FFF"}}return t.prototype.ngOnChanges=function(){this._setOptions()},t.prototype.ngOnDestroy=function(){this._removeOption()},t.prototype._setOptions=function(){var t=i.assignDefined(this._state,{show:this.show,trigger:this.trigger,axisPointer:this.axisPointer,showContent:this.showContent,alwaysShowContent:this.alwaysShowContent,triggerOn:this.triggerOn,showDelay:this.showDelay,hideDelay:this.hideDelay,enterable:this.enterable,confine:this.confine,transitionDuration:this.transitionDuration,position:this.position,formatter:this.formatter?this.formatter:this.formatterTemplate?this._formatter():void 0,backgroundColor:this.backgroundColor,borderColor:this.borderColor,borderWidth:this.borderWidth,padding:this.padding,textStyle:this.textStyle,extraCssText:this.extraCssText},this.config?this.config:{});this._optionsService.setOption("tooltip",t)},t.prototype._removeOption=function(){this._optionsService.clearOption("tooltip")},t.prototype._formatter=function(){var t=this;return function(e,o,n){return t._context={$implicit:e,ticket:o},setTimeout((function(){n(o,t._elementRef.nativeElement.innerHTML)})),t._changeDetectorRef.markForCheck(),t._elementRef.nativeElement.innerHTML}},t}();a.decorators=[{type:e.Component,args:[{selector:"td-chart-tooltip",template:'<ng-template #tooltipContent [ngTemplateOutlet]="formatterTemplate" [ngTemplateOutletContext]="_context"></ng-template>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}]}],a.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:i.TdChartOptionsService}]},a.propDecorators={config:[{type:e.Input}],show:[{type:e.Input}],trigger:[{type:e.Input}],axisPointer:[{type:e.Input}],showContent:[{type:e.Input}],alwaysShowContent:[{type:e.Input}],triggerOn:[{type:e.Input}],showDelay:[{type:e.Input}],hideDelay:[{type:e.Input}],enterable:[{type:e.Input}],renderMode:[{type:e.Input}],confine:[{type:e.Input}],transitionDuration:[{type:e.Input}],position:[{type:e.Input}],formatter:[{type:e.Input}],backgroundColor:[{type:e.Input}],borderColor:[{type:e.Input}],borderWidth:[{type:e.Input}],padding:[{type:e.Input}],textStyle:[{type:e.Input}],extraCssText:[{type:e.Input}],formatterTemplate:[{type:e.ContentChild,args:[s,{read:e.TemplateRef,static:!0}]}],fullTemplate:[{type:e.ViewChild,args:["tooltipContent",{static:!0}]}]};var p=function(){function t(t,e,o){this._changeDetectorRef=t,this._elementRef=e,this._seriesComponent=o,this._state={},this._context=new r,this.backgroundColor="rgba(50,50,50,0.7)",this.borderColor="#333",this.borderWidth=0,this.padding=5,this.textStyle={color:"#FFF"}}return t.prototype.ngOnChanges=function(){this._setOptions()},t.prototype.ngOnDestroy=function(){this._removeOption()},t.prototype._setOptions=function(){var t=i.assignDefined(this._state,{position:this.position,backgroundColor:this.backgroundColor,borderColor:this.borderColor,borderWidth:this.borderWidth,padding:this.padding,textStyle:this.textStyle,extraCssText:this.extraCssText,formatter:this.formatter?this.formatter:this.formatterTemplate?this._formatter():void 0},this.config?this.config:{});this._seriesComponent.setStateOption("tooltip",t)},t.prototype._formatter=function(){var t=this;return function(e,o,n){return t._context={$implicit:e,ticket:o},setTimeout((function(){n(o,t._elementRef.nativeElement.innerHTML)})),t._changeDetectorRef.markForCheck(),t._elementRef.nativeElement.innerHTML}},t.prototype._removeOption=function(){this._seriesComponent.removeStateOption("tooltip")},t}();p.decorators=[{type:e.Component,args:[{selector:"td-chart-series-tooltip",template:'<ng-template #tooltipContent [ngTemplateOutlet]="formatterTemplate" [ngTemplateOutletContext]="_context"></ng-template>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}]}],p.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:i.TdSeriesDirective}]},p.propDecorators={config:[{type:e.Input}],formatter:[{type:e.Input}],position:[{type:e.Input}],backgroundColor:[{type:e.Input}],borderColor:[{type:e.Input}],borderWidth:[{type:e.Input}],padding:[{type:e.Input}],textStyle:[{type:e.Input}],extraCssText:[{type:e.Input}],formatterTemplate:[{type:e.ContentChild,args:[s,{read:e.TemplateRef,static:!0}]}],fullTemplate:[{type:e.ViewChild,args:["tooltipContent",{static:!0}]}]};var h=[a,s,p],l=function(){};l.decorators=[{type:e.NgModule,args:[{imports:[o.CommonModule],declarations:[h],exports:[h]}]}],t.CovalentTooltipEchartsModule=l,t.TOOLTIP_MODULE_COMPONENTS=h,t.TdChartTooltipComponent=a,t.TdChartTooltipFormatterDirective=s,t.TdSeriesTooltipComponent=p,t.TdTooltipContext=r,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
2
|
-
//# sourceMappingURL=covalent-echarts-tooltip.umd.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/platform/echarts/tooltip/tooltip.component.ts","../../../../src/platform/echarts/tooltip/series-tooltip.component.ts","../../../../src/platform/echarts/tooltip/tooltip.module.ts"],"names":["Directive","args","selector","TdChartTooltipComponent","_changeDetectorRef","_elementRef","_optionsService","this","_state","_context","TdTooltipContext","config","show","trigger","showContent","alwaysShowContent","triggerOn","showDelay","hideDelay","enterable","confine","transitionDuration","backgroundColor","borderColor","borderWidth","padding","textStyle","color","prototype","ngOnChanges","_setOptions","ngOnDestroy","_removeOption","assignDefined","axisPointer","position","formatter","formatterTemplate","_formatter","undefined","extraCssText","setOption","clearOption","_this","params","ticket","callback","$implicit","setTimeout","innerHTML","markForCheck","Component","template","changeDetection","ChangeDetectionStrategy","OnPush","ChangeDetectorRef","ElementRef","TdChartOptionsService","Input","ContentChild","TdChartTooltipFormatterDirective","read","TemplateRef","static","ViewChild","TdSeriesTooltipComponent","_seriesComponent","setStateOption","removeStateOption","TdSeriesDirective","TOOLTIP_MODULE_COMPONENTS","NgModule","imports","CommonModule","declarations","exports"],"mappings":"6nBAsBA,mBAQA,iCAHCA,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,uDA4CV,SAAAC,EACUC,EACAC,EACAC,GAFAC,KAAAH,mBAAAA,EACAG,KAAAF,YAAAA,EACAE,KAAAD,gBAAAA,EArCFC,KAAAC,OAAc,GAEtBD,KAAAE,SAA6B,IAAIC,EAExBH,KAAAI,OAAc,GAEdJ,KAAAK,MAAgB,EAChBL,KAAAM,QAA4B,OAE5BN,KAAAO,aAAuB,EACvBP,KAAAQ,mBAA6B,EAC7BR,KAAAS,UAAgC,kBAChCT,KAAAU,UAAoB,EACpBV,KAAAW,UAAoB,EACpBX,KAAAY,WAAqB,EAErBZ,KAAAa,SAAmB,EACnBb,KAAAc,mBAA6B,GAG7Bd,KAAAe,gBAA0B,qBAC1Bf,KAAAgB,YAAsB,OACtBhB,KA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,OAAS,IAG9BJ,KAAK4D,iBAAiBC,eAAe,UAAWzD,IAO1CuD,EAAAtC,UAAAU,WAAA,WAAA,IAAAK,EAAApC,KACN,OAAA,SAAQqC,EAAaC,EAAaC,GAWhC,OAVAH,EAAKlC,SAAW,CACdsC,UAAWH,EACXC,OAAMA,GAIRG,YAAU,WACRF,EAASD,EAAsBF,EAAKtC,YAAyB,cAAE4C,cAEjEN,EAAKvC,mBAAmB8C,eACHP,EAAKtC,YAAyB,cAAE4C,YAIjDiB,EAAAtC,UAAAI,cAAA,WACNzB,KAAK4D,iBAAiBE,kBAAkB,qCAlF3ClB,EAAAA,UAASlD,KAAA,CAAC,CACTC,SAAU,0BACVkD,SAAA,4HACAC,gBAAiBC,EAAAA,wBAAwBC,oDAdzCC,EAAAA,yBACAC,EAAAA,kBAMsBa,EAAAA,qDAcrBX,EAAAA,yBAEAA,EAAAA,wBAEAA,EAAAA,+BACAA,EAAAA,2BACAA,EAAAA,2BACAA,EAAAA,uBACAA,EAAAA,yBACAA,EAAAA,4BAGAA,EAAAA,iCAEAC,EAAAA,aAAY3D,KAAA,CAAC4D,EAAkC,CAAEC,KAAMC,EAAAA,YAAaC,QAAQ,0BAE5EC,EAAAA,UAAShE,KAAA,CAAC,iBAAkB,CAAE+D,QAAQ,WCnC5BO,EAAyC,CACpDpE,EACA0D,EACAK,KAQF,iCALCM,EAAAA,SAAQvE,KAAA,CAAC,CACRwE,QAAS,CAACC,EAAAA,cACVC,aAAc,CAACJ,GACfK,QAAS,CAACL","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"]}
|