@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
package/dist/commonjs/features/fluency-teacher/components/table/TableColumnSortButton.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_SortDefaultIcon","_commonConstants","_jsxRuntime","e","__esModule","default","TableColumnSortButton","symbol","label","isActive","direction","activeBg","activeText","onPress","contentColor","COLORS","NEUTRAL_7","jsxs","Pressable","style","styles","sortButton","backgroundColor","borderColor","children","jsx","Text","selectable","sortButtonSymbol","color","sortButtonLabel","SortingDirection","DESC","CaretDownIcon","size","CaretUpIcon","SortDefaultIcon","exports","StyleSheet","create","flexDirection","alignItems","gap","SPACING","paddingLeft","paddingRight","paddingVertical","borderRadius","borderWidth","NEUTRAL_3","NEUTRAL_1","SHADOWS","width","height","lineHeight","marginHorizontal","textAlign","fontFamily","FONT_FAMILY","buenosAiresBold","fontSize","letterSpacing","textTransform"],"sourceRoot":"../../../../../../src","sources":["features/fluency-teacher/components/table/TableColumnSortButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAQA,IAAAG,gBAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AAAsE,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBA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E,EAAG;MAACL,KAAK,EAAEf;IAAa,CAAE,CAC9C,gBAED,IAAAZ,WAAA,CAAAuB,GAAA,EAACzB,gBAAA,CAAAoC,eAAe;MAACF,IAAI,EAAE,EAAG;MAACL,KAAK,EAAEf;IAAa,CAAE,CAClD;EAAA,CACQ,CAAC;AAEhB,CAAC;AAAAuB,OAAA,CAAA/B,qBAAA,GAAAA,qBAAA;AAED,MAAMc,MAAM,GAAGkB,uBAAU,CAACC,MAAM,CAAC;EAC/BlB,UAAU,EAAE;IACVmB,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,GAAG,EAAEC,sBAAO,CAAC,GAAG,CAAC;IACjBC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAEF,sBAAO,CAAC,GAAG,CAAC;IAC1BG,eAAe,EAAEH,sBAAO,CAAC,GAAG,CAAC;IAC7BI,YAAY,EAAE,CAAC;IACfC,WAAW,EAAE,GAAG;IAChBzB,WAAW,EAAER,qBAAM,CAACkC,SAAS;IAC7B3B,eAAe,EAAEP,qBAAM,CAACmC,SAAS;IACjC,GAAGC,sBAAO,CAAC,CAAC;EACd,CAAC;EACDvB,gBAAgB,EAAE;IAChBwB,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,UAAU,EAAE,EAAE;IACdC,gBAAgB,EAAEZ,sBAAO,CAAC,GAAG,CAAC;IAC9Ba,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAEC,0BAAW,CAACC,eAAe;IACvCC,QAAQ,EAAE;EACZ,CAAC;EACD9B,eAAe,EAAE;IACf2B,UAAU,EAAEC,0BAAW,CAACC,eAAe;IACvCC,QAAQ,EAAE,EAAE;IACZC,aAAa,EAAE,IAAI;IACnBC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -8,11 +8,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
10
10
|
var _fluencyTeacherConstants = require("../../fluencyTeacher.constants.js");
|
|
11
|
-
var _fluencyTeacherHelpers = require("../../fluencyTeacher.helpers.js");
|
|
12
|
-
var _TeacherFluencyContext = require("../../context/TeacherFluencyContext.js");
|
|
13
11
|
var _OperatorBadge = require("./OperatorBadge.js");
|
|
14
|
-
var
|
|
15
|
-
var _tableCellStyles = require("./tableCell.styles.js");
|
|
12
|
+
var _TableRowAverageProgress = require("./TableRowAverageProgress.js");
|
|
16
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
14
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
15
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -21,16 +18,11 @@ const TableRow = ({
|
|
|
21
18
|
name,
|
|
22
19
|
scores,
|
|
23
20
|
averagePercent = 0,
|
|
24
|
-
|
|
21
|
+
averageLabel = '',
|
|
25
22
|
onPress
|
|
26
23
|
}) => {
|
|
27
|
-
const {
|
|
28
|
-
grade
|
|
29
|
-
} = (0, _TeacherFluencyContext.useTeacherFluency)();
|
|
30
24
|
const hoverProgress = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
|
|
31
|
-
const [isHovered, setIsHovered] = (0, _react.useState)(false);
|
|
32
25
|
const fadeIn = () => {
|
|
33
|
-
setIsHovered(true);
|
|
34
26
|
_reactNative.Animated.timing(hoverProgress, {
|
|
35
27
|
toValue: 1,
|
|
36
28
|
duration: 150,
|
|
@@ -38,78 +30,99 @@ const TableRow = ({
|
|
|
38
30
|
}).start();
|
|
39
31
|
};
|
|
40
32
|
const fadeOut = () => {
|
|
41
|
-
setIsHovered(false);
|
|
42
33
|
_reactNative.Animated.timing(hoverProgress, {
|
|
43
34
|
toValue: 0,
|
|
44
35
|
duration: 150,
|
|
45
36
|
useNativeDriver: false
|
|
46
37
|
}).start();
|
|
47
38
|
};
|
|
48
|
-
const
|
|
39
|
+
const backgroundColor = hoverProgress.interpolate({
|
|
49
40
|
inputRange: [0, 1],
|
|
50
|
-
outputRange: [_reactNativeUi.COLORS.NEUTRAL_1, _reactNativeUi.COLORS.
|
|
41
|
+
outputRange: [_reactNativeUi.COLORS.NEUTRAL_1, _reactNativeUi.COLORS.NEUTRAL_2]
|
|
51
42
|
});
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
style:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
43
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(AnimatedPressable, {
|
|
44
|
+
onHoverIn: fadeIn,
|
|
45
|
+
onHoverOut: fadeOut,
|
|
46
|
+
onPress: onPress,
|
|
47
|
+
style: [styles.row, {
|
|
48
|
+
backgroundColor
|
|
49
|
+
}],
|
|
50
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
51
|
+
style: styles.name,
|
|
52
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
|
|
53
|
+
variant: _reactNativeUi.HeadingVariants.H7,
|
|
54
|
+
style: styles.nameText,
|
|
55
|
+
numberOfLines: 1,
|
|
56
|
+
children: name
|
|
57
|
+
})
|
|
58
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
59
|
+
style: styles.average,
|
|
60
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TableRowAverageProgress.TableRowAverageProgress, {
|
|
61
|
+
percent: averagePercent,
|
|
62
|
+
label: averageLabel
|
|
63
|
+
})
|
|
64
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
65
|
+
style: styles.operators,
|
|
66
|
+
children: _fluencyTeacherConstants.TABLE_OPERATOR_COLUMNS.map(({
|
|
67
|
+
operator,
|
|
68
|
+
badgeBg,
|
|
69
|
+
badgeText
|
|
70
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
71
|
+
style: styles.operator,
|
|
72
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_OperatorBadge.OperatorBadge, {
|
|
73
|
+
value: scores[operator],
|
|
74
|
+
bgColor: badgeBg,
|
|
75
|
+
textColor: badgeText
|
|
69
76
|
})
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_AverageCell.AverageCell, {
|
|
73
|
-
percent: averagePercent
|
|
74
|
-
})
|
|
75
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
76
|
-
style: _tableCellStyles.tableCellStyles.operators,
|
|
77
|
-
children: (0, _fluencyTeacherHelpers.getTableOperatorColumns)(grade).map(({
|
|
78
|
-
operator
|
|
79
|
-
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
80
|
-
style: _tableCellStyles.tableCellStyles.operator,
|
|
81
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_OperatorBadge.OperatorBadge, {
|
|
82
|
-
value: scores[operator],
|
|
83
|
-
operator: _fluencyTeacherConstants.COLUMN_TO_OPERATOR[operator]
|
|
84
|
-
})
|
|
85
|
-
}, operator))
|
|
86
|
-
})]
|
|
87
|
-
})
|
|
77
|
+
}, operator))
|
|
78
|
+
})]
|
|
88
79
|
});
|
|
89
80
|
};
|
|
90
81
|
exports.TableRow = TableRow;
|
|
91
82
|
const styles = _reactNative.StyleSheet.create({
|
|
92
|
-
|
|
83
|
+
row: {
|
|
84
|
+
flexDirection: 'row',
|
|
85
|
+
alignItems: 'center',
|
|
86
|
+
paddingHorizontal: _reactNativeUi.SPACING[400],
|
|
87
|
+
paddingVertical: _reactNativeUi.SPACING[200],
|
|
88
|
+
gap: _reactNativeUi.SPACING[400],
|
|
93
89
|
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_1,
|
|
94
90
|
borderBottomWidth: 1,
|
|
95
|
-
borderBottomColor: _reactNativeUi.COLORS.
|
|
91
|
+
borderBottomColor: _reactNativeUi.COLORS.NEUTRAL_4
|
|
96
92
|
},
|
|
97
|
-
|
|
93
|
+
name: {
|
|
94
|
+
width: 137,
|
|
95
|
+
height: 40,
|
|
98
96
|
flexDirection: 'row',
|
|
99
97
|
alignItems: 'center',
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
98
|
+
gap: 12
|
|
99
|
+
},
|
|
100
|
+
icon: {
|
|
101
|
+
width: 25,
|
|
102
|
+
height: 25,
|
|
103
|
+
alignItems: 'center',
|
|
104
|
+
justifyContent: 'center'
|
|
106
105
|
},
|
|
107
106
|
nameText: {
|
|
108
107
|
width: 100,
|
|
109
108
|
color: _reactNativeUi.COLORS.NEUTRAL_9
|
|
110
109
|
},
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
average: {
|
|
111
|
+
width: 145,
|
|
112
|
+
height: 40,
|
|
113
|
+
paddingHorizontal: 12,
|
|
114
|
+
justifyContent: 'center'
|
|
115
|
+
},
|
|
116
|
+
operators: {
|
|
117
|
+
flex: 1,
|
|
118
|
+
height: 40,
|
|
119
|
+
flexDirection: 'row',
|
|
120
|
+
alignItems: 'center',
|
|
121
|
+
paddingHorizontal: _reactNativeUi.SPACING[800]
|
|
122
|
+
},
|
|
123
|
+
operator: {
|
|
124
|
+
flex: 1,
|
|
125
|
+
alignItems: 'center'
|
|
113
126
|
}
|
|
114
127
|
});
|
|
115
128
|
//# sourceMappingURL=TableRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeUi","_fluencyTeacherConstants","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeUi","_fluencyTeacherConstants","_OperatorBadge","_TableRowAverageProgress","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","AnimatedPressable","Animated","createAnimatedComponent","Pressable","TableRow","name","scores","averagePercent","averageLabel","onPress","hoverProgress","useRef","Value","current","fadeIn","timing","toValue","duration","useNativeDriver","start","fadeOut","backgroundColor","interpolate","inputRange","outputRange","COLORS","NEUTRAL_1","NEUTRAL_2","jsxs","onHoverIn","onHoverOut","style","styles","row","children","jsx","View","Typography","variant","HeadingVariants","H7","nameText","numberOfLines","average","TableRowAverageProgress","percent","label","operators","TABLE_OPERATOR_COLUMNS","map","operator","badgeBg","badgeText","OperatorBadge","value","bgColor","textColor","exports","StyleSheet","create","flexDirection","alignItems","paddingHorizontal","SPACING","paddingVertical","gap","borderBottomWidth","borderBottomColor","NEUTRAL_4","width","height","icon","justifyContent","color","NEUTRAL_9","flex"],"sourceRoot":"../../../../../../src","sources":["features/fluency-teacher/components/table/TableRow.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,wBAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,wBAAA,GAAAL,OA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E,GAAG,EAAEF,sBAAO,CAAC,GAAG,CAAC;IACjB1C,eAAe,EAAEI,qBAAM,CAACC,SAAS;IACjCwC,iBAAiB,EAAE,CAAC;IACpBC,iBAAiB,EAAE1C,qBAAM,CAAC2C;EAC5B,CAAC;EACD/D,IAAI,EAAE;IACJgE,KAAK,EAAE,GAAG;IACVC,MAAM,EAAE,EAAE;IACVV,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBI,GAAG,EAAE;EACP,CAAC;EACDM,IAAI,EAAE;IACJF,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVT,UAAU,EAAE,QAAQ;IACpBW,cAAc,EAAE;EAClB,CAAC;EACD/B,QAAQ,EAAE;IACR4B,KAAK,EAAE,GAAG;IACVI,KAAK,EAAEhD,qBAAM,CAACiD;EAChB,CAAC;EACD/B,OAAO,EAAE;IACP0B,KAAK,EAAE,GAAG;IACVC,MAAM,EAAE,EAAE;IACVR,iBAAiB,EAAE,EAAE;IACrBU,cAAc,EAAE;EAClB,CAAC;EACDzB,SAAS,EAAE;IACT4B,IAAI,EAAE,CAAC;IACPL,MAAM,EAAE,EAAE;IACVV,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,iBAAiB,EAAEC,sBAAO,CAAC,GAAG;EAChC,CAAC;EACDb,QAAQ,EAAE;IACRyB,IAAI,EAAE,CAAC;IACPd,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TableRowAverageProgress = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
const TableRowAverageProgress = ({
|
|
13
|
+
percent,
|
|
14
|
+
label
|
|
15
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
16
|
+
style: styles.progressTrack,
|
|
17
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
18
|
+
style: [styles.progressFill, {
|
|
19
|
+
width: `${percent}%`
|
|
20
|
+
}]
|
|
21
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
22
|
+
style: styles.progressOverlay,
|
|
23
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeUi.Typography, {
|
|
24
|
+
variant: _reactNativeUi.HeadingVariants.H9,
|
|
25
|
+
style: styles.progressPercent,
|
|
26
|
+
children: [percent, "%"]
|
|
27
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
28
|
+
style: styles.progressLabel,
|
|
29
|
+
numberOfLines: 1,
|
|
30
|
+
children: label
|
|
31
|
+
})]
|
|
32
|
+
})]
|
|
33
|
+
});
|
|
34
|
+
exports.TableRowAverageProgress = TableRowAverageProgress;
|
|
35
|
+
const styles = _reactNative.StyleSheet.create({
|
|
36
|
+
progressTrack: {
|
|
37
|
+
height: 16,
|
|
38
|
+
borderRadius: 36,
|
|
39
|
+
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_3,
|
|
40
|
+
overflow: 'hidden'
|
|
41
|
+
},
|
|
42
|
+
progressFill: {
|
|
43
|
+
position: 'absolute',
|
|
44
|
+
top: 0,
|
|
45
|
+
bottom: 0,
|
|
46
|
+
left: 0,
|
|
47
|
+
borderRadius: 36,
|
|
48
|
+
backgroundColor: _reactNativeUi.COLORS.YELLOW_4
|
|
49
|
+
},
|
|
50
|
+
progressOverlay: {
|
|
51
|
+
position: 'absolute',
|
|
52
|
+
top: 0,
|
|
53
|
+
bottom: 0,
|
|
54
|
+
left: 0,
|
|
55
|
+
right: 0,
|
|
56
|
+
flexDirection: 'row',
|
|
57
|
+
alignItems: 'center',
|
|
58
|
+
justifyContent: 'space-between',
|
|
59
|
+
paddingHorizontal: _reactNativeUi.SPACING[200]
|
|
60
|
+
},
|
|
61
|
+
progressPercent: {
|
|
62
|
+
color: _reactNativeUi.COLORS.NEUTRAL_9
|
|
63
|
+
},
|
|
64
|
+
progressLabel: {
|
|
65
|
+
fontFamily: _reactNativeUi.FONT_FAMILY.buenosAiresSemiBold,
|
|
66
|
+
fontSize: 10,
|
|
67
|
+
color: _reactNativeUi.COLORS.NEUTRAL_9,
|
|
68
|
+
textTransform: 'uppercase'
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
//# sourceMappingURL=TableRowAverageProgress.js.map
|
package/dist/commonjs/features/fluency-teacher/components/table/TableRowAverageProgress.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_jsxRuntime","e","__esModule","default","TableRowAverageProgress","percent","label","jsxs","View","style","styles","progressTrack","children","jsx","progressFill","width","progressOverlay","Typography","variant","HeadingVariants","H9","progressPercent","Text","progressLabel","numberOfLines","exports","StyleSheet","create","height","borderRadius","backgroundColor","COLORS","NEUTRAL_3","overflow","position","top","bottom","left","YELLOW_4","right","flexDirection","alignItems","justifyContent","paddingHorizontal","SPACING","color","NEUTRAL_9","fontFamily","FONT_FAMILY","buenosAiresSemiBold","fontSize","textTransform"],"sourceRoot":"../../../../../../src","sources":["features/fluency-teacher/components/table/TableRowAverageProgress.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAMmC,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA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,MAAM,EAAE,CAAC;IACTC,IAAI,EAAE,CAAC;IACPR,YAAY,EAAE,EAAE;IAChBC,eAAe,EAAEC,qBAAM,CAACO;EAC1B,CAAC;EACDtB,eAAe,EAAE;IACfkB,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,MAAM,EAAE,CAAC;IACTC,IAAI,EAAE,CAAC;IACPE,KAAK,EAAE,CAAC;IACRC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BC,iBAAiB,EAAEC,sBAAO,CAAC,GAAG;EAChC,CAAC;EACDvB,eAAe,EAAE;IACfwB,KAAK,EAAEd,qBAAM,CAACe;EAChB,CAAC;EACDvB,aAAa,EAAE;IACbwB,UAAU,EAAEC,0BAAW,CAACC,mBAAmB;IAC3CC,QAAQ,EAAE,EAAE;IACZL,KAAK,EAAEd,qBAAM,CAACe,SAAS;IACvBK,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","TeacherFluencyContext","createContext","useTeacherFluency","value","useContext","Error","exports","TeacherFluencyProvider","Provider"],"sourceRoot":"../../../../../src","sources":["features/fluency-teacher/context/TeacherFluencyContext.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","require","TeacherFluencyContext","createContext","useTeacherFluency","value","useContext","Error","exports","TeacherFluencyProvider","Provider"],"sourceRoot":"../../../../../src","sources":["features/fluency-teacher/context/TeacherFluencyContext.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAOA,MAAMC,qBAAqB,gBAAG,IAAAC,oBAAa,EAAoC,IAAI,CAAC;AAE7E,MAAMC,iBAAiB,GAAGA,CAAA,KAAkC;EACjE,MAAMC,KAAK,GAAG,IAAAC,iBAAU,EAACJ,qBAAqB,CAAC;EAC/C,IAAI,CAACG,KAAK,EAAE,MAAM,IAAIE,KAAK,CAAC,8DAA8D,CAAC;EAC3F,OAAOF,KAAK;AACd,CAAC;AAAAG,OAAA,CAAAJ,iBAAA,GAAAA,iBAAA;AAEM,MAAMK,sBAAsB,GAAAD,OAAA,CAAAC,sBAAA,GAAGP,qBAAqB,CAACQ,QAAQ","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.TEACHER_FLUENCY_GOAL_MINUTES = exports.TABLE_OPERATOR_COLUMNS = exports.MATRIX_CELL_COLORS = exports.FluencyTableColumn = exports.FluencyOperator = exports.FluencyMathOperatorSymbol = void 0;
|
|
7
7
|
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
8
8
|
const TEACHER_FLUENCY_GOAL_MINUTES = exports.TEACHER_FLUENCY_GOAL_MINUTES = 25;
|
|
9
9
|
let FluencyOperator = exports.FluencyOperator = /*#__PURE__*/function (FluencyOperator) {
|
|
@@ -13,70 +13,32 @@ let FluencyOperator = exports.FluencyOperator = /*#__PURE__*/function (FluencyOp
|
|
|
13
13
|
FluencyOperator["DIVISION"] = "division";
|
|
14
14
|
return FluencyOperator;
|
|
15
15
|
}({});
|
|
16
|
-
let MasteryLevel = exports.MasteryLevel = /*#__PURE__*/function (MasteryLevel) {
|
|
17
|
-
MasteryLevel[MasteryLevel["LEARNING"] = 1] = "LEARNING";
|
|
18
|
-
MasteryLevel[MasteryLevel["GROWING"] = 2] = "GROWING";
|
|
19
|
-
MasteryLevel[MasteryLevel["STRONG"] = 3] = "STRONG";
|
|
20
|
-
MasteryLevel[MasteryLevel["AUTOMATIC"] = 4] = "AUTOMATIC";
|
|
21
|
-
return MasteryLevel;
|
|
22
|
-
}({});
|
|
23
|
-
const OPERATOR_PALETTES = exports.OPERATOR_PALETTES = {
|
|
24
|
-
[FluencyOperator.ADDITION]: {
|
|
25
|
-
bands: [_reactNativeUi.COLORS.GREEN_1, _reactNativeUi.COLORS.GREEN_2, _reactNativeUi.COLORS.GREEN_3, _reactNativeUi.COLORS.GREEN_4, _reactNativeUi.COLORS.PRIMARY_GREEN],
|
|
26
|
-
bandBorders: [_reactNativeUi.COLORS.GREEN_2, _reactNativeUi.COLORS.GREEN_3, _reactNativeUi.COLORS.GREEN_4, _reactNativeUi.COLORS.PRIMARY_GREEN, _reactNativeUi.COLORS.GREEN_6],
|
|
27
|
-
darkText: _reactNativeUi.COLORS.GREEN_8,
|
|
28
|
-
legendCount: _reactNativeUi.COLORS.GREEN_7,
|
|
29
|
-
boxBorder: _reactNativeUi.COLORS.GREEN_2
|
|
30
|
-
},
|
|
31
|
-
[FluencyOperator.SUBTRACTION]: {
|
|
32
|
-
bands: [_reactNativeUi.COLORS.ORANGE_1, _reactNativeUi.COLORS.ORANGE_2, _reactNativeUi.COLORS.ORANGE_3, _reactNativeUi.COLORS.ORANGE_4, _reactNativeUi.COLORS.PRIMARY_ORANGE],
|
|
33
|
-
bandBorders: [_reactNativeUi.COLORS.ORANGE_2, _reactNativeUi.COLORS.ORANGE_3, _reactNativeUi.COLORS.ORANGE_4, _reactNativeUi.COLORS.PRIMARY_ORANGE, _reactNativeUi.COLORS.ORANGE_6],
|
|
34
|
-
darkText: _reactNativeUi.COLORS.ORANGE_8,
|
|
35
|
-
legendCount: _reactNativeUi.COLORS.ORANGE_7,
|
|
36
|
-
boxBorder: _reactNativeUi.COLORS.ORANGE_2
|
|
37
|
-
},
|
|
38
|
-
[FluencyOperator.MULTIPLICATION]: {
|
|
39
|
-
bands: [_reactNativeUi.COLORS.BLUE_1, _reactNativeUi.COLORS.BLUE_2, _reactNativeUi.COLORS.BLUE_3, _reactNativeUi.COLORS.BLUE_4, _reactNativeUi.COLORS.PRIMARY_BLUE],
|
|
40
|
-
bandBorders: [_reactNativeUi.COLORS.BLUE_2, _reactNativeUi.COLORS.BLUE_3, _reactNativeUi.COLORS.BLUE_4, _reactNativeUi.COLORS.PRIMARY_BLUE, _reactNativeUi.COLORS.BLUE_6],
|
|
41
|
-
darkText: _reactNativeUi.COLORS.BLUE_8,
|
|
42
|
-
legendCount: _reactNativeUi.COLORS.BLUE_7,
|
|
43
|
-
boxBorder: _reactNativeUi.COLORS.BLUE_2
|
|
44
|
-
},
|
|
45
|
-
[FluencyOperator.DIVISION]: {
|
|
46
|
-
bands: [_reactNativeUi.COLORS.PURPLE_1, _reactNativeUi.COLORS.PURPLE_2, _reactNativeUi.COLORS.PURPLE_3, _reactNativeUi.COLORS.PURPLE_4, _reactNativeUi.COLORS.PRIMARY_PURPLE],
|
|
47
|
-
bandBorders: [_reactNativeUi.COLORS.PURPLE_2, _reactNativeUi.COLORS.PURPLE_3, _reactNativeUi.COLORS.PURPLE_4, _reactNativeUi.COLORS.PRIMARY_PURPLE, _reactNativeUi.COLORS.PURPLE_6],
|
|
48
|
-
darkText: _reactNativeUi.COLORS.PURPLE_8,
|
|
49
|
-
legendCount: _reactNativeUi.COLORS.PURPLE_7,
|
|
50
|
-
boxBorder: _reactNativeUi.COLORS.PURPLE_2
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
16
|
const MATRIX_CELL_COLORS = exports.MATRIX_CELL_COLORS = {
|
|
54
17
|
[FluencyOperator.ADDITION]: {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
18
|
+
1: _reactNativeUi.COLORS.GREEN_2,
|
|
19
|
+
2: _reactNativeUi.COLORS.GREEN_3,
|
|
20
|
+
3: _reactNativeUi.COLORS.PRIMARY_GREEN,
|
|
21
|
+
4: _reactNativeUi.COLORS.GREEN_6
|
|
59
22
|
},
|
|
60
23
|
[FluencyOperator.SUBTRACTION]: {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
24
|
+
1: _reactNativeUi.COLORS.ORANGE_2,
|
|
25
|
+
2: _reactNativeUi.COLORS.ORANGE_3,
|
|
26
|
+
3: _reactNativeUi.COLORS.PRIMARY_ORANGE,
|
|
27
|
+
4: _reactNativeUi.COLORS.ORANGE_6
|
|
65
28
|
},
|
|
66
29
|
[FluencyOperator.MULTIPLICATION]: {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
30
|
+
1: _reactNativeUi.COLORS.BLUE_2,
|
|
31
|
+
2: _reactNativeUi.COLORS.BLUE_3,
|
|
32
|
+
3: _reactNativeUi.COLORS.PRIMARY_BLUE,
|
|
33
|
+
4: _reactNativeUi.COLORS.BLUE_6
|
|
71
34
|
},
|
|
72
35
|
[FluencyOperator.DIVISION]: {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
36
|
+
1: _reactNativeUi.COLORS.PURPLE_2,
|
|
37
|
+
2: _reactNativeUi.COLORS.PURPLE_3,
|
|
38
|
+
3: _reactNativeUi.COLORS.PRIMARY_PURPLE,
|
|
39
|
+
4: _reactNativeUi.COLORS.PURPLE_6
|
|
77
40
|
}
|
|
78
41
|
};
|
|
79
|
-
const MATRIX_NOT_STARTED_COLOR = exports.MATRIX_NOT_STARTED_COLOR = _reactNativeUi.COLORS.NEUTRAL_3;
|
|
80
42
|
let FluencyTableColumn = exports.FluencyTableColumn = /*#__PURE__*/function (FluencyTableColumn) {
|
|
81
43
|
FluencyTableColumn["AVERAGE"] = "average";
|
|
82
44
|
FluencyTableColumn["ADDITION"] = "addition";
|
|
@@ -92,56 +54,29 @@ let FluencyMathOperatorSymbol = exports.FluencyMathOperatorSymbol = /*#__PURE__*
|
|
|
92
54
|
FluencyMathOperatorSymbol["DIVISION"] = "\xF7";
|
|
93
55
|
return FluencyMathOperatorSymbol;
|
|
94
56
|
}({});
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
const OPERATOR_TO_COLUMN = exports.OPERATOR_TO_COLUMN = {
|
|
102
|
-
[FluencyOperator.ADDITION]: FluencyTableColumn.ADDITION,
|
|
103
|
-
[FluencyOperator.SUBTRACTION]: FluencyTableColumn.SUBTRACTION,
|
|
104
|
-
[FluencyOperator.MULTIPLICATION]: FluencyTableColumn.MULTIPLICATION,
|
|
105
|
-
[FluencyOperator.DIVISION]: FluencyTableColumn.DIVISION
|
|
106
|
-
};
|
|
107
|
-
const MAX_GRADE_WITH_TWO_OPERATORS = exports.MAX_GRADE_WITH_TWO_OPERATORS = 2;
|
|
108
|
-
const TWO_OPERATOR_SET = exports.TWO_OPERATOR_SET = [FluencyOperator.ADDITION, FluencyOperator.SUBTRACTION];
|
|
109
|
-
const OPERATOR_CARD_CONFIG = exports.OPERATOR_CARD_CONFIG = {
|
|
110
|
-
[FluencyOperator.ADDITION]: {
|
|
111
|
-
labelKey: 'student.fluency.addition',
|
|
112
|
-
symbol: FluencyMathOperatorSymbol.ADDITION
|
|
113
|
-
},
|
|
114
|
-
[FluencyOperator.SUBTRACTION]: {
|
|
115
|
-
labelKey: 'student.fluency.subtraction',
|
|
116
|
-
symbol: FluencyMathOperatorSymbol.SUBTRACTION
|
|
117
|
-
},
|
|
118
|
-
[FluencyOperator.MULTIPLICATION]: {
|
|
119
|
-
labelKey: 'student.fluency.multiplication',
|
|
120
|
-
symbol: FluencyMathOperatorSymbol.MULTIPLICATION
|
|
121
|
-
},
|
|
122
|
-
[FluencyOperator.DIVISION]: {
|
|
123
|
-
labelKey: 'student.fluency.division',
|
|
124
|
-
symbol: FluencyMathOperatorSymbol.DIVISION
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
const TABLE_OPERATOR_COLUMNS = exports.TABLE_OPERATOR_COLUMNS = Object.values(FluencyOperator).map(operator => ({
|
|
128
|
-
operator: OPERATOR_TO_COLUMN[operator],
|
|
129
|
-
labelKey: OPERATOR_CARD_CONFIG[operator].labelKey
|
|
130
|
-
}));
|
|
131
|
-
const LEGEND_LEVELS = exports.LEGEND_LEVELS = [{
|
|
132
|
-
box: MasteryLevel.AUTOMATIC,
|
|
133
|
-
labelKey: 'student.fluency.masteryMastered'
|
|
134
|
-
}, {
|
|
135
|
-
box: MasteryLevel.STRONG,
|
|
136
|
-
labelKey: 'student.fluency.masteryStrong'
|
|
57
|
+
const TABLE_OPERATOR_COLUMNS = exports.TABLE_OPERATOR_COLUMNS = [{
|
|
58
|
+
operator: FluencyTableColumn.ADDITION,
|
|
59
|
+
labelKey: 'student.fluency.addition',
|
|
60
|
+
symbol: FluencyMathOperatorSymbol.ADDITION,
|
|
61
|
+
badgeBg: _reactNativeUi.COLORS.GREEN_3,
|
|
62
|
+
badgeText: _reactNativeUi.COLORS.GREEN_8
|
|
137
63
|
}, {
|
|
138
|
-
|
|
139
|
-
labelKey: 'student.fluency.
|
|
64
|
+
operator: FluencyTableColumn.SUBTRACTION,
|
|
65
|
+
labelKey: 'student.fluency.subtraction',
|
|
66
|
+
symbol: FluencyMathOperatorSymbol.SUBTRACTION,
|
|
67
|
+
badgeBg: _reactNativeUi.COLORS.ORANGE_3,
|
|
68
|
+
badgeText: _reactNativeUi.COLORS.ORANGE_8
|
|
140
69
|
}, {
|
|
141
|
-
|
|
142
|
-
labelKey: 'student.fluency.
|
|
70
|
+
operator: FluencyTableColumn.DIVISION,
|
|
71
|
+
labelKey: 'student.fluency.division',
|
|
72
|
+
symbol: FluencyMathOperatorSymbol.DIVISION,
|
|
73
|
+
badgeBg: _reactNativeUi.COLORS.BLUE_3,
|
|
74
|
+
badgeText: _reactNativeUi.COLORS.BLUE_8
|
|
143
75
|
}, {
|
|
144
|
-
|
|
145
|
-
labelKey: '
|
|
76
|
+
operator: FluencyTableColumn.MULTIPLICATION,
|
|
77
|
+
labelKey: 'student.fluency.multiplication',
|
|
78
|
+
symbol: FluencyMathOperatorSymbol.MULTIPLICATION,
|
|
79
|
+
badgeBg: _reactNativeUi.COLORS.PURPLE_2,
|
|
80
|
+
badgeText: _reactNativeUi.COLORS.PURPLE_8
|
|
146
81
|
}];
|
|
147
82
|
//# sourceMappingURL=fluencyTeacher.constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeUi","require","TEACHER_FLUENCY_GOAL_MINUTES","exports","FluencyOperator","
|
|
1
|
+
{"version":3,"names":["_reactNativeUi","require","TEACHER_FLUENCY_GOAL_MINUTES","exports","FluencyOperator","MATRIX_CELL_COLORS","ADDITION","COLORS","GREEN_2","GREEN_3","PRIMARY_GREEN","GREEN_6","SUBTRACTION","ORANGE_2","ORANGE_3","PRIMARY_ORANGE","ORANGE_6","MULTIPLICATION","BLUE_2","BLUE_3","PRIMARY_BLUE","BLUE_6","DIVISION","PURPLE_2","PURPLE_3","PRIMARY_PURPLE","PURPLE_6","FluencyTableColumn","FluencyMathOperatorSymbol","TABLE_OPERATOR_COLUMNS","operator","labelKey","symbol","badgeBg","badgeText","GREEN_8","ORANGE_8","BLUE_8","PURPLE_8"],"sourceRoot":"../../../../src","sources":["features/fluency-teacher/fluencyTeacher.constants.ts"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAGO,MAAMC,4BAA4B,GAAAC,OAAA,CAAAD,4BAAA,GAAG,EAAE;AAAA,IAElCE,eAAe,GAAAD,OAAA,CAAAC,eAAA,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA;AAOpB,MAAMC,kBAAmE,GAAAF,OAAA,CAAAE,kBAAA,GAAG;EACjF,CAACD,eAAe,CAACE,QAAQ,GAAG;IAC1B,CAAC,EAAEC,qBAAM,CAACC,OAAO;IACjB,CAAC,EAAED,qBAAM,CAACE,OAAO;IACjB,CAAC,EAAEF,qBAAM,CAACG,aAAa;IACvB,CAAC,EAAEH,qBAAM,CAACI;EACZ,CAAC;EACD,CAACP,eAAe,CAACQ,WAAW,GAAG;IAC7B,CAAC,EAAEL,qBAAM,CAACM,QAAQ;IAClB,CAAC,EAAEN,qBAAM,CAACO,QAAQ;IAClB,CAAC,EAAEP,qBA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EAAE1B,qBAAM,CAACO,QAAQ;EACxBoB,SAAS,EAAE3B,qBAAM,CAAC6B;AACpB,CAAC,EACD;EACEN,QAAQ,EAAEH,kBAAkB,CAACL,QAAQ;EACrCS,QAAQ,EAAE,0BAA0B;EACpCC,MAAM,EAAEJ,yBAAyB,CAACN,QAAQ;EAC1CW,OAAO,EAAE1B,qBAAM,CAACY,MAAM;EACtBe,SAAS,EAAE3B,qBAAM,CAAC8B;AACpB,CAAC,EACD;EACEP,QAAQ,EAAEH,kBAAkB,CAACV,cAAc;EAC3Cc,QAAQ,EAAE,gCAAgC;EAC1CC,MAAM,EAAEJ,yBAAyB,CAACX,cAAc;EAChDgB,OAAO,EAAE1B,qBAAM,CAACgB,QAAQ;EACxBW,SAAS,EAAE3B,qBAAM,CAAC+B;AACpB,CAAC,CACF","ignoreList":[]}
|
|
@@ -3,61 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.toAverageLabel = exports.getCellColor = exports.buildStudentsFluencyTable = exports.buildClassAverageStats = void 0;
|
|
7
7
|
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
8
|
-
|
|
9
|
-
const getCellColor = (box, colorMap) => box ? colorMap[box] ?? _fluencyTeacherConstants.MATRIX_NOT_STARTED_COLOR : _fluencyTeacherConstants.MATRIX_NOT_STARTED_COLOR;
|
|
8
|
+
const getCellColor = (box, colorMap) => box ? colorMap[box] ?? _reactNativeUi.COLORS.NEUTRAL_2 : _reactNativeUi.COLORS.NEUTRAL_2;
|
|
10
9
|
exports.getCellColor = getCellColor;
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const getOperatorsForGrade = grade => isTwoOperatorGrade(grade) ? _fluencyTeacherConstants.TWO_OPERATOR_SET : Object.values(_fluencyTeacherConstants.FluencyOperator);
|
|
18
|
-
exports.getOperatorsForGrade = getOperatorsForGrade;
|
|
19
|
-
const isColumnVisibleForGrade = (column, grade) => column === _fluencyTeacherConstants.FluencyTableColumn.AVERAGE || getTableOperatorColumns(grade).some(({
|
|
20
|
-
operator
|
|
21
|
-
}) => operator === column);
|
|
22
|
-
exports.isColumnVisibleForGrade = isColumnVisibleForGrade;
|
|
23
|
-
const isCommutativeOperator = operator => operator === _fluencyTeacherConstants.FluencyOperator.ADDITION || operator === _fluencyTeacherConstants.FluencyOperator.MULTIPLICATION;
|
|
24
|
-
exports.isCommutativeOperator = isCommutativeOperator;
|
|
25
|
-
const getHigherMasteryLevel = (a, b) => a > b ? a : b;
|
|
26
|
-
exports.getHigherMasteryLevel = getHigherMasteryLevel;
|
|
27
|
-
const toValidMasteryLevel = box => box !== null && box >= _fluencyTeacherConstants.MasteryLevel.LEARNING && box <= _fluencyTeacherConstants.MasteryLevel.AUTOMATIC ? box : null;
|
|
28
|
-
const countFactsByMasteryLevel = (grid, operator) => {
|
|
29
|
-
const counts = new Map();
|
|
30
|
-
const commutative = isCommutativeOperator(operator);
|
|
31
|
-
grid?.rows.forEach(row => row.cells.forEach((cell, columnIndex) => {
|
|
32
|
-
if (cell.isEmpty) return;
|
|
33
|
-
// Commutative grids mirror each fact into (a,b) and (b,a) cells —
|
|
34
|
-
// count only the upper triangle so each fact is counted once.
|
|
35
|
-
if (commutative && grid.colLabels[columnIndex] < row.label) return;
|
|
36
|
-
const box = toValidMasteryLevel(cell.box);
|
|
37
|
-
counts.set(box, (counts.get(box) ?? 0) + 1);
|
|
38
|
-
}));
|
|
39
|
-
return counts;
|
|
10
|
+
const toAverageLabel = overallPercent => {
|
|
11
|
+
if (overallPercent >= 0.9) return 'teacher.fluency.progressFluent';
|
|
12
|
+
if (overallPercent >= 0.65) return 'teacher.fluency.progressProficient';
|
|
13
|
+
if (overallPercent >= 0.35) return 'teacher.fluency.progressDeveloping';
|
|
14
|
+
if (overallPercent >= 0.05) return 'teacher.fluency.progressLearning';
|
|
15
|
+
return 'teacher.fluency.progressNotStarted';
|
|
40
16
|
};
|
|
41
|
-
exports.
|
|
42
|
-
const toBandIndex = percent => {
|
|
43
|
-
if (percent <= 20) return 0;
|
|
44
|
-
if (percent <= 40) return 1;
|
|
45
|
-
if (percent <= 60) return 2;
|
|
46
|
-
if (percent <= 80) return 3;
|
|
47
|
-
return 4;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
// Dark shades (bands 4-5) need white text to stay readable
|
|
51
|
-
const getOperatorBandColors = (operator, percent) => {
|
|
52
|
-
const palette = _fluencyTeacherConstants.OPERATOR_PALETTES[operator];
|
|
53
|
-
const band = toBandIndex(percent);
|
|
54
|
-
return {
|
|
55
|
-
background: palette.bands[band],
|
|
56
|
-
border: palette.bandBorders[band],
|
|
57
|
-
text: band >= 3 ? _reactNativeUi.COLORS.NEUTRAL_1 : palette.darkText
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
exports.getOperatorBandColors = getOperatorBandColors;
|
|
17
|
+
exports.toAverageLabel = toAverageLabel;
|
|
61
18
|
const toPercent = decimal => Math.round(decimal * 100);
|
|
62
19
|
const buildOperatorAverages = response => {
|
|
63
20
|
const count = response.students.length;
|
|
@@ -104,6 +61,7 @@ const buildStudentsFluencyTable = ({
|
|
|
104
61
|
id: row.studentId,
|
|
105
62
|
name: student.name,
|
|
106
63
|
averagePercent: toPercent(row.overallPercent),
|
|
64
|
+
averageLabel: toAverageLabel(row.overallPercent),
|
|
107
65
|
scores: {
|
|
108
66
|
addition: toPercent(row.byOperator.addition),
|
|
109
67
|
subtraction: toPercent(row.byOperator.subtraction),
|