@taiga-ui/addon-charts 2.61.0 → 3.0.0-rc.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/bundles/taiga-ui-addon-charts-components-arc-chart.umd.js +437 -319
- package/bundles/taiga-ui-addon-charts-components-arc-chart.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-charts-components-axes.umd.js +461 -335
- package/bundles/taiga-ui-addon-charts-components-axes.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-charts-components-bar-chart.umd.js +451 -342
- package/bundles/taiga-ui-addon-charts-components-bar-chart.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-charts-components-bar-set.umd.js +401 -298
- package/bundles/taiga-ui-addon-charts-components-bar-set.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-charts-components-bar.umd.js +396 -293
- package/bundles/taiga-ui-addon-charts-components-bar.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-charts-components-legend-item.umd.js +408 -295
- package/bundles/taiga-ui-addon-charts-components-legend-item.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-charts-components-line-chart.umd.js +572 -402
- package/bundles/taiga-ui-addon-charts-components-line-chart.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-charts-components-line-days-chart.umd.js +544 -392
- package/bundles/taiga-ui-addon-charts-components-line-days-chart.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-charts-components-pie-chart.umd.js +518 -393
- package/bundles/taiga-ui-addon-charts-components-pie-chart.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-charts-components-ring-chart.umd.js +398 -302
- package/bundles/taiga-ui-addon-charts-components-ring-chart.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-charts-components.umd.js +23 -43
- package/bundles/taiga-ui-addon-charts-components.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-charts-constants.umd.js +17 -48
- package/bundles/taiga-ui-addon-charts-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-charts-interfaces.umd.js +2 -2
- package/bundles/taiga-ui-addon-charts-interfaces.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-charts-types.umd.js +2 -2
- package/bundles/taiga-ui-addon-charts-types.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-charts-utils.umd.js +350 -308
- package/bundles/taiga-ui-addon-charts-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-charts.umd.js +18 -18
- package/bundles/taiga-ui-addon-charts.umd.js.map +1 -1
- package/components/arc-chart/arc-chart.component.d.ts +3 -0
- package/components/arc-chart/arc-chart.module.d.ts +6 -0
- package/components/arc-chart/package.json +2 -5
- package/components/arc-chart/taiga-ui-addon-charts-components-arc-chart.d.ts +1 -0
- package/components/axes/axes.component.d.ts +6 -3
- package/components/axes/axes.module.d.ts +7 -0
- package/components/axes/package.json +2 -5
- package/components/axes/taiga-ui-addon-charts-components-axes.d.ts +1 -0
- package/components/bar/bar.component.d.ts +4 -5
- package/components/bar/bar.module.d.ts +6 -0
- package/components/bar/package.json +2 -5
- package/components/bar/taiga-ui-addon-charts-components-bar.d.ts +1 -0
- package/components/bar-chart/bar-chart.component.d.ts +10 -10
- package/components/bar-chart/bar-chart.module.d.ts +9 -0
- package/components/bar-chart/package.json +2 -5
- package/components/bar-chart/taiga-ui-addon-charts-components-bar-chart.d.ts +1 -0
- package/components/bar-set/bar-set.component.d.ts +4 -5
- package/components/bar-set/bar-set.module.d.ts +7 -0
- package/components/bar-set/package.json +2 -5
- package/components/bar-set/taiga-ui-addon-charts-components-bar-set.d.ts +1 -0
- package/components/legend-item/legend-item.component.d.ts +3 -0
- package/components/legend-item/legend-item.module.d.ts +7 -0
- package/components/legend-item/package.json +2 -5
- package/components/legend-item/taiga-ui-addon-charts-components-legend-item.d.ts +1 -0
- package/components/line-chart/line-chart-hint.directive.d.ts +13 -3
- package/components/line-chart/line-chart.component.d.ts +10 -6
- package/components/line-chart/line-chart.module.d.ts +10 -0
- package/components/line-chart/package.json +2 -5
- package/components/line-chart/taiga-ui-addon-charts-components-line-chart.d.ts +1 -0
- package/components/line-days-chart/line-days-chart-hint.directive.d.ts +10 -3
- package/components/line-days-chart/line-days-chart.component.d.ts +7 -1
- package/components/line-days-chart/line-days-chart.module.d.ts +10 -0
- package/components/line-days-chart/package.json +2 -5
- package/components/line-days-chart/taiga-ui-addon-charts-components-line-days-chart.d.ts +1 -0
- package/components/package.json +2 -5
- package/components/pie-chart/package.json +2 -5
- package/components/pie-chart/pie-chart.component.d.ts +5 -6
- package/components/pie-chart/pie-chart.directive.d.ts +3 -0
- package/components/pie-chart/pie-chart.module.d.ts +10 -0
- package/components/pie-chart/taiga-ui-addon-charts-components-pie-chart.d.ts +1 -0
- package/components/ring-chart/package.json +2 -5
- package/components/ring-chart/ring-chart.component.d.ts +3 -8
- package/components/ring-chart/ring-chart.module.d.ts +8 -0
- package/components/ring-chart/taiga-ui-addon-charts-components-ring-chart.d.ts +1 -0
- package/components/taiga-ui-addon-charts-components.d.ts +1 -0
- package/constants/index.d.ts +0 -2
- package/constants/package.json +2 -5
- package/constants/taiga-ui-addon-charts-constants.d.ts +1 -0
- package/esm2015/components/arc-chart/arc-chart.component.js +57 -45
- package/esm2015/components/arc-chart/arc-chart.module.js +15 -12
- package/esm2015/components/arc-chart/index.js +1 -1
- package/esm2015/components/arc-chart/taiga-ui-addon-charts-components-arc-chart.js +1 -1
- package/esm2015/components/axes/axes.component.js +55 -38
- package/esm2015/components/axes/axes.module.js +15 -12
- package/esm2015/components/axes/index.js +1 -1
- package/esm2015/components/axes/taiga-ui-addon-charts-components-axes.js +1 -1
- package/esm2015/components/bar/bar.component.js +29 -35
- package/esm2015/components/bar/bar.module.js +15 -12
- package/esm2015/components/bar/index.js +1 -1
- package/esm2015/components/bar/taiga-ui-addon-charts-components-bar.js +1 -1
- package/esm2015/components/bar-chart/bar-chart.component.js +51 -56
- package/esm2015/components/bar-chart/bar-chart.module.js +28 -15
- package/esm2015/components/bar-chart/index.js +1 -1
- package/esm2015/components/bar-chart/taiga-ui-addon-charts-components-bar-chart.js +1 -1
- package/esm2015/components/bar-set/bar-set.component.js +27 -33
- package/esm2015/components/bar-set/bar-set.module.js +15 -12
- package/esm2015/components/bar-set/index.js +1 -1
- package/esm2015/components/bar-set/taiga-ui-addon-charts-components-bar-set.js +1 -1
- package/esm2015/components/index.js +1 -1
- package/esm2015/components/legend-item/index.js +1 -1
- package/esm2015/components/legend-item/legend-item.component.js +36 -30
- package/esm2015/components/legend-item/legend-item.module.js +15 -12
- package/esm2015/components/legend-item/taiga-ui-addon-charts-components-legend-item.js +1 -1
- package/esm2015/components/line-chart/index.js +1 -1
- package/esm2015/components/line-chart/line-chart-hint.directive.js +54 -39
- package/esm2015/components/line-chart/line-chart.component.js +81 -54
- package/esm2015/components/line-chart/line-chart.module.js +28 -13
- package/esm2015/components/line-chart/taiga-ui-addon-charts-components-line-chart.js +1 -1
- package/esm2015/components/line-days-chart/index.js +1 -1
- package/esm2015/components/line-days-chart/line-days-chart-hint.directive.js +46 -35
- package/esm2015/components/line-days-chart/line-days-chart.component.js +72 -48
- package/esm2015/components/line-days-chart/line-days-chart.module.js +29 -12
- package/esm2015/components/line-days-chart/taiga-ui-addon-charts-components-line-days-chart.js +1 -1
- package/esm2015/components/pie-chart/index.js +1 -1
- package/esm2015/components/pie-chart/pie-chart.component.js +50 -50
- package/esm2015/components/pie-chart/pie-chart.directive.js +40 -32
- package/esm2015/components/pie-chart/pie-chart.module.js +28 -15
- package/esm2015/components/pie-chart/taiga-ui-addon-charts-components-pie-chart.js +1 -1
- package/esm2015/components/ring-chart/index.js +1 -1
- package/esm2015/components/ring-chart/ring-chart.component.js +27 -38
- package/esm2015/components/ring-chart/ring-chart.module.js +15 -12
- package/esm2015/components/ring-chart/taiga-ui-addon-charts-components-ring-chart.js +1 -1
- package/esm2015/components/taiga-ui-addon-charts-components.js +1 -1
- package/esm2015/constants/index.js +1 -3
- package/esm2015/constants/line-handlers.js +1 -1
- package/esm2015/constants/taiga-ui-addon-charts-constants.js +1 -1
- package/esm2015/index.js +3 -2
- package/esm2015/interfaces/index.js +2 -1
- package/esm2015/interfaces/line-chart-hint-context.js +2 -1
- package/esm2015/interfaces/taiga-ui-addon-charts-interfaces.js +2 -1
- package/esm2015/taiga-ui-addon-charts.js +1 -1
- package/esm2015/types/index.js +3 -1
- package/esm2015/types/line-handler.js +2 -1
- package/esm2015/types/line-type.js +2 -1
- package/esm2015/types/taiga-ui-addon-charts-types.js +2 -1
- package/esm2015/utils/control-point.js +6 -11
- package/esm2015/utils/describe-sector.js +6 -9
- package/esm2015/utils/draw-curve.js +5 -10
- package/esm2015/utils/draw-line.js +2 -7
- package/esm2015/utils/draw.js +6 -11
- package/esm2015/utils/index.js +1 -1
- package/esm2015/utils/line-angle.js +2 -7
- package/esm2015/utils/line-length.js +2 -7
- package/esm2015/utils/taiga-ui-addon-charts-utils.js +1 -1
- package/fesm2015/taiga-ui-addon-charts-components-arc-chart.js +68 -51
- package/fesm2015/taiga-ui-addon-charts-components-arc-chart.js.map +1 -1
- package/fesm2015/taiga-ui-addon-charts-components-axes.js +68 -46
- package/fesm2015/taiga-ui-addon-charts-components-axes.js.map +1 -1
- package/fesm2015/taiga-ui-addon-charts-components-bar-chart.js +77 -68
- package/fesm2015/taiga-ui-addon-charts-components-bar-chart.js.map +1 -1
- package/fesm2015/taiga-ui-addon-charts-components-bar-set.js +40 -41
- package/fesm2015/taiga-ui-addon-charts-components-bar-set.js.map +1 -1
- package/fesm2015/taiga-ui-addon-charts-components-bar.js +41 -42
- package/fesm2015/taiga-ui-addon-charts-components-bar.js.map +1 -1
- package/fesm2015/taiga-ui-addon-charts-components-legend-item.js +50 -38
- package/fesm2015/taiga-ui-addon-charts-components-legend-item.js.map +1 -1
- package/fesm2015/taiga-ui-addon-charts-components-line-chart.js +154 -97
- package/fesm2015/taiga-ui-addon-charts-components-line-chart.js.map +1 -1
- package/fesm2015/taiga-ui-addon-charts-components-line-days-chart.js +137 -86
- package/fesm2015/taiga-ui-addon-charts-components-line-days-chart.js.map +1 -1
- package/fesm2015/taiga-ui-addon-charts-components-pie-chart.js +131 -109
- package/fesm2015/taiga-ui-addon-charts-components-pie-chart.js.map +1 -1
- package/fesm2015/taiga-ui-addon-charts-components-ring-chart.js +41 -47
- package/fesm2015/taiga-ui-addon-charts-components-ring-chart.js.map +1 -1
- package/fesm2015/taiga-ui-addon-charts-components.js.map +1 -1
- package/fesm2015/taiga-ui-addon-charts-constants.js +1 -34
- package/fesm2015/taiga-ui-addon-charts-constants.js.map +1 -1
- package/fesm2015/taiga-ui-addon-charts-interfaces.js.map +1 -1
- package/fesm2015/taiga-ui-addon-charts-types.js.map +1 -1
- package/fesm2015/taiga-ui-addon-charts-utils.js +18 -51
- package/fesm2015/taiga-ui-addon-charts-utils.js.map +1 -1
- package/fesm2015/taiga-ui-addon-charts.js +2 -1
- package/fesm2015/taiga-ui-addon-charts.js.map +1 -1
- package/index.d.ts +0 -1
- package/interfaces/index.d.ts +0 -1
- package/interfaces/package.json +2 -5
- package/interfaces/taiga-ui-addon-charts-interfaces.d.ts +1 -0
- package/package.json +11 -14
- package/taiga-ui-addon-charts.d.ts +1 -0
- package/types/index.d.ts +0 -1
- package/types/line-handler.d.ts +2 -2
- package/types/line-type.d.ts +1 -1
- package/types/package.json +2 -5
- package/types/taiga-ui-addon-charts-types.d.ts +1 -0
- package/utils/control-point.d.ts +1 -5
- package/utils/describe-sector.d.ts +1 -3
- package/utils/draw-curve.d.ts +1 -5
- package/utils/draw-line.d.ts +1 -5
- package/utils/draw.d.ts +1 -5
- package/utils/line-angle.d.ts +1 -5
- package/utils/line-length.d.ts +1 -5
- package/utils/package.json +2 -5
- package/utils/taiga-ui-addon-charts-utils.d.ts +1 -0
- package/bundles/taiga-ui-addon-charts-components-arc-chart.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-charts-components-arc-chart.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-components-axes.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-charts-components-axes.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-components-bar-chart.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-charts-components-bar-chart.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-components-bar-set.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-charts-components-bar-set.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-components-bar.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-charts-components-bar.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-components-legend-item.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-charts-components-legend-item.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-components-line-chart.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-charts-components-line-chart.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-components-line-days-chart.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-charts-components-line-days-chart.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-components-pie-chart.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-charts-components-pie-chart.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-components-ring-chart.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-charts-components-ring-chart.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-components.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-charts-components.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-constants.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-charts-constants.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-enums.umd.js +0 -23
- package/bundles/taiga-ui-addon-charts-enums.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-enums.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-charts-enums.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-interfaces.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-charts-interfaces.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-types.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-charts-types.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-utils.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-charts-utils.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-charts.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-charts.umd.min.js.map +0 -1
- package/components/arc-chart/taiga-ui-addon-charts-components-arc-chart.metadata.json +0 -1
- package/components/axes/taiga-ui-addon-charts-components-axes.metadata.json +0 -1
- package/components/bar/taiga-ui-addon-charts-components-bar.metadata.json +0 -1
- package/components/bar-chart/taiga-ui-addon-charts-components-bar-chart.metadata.json +0 -1
- package/components/bar-set/taiga-ui-addon-charts-components-bar-set.metadata.json +0 -1
- package/components/legend-item/taiga-ui-addon-charts-components-legend-item.metadata.json +0 -1
- package/components/line-chart/taiga-ui-addon-charts-components-line-chart.metadata.json +0 -1
- package/components/line-days-chart/taiga-ui-addon-charts-components-line-days-chart.metadata.json +0 -1
- package/components/pie-chart/taiga-ui-addon-charts-components-pie-chart.metadata.json +0 -1
- package/components/ring-chart/taiga-ui-addon-charts-components-ring-chart.metadata.json +0 -1
- package/components/taiga-ui-addon-charts-components.metadata.json +0 -1
- package/constants/default-color-handler.d.ts +0 -3
- package/constants/default-colors.d.ts +0 -3
- package/constants/taiga-ui-addon-charts-constants.metadata.json +0 -1
- package/enums/index.d.ts +0 -1
- package/enums/line-type.d.ts +0 -11
- package/enums/package.json +0 -13
- package/enums/taiga-ui-addon-charts-enums.d.ts +0 -4
- package/enums/taiga-ui-addon-charts-enums.metadata.json +0 -1
- package/esm2015/constants/default-color-handler.js +0 -4
- package/esm2015/constants/default-colors.js +0 -30
- package/esm2015/enums/index.js +0 -2
- package/esm2015/enums/line-type.js +0 -13
- package/esm2015/enums/taiga-ui-addon-charts-enums.js +0 -5
- package/esm2015/interfaces/ring-chart-context.js +0 -1
- package/esm2015/types/color-handler.js +0 -1
- package/esm5/components/arc-chart/arc-chart.component.js +0 -149
- package/esm5/components/arc-chart/arc-chart.module.js +0 -18
- package/esm5/components/arc-chart/index.js +0 -3
- package/esm5/components/arc-chart/taiga-ui-addon-charts-components-arc-chart.js +0 -5
- package/esm5/components/axes/axes.component.js +0 -131
- package/esm5/components/axes/axes.module.js +0 -19
- package/esm5/components/axes/index.js +0 -3
- package/esm5/components/axes/taiga-ui-addon-charts-components-axes.js +0 -5
- package/esm5/components/bar/bar.component.js +0 -55
- package/esm5/components/bar/bar.module.js +0 -18
- package/esm5/components/bar/index.js +0 -3
- package/esm5/components/bar/taiga-ui-addon-charts-components-bar.js +0 -5
- package/esm5/components/bar-chart/bar-chart.component.js +0 -118
- package/esm5/components/bar-chart/bar-chart.module.js +0 -30
- package/esm5/components/bar-chart/index.js +0 -3
- package/esm5/components/bar-chart/taiga-ui-addon-charts-components-bar-chart.js +0 -5
- package/esm5/components/bar-set/bar-set.component.js +0 -83
- package/esm5/components/bar-set/bar-set.module.js +0 -19
- package/esm5/components/bar-set/index.js +0 -3
- package/esm5/components/bar-set/taiga-ui-addon-charts-components-bar-set.js +0 -5
- package/esm5/components/index.js +0 -11
- package/esm5/components/legend-item/index.js +0 -3
- package/esm5/components/legend-item/legend-item.component.js +0 -59
- package/esm5/components/legend-item/legend-item.module.js +0 -19
- package/esm5/components/legend-item/taiga-ui-addon-charts-components-legend-item.js +0 -5
- package/esm5/components/line-chart/index.js +0 -4
- package/esm5/components/line-chart/line-chart-hint.directive.js +0 -78
- package/esm5/components/line-chart/line-chart.component.js +0 -246
- package/esm5/components/line-chart/line-chart.module.js +0 -29
- package/esm5/components/line-chart/taiga-ui-addon-charts-components-line-chart.js +0 -5
- package/esm5/components/line-days-chart/index.js +0 -4
- package/esm5/components/line-days-chart/line-days-chart-hint.directive.js +0 -83
- package/esm5/components/line-days-chart/line-days-chart.component.js +0 -204
- package/esm5/components/line-days-chart/line-days-chart.module.js +0 -21
- package/esm5/components/line-days-chart/taiga-ui-addon-charts-components-line-days-chart.js +0 -5
- package/esm5/components/pie-chart/index.js +0 -4
- package/esm5/components/pie-chart/pie-chart.component.js +0 -168
- package/esm5/components/pie-chart/pie-chart.directive.js +0 -66
- package/esm5/components/pie-chart/pie-chart.module.js +0 -28
- package/esm5/components/pie-chart/taiga-ui-addon-charts-components-pie-chart.js +0 -5
- package/esm5/components/ring-chart/index.js +0 -3
- package/esm5/components/ring-chart/ring-chart.component.js +0 -67
- package/esm5/components/ring-chart/ring-chart.module.js +0 -20
- package/esm5/components/ring-chart/taiga-ui-addon-charts-components-ring-chart.js +0 -5
- package/esm5/components/taiga-ui-addon-charts-components.js +0 -5
- package/esm5/constants/default-color-handler.js +0 -4
- package/esm5/constants/default-colors.js +0 -30
- package/esm5/constants/index.js +0 -4
- package/esm5/constants/line-handlers.js +0 -5
- package/esm5/constants/taiga-ui-addon-charts-constants.js +0 -5
- package/esm5/enums/index.js +0 -2
- package/esm5/enums/line-type.js +0 -13
- package/esm5/enums/taiga-ui-addon-charts-enums.js +0 -5
- package/esm5/index.js +0 -4
- package/esm5/interfaces/index.js +0 -1
- package/esm5/interfaces/line-chart-hint-context.js +0 -1
- package/esm5/interfaces/ring-chart-context.js +0 -1
- package/esm5/interfaces/taiga-ui-addon-charts-interfaces.js +0 -4
- package/esm5/taiga-ui-addon-charts.js +0 -5
- package/esm5/types/color-handler.js +0 -1
- package/esm5/types/index.js +0 -1
- package/esm5/types/line-handler.js +0 -1
- package/esm5/types/line-type.js +0 -1
- package/esm5/types/taiga-ui-addon-charts-types.js +0 -4
- package/esm5/utils/control-point.js +0 -19
- package/esm5/utils/describe-sector.js +0 -36
- package/esm5/utils/draw-curve.js +0 -13
- package/esm5/utils/draw-line.js +0 -9
- package/esm5/utils/draw.js +0 -14
- package/esm5/utils/index.js +0 -8
- package/esm5/utils/line-angle.js +0 -11
- package/esm5/utils/line-length.js +0 -11
- package/esm5/utils/taiga-ui-addon-charts-utils.js +0 -5
- package/fesm2015/taiga-ui-addon-charts-enums.js +0 -19
- package/fesm2015/taiga-ui-addon-charts-enums.js.map +0 -1
- package/fesm5/taiga-ui-addon-charts-components-arc-chart.js +0 -168
- package/fesm5/taiga-ui-addon-charts-components-arc-chart.js.map +0 -1
- package/fesm5/taiga-ui-addon-charts-components-axes.js +0 -151
- package/fesm5/taiga-ui-addon-charts-components-axes.js.map +0 -1
- package/fesm5/taiga-ui-addon-charts-components-bar-chart.js +0 -149
- package/fesm5/taiga-ui-addon-charts-components-bar-chart.js.map +0 -1
- package/fesm5/taiga-ui-addon-charts-components-bar-set.js +0 -104
- package/fesm5/taiga-ui-addon-charts-components-bar-set.js.map +0 -1
- package/fesm5/taiga-ui-addon-charts-components-bar.js +0 -75
- package/fesm5/taiga-ui-addon-charts-components-bar.js.map +0 -1
- package/fesm5/taiga-ui-addon-charts-components-legend-item.js +0 -79
- package/fesm5/taiga-ui-addon-charts-components-legend-item.js.map +0 -1
- package/fesm5/taiga-ui-addon-charts-components-line-chart.js +0 -343
- package/fesm5/taiga-ui-addon-charts-components-line-chart.js.map +0 -1
- package/fesm5/taiga-ui-addon-charts-components-line-days-chart.js +0 -302
- package/fesm5/taiga-ui-addon-charts-components-line-days-chart.js.map +0 -1
- package/fesm5/taiga-ui-addon-charts-components-pie-chart.js +0 -255
- package/fesm5/taiga-ui-addon-charts-components-pie-chart.js.map +0 -1
- package/fesm5/taiga-ui-addon-charts-components-ring-chart.js +0 -89
- package/fesm5/taiga-ui-addon-charts-components-ring-chart.js.map +0 -1
- package/fesm5/taiga-ui-addon-charts-components.js +0 -15
- package/fesm5/taiga-ui-addon-charts-components.js.map +0 -1
- package/fesm5/taiga-ui-addon-charts-constants.js +0 -44
- package/fesm5/taiga-ui-addon-charts-constants.js.map +0 -1
- package/fesm5/taiga-ui-addon-charts-enums.js +0 -19
- package/fesm5/taiga-ui-addon-charts-enums.js.map +0 -1
- package/fesm5/taiga-ui-addon-charts-interfaces.js +0 -4
- package/fesm5/taiga-ui-addon-charts-interfaces.js.map +0 -1
- package/fesm5/taiga-ui-addon-charts-types.js +0 -4
- package/fesm5/taiga-ui-addon-charts-types.js.map +0 -1
- package/fesm5/taiga-ui-addon-charts-utils.js +0 -115
- package/fesm5/taiga-ui-addon-charts-utils.js.map +0 -1
- package/fesm5/taiga-ui-addon-charts.js +0 -8
- package/fesm5/taiga-ui-addon-charts.js.map +0 -1
- package/interfaces/ring-chart-context.d.ts +0 -4
- package/interfaces/taiga-ui-addon-charts-interfaces.metadata.json +0 -1
- package/taiga-ui-addon-charts.metadata.json +0 -1
- package/types/color-handler.d.ts +0 -3
- package/types/taiga-ui-addon-charts-types.metadata.json +0 -1
- package/utils/taiga-ui-addon-charts-utils.metadata.json +0 -1
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from "tslib";
|
|
2
|
-
import { Location } from '@angular/common';
|
|
3
|
-
import { ChangeDetectionStrategy, Component, HostListener, Inject, Input, NgZone, Optional, } from '@angular/core';
|
|
4
|
-
import { draw } from '@taiga-ui/addon-charts/utils';
|
|
5
|
-
import { inRange, tuiDefaultProp, TuiIdService, tuiPure, TuiStringHandler, tuiZoneOptimized, } from '@taiga-ui/cdk';
|
|
6
|
-
import { Subject } from 'rxjs';
|
|
7
|
-
import { distinctUntilChanged } from 'rxjs/operators';
|
|
8
|
-
import { TuiLineChartHintDirective } from './line-chart-hint.directive';
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
10
|
-
export function smoothingAssertion(smoothingFactor) {
|
|
11
|
-
return inRange(smoothingFactor, 0, 100);
|
|
12
|
-
}
|
|
13
|
-
var SMOOTHING_MESSAGE = "smoothingFactor must be between 0 and 100";
|
|
14
|
-
var TuiLineChartComponent = /** @class */ (function () {
|
|
15
|
-
function TuiLineChartComponent(idService, ngZone, locationRef, hintDirective) {
|
|
16
|
-
this.ngZone = ngZone;
|
|
17
|
-
this.locationRef = locationRef;
|
|
18
|
-
this.hintDirective = hintDirective;
|
|
19
|
-
this._hovered$ = new Subject();
|
|
20
|
-
this.x = 0;
|
|
21
|
-
this.y = 0;
|
|
22
|
-
this.width = 0;
|
|
23
|
-
this.height = 0;
|
|
24
|
-
this.smoothingFactor = 0;
|
|
25
|
-
this.hintContent = "";
|
|
26
|
-
this.xStringify = null;
|
|
27
|
-
this.yStringify = null;
|
|
28
|
-
this.filled = false;
|
|
29
|
-
this.dots = false;
|
|
30
|
-
this.value = [];
|
|
31
|
-
this.autoIdString = idService.generate();
|
|
32
|
-
}
|
|
33
|
-
Object.defineProperty(TuiLineChartComponent.prototype, "valueSetter", {
|
|
34
|
-
set: function (value) {
|
|
35
|
-
this.value = value.filter(function (item) { return !item.some(isNaN); });
|
|
36
|
-
},
|
|
37
|
-
enumerable: true,
|
|
38
|
-
configurable: true
|
|
39
|
-
});
|
|
40
|
-
Object.defineProperty(TuiLineChartComponent.prototype, "hovered$", {
|
|
41
|
-
get: function () {
|
|
42
|
-
return this._hovered$.pipe(distinctUntilChanged(), tuiZoneOptimized(this.ngZone));
|
|
43
|
-
},
|
|
44
|
-
enumerable: true,
|
|
45
|
-
configurable: true
|
|
46
|
-
});
|
|
47
|
-
Object.defineProperty(TuiLineChartComponent.prototype, "fillId", {
|
|
48
|
-
get: function () {
|
|
49
|
-
return "tui-line-chart-" + this.autoIdString;
|
|
50
|
-
},
|
|
51
|
-
enumerable: true,
|
|
52
|
-
configurable: true
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(TuiLineChartComponent.prototype, "fill", {
|
|
55
|
-
get: function () {
|
|
56
|
-
return this.filled
|
|
57
|
-
? "url(" + this.locationRef.prepareExternalUrl(this.locationRef.path()) + "#" + this.fillId + ")"
|
|
58
|
-
: "none";
|
|
59
|
-
},
|
|
60
|
-
enumerable: true,
|
|
61
|
-
configurable: true
|
|
62
|
-
});
|
|
63
|
-
Object.defineProperty(TuiLineChartComponent.prototype, "viewBox", {
|
|
64
|
-
get: function () {
|
|
65
|
-
return this.x + " " + this.y + " " + this.width + " " + this.height;
|
|
66
|
-
},
|
|
67
|
-
enumerable: true,
|
|
68
|
-
configurable: true
|
|
69
|
-
});
|
|
70
|
-
Object.defineProperty(TuiLineChartComponent.prototype, "d", {
|
|
71
|
-
get: function () {
|
|
72
|
-
return this.getD(this.value, this.smoothingFactor);
|
|
73
|
-
},
|
|
74
|
-
enumerable: true,
|
|
75
|
-
configurable: true
|
|
76
|
-
});
|
|
77
|
-
Object.defineProperty(TuiLineChartComponent.prototype, "fillD", {
|
|
78
|
-
get: function () {
|
|
79
|
-
return this.value.length
|
|
80
|
-
? this.d + "V " + this.y + " H " + this.value[0][0] + " V " + this.value[0][1]
|
|
81
|
-
: this.d;
|
|
82
|
-
},
|
|
83
|
-
enumerable: true,
|
|
84
|
-
configurable: true
|
|
85
|
-
});
|
|
86
|
-
Object.defineProperty(TuiLineChartComponent.prototype, "isFocusable", {
|
|
87
|
-
get: function () {
|
|
88
|
-
return !this.hintDirective && this.hasHints;
|
|
89
|
-
},
|
|
90
|
-
enumerable: true,
|
|
91
|
-
configurable: true
|
|
92
|
-
});
|
|
93
|
-
Object.defineProperty(TuiLineChartComponent.prototype, "hasHints", {
|
|
94
|
-
get: function () {
|
|
95
|
-
var _a;
|
|
96
|
-
return (!!this.xStringify ||
|
|
97
|
-
!!this.yStringify ||
|
|
98
|
-
!!((_a = this.hintDirective) === null || _a === void 0 ? void 0 : _a.hint) ||
|
|
99
|
-
!!this.hintContent);
|
|
100
|
-
},
|
|
101
|
-
enumerable: true,
|
|
102
|
-
configurable: true
|
|
103
|
-
});
|
|
104
|
-
TuiLineChartComponent.prototype.onMouseLeave = function () {
|
|
105
|
-
if (!this.hintDirective) {
|
|
106
|
-
this.onHovered(NaN);
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
TuiLineChartComponent.prototype.getX = function (index) {
|
|
110
|
-
if (this.isSinglePoint) {
|
|
111
|
-
return this.value[0][0] / 2;
|
|
112
|
-
}
|
|
113
|
-
return index
|
|
114
|
-
? (this.value[index - 1][0] + this.value[index][0]) / 2
|
|
115
|
-
: 2 * this.value[0][0] - this.getX(1);
|
|
116
|
-
};
|
|
117
|
-
TuiLineChartComponent.prototype.getWidth = function (index) {
|
|
118
|
-
return (100 * this.computeWidth(index)) / this.width;
|
|
119
|
-
};
|
|
120
|
-
TuiLineChartComponent.prototype.getHintId = function (index) {
|
|
121
|
-
return this.autoIdString + "_" + index;
|
|
122
|
-
};
|
|
123
|
-
TuiLineChartComponent.prototype.getContentContext = function ($implicit, index) {
|
|
124
|
-
var _a;
|
|
125
|
-
return (((_a = this.hintDirective) === null || _a === void 0 ? void 0 : _a.getContext(this.value.indexOf($implicit), this)) || {
|
|
126
|
-
$implicit: [],
|
|
127
|
-
index: index,
|
|
128
|
-
});
|
|
129
|
-
};
|
|
130
|
-
TuiLineChartComponent.prototype.getHovered = function (hovered) {
|
|
131
|
-
// This checks for NaN and null too since async pipe returns null before first item
|
|
132
|
-
return Number.isInteger(hovered) ? this.value[hovered] : null;
|
|
133
|
-
};
|
|
134
|
-
TuiLineChartComponent.prototype.getBottom = function (y) {
|
|
135
|
-
return (100 * (y - this.y)) / this.height;
|
|
136
|
-
};
|
|
137
|
-
TuiLineChartComponent.prototype.getLeft = function (x) {
|
|
138
|
-
return (100 * (x - this.x)) / this.width;
|
|
139
|
-
};
|
|
140
|
-
TuiLineChartComponent.prototype.getOffset = function (x) {
|
|
141
|
-
return (100 * (this.value[x][0] - this.getX(x))) / this.computeWidth(x);
|
|
142
|
-
};
|
|
143
|
-
TuiLineChartComponent.prototype.onMouseEnter = function (index) {
|
|
144
|
-
if (this.hintDirective) {
|
|
145
|
-
this.hintDirective.raise(index, this);
|
|
146
|
-
}
|
|
147
|
-
else {
|
|
148
|
-
this.onHovered(index);
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
|
-
TuiLineChartComponent.prototype.onHovered = function (index) {
|
|
152
|
-
this._hovered$.next(index);
|
|
153
|
-
};
|
|
154
|
-
Object.defineProperty(TuiLineChartComponent.prototype, "isSinglePoint", {
|
|
155
|
-
get: function () {
|
|
156
|
-
return this.value.length === 1;
|
|
157
|
-
},
|
|
158
|
-
enumerable: true,
|
|
159
|
-
configurable: true
|
|
160
|
-
});
|
|
161
|
-
TuiLineChartComponent.prototype.getD = function (value, smoothingFactor) {
|
|
162
|
-
return value.reduce(function (d, point, index) {
|
|
163
|
-
return index ? d + " " + draw(value, index, smoothingFactor) : "M " + point;
|
|
164
|
-
}, "");
|
|
165
|
-
};
|
|
166
|
-
TuiLineChartComponent.prototype.computeWidth = function (index) {
|
|
167
|
-
return index === this.value.length - 1
|
|
168
|
-
? 2 * (this.value[index][0] - this.getX(index))
|
|
169
|
-
: this.getX(index + 1) - this.getX(index);
|
|
170
|
-
};
|
|
171
|
-
TuiLineChartComponent.ctorParameters = function () { return [
|
|
172
|
-
{ type: TuiIdService, decorators: [{ type: Inject, args: [TuiIdService,] }] },
|
|
173
|
-
{ type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] },
|
|
174
|
-
{ type: Location, decorators: [{ type: Inject, args: [Location,] }] },
|
|
175
|
-
{ type: TuiLineChartHintDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiLineChartHintDirective,] }] }
|
|
176
|
-
]; };
|
|
177
|
-
__decorate([
|
|
178
|
-
Input("value"),
|
|
179
|
-
tuiDefaultProp()
|
|
180
|
-
], TuiLineChartComponent.prototype, "valueSetter", null);
|
|
181
|
-
__decorate([
|
|
182
|
-
Input(),
|
|
183
|
-
tuiDefaultProp()
|
|
184
|
-
], TuiLineChartComponent.prototype, "x", void 0);
|
|
185
|
-
__decorate([
|
|
186
|
-
Input(),
|
|
187
|
-
tuiDefaultProp()
|
|
188
|
-
], TuiLineChartComponent.prototype, "y", void 0);
|
|
189
|
-
__decorate([
|
|
190
|
-
Input(),
|
|
191
|
-
tuiDefaultProp()
|
|
192
|
-
], TuiLineChartComponent.prototype, "width", void 0);
|
|
193
|
-
__decorate([
|
|
194
|
-
Input(),
|
|
195
|
-
tuiDefaultProp()
|
|
196
|
-
], TuiLineChartComponent.prototype, "height", void 0);
|
|
197
|
-
__decorate([
|
|
198
|
-
Input(),
|
|
199
|
-
tuiDefaultProp(smoothingAssertion, SMOOTHING_MESSAGE)
|
|
200
|
-
], TuiLineChartComponent.prototype, "smoothingFactor", void 0);
|
|
201
|
-
__decorate([
|
|
202
|
-
Input(),
|
|
203
|
-
tuiDefaultProp()
|
|
204
|
-
], TuiLineChartComponent.prototype, "hintContent", void 0);
|
|
205
|
-
__decorate([
|
|
206
|
-
Input(),
|
|
207
|
-
tuiDefaultProp()
|
|
208
|
-
], TuiLineChartComponent.prototype, "xStringify", void 0);
|
|
209
|
-
__decorate([
|
|
210
|
-
Input(),
|
|
211
|
-
tuiDefaultProp()
|
|
212
|
-
], TuiLineChartComponent.prototype, "yStringify", void 0);
|
|
213
|
-
__decorate([
|
|
214
|
-
Input(),
|
|
215
|
-
tuiDefaultProp()
|
|
216
|
-
], TuiLineChartComponent.prototype, "filled", void 0);
|
|
217
|
-
__decorate([
|
|
218
|
-
Input(),
|
|
219
|
-
tuiDefaultProp()
|
|
220
|
-
], TuiLineChartComponent.prototype, "dots", void 0);
|
|
221
|
-
__decorate([
|
|
222
|
-
tuiPure
|
|
223
|
-
], TuiLineChartComponent.prototype, "hovered$", null);
|
|
224
|
-
__decorate([
|
|
225
|
-
HostListener("mouseleave")
|
|
226
|
-
], TuiLineChartComponent.prototype, "onMouseLeave", null);
|
|
227
|
-
__decorate([
|
|
228
|
-
tuiPure
|
|
229
|
-
], TuiLineChartComponent.prototype, "getD", null);
|
|
230
|
-
TuiLineChartComponent = __decorate([
|
|
231
|
-
Component({
|
|
232
|
-
selector: "tui-line-chart",
|
|
233
|
-
template: "<ng-container *tuiLet=\"hovered$ | async as hovered\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n focusable=\"false\"\n preserveAspectRatio=\"none\"\n width=\"100%\"\n height=\"100%\"\n class=\"t-svg\"\n [attr.viewBox]=\"viewBox\"\n >\n <defs>\n <linearGradient\n x1=\"0\"\n x2=\"0\"\n y1=\"1\"\n y2=\"0\"\n [attr.id]=\"fillId\"\n >\n <stop\n stop-color=\"currentColor\"\n offset=\"0%\"\n stop-opacity=\"0.5\"\n />\n <stop\n stop-color=\"currentColor\"\n offset=\"100%\"\n stop-opacity=\"0\"\n />\n </linearGradient>\n </defs>\n <path\n stroke=\"none\"\n [attr.fill]=\"fill\"\n [attr.d]=\"fillD\"\n />\n <path\n fill=\"none\"\n stroke=\"currentColor\"\n vector-effect=\"non-scaling-stroke\"\n stroke-width=\"2\"\n [attr.d]=\"d\"\n />\n </svg>\n <ng-container *ngIf=\"dots\">\n <div\n *ngFor=\"let point of value\"\n class=\"t-dot\"\n [style.left.%]=\"getLeft(point[0])\"\n [style.bottom.%]=\"getBottom(point[1])\"\n ></div>\n </ng-container>\n <ng-container *ngIf=\"hasHints\">\n <ng-container *ngFor=\"let point of value; let index = index\">\n <div\n *ngIf=\"value.length > 1 || dots\"\n tuiHintDirection=\"top-left\"\n class=\"t-column\"\n [class.t-column_hovered]=\"hovered === index\"\n [tuiHintHost]=\"hintHost\"\n [tuiHint]=\"hintDirective || hintContent ? hint : ''\"\n [tuiHintId]=\"getHintId(index)\"\n [style.left.%]=\"getLeft(getX(index))\"\n [style.width.%]=\"getWidth(index)\"\n (mouseenter)=\"onMouseEnter(index)\"\n >\n <div\n class=\"t-line t-line_vertical\"\n [style.left.%]=\"getOffset(index)\"\n ></div>\n <div\n #hintHost\n class=\"t-host\"\n [style.left.%]=\"getOffset(index)\"\n [style.bottom.%]=\"getBottom(point[1])\"\n [tuiFocusable]=\"isFocusable\"\n [tuiDescribedBy]=\"getHintId(index)\"\n ></div>\n </div>\n <div\n *ngIf=\"isFocusable\"\n class=\"t-line t-line_horizontal\"\n [style.bottom.%]=\"getBottom(point[1])\"\n ></div>\n <ng-template #hint>\n <div\n *ngIf=\"hintDirective; else single\"\n polymorpheus-outlet\n class=\"t-text\"\n [content]=\"hintDirective.hint\"\n [context]=\"getContentContext(point, index)\"\n ></div>\n <ng-template #single>\n <div\n polymorpheus-outlet\n class=\"t-text\"\n [content]=\"hintContent\"\n [context]=\"{$implicit: point, index: index}\"\n ></div>\n </ng-template>\n </ng-template>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"getHovered(hovered) as point\">\n <div\n *ngIf=\"xStringify\"\n class=\"t-hint t-hint_x\"\n [style.left.%]=\"getLeft(point[0])\"\n >\n {{ xStringify(point[0]) }}\n </div>\n <div\n *ngIf=\"yStringify\"\n class=\"t-hint t-hint_y\"\n [style.bottom.%]=\"getBottom(point[1])\"\n >\n {{ yStringify(point[1]) }}\n </div>\n </ng-container>\n</ng-container>\n",
|
|
234
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
235
|
-
styles: [":host{display:flex;width:100%;height:100%;pointer-events:none}.t-svg{transform:scale(1,-1)}.t-column{position:absolute;top:0;height:100%;pointer-events:auto}.t-dot{position:absolute;width:.375rem;height:.375rem;border-radius:100%;background:currentColor;margin:-.1875rem;box-shadow:0 0 0 2px #fff}.t-host{position:absolute;left:50%;width:.5rem;height:.5rem;border-radius:100%;opacity:0;background:#fff;margin:-.25rem;box-shadow:0 0 0 2px currentColor,0 .0625rem .1875rem .125rem rgba(0,0,0,.1);outline:0;pointer-events:none}.t-column._hint_hovered .t-host,.t-column:hover .t-host,.t-column_hovered .t-host,.t-host:focus{opacity:1}.t-line{position:absolute;opacity:0;background:var(--tui-base-03)}.t-line_vertical{top:0;bottom:0;left:50%;width:1px}.t-line_horizontal{z-index:-1;width:100%;height:1px}:host:not([style]) .t-column._hint_hovered .t-line,:host:not([style]) .t-column._hint_hovered+.t-line,:host:not([style]) .t-column:hover .t-line,:host:not([style]) .t-column:hover+.t-line,:host[style^='z-index: 0'] .t-column_hovered .t-line,:host[style^='z-index: 0'] .t-column_hovered+.t-line{opacity:1}.t-text{white-space:pre-wrap}.t-hint{box-shadow:0 .25rem 1.5rem rgba(0,0,0,.12);position:absolute;font:var(--tui-font-text-xs);height:1.25rem;line-height:1.25rem;margin-bottom:-.625rem;padding:0 .375rem;white-space:nowrap;color:var(--tui-base-09);background:var(--tui-base-01);transform:translate3d(-50%,0,0)}.t-hint_x{bottom:0}.t-hint_y{left:0}"]
|
|
236
|
-
}),
|
|
237
|
-
__param(0, Inject(TuiIdService)),
|
|
238
|
-
__param(1, Inject(NgZone)),
|
|
239
|
-
__param(2, Inject(Location)),
|
|
240
|
-
__param(3, Optional()),
|
|
241
|
-
__param(3, Inject(TuiLineChartHintDirective))
|
|
242
|
-
], TuiLineChartComponent);
|
|
243
|
-
return TuiLineChartComponent;
|
|
244
|
-
}());
|
|
245
|
-
export { TuiLineChartComponent };
|
|
246
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluZS1jaGFydC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdGFpZ2EtdWkvYWRkb24tY2hhcnRzL2NvbXBvbmVudHMvbGluZS1jaGFydC8iLCJzb3VyY2VzIjpbImxpbmUtY2hhcnQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDekMsT0FBTyxFQUNILHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsWUFBWSxFQUNaLE1BQU0sRUFDTixLQUFLLEVBQ0wsTUFBTSxFQUNOLFFBQVEsR0FDWCxNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQUMsSUFBSSxFQUFDLE1BQU0sOEJBQThCLENBQUM7QUFDbEQsT0FBTyxFQUNILE9BQU8sRUFDUCxjQUFjLEVBQ2QsWUFBWSxFQUNaLE9BQU8sRUFDUCxnQkFBZ0IsRUFDaEIsZ0JBQWdCLEdBQ25CLE1BQU0sZUFBZSxDQUFDO0FBR3ZCLE9BQU8sRUFBYSxPQUFPLEVBQUMsTUFBTSxNQUFNLENBQUM7QUFDekM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VFeHRlcm5hbFVybCh0aGlzLmxvY2F0aW9uUmVmLnBhdGgoKSl9IyR7XG4gICAgICAgICAgICAgICAgICB0aGlzLmZpbGxJZFxuICAgICAgICAgICAgICB9KWBcbiAgICAgICAgICAgIDogYG5vbmVgO1xuICAgIH1cblxuICAgIGdldCB2aWV3Qm94KCk6IHN0cmluZyB7XG4gICAgICAgIHJldHVybiBgJHt0aGlzLnh9ICR7dGhpcy55fSAke3RoaXMud2lkdGh9ICR7dGhpcy5oZWlnaHR9YDtcbiAgICB9XG5cbiAgICBnZXQgZCgpOiBzdHJpbmcge1xuICAgICAgICByZXR1cm4gdGhpcy5nZXREKHRoaXMudmFsdWUsIHRoaXMuc21vb3RoaW5nRmFjdG9yKTtcbiAgICB9XG5cbiAgICBnZXQgZmlsbEQoKTogc3RyaW5nIHtcbiAgICAgICAgcmV0dXJuIHRoaXMudmFsdWUubGVuZ3RoXG4gICAgICAgICAgICA/IGAke3RoaXMuZH1WICR7dGhpcy55fSBIICR7dGhpcy52YWx1ZVswXVswXX0gViAke3RoaXMudmFsdWVbMF1bMV19YFxuICAgICAgICAgICAgOiB0aGlzLmQ7XG4gICAgfVxuXG4gICAgZ2V0IGlzRm9jdXNhYmxlKCk6IGJvb2xlYW4ge1xuICAgICAgICByZXR1cm4gIXRoaXMuaGludERpcmVjdGl2ZSAmJiB0aGlzLmhhc0hpbnRzO1xuICAgIH1cblxuICAgIGdldCBoYXNIaW50cygpOiBib29sZWFuIHtcbiAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICAgICEhdGhpcy54U3RyaW5naWZ5IHx8XG4gICAgICAgICAgICAhIXRoaXMueVN0cmluZ2lmeSB8fFxuICAgICAgICAgICAgISF0aGlzLmhpbnREaXJlY3RpdmU/LmhpbnQgfHxcbiAgICAgICAgICAgICEhdGhpcy5oaW50Q29udGVudFxuICAgICAgICApO1xuICAgIH1cblxuICAgIEBIb3N0TGlzdGVuZXIoYG1vdXNlbGVhdmVgKVxuICAgIG9uTW91c2VMZWF2ZSgpOiB2b2lkIHtcbiAgICAgICAgaWYgKCF0aGlzLmhpbnREaXJlY3RpdmUpIHtcbiAgICAgICAgICAgIHRoaXMub25Ib3ZlcmVkKE5hTik7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBnZXRYKGluZGV4OiBudW1iZXIpOiBudW1iZXIge1xuICAgICAgICBpZiAodGhpcy5pc1NpbmdsZVBvaW50KSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy52YWx1ZVswXVswXSAvIDI7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gaW5kZXhcbiAgICAgICAgICAgID8gKHRoaXMudmFsdWVbaW5kZXggLSAxXVswXSArIHRoaXMudmFsdWVbaW5kZXhdWzBdKSAvIDJcbiAgICAgICAgICAgIDogMiAqIHRoaXMudmFsdWVbMF1bMF0gLSB0aGlzLmdldFgoMSk7XG4gICAgfVxuXG4gICAgZ2V0V2lkdGgoaW5kZXg6IG51bWJlcik6IG51bWJlciB7XG4gICAgICAgIHJldHVybiAoMTAwICogdGhpcy5jb21wdXRlV2lkdGgoaW5kZXgpKSAvIHRoaXMud2lkdGg7XG4gICAgfVxuXG4gICAgZ2V0SGludElkKGluZGV4OiBudW1iZXIpOiBzdHJpbmcge1xuICAgICAgICByZXR1cm4gYCR7dGhpcy5hdXRvSWRTdHJpbmd9XyR7aW5kZXh9YDtcbiAgICB9XG5cbiAgICBnZXRDb250ZW50Q29udGV4dChcbiAgICAgICAgJGltcGxpY2l0OiBUdWlQb2ludCxcbiAgICAgICAgaW5kZXg6IG51bWJlcixcbiAgICApOiBUdWlMaW5lQ2hhcnRIaW50Q29udGV4dDxyZWFkb25seSBUdWlQb2ludFtdPiB7XG4gICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICB0aGlzLmhpbnREaXJlY3RpdmU/LmdldENvbnRleHQodGhpcy52YWx1ZS5pbmRleE9mKCRpbXBsaWNpdCksIHRoaXMpIHx8IHtcbiAgICAgICAgICAgICAgICAkaW1wb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BudW1iZXIpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5faG92ZXJlZCQubmV4dChpbmRleCk7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBnZXQgaXNTaW5nbGVQb2ludCgpOiBib29sZWFuIHtcbiAgICAgICAgcmV0dXJuIHRoaXMudmFsdWUubGVuZ3RoID09PSAxO1xuICAgIH1cblxuICAgIEB0dWlQdXJlXG4gICAgcHJpdmF0ZSBnZXREKHZhbHVlOiByZWFkb25seSBUdWlQb2ludFtdLCBzbW9vdGhpbmdGYWN0b3I6IG51bWJlcik6IHN0cmluZyB7XG4gICAgICAgIHJldHVybiB2YWx1ZS5yZWR1Y2UoXG4gICAgICAgICAgICAoZCwgcG9pbnQsIGluZGV4KSA9PlxuICAgICAgICAgICAgICAgIGluZGV4ID8gYCR7ZH0gJHtkcmF3KHZhbHVlLCBpbmRleCwgc21vb3RoaW5nRmFjdG9yKX1gIDogYE0gJHtwb2ludH1gLFxuICAgICAgICAgICAgYGAsXG4gICAgICAgICk7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBjb21wdXRlV2lkdGgoaW5kZXg6IG51bWJlcik6IG51bWJlciB7XG4gICAgICAgIHJldHVybiBpbmRleCA9PT0gdGhpcy52YWx1ZS5sZW5ndGggLSAxXG4gICAgICAgICAgICA/IDIgKiAodGhpcy52YWx1ZVtpbmRleF1bMF0gLSB0aGlzLmdldFgoaW5kZXgpKVxuICAgICAgICAgICAgOiB0aGlzLmdldFgoaW5kZXggKyAxKSAtIHRoaXMuZ2V0WChpbmRleCk7XG4gICAgfVxufVxuIl19
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { NgModule } from '@angular/core';
|
|
4
|
-
import { TuiFocusableModule, TuiLetModule } from '@taiga-ui/cdk';
|
|
5
|
-
import { TuiDescribedByModule, TuiHintModule } from '@taiga-ui/core';
|
|
6
|
-
import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
7
|
-
import { TuiLineChartComponent } from './line-chart.component';
|
|
8
|
-
import { TuiLineChartHintDirective } from './line-chart-hint.directive';
|
|
9
|
-
var TuiLineChartModule = /** @class */ (function () {
|
|
10
|
-
function TuiLineChartModule() {
|
|
11
|
-
}
|
|
12
|
-
TuiLineChartModule = __decorate([
|
|
13
|
-
NgModule({
|
|
14
|
-
imports: [
|
|
15
|
-
CommonModule,
|
|
16
|
-
PolymorpheusModule,
|
|
17
|
-
TuiHintModule,
|
|
18
|
-
TuiFocusableModule,
|
|
19
|
-
TuiDescribedByModule,
|
|
20
|
-
TuiLetModule,
|
|
21
|
-
],
|
|
22
|
-
declarations: [TuiLineChartComponent, TuiLineChartHintDirective],
|
|
23
|
-
exports: [TuiLineChartComponent, TuiLineChartHintDirective],
|
|
24
|
-
})
|
|
25
|
-
], TuiLineChartModule);
|
|
26
|
-
return TuiLineChartModule;
|
|
27
|
-
}());
|
|
28
|
-
export { TuiLineChartModule };
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluZS1jaGFydC5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdGFpZ2EtdWkvYWRkb24tY2hhcnRzL2NvbXBvbmVudHMvbGluZS1jaGFydC8iLCJzb3VyY2VzIjpbImxpbmUtY2hhcnQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDN0MsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN2QyxPQUFPLEVBQUMsa0JBQWtCLEVBQUUsWUFBWSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQy9ELE9BQU8sRUFBQyxvQkFBb0IsRUFBRSxhQUFhLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUNuR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b25lbnQnO1xuaW1wb3J0IHtUdWlMaW5lQ2hhcnRIaW50RGlyZWN0aXZlfSBmcm9tICcuL2xpbmUtY2hhcnQtaGludC5kaXJlY3RpdmUnO1xuXG5ATmdNb2R1bGUoe1xuICAgIGltcG9ydHM6IFtcbiAgICAgICAgQ29tbW9uTW9kdWxlLFxuICAgICAgICBQb2x5bW9ycGhldXNNb2R1bGUsXG4gICAgICAgIFR1aUhpbnRNb2R1bGUsXG4gICAgICAgIFR1aUZvY3VzYWJsZU1vZHVsZSxcbiAgICAgICAgVHVpRGVzY3JpYmVkQnlNb2R1bGUsXG4gICAgICAgIFR1aUxldE1vZHVsZSxcbiAgICBdLFxuICAgIGRlY2xhcmF0aW9uczogW1R1aUxpbmVDaGFydENvbXBvbmVudCwgVHVpTGluZUNoYXJ0SGludERpcmVjdGl2ZV0sXG4gICAgZXhwb3J0czogW1R1aUxpbmVDaGFydENvbXBvbmVudCwgVHVpTGluZUNoYXJ0SGludERpcmVjdGl2ZV0sXG59KVxuZXhwb3J0IGNsYXNzIFR1aUxpbmVDaGFydE1vZHVsZSB7fVxuIl19
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './index';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktYWRkb24tY2hhcnRzLWNvbXBvbmVudHMtbGluZS1jaGFydC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0YWlnYS11aS9hZGRvbi1jaGFydHMvY29tcG9uZW50cy9saW5lLWNoYXJ0LyIsInNvdXJjZXMiOlsidGFpZ2EtdWktYWRkb24tY2hhcnRzLWNvbXBvbmVudHMtbGluZS1jaGFydC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export * from './line-days-chart.component';
|
|
2
|
-
export * from './line-days-chart.module';
|
|
3
|
-
export * from './line-days-chart-hint.directive';
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdGFpZ2EtdWkvYWRkb24tY2hhcnRzL2NvbXBvbmVudHMvbGluZS1kYXlzLWNoYXJ0LyIsInNvdXJjZXMiOlsiaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsa0NBQWtDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpbmUtZGF5cy1jaGFydC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saW5lLWRheXMtY2hhcnQubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGluZS1kYXlzLWNoYXJ0LWhpbnQuZGlyZWN0aXZlJztcbiJdfQ==
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param, __read, __spread } from "tslib";
|
|
2
|
-
import { ContentChildren, Directive, ElementRef, forwardRef, Inject, Input, NgZone, QueryList, } from '@angular/core';
|
|
3
|
-
import { ANIMATION_FRAME } from '@ng-web-apis/common';
|
|
4
|
-
import { EMPTY_QUERY, TuiContextWithImplicit, TuiDay, tuiDefaultProp, TuiDestroyService, tuiPure, tuiZonefree, } from '@taiga-ui/cdk';
|
|
5
|
-
import { HINT_HOVERED_CLASS } from '@taiga-ui/core';
|
|
6
|
-
import { Observable } from 'rxjs';
|
|
7
|
-
import { distinctUntilChanged, filter, map, startWith, takeUntil, throttleTime, } from 'rxjs/operators';
|
|
8
|
-
import { TuiLineDaysChartComponent } from './line-days-chart.component';
|
|
9
|
-
var TuiLineDaysChartHintDirective = /** @class */ (function () {
|
|
10
|
-
function TuiLineDaysChartHintDirective(destroy$, _a, ngZone, animationFrame$) {
|
|
11
|
-
var _this = this;
|
|
12
|
-
var nativeElement = _a.nativeElement;
|
|
13
|
-
this.charts = EMPTY_QUERY;
|
|
14
|
-
this.hint = "";
|
|
15
|
-
animationFrame$
|
|
16
|
-
.pipe(throttleTime(200), map(function () { return !!nativeElement.querySelector("." + HINT_HOVERED_CLASS); }), startWith(false), distinctUntilChanged(), tuiZonefree(ngZone), filter(function (v) { return !v; }), takeUntil(destroy$))
|
|
17
|
-
.subscribe(function () {
|
|
18
|
-
_this.charts.forEach(function (chart) { return chart.onHovered(null); });
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
TuiLineDaysChartHintDirective.prototype.getContext = function (day) {
|
|
22
|
-
return this.computeContext(day, this.charts);
|
|
23
|
-
};
|
|
24
|
-
TuiLineDaysChartHintDirective.prototype.raise = function (day) {
|
|
25
|
-
var current = this.charts
|
|
26
|
-
.map(function (_a) {
|
|
27
|
-
var value = _a.value;
|
|
28
|
-
return find(value, day);
|
|
29
|
-
})
|
|
30
|
-
.filter(function (_a) {
|
|
31
|
-
var _b = __read(_a, 2), _ = _b[0], value = _b[1];
|
|
32
|
-
return !isNaN(value);
|
|
33
|
-
});
|
|
34
|
-
var sorted = __spread(current).sort(function (a, b) { return a[1] - b[1]; });
|
|
35
|
-
this.charts.forEach(function (chart, index) {
|
|
36
|
-
chart.onHovered(day);
|
|
37
|
-
chart.zIndex = Math.max(sorted.indexOf(current[index]), 0);
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
TuiLineDaysChartHintDirective.prototype.computeContext = function (day, charts) {
|
|
41
|
-
return {
|
|
42
|
-
$implicit: charts.map(function (_a) {
|
|
43
|
-
var value = _a.value;
|
|
44
|
-
return find(value, day);
|
|
45
|
-
}),
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
TuiLineDaysChartHintDirective.ctorParameters = function () { return [
|
|
49
|
-
{ type: TuiDestroyService, decorators: [{ type: Inject, args: [TuiDestroyService,] }] },
|
|
50
|
-
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
|
|
51
|
-
{ type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] },
|
|
52
|
-
{ type: Observable, decorators: [{ type: Inject, args: [ANIMATION_FRAME,] }] }
|
|
53
|
-
]; };
|
|
54
|
-
__decorate([
|
|
55
|
-
ContentChildren(forwardRef(function () { return TuiLineDaysChartComponent; }))
|
|
56
|
-
], TuiLineDaysChartHintDirective.prototype, "charts", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
Input("tuiLineChartHint"),
|
|
59
|
-
tuiDefaultProp()
|
|
60
|
-
], TuiLineDaysChartHintDirective.prototype, "hint", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
tuiPure
|
|
63
|
-
], TuiLineDaysChartHintDirective.prototype, "computeContext", null);
|
|
64
|
-
TuiLineDaysChartHintDirective = __decorate([
|
|
65
|
-
Directive({
|
|
66
|
-
selector: "[tuiLineChartHint]",
|
|
67
|
-
providers: [TuiDestroyService],
|
|
68
|
-
}),
|
|
69
|
-
__param(0, Inject(TuiDestroyService)),
|
|
70
|
-
__param(1, Inject(ElementRef)),
|
|
71
|
-
__param(2, Inject(NgZone)),
|
|
72
|
-
__param(3, Inject(ANIMATION_FRAME))
|
|
73
|
-
], TuiLineDaysChartHintDirective);
|
|
74
|
-
return TuiLineDaysChartHintDirective;
|
|
75
|
-
}());
|
|
76
|
-
export { TuiLineDaysChartHintDirective };
|
|
77
|
-
function find(value, current) {
|
|
78
|
-
return value.find(function (_a) {
|
|
79
|
-
var _b = __read(_a, 1), day = _b[0];
|
|
80
|
-
return day.da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AgICAgICAgICAgICAgICB0dWlab25lZnJlZShuZ1pvbmUpLFxuICAgICAgICAgICAgICAgIGZpbHRlcih2ID0+ICF2KSxcbiAgICAgICAgICAgICAgICB0YWtlVW50aWwoZGVzdHJveSQpLFxuICAgICAgICAgICAgKVxuICAgICAgICAgICAgLnN1YnNjcmliZSgoKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5jaGFydHMuZm9yRWFjaChjaGFydCA9PiBjaGFydC5vbkhvdmVyZWQobnVsbCkpO1xuICAgICAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgZ2V0Q29udGV4dChkYXk6IFR1aURheSk6IFR1aUNvbnRleHRXaXRoSW1wbGljaXQ8UmVhZG9ubHlBcnJheTxbVHVpRGF5LCBudW1iZXJdPj4ge1xuICAgICAgICByZXR1cm4gdGhpcy5jb21wdXRlQ29udGV4dChkYXksIHRoaXMuY2hhcnRzKTtcbiAgICB9XG5cbiAgICByYWlzZShkYXk6IFR1aURheSk6IHZvaWQge1xuICAgICAgICBjb25zdCBjdXJyZW50ID0gdGhpcy5jaGFydHNcbiAgICAgICAgICAgIC5tYXAoKHt2YWx1ZX0pID0+IGZpbmQodmFsdWUsIGRheSkpXG4gICAgICAgICAgICAuZmlsdGVyKChbXywgdmFsdWVdKSA9PiAhaXNOYU4odmFsdWUpKTtcbiAgICAgICAgY29uc3Qgc29ydGVkID0gWy4uLmN1cnJlbnRdLnNvcnQoKGEsIGIpID0+IGFbMV0gLSBiWzFdKTtcblxuICAgICAgICB0aGlzLmNoYXJ0cy5mb3JFYWNoKChjaGFydCwgaW5kZXgpID0+IHtcbiAgICAgICAgICAgIGNoYXJ0Lm9uSG92ZXJlZChkYXkpO1xuICAgICAgICAgICAgY2hhcnQuekluZGV4ID0gTWF0aC5tYXgoc29ydGVkLmluZGV4T2YoY3VycmVudFtpbmRleF0pLCAwKTtcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgQHR1aVB1cmVcbiAgICBwcml2YXRlIGNvbXB1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