@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
|
@@ -8,10 +8,10 @@ import { TuiLineDaysChartHintDirective } from './line-days-chart-hint.directive'
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export class TuiLineDaysChartModule {
|
|
10
10
|
}
|
|
11
|
-
TuiLineDaysChartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12
|
-
TuiLineDaysChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
13
|
-
TuiLineDaysChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11
|
+
TuiLineDaysChartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiLineDaysChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12
|
+
TuiLineDaysChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiLineDaysChartModule, declarations: [TuiLineDaysChartComponent, TuiLineDaysChartHintDirective], imports: [CommonModule, TuiLineChartModule, PolymorpheusModule, TuiHintModule], exports: [TuiLineDaysChartComponent, TuiLineDaysChartHintDirective] });
|
|
13
|
+
TuiLineDaysChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiLineDaysChartModule, imports: [CommonModule, TuiLineChartModule, PolymorpheusModule, TuiHintModule] });
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiLineDaysChartModule, decorators: [{
|
|
15
15
|
type: NgModule,
|
|
16
16
|
args: [{
|
|
17
17
|
imports: [CommonModule, TuiLineChartModule, PolymorpheusModule, TuiHintModule],
|
|
@@ -19,4 +19,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
19
19
|
exports: [TuiLineDaysChartComponent, TuiLineDaysChartHintDirective],
|
|
20
20
|
}]
|
|
21
21
|
}] });
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluZS1kYXlzLWNoYXJ0Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FkZG9uLWNoYXJ0cy9jb21wb25lbnRzL2xpbmUtZGF5cy1jaGFydC9saW5lLWRheXMtY2hhcnQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUM3QyxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSx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tdWkvYWRkb24tY2hhcnRzL2NvbXBvbmVudHMvbGluZS1jaGFydCc7XG5pbXBvcnQge1R1aUhpbnRNb2R1bGV9IGZyb20gJ0B0YWlnYS11aS9jb3JlJztcbmltcG9ydCB7UG9seW1vcnBoZXVzTW9kdWxlfSBmcm9tICdAdGlua29mZi9uZy1wb2x5bW9ycGhldXMnO1xuXG5pbXBvcnQge1R1aUxpbmVEYXlzQ2hhcnRDb21wb25lbnR9IGZyb20gJy4vbGluZS1kYXlzLWNoYXJ0LmNvbXBvbmVudCc7XG5pbXBvcnQge1R1aUxpbmVEYXlzQ2hhcnRIaW50RGlyZWN0aXZlfSBmcm9tICcuL2xpbmUtZGF5cy1jaGFydC1oaW50LmRpcmVjdGl2ZSc7XG5cbkBOZ01vZHVsZSh7XG4gICAgaW1wb3J0czogW0NvbW1vbk1vZHVsZSwgVHVpTGluZUNoYXJ0TW9kdWxlLCBQb2x5bW9ycGhldXNNb2R1bGUsIFR1aUhpbnRNb2R1bGVdLFxuICAgIGRlY2xhcmF0aW9uczogW1R1aUxpbmVEYXlzQ2hhcnRDb21wb25lbnQsIFR1aUxpbmVEYXlzQ2hhcnRIaW50RGlyZWN0aXZlXSxcbiAgICBleHBvcnRzOiBbVHVpTGluZURheXNDaGFydENvbXBvbmVudCwgVHVpTGluZURheXNDaGFydEhpbnREaXJlY3RpdmVdLFxufSlcbmV4cG9ydCBjbGFzcyBUdWlMaW5lRGF5c0NoYXJ0TW9kdWxlIHt9XG4iXX0=
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, HostBinding, Inject, Input, Optional, Output, } from '@angular/core';
|
|
3
|
+
import { TuiIdService, tuiPure, tuiSum } from '@taiga-ui/cdk';
|
|
4
|
+
import { TuiHintOptionsDirective, tuiHintOptionsProvider, } from '@taiga-ui/core';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@taiga-ui/cdk";
|
|
7
|
+
import * as i2 from "@taiga-ui/core";
|
|
8
|
+
import * as i3 from "./pie-chart.directive";
|
|
9
|
+
const RADII = {
|
|
10
|
+
xs: '50',
|
|
11
|
+
s: '50',
|
|
12
|
+
m: '77.8',
|
|
13
|
+
l: '81.9',
|
|
14
|
+
xl: '81.3',
|
|
15
|
+
};
|
|
16
|
+
const TRANSFORM = {
|
|
17
|
+
xs: 1.15,
|
|
18
|
+
s: 1.25,
|
|
19
|
+
m: 1.11,
|
|
20
|
+
l: 1.09,
|
|
21
|
+
xl: 1.08,
|
|
22
|
+
};
|
|
23
|
+
export class TuiPieChartComponent {
|
|
24
|
+
constructor(idService, hintOptions) {
|
|
25
|
+
this.hintOptions = hintOptions;
|
|
26
|
+
this.value = [];
|
|
27
|
+
this.size = 'm';
|
|
28
|
+
this.masked = false;
|
|
29
|
+
this.activeItemIndex = NaN;
|
|
30
|
+
this.activeItemIndexChange = new EventEmitter();
|
|
31
|
+
this.autoIdString = idService.generate();
|
|
32
|
+
if (this.hintOptions) {
|
|
33
|
+
this.hintOptions.showDelay = 0;
|
|
34
|
+
this.hintOptions.hideDelay = 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
get empty() {
|
|
38
|
+
return !this.getSum(this.value);
|
|
39
|
+
}
|
|
40
|
+
get hintContent() {
|
|
41
|
+
return this.hintOptions?.content || '';
|
|
42
|
+
}
|
|
43
|
+
get maskId() {
|
|
44
|
+
return `tui-ring-chart-${this.autoIdString}`;
|
|
45
|
+
}
|
|
46
|
+
get mask() {
|
|
47
|
+
return this.masked ? `url(#${this.maskId})` : null;
|
|
48
|
+
}
|
|
49
|
+
get radius() {
|
|
50
|
+
return RADII[this.size];
|
|
51
|
+
}
|
|
52
|
+
get segments() {
|
|
53
|
+
return this.getSegments(this.value);
|
|
54
|
+
}
|
|
55
|
+
getTransform(index) {
|
|
56
|
+
const transform = this.masked
|
|
57
|
+
? `scale(${TRANSFORM[this.size]})`
|
|
58
|
+
: `scale(${TRANSFORM.xs})`;
|
|
59
|
+
return index === this.activeItemIndex ? transform : null;
|
|
60
|
+
}
|
|
61
|
+
onHovered(hovered, index) {
|
|
62
|
+
this.updateActiveItemIndex(hovered ? index : NaN);
|
|
63
|
+
}
|
|
64
|
+
getColor(index) {
|
|
65
|
+
return `var(--tui-chart-${index})`;
|
|
66
|
+
}
|
|
67
|
+
getSum(value) {
|
|
68
|
+
return tuiSum(...value);
|
|
69
|
+
}
|
|
70
|
+
getSegments(value) {
|
|
71
|
+
return value
|
|
72
|
+
.map((initial, i, array) => array.reduce((sum, current, j) => (j < i ? this.getDeg(current) + sum : sum), this.getDeg(initial)))
|
|
73
|
+
.map((angle, index, array) => [
|
|
74
|
+
array[index - 1] || 0,
|
|
75
|
+
Math.min(angle, 359.9999),
|
|
76
|
+
]);
|
|
77
|
+
}
|
|
78
|
+
getDeg(value) {
|
|
79
|
+
return 360 * (value / this.getSum(this.value));
|
|
80
|
+
}
|
|
81
|
+
updateActiveItemIndex(index) {
|
|
82
|
+
if (index === this.activeItemIndex) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
this.activeItemIndex = index;
|
|
86
|
+
this.activeItemIndexChange.next(index);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
TuiPieChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiPieChartComponent, deps: [{ token: TuiIdService }, { token: TuiHintOptionsDirective, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
90
|
+
TuiPieChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiPieChartComponent, selector: "tui-pie-chart", inputs: { value: "value", size: "size", masked: "masked", activeItemIndex: "activeItemIndex" }, outputs: { activeItemIndexChange: "activeItemIndexChange" }, host: { properties: { "attr.data-size": "this.size", "class._empty": "this.empty" } }, ngImport: i0, template: "<svg\n focusable=\"false\"\n height=\"100%\"\n viewBox=\"-100 -100 200 200\"\n width=\"100%\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"t-svg\"\n>\n <defs>\n <mask [attr.id]=\"maskId\">\n <rect\n fill=\"white\"\n height=\"400\"\n width=\"400\"\n x=\"-200\"\n y=\"-200\"\n />\n <circle\n cx=\"0\"\n cy=\"0\"\n [attr.r]=\"radius\"\n />\n </mask>\n </defs>\n <g [style.mask]=\"mask\">\n <circle\n cx=\"0\"\n cy=\"0\"\n r=\"100\"\n class=\"t-placeholder\"\n />\n <path\n *tuiRepeatTimes=\"let index of segments.length\"\n automation-id=\"tui-pie-chart__segment\"\n d=\"\"\n fill=\"currentColor\"\n tuiHintPointer\n class=\"t-segment\"\n [attr.transform]=\"getTransform(index)\"\n [style.color]=\"getColor(index)\"\n [tuiHint]=\"hintContent\"\n [tuiHintContext]=\"{$implicit: index}\"\n [tuiPieChart]=\"segments[index]\"\n (tuiHoveredChange)=\"onHovered($event, index)\"\n />\n </g>\n</svg>\n", styles: [":host{position:relative;display:block}:host[data-size=xs]{width:2rem;height:2rem;pointer-events:none}: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-svg{position:relative;overflow:visible;transform:rotate(-90deg)}.t-segment{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}:host._empty .t-segment{display:none}.t-placeholder{fill:var(--tui-base-03)}\n"], dependencies: [{ kind: "directive", type: i1.TuiRepeatTimesDirective, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: ["tuiRepeatTimesOf"] }, { kind: "directive", type: i1.TuiHoveredDirective, selector: "[tuiHoveredChange]", outputs: ["tuiHoveredChange"] }, { kind: "directive", type: i2.TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHint", "tuiHintContext", "tuiHintAppearance"] }, { kind: "directive", type: i2.TuiHintDriverDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)" }, { kind: "directive", type: i2.TuiHintHoverDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHintShowDelay", "tuiHintHideDelay"], exportAs: ["tuiHintHover"] }, { kind: "directive", type: i2.TuiHintPointerDirective, selector: "[tuiHint][tuiHintPointer]" }, { kind: "directive", type: i2.TuiHintPositionDirective, selector: "[tuiHint]:not([tuiHintCustomPosition]):not(ng-container):not(ng-template)", inputs: ["tuiHintDirection"] }, { kind: "directive", type: i3.TuiPieChartDirective, selector: "path[tuiPieChart]", inputs: ["tuiPieChart"] }], viewProviders: [
|
|
91
|
+
tuiHintOptionsProvider({ direction: 'top-right', appearance: 'onDark' }),
|
|
92
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
93
|
+
__decorate([
|
|
94
|
+
tuiPure
|
|
95
|
+
], TuiPieChartComponent.prototype, "getSum", null);
|
|
96
|
+
__decorate([
|
|
97
|
+
tuiPure
|
|
98
|
+
], TuiPieChartComponent.prototype, "getSegments", null);
|
|
99
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiPieChartComponent, decorators: [{
|
|
100
|
+
type: Component,
|
|
101
|
+
args: [{ selector: 'tui-pie-chart', changeDetection: ChangeDetectionStrategy.OnPush, viewProviders: [
|
|
102
|
+
tuiHintOptionsProvider({ direction: 'top-right', appearance: 'onDark' }),
|
|
103
|
+
], template: "<svg\n focusable=\"false\"\n height=\"100%\"\n viewBox=\"-100 -100 200 200\"\n width=\"100%\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"t-svg\"\n>\n <defs>\n <mask [attr.id]=\"maskId\">\n <rect\n fill=\"white\"\n height=\"400\"\n width=\"400\"\n x=\"-200\"\n y=\"-200\"\n />\n <circle\n cx=\"0\"\n cy=\"0\"\n [attr.r]=\"radius\"\n />\n </mask>\n </defs>\n <g [style.mask]=\"mask\">\n <circle\n cx=\"0\"\n cy=\"0\"\n r=\"100\"\n class=\"t-placeholder\"\n />\n <path\n *tuiRepeatTimes=\"let index of segments.length\"\n automation-id=\"tui-pie-chart__segment\"\n d=\"\"\n fill=\"currentColor\"\n tuiHintPointer\n class=\"t-segment\"\n [attr.transform]=\"getTransform(index)\"\n [style.color]=\"getColor(index)\"\n [tuiHint]=\"hintContent\"\n [tuiHintContext]=\"{$implicit: index}\"\n [tuiPieChart]=\"segments[index]\"\n (tuiHoveredChange)=\"onHovered($event, index)\"\n />\n </g>\n</svg>\n", styles: [":host{position:relative;display:block}:host[data-size=xs]{width:2rem;height:2rem;pointer-events:none}: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-svg{position:relative;overflow:visible;transform:rotate(-90deg)}.t-segment{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}:host._empty .t-segment{display:none}.t-placeholder{fill:var(--tui-base-03)}\n"] }]
|
|
104
|
+
}], ctorParameters: function () { return [{ type: i1.TuiIdService, decorators: [{
|
|
105
|
+
type: Inject,
|
|
106
|
+
args: [TuiIdService]
|
|
107
|
+
}] }, { type: i2.TuiHintOptionsDirective, decorators: [{
|
|
108
|
+
type: Optional
|
|
109
|
+
}, {
|
|
110
|
+
type: Inject,
|
|
111
|
+
args: [TuiHintOptionsDirective]
|
|
112
|
+
}] }]; }, propDecorators: { value: [{
|
|
113
|
+
type: Input
|
|
114
|
+
}], size: [{
|
|
115
|
+
type: Input
|
|
116
|
+
}, {
|
|
117
|
+
type: HostBinding,
|
|
118
|
+
args: ['attr.data-size']
|
|
119
|
+
}], masked: [{
|
|
120
|
+
type: Input
|
|
121
|
+
}], activeItemIndex: [{
|
|
122
|
+
type: Input
|
|
123
|
+
}], activeItemIndexChange: [{
|
|
124
|
+
type: Output
|
|
125
|
+
}], empty: [{
|
|
126
|
+
type: HostBinding,
|
|
127
|
+
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aGlzLnVwZGF0ZUFjdGl2ZUl0ZW1JbmRleChob3ZlcmVkID8gaW5kZXggOiBOYU4pO1xuICAgIH1cblxuICAgIGdldENvbG9yKGluZGV4OiBudW1iZXIpOiBTYWZlVmFsdWUge1xuICAgICAgICByZXR1cm4gYHZhcigtLXR1aS1jaGFydC0ke2luZGV4fSlgO1xuICAgIH1cblxuICAgIEB0dWlQdXJlXG4gICAgcHJpdmF0ZSBnZXRTdW0odmFsdWU6IHJlYWRvbmx5IG51bWJlcltdKTogbnVtYmVyIHtcbiAgICAgICAgcmV0dXJuIHR1aVN1bSguLi52YWx1ZSk7XG4gICAgfVxuXG4gICAgQHR1aVB1cmVcbiAgICBwcml2YXRlIGdldFNlZ21lbnRzKHZhbHVlOiByZWFkb25seSBudW1iZXJbXSk6IFJlYWRvbmx5QXJyYXk8W251bWJlciwgbnVtYmVyXT4ge1xuICAgICAgICByZXR1cm4gdmFsdWVcbiAgICAgICAgICAgIC5tYXAoKGluaXRpYWwsIGksIGFycmF5KSA9PlxuICAgICAgICAgICAgICAgIGFycmF5LnJlZHVjZShcbiAgICAgICAgICAgICAgICAgICAgKHN1bSwgY3VycmVudCwgaikgPT4gKGogPCBpID8gdGhpcy5nZXREZWcoY3VycmVudCkgKyBzdW0gOiBzdW0pLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLmdldERlZyhpbml0aWFsKSxcbiAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgKVxuICAgICAgICAgICAgLm1hcCgoYW5nbGUsIGluZGV4LCBhcnJheSkgPT4gW1xuICAgICAgICAgICAgICAgIGFycmF5W2luZGV4IC0gMV0gfHwgMCxcbiAgICAgICAgICAgICAgICBNYXRoLm1pbihhbmdsZSwgMzU5Ljk5OTkpLFxuICAgICAgICAgICAgXSk7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBnZXREZWcodmFsdWU6IG51bWJlcik6IG51bWJlciB7XG4gICAgICAgIHJldHVybiAzNjAgKiAodmFsdWUgLyB0aGl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gW3N0eWxlLm1hc2tdPVwibWFza1wiPlxuICAgICAgICA8Y2lyY2xlXG4gICAgICAgICAgICBjeD1cIjBcIlxuICAgICAgICAgICAgY3k9XCIwXCJcbiAgICAgICAgICAgIHI9XCIxMDBcIlxuICAgICAgICAgICAgY2xhc3M9XCJ0LXBsYWNlaG9sZGVyXCJcbiAgICAgICAgLz5cbiAgICAgICAgPHBhdGhcbiAgICAgICAgICAgICp0dWlSZXBlYXRUaW1lcz1cImxldCBpbmRleCBvZiBzZWdtZW50cy5sZW5ndGhcIlxuICAgICAgICAgICAgYXV0b21hdGlvbi1pZD1cInR1aS1waWUtY2hhcnRfX3NlZ21lbnRcIlxuICAgICAgICAgICAgZD1cIlwiXG4gICAgICAgICAgICBmaWxsPVwiY3VycmVudENvbG9yXCJcbiAgICAgICAgICAgIHR1aUhpbnRQb2ludGVyXG4gICAgICAgICAgICBjbGFzcz1cInQtc2VnbWVudFwiXG4gICAgICAgICAgICBbYXR0ci50cmFuc2Zvcm1dPVwiZ2V0VHJhbnNmb3JtKGluZGV4KVwiXG4gICAgICAgICAgICBbc3R5bGUuY29sb3JdPVwiZ2V0Q29sb3IoaW5kZXgpXCJcbiAgICAgICAgICAgIFt0dWlIaW50XT1cImhpbnRDb250ZW50XCJcbiAgICAgICAgICAgIFt0dWlIaW50Q29udGV4dF09XCJ7JGltcGxpY2l0OiBpbmRleH1cIlxuICAgICAgICAgICAgW3R1aVBpZUNoYXJ0XT1cInNlZ21lbnRzW2luZGV4XVwiXG4gICAgICAgICAgICAodHVpSG92ZXJlZENoYW5nZSk9XCJvbkhvdmVyZWQoJGV2ZW50LCBpbmRleClcIlxuICAgICAgICAvPlxuICAgIDwvZz5cbjwvc3ZnPlxuIl19
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Directive, ElementRef, Inject, Input, NgZone, Self } from '@angular/core';
|
|
2
|
+
import { ANIMATION_FRAME, PERFORMANCE } from '@ng-web-apis/common';
|
|
3
|
+
import { tuiDescribeSector } from '@taiga-ui/addon-charts/utils';
|
|
4
|
+
import { tuiClamp, TuiDestroyService, tuiEaseInOutQuad, tuiZonefree } from '@taiga-ui/cdk';
|
|
5
|
+
import { TUI_ANIMATIONS_DURATION } from '@taiga-ui/core';
|
|
6
|
+
import { BehaviorSubject, map, pairwise, switchMap, takeUntil, takeWhile, } from 'rxjs';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "rxjs";
|
|
9
|
+
export class TuiPieChartDirective {
|
|
10
|
+
set tuiPieChart(sector) {
|
|
11
|
+
this.sector$.next(sector);
|
|
12
|
+
}
|
|
13
|
+
constructor({ nativeElement }, zone, destroy$, performance, animationFrame$, duration) {
|
|
14
|
+
this.sector$ = new BehaviorSubject([0, 0]);
|
|
15
|
+
this.sector$
|
|
16
|
+
.pipe(pairwise(), switchMap(([prev, cur]) => {
|
|
17
|
+
const now = performance.now();
|
|
18
|
+
const startDelta = cur[0] - prev[0];
|
|
19
|
+
const endDelta = cur[1] - prev[1];
|
|
20
|
+
return animationFrame$.pipe(map(timestamp => tuiEaseInOutQuad(tuiClamp((timestamp - now) / duration, 0, 1))), takeWhile(progress => progress < 1, true), map(progress => [
|
|
21
|
+
prev[0] + startDelta * progress,
|
|
22
|
+
cur[1] > 359 ? cur[1] : prev[1] + endDelta * progress,
|
|
23
|
+
]));
|
|
24
|
+
}), tuiZonefree(zone), takeUntil(destroy$))
|
|
25
|
+
.subscribe(([start, end]) => {
|
|
26
|
+
nativeElement.setAttribute('d', tuiDescribeSector(start, end));
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
TuiPieChartDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiPieChartDirective, deps: [{ token: ElementRef }, { token: NgZone }, { token: TuiDestroyService, self: true }, { token: PERFORMANCE }, { token: ANIMATION_FRAME }, { token: TUI_ANIMATIONS_DURATION }], target: i0.ɵɵFactoryTarget.Directive });
|
|
31
|
+
TuiPieChartDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiPieChartDirective, selector: "path[tuiPieChart]", inputs: { tuiPieChart: "tuiPieChart" }, providers: [TuiDestroyService], ngImport: i0 });
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiPieChartDirective, decorators: [{
|
|
33
|
+
type: Directive,
|
|
34
|
+
args: [{
|
|
35
|
+
selector: 'path[tuiPieChart]',
|
|
36
|
+
providers: [TuiDestroyService],
|
|
37
|
+
}]
|
|
38
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
|
|
39
|
+
type: Inject,
|
|
40
|
+
args: [ElementRef]
|
|
41
|
+
}] }, { type: i0.NgZone, decorators: [{
|
|
42
|
+
type: Inject,
|
|
43
|
+
args: [NgZone]
|
|
44
|
+
}] }, { type: i1.Observable, decorators: [{
|
|
45
|
+
type: Self
|
|
46
|
+
}, {
|
|
47
|
+
type: Inject,
|
|
48
|
+
args: [TuiDestroyService]
|
|
49
|
+
}] }, { type: Performance, decorators: [{
|
|
50
|
+
type: Inject,
|
|
51
|
+
args: [PERFORMANCE]
|
|
52
|
+
}] }, { type: i1.Observable, decorators: [{
|
|
53
|
+
type: Inject,
|
|
54
|
+
args: [ANIMATION_FRAME]
|
|
55
|
+
}] }, { type: undefined, decorators: [{
|
|
56
|
+
type: Inject,
|
|
57
|
+
args: [TUI_ANIMATIONS_DURATION]
|
|
58
|
+
}] }]; }, propDecorators: { tuiPieChart: [{
|
|
59
|
+
type: Input
|
|
60
|
+
}] } });
|
|
61
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGllLWNoYXJ0LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FkZG9uLWN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bmtub3duPixcbiAgICAgICAgQEluamVjdChQRVJGT1JNQU5DRSkgcGVyZm9ybWFuY2U6IFBlcmZvcm1hbmNlLFxuICAgICAgICBASW5qZWN0KEFOSU1BVElPTl9GUkFNRSkgYW5pbWF0aW9uRnJhbWUkOiBPYnNlcnZhYmxlPG51bWJlcj4sXG4gICAgICAgIEBJbmplY3QoVFVJX0FOSU1BVElPTlNfRFVSQVRJT04pIGR1cmF0aW9uOiBudW1iZXIsXG4gICAgKSB7XG4gICAgICAgIHRoaXMuc2VjdG9yJFxuICAgICAgICAgICAgLnBpcGUoXG4gICAgICAgICAgICAgICAgcGFpcndpc2UoKSxcbiAgICAgICAgICAgICAgICBzd2l0Y2hNYXAoKFtwcmV2LCBjdXJdKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IG5vdyA9IHBlcmZvcm1hbmNlLm5vdygpO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBzdGFydERlbHRhID0gY3VyWzBdIC0gcHJldlswXTtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgZW5kRGVsdGEgPSBjdXJbMV0gLSBwcmV2WzFdO1xuXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBhbmltYXRpb25GcmFtZSQucGlwZShcbiAgICAgICAgICAgICAgICAgICAgICAgIG1hcCh0aW1lc3RhbXAgPT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0dWlFYXNlSW5PdXRRdWFkKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0dWlDbGFtcCgodGltZXN0YW1wIC0gbm93KSAvIGR1cmF0aW9uLCAwLCAxKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRha2VXaGlsZShwcm9ncmVzcyA9PiBwcm9ncmVzcyA8IDEsIHRydWUpLFxuICAgICAgICAgICAgICAgICAgICAgICAgbWFwKHByb2dyZXNzID0+IFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcmV2WzBdICsgc3RhcnREZWx0YSAqIHByb2dyZXNzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGN1clsxXSA+IDM1OSA/IGN1clsxXSA6IHByZXZbMV0gKyBlbmREZWx0YSAqIHByb2dyZXNzLFxuICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgdHVpWm9uZWZyZWUoem9uZSksXG4gICAgICAgICAgICAgICAgdGFrZVVudGlsKGRlc3Ryb3kkKSxcbiAgICAgICAgICAgIClcbiAgICAgICAgICAgIC5zdWJzY3JpYmUoKFtzdGFydCwgZW5kXSkgPT4ge1xuICAgICAgICAgICAgICAgIG5hdGl2ZUVsZW1lbnQuc2V0QXR0cmlidXRlKCdkJywgdHVpRGVzY3JpYmVTZWN0b3Ioc3RhcnQsIGVuZCkpO1xuICAgICAgICAgICAgfSk7XG4gICAgfVxufVxuIl19
|
|
@@ -8,20 +8,18 @@ import { TuiPieChartDirective } from './pie-chart.directive';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export class TuiPieChartModule {
|
|
10
10
|
}
|
|
11
|
-
TuiPieChartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12
|
-
TuiPieChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
11
|
+
TuiPieChartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiPieChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12
|
+
TuiPieChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiPieChartModule, declarations: [TuiPieChartComponent, TuiPieChartDirective], imports: [CommonModule,
|
|
13
13
|
TuiRepeatTimesModule,
|
|
14
14
|
TuiHoveredModule,
|
|
15
15
|
PolymorpheusModule,
|
|
16
16
|
TuiHintModule], exports: [TuiPieChartComponent] });
|
|
17
|
-
TuiPieChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
]] });
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiPieChartModule, decorators: [{
|
|
17
|
+
TuiPieChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiPieChartModule, imports: [CommonModule,
|
|
18
|
+
TuiRepeatTimesModule,
|
|
19
|
+
TuiHoveredModule,
|
|
20
|
+
PolymorpheusModule,
|
|
21
|
+
TuiHintModule] });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiPieChartModule, decorators: [{
|
|
25
23
|
type: NgModule,
|
|
26
24
|
args: [{
|
|
27
25
|
imports: [
|
|
@@ -35,4 +33,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
35
33
|
exports: [TuiPieChartComponent],
|
|
36
34
|
}]
|
|
37
35
|
}] });
|
|
38
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGllLWNoYXJ0Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FkZG9uLWNoYXJ0cy9jb21wb25lbnRzL3BpZS1jaGFydC9waWUtY2hhcnQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxZQUF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hci9jb21tb24nO1xuaW1wb3J0IHtOZ01vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQge1R1aUhvdmVyZWRNb2R1bGUsIFR1aVJlcGVhdFRpbWVzTW9kdWxlfSBmcm9tICdAdGFpZ2EtdWkvY2RrJztcbmltcG9ydCB7VHVpSGludE1vZHVsZX0gZnJvbSAnQHRhaWdhLXVpL2NvcmUnO1xuaW1wb3J0IHtQb2x5bW9ycGhldXNNb2R1bGV9IGZyb20gJ0B0aW5rb2ZmL25nLXBvbHltb3JwaGV1cyc7XG5cbmltcG9ydCB7VHVpUGllQ2hhcnRDb21wb25lbnR9IGZyb20gJy4vcGllLWNoYXJ0LmNvbXBvbmVudCc7XG5pbXBvcnQge1R1aVBpZUNoYXJ0RGlyZWN0aXZlfSBmcm9tICcuL3BpZS1jaGFydC5kaXJlY3RpdmUnO1xuXG5ATmdNb2R1bGUoe1xuICAgIGltcG9ydHM6IFtcbiAgICAgICAgQ29tbW9uTW9kdWxlLFxuICAgICAgICBUdWlSZXBlYXRUaW1lc01vZHVsZSxcbiAgICAgICAgVHVpSG92ZXJlZE1vZHVsZSxcbiAgICAgICAgUG9seW1vcnBoZXVzTW9kdWxlLFxuICAgICAgICBUdWlIaW50TW9kdWxlLFxuICAgIF0sXG4gICAgZGVjbGFyYXRpb25zOiBbVHVpUGllQ2hhcnRDb21wb25lbnQsIFR1aVBpZUNoYXJ0RGlyZWN0aXZlXSxcbiAgICBleHBvcnRzOiBbVHVpUGllQ2hhcnRDb21wb25lbnRdLFxufSlcbmV4cG9ydCBjbGFzcyBUdWlQaWVDaGFydE1vZHVsZSB7fVxuIl19
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, HostBinding, Input, Output, } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@taiga-ui/addon-charts/components/pie-chart";
|
|
4
|
+
export class TuiRingChartComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.value = [];
|
|
7
|
+
this.size = 'm';
|
|
8
|
+
this.activeItemIndex = NaN;
|
|
9
|
+
this.activeItemIndexChange = new EventEmitter();
|
|
10
|
+
}
|
|
11
|
+
onActiveItemIndexChange(index) {
|
|
12
|
+
this.updateActiveItemIndex(index);
|
|
13
|
+
}
|
|
14
|
+
updateActiveItemIndex(index) {
|
|
15
|
+
if (index === this.activeItemIndex) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
this.activeItemIndex = index;
|
|
19
|
+
this.activeItemIndexChange.next(index);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
TuiRingChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiRingChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
+
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 });
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiRingChartComponent, decorators: [{
|
|
25
|
+
type: Component,
|
|
26
|
+
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"] }]
|
|
27
|
+
}], propDecorators: { value: [{
|
|
28
|
+
type: Input
|
|
29
|
+
}], size: [{
|
|
30
|
+
type: Input
|
|
31
|
+
}, {
|
|
32
|
+
type: HostBinding,
|
|
33
|
+
args: ['attr.data-size']
|
|
34
|
+
}], activeItemIndex: [{
|
|
35
|
+
type: Input
|
|
36
|
+
}], activeItemIndexChange: [{
|
|
37
|
+
type: Output
|
|
38
|
+
}] } });
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmluZy1jaGFydC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi1jaGFydHMvY29tcG9uZW50cy9yaW5nLWNoYXJ0L3JpbmctY2hhcnQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWRkb24tY2hhcnRzL2NvbXBvbmVudHMvcmluZy1jaGFydC9yaW5nLWNoYXJ0LnRlbXBsYXRlLmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNILHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsWUFBWSxFQUNaLFdBQVcsRUFDWCxLQUFLLEVBQ0wsTUFBTSxHQUNULE1BQU0sZUFBZSxDQUFDOzs7QUFTdkIsTUFBTSxPQUFPLHFCQUFxQjtJQU5sQztRQVFJLFVBQUssR0FBc0IsRUFBRSxDQUFDO1FBSTlCLFNBQUksR0FBeUIsR0FBRyxDQUFDO1FBR2pDLG9CQUFlLEdBQUcsR0FBRyxDQUFDO1FBR2IsMEJBQXFCLEdBQUcsSUFBSSxZQUFZLEVBQVUsQ0FBQztLQWMvRDtJQVpHLHVCQUF1Qix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G4gICAgPC9kaXY+XG48L2Rpdj5cblxuPHR1aS1waWUtY2hhcnRcbiAgICBbYWN0aXZlSXRlbUluZGV4XT1cImFjdGl2ZUl0ZW1JbmRleFwiXG4gICAgW21hc2tlZF09XCJ0cnVlXCJcbiAgICBbc2l6ZV09XCJzaXplXCJcbiAgICBbdmFsdWVdPVwidmFsdWVcIlxuICAgIChhY3RpdmVJdGVtSW5kZXhDaGFuZ2UpPVwib25BY3RpdmVJdGVtSW5kZXhDaGFuZ2UoJGV2ZW50KVwiXG4+PC90dWktcGllLWNoYXJ0PlxuXG48ZGl2IGNsYXNzPVwidC1zaGllbGRcIj48L2Rpdj5cbiJdfQ==
|
|
@@ -6,10 +6,10 @@ import { TuiRingChartComponent } from './ring-chart.component';
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export class TuiRingChartModule {
|
|
8
8
|
}
|
|
9
|
-
TuiRingChartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10
|
-
TuiRingChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
11
|
-
TuiRingChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9
|
+
TuiRingChartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiRingChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10
|
+
TuiRingChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiRingChartModule, declarations: [TuiRingChartComponent], imports: [CommonModule, PolymorpheusModule, TuiPieChartModule], exports: [TuiRingChartComponent] });
|
|
11
|
+
TuiRingChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiRingChartModule, imports: [CommonModule, PolymorpheusModule, TuiPieChartModule] });
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiRingChartModule, decorators: [{
|
|
13
13
|
type: NgModule,
|
|
14
14
|
args: [{
|
|
15
15
|
imports: [CommonModule, PolymorpheusModule, TuiPieChartModule],
|
|
@@ -17,4 +17,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
17
17
|
exports: [TuiRingChartComponent],
|
|
18
18
|
}]
|
|
19
19
|
}] });
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmluZy1jaGFydC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi1jaGFydHMvY29tcG9uZW50cy9yaW5nLWNoYXJ0L3JpbmctY2hhcnQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUM3QyxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxpQkFBaUIsRUFBQyxNQUFNLDZDQUE2QyxDQUFDO0FBQzlFLE9BQU8sRUFBQyxrQkFBa0IsRUFBQyxNQUFNLDBCQUEwQixDQUFDO0FBRTVELE9BQU8sRUFBQyxxQkFBcUIsRUFBQyxNQUFNLHdCQUF3QixDQUFDOztBQU83RCxNQUFNLE9BQU8sa0JBQWtCOztnSEFBbEIsa0JBQWtCO2lIQUFsQixrQkFBa0IsaUJBSFoscUJBQXFCLGFBRDFCLFlBQVksRUFBRSxrQkFBa0IsRUFBRSxpQkFBaUIsYUFFbkQscUJBQXFCO2lI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b[1] - a[1];
|
|
4
|
-
return Math.sqrt(
|
|
4
|
+
return Math.sqrt(x ** 2 + y ** 2);
|
|
5
5
|
}
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluZS1sZW5ndGguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi1jaGFydHMvdXRpbHMvbGluZS1sZW5ndGgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsTUFBTSxVQUFVLGFBQWEsQ0FBQyxDQUFXLEVBQUUsQ0FBVztJQUNsRCxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQ3RCLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFFdEIsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDO0FBQ3RDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1R1aVBvaW50fSBmcm9tICdAdGFpZ2EtdWkvY29yZSc7XG5cbmV4cG9ydCBmdW5jdGlvbiB0dWlMaW5lTGVuZ3RoKGE6IFR1aVBvaW50LCBiOiBUdWlQb2ludCk6IG51bWJlciB7XG4gICAgY29uc3QgeCA9IGJbMF0gLSBhWzBdO1xuICAgIGNvbnN0IHkgPSBiWzFdIC0gYVsxXTtcblxuICAgIHJldHVybiBNYXRoLnNxcnQoeCAqKiAyICsgeSAqKiAyKTtcbn1cbiJdfQ==
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectorRef, Component, ChangeDetectionStrategy, Inject, ViewChildren, Input, HostBinding, Output, NgModule } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/platform-browser';
|
|
4
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
5
|
+
import * as i1 from '@taiga-ui/cdk';
|
|
6
|
+
import { tuiTypedFromEvent, TuiRepeatTimesModule } from '@taiga-ui/cdk';
|
|
7
|
+
import { merge, map, ReplaySubject, switchMap, startWith, tap } from 'rxjs';
|
|
8
|
+
|
|
9
|
+
// 3/4 with 1% safety offset
|
|
10
|
+
const ARC = 0.76;
|
|
11
|
+
const SIZE = {
|
|
12
|
+
m: 9,
|
|
13
|
+
l: 11,
|
|
14
|
+
xl: 16,
|
|
15
|
+
};
|
|
16
|
+
const WIDTH = {
|
|
17
|
+
m: 0.25,
|
|
18
|
+
l: 0.375,
|
|
19
|
+
xl: 0.5625,
|
|
20
|
+
};
|
|
21
|
+
const GAP = {
|
|
22
|
+
m: 0.125,
|
|
23
|
+
l: 0.1875,
|
|
24
|
+
xl: 0.25,
|
|
25
|
+
};
|
|
26
|
+
function arcsToIndex(arcs) {
|
|
27
|
+
return arcs.map(({ nativeElement }, index) => merge(tuiTypedFromEvent(nativeElement, 'mouseenter').pipe(map(() => index)), tuiTypedFromEvent(nativeElement, 'mouseleave').pipe(map(() => NaN))));
|
|
28
|
+
}
|
|
29
|
+
class TuiArcChartComponent {
|
|
30
|
+
set arcs(arcs) {
|
|
31
|
+
this.arcs$.next(arcs);
|
|
32
|
+
}
|
|
33
|
+
constructor(sanitizer, cdr) {
|
|
34
|
+
this.sanitizer = sanitizer;
|
|
35
|
+
this.arcs$ = new ReplaySubject(1);
|
|
36
|
+
this.value = [];
|
|
37
|
+
this.size = 'm';
|
|
38
|
+
this.max = 100;
|
|
39
|
+
this.minLabel = '0%';
|
|
40
|
+
this.maxLabel = '100%';
|
|
41
|
+
this.activeItemIndex = NaN;
|
|
42
|
+
this.activeItemIndexChange = this.arcs$.pipe(switchMap(arcs => arcs.changes.pipe(startWith(null), switchMap(() => merge(...arcsToIndex(arcs))))), tap(index => {
|
|
43
|
+
this.activeItemIndex = index;
|
|
44
|
+
}));
|
|
45
|
+
this.initialized = false;
|
|
46
|
+
// So initial animation works
|
|
47
|
+
setTimeout(() => {
|
|
48
|
+
this.initialized = true;
|
|
49
|
+
cdr.markForCheck();
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
get width() {
|
|
53
|
+
return SIZE[this.size];
|
|
54
|
+
}
|
|
55
|
+
get strokeWidth() {
|
|
56
|
+
return WIDTH[this.size];
|
|
57
|
+
}
|
|
58
|
+
isInactive(index) {
|
|
59
|
+
return !Number.isNaN(this.activeItemIndex) && index !== this.activeItemIndex;
|
|
60
|
+
}
|
|
61
|
+
getInset(index) {
|
|
62
|
+
return this.strokeWidth / 2 + index * (this.strokeWidth + GAP[this.size]);
|
|
63
|
+
}
|
|
64
|
+
getDiameter(index) {
|
|
65
|
+
return SIZE[this.size] - 2 * this.getInset(index);
|
|
66
|
+
}
|
|
67
|
+
getLength(index) {
|
|
68
|
+
return Math.PI * this.getDiameter(index) * ARC;
|
|
69
|
+
}
|
|
70
|
+
getOffset(index) {
|
|
71
|
+
return this.getLength(index) * (1 - Math.min(this.value[index] / this.max, 1));
|
|
72
|
+
}
|
|
73
|
+
getColor(index) {
|
|
74
|
+
return this.sanitizer.bypassSecurityTrustStyle(`var(--tui-chart-${index}, var(--tui-support-0${index + 1}))`);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
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: [{
|
|
80
|
+
type: Component,
|
|
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"] }]
|
|
82
|
+
}], ctorParameters: function () {
|
|
83
|
+
return [{ type: i2.DomSanitizer, decorators: [{
|
|
84
|
+
type: Inject,
|
|
85
|
+
args: [DomSanitizer]
|
|
86
|
+
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
87
|
+
type: Inject,
|
|
88
|
+
args: [ChangeDetectorRef]
|
|
89
|
+
}] }];
|
|
90
|
+
}, propDecorators: { arcs: [{
|
|
91
|
+
type: ViewChildren,
|
|
92
|
+
args: ['arc']
|
|
93
|
+
}], value: [{
|
|
94
|
+
type: Input
|
|
95
|
+
}], size: [{
|
|
96
|
+
type: Input
|
|
97
|
+
}, {
|
|
98
|
+
type: HostBinding,
|
|
99
|
+
args: ['attr.data-size']
|
|
100
|
+
}], max: [{
|
|
101
|
+
type: Input
|
|
102
|
+
}], minLabel: [{
|
|
103
|
+
type: Input
|
|
104
|
+
}], maxLabel: [{
|
|
105
|
+
type: Input
|
|
106
|
+
}], activeItemIndex: [{
|
|
107
|
+
type: Input
|
|
108
|
+
}], activeItemIndexChange: [{
|
|
109
|
+
type: Output
|
|
110
|
+
}], width: [{
|
|
111
|
+
type: HostBinding,
|
|
112
|
+
args: ['style.width.rem']
|
|
113
|
+
}, {
|
|
114
|
+
type: HostBinding,
|
|
115
|
+
args: ['style.height.rem']
|
|
116
|
+
}], strokeWidth: [{
|
|
117
|
+
type: HostBinding,
|
|
118
|
+
args: ['style.strokeWidth.rem']
|
|
119
|
+
}] } });
|
|
120
|
+
|
|
121
|
+
class TuiArcChartModule {
|
|
122
|
+
}
|
|
123
|
+
TuiArcChartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiArcChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
124
|
+
TuiArcChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiArcChartModule, declarations: [TuiArcChartComponent], imports: [TuiRepeatTimesModule], exports: [TuiArcChartComponent] });
|
|
125
|
+
TuiArcChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiArcChartModule, imports: [TuiRepeatTimesModule] });
|
|
126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiArcChartModule, decorators: [{
|
|
127
|
+
type: NgModule,
|
|
128
|
+
args: [{
|
|
129
|
+
imports: [TuiRepeatTimesModule],
|
|
130
|
+
declarations: [TuiArcChartComponent],
|
|
131
|
+
exports: [TuiArcChartComponent],
|
|
132
|
+
}]
|
|
133
|
+
}] });
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Generated bundle index. Do not edit.
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
export { TuiArcChartComponent, TuiArcChartModule };
|
|
140
|
+
//# 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,I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