@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
|
@@ -8,4 +8,4 @@ export * from '@taiga-ui/addon-charts/components/line-chart';
|
|
|
8
8
|
export * from '@taiga-ui/addon-charts/components/line-days-chart';
|
|
9
9
|
export * from '@taiga-ui/addon-charts/components/pie-chart';
|
|
10
10
|
export * from '@taiga-ui/addon-charts/components/ring-chart';
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi1jaGFydHMvY29tcG9uZW50cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDZDQUE2QyxDQUFDO0FBQzVELGNBQWMsd0NBQXdDLENBQUM7QUFDdkQsY0FBYyx1Q0FBdUMsQ0FBQztBQUN0RCxjQUFjLDZDQUE2QyxDQUFDO0FBQzVELGNBQWMsMkNBQTJDLENBQUM7QUFDMUQsY0FBYywrQ0FBK0MsQ0FBQztBQUM5RCxjQUFjLDhDQUE4QyxDQUFDO0FBQzdELGNBQWMsbURBQW1ELENBQUM7QUFDbEUsY0FBYyw2Q0FBNkMsQ0FBQztBQUM1RCxjQUFjLDhDQUE4QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnQHRhaWdhLXVpL2FkZG9uLWNoYXJ0cy9jb21wb25lbnRzL2FyYy1jaGFydCc7XG5leHBvcnQgKiBmcm9tICdAdGFpZ2EtdWkvYWRkb24tY2hhcnRzL2NvbXBvbmVudHMvYXhlcyc7XG5leHBvcnQgKiBmcm9tICdAdGFpZ2EtdWkvYWRkb24tY2hhcnRzL2NvbXBvbmVudHMvYmFyJztcbmV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9hZGRvbi1jaGFydHMvY29tcG9uZW50cy9iYXItY2hhcnQnO1xuZXhwb3J0ICogZnJvbSAnQHRhaWdhLXVpL2FkZG9uLWNoYXJ0cy9jb21wb25lbnRzL2Jhci1zZXQnO1xuZXhwb3J0ICogZnJvbSAnQHRhaWdhLXVpL2FkZG9uLWNoYXJ0cy9jb21wb25lbnRzL2xlZ2VuZC1pdGVtJztcbmV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9hZGRvbi1jaGFydHMvY29tcG9uZW50cy9saW5lLWNoYXJ0JztcbmV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9hZGRvbi1jaGFydHMvY29tcG9uZW50cy9saW5lLWRheXMtY2hhcnQnO1xuZXhwb3J0ICogZnJvbSAnQHRhaWdhLXVpL2FkZG9uLWNoYXJ0cy9jb21wb25lbnRzL3BpZS1jaGFydCc7XG5leHBvcnQgKiBmcm9tICdAdGFpZ2EtdWkvYWRkb24tY2hhcnRzL2NvbXBvbmVudHMvcmluZy1jaGFydCc7XG4iXX0=
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export * from './legend-item.component';
|
|
2
2
|
export * from './legend-item.module';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi1jaGFydHMvY29tcG9uZW50cy9sZWdlbmQtaXRlbS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsc0JBQXNCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xlZ2VuZC1pdGVtLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xlZ2VuZC1pdGVtLm1vZHVsZSc7XG4iXX0=
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { ChangeDetectionStrategy, Component, HostBinding, Input } from '@angular/core';
|
|
3
3
|
import { tuiDefaultProp } from '@taiga-ui/cdk';
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@taiga-ui/core";
|
|
6
|
+
export class TuiLegendItemComponent {
|
|
7
7
|
constructor() {
|
|
8
8
|
this.active = false;
|
|
9
9
|
this.color = ``;
|
|
@@ -12,43 +12,49 @@ let TuiLegendItemComponent = class TuiLegendItemComponent {
|
|
|
12
12
|
this.disabled = false;
|
|
13
13
|
}
|
|
14
14
|
get computedColor() {
|
|
15
|
-
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
return this.color.startsWith(`var(`) ? this.color : colorFallback(this.color);
|
|
15
|
+
return this.color === `var(--tui-primary)` ? null : this.color;
|
|
19
16
|
}
|
|
20
|
-
}
|
|
17
|
+
}
|
|
18
|
+
TuiLegendItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLegendItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
+
TuiLegendItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiLegendItemComponent, selector: "tui-legend-item", inputs: { active: "active", color: "color", text: "text", size: "size", disabled: "disabled" }, host: { properties: { "attr.data-size": "this.size", "class._disabled": "this.disabled", "style.--tui-primary": "this.computedColor" } }, ngImport: i0, template: "<button\n tuiButton\n type=\"button\"\n size=\"s\"\n appearance=\"whiteblock\"\n class=\"t-button\"\n [pseudoHover]=\"active || null\"\n>\n <div class=\"t-wrapper\">\n <ng-content select=\"tui-primitive-checkbox\"></ng-content>\n <span\n class=\"t-dot\"\n [style.backgroundColor]=\"color || 'var(--tui-primary)'\"\n ></span>\n <span class=\"t-text\">{{ text }}</span>\n <ng-content></ng-content>\n </div>\n</button>\n", styles: [":host{display:inline-block}.t-button{height:2rem;font-weight:bold}:host[data-size=m] .t-button{height:2.25rem;font:var(--tui-font-text-m);font-weight:bold}.t-wrapper{display:flex;align-items:center;pointer-events:none}:host._disabled .t-wrapper{color:var(--tui-text-03)}.t-dot{width:.5rem;height:.5rem;border-radius:100%}:host._disabled .t-dot{background:var(--tui-base-04)}.t-dot:not(:first-child){display:none}.t-text{margin:0 .5rem;font-weight:normal}\n"], components: [{ type: i1.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
21
20
|
__decorate([
|
|
22
|
-
Input(),
|
|
23
21
|
tuiDefaultProp()
|
|
24
22
|
], TuiLegendItemComponent.prototype, "active", void 0);
|
|
25
23
|
__decorate([
|
|
26
|
-
Input(),
|
|
27
24
|
tuiDefaultProp()
|
|
28
25
|
], TuiLegendItemComponent.prototype, "color", void 0);
|
|
29
26
|
__decorate([
|
|
30
|
-
Input(),
|
|
31
27
|
tuiDefaultProp()
|
|
32
28
|
], TuiLegendItemComponent.prototype, "text", void 0);
|
|
33
29
|
__decorate([
|
|
34
|
-
Input(),
|
|
35
|
-
HostBinding(`attr.data-size`),
|
|
36
30
|
tuiDefaultProp()
|
|
37
31
|
], TuiLegendItemComponent.prototype, "size", void 0);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
],
|
|
53
|
-
|
|
54
|
-
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLegendItemComponent, decorators: [{
|
|
33
|
+
type: Component,
|
|
34
|
+
args: [{
|
|
35
|
+
selector: `tui-legend-item`,
|
|
36
|
+
templateUrl: `./legend-item.template.html`,
|
|
37
|
+
styleUrls: [`./legend-item.style.less`],
|
|
38
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
39
|
+
}]
|
|
40
|
+
}], propDecorators: { active: [{
|
|
41
|
+
type: Input
|
|
42
|
+
}], color: [{
|
|
43
|
+
type: Input
|
|
44
|
+
}], text: [{
|
|
45
|
+
type: Input
|
|
46
|
+
}], size: [{
|
|
47
|
+
type: Input
|
|
48
|
+
}, {
|
|
49
|
+
type: HostBinding,
|
|
50
|
+
args: [`attr.data-size`]
|
|
51
|
+
}], disabled: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}, {
|
|
54
|
+
type: HostBinding,
|
|
55
|
+
args: [`class._disabled`]
|
|
56
|
+
}], computedColor: [{
|
|
57
|
+
type: HostBinding,
|
|
58
|
+
args: [`style.--tui-primary`]
|
|
59
|
+
}] } });
|
|
60
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGVnZW5kLWl0ZW0uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWRkb24tY2hhcn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DxzcGFuIGNsYXNzPVwidC10ZXh0XCI+e3sgdGV4dCB9fTwvc3Bhbj5cbiAgICAgICAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuICAgIDwvZGl2PlxuPC9idXR0b24+XG4iXX0=
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
1
|
import { CommonModule } from '@angular/common';
|
|
3
2
|
import { NgModule } from '@angular/core';
|
|
4
3
|
import { TuiButtonModule } from '@taiga-ui/core';
|
|
5
4
|
import { TuiLegendItemComponent } from './legend-item.component';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class TuiLegendItemModule {
|
|
7
|
+
}
|
|
8
|
+
TuiLegendItemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLegendItemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9
|
+
TuiLegendItemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLegendItemModule, declarations: [TuiLegendItemComponent], imports: [CommonModule, TuiButtonModule], exports: [TuiLegendItemComponent] });
|
|
10
|
+
TuiLegendItemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLegendItemModule, imports: [[CommonModule, TuiButtonModule]] });
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLegendItemModule, decorators: [{
|
|
12
|
+
type: NgModule,
|
|
13
|
+
args: [{
|
|
14
|
+
imports: [CommonModule, TuiButtonModule],
|
|
15
|
+
declarations: [TuiLegendItemComponent],
|
|
16
|
+
exports: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mcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7VHVpQnV0dG9uTW9kdWxlfSBmcm9tICdAdGFpZ2EtdWkvY29yZSc7XG5cbmltcG9ydCB7VHVpTGVnZW5kSXRlbUNvbXBvbmVudH0gZnJvbSAnLi9sZWdlbmQtaXRlbS5jb21wb25lbnQnO1xuXG5ATmdNb2R1bGUoe1xuICAgIGltcG9ydHM6IFtDb21tb25Nb2R1bGUsIFR1aUJ1dHRvbk1vZHVsZV0sXG4gICAgZGVjbGFyYXRpb25zOiBbVHVpTGVnZW5kSXRlbUNvbXBvbmVudF0sXG4gICAgZXhwb3J0czogW1R1aUxlZ2VuZEl0ZW1Db21wb25lbnRdLFxufSlcbmV4cG9ydCBjbGFzcyBUdWlMZWdlbmRJdGVtTW9kdWxlIHt9XG4iXX0=
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './index';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktYWRkb24tY2hhcnRzLWNvbXBvbmVudHMtbGVnZW5kLWl0ZW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi1jaGFydHMvY29tcG9uZW50cy9sZWdlbmQtaXRlbS90YWlnYS11aS1hZGRvbi1jaGFydHMtY29tcG9uZW50cy1sZWdlbmQtaXRlbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './line-chart.component';
|
|
2
2
|
export * from './line-chart.module';
|
|
3
3
|
export * from './line-chart-hint.directive';
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi1jaGFydHMvY29tcG9uZW50cy9saW5lLWNoYXJ0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyxxQkFBcUIsQ0FBQztBQUNwQyxjQUFjLDZCQUE2QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9saW5lLWNoYXJ0LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpbmUtY2hhcnQubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGluZS1jaGFydC1oaW50LmRpcmVjdGl2ZSc7XG4iXX0=
|
|
@@ -1,19 +1,25 @@
|
|
|
1
|
-
import { __decorate
|
|
2
|
-
import { ContentChildren, Directive, ElementRef, forwardRef, Inject, Input, NgZone,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Observable } from 'rxjs';
|
|
7
|
-
import { distinctUntilChanged, filter, map, startWith, takeUntil, throttleTime, } from 'rxjs/operators';
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { ContentChildren, Directive, ElementRef, forwardRef, Inject, Input, NgZone, Renderer2, } from '@angular/core';
|
|
3
|
+
import { EMPTY_QUERY, tuiDefaultProp, TuiDestroyService, TuiHoveredService, tuiPure, tuiZonefree, } from '@taiga-ui/cdk';
|
|
4
|
+
import { combineLatest } from 'rxjs';
|
|
5
|
+
import { distinctUntilChanged, filter, map, startWith, takeUntil } from 'rxjs/operators';
|
|
8
6
|
import { TuiLineChartComponent } from './line-chart.component';
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@taiga-ui/cdk";
|
|
9
|
+
import * as i2 from "rxjs";
|
|
10
|
+
export class TuiLineChartHintDirective {
|
|
11
|
+
constructor(renderer, destroy$, ngZone, hovered$) {
|
|
11
12
|
this.renderer = renderer;
|
|
13
|
+
this.destroy$ = destroy$;
|
|
14
|
+
this.ngZone = ngZone;
|
|
15
|
+
this.hovered$ = hovered$;
|
|
12
16
|
this.charts = EMPTY_QUERY;
|
|
13
17
|
this.chartsRef = EMPTY_QUERY;
|
|
14
18
|
this.hint = ``;
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
}
|
|
20
|
+
ngAfterContentInit() {
|
|
21
|
+
combineLatest([tuiLineChartDrivers(this.charts), this.hovered$])
|
|
22
|
+
.pipe(map(([drivers, hovered]) => !drivers && !hovered), filter(Boolean), tuiZonefree(this.ngZone), takeUntil(this.destroy$))
|
|
17
23
|
.subscribe(() => {
|
|
18
24
|
this.charts.forEach(chart => chart.onHovered(NaN));
|
|
19
25
|
});
|
|
@@ -35,37 +41,46 @@ let TuiLineChartHintDirective = class TuiLineChartHintDirective {
|
|
|
35
41
|
index,
|
|
36
42
|
};
|
|
37
43
|
}
|
|
38
|
-
}
|
|
39
|
-
TuiLineChartHintDirective
|
|
40
|
-
|
|
41
|
-
{ type: TuiDestroyService, decorators: [{ type: Inject, args: [TuiDestroyService,] }] },
|
|
42
|
-
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
|
|
43
|
-
{ type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] },
|
|
44
|
-
{ type: Observable, decorators: [{ type: Inject, args: [ANIMATION_FRAME,] }] }
|
|
45
|
-
];
|
|
46
|
-
__decorate([
|
|
47
|
-
ContentChildren(forwardRef(() => TuiLineChartComponent))
|
|
48
|
-
], TuiLineChartHintDirective.prototype, "charts", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
ContentChildren(forwardRef(() => TuiLineChartComponent), { read: ElementRef })
|
|
51
|
-
], TuiLineChartHintDirective.prototype, "chartsRef", void 0);
|
|
44
|
+
}
|
|
45
|
+
TuiLineChartHintDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLineChartHintDirective, deps: [{ token: Renderer2 }, { token: TuiDestroyService }, { token: NgZone }, { token: TuiHoveredService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
46
|
+
TuiLineChartHintDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiLineChartHintDirective, selector: "[tuiLineChartHint]", inputs: { hint: ["tuiLineChartHint", "hint"] }, providers: [TuiDestroyService, TuiHoveredService], queries: [{ propertyName: "charts", predicate: i0.forwardRef(function () { return TuiLineChartComponent; }) }, { propertyName: "chartsRef", predicate: i0.forwardRef(function () { return TuiLineChartComponent; }), read: ElementRef }], ngImport: i0 });
|
|
52
47
|
__decorate([
|
|
53
|
-
Input(`tuiLineChartHint`),
|
|
54
48
|
tuiDefaultProp()
|
|
55
49
|
], TuiLineChartHintDirective.prototype, "hint", void 0);
|
|
56
50
|
__decorate([
|
|
57
51
|
tuiPure
|
|
58
52
|
], TuiLineChartHintDirective.prototype, "computeContext", null);
|
|
59
|
-
TuiLineChartHintDirective
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiLineChartHintDirective, decorators: [{
|
|
54
|
+
type: Directive,
|
|
55
|
+
args: [{
|
|
56
|
+
selector: `[tuiLineChartHint]`,
|
|
57
|
+
providers: [TuiDestroyService, TuiHoveredService],
|
|
58
|
+
}]
|
|
59
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2, decorators: [{
|
|
60
|
+
type: Inject,
|
|
61
|
+
args: [Renderer2]
|
|
62
|
+
}] }, { type: i1.TuiDestroyService, decorators: [{
|
|
63
|
+
type: Inject,
|
|
64
|
+
args: [TuiDestroyService]
|
|
65
|
+
}] }, { type: i0.NgZone, decorators: [{
|
|
66
|
+
type: Inject,
|
|
67
|
+
args: [NgZone]
|
|
68
|
+
}] }, { type: i2.Observable, decorators: [{
|
|
69
|
+
type: Inject,
|
|
70
|
+
args: [TuiHoveredService]
|
|
71
|
+
}] }]; }, propDecorators: { charts: [{
|
|
72
|
+
type: ContentChildren,
|
|
73
|
+
args: [forwardRef(() => TuiLineChartComponent)]
|
|
74
|
+
}], chartsRef: [{
|
|
75
|
+
type: ContentChildren,
|
|
76
|
+
args: [forwardRef(() => TuiLineChartComponent), { read: ElementRef }]
|
|
77
|
+
}], hint: [{
|
|
78
|
+
type: Input,
|
|
79
|
+
args: [`tuiLineChartHint`]
|
|
80
|
+
}], computeContext: [] } });
|
|
81
|
+
export function tuiLineChartDrivers(charts) {
|
|
82
|
+
return combineLatest(charts
|
|
83
|
+
.map(({ drivers }) => drivers.map(driver => driver.pipe(startWith(false))))
|
|
84
|
+
.reduce((acc, drivers) => acc.concat(drivers), [])).pipe(map(values => values.some(Boolean)), distinctUntilChanged());
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluZS1jaGFydC1oaW50LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FkZG9uLWNoYXJ0cy9jb21wb25lbnRzL2xpbmUtY2hhcnQvbGluZS1jaGFydC1oaW50LmRpcmVjdGl2Z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