@taiga-ui/addon-charts 3.58.0 → 3.59.0-canary.10da730
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/components/arc-chart/arc-chart.component.d.ts +1 -1
- package/components/axes/axes.component.d.ts +1 -1
- package/components/bar/bar.component.d.ts +1 -1
- package/components/bar-chart/bar-chart.component.d.ts +1 -1
- package/components/bar-set/bar-set.component.d.ts +1 -1
- package/components/legend-item/legend-item.component.d.ts +1 -1
- package/components/line-chart/line-chart-hint.directive.d.ts +1 -1
- package/components/line-chart/line-chart.component.d.ts +1 -1
- package/components/line-days-chart/line-days-chart-hint.directive.d.ts +1 -1
- package/components/line-days-chart/line-days-chart.component.d.ts +1 -1
- package/components/pie-chart/pie-chart.component.d.ts +1 -1
- package/components/pie-chart/pie-chart.directive.d.ts +1 -1
- package/components/ring-chart/ring-chart.component.d.ts +1 -1
- package/esm2020/components/arc-chart/arc-chart.component.mjs +117 -0
- package/{esm2015/components/arc-chart/arc-chart.module.js → esm2020/components/arc-chart/arc-chart.module.mjs} +5 -5
- package/esm2020/components/axes/axes.component.mjs +83 -0
- package/{esm2015/components/axes/axes.module.js → esm2020/components/axes/axes.module.mjs} +5 -5
- package/{esm2015/components/bar/bar.component.js → esm2020/components/bar/bar.component.mjs} +5 -10
- package/{esm2015/components/bar/bar.module.js → esm2020/components/bar/bar.module.mjs} +5 -5
- package/esm2020/components/bar-chart/bar-chart.component.mjs +75 -0
- package/{esm2015/components/bar-chart/bar-chart.module.js → esm2020/components/bar-chart/bar-chart.module.mjs} +9 -11
- package/esm2020/components/bar-set/bar-set.component.mjs +52 -0
- package/{esm2015/components/bar-set/bar-set.module.js → esm2020/components/bar-set/bar-set.module.mjs} +5 -5
- package/esm2020/components/legend-item/legend-item.component.mjs +41 -0
- package/{esm2015/components/legend-item/legend-item.module.js → esm2020/components/legend-item/legend-item.module.mjs} +5 -5
- package/esm2020/components/line-chart/line-chart-hint.directive.mjs +78 -0
- package/esm2020/components/line-chart/line-chart.component.mjs +188 -0
- package/{esm2015/components/line-chart/line-chart.module.js → esm2020/components/line-chart/line-chart.module.mjs} +9 -11
- package/esm2020/components/line-days-chart/line-days-chart-hint.directive.mjs +77 -0
- package/{esm2015/components/line-days-chart/line-days-chart.component.js → esm2020/components/line-days-chart/line-days-chart.component.mjs} +28 -36
- package/{esm2015/components/line-days-chart/line-days-chart.module.js → esm2020/components/line-days-chart/line-days-chart.module.mjs} +5 -5
- package/esm2020/components/pie-chart/pie-chart.component.mjs +129 -0
- package/esm2020/components/pie-chart/pie-chart.directive.mjs +61 -0
- package/{esm2015/components/pie-chart/pie-chart.module.js → esm2020/components/pie-chart/pie-chart.module.mjs} +9 -11
- package/esm2020/components/ring-chart/ring-chart.component.mjs +39 -0
- package/{esm2015/components/ring-chart/ring-chart.module.js → esm2020/components/ring-chart/ring-chart.module.mjs} +5 -5
- package/{esm2015/utils/line-length.js → esm2020/utils/line-length.mjs} +2 -2
- package/fesm2015/taiga-ui-addon-charts-components-arc-chart.mjs +140 -0
- package/fesm2015/taiga-ui-addon-charts-components-arc-chart.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-charts-components-axes.mjs +107 -0
- package/fesm2015/taiga-ui-addon-charts-components-axes.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-charts-components-bar-chart.mjs +115 -0
- package/fesm2015/taiga-ui-addon-charts-components-bar-chart.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-charts-components-bar-set.js → taiga-ui-addon-charts-components-bar-set.mjs} +12 -17
- package/fesm2015/taiga-ui-addon-charts-components-bar-set.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-charts-components-bar.js → taiga-ui-addon-charts-components-bar.mjs} +9 -14
- package/fesm2015/taiga-ui-addon-charts-components-bar.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-charts-components-legend-item.js → taiga-ui-addon-charts-components-legend-item.mjs} +9 -14
- package/fesm2015/taiga-ui-addon-charts-components-legend-item.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-charts-components-line-chart.mjs +310 -0
- package/fesm2015/taiga-ui-addon-charts-components-line-chart.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-charts-components-line-days-chart.mjs +290 -0
- package/fesm2015/taiga-ui-addon-charts-components-line-days-chart.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-charts-components-pie-chart.mjs +227 -0
- package/fesm2015/taiga-ui-addon-charts-components-pie-chart.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-charts-components-ring-chart.js → taiga-ui-addon-charts-components-ring-chart.mjs} +9 -14
- package/fesm2015/taiga-ui-addon-charts-components-ring-chart.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-charts-components.js → taiga-ui-addon-charts-components.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-charts-components.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-charts-constants.js → taiga-ui-addon-charts-constants.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-charts-constants.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-charts-interfaces.mjs +4 -0
- package/fesm2015/taiga-ui-addon-charts-interfaces.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-charts-types.mjs +4 -0
- package/fesm2015/taiga-ui-addon-charts-types.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-charts-utils.js → taiga-ui-addon-charts-utils.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-charts-utils.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-charts.js → taiga-ui-addon-charts.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-charts.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-charts-components-arc-chart.js → fesm2020/taiga-ui-addon-charts-components-arc-chart.mjs} +13 -19
- package/fesm2020/taiga-ui-addon-charts-components-arc-chart.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-charts-components-axes.js → fesm2020/taiga-ui-addon-charts-components-axes.mjs} +13 -20
- package/fesm2020/taiga-ui-addon-charts-components-axes.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-charts-components-bar-chart.js → fesm2020/taiga-ui-addon-charts-components-bar-chart.mjs} +21 -30
- package/fesm2020/taiga-ui-addon-charts-components-bar-chart.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-charts-components-bar-set.mjs +75 -0
- package/fesm2020/taiga-ui-addon-charts-components-bar-set.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-charts-components-bar.mjs +59 -0
- package/fesm2020/taiga-ui-addon-charts-components-bar.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-charts-components-legend-item.mjs +64 -0
- package/fesm2020/taiga-ui-addon-charts-components-legend-item.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-charts-components-line-chart.js → fesm2020/taiga-ui-addon-charts-components-line-chart.mjs} +29 -41
- package/fesm2020/taiga-ui-addon-charts-components-line-chart.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-charts-components-line-days-chart.js → fesm2020/taiga-ui-addon-charts-components-line-days-chart.mjs} +36 -44
- package/fesm2020/taiga-ui-addon-charts-components-line-days-chart.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-charts-components-pie-chart.js → fesm2020/taiga-ui-addon-charts-components-pie-chart.mjs} +24 -34
- package/fesm2020/taiga-ui-addon-charts-components-pie-chart.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-charts-components-ring-chart.mjs +63 -0
- package/fesm2020/taiga-ui-addon-charts-components-ring-chart.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-charts-components.mjs +15 -0
- package/fesm2020/taiga-ui-addon-charts-components.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-charts-constants.mjs +11 -0
- package/fesm2020/taiga-ui-addon-charts-constants.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-charts-interfaces.mjs +4 -0
- package/fesm2020/taiga-ui-addon-charts-interfaces.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-charts-types.mjs +4 -0
- package/fesm2020/taiga-ui-addon-charts-types.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-charts-utils.mjs +87 -0
- package/fesm2020/taiga-ui-addon-charts-utils.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-charts.mjs +9 -0
- package/fesm2020/taiga-ui-addon-charts.mjs.map +1 -0
- package/package.json +165 -32
- package/types/line-handler.d.ts +1 -1
- package/types/line-type.d.ts +1 -1
- package/bundles/taiga-ui-addon-charts-components-arc-chart.umd.js +0 -508
- package/bundles/taiga-ui-addon-charts-components-arc-chart.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-components-axes.umd.js +0 -158
- package/bundles/taiga-ui-addon-charts-components-axes.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-components-bar-chart.umd.js +0 -477
- package/bundles/taiga-ui-addon-charts-components-bar-chart.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-components-bar-set.umd.js +0 -438
- package/bundles/taiga-ui-addon-charts-components-bar-set.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-components-bar.umd.js +0 -411
- package/bundles/taiga-ui-addon-charts-components-bar.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-components-legend-item.umd.js +0 -103
- package/bundles/taiga-ui-addon-charts-components-legend-item.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-components-line-chart.umd.js +0 -726
- package/bundles/taiga-ui-addon-charts-components-line-chart.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-components-line-days-chart.umd.js +0 -685
- package/bundles/taiga-ui-addon-charts-components-line-days-chart.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-components-pie-chart.umd.js +0 -611
- package/bundles/taiga-ui-addon-charts-components-pie-chart.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-components-ring-chart.umd.js +0 -97
- package/bundles/taiga-ui-addon-charts-components-ring-chart.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-components.umd.js +0 -75
- package/bundles/taiga-ui-addon-charts-components.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-constants.umd.js +0 -24
- package/bundles/taiga-ui-addon-charts-constants.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-interfaces.umd.js +0 -11
- package/bundles/taiga-ui-addon-charts-interfaces.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-types.umd.js +0 -11
- package/bundles/taiga-ui-addon-charts-types.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-charts-utils.umd.js +0 -422
- package/bundles/taiga-ui-addon-charts-utils.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-charts.umd.js +0 -39
- package/bundles/taiga-ui-addon-charts.umd.js.map +0 -1
- package/components/arc-chart/package.json +0 -10
- package/components/arc-chart/taiga-ui-addon-charts-components-arc-chart.d.ts +0 -5
- package/components/axes/package.json +0 -10
- package/components/axes/taiga-ui-addon-charts-components-axes.d.ts +0 -5
- package/components/bar/package.json +0 -10
- package/components/bar/taiga-ui-addon-charts-components-bar.d.ts +0 -5
- package/components/bar-chart/package.json +0 -10
- package/components/bar-chart/taiga-ui-addon-charts-components-bar-chart.d.ts +0 -5
- package/components/bar-set/package.json +0 -10
- package/components/bar-set/taiga-ui-addon-charts-components-bar-set.d.ts +0 -5
- package/components/legend-item/package.json +0 -10
- package/components/legend-item/taiga-ui-addon-charts-components-legend-item.d.ts +0 -5
- package/components/line-chart/package.json +0 -10
- package/components/line-chart/taiga-ui-addon-charts-components-line-chart.d.ts +0 -5
- package/components/line-days-chart/package.json +0 -10
- package/components/line-days-chart/taiga-ui-addon-charts-components-line-days-chart.d.ts +0 -5
- package/components/package.json +0 -10
- package/components/pie-chart/package.json +0 -10
- package/components/pie-chart/taiga-ui-addon-charts-components-pie-chart.d.ts +0 -5
- package/components/ring-chart/package.json +0 -10
- package/components/ring-chart/taiga-ui-addon-charts-components-ring-chart.d.ts +0 -5
- package/components/taiga-ui-addon-charts-components.d.ts +0 -5
- package/constants/package.json +0 -10
- package/constants/taiga-ui-addon-charts-constants.d.ts +0 -5
- package/esm2015/components/arc-chart/arc-chart.component.js +0 -123
- package/esm2015/components/axes/axes.component.js +0 -90
- package/esm2015/components/bar-chart/bar-chart.component.js +0 -82
- package/esm2015/components/bar-set/bar-set.component.js +0 -57
- package/esm2015/components/legend-item/legend-item.component.js +0 -46
- package/esm2015/components/line-chart/line-chart-hint.directive.js +0 -79
- package/esm2015/components/line-chart/line-chart.component.js +0 -198
- package/esm2015/components/line-days-chart/line-days-chart-hint.directive.js +0 -78
- package/esm2015/components/pie-chart/pie-chart.component.js +0 -136
- package/esm2015/components/pie-chart/pie-chart.directive.js +0 -62
- package/esm2015/components/ring-chart/ring-chart.component.js +0 -44
- package/fesm2015/taiga-ui-addon-charts-components-arc-chart.js.map +0 -1
- package/fesm2015/taiga-ui-addon-charts-components-axes.js.map +0 -1
- package/fesm2015/taiga-ui-addon-charts-components-bar-chart.js.map +0 -1
- package/fesm2015/taiga-ui-addon-charts-components-bar-set.js.map +0 -1
- package/fesm2015/taiga-ui-addon-charts-components-bar.js.map +0 -1
- package/fesm2015/taiga-ui-addon-charts-components-legend-item.js.map +0 -1
- package/fesm2015/taiga-ui-addon-charts-components-line-chart.js.map +0 -1
- package/fesm2015/taiga-ui-addon-charts-components-line-days-chart.js.map +0 -1
- package/fesm2015/taiga-ui-addon-charts-components-pie-chart.js.map +0 -1
- package/fesm2015/taiga-ui-addon-charts-components-ring-chart.js.map +0 -1
- package/fesm2015/taiga-ui-addon-charts-components.js.map +0 -1
- package/fesm2015/taiga-ui-addon-charts-constants.js.map +0 -1
- package/fesm2015/taiga-ui-addon-charts-interfaces.js +0 -4
- package/fesm2015/taiga-ui-addon-charts-interfaces.js.map +0 -1
- package/fesm2015/taiga-ui-addon-charts-types.js +0 -4
- package/fesm2015/taiga-ui-addon-charts-types.js.map +0 -1
- package/fesm2015/taiga-ui-addon-charts-utils.js.map +0 -1
- package/fesm2015/taiga-ui-addon-charts.js.map +0 -1
- package/interfaces/package.json +0 -10
- package/interfaces/taiga-ui-addon-charts-interfaces.d.ts +0 -5
- package/taiga-ui-addon-charts.d.ts +0 -5
- package/types/package.json +0 -10
- package/types/taiga-ui-addon-charts-types.d.ts +0 -5
- package/utils/package.json +0 -10
- package/utils/taiga-ui-addon-charts-utils.d.ts +0 -5
- /package/{esm2015/components/arc-chart/index.js → esm2020/components/arc-chart/index.mjs} +0 -0
- /package/{esm2015/components/arc-chart/taiga-ui-addon-charts-components-arc-chart.js → esm2020/components/arc-chart/taiga-ui-addon-charts-components-arc-chart.mjs} +0 -0
- /package/{esm2015/components/axes/index.js → esm2020/components/axes/index.mjs} +0 -0
- /package/{esm2015/components/axes/taiga-ui-addon-charts-components-axes.js → esm2020/components/axes/taiga-ui-addon-charts-components-axes.mjs} +0 -0
- /package/{esm2015/components/bar/index.js → esm2020/components/bar/index.mjs} +0 -0
- /package/{esm2015/components/bar/taiga-ui-addon-charts-components-bar.js → esm2020/components/bar/taiga-ui-addon-charts-components-bar.mjs} +0 -0
- /package/{esm2015/components/bar-chart/index.js → esm2020/components/bar-chart/index.mjs} +0 -0
- /package/{esm2015/components/bar-chart/taiga-ui-addon-charts-components-bar-chart.js → esm2020/components/bar-chart/taiga-ui-addon-charts-components-bar-chart.mjs} +0 -0
- /package/{esm2015/components/bar-set/index.js → esm2020/components/bar-set/index.mjs} +0 -0
- /package/{esm2015/components/bar-set/taiga-ui-addon-charts-components-bar-set.js → esm2020/components/bar-set/taiga-ui-addon-charts-components-bar-set.mjs} +0 -0
- /package/{esm2015/components/index.js → esm2020/components/index.mjs} +0 -0
- /package/{esm2015/components/legend-item/index.js → esm2020/components/legend-item/index.mjs} +0 -0
- /package/{esm2015/components/legend-item/taiga-ui-addon-charts-components-legend-item.js → esm2020/components/legend-item/taiga-ui-addon-charts-components-legend-item.mjs} +0 -0
- /package/{esm2015/components/line-chart/index.js → esm2020/components/line-chart/index.mjs} +0 -0
- /package/{esm2015/components/line-chart/line-chart.options.js → esm2020/components/line-chart/line-chart.options.mjs} +0 -0
- /package/{esm2015/components/line-chart/taiga-ui-addon-charts-components-line-chart.js → esm2020/components/line-chart/taiga-ui-addon-charts-components-line-chart.mjs} +0 -0
- /package/{esm2015/components/line-days-chart/index.js → esm2020/components/line-days-chart/index.mjs} +0 -0
- /package/{esm2015/components/line-days-chart/taiga-ui-addon-charts-components-line-days-chart.js → esm2020/components/line-days-chart/taiga-ui-addon-charts-components-line-days-chart.mjs} +0 -0
- /package/{esm2015/components/pie-chart/index.js → esm2020/components/pie-chart/index.mjs} +0 -0
- /package/{esm2015/components/pie-chart/taiga-ui-addon-charts-components-pie-chart.js → esm2020/components/pie-chart/taiga-ui-addon-charts-components-pie-chart.mjs} +0 -0
- /package/{esm2015/components/ring-chart/index.js → esm2020/components/ring-chart/index.mjs} +0 -0
- /package/{esm2015/components/ring-chart/taiga-ui-addon-charts-components-ring-chart.js → esm2020/components/ring-chart/taiga-ui-addon-charts-components-ring-chart.mjs} +0 -0
- /package/{esm2015/components/taiga-ui-addon-charts-components.js → esm2020/components/taiga-ui-addon-charts-components.mjs} +0 -0
- /package/{esm2015/constants/index.js → esm2020/constants/index.mjs} +0 -0
- /package/{esm2015/constants/line-handlers.js → esm2020/constants/line-handlers.mjs} +0 -0
- /package/{esm2015/constants/taiga-ui-addon-charts-constants.js → esm2020/constants/taiga-ui-addon-charts-constants.mjs} +0 -0
- /package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- /package/{esm2015/interfaces/index.js → esm2020/interfaces/index.mjs} +0 -0
- /package/{esm2015/interfaces/line-chart-hint-context.js → esm2020/interfaces/line-chart-hint-context.mjs} +0 -0
- /package/{esm2015/interfaces/taiga-ui-addon-charts-interfaces.js → esm2020/interfaces/taiga-ui-addon-charts-interfaces.mjs} +0 -0
- /package/{esm2015/taiga-ui-addon-charts.js → esm2020/taiga-ui-addon-charts.mjs} +0 -0
- /package/{esm2015/types/index.js → esm2020/types/index.mjs} +0 -0
- /package/{esm2015/types/line-handler.js → esm2020/types/line-handler.mjs} +0 -0
- /package/{esm2015/types/line-type.js → esm2020/types/line-type.mjs} +0 -0
- /package/{esm2015/types/taiga-ui-addon-charts-types.js → esm2020/types/taiga-ui-addon-charts-types.mjs} +0 -0
- /package/{esm2015/utils/control-point.js → esm2020/utils/control-point.mjs} +0 -0
- /package/{esm2015/utils/describe-sector.js → esm2020/utils/describe-sector.mjs} +0 -0
- /package/{esm2015/utils/draw-curve.js → esm2020/utils/draw-curve.mjs} +0 -0
- /package/{esm2015/utils/draw-line.js → esm2020/utils/draw-line.mjs} +0 -0
- /package/{esm2015/utils/draw.js → esm2020/utils/draw.mjs} +0 -0
- /package/{esm2015/utils/index.js → esm2020/utils/index.mjs} +0 -0
- /package/{esm2015/utils/line-angle.js → esm2020/utils/line-angle.mjs} +0 -0
- /package/{esm2015/utils/prepare-external-url.js → esm2020/utils/prepare-external-url.mjs} +0 -0
- /package/{esm2015/utils/taiga-ui-addon-charts-utils.js → esm2020/utils/taiga-ui-addon-charts-utils.mjs} +0 -0
|
@@ -23,16 +23,11 @@ class TuiRingChartComponent {
|
|
|
23
23
|
this.activeItemIndexChange.next(index);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
TuiRingChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
27
|
-
TuiRingChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
26
|
+
TuiRingChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiRingChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
+
TuiRingChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiRingChartComponent, selector: "tui-ring-chart", inputs: { value: "value", size: "size", activeItemIndex: "activeItemIndex" }, outputs: { activeItemIndexChange: "activeItemIndexChange" }, host: { properties: { "attr.data-size": "this.size" } }, ngImport: i0, template: "<div class=\"t-content\">\n <div class=\"t-wrapper\">\n <ng-content></ng-content>\n </div>\n</div>\n\n<tui-pie-chart\n [activeItemIndex]=\"activeItemIndex\"\n [masked]=\"true\"\n [size]=\"size\"\n [value]=\"value\"\n (activeItemIndexChange)=\"onActiveItemIndexChange($event)\"\n></tui-pie-chart>\n\n<div class=\"t-shield\"></div>\n", styles: [":host{position:relative;display:block}:host[data-size=s]{width:4rem;height:4rem}:host[data-size=m]{width:9rem;height:9rem}:host[data-size=l]{width:11rem;height:11rem}:host[data-size=xl]{width:16rem;height:16rem}.t-content{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;font:var(--tui-font-text-m);max-height:100%;flex-direction:column;justify-content:center;text-align:center;padding:1.5rem;border-radius:100%;box-sizing:border-box;overflow:hidden;word-break:break-word;white-space:pre-wrap;color:var(--tui-text-02)}:host[data-size=m] .t-content{font:var(--tui-font-text-xs)}.t-wrapper:first-line{color:var(--tui-text-01)}:host[data-size=l] .t-wrapper:first-line{font:var(--tui-font-text-l);font-weight:700}:host[data-size=m] .t-wrapper:first-line{font:var(--tui-font-text-m);font-weight:700}.t-shield{position:absolute;top:25%;left:25%;right:25%;bottom:25%;border-radius:100%}\n"], dependencies: [{ kind: "component", type: i1.TuiPieChartComponent, selector: "tui-pie-chart", inputs: ["value", "size", "masked", "activeItemIndex"], outputs: ["activeItemIndexChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiRingChartComponent, decorators: [{
|
|
29
29
|
type: Component,
|
|
30
|
-
args: [{
|
|
31
|
-
selector: 'tui-ring-chart',
|
|
32
|
-
templateUrl: './ring-chart.template.html',
|
|
33
|
-
styleUrls: ['./ring-chart.style.less'],
|
|
34
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
35
|
-
}]
|
|
30
|
+
args: [{ selector: 'tui-ring-chart', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"t-content\">\n <div class=\"t-wrapper\">\n <ng-content></ng-content>\n </div>\n</div>\n\n<tui-pie-chart\n [activeItemIndex]=\"activeItemIndex\"\n [masked]=\"true\"\n [size]=\"size\"\n [value]=\"value\"\n (activeItemIndexChange)=\"onActiveItemIndexChange($event)\"\n></tui-pie-chart>\n\n<div class=\"t-shield\"></div>\n", styles: [":host{position:relative;display:block}:host[data-size=s]{width:4rem;height:4rem}:host[data-size=m]{width:9rem;height:9rem}:host[data-size=l]{width:11rem;height:11rem}:host[data-size=xl]{width:16rem;height:16rem}.t-content{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;font:var(--tui-font-text-m);max-height:100%;flex-direction:column;justify-content:center;text-align:center;padding:1.5rem;border-radius:100%;box-sizing:border-box;overflow:hidden;word-break:break-word;white-space:pre-wrap;color:var(--tui-text-02)}:host[data-size=m] .t-content{font:var(--tui-font-text-xs)}.t-wrapper:first-line{color:var(--tui-text-01)}:host[data-size=l] .t-wrapper:first-line{font:var(--tui-font-text-l);font-weight:700}:host[data-size=m] .t-wrapper:first-line{font:var(--tui-font-text-m);font-weight:700}.t-shield{position:absolute;top:25%;left:25%;right:25%;bottom:25%;border-radius:100%}\n"] }]
|
|
36
31
|
}], propDecorators: { value: [{
|
|
37
32
|
type: Input
|
|
38
33
|
}], size: [{
|
|
@@ -48,10 +43,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
48
43
|
|
|
49
44
|
class TuiRingChartModule {
|
|
50
45
|
}
|
|
51
|
-
TuiRingChartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
52
|
-
TuiRingChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
53
|
-
TuiRingChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
46
|
+
TuiRingChartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiRingChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
47
|
+
TuiRingChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiRingChartModule, declarations: [TuiRingChartComponent], imports: [CommonModule, PolymorpheusModule, TuiPieChartModule], exports: [TuiRingChartComponent] });
|
|
48
|
+
TuiRingChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiRingChartModule, imports: [CommonModule, PolymorpheusModule, TuiPieChartModule] });
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiRingChartModule, decorators: [{
|
|
55
50
|
type: NgModule,
|
|
56
51
|
args: [{
|
|
57
52
|
imports: [CommonModule, PolymorpheusModule, TuiPieChartModule],
|
|
@@ -65,4 +60,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
65
60
|
*/
|
|
66
61
|
|
|
67
62
|
export { TuiRingChartComponent, TuiRingChartModule };
|
|
68
|
-
//# sourceMappingURL=taiga-ui-addon-charts-components-ring-chart.
|
|
63
|
+
//# sourceMappingURL=taiga-ui-addon-charts-components-ring-chart.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-charts-components-ring-chart.mjs","sources":["../../../projects/addon-charts/components/ring-chart/ring-chart.component.ts","../../../projects/addon-charts/components/ring-chart/ring-chart.template.html","../../../projects/addon-charts/components/ring-chart/ring-chart.module.ts","../../../projects/addon-charts/components/ring-chart/taiga-ui-addon-charts-components-ring-chart.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n HostBinding,\n Input,\n Output,\n} from '@angular/core';\nimport {TuiSizeS, TuiSizeXL} from '@taiga-ui/core';\n\n@Component({\n selector: 'tui-ring-chart',\n templateUrl: './ring-chart.template.html',\n styleUrls: ['./ring-chart.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiRingChartComponent {\n @Input()\n value: readonly number[] = [];\n\n @Input()\n @HostBinding('attr.data-size')\n size: TuiSizeS | TuiSizeXL = 'm';\n\n @Input()\n activeItemIndex = NaN;\n\n @Output()\n readonly activeItemIndexChange = new EventEmitter<number>();\n\n onActiveItemIndexChange(index: number): void {\n this.updateActiveItemIndex(index);\n }\n\n private updateActiveItemIndex(index: number): void {\n if (index === this.activeItemIndex) {\n return;\n }\n\n this.activeItemIndex = index;\n this.activeItemIndexChange.next(index);\n }\n}\n","<div class=\"t-content\">\n <div class=\"t-wrapper\">\n <ng-content></ng-content>\n </div>\n</div>\n\n<tui-pie-chart\n [activeItemIndex]=\"activeItemIndex\"\n [masked]=\"true\"\n [size]=\"size\"\n [value]=\"value\"\n (activeItemIndexChange)=\"onActiveItemIndexChange($event)\"\n></tui-pie-chart>\n\n<div class=\"t-shield\"></div>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiPieChartModule} from '@taiga-ui/addon-charts/components/pie-chart';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiRingChartComponent} from './ring-chart.component';\n\n@NgModule({\n imports: [CommonModule, PolymorpheusModule, TuiPieChartModule],\n declarations: [TuiRingChartComponent],\n exports: [TuiRingChartComponent],\n})\nexport class TuiRingChartModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAgBa,qBAAqB,CAAA;AANlC,IAAA,WAAA,GAAA;AAQI,QAAA,IAAK,CAAA,KAAA,GAAsB,EAAE,CAAC;AAI9B,QAAA,IAAI,CA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CAAA,q4BAAA,CAAA,EAAA,CAAA;8BAI/C,KAAK,EAAA,CAAA;sBADJ,KAAK;gBAKN,IAAI,EAAA,CAAA;sBAFH,KAAK;;sBACL,WAAW;uBAAC,gBAAgB,CAAA;gBAI7B,eAAe,EAAA,CAAA;sBADd,KAAK;gBAIG,qBAAqB,EAAA,CAAA;sBAD7B,MAAM;;;MEfE,kBAAkB,CAAA;;gHAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;iHAAlB,kBAAkB,EAAA,YAAA,EAAA,CAHZ,qBAAqB,CAD1B,EAAA,OAAA,EAAA,CAAA,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,CAAA,EAAA,OAAA,EAAA,CAEnD,qBAAqB,CAAA,EAAA,CAAA,CAAA;AAEtB,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAJjB,OAAA,EAAA,CAAA,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,CAAA,EAAA,CAAA,CAAA;4FAIpD,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,CAAC;oBAC9D,YAAY,EAAE,CAAC,qBAAqB,CAAC;oBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;iBACnC,CAAA;;;ACXD;;AAEG;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-charts-components.mjs","sources":["../../../projects/addon-charts/components/taiga-ui-addon-charts-components.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;;AAEG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-charts-constants.mjs","sources":["../../../projects/addon-charts/constants/line-handlers.ts","../../../projects/addon-charts/constants/taiga-ui-addon-charts-constants.ts"],"sourcesContent":["import {TuiLineHandler} from '@taiga-ui/addon-charts/types';\n\nexport const TUI_ALWAYS_DASHED: TuiLineHandler = () => `dashed`;\nexport const TUI_ALWAYS_DOTTED: TuiLineHandler = () => `dotted`;\nexport const TUI_ALWAYS_SOLID: TuiLineHandler = () => `solid`;\nexport const TUI_ALWAYS_NONE: TuiLineHandler = () => `none`;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"MAEa,iBAAiB,GAAmB,MAAM,SAAS;MACnD,iBAAiB,GAAmB,MAAM,SAAS;MACnD,gBAAgB,GAAmB,MAAM,QAAQ;MACjD,eAAe,GAAmB,MAAM;;ACLrD;;AAEG;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-charts-interfaces.mjs","sources":["../../../projects/addon-charts/interfaces/taiga-ui-addon-charts-interfaces.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;AAEG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-charts-types.mjs","sources":["../../../projects/addon-charts/types/taiga-ui-addon-charts-types.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;AAEG"}
|
|
@@ -84,4 +84,4 @@ function tuiPrepareExternalUrl(locationNg, locationRef, hash) {
|
|
|
84
84
|
*/
|
|
85
85
|
|
|
86
86
|
export { tuiControlPoint, tuiDescribeSector, tuiDraw, tuiDrawCurve, tuiDrawLine, tuiLineAngle, tuiLineLength, tuiPrepareExternalUrl };
|
|
87
|
-
//# sourceMappingURL=taiga-ui-addon-charts-utils.
|
|
87
|
+
//# sourceMappingURL=taiga-ui-addon-charts-utils.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-charts-utils.mjs","sources":["../../../projects/addon-charts/utils/line-angle.ts","../../../projects/addon-charts/utils/line-length.ts","../../../projects/addon-charts/utils/control-point.ts","../../../projects/addon-charts/utils/describe-sector.ts","../../../projects/addon-charts/utils/draw-curve.ts","../../../projects/addon-charts/utils/draw-line.ts","../../../projects/addon-charts/utils/draw.ts","../../../projects/addon-charts/utils/prepare-external-url.ts","../../../projects/addon-charts/utils/taiga-ui-addon-charts-utils.ts"],"sourcesContent":["import {TuiPoint} from '@taiga-ui/core';\n\nexport function tuiLineAngle(a: TuiPoint, b: TuiPoint): number {\n const x = b[0] - a[0];\n const y = b[1] - a[1];\n\n return Math.atan2(y, x);\n}\n","import {TuiPoint} from '@taiga-ui/core';\n\nexport function tuiLineLength(a: TuiPoint, b: TuiPoint): number {\n const x = b[0] - a[0];\n const y = b[1] - a[1];\n\n return Math.sqrt(x ** 2 + y ** 2);\n}\n","import {TuiPoint} from '@taiga-ui/core';\n\nimport {tuiLineAngle} from './line-angle';\nimport {tuiLineLength} from './line-length';\n\nexport function tuiControlPoint(\n current: TuiPoint,\n previous?: TuiPoint,\n next?: TuiPoint,\n reverse: boolean = false,\n smoothing: number = 0.2,\n): TuiPoint {\n const p = previous || current;\n const n = next || current;\n const angle = tuiLineAngle(p, n) + (reverse ? Math.PI : 0);\n const length = tuiLineLength(p, n) * smoothing;\n const x = current[0] + Math.cos(angle) * length;\n const y = current[1] + Math.sin(angle) * length;\n\n return [x, y];\n}\n","import {tuiToInt, tuiToRadians} from '@taiga-ui/cdk';\n\nconst EMPTY = `M 100 0 A 100 100 0 1 1 100 0 L 0 0`;\n\n/**\n * Describes a normalized sector by angles. Normalized meaning it supposed to work with\n * SVG with viewBox=\"-1 -1 2 2\" so that 0 coordinates in cartesian and polar match the same spot.\n * Everything is multiplied by 100 (including viewBox of SVG to host this) so IE properly\n * handles hover events.\n *\n * @param startAngle starting angle in degrees\n * @param endAngle ending angle in degrees\n */\nexport function tuiDescribeSector(startAngle: number, endAngle: number): string {\n const startRad = tuiToRadians(startAngle);\n const endRad = tuiToRadians(endAngle);\n const startX = Math.cos(startRad) * 100;\n const startY = Math.sin(startRad) * 100;\n const endX = Math.cos(endRad) * 100;\n const endY = Math.sin(endRad) * 100;\n const largeArcFlag = tuiToInt(endAngle - startAngle > 180);\n const result = [\n `M`,\n startX,\n startY,\n `A 100 100 0`,\n largeArcFlag,\n 1,\n endX,\n endY,\n `L 0 0`,\n ];\n\n return Number.isNaN(endX) ? EMPTY : result.join(` `);\n}\n","import {TuiPoint} from '@taiga-ui/core';\n\nimport {tuiControlPoint} from './control-point';\n\nexport function tuiDrawCurve(\n array: readonly TuiPoint[],\n index: number,\n smoothing: number,\n): string {\n const [cpsX, cpsY] = tuiControlPoint(\n array[index - 1],\n array[index - 2],\n array[index],\n false,\n smoothing,\n );\n const [cpeX, cpeY] = tuiControlPoint(\n array[index],\n array[index - 1],\n array[index + 1],\n true,\n smoothing,\n );\n\n return `C ${cpsX},${cpsY} ${cpeX},${cpeY} ${array[index][0]},${array[index][1]}`;\n}\n","export function tuiDrawLine(point: [number, number]): string {\n return `L ${point}`;\n}\n","import {TuiPoint} from '@taiga-ui/core';\n\nimport {tuiDrawCurve} from './draw-curve';\nimport {tuiDrawLine} from './draw-line';\n\nconst COEFFICIENT = 500;\n\nexport function tuiDraw(\n array: readonly TuiPoint[],\n index: number,\n smoothing: number,\n): string {\n return smoothing\n ? tuiDrawCurve(array, index, smoothing / COEFFICIENT)\n : tuiDrawLine([array[index][0], array[index][1]]);\n}\n","import {Location as NgLocation} from '@angular/common';\n\n/** @deprecated */\nexport function tuiPrepareExternalUrl(\n locationNg: NgLocation,\n locationRef: Location,\n hash: string,\n): string {\n const url = locationNg\n .prepareExternalUrl(locationNg.path(false))\n .replace(locationRef.origin, ``);\n\n return `url(${url}#${hash})`;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAEgB,SAAA,YAAY,CAAC,CAAW,EAAE,CAAW,EAAA;IACjD,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACtB,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAEtB,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC5B;;ACLgB,SAAA,aAAa,CAAC,CAAW,EAAE,CAAW,EAAA;IAClD,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACtB,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAEtB,IAAA,OAAO,IAAI,CAAC,IAAI,CAAC,IAAA,CAAA,GAAA,CAAA,CAAC,EAAI,CAAC,CAAA,GAAG,SAAA,CAAC,EAAI,CAAC,CAAA,CAAC,CAAC;AACtC;;ACFgB,SAAA,eAAe,CAC3B,OAAiB,EACjB,QAAmB,EACnB,IAAe,EACf,OAAA,GAAmB,KAAK,EACxB,YAAoB,GAAG,EAAA;AAEvB,IAAA,MAAM,CAAC,GAAG,QAAQ,IAAI,OAAO,CAAC;AAC9B,IAAA,MAAM,CAAC,GAAG,IAAI,IAAI,OAAO,CAAC;IAC1B,MAAM,KAAK,GAAG,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,OAAO,GAAG,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;IAC3D,MAAM,MAAM,GAAG,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC;AAC/C,IAAA,MAAM,CAAC,GAAG,OAAO,CAAC,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SAAA,kBAAkB,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1C,SAAA,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE,CAAA,CAAE,CAAC,CAAC;AAErC,IAAA,OAAO,CAAO,IAAA,EAAA,GAAG,CAAI,CAAA,EAAA,IAAI,GAAG,CAAC;AACjC;;ACbA;;AAEG;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-charts.mjs","sources":["../../../projects/addon-charts/taiga-ui-addon-charts.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;;AAEG"}
|
|
@@ -4,8 +4,7 @@ import * as i2 from '@angular/platform-browser';
|
|
|
4
4
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
5
5
|
import * as i1 from '@taiga-ui/cdk';
|
|
6
6
|
import { tuiTypedFromEvent, TuiRepeatTimesModule } from '@taiga-ui/cdk';
|
|
7
|
-
import { merge, ReplaySubject } from 'rxjs';
|
|
8
|
-
import { map, switchMap, startWith, tap } from 'rxjs/operators';
|
|
7
|
+
import { merge, map, ReplaySubject, switchMap, startWith, tap } from 'rxjs';
|
|
9
8
|
|
|
10
9
|
// 3/4 with 1% safety offset
|
|
11
10
|
const ARC = 0.76;
|
|
@@ -28,6 +27,9 @@ function arcsToIndex(arcs) {
|
|
|
28
27
|
return arcs.map(({ nativeElement }, index) => merge(tuiTypedFromEvent(nativeElement, 'mouseenter').pipe(map(() => index)), tuiTypedFromEvent(nativeElement, 'mouseleave').pipe(map(() => NaN))));
|
|
29
28
|
}
|
|
30
29
|
class TuiArcChartComponent {
|
|
30
|
+
set arcs(arcs) {
|
|
31
|
+
this.arcs$.next(arcs);
|
|
32
|
+
}
|
|
31
33
|
constructor(sanitizer, cdr) {
|
|
32
34
|
this.sanitizer = sanitizer;
|
|
33
35
|
this.arcs$ = new ReplaySubject(1);
|
|
@@ -47,9 +49,6 @@ class TuiArcChartComponent {
|
|
|
47
49
|
cdr.markForCheck();
|
|
48
50
|
});
|
|
49
51
|
}
|
|
50
|
-
set arcs(arcs) {
|
|
51
|
-
this.arcs$.next(arcs);
|
|
52
|
-
}
|
|
53
52
|
get width() {
|
|
54
53
|
return SIZE[this.size];
|
|
55
54
|
}
|
|
@@ -75,16 +74,11 @@ class TuiArcChartComponent {
|
|
|
75
74
|
return this.sanitizer.bypassSecurityTrustStyle(`var(--tui-chart-${index}, var(--tui-support-0${index + 1}))`);
|
|
76
75
|
}
|
|
77
76
|
}
|
|
78
|
-
TuiArcChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
79
|
-
TuiArcChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
80
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
77
|
+
TuiArcChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiArcChartComponent, deps: [{ token: DomSanitizer }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
78
|
+
TuiArcChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiArcChartComponent, selector: "tui-arc-chart", inputs: { value: "value", size: "size", max: "max", minLabel: "minLabel", maxLabel: "maxLabel", activeItemIndex: "activeItemIndex" }, outputs: { activeItemIndexChange: "activeItemIndexChange" }, host: { properties: { "attr.data-size": "this.size", "style.width.rem": "this.width", "style.height.rem": "this.width", "style.strokeWidth.rem": "this.strokeWidth" } }, viewQueries: [{ propertyName: "arcs", predicate: ["arc"], descendants: true }], ngImport: i0, template: "<svg\n *tuiRepeatTimes=\"let index of value.length\"\n focusable=\"false\"\n viewBox=\"-100 -100 200 200\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"t-svg\"\n [style.height.em]=\"getDiameter(index)\"\n [style.left.em]=\"getInset(index)\"\n [style.top.em]=\"getInset(index)\"\n [style.width.em]=\"getDiameter(index)\"\n>\n <path\n d=\"M -70 70 A 100 100 0 1 1 70 70\"\n vector-effect=\"non-scaling-stroke\"\n />\n <path\n #arc\n d=\"M -70 70 A 100 100 0 1 1 70 70\"\n vector-effect=\"non-scaling-stroke\"\n class=\"t-value\"\n [class.t-value_inactive]=\"isInactive(index)\"\n [style.stroke]=\"getColor(index)\"\n [style.strokeDasharray.em]=\"getLength(index)\"\n [style.strokeDashoffset.em]=\"initialized ? getOffset(index) : getLength(index)\"\n />\n</svg>\n<div class=\"t-content\">\n <div class=\"t-wrapper\">\n <ng-content></ng-content>\n </div>\n</div>\n<div class=\"t-percent\">\n <span>{{ minLabel }}</span>\n <span>{{ maxLabel }}</span>\n</div>\n", styles: [":host{position:relative;display:block;flex-shrink:0}.t-svg{position:absolute;top:0;left:0;bottom:0;right:0;overflow:visible;fill:none;stroke:currentColor;stroke-linecap:round;color:var(--tui-secondary);font-size:1rem;pointer-events:none}.t-value{pointer-events:auto;transition:stroke-dashoffset var(--tui-duration) ease-in-out,opacity var(--tui-duration) ease-in-out .1s}.t-value_inactive{transition-property:stroke-dashoffset,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;opacity:.16}.t-content{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center;color:var(--tui-text-02);font:var(--tui-font-text-xs);pointer-events:none}:host[data-size=xl] .t-content{font:var(--tui-font-text-m)}.t-wrapper{pointer-events:auto}.t-wrapper:first-line{color:var(--tui-text-01)}:host[data-size=m] .t-wrapper:first-line{font:var(--tui-font-text-s);font-weight:700}:host[data-size=l] .t-wrapper:first-line{font:var(--tui-font-text-m);font-weight:700}:host[data-size=xl] .t-wrapper:first-line{font:var(--tui-font-heading-5)}.t-percent{position:absolute;left:25%;bottom:11%;display:flex;width:50%;justify-content:space-between;font:var(--tui-font-text-xs);color:var(--tui-text-02)}:host[data-size=xl] .t-percent{font:var(--tui-font-text-m)}\n"], dependencies: [{ kind: "directive", type: i1.TuiRepeatTimesDirective, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: ["tuiRepeatTimesOf"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiArcChartComponent, decorators: [{
|
|
81
80
|
type: Component,
|
|
82
|
-
args: [{
|
|
83
|
-
selector: 'tui-arc-chart',
|
|
84
|
-
templateUrl: './arc-chart.template.html',
|
|
85
|
-
styleUrls: ['./arc-chart.style.less'],
|
|
86
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
87
|
-
}]
|
|
81
|
+
args: [{ selector: 'tui-arc-chart', changeDetection: ChangeDetectionStrategy.OnPush, template: "<svg\n *tuiRepeatTimes=\"let index of value.length\"\n focusable=\"false\"\n viewBox=\"-100 -100 200 200\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"t-svg\"\n [style.height.em]=\"getDiameter(index)\"\n [style.left.em]=\"getInset(index)\"\n [style.top.em]=\"getInset(index)\"\n [style.width.em]=\"getDiameter(index)\"\n>\n <path\n d=\"M -70 70 A 100 100 0 1 1 70 70\"\n vector-effect=\"non-scaling-stroke\"\n />\n <path\n #arc\n d=\"M -70 70 A 100 100 0 1 1 70 70\"\n vector-effect=\"non-scaling-stroke\"\n class=\"t-value\"\n [class.t-value_inactive]=\"isInactive(index)\"\n [style.stroke]=\"getColor(index)\"\n [style.strokeDasharray.em]=\"getLength(index)\"\n [style.strokeDashoffset.em]=\"initialized ? getOffset(index) : getLength(index)\"\n />\n</svg>\n<div class=\"t-content\">\n <div class=\"t-wrapper\">\n <ng-content></ng-content>\n </div>\n</div>\n<div class=\"t-percent\">\n <span>{{ minLabel }}</span>\n <span>{{ maxLabel }}</span>\n</div>\n", styles: [":host{position:relative;display:block;flex-shrink:0}.t-svg{position:absolute;top:0;left:0;bottom:0;right:0;overflow:visible;fill:none;stroke:currentColor;stroke-linecap:round;color:var(--tui-secondary);font-size:1rem;pointer-events:none}.t-value{pointer-events:auto;transition:stroke-dashoffset var(--tui-duration) ease-in-out,opacity var(--tui-duration) ease-in-out .1s}.t-value_inactive{transition-property:stroke-dashoffset,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;opacity:.16}.t-content{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center;color:var(--tui-text-02);font:var(--tui-font-text-xs);pointer-events:none}:host[data-size=xl] .t-content{font:var(--tui-font-text-m)}.t-wrapper{pointer-events:auto}.t-wrapper:first-line{color:var(--tui-text-01)}:host[data-size=m] .t-wrapper:first-line{font:var(--tui-font-text-s);font-weight:700}:host[data-size=l] .t-wrapper:first-line{font:var(--tui-font-text-m);font-weight:700}:host[data-size=xl] .t-wrapper:first-line{font:var(--tui-font-heading-5)}.t-percent{position:absolute;left:25%;bottom:11%;display:flex;width:50%;justify-content:space-between;font:var(--tui-font-text-xs);color:var(--tui-text-02)}:host[data-size=xl] .t-percent{font:var(--tui-font-text-m)}\n"] }]
|
|
88
82
|
}], ctorParameters: function () { return [{ type: i2.DomSanitizer, decorators: [{
|
|
89
83
|
type: Inject,
|
|
90
84
|
args: [DomSanitizer]
|
|
@@ -124,10 +118,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
124
118
|
|
|
125
119
|
class TuiArcChartModule {
|
|
126
120
|
}
|
|
127
|
-
TuiArcChartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
128
|
-
TuiArcChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
129
|
-
TuiArcChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
121
|
+
TuiArcChartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiArcChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
122
|
+
TuiArcChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiArcChartModule, declarations: [TuiArcChartComponent], imports: [TuiRepeatTimesModule], exports: [TuiArcChartComponent] });
|
|
123
|
+
TuiArcChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiArcChartModule, imports: [TuiRepeatTimesModule] });
|
|
124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiArcChartModule, decorators: [{
|
|
131
125
|
type: NgModule,
|
|
132
126
|
args: [{
|
|
133
127
|
imports: [TuiRepeatTimesModule],
|
|
@@ -141,4 +135,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
141
135
|
*/
|
|
142
136
|
|
|
143
137
|
export { TuiArcChartComponent, TuiArcChartModule };
|
|
144
|
-
//# sourceMappingURL=taiga-ui-addon-charts-components-arc-chart.
|
|
138
|
+
//# sourceMappingURL=taiga-ui-addon-charts-components-arc-chart.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-charts-components-arc-chart.mjs","sources":["../../../projects/addon-charts/components/arc-chart/arc-chart.component.ts","../../../projects/addon-charts/components/arc-chart/arc-chart.template.html","../../../projects/addon-charts/components/arc-chart/arc-chart.module.ts","../../../projects/addon-charts/components/arc-chart/taiga-ui-addon-charts-components-arc-chart.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n Output,\n QueryList,\n ViewChildren,\n} from '@angular/core';\nimport {DomSanitizer, SafeValue} from '@angular/platform-browser';\nimport {tuiTypedFromEvent} from '@taiga-ui/cdk';\nimport {TuiSizeXL} from '@taiga-ui/core';\nimport {map, merge, Observable, ReplaySubject, startWith, switchMap, tap} from 'rxjs';\n// 3/4 with 1% safety offset\nconst ARC = 0.76;\n\nconst SIZE: Record<TuiSizeXL, number> = {\n m: 9,\n l: 11,\n xl: 16,\n};\n\nconst WIDTH: Record<TuiSizeXL, number> = {\n m: 0.25,\n l: 0.375,\n xl: 0.5625,\n};\n\nconst GAP: Record<TuiSizeXL, number> = {\n m: 0.125,\n l: 0.1875,\n xl: 0.25,\n};\n\nfunction arcsToIndex(arcs: QueryList<ElementRef<SVGElement>>): Array<Observable<number>> {\n return arcs.map(({nativeElement}, index) =>\n merge(\n tuiTypedFromEvent(nativeElement, 'mouseenter').pipe(map(() => index)),\n tuiTypedFromEvent(nativeElement, 'mouseleave').pipe(map(() => NaN)),\n ),\n );\n}\n\n@Component({\n selector: 'tui-arc-chart',\n templateUrl: './arc-chart.template.html',\n styleUrls: ['./arc-chart.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiArcChartComponent {\n private readonly arcs$ = new ReplaySubject<QueryList<ElementRef<SVGElement>>>(1);\n\n @ViewChildren('arc')\n set arcs(arcs: QueryList<ElementRef<SVGElement>>) {\n this.arcs$.next(arcs);\n }\n\n @Input()\n value: readonly number[] = [];\n\n @Input()\n @HostBinding('attr.data-size')\n size: TuiSizeXL = 'm';\n\n @Input()\n max = 100;\n\n @Input()\n minLabel = '0%';\n\n @Input()\n maxLabel = '100%';\n\n @Input()\n activeItemIndex = NaN;\n\n @Output()\n readonly activeItemIndexChange = this.arcs$.pipe(\n switchMap(arcs =>\n arcs.changes.pipe(\n startWith(null),\n switchMap(() => merge(...arcsToIndex(arcs))),\n ),\n ),\n tap(index => {\n this.activeItemIndex = index;\n }),\n );\n\n initialized = false;\n\n constructor(\n @Inject(DomSanitizer) private readonly sanitizer: DomSanitizer,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n ) {\n // So initial animation works\n setTimeout(() => {\n this.initialized = true;\n cdr.markForCheck();\n });\n }\n\n @HostBinding('style.width.rem')\n @HostBinding('style.height.rem')\n get width(): number {\n return SIZE[this.size];\n }\n\n @HostBinding('style.strokeWidth.rem')\n get strokeWidth(): number {\n return WIDTH[this.size];\n }\n\n isInactive(index: number): boolean {\n return !Number.isNaN(this.activeItemIndex) && index !== this.activeItemIndex;\n }\n\n getInset(index: number): number {\n return this.strokeWidth / 2 + index * (this.strokeWidth + GAP[this.size]);\n }\n\n getDiameter(index: number): number {\n return SIZE[this.size] - 2 * this.getInset(index);\n }\n\n getLength(index: number): number {\n return Math.PI * this.getDiameter(index) * ARC;\n }\n\n getOffset(index: number): number {\n return this.getLength(index) * (1 - Math.min(this.value[index] / this.max, 1));\n }\n\n getColor(index: number): SafeValue {\n return this.sanitizer.bypassSecurityTrustStyle(\n `var(--tui-chart-${index}, var(--tui-support-0${index + 1}))`,\n );\n }\n}\n","<svg\n *tuiRepeatTimes=\"let index of value.length\"\n focusable=\"false\"\n viewBox=\"-100 -100 200 200\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"t-svg\"\n [style.height.em]=\"getDiameter(index)\"\n [style.left.em]=\"getInset(index)\"\n [style.top.em]=\"getInset(index)\"\n [style.width.em]=\"getDiameter(index)\"\n>\n <path\n d=\"M -70 70 A 100 100 0 1 1 70 70\"\n vector-effect=\"non-scaling-stroke\"\n />\n <path\n #arc\n d=\"M -70 70 A 100 100 0 1 1 70 70\"\n vector-effect=\"non-scaling-stroke\"\n class=\"t-value\"\n [class.t-value_inactive]=\"isInactive(index)\"\n [style.stroke]=\"getColor(index)\"\n [style.strokeDasharray.em]=\"getLength(index)\"\n [style.strokeDashoffset.em]=\"initialized ? getOffset(index) : getLength(index)\"\n />\n</svg>\n<div class=\"t-content\">\n <div class=\"t-wrapper\">\n <ng-content></ng-content>\n </div>\n</div>\n<div class=\"t-percent\">\n <span>{{ minLabel }}</span>\n <span>{{ maxLabel }}</span>\n</div>\n","import {NgModule} from '@angular/core';\nimport {TuiRepeatTimesModule} from '@taiga-ui/cdk';\n\nimport {TuiArcChartComponent} from './arc-chart.component';\n\n@NgModule({\n imports: [TuiRepeatTimesModule],\n declarations: [TuiArcChartComponent],\n exports: [TuiArcChartComponent],\n})\nexport class TuiArcChartModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAgBA;AACA,MAAM,GAAG,GAAG,IAAI,CAAC;AAEjB,MAAM,IAAI,GAA8B;AACpC,IAAA,CAAC,EAAE,CAAC;AACJ,IAAA,CAAC,EAAE,EAAE;AACL,IAAA,EAAE,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,KAAK,GAA8B;AACrC,IAAA,CAAC,EAAE,IAAI;AACP,IAAA,CAAC,EAAE,KAAK;AACR,IAAA,EAAE,EAAE,MAAM;CACb,CAAC;AAEF,MAAM,GAAG,GAA8B;AACnC,IAAA,CAAC,EAAE,KAAK;AACR,IAAA,CAAC,EAAE,MAAM;AACT,IAAA,EAAE,EAAE,IAAI;CACX,CAAC;AAEF,SAAS,WAAW,CAAC,IAAuC,EAAA;IACxD,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAC,aAAa,EAAC,EAAE,KAAK,KACnC,KAAK,CACD,iBAAiB,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,KAAK,CAAC,CAAC,EACrE,iBAAiB,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CACtE,CACJ,CAAC;AACN,CAAC;MAQY,oBAAoB,CAAA;IAG7B,IACI,IAAI,CAAC,IAAuC,EAAA;AAC5C,QAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACzB;IAoCD,WAC2C,CAAA,SAAuB,EACnC,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A,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,EAHX,YAAA,EAAA,CAAA,oBAAoB,CADzB,EAAA,OAAA,EAAA,CAAA,oBAAoB,aAEpB,oBAAoB,CAAA,EAAA,CAAA,CAAA;AAErB,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAJhB,oBAAoB,CAAA,EAAA,CAAA,CAAA;4FAIrB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAL7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,oBAAoB,CAAC;oBAC/B,YAAY,EAAE,CAAC,oBAAoB,CAAC;oBACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;AAClC,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
|
|
@@ -9,6 +9,9 @@ import { CommonModule } from '@angular/common';
|
|
|
9
9
|
import * as i3 from 'rxjs';
|
|
10
10
|
|
|
11
11
|
class TuiAxesComponent {
|
|
12
|
+
get centeredXLabels() {
|
|
13
|
+
return this.axisY === 'none';
|
|
14
|
+
}
|
|
12
15
|
constructor(mode$) {
|
|
13
16
|
this.mode$ = mode$;
|
|
14
17
|
this.axisX = 'solid';
|
|
@@ -25,9 +28,6 @@ class TuiAxesComponent {
|
|
|
25
28
|
this.verticalLines = 0;
|
|
26
29
|
this.verticalLinesHandler = TUI_ALWAYS_DASHED;
|
|
27
30
|
}
|
|
28
|
-
get centeredXLabels() {
|
|
29
|
-
return this.axisY === 'none';
|
|
30
|
-
}
|
|
31
31
|
get hasXLabels() {
|
|
32
32
|
return !!this.axisXLabels.length;
|
|
33
33
|
}
|
|
@@ -42,20 +42,13 @@ class TuiAxesComponent {
|
|
|
42
42
|
return label || CHAR_NO_BREAK_SPACE;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
TuiAxesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
46
|
-
TuiAxesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
45
|
+
TuiAxesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiAxesComponent, deps: [{ token: TUI_MODE }], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
+
TuiAxesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiAxesComponent, selector: "tui-axes", inputs: { axisX: "axisX", axisXLabels: "axisXLabels", axisY: "axisY", axisYInset: "axisYInset", axisYLabels: "axisYLabels", axisYName: "axisYName", axisYSecondaryInset: "axisYSecondaryInset", axisYSecondaryLabels: "axisYSecondaryLabels", axisYSecondaryName: "axisYSecondaryName", horizontalLines: "horizontalLines", horizontalLinesHandler: "horizontalLinesHandler", verticalLines: "verticalLines", verticalLinesHandler: "verticalLinesHandler" }, host: { listeners: { "$.data-mode.attr": "mode$" }, properties: { "class._centered": "this.centeredXLabels" } }, providers: [MODE_PROVIDER], ngImport: i0, template: "<div\n *ngIf=\"hasYLabels\"\n class=\"t-side\"\n [class.t-side_padding]=\"hasXLabels\"\n>\n <div\n *ngIf=\"axisYName\"\n automation-id=\"tui-axex__axis-y-name\"\n class=\"t-name t-name_primary\"\n >\n {{ axisYName }}\n </div>\n <div\n *ngIf=\"!axisYInset\"\n class=\"t-labels-y t-labels-y_primary\"\n >\n <div\n *ngFor=\"let label of axisYLabels\"\n automation-id=\"tui-axex__axis-y-label\"\n class=\"t-label-y\"\n >\n {{ fallback(label) }}\n </div>\n </div>\n</div>\n<div class=\"t-wrapper\">\n <div\n class=\"t-grid\"\n [style.borderBottomStyle]=\"axisX\"\n [style.borderLeftStyle]=\"axisY\"\n >\n <div class=\"t-vertical\">\n <div\n *tuiRepeatTimes=\"let index of verticalLines\"\n automation-id=\"tui-axex__vertical-line\"\n class=\"t-line t-line_vertical\"\n [style.borderRightStyle]=\"verticalLinesHandler(index, verticalLines)\"\n ></div>\n </div>\n <div class=\"t-horizontal\">\n <div\n *tuiRepeatTimes=\"let index of horizontalLines\"\n automation-id=\"tui-axex__horizontal-line\"\n class=\"t-line\"\n [style.borderTopStyle]=\"horizontalLinesHandler(index, horizontalLines)\"\n ></div>\n </div>\n <div\n *ngIf=\"axisYInset\"\n class=\"t-labels-y t-labels-y_inset\"\n >\n <div\n *ngFor=\"let label of axisYLabels\"\n automation-id=\"tui-axex__axis-y-label\"\n class=\"t-label-y\"\n >\n {{ fallback(label) }}\n </div>\n </div>\n <div\n *ngIf=\"axisYSecondaryInset\"\n class=\"t-labels-y t-labels-y_inset t-labels-y_inset_secondary\"\n >\n <div\n *ngFor=\"let label of axisYSecondaryLabels\"\n automation-id=\"tui-axex__axis-y-secondary-label\"\n class=\"t-label-y\"\n >\n {{ fallback(label) }}\n </div>\n </div>\n <div class=\"t-content\">\n <ng-content></ng-content>\n </div>\n </div>\n <div\n *ngIf=\"hasXLabels\"\n class=\"t-labels-x\"\n >\n <div\n *ngFor=\"let label of axisXLabels\"\n automation-id=\"tui-axex__axis-x-label\"\n class=\"t-label-x\"\n [class.t-label-x_transparent]=\"label === null\"\n >\n {{ fallback(label) }}\n </div>\n </div>\n</div>\n<div\n *ngIf=\"hasYSecondaryLabels\"\n class=\"t-side\"\n [class.t-side_padding]=\"hasXLabels\"\n>\n <div\n *ngIf=\"!axisYSecondaryInset\"\n class=\"t-labels-y t-labels-y_secondary\"\n >\n <div\n *ngFor=\"let label of axisYSecondaryLabels\"\n automation-id=\"tui-axex__axis-y-secondary-label\"\n class=\"t-label-y\"\n >\n {{ fallback(label) }}\n </div>\n </div>\n <div\n *ngIf=\"axisYSecondaryName\"\n automation-id=\"tui-axex__axis-y-secondary-name\"\n class=\"t-name\"\n >\n {{ axisYSecondaryName }}\n </div>\n</div>\n", styles: [":host{display:flex}.t-wrapper{display:flex;flex:1;height:100%;flex-direction:column}.t-grid{position:relative;display:flex;flex:1;justify-content:space-around;align-items:flex-end;border-width:1px;border-color:var(--tui-base-03);isolation:isolate}:host[data-mode=onDark] .t-grid{border-color:#ffffff7a}:host[data-mode=onLight] .t-grid{border-color:#0000007a}.t-horizontal{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column}.t-vertical{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}:host._centered .t-vertical:after{content:\"\";display:block;flex:1 0 1px}.t-line{flex:2 0 1px;box-sizing:border-box;border-width:1px;border-color:var(--tui-base-03)}:host[data-mode=onDark] .t-line{border-color:#ffffff7a}:host[data-mode=onLight] .t-line{border-color:#0000007a}:host._centered .t-line_vertical:first-child{flex:1 0 1px;pointer-events:none}.t-side{display:flex;align-items:stretch}.t-side_padding{padding-bottom:2rem}.t-name{font:var(--tui-font-text-xs);writing-mode:tb;text-align:center;padding-left:.75rem;color:var(--tui-text-02)}.t-name_primary{transform:rotate(180deg)}:host[data-mode=onDark] .t-name{color:var(--tui-text-02-night)}.t-labels-y{display:flex;font:var(--tui-font-text-xs);flex-direction:column-reverse;justify-content:space-between;color:var(--tui-text-02)}:host[data-mode=onDark] .t-labels-y{color:var(--tui-text-02-night)}.t-labels-y_primary{text-align:right;padding-right:.75rem}.t-labels-y_secondary{padding-left:.75rem}.t-labels-y_transparent{border-color:transparent}.t-labels-y_inset{position:absolute;top:.5625rem;left:.25rem;bottom:-.75rem;pointer-events:none}.t-labels-y_inset_secondary{left:auto;right:.25rem;text-align:right}.t-labels-x{display:flex;font:var(--tui-font-text-xs);border-right:1px solid transparent;color:var(--tui-text-02)}.t-label-x{height:.4375rem;border-left:1px solid var(--tui-base-03);flex:1;margin-bottom:1.5625rem}:host[data-mode=onDark] .t-label-x{border-color:#ffffff7a}:host[data-mode=onLight] .t-label-x{border-color:#0000007a}.t-label-x:before{content:\"\";display:block;height:.5625rem}.t-label-x_transparent{border-color:transparent}:host._centered .t-label-x{height:2rem;text-align:center;border:none;margin:0}:host[new]:not(._centered) .t-label-x:last-child:not(:first-child){flex:.5;text-align:right;border-left:none}:host[new]:not(._centered) .t-label-x:nth-last-child(2){flex:.5}.t-label-y:first-child{margin-bottom:-.375rem}.t-label-y:last-child{margin-top:-.375rem}.t-content{position:absolute;top:0;left:-1px;right:0;bottom:-1px;display:flex;align-items:flex-end}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.TuiRepeatTimesDirective, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: ["tuiRepeatTimesOf"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiAxesComponent, decorators: [{
|
|
48
48
|
type: Component,
|
|
49
|
-
args: [{
|
|
50
|
-
selector: 'tui-axes',
|
|
51
|
-
templateUrl: './axes.template.html',
|
|
52
|
-
styleUrls: ['./axes.style.less'],
|
|
53
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
54
|
-
providers: [MODE_PROVIDER],
|
|
55
|
-
host: {
|
|
49
|
+
args: [{ selector: 'tui-axes', changeDetection: ChangeDetectionStrategy.OnPush, providers: [MODE_PROVIDER], host: {
|
|
56
50
|
'($.data-mode.attr)': 'mode$',
|
|
57
|
-
},
|
|
58
|
-
}]
|
|
51
|
+
}, template: "<div\n *ngIf=\"hasYLabels\"\n class=\"t-side\"\n [class.t-side_padding]=\"hasXLabels\"\n>\n <div\n *ngIf=\"axisYName\"\n automation-id=\"tui-axex__axis-y-name\"\n class=\"t-name t-name_primary\"\n >\n {{ axisYName }}\n </div>\n <div\n *ngIf=\"!axisYInset\"\n class=\"t-labels-y t-labels-y_primary\"\n >\n <div\n *ngFor=\"let label of axisYLabels\"\n automation-id=\"tui-axex__axis-y-label\"\n class=\"t-label-y\"\n >\n {{ fallback(label) }}\n </div>\n </div>\n</div>\n<div class=\"t-wrapper\">\n <div\n class=\"t-grid\"\n [style.borderBottomStyle]=\"axisX\"\n [style.borderLeftStyle]=\"axisY\"\n >\n <div class=\"t-vertical\">\n <div\n *tuiRepeatTimes=\"let index of verticalLines\"\n automation-id=\"tui-axex__vertical-line\"\n class=\"t-line t-line_vertical\"\n [style.borderRightStyle]=\"verticalLinesHandler(index, verticalLines)\"\n ></div>\n </div>\n <div class=\"t-horizontal\">\n <div\n *tuiRepeatTimes=\"let index of horizontalLines\"\n automation-id=\"tui-axex__horizontal-line\"\n class=\"t-line\"\n [style.borderTopStyle]=\"horizontalLinesHandler(index, horizontalLines)\"\n ></div>\n </div>\n <div\n *ngIf=\"axisYInset\"\n class=\"t-labels-y t-labels-y_inset\"\n >\n <div\n *ngFor=\"let label of axisYLabels\"\n automation-id=\"tui-axex__axis-y-label\"\n class=\"t-label-y\"\n >\n {{ fallback(label) }}\n </div>\n </div>\n <div\n *ngIf=\"axisYSecondaryInset\"\n class=\"t-labels-y t-labels-y_inset t-labels-y_inset_secondary\"\n >\n <div\n *ngFor=\"let label of axisYSecondaryLabels\"\n automation-id=\"tui-axex__axis-y-secondary-label\"\n class=\"t-label-y\"\n >\n {{ fallback(label) }}\n </div>\n </div>\n <div class=\"t-content\">\n <ng-content></ng-content>\n </div>\n </div>\n <div\n *ngIf=\"hasXLabels\"\n class=\"t-labels-x\"\n >\n <div\n *ngFor=\"let label of axisXLabels\"\n automation-id=\"tui-axex__axis-x-label\"\n class=\"t-label-x\"\n [class.t-label-x_transparent]=\"label === null\"\n >\n {{ fallback(label) }}\n </div>\n </div>\n</div>\n<div\n *ngIf=\"hasYSecondaryLabels\"\n class=\"t-side\"\n [class.t-side_padding]=\"hasXLabels\"\n>\n <div\n *ngIf=\"!axisYSecondaryInset\"\n class=\"t-labels-y t-labels-y_secondary\"\n >\n <div\n *ngFor=\"let label of axisYSecondaryLabels\"\n automation-id=\"tui-axex__axis-y-secondary-label\"\n class=\"t-label-y\"\n >\n {{ fallback(label) }}\n </div>\n </div>\n <div\n *ngIf=\"axisYSecondaryName\"\n automation-id=\"tui-axex__axis-y-secondary-name\"\n class=\"t-name\"\n >\n {{ axisYSecondaryName }}\n </div>\n</div>\n", styles: [":host{display:flex}.t-wrapper{display:flex;flex:1;height:100%;flex-direction:column}.t-grid{position:relative;display:flex;flex:1;justify-content:space-around;align-items:flex-end;border-width:1px;border-color:var(--tui-base-03);isolation:isolate}:host[data-mode=onDark] .t-grid{border-color:#ffffff7a}:host[data-mode=onLight] .t-grid{border-color:#0000007a}.t-horizontal{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column}.t-vertical{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}:host._centered .t-vertical:after{content:\"\";display:block;flex:1 0 1px}.t-line{flex:2 0 1px;box-sizing:border-box;border-width:1px;border-color:var(--tui-base-03)}:host[data-mode=onDark] .t-line{border-color:#ffffff7a}:host[data-mode=onLight] .t-line{border-color:#0000007a}:host._centered .t-line_vertical:first-child{flex:1 0 1px;pointer-events:none}.t-side{display:flex;align-items:stretch}.t-side_padding{padding-bottom:2rem}.t-name{font:var(--tui-font-text-xs);writing-mode:tb;text-align:center;padding-left:.75rem;color:var(--tui-text-02)}.t-name_primary{transform:rotate(180deg)}:host[data-mode=onDark] .t-name{color:var(--tui-text-02-night)}.t-labels-y{display:flex;font:var(--tui-font-text-xs);flex-direction:column-reverse;justify-content:space-between;color:var(--tui-text-02)}:host[data-mode=onDark] .t-labels-y{color:var(--tui-text-02-night)}.t-labels-y_primary{text-align:right;padding-right:.75rem}.t-labels-y_secondary{padding-left:.75rem}.t-labels-y_transparent{border-color:transparent}.t-labels-y_inset{position:absolute;top:.5625rem;left:.25rem;bottom:-.75rem;pointer-events:none}.t-labels-y_inset_secondary{left:auto;right:.25rem;text-align:right}.t-labels-x{display:flex;font:var(--tui-font-text-xs);border-right:1px solid transparent;color:var(--tui-text-02)}.t-label-x{height:.4375rem;border-left:1px solid var(--tui-base-03);flex:1;margin-bottom:1.5625rem}:host[data-mode=onDark] .t-label-x{border-color:#ffffff7a}:host[data-mode=onLight] .t-label-x{border-color:#0000007a}.t-label-x:before{content:\"\";display:block;height:.5625rem}.t-label-x_transparent{border-color:transparent}:host._centered .t-label-x{height:2rem;text-align:center;border:none;margin:0}:host[new]:not(._centered) .t-label-x:last-child:not(:first-child){flex:.5;text-align:right;border-left:none}:host[new]:not(._centered) .t-label-x:nth-last-child(2){flex:.5}.t-label-y:first-child{margin-bottom:-.375rem}.t-label-y:last-child{margin-top:-.375rem}.t-content{position:absolute;top:0;left:-1px;right:0;bottom:-1px;display:flex;align-items:flex-end}\n"] }]
|
|
59
52
|
}], ctorParameters: function () { return [{ type: i3.Observable, decorators: [{
|
|
60
53
|
type: Inject,
|
|
61
54
|
args: [TUI_MODE]
|
|
@@ -92,10 +85,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
92
85
|
|
|
93
86
|
class TuiAxesModule {
|
|
94
87
|
}
|
|
95
|
-
TuiAxesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
96
|
-
TuiAxesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
97
|
-
TuiAxesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
98
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
88
|
+
TuiAxesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiAxesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
89
|
+
TuiAxesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiAxesModule, declarations: [TuiAxesComponent], imports: [CommonModule, TuiRepeatTimesModule], exports: [TuiAxesComponent] });
|
|
90
|
+
TuiAxesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiAxesModule, imports: [CommonModule, TuiRepeatTimesModule] });
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiAxesModule, decorators: [{
|
|
99
92
|
type: NgModule,
|
|
100
93
|
args: [{
|
|
101
94
|
imports: [CommonModule, TuiRepeatTimesModule],
|
|
@@ -109,4 +102,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
109
102
|
*/
|
|
110
103
|
|
|
111
104
|
export { TuiAxesComponent, TuiAxesModule };
|
|
112
|
-
//# sourceMappingURL=taiga-ui-addon-charts-components-axes.
|
|
105
|
+
//# sourceMappingURL=taiga-ui-addon-charts-components-axes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-charts-components-axes.mjs","sources":["../../../projects/addon-charts/components/axes/axes.component.ts","../../../projects/addon-charts/components/axes/axes.template.html","../../../projects/addon-charts/components/axes/axes.module.ts","../../../projects/addon-charts/components/axes/taiga-ui-addon-charts-components-axes.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Inject,\n Input,\n} from '@angular/core';\nimport {TUI_ALWAYS_DASHED, TUI_ALWAYS_SOLID} from '@taiga-ui/addon-charts/constants';\nimport {TuiLineHandler, TuiLineType} from '@taiga-ui/addon-charts/types';\nimport {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk';\nimport {MODE_PROVIDER, TUI_MODE, TuiBrightness} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: 'tui-axes',\n templateUrl: './axes.template.html',\n styleUrls: ['./axes.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [MODE_PROVIDER],\n host: {\n '($.data-mode.attr)': 'mode$',\n },\n})\nexport class TuiAxesComponent {\n @Input()\n axisX: TuiLineType = 'solid';\n\n @Input()\n axisXLabels: ReadonlyArray<string | null> = [];\n\n @Input()\n axisY: TuiLineType = 'solid';\n\n @Input()\n axisYInset = false;\n\n @Input()\n axisYLabels: readonly string[] = [];\n\n @Input()\n axisYName = '';\n\n @Input()\n axisYSecondaryInset = false;\n\n @Input()\n axisYSecondaryLabels: readonly string[] = [];\n\n @Input()\n axisYSecondaryName = '';\n\n @Input()\n horizontalLines = 0;\n\n @Input()\n horizontalLinesHandler: TuiLineHandler = TUI_ALWAYS_SOLID;\n\n @Input()\n verticalLines = 0;\n\n @Input()\n verticalLinesHandler: TuiLineHandler = TUI_ALWAYS_DASHED;\n\n @HostBinding('class._centered')\n get centeredXLabels(): boolean {\n return this.axisY === 'none';\n }\n\n constructor(@Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>) {}\n\n get hasXLabels(): boolean {\n return !!this.axisXLabels.length;\n }\n\n get hasYLabels(): boolean {\n return (!!this.axisYLabels.length && !this.axisYInset) || !!this.axisYName;\n }\n\n get hasYSecondaryLabels(): boolean {\n return (\n (!!this.axisYSecondaryLabels.length && !this.axisYSecondaryInset) ||\n !!this.axisYSecondaryName\n );\n }\n\n fallback(label: string | null): string {\n return label || CHAR_NO_BREAK_SPACE;\n }\n}\n","<div\n *ngIf=\"hasYLabels\"\n class=\"t-side\"\n [class.t-side_padding]=\"hasXLabels\"\n>\n <div\n *ngIf=\"axisYName\"\n automation-id=\"tui-axex__axis-y-name\"\n class=\"t-name t-name_primary\"\n >\n {{ axisYName }}\n </div>\n <div\n *ngIf=\"!axisYInset\"\n class=\"t-labels-y t-labels-y_primary\"\n >\n <div\n *ngFor=\"let label of axisYLabels\"\n automation-id=\"tui-axex__axis-y-label\"\n class=\"t-label-y\"\n >\n {{ fallback(label) }}\n </div>\n </div>\n</div>\n<div class=\"t-wrapper\">\n <div\n class=\"t-grid\"\n [style.borderBottomStyle]=\"axisX\"\n [style.borderLeftStyle]=\"axisY\"\n >\n <div class=\"t-vertical\">\n <div\n *tuiRepeatTimes=\"let index of verticalLines\"\n automation-id=\"tui-axex__vertical-line\"\n class=\"t-line t-line_vertical\"\n [style.borderRightStyle]=\"verticalLinesHandler(index, verticalLines)\"\n ></div>\n </div>\n <div class=\"t-horizontal\">\n <div\n *tuiRepeatTimes=\"let index of horizontalLines\"\n automation-id=\"tui-axex__horizontal-line\"\n class=\"t-line\"\n [style.borderTopStyle]=\"horizontalLinesHandler(index, horizontalLines)\"\n ></div>\n </div>\n <div\n *ngIf=\"axisYInset\"\n class=\"t-labels-y t-labels-y_inset\"\n >\n <div\n *ngFor=\"let label of axisYLabels\"\n automation-id=\"tui-axex__axis-y-label\"\n class=\"t-label-y\"\n >\n {{ fallback(label) }}\n </div>\n </div>\n <div\n *ngIf=\"axisYSecondaryInset\"\n class=\"t-labels-y t-labels-y_inset t-labels-y_inset_secondary\"\n >\n <div\n *ngFor=\"let label of axisYSecondaryLabels\"\n automation-id=\"tui-axex__axis-y-secondary-label\"\n class=\"t-label-y\"\n >\n {{ fallback(label) }}\n </div>\n </div>\n <div class=\"t-content\">\n <ng-content></ng-content>\n </div>\n </div>\n <div\n *ngIf=\"hasXLabels\"\n class=\"t-labels-x\"\n >\n <div\n *ngFor=\"let label of axisXLabels\"\n automation-id=\"tui-axex__axis-x-label\"\n class=\"t-label-x\"\n [class.t-label-x_transparent]=\"label === null\"\n >\n {{ fallback(label) }}\n </div>\n </div>\n</div>\n<div\n *ngIf=\"hasYSecondaryLabels\"\n class=\"t-side\"\n [class.t-side_padding]=\"hasXLabels\"\n>\n <div\n *ngIf=\"!axisYSecondaryInset\"\n class=\"t-labels-y t-labels-y_secondary\"\n >\n <div\n *ngFor=\"let label of axisYSecondaryLabels\"\n automation-id=\"tui-axex__axis-y-secondary-label\"\n class=\"t-label-y\"\n >\n {{ fallback(label) }}\n </div>\n </div>\n <div\n *ngIf=\"axisYSecondaryName\"\n automation-id=\"tui-axex__axis-y-secondary-name\"\n class=\"t-name\"\n >\n {{ axisYSecondaryName }}\n </div>\n</div>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiRepeatTimesModule} from '@taiga-ui/cdk';\n\nimport {TuiAxesComponent} from './axes.component';\n\n@NgModule({\n imports: [CommonModule, TuiRepeatTimesModule],\n declarations: [TuiAxesComponent],\n exports: [TuiAxesComponent],\n})\nexport class TuiAxesModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MAuBa,gBAAgB,CAAA;AAwCzB,IAAA,IACI,eAAe,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,KAAK,KAAK,MAAM,CAAC;KAChC;AAED,IAAA,WAAA,CAAuC,KAAuC,EAAA;QAAvC,IAAK,CAAA,KAAA,GAAL,KAAK,CAAkC;QA3C9E,IAAK,CAAA,KAAA,GAAgB,OAAO,CAAC;QAG7B,IAAW,CAAA,WAAA,GAAiC,EAAE,CAAC;QAG/C,IAAK,CAAA,KAAA,GAAgB,OAAO,CAAC;QAG7B,IAAU,CAAA,UAAA,GAAG,KAAK,CAAC;QAGnB,IAAW,CAAA,WAAA,GAAsB,EAAE,CAAC;QAGpC,IAAS,CAAA,SAAA,GAAG,EAAE,CAAC;QAGf,IAAmB,CAAA,mBAAA,GAAG,KAAK,CAAC;QAG5B,IAAoB,CAAA,oBAAA,GAAsB,EAAE,CAAC;QAG7C,IAAkB,CAAA,kBAAA,GAAG,EAAE,CAAC;QAGxB,IAAe,CAAA,eAAA,GAAG,CAAC,CAAC;QAGpB,IAAsB,CAAA,sBAAA,GAAmB,gBAAgB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,EAAE,CAAC,gBAAgB,CAAC;AAC9B,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { __decorate } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { Component, ChangeDetectionStrategy, Optional, Inject, ViewChildren, Input, NgModule } from '@angular/core';
|
|
4
|
-
import * as
|
|
4
|
+
import * as i3 from '@taiga-ui/cdk';
|
|
5
5
|
import { EMPTY_QUERY, tuiSum, TuiIdService, tuiPure, TuiFocusableModule, TuiMapperPipeModule } from '@taiga-ui/cdk';
|
|
6
|
-
import * as
|
|
6
|
+
import * as i4 from '@taiga-ui/core';
|
|
7
7
|
import { TuiHintOptionsDirective, TuiHintHoverDirective, tuiHintOptionsProvider, TuiHintModule } from '@taiga-ui/core';
|
|
8
|
-
import * as i1 from '@
|
|
9
|
-
import { TuiBarSetModule } from '@taiga-ui/addon-charts/components/bar-set';
|
|
10
|
-
import * as i2 from '@angular/common';
|
|
8
|
+
import * as i1 from '@angular/common';
|
|
11
9
|
import { CommonModule } from '@angular/common';
|
|
10
|
+
import * as i2 from '@taiga-ui/addon-charts/components/bar-set';
|
|
11
|
+
import { TuiBarSetModule } from '@taiga-ui/addon-charts/components/bar-set';
|
|
12
12
|
|
|
13
13
|
class TuiBarChartComponent {
|
|
14
14
|
constructor(hintOptions, idService) {
|
|
@@ -22,8 +22,7 @@ class TuiBarChartComponent {
|
|
|
22
22
|
this.autoIdString = idService.generate();
|
|
23
23
|
}
|
|
24
24
|
get hintContent() {
|
|
25
|
-
|
|
26
|
-
return ((_a = this.hintOptions) === null || _a === void 0 ? void 0 : _a.content) || '';
|
|
25
|
+
return this.hintOptions?.content || '';
|
|
27
26
|
}
|
|
28
27
|
get transposed() {
|
|
29
28
|
return this.transpose(this.value);
|
|
@@ -45,29 +44,23 @@ class TuiBarChartComponent {
|
|
|
45
44
|
: values.reduce((max, value) => Math.max(...value, max), 0);
|
|
46
45
|
}
|
|
47
46
|
}
|
|
48
|
-
TuiBarChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
49
|
-
TuiBarChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
47
|
+
TuiBarChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiBarChartComponent, deps: [{ token: TuiHintOptionsDirective, optional: true }, { token: TuiIdService }], target: i0.ɵɵFactoryTarget.Component });
|
|
48
|
+
TuiBarChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiBarChartComponent, selector: "tui-bar-chart", inputs: { value: "value", max: "max", size: "size", collapsed: "collapsed" }, viewQueries: [{ propertyName: "drivers", predicate: TuiHintHoverDirective, descendants: true }], ngImport: i0, template: "<div\n *ngFor=\"let set of transposed; let index = index\"\n class=\"t-wrapper\"\n [class.t-wrapper_hoverable]=\"!!hintContent\"\n [class.t-wrapper_hovered]=\"drivers.get(index) | async\"\n [tuiHint]=\"hintContent\"\n [tuiHintContext]=\"{$implicit: index}\"\n [tuiHintDescribe]=\"getHintId(index)\"\n [tuiHintHost]=\"hintHost\"\n (mouseenter.once)=\"(0)\"\n>\n <div\n class=\"t-container\"\n [style.height.%]=\"set | tuiMapper: percentMapper : collapsed : computedMax\"\n >\n <div\n #hintHost\n class=\"t-host\"\n ></div>\n <tui-bar-set\n class=\"t-set\"\n [collapsed]=\"collapsed\"\n [id]=\"getHintId(index)\"\n [size]=\"size\"\n [tuiFocusable]=\"!!hintContent\"\n [value]=\"set\"\n ></tui-bar-set>\n </div>\n</div>\n", styles: [":host{display:flex;flex:1;height:100%}.t-wrapper{transition-property:background-color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:flex;flex:1;align-items:flex-end;justify-content:center;height:100%}.t-wrapper_hoverable{cursor:pointer}.t-wrapper_hoverable:hover,.t-wrapper_hoverable.t-wrapper_hovered{background-color:#0000000d}.t-container{flex:1}.t-host{position:absolute;left:50%;right:50%}.t-set{border-radius:var(--tui-radius-m);pointer-events:none;outline:none}.t-set:focus{box-shadow:0 0 0 2px var(--tui-focus)}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.TuiBarSetComponent, selector: "tui-bar-set", inputs: ["value", "size", "collapsed"] }, { kind: "directive", type: i3.TuiFocusableDirective, selector: "[tuiFocusable]", inputs: ["tuiFocusable"] }, { kind: "directive", type: i4.TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHint", "tuiHintContext", "tuiHintAppearance"] }, { kind: "directive", type: i4.TuiHintDriverDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)" }, { kind: "directive", type: i4.TuiHintHostDirective, selector: "[tuiHint][tuiHintHost]", inputs: ["tuiHintHost"] }, { kind: "directive", type: i4.TuiHintHoverDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHintShowDelay", "tuiHintHideDelay"], exportAs: ["tuiHintHover"] }, { kind: "directive", type: i4.TuiHintDescribeDirective, selector: "[tuiHintDescribe]", inputs: ["tuiHintDescribe"] }, { kind: "directive", type: i4.TuiHintPositionDirective, selector: "[tuiHint]:not([tuiHintCustomPosition]):not(ng-container):not(ng-template)", inputs: ["tuiHintDirection"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TuiMapperPipe, name: "tuiMapper" }], viewProviders: [tuiHintOptionsProvider({ direction: 'top' })], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
50
49
|
__decorate([
|
|
51
50
|
tuiPure
|
|
52
51
|
], TuiBarChartComponent.prototype, "transpose", null);
|
|
53
52
|
__decorate([
|
|
54
53
|
tuiPure
|
|
55
54
|
], TuiBarChartComponent.prototype, "getMax", null);
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiBarChartComponent, decorators: [{
|
|
57
56
|
type: Component,
|
|
58
|
-
args: [{
|
|
59
|
-
|
|
60
|
-
templateUrl: './bar-chart.template.html',
|
|
61
|
-
styleUrls: ['./bar-chart.style.less'],
|
|
62
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
63
|
-
viewProviders: [tuiHintOptionsProvider({ direction: 'top' })],
|
|
64
|
-
}]
|
|
65
|
-
}], ctorParameters: function () { return [{ type: i3.TuiHintOptionsDirective, decorators: [{
|
|
57
|
+
args: [{ selector: 'tui-bar-chart', changeDetection: ChangeDetectionStrategy.OnPush, viewProviders: [tuiHintOptionsProvider({ direction: 'top' })], template: "<div\n *ngFor=\"let set of transposed; let index = index\"\n class=\"t-wrapper\"\n [class.t-wrapper_hoverable]=\"!!hintContent\"\n [class.t-wrapper_hovered]=\"drivers.get(index) | async\"\n [tuiHint]=\"hintContent\"\n [tuiHintContext]=\"{$implicit: index}\"\n [tuiHintDescribe]=\"getHintId(index)\"\n [tuiHintHost]=\"hintHost\"\n (mouseenter.once)=\"(0)\"\n>\n <div\n class=\"t-container\"\n [style.height.%]=\"set | tuiMapper: percentMapper : collapsed : computedMax\"\n >\n <div\n #hintHost\n class=\"t-host\"\n ></div>\n <tui-bar-set\n class=\"t-set\"\n [collapsed]=\"collapsed\"\n [id]=\"getHintId(index)\"\n [size]=\"size\"\n [tuiFocusable]=\"!!hintContent\"\n [value]=\"set\"\n ></tui-bar-set>\n </div>\n</div>\n", styles: [":host{display:flex;flex:1;height:100%}.t-wrapper{transition-property:background-color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:flex;flex:1;align-items:flex-end;justify-content:center;height:100%}.t-wrapper_hoverable{cursor:pointer}.t-wrapper_hoverable:hover,.t-wrapper_hoverable.t-wrapper_hovered{background-color:#0000000d}.t-container{flex:1}.t-host{position:absolute;left:50%;right:50%}.t-set{border-radius:var(--tui-radius-m);pointer-events:none;outline:none}.t-set:focus{box-shadow:0 0 0 2px var(--tui-focus)}\n"] }]
|
|
58
|
+
}], ctorParameters: function () { return [{ type: i4.TuiHintOptionsDirective, decorators: [{
|
|
66
59
|
type: Optional
|
|
67
60
|
}, {
|
|
68
61
|
type: Inject,
|
|
69
62
|
args: [TuiHintOptionsDirective]
|
|
70
|
-
}] }, { type:
|
|
63
|
+
}] }, { type: i3.TuiIdService, decorators: [{
|
|
71
64
|
type: Inject,
|
|
72
65
|
args: [TuiIdService]
|
|
73
66
|
}] }]; }, propDecorators: { drivers: [{
|
|
@@ -85,20 +78,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
85
78
|
|
|
86
79
|
class TuiBarChartModule {
|
|
87
80
|
}
|
|
88
|
-
TuiBarChartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
89
|
-
TuiBarChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
81
|
+
TuiBarChartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiBarChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
82
|
+
TuiBarChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiBarChartModule, declarations: [TuiBarChartComponent], imports: [CommonModule,
|
|
90
83
|
TuiBarSetModule,
|
|
91
84
|
TuiFocusableModule,
|
|
92
85
|
TuiHintModule,
|
|
93
86
|
TuiMapperPipeModule], exports: [TuiBarChartComponent] });
|
|
94
|
-
TuiBarChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
]] });
|
|
101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiBarChartModule, decorators: [{
|
|
87
|
+
TuiBarChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiBarChartModule, imports: [CommonModule,
|
|
88
|
+
TuiBarSetModule,
|
|
89
|
+
TuiFocusableModule,
|
|
90
|
+
TuiHintModule,
|
|
91
|
+
TuiMapperPipeModule] });
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiBarChartModule, decorators: [{
|
|
102
93
|
type: NgModule,
|
|
103
94
|
args: [{
|
|
104
95
|
imports: [
|
|
@@ -118,4 +109,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
118
109
|
*/
|
|
119
110
|
|
|
120
111
|
export { TuiBarChartComponent, TuiBarChartModule };
|
|
121
|
-
//# sourceMappingURL=taiga-ui-addon-charts-components-bar-chart.
|
|
112
|
+
//# sourceMappingURL=taiga-ui-addon-charts-components-bar-chart.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-charts-components-bar-chart.mjs","sources":["../../../projects/addon-charts/components/bar-chart/bar-chart.component.ts","../../../projects/addon-charts/components/bar-chart/bar-chart.template.html","../../../projects/addon-charts/components/bar-chart/bar-chart.module.ts","../../../projects/addon-charts/components/bar-chart/taiga-ui-addon-charts-components-bar-chart.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n Input,\n Optional,\n QueryList,\n ViewChildren,\n} from '@angular/core';\nimport {\n EMPTY_QUERY,\n TuiContextWithImplicit,\n TuiIdService,\n tuiPure,\n tuiSum,\n TuiTypedMapper,\n} from '@taiga-ui/cdk';\nimport {\n TuiHintHoverDirective,\n TuiHintOptionsDirective,\n tuiHintOptionsProvider,\n TuiSizeL,\n TuiSizeS,\n} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: 'tui-bar-chart',\n templateUrl: './bar-chart.template.html',\n styleUrls: ['./bar-chart.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n viewProviders: [tuiHintOptionsProvider({direction: 'top'})],\n})\nexport class TuiBarChartComponent {\n private readonly autoIdString: string;\n\n @ViewChildren(TuiHintHoverDirective)\n readonly drivers: QueryList<Observable<boolean>> = EMPTY_QUERY;\n\n @Input()\n value: ReadonlyArray<readonly number[]> = [];\n\n @Input()\n max = NaN;\n\n @Input()\n size: TuiSizeL | TuiSizeS | null = 'm';\n\n @Input()\n collapsed = false;\n\n constructor(\n @Optional()\n @Inject(TuiHintOptionsDirective)\n private readonly hintOptions: TuiHintOptionsDirective | null,\n @Inject(TuiIdService) idService: TuiIdService,\n ) {\n this.autoIdString = idService.generate();\n }\n\n get hintContent(): PolymorpheusContent<TuiContextWithImplicit<number>> {\n return this.hintOptions?.content || '';\n }\n\n get transposed(): ReadonlyArray<readonly number[]> {\n return this.transpose(this.value);\n }\n\n get computedMax(): number {\n return this.max || this.getMax(this.value, this.collapsed);\n }\n\n readonly percentMapper: TuiTypedMapper<[readonly number[], boolean, number], number> =\n (set, collapsed, max) =>\n (100 * (collapsed ? tuiSum(...set) : Math.max(...set))) / max;\n\n getHintId(index: number): string {\n return `${this.autoIdString}_${index}`;\n }\n\n @tuiPure\n private transpose(\n value: ReadonlyArray<readonly number[]>,\n ): ReadonlyArray<readonly number[]> {\n return value.reduce<ReadonlyArray<readonly number[]>>(\n (result, next) =>\n next.map((_, index) => [...(result[index] || []), next[index]]),\n [],\n );\n }\n\n @tuiPure\n private getMax(values: ReadonlyArray<readonly number[]>, collapsed: boolean): number {\n return collapsed\n ? Math.max(\n // eslint-disable-next-line no-restricted-syntax\n ...values.reduce((result, next) =>\n result.map((value, index) => value + next[index]),\n ),\n )\n : values.reduce((max, value) => Math.max(...value, max), 0);\n }\n}\n","<div\n *ngFor=\"let set of transposed; let index = index\"\n class=\"t-wrapper\"\n [class.t-wrapper_hoverable]=\"!!hintContent\"\n [class.t-wrapper_hovered]=\"drivers.get(index) | async\"\n [tuiHint]=\"hintContent\"\n [tuiHintContext]=\"{$implicit: index}\"\n [tuiHintDescribe]=\"getHintId(index)\"\n [tuiHintHost]=\"hintHost\"\n (mouseenter.once)=\"(0)\"\n>\n <div\n class=\"t-container\"\n [style.height.%]=\"set | tuiMapper: percentMapper : collapsed : computedMax\"\n >\n <div\n #hintHost\n class=\"t-host\"\n ></div>\n <tui-bar-set\n class=\"t-set\"\n [collapsed]=\"collapsed\"\n [id]=\"getHintId(index)\"\n [size]=\"size\"\n [tuiFocusable]=\"!!hintContent\"\n [value]=\"set\"\n ></tui-bar-set>\n </div>\n</div>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiBarSetModule} from '@taiga-ui/addon-charts/components/bar-set';\nimport {TuiFocusableModule, TuiMapperPipeModule} from '@taiga-ui/cdk';\nimport {TuiHintModule} from '@taiga-ui/core';\n\nimport {TuiBarChartComponent} from './bar-chart.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiBarSetModule,\n TuiFocusableModule,\n TuiHintModule,\n TuiMapperPipeModule,\n ],\n declarations: [TuiBarChartComponent],\n exports: [TuiBarChartComponent],\n})\nexport class TuiBarChartModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;MAkCa,oBAAoB,CAAA;IAkB7B,WAGqB,CAAA,WAA2C,EACtC,SAAuB,EAAA;QAD5B,IAAW,CAAA,WAAA,GAAX,WAAW,CAAgC;QAjBvD,IAAO,CAAA,OAAA,GAAmC,WAAW,CAAC;QAG/D,IAAK,CAAA,KAAA,GAAqC,EAAE,CAAC;QAG7C,IAAG,CAAA,GAAA,GAAG,G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