@covalent/echarts 4.0.0-alpha.0 → 4.0.0-beta.4
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/bar/bar.component.d.ts +3 -0
- package/bar/bar.module.d.ts +6 -1
- package/bar/covalent-echarts-bar.d.ts +1 -0
- package/bar/package.json +6 -7
- package/base/axis/axis.component.d.ts +3 -0
- 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 +3 -0
- package/base/covalent-echarts-base.d.ts +1 -1
- package/base/dataset/dataset.component.d.ts +3 -0
- package/base/package.json +6 -7
- package/base/series/series.component.d.ts +3 -0
- package/covalent-echarts.d.ts +1 -0
- package/esm2020/bar/bar.component.mjs +136 -0
- package/esm2020/bar/bar.module.mjs +20 -0
- package/esm2020/bar/covalent-echarts-bar.mjs +5 -0
- package/esm2020/bar/index.mjs +2 -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 +36 -0
- package/esm2020/base/base.types.mjs +2 -0
- package/esm2020/base/chart-options.service.mjs +65 -0
- package/esm2020/base/chart.component.mjs +191 -0
- package/esm2020/base/covalent-echarts-base.mjs +5 -0
- package/esm2020/base/dataset/dataset.component.mjs +52 -0
- package/esm2020/base/index.mjs +2 -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/{esm2015/base/themes/teradata-classic.js → esm2020/base/themes/aqua-splash.mjs} +10 -15
- package/esm2020/base/themes/california-coast.mjs +460 -0
- package/esm2020/base/themes/hawaiian-sunrise.mjs +460 -0
- package/{esm2015/base/themes/volcanic-eruption.js → esm2020/base/themes/passion-flower.mjs} +18 -23
- package/esm2020/base/themes/razzleberry-pie.mjs +460 -0
- package/esm2020/base/themes/teradata-classic.mjs +460 -0
- package/{esm2015/base/themes/hawaiian-sunrise.js → esm2020/base/themes/teradata-default.mjs} +18 -23
- 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 +186 -0
- package/esm2020/graph/graph.module.mjs +20 -0
- package/esm2020/graph/index.mjs +2 -0
- package/esm2020/graph/public-api.mjs +3 -0
- package/esm2020/index.mjs +2 -0
- package/esm2020/line/covalent-echarts-line.mjs +5 -0
- package/esm2020/line/index.mjs +2 -0
- package/esm2020/line/line.component.mjs +160 -0
- package/esm2020/line/line.module.mjs +20 -0
- package/esm2020/line/public-api.mjs +3 -0
- package/esm2020/map/covalent-echarts-map.mjs +5 -0
- package/esm2020/map/index.mjs +2 -0
- package/esm2020/map/map.component.mjs +133 -0
- package/esm2020/map/map.module.mjs +20 -0
- package/esm2020/map/public-api.mjs +3 -0
- package/esm2020/pie/covalent-echarts-pie.mjs +5 -0
- package/esm2020/pie/index.mjs +2 -0
- package/esm2020/pie/pie.component.mjs +128 -0
- package/esm2020/pie/pie.module.mjs +20 -0
- package/esm2020/pie/public-api.mjs +3 -0
- package/esm2020/sankey/covalent-echarts-sankey.mjs +5 -0
- package/esm2020/sankey/index.mjs +2 -0
- package/esm2020/sankey/public-api.mjs +3 -0
- package/esm2020/sankey/sankey.component.mjs +118 -0
- package/esm2020/sankey/sankey.module.mjs +20 -0
- package/esm2020/scatter/covalent-echarts-scatter.mjs +5 -0
- package/esm2020/scatter/index.mjs +2 -0
- package/esm2020/scatter/public-api.mjs +3 -0
- package/esm2020/scatter/scatter.component.mjs +145 -0
- package/esm2020/scatter/scatter.module.mjs +20 -0
- package/esm2020/toolbox/covalent-echarts-toolbox.mjs +5 -0
- package/esm2020/toolbox/index.mjs +2 -0
- package/esm2020/toolbox/public-api.mjs +3 -0
- package/esm2020/toolbox/toolbox.component.mjs +151 -0
- package/esm2020/toolbox/toolbox.module.mjs +20 -0
- package/esm2020/tooltip/covalent-echarts-tooltip.mjs +5 -0
- package/esm2020/tooltip/index.mjs +2 -0
- package/esm2020/tooltip/public-api.mjs +4 -0
- package/esm2020/tooltip/series-tooltip.component.mjs +111 -0
- package/esm2020/tooltip/tooltip.component.mjs +165 -0
- package/esm2020/tooltip/tooltip.module.mjs +29 -0
- package/esm2020/tree/covalent-echarts-tree.mjs +5 -0
- package/esm2020/tree/index.mjs +2 -0
- package/esm2020/tree/public-api.mjs +3 -0
- package/esm2020/tree/tree.component.mjs +118 -0
- package/esm2020/tree/tree.module.mjs +20 -0
- package/esm2020/treemap/covalent-echarts-treemap.mjs +5 -0
- package/esm2020/treemap/index.mjs +2 -0
- package/esm2020/treemap/public-api.mjs +3 -0
- package/esm2020/treemap/treemap.component.mjs +150 -0
- package/esm2020/treemap/treemap.module.mjs +20 -0
- package/esm2020/wordcloud/covalent-echarts-wordcloud.mjs +5 -0
- package/esm2020/wordcloud/index.mjs +2 -0
- package/esm2020/wordcloud/public-api.mjs +3 -0
- package/esm2020/wordcloud/wordcloud.component.mjs +93 -0
- package/esm2020/wordcloud/wordcloud.module.mjs +20 -0
- package/fesm2015/covalent-echarts-bar.mjs +164 -0
- package/fesm2015/covalent-echarts-bar.mjs.map +1 -0
- package/fesm2015/covalent-echarts-base.mjs +4864 -0
- package/fesm2015/covalent-echarts-base.mjs.map +1 -0
- package/fesm2015/covalent-echarts-graph.mjs +214 -0
- package/fesm2015/covalent-echarts-graph.mjs.map +1 -0
- package/fesm2015/covalent-echarts-line.mjs +188 -0
- package/fesm2015/covalent-echarts-line.mjs.map +1 -0
- package/fesm2015/covalent-echarts-map.mjs +161 -0
- package/fesm2015/{covalent-echarts-map.js.map → covalent-echarts-map.mjs.map} +1 -1
- package/fesm2015/covalent-echarts-pie.mjs +156 -0
- package/fesm2015/{covalent-echarts-pie.js.map → covalent-echarts-pie.mjs.map} +1 -1
- package/fesm2015/covalent-echarts-sankey.mjs +146 -0
- package/fesm2015/covalent-echarts-sankey.mjs.map +1 -0
- package/fesm2015/covalent-echarts-scatter.mjs +173 -0
- package/fesm2015/covalent-echarts-scatter.mjs.map +1 -0
- package/fesm2015/covalent-echarts-toolbox.mjs +184 -0
- package/fesm2015/covalent-echarts-toolbox.mjs.map +1 -0
- package/fesm2015/covalent-echarts-tooltip.mjs +330 -0
- package/fesm2015/covalent-echarts-tooltip.mjs.map +1 -0
- package/fesm2015/covalent-echarts-tree.mjs +146 -0
- package/fesm2015/covalent-echarts-tree.mjs.map +1 -0
- package/fesm2015/covalent-echarts-treemap.mjs +178 -0
- package/fesm2015/covalent-echarts-treemap.mjs.map +1 -0
- package/fesm2015/covalent-echarts-wordcloud.mjs +121 -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 +160 -0
- package/{fesm2015/covalent-echarts-bar.js.map → fesm2020/covalent-echarts-bar.mjs.map} +1 -1
- package/{fesm2015/covalent-echarts-base.js → fesm2020/covalent-echarts-base.mjs} +218 -769
- 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 +184 -0
- package/fesm2020/covalent-echarts-line.mjs.map +1 -0
- package/fesm2020/covalent-echarts-map.mjs +157 -0
- package/fesm2020/covalent-echarts-map.mjs.map +1 -0
- package/fesm2020/covalent-echarts-pie.mjs +152 -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 +175 -0
- package/fesm2020/covalent-echarts-toolbox.mjs.map +1 -0
- package/fesm2020/covalent-echarts-tooltip.mjs +302 -0
- package/fesm2020/covalent-echarts-tooltip.mjs.map +1 -0
- package/fesm2020/covalent-echarts-tree.mjs +142 -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/covalent-echarts-graph.d.ts +1 -0
- package/graph/graph.component.d.ts +3 -0
- package/graph/graph.module.d.ts +6 -1
- package/graph/package.json +6 -7
- package/line/covalent-echarts-line.d.ts +1 -0
- package/line/line.component.d.ts +3 -0
- package/line/line.module.d.ts +6 -1
- package/line/package.json +6 -7
- package/map/covalent-echarts-map.d.ts +1 -0
- package/map/map.component.d.ts +3 -0
- package/map/map.module.d.ts +6 -1
- package/map/package.json +6 -7
- package/package.json +134 -15
- package/pie/covalent-echarts-pie.d.ts +1 -0
- package/pie/package.json +6 -7
- package/pie/pie.component.d.ts +3 -0
- package/pie/pie.module.d.ts +6 -1
- package/sankey/covalent-echarts-sankey.d.ts +1 -0
- package/sankey/package.json +6 -7
- package/sankey/sankey.component.d.ts +3 -0
- package/sankey/sankey.module.d.ts +6 -1
- package/scatter/covalent-echarts-scatter.d.ts +1 -0
- package/scatter/package.json +6 -7
- package/scatter/scatter.component.d.ts +3 -0
- package/scatter/scatter.module.d.ts +6 -1
- package/toolbox/covalent-echarts-toolbox.d.ts +1 -0
- package/toolbox/package.json +6 -7
- package/toolbox/toolbox.component.d.ts +5 -0
- package/toolbox/toolbox.module.d.ts +6 -1
- package/tooltip/covalent-echarts-tooltip.d.ts +1 -0
- package/tooltip/package.json +6 -7
- package/tooltip/series-tooltip.component.d.ts +3 -0
- package/tooltip/tooltip.component.d.ts +5 -0
- package/tooltip/tooltip.module.d.ts +7 -1
- package/tree/covalent-echarts-tree.d.ts +1 -0
- package/tree/package.json +6 -7
- package/tree/tree.component.d.ts +3 -0
- package/tree/tree.module.d.ts +6 -1
- package/treemap/covalent-echarts-treemap.d.ts +1 -0
- package/treemap/package.json +6 -7
- package/treemap/treemap.component.d.ts +3 -0
- package/treemap/treemap.module.d.ts +6 -1
- package/wordcloud/covalent-echarts-wordcloud.d.ts +1 -0
- package/wordcloud/package.json +6 -7
- package/wordcloud/wordcloud.component.d.ts +3 -0
- package/wordcloud/wordcloud.module.d.ts +6 -1
- package/bar/covalent-echarts-bar.metadata.json +0 -1
- package/base/covalent-echarts-base.metadata.json +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/passion-flower.js +0 -465
- package/esm2015/base/themes/razzleberry-pie.js +0 -465
- package/esm2015/base/themes/teradata-default.js +0 -465
- package/esm2015/base/themes/urban-sunrise.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-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-pie.js +0 -267
- 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/line/covalent-echarts-line.metadata.json +0 -1
- package/map/covalent-echarts-map.metadata.json +0 -1
- package/pie/covalent-echarts-pie.metadata.json +0 -1
- package/sankey/covalent-echarts-sankey.metadata.json +0 -1
- package/scatter/covalent-echarts-scatter.metadata.json +0 -1
- package/toolbox/covalent-echarts-toolbox.metadata.json +0 -1
- package/tooltip/covalent-echarts-tooltip.metadata.json +0 -1
- package/tree/covalent-echarts-tree.metadata.json +0 -1
- package/treemap/covalent-echarts-treemap.metadata.json +0 -1
- package/wordcloud/covalent-echarts-wordcloud.metadata.json +0 -1
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, TemplateRef, Component, ChangeDetectionStrategy, Input, ContentChild, ViewChild, NgModule } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i1 from '@covalent/echarts/base';
|
|
6
|
+
import { assignDefined } from '@covalent/echarts/base';
|
|
7
|
+
|
|
8
|
+
const _c0 = ["toolboxContent"];
|
|
9
|
+
function TdChartToolboxComponent_ng_template_0_Template(rf, ctx) { }
|
|
10
|
+
class TdChartViewDataFormatterDirective {
|
|
11
|
+
}
|
|
12
|
+
/** @nocollapse */ /** @nocollapse */ TdChartViewDataFormatterDirective.ɵfac = function TdChartViewDataFormatterDirective_Factory(t) { return new (t || TdChartViewDataFormatterDirective)(); };
|
|
13
|
+
/** @nocollapse */ /** @nocollapse */ TdChartViewDataFormatterDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdChartViewDataFormatterDirective, selectors: [["ng-template", "tdViewDataFormatter", ""]] });
|
|
14
|
+
(function () {
|
|
15
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdChartViewDataFormatterDirective, [{
|
|
16
|
+
type: Directive,
|
|
17
|
+
args: [{
|
|
18
|
+
selector: 'ng-template[tdViewDataFormatter]',
|
|
19
|
+
}]
|
|
20
|
+
}], null, null);
|
|
21
|
+
})();
|
|
22
|
+
class TdChartToolboxComponent {
|
|
23
|
+
constructor(_changeDetectorRef, _elementRef, _optionsService) {
|
|
24
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
25
|
+
this._elementRef = _elementRef;
|
|
26
|
+
this._optionsService = _optionsService;
|
|
27
|
+
this._state = {};
|
|
28
|
+
this.config = {};
|
|
29
|
+
this.show = true;
|
|
30
|
+
this.showTitle = true;
|
|
31
|
+
this.transitionDuration = 0.5;
|
|
32
|
+
this.left = 'auto';
|
|
33
|
+
this.top = 'auto';
|
|
34
|
+
this.right = 'auto';
|
|
35
|
+
this.bottom = 'auto';
|
|
36
|
+
this.width = 'auto';
|
|
37
|
+
this.height = 'auto';
|
|
38
|
+
}
|
|
39
|
+
ngOnChanges() {
|
|
40
|
+
this._setOptions();
|
|
41
|
+
}
|
|
42
|
+
ngOnDestroy() {
|
|
43
|
+
this._removeOption();
|
|
44
|
+
}
|
|
45
|
+
_setOptions() {
|
|
46
|
+
this._checkFormatterTemplate();
|
|
47
|
+
const config = assignDefined(this._state, {
|
|
48
|
+
show: this.show,
|
|
49
|
+
name: this.trigger,
|
|
50
|
+
orient: this.orient,
|
|
51
|
+
itemSize: this.itemSize,
|
|
52
|
+
itemGap: this.itemGap,
|
|
53
|
+
showTitle: this.showTitle,
|
|
54
|
+
label: this.label,
|
|
55
|
+
feature: this.feature,
|
|
56
|
+
iconStyle: this.iconStyle,
|
|
57
|
+
zlevel: this.zlevel,
|
|
58
|
+
z: this.z,
|
|
59
|
+
transitionDuration: this.transitionDuration,
|
|
60
|
+
left: this.left,
|
|
61
|
+
top: this.top,
|
|
62
|
+
right: this.right,
|
|
63
|
+
bottom: this.bottom,
|
|
64
|
+
width: this.width,
|
|
65
|
+
height: this.height,
|
|
66
|
+
}, this.config ? this.config : {});
|
|
67
|
+
// set toolbox configuration in parent chart and render new configurations
|
|
68
|
+
this._optionsService.setOption('toolbox', config);
|
|
69
|
+
}
|
|
70
|
+
_removeOption() {
|
|
71
|
+
this._optionsService.clearOption('toolbox');
|
|
72
|
+
}
|
|
73
|
+
_checkFormatterTemplate() {
|
|
74
|
+
if (this.formatterTemplate) {
|
|
75
|
+
this.feature = Object.assign(Object.assign({}, this.feature), { dataView: Object.assign(Object.assign({}, this.feature.dataView), { optionToContent: this._optionToContentFormatter() }) });
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
_optionToContentFormatter() {
|
|
79
|
+
return () => {
|
|
80
|
+
this._changeDetectorRef.markForCheck();
|
|
81
|
+
return this._elementRef.nativeElement.innerHTML;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/** @nocollapse */ /** @nocollapse */ TdChartToolboxComponent.ɵfac = function TdChartToolboxComponent_Factory(t) { return new (t || TdChartToolboxComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.TdChartOptionsService)); };
|
|
86
|
+
/** @nocollapse */ /** @nocollapse */ TdChartToolboxComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdChartToolboxComponent, selectors: [["td-chart-toolbox"]], contentQueries: function TdChartToolboxComponent_ContentQueries(rf, ctx, dirIndex) {
|
|
87
|
+
if (rf & 1) {
|
|
88
|
+
i0.ɵɵcontentQuery(dirIndex, TdChartViewDataFormatterDirective, 5, TemplateRef);
|
|
89
|
+
}
|
|
90
|
+
if (rf & 2) {
|
|
91
|
+
let _t;
|
|
92
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.formatterTemplate = _t.first);
|
|
93
|
+
}
|
|
94
|
+
}, viewQuery: function TdChartToolboxComponent_Query(rf, ctx) {
|
|
95
|
+
if (rf & 1) {
|
|
96
|
+
i0.ɵɵviewQuery(_c0, 7);
|
|
97
|
+
}
|
|
98
|
+
if (rf & 2) {
|
|
99
|
+
let _t;
|
|
100
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fullTemplate = _t.first);
|
|
101
|
+
}
|
|
102
|
+
}, inputs: { config: "config", show: "show", trigger: "trigger", orient: "orient", itemSize: "itemSize", itemGap: "itemGap", showTitle: "showTitle", label: "label", feature: "feature", iconStyle: "iconStyle", zlevel: "zlevel", z: "z", transitionDuration: "transitionDuration", left: "left", top: "top", right: "right", bottom: "bottom", width: "width", height: "height" }, features: [i0.ɵɵNgOnChangesFeature], decls: 2, vars: 1, consts: [[3, "ngTemplateOutlet"], ["toolboxContent", ""]], template: function TdChartToolboxComponent_Template(rf, ctx) {
|
|
103
|
+
if (rf & 1) {
|
|
104
|
+
i0.ɵɵtemplate(0, TdChartToolboxComponent_ng_template_0_Template, 0, 0, "ng-template", 0, 1, i0.ɵɵtemplateRefExtractor);
|
|
105
|
+
}
|
|
106
|
+
if (rf & 2) {
|
|
107
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx.formatterTemplate);
|
|
108
|
+
}
|
|
109
|
+
}, directives: [i2.NgTemplateOutlet], encapsulation: 2, changeDetection: 0 });
|
|
110
|
+
(function () {
|
|
111
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdChartToolboxComponent, [{
|
|
112
|
+
type: Component,
|
|
113
|
+
args: [{ selector: 'td-chart-toolbox', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #toolboxContent [ngTemplateOutlet]=\"formatterTemplate\"></ng-template>\n" }]
|
|
114
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdChartOptionsService }]; }, { config: [{
|
|
115
|
+
type: Input
|
|
116
|
+
}], show: [{
|
|
117
|
+
type: Input
|
|
118
|
+
}], trigger: [{
|
|
119
|
+
type: Input
|
|
120
|
+
}], orient: [{
|
|
121
|
+
type: Input
|
|
122
|
+
}], itemSize: [{
|
|
123
|
+
type: Input
|
|
124
|
+
}], itemGap: [{
|
|
125
|
+
type: Input
|
|
126
|
+
}], showTitle: [{
|
|
127
|
+
type: Input
|
|
128
|
+
}], label: [{
|
|
129
|
+
type: Input
|
|
130
|
+
}], feature: [{
|
|
131
|
+
type: Input
|
|
132
|
+
}], iconStyle: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], zlevel: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}], z: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}], transitionDuration: [{
|
|
139
|
+
type: Input
|
|
140
|
+
}], left: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}], top: [{
|
|
143
|
+
type: Input
|
|
144
|
+
}], right: [{
|
|
145
|
+
type: Input
|
|
146
|
+
}], bottom: [{
|
|
147
|
+
type: Input
|
|
148
|
+
}], width: [{
|
|
149
|
+
type: Input
|
|
150
|
+
}], height: [{
|
|
151
|
+
type: Input
|
|
152
|
+
}], formatterTemplate: [{
|
|
153
|
+
type: ContentChild,
|
|
154
|
+
args: [TdChartViewDataFormatterDirective, { read: TemplateRef }]
|
|
155
|
+
}], fullTemplate: [{
|
|
156
|
+
type: ViewChild,
|
|
157
|
+
args: ['toolboxContent', { static: true }]
|
|
158
|
+
}] });
|
|
159
|
+
})();
|
|
160
|
+
|
|
161
|
+
const TOOLBOX_MODULE_COMPONENTS = [TdChartToolboxComponent, TdChartViewDataFormatterDirective];
|
|
162
|
+
class CovalentToolboxEchartsModule {
|
|
163
|
+
}
|
|
164
|
+
/** @nocollapse */ /** @nocollapse */ CovalentToolboxEchartsModule.ɵfac = function CovalentToolboxEchartsModule_Factory(t) { return new (t || CovalentToolboxEchartsModule)(); };
|
|
165
|
+
/** @nocollapse */ /** @nocollapse */ CovalentToolboxEchartsModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: CovalentToolboxEchartsModule });
|
|
166
|
+
/** @nocollapse */ /** @nocollapse */ CovalentToolboxEchartsModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ imports: [[CommonModule]] });
|
|
167
|
+
(function () {
|
|
168
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentToolboxEchartsModule, [{
|
|
169
|
+
type: NgModule,
|
|
170
|
+
args: [{
|
|
171
|
+
imports: [CommonModule],
|
|
172
|
+
declarations: [TOOLBOX_MODULE_COMPONENTS],
|
|
173
|
+
exports: [TOOLBOX_MODULE_COMPONENTS],
|
|
174
|
+
}]
|
|
175
|
+
}], null, null);
|
|
176
|
+
})();
|
|
177
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentToolboxEchartsModule, { declarations: [TdChartToolboxComponent, TdChartViewDataFormatterDirective], imports: [CommonModule], exports: [TdChartToolboxComponent, TdChartViewDataFormatterDirective] }); })();
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Generated bundle index. Do not edit.
|
|
181
|
+
*/
|
|
182
|
+
|
|
183
|
+
export { CovalentToolboxEchartsModule, TOOLBOX_MODULE_COMPONENTS, TdChartToolboxComponent, TdChartViewDataFormatterDirective };
|
|
184
|
+
//# sourceMappingURL=covalent-echarts-toolbox.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"covalent-echarts-toolbox.mjs","sources":["../../../../src/platform/echarts/toolbox/toolbox.component.ts","../../../../src/platform/echarts/toolbox/toolbox.component.html","../../../../src/platform/echarts/toolbox/toolbox.module.ts","../../../../src/platform/echarts/toolbox/covalent-echarts-toolbox.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 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","<ng-template #toolboxContent [ngTemplateOutlet]=\"formatterTemplate\"></ng-template>\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MA0Ia,iCAAiC;;wJAAjC,iCAAiC;sIAAjC,iCAAiC;;4EAAjC,iCAAiC;kBAH7C,SAAS;mBAAC;oBACT,QAAQ,EAAE,kCAAkC;iBAC7C;;;MAQY,uBAAuB;IA4BlC,YACU,kBAAqC,EACrC,WAAuB,EACvB,eAAsC;QAFtC,uBAAkB,GAAlB,kBAAkB,CAAmB;Q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AAK;gBACG,GAAG;sBAAX,KAAK;gBACG,KAAK;sBAAb,KAAK;gBACG,MAAM;sBAAd,KAAK;gBACG,KAAK;sBAAb,KAAK;gBACG,MAAM;sBAAd,KAAK;gBAGN,iBAAiB;sBADhB,YAAY;uBAAC,iCAAiC,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;gBAEvB,YAAY;sBAA1D,SAAS;uBAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;;;MEtKlC,yBAAyB,GAAgB,CAAC,uBAAuB,EAAE,iCAAiC,EAAE;MAOtG,4BAA4B;;8IAA5B,4BAA4B;gIAA5B,4BAA4B;oIAJ9B,CAAC,YAAY,CAAC;;4EAIZ,4BAA4B;kBALxC,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,yBAAyB,CAAC;oBACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;iBACrC;;;wFACY,4BAA4B,mBAPc,uBAAuB,EAAE,iCAAiC,aAGrG,YAAY,aAH+B,uBAAuB,EAAE,iCAAiC;;ACLjH;;;;;;"}
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, TemplateRef, Component, ChangeDetectionStrategy, Input, ContentChild, ViewChild, NgModule } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i1 from '@covalent/echarts/base';
|
|
6
|
+
import { assignDefined } from '@covalent/echarts/base';
|
|
7
|
+
|
|
8
|
+
const _c0$1 = ["tooltipContent"];
|
|
9
|
+
function TdChartTooltipComponent_ng_template_0_Template(rf, ctx) { }
|
|
10
|
+
class TdTooltipContext {
|
|
11
|
+
}
|
|
12
|
+
class TdChartTooltipFormatterDirective {
|
|
13
|
+
}
|
|
14
|
+
/** @nocollapse */ /** @nocollapse */ TdChartTooltipFormatterDirective.ɵfac = function TdChartTooltipFormatterDirective_Factory(t) { return new (t || TdChartTooltipFormatterDirective)(); };
|
|
15
|
+
/** @nocollapse */ /** @nocollapse */ TdChartTooltipFormatterDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdChartTooltipFormatterDirective, selectors: [["ng-template", "tdTooltipFormatter", ""]] });
|
|
16
|
+
(function () {
|
|
17
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdChartTooltipFormatterDirective, [{
|
|
18
|
+
type: Directive,
|
|
19
|
+
args: [{
|
|
20
|
+
selector: 'ng-template[tdTooltipFormatter]',
|
|
21
|
+
}]
|
|
22
|
+
}], null, null);
|
|
23
|
+
})();
|
|
24
|
+
class TdChartTooltipComponent {
|
|
25
|
+
constructor(_changeDetectorRef, _elementRef, _optionsService) {
|
|
26
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
27
|
+
this._elementRef = _elementRef;
|
|
28
|
+
this._optionsService = _optionsService;
|
|
29
|
+
this._state = {};
|
|
30
|
+
this._context = new TdTooltipContext();
|
|
31
|
+
this.config = {};
|
|
32
|
+
this.show = true;
|
|
33
|
+
this.trigger = 'axis';
|
|
34
|
+
this.showContent = true;
|
|
35
|
+
this.alwaysShowContent = false;
|
|
36
|
+
this.triggerOn = 'mousemove|click';
|
|
37
|
+
this.showDelay = 0;
|
|
38
|
+
this.hideDelay = 0;
|
|
39
|
+
this.enterable = false;
|
|
40
|
+
this.confine = false;
|
|
41
|
+
this.transitionDuration = 0.5;
|
|
42
|
+
this.backgroundColor = 'rgba(50,50,50,0.7)'; // series
|
|
43
|
+
this.borderColor = '#333'; // series
|
|
44
|
+
this.borderWidth = 0; // series
|
|
45
|
+
this.padding = 5; // series
|
|
46
|
+
this.textStyle = {
|
|
47
|
+
// series
|
|
48
|
+
color: '#FFF',
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
ngOnChanges() {
|
|
52
|
+
this._setOptions();
|
|
53
|
+
}
|
|
54
|
+
ngOnDestroy() {
|
|
55
|
+
this._removeOption();
|
|
56
|
+
}
|
|
57
|
+
_setOptions() {
|
|
58
|
+
const config = assignDefined(this._state, {
|
|
59
|
+
show: this.show,
|
|
60
|
+
trigger: this.trigger,
|
|
61
|
+
axisPointer: this.axisPointer,
|
|
62
|
+
showContent: this.showContent,
|
|
63
|
+
alwaysShowContent: this.alwaysShowContent,
|
|
64
|
+
triggerOn: this.triggerOn,
|
|
65
|
+
showDelay: this.showDelay,
|
|
66
|
+
hideDelay: this.hideDelay,
|
|
67
|
+
enterable: this.enterable,
|
|
68
|
+
confine: this.confine,
|
|
69
|
+
transitionDuration: this.transitionDuration,
|
|
70
|
+
position: this.position,
|
|
71
|
+
formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,
|
|
72
|
+
backgroundColor: this.backgroundColor,
|
|
73
|
+
borderColor: this.borderColor,
|
|
74
|
+
borderWidth: this.borderWidth,
|
|
75
|
+
padding: this.padding,
|
|
76
|
+
textStyle: this.textStyle,
|
|
77
|
+
extraCssText: this.extraCssText,
|
|
78
|
+
}, this.config ? this.config : {});
|
|
79
|
+
// set tooltip configuration in parent chart and render new configurations
|
|
80
|
+
this._optionsService.setOption('tooltip', config);
|
|
81
|
+
}
|
|
82
|
+
_removeOption() {
|
|
83
|
+
this._optionsService.clearOption('tooltip');
|
|
84
|
+
}
|
|
85
|
+
_formatter() {
|
|
86
|
+
return (params, ticket, callback) => {
|
|
87
|
+
this._context = {
|
|
88
|
+
$implicit: params,
|
|
89
|
+
ticket,
|
|
90
|
+
};
|
|
91
|
+
// timeout set since we need to set the HTML at the end of the angular lifecycle when
|
|
92
|
+
// the tooltip delay is more than 0
|
|
93
|
+
setTimeout(() => {
|
|
94
|
+
callback(ticket, this._elementRef.nativeElement.innerHTML);
|
|
95
|
+
});
|
|
96
|
+
this._changeDetectorRef.markForCheck();
|
|
97
|
+
return this._elementRef.nativeElement.innerHTML;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/** @nocollapse */ /** @nocollapse */ TdChartTooltipComponent.ɵfac = function TdChartTooltipComponent_Factory(t) { return new (t || TdChartTooltipComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.TdChartOptionsService)); };
|
|
102
|
+
/** @nocollapse */ /** @nocollapse */ TdChartTooltipComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdChartTooltipComponent, selectors: [["td-chart-tooltip"]], contentQueries: function TdChartTooltipComponent_ContentQueries(rf, ctx, dirIndex) {
|
|
103
|
+
if (rf & 1) {
|
|
104
|
+
i0.ɵɵcontentQuery(dirIndex, TdChartTooltipFormatterDirective, 7, TemplateRef);
|
|
105
|
+
}
|
|
106
|
+
if (rf & 2) {
|
|
107
|
+
let _t;
|
|
108
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.formatterTemplate = _t.first);
|
|
109
|
+
}
|
|
110
|
+
}, viewQuery: function TdChartTooltipComponent_Query(rf, ctx) {
|
|
111
|
+
if (rf & 1) {
|
|
112
|
+
i0.ɵɵviewQuery(_c0$1, 7);
|
|
113
|
+
}
|
|
114
|
+
if (rf & 2) {
|
|
115
|
+
let _t;
|
|
116
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fullTemplate = _t.first);
|
|
117
|
+
}
|
|
118
|
+
}, inputs: { config: "config", show: "show", trigger: "trigger", axisPointer: "axisPointer", showContent: "showContent", alwaysShowContent: "alwaysShowContent", triggerOn: "triggerOn", showDelay: "showDelay", hideDelay: "hideDelay", enterable: "enterable", renderMode: "renderMode", confine: "confine", transitionDuration: "transitionDuration", position: "position", formatter: "formatter", backgroundColor: "backgroundColor", borderColor: "borderColor", borderWidth: "borderWidth", padding: "padding", textStyle: "textStyle", extraCssText: "extraCssText" }, features: [i0.ɵɵNgOnChangesFeature], decls: 2, vars: 2, consts: [[3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["tooltipContent", ""]], template: function TdChartTooltipComponent_Template(rf, ctx) {
|
|
119
|
+
if (rf & 1) {
|
|
120
|
+
i0.ɵɵtemplate(0, TdChartTooltipComponent_ng_template_0_Template, 0, 0, "ng-template", 0, 1, i0.ɵɵtemplateRefExtractor);
|
|
121
|
+
}
|
|
122
|
+
if (rf & 2) {
|
|
123
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx.formatterTemplate)("ngTemplateOutletContext", ctx._context);
|
|
124
|
+
}
|
|
125
|
+
}, directives: [i2.NgTemplateOutlet], encapsulation: 2, changeDetection: 0 });
|
|
126
|
+
(function () {
|
|
127
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdChartTooltipComponent, [{
|
|
128
|
+
type: Component,
|
|
129
|
+
args: [{ selector: 'td-chart-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #tooltipContent [ngTemplateOutlet]=\"formatterTemplate\" [ngTemplateOutletContext]=\"_context\"></ng-template>\n" }]
|
|
130
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdChartOptionsService }]; }, { config: [{
|
|
131
|
+
type: Input
|
|
132
|
+
}], show: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], trigger: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}], axisPointer: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}], showContent: [{
|
|
139
|
+
type: Input
|
|
140
|
+
}], alwaysShowContent: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}], triggerOn: [{
|
|
143
|
+
type: Input
|
|
144
|
+
}], showDelay: [{
|
|
145
|
+
type: Input
|
|
146
|
+
}], hideDelay: [{
|
|
147
|
+
type: Input
|
|
148
|
+
}], enterable: [{
|
|
149
|
+
type: Input
|
|
150
|
+
}], renderMode: [{
|
|
151
|
+
type: Input
|
|
152
|
+
}], confine: [{
|
|
153
|
+
type: Input
|
|
154
|
+
}], transitionDuration: [{
|
|
155
|
+
type: Input
|
|
156
|
+
}], position: [{
|
|
157
|
+
type: Input
|
|
158
|
+
}], formatter: [{
|
|
159
|
+
type: Input
|
|
160
|
+
}], backgroundColor: [{
|
|
161
|
+
type: Input
|
|
162
|
+
}], borderColor: [{
|
|
163
|
+
type: Input
|
|
164
|
+
}], borderWidth: [{
|
|
165
|
+
type: Input
|
|
166
|
+
}], padding: [{
|
|
167
|
+
type: Input
|
|
168
|
+
}], textStyle: [{
|
|
169
|
+
type: Input
|
|
170
|
+
}], extraCssText: [{
|
|
171
|
+
type: Input
|
|
172
|
+
}], formatterTemplate: [{
|
|
173
|
+
type: ContentChild,
|
|
174
|
+
args: [TdChartTooltipFormatterDirective, { read: TemplateRef, static: true }]
|
|
175
|
+
}], fullTemplate: [{
|
|
176
|
+
type: ViewChild,
|
|
177
|
+
args: ['tooltipContent', { static: true }]
|
|
178
|
+
}] });
|
|
179
|
+
})();
|
|
180
|
+
|
|
181
|
+
const _c0 = ["tooltipContent"];
|
|
182
|
+
function TdSeriesTooltipComponent_ng_template_0_Template(rf, ctx) { }
|
|
183
|
+
class TdSeriesTooltipComponent {
|
|
184
|
+
constructor(_changeDetectorRef, _elementRef, _seriesComponent) {
|
|
185
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
186
|
+
this._elementRef = _elementRef;
|
|
187
|
+
this._seriesComponent = _seriesComponent;
|
|
188
|
+
this._state = {};
|
|
189
|
+
this._context = new TdTooltipContext();
|
|
190
|
+
this.backgroundColor = 'rgba(50,50,50,0.7)';
|
|
191
|
+
this.borderColor = '#333';
|
|
192
|
+
this.borderWidth = 0;
|
|
193
|
+
this.padding = 5;
|
|
194
|
+
this.textStyle = {
|
|
195
|
+
color: '#FFF',
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
ngOnChanges() {
|
|
199
|
+
this._setOptions();
|
|
200
|
+
}
|
|
201
|
+
ngOnDestroy() {
|
|
202
|
+
this._removeOption();
|
|
203
|
+
}
|
|
204
|
+
_setOptions() {
|
|
205
|
+
const config = assignDefined(this._state, {
|
|
206
|
+
position: this.position,
|
|
207
|
+
backgroundColor: this.backgroundColor,
|
|
208
|
+
borderColor: this.borderColor,
|
|
209
|
+
borderWidth: this.borderWidth,
|
|
210
|
+
padding: this.padding,
|
|
211
|
+
textStyle: this.textStyle,
|
|
212
|
+
extraCssText: this.extraCssText,
|
|
213
|
+
formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,
|
|
214
|
+
}, this.config ? this.config : {});
|
|
215
|
+
// set series tooltip configuration in parent chart and render new configurations
|
|
216
|
+
this._seriesComponent.setStateOption('tooltip', config);
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Formatter for tooltip
|
|
220
|
+
*
|
|
221
|
+
*/
|
|
222
|
+
_formatter() {
|
|
223
|
+
return (params, ticket, callback) => {
|
|
224
|
+
this._context = {
|
|
225
|
+
$implicit: params,
|
|
226
|
+
ticket,
|
|
227
|
+
};
|
|
228
|
+
// timeout set since we need to set the HTML at the end of the angular lifecycle when
|
|
229
|
+
// the tooltip delay is more than 0
|
|
230
|
+
setTimeout(() => {
|
|
231
|
+
callback(ticket, this._elementRef.nativeElement.innerHTML);
|
|
232
|
+
});
|
|
233
|
+
this._changeDetectorRef.markForCheck();
|
|
234
|
+
return this._elementRef.nativeElement.innerHTML;
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
_removeOption() {
|
|
238
|
+
this._seriesComponent.removeStateOption('tooltip');
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
/** @nocollapse */ /** @nocollapse */ TdSeriesTooltipComponent.ɵfac = function TdSeriesTooltipComponent_Factory(t) { return new (t || TdSeriesTooltipComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.TdSeriesDirective)); };
|
|
242
|
+
/** @nocollapse */ /** @nocollapse */ TdSeriesTooltipComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdSeriesTooltipComponent, selectors: [["td-chart-series-tooltip"]], contentQueries: function TdSeriesTooltipComponent_ContentQueries(rf, ctx, dirIndex) {
|
|
243
|
+
if (rf & 1) {
|
|
244
|
+
i0.ɵɵcontentQuery(dirIndex, TdChartTooltipFormatterDirective, 7, TemplateRef);
|
|
245
|
+
}
|
|
246
|
+
if (rf & 2) {
|
|
247
|
+
let _t;
|
|
248
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.formatterTemplate = _t.first);
|
|
249
|
+
}
|
|
250
|
+
}, viewQuery: function TdSeriesTooltipComponent_Query(rf, ctx) {
|
|
251
|
+
if (rf & 1) {
|
|
252
|
+
i0.ɵɵviewQuery(_c0, 7);
|
|
253
|
+
}
|
|
254
|
+
if (rf & 2) {
|
|
255
|
+
let _t;
|
|
256
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fullTemplate = _t.first);
|
|
257
|
+
}
|
|
258
|
+
}, inputs: { config: "config", formatter: "formatter", position: "position", backgroundColor: "backgroundColor", borderColor: "borderColor", borderWidth: "borderWidth", padding: "padding", textStyle: "textStyle", extraCssText: "extraCssText" }, features: [i0.ɵɵNgOnChangesFeature], decls: 2, vars: 2, consts: [[3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["tooltipContent", ""]], template: function TdSeriesTooltipComponent_Template(rf, ctx) {
|
|
259
|
+
if (rf & 1) {
|
|
260
|
+
i0.ɵɵtemplate(0, TdSeriesTooltipComponent_ng_template_0_Template, 0, 0, "ng-template", 0, 1, i0.ɵɵtemplateRefExtractor);
|
|
261
|
+
}
|
|
262
|
+
if (rf & 2) {
|
|
263
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx.formatterTemplate)("ngTemplateOutletContext", ctx._context);
|
|
264
|
+
}
|
|
265
|
+
}, directives: [i2.NgTemplateOutlet], encapsulation: 2, changeDetection: 0 });
|
|
266
|
+
(function () {
|
|
267
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdSeriesTooltipComponent, [{
|
|
268
|
+
type: Component,
|
|
269
|
+
args: [{ selector: 'td-chart-series-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #tooltipContent [ngTemplateOutlet]=\"formatterTemplate\" [ngTemplateOutletContext]=\"_context\"></ng-template>\n" }]
|
|
270
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdSeriesDirective }]; }, { config: [{
|
|
271
|
+
type: Input
|
|
272
|
+
}], formatter: [{
|
|
273
|
+
type: Input
|
|
274
|
+
}], position: [{
|
|
275
|
+
type: Input
|
|
276
|
+
}], backgroundColor: [{
|
|
277
|
+
type: Input
|
|
278
|
+
}], borderColor: [{
|
|
279
|
+
type: Input
|
|
280
|
+
}], borderWidth: [{
|
|
281
|
+
type: Input
|
|
282
|
+
}], padding: [{
|
|
283
|
+
type: Input
|
|
284
|
+
}], textStyle: [{
|
|
285
|
+
type: Input
|
|
286
|
+
}], extraCssText: [{
|
|
287
|
+
type: Input
|
|
288
|
+
}], formatterTemplate: [{
|
|
289
|
+
type: ContentChild,
|
|
290
|
+
args: [TdChartTooltipFormatterDirective, { read: TemplateRef, static: true }]
|
|
291
|
+
}], fullTemplate: [{
|
|
292
|
+
type: ViewChild,
|
|
293
|
+
args: ['tooltipContent', { static: true }]
|
|
294
|
+
}] });
|
|
295
|
+
})();
|
|
296
|
+
|
|
297
|
+
const TOOLTIP_MODULE_COMPONENTS = [
|
|
298
|
+
TdChartTooltipComponent,
|
|
299
|
+
TdChartTooltipFormatterDirective,
|
|
300
|
+
TdSeriesTooltipComponent,
|
|
301
|
+
];
|
|
302
|
+
class CovalentTooltipEchartsModule {
|
|
303
|
+
}
|
|
304
|
+
/** @nocollapse */ /** @nocollapse */ CovalentTooltipEchartsModule.ɵfac = function CovalentTooltipEchartsModule_Factory(t) { return new (t || CovalentTooltipEchartsModule)(); };
|
|
305
|
+
/** @nocollapse */ /** @nocollapse */ CovalentTooltipEchartsModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: CovalentTooltipEchartsModule });
|
|
306
|
+
/** @nocollapse */ /** @nocollapse */ CovalentTooltipEchartsModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ imports: [[CommonModule]] });
|
|
307
|
+
(function () {
|
|
308
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentTooltipEchartsModule, [{
|
|
309
|
+
type: NgModule,
|
|
310
|
+
args: [{
|
|
311
|
+
imports: [CommonModule],
|
|
312
|
+
declarations: [TOOLTIP_MODULE_COMPONENTS],
|
|
313
|
+
exports: [TOOLTIP_MODULE_COMPONENTS],
|
|
314
|
+
}]
|
|
315
|
+
}], null, null);
|
|
316
|
+
})();
|
|
317
|
+
(function () {
|
|
318
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentTooltipEchartsModule, { declarations: [TdChartTooltipComponent,
|
|
319
|
+
TdChartTooltipFormatterDirective,
|
|
320
|
+
TdSeriesTooltipComponent], imports: [CommonModule], exports: [TdChartTooltipComponent,
|
|
321
|
+
TdChartTooltipFormatterDirective,
|
|
322
|
+
TdSeriesTooltipComponent] });
|
|
323
|
+
})();
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Generated bundle index. Do not edit.
|
|
327
|
+
*/
|
|
328
|
+
|
|
329
|
+
export { CovalentTooltipEchartsModule, TOOLTIP_MODULE_COMPONENTS, TdChartTooltipComponent, TdChartTooltipFormatterDirective, TdSeriesTooltipComponent, TdTooltipContext };
|
|
330
|
+
//# sourceMappingURL=covalent-echarts-tooltip.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"covalent-echarts-tooltip.mjs","sources":["../../../../src/platform/echarts/tooltip/tooltip.component.ts","../../../../src/platform/echarts/tooltip/tooltip.component.html","../../../../src/platform/echarts/tooltip/series-tooltip.component.ts","../../../../src/platform/echarts/tooltip/tooltip.module.ts","../../../../src/platform/echarts/tooltip/covalent-echarts-tooltip.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","<ng-template #tooltipContent [ngTemplateOutlet]=\"formatterTemplate\" [ngTemplateOutletContext]=\"_context\"></ng-template>\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 { 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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAsBa,gBAAgB;CAG5B;MAKY,gCAAgC;;sJAAhC,gCAAgC;qIAAhC,gCAAgC;;4EAAhC,gCAAgC;kBAH5C,SAAS;mBAAC;oBACT,QAAQ,EAAE,iCAAiC;iBAC5C;;;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,CAAC;QAEjB,SAAI,GAAY,IAAI,CAAC;QACrB,YAAO,GAAqB,MAAM,CAAC;QAEnC,gBAAW,GAAY,IAAI,CAAC;QAC5B,sBAAiB,GAAY,KAAK,CAAC;Q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