@delon/chart 12.4.0 → 13.0.0-beta.2
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 +4 -1
- package/bar/bar.d.ts +1 -0
- package/bar/bar.module.d.ts +8 -0
- package/bar/package.json +5 -6
- package/card/card.component.d.ts +7 -4
- package/card/card.d.ts +1 -0
- package/card/card.module.d.ts +9 -0
- package/card/package.json +5 -6
- package/card/style/index.less +11 -0
- package/chart-echarts/delon-chart-chart-echarts.d.ts +1 -0
- package/chart-echarts/echarts.component.d.ts +3 -0
- package/chart-echarts/echarts.module.d.ts +7 -0
- package/chart-echarts/echarts.service.d.ts +3 -0
- package/chart-echarts/package.json +5 -6
- package/chart.d.ts +1 -0
- package/core/delon-chart-core.d.ts +1 -0
- package/core/g2.base.component.d.ts +4 -1
- package/core/g2.servicce.d.ts +3 -0
- package/core/package.json +5 -6
- package/custom/custom.component.d.ts +4 -1
- package/custom/custom.module.d.ts +7 -0
- package/custom/delon-chart-custom.d.ts +5 -0
- package/custom/package.json +6 -7
- package/esm2020/bar/bar.component.mjs +143 -0
- package/{esm2015/bar/bar.js → esm2020/bar/bar.mjs} +0 -0
- package/esm2020/bar/bar.module.mjs +21 -0
- package/{esm2015/bar/public_api.js → esm2020/bar/public_api.mjs} +0 -0
- package/esm2020/card/card.component.mjs +55 -0
- package/{esm2015/card/card.js → esm2020/card/card.mjs} +0 -0
- package/esm2020/card/card.module.mjs +22 -0
- package/{esm2015/card/public_api.js → esm2020/card/public_api.mjs} +0 -0
- package/{esm2015/chart-echarts/delon-chart-chart-echarts.js → esm2020/chart-echarts/delon-chart-chart-echarts.mjs} +0 -0
- package/esm2020/chart-echarts/echarts.component.mjs +162 -0
- package/esm2020/chart-echarts/echarts.module.mjs +20 -0
- package/esm2020/chart-echarts/echarts.service.mjs +60 -0
- package/{esm2015/chart-echarts/echarts.types.js → esm2020/chart-echarts/echarts.types.mjs} +0 -0
- package/{esm2015/chart-echarts/public_api.js → esm2020/chart-echarts/public_api.mjs} +0 -0
- package/{esm2015/chart.js → esm2020/chart.mjs} +0 -0
- package/{esm2015/core/delon-chart-core.js → esm2020/core/delon-chart-core.mjs} +0 -0
- package/esm2020/core/g2.base.component.mjs +109 -0
- package/esm2020/core/g2.servicce.mjs +54 -0
- package/{esm2015/core/public_api.js → esm2020/core/public_api.mjs} +0 -0
- package/{esm2015/core/types/interaction.js → esm2020/core/types/interaction.mjs} +0 -0
- package/{esm2015/core/types/time.js → esm2020/core/types/time.mjs} +0 -0
- package/esm2020/core/utils.mjs +21 -0
- package/esm2020/custom/custom.component.mjs +70 -0
- package/esm2020/custom/custom.module.mjs +20 -0
- package/esm2020/custom/delon-chart-custom.mjs +5 -0
- package/{esm2015/custom/public_api.js → esm2020/custom/public_api.mjs} +0 -0
- package/{esm2015/mini-progress/mini-progress.js → esm2020/gauge/delon-chart-gauge.mjs} +1 -1
- package/esm2020/gauge/gauge.component.mjs +169 -0
- package/esm2020/gauge/gauge.module.mjs +20 -0
- package/{esm2015/gauge/public_api.js → esm2020/gauge/public_api.mjs} +0 -0
- package/esm2020/mini-area/delon-chart-mini-area.mjs +5 -0
- package/esm2020/mini-area/mini-area.component.mjs +133 -0
- package/esm2020/mini-area/mini-area.module.mjs +19 -0
- package/{esm2015/mini-area/public_api.js → esm2020/mini-area/public_api.mjs} +0 -0
- package/esm2020/mini-bar/delon-chart-mini-bar.mjs +5 -0
- package/esm2020/mini-bar/mini-bar.component.mjs +100 -0
- package/esm2020/mini-bar/mini-bar.module.mjs +19 -0
- package/{esm2015/mini-bar/public_api.js → esm2020/mini-bar/public_api.mjs} +0 -0
- package/{esm2015/gauge/gauge.js → esm2020/mini-progress/delon-chart-mini-progress.mjs} +1 -1
- package/esm2020/mini-progress/mini-progress.component.mjs +46 -0
- package/esm2020/mini-progress/mini-progress.module.mjs +21 -0
- package/{esm2015/mini-progress/public_api.js → esm2020/mini-progress/public_api.mjs} +0 -0
- package/{esm2015/pie/pie.js → esm2020/number-info/delon-chart-number-info.mjs} +1 -1
- package/esm2020/number-info/number-info.component.mjs +45 -0
- package/esm2020/number-info/number-info.module.mjs +21 -0
- package/{esm2015/number-info/public_api.js → esm2020/number-info/public_api.mjs} +0 -0
- package/{esm2015/number-info/number-info.js → esm2020/pie/delon-chart-pie.mjs} +1 -1
- package/esm2020/pie/pie.component.mjs +215 -0
- package/esm2020/pie/pie.module.mjs +22 -0
- package/{esm2015/pie/public_api.js → esm2020/pie/public_api.mjs} +0 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- package/esm2020/radar/delon-chart-radar.mjs +5 -0
- package/{esm2015/radar/public_api.js → esm2020/radar/public_api.mjs} +0 -0
- package/esm2020/radar/radar.component.mjs +148 -0
- package/esm2020/radar/radar.module.mjs +22 -0
- package/esm2020/single-bar/delon-chart-single-bar.mjs +5 -0
- package/{esm2015/single-bar/public_api.js → esm2020/single-bar/public_api.mjs} +0 -0
- package/esm2020/single-bar/single-bar.component.mjs +126 -0
- package/esm2020/single-bar/single-bar.module.mjs +19 -0
- package/esm2020/tag-cloud/delon-chart-tag-cloud.mjs +5 -0
- package/{esm2015/tag-cloud/public_api.js → esm2020/tag-cloud/public_api.mjs} +0 -0
- package/esm2020/tag-cloud/tag-cloud.component.mjs +161 -0
- package/esm2020/tag-cloud/tag-cloud.module.mjs +20 -0
- package/esm2020/timeline/delon-chart-timeline.mjs +5 -0
- package/{esm2015/timeline/public_api.js → esm2020/timeline/public_api.mjs} +0 -0
- package/esm2020/timeline/timeline.component.mjs +204 -0
- package/esm2020/timeline/timeline.module.mjs +21 -0
- package/esm2020/trend/delon-chart-trend.mjs +5 -0
- package/{esm2015/trend/public_api.js → esm2020/trend/public_api.mjs} +0 -0
- package/esm2020/trend/trend.component.mjs +52 -0
- package/esm2020/trend/trend.module.mjs +20 -0
- package/esm2020/water-wave/delon-chart-water-wave.mjs +5 -0
- package/{esm2015/water-wave/public_api.js → esm2020/water-wave/public_api.mjs} +0 -0
- package/esm2020/water-wave/water-wave.component.mjs +221 -0
- package/esm2020/water-wave/water-wave.module.mjs +20 -0
- package/fesm2015/{bar.js → bar.mjs} +57 -34
- package/fesm2015/bar.mjs.map +1 -0
- package/fesm2015/card.mjs +81 -0
- package/fesm2015/card.mjs.map +1 -0
- package/fesm2015/{chart.js → chart.mjs} +1 -1
- package/fesm2015/chart.mjs.map +1 -0
- package/fesm2015/{delon-chart-chart-echarts.js → delon-chart-chart-echarts.mjs} +62 -53
- package/fesm2015/delon-chart-chart-echarts.mjs.map +1 -0
- package/fesm2015/{delon-chart-core.js → delon-chart-core.mjs} +23 -29
- package/fesm2015/delon-chart-core.mjs.map +1 -0
- package/fesm2015/delon-chart-custom.mjs +94 -0
- package/fesm2015/delon-chart-custom.mjs.map +1 -0
- package/fesm2015/{gauge.js → delon-chart-gauge.mjs} +46 -31
- package/fesm2015/delon-chart-gauge.mjs.map +1 -0
- package/fesm2015/delon-chart-mini-area.mjs +156 -0
- package/fesm2015/delon-chart-mini-area.mjs.map +1 -0
- package/fesm2015/delon-chart-mini-bar.mjs +123 -0
- package/fesm2015/delon-chart-mini-bar.mjs.map +1 -0
- package/fesm2015/delon-chart-mini-progress.mjs +71 -0
- package/fesm2015/delon-chart-mini-progress.mjs.map +1 -0
- package/fesm2015/delon-chart-number-info.mjs +70 -0
- package/fesm2015/delon-chart-number-info.mjs.map +1 -0
- package/fesm2015/delon-chart-pie.mjs +241 -0
- package/fesm2015/delon-chart-pie.mjs.map +1 -0
- package/fesm2015/{radar.js → delon-chart-radar.mjs} +43 -33
- package/fesm2015/delon-chart-radar.mjs.map +1 -0
- package/fesm2015/delon-chart-single-bar.mjs +147 -0
- package/fesm2015/delon-chart-single-bar.mjs.map +1 -0
- package/fesm2015/{tag-cloud.js → delon-chart-tag-cloud.mjs} +39 -26
- package/fesm2015/delon-chart-tag-cloud.mjs.map +1 -0
- package/fesm2015/{timeline.js → delon-chart-timeline.mjs} +64 -36
- package/fesm2015/delon-chart-timeline.mjs.map +1 -0
- package/fesm2015/delon-chart-trend.mjs +76 -0
- package/fesm2015/delon-chart-trend.mjs.map +1 -0
- package/fesm2015/{water-wave.js → delon-chart-water-wave.mjs} +38 -37
- package/fesm2015/delon-chart-water-wave.mjs.map +1 -0
- package/fesm2020/bar.mjs +168 -0
- package/fesm2020/bar.mjs.map +1 -0
- package/fesm2020/card.mjs +81 -0
- package/fesm2020/card.mjs.map +1 -0
- package/fesm2020/chart.mjs +7 -0
- package/fesm2020/chart.mjs.map +1 -0
- package/fesm2020/delon-chart-chart-echarts.mjs +242 -0
- package/fesm2020/delon-chart-chart-echarts.mjs.map +1 -0
- package/fesm2020/delon-chart-core.mjs +187 -0
- package/fesm2020/delon-chart-core.mjs.map +1 -0
- package/fesm2020/delon-chart-custom.mjs +94 -0
- package/fesm2020/delon-chart-custom.mjs.map +1 -0
- package/fesm2020/delon-chart-gauge.mjs +193 -0
- package/fesm2020/delon-chart-gauge.mjs.map +1 -0
- package/fesm2020/delon-chart-mini-area.mjs +156 -0
- package/fesm2020/delon-chart-mini-area.mjs.map +1 -0
- package/fesm2020/delon-chart-mini-bar.mjs +123 -0
- package/fesm2020/delon-chart-mini-bar.mjs.map +1 -0
- package/fesm2020/delon-chart-mini-progress.mjs +71 -0
- package/fesm2020/delon-chart-mini-progress.mjs.map +1 -0
- package/fesm2020/delon-chart-number-info.mjs +70 -0
- package/fesm2020/delon-chart-number-info.mjs.map +1 -0
- package/fesm2020/delon-chart-pie.mjs +241 -0
- package/fesm2020/delon-chart-pie.mjs.map +1 -0
- package/fesm2020/delon-chart-radar.mjs +174 -0
- package/fesm2020/delon-chart-radar.mjs.map +1 -0
- package/fesm2020/delon-chart-single-bar.mjs +149 -0
- package/fesm2020/delon-chart-single-bar.mjs.map +1 -0
- package/fesm2020/delon-chart-tag-cloud.mjs +185 -0
- package/fesm2020/delon-chart-tag-cloud.mjs.map +1 -0
- package/fesm2020/delon-chart-timeline.mjs +229 -0
- package/fesm2020/delon-chart-timeline.mjs.map +1 -0
- package/fesm2020/delon-chart-trend.mjs +76 -0
- package/fesm2020/delon-chart-trend.mjs.map +1 -0
- package/fesm2020/delon-chart-water-wave.mjs +245 -0
- package/fesm2020/delon-chart-water-wave.mjs.map +1 -0
- package/{mini-bar/mini-bar.d.ts → gauge/delon-chart-gauge.d.ts} +1 -0
- package/gauge/gauge.component.d.ts +8 -5
- package/gauge/gauge.module.d.ts +7 -0
- package/gauge/package.json +6 -7
- package/mini-area/delon-chart-mini-area.d.ts +5 -0
- package/mini-area/mini-area.component.d.ts +3 -0
- package/mini-area/mini-area.module.d.ts +6 -0
- package/mini-area/package.json +6 -7
- package/mini-bar/delon-chart-mini-bar.d.ts +5 -0
- package/mini-bar/mini-bar.component.d.ts +3 -0
- package/mini-bar/mini-bar.module.d.ts +6 -0
- package/mini-bar/package.json +6 -7
- package/mini-progress/delon-chart-mini-progress.d.ts +5 -0
- package/mini-progress/mini-progress.component.d.ts +6 -3
- package/mini-progress/mini-progress.module.d.ts +8 -0
- package/mini-progress/package.json +6 -7
- package/mini-progress/style/index.less +5 -0
- package/number-info/delon-chart-number-info.d.ts +5 -0
- package/number-info/number-info.component.d.ts +9 -6
- package/number-info/number-info.module.d.ts +8 -0
- package/number-info/package.json +6 -7
- package/number-info/style/index.less +12 -0
- package/package.json +160 -12
- package/{custom/g2Custom.d.ts → pie/delon-chart-pie.d.ts} +1 -0
- package/pie/package.json +6 -7
- package/pie/pie.component.d.ts +8 -5
- package/pie/pie.module.d.ts +9 -0
- package/pie/style/index.less +14 -0
- package/{gauge/gauge.d.ts → radar/delon-chart-radar.d.ts} +1 -0
- package/radar/package.json +6 -7
- package/radar/radar.component.d.ts +4 -1
- package/radar/radar.module.d.ts +9 -0
- package/radar/style/index.less +6 -0
- package/single-bar/delon-chart-single-bar.d.ts +5 -0
- package/single-bar/package.json +6 -7
- package/single-bar/single-bar.component.d.ts +4 -1
- package/single-bar/single-bar.module.d.ts +6 -0
- package/tag-cloud/delon-chart-tag-cloud.d.ts +5 -0
- package/tag-cloud/package.json +6 -7
- package/tag-cloud/tag-cloud.component.d.ts +3 -0
- package/tag-cloud/tag-cloud.module.d.ts +7 -0
- package/timeline/delon-chart-timeline.d.ts +5 -0
- package/timeline/package.json +6 -7
- package/timeline/timeline.component.d.ts +5 -2
- package/timeline/timeline.module.d.ts +8 -0
- package/{mini-area/mini-area.d.ts → trend/delon-chart-trend.d.ts} +1 -0
- package/trend/package.json +6 -7
- package/trend/style/index.less +6 -0
- package/trend/trend.component.d.ts +4 -1
- package/trend/trend.module.d.ts +7 -0
- package/water-wave/delon-chart-water-wave.d.ts +5 -0
- package/water-wave/package.json +6 -7
- package/water-wave/style/index.less +4 -0
- package/water-wave/water-wave.component.d.ts +5 -2
- package/water-wave/water-wave.module.d.ts +7 -0
- package/bar/bar.metadata.json +0 -1
- package/bundles/bar.umd.js +0 -471
- package/bundles/bar.umd.js.map +0 -1
- package/bundles/card.umd.js +0 -408
- package/bundles/card.umd.js.map +0 -1
- package/bundles/chart.umd.js +0 -19
- package/bundles/chart.umd.js.map +0 -1
- package/bundles/delon-chart-chart-echarts.umd.js +0 -617
- package/bundles/delon-chart-chart-echarts.umd.js.map +0 -1
- package/bundles/delon-chart-core.umd.js +0 -550
- package/bundles/delon-chart-core.umd.js.map +0 -1
- package/bundles/g2Custom.umd.js +0 -407
- package/bundles/g2Custom.umd.js.map +0 -1
- package/bundles/gauge.umd.js +0 -511
- package/bundles/gauge.umd.js.map +0 -1
- package/bundles/mini-area.umd.js +0 -471
- package/bundles/mini-area.umd.js.map +0 -1
- package/bundles/mini-bar.umd.js +0 -444
- package/bundles/mini-bar.umd.js.map +0 -1
- package/bundles/mini-progress.umd.js +0 -401
- package/bundles/mini-progress.umd.js.map +0 -1
- package/bundles/number-info.umd.js +0 -392
- package/bundles/number-info.umd.js.map +0 -1
- package/bundles/pie.umd.js +0 -567
- package/bundles/pie.umd.js.map +0 -1
- package/bundles/radar.umd.js +0 -497
- package/bundles/radar.umd.js.map +0 -1
- package/bundles/single-bar.umd.js +0 -464
- package/bundles/single-bar.umd.js.map +0 -1
- package/bundles/tag-cloud.umd.js +0 -495
- package/bundles/tag-cloud.umd.js.map +0 -1
- package/bundles/timeline.umd.js +0 -524
- package/bundles/timeline.umd.js.map +0 -1
- package/bundles/trend.umd.js +0 -391
- package/bundles/trend.umd.js.map +0 -1
- package/bundles/water-wave.umd.js +0 -587
- package/bundles/water-wave.umd.js.map +0 -1
- package/card/card.metadata.json +0 -1
- package/chart-echarts/delon-chart-chart-echarts.metadata.json +0 -1
- package/chart.metadata.json +0 -1
- package/core/delon-chart-core.metadata.json +0 -1
- package/custom/g2Custom.metadata.json +0 -1
- package/esm2015/bar/bar.component.js +0 -124
- package/esm2015/bar/bar.module.js +0 -16
- package/esm2015/card/card.component.js +0 -52
- package/esm2015/card/card.module.js +0 -17
- package/esm2015/chart-echarts/echarts.component.js +0 -152
- package/esm2015/chart-echarts/echarts.module.js +0 -15
- package/esm2015/chart-echarts/echarts.service.js +0 -64
- package/esm2015/core/g2.base.component.js +0 -110
- package/esm2015/core/g2.servicce.js +0 -58
- package/esm2015/core/utils.js +0 -15
- package/esm2015/custom/custom.component.js +0 -58
- package/esm2015/custom/custom.module.js +0 -15
- package/esm2015/custom/g2Custom.js +0 -5
- package/esm2015/gauge/gauge.component.js +0 -158
- package/esm2015/gauge/gauge.module.js +0 -15
- package/esm2015/mini-area/mini-area.component.js +0 -117
- package/esm2015/mini-area/mini-area.js +0 -5
- package/esm2015/mini-area/mini-area.module.js +0 -14
- package/esm2015/mini-bar/mini-bar.component.js +0 -90
- package/esm2015/mini-bar/mini-bar.js +0 -5
- package/esm2015/mini-bar/mini-bar.module.js +0 -14
- package/esm2015/mini-progress/mini-progress.component.js +0 -50
- package/esm2015/mini-progress/mini-progress.module.js +0 -16
- package/esm2015/number-info/number-info.component.js +0 -40
- package/esm2015/number-info/number-info.module.js +0 -16
- package/esm2015/pie/pie.component.js +0 -197
- package/esm2015/pie/pie.module.js +0 -17
- package/esm2015/radar/radar.component.js +0 -142
- package/esm2015/radar/radar.js +0 -5
- package/esm2015/radar/radar.module.js +0 -17
- package/esm2015/single-bar/single-bar.component.js +0 -111
- package/esm2015/single-bar/single-bar.js +0 -5
- package/esm2015/single-bar/single-bar.module.js +0 -14
- package/esm2015/tag-cloud/tag-cloud.component.js +0 -142
- package/esm2015/tag-cloud/tag-cloud.js +0 -5
- package/esm2015/tag-cloud/tag-cloud.module.js +0 -15
- package/esm2015/timeline/timeline.component.js +0 -178
- package/esm2015/timeline/timeline.js +0 -5
- package/esm2015/timeline/timeline.module.js +0 -16
- package/esm2015/trend/trend.component.js +0 -42
- package/esm2015/trend/trend.js +0 -5
- package/esm2015/trend/trend.module.js +0 -15
- package/esm2015/water-wave/water-wave.component.js +0 -224
- package/esm2015/water-wave/water-wave.js +0 -5
- package/esm2015/water-wave/water-wave.module.js +0 -15
- package/fesm2015/bar.js.map +0 -1
- package/fesm2015/card.js +0 -74
- package/fesm2015/card.js.map +0 -1
- package/fesm2015/chart.js.map +0 -1
- package/fesm2015/delon-chart-chart-echarts.js.map +0 -1
- package/fesm2015/delon-chart-core.js.map +0 -1
- package/fesm2015/g2Custom.js +0 -78
- package/fesm2015/g2Custom.js.map +0 -1
- package/fesm2015/gauge.js.map +0 -1
- package/fesm2015/mini-area.js +0 -136
- package/fesm2015/mini-area.js.map +0 -1
- package/fesm2015/mini-bar.js +0 -109
- package/fesm2015/mini-bar.js.map +0 -1
- package/fesm2015/mini-progress.js +0 -70
- package/fesm2015/mini-progress.js.map +0 -1
- package/fesm2015/number-info.js +0 -61
- package/fesm2015/number-info.js.map +0 -1
- package/fesm2015/pie.js +0 -219
- package/fesm2015/pie.js.map +0 -1
- package/fesm2015/radar.js.map +0 -1
- package/fesm2015/single-bar.js +0 -130
- package/fesm2015/single-bar.js.map +0 -1
- package/fesm2015/tag-cloud.js.map +0 -1
- package/fesm2015/timeline.js.map +0 -1
- package/fesm2015/trend.js +0 -62
- package/fesm2015/trend.js.map +0 -1
- package/fesm2015/water-wave.js.map +0 -1
- package/gauge/gauge.metadata.json +0 -1
- package/mini-area/mini-area.metadata.json +0 -1
- package/mini-bar/mini-bar.metadata.json +0 -1
- package/mini-progress/mini-progress.d.ts +0 -4
- package/mini-progress/mini-progress.metadata.json +0 -1
- package/number-info/number-info.d.ts +0 -4
- package/number-info/number-info.metadata.json +0 -1
- package/pie/pie.d.ts +0 -4
- package/pie/pie.metadata.json +0 -1
- package/radar/radar.d.ts +0 -4
- package/radar/radar.metadata.json +0 -1
- package/single-bar/single-bar.d.ts +0 -4
- package/single-bar/single-bar.metadata.json +0 -1
- package/tag-cloud/tag-cloud.d.ts +0 -4
- package/tag-cloud/tag-cloud.metadata.json +0 -1
- package/timeline/timeline.d.ts +0 -4
- package/timeline/timeline.metadata.json +0 -1
- package/trend/trend.d.ts +0 -4
- package/trend/trend.metadata.json +0 -1
- package/water-wave/water-wave.d.ts +0 -4
- package/water-wave/water-wave.metadata.json +0 -1
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { __decorate } from 'tslib';
|
|
2
|
-
import
|
|
3
|
-
import { Component, ChangeDetectionStrategy, ViewEncapsulation,
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Component, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, Input, NgModule } from '@angular/core';
|
|
4
4
|
import { fromEvent } from 'rxjs';
|
|
5
5
|
import { debounceTime } from 'rxjs/operators';
|
|
6
6
|
import { InputBoolean, InputNumber } from '@delon/util/decorator';
|
|
7
|
+
import * as i1 from '@angular/cdk/platform';
|
|
8
|
+
import * as i2 from '@angular/common';
|
|
7
9
|
import { CommonModule } from '@angular/common';
|
|
10
|
+
import * as i3 from 'ng-zorro-antd/core/outlet';
|
|
8
11
|
import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
|
|
9
12
|
|
|
10
13
|
class G2WaterWaveComponent {
|
|
@@ -185,33 +188,8 @@ class G2WaterWaveComponent {
|
|
|
185
188
|
}
|
|
186
189
|
}
|
|
187
190
|
}
|
|
188
|
-
G2WaterWaveComponent
|
|
189
|
-
{ type:
|
|
190
|
-
selector: 'g2-water-wave',
|
|
191
|
-
exportAs: 'g2WaterWave',
|
|
192
|
-
template: "<div [ngStyle]=\"{ 'height.px': height, 'width.px': height, overflow: 'hidden' }\">\n <canvas #container class=\"g2-water-wave__canvas\" width=\"{{ height * 2 }}\" height=\"{{ height * 2 }}\"></canvas>\n</div>\n<div class=\"g2-water-wave__desc\" [ngStyle]=\"{ 'width.px': height }\">\n <span *ngIf=\"title\" class=\"g2-water-wave__desc-title\">\n <ng-container *nzStringTemplateOutlet=\"title\">{{ title }}</ng-container>\n </span>\n <h4 class=\"g2-water-wave__desc-percent\">{{ percent }}%</h4>\n</div>\n",
|
|
193
|
-
host: { '[class.g2-water-wave]': 'true' },
|
|
194
|
-
preserveWhitespaces: false,
|
|
195
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
196
|
-
encapsulation: ViewEncapsulation.None
|
|
197
|
-
},] }
|
|
198
|
-
];
|
|
199
|
-
G2WaterWaveComponent.ctorParameters = () => [
|
|
200
|
-
{ type: ElementRef },
|
|
201
|
-
{ type: Renderer2 },
|
|
202
|
-
{ type: NgZone },
|
|
203
|
-
{ type: ChangeDetectorRef },
|
|
204
|
-
{ type: Platform }
|
|
205
|
-
];
|
|
206
|
-
G2WaterWaveComponent.propDecorators = {
|
|
207
|
-
node: [{ type: ViewChild, args: ['container', { static: true },] }],
|
|
208
|
-
animate: [{ type: Input }],
|
|
209
|
-
delay: [{ type: Input }],
|
|
210
|
-
title: [{ type: Input }],
|
|
211
|
-
color: [{ type: Input }],
|
|
212
|
-
height: [{ type: Input }],
|
|
213
|
-
percent: [{ type: Input }]
|
|
214
|
-
};
|
|
191
|
+
G2WaterWaveComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: G2WaterWaveComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1.Platform }], target: i0.ɵɵFactoryTarget.Component });
|
|
192
|
+
G2WaterWaveComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: G2WaterWaveComponent, selector: "g2-water-wave", inputs: { animate: "animate", delay: "delay", title: "title", color: "color", height: "height", percent: "percent" }, host: { properties: { "class.g2-water-wave": "true" } }, viewQueries: [{ propertyName: "node", first: true, predicate: ["container"], descendants: true, static: true }], exportAs: ["g2WaterWave"], usesOnChanges: true, ngImport: i0, template: "<div [ngStyle]=\"{ 'height.px': height, 'width.px': height, overflow: 'hidden' }\">\n <canvas #container class=\"g2-water-wave__canvas\" width=\"{{ height * 2 }}\" height=\"{{ height * 2 }}\"></canvas>\n</div>\n<div class=\"g2-water-wave__desc\" [ngStyle]=\"{ 'width.px': height }\">\n <span *ngIf=\"title\" class=\"g2-water-wave__desc-title\">\n <ng-container *nzStringTemplateOutlet=\"title\">{{ title }}</ng-container>\n </span>\n <h4 class=\"g2-water-wave__desc-percent\">{{ percent }}%</h4>\n</div>\n", directives: [{ type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
215
193
|
__decorate([
|
|
216
194
|
InputBoolean()
|
|
217
195
|
], G2WaterWaveComponent.prototype, "animate", void 0);
|
|
@@ -224,21 +202,44 @@ __decorate([
|
|
|
224
202
|
__decorate([
|
|
225
203
|
InputNumber()
|
|
226
204
|
], G2WaterWaveComponent.prototype, "percent", void 0);
|
|
205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: G2WaterWaveComponent, decorators: [{
|
|
206
|
+
type: Component,
|
|
207
|
+
args: [{ selector: 'g2-water-wave', exportAs: 'g2WaterWave', host: { '[class.g2-water-wave]': 'true' }, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div [ngStyle]=\"{ 'height.px': height, 'width.px': height, overflow: 'hidden' }\">\n <canvas #container class=\"g2-water-wave__canvas\" width=\"{{ height * 2 }}\" height=\"{{ height * 2 }}\"></canvas>\n</div>\n<div class=\"g2-water-wave__desc\" [ngStyle]=\"{ 'width.px': height }\">\n <span *ngIf=\"title\" class=\"g2-water-wave__desc-title\">\n <ng-container *nzStringTemplateOutlet=\"title\">{{ title }}</ng-container>\n </span>\n <h4 class=\"g2-water-wave__desc-percent\">{{ percent }}%</h4>\n</div>\n" }]
|
|
208
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1.Platform }]; }, propDecorators: { node: [{
|
|
209
|
+
type: ViewChild,
|
|
210
|
+
args: ['container', { static: true }]
|
|
211
|
+
}], animate: [{
|
|
212
|
+
type: Input
|
|
213
|
+
}], delay: [{
|
|
214
|
+
type: Input
|
|
215
|
+
}], title: [{
|
|
216
|
+
type: Input
|
|
217
|
+
}], color: [{
|
|
218
|
+
type: Input
|
|
219
|
+
}], height: [{
|
|
220
|
+
type: Input
|
|
221
|
+
}], percent: [{
|
|
222
|
+
type: Input
|
|
223
|
+
}] } });
|
|
227
224
|
|
|
228
225
|
const COMPONENTS = [G2WaterWaveComponent];
|
|
229
226
|
class G2WaterWaveModule {
|
|
230
227
|
}
|
|
231
|
-
G2WaterWaveModule
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
]
|
|
228
|
+
G2WaterWaveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: G2WaterWaveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
229
|
+
G2WaterWaveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: G2WaterWaveModule, declarations: [G2WaterWaveComponent], imports: [CommonModule, NzOutletModule], exports: [G2WaterWaveComponent] });
|
|
230
|
+
G2WaterWaveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: G2WaterWaveModule, imports: [[CommonModule, NzOutletModule]] });
|
|
231
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: G2WaterWaveModule, decorators: [{
|
|
232
|
+
type: NgModule,
|
|
233
|
+
args: [{
|
|
234
|
+
imports: [CommonModule, NzOutletModule],
|
|
235
|
+
declarations: COMPONENTS,
|
|
236
|
+
exports: COMPONENTS
|
|
237
|
+
}]
|
|
238
|
+
}] });
|
|
238
239
|
|
|
239
240
|
/**
|
|
240
241
|
* Generated bundle index. Do not edit.
|
|
241
242
|
*/
|
|
242
243
|
|
|
243
244
|
export { G2WaterWaveComponent, G2WaterWaveModule };
|
|
244
|
-
//# sourceMappingURL=water-wave.
|
|
245
|
+
//# sourceMappingURL=delon-chart-water-wave.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delon-chart-water-wave.mjs","sources":["../../../../packages/chart/water-wave/water-wave.component.ts","../../../../packages/chart/water-wave/water-wave.component.html","../../../../packages/chart/water-wave/water-wave.module.ts","../../../../packages/chart/water-wave/delon-chart-water-wave.ts"],"sourcesContent":["import { Platform } from '@angular/cdk/platform';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n Input,\n NgZone,\n OnChanges,\n OnDestroy,\n OnInit,\n Renderer2,\n TemplateRef,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { fromEvent, Subscription } from 'rxjs';\nimport { debounceTime } from 'rxjs/operators';\n\nimport { BooleanInput, InputBoolean, InputNumber, NumberInput } from '@delon/util/decorator';\n\n@Component({\n selector: 'g2-water-wave',\n exportAs: 'g2WaterWave',\n templateUrl: './water-wave.component.html',\n host: { '[class.g2-water-wave]': 'true' },\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class G2WaterWaveComponent implements OnDestroy, OnChanges, OnInit {\n static ngAcceptInputType_animate: BooleanInput;\n static ngAcceptInputType_delay: NumberInput;\n static ngAcceptInputType_height: NumberInput;\n static ngAcceptInputType_percent: NumberInput;\n\n private resize$: Subscription | null = null;\n @ViewChild('container', { static: true }) private node!: ElementRef;\n private timer!: number;\n\n // #region fields\n\n @Input() @InputBoolean() animate = true;\n @Input() @InputNumber() delay = 0;\n @Input() title?: string | TemplateRef<void> | null;\n @Input() color = '#1890FF';\n @Input() @InputNumber() height = 160;\n @Input() @InputNumber() percent?: number;\n\n // #endregion\n\n constructor(\n private el: ElementRef,\n private renderer: Renderer2,\n private ngZone: NgZone,\n private cdr: ChangeDetectorRef,\n private platform: Platform\n ) {}\n\n private renderChart(isUpdate: boolean): void {\n if (!this.resize$) return;\n\n this.updateRadio();\n\n const { percent, color, node, animate } = this;\n\n const data = Math.min(Math.max(percent! / 100, 0), 100);\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const self = this;\n cancelAnimationFrame(this.timer);\n\n const canvas = node.nativeElement as HTMLCanvasElement;\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n const canvasWidth = canvas.width;\n const canvasHeight = canvas.height;\n const radius = canvasWidth / 2;\n const lineWidth = 2;\n const cR = radius - lineWidth;\n\n ctx.beginPath();\n ctx.lineWidth = lineWidth * 2;\n\n const axisLength = canvasWidth - lineWidth;\n const unit = axisLength / 8;\n const xOffset = lineWidth;\n let sp = 0; // 周期偏移量\n const range = 0.2; // 振幅\n let currRange = range;\n let currData = 0;\n const waveupsp = animate ? 0.005 : 0.015; // 水波上涨速度\n\n let arcStack: [[number, number]?] | null = [];\n const bR = radius - lineWidth;\n const circleOffset = -(Math.PI / 2);\n let circleLock = true;\n\n for (let i = circleOffset; i < circleOffset + 2 * Math.PI; i += 1 / (8 * Math.PI)) {\n arcStack.push([radius + bR * Math.cos(i), radius + bR * Math.sin(i)]);\n }\n\n const cStartPoint = arcStack.shift() as [number, number];\n ctx.strokeStyle = color;\n ctx.moveTo(cStartPoint[0], cStartPoint[1]);\n\n function drawSin(): void {\n ctx.beginPath();\n ctx.save();\n\n const sinStack: [[number, number]?] = [];\n for (let i = xOffset; i <= xOffset + axisLength; i += 20 / axisLength) {\n const x = sp + (xOffset + i) / unit;\n const y = Math.sin(x) * currRange;\n const dx = i;\n const dy = 2 * cR * (1 - currData) + (radius - cR) - unit * y;\n\n ctx.lineTo(dx, dy);\n sinStack.push([dx, dy]);\n }\n\n const startPoint = sinStack.shift() as [number, number];\n\n ctx.lineTo(xOffset + axisLength, canvasHeight);\n ctx.lineTo(xOffset, canvasHeight);\n ctx.lineTo(startPoint[0], startPoint[1]);\n\n const gradient = ctx.createLinearGradient(0, 0, 0, canvasHeight);\n gradient.addColorStop(0, '#ffffff');\n gradient.addColorStop(1, color);\n ctx.fillStyle = gradient;\n ctx.fill();\n ctx.restore();\n }\n\n function render(): void {\n ctx.clearRect(0, 0, canvasWidth, canvasHeight);\n if (circleLock && !isUpdate) {\n if (arcStack!.length) {\n if (animate) {\n const temp = arcStack!.shift() as [number, number];\n ctx.lineTo(temp[0], temp[1]);\n ctx.stroke();\n } else {\n for (const temp of arcStack!) {\n ctx.lineTo(temp![0], temp![1]);\n ctx.stroke();\n }\n arcStack = [];\n }\n } else {\n circleLock = false;\n ctx.lineTo(cStartPoint[0], cStartPoint[1]);\n ctx.stroke();\n arcStack = null;\n\n ctx.globalCompositeOperation = 'destination-over';\n ctx.beginPath();\n ctx.lineWidth = lineWidth;\n ctx.arc(radius, radius, bR, 0, 2 * Math.PI, true);\n\n ctx.beginPath();\n ctx.save();\n ctx.arc(radius, radius, radius - 3 * lineWidth, 0, 2 * Math.PI, true);\n\n ctx.restore();\n ctx.clip();\n ctx.fillStyle = color;\n }\n } else {\n if (data >= 0.85) {\n if (currRange > range / 4) {\n const t = range * 0.01;\n currRange -= t;\n }\n } else if (data <= 0.1) {\n if (currRange < range * 1.5) {\n const t = range * 0.01;\n currRange += t;\n }\n } else {\n if (currRange <= range) {\n const t = range * 0.01;\n currRange += t;\n }\n if (currRange >= range) {\n const t = range * 0.01;\n currRange -= t;\n }\n }\n if (data - currData > 0) {\n currData += waveupsp;\n }\n if (data - currData < 0) {\n currData -= waveupsp;\n }\n\n sp += 0.07;\n drawSin();\n }\n self.timer = requestAnimationFrame(render);\n }\n\n render();\n // drawSin();\n }\n\n private updateRadio(): void {\n const { offsetWidth } = this.el.nativeElement.parentNode;\n const radio = offsetWidth < this.height ? offsetWidth / this.height : 1;\n this.renderer.setStyle(this.el.nativeElement, 'transform', `scale(${radio})`);\n }\n\n render(): void {\n this.renderChart(false);\n }\n\n private installResizeEvent(): void {\n this.resize$ = fromEvent(window, 'resize')\n .pipe(debounceTime(200))\n .subscribe(() => this.updateRadio());\n }\n\n ngOnInit(): void {\n if (!this.platform.isBrowser) {\n return;\n }\n this.installResizeEvent();\n this.ngZone.runOutsideAngular(() => setTimeout(() => this.render(), this.delay));\n }\n\n ngOnChanges(): void {\n this.ngZone.runOutsideAngular(() => this.renderChart(true));\n this.cdr.detectChanges();\n }\n\n ngOnDestroy(): void {\n if (this.timer) {\n cancelAnimationFrame(this.timer);\n }\n if (this.resize$) {\n this.resize$.unsubscribe();\n }\n }\n}\n","<div [ngStyle]=\"{ 'height.px': height, 'width.px': height, overflow: 'hidden' }\">\n <canvas #container class=\"g2-water-wave__canvas\" width=\"{{ height * 2 }}\" height=\"{{ height * 2 }}\"></canvas>\n</div>\n<div class=\"g2-water-wave__desc\" [ngStyle]=\"{ 'width.px': height }\">\n <span *ngIf=\"title\" class=\"g2-water-wave__desc-title\">\n <ng-container *nzStringTemplateOutlet=\"title\">{{ title }}</ng-container>\n </span>\n <h4 class=\"g2-water-wave__desc-percent\">{{ percent }}%</h4>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\n\nimport { G2WaterWaveComponent } from './water-wave.component';\n\nconst COMPONENTS = [G2WaterWaveComponent];\n\n@NgModule({\n imports: [CommonModule, NzOutletModule],\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class G2WaterWaveModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;MA8Ba,oBAAoB;;IAqB/B,YACU,EAAc,EACd,QAAmB,EACnB,MAAc,EACd,GAAsB,EACtB,QAAkB;QAJlB,OAAE,GAAF,EAAE,CAAY;QACd,aAAQ,GAAR,QAAQ,CAAW;QACnB,WAAM,GAAN,MAAM,CAAQ;QACd,QAAG,GAAH,GAAG,CAAmB;QACtB,aAAQ,GAAR,QAAQ,CAAU;QApBpB,YAAO,GAAwB,IAAI,CAAC;;QAMnB,YAAO,GAAG,IAAI,CAAC;QAChB,UAAK,GAAG,CAAC,CAAC;QAEzB,UAAK,GAAG,SAAS,CAAC;QACH,WAAM,GAAG,GAAG,CAAC;KAWjC;IAEI,WAAW,CAAC,QAAiB;QACnC,IAAI,CAAC,IAAI,CAAC,OAAO;YAAE,OAAO;QAE1B,IAAI,CAAC,WAAW,EAAE,CAAC;QAEnB,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QAE/C,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,OAAQ,GAAG,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;;QAEx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Y,EAAE,cAAc,CAAC;2FAI5B,iBAAiB;kBAL7B,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,CAAC;oBACvC,YAAY,EAAE,UAAU;oBACxB,OAAO,EAAE,UAAU;iBACpB;;;ACbD;;;;;;"}
|
package/fesm2020/bar.mjs
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { __decorate } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, NgModule } from '@angular/core';
|
|
4
|
+
import { fromEvent } from 'rxjs';
|
|
5
|
+
import { takeUntil, filter, debounceTime } from 'rxjs/operators';
|
|
6
|
+
import { G2BaseComponent } from '@delon/chart/core';
|
|
7
|
+
import { InputNumber, InputBoolean } from '@delon/util/decorator';
|
|
8
|
+
import * as i1 from 'ng-zorro-antd/skeleton';
|
|
9
|
+
import { NzSkeletonModule } from 'ng-zorro-antd/skeleton';
|
|
10
|
+
import * as i2 from 'ng-zorro-antd/core/outlet';
|
|
11
|
+
import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
|
|
12
|
+
import * as i3 from '@angular/common';
|
|
13
|
+
import { CommonModule } from '@angular/common';
|
|
14
|
+
|
|
15
|
+
const TITLE_HEIGHT = 41;
|
|
16
|
+
class G2BarComponent extends G2BaseComponent {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
this.color = 'rgba(24, 144, 255, 0.85)';
|
|
20
|
+
this.height = 0;
|
|
21
|
+
this.padding = 'auto';
|
|
22
|
+
this.data = [];
|
|
23
|
+
this.autoLabel = true;
|
|
24
|
+
this.interaction = 'none';
|
|
25
|
+
this.clickItem = new EventEmitter();
|
|
26
|
+
}
|
|
27
|
+
// #endregion
|
|
28
|
+
getHeight() {
|
|
29
|
+
return this.title ? this.height - TITLE_HEIGHT : this.height;
|
|
30
|
+
}
|
|
31
|
+
install() {
|
|
32
|
+
const { node, padding, interaction, theme } = this;
|
|
33
|
+
const container = node.nativeElement;
|
|
34
|
+
const chart = (this._chart = new window.G2.Chart({
|
|
35
|
+
container,
|
|
36
|
+
autoFit: true,
|
|
37
|
+
height: this.getHeight(),
|
|
38
|
+
padding,
|
|
39
|
+
theme
|
|
40
|
+
}));
|
|
41
|
+
this.updatelabel();
|
|
42
|
+
chart.axis('y', {
|
|
43
|
+
title: null,
|
|
44
|
+
line: null,
|
|
45
|
+
tickLine: null
|
|
46
|
+
});
|
|
47
|
+
chart.scale({
|
|
48
|
+
x: {
|
|
49
|
+
type: 'cat'
|
|
50
|
+
},
|
|
51
|
+
y: {
|
|
52
|
+
min: 0
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
chart.tooltip({
|
|
56
|
+
showTitle: false
|
|
57
|
+
});
|
|
58
|
+
if (interaction !== 'none') {
|
|
59
|
+
chart.interaction(interaction);
|
|
60
|
+
}
|
|
61
|
+
chart.legend(false);
|
|
62
|
+
chart
|
|
63
|
+
.interval()
|
|
64
|
+
.position('x*y')
|
|
65
|
+
.color('x*y', (x, y) => {
|
|
66
|
+
const colorItem = this.data.find(w => w.x === x && w.y === y);
|
|
67
|
+
return colorItem && colorItem.color ? colorItem.color : this.color;
|
|
68
|
+
})
|
|
69
|
+
.tooltip('x*y', (x, y) => ({ name: x, value: y }));
|
|
70
|
+
chart.on(`interval:click`, (ev) => {
|
|
71
|
+
this.ngZone.run(() => this.clickItem.emit({ item: ev.data?.data, ev }));
|
|
72
|
+
});
|
|
73
|
+
this.changeData();
|
|
74
|
+
chart.render();
|
|
75
|
+
this.installResizeEvent();
|
|
76
|
+
}
|
|
77
|
+
changeData() {
|
|
78
|
+
const { _chart, data } = this;
|
|
79
|
+
if (!_chart || !Array.isArray(data) || data.length <= 0)
|
|
80
|
+
return;
|
|
81
|
+
_chart.changeData(data);
|
|
82
|
+
}
|
|
83
|
+
updatelabel() {
|
|
84
|
+
const { node, data, _chart } = this;
|
|
85
|
+
const canvasWidth = node.nativeElement.clientWidth;
|
|
86
|
+
const minWidth = data.length * 30;
|
|
87
|
+
_chart.axis('x', canvasWidth > minWidth).render();
|
|
88
|
+
}
|
|
89
|
+
installResizeEvent() {
|
|
90
|
+
if (!this.autoLabel || this.resize$)
|
|
91
|
+
return;
|
|
92
|
+
this.resize$ = fromEvent(window, 'resize')
|
|
93
|
+
.pipe(takeUntil(this.destroy$), filter(() => !!this._chart), debounceTime(200))
|
|
94
|
+
.subscribe(() => this.ngZone.runOutsideAngular(() => this.updatelabel()));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
G2BarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: G2BarComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
98
|
+
G2BarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: G2BarComponent, selector: "g2-bar", inputs: { title: "title", color: "color", height: "height", padding: "padding", data: "data", autoLabel: "autoLabel", interaction: "interaction" }, outputs: { clickItem: "clickItem" }, host: { properties: { "style.height.px": "height" } }, exportAs: ["g2Bar"], usesInheritance: true, ngImport: i0, template: `
|
|
99
|
+
<ng-container *nzStringTemplateOutlet="title">
|
|
100
|
+
<h4 style="margin-bottom: 20px;">{{ title }}</h4>
|
|
101
|
+
</ng-container>
|
|
102
|
+
<nz-skeleton *ngIf="!loaded"></nz-skeleton>
|
|
103
|
+
<div #container></div>
|
|
104
|
+
`, isInline: true, components: [{ type: i1.NzSkeletonComponent, selector: "nz-skeleton", inputs: ["nzActive", "nzLoading", "nzRound", "nzTitle", "nzAvatar", "nzParagraph"], exportAs: ["nzSkeleton"] }], directives: [{ type: i2.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
105
|
+
__decorate([
|
|
106
|
+
InputNumber()
|
|
107
|
+
], G2BarComponent.prototype, "height", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
InputBoolean()
|
|
110
|
+
], G2BarComponent.prototype, "autoLabel", void 0);
|
|
111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: G2BarComponent, decorators: [{
|
|
112
|
+
type: Component,
|
|
113
|
+
args: [{
|
|
114
|
+
selector: 'g2-bar',
|
|
115
|
+
exportAs: 'g2Bar',
|
|
116
|
+
template: `
|
|
117
|
+
<ng-container *nzStringTemplateOutlet="title">
|
|
118
|
+
<h4 style="margin-bottom: 20px;">{{ title }}</h4>
|
|
119
|
+
</ng-container>
|
|
120
|
+
<nz-skeleton *ngIf="!loaded"></nz-skeleton>
|
|
121
|
+
<div #container></div>
|
|
122
|
+
`,
|
|
123
|
+
host: {
|
|
124
|
+
'[style.height.px]': 'height'
|
|
125
|
+
},
|
|
126
|
+
preserveWhitespaces: false,
|
|
127
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
128
|
+
encapsulation: ViewEncapsulation.None
|
|
129
|
+
}]
|
|
130
|
+
}], propDecorators: { title: [{
|
|
131
|
+
type: Input
|
|
132
|
+
}], color: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], height: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}], padding: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}], data: [{
|
|
139
|
+
type: Input
|
|
140
|
+
}], autoLabel: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}], interaction: [{
|
|
143
|
+
type: Input
|
|
144
|
+
}], clickItem: [{
|
|
145
|
+
type: Output
|
|
146
|
+
}] } });
|
|
147
|
+
|
|
148
|
+
const COMPONENTS = [G2BarComponent];
|
|
149
|
+
class G2BarModule {
|
|
150
|
+
}
|
|
151
|
+
G2BarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: G2BarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
152
|
+
G2BarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: G2BarModule, declarations: [G2BarComponent], imports: [CommonModule, NzOutletModule, NzSkeletonModule], exports: [G2BarComponent] });
|
|
153
|
+
G2BarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: G2BarModule, imports: [[CommonModule, NzOutletModule, NzSkeletonModule]] });
|
|
154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: G2BarModule, decorators: [{
|
|
155
|
+
type: NgModule,
|
|
156
|
+
args: [{
|
|
157
|
+
imports: [CommonModule, NzOutletModule, NzSkeletonModule],
|
|
158
|
+
declarations: COMPONENTS,
|
|
159
|
+
exports: COMPONENTS
|
|
160
|
+
}]
|
|
161
|
+
}] });
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Generated bundle index. Do not edit.
|
|
165
|
+
*/
|
|
166
|
+
|
|
167
|
+
export { G2BarComponent, G2BarModule };
|
|
168
|
+
//# sourceMappingURL=bar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bar.mjs","sources":["../../../../packages/chart/bar/bar.component.ts","../../../../packages/chart/bar/bar.module.ts","../../../../packages/chart/bar/bar.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Input,\n Output,\n TemplateRef,\n ViewEncapsulation\n} from '@angular/core';\nimport { fromEvent } from 'rxjs';\nimport { debounceTime, filter, takeUntil } from 'rxjs/operators';\n\nimport type { Chart, Event } from '@antv/g2';\n\nimport { G2BaseComponent, G2InteractionType } from '@delon/chart/core';\nimport { BooleanInput, InputBoolean, InputNumber, NumberInput } from '@delon/util/decorator';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nconst TITLE_HEIGHT = 41;\n\nexport interface G2BarData {\n x: NzSafeAny;\n y: NzSafeAny;\n color?: string | null;\n [key: string]: NzSafeAny;\n}\n\nexport interface G2BarClickItem {\n item: G2BarData;\n ev: Event;\n}\n\n@Component({\n selector: 'g2-bar',\n exportAs: 'g2Bar',\n template: `\n <ng-container *nzStringTemplateOutlet=\"title\">\n <h4 style=\"margin-bottom: 20px;\">{{ title }}</h4>\n </ng-container>\n <nz-skeleton *ngIf=\"!loaded\"></nz-skeleton>\n <div #container></div>\n `,\n host: {\n '[style.height.px]': 'height'\n },\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class G2BarComponent extends G2BaseComponent {\n static ngAcceptInputType_height: NumberInput;\n static ngAcceptInputType_autoLabel: BooleanInput;\n\n // #region fields\n\n @Input() title?: string | TemplateRef<void>;\n @Input() color = 'rgba(24, 144, 255, 0.85)';\n @Input() @InputNumber() height = 0;\n @Input() padding: number | number[] | 'auto' = 'auto';\n @Input() data: G2BarData[] = [];\n @Input() @InputBoolean() autoLabel = true;\n @Input() interaction: G2InteractionType = 'none';\n @Output() readonly clickItem = new EventEmitter<G2BarClickItem>();\n\n // #endregion\n\n private getHeight(): number {\n return this.title ? this.height - TITLE_HEIGHT : this.height;\n }\n\n install(): void {\n const { node, padding, interaction, theme } = this;\n\n const container = node.nativeElement as HTMLElement;\n const chart: Chart = (this._chart = new (window as NzSafeAny).G2.Chart({\n container,\n autoFit: true,\n height: this.getHeight(),\n padding,\n theme\n }));\n this.updatelabel();\n chart.axis('y', {\n title: null,\n line: null,\n tickLine: null\n });\n chart.scale({\n x: {\n type: 'cat'\n },\n y: {\n min: 0\n }\n });\n chart.tooltip({\n showTitle: false\n });\n if (interaction !== 'none') {\n chart.interaction(interaction);\n }\n chart.legend(false);\n chart\n .interval()\n .position('x*y')\n .color('x*y', (x, y) => {\n const colorItem = this.data.find(w => w.x === x && w.y === y);\n return colorItem && colorItem.color ? colorItem.color : this.color;\n })\n .tooltip('x*y', (x, y) => ({ name: x, value: y }));\n\n chart.on(`interval:click`, (ev: Event) => {\n this.ngZone.run(() => this.clickItem.emit({ item: ev.data?.data, ev }));\n });\n\n this.changeData();\n chart.render();\n this.installResizeEvent();\n }\n\n changeData(): void {\n const { _chart, data } = this;\n if (!_chart || !Array.isArray(data) || data.length <= 0) return;\n\n _chart.changeData(data);\n }\n\n private updatelabel(): void {\n const { node, data, _chart } = this;\n const canvasWidth = node.nativeElement.clientWidth;\n const minWidth = data.length * 30;\n _chart.axis('x', canvasWidth > minWidth).render();\n }\n\n private installResizeEvent(): void {\n if (!this.autoLabel || this.resize$) return;\n\n this.resize$ = fromEvent(window, 'resize')\n .pipe(\n takeUntil(this.destroy$),\n filter(() => !!this._chart),\n debounceTime(200)\n )\n .subscribe(() => this.ngZone.runOutsideAngular(() => this.updatelabel()));\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport { NzSkeletonModule } from 'ng-zorro-antd/skeleton';\n\nimport { G2BarComponent } from './bar.component';\n\nconst COMPONENTS = [G2BarComponent];\n\n@NgModule({\n imports: [CommonModule, NzOutletModule, NzSkeletonModule],\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class G2BarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAkBA,MAAM,YAAY,GAAG,EAAE,CAAC;MA+BX,cAAe,SAAQ,eAAe;IAjBnD;;QAwBW,UAAK,GAAG,0BAA0B,CAAC;QACpB,WAAM,GAAG,CAAC,CAAC;QAC1B,YAAO,GAA+B,MAAM,CAAC;QAC7C,SAAI,GAAgB,EAAE,CAAC;QACP,cAAS,GAAG,IAAI,C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OrB,WAAW,YAJb,CAAC,YAAY,EAAE,cAAc,EAAE,gBAAgB,CAAC;2FAI9C,WAAW;kBALvB,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,gBAAgB,CAAC;oBACzD,YAAY,EAAE,UAAU;oBACxB,OAAO,EAAE,UAAU;iBACpB;;;ACdD;;;;;;"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { __decorate } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, NgModule } from '@angular/core';
|
|
4
|
+
import { InputBoolean } from '@delon/util/decorator';
|
|
5
|
+
import * as i1 from 'ng-zorro-antd/card';
|
|
6
|
+
import { NzCardModule } from 'ng-zorro-antd/card';
|
|
7
|
+
import * as i2 from 'ng-zorro-antd/spin';
|
|
8
|
+
import { NzSpinModule } from 'ng-zorro-antd/spin';
|
|
9
|
+
import * as i3 from 'ng-zorro-antd/core/outlet';
|
|
10
|
+
import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
|
|
11
|
+
import * as i4 from '@angular/common';
|
|
12
|
+
import { CommonModule } from '@angular/common';
|
|
13
|
+
|
|
14
|
+
class G2CardComponent {
|
|
15
|
+
constructor(cdr) {
|
|
16
|
+
this.cdr = cdr;
|
|
17
|
+
/** 是否显示边框 */
|
|
18
|
+
this.bordered = false;
|
|
19
|
+
this.total = '';
|
|
20
|
+
this._height = 'auto';
|
|
21
|
+
/** 是否显示Loading */
|
|
22
|
+
this.loading = false;
|
|
23
|
+
}
|
|
24
|
+
set contentHeight(value) {
|
|
25
|
+
this._orgHeight = value;
|
|
26
|
+
this._height = typeof value === 'number' ? (this._height = `${value}px`) : value;
|
|
27
|
+
}
|
|
28
|
+
ngOnChanges() {
|
|
29
|
+
this.cdr.detectChanges();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
G2CardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: G2CardComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
33
|
+
G2CardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: G2CardComponent, selector: "g2-card", inputs: { bordered: "bordered", avatar: "avatar", title: "title", action: "action", total: "total", contentHeight: "contentHeight", footer: "footer", loading: "loading" }, host: { properties: { "class.g2-card": "true" } }, exportAs: ["g2Card"], usesOnChanges: true, ngImport: i0, template: "<nz-card [nzBodyStyle]=\"{ padding: '20px 24px 8px 24px' }\" [nzBordered]=\"bordered\">\n <nz-spin [nzSpinning]=\"loading\">\n <div class=\"g2-card__top\">\n <div class=\"g2-card__avatar\">\n <ng-container *nzStringTemplateOutlet=\"avatar\">{{ avatar }}</ng-container>\n </div>\n <div class=\"g2-card__meta-wrap\">\n <div class=\"g2-card__meta\">\n <span class=\"g2-card__meta-title\" *ngIf=\"title\">\n <ng-container *nzStringTemplateOutlet=\"title\">{{ title }}</ng-container>\n </span>\n <span class=\"g2-card__meta-action\" *ngIf=\"action\">\n <ng-container *nzStringTemplateOutlet=\"action\">{{ action }}</ng-container>\n </span>\n </div>\n <p *ngIf=\"total\" class=\"g2-card__total\">{{ total }}</p>\n </div>\n </div>\n <div class=\"g2-card__desc\" [ngStyle]=\"{ height: _height }\">\n <div [ngClass]=\"{ 'g2-card__fixed': !!_orgHeight }\">\n <ng-content></ng-content>\n </div>\n </div>\n <div class=\"g2-card__footer\" *ngIf=\"footer\">\n <ng-container *nzStringTemplateOutlet=\"footer\">{{ footer }}</ng-container>\n </div>\n </nz-spin>\n</nz-card>\n", components: [{ type: i1.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzBorderless", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }, { type: i2.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }], directives: [{ type: i3.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
34
|
+
__decorate([
|
|
35
|
+
InputBoolean()
|
|
36
|
+
], G2CardComponent.prototype, "bordered", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
InputBoolean()
|
|
39
|
+
], G2CardComponent.prototype, "loading", void 0);
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: G2CardComponent, decorators: [{
|
|
41
|
+
type: Component,
|
|
42
|
+
args: [{ selector: 'g2-card', exportAs: 'g2Card', host: { '[class.g2-card]': 'true' }, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<nz-card [nzBodyStyle]=\"{ padding: '20px 24px 8px 24px' }\" [nzBordered]=\"bordered\">\n <nz-spin [nzSpinning]=\"loading\">\n <div class=\"g2-card__top\">\n <div class=\"g2-card__avatar\">\n <ng-container *nzStringTemplateOutlet=\"avatar\">{{ avatar }}</ng-container>\n </div>\n <div class=\"g2-card__meta-wrap\">\n <div class=\"g2-card__meta\">\n <span class=\"g2-card__meta-title\" *ngIf=\"title\">\n <ng-container *nzStringTemplateOutlet=\"title\">{{ title }}</ng-container>\n </span>\n <span class=\"g2-card__meta-action\" *ngIf=\"action\">\n <ng-container *nzStringTemplateOutlet=\"action\">{{ action }}</ng-container>\n </span>\n </div>\n <p *ngIf=\"total\" class=\"g2-card__total\">{{ total }}</p>\n </div>\n </div>\n <div class=\"g2-card__desc\" [ngStyle]=\"{ height: _height }\">\n <div [ngClass]=\"{ 'g2-card__fixed': !!_orgHeight }\">\n <ng-content></ng-content>\n </div>\n </div>\n <div class=\"g2-card__footer\" *ngIf=\"footer\">\n <ng-container *nzStringTemplateOutlet=\"footer\">{{ footer }}</ng-container>\n </div>\n </nz-spin>\n</nz-card>\n" }]
|
|
43
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { bordered: [{
|
|
44
|
+
type: Input
|
|
45
|
+
}], avatar: [{
|
|
46
|
+
type: Input
|
|
47
|
+
}], title: [{
|
|
48
|
+
type: Input
|
|
49
|
+
}], action: [{
|
|
50
|
+
type: Input
|
|
51
|
+
}], total: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}], contentHeight: [{
|
|
54
|
+
type: Input
|
|
55
|
+
}], footer: [{
|
|
56
|
+
type: Input
|
|
57
|
+
}], loading: [{
|
|
58
|
+
type: Input
|
|
59
|
+
}] } });
|
|
60
|
+
|
|
61
|
+
const COMPONENTS = [G2CardComponent];
|
|
62
|
+
class G2CardModule {
|
|
63
|
+
}
|
|
64
|
+
G2CardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: G2CardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
65
|
+
G2CardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: G2CardModule, declarations: [G2CardComponent], imports: [CommonModule, NzCardModule, NzSpinModule, NzOutletModule], exports: [G2CardComponent] });
|
|
66
|
+
G2CardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: G2CardModule, imports: [[CommonModule, NzCardModule, NzSpinModule, NzOutletModule]] });
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: G2CardModule, decorators: [{
|
|
68
|
+
type: NgModule,
|
|
69
|
+
args: [{
|
|
70
|
+
imports: [CommonModule, NzCardModule, NzSpinModule, NzOutletModule],
|
|
71
|
+
declarations: COMPONENTS,
|
|
72
|
+
exports: COMPONENTS
|
|
73
|
+
}]
|
|
74
|
+
}] });
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Generated bundle index. Do not edit.
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
export { G2CardComponent, G2CardModule };
|
|
81
|
+
//# sourceMappingURL=card.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.mjs","sources":["../../../../packages/chart/card/card.component.ts","../../../../packages/chart/card/card.component.html","../../../../packages/chart/card/card.module.ts","../../../../packages/chart/card/card.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Input,\n OnChanges,\n TemplateRef,\n ViewEncapsulation\n} from '@angular/core';\n\nimport { BooleanInput, InputBoolean } from '@delon/util/decorator';\n\n@Component({\n selector: 'g2-card',\n exportAs: 'g2Card',\n templateUrl: './card.component.html',\n host: { '[class.g2-card]': 'true' },\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class G2CardComponent implements OnChanges {\n static ngAcceptInputType_bordered: BooleanInput;\n static ngAcceptInputType_loading: BooleanInput;\n\n /** 是否显示边框 */\n @Input() @InputBoolean() bordered = false;\n @Input() avatar?: string | TemplateRef<void> | null;\n @Input() title?: string | TemplateRef<void> | null;\n @Input() action?: string | TemplateRef<void> | null;\n @Input() total = '';\n _height = 'auto';\n _orgHeight!: number | string;\n @Input()\n set contentHeight(value: number | string) {\n this._orgHeight = value;\n this._height = typeof value === 'number' ? (this._height = `${value}px`) : value;\n }\n @Input() footer?: string | TemplateRef<void> | null;\n /** 是否显示Loading */\n @Input() @InputBoolean() loading = false;\n\n constructor(private cdr: ChangeDetectorRef) {}\n\n ngOnChanges(): void {\n this.cdr.detectChanges();\n }\n}\n","<nz-card [nzBodyStyle]=\"{ padding: '20px 24px 8px 24px' }\" [nzBordered]=\"bordered\">\n <nz-spin [nzSpinning]=\"loading\">\n <div class=\"g2-card__top\">\n <div class=\"g2-card__avatar\">\n <ng-container *nzStringTemplateOutlet=\"avatar\">{{ avatar }}</ng-container>\n </div>\n <div class=\"g2-card__meta-wrap\">\n <div class=\"g2-card__meta\">\n <span class=\"g2-card__meta-title\" *ngIf=\"title\">\n <ng-container *nzStringTemplateOutlet=\"title\">{{ title }}</ng-container>\n </span>\n <span class=\"g2-card__meta-action\" *ngIf=\"action\">\n <ng-container *nzStringTemplateOutlet=\"action\">{{ action }}</ng-container>\n </span>\n </div>\n <p *ngIf=\"total\" class=\"g2-card__total\">{{ total }}</p>\n </div>\n </div>\n <div class=\"g2-card__desc\" [ngStyle]=\"{ height: _height }\">\n <div [ngClass]=\"{ 'g2-card__fixed': !!_orgHeight }\">\n <ng-content></ng-content>\n </div>\n </div>\n <div class=\"g2-card__footer\" *ngIf=\"footer\">\n <ng-container *nzStringTemplateOutlet=\"footer\">{{ footer }}</ng-container>\n </div>\n </nz-spin>\n</nz-card>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { NzCardModule } from 'ng-zorro-antd/card';\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\n\nimport { G2CardComponent } from './card.component';\n\nconst COMPONENTS = [G2CardComponent];\n\n@NgModule({\n imports: [CommonModule, NzCardModule, NzSpinModule, NzOutletModule],\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class G2CardModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;MAqBa,eAAe;IAqB1B,YAAoB,GAAsB;QAAtB,QAAG,G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AAE,YAAY,EAAE,cAAc,CAAC;oBACnE,YAAY,EAAE,UAAU;oBACxB,OAAO,EAAE,UAAU;iBACpB;;;ACfD;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart.mjs","sources":["../../../../packages/chart/public_api.ts","../../../../packages/chart/chart.ts"],"sourcesContent":["// https://github.com/ng-packagr/ng-packagr/issues/1655\nexport default void 0;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":"AAAA;AACA,iBAAe,KAAK,CAAC;;ACDrB;;"}
|