@magmamath/students-features 1.2.1-rc.2 → 1.2.1-rc.21
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 +23 -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 +77 -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 +70 -0
- package/dist/commonjs/features/pmProgress/components/insights/PmInsights.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/insights/PmTimeframeStats.js +94 -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 +69 -0
- package/dist/commonjs/features/pmProgress/components/list/Fluency.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/list/ListCard.js +198 -0
- package/dist/commonjs/features/pmProgress/components/list/ListCard.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/list/ListItem.js +121 -0
- package/dist/commonjs/features/pmProgress/components/list/ListItem.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js +89 -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/components/standard/StandardTag.js +202 -0
- package/dist/commonjs/features/pmProgress/components/standard/StandardTag.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 +56 -0
- package/dist/commonjs/features/pmProgress/index.js.map +1 -0
- package/dist/commonjs/features/pmProgress/model/PmHighlightModel.js +15 -0
- package/dist/commonjs/features/pmProgress/model/PmHighlightModel.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 +43 -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 +100 -0
- package/dist/commonjs/features/pmProgress/model/PmSolvingFlowModel.js.map +1 -0
- package/dist/commonjs/features/pmProgress/model/PmTreeModel.js +141 -0
- package/dist/commonjs/features/pmProgress/model/PmTreeModel.js.map +1 -0
- package/dist/commonjs/features/pmProgress/shared/pmProgress.constants.js +49 -0
- package/dist/commonjs/features/pmProgress/shared/pmProgress.constants.js.map +1 -0
- package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js +221 -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/features/voice/recording/model/VoiceRecord.model.js +0 -5
- package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
- package/dist/commonjs/features/voice/types.js +0 -6
- package/dist/commonjs/features/voice/types.js.map +1 -1
- 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 +16 -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 +71 -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 +63 -0
- package/dist/module/features/pmProgress/components/insights/PmInsights.js.map +1 -0
- package/dist/module/features/pmProgress/components/insights/PmTimeframeStats.js +89 -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 +63 -0
- package/dist/module/features/pmProgress/components/list/Fluency.js.map +1 -0
- package/dist/module/features/pmProgress/components/list/ListCard.js +191 -0
- package/dist/module/features/pmProgress/components/list/ListCard.js.map +1 -0
- package/dist/module/features/pmProgress/components/list/ListItem.js +114 -0
- package/dist/module/features/pmProgress/components/list/ListItem.js.map +1 -0
- package/dist/module/features/pmProgress/components/list/PmDomainList.js +83 -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/components/standard/StandardTag.js +196 -0
- package/dist/module/features/pmProgress/components/standard/StandardTag.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 +11 -0
- package/dist/module/features/pmProgress/index.js.map +1 -0
- package/dist/module/features/pmProgress/model/PmHighlightModel.js +10 -0
- package/dist/module/features/pmProgress/model/PmHighlightModel.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 +38 -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 +95 -0
- package/dist/module/features/pmProgress/model/PmSolvingFlowModel.js.map +1 -0
- package/dist/module/features/pmProgress/model/PmTreeModel.js +136 -0
- package/dist/module/features/pmProgress/model/PmTreeModel.js.map +1 -0
- package/dist/module/features/pmProgress/shared/pmProgress.constants.js +46 -0
- package/dist/module/features/pmProgress/shared/pmProgress.constants.js.map +1 -0
- package/dist/module/features/pmProgress/shared/pmProgress.helpers.js +202 -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/features/voice/recording/model/VoiceRecord.model.js +0 -5
- package/dist/module/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
- package/dist/module/features/voice/types.js +1 -5
- package/dist/module/features/voice/types.js.map +1 -1
- 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 +30 -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 +11 -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/components/standard/StandardTag.d.ts +9 -0
- package/dist/typescript/commonjs/features/pmProgress/components/standard/StandardTag.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 +6 -0
- package/dist/typescript/commonjs/features/pmProgress/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmHighlightModel.d.ts +7 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmHighlightModel.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 +23 -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 +20 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmSolvingFlowModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmTreeModel.d.ts +19 -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 +36 -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 +64 -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 +187 -0
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecord.model.d.ts +1 -3
- package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecord.model.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/types.d.ts +0 -4
- package/dist/typescript/commonjs/features/voice/types.d.ts.map +1 -1
- 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 +30 -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 +11 -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/components/standard/StandardTag.d.ts +9 -0
- package/dist/typescript/module/features/pmProgress/components/standard/StandardTag.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 +6 -0
- package/dist/typescript/module/features/pmProgress/index.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/model/PmHighlightModel.d.ts +7 -0
- package/dist/typescript/module/features/pmProgress/model/PmHighlightModel.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 +23 -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 +20 -0
- package/dist/typescript/module/features/pmProgress/model/PmSolvingFlowModel.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/model/PmTreeModel.d.ts +19 -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 +36 -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 +64 -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 +187 -0
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.types.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/recording/model/VoiceRecord.model.d.ts +1 -3
- package/dist/typescript/module/features/voice/recording/model/VoiceRecord.model.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/types.d.ts +0 -4
- package/dist/typescript/module/features/voice/types.d.ts.map +1 -1
- 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 +23 -12
- 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 +15 -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 +86 -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 +58 -0
- package/src/features/pmProgress/components/insights/PmTimeframeStats.tsx +83 -0
- package/src/features/pmProgress/components/insights/StatsCard.tsx +53 -0
- package/src/features/pmProgress/components/list/Fluency.tsx +58 -0
- package/src/features/pmProgress/components/list/ListCard.tsx +231 -0
- package/src/features/pmProgress/components/list/ListItem.tsx +136 -0
- package/src/features/pmProgress/components/list/PmDomainList.tsx +69 -0
- package/src/features/pmProgress/components/recs/PmTeacherRecs.tsx +109 -0
- package/src/features/pmProgress/components/standard/StandardTag.tsx +177 -0
- package/src/features/pmProgress/context/PmProgressContext.tsx +23 -0
- package/src/features/pmProgress/index.ts +8 -0
- package/src/features/pmProgress/model/PmHighlightModel.ts +11 -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 +48 -0
- package/src/features/pmProgress/model/PmRecommendationsModel.ts +47 -0
- package/src/features/pmProgress/model/PmSolvingFlowModel.ts +131 -0
- package/src/features/pmProgress/model/PmTreeModel.ts +130 -0
- package/src/features/pmProgress/shared/pmProgress.constants.ts +88 -0
- package/src/features/pmProgress/shared/pmProgress.helpers.ts +271 -0
- package/src/features/pmProgress/shared/pmProgress.types.ts +210 -0
- package/src/features/voice/recording/model/VoiceRecord.model.ts +0 -7
- package/src/features/voice/types.ts +0 -5
- 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
|
@@ -9,6 +9,7 @@ export * from './features/problemSelector';
|
|
|
9
9
|
export * from './features/gifCelebrations';
|
|
10
10
|
export * from './features/exampleSolution';
|
|
11
11
|
export * from './features/keyboard';
|
|
12
|
+
export * from './features/pmProgress';
|
|
12
13
|
export * from './features/openEnded';
|
|
13
14
|
export * from './shared/icons';
|
|
14
15
|
export * from './features/voice';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AACvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AACvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PentagonIcon.d.ts","sourceRoot":"","sources":["../../../../../src/shared/icons/PentagonIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC,eAAO,MAAM,YAAY,oBAA0B,SAAS,sBAY3D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SketchArrowRight.d.ts","sourceRoot":"","sources":["../../../../../src/shared/icons/SketchArrowRight.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC,eAAO,MAAM,gBAAgB,oBAAsC,SAAS,sBAa3E,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliceDiamondIcon.d.ts","sourceRoot":"","sources":["../../../../../src/shared/icons/SliceDiamondIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAGxC,eAAO,MAAM,gBAAgB,oBAA0B,SAAS,sBAW/D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StarIcon.d.ts","sourceRoot":"","sources":["../../../../../src/shared/icons/StarIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAGxC,eAAO,MAAM,QAAQ,qBAA8C,SAAS,sBAW3E,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimerIcon.d.ts","sourceRoot":"","sources":["../../../../../src/shared/icons/TimerIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAGxC,eAAO,MAAM,SAAS,oBAA6C,SAAS,sBAe3E,CAAA"}
|
|
@@ -59,6 +59,25 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
59
59
|
attempt: string;
|
|
60
60
|
transcriptNotAvailable: string;
|
|
61
61
|
};
|
|
62
|
+
pmProgress: {
|
|
63
|
+
title: string;
|
|
64
|
+
startButton: string;
|
|
65
|
+
nextUp: string;
|
|
66
|
+
teacherRecs: string;
|
|
67
|
+
practiceButton: string;
|
|
68
|
+
stars: string;
|
|
69
|
+
time: string;
|
|
70
|
+
thisWeek: string;
|
|
71
|
+
lastWeek: string;
|
|
72
|
+
allTime: string;
|
|
73
|
+
fluency: string;
|
|
74
|
+
andMore: string;
|
|
75
|
+
skillsLeft: string;
|
|
76
|
+
skillLeft: string;
|
|
77
|
+
grade: string;
|
|
78
|
+
gradeK: string;
|
|
79
|
+
gradeOther: string;
|
|
80
|
+
};
|
|
62
81
|
};
|
|
63
82
|
"en-GB": {
|
|
64
83
|
locale: string;
|
|
@@ -120,6 +139,25 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
120
139
|
attempt: string;
|
|
121
140
|
transcriptNotAvailable: string;
|
|
122
141
|
};
|
|
142
|
+
pmProgress: {
|
|
143
|
+
title: string;
|
|
144
|
+
startButton: string;
|
|
145
|
+
nextUp: string;
|
|
146
|
+
teacherRecs: string;
|
|
147
|
+
practiceButton: string;
|
|
148
|
+
stars: string;
|
|
149
|
+
time: string;
|
|
150
|
+
thisWeek: string;
|
|
151
|
+
lastWeek: string;
|
|
152
|
+
allTime: string;
|
|
153
|
+
fluency: string;
|
|
154
|
+
andMore: string;
|
|
155
|
+
skillsLeft: string;
|
|
156
|
+
skillLeft: string;
|
|
157
|
+
grade: string;
|
|
158
|
+
gradeK: string;
|
|
159
|
+
gradeOther: string;
|
|
160
|
+
};
|
|
123
161
|
};
|
|
124
162
|
"sv-SE": {
|
|
125
163
|
locale: string;
|
|
@@ -181,6 +219,25 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
181
219
|
attempt: string;
|
|
182
220
|
transcriptNotAvailable: string;
|
|
183
221
|
};
|
|
222
|
+
pmProgress: {
|
|
223
|
+
title: string;
|
|
224
|
+
startButton: string;
|
|
225
|
+
nextUp: string;
|
|
226
|
+
teacherRecs: string;
|
|
227
|
+
practiceButton: string;
|
|
228
|
+
stars: string;
|
|
229
|
+
time: string;
|
|
230
|
+
thisWeek: string;
|
|
231
|
+
lastWeek: string;
|
|
232
|
+
allTime: string;
|
|
233
|
+
fluency: string;
|
|
234
|
+
andMore: string;
|
|
235
|
+
skillsLeft: string;
|
|
236
|
+
skillLeft: string;
|
|
237
|
+
grade: string;
|
|
238
|
+
gradeK: string;
|
|
239
|
+
gradeOther: string;
|
|
240
|
+
};
|
|
184
241
|
};
|
|
185
242
|
"en-CA": {
|
|
186
243
|
locale: string;
|
|
@@ -242,6 +299,25 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
242
299
|
attempt: string;
|
|
243
300
|
transcriptNotAvailable: string;
|
|
244
301
|
};
|
|
302
|
+
pmProgress: {
|
|
303
|
+
title: string;
|
|
304
|
+
startButton: string;
|
|
305
|
+
nextUp: string;
|
|
306
|
+
teacherRecs: string;
|
|
307
|
+
practiceButton: string;
|
|
308
|
+
stars: string;
|
|
309
|
+
time: string;
|
|
310
|
+
thisWeek: string;
|
|
311
|
+
lastWeek: string;
|
|
312
|
+
allTime: string;
|
|
313
|
+
fluency: string;
|
|
314
|
+
andMore: string;
|
|
315
|
+
skillsLeft: string;
|
|
316
|
+
skillLeft: string;
|
|
317
|
+
grade: string;
|
|
318
|
+
gradeK: string;
|
|
319
|
+
gradeOther: string;
|
|
320
|
+
};
|
|
245
321
|
};
|
|
246
322
|
"en-SCT": {
|
|
247
323
|
locale: string;
|
|
@@ -303,6 +379,25 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
303
379
|
attempt: string;
|
|
304
380
|
transcriptNotAvailable: string;
|
|
305
381
|
};
|
|
382
|
+
pmProgress: {
|
|
383
|
+
title: string;
|
|
384
|
+
startButton: string;
|
|
385
|
+
nextUp: string;
|
|
386
|
+
teacherRecs: string;
|
|
387
|
+
practiceButton: string;
|
|
388
|
+
stars: string;
|
|
389
|
+
time: string;
|
|
390
|
+
thisWeek: string;
|
|
391
|
+
lastWeek: string;
|
|
392
|
+
allTime: string;
|
|
393
|
+
fluency: string;
|
|
394
|
+
andMore: string;
|
|
395
|
+
skillsLeft: string;
|
|
396
|
+
skillLeft: string;
|
|
397
|
+
grade: string;
|
|
398
|
+
gradeK: string;
|
|
399
|
+
gradeOther: string;
|
|
400
|
+
};
|
|
306
401
|
};
|
|
307
402
|
"de-DE": {
|
|
308
403
|
locale: string;
|
|
@@ -364,6 +459,25 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
364
459
|
attempt: string;
|
|
365
460
|
transcriptNotAvailable: string;
|
|
366
461
|
};
|
|
462
|
+
pmProgress: {
|
|
463
|
+
title: string;
|
|
464
|
+
startButton: string;
|
|
465
|
+
nextUp: string;
|
|
466
|
+
teacherRecs: string;
|
|
467
|
+
practiceButton: string;
|
|
468
|
+
stars: string;
|
|
469
|
+
time: string;
|
|
470
|
+
thisWeek: string;
|
|
471
|
+
lastWeek: string;
|
|
472
|
+
allTime: string;
|
|
473
|
+
fluency: string;
|
|
474
|
+
andMore: string;
|
|
475
|
+
skillsLeft: string;
|
|
476
|
+
skillLeft: string;
|
|
477
|
+
grade: string;
|
|
478
|
+
gradeK: string;
|
|
479
|
+
gradeOther: string;
|
|
480
|
+
};
|
|
367
481
|
};
|
|
368
482
|
};
|
|
369
483
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhC,CAAA"}
|
|
@@ -60,6 +60,25 @@ export declare const setLocalization: import("effector").EventCallable<{
|
|
|
60
60
|
attempt: string;
|
|
61
61
|
transcriptNotAvailable: string;
|
|
62
62
|
};
|
|
63
|
+
pmProgress: {
|
|
64
|
+
title: string;
|
|
65
|
+
startButton: string;
|
|
66
|
+
nextUp: string;
|
|
67
|
+
teacherRecs: string;
|
|
68
|
+
practiceButton: string;
|
|
69
|
+
stars: string;
|
|
70
|
+
time: string;
|
|
71
|
+
thisWeek: string;
|
|
72
|
+
lastWeek: string;
|
|
73
|
+
allTime: string;
|
|
74
|
+
fluency: string;
|
|
75
|
+
andMore: string;
|
|
76
|
+
skillsLeft: string;
|
|
77
|
+
skillLeft: string;
|
|
78
|
+
grade: string;
|
|
79
|
+
gradeK: string;
|
|
80
|
+
gradeOther: string;
|
|
81
|
+
};
|
|
63
82
|
} | ((config: typeof LOCALIZATION_CONFIGS) => Translations)>;
|
|
64
83
|
export declare const $localization: import("effector").StoreWritable<{
|
|
65
84
|
locale: string;
|
|
@@ -121,5 +140,24 @@ export declare const $localization: import("effector").StoreWritable<{
|
|
|
121
140
|
attempt: string;
|
|
122
141
|
transcriptNotAvailable: string;
|
|
123
142
|
};
|
|
143
|
+
pmProgress: {
|
|
144
|
+
title: string;
|
|
145
|
+
startButton: string;
|
|
146
|
+
nextUp: string;
|
|
147
|
+
teacherRecs: string;
|
|
148
|
+
practiceButton: string;
|
|
149
|
+
stars: string;
|
|
150
|
+
time: string;
|
|
151
|
+
thisWeek: string;
|
|
152
|
+
lastWeek: string;
|
|
153
|
+
allTime: string;
|
|
154
|
+
fluency: string;
|
|
155
|
+
andMore: string;
|
|
156
|
+
skillsLeft: string;
|
|
157
|
+
skillLeft: string;
|
|
158
|
+
grade: string;
|
|
159
|
+
gradeK: string;
|
|
160
|
+
gradeOther: string;
|
|
161
|
+
};
|
|
124
162
|
}>;
|
|
125
163
|
//# sourceMappingURL=model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAGlD,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAGlD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACD,OAAO,oBAAoB,KAAK,YAAY,EACpE,CAAA;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMzB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magmamath/students-features",
|
|
3
|
-
"version": "1.2.1-rc.
|
|
3
|
+
"version": "1.2.1-rc.21",
|
|
4
4
|
"description": "Magmamath features library",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -17,53 +17,64 @@
|
|
|
17
17
|
"prepare": "bob build",
|
|
18
18
|
"release": "release-it"
|
|
19
19
|
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"d3-shape": "3.2.0"
|
|
22
|
+
},
|
|
20
23
|
"peerDependencies": {
|
|
21
24
|
"@magmamath/frontend-config": "1.1.0",
|
|
22
25
|
"@magmamath/react-native-ui": "*",
|
|
26
|
+
"@matteappen/skills-utils": "^3.7.1",
|
|
27
|
+
"@react-native-masked-view/masked-view": "*",
|
|
28
|
+
"d3-shape": "3.2.0",
|
|
23
29
|
"effector": "^23.2.3",
|
|
30
|
+
"effector-action": "^1.2.2",
|
|
24
31
|
"effector-react": "^23.2.1",
|
|
32
|
+
"effector-storage": "^8.0.0",
|
|
33
|
+
"expo": ">=52.0.47",
|
|
34
|
+
"expo-audio": "^1.1.1",
|
|
25
35
|
"patronum": "^2.3.0",
|
|
26
36
|
"react": "*",
|
|
27
37
|
"react-native": "*",
|
|
28
38
|
"react-native-gesture-handler": "*",
|
|
39
|
+
"react-native-linear-gradient": "*",
|
|
29
40
|
"react-native-modalfy": "*",
|
|
30
41
|
"react-native-reanimated": ">=0.3.16",
|
|
31
|
-
"react-native-svg": "^15.10.0"
|
|
32
|
-
"expo-audio": "^1.1.1",
|
|
33
|
-
"expo": ">=52.0.47",
|
|
34
|
-
"@react-native-masked-view/masked-view": "*",
|
|
35
|
-
"react-native-linear-gradient": "*"
|
|
42
|
+
"react-native-svg": "^15.10.0"
|
|
36
43
|
},
|
|
37
44
|
"devDependencies": {
|
|
38
|
-
"@magmamath/react-native-ui": "0.4.83",
|
|
39
45
|
"@magmamath/frontend-config": "1.1.0",
|
|
46
|
+
"@magmamath/react-native-ui": "0.4.83",
|
|
47
|
+
"@matteappen/skills-utils": "^3.7.1",
|
|
48
|
+
"@react-native-masked-view/masked-view": "^0.3.2",
|
|
40
49
|
"@react-native/eslint-config": "^0.73.1",
|
|
41
50
|
"@release-it/conventional-changelog": "^9.0.2",
|
|
51
|
+
"@types/d3-shape": "3.1.7",
|
|
42
52
|
"@types/jest": "^29.5.5",
|
|
43
53
|
"@types/react": "^18.2.44",
|
|
54
|
+
"axios": "^1.13.5",
|
|
44
55
|
"del-cli": "^5.1.0",
|
|
45
56
|
"effector": "^23.2.3",
|
|
57
|
+
"effector-action": "1.2.2",
|
|
46
58
|
"effector-react": "^23.2.1",
|
|
59
|
+
"effector-storage": "^8.0.0",
|
|
47
60
|
"eslint": "^8.51.0",
|
|
48
61
|
"eslint-config-prettier": "^9.0.0",
|
|
49
62
|
"eslint-plugin-prettier": "^5.0.1",
|
|
50
63
|
"expo": "^52.0.47",
|
|
51
64
|
"expo-audio": "^1.1.1",
|
|
52
65
|
"jest": "^29.7.0",
|
|
53
|
-
"prettier": "^3.0.3",
|
|
54
66
|
"patronum": "^2.3.0",
|
|
67
|
+
"prettier": "^3.0.3",
|
|
55
68
|
"react": "18.3.1",
|
|
56
69
|
"react-native": "0.76.3",
|
|
57
70
|
"react-native-builder-bob": "^0.33.3",
|
|
58
71
|
"react-native-gesture-handler": "^2.28.0",
|
|
72
|
+
"react-native-linear-gradient": "^2.8.3",
|
|
59
73
|
"react-native-modalfy": "^3.7.0",
|
|
60
74
|
"react-native-reanimated": "^3.17.2",
|
|
61
75
|
"react-native-svg": "^15.10.0",
|
|
62
76
|
"release-it": "^17.10.0",
|
|
63
|
-
"typescript": "^5.2.2"
|
|
64
|
-
"axios": "^1.13.5",
|
|
65
|
-
"@react-native-masked-view/masked-view": "^0.3.2",
|
|
66
|
-
"react-native-linear-gradient": "^2.8.3"
|
|
77
|
+
"typescript": "^5.2.2"
|
|
67
78
|
},
|
|
68
79
|
"resolutions": {
|
|
69
80
|
"@types/react": "^18.2.44"
|
|
@@ -6,6 +6,7 @@ import { useChatModel } from '../../context/ChatBotModelContext'
|
|
|
6
6
|
import { ColorScheme } from '../../types/style.types'
|
|
7
7
|
import { HintButtonVariant, RequestHintButton } from './RequestHintButton'
|
|
8
8
|
import { FreeTextInputBlock } from './FreeText/FreeTextInputBlock'
|
|
9
|
+
import { SPACING } from '@magmamath/react-native-ui'
|
|
9
10
|
|
|
10
11
|
export type ChatInputProps = {
|
|
11
12
|
hasMessages: boolean
|
|
@@ -82,6 +83,6 @@ const styles = StyleSheet.create({
|
|
|
82
83
|
width: INPUT_WIDTH,
|
|
83
84
|
alignItems: 'flex-end',
|
|
84
85
|
justifyContent: 'center',
|
|
85
|
-
marginLeft:
|
|
86
|
+
marginLeft: SPACING[150],
|
|
86
87
|
},
|
|
87
88
|
})
|
|
@@ -8,6 +8,7 @@ import { ColorScheme } from '../../types/style.types'
|
|
|
8
8
|
import { MessageButtonsBlock } from './MessageButtonsBlock'
|
|
9
9
|
import { getSpacerSize } from './helpers'
|
|
10
10
|
import { MessageVariant } from '../../types/model.types'
|
|
11
|
+
import { FONT_FAMILY } from '@magmamath/react-native-ui'
|
|
11
12
|
|
|
12
13
|
type MessageContentProps = {
|
|
13
14
|
text: string
|
|
@@ -100,7 +101,7 @@ const styles = StyleSheet.create({
|
|
|
100
101
|
flex: 1,
|
|
101
102
|
fontSize: 20,
|
|
102
103
|
fontWeight: 400,
|
|
103
|
-
fontFamily:
|
|
104
|
+
fontFamily: FONT_FAMILY.buenosAires,
|
|
104
105
|
color: '#33334D',
|
|
105
106
|
width: '100%',
|
|
106
107
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { StyleSheet, Text, View } from 'react-native'
|
|
3
|
-
import { BORDER_RADIUS, COLORS, SHADOWS, SPACING } from '@magmamath/react-native-ui'
|
|
3
|
+
import { BORDER_RADIUS, COLORS, FONT_FAMILY, SHADOWS, SPACING } from '@magmamath/react-native-ui'
|
|
4
4
|
import { EOAModalText } from '@magmamath/students-features'
|
|
5
5
|
|
|
6
6
|
type AssessmentScoreCardProps = {
|
|
@@ -38,6 +38,6 @@ const styles = StyleSheet.create({
|
|
|
38
38
|
fontSize: 96,
|
|
39
39
|
fontWeight: '700',
|
|
40
40
|
color: COLORS.NEUTRAL_9,
|
|
41
|
-
fontFamily:
|
|
41
|
+
fontFamily: FONT_FAMILY.buenosAires,
|
|
42
42
|
},
|
|
43
43
|
})
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React, { memo } from 'react'
|
|
2
|
+
import { View, StyleSheet } from 'react-native'
|
|
3
|
+
import { useGate } from 'effector-react'
|
|
4
|
+
import { SPACING } from '@magmamath/react-native-ui'
|
|
5
|
+
import { PmProgressHeader } from './components/header/PmProgressHeader'
|
|
6
|
+
import { PmTeacherRecs } from './components/recs/PmTeacherRecs'
|
|
7
|
+
import { PmDomainList } from './components/list/PmDomainList'
|
|
8
|
+
import { PmInsights } from './components/insights/PmInsights'
|
|
9
|
+
import { PmProgressContextValue, PmProgressProvider } from './context/PmProgressContext'
|
|
10
|
+
import { User } from './shared/pmProgress.types'
|
|
11
|
+
|
|
12
|
+
type PmProgressProps = { user: User } & PmProgressContextValue
|
|
13
|
+
|
|
14
|
+
export const PmProgress = memo(({ model, user, ...props }: PmProgressProps) => {
|
|
15
|
+
useGate(model.gate, { user })
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<PmProgressProvider value={{ model, ...props }}>
|
|
19
|
+
<View style={styles.container}>
|
|
20
|
+
<PmProgressHeader />
|
|
21
|
+
|
|
22
|
+
<View style={styles.content}>
|
|
23
|
+
<View style={styles.column}>
|
|
24
|
+
<PmTeacherRecs />
|
|
25
|
+
<PmDomainList />
|
|
26
|
+
</View>
|
|
27
|
+
|
|
28
|
+
<PmInsights />
|
|
29
|
+
</View>
|
|
30
|
+
</View>
|
|
31
|
+
</PmProgressProvider>
|
|
32
|
+
)
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
const styles = StyleSheet.create({
|
|
36
|
+
container: {
|
|
37
|
+
flex: 1,
|
|
38
|
+
overflow: 'hidden',
|
|
39
|
+
height: '100%',
|
|
40
|
+
},
|
|
41
|
+
content: {
|
|
42
|
+
flex: 1,
|
|
43
|
+
flexDirection: 'row',
|
|
44
|
+
overflow: 'hidden',
|
|
45
|
+
},
|
|
46
|
+
column: {
|
|
47
|
+
flex: 1,
|
|
48
|
+
overflow: 'hidden',
|
|
49
|
+
marginRight: SPACING[500],
|
|
50
|
+
gap: SPACING[200],
|
|
51
|
+
},
|
|
52
|
+
})
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const getSliceClipId = (index: number | string) => `slice-clip-${index}`
|
|
2
|
+
|
|
3
|
+
export const dynamicInnerRadius = (sliceCount: number): number => {
|
|
4
|
+
if (sliceCount >= 5) return 14
|
|
5
|
+
if (sliceCount === 4) return 8
|
|
6
|
+
if (sliceCount === 3) return 6
|
|
7
|
+
if (sliceCount === 2) return 4
|
|
8
|
+
return 30
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const dynamicCornerRadius = (fillPercent: number): number => {
|
|
12
|
+
if (fillPercent >= 30) return 8
|
|
13
|
+
if (fillPercent >= 5) return 6
|
|
14
|
+
return 4
|
|
15
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type SliceInputData = {
|
|
2
|
+
value: number
|
|
3
|
+
fillPercent?: number
|
|
4
|
+
backgroundColor?: string
|
|
5
|
+
fillColor: string
|
|
6
|
+
borderColor: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type SliceShape = {
|
|
10
|
+
index: number
|
|
11
|
+
startAngle: number
|
|
12
|
+
endAngle: number
|
|
13
|
+
fillPercent: number
|
|
14
|
+
backgroundColor: string
|
|
15
|
+
fillColor: string
|
|
16
|
+
borderColor: string
|
|
17
|
+
data: SliceInputData
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type PieChartManagerConfig = {
|
|
21
|
+
size: number
|
|
22
|
+
outerRadius: number
|
|
23
|
+
innerRadius: number | ((sliceCount: number) => number)
|
|
24
|
+
cornerRadius: number | ((fillPercent: number) => number)
|
|
25
|
+
gapBetweenSlices: number
|
|
26
|
+
borderWidth: number
|
|
27
|
+
pressOffset: number
|
|
28
|
+
outerArc: {
|
|
29
|
+
color: string
|
|
30
|
+
strokeWidth: number
|
|
31
|
+
dashWidth: number
|
|
32
|
+
}
|
|
33
|
+
colors: {
|
|
34
|
+
background: string
|
|
35
|
+
highlightedBackground: string
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React, { memo, useMemo } from 'react'
|
|
2
|
+
import { StyleSheet, View } from 'react-native'
|
|
3
|
+
import Svg, { G } from 'react-native-svg'
|
|
4
|
+
import { PieChartManager } from '../model/PieChartManager'
|
|
5
|
+
import { SlicesClipPaths } from './SlicesClipPaths'
|
|
6
|
+
import { SlicesPaths } from './SlicesPaths'
|
|
7
|
+
import type { PieChartManagerConfig, SliceInputData } from '../chart.types'
|
|
8
|
+
|
|
9
|
+
type PracticeProgressPieChartProps = {
|
|
10
|
+
data: SliceInputData[]
|
|
11
|
+
config: PieChartManagerConfig
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const PracticeProgressPieChart = memo(({ data, config }: PracticeProgressPieChartProps) => {
|
|
15
|
+
const pieChartManager = useMemo(() => new PieChartManager(config), [config])
|
|
16
|
+
const center = pieChartManager.getCenter()
|
|
17
|
+
|
|
18
|
+
const slices = useMemo(() => {
|
|
19
|
+
return pieChartManager.shape.generateSlices(data)
|
|
20
|
+
}, [data, pieChartManager])
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<View>
|
|
24
|
+
<Svg width={config.size} height={config.size}>
|
|
25
|
+
<G x={center.x} y={center.y}>
|
|
26
|
+
<SlicesClipPaths slices={slices} pieChartManager={pieChartManager} />
|
|
27
|
+
<SlicesPaths slices={slices} pieChartManager={pieChartManager} config={config} />
|
|
28
|
+
</G>
|
|
29
|
+
</Svg>
|
|
30
|
+
</View>
|
|
31
|
+
)
|
|
32
|
+
})
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { ClipPath, Defs, Path } from 'react-native-svg'
|
|
3
|
+
import { getSliceClipId } from '../chart.helpers'
|
|
4
|
+
import type { SliceShape } from '../chart.types'
|
|
5
|
+
import type { PieChartManager } from '../model/PieChartManager'
|
|
6
|
+
|
|
7
|
+
type SlicesClipPathsProps = {
|
|
8
|
+
slices: SliceShape[]
|
|
9
|
+
pieChartManager: PieChartManager
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const SlicesClipPaths = ({ slices, pieChartManager }: SlicesClipPathsProps) => {
|
|
13
|
+
return (
|
|
14
|
+
<Defs>
|
|
15
|
+
{slices.map((slice) => (
|
|
16
|
+
<ClipPath key={slice.index} id={getSliceClipId(slice.index)}>
|
|
17
|
+
<Path d={pieChartManager.shape.generateSlicePath(slice)} />
|
|
18
|
+
</ClipPath>
|
|
19
|
+
))}
|
|
20
|
+
</Defs>
|
|
21
|
+
)
|
|
22
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { Platform, StyleSheet } from 'react-native'
|
|
3
|
+
import { G } from 'react-native-svg'
|
|
4
|
+
import { useUnit } from 'effector-react'
|
|
5
|
+
import { SliceBackgroundColor } from './layers/SliceBackgroundColor'
|
|
6
|
+
import { SliceFillColor } from './layers/SliceFillColor'
|
|
7
|
+
import { SliceArcPattern } from './layers/SliceArcPattern'
|
|
8
|
+
import { usePmProgress } from '../../../context/PmProgressContext'
|
|
9
|
+
import type { PieChartManagerConfig, SliceShape } from '../chart.types'
|
|
10
|
+
import type { PieChartManager } from '../model/PieChartManager'
|
|
11
|
+
|
|
12
|
+
type SlicesPathsProps = {
|
|
13
|
+
slices: SliceShape[]
|
|
14
|
+
pieChartManager: PieChartManager
|
|
15
|
+
config: PieChartManagerConfig
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const SlicesPaths = ({ slices, pieChartManager, config }: SlicesPathsProps) => {
|
|
19
|
+
const { model } = usePmProgress()
|
|
20
|
+
const [hoveredId, expandedId, domains] = useUnit([
|
|
21
|
+
model.highlight.$hoveredId,
|
|
22
|
+
model.highlight.$expandedId,
|
|
23
|
+
model.tree.$domains,
|
|
24
|
+
])
|
|
25
|
+
|
|
26
|
+
const highlightedId = hoveredId ?? expandedId
|
|
27
|
+
const highlightedIndex = highlightedId
|
|
28
|
+
? domains.findIndex(({ domainId }) => domainId === highlightedId)
|
|
29
|
+
: null
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<>
|
|
33
|
+
{slices.map((slice) => {
|
|
34
|
+
const id = `${slice.index}`
|
|
35
|
+
const shapeSvg = pieChartManager.shape.generateSlicePath(slice)
|
|
36
|
+
const fillSvg = pieChartManager.shape.generateFillPath(slice)
|
|
37
|
+
const fillBorderSvg = pieChartManager.shape.generateFillBorderPath(slice)
|
|
38
|
+
const isHighlighted = highlightedIndex === slice.index
|
|
39
|
+
const translateY = pieChartManager.highlight.getTranslateY(isHighlighted)
|
|
40
|
+
const borderWidth = isHighlighted ? config.borderWidth : 0
|
|
41
|
+
const domainId = domains[slice.index]?.domainId
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<G
|
|
45
|
+
key={id}
|
|
46
|
+
style={styles.container}
|
|
47
|
+
transform={`translate(0, ${translateY})`}
|
|
48
|
+
onPress={() => domainId && model.highlight.expand(domainId)}
|
|
49
|
+
onMouseEnter={() => domainId && model.highlight.hover(domainId)}
|
|
50
|
+
onMouseLeave={() => model.highlight.hover(null)}
|
|
51
|
+
>
|
|
52
|
+
<SliceBackgroundColor
|
|
53
|
+
path={shapeSvg}
|
|
54
|
+
color={isHighlighted ? config.colors.highlightedBackground : slice.backgroundColor}
|
|
55
|
+
/>
|
|
56
|
+
|
|
57
|
+
<SliceFillColor
|
|
58
|
+
clipPathId={id}
|
|
59
|
+
shapeSvg={shapeSvg}
|
|
60
|
+
fillSvg={fillSvg}
|
|
61
|
+
fillBorderSvg={fillBorderSvg}
|
|
62
|
+
color={slice.fillColor}
|
|
63
|
+
percent={slice.fillPercent}
|
|
64
|
+
borderColor={isHighlighted ? slice.borderColor : undefined}
|
|
65
|
+
borderWidth={borderWidth || undefined}
|
|
66
|
+
/>
|
|
67
|
+
|
|
68
|
+
<SliceArcPattern
|
|
69
|
+
clipPathId={id}
|
|
70
|
+
slice={slice}
|
|
71
|
+
config={config}
|
|
72
|
+
pieChartManager={pieChartManager}
|
|
73
|
+
/>
|
|
74
|
+
</G>
|
|
75
|
+
)
|
|
76
|
+
})}
|
|
77
|
+
</>
|
|
78
|
+
)
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const styles = StyleSheet.create({
|
|
82
|
+
container: {
|
|
83
|
+
cursor: 'pointer',
|
|
84
|
+
...(Platform.OS === 'web' ? { transition: 'transform 0.1s ease-in-out' } : {}),
|
|
85
|
+
},
|
|
86
|
+
})
|