@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,270 +1,382 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/addon-charts/components/line-chart'), require('@taiga-ui/cdk'), require('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/addon-charts/components/line-days-chart', ['exports', '@angular/core', '@taiga-ui/addon-charts/components/line-chart', '@taiga-ui/cdk', '@
|
|
4
|
-
(global = global || self, factory((global[
|
|
5
|
-
}(this, (function (exports,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/addon-charts/components/line-chart'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@tinkoff/ng-polymorpheus')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/addon-charts/components/line-days-chart', ['exports', '@angular/core', '@taiga-ui/addon-charts/components/line-chart', '@taiga-ui/cdk', '@taiga-ui/core', 'rxjs', 'rxjs/operators', '@angular/common', '@tinkoff/ng-polymorpheus'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"]["addon-charts"] = global["taiga-ui"]["addon-charts"] || {}, global["taiga-ui"]["addon-charts"].components = global["taiga-ui"]["addon-charts"].components || {}, global["taiga-ui"]["addon-charts"].components["line-days-chart"] = {}), global.ng.core, global["taiga-ui"]["addon-charts"].components["line-chart"], global.i1, global.i3, global.rxjs, global.rxjs.operators, global.ng.common, global.i4));
|
|
5
|
+
})(this, (function (exports, i0, i1$1, i1, i3, i2, operators, i2$1, i4) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
if (
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
var
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
27
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
28
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
29
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
30
|
+
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
31
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
32
|
+
|
|
33
|
+
/******************************************************************************
|
|
34
|
+
Copyright (c) Microsoft Corporation.
|
|
35
|
+
|
|
36
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
37
|
+
purpose with or without fee is hereby granted.
|
|
38
|
+
|
|
39
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
40
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
41
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
42
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
43
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
44
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
45
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
46
|
+
***************************************************************************** */
|
|
47
|
+
/* global Reflect, Promise */
|
|
48
|
+
var extendStatics = function (d, b) {
|
|
49
|
+
extendStatics = Object.setPrototypeOf ||
|
|
50
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
51
|
+
function (d, b) { for (var p in b)
|
|
52
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
53
|
+
d[p] = b[p]; };
|
|
54
|
+
return extendStatics(d, b);
|
|
55
|
+
};
|
|
56
|
+
function __extends(d, b) {
|
|
57
|
+
if (typeof b !== "function" && b !== null)
|
|
58
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
59
|
+
extendStatics(d, b);
|
|
60
|
+
function __() { this.constructor = d; }
|
|
61
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
62
|
+
}
|
|
63
|
+
var __assign = function () {
|
|
64
|
+
__assign = Object.assign || function __assign(t) {
|
|
65
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
66
|
+
s = arguments[i];
|
|
67
|
+
for (var p in s)
|
|
68
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
69
|
+
t[p] = s[p];
|
|
70
|
+
}
|
|
71
|
+
return t;
|
|
72
|
+
};
|
|
73
|
+
return __assign.apply(this, arguments);
|
|
74
|
+
};
|
|
75
|
+
function __rest(s, e) {
|
|
76
|
+
var t = {};
|
|
77
|
+
for (var p in s)
|
|
78
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
79
|
+
t[p] = s[p];
|
|
80
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
81
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
82
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
83
|
+
t[p[i]] = s[p[i]];
|
|
84
|
+
}
|
|
85
|
+
return t;
|
|
86
|
+
}
|
|
87
|
+
function __decorate(decorators, target, key, desc) {
|
|
88
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
89
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
90
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
91
|
+
else
|
|
92
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
93
|
+
if (d = decorators[i])
|
|
94
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
95
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
96
|
+
}
|
|
97
|
+
function __param(paramIndex, decorator) {
|
|
98
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
99
|
+
}
|
|
100
|
+
function __metadata(metadataKey, metadataValue) {
|
|
101
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
102
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
103
|
+
}
|
|
104
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
105
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
106
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
107
|
+
function fulfilled(value) { try {
|
|
108
|
+
step(generator.next(value));
|
|
109
|
+
}
|
|
110
|
+
catch (e) {
|
|
111
|
+
reject(e);
|
|
112
|
+
} }
|
|
113
|
+
function rejected(value) { try {
|
|
114
|
+
step(generator["throw"](value));
|
|
115
|
+
}
|
|
116
|
+
catch (e) {
|
|
117
|
+
reject(e);
|
|
118
|
+
} }
|
|
119
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
120
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function __generator(thisArg, body) {
|
|
124
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
125
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
126
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
127
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
128
|
+
function step(op) {
|
|
129
|
+
if (f)
|
|
130
|
+
throw new TypeError("Generator is already executing.");
|
|
131
|
+
while (_)
|
|
132
|
+
try {
|
|
133
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
134
|
+
return t;
|
|
135
|
+
if (y = 0, t)
|
|
136
|
+
op = [op[0] & 2, t.value];
|
|
137
|
+
switch (op[0]) {
|
|
138
|
+
case 0:
|
|
139
|
+
case 1:
|
|
140
|
+
t = op;
|
|
141
|
+
break;
|
|
142
|
+
case 4:
|
|
143
|
+
_.label++;
|
|
144
|
+
return { value: op[1], done: false };
|
|
145
|
+
case 5:
|
|
146
|
+
_.label++;
|
|
147
|
+
y = op[1];
|
|
148
|
+
op = [0];
|
|
149
|
+
continue;
|
|
150
|
+
case 7:
|
|
151
|
+
op = _.ops.pop();
|
|
152
|
+
_.trys.pop();
|
|
153
|
+
continue;
|
|
154
|
+
default:
|
|
155
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
156
|
+
_ = 0;
|
|
157
|
+
continue;
|
|
158
|
+
}
|
|
159
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
160
|
+
_.label = op[1];
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
164
|
+
_.label = t[1];
|
|
165
|
+
t = op;
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
if (t && _.label < t[2]) {
|
|
169
|
+
_.label = t[2];
|
|
170
|
+
_.ops.push(op);
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
if (t[2])
|
|
174
|
+
_.ops.pop();
|
|
175
|
+
_.trys.pop();
|
|
176
|
+
continue;
|
|
177
|
+
}
|
|
178
|
+
op = body.call(thisArg, _);
|
|
179
|
+
}
|
|
180
|
+
catch (e) {
|
|
181
|
+
op = [6, e];
|
|
182
|
+
y = 0;
|
|
183
|
+
}
|
|
184
|
+
finally {
|
|
185
|
+
f = t = 0;
|
|
186
|
+
}
|
|
187
|
+
if (op[0] & 5)
|
|
188
|
+
throw op[1];
|
|
189
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
193
|
+
if (k2 === undefined)
|
|
194
|
+
k2 = k;
|
|
195
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
196
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
197
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
198
|
+
}
|
|
199
|
+
Object.defineProperty(o, k2, desc);
|
|
200
|
+
}) : (function (o, m, k, k2) {
|
|
201
|
+
if (k2 === undefined)
|
|
202
|
+
k2 = k;
|
|
203
|
+
o[k2] = m[k];
|
|
204
|
+
});
|
|
205
|
+
function __exportStar(m, o) {
|
|
206
|
+
for (var p in m)
|
|
207
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
208
|
+
__createBinding(o, m, p);
|
|
209
|
+
}
|
|
210
|
+
function __values(o) {
|
|
211
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
212
|
+
if (m)
|
|
213
|
+
return m.call(o);
|
|
214
|
+
if (o && typeof o.length === "number")
|
|
215
|
+
return {
|
|
216
|
+
next: function () {
|
|
217
|
+
if (o && i >= o.length)
|
|
218
|
+
o = void 0;
|
|
219
|
+
return { value: o && o[i++], done: !o };
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
223
|
+
}
|
|
224
|
+
function __read(o, n) {
|
|
225
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
226
|
+
if (!m)
|
|
227
|
+
return o;
|
|
228
|
+
var i = m.call(o), r, ar = [], e;
|
|
229
|
+
try {
|
|
230
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
231
|
+
ar.push(r.value);
|
|
232
|
+
}
|
|
233
|
+
catch (error) {
|
|
234
|
+
e = { error: error };
|
|
235
|
+
}
|
|
236
|
+
finally {
|
|
237
|
+
try {
|
|
238
|
+
if (r && !r.done && (m = i["return"]))
|
|
239
|
+
m.call(i);
|
|
240
|
+
}
|
|
241
|
+
finally {
|
|
242
|
+
if (e)
|
|
243
|
+
throw e.error;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
return ar;
|
|
247
|
+
}
|
|
248
|
+
/** @deprecated */
|
|
249
|
+
function __spread() {
|
|
250
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
251
|
+
ar = ar.concat(__read(arguments[i]));
|
|
252
|
+
return ar;
|
|
253
|
+
}
|
|
254
|
+
/** @deprecated */
|
|
255
|
+
function __spreadArrays() {
|
|
256
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
257
|
+
s += arguments[i].length;
|
|
258
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
259
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
260
|
+
r[k] = a[j];
|
|
261
|
+
return r;
|
|
262
|
+
}
|
|
263
|
+
function __spreadArray(to, from, pack) {
|
|
264
|
+
if (pack || arguments.length === 2)
|
|
265
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
266
|
+
if (ar || !(i in from)) {
|
|
267
|
+
if (!ar)
|
|
268
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
269
|
+
ar[i] = from[i];
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
273
|
+
}
|
|
274
|
+
function __await(v) {
|
|
275
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
276
|
+
}
|
|
277
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
278
|
+
if (!Symbol.asyncIterator)
|
|
279
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
280
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
281
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
282
|
+
function verb(n) { if (g[n])
|
|
283
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
284
|
+
function resume(n, v) { try {
|
|
285
|
+
step(g[n](v));
|
|
286
|
+
}
|
|
287
|
+
catch (e) {
|
|
288
|
+
settle(q[0][3], e);
|
|
289
|
+
} }
|
|
290
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
291
|
+
function fulfill(value) { resume("next", value); }
|
|
292
|
+
function reject(value) { resume("throw", value); }
|
|
293
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
294
|
+
resume(q[0][0], q[0][1]); }
|
|
295
|
+
}
|
|
296
|
+
function __asyncDelegator(o) {
|
|
297
|
+
var i, p;
|
|
298
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
299
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
300
|
+
}
|
|
301
|
+
function __asyncValues(o) {
|
|
302
|
+
if (!Symbol.asyncIterator)
|
|
303
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
304
|
+
var m = o[Symbol.asyncIterator], i;
|
|
305
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
306
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
307
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
308
|
+
}
|
|
309
|
+
function __makeTemplateObject(cooked, raw) {
|
|
310
|
+
if (Object.defineProperty) {
|
|
311
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
312
|
+
}
|
|
313
|
+
else {
|
|
314
|
+
cooked.raw = raw;
|
|
315
|
+
}
|
|
316
|
+
return cooked;
|
|
317
|
+
}
|
|
318
|
+
;
|
|
319
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
320
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
321
|
+
}) : function (o, v) {
|
|
322
|
+
o["default"] = v;
|
|
323
|
+
};
|
|
324
|
+
function __importStar(mod) {
|
|
325
|
+
if (mod && mod.__esModule)
|
|
326
|
+
return mod;
|
|
327
|
+
var result = {};
|
|
328
|
+
if (mod != null)
|
|
329
|
+
for (var k in mod)
|
|
330
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
331
|
+
__createBinding(result, mod, k);
|
|
332
|
+
__setModuleDefault(result, mod);
|
|
333
|
+
return result;
|
|
334
|
+
}
|
|
335
|
+
function __importDefault(mod) {
|
|
336
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
337
|
+
}
|
|
338
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
339
|
+
if (kind === "a" && !f)
|
|
340
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
341
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
342
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
343
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
344
|
+
}
|
|
345
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
346
|
+
if (kind === "m")
|
|
347
|
+
throw new TypeError("Private method is not writable");
|
|
348
|
+
if (kind === "a" && !f)
|
|
349
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
350
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
351
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
352
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
353
|
+
}
|
|
354
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
355
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
356
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
357
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
254
358
|
}
|
|
255
359
|
|
|
360
|
+
// TODO: Consider extending TuiLineChartHintDirective
|
|
256
361
|
var TuiLineDaysChartHintDirective = /** @class */ (function () {
|
|
257
|
-
function TuiLineDaysChartHintDirective(destroy$,
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
this.
|
|
362
|
+
function TuiLineDaysChartHintDirective(destroy$, ngZone, hovered$) {
|
|
363
|
+
this.destroy$ = destroy$;
|
|
364
|
+
this.ngZone = ngZone;
|
|
365
|
+
this.hovered$ = hovered$;
|
|
366
|
+
this.charts = i1.EMPTY_QUERY;
|
|
261
367
|
this.hint = "";
|
|
262
|
-
|
|
263
|
-
|
|
368
|
+
}
|
|
369
|
+
TuiLineDaysChartHintDirective.prototype.ngAfterContentInit = function () {
|
|
370
|
+
var _this = this;
|
|
371
|
+
i2.combineLatest([i1$1.tuiLineChartDrivers(this.charts), this.hovered$])
|
|
372
|
+
.pipe(operators.map(function (_a) {
|
|
373
|
+
var _b = __read(_a, 2), drivers = _b[0], hovered = _b[1];
|
|
374
|
+
return !drivers && !hovered;
|
|
375
|
+
}), operators.filter(Boolean), i1.tuiZonefree(this.ngZone), operators.takeUntil(this.destroy$))
|
|
264
376
|
.subscribe(function () {
|
|
265
|
-
_this.charts.forEach(function (chart) { return chart.onHovered(
|
|
377
|
+
_this.charts.forEach(function (chart) { return chart.onHovered(NaN); });
|
|
266
378
|
});
|
|
267
|
-
}
|
|
379
|
+
};
|
|
268
380
|
TuiLineDaysChartHintDirective.prototype.getContext = function (day) {
|
|
269
381
|
return this.computeContext(day, this.charts);
|
|
270
382
|
};
|
|
@@ -278,7 +390,7 @@
|
|
|
278
390
|
var _b = __read(_a, 2), _ = _b[0], value = _b[1];
|
|
279
391
|
return !isNaN(value);
|
|
280
392
|
});
|
|
281
|
-
var sorted =
|
|
393
|
+
var sorted = __spreadArray([], __read(current)).sort(function (a, b) { return a[1] - b[1]; });
|
|
282
394
|
this.charts.forEach(function (chart, index) {
|
|
283
395
|
chart.onHovered(day);
|
|
284
396
|
chart.zIndex = Math.max(sorted.indexOf(current[index]), 0);
|
|
@@ -292,34 +404,40 @@
|
|
|
292
404
|
}),
|
|
293
405
|
};
|
|
294
406
|
};
|
|
295
|
-
TuiLineDaysChartHintDirective.ctorParameters = function () { return [
|
|
296
|
-
{ type: cdk.TuiDestroyService, decorators: [{ type: core.Inject, args: [cdk.TuiDestroyService,] }] },
|
|
297
|
-
{ type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
|
|
298
|
-
{ type: core.NgZone, decorators: [{ type: core.Inject, args: [core.NgZone,] }] },
|
|
299
|
-
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [common.ANIMATION_FRAME,] }] }
|
|
300
|
-
]; };
|
|
301
|
-
__decorate([
|
|
302
|
-
core.ContentChildren(core.forwardRef(function () { return TuiLineDaysChartComponent; }))
|
|
303
|
-
], TuiLineDaysChartHintDirective.prototype, "charts", void 0);
|
|
304
|
-
__decorate([
|
|
305
|
-
core.Input("tuiLineChartHint"),
|
|
306
|
-
cdk.tuiDefaultProp()
|
|
307
|
-
], TuiLineDaysChartHintDirective.prototype, "hint", void 0);
|
|
308
|
-
__decorate([
|
|
309
|
-
cdk.tuiPure
|
|
310
|
-
], TuiLineDaysChartHintDirective.prototype, "computeContext", null);
|
|
311
|
-
TuiLineDaysChartHintDirective = __decorate([
|
|
312
|
-
core.Directive({
|
|
313
|
-
selector: "[tuiLineChartHint]",
|
|
314
|
-
providers: [cdk.TuiDestroyService],
|
|
315
|
-
}),
|
|
316
|
-
__param(0, core.Inject(cdk.TuiDestroyService)),
|
|
317
|
-
__param(1, core.Inject(core.ElementRef)),
|
|
318
|
-
__param(2, core.Inject(core.NgZone)),
|
|
319
|
-
__param(3, core.Inject(common.ANIMATION_FRAME))
|
|
320
|
-
], TuiLineDaysChartHintDirective);
|
|
321
407
|
return TuiLineDaysChartHintDirective;
|
|
322
408
|
}());
|
|
409
|
+
TuiLineDaysChartHintDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiLineDaysChartHintDirective, deps: [{ token: i1.TuiDestroyService }, { token: i0.NgZone }, { token: i1.TuiHoveredService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
410
|
+
TuiLineDaysChartHintDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiLineDaysChartHintDirective, selector: "[tuiLineChartHint]", inputs: { hint: ["tuiLineChartHint", "hint"] }, providers: [i1.TuiDestroyService, i1.TuiHoveredService], queries: [{ propertyName: "charts", predicate: i0__namespace.forwardRef(function () { return TuiLineDaysChartComponent; }) }], ngImport: i0__namespace });
|
|
411
|
+
__decorate([
|
|
412
|
+
i1.tuiDefaultProp()
|
|
413
|
+
], TuiLineDaysChartHintDirective.prototype, "hint", void 0);
|
|
414
|
+
__decorate([
|
|
415
|
+
i1.tuiPure
|
|
416
|
+
], TuiLineDaysChartHintDirective.prototype, "computeContext", null);
|
|
417
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiLineDaysChartHintDirective, decorators: [{
|
|
418
|
+
type: i0.Directive,
|
|
419
|
+
args: [{
|
|
420
|
+
selector: "[tuiLineChartHint]",
|
|
421
|
+
providers: [i1.TuiDestroyService, i1.TuiHoveredService],
|
|
422
|
+
}]
|
|
423
|
+
}], ctorParameters: function () {
|
|
424
|
+
return [{ type: i1__namespace.TuiDestroyService, decorators: [{
|
|
425
|
+
type: i0.Inject,
|
|
426
|
+
args: [i1.TuiDestroyService]
|
|
427
|
+
}] }, { type: i0__namespace.NgZone, decorators: [{
|
|
428
|
+
type: i0.Inject,
|
|
429
|
+
args: [i0.NgZone]
|
|
430
|
+
}] }, { type: i2__namespace.Observable, decorators: [{
|
|
431
|
+
type: i0.Inject,
|
|
432
|
+
args: [i1.TuiHoveredService]
|
|
433
|
+
}] }];
|
|
434
|
+
}, propDecorators: { charts: [{
|
|
435
|
+
type: i0.ContentChildren,
|
|
436
|
+
args: [i0.forwardRef(function () { return TuiLineDaysChartComponent; })]
|
|
437
|
+
}], hint: [{
|
|
438
|
+
type: i0.Input,
|
|
439
|
+
args: ["tuiLineChartHint"]
|
|
440
|
+
}], computeContext: [] } });
|
|
323
441
|
function find(value, current) {
|
|
324
442
|
return value.find(function (_a) {
|
|
325
443
|
var _b = __read(_a, 1), day = _b[0];
|
|
@@ -332,7 +450,8 @@
|
|
|
332
450
|
function TuiLineDaysChartComponent(hintDirective) {
|
|
333
451
|
var _this = this;
|
|
334
452
|
this.hintDirective = hintDirective;
|
|
335
|
-
this.charts =
|
|
453
|
+
this.charts = i1.EMPTY_QUERY;
|
|
454
|
+
this.drivers = i1.EMPTY_QUERY;
|
|
336
455
|
this.y = 0;
|
|
337
456
|
this.height = 0;
|
|
338
457
|
this.smoothingFactor = 0;
|
|
@@ -342,11 +461,8 @@
|
|
|
342
461
|
this.dots = false;
|
|
343
462
|
this.zIndex = 0;
|
|
344
463
|
this.value = [];
|
|
345
|
-
this.daysStringify = function (index) {
|
|
346
|
-
return _this.xStringify ? _this.xStringify(_this.getMonth(index)) : "";
|
|
347
|
-
};
|
|
464
|
+
this.daysStringify = function (index) { return _this.xStringify ? _this.xStringify(_this.getMonth(index)) : ""; };
|
|
348
465
|
}
|
|
349
|
-
TuiLineDaysChartComponent_1 = TuiLineDaysChartComponent;
|
|
350
466
|
Object.defineProperty(TuiLineDaysChartComponent.prototype, "valueSetter", {
|
|
351
467
|
set: function (value) {
|
|
352
468
|
if (!value.length) {
|
|
@@ -354,8 +470,8 @@
|
|
|
354
470
|
return;
|
|
355
471
|
}
|
|
356
472
|
var start = value[0][0];
|
|
357
|
-
var mutable =
|
|
358
|
-
var length =
|
|
473
|
+
var mutable = __spreadArray([], __read(value));
|
|
474
|
+
var length = i1.TuiDay.lengthBetween(start, value[value.length - 1][0]) + 1;
|
|
359
475
|
this.value = Array.from({ length: length }, function (_, day) {
|
|
360
476
|
var currentDay = start.append({ day: day });
|
|
361
477
|
var shifted = currentDay.daySame(mutable[0][0]) ? mutable.shift() : null;
|
|
@@ -363,28 +479,28 @@
|
|
|
363
479
|
return [currentDay, currentValue];
|
|
364
480
|
});
|
|
365
481
|
},
|
|
366
|
-
enumerable:
|
|
482
|
+
enumerable: false,
|
|
367
483
|
configurable: true
|
|
368
484
|
});
|
|
369
485
|
Object.defineProperty(TuiLineDaysChartComponent.prototype, "months", {
|
|
370
486
|
get: function () {
|
|
371
|
-
return this.value.length ? this.breakMonths(this.value) :
|
|
487
|
+
return this.value.length ? this.breakMonths(this.value) : i1.EMPTY_ARRAY;
|
|
372
488
|
},
|
|
373
|
-
enumerable:
|
|
489
|
+
enumerable: false,
|
|
374
490
|
configurable: true
|
|
375
491
|
});
|
|
376
492
|
Object.defineProperty(TuiLineDaysChartComponent.prototype, "firstWidth", {
|
|
377
493
|
get: function () {
|
|
378
494
|
return this.months.length * this.value[0][0].daysCount;
|
|
379
495
|
},
|
|
380
|
-
enumerable:
|
|
496
|
+
enumerable: false,
|
|
381
497
|
configurable: true
|
|
382
498
|
});
|
|
383
499
|
Object.defineProperty(TuiLineDaysChartComponent.prototype, "hint", {
|
|
384
500
|
get: function () {
|
|
385
501
|
return this.hintDirective ? this.hintDirective.hint : this.hintContent;
|
|
386
502
|
},
|
|
387
|
-
enumerable:
|
|
503
|
+
enumerable: false,
|
|
388
504
|
configurable: true
|
|
389
505
|
});
|
|
390
506
|
TuiLineDaysChartComponent.prototype.getHintContext = function (x, value) {
|
|
@@ -394,23 +510,21 @@
|
|
|
394
510
|
};
|
|
395
511
|
TuiLineDaysChartComponent.prototype.getX = function (index) {
|
|
396
512
|
var current = this.getMonth(index);
|
|
397
|
-
var months =
|
|
513
|
+
var months = i1.TuiMonth.lengthBetween(this.value[0][0], current);
|
|
398
514
|
var offset = months * current.daysCount;
|
|
399
515
|
return index - offset;
|
|
400
516
|
};
|
|
401
517
|
TuiLineDaysChartComponent.prototype.onHovered = function (day) {
|
|
402
|
-
if (
|
|
518
|
+
if (i1.tuiIsNumber(day)) {
|
|
403
519
|
this.charts.forEach(function (chart) { return chart.onHovered(NaN); });
|
|
404
520
|
return;
|
|
405
521
|
}
|
|
406
|
-
var index =
|
|
407
|
-
var x =
|
|
408
|
-
var
|
|
409
|
-
|
|
410
|
-
var value = current.value;
|
|
411
|
-
array.forEach(function (chart) {
|
|
522
|
+
var index = i1.TuiMonth.lengthBetween(this.value[0][0], day);
|
|
523
|
+
var x = i1.TuiDay.lengthBetween(this.value[0][0], day) + this.value[0][0].day - 1;
|
|
524
|
+
var current = this.charts.get(index);
|
|
525
|
+
this.charts.forEach(function (chart) {
|
|
412
526
|
if (chart === current) {
|
|
413
|
-
current.onHovered(value.findIndex(function (point) { return point[0] === x; }));
|
|
527
|
+
current.onHovered(current.value.findIndex(function (point) { return point[0] === x; }));
|
|
414
528
|
}
|
|
415
529
|
else {
|
|
416
530
|
chart.onHovered(NaN);
|
|
@@ -440,103 +554,141 @@
|
|
|
440
554
|
};
|
|
441
555
|
TuiLineDaysChartComponent.prototype.breakMonths = function (value) {
|
|
442
556
|
var offset = value[0][0].day - 1;
|
|
443
|
-
return Array.from({ length:
|
|
444
|
-
.map(function (absoluteMonth) {
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
return month + year * 12 === absoluteMonth ? [index + offset, y] : null;
|
|
449
|
-
})
|
|
450
|
-
.filter(cdk.isPresent);
|
|
557
|
+
return Array.from({ length: i1.TuiMonth.lengthBetween(value[0][0], value[value.length - 1][0]) + 1 }, function (_, i) { return i + value[0][0].month + value[0][0].year * 12; })
|
|
558
|
+
.map(function (absoluteMonth) { return value
|
|
559
|
+
.map(function (_a, index) {
|
|
560
|
+
var _b = __read(_a, 2), _c = _b[0], month = _c.month, year = _c.year, y = _b[1];
|
|
561
|
+
return month + year * 12 === absoluteMonth ? [index + offset, y] : null;
|
|
451
562
|
})
|
|
452
|
-
.
|
|
453
|
-
return index === array.length - 1
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
});
|
|
563
|
+
.filter(i1.tuiIsPresent); })
|
|
564
|
+
.map(function (month, index, array) { return index === array.length - 1
|
|
565
|
+
? month
|
|
566
|
+
: __spreadArray(__spreadArray([], __read(month)), [array[index + 1].find(function (day) { return !isNaN(day[1]); }) || DUMMY]); });
|
|
457
567
|
};
|
|
458
568
|
TuiLineDaysChartComponent.prototype.getMonth = function (index) {
|
|
459
569
|
return this.value[index - this.value[0][0].day + 1][0];
|
|
460
570
|
};
|
|
461
|
-
var TuiLineDaysChartComponent_1;
|
|
462
|
-
TuiLineDaysChartComponent.ctorParameters = function () { return [
|
|
463
|
-
{ type: TuiLineDaysChartHintDirective, decorators: [{ type: core.Optional }, { type: core.Inject, args: [TuiLineDaysChartHintDirective,] }] }
|
|
464
|
-
]; };
|
|
465
|
-
__decorate([
|
|
466
|
-
core.ViewChildren(lineChart.TuiLineChartComponent)
|
|
467
|
-
], TuiLineDaysChartComponent.prototype, "charts", void 0);
|
|
468
|
-
__decorate([
|
|
469
|
-
core.Input("value"),
|
|
470
|
-
cdk.tuiDefaultProp()
|
|
471
|
-
], TuiLineDaysChartComponent.prototype, "valueSetter", null);
|
|
472
|
-
__decorate([
|
|
473
|
-
core.Input(),
|
|
474
|
-
cdk.tuiDefaultProp()
|
|
475
|
-
], TuiLineDaysChartComponent.prototype, "y", void 0);
|
|
476
|
-
__decorate([
|
|
477
|
-
core.Input(),
|
|
478
|
-
cdk.tuiDefaultProp()
|
|
479
|
-
], TuiLineDaysChartComponent.prototype, "height", void 0);
|
|
480
|
-
__decorate([
|
|
481
|
-
core.Input(),
|
|
482
|
-
cdk.tuiDefaultProp()
|
|
483
|
-
], TuiLineDaysChartComponent.prototype, "smoothingFactor", void 0);
|
|
484
|
-
__decorate([
|
|
485
|
-
core.Input(),
|
|
486
|
-
cdk.tuiDefaultProp()
|
|
487
|
-
], TuiLineDaysChartComponent.prototype, "hintContent", void 0);
|
|
488
|
-
__decorate([
|
|
489
|
-
core.Input(),
|
|
490
|
-
cdk.tuiDefaultProp()
|
|
491
|
-
], TuiLineDaysChartComponent.prototype, "xStringify", void 0);
|
|
492
|
-
__decorate([
|
|
493
|
-
core.Input(),
|
|
494
|
-
cdk.tuiDefaultProp()
|
|
495
|
-
], TuiLineDaysChartComponent.prototype, "yStringify", void 0);
|
|
496
|
-
__decorate([
|
|
497
|
-
core.Input(),
|
|
498
|
-
cdk.tuiDefaultProp()
|
|
499
|
-
], TuiLineDaysChartComponent.prototype, "dots", void 0);
|
|
500
|
-
__decorate([
|
|
501
|
-
core.HostBinding("style.zIndex")
|
|
502
|
-
], TuiLineDaysChartComponent.prototype, "zIndex", void 0);
|
|
503
|
-
__decorate([
|
|
504
|
-
cdk.tuiPure
|
|
505
|
-
], TuiLineDaysChartComponent.prototype, "getHintContext", null);
|
|
506
|
-
__decorate([
|
|
507
|
-
cdk.tuiPure
|
|
508
|
-
], TuiLineDaysChartComponent.prototype, "breakMonths", null);
|
|
509
|
-
TuiLineDaysChartComponent = TuiLineDaysChartComponent_1 = __decorate([
|
|
510
|
-
core.Component({
|
|
511
|
-
selector: "tui-line-days-chart",
|
|
512
|
-
template: "<tui-line-chart\n *ngFor=\"let month of months; let first = first\"\n class=\"t-chart\"\n [style.zIndex]=\"zIndex\"\n [dots]=\"dots\"\n [x]=\"first ? 0 : getX(month[0][0])\"\n [y]=\"y\"\n [width]=\"first ? firstWidth : getWidth(month[0][0])\"\n [height]=\"height\"\n [value]=\"month\"\n [smoothingFactor]=\"smoothingFactor\"\n [hintContent]=\"hintContent ? hint : ''\"\n [yStringify]=\"yStringify\"\n [xStringify]=\"xStringify ? daysStringify : null\"\n></tui-line-chart>\n<ng-template\n #hint\n let-point\n>\n <div\n polymorpheus-outlet\n [content]=\"hintContent\"\n [context]=\"getHintContext(point[0], value)\"\n ></div>\n</ng-template>\n",
|
|
513
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
514
|
-
providers: [
|
|
515
|
-
{
|
|
516
|
-
provide: lineChart.TuiLineChartHintDirective,
|
|
517
|
-
useExisting: core.forwardRef(function () { return TuiLineDaysChartComponent_1; }),
|
|
518
|
-
},
|
|
519
|
-
],
|
|
520
|
-
styles: [":host{display:block}.t-chart{position:absolute;top:0;left:0;width:100%;height:100%}"]
|
|
521
|
-
}),
|
|
522
|
-
__param(0, core.Optional()),
|
|
523
|
-
__param(0, core.Inject(TuiLineDaysChartHintDirective))
|
|
524
|
-
], TuiLineDaysChartComponent);
|
|
525
571
|
return TuiLineDaysChartComponent;
|
|
526
572
|
}());
|
|
573
|
+
TuiLineDaysChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiLineDaysChartComponent, deps: [{ token: TuiLineDaysChartHintDirective, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
574
|
+
TuiLineDaysChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiLineDaysChartComponent, selector: "tui-line-days-chart", inputs: { valueSetter: ["value", "valueSetter"], y: "y", height: "height", smoothingFactor: "smoothingFactor", hintContent: "hintContent", xStringify: "xStringify", yStringify: "yStringify", dots: "dots" }, host: { properties: { "style.zIndex": "this.zIndex" } }, providers: [
|
|
575
|
+
{
|
|
576
|
+
provide: i1$1.TuiLineChartHintDirective,
|
|
577
|
+
useExisting: TuiLineDaysChartComponent,
|
|
578
|
+
},
|
|
579
|
+
], viewQueries: [{ propertyName: "charts", predicate: i1$1.TuiLineChartComponent, descendants: true }, { propertyName: "drivers", predicate: i3.TuiDriver, descendants: true }], ngImport: i0__namespace, template: "<tui-line-chart\n *ngFor=\"let month of months; let first = first\"\n class=\"t-chart\"\n [style.zIndex]=\"zIndex\"\n [dots]=\"dots\"\n [x]=\"first ? 0 : getX(month[0][0])\"\n [y]=\"y\"\n [width]=\"first ? firstWidth : getWidth(month[0][0])\"\n [height]=\"height\"\n [value]=\"month\"\n [smoothingFactor]=\"smoothingFactor\"\n [tuiHintContent]=\"hintContent ? hint : ''\"\n [yStringify]=\"yStringify\"\n [xStringify]=\"xStringify ? daysStringify : null\"\n></tui-line-chart>\n<ng-template\n #hint\n let-point\n>\n <ng-container *polymorpheusOutlet=\"hintContent as text; context: getHintContext(point[0], value)\">\n {{ text }}\n </ng-container>\n</ng-template>\n", styles: [":host{display:block}.t-chart{position:absolute;top:0;left:0;width:100%;height:100%}\n"], components: [{ type: i1__namespace$1.TuiLineChartComponent, selector: "tui-line-chart", inputs: ["value", "x", "y", "width", "height", "smoothingFactor", "xStringify", "yStringify", "filled", "dots"] }], directives: [{ type: i2__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.TuiHintControllerDirective, selector: "[tuiHintContent]", inputs: ["tuiHintContent", "tuiHintDirection", "tuiHintAppearance", "tuiHintShowDelay", "tuiHintHideDelay"] }, { type: i4__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
580
|
+
__decorate([
|
|
581
|
+
i1.tuiDefaultProp()
|
|
582
|
+
], TuiLineDaysChartComponent.prototype, "valueSetter", null);
|
|
583
|
+
__decorate([
|
|
584
|
+
i1.tuiDefaultProp()
|
|
585
|
+
], TuiLineDaysChartComponent.prototype, "y", void 0);
|
|
586
|
+
__decorate([
|
|
587
|
+
i1.tuiDefaultProp()
|
|
588
|
+
], TuiLineDaysChartComponent.prototype, "height", void 0);
|
|
589
|
+
__decorate([
|
|
590
|
+
i1.tuiDefaultProp()
|
|
591
|
+
], TuiLineDaysChartComponent.prototype, "smoothingFactor", void 0);
|
|
592
|
+
__decorate([
|
|
593
|
+
i1.tuiDefaultProp()
|
|
594
|
+
], TuiLineDaysChartComponent.prototype, "hintContent", void 0);
|
|
595
|
+
__decorate([
|
|
596
|
+
i1.tuiDefaultProp()
|
|
597
|
+
], TuiLineDaysChartComponent.prototype, "xStringify", void 0);
|
|
598
|
+
__decorate([
|
|
599
|
+
i1.tuiDefaultProp()
|
|
600
|
+
], TuiLineDaysChartComponent.prototype, "yStringify", void 0);
|
|
601
|
+
__decorate([
|
|
602
|
+
i1.tuiDefaultProp()
|
|
603
|
+
], TuiLineDaysChartComponent.prototype, "dots", void 0);
|
|
604
|
+
__decorate([
|
|
605
|
+
i1.tuiPure
|
|
606
|
+
], TuiLineDaysChartComponent.prototype, "getHintContext", null);
|
|
607
|
+
__decorate([
|
|
608
|
+
i1.tuiPure
|
|
609
|
+
], TuiLineDaysChartComponent.prototype, "breakMonths", null);
|
|
610
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiLineDaysChartComponent, decorators: [{
|
|
611
|
+
type: i0.Component,
|
|
612
|
+
args: [{
|
|
613
|
+
selector: "tui-line-days-chart",
|
|
614
|
+
templateUrl: "./line-days-chart.template.html",
|
|
615
|
+
styleUrls: ["./line-days-chart.style.less"],
|
|
616
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
617
|
+
providers: [
|
|
618
|
+
{
|
|
619
|
+
provide: i1$1.TuiLineChartHintDirective,
|
|
620
|
+
useExisting: TuiLineDaysChartComponent,
|
|
621
|
+
},
|
|
622
|
+
],
|
|
623
|
+
}]
|
|
624
|
+
}], ctorParameters: function () {
|
|
625
|
+
return [{ type: TuiLineDaysChartHintDirective, decorators: [{
|
|
626
|
+
type: i0.Optional
|
|
627
|
+
}, {
|
|
628
|
+
type: i0.Inject,
|
|
629
|
+
args: [TuiLineDaysChartHintDirective]
|
|
630
|
+
}] }];
|
|
631
|
+
}, propDecorators: { charts: [{
|
|
632
|
+
type: i0.ViewChildren,
|
|
633
|
+
args: [i1$1.TuiLineChartComponent]
|
|
634
|
+
}], drivers: [{
|
|
635
|
+
type: i0.ViewChildren,
|
|
636
|
+
args: [i3.TuiDriver]
|
|
637
|
+
}], valueSetter: [{
|
|
638
|
+
type: i0.Input,
|
|
639
|
+
args: ["value"]
|
|
640
|
+
}], y: [{
|
|
641
|
+
type: i0.Input
|
|
642
|
+
}], height: [{
|
|
643
|
+
type: i0.Input
|
|
644
|
+
}], smoothingFactor: [{
|
|
645
|
+
type: i0.Input
|
|
646
|
+
}], hintContent: [{
|
|
647
|
+
type: i0.Input
|
|
648
|
+
}], xStringify: [{
|
|
649
|
+
type: i0.Input
|
|
650
|
+
}], yStringify: [{
|
|
651
|
+
type: i0.Input
|
|
652
|
+
}], dots: [{
|
|
653
|
+
type: i0.Input
|
|
654
|
+
}], zIndex: [{
|
|
655
|
+
type: i0.HostBinding,
|
|
656
|
+
args: ["style.zIndex"]
|
|
657
|
+
}], getHintContext: [], breakMonths: [] } });
|
|
527
658
|
|
|
528
659
|
var TuiLineDaysChartModule = /** @class */ (function () {
|
|
529
660
|
function TuiLineDaysChartModule() {
|
|
530
661
|
}
|
|
531
|
-
TuiLineDaysChartModule = __decorate([
|
|
532
|
-
core.NgModule({
|
|
533
|
-
imports: [common$1.CommonModule, lineChart.TuiLineChartModule, ngPolymorpheus.PolymorpheusModule],
|
|
534
|
-
declarations: [TuiLineDaysChartComponent, TuiLineDaysChartHintDirective],
|
|
535
|
-
exports: [TuiLineDaysChartComponent, TuiLineDaysChartHintDirective],
|
|
536
|
-
})
|
|
537
|
-
], TuiLineDaysChartModule);
|
|
538
662
|
return TuiLineDaysChartModule;
|
|
539
663
|
}());
|
|
664
|
+
TuiLineDaysChartModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiLineDaysChartModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
665
|
+
TuiLineDaysChartModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiLineDaysChartModule, declarations: [TuiLineDaysChartComponent, TuiLineDaysChartHintDirective], imports: [i2$1.CommonModule,
|
|
666
|
+
i1$1.TuiLineChartModule,
|
|
667
|
+
i4.PolymorpheusModule,
|
|
668
|
+
i3.TuiHintControllerModule], exports: [TuiLineDaysChartComponent, TuiLineDaysChartHintDirective] });
|
|
669
|
+
TuiLineDaysChartModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiLineDaysChartModule, imports: [[
|
|
670
|
+
i2$1.CommonModule,
|
|
671
|
+
i1$1.TuiLineChartModule,
|
|
672
|
+
i4.PolymorpheusModule,
|
|
673
|
+
i3.TuiHintControllerModule,
|
|
674
|
+
]] });
|
|
675
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiLineDaysChartModule, decorators: [{
|
|
676
|
+
type: i0.NgModule,
|
|
677
|
+
args: [{
|
|
678
|
+
imports: [
|
|
679
|
+
i2$1.CommonModule,
|
|
680
|
+
i1$1.TuiLineChartModule,
|
|
681
|
+
i4.PolymorpheusModule,
|
|
682
|
+
i3.TuiHintControllerModule,
|
|
683
|
+
],
|
|
684
|
+
declarations: [TuiLineDaysChartComponent, TuiLineDaysChartHintDirective],
|
|
685
|
+
exports: [TuiLineDaysChartComponent, TuiLineDaysChartHintDirective],
|
|
686
|
+
}]
|
|
687
|
+
}] });
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* Generated bundle index. Do not edit.
|
|
691
|
+
*/
|
|
540
692
|
|
|
541
693
|
exports.TuiLineDaysChartComponent = TuiLineDaysChartComponent;
|
|
542
694
|
exports.TuiLineDaysChartHintDirective = TuiLineDaysChartHintDirective;
|
|
@@ -544,5 +696,5 @@
|
|
|
544
696
|
|
|
545
697
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
546
698
|
|
|
547
|
-
}))
|
|
699
|
+
}));
|
|
548
700
|
//# sourceMappingURL=taiga-ui-addon-charts-components-line-days-chart.umd.js.map
|