@magmamath/students-features 1.2.0 → 1.2.1-rc.10
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/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js +2 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js +2 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +1 -1
- package/dist/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +1 -1
- package/dist/commonjs/features/pmProgress/PmProgress.js +62 -0
- package/dist/commonjs/features/pmProgress/PmProgress.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/chart.helpers.js +22 -0
- package/dist/commonjs/features/pmProgress/components/chart/chart.helpers.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/chart.types.js +2 -0
- package/dist/commonjs/features/pmProgress/components/chart/chart.types.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.js +44 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.js +26 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/SlicesPaths.js +69 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/SlicesPaths.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.js +38 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js +21 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.js +82 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.js +49 -0
- package/dist/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/model/PieChartManager.js +25 -0
- package/dist/commonjs/features/pmProgress/components/chart/model/PieChartManager.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/model/SliceHighlight.js +20 -0
- package/dist/commonjs/features/pmProgress/components/chart/model/SliceHighlight.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.js +79 -0
- package/dist/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/header/PmProgressHeader.js +199 -0
- package/dist/commonjs/features/pmProgress/components/header/PmProgressHeader.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/insights/PmInsights.js +71 -0
- package/dist/commonjs/features/pmProgress/components/insights/PmInsights.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/insights/PmTimeframeStats.js +95 -0
- package/dist/commonjs/features/pmProgress/components/insights/PmTimeframeStats.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/insights/StatsCard.js +71 -0
- package/dist/commonjs/features/pmProgress/components/insights/StatsCard.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/list/Fluency.js +70 -0
- package/dist/commonjs/features/pmProgress/components/list/Fluency.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/list/ListCard.js +187 -0
- package/dist/commonjs/features/pmProgress/components/list/ListCard.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/list/ListItem.js +119 -0
- package/dist/commonjs/features/pmProgress/components/list/ListItem.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js +86 -0
- package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js +118 -0
- package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js.map +1 -0
- package/dist/commonjs/features/pmProgress/context/PmProgressContext.js +18 -0
- package/dist/commonjs/features/pmProgress/context/PmProgressContext.js.map +1 -0
- package/dist/commonjs/features/pmProgress/index.js +36 -0
- package/dist/commonjs/features/pmProgress/index.js.map +1 -0
- package/dist/commonjs/features/pmProgress/model/PmInsightsModel.js +22 -0
- package/dist/commonjs/features/pmProgress/model/PmInsightsModel.js.map +1 -0
- package/dist/commonjs/features/pmProgress/model/PmProgressApi.js +18 -0
- package/dist/commonjs/features/pmProgress/model/PmProgressApi.js.map +1 -0
- package/dist/commonjs/features/pmProgress/model/PmProgressModel.js +45 -0
- package/dist/commonjs/features/pmProgress/model/PmProgressModel.js.map +1 -0
- package/dist/commonjs/features/pmProgress/model/PmRecommendationsModel.js +47 -0
- package/dist/commonjs/features/pmProgress/model/PmRecommendationsModel.js.map +1 -0
- package/dist/commonjs/features/pmProgress/model/PmSolvingFlowModel.js +79 -0
- package/dist/commonjs/features/pmProgress/model/PmSolvingFlowModel.js.map +1 -0
- package/dist/commonjs/features/pmProgress/model/PmTreeModel.js +148 -0
- package/dist/commonjs/features/pmProgress/model/PmTreeModel.js.map +1 -0
- package/dist/commonjs/features/pmProgress/shared/pmProgress.constants.js +33 -0
- package/dist/commonjs/features/pmProgress/shared/pmProgress.constants.js.map +1 -0
- package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js +193 -0
- package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js.map +1 -0
- package/dist/commonjs/features/pmProgress/shared/pmProgress.types.js +12 -0
- package/dist/commonjs/features/pmProgress/shared/pmProgress.types.js.map +1 -0
- package/dist/commonjs/index.js +15 -3
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/shared/icons/PentagonIcon.js +32 -0
- package/dist/commonjs/shared/icons/PentagonIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/SketchArrowRight.js +33 -0
- package/dist/commonjs/shared/icons/SketchArrowRight.js.map +1 -0
- package/dist/commonjs/shared/icons/SliceDiamondIcon.js +32 -0
- package/dist/commonjs/shared/icons/SliceDiamondIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/StarIcon.js +32 -0
- package/dist/commonjs/shared/icons/StarIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/TimerIcon.js +35 -0
- package/dist/commonjs/shared/icons/TimerIcon.js.map +1 -0
- package/dist/commonjs/shared/translation/localization/ca.json +19 -0
- package/dist/commonjs/shared/translation/localization/de.json +19 -0
- package/dist/commonjs/shared/translation/localization/en.json +19 -0
- package/dist/commonjs/shared/translation/localization/gb.json +19 -0
- package/dist/commonjs/shared/translation/localization/sct.json +19 -0
- package/dist/commonjs/shared/translation/localization/sw.json +19 -0
- package/dist/module/features/chatbot/components/ChatInput/ChatInput.js +2 -1
- package/dist/module/features/chatbot/components/ChatInput/ChatInput.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js +2 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +2 -2
- package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +1 -1
- package/dist/module/features/pmProgress/PmProgress.js +56 -0
- package/dist/module/features/pmProgress/PmProgress.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/chart.helpers.js +15 -0
- package/dist/module/features/pmProgress/components/chart/chart.helpers.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/chart.types.js +2 -0
- package/dist/module/features/pmProgress/components/chart/chart.types.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.js +38 -0
- package/dist/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/components/SlicesClipPaths.js +20 -0
- package/dist/module/features/pmProgress/components/chart/components/SlicesClipPaths.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/components/SlicesPaths.js +63 -0
- package/dist/module/features/pmProgress/components/chart/components/SlicesPaths.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.js +32 -0
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js +15 -0
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceFillColor.js +76 -0
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceFillColor.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/model/ArcPatternGenerator.js +44 -0
- package/dist/module/features/pmProgress/components/chart/model/ArcPatternGenerator.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/model/PieChartManager.js +20 -0
- package/dist/module/features/pmProgress/components/chart/model/PieChartManager.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/model/SliceHighlight.js +15 -0
- package/dist/module/features/pmProgress/components/chart/model/SliceHighlight.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/model/SliceShapeGenerator.js +74 -0
- package/dist/module/features/pmProgress/components/chart/model/SliceShapeGenerator.js.map +1 -0
- package/dist/module/features/pmProgress/components/header/PmProgressHeader.js +192 -0
- package/dist/module/features/pmProgress/components/header/PmProgressHeader.js.map +1 -0
- package/dist/module/features/pmProgress/components/insights/PmInsights.js +64 -0
- package/dist/module/features/pmProgress/components/insights/PmInsights.js.map +1 -0
- package/dist/module/features/pmProgress/components/insights/PmTimeframeStats.js +90 -0
- package/dist/module/features/pmProgress/components/insights/PmTimeframeStats.js.map +1 -0
- package/dist/module/features/pmProgress/components/insights/StatsCard.js +65 -0
- package/dist/module/features/pmProgress/components/insights/StatsCard.js.map +1 -0
- package/dist/module/features/pmProgress/components/list/Fluency.js +64 -0
- package/dist/module/features/pmProgress/components/list/Fluency.js.map +1 -0
- package/dist/module/features/pmProgress/components/list/ListCard.js +180 -0
- package/dist/module/features/pmProgress/components/list/ListCard.js.map +1 -0
- package/dist/module/features/pmProgress/components/list/ListItem.js +112 -0
- package/dist/module/features/pmProgress/components/list/ListItem.js.map +1 -0
- package/dist/module/features/pmProgress/components/list/PmDomainList.js +80 -0
- package/dist/module/features/pmProgress/components/list/PmDomainList.js.map +1 -0
- package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js +112 -0
- package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js.map +1 -0
- package/dist/module/features/pmProgress/context/PmProgressContext.js +13 -0
- package/dist/module/features/pmProgress/context/PmProgressContext.js.map +1 -0
- package/dist/module/features/pmProgress/index.js +9 -0
- package/dist/module/features/pmProgress/index.js.map +1 -0
- package/dist/module/features/pmProgress/model/PmInsightsModel.js +17 -0
- package/dist/module/features/pmProgress/model/PmInsightsModel.js.map +1 -0
- package/dist/module/features/pmProgress/model/PmProgressApi.js +13 -0
- package/dist/module/features/pmProgress/model/PmProgressApi.js.map +1 -0
- package/dist/module/features/pmProgress/model/PmProgressModel.js +40 -0
- package/dist/module/features/pmProgress/model/PmProgressModel.js.map +1 -0
- package/dist/module/features/pmProgress/model/PmRecommendationsModel.js +42 -0
- package/dist/module/features/pmProgress/model/PmRecommendationsModel.js.map +1 -0
- package/dist/module/features/pmProgress/model/PmSolvingFlowModel.js +74 -0
- package/dist/module/features/pmProgress/model/PmSolvingFlowModel.js.map +1 -0
- package/dist/module/features/pmProgress/model/PmTreeModel.js +143 -0
- package/dist/module/features/pmProgress/model/PmTreeModel.js.map +1 -0
- package/dist/module/features/pmProgress/shared/pmProgress.constants.js +30 -0
- package/dist/module/features/pmProgress/shared/pmProgress.constants.js.map +1 -0
- package/dist/module/features/pmProgress/shared/pmProgress.helpers.js +177 -0
- package/dist/module/features/pmProgress/shared/pmProgress.helpers.js.map +1 -0
- package/dist/module/features/pmProgress/shared/pmProgress.types.js +10 -0
- package/dist/module/features/pmProgress/shared/pmProgress.types.js.map +1 -0
- package/dist/module/index.js +1 -0
- package/dist/module/index.js.map +1 -1
- package/dist/module/shared/icons/PentagonIcon.js +24 -0
- package/dist/module/shared/icons/PentagonIcon.js.map +1 -0
- package/dist/module/shared/icons/SketchArrowRight.js +25 -0
- package/dist/module/shared/icons/SketchArrowRight.js.map +1 -0
- package/dist/module/shared/icons/SliceDiamondIcon.js +24 -0
- package/dist/module/shared/icons/SliceDiamondIcon.js.map +1 -0
- package/dist/module/shared/icons/StarIcon.js +24 -0
- package/dist/module/shared/icons/StarIcon.js.map +1 -0
- package/dist/module/shared/icons/TimerIcon.js +27 -0
- package/dist/module/shared/icons/TimerIcon.js.map +1 -0
- package/dist/module/shared/translation/localization/ca.json +19 -0
- package/dist/module/shared/translation/localization/de.json +19 -0
- package/dist/module/shared/translation/localization/en.json +19 -0
- package/dist/module/shared/translation/localization/gb.json +19 -0
- package/dist/module/shared/translation/localization/sct.json +19 -0
- package/dist/module/shared/translation/localization/sw.json +19 -0
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/ChatInput.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/PmProgress.d.ts +9 -0
- package/dist/typescript/commonjs/features/pmProgress/PmProgress.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.helpers.d.ts +4 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.helpers.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.types.d.ts +36 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts +9 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts +10 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesPaths.d.ts +11 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesPaths.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts +12 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts +8 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts +14 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts +12 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/PieChartManager.d.ts +16 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/PieChartManager.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/SliceHighlight.d.ts +10 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/SliceHighlight.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts +17 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/header/PmProgressHeader.d.ts +3 -0
- package/dist/typescript/commonjs/features/pmProgress/components/header/PmProgressHeader.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/insights/PmInsights.d.ts +3 -0
- package/dist/typescript/commonjs/features/pmProgress/components/insights/PmInsights.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/insights/PmTimeframeStats.d.ts +3 -0
- package/dist/typescript/commonjs/features/pmProgress/components/insights/PmTimeframeStats.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/insights/StatsCard.d.ts +10 -0
- package/dist/typescript/commonjs/features/pmProgress/components/insights/StatsCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/list/Fluency.d.ts +8 -0
- package/dist/typescript/commonjs/features/pmProgress/components/list/Fluency.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListCard.d.ts +26 -0
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts +10 -0
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/list/PmDomainList.d.ts +3 -0
- package/dist/typescript/commonjs/features/pmProgress/components/list/PmDomainList.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/recs/PmTeacherRecs.d.ts +3 -0
- package/dist/typescript/commonjs/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/context/PmProgressContext.d.ts +12 -0
- package/dist/typescript/commonjs/features/pmProgress/context/PmProgressContext.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/index.d.ts +4 -0
- package/dist/typescript/commonjs/features/pmProgress/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmInsightsModel.d.ts +14 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmInsightsModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmProgressApi.d.ts +17 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmProgressApi.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmProgressModel.d.ts +21 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmProgressModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmRecommendationsModel.d.ts +102 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmRecommendationsModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmSolvingFlowModel.d.ts +19 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmSolvingFlowModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmTreeModel.d.ts +24 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmTreeModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.constants.d.ts +23 -0
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts +59 -0
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.types.d.ts +185 -0
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/index.d.ts +1 -0
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/PentagonIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/PentagonIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/SketchArrowRight.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/SketchArrowRight.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/SliceDiamondIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/SliceDiamondIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/StarIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/StarIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/TimerIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/TimerIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/translation/constants.d.ts +114 -0
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/model.d.ts +38 -0
- package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/ChatInput.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/PmProgress.d.ts +9 -0
- package/dist/typescript/module/features/pmProgress/PmProgress.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/chart.helpers.d.ts +4 -0
- package/dist/typescript/module/features/pmProgress/components/chart/chart.helpers.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/chart.types.d.ts +36 -0
- package/dist/typescript/module/features/pmProgress/components/chart/chart.types.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts +9 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts +10 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesPaths.d.ts +11 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesPaths.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts +12 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts +8 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts +14 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts +12 -0
- package/dist/typescript/module/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/model/PieChartManager.d.ts +16 -0
- package/dist/typescript/module/features/pmProgress/components/chart/model/PieChartManager.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/model/SliceHighlight.d.ts +10 -0
- package/dist/typescript/module/features/pmProgress/components/chart/model/SliceHighlight.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts +17 -0
- package/dist/typescript/module/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/header/PmProgressHeader.d.ts +3 -0
- package/dist/typescript/module/features/pmProgress/components/header/PmProgressHeader.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/insights/PmInsights.d.ts +3 -0
- package/dist/typescript/module/features/pmProgress/components/insights/PmInsights.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/insights/PmTimeframeStats.d.ts +3 -0
- package/dist/typescript/module/features/pmProgress/components/insights/PmTimeframeStats.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/insights/StatsCard.d.ts +10 -0
- package/dist/typescript/module/features/pmProgress/components/insights/StatsCard.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/list/Fluency.d.ts +8 -0
- package/dist/typescript/module/features/pmProgress/components/list/Fluency.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/list/ListCard.d.ts +26 -0
- package/dist/typescript/module/features/pmProgress/components/list/ListCard.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts +10 -0
- package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/list/PmDomainList.d.ts +3 -0
- package/dist/typescript/module/features/pmProgress/components/list/PmDomainList.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/recs/PmTeacherRecs.d.ts +3 -0
- package/dist/typescript/module/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/context/PmProgressContext.d.ts +12 -0
- package/dist/typescript/module/features/pmProgress/context/PmProgressContext.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/index.d.ts +4 -0
- package/dist/typescript/module/features/pmProgress/index.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/model/PmInsightsModel.d.ts +14 -0
- package/dist/typescript/module/features/pmProgress/model/PmInsightsModel.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/model/PmProgressApi.d.ts +17 -0
- package/dist/typescript/module/features/pmProgress/model/PmProgressApi.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/model/PmProgressModel.d.ts +21 -0
- package/dist/typescript/module/features/pmProgress/model/PmProgressModel.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/model/PmRecommendationsModel.d.ts +102 -0
- package/dist/typescript/module/features/pmProgress/model/PmRecommendationsModel.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/model/PmSolvingFlowModel.d.ts +19 -0
- package/dist/typescript/module/features/pmProgress/model/PmSolvingFlowModel.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/model/PmTreeModel.d.ts +24 -0
- package/dist/typescript/module/features/pmProgress/model/PmTreeModel.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.constants.d.ts +23 -0
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.constants.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts +59 -0
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.types.d.ts +185 -0
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.types.d.ts.map +1 -0
- package/dist/typescript/module/index.d.ts +1 -0
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/PentagonIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/PentagonIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/SketchArrowRight.d.ts +4 -0
- package/dist/typescript/module/shared/icons/SketchArrowRight.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/SliceDiamondIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/SliceDiamondIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/StarIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/StarIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/TimerIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/TimerIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/translation/constants.d.ts +114 -0
- package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/model.d.ts +38 -0
- package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
- package/package.json +13 -2
- package/src/features/chatbot/components/ChatInput/ChatInput.tsx +2 -1
- package/src/features/chatbot/components/ChatMessage/MessageContent.tsx +2 -1
- package/src/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.tsx +2 -2
- package/src/features/pmProgress/PmProgress.tsx +52 -0
- package/src/features/pmProgress/__tests__/.keep +0 -0
- package/src/features/pmProgress/components/chart/chart.helpers.ts +14 -0
- package/src/features/pmProgress/components/chart/chart.types.ts +37 -0
- package/src/features/pmProgress/components/chart/components/PracticeProgressPieChart.tsx +32 -0
- package/src/features/pmProgress/components/chart/components/SlicesClipPaths.tsx +22 -0
- package/src/features/pmProgress/components/chart/components/SlicesPaths.tsx +75 -0
- package/src/features/pmProgress/components/chart/components/layers/SliceArcPattern.tsx +44 -0
- package/src/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.tsx +11 -0
- package/src/features/pmProgress/components/chart/components/layers/SliceFillColor.tsx +88 -0
- package/src/features/pmProgress/components/chart/model/ArcPatternGenerator.ts +48 -0
- package/src/features/pmProgress/components/chart/model/PieChartManager.ts +20 -0
- package/src/features/pmProgress/components/chart/model/SliceHighlight.ts +17 -0
- package/src/features/pmProgress/components/chart/model/SliceShapeGenerator.ts +90 -0
- package/src/features/pmProgress/components/header/PmProgressHeader.tsx +187 -0
- package/src/features/pmProgress/components/insights/PmInsights.tsx +60 -0
- package/src/features/pmProgress/components/insights/PmTimeframeStats.tsx +85 -0
- package/src/features/pmProgress/components/insights/StatsCard.tsx +53 -0
- package/src/features/pmProgress/components/list/Fluency.tsx +59 -0
- package/src/features/pmProgress/components/list/ListCard.tsx +216 -0
- package/src/features/pmProgress/components/list/ListItem.tsx +132 -0
- package/src/features/pmProgress/components/list/PmDomainList.tsx +66 -0
- package/src/features/pmProgress/components/recs/PmTeacherRecs.tsx +108 -0
- package/src/features/pmProgress/context/PmProgressContext.tsx +23 -0
- package/src/features/pmProgress/index.ts +6 -0
- package/src/features/pmProgress/model/PmInsightsModel.ts +23 -0
- package/src/features/pmProgress/model/PmProgressApi.ts +34 -0
- package/src/features/pmProgress/model/PmProgressModel.ts +50 -0
- package/src/features/pmProgress/model/PmRecommendationsModel.ts +47 -0
- package/src/features/pmProgress/model/PmSolvingFlowModel.ts +105 -0
- package/src/features/pmProgress/model/PmTreeModel.ts +148 -0
- package/src/features/pmProgress/shared/pmProgress.constants.ts +73 -0
- package/src/features/pmProgress/shared/pmProgress.helpers.ts +239 -0
- package/src/features/pmProgress/shared/pmProgress.types.ts +207 -0
- package/src/index.ts +1 -0
- package/src/shared/icons/PentagonIcon.tsx +17 -0
- package/src/shared/icons/SketchArrowRight.tsx +18 -0
- package/src/shared/icons/SliceDiamondIcon.tsx +16 -0
- package/src/shared/icons/StarIcon.tsx +17 -0
- package/src/shared/icons/TimerIcon.tsx +21 -0
- package/src/shared/translation/localization/ca.json +19 -0
- package/src/shared/translation/localization/de.json +19 -0
- package/src/shared/translation/localization/en.json +19 -0
- package/src/shared/translation/localization/gb.json +19 -0
- package/src/shared/translation/localization/sct.json +19 -0
- package/src/shared/translation/localization/sw.json +19 -0
|
@@ -57,5 +57,24 @@
|
|
|
57
57
|
"transcriptions": "Transcriptions",
|
|
58
58
|
"attempt": "Attempt {{number}}",
|
|
59
59
|
"transcriptNotAvailable": "Transcript not available"
|
|
60
|
+
},
|
|
61
|
+
"pmProgress": {
|
|
62
|
+
"title": "Practice & Progress",
|
|
63
|
+
"startButton": "START",
|
|
64
|
+
"nextUp": "Next up!",
|
|
65
|
+
"teacherRecs": "Teacher recommendations",
|
|
66
|
+
"practiceButton": "PRACTICE",
|
|
67
|
+
"stars": "Practice stars",
|
|
68
|
+
"time": "Practice time",
|
|
69
|
+
"thisWeek": "This week",
|
|
70
|
+
"lastWeek": "Last week",
|
|
71
|
+
"allTime": "All time",
|
|
72
|
+
"fluency": "Fluency",
|
|
73
|
+
"andMore": "and {{count}} more...",
|
|
74
|
+
"skillsLeft": "skills left",
|
|
75
|
+
"skillLeft": "skill left",
|
|
76
|
+
"grade": "Grade",
|
|
77
|
+
"gradeK": "K",
|
|
78
|
+
"gradeOther": "Other"
|
|
60
79
|
}
|
|
61
80
|
}
|
|
@@ -57,5 +57,24 @@
|
|
|
57
57
|
"transcriptions": "Transkriptioner",
|
|
58
58
|
"attempt": "Försök {{number}}",
|
|
59
59
|
"transcriptNotAvailable": "Transkript inte tillgängligt"
|
|
60
|
+
},
|
|
61
|
+
"pmProgress": {
|
|
62
|
+
"title": "",
|
|
63
|
+
"startButton": "",
|
|
64
|
+
"nextUp": "",
|
|
65
|
+
"teacherRecs": "",
|
|
66
|
+
"practiceButton": "",
|
|
67
|
+
"stars": "",
|
|
68
|
+
"time": "",
|
|
69
|
+
"thisWeek": "",
|
|
70
|
+
"lastWeek": "",
|
|
71
|
+
"allTime": "",
|
|
72
|
+
"fluency": "",
|
|
73
|
+
"andMore": "",
|
|
74
|
+
"skillsLeft": "",
|
|
75
|
+
"skillLeft": "",
|
|
76
|
+
"grade": "",
|
|
77
|
+
"gradeK": "",
|
|
78
|
+
"gradeOther": ""
|
|
60
79
|
}
|
|
61
80
|
}
|
|
@@ -8,6 +8,7 @@ import { useChatModel } from "../../context/ChatBotModelContext.js";
|
|
|
8
8
|
import { ColorScheme } from "../../types/style.types.js";
|
|
9
9
|
import { HintButtonVariant, RequestHintButton } from "./RequestHintButton.js";
|
|
10
10
|
import { FreeTextInputBlock } from "./FreeText/FreeTextInputBlock.js";
|
|
11
|
+
import { SPACING } from '@magmamath/react-native-ui';
|
|
11
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
13
|
export const ChatInput = ({
|
|
13
14
|
isHintFeedback,
|
|
@@ -60,7 +61,7 @@ const styles = StyleSheet.create({
|
|
|
60
61
|
width: INPUT_WIDTH,
|
|
61
62
|
alignItems: 'flex-end',
|
|
62
63
|
justifyContent: 'center',
|
|
63
|
-
marginLeft:
|
|
64
|
+
marginLeft: SPACING[150]
|
|
64
65
|
}
|
|
65
66
|
});
|
|
66
67
|
//# sourceMappingURL=ChatInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useMemo","StyleSheet","View","INPUT_WIDTH","useStoreMap","useUnit","useChatModel","ColorScheme","HintButtonVariant","RequestHintButton","FreeTextInputBlock","jsx","_jsx","ChatInput","isHintFeedback","hasMessages","colorScheme","Blue","model","alternatives","$alternatives","isTranslated","translation","$isTranslated","isTranslationPending","translateAllMessagesFx","pending","isHelpRequestPending","sendHelpRequestFx","lastMessageOptions","$currentChatData","messages","lastMessage","at","options","option","length","shouldShowNextHintOption","hints","default","optionLabel","translatedText","text","sendMessage","message","translatedMessage","shouldDisableInput","style","styles","container","children","isOpenChatEnabled","onOptionPress","disabled","onPress","label","variant","DEFAULT","create","width","alignItems","justifyContent","marginLeft"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatInput/ChatInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACnD,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,WAAW,QAAQ,oBAAiB;AAC7C,SAASC,WAAW,EAAEC,OAAO,QAAQ,gBAAgB;AACrD,SAASC,YAAY,QAAQ,sCAAmC;AAChE,SAASC,WAAW,QAAQ,4BAAyB;AACrD,SAASC,iBAAiB,EAAEC,iBAAiB,QAAQ,wBAAqB;AAC1E,SAASC,kBAAkB,QAAQ,kCAA+B;AAAA,SAAAC,GAAA,IAAAC,IAAA;
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","StyleSheet","View","INPUT_WIDTH","useStoreMap","useUnit","useChatModel","ColorScheme","HintButtonVariant","RequestHintButton","FreeTextInputBlock","SPACING","jsx","_jsx","ChatInput","isHintFeedback","hasMessages","colorScheme","Blue","model","alternatives","$alternatives","isTranslated","translation","$isTranslated","isTranslationPending","translateAllMessagesFx","pending","isHelpRequestPending","sendHelpRequestFx","lastMessageOptions","$currentChatData","messages","lastMessage","at","options","option","length","shouldShowNextHintOption","hints","default","optionLabel","translatedText","text","sendMessage","message","translatedMessage","shouldDisableInput","style","styles","container","children","isOpenChatEnabled","onOptionPress","disabled","onPress","label","variant","DEFAULT","create","width","alignItems","justifyContent","marginLeft"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatInput/ChatInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACnD,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,WAAW,QAAQ,oBAAiB;AAC7C,SAASC,WAAW,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G,CAAC;AAEX,CAAC;AAED,MAAMT,MAAM,GAAGhD,UAAU,CAAC0D,MAAM,CAAC;EAC/BT,SAAS,EAAE;IACTU,KAAK,EAAEzD,WAAW;IAClB0D,UAAU,EAAE,UAAU;IACtBC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAEpD,OAAO,CAAC,GAAG;EACzB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,6 +5,7 @@ import { Platform, StyleSheet, Text, View } from 'react-native';
|
|
|
5
5
|
import { ColorScheme } from "../../types/style.types.js";
|
|
6
6
|
import { MessageButtonsBlock } from "./MessageButtonsBlock.js";
|
|
7
7
|
import { getSpacerSize } from "./helpers.js";
|
|
8
|
+
import { FONT_FAMILY } from '@magmamath/react-native-ui';
|
|
8
9
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
9
10
|
const MessageContentWeb = ({
|
|
10
11
|
message,
|
|
@@ -77,7 +78,7 @@ const styles = StyleSheet.create({
|
|
|
77
78
|
flex: 1,
|
|
78
79
|
fontSize: 20,
|
|
79
80
|
fontWeight: 400,
|
|
80
|
-
fontFamily:
|
|
81
|
+
fontFamily: FONT_FAMILY.buenosAires,
|
|
81
82
|
color: '#33334D',
|
|
82
83
|
width: '100%'
|
|
83
84
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Platform","StyleSheet","Text","View","ColorScheme","MessageButtonsBlock","getSpacerSize","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","MessageContentWeb","message","text","t2sState","variant","colorScheme","Blue","withErrorSpotting","highlightedWordIndex","TTSHighlightRenderer","TTSHighlightComponent","children","style","styles","messageText","highlightedIndex","width","MessageContentMobile","mobileMessageText","MessageContent","select","web","default","create","flex","fontSize","fontWeight","fontFamily","color","lineHeight"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageContent.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAI/D,SAASC,WAAW,QAAQ,4BAAyB;AAErD,SAASC,mBAAmB,QAAQ,0BAAuB;AAC3D,SAASC,aAAa,QAAQ,cAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;
|
|
1
|
+
{"version":3,"names":["React","Platform","StyleSheet","Text","View","ColorScheme","MessageButtonsBlock","getSpacerSize","FONT_FAMILY","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","MessageContentWeb","message","text","t2sState","variant","colorScheme","Blue","withErrorSpotting","highlightedWordIndex","TTSHighlightRenderer","TTSHighlightComponent","children","style","styles","messageText","highlightedIndex","width","MessageContentMobile","mobileMessageText","MessageContent","select","web","default","create","flex","fontSize","fontWeight","fontFamily","buenosAires","color","lineHeight"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageContent.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAI/D,SAASC,WAAW,QAAQ,4BAAyB;AAErD,SAASC,mBAAmB,QAAQ,0BAAuB;AAC3D,SAASC,aAAa,QAAQ,cAAW;AAEzC,SAASC,WAAW,QAAQ,4BAA4B;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAaxD,MAAMC,iBAAiB,GAAGA,CAAC;EACzBC,OAAO;EACPC,IAAI;EACJC,QAAQ;EACRC,OAAO;EACPC,WAAW,GAAGf,WAAW,CAACgB,IAAI;EAC9BC,iBAAiB;EACjBC,oBAAoB;EACpBC,oBAAoB,EAAEC;AACH,CAAC,KAAK;EACzB,oBACEb,KAAA,CAAAE,SAAA;IAAAY,QAAA,gBACEd,KAAA,C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IAAA,CACxD,CAAC,eACPR,IAAA,CAACJ,mBAAmB;MAClBU,OAAO,EAAEA,OAAQ;MACjBE,QAAQ,EAAEA,QAAS;MACnBC,OAAO,EAAEA,OAAQ;MACjBC,WAAW,EAAEA,WAAY;MACzBE,iBAAiB,EAAEA;IAAkB,CACtC,CAAC;EAAA,CACF,CAAC;AAEP,CAAC;AAED,OAAO,MAAMY,cAAc,GAAGjC,QAAQ,CAACkC,MAAM,CAAC;EAC5CC,GAAG,EAAErB,iBAAiB;EACtBsB,OAAO,EAAEL;AACX,CAAC,CAAC;AAEF,MAAMJ,MAAM,GAAG1B,UAAU,CAACoC,MAAM,CAAC;EAC/BT,WAAW,EAAE;IACXU,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAElC,WAAW,CAACmC,WAAW;IACnCC,KAAK,EAAE,SAAS;IAChBb,KAAK,EAAE;EACT,CAAC;EACDE,iBAAiB,EAAE;IACjBY,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { StyleSheet, Text, View } from 'react-native';
|
|
5
|
-
import { BORDER_RADIUS, COLORS, SHADOWS, SPACING } from '@magmamath/react-native-ui';
|
|
5
|
+
import { BORDER_RADIUS, COLORS, FONT_FAMILY, SHADOWS, SPACING } from '@magmamath/react-native-ui';
|
|
6
6
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
export const AssessmentScoreCard = ({
|
|
8
8
|
textContent,
|
|
@@ -32,7 +32,7 @@ const styles = StyleSheet.create({
|
|
|
32
32
|
fontSize: 96,
|
|
33
33
|
fontWeight: '700',
|
|
34
34
|
color: COLORS.NEUTRAL_9,
|
|
35
|
-
fontFamily:
|
|
35
|
+
fontFamily: FONT_FAMILY.buenosAires
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
//# sourceMappingURL=AssessmentScoreCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","Text","View","BORDER_RADIUS","COLORS","SHADOWS","SPACING","jsxs","_jsxs","jsx","_jsx","AssessmentScoreCard","textContent","solvedAmount","problemsAmount","style","styles","container","children","text","stats","score","create","alignItems","justifyContent","minHeight","minWidth","padding","borderRadius","backgroundColor","NEUTRAL_1","fontSize","fontWeight","color","NEUTRAL_9","fontFamily"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,aAAa,EAAEC,MAAM,EAAEC,OAAO,EAAEC,OAAO,QAAQ,4BAA4B;AAAA,SAAAC,IAAA,IAAAC,KAAA,EAAAC,GAAA,IAAAC,IAAA;
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Text","View","BORDER_RADIUS","COLORS","FONT_FAMILY","SHADOWS","SPACING","jsxs","_jsxs","jsx","_jsx","AssessmentScoreCard","textContent","solvedAmount","problemsAmount","style","styles","container","children","text","stats","score","create","alignItems","justifyContent","minHeight","minWidth","padding","borderRadius","backgroundColor","NEUTRAL_1","fontSize","fontWeight","color","NEUTRAL_9","fontFamily","buenosAires"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,aAAa,EAAEC,MAAM,EAAEC,WAAW,EAAEC,OAAO,EAAEC,OAAO,QAAQ,4BAA4B;AAAA,SAAAC,IAAA,IAAAC,KAAA,EAAAC,GAAA,IAAAC,IAAA;AASjG,OAAO,MAAMC,mBAAmB,GAAGA,CAAC;EAClCC,WAAW;EACXC,YAAY,GAAG,CAAC;EAChBC,cAAc,GAAG;AACO,CAAC,KAAK;EAC9B,oBACEJ,IAAA,CAACT,IAAI;IAACc,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,eAC5BV,KAAA,CAACR,IAAI;MAACe,KAAK,EAAEC,MAAM,CAACG,IAAK;MAAAD,QAAA,GACtBL,YAAY,EAAC,KAAG,EAACC,cAAc,EAAC,GAAC,EAACF,WAAW,CAACQ,KAAK,EAAEC,KAAK,IAAI,IAAI;IAAA,CAC/D;EAAC,CACH,CAAC;AAEX,CAAC;AAED,MAAML,MAAM,GAAGjB,UAAU,CAACuB,MAAM,CAAC;EAC/BL,SAAS,EAAE;IACTM,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,SAAS,EAAE,GAAG;IACdC,QAAQ,EAAE,GAAG;IACbC,OAAO,EAAErB,OAAO,CAAC,KAAK,CAAC;IACvBsB,YAAY,EAAE1B,aAAa,CAAC,KAAK,CAAC;IAClC2B,eAAe,EAAE1B,MAAM,CAAC2B,SAAS;IACjC,GAAGzB,OAAO,CAAC,GAAG;EAChB,CAAC;EACDc,IAAI,EAAE;IACJY,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAE9B,MAAM,CAAC+B,SAAS;IACvBC,UAAU,EAAE/B,WAAW,CAACgC;EAC1B;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo } from 'react';
|
|
4
|
+
import { View, StyleSheet } from 'react-native';
|
|
5
|
+
import { useGate } from 'effector-react';
|
|
6
|
+
import { SPACING } from '@magmamath/react-native-ui';
|
|
7
|
+
import { PmProgressHeader } from "./components/header/PmProgressHeader.js";
|
|
8
|
+
import { PmTeacherRecs } from "./components/recs/PmTeacherRecs.js";
|
|
9
|
+
import { PmDomainList } from "./components/list/PmDomainList.js";
|
|
10
|
+
import { PmInsights } from "./components/insights/PmInsights.js";
|
|
11
|
+
import { PmProgressProvider } from "./context/PmProgressContext.js";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
export const PmProgress = /*#__PURE__*/memo(({
|
|
14
|
+
model,
|
|
15
|
+
user,
|
|
16
|
+
...props
|
|
17
|
+
}) => {
|
|
18
|
+
useGate(model.gate, {
|
|
19
|
+
user
|
|
20
|
+
});
|
|
21
|
+
return /*#__PURE__*/_jsx(PmProgressProvider, {
|
|
22
|
+
value: {
|
|
23
|
+
model,
|
|
24
|
+
...props
|
|
25
|
+
},
|
|
26
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
27
|
+
style: styles.container,
|
|
28
|
+
children: [/*#__PURE__*/_jsx(PmProgressHeader, {}), /*#__PURE__*/_jsxs(View, {
|
|
29
|
+
style: styles.content,
|
|
30
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
31
|
+
style: styles.column,
|
|
32
|
+
children: [/*#__PURE__*/_jsx(PmTeacherRecs, {}), /*#__PURE__*/_jsx(PmDomainList, {})]
|
|
33
|
+
}), /*#__PURE__*/_jsx(PmInsights, {})]
|
|
34
|
+
})]
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
const styles = StyleSheet.create({
|
|
39
|
+
container: {
|
|
40
|
+
flex: 1,
|
|
41
|
+
overflow: 'hidden',
|
|
42
|
+
height: '100%'
|
|
43
|
+
},
|
|
44
|
+
content: {
|
|
45
|
+
flex: 1,
|
|
46
|
+
flexDirection: 'row',
|
|
47
|
+
overflow: 'hidden'
|
|
48
|
+
},
|
|
49
|
+
column: {
|
|
50
|
+
flex: 1,
|
|
51
|
+
overflow: 'hidden',
|
|
52
|
+
marginRight: SPACING[500],
|
|
53
|
+
gap: SPACING[200]
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=PmProgress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","View","StyleSheet","useGate","SPACING","PmProgressHeader","PmTeacherRecs","PmDomainList","PmInsights","PmProgressProvider","jsx","_jsx","jsxs","_jsxs","PmProgress","model","user","props","gate","value","children","style","styles","container","content","column","create","flex","overflow","height","flexDirection","marginRight","gap"],"sourceRoot":"../../../../src","sources":["features/pmProgress/PmProgress.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,OAAO,QAAQ,4BAA4B;AACpD,SAASC,gBAAgB,QAAQ,yCAAsC;AACvE,SAASC,aAAa,QAAQ,oCAAiC;AAC/D,SAASC,YAAY,QAAQ,mCAAgC;AAC7D,SAASC,UAAU,QAAQ,qCAAkC;AAC7D,SAAiCC,kBAAkB,QAAQ,gCAA6B;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAKxF,OAAO,MAAMC,UAAU,gBAAGd,IAAI,CAAC,CAAC;EAAEe,KAAK;EAAEC,IAAI;EAAE,GAAGC;AAAuB,CAAC,KAAK;EAC7Ed,OAAO,CAACY,KAAK,CAACG,IAAI,EAAE;IAAEF;EAAK,CAAC,CAAC;EAE7B,oBACEL,IAAA,CAACF,kBAAkB;IAACU,KAAK,EAAE;MAAEJ,KAAK;MAAE,GAAGE;IAAM,CAAE;IAAAG,QAAA,eAC7CP,KAAA,CAACZ,IAAI;MAACoB,KAAK,EAAEC,MAAM,CAACC,SAAU;MAAAH,QAAA,gBAC5BT,IAAA,CAACN,gBAAgB,IAAE,CAAC,eAEpBQ,KAAA,CAACZ,IAAI;QAACoB,KAAK,EAAEC,MAAM,CAACE,OAAQ;QAAAJ,QAAA,gBAC1BP,KAAA,CAACZ,IAAI;UAACoB,KAAK,EAAEC,MAAM,CAACG,MAAO;UAAAL,QAAA,gBACzBT,IAAA,CAACL,aAAa,IAAE,CAAC,eACjBK,IAAA,CAACJ,YAAY,IAAE,CAAC;QAAA,CACZ,CAAC,eAEPI,IAAA,CAACH,UAAU,IAAE,CAAC;MAAA,CACV,CAAC;IAAA,CACH;EAAC,CACW,CAAC;AAEzB,CAAC,CAAC;AAEF,MAAMc,MAAM,GAAGpB,UAAU,CAACwB,MAAM,CAAC;EAC/BH,SAAS,EAAE;IACTI,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,QAAQ;IAClBC,MAAM,EAAE;EACV,CAAC;EACDL,OAAO,EAAE;IACPG,IAAI,EAAE,CAAC;IACPG,aAAa,EAAE,KAAK;IACpBF,QAAQ,EAAE;EACZ,CAAC;EACDH,MAAM,EAAE;IACNE,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,QAAQ;IAClBG,WAAW,EAAE3B,OAAO,CAAC,GAAG,CAAC;IACzB4B,GAAG,EAAE5B,OAAO,CAAC,GAAG;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export const getSliceClipId = index => `slice-clip-${index}`;
|
|
4
|
+
export const dynamicInnerRadius = sliceCount => {
|
|
5
|
+
if (sliceCount > 5) return 12;
|
|
6
|
+
if (sliceCount > 4) return 14;
|
|
7
|
+
if (sliceCount > 3) return 16;
|
|
8
|
+
return 30;
|
|
9
|
+
};
|
|
10
|
+
export const dynamicCornerRadius = fillPercent => {
|
|
11
|
+
if (fillPercent >= 30) return 8;
|
|
12
|
+
if (fillPercent >= 5) return 6;
|
|
13
|
+
return 4;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=chart.helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getSliceClipId","index","dynamicInnerRadius","sliceCount","dynamicCornerRadius","fillPercent"],"sourceRoot":"../../../../../../src","sources":["features/pmProgress/components/chart/chart.helpers.ts"],"mappings":";;AAAA,OAAO,MAAMA,cAAc,GAAIC,KAAsB,IAAK,cAAcA,KAAK,EAAE;AAE/E,OAAO,MAAMC,kBAAkB,GAAIC,UAAkB,IAAa;EAChE,IAAIA,UAAU,GAAG,CAAC,EAAE,OAAO,EAAE;EAC7B,IAAIA,UAAU,GAAG,CAAC,EAAE,OAAO,EAAE;EAC7B,IAAIA,UAAU,GAAG,CAAC,EAAE,OAAO,EAAE;EAC7B,OAAO,EAAE;AACX,CAAC;AAED,OAAO,MAAMC,mBAAmB,GAAIC,WAAmB,IAAa;EAClE,IAAIA,WAAW,IAAI,EAAE,EAAE,OAAO,CAAC;EAC/B,IAAIA,WAAW,IAAI,CAAC,EAAE,OAAO,CAAC;EAC9B,OAAO,CAAC;AACV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["features/pmProgress/components/chart/chart.types.ts"],"mappings":"","ignoreList":[]}
|
package/dist/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo, useMemo } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import Svg, { G } from 'react-native-svg';
|
|
6
|
+
import { PieChartManager } from "../model/PieChartManager.js";
|
|
7
|
+
import { SlicesClipPaths } from "./SlicesClipPaths.js";
|
|
8
|
+
import { SlicesPaths } from "./SlicesPaths.js";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
export const PracticeProgressPieChart = /*#__PURE__*/memo(({
|
|
11
|
+
data,
|
|
12
|
+
config
|
|
13
|
+
}) => {
|
|
14
|
+
const pieChartManager = useMemo(() => new PieChartManager(config), [config]);
|
|
15
|
+
const center = pieChartManager.getCenter();
|
|
16
|
+
const slices = useMemo(() => {
|
|
17
|
+
return pieChartManager.shape.generateSlices(data);
|
|
18
|
+
}, [data, pieChartManager]);
|
|
19
|
+
return /*#__PURE__*/_jsx(View, {
|
|
20
|
+
children: /*#__PURE__*/_jsx(Svg, {
|
|
21
|
+
width: config.size,
|
|
22
|
+
height: config.size,
|
|
23
|
+
children: /*#__PURE__*/_jsxs(G, {
|
|
24
|
+
x: center.x,
|
|
25
|
+
y: center.y,
|
|
26
|
+
children: [/*#__PURE__*/_jsx(SlicesClipPaths, {
|
|
27
|
+
slices: slices,
|
|
28
|
+
pieChartManager: pieChartManager
|
|
29
|
+
}), /*#__PURE__*/_jsx(SlicesPaths, {
|
|
30
|
+
slices: slices,
|
|
31
|
+
pieChartManager: pieChartManager,
|
|
32
|
+
config: config
|
|
33
|
+
})]
|
|
34
|
+
})
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=PracticeProgressPieChart.js.map
|
package/dist/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useMemo","View","Svg","G","PieChartManager","SlicesClipPaths","SlicesPaths","jsx","_jsx","jsxs","_jsxs","PracticeProgressPieChart","data","config","pieChartManager","center","getCenter","slices","shape","generateSlices","children","width","size","height","x","y"],"sourceRoot":"../../../../../../../src","sources":["features/pmProgress/components/chart/components/PracticeProgressPieChart.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAC5C,SAAqBC,IAAI,QAAQ,cAAc;AAC/C,OAAOC,GAAG,IAAIC,CAAC,QAAQ,kBAAkB;AACzC,SAASC,eAAe,QAAQ,6BAA0B;AAC1D,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,WAAW,QAAQ,kBAAe;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQ3C,OAAO,MAAMC,wBAAwB,gBAAGZ,IAAI,CAAC,CAAC;EAAEa,IAAI;EAAEC;AAAsC,CAAC,KAAK;EAChG,MAAMC,eAAe,GAAGd,OAAO,CAAC,MAAM,IAAII,eAAe,CAACS,MAAM,CAAC,EAAE,CAACA,MAAM,CAAC,CAAC;EAC5E,MAAME,MAAM,GAAGD,eAAe,CAACE,SAAS,CAAC,CAAC;EAE1C,MAAMC,MAAM,GAAGjB,OAAO,CAAC,MAAM;IAC3B,OAAOc,eAAe,CAACI,KAAK,CAACC,cAAc,CAACP,IAAI,CAAC;EACnD,CAAC,EAAE,CAACA,IAAI,EAAEE,eAAe,CAAC,CAAC;EAE3B,oBACEN,IAAA,CAACP,IAAI;IAAAmB,QAAA,eACHZ,IAAA,CAACN,GAAG;MAACmB,KAAK,EAAER,MAAM,CAACS,IAAK;MAACC,MAAM,EAAEV,MAAM,CAACS,IAAK;MAAAF,QAAA,eAC3CV,KAAA,CAACP,CAAC;QAACqB,CAAC,EAAET,MAAM,CAACS,CAAE;QAACC,CAAC,EAAEV,MAAM,CAACU,CAAE;QAAAL,QAAA,gBAC1BZ,IAAA,CAACH,eAAe;UAACY,MAAM,EAAEA,MAAO;UAACH,eAAe,EAAEA;QAAgB,CAAE,CAAC,eACrEN,IAAA,CAACF,WAAW;UAACW,MAAM,EAAEA,MAAO;UAACH,eAAe,EAAEA,eAAgB;UAACD,MAAM,EAAEA;QAAO,CAAE,CAAC;MAAA,CAChF;IAAC,CACD;EAAC,CACF,CAAC;AAEX,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { ClipPath, Defs, Path } from 'react-native-svg';
|
|
5
|
+
import { getSliceClipId } from "../chart.helpers.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
export const SlicesClipPaths = ({
|
|
8
|
+
slices,
|
|
9
|
+
pieChartManager
|
|
10
|
+
}) => {
|
|
11
|
+
return /*#__PURE__*/_jsx(Defs, {
|
|
12
|
+
children: slices.map(slice => /*#__PURE__*/_jsx(ClipPath, {
|
|
13
|
+
id: getSliceClipId(slice.index),
|
|
14
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
15
|
+
d: pieChartManager.shape.generateSlicePath(slice)
|
|
16
|
+
})
|
|
17
|
+
}, slice.index))
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=SlicesClipPaths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ClipPath","Defs","Path","getSliceClipId","jsx","_jsx","SlicesClipPaths","slices","pieChartManager","children","map","slice","id","index","d","shape","generateSlicePath"],"sourceRoot":"../../../../../../../src","sources":["features/pmProgress/components/chart/components/SlicesClipPaths.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,IAAI,EAAEC,IAAI,QAAQ,kBAAkB;AACvD,SAASC,cAAc,QAAQ,qBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AASjD,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAAEC,MAAM;EAAEC;AAAsC,CAAC,KAAK;EACpF,oBACEH,IAAA,CAACJ,IAAI;IAAAQ,QAAA,EACFF,MAAM,CAACG,GAAG,CAAEC,KAAK,iBAChBN,IAAA,CAACL,QAAQ;MAAmBY,EAAE,EAAET,cAAc,CAACQ,KAAK,CAACE,KAAK,CAAE;MAAAJ,QAAA,eAC1DJ,IAAA,CAACH,IAAI;QAACY,CAAC,EAAEN,eAAe,CAACO,KAAK,CAACC,iBAAiB,CAACL,KAAK;MAAE,CAAE;IAAC,GAD9CA,KAAK,CAACE,KAEX,CACX;EAAC,CACE,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Platform, StyleSheet } from 'react-native';
|
|
5
|
+
import { G } from 'react-native-svg';
|
|
6
|
+
import { useUnit } from 'effector-react';
|
|
7
|
+
import { SliceBackgroundColor } from "./layers/SliceBackgroundColor.js";
|
|
8
|
+
import { SliceFillColor } from "./layers/SliceFillColor.js";
|
|
9
|
+
import { SliceArcPattern } from "./layers/SliceArcPattern.js";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
|
+
export const SlicesPaths = ({
|
|
12
|
+
slices,
|
|
13
|
+
pieChartManager,
|
|
14
|
+
config
|
|
15
|
+
}) => {
|
|
16
|
+
const highlightedIndex = useUnit(pieChartManager.highlight.$highlightedIndex);
|
|
17
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
18
|
+
children: slices.map(slice => {
|
|
19
|
+
const id = `${slice.index}`;
|
|
20
|
+
const shapeSvg = pieChartManager.shape.generateSlicePath(slice);
|
|
21
|
+
const fillSvg = pieChartManager.shape.generateFillPath(slice);
|
|
22
|
+
const fillBorderSvg = pieChartManager.shape.generateFillBorderPath(slice);
|
|
23
|
+
const isHighlighted = highlightedIndex === slice.index;
|
|
24
|
+
const translateY = pieChartManager.highlight.getTranslateY(isHighlighted);
|
|
25
|
+
const borderWidth = isHighlighted ? config.borderWidth : 0;
|
|
26
|
+
return /*#__PURE__*/_jsxs(G, {
|
|
27
|
+
style: styles.container,
|
|
28
|
+
transform: `translate(0, ${translateY})`,
|
|
29
|
+
onMouseEnter: () => pieChartManager.highlight.set(slice.index),
|
|
30
|
+
onMouseDown: () => pieChartManager.highlight.set(slice.index),
|
|
31
|
+
onMouseUp: () => pieChartManager.highlight.reset(),
|
|
32
|
+
onMouseLeave: () => pieChartManager.highlight.reset(),
|
|
33
|
+
children: [/*#__PURE__*/_jsx(SliceBackgroundColor, {
|
|
34
|
+
path: shapeSvg,
|
|
35
|
+
color: isHighlighted ? config.colors.highlightedBackground : slice.backgroundColor
|
|
36
|
+
}), /*#__PURE__*/_jsx(SliceFillColor, {
|
|
37
|
+
clipPathId: id,
|
|
38
|
+
shapeSvg: shapeSvg,
|
|
39
|
+
fillSvg: fillSvg,
|
|
40
|
+
fillBorderSvg: fillBorderSvg,
|
|
41
|
+
color: slice.fillColor,
|
|
42
|
+
percent: slice.fillPercent,
|
|
43
|
+
borderColor: isHighlighted ? slice.borderColor : undefined,
|
|
44
|
+
borderWidth: borderWidth || undefined
|
|
45
|
+
}), /*#__PURE__*/_jsx(SliceArcPattern, {
|
|
46
|
+
clipPathId: id,
|
|
47
|
+
slice: slice,
|
|
48
|
+
config: config,
|
|
49
|
+
pieChartManager: pieChartManager
|
|
50
|
+
})]
|
|
51
|
+
}, id);
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
const styles = StyleSheet.create({
|
|
56
|
+
container: {
|
|
57
|
+
cursor: 'pointer',
|
|
58
|
+
...(Platform.OS === 'web' ? {
|
|
59
|
+
transition: 'transform 0.1s ease-in-out'
|
|
60
|
+
} : {})
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
//# sourceMappingURL=SlicesPaths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Platform","StyleSheet","G","useUnit","SliceBackgroundColor","SliceFillColor","SliceArcPattern","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","SlicesPaths","slices","pieChartManager","config","highlightedIndex","highlight","$highlightedIndex","children","map","slice","id","index","shapeSvg","shape","generateSlicePath","fillSvg","generateFillPath","fillBorderSvg","generateFillBorderPath","isHighlighted","translateY","getTranslateY","borderWidth","style","styles","container","transform","onMouseEnter","set","onMouseDown","onMouseUp","reset","onMouseLeave","path","color","colors","highlightedBackground","backgroundColor","clipPathId","fillColor","percent","fillPercent","borderColor","undefined","create","cursor","OS","transition"],"sourceRoot":"../../../../../../../src","sources":["features/pmProgress/components/chart/components/SlicesPaths.tsx"],"mappings":";;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G;MAAEC,UAAU,EAAE;IAA6B,CAAC,GAAG,CAAC,CAAC;EAC/E;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { G, Path } from 'react-native-svg';
|
|
5
|
+
import { getSliceClipId } from "../../chart.helpers.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
export const SliceArcPattern = ({
|
|
8
|
+
clipPathId,
|
|
9
|
+
slice,
|
|
10
|
+
pieChartManager,
|
|
11
|
+
config
|
|
12
|
+
}) => {
|
|
13
|
+
const patternSizes = pieChartManager.pattern.getPatternTrackSizes();
|
|
14
|
+
return /*#__PURE__*/_jsx(G, {
|
|
15
|
+
clipPath: `url(#${getSliceClipId(clipPathId)})`,
|
|
16
|
+
children: patternSizes.map((radius, rowIndex) => {
|
|
17
|
+
const arcPath = pieChartManager.pattern.generateArcPath(slice, radius);
|
|
18
|
+
const dashWidth = pieChartManager.pattern.getDashWidthForRadius(radius);
|
|
19
|
+
const dashOffset = pieChartManager.pattern.getDashOffset(rowIndex, radius);
|
|
20
|
+
return /*#__PURE__*/_jsx(Path, {
|
|
21
|
+
d: arcPath,
|
|
22
|
+
fill: "none",
|
|
23
|
+
stroke: config.outerArc.color,
|
|
24
|
+
strokeWidth: config.outerArc.strokeWidth,
|
|
25
|
+
strokeDasharray: [dashWidth, dashWidth],
|
|
26
|
+
strokeDashoffset: dashOffset,
|
|
27
|
+
strokeLinecap: "butt"
|
|
28
|
+
}, rowIndex);
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=SliceArcPattern.js.map
|
package/dist/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","G","Path","getSliceClipId","jsx","_jsx","SliceArcPattern","clipPathId","slice","pieChartManager","config","patternSizes","pattern","getPatternTrackSizes","clipPath","children","map","radius","rowIndex","arcPath","generateArcPath","dashWidth","getDashWidthForRadius","dashOffset","getDashOffset","d","fill","stroke","outerArc","color","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap"],"sourceRoot":"../../../../../../../../src","sources":["features/pmProgress/components/chart/components/layers/SliceArcPattern.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,CAAC,EAAEC,IAAI,QAAQ,kBAAkB;AAC1C,SAASC,cAAc,QAAQ,wBAAqB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAWpD,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAC9BC,UAAU;EACVC,KAAK;EACLC,eAAe;EACfC;AACoB,CAAC,KAAK;EAC1B,MAAMC,YAAY,GAAGF,eAAe,CAACG,OAAO,CAACC,oBAAoB,CAAC,CAAC;EAEnE,oBACER,IAAA,CAACJ,CAAC;IAACa,QAAQ,EAAE,QAAQX,cAAc,CAACI,UAAU,CAAC,GAAI;IAAAQ,QAAA,EAChDJ,YAAY,CAACK,GAAG,CAAC,CAACC,MAAM,EAAEC,QAAQ,KAAK;MACtC,MAAMC,OAAO,GAAGV,eAAe,CAACG,OAAO,CAACQ,eAAe,CAACZ,KAAK,EAAES,MAAM,CAAC;MACtE,MAAMI,SAAS,GAAGZ,eAAe,CAACG,OAAO,CAACU,qBAAqB,CAACL,MAAM,CAAC;MACvE,MAAMM,UAAU,GAAGd,eAAe,CAACG,OAAO,CAACY,aAAa,CAACN,QAAQ,EAAED,MAAM,CAAC;MAE1E,oBACEZ,IAAA,CAACH,IAAI;QAEHuB,CAAC,EAAEN,OAAQ;QACXO,IAAI,EAAC,MAAM;QACXC,MAAM,EAAEjB,MAAM,CAACkB,QAAQ,CAACC,KAAM;QAC9BC,WAAW,EAAEpB,MAAM,CAACkB,QAAQ,CAACE,WAAY;QACzCC,eAAe,EAAE,CAACV,SAAS,EAAEA,SAAS,CAAE;QACxCW,gBAAgB,EAAET,UAAW;QAC7BU,aAAa,EAAC;MAAM,GAPff,QAQN,CAAC;IAEN,CAAC;EAAC,CACD,CAAC;AAER,CAAC","ignoreList":[]}
|
package/dist/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Path } from 'react-native-svg';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
export const SliceBackgroundColor = ({
|
|
7
|
+
path,
|
|
8
|
+
color
|
|
9
|
+
}) => {
|
|
10
|
+
return /*#__PURE__*/_jsx(Path, {
|
|
11
|
+
d: path,
|
|
12
|
+
fill: color
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=SliceBackgroundColor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Path","jsx","_jsx","SliceBackgroundColor","path","color","d","fill"],"sourceRoot":"../../../../../../../../src","sources":["features/pmProgress/components/chart/components/layers/SliceBackgroundColor.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAOvC,OAAO,MAAMC,oBAAoB,GAAGA,CAAC;EAAEC,IAAI;EAAEC;AAA4B,CAAC,KAAK;EAC7E,oBAAOH,IAAA,CAACF,IAAI;IAACM,CAAC,EAAEF,IAAK;IAACG,IAAI,EAAEF;EAAM,CAAE,CAAC;AACvC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { ClipPath, Defs, G, Path } from 'react-native-svg';
|
|
5
|
+
import { getSliceClipId } from "../../chart.helpers.js";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
7
|
+
export const SliceFillColor = ({
|
|
8
|
+
clipPathId,
|
|
9
|
+
shapeSvg,
|
|
10
|
+
fillSvg,
|
|
11
|
+
fillBorderSvg,
|
|
12
|
+
color,
|
|
13
|
+
percent,
|
|
14
|
+
borderColor,
|
|
15
|
+
borderWidth
|
|
16
|
+
}) => {
|
|
17
|
+
const isFullyFilled = percent >= 100;
|
|
18
|
+
const isPartiallyFilled = percent > 0;
|
|
19
|
+
const hasBorder = borderColor != null && borderWidth != null && borderWidth > 0;
|
|
20
|
+
const sliceClipId = getSliceClipId(clipPathId);
|
|
21
|
+
const borderClipId = `${sliceClipId}-border`;
|
|
22
|
+
if (isFullyFilled) {
|
|
23
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
24
|
+
children: [hasBorder && /*#__PURE__*/_jsx(Defs, {
|
|
25
|
+
children: /*#__PURE__*/_jsx(ClipPath, {
|
|
26
|
+
id: borderClipId,
|
|
27
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
28
|
+
d: fillBorderSvg
|
|
29
|
+
})
|
|
30
|
+
})
|
|
31
|
+
}), /*#__PURE__*/_jsxs(G, {
|
|
32
|
+
clipPath: `url(#${sliceClipId})`,
|
|
33
|
+
children: [/*#__PURE__*/_jsx(Path, {
|
|
34
|
+
d: shapeSvg,
|
|
35
|
+
fill: color
|
|
36
|
+
}), hasBorder && /*#__PURE__*/_jsx(G, {
|
|
37
|
+
clipPath: `url(#${borderClipId})`,
|
|
38
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
39
|
+
d: fillBorderSvg,
|
|
40
|
+
fill: "none",
|
|
41
|
+
stroke: borderColor,
|
|
42
|
+
strokeWidth: borderWidth * 2
|
|
43
|
+
})
|
|
44
|
+
})]
|
|
45
|
+
})]
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
if (isPartiallyFilled) {
|
|
49
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
50
|
+
children: [hasBorder && /*#__PURE__*/_jsx(Defs, {
|
|
51
|
+
children: /*#__PURE__*/_jsx(ClipPath, {
|
|
52
|
+
id: borderClipId,
|
|
53
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
54
|
+
d: fillBorderSvg
|
|
55
|
+
})
|
|
56
|
+
})
|
|
57
|
+
}), /*#__PURE__*/_jsxs(G, {
|
|
58
|
+
clipPath: `url(#${sliceClipId})`,
|
|
59
|
+
children: [/*#__PURE__*/_jsx(Path, {
|
|
60
|
+
d: fillSvg,
|
|
61
|
+
fill: color
|
|
62
|
+
}), hasBorder && /*#__PURE__*/_jsx(G, {
|
|
63
|
+
clipPath: `url(#${borderClipId})`,
|
|
64
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
65
|
+
d: fillBorderSvg,
|
|
66
|
+
fill: "none",
|
|
67
|
+
stroke: borderColor,
|
|
68
|
+
strokeWidth: borderWidth * 2
|
|
69
|
+
})
|
|
70
|
+
})]
|
|
71
|
+
})]
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
return null;
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=SliceFillColor.js.map
|
package/dist/module/features/pmProgress/components/chart/components/layers/SliceFillColor.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ClipPath","Defs","G","Path","getSliceClipId","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","SliceFillColor","clipPathId","shapeSvg","fillSvg","fillBorderSvg","color","percent","borderColor","borderWidth","isFullyFilled","isPartiallyFilled","hasBorder","sliceClipId","borderClipId","children","id","d","clipPath","fill","stroke","strokeWidth"],"sourceRoot":"../../../../../../../../src","sources":["features/pmProgress/components/chart/components/layers/SliceFillColor.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,IAAI,EAAEC,CAAC,EAAEC,IAAI,QAAQ,kBAAkB;AAC1D,SAASC,cAAc,QAAQ,wBAAqB;AAAA,SA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;MAAA,CACA,CAAC;IAAA,CACJ,CAAC;EAEP;EAEA,IAAIE,iBAAiB,EAAE;IACrB,oBACEb,KAAA,CAAAE,SAAA;MAAAe,QAAA,GACGH,SAAS,iBACRhB,IAAA,CAACL,IAAI;QAAAwB,QAAA,eACHnB,IAAA,CAACN,QAAQ;UAAC0B,EAAE,EAAEF,YAAa;UAAAC,QAAA,eACzBnB,IAAA,CAACH,IAAI;YAACwB,CAAC,EAAEZ;UAAc,CAAE;QAAC,CAClB;MAAC,CACP,CACP,eACDP,KAAA,CAACN,CAAC;QAAC0B,QAAQ,EAAE,QAAQL,WAAW,GAAI;QAAAE,QAAA,gBAClCnB,IAAA,CAACH,IAAI;UAACwB,CAAC,EAAEb,OAAQ;UAACe,IAAI,EAAEb;QAAM,CAAE,CAAC,EAChCM,SAAS,iBACRhB,IAAA,CAACJ,CAAC;UAAC0B,QAAQ,EAAE,QAAQJ,YAAY,GAAI;UAAAC,QAAA,eACnCnB,IAAA,CAACH,IAAI;YACHwB,CAAC,EAAEZ,aAAc;YACjBc,IAAI,EAAC,MAAM;YACXC,MAAM,EAAEZ,WAAY;YACpBa,WAAW,EAAEZ,WAAW,GAAI;UAAE,CAC/B;QAAC,CACD,CACJ;MAAA,CACA,CAAC;IAAA,CACJ,CAAC;EAEP;EAEA,OAAO,IAAI;AACb,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export class OuterArcPatternGenerator {
|
|
4
|
+
constructor(config) {
|
|
5
|
+
this.config = config;
|
|
6
|
+
}
|
|
7
|
+
generateArcPath(slice, radius) {
|
|
8
|
+
const gapAngle = this.config.gapBetweenSlices / (2 * radius);
|
|
9
|
+
const startAngle = slice.startAngle + gapAngle;
|
|
10
|
+
const endAngle = slice.endAngle - gapAngle;
|
|
11
|
+
const startPoint = this.polarToCartesian(radius, startAngle);
|
|
12
|
+
const endPoint = this.polarToCartesian(radius, endAngle);
|
|
13
|
+
const largeArcFlag = endAngle - startAngle > Math.PI ? 1 : 0;
|
|
14
|
+
return `M ${startPoint.x} ${startPoint.y} A ${radius} ${radius} 0 ${largeArcFlag} 1 ${endPoint.x} ${endPoint.y}`;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** Returns the sizes of the two rings where the checkerboard dashes are drawn. */
|
|
18
|
+
getPatternTrackSizes() {
|
|
19
|
+
const {
|
|
20
|
+
outerRadius,
|
|
21
|
+
outerArc
|
|
22
|
+
} = this.config;
|
|
23
|
+
return [outerRadius - outerArc.strokeWidth / 2, outerRadius - outerArc.strokeWidth * 1.5];
|
|
24
|
+
}
|
|
25
|
+
getDashWidthForRadius(radius) {
|
|
26
|
+
return this.config.outerArc.dashWidth * (radius / this.config.outerRadius);
|
|
27
|
+
}
|
|
28
|
+
getDashOffset(rowIndex, radius) {
|
|
29
|
+
const dashAngle = this.config.outerArc.dashWidth / this.config.outerRadius;
|
|
30
|
+
const dashWidthAtRadius = dashAngle * radius;
|
|
31
|
+
const baseOffset = dashWidthAtRadius / 2;
|
|
32
|
+
if (rowIndex === 1) {
|
|
33
|
+
return baseOffset - dashWidthAtRadius;
|
|
34
|
+
}
|
|
35
|
+
return baseOffset;
|
|
36
|
+
}
|
|
37
|
+
polarToCartesian(radius, angleInRadians) {
|
|
38
|
+
return {
|
|
39
|
+
x: radius * Math.sin(angleInRadians),
|
|
40
|
+
y: -radius * Math.cos(angleInRadians)
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=ArcPatternGenerator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["OuterArcPatternGenerator","constructor","config","generateArcPath","slice","radius","gapAngle","gapBetweenSlices","startAngle","endAngle","startPoint","polarToCartesian","endPoint","largeArcFlag","Math","PI","x","y","getPatternTrackSizes","outerRadius","outerArc","strokeWidth","getDashWidthForRadius","dashWidth","getDashOffset","rowIndex","dashAngle","dashWidthAtRadius","baseOffset","angleInRadians","sin","cos"],"sourceRoot":"../../../../../../../src","sources":["features/pmProgress/components/chart/model/ArcPatternGenerator.ts"],"mappings":";;AAEA,OAAO,MAAMA,wBAAwB,CAAC;EACpCC,WAAWA,CAAkBC,MAA6B,EAAE;IAAA,KAA/BA,MAA6B,GAA7BA,MAA6B;EAAG;EAEtDC,eAAeA,CAACC,KAAiB,EAAEC,MAAc,EAAE;IACxD,MAAMC,QAAQ,GAAG,IAAI,CAACJ,MAAM,CAACK,gBAAgB,IAAI,CAAC,GAAGF,MAAM,CAAC;IAC5D,MAAMG,UAAU,GAAGJ,KAAK,CAACI,UAAU,GAAGF,QAAQ;IAC9C,MAAMG,QAAQ,GAAGL,KAAK,CAACK,QAAQ,GAAGH,QAAQ;IAE1C,MAAMI,UAAU,GAAG,IAAI,CAACC,gBAAgB,CAACN,MAAM,EAAEG,UAAU,CAAC;IAC5D,MAAMI,QAAQ,GAAG,IAAI,CAACD,gBAAgB,CAACN,MAAM,EAAEI,QAAQ,CAAC;IACxD,MAAMI,YAAY,GAAGJ,QAAQ,GAAGD,UAAU,GAAGM,IAAI,CAACC,EAAE,GAAG,CAAC,GAAG,CAAC;IAE5D,OAAO,KAAKL,UAAU,CAACM,CAAC,IAAIN,UAAU,CAACO,CAAC,MAAMZ,MAAM,IAAIA,MAAM,MAAMQ,YAAY,MAAMD,QAAQ,CAACI,CAAC,IAAIJ,QAAQ,CAACK,CAAC,EAAE;EAClH;;EAEA;EACOC,oBAAoBA,CAAA,EAAqB;IAC9C,MAAM;MAAEC,WAAW;MAAEC;IAAS,CAAC,GAAG,IAAI,CAAClB,MAAM;IAC7C,OAAO,CACLiB,WAAW,GAAGC,QAAQ,CAACC,WAAW,GAAG,CAAC,EACtCF,WAAW,GAAGC,QAAQ,CAACC,WAAW,GAAG,GAAG,CACzC;EACH;EAEOC,qBAAqBA,CAACjB,MAAc,EAAE;IAC3C,OAAO,IAAI,CAACH,MAAM,CAACkB,QAAQ,CAACG,SAAS,IAAIlB,MAAM,GAAG,IAAI,CAACH,MAAM,CAACiB,WAAW,CAAC;EAC5E;EAEOK,aAAaA,CAACC,QAAgB,EAAEpB,MAAc,EAAE;IACrD,MAAMqB,SAAS,GAAG,IAAI,CAACxB,MAAM,CAACkB,QAAQ,CAACG,SAAS,GAAG,IAAI,CAACrB,MAAM,CAACiB,WAAW;IAC1E,MAAMQ,iBAAiB,GAAGD,SAAS,GAAGrB,MAAM;IAC5C,MAAMuB,UAAU,GAAGD,iBAAiB,GAAG,CAAC;IAExC,IAAIF,QAAQ,KAAK,CAAC,EAAE;MAClB,OAAOG,UAAU,GAAGD,iBAAiB;IACvC;IACA,OAAOC,UAAU;EACnB;EAEQjB,gBAAgBA,CAACN,MAAc,EAAEwB,cAAsB,EAAE;IAC/D,OAAO;MACLb,CAAC,EAAEX,MAAM,GAAGS,IAAI,CAACgB,GAAG,CAACD,cAAc,CAAC;MACpCZ,CAAC,EAAE,CAACZ,MAAM,GAAGS,IAAI,CAACiB,GAAG,CAACF,cAAc;IACtC,CAAC;EACH;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { SliceShapeGenerator } from "./SliceShapeGenerator.js";
|
|
4
|
+
import { OuterArcPatternGenerator } from "./ArcPatternGenerator.js";
|
|
5
|
+
import { SliceHighlight } from "./SliceHighlight.js";
|
|
6
|
+
export class PieChartManager {
|
|
7
|
+
constructor(config) {
|
|
8
|
+
this.config = config;
|
|
9
|
+
this.shape = new SliceShapeGenerator(config);
|
|
10
|
+
this.pattern = new OuterArcPatternGenerator(config);
|
|
11
|
+
this.highlight = new SliceHighlight(config);
|
|
12
|
+
}
|
|
13
|
+
getCenter() {
|
|
14
|
+
return {
|
|
15
|
+
x: this.config.size / 2,
|
|
16
|
+
y: this.config.size / 2
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=PieChartManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SliceShapeGenerator","OuterArcPatternGenerator","SliceHighlight","PieChartManager","constructor","config","shape","pattern","highlight","getCenter","x","size","y"],"sourceRoot":"../../../../../../../src","sources":["features/pmProgress/components/chart/model/PieChartManager.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,0BAAuB;AAC3D,SAASC,wBAAwB,QAAQ,0BAAuB;AAChE,SAASC,cAAc,QAAQ,qBAAkB;AAGjD,OAAO,MAAMC,eAAe,CAAC;EAK3BC,WAAWA,CAAiBC,MAA6B,EAAE;IAAA,KAA/BA,MAA6B,GAA7BA,MAA6B;IACvD,IAAI,CAACC,KAAK,GAAG,IAAIN,mBAAmB,CAACK,MAAM,CAAC;IAC5C,IAAI,CAACE,OAAO,GAAG,IAAIN,wBAAwB,CAACI,MAAM,CAAC;IACnD,IAAI,CAACG,SAAS,GAAG,IAAIN,cAAc,CAACG,MAAM,CAAC;EAC7C;EAEOI,SAASA,CAAA,EAAG;IACjB,OAAO;MAAEC,CAAC,EAAE,IAAI,CAACL,MAAM,CAACM,IAAI,GAAG,CAAC;MAAEC,CAAC,EAAE,IAAI,CAACP,MAAM,CAACM,IAAI,GAAG;IAAE,CAAC;EAC7D;AACF","ignoreList":[]}
|