@magmamath/students-features 1.8.0-rc.0-fluency-visuals → 1.8.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/EquationContent.js +8 -9
- 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 +1 -3
- 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 +10 -63
- 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 +0 -10
- 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 +2 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencySolvingProgress.js.map +1 -1
- package/dist/commonjs/features/fluency/index.js +0 -20
- package/dist/commonjs/features/fluency/index.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/assets/{SortDefaultIcon.js → DivisionIcon.js} +11 -8
- package/dist/commonjs/features/fluency-teacher/assets/DivisionIcon.js.map +1 -0
- package/dist/commonjs/features/fluency-teacher/components/FluencyTeacher.js +4 -3
- package/dist/commonjs/features/fluency-teacher/components/FluencyTeacher.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerHeader.js +48 -43
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerHeader.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerMatrixes.js +11 -28
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerMatrixes.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorBox.js +27 -44
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorBox.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.js +47 -40
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerStats.js +14 -24
- 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 +2 -16
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixCell.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixLegend.js +83 -0
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixLegend.js.map +1 -0
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixRow.js +1 -2
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixRow.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/AllPupilsTableRow.js +15 -41
- package/dist/commonjs/features/fluency-teacher/components/table/AllPupilsTableRow.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/AverageCell.js +55 -0
- package/dist/commonjs/features/fluency-teacher/components/table/AverageCell.js.map +1 -0
- package/dist/commonjs/features/fluency-teacher/components/table/AverageSortButton.js +6 -62
- package/dist/commonjs/features/fluency-teacher/components/table/AverageSortButton.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.js +42 -40
- package/dist/commonjs/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/OperatorBadge.js +25 -16
- package/dist/commonjs/features/fluency-teacher/components/table/OperatorBadge.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/SortOrderCarets.js +40 -0
- package/dist/commonjs/features/fluency-teacher/components/table/SortOrderCarets.js.map +1 -0
- package/dist/commonjs/features/fluency-teacher/components/table/TableColumnSortButton.js +30 -40
- package/dist/commonjs/features/fluency-teacher/components/table/TableColumnSortButton.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/TableRow.js +59 -72
- package/dist/commonjs/features/fluency-teacher/components/table/TableRow.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/tableCell.styles.js +45 -0
- package/dist/commonjs/features/fluency-teacher/components/table/tableCell.styles.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 +103 -38
- package/dist/commonjs/features/fluency-teacher/fluencyTeacher.constants.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/fluencyTeacher.helpers.js +52 -10
- package/dist/commonjs/features/fluency-teacher/fluencyTeacher.helpers.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/hooks/useDrawerGrid.js +3 -2
- 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 +2 -1
- package/dist/commonjs/features/fluency-teacher/model/TeacherFluencyFiltersModel.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/model/TeacherFluencyModel.js +9 -0
- 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/EquationContent.js +8 -9
- 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 +1 -3
- 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 +11 -64
- 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 +0 -10
- 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 +2 -0
- package/dist/module/features/fluency/components/fluency-solving/components/FluencySolvingProgress.js.map +1 -1
- package/dist/module/features/fluency/index.js +0 -2
- package/dist/module/features/fluency/index.js.map +1 -1
- package/dist/module/features/fluency-teacher/assets/DivisionIcon.js +26 -0
- package/dist/module/features/fluency-teacher/assets/DivisionIcon.js.map +1 -0
- package/dist/module/features/fluency-teacher/components/FluencyTeacher.js +4 -3
- package/dist/module/features/fluency-teacher/components/FluencyTeacher.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerHeader.js +49 -44
- package/dist/module/features/fluency-teacher/components/drawer/DrawerHeader.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerMatrixes.js +14 -31
- package/dist/module/features/fluency-teacher/components/drawer/DrawerMatrixes.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerOperatorBox.js +28 -45
- package/dist/module/features/fluency-teacher/components/drawer/DrawerOperatorBox.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.js +48 -41
- package/dist/module/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerStats.js +17 -27
- 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 +3 -17
- package/dist/module/features/fluency-teacher/components/matrix/MatrixCell.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/matrix/MatrixLegend.js +77 -0
- package/dist/module/features/fluency-teacher/components/matrix/MatrixLegend.js.map +1 -0
- package/dist/module/features/fluency-teacher/components/matrix/MatrixRow.js +1 -2
- package/dist/module/features/fluency-teacher/components/matrix/MatrixRow.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/AllPupilsTableRow.js +16 -42
- package/dist/module/features/fluency-teacher/components/table/AllPupilsTableRow.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/AverageCell.js +49 -0
- package/dist/module/features/fluency-teacher/components/table/AverageCell.js.map +1 -0
- package/dist/module/features/fluency-teacher/components/table/AverageSortButton.js +7 -63
- package/dist/module/features/fluency-teacher/components/table/AverageSortButton.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.js +44 -42
- package/dist/module/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/OperatorBadge.js +25 -16
- package/dist/module/features/fluency-teacher/components/table/OperatorBadge.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/SortOrderCarets.js +34 -0
- package/dist/module/features/fluency-teacher/components/table/SortOrderCarets.js.map +1 -0
- package/dist/module/features/fluency-teacher/components/table/TableColumnSortButton.js +32 -42
- package/dist/module/features/fluency-teacher/components/table/TableColumnSortButton.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/TableRow.js +62 -75
- package/dist/module/features/fluency-teacher/components/table/TableRow.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/tableCell.styles.js +42 -0
- package/dist/module/features/fluency-teacher/components/table/tableCell.styles.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 +102 -37
- package/dist/module/features/fluency-teacher/fluencyTeacher.constants.js.map +1 -1
- package/dist/module/features/fluency-teacher/fluencyTeacher.helpers.js +43 -8
- package/dist/module/features/fluency-teacher/fluencyTeacher.helpers.js.map +1 -1
- package/dist/module/features/fluency-teacher/hooks/useDrawerGrid.js +3 -2
- 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 +2 -1
- package/dist/module/features/fluency-teacher/model/TeacherFluencyFiltersModel.js.map +1 -1
- package/dist/module/features/fluency-teacher/model/TeacherFluencyModel.js +9 -0
- package/dist/module/features/fluency-teacher/model/TeacherFluencyModel.js.map +1 -1
- 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 +1 -2
- 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 +0 -2
- package/dist/typescript/commonjs/features/fluency/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/assets/DivisionIcon.d.ts +4 -0
- package/dist/typescript/commonjs/features/fluency-teacher/assets/DivisionIcon.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/DrawerMatrixes.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorBox.d.ts +1 -4
- 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 +6 -4
- 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 +3 -2
- 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 +6 -5
- 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 +2 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixHeaderRow.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixLegend.d.ts +10 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixLegend.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixRow.d.ts +5 -3
- 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/AverageCell.d.ts +9 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/AverageCell.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/AverageSortButton.d.ts +2 -1
- 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 +5 -4
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/OperatorBadge.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/SortOrderCarets.d.ts +9 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/SortOrderCarets.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/TableColumnSortButton.d.ts +7 -6
- 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 +4 -3
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/TableRow.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/tableCell.styles.d.ts +35 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/tableCell.styles.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency-teacher/context/TeacherFluencyContext.d.ts +1 -0
- 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 +16 -3
- 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 +11 -4
- 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 +35 -6
- 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 +1 -12
- 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 +1 -0
- 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/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 +1 -2
- 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 +0 -2
- package/dist/typescript/module/features/fluency/index.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/assets/DivisionIcon.d.ts +4 -0
- package/dist/typescript/module/features/fluency-teacher/assets/DivisionIcon.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/DrawerMatrixes.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerOperatorBox.d.ts +1 -4
- 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 +6 -4
- 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 +3 -2
- 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 +6 -5
- 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 +2 -1
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixHeaderRow.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixLegend.d.ts +10 -0
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixLegend.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixRow.d.ts +5 -3
- 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/AverageCell.d.ts +9 -0
- package/dist/typescript/module/features/fluency-teacher/components/table/AverageCell.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency-teacher/components/table/AverageSortButton.d.ts +2 -1
- 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 +5 -4
- package/dist/typescript/module/features/fluency-teacher/components/table/OperatorBadge.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/SortOrderCarets.d.ts +9 -0
- package/dist/typescript/module/features/fluency-teacher/components/table/SortOrderCarets.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency-teacher/components/table/TableColumnSortButton.d.ts +7 -6
- 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 +4 -3
- package/dist/typescript/module/features/fluency-teacher/components/table/TableRow.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/tableCell.styles.d.ts +35 -0
- package/dist/typescript/module/features/fluency-teacher/components/table/tableCell.styles.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency-teacher/context/TeacherFluencyContext.d.ts +1 -0
- 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 +16 -3
- 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 +11 -4
- 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 +35 -6
- 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 +1 -12
- 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 +1 -0
- 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/EquationContent.tsx +8 -12
- package/src/features/fluency/components/fluency-solving/components/FluencyCardDeck.tsx +1 -6
- package/src/features/fluency/components/fluency-solving/components/FluencyEquationCard.tsx +11 -63
- package/src/features/fluency/components/fluency-solving/components/FluencySolvingHeader.tsx +0 -9
- package/src/features/fluency/components/fluency-solving/components/FluencySolvingProgress.tsx +2 -0
- package/src/features/fluency/index.ts +0 -2
- package/src/features/fluency-teacher/assets/DivisionIcon.tsx +20 -0
- package/src/features/fluency-teacher/components/FluencyTeacher.tsx +3 -3
- package/src/features/fluency-teacher/components/drawer/DrawerHeader.tsx +37 -35
- package/src/features/fluency-teacher/components/drawer/DrawerMatrixes.tsx +13 -32
- package/src/features/fluency-teacher/components/drawer/DrawerOperatorBox.tsx +20 -40
- package/src/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.tsx +35 -35
- package/src/features/fluency-teacher/components/drawer/DrawerStats.tsx +16 -28
- package/src/features/fluency-teacher/components/drawer/FluencyTeacherDrawer.tsx +4 -5
- package/src/features/fluency-teacher/components/matrix/DrawerMatrix.tsx +3 -2
- package/src/features/fluency-teacher/components/matrix/MatrixCell.tsx +7 -16
- package/src/features/fluency-teacher/components/matrix/MatrixHeaderRow.tsx +1 -1
- package/src/features/fluency-teacher/components/matrix/MatrixLegend.tsx +81 -0
- package/src/features/fluency-teacher/components/matrix/MatrixRow.tsx +4 -4
- package/src/features/fluency-teacher/components/table/AllPupilsTableRow.tsx +13 -40
- package/src/features/fluency-teacher/components/table/AverageCell.tsx +45 -0
- package/src/features/fluency-teacher/components/table/AverageSortButton.tsx +8 -62
- package/src/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.tsx +49 -35
- package/src/features/fluency-teacher/components/table/OperatorBadge.tsx +18 -11
- package/src/features/fluency-teacher/components/table/SortOrderCarets.tsx +37 -0
- package/src/features/fluency-teacher/components/table/TableColumnSortButton.tsx +28 -49
- package/src/features/fluency-teacher/components/table/TableRow.tsx +65 -64
- package/src/features/fluency-teacher/components/table/tableCell.styles.ts +39 -0
- package/src/features/fluency-teacher/context/TeacherFluencyContext.ts +1 -0
- package/src/features/fluency-teacher/fluencyTeacher.constants.ts +138 -40
- package/src/features/fluency-teacher/fluencyTeacher.helpers.ts +82 -10
- package/src/features/fluency-teacher/fluencyTeacher.types.ts +39 -6
- package/src/features/fluency-teacher/hooks/useDrawerGrid.ts +4 -7
- package/src/features/fluency-teacher/hooks/useDrawerMatrix.ts +4 -3
- package/src/features/fluency-teacher/model/TeacherFluencyFiltersModel.ts +8 -5
- package/src/features/fluency-teacher/model/TeacherFluencyModel.ts +8 -0
- package/dist/commonjs/features/fluency/components/FluencyVisualPlayground.js +0 -386
- package/dist/commonjs/features/fluency/components/FluencyVisualPlayground.js.map +0 -1
- package/dist/commonjs/features/fluency/components/fluency-solving/components/DebugBoxIndicator.js +0 -48
- package/dist/commonjs/features/fluency/components/fluency-solving/components/DebugBoxIndicator.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/adapter.js +0 -36
- package/dist/commonjs/features/fluency/visual-scaffolding/adapter.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.js +0 -232
- package/dist/commonjs/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/components/Dot.js +0 -51
- package/dist/commonjs/features/fluency/visual-scaffolding/components/Dot.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/components/DynamicNumberLine.js +0 -104
- package/dist/commonjs/features/fluency/visual-scaffolding/components/DynamicNumberLine.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/components/FactVisual.js +0 -75
- package/dist/commonjs/features/fluency/visual-scaffolding/components/FactVisual.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/components/QuotativeBars.js +0 -91
- package/dist/commonjs/features/fluency/visual-scaffolding/components/QuotativeBars.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/components/RelationalBlock.js +0 -279
- package/dist/commonjs/features/fluency/visual-scaffolding/components/RelationalBlock.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/components/visualColors.js +0 -44
- package/dist/commonjs/features/fluency/visual-scaffolding/components/visualColors.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/index.js +0 -73
- package/dist/commonjs/features/fluency/visual-scaffolding/index.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/renderFact.js +0 -276
- package/dist/commonjs/features/fluency/visual-scaffolding/renderFact.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/types.js +0 -2
- package/dist/commonjs/features/fluency/visual-scaffolding/types.js.map +0 -1
- package/dist/commonjs/features/fluency-teacher/assets/SortDefaultIcon.js.map +0 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerMasteryLegend.js +0 -80
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerMasteryLegend.js.map +0 -1
- package/dist/commonjs/features/fluency-teacher/components/table/TableRowAverageProgress.js +0 -71
- package/dist/commonjs/features/fluency-teacher/components/table/TableRowAverageProgress.js.map +0 -1
- package/dist/module/features/fluency/components/FluencyVisualPlayground.js +0 -379
- package/dist/module/features/fluency/components/FluencyVisualPlayground.js.map +0 -1
- package/dist/module/features/fluency/components/fluency-solving/components/DebugBoxIndicator.js +0 -43
- package/dist/module/features/fluency/components/fluency-solving/components/DebugBoxIndicator.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/adapter.js +0 -31
- package/dist/module/features/fluency/visual-scaffolding/adapter.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.js +0 -225
- package/dist/module/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/components/Dot.js +0 -45
- package/dist/module/features/fluency/visual-scaffolding/components/Dot.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/components/DynamicNumberLine.js +0 -96
- package/dist/module/features/fluency/visual-scaffolding/components/DynamicNumberLine.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/components/FactVisual.js +0 -69
- package/dist/module/features/fluency/visual-scaffolding/components/FactVisual.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/components/QuotativeBars.js +0 -83
- package/dist/module/features/fluency/visual-scaffolding/components/QuotativeBars.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/components/RelationalBlock.js +0 -272
- package/dist/module/features/fluency/visual-scaffolding/components/RelationalBlock.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/components/visualColors.js +0 -41
- package/dist/module/features/fluency/visual-scaffolding/components/visualColors.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/index.js +0 -8
- package/dist/module/features/fluency/visual-scaffolding/index.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/renderFact.js +0 -269
- package/dist/module/features/fluency/visual-scaffolding/renderFact.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/types.js +0 -2
- package/dist/module/features/fluency/visual-scaffolding/types.js.map +0 -1
- package/dist/module/features/fluency-teacher/assets/SortDefaultIcon.js +0 -23
- package/dist/module/features/fluency-teacher/assets/SortDefaultIcon.js.map +0 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerMasteryLegend.js +0 -74
- package/dist/module/features/fluency-teacher/components/drawer/DrawerMasteryLegend.js.map +0 -1
- package/dist/module/features/fluency-teacher/components/table/TableRowAverageProgress.js +0 -65
- package/dist/module/features/fluency-teacher/components/table/TableRowAverageProgress.js.map +0 -1
- package/dist/typescript/commonjs/features/fluency/components/FluencyVisualPlayground.d.ts +0 -8
- package/dist/typescript/commonjs/features/fluency/components/FluencyVisualPlayground.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/DebugBoxIndicator.d.ts +0 -3
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/DebugBoxIndicator.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/__tests__/renderFact.test.d.ts +0 -2
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/__tests__/renderFact.test.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/adapter.d.ts +0 -4
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/adapter.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.d.ts +0 -10
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/Dot.d.ts +0 -10
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/Dot.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/DynamicNumberLine.d.ts +0 -10
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/DynamicNumberLine.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/FactVisual.d.ts +0 -10
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/FactVisual.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/QuotativeBars.d.ts +0 -10
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/QuotativeBars.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/RelationalBlock.d.ts +0 -10
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/RelationalBlock.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/visualColors.d.ts +0 -16
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/visualColors.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/index.d.ts +0 -6
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/renderFact.d.ts +0 -23
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/renderFact.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/types.d.ts +0 -103
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/types.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency-teacher/assets/SortDefaultIcon.d.ts +0 -4
- package/dist/typescript/commonjs/features/fluency-teacher/assets/SortDefaultIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerMasteryLegend.d.ts +0 -3
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerMasteryLegend.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/TableRowAverageProgress.d.ts +0 -7
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/TableRowAverageProgress.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/components/FluencyVisualPlayground.d.ts +0 -8
- package/dist/typescript/module/features/fluency/components/FluencyVisualPlayground.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/DebugBoxIndicator.d.ts +0 -3
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/DebugBoxIndicator.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/__tests__/renderFact.test.d.ts +0 -2
- package/dist/typescript/module/features/fluency/visual-scaffolding/__tests__/renderFact.test.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/adapter.d.ts +0 -4
- package/dist/typescript/module/features/fluency/visual-scaffolding/adapter.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.d.ts +0 -10
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/Dot.d.ts +0 -10
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/Dot.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/DynamicNumberLine.d.ts +0 -10
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/DynamicNumberLine.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/FactVisual.d.ts +0 -10
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/FactVisual.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/QuotativeBars.d.ts +0 -10
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/QuotativeBars.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/RelationalBlock.d.ts +0 -10
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/RelationalBlock.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/visualColors.d.ts +0 -16
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/visualColors.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/index.d.ts +0 -6
- package/dist/typescript/module/features/fluency/visual-scaffolding/index.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/renderFact.d.ts +0 -23
- package/dist/typescript/module/features/fluency/visual-scaffolding/renderFact.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/types.d.ts +0 -103
- package/dist/typescript/module/features/fluency/visual-scaffolding/types.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency-teacher/assets/SortDefaultIcon.d.ts +0 -4
- package/dist/typescript/module/features/fluency-teacher/assets/SortDefaultIcon.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerMasteryLegend.d.ts +0 -3
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerMasteryLegend.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/TableRowAverageProgress.d.ts +0 -7
- package/dist/typescript/module/features/fluency-teacher/components/table/TableRowAverageProgress.d.ts.map +0 -1
- package/src/features/fluency/components/FluencyVisualPlayground.tsx +0 -272
- package/src/features/fluency/components/fluency-solving/components/DebugBoxIndicator.tsx +0 -40
- package/src/features/fluency/visual-scaffolding/__tests__/__snapshots__/renderFact.test.ts.snap +0 -64
- package/src/features/fluency/visual-scaffolding/__tests__/renderFact.test.ts +0 -192
- package/src/features/fluency/visual-scaffolding/adapter.ts +0 -33
- package/src/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.tsx +0 -222
- package/src/features/fluency/visual-scaffolding/components/Dot.tsx +0 -36
- package/src/features/fluency/visual-scaffolding/components/DynamicNumberLine.tsx +0 -98
- package/src/features/fluency/visual-scaffolding/components/FactVisual.tsx +0 -61
- package/src/features/fluency/visual-scaffolding/components/QuotativeBars.tsx +0 -92
- package/src/features/fluency/visual-scaffolding/components/RelationalBlock.tsx +0 -225
- package/src/features/fluency/visual-scaffolding/components/visualColors.ts +0 -45
- package/src/features/fluency/visual-scaffolding/index.ts +0 -5
- package/src/features/fluency/visual-scaffolding/renderFact.ts +0 -219
- package/src/features/fluency/visual-scaffolding/types.ts +0 -108
- package/src/features/fluency-teacher/assets/SortDefaultIcon.tsx +0 -10
- package/src/features/fluency-teacher/components/drawer/DrawerMasteryLegend.tsx +0 -63
- package/src/features/fluency-teacher/components/table/TableRowAverageProgress.tsx +0 -65
|
@@ -1,379 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { useState } from 'react';
|
|
4
|
-
import { View, Text, Pressable, ScrollView, StyleSheet } from 'react-native';
|
|
5
|
-
import { BORDER_RADIUS, COLORS, FONT_FAMILY, SPACING } from '@magmamath/react-native-ui';
|
|
6
|
-
import { FluencyProvider } from "../context/FluencyContext.js";
|
|
7
|
-
import { FluencyCardDeck } from "./fluency-solving/components/FluencyCardDeck.js";
|
|
8
|
-
import { useFluencyCardDeckAnimation } from "../hooks/useFluencyCardDeckAnimation.js";
|
|
9
|
-
import { useSuccessSound } from "../hooks/useSuccessSound.js";
|
|
10
|
-
import { AttemptStatus, FluencyMode } from "../shared/fluency.constants.js";
|
|
11
|
-
import { levelForBox, renderFact, VISUAL_COLORS } from "../visual-scaffolding/index.js";
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
const OPERATIONS = [{
|
|
14
|
-
value: 'addition',
|
|
15
|
-
mode: FluencyMode.ADDITION,
|
|
16
|
-
symbol: '+',
|
|
17
|
-
label: 'Addition'
|
|
18
|
-
}, {
|
|
19
|
-
value: 'subtraction',
|
|
20
|
-
mode: FluencyMode.SUBTRACTION,
|
|
21
|
-
symbol: '−',
|
|
22
|
-
label: 'Subtraction'
|
|
23
|
-
}, {
|
|
24
|
-
value: 'multiplication',
|
|
25
|
-
mode: FluencyMode.MULTIPLICATION,
|
|
26
|
-
symbol: '×',
|
|
27
|
-
label: 'Multiplication'
|
|
28
|
-
}, {
|
|
29
|
-
value: 'division',
|
|
30
|
-
mode: FluencyMode.DIVISION,
|
|
31
|
-
symbol: '÷',
|
|
32
|
-
label: 'Division'
|
|
33
|
-
}];
|
|
34
|
-
const BOXES = [0, 1, 2, 3, 4];
|
|
35
|
-
|
|
36
|
-
// Defaults per operation that exercise the more interesting layouts (ten-bridging
|
|
37
|
-
// addition, regrouping subtraction, a clean array / grouping).
|
|
38
|
-
const DEFAULT_OPERANDS = {
|
|
39
|
-
addition: [7, 8],
|
|
40
|
-
subtraction: [13, 5],
|
|
41
|
-
multiplication: [3, 4],
|
|
42
|
-
division: [12, 4]
|
|
43
|
-
};
|
|
44
|
-
const OPERAND_MIN = 0;
|
|
45
|
-
const OPERAND_MAX = 20;
|
|
46
|
-
const answerFor = (operation, left, right) => {
|
|
47
|
-
switch (operation) {
|
|
48
|
-
case 'addition':
|
|
49
|
-
return left + right;
|
|
50
|
-
case 'subtraction':
|
|
51
|
-
return left - right;
|
|
52
|
-
case 'multiplication':
|
|
53
|
-
return left * right;
|
|
54
|
-
case 'division':
|
|
55
|
-
return right > 0 ? Math.floor(left / right) : 0;
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
const Chip = ({
|
|
59
|
-
label,
|
|
60
|
-
sublabel,
|
|
61
|
-
isActive,
|
|
62
|
-
activeColor,
|
|
63
|
-
onPress
|
|
64
|
-
}) => /*#__PURE__*/_jsxs(Pressable, {
|
|
65
|
-
onPress: onPress,
|
|
66
|
-
style: [styles.chip, isActive && {
|
|
67
|
-
backgroundColor: activeColor,
|
|
68
|
-
borderColor: activeColor
|
|
69
|
-
}],
|
|
70
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
71
|
-
style: [styles.chipLabel, isActive && styles.chipLabelActive],
|
|
72
|
-
children: label
|
|
73
|
-
}), sublabel && /*#__PURE__*/_jsx(Text, {
|
|
74
|
-
style: [styles.chipSub, isActive && styles.chipLabelActive],
|
|
75
|
-
children: sublabel
|
|
76
|
-
})]
|
|
77
|
-
});
|
|
78
|
-
const Stepper = ({
|
|
79
|
-
label,
|
|
80
|
-
value,
|
|
81
|
-
onChange
|
|
82
|
-
}) => {
|
|
83
|
-
const clamp = n => Math.max(OPERAND_MIN, Math.min(OPERAND_MAX, n));
|
|
84
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
85
|
-
style: styles.stepper,
|
|
86
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
87
|
-
style: styles.stepperLabel,
|
|
88
|
-
children: label
|
|
89
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
90
|
-
style: styles.stepperRow,
|
|
91
|
-
children: [/*#__PURE__*/_jsx(Pressable, {
|
|
92
|
-
style: styles.stepperBtn,
|
|
93
|
-
onPress: () => onChange(clamp(value - 1)),
|
|
94
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
95
|
-
style: styles.stepperBtnText,
|
|
96
|
-
children: "\u2212"
|
|
97
|
-
})
|
|
98
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
99
|
-
style: styles.stepperValue,
|
|
100
|
-
children: value
|
|
101
|
-
}), /*#__PURE__*/_jsx(Pressable, {
|
|
102
|
-
style: styles.stepperBtn,
|
|
103
|
-
onPress: () => onChange(clamp(value + 1)),
|
|
104
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
105
|
-
style: styles.stepperBtnText,
|
|
106
|
-
children: "+"
|
|
107
|
-
})
|
|
108
|
-
})]
|
|
109
|
-
})]
|
|
110
|
-
});
|
|
111
|
-
};
|
|
112
|
-
export const FluencyVisualPlayground = ({
|
|
113
|
-
model
|
|
114
|
-
}) => {
|
|
115
|
-
const [operation, setOperation] = useState('addition');
|
|
116
|
-
const [box, setBox] = useState(0);
|
|
117
|
-
const [left, setLeft] = useState(DEFAULT_OPERANDS.addition[0]);
|
|
118
|
-
const [right, setRight] = useState(DEFAULT_OPERANDS.addition[1]);
|
|
119
|
-
const deck = useFluencyCardDeckAnimation();
|
|
120
|
-
const successSound = useSuccessSound();
|
|
121
|
-
const selectOperation = next => {
|
|
122
|
-
setOperation(next.value);
|
|
123
|
-
const [l, r] = DEFAULT_OPERANDS[next.value];
|
|
124
|
-
setLeft(l);
|
|
125
|
-
setRight(r);
|
|
126
|
-
};
|
|
127
|
-
const mode = OPERATIONS.find(o => o.value === operation)?.mode ?? FluencyMode.ADDITION;
|
|
128
|
-
const fact = {
|
|
129
|
-
id: 'playground',
|
|
130
|
-
mode,
|
|
131
|
-
numbers: [left, right],
|
|
132
|
-
answer: answerFor(operation, left, right),
|
|
133
|
-
difficulty: 0,
|
|
134
|
-
box,
|
|
135
|
-
lastSeenMs: null,
|
|
136
|
-
sessionStartBox: box,
|
|
137
|
-
hasFailedThisSession: false,
|
|
138
|
-
attemptsCount: 0,
|
|
139
|
-
correctCount: 0
|
|
140
|
-
};
|
|
141
|
-
const spec = renderFact({
|
|
142
|
-
operation,
|
|
143
|
-
left,
|
|
144
|
-
right,
|
|
145
|
-
box
|
|
146
|
-
});
|
|
147
|
-
const accent = VISUAL_COLORS[operation].accent;
|
|
148
|
-
const playOutcome = isCorrect => {
|
|
149
|
-
const started = deck.startCardExit({
|
|
150
|
-
// The exiting card shows the filled-in answer + the correct/incorrect label.
|
|
151
|
-
cardContent: {
|
|
152
|
-
fact,
|
|
153
|
-
answer: String(fact.answer)
|
|
154
|
-
},
|
|
155
|
-
direction: isCorrect ? 'right' : 'left',
|
|
156
|
-
status: isCorrect ? AttemptStatus.CORRECT : AttemptStatus.INCORRECT
|
|
157
|
-
});
|
|
158
|
-
if (started && isCorrect) successSound.play();
|
|
159
|
-
};
|
|
160
|
-
return /*#__PURE__*/_jsx(FluencyProvider, {
|
|
161
|
-
value: {
|
|
162
|
-
model
|
|
163
|
-
},
|
|
164
|
-
children: /*#__PURE__*/_jsxs(ScrollView, {
|
|
165
|
-
style: styles.screen,
|
|
166
|
-
contentContainerStyle: styles.content,
|
|
167
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
168
|
-
style: styles.title,
|
|
169
|
-
children: "Fluency Visual Playground"
|
|
170
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
171
|
-
style: styles.caption,
|
|
172
|
-
children: "Real solving deck across operations and boxes 0\u20134 (L1\u2013L5). Dev only."
|
|
173
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
174
|
-
style: styles.sectionLabel,
|
|
175
|
-
children: "Operation"
|
|
176
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
177
|
-
style: styles.row,
|
|
178
|
-
children: OPERATIONS.map(op => /*#__PURE__*/_jsx(Chip, {
|
|
179
|
-
label: `${op.symbol} ${op.label}`,
|
|
180
|
-
isActive: op.value === operation,
|
|
181
|
-
activeColor: VISUAL_COLORS[op.value].accent,
|
|
182
|
-
onPress: () => selectOperation(op)
|
|
183
|
-
}, op.value))
|
|
184
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
185
|
-
style: styles.sectionLabel,
|
|
186
|
-
children: "Box \u2192 Level"
|
|
187
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
188
|
-
style: styles.row,
|
|
189
|
-
children: BOXES.map(b => /*#__PURE__*/_jsx(Chip, {
|
|
190
|
-
label: `Box ${b}`,
|
|
191
|
-
sublabel: levelForBox(b),
|
|
192
|
-
isActive: b === box,
|
|
193
|
-
activeColor: accent,
|
|
194
|
-
onPress: () => setBox(b)
|
|
195
|
-
}, b))
|
|
196
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
197
|
-
style: styles.row,
|
|
198
|
-
children: [/*#__PURE__*/_jsx(Stepper, {
|
|
199
|
-
label: "Left",
|
|
200
|
-
value: left,
|
|
201
|
-
onChange: setLeft
|
|
202
|
-
}), /*#__PURE__*/_jsx(Stepper, {
|
|
203
|
-
label: "Right",
|
|
204
|
-
value: right,
|
|
205
|
-
onChange: setRight
|
|
206
|
-
})]
|
|
207
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
208
|
-
style: styles.deckWrapper,
|
|
209
|
-
children: /*#__PURE__*/_jsx(FluencyCardDeck, {
|
|
210
|
-
currentCardContent: {
|
|
211
|
-
fact,
|
|
212
|
-
answer: ''
|
|
213
|
-
},
|
|
214
|
-
exitingCardContent: deck.exitingCardContent,
|
|
215
|
-
exitingCardStatus: deck.exitingCardStatus,
|
|
216
|
-
snapStyles: deck.snapStyles,
|
|
217
|
-
onAnswerChange: () => undefined
|
|
218
|
-
})
|
|
219
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
220
|
-
style: styles.row,
|
|
221
|
-
children: [/*#__PURE__*/_jsx(Pressable, {
|
|
222
|
-
style: [styles.outcomeBtn, {
|
|
223
|
-
backgroundColor: COLORS.PRIMARY_RED
|
|
224
|
-
}],
|
|
225
|
-
onPress: () => playOutcome(false),
|
|
226
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
227
|
-
style: styles.outcomeText,
|
|
228
|
-
children: "\u25B6 Incorrect"
|
|
229
|
-
})
|
|
230
|
-
}), /*#__PURE__*/_jsx(Pressable, {
|
|
231
|
-
style: [styles.outcomeBtn, {
|
|
232
|
-
backgroundColor: COLORS.PRIMARY_GREEN
|
|
233
|
-
}],
|
|
234
|
-
onPress: () => playOutcome(true),
|
|
235
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
236
|
-
style: styles.outcomeText,
|
|
237
|
-
children: "\u25B6 Correct"
|
|
238
|
-
})
|
|
239
|
-
})]
|
|
240
|
-
}), /*#__PURE__*/_jsxs(Text, {
|
|
241
|
-
style: styles.sectionLabel,
|
|
242
|
-
children: ["Spec (", spec.kind, ")"]
|
|
243
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
244
|
-
style: styles.specBox,
|
|
245
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
246
|
-
style: styles.specText,
|
|
247
|
-
children: JSON.stringify(spec, null, 2)
|
|
248
|
-
})
|
|
249
|
-
})]
|
|
250
|
-
})
|
|
251
|
-
});
|
|
252
|
-
};
|
|
253
|
-
const styles = StyleSheet.create({
|
|
254
|
-
screen: {
|
|
255
|
-
flex: 1,
|
|
256
|
-
backgroundColor: COLORS.NEUTRAL_3
|
|
257
|
-
},
|
|
258
|
-
content: {
|
|
259
|
-
padding: SPACING[400],
|
|
260
|
-
gap: SPACING[300],
|
|
261
|
-
maxWidth: 640,
|
|
262
|
-
alignSelf: 'center',
|
|
263
|
-
width: '100%'
|
|
264
|
-
},
|
|
265
|
-
title: {
|
|
266
|
-
fontSize: 22,
|
|
267
|
-
fontWeight: '700',
|
|
268
|
-
color: COLORS.NEUTRAL_10,
|
|
269
|
-
fontFamily: FONT_FAMILY.buenosAires
|
|
270
|
-
},
|
|
271
|
-
caption: {
|
|
272
|
-
fontSize: 13,
|
|
273
|
-
color: COLORS.NEUTRAL_7,
|
|
274
|
-
fontFamily: FONT_FAMILY.buenosAires
|
|
275
|
-
},
|
|
276
|
-
sectionLabel: {
|
|
277
|
-
fontSize: 12,
|
|
278
|
-
fontWeight: '700',
|
|
279
|
-
color: COLORS.NEUTRAL_7,
|
|
280
|
-
textTransform: 'uppercase',
|
|
281
|
-
marginTop: SPACING[200],
|
|
282
|
-
fontFamily: FONT_FAMILY.buenosAires
|
|
283
|
-
},
|
|
284
|
-
row: {
|
|
285
|
-
flexDirection: 'row',
|
|
286
|
-
flexWrap: 'wrap',
|
|
287
|
-
gap: SPACING[200]
|
|
288
|
-
},
|
|
289
|
-
chip: {
|
|
290
|
-
paddingVertical: SPACING[150],
|
|
291
|
-
paddingHorizontal: SPACING[300],
|
|
292
|
-
borderRadius: BORDER_RADIUS[200],
|
|
293
|
-
borderWidth: 1,
|
|
294
|
-
borderColor: COLORS.NEUTRAL_4,
|
|
295
|
-
backgroundColor: COLORS.NEUTRAL_1,
|
|
296
|
-
alignItems: 'center'
|
|
297
|
-
},
|
|
298
|
-
chipLabel: {
|
|
299
|
-
fontSize: 14,
|
|
300
|
-
fontWeight: '600',
|
|
301
|
-
color: COLORS.NEUTRAL_10,
|
|
302
|
-
fontFamily: FONT_FAMILY.buenosAires
|
|
303
|
-
},
|
|
304
|
-
chipSub: {
|
|
305
|
-
fontSize: 11,
|
|
306
|
-
color: COLORS.NEUTRAL_7,
|
|
307
|
-
fontFamily: FONT_FAMILY.buenosAires
|
|
308
|
-
},
|
|
309
|
-
chipLabelActive: {
|
|
310
|
-
color: COLORS.NEUTRAL_1
|
|
311
|
-
},
|
|
312
|
-
stepper: {
|
|
313
|
-
flex: 1,
|
|
314
|
-
gap: SPACING[100]
|
|
315
|
-
},
|
|
316
|
-
stepperLabel: {
|
|
317
|
-
fontSize: 12,
|
|
318
|
-
fontWeight: '700',
|
|
319
|
-
color: COLORS.NEUTRAL_7,
|
|
320
|
-
fontFamily: FONT_FAMILY.buenosAires
|
|
321
|
-
},
|
|
322
|
-
stepperRow: {
|
|
323
|
-
flexDirection: 'row',
|
|
324
|
-
alignItems: 'center',
|
|
325
|
-
gap: SPACING[200]
|
|
326
|
-
},
|
|
327
|
-
stepperBtn: {
|
|
328
|
-
width: 36,
|
|
329
|
-
height: 36,
|
|
330
|
-
borderRadius: BORDER_RADIUS[200],
|
|
331
|
-
backgroundColor: COLORS.NEUTRAL_1,
|
|
332
|
-
borderWidth: 1,
|
|
333
|
-
borderColor: COLORS.NEUTRAL_4,
|
|
334
|
-
alignItems: 'center',
|
|
335
|
-
justifyContent: 'center'
|
|
336
|
-
},
|
|
337
|
-
stepperBtnText: {
|
|
338
|
-
fontSize: 20,
|
|
339
|
-
fontWeight: '700',
|
|
340
|
-
color: COLORS.NEUTRAL_10
|
|
341
|
-
},
|
|
342
|
-
stepperValue: {
|
|
343
|
-
minWidth: 32,
|
|
344
|
-
textAlign: 'center',
|
|
345
|
-
fontSize: 18,
|
|
346
|
-
fontWeight: '700',
|
|
347
|
-
color: COLORS.NEUTRAL_10,
|
|
348
|
-
fontFamily: FONT_FAMILY.buenosAires
|
|
349
|
-
},
|
|
350
|
-
// FluencyCardDeck positions backing cards with absolute top offsets up to ~36px;
|
|
351
|
-
// the vertical padding gives them room and matches FluencySolvingCard's wrapper.
|
|
352
|
-
deckWrapper: {
|
|
353
|
-
alignItems: 'center',
|
|
354
|
-
paddingVertical: SPACING[400]
|
|
355
|
-
},
|
|
356
|
-
outcomeBtn: {
|
|
357
|
-
flex: 1,
|
|
358
|
-
paddingVertical: SPACING[300],
|
|
359
|
-
borderRadius: BORDER_RADIUS[200],
|
|
360
|
-
alignItems: 'center'
|
|
361
|
-
},
|
|
362
|
-
outcomeText: {
|
|
363
|
-
fontSize: 15,
|
|
364
|
-
fontWeight: '700',
|
|
365
|
-
color: COLORS.NEUTRAL_1,
|
|
366
|
-
fontFamily: FONT_FAMILY.buenosAires
|
|
367
|
-
},
|
|
368
|
-
specBox: {
|
|
369
|
-
backgroundColor: COLORS.NEUTRAL_10,
|
|
370
|
-
borderRadius: BORDER_RADIUS[200],
|
|
371
|
-
padding: SPACING[300]
|
|
372
|
-
},
|
|
373
|
-
specText: {
|
|
374
|
-
fontSize: 12,
|
|
375
|
-
color: COLORS.GREEN_3,
|
|
376
|
-
fontFamily: 'monospace'
|
|
377
|
-
}
|
|
378
|
-
});
|
|
379
|
-
//# sourceMappingURL=FluencyVisualPlayground.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","View","Text","Pressable","ScrollView","StyleSheet","BORDER_RADIUS","COLORS","FONT_FAMILY","SPACING","FluencyProvider","FluencyCardDeck","useFluencyCardDeckAnimation","useSuccessSound","AttemptStatus","FluencyMode","levelForBox","renderFact","VISUAL_COLORS","jsx","_jsx","jsxs","_jsxs","OPERATIONS","value","mode","ADDITION","symbol","label","SUBTRACTION","MULTIPLICATION","DIVISION","BOXES","DEFAULT_OPERANDS","addition","subtraction","multiplication","division","OPERAND_MIN","OPERAND_MAX","answerFor","operation","left","right","Math","floor","Chip","sublabel","isActive","activeColor","onPress","style","styles","chip","backgroundColor","borderColor","children","chipLabel","chipLabelActive","chipSub","Stepper","onChange","clamp","n","max","min","stepper","stepperLabel","stepperRow","stepperBtn","stepperBtnText","stepperValue","FluencyVisualPlayground","model","setOperation","box","setBox","setLeft","setRight","deck","successSound","selectOperation","next","l","r","find","o","fact","id","numbers","answer","difficulty","lastSeenMs","sessionStartBox","hasFailedThisSession","attemptsCount","correctCount","spec","accent","playOutcome","isCorrect","started","startCardExit","cardContent","String","direction","status","CORRECT","INCORRECT","play","screen","contentContainerStyle","content","title","caption","sectionLabel","row","map","op","b","deckWrapper","currentCardContent","exitingCardContent","exitingCardStatus","snapStyles","onAnswerChange","undefined","outcomeBtn","PRIMARY_RED","outcomeText","PRIMARY_GREEN","kind","specBox","specText","JSON","stringify","create","flex","NEUTRAL_3","padding","gap","maxWidth","alignSelf","width","fontSize","fontWeight","color","NEUTRAL_10","fontFamily","buenosAires","NEUTRAL_7","textTransform","marginTop","flexDirection","flexWrap","paddingVertical","paddingHorizontal","borderRadius","borderWidth","NEUTRAL_4","NEUTRAL_1","alignItems","height","justifyContent","minWidth","textAlign","GREEN_3"],"sourceRoot":"../../../../../src","sources":["features/fluency/components/FluencyVisualPlayground.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,IAAI,EAAEC,IAAI,EAAEC,SAAS,EAAEC,UAAU,EAAE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C;IAAEqI,OAAO,EAAElI,OAAO,CAAC,GAAG;EAAE,CAAC;EACxG4H,QAAQ,EAAE;IAAEW,QAAQ,EAAE,EAAE;IAAEE,KAAK,EAAE3I,MAAM,CAAC+J,OAAO;IAAElB,UAAU,EAAE;EAAY;AAC3E,CAAC,CAAC","ignoreList":[]}
|
package/dist/module/features/fluency/components/fluency-solving/components/DebugBoxIndicator.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { View, StyleSheet } from 'react-native';
|
|
5
|
-
import { useUnit } from 'effector-react';
|
|
6
|
-
import { BORDER_RADIUS, COLORS, FONT_FAMILY, SPACING, Typography } from '@magmamath/react-native-ui';
|
|
7
|
-
import { useFluency } from "../../../context/FluencyContext.js";
|
|
8
|
-
import { levelForBox } from "../../../visual-scaffolding/index.js";
|
|
9
|
-
|
|
10
|
-
// Debug-only overlay: shows the current fact's box + derived mastery level in
|
|
11
|
-
// the bottom-right corner, to make the visual-scaffold fade easy to verify.
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
export const DebugBoxIndicator = () => {
|
|
14
|
-
const current = useUnit(useFluency().model.solving.$current);
|
|
15
|
-
if (!current) return null;
|
|
16
|
-
return /*#__PURE__*/_jsx(View, {
|
|
17
|
-
style: styles.badge,
|
|
18
|
-
pointerEvents: "none",
|
|
19
|
-
children: /*#__PURE__*/_jsx(Typography, {
|
|
20
|
-
style: styles.text,
|
|
21
|
-
children: `box ${current.box} · ${levelForBox(current.box)}`
|
|
22
|
-
})
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
const styles = StyleSheet.create({
|
|
26
|
-
badge: {
|
|
27
|
-
position: 'absolute',
|
|
28
|
-
right: SPACING[400],
|
|
29
|
-
bottom: SPACING[400],
|
|
30
|
-
paddingVertical: SPACING[100],
|
|
31
|
-
paddingHorizontal: SPACING[300],
|
|
32
|
-
borderRadius: BORDER_RADIUS[200],
|
|
33
|
-
backgroundColor: COLORS.NEUTRAL_10,
|
|
34
|
-
opacity: 0.7
|
|
35
|
-
},
|
|
36
|
-
text: {
|
|
37
|
-
fontSize: 12,
|
|
38
|
-
fontWeight: '700',
|
|
39
|
-
color: COLORS.NEUTRAL_1,
|
|
40
|
-
fontFamily: FONT_FAMILY.buenosAires
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
//# sourceMappingURL=DebugBoxIndicator.js.map
|
package/dist/module/features/fluency/components/fluency-solving/components/DebugBoxIndicator.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","StyleSheet","useUnit","BORDER_RADIUS","COLORS","FONT_FAMILY","SPACING","Typography","useFluency","levelForBox","jsx","_jsx","DebugBoxIndicator","current","model","solving","$current","style","styles","badge","pointerEvents","children","text","box","create","position","right","bottom","paddingVertical","paddingHorizontal","borderRadius","backgroundColor","NEUTRAL_10","opacity","fontSize","fontWeight","color","NEUTRAL_1","fontFamily","buenosAires"],"sourceRoot":"../../../../../../../src","sources":["features/fluency/components/fluency-solving/components/DebugBoxIndicator.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,aAAa,EAAEC,MAAM,EAAEC,WAAW,EAAEC,OAAO,EAAEC,UAAU,QAAQ,4BAA4B;AAEpG,SAASC,UAAU,QAAQ,oCAAiC;AAC5D,SAASC,WAAW,QAAQ,sCAA6B;;AAEzD;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AACA,OAAO,MAAMC,iBAAiB,GAAGA,CAAA,KAAM;EACrC,MAAMC,OAAO,GAAGX,OAAO,CAACM,UAAU,CAAC,CAAC,CAACM,KAAK,CAACC,OAAO,CAACC,QAAQ,CAAC;EAE5D,IAAI,CAACH,OAAO,EAAE,OAAO,IAAI;EAEzB,oBACEF,IAAA,CAACX,IAAI;IAACiB,KAAK,EAAEC,MAAM,CAACC,KAAM;IAACC,aAAa,EAAC,MAAM;IAAAC,QAAA,eAC7CV,IAAA,CAACJ,UAAU;MAACU,KAAK,EAAEC,MAAM,CAACI,IAAK;MAAAD,QAAA,EAAE,OAAOR,OAAO,CAACU,GAAG,MAAMd,WAAW,CAACI,OAAO,CAACU,GAAG,CAAC;IAAE,CAAa;EAAC,CAC7F,CAAC;AAEX,CAAC;AAED,MAAML,MAAM,GAAGjB,UAAU,CAACuB,MAAM,CAAC;EAC/BL,KAAK,EAAE;IACLM,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAEpB,OAAO,CAAC,GAAG,CAAC;IACnBqB,MAAM,EAAErB,OAAO,CAAC,GAAG,CAAC;IACpBsB,eAAe,EAAEtB,OAAO,CAAC,GAAG,CAAC;IAC7BuB,iBAAiB,EAAEvB,OAAO,CAAC,GAAG,CAAC;IAC/BwB,YAAY,EAAE3B,aAAa,CAAC,GAAG,CAAC;IAChC4B,eAAe,EAAE3B,MAAM,CAAC4B,UAAU;IAClCC,OAAO,EAAE;EACX,CAAC;EACDX,IAAI,EAAE;IACJY,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAEhC,MAAM,CAACiC,SAAS;IACvBC,UAAU,EAAEjC,WAAW,CAACkC;EAC1B;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Adapts the fluency model's `SolvingFact` (the shape held in
|
|
5
|
-
* `FluencyModel.solving.$current`) to the pure `FactPresentation` contract.
|
|
6
|
-
*
|
|
7
|
-
* The picker has already resolved the presented direction, so `numbers` is in
|
|
8
|
-
* prompt order: numbers[0] = left, numbers[1] = right. `mode` is the operation
|
|
9
|
-
* (its enum values match `Operation` exactly), and `box` is the Leitner box.
|
|
10
|
-
*/
|
|
11
|
-
import { FluencyMode } from "../shared/fluency.constants.js";
|
|
12
|
-
const MODE_TO_OPERATION = {
|
|
13
|
-
[FluencyMode.ADDITION]: 'addition',
|
|
14
|
-
[FluencyMode.SUBTRACTION]: 'subtraction',
|
|
15
|
-
[FluencyMode.MULTIPLICATION]: 'multiplication',
|
|
16
|
-
[FluencyMode.DIVISION]: 'division'
|
|
17
|
-
};
|
|
18
|
-
const clampBox = box => {
|
|
19
|
-
const clamped = Math.max(0, Math.min(4, Math.round(box)));
|
|
20
|
-
return clamped;
|
|
21
|
-
};
|
|
22
|
-
export function toFactPresentation(fact) {
|
|
23
|
-
const [left, right] = fact.numbers;
|
|
24
|
-
return {
|
|
25
|
-
operation: MODE_TO_OPERATION[fact.mode],
|
|
26
|
-
left,
|
|
27
|
-
right,
|
|
28
|
-
box: clampBox(fact.box)
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=adapter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["FluencyMode","MODE_TO_OPERATION","ADDITION","SUBTRACTION","MULTIPLICATION","DIVISION","clampBox","box","clamped","Math","max","min","round","toFactPresentation","fact","left","right","numbers","operation","mode"],"sourceRoot":"../../../../../src","sources":["features/fluency/visual-scaffolding/adapter.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,WAAW,QAAQ,gCAA6B;AAIzD,MAAMC,iBAAiD,GAAG;EACxD,CAACD,WAAW,CAACE,QAAQ,GAAG,UAAU;EAClC,CAACF,WAAW,CAACG,WAAW,GAAG,aAAa;EACxC,CAACH,WAAW,CAACI,cAAc,GAAG,gBAAgB;EAC9C,CAACJ,WAAW,CAACK,QAAQ,GAAG;AAC1B,CAAC;AAED,MAAMC,QAAQ,GAAIC,GAAW,IAA8B;EACzD,MAAMC,OAAO,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,GAAG,CAAC,CAAC,EAAEF,IAAI,CAACG,KAAK,CAACL,GAAG,CAAC,CAAC,CAAC;EACzD,OAAOC,OAAO;AAChB,CAAC;AAED,OAAO,SAASK,kBAAkBA,CAACC,IAAiB,EAAoB;EACtE,MAAM,CAACC,IAAI,EAAEC,KAAK,CAAC,GAAGF,IAAI,CAACG,OAAO;EAClC,OAAO;IACLC,SAAS,EAAEjB,iBAAiB,CAACa,IAAI,CAACK,IAAI,CAAC;IACvCJ,IAAI;IACJC,KAAK;IACLT,GAAG,EAAED,QAAQ,CAACQ,IAAI,CAACP,GAAG;EACxB,CAAC;AACH","ignoreList":[]}
|