@magmamath/students-features 1.8.0 → 1.8.1-rc.0
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/fluency/components/FluencySolving.js +2 -2
- package/dist/commonjs/features/fluency/components/FluencySolving.js.map +1 -1
- package/dist/commonjs/features/fluency/components/fluency-solving/components/DebugBoxIndicator.js +48 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/components/DebugBoxIndicator.js.map +1 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/components/EquationContent.js +9 -8
- package/dist/commonjs/features/fluency/components/fluency-solving/components/EquationContent.js.map +1 -1
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencyCardDeck.js +3 -1
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencyCardDeck.js.map +1 -1
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencyEquationCard.js +63 -10
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencyEquationCard.js.map +1 -1
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencySolvingHeader.js +10 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencySolvingHeader.js.map +1 -1
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencySolvingProgress.js +0 -2
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencySolvingProgress.js.map +1 -1
- package/dist/commonjs/features/fluency/index.js +12 -0
- package/dist/commonjs/features/fluency/index.js.map +1 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/adapter.js +36 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/adapter.js.map +1 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.js +232 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.js.map +1 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/Dot.js +51 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/Dot.js.map +1 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/DynamicNumberLine.js +104 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/DynamicNumberLine.js.map +1 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/FactVisual.js +75 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/FactVisual.js.map +1 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/QuotativeBars.js +91 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/QuotativeBars.js.map +1 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/RelationalBlock.js +279 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/RelationalBlock.js.map +1 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/visualColors.js +44 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/visualColors.js.map +1 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/index.js +73 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/index.js.map +1 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/renderFact.js +276 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/renderFact.js.map +1 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/types.js +2 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/types.js.map +1 -0
- package/dist/commonjs/features/fluency-teacher/assets/{DivisionIcon.js → SortDefaultIcon.js} +8 -11
- package/dist/commonjs/features/fluency-teacher/assets/SortDefaultIcon.js.map +1 -0
- package/dist/commonjs/features/fluency-teacher/components/FluencyTeacher.js +3 -4
- package/dist/commonjs/features/fluency-teacher/components/FluencyTeacher.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerHeader.js +43 -48
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerHeader.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerMasteryLegend.js +80 -0
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerMasteryLegend.js.map +1 -0
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerMatrixes.js +28 -11
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerMatrixes.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorBox.js +44 -27
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorBox.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.js +40 -47
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerStats.js +24 -14
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerStats.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/FluencyTeacherDrawer.js +6 -6
- package/dist/commonjs/features/fluency-teacher/components/drawer/FluencyTeacherDrawer.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/matrix/DrawerMatrix.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixCell.js +16 -2
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixCell.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixRow.js +2 -1
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixRow.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/AllPupilsTableRow.js +41 -15
- package/dist/commonjs/features/fluency-teacher/components/table/AllPupilsTableRow.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/AverageSortButton.js +62 -6
- package/dist/commonjs/features/fluency-teacher/components/table/AverageSortButton.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.js +40 -42
- package/dist/commonjs/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/OperatorBadge.js +16 -25
- package/dist/commonjs/features/fluency-teacher/components/table/OperatorBadge.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/TableColumnSortButton.js +40 -30
- package/dist/commonjs/features/fluency-teacher/components/table/TableColumnSortButton.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/TableRow.js +72 -59
- package/dist/commonjs/features/fluency-teacher/components/table/TableRow.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/TableRowAverageProgress.js +71 -0
- package/dist/commonjs/features/fluency-teacher/components/table/TableRowAverageProgress.js.map +1 -0
- package/dist/commonjs/features/fluency-teacher/context/TeacherFluencyContext.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/fluencyTeacher.constants.js +38 -103
- package/dist/commonjs/features/fluency-teacher/fluencyTeacher.constants.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/fluencyTeacher.helpers.js +10 -52
- package/dist/commonjs/features/fluency-teacher/fluencyTeacher.helpers.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/hooks/useDrawerGrid.js +2 -3
- package/dist/commonjs/features/fluency-teacher/hooks/useDrawerGrid.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/hooks/useDrawerMatrix.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/model/TeacherFluencyFiltersModel.js +1 -2
- package/dist/commonjs/features/fluency-teacher/model/TeacherFluencyFiltersModel.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/model/TeacherFluencyModel.js +0 -9
- package/dist/commonjs/features/fluency-teacher/model/TeacherFluencyModel.js.map +1 -1
- package/dist/module/features/fluency/components/FluencySolving.js +2 -2
- package/dist/module/features/fluency/components/FluencySolving.js.map +1 -1
- package/dist/module/features/fluency/components/fluency-solving/components/DebugBoxIndicator.js +43 -0
- package/dist/module/features/fluency/components/fluency-solving/components/DebugBoxIndicator.js.map +1 -0
- package/dist/module/features/fluency/components/fluency-solving/components/EquationContent.js +9 -8
- package/dist/module/features/fluency/components/fluency-solving/components/EquationContent.js.map +1 -1
- package/dist/module/features/fluency/components/fluency-solving/components/FluencyCardDeck.js +3 -1
- package/dist/module/features/fluency/components/fluency-solving/components/FluencyCardDeck.js.map +1 -1
- package/dist/module/features/fluency/components/fluency-solving/components/FluencyEquationCard.js +64 -11
- package/dist/module/features/fluency/components/fluency-solving/components/FluencyEquationCard.js.map +1 -1
- package/dist/module/features/fluency/components/fluency-solving/components/FluencySolvingHeader.js +10 -0
- package/dist/module/features/fluency/components/fluency-solving/components/FluencySolvingHeader.js.map +1 -1
- package/dist/module/features/fluency/components/fluency-solving/components/FluencySolvingProgress.js +0 -2
- package/dist/module/features/fluency/components/fluency-solving/components/FluencySolvingProgress.js.map +1 -1
- package/dist/module/features/fluency/index.js +1 -0
- package/dist/module/features/fluency/index.js.map +1 -1
- package/dist/module/features/fluency/visual-scaffolding/adapter.js +31 -0
- package/dist/module/features/fluency/visual-scaffolding/adapter.js.map +1 -0
- package/dist/module/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.js +225 -0
- package/dist/module/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.js.map +1 -0
- package/dist/module/features/fluency/visual-scaffolding/components/Dot.js +45 -0
- package/dist/module/features/fluency/visual-scaffolding/components/Dot.js.map +1 -0
- package/dist/module/features/fluency/visual-scaffolding/components/DynamicNumberLine.js +96 -0
- package/dist/module/features/fluency/visual-scaffolding/components/DynamicNumberLine.js.map +1 -0
- package/dist/module/features/fluency/visual-scaffolding/components/FactVisual.js +69 -0
- package/dist/module/features/fluency/visual-scaffolding/components/FactVisual.js.map +1 -0
- package/dist/module/features/fluency/visual-scaffolding/components/QuotativeBars.js +83 -0
- package/dist/module/features/fluency/visual-scaffolding/components/QuotativeBars.js.map +1 -0
- package/dist/module/features/fluency/visual-scaffolding/components/RelationalBlock.js +272 -0
- package/dist/module/features/fluency/visual-scaffolding/components/RelationalBlock.js.map +1 -0
- package/dist/module/features/fluency/visual-scaffolding/components/visualColors.js +41 -0
- package/dist/module/features/fluency/visual-scaffolding/components/visualColors.js.map +1 -0
- package/dist/module/features/fluency/visual-scaffolding/index.js +8 -0
- package/dist/module/features/fluency/visual-scaffolding/index.js.map +1 -0
- package/dist/module/features/fluency/visual-scaffolding/renderFact.js +269 -0
- package/dist/module/features/fluency/visual-scaffolding/renderFact.js.map +1 -0
- package/dist/module/features/fluency/visual-scaffolding/types.js +2 -0
- package/dist/module/features/fluency/visual-scaffolding/types.js.map +1 -0
- package/dist/module/features/fluency-teacher/assets/SortDefaultIcon.js +23 -0
- package/dist/module/features/fluency-teacher/assets/SortDefaultIcon.js.map +1 -0
- package/dist/module/features/fluency-teacher/components/FluencyTeacher.js +3 -4
- package/dist/module/features/fluency-teacher/components/FluencyTeacher.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerHeader.js +44 -49
- package/dist/module/features/fluency-teacher/components/drawer/DrawerHeader.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerMasteryLegend.js +74 -0
- package/dist/module/features/fluency-teacher/components/drawer/DrawerMasteryLegend.js.map +1 -0
- package/dist/module/features/fluency-teacher/components/drawer/DrawerMatrixes.js +31 -14
- package/dist/module/features/fluency-teacher/components/drawer/DrawerMatrixes.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerOperatorBox.js +45 -28
- package/dist/module/features/fluency-teacher/components/drawer/DrawerOperatorBox.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.js +41 -48
- package/dist/module/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerStats.js +27 -17
- package/dist/module/features/fluency-teacher/components/drawer/DrawerStats.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/FluencyTeacherDrawer.js +6 -6
- package/dist/module/features/fluency-teacher/components/drawer/FluencyTeacherDrawer.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/matrix/DrawerMatrix.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/matrix/MatrixCell.js +17 -3
- package/dist/module/features/fluency-teacher/components/matrix/MatrixCell.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/matrix/MatrixRow.js +2 -1
- package/dist/module/features/fluency-teacher/components/matrix/MatrixRow.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/AllPupilsTableRow.js +42 -16
- package/dist/module/features/fluency-teacher/components/table/AllPupilsTableRow.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/AverageSortButton.js +63 -7
- package/dist/module/features/fluency-teacher/components/table/AverageSortButton.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.js +42 -44
- package/dist/module/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/OperatorBadge.js +16 -25
- package/dist/module/features/fluency-teacher/components/table/OperatorBadge.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/TableColumnSortButton.js +42 -32
- package/dist/module/features/fluency-teacher/components/table/TableColumnSortButton.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/TableRow.js +75 -62
- package/dist/module/features/fluency-teacher/components/table/TableRow.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/TableRowAverageProgress.js +65 -0
- package/dist/module/features/fluency-teacher/components/table/TableRowAverageProgress.js.map +1 -0
- package/dist/module/features/fluency-teacher/context/TeacherFluencyContext.js.map +1 -1
- package/dist/module/features/fluency-teacher/fluencyTeacher.constants.js +37 -102
- package/dist/module/features/fluency-teacher/fluencyTeacher.constants.js.map +1 -1
- package/dist/module/features/fluency-teacher/fluencyTeacher.helpers.js +8 -43
- package/dist/module/features/fluency-teacher/fluencyTeacher.helpers.js.map +1 -1
- package/dist/module/features/fluency-teacher/hooks/useDrawerGrid.js +2 -3
- package/dist/module/features/fluency-teacher/hooks/useDrawerGrid.js.map +1 -1
- package/dist/module/features/fluency-teacher/hooks/useDrawerMatrix.js.map +1 -1
- package/dist/module/features/fluency-teacher/model/TeacherFluencyFiltersModel.js +1 -2
- package/dist/module/features/fluency-teacher/model/TeacherFluencyFiltersModel.js.map +1 -1
- package/dist/module/features/fluency-teacher/model/TeacherFluencyModel.js +0 -9
- package/dist/module/features/fluency-teacher/model/TeacherFluencyModel.js.map +1 -1
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/DebugBoxIndicator.d.ts +3 -0
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/DebugBoxIndicator.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/EquationContent.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/FluencyCardDeck.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/FluencyEquationCard.d.ts +2 -1
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/FluencyEquationCard.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/FluencySolvingHeader.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/index.d.ts +1 -0
- package/dist/typescript/commonjs/features/fluency/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/__tests__/renderFact.test.d.ts +2 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/__tests__/renderFact.test.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/adapter.d.ts +4 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/adapter.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.d.ts +10 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/Dot.d.ts +10 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/Dot.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/DynamicNumberLine.d.ts +10 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/DynamicNumberLine.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/FactVisual.d.ts +10 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/FactVisual.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/QuotativeBars.d.ts +10 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/QuotativeBars.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/RelationalBlock.d.ts +10 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/RelationalBlock.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/visualColors.d.ts +16 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/visualColors.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/index.d.ts +6 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/renderFact.d.ts +23 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/renderFact.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/types.d.ts +103 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/types.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency-teacher/assets/SortDefaultIcon.d.ts +4 -0
- package/dist/typescript/commonjs/features/fluency-teacher/assets/SortDefaultIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerHeader.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerMasteryLegend.d.ts +3 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerMasteryLegend.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerMatrixes.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorBox.d.ts +4 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorBox.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.d.ts +4 -6
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerStats.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/FluencyTeacherDrawer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/DrawerMatrix.d.ts +2 -3
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/DrawerMatrix.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixCell.d.ts +5 -6
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixCell.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixHeaderRow.d.ts +1 -2
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixHeaderRow.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixRow.d.ts +3 -5
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixRow.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/AllPupilsTableRow.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/AverageSortButton.d.ts +1 -2
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/AverageSortButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/OperatorBadge.d.ts +4 -5
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/OperatorBadge.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/TableColumnSortButton.d.ts +6 -7
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/TableColumnSortButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/TableRow.d.ts +3 -4
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/TableRow.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/TableRowAverageProgress.d.ts +7 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/TableRowAverageProgress.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency-teacher/context/TeacherFluencyContext.d.ts +0 -1
- package/dist/typescript/commonjs/features/fluency-teacher/context/TeacherFluencyContext.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/fluencyTeacher.constants.d.ts +3 -16
- package/dist/typescript/commonjs/features/fluency-teacher/fluencyTeacher.constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/fluencyTeacher.helpers.d.ts +4 -11
- package/dist/typescript/commonjs/features/fluency-teacher/fluencyTeacher.helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/fluencyTeacher.types.d.ts +6 -35
- package/dist/typescript/commonjs/features/fluency-teacher/fluencyTeacher.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/hooks/useDrawerGrid.d.ts +12 -1
- package/dist/typescript/commonjs/features/fluency-teacher/hooks/useDrawerGrid.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/hooks/useDrawerMatrix.d.ts +3 -3
- package/dist/typescript/commonjs/features/fluency-teacher/hooks/useDrawerMatrix.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/model/TeacherFluencyFiltersModel.d.ts +0 -1
- package/dist/typescript/commonjs/features/fluency-teacher/model/TeacherFluencyFiltersModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/model/TeacherFluencyModel.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/DebugBoxIndicator.d.ts +3 -0
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/DebugBoxIndicator.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/EquationContent.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/FluencyCardDeck.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/FluencyEquationCard.d.ts +2 -1
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/FluencyEquationCard.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/FluencySolvingHeader.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/index.d.ts +1 -0
- package/dist/typescript/module/features/fluency/index.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/__tests__/renderFact.test.d.ts +2 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/__tests__/renderFact.test.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/adapter.d.ts +4 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/adapter.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.d.ts +10 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/Dot.d.ts +10 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/Dot.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/DynamicNumberLine.d.ts +10 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/DynamicNumberLine.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/FactVisual.d.ts +10 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/FactVisual.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/QuotativeBars.d.ts +10 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/QuotativeBars.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/RelationalBlock.d.ts +10 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/RelationalBlock.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/visualColors.d.ts +16 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/visualColors.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/index.d.ts +6 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/index.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/renderFact.d.ts +23 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/renderFact.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/types.d.ts +103 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/types.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency-teacher/assets/SortDefaultIcon.d.ts +4 -0
- package/dist/typescript/module/features/fluency-teacher/assets/SortDefaultIcon.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerHeader.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerMasteryLegend.d.ts +3 -0
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerMasteryLegend.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerMatrixes.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerOperatorBox.d.ts +4 -1
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerOperatorBox.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.d.ts +4 -6
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerStats.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/drawer/FluencyTeacherDrawer.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/matrix/DrawerMatrix.d.ts +2 -3
- package/dist/typescript/module/features/fluency-teacher/components/matrix/DrawerMatrix.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixCell.d.ts +5 -6
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixCell.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixHeaderRow.d.ts +1 -2
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixHeaderRow.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixRow.d.ts +3 -5
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixRow.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/AllPupilsTableRow.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/AverageSortButton.d.ts +1 -2
- package/dist/typescript/module/features/fluency-teacher/components/table/AverageSortButton.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/OperatorBadge.d.ts +4 -5
- package/dist/typescript/module/features/fluency-teacher/components/table/OperatorBadge.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/TableColumnSortButton.d.ts +6 -7
- package/dist/typescript/module/features/fluency-teacher/components/table/TableColumnSortButton.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/TableRow.d.ts +3 -4
- package/dist/typescript/module/features/fluency-teacher/components/table/TableRow.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/TableRowAverageProgress.d.ts +7 -0
- package/dist/typescript/module/features/fluency-teacher/components/table/TableRowAverageProgress.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency-teacher/context/TeacherFluencyContext.d.ts +0 -1
- package/dist/typescript/module/features/fluency-teacher/context/TeacherFluencyContext.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/fluencyTeacher.constants.d.ts +3 -16
- package/dist/typescript/module/features/fluency-teacher/fluencyTeacher.constants.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/fluencyTeacher.helpers.d.ts +4 -11
- package/dist/typescript/module/features/fluency-teacher/fluencyTeacher.helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/fluencyTeacher.types.d.ts +6 -35
- package/dist/typescript/module/features/fluency-teacher/fluencyTeacher.types.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/hooks/useDrawerGrid.d.ts +12 -1
- package/dist/typescript/module/features/fluency-teacher/hooks/useDrawerGrid.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/hooks/useDrawerMatrix.d.ts +3 -3
- package/dist/typescript/module/features/fluency-teacher/hooks/useDrawerMatrix.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/model/TeacherFluencyFiltersModel.d.ts +0 -1
- package/dist/typescript/module/features/fluency-teacher/model/TeacherFluencyFiltersModel.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/model/TeacherFluencyModel.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/fluency/components/FluencySolving.tsx +2 -2
- package/src/features/fluency/components/fluency-solving/components/DebugBoxIndicator.tsx +40 -0
- package/src/features/fluency/components/fluency-solving/components/EquationContent.tsx +12 -8
- package/src/features/fluency/components/fluency-solving/components/FluencyCardDeck.tsx +6 -1
- package/src/features/fluency/components/fluency-solving/components/FluencyEquationCard.tsx +63 -11
- package/src/features/fluency/components/fluency-solving/components/FluencySolvingHeader.tsx +9 -0
- package/src/features/fluency/components/fluency-solving/components/FluencySolvingProgress.tsx +0 -2
- package/src/features/fluency/index.ts +1 -0
- package/src/features/fluency/visual-scaffolding/__tests__/__snapshots__/renderFact.test.ts.snap +64 -0
- package/src/features/fluency/visual-scaffolding/__tests__/renderFact.test.ts +192 -0
- package/src/features/fluency/visual-scaffolding/adapter.ts +33 -0
- package/src/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.tsx +222 -0
- package/src/features/fluency/visual-scaffolding/components/Dot.tsx +36 -0
- package/src/features/fluency/visual-scaffolding/components/DynamicNumberLine.tsx +98 -0
- package/src/features/fluency/visual-scaffolding/components/FactVisual.tsx +61 -0
- package/src/features/fluency/visual-scaffolding/components/QuotativeBars.tsx +92 -0
- package/src/features/fluency/visual-scaffolding/components/RelationalBlock.tsx +225 -0
- package/src/features/fluency/visual-scaffolding/components/visualColors.ts +45 -0
- package/src/features/fluency/visual-scaffolding/index.ts +5 -0
- package/src/features/fluency/visual-scaffolding/renderFact.ts +219 -0
- package/src/features/fluency/visual-scaffolding/types.ts +108 -0
- package/src/features/fluency-teacher/assets/SortDefaultIcon.tsx +10 -0
- package/src/features/fluency-teacher/components/FluencyTeacher.tsx +3 -3
- package/src/features/fluency-teacher/components/drawer/DrawerHeader.tsx +35 -37
- package/src/features/fluency-teacher/components/drawer/DrawerMasteryLegend.tsx +63 -0
- package/src/features/fluency-teacher/components/drawer/DrawerMatrixes.tsx +32 -13
- package/src/features/fluency-teacher/components/drawer/DrawerOperatorBox.tsx +40 -20
- package/src/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.tsx +35 -35
- package/src/features/fluency-teacher/components/drawer/DrawerStats.tsx +28 -16
- package/src/features/fluency-teacher/components/drawer/FluencyTeacherDrawer.tsx +5 -4
- package/src/features/fluency-teacher/components/matrix/DrawerMatrix.tsx +2 -3
- package/src/features/fluency-teacher/components/matrix/MatrixCell.tsx +16 -7
- package/src/features/fluency-teacher/components/matrix/MatrixHeaderRow.tsx +1 -1
- package/src/features/fluency-teacher/components/matrix/MatrixRow.tsx +4 -4
- package/src/features/fluency-teacher/components/table/AllPupilsTableRow.tsx +40 -13
- package/src/features/fluency-teacher/components/table/AverageSortButton.tsx +62 -8
- package/src/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.tsx +35 -49
- package/src/features/fluency-teacher/components/table/OperatorBadge.tsx +11 -18
- package/src/features/fluency-teacher/components/table/TableColumnSortButton.tsx +49 -28
- package/src/features/fluency-teacher/components/table/TableRow.tsx +64 -65
- package/src/features/fluency-teacher/components/table/TableRowAverageProgress.tsx +65 -0
- package/src/features/fluency-teacher/context/TeacherFluencyContext.ts +0 -1
- package/src/features/fluency-teacher/fluencyTeacher.constants.ts +40 -138
- package/src/features/fluency-teacher/fluencyTeacher.helpers.ts +10 -82
- package/src/features/fluency-teacher/fluencyTeacher.types.ts +6 -39
- package/src/features/fluency-teacher/hooks/useDrawerGrid.ts +7 -4
- package/src/features/fluency-teacher/hooks/useDrawerMatrix.ts +3 -4
- package/src/features/fluency-teacher/model/TeacherFluencyFiltersModel.ts +5 -8
- package/src/features/fluency-teacher/model/TeacherFluencyModel.ts +0 -8
- package/dist/commonjs/features/fluency-teacher/assets/DivisionIcon.js.map +0 -1
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixLegend.js +0 -83
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixLegend.js.map +0 -1
- package/dist/commonjs/features/fluency-teacher/components/table/AverageCell.js +0 -55
- package/dist/commonjs/features/fluency-teacher/components/table/AverageCell.js.map +0 -1
- package/dist/commonjs/features/fluency-teacher/components/table/SortOrderCarets.js +0 -40
- package/dist/commonjs/features/fluency-teacher/components/table/SortOrderCarets.js.map +0 -1
- package/dist/commonjs/features/fluency-teacher/components/table/tableCell.styles.js +0 -45
- package/dist/commonjs/features/fluency-teacher/components/table/tableCell.styles.js.map +0 -1
- package/dist/module/features/fluency-teacher/assets/DivisionIcon.js +0 -26
- package/dist/module/features/fluency-teacher/assets/DivisionIcon.js.map +0 -1
- package/dist/module/features/fluency-teacher/components/matrix/MatrixLegend.js +0 -77
- package/dist/module/features/fluency-teacher/components/matrix/MatrixLegend.js.map +0 -1
- package/dist/module/features/fluency-teacher/components/table/AverageCell.js +0 -49
- package/dist/module/features/fluency-teacher/components/table/AverageCell.js.map +0 -1
- package/dist/module/features/fluency-teacher/components/table/SortOrderCarets.js +0 -34
- package/dist/module/features/fluency-teacher/components/table/SortOrderCarets.js.map +0 -1
- package/dist/module/features/fluency-teacher/components/table/tableCell.styles.js +0 -42
- package/dist/module/features/fluency-teacher/components/table/tableCell.styles.js.map +0 -1
- package/dist/typescript/commonjs/features/fluency-teacher/assets/DivisionIcon.d.ts +0 -4
- package/dist/typescript/commonjs/features/fluency-teacher/assets/DivisionIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixLegend.d.ts +0 -10
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixLegend.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/AverageCell.d.ts +0 -9
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/AverageCell.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/SortOrderCarets.d.ts +0 -9
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/SortOrderCarets.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/tableCell.styles.d.ts +0 -35
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/tableCell.styles.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency-teacher/assets/DivisionIcon.d.ts +0 -4
- package/dist/typescript/module/features/fluency-teacher/assets/DivisionIcon.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixLegend.d.ts +0 -10
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixLegend.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/AverageCell.d.ts +0 -9
- package/dist/typescript/module/features/fluency-teacher/components/table/AverageCell.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/SortOrderCarets.d.ts +0 -9
- package/dist/typescript/module/features/fluency-teacher/components/table/SortOrderCarets.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/tableCell.styles.d.ts +0 -35
- package/dist/typescript/module/features/fluency-teacher/components/table/tableCell.styles.d.ts.map +0 -1
- package/src/features/fluency-teacher/assets/DivisionIcon.tsx +0 -20
- package/src/features/fluency-teacher/components/matrix/MatrixLegend.tsx +0 -81
- package/src/features/fluency-teacher/components/table/AverageCell.tsx +0 -45
- package/src/features/fluency-teacher/components/table/SortOrderCarets.tsx +0 -37
- package/src/features/fluency-teacher/components/table/tableCell.styles.ts +0 -39
|
@@ -10,22 +10,21 @@ import {
|
|
|
10
10
|
import { useUnit } from 'effector-react'
|
|
11
11
|
import { useText } from '../../../../i18n/i18n'
|
|
12
12
|
import { useTeacherFluency } from '../../context/TeacherFluencyContext'
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
13
|
+
import { toAverageLabel } from '../../fluencyTeacher.helpers'
|
|
14
|
+
import { TABLE_OPERATOR_COLUMNS } from '../../fluencyTeacher.constants'
|
|
15
|
+
import { TableRowAverageProgress } from './TableRowAverageProgress'
|
|
16
16
|
import { OperatorBadge } from './OperatorBadge'
|
|
17
|
-
import { tableCellStyles } from './tableCell.styles'
|
|
18
17
|
|
|
19
18
|
export const AllPupilsTableRow = () => {
|
|
20
19
|
const t = useText()
|
|
21
|
-
const { model
|
|
20
|
+
const { model } = useTeacherFluency()
|
|
22
21
|
const stats = useUnit(model.table.$stats)
|
|
23
22
|
|
|
24
23
|
if (!stats) return null
|
|
25
24
|
|
|
26
25
|
return (
|
|
27
26
|
<View style={styles.row}>
|
|
28
|
-
<View style={
|
|
27
|
+
<View style={styles.name}>
|
|
29
28
|
<View style={styles.icon}>
|
|
30
29
|
<StudentsIcon size={25} color={COLORS.NEUTRAL_7} />
|
|
31
30
|
</View>
|
|
@@ -34,16 +33,20 @@ export const AllPupilsTableRow = () => {
|
|
|
34
33
|
</Typography>
|
|
35
34
|
</View>
|
|
36
35
|
|
|
37
|
-
<View style={
|
|
38
|
-
<
|
|
36
|
+
<View style={styles.average}>
|
|
37
|
+
<TableRowAverageProgress
|
|
38
|
+
percent={stats.classAverage}
|
|
39
|
+
label={t(toAverageLabel(stats.classAverage / 100))}
|
|
40
|
+
/>
|
|
39
41
|
</View>
|
|
40
42
|
|
|
41
|
-
<View style={
|
|
42
|
-
{
|
|
43
|
-
<View key={operator} style={
|
|
43
|
+
<View style={styles.operators}>
|
|
44
|
+
{TABLE_OPERATOR_COLUMNS.map(({ operator, badgeBg, badgeText }) => (
|
|
45
|
+
<View key={operator} style={styles.operator}>
|
|
44
46
|
<OperatorBadge
|
|
45
47
|
value={stats.operatorAverages[operator]}
|
|
46
|
-
|
|
48
|
+
bgColor={badgeBg}
|
|
49
|
+
textColor={badgeText}
|
|
47
50
|
/>
|
|
48
51
|
</View>
|
|
49
52
|
))}
|
|
@@ -61,7 +64,14 @@ const styles = StyleSheet.create({
|
|
|
61
64
|
gap: SPACING[400],
|
|
62
65
|
backgroundColor: COLORS.NEUTRAL_2,
|
|
63
66
|
borderBottomWidth: 1,
|
|
64
|
-
borderBottomColor: COLORS.
|
|
67
|
+
borderBottomColor: COLORS.NEUTRAL_4,
|
|
68
|
+
},
|
|
69
|
+
name: {
|
|
70
|
+
width: 137,
|
|
71
|
+
height: 40,
|
|
72
|
+
flexDirection: 'row',
|
|
73
|
+
alignItems: 'center',
|
|
74
|
+
gap: 12,
|
|
65
75
|
},
|
|
66
76
|
icon: {
|
|
67
77
|
width: 25,
|
|
@@ -73,4 +83,21 @@ const styles = StyleSheet.create({
|
|
|
73
83
|
width: 100,
|
|
74
84
|
color: COLORS.NEUTRAL_9,
|
|
75
85
|
},
|
|
86
|
+
average: {
|
|
87
|
+
width: 145,
|
|
88
|
+
height: 40,
|
|
89
|
+
paddingHorizontal: 12,
|
|
90
|
+
justifyContent: 'center',
|
|
91
|
+
},
|
|
92
|
+
operators: {
|
|
93
|
+
flex: 1,
|
|
94
|
+
height: 40,
|
|
95
|
+
flexDirection: 'row',
|
|
96
|
+
alignItems: 'center',
|
|
97
|
+
paddingHorizontal: SPACING[800],
|
|
98
|
+
},
|
|
99
|
+
operator: {
|
|
100
|
+
flex: 1,
|
|
101
|
+
alignItems: 'center',
|
|
102
|
+
},
|
|
76
103
|
})
|
|
@@ -1,22 +1,76 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
+
import { Pressable, StyleSheet, Text, View } from 'react-native'
|
|
3
|
+
import {
|
|
4
|
+
CaretDownIcon,
|
|
5
|
+
CaretUpIcon,
|
|
6
|
+
COLORS,
|
|
7
|
+
FONT_FAMILY,
|
|
8
|
+
SHADOWS,
|
|
9
|
+
SPACING,
|
|
10
|
+
StudentsIcon,
|
|
11
|
+
} from '@magmamath/react-native-ui'
|
|
2
12
|
import { useText } from '../../../../i18n/i18n'
|
|
13
|
+
import { SortDefaultIcon } from '../../assets/SortDefaultIcon'
|
|
3
14
|
import type { SortState } from '../../fluencyTeacher.types'
|
|
15
|
+
import { SortingDirection } from '../../../../shared/common.constants'
|
|
4
16
|
import { FluencyTableColumn } from '../../fluencyTeacher.constants'
|
|
5
|
-
import { TableColumnSortButton } from './TableColumnSortButton'
|
|
6
17
|
|
|
7
|
-
type AverageSortButtonProps = {
|
|
18
|
+
export type AverageSortButtonProps = {
|
|
8
19
|
sort: SortState
|
|
9
20
|
onPress: () => void
|
|
10
21
|
}
|
|
11
22
|
|
|
12
23
|
export const AverageSortButton = ({ sort, onPress }: AverageSortButtonProps) => {
|
|
13
24
|
const t = useText()
|
|
25
|
+
const isActive = sort.column === FluencyTableColumn.AVERAGE
|
|
26
|
+
const color = isActive ? COLORS.NEUTRAL_1 : COLORS.NEUTRAL_7
|
|
27
|
+
|
|
28
|
+
const ActiveSortIcon = (() => {
|
|
29
|
+
return sort.direction === SortingDirection.DESC ? (
|
|
30
|
+
<CaretUpIcon size={12} color={color} />
|
|
31
|
+
) : (
|
|
32
|
+
<CaretDownIcon size={12} color={color} />
|
|
33
|
+
)
|
|
34
|
+
})()
|
|
35
|
+
|
|
14
36
|
return (
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
37
|
+
<Pressable onPress={onPress} style={[styles.button, isActive && styles.buttonActive]}>
|
|
38
|
+
<View style={styles.iconWrapper}>
|
|
39
|
+
<StudentsIcon size={16} color={color} />
|
|
40
|
+
</View>
|
|
41
|
+
<Text selectable={false} style={[styles.label, { color }]}>
|
|
42
|
+
{t('teacher.fluency.average')}
|
|
43
|
+
</Text>
|
|
44
|
+
{isActive ? ActiveSortIcon : <SortDefaultIcon size={10} color={color} />}
|
|
45
|
+
</Pressable>
|
|
21
46
|
)
|
|
22
47
|
}
|
|
48
|
+
|
|
49
|
+
const styles = StyleSheet.create({
|
|
50
|
+
button: {
|
|
51
|
+
flexDirection: 'row',
|
|
52
|
+
alignItems: 'center',
|
|
53
|
+
gap: SPACING[100],
|
|
54
|
+
paddingLeft: 6,
|
|
55
|
+
paddingRight: SPACING[200],
|
|
56
|
+
paddingVertical: SPACING[100],
|
|
57
|
+
borderRadius: 6,
|
|
58
|
+
borderWidth: 0.5,
|
|
59
|
+
borderColor: COLORS.NEUTRAL_3,
|
|
60
|
+
backgroundColor: COLORS.NEUTRAL_1,
|
|
61
|
+
...SHADOWS[2],
|
|
62
|
+
},
|
|
63
|
+
buttonActive: {
|
|
64
|
+
backgroundColor: COLORS.PRIMARY_YELLOW,
|
|
65
|
+
borderColor: COLORS.PRIMARY_YELLOW,
|
|
66
|
+
},
|
|
67
|
+
iconWrapper: {
|
|
68
|
+
marginHorizontal: SPACING[100],
|
|
69
|
+
},
|
|
70
|
+
label: {
|
|
71
|
+
fontFamily: FONT_FAMILY.buenosAiresBold,
|
|
72
|
+
fontSize: 12,
|
|
73
|
+
letterSpacing: 0.24,
|
|
74
|
+
textTransform: 'uppercase',
|
|
75
|
+
},
|
|
76
|
+
})
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react'
|
|
2
2
|
import { ActivityIndicator, FlatList, StyleSheet, View } from 'react-native'
|
|
3
3
|
import { useUnit } from 'effector-react'
|
|
4
4
|
import {
|
|
5
5
|
BORDER_RADIUS,
|
|
6
6
|
COLORS,
|
|
7
|
-
CrossIcon,
|
|
8
7
|
FONT_FAMILY,
|
|
9
8
|
HeadingVariants,
|
|
10
|
-
IconProps,
|
|
11
|
-
MinusIcon,
|
|
12
|
-
PlusIcon,
|
|
13
9
|
SHADOWS,
|
|
14
10
|
SPACING,
|
|
15
11
|
Typography,
|
|
@@ -17,48 +13,19 @@ import {
|
|
|
17
13
|
import { useText } from '../../../../i18n/i18n'
|
|
18
14
|
import { useTeacherFluency } from '../../context/TeacherFluencyContext'
|
|
19
15
|
import { TableRow } from './TableRow'
|
|
20
|
-
import { FluencyTableColumn } from '../../fluencyTeacher.constants'
|
|
21
|
-
import { getTableOperatorColumns } from '../../fluencyTeacher.helpers'
|
|
22
|
-
import type { FluencyOperatorColumn } from '../../fluencyTeacher.types'
|
|
16
|
+
import { FluencyTableColumn, TABLE_OPERATOR_COLUMNS } from '../../fluencyTeacher.constants'
|
|
23
17
|
import { TableColumnSortButton } from './TableColumnSortButton'
|
|
24
18
|
import { AllPupilsTableRow } from './AllPupilsTableRow'
|
|
25
19
|
import { AverageSortButton } from './AverageSortButton'
|
|
26
|
-
import { tableCellStyles } from './tableCell.styles'
|
|
27
|
-
import { DivisionIcon } from '../../assets/DivisionIcon'
|
|
28
|
-
|
|
29
|
-
type OperatorColumnDisplay = {
|
|
30
|
-
Icon: ComponentType<IconProps>
|
|
31
|
-
activeColor: string
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const OPERATOR_COLUMN_DISPLAY: Record<FluencyOperatorColumn, OperatorColumnDisplay> = {
|
|
35
|
-
[FluencyTableColumn.ADDITION]: {
|
|
36
|
-
Icon: PlusIcon,
|
|
37
|
-
activeColor: COLORS.PRIMARY_GREEN,
|
|
38
|
-
},
|
|
39
|
-
[FluencyTableColumn.SUBTRACTION]: {
|
|
40
|
-
Icon: MinusIcon,
|
|
41
|
-
activeColor: COLORS.PRIMARY_ORANGE,
|
|
42
|
-
},
|
|
43
|
-
[FluencyTableColumn.MULTIPLICATION]: {
|
|
44
|
-
Icon: CrossIcon,
|
|
45
|
-
activeColor: COLORS.PRIMARY_BLUE,
|
|
46
|
-
},
|
|
47
|
-
[FluencyTableColumn.DIVISION]: {
|
|
48
|
-
Icon: DivisionIcon,
|
|
49
|
-
activeColor: COLORS.PRIMARY_PURPLE,
|
|
50
|
-
},
|
|
51
|
-
}
|
|
52
20
|
|
|
53
21
|
export const FluencyTeacherStudentsTable = () => {
|
|
54
22
|
const t = useText()
|
|
55
|
-
const { model
|
|
56
|
-
const { sort, isLoading, table, filteredTable
|
|
23
|
+
const { model } = useTeacherFluency()
|
|
24
|
+
const { sort, isLoading, table, filteredTable } = useUnit({
|
|
57
25
|
sort: model.filters.$sort,
|
|
58
26
|
table: model.table.$table,
|
|
59
27
|
filteredTable: model.table.$filteredTable,
|
|
60
28
|
isLoading: model.api.getClassSummaryFx.pending,
|
|
61
|
-
studentInfoDrawer: model.table.$studentInfoDrawer,
|
|
62
29
|
})
|
|
63
30
|
|
|
64
31
|
const hasStudents = table.length > 0
|
|
@@ -68,22 +35,23 @@ export const FluencyTeacherStudentsTable = () => {
|
|
|
68
35
|
<View style={[styles.row, styles.headerRow]}>
|
|
69
36
|
<View style={styles.nameCell} />
|
|
70
37
|
|
|
71
|
-
<View style={
|
|
38
|
+
<View style={styles.average}>
|
|
72
39
|
<AverageSortButton
|
|
73
40
|
sort={sort}
|
|
74
41
|
onPress={() => model.filters.toggleSort(FluencyTableColumn.AVERAGE)}
|
|
75
42
|
/>
|
|
76
43
|
</View>
|
|
77
44
|
|
|
78
|
-
<View style={
|
|
79
|
-
{
|
|
80
|
-
<View key={operator} style={
|
|
45
|
+
<View style={styles.operators}>
|
|
46
|
+
{TABLE_OPERATOR_COLUMNS.map(({ operator, labelKey, symbol, badgeBg, badgeText }) => (
|
|
47
|
+
<View key={operator} style={styles.operator}>
|
|
81
48
|
<TableColumnSortButton
|
|
82
|
-
|
|
83
|
-
activeColor={OPERATOR_COLUMN_DISPLAY[operator].activeColor}
|
|
49
|
+
symbol={symbol}
|
|
84
50
|
label={t(labelKey)}
|
|
85
51
|
isActive={sort.column === operator}
|
|
86
52
|
direction={sort.direction}
|
|
53
|
+
activeBg={badgeBg}
|
|
54
|
+
activeText={badgeText}
|
|
87
55
|
onPress={() => model.filters.toggleSort(operator)}
|
|
88
56
|
/>
|
|
89
57
|
</View>
|
|
@@ -100,15 +68,14 @@ export const FluencyTeacherStudentsTable = () => {
|
|
|
100
68
|
<AllPupilsTableRow />
|
|
101
69
|
<FlatList
|
|
102
70
|
data={filteredTable}
|
|
103
|
-
extraData={studentInfoDrawer}
|
|
104
71
|
keyExtractor={(student) => student.id}
|
|
105
72
|
renderItem={({ item: student }) => (
|
|
106
73
|
<TableRow
|
|
107
74
|
name={student.name}
|
|
108
75
|
onPress={() => model.table.setStudentInfoDrawer(student)}
|
|
109
76
|
averagePercent={student.averagePercent}
|
|
77
|
+
averageLabel={t(student.averageLabel)}
|
|
110
78
|
scores={student.scores}
|
|
111
|
-
isSelected={studentInfoDrawer?.id === student.id}
|
|
112
79
|
/>
|
|
113
80
|
)}
|
|
114
81
|
contentContainerStyle={filteredTable.length === 0 ? styles.emptyContainer : undefined}
|
|
@@ -130,13 +97,13 @@ export const FluencyTeacherStudentsTable = () => {
|
|
|
130
97
|
|
|
131
98
|
const styles = StyleSheet.create({
|
|
132
99
|
container: {
|
|
133
|
-
|
|
100
|
+
flex: 1,
|
|
134
101
|
borderRadius: BORDER_RADIUS[300],
|
|
135
102
|
overflow: 'hidden',
|
|
136
103
|
...SHADOWS[1],
|
|
137
104
|
},
|
|
138
105
|
loader: {
|
|
139
|
-
|
|
106
|
+
flex: 1,
|
|
140
107
|
justifyContent: 'center',
|
|
141
108
|
alignItems: 'center',
|
|
142
109
|
},
|
|
@@ -146,21 +113,40 @@ const styles = StyleSheet.create({
|
|
|
146
113
|
paddingHorizontal: SPACING[400],
|
|
147
114
|
paddingVertical: SPACING[200],
|
|
148
115
|
gap: SPACING[400],
|
|
149
|
-
backgroundColor: COLORS.
|
|
116
|
+
backgroundColor: COLORS.NEUTRAL_1,
|
|
117
|
+
borderBottomWidth: 1,
|
|
118
|
+
borderBottomColor: COLORS.NEUTRAL_4,
|
|
150
119
|
},
|
|
151
120
|
headerRow: {
|
|
152
121
|
paddingVertical: SPACING[100],
|
|
122
|
+
backgroundColor: COLORS.NEUTRAL_2,
|
|
153
123
|
},
|
|
154
124
|
nameCell: {
|
|
155
125
|
width: 137,
|
|
156
126
|
height: 40,
|
|
157
127
|
},
|
|
128
|
+
average: {
|
|
129
|
+
width: 145,
|
|
130
|
+
height: 40,
|
|
131
|
+
paddingHorizontal: 12,
|
|
132
|
+
justifyContent: 'center',
|
|
133
|
+
},
|
|
134
|
+
operators: {
|
|
135
|
+
flex: 1,
|
|
136
|
+
height: 40,
|
|
137
|
+
flexDirection: 'row',
|
|
138
|
+
alignItems: 'center',
|
|
139
|
+
paddingHorizontal: SPACING[800],
|
|
140
|
+
},
|
|
141
|
+
operator: {
|
|
142
|
+
flex: 1,
|
|
143
|
+
alignItems: 'center',
|
|
144
|
+
},
|
|
158
145
|
emptyContainer: {
|
|
159
146
|
flexGrow: 1,
|
|
160
147
|
},
|
|
161
148
|
emptyState: {
|
|
162
149
|
flex: 1,
|
|
163
|
-
minHeight: 200,
|
|
164
150
|
alignItems: 'center',
|
|
165
151
|
justifyContent: 'center',
|
|
166
152
|
},
|
|
@@ -1,36 +1,29 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { StyleSheet, View } from 'react-native'
|
|
3
3
|
import { BORDER_RADIUS, HeadingVariants, SPACING, Typography } from '@magmamath/react-native-ui'
|
|
4
|
-
import { getOperatorBandColors } from '../../fluencyTeacher.helpers'
|
|
5
|
-
import { FluencyOperator } from '../../fluencyTeacher.constants'
|
|
6
4
|
|
|
7
|
-
type OperatorBadgeProps = {
|
|
5
|
+
export type OperatorBadgeProps = {
|
|
8
6
|
value: number
|
|
9
|
-
|
|
7
|
+
bgColor: string
|
|
8
|
+
textColor: string
|
|
10
9
|
}
|
|
11
10
|
|
|
12
|
-
export const OperatorBadge = ({ value,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
</View>
|
|
20
|
-
)
|
|
21
|
-
}
|
|
11
|
+
export const OperatorBadge = ({ value, bgColor, textColor }: OperatorBadgeProps) => (
|
|
12
|
+
<View style={[styles.badge, { backgroundColor: bgColor }]}>
|
|
13
|
+
<Typography variant={HeadingVariants.H9} style={[styles.badgeText, { color: textColor }]}>
|
|
14
|
+
{value}%
|
|
15
|
+
</Typography>
|
|
16
|
+
</View>
|
|
17
|
+
)
|
|
22
18
|
|
|
23
19
|
const styles = StyleSheet.create({
|
|
24
20
|
badge: {
|
|
25
|
-
width:
|
|
26
|
-
height: 32,
|
|
21
|
+
width: 90,
|
|
27
22
|
paddingVertical: SPACING[200],
|
|
28
23
|
borderRadius: BORDER_RADIUS[200],
|
|
29
24
|
alignItems: 'center',
|
|
30
|
-
justifyContent: 'center',
|
|
31
25
|
},
|
|
32
26
|
badgeText: {
|
|
33
27
|
textAlign: 'center',
|
|
34
|
-
textTransform: 'uppercase',
|
|
35
28
|
},
|
|
36
29
|
})
|
|
@@ -1,52 +1,65 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { Pressable, StyleSheet, Text
|
|
3
|
-
import {
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { Pressable, StyleSheet, Text } from 'react-native'
|
|
3
|
+
import {
|
|
4
|
+
CaretDownIcon,
|
|
5
|
+
CaretUpIcon,
|
|
6
|
+
COLORS,
|
|
7
|
+
FONT_FAMILY,
|
|
8
|
+
SHADOWS,
|
|
9
|
+
SPACING,
|
|
10
|
+
} from '@magmamath/react-native-ui'
|
|
11
|
+
import { SortDefaultIcon } from '../../assets/SortDefaultIcon'
|
|
4
12
|
import { SortingDirection } from '../../../../shared/common.constants'
|
|
5
|
-
import { SortOrderCarets } from './SortOrderCarets'
|
|
6
13
|
|
|
7
|
-
type TableColumnSortButtonProps = {
|
|
8
|
-
|
|
14
|
+
export type TableColumnSortButtonProps = {
|
|
15
|
+
symbol: string
|
|
9
16
|
label: string
|
|
10
17
|
isActive: boolean
|
|
11
|
-
activeColor?: string
|
|
12
18
|
direction: SortingDirection
|
|
19
|
+
activeBg: string
|
|
20
|
+
activeText: string
|
|
13
21
|
onPress: () => void
|
|
14
22
|
}
|
|
15
23
|
|
|
16
24
|
export const TableColumnSortButton = ({
|
|
17
|
-
|
|
25
|
+
symbol,
|
|
18
26
|
label,
|
|
19
27
|
isActive,
|
|
20
|
-
activeColor = COLORS.PRIMARY_YELLOW,
|
|
21
28
|
direction,
|
|
29
|
+
activeBg,
|
|
30
|
+
activeText,
|
|
22
31
|
onPress,
|
|
23
32
|
}: TableColumnSortButtonProps) => {
|
|
24
|
-
const contentColor = isActive ?
|
|
33
|
+
const contentColor = isActive ? activeText : COLORS.NEUTRAL_7
|
|
25
34
|
return (
|
|
26
|
-
<Pressable
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</
|
|
33
|
-
<
|
|
35
|
+
<Pressable
|
|
36
|
+
onPress={onPress}
|
|
37
|
+
style={[styles.sortButton, isActive && { backgroundColor: activeBg, borderColor: activeBg }]}
|
|
38
|
+
>
|
|
39
|
+
<Text selectable={false} style={[styles.sortButtonSymbol, { color: contentColor }]}>
|
|
40
|
+
{symbol}
|
|
41
|
+
</Text>
|
|
42
|
+
<Text selectable={false} style={[styles.sortButtonLabel, { color: contentColor }]}>
|
|
43
|
+
{label}
|
|
44
|
+
</Text>
|
|
45
|
+
{isActive ? (
|
|
46
|
+
direction === SortingDirection.DESC ? (
|
|
47
|
+
<CaretDownIcon size={12} color={contentColor} />
|
|
48
|
+
) : (
|
|
49
|
+
<CaretUpIcon size={12} color={contentColor} />
|
|
50
|
+
)
|
|
51
|
+
) : (
|
|
52
|
+
<SortDefaultIcon size={10} color={contentColor} />
|
|
53
|
+
)}
|
|
34
54
|
</Pressable>
|
|
35
55
|
)
|
|
36
56
|
}
|
|
37
57
|
|
|
38
58
|
const styles = StyleSheet.create({
|
|
39
|
-
|
|
59
|
+
sortButton: {
|
|
40
60
|
flexDirection: 'row',
|
|
41
61
|
alignItems: 'center',
|
|
42
62
|
gap: SPACING[100],
|
|
43
|
-
paddingLeft: SPACING[100],
|
|
44
|
-
},
|
|
45
|
-
button: {
|
|
46
|
-
flexDirection: 'row',
|
|
47
|
-
alignItems: 'center',
|
|
48
|
-
justifyContent: 'center',
|
|
49
|
-
gap: SPACING[100],
|
|
50
63
|
paddingLeft: 6,
|
|
51
64
|
paddingRight: SPACING[200],
|
|
52
65
|
paddingVertical: SPACING[100],
|
|
@@ -56,8 +69,16 @@ const styles = StyleSheet.create({
|
|
|
56
69
|
backgroundColor: COLORS.NEUTRAL_1,
|
|
57
70
|
...SHADOWS[2],
|
|
58
71
|
},
|
|
59
|
-
|
|
60
|
-
|
|
72
|
+
sortButtonSymbol: {
|
|
73
|
+
width: 12,
|
|
74
|
+
height: 12,
|
|
75
|
+
lineHeight: 10,
|
|
76
|
+
marginHorizontal: SPACING[100],
|
|
77
|
+
textAlign: 'center',
|
|
78
|
+
fontFamily: FONT_FAMILY.buenosAiresBold,
|
|
79
|
+
fontSize: 24,
|
|
80
|
+
},
|
|
81
|
+
sortButtonLabel: {
|
|
61
82
|
fontFamily: FONT_FAMILY.buenosAiresBold,
|
|
62
83
|
fontSize: 12,
|
|
63
84
|
letterSpacing: 0.24,
|
|
@@ -1,25 +1,16 @@
|
|
|
1
|
-
import React, { useRef
|
|
1
|
+
import React, { useRef } from 'react'
|
|
2
2
|
import { Animated, Pressable, StyleSheet, View } from 'react-native'
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
COLORS,
|
|
6
|
-
HeadingVariants,
|
|
7
|
-
SPACING,
|
|
8
|
-
Typography,
|
|
9
|
-
} from '@magmamath/react-native-ui'
|
|
10
|
-
import { COLUMN_TO_OPERATOR } from '../../fluencyTeacher.constants'
|
|
11
|
-
import { getTableOperatorColumns } from '../../fluencyTeacher.helpers'
|
|
12
|
-
import { useTeacherFluency } from '../../context/TeacherFluencyContext'
|
|
3
|
+
import { COLORS, HeadingVariants, SPACING, Typography } from '@magmamath/react-native-ui'
|
|
4
|
+
import { TABLE_OPERATOR_COLUMNS } from '../../fluencyTeacher.constants'
|
|
13
5
|
import { OperatorBadge } from './OperatorBadge'
|
|
14
|
-
import {
|
|
15
|
-
import { tableCellStyles } from './tableCell.styles'
|
|
6
|
+
import { TableRowAverageProgress } from './TableRowAverageProgress'
|
|
16
7
|
import type { StudentOperatorScores } from '../../fluencyTeacher.types'
|
|
17
8
|
|
|
18
|
-
type TableRowProps = {
|
|
9
|
+
export type TableRowProps = {
|
|
19
10
|
name: string
|
|
20
11
|
scores: StudentOperatorScores
|
|
21
12
|
averagePercent?: number
|
|
22
|
-
|
|
13
|
+
averageLabel?: string
|
|
23
14
|
onPress?: () => void
|
|
24
15
|
}
|
|
25
16
|
|
|
@@ -29,87 +20,95 @@ export const TableRow = ({
|
|
|
29
20
|
name,
|
|
30
21
|
scores,
|
|
31
22
|
averagePercent = 0,
|
|
32
|
-
|
|
23
|
+
averageLabel = '',
|
|
33
24
|
onPress,
|
|
34
25
|
}: TableRowProps) => {
|
|
35
|
-
const { grade } = useTeacherFluency()
|
|
36
26
|
const hoverProgress = useRef(new Animated.Value(0)).current
|
|
37
|
-
const [isHovered, setIsHovered] = useState(false)
|
|
38
27
|
|
|
39
28
|
const fadeIn = () => {
|
|
40
|
-
setIsHovered(true)
|
|
41
29
|
Animated.timing(hoverProgress, { toValue: 1, duration: 150, useNativeDriver: false }).start()
|
|
42
30
|
}
|
|
43
31
|
|
|
44
32
|
const fadeOut = () => {
|
|
45
|
-
setIsHovered(false)
|
|
46
33
|
Animated.timing(hoverProgress, { toValue: 0, duration: 150, useNativeDriver: false }).start()
|
|
47
34
|
}
|
|
48
35
|
|
|
49
|
-
const
|
|
36
|
+
const backgroundColor = hoverProgress.interpolate({
|
|
50
37
|
inputRange: [0, 1],
|
|
51
|
-
outputRange: [COLORS.NEUTRAL_1, COLORS.
|
|
38
|
+
outputRange: [COLORS.NEUTRAL_1, COLORS.NEUTRAL_2],
|
|
52
39
|
})
|
|
53
|
-
const isHighlighted = isHovered || isSelected
|
|
54
40
|
|
|
55
41
|
return (
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
<Typography
|
|
68
|
-
variant={HeadingVariants.H7}
|
|
69
|
-
style={[styles.nameText, isHighlighted && styles.nameTextHighlighted]}
|
|
70
|
-
numberOfLines={1}
|
|
71
|
-
>
|
|
72
|
-
{name}
|
|
73
|
-
</Typography>
|
|
74
|
-
</View>
|
|
42
|
+
<AnimatedPressable
|
|
43
|
+
onHoverIn={fadeIn}
|
|
44
|
+
onHoverOut={fadeOut}
|
|
45
|
+
onPress={onPress}
|
|
46
|
+
style={[styles.row, { backgroundColor }]}
|
|
47
|
+
>
|
|
48
|
+
<View style={styles.name}>
|
|
49
|
+
<Typography variant={HeadingVariants.H7} style={styles.nameText} numberOfLines={1}>
|
|
50
|
+
{name}
|
|
51
|
+
</Typography>
|
|
52
|
+
</View>
|
|
75
53
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
54
|
+
<View style={styles.average}>
|
|
55
|
+
<TableRowAverageProgress percent={averagePercent} label={averageLabel} />
|
|
56
|
+
</View>
|
|
79
57
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
</View>
|
|
58
|
+
<View style={styles.operators}>
|
|
59
|
+
{TABLE_OPERATOR_COLUMNS.map(({ operator, badgeBg, badgeText }) => (
|
|
60
|
+
<View key={operator} style={styles.operator}>
|
|
61
|
+
<OperatorBadge value={scores[operator]} bgColor={badgeBg} textColor={badgeText} />
|
|
62
|
+
</View>
|
|
63
|
+
))}
|
|
64
|
+
</View>
|
|
65
|
+
</AnimatedPressable>
|
|
89
66
|
)
|
|
90
67
|
}
|
|
91
68
|
|
|
92
69
|
const styles = StyleSheet.create({
|
|
93
|
-
|
|
70
|
+
row: {
|
|
71
|
+
flexDirection: 'row',
|
|
72
|
+
alignItems: 'center',
|
|
73
|
+
paddingHorizontal: SPACING[400],
|
|
74
|
+
paddingVertical: SPACING[200],
|
|
75
|
+
gap: SPACING[400],
|
|
94
76
|
backgroundColor: COLORS.NEUTRAL_1,
|
|
95
77
|
borderBottomWidth: 1,
|
|
96
|
-
borderBottomColor: COLORS.
|
|
78
|
+
borderBottomColor: COLORS.NEUTRAL_4,
|
|
97
79
|
},
|
|
98
|
-
|
|
80
|
+
name: {
|
|
81
|
+
width: 137,
|
|
82
|
+
height: 40,
|
|
99
83
|
flexDirection: 'row',
|
|
100
84
|
alignItems: 'center',
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
85
|
+
gap: 12,
|
|
86
|
+
},
|
|
87
|
+
icon: {
|
|
88
|
+
width: 25,
|
|
89
|
+
height: 25,
|
|
90
|
+
alignItems: 'center',
|
|
91
|
+
justifyContent: 'center',
|
|
107
92
|
},
|
|
108
93
|
nameText: {
|
|
109
94
|
width: 100,
|
|
110
95
|
color: COLORS.NEUTRAL_9,
|
|
111
96
|
},
|
|
112
|
-
|
|
113
|
-
|
|
97
|
+
average: {
|
|
98
|
+
width: 145,
|
|
99
|
+
height: 40,
|
|
100
|
+
paddingHorizontal: 12,
|
|
101
|
+
justifyContent: 'center',
|
|
102
|
+
},
|
|
103
|
+
operators: {
|
|
104
|
+
flex: 1,
|
|
105
|
+
height: 40,
|
|
106
|
+
flexDirection: 'row',
|
|
107
|
+
alignItems: 'center',
|
|
108
|
+
paddingHorizontal: SPACING[800],
|
|
109
|
+
},
|
|
110
|
+
operator: {
|
|
111
|
+
flex: 1,
|
|
112
|
+
alignItems: 'center',
|
|
114
113
|
},
|
|
115
114
|
})
|