@pie-element/graphing 10.1.2-next.0 → 10.1.2-next.2
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/author/configure.js +46 -46
- package/dist/author/correct-response.js +86 -87
- package/dist/author/graphing-config.js +60 -60
- package/dist/author/index.js +19 -19
- package/dist/author/utils.js +1 -1
- package/dist/browser/author/index.js +1280 -4426
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/{container-Bg6U_CJ-.js → container-DwOO2mgz.js} +13412 -14269
- package/dist/browser/container-DwOO2mgz.js.map +1 -0
- package/dist/browser/controller/index.js +126 -153
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +26 -26
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/dist-BrN2xZtM.js +547 -0
- package/dist/browser/dist-BrN2xZtM.js.map +1 -0
- package/dist/controller/index.d.ts +1 -1
- package/dist/controller/index.js +56 -58
- package/dist/controller/utils.d.ts +14 -14
- package/dist/controller/utils.js +1 -4
- package/dist/index.iife.js +105 -103
- package/dist/runtime-support.d.ts +12 -0
- package/dist/runtime-support.js +12 -0
- package/package.json +14 -11
- package/dist/browser/container-Bg6U_CJ-.js.map +0 -1
- package/dist/browser/dist-eInAO7us.js +0 -1468
- package/dist/browser/dist-eInAO7us.js.map +0 -1
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +0 -57
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseDifference.js +0 -23
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIntersection.js +0 -29
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +0 -30
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +0 -22
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUniq.js +0 -27
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castArrayLikeObject.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createSet.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +0 -35
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +0 -35
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +0 -32
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +0 -33
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/differenceWith.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/intersection.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/last.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/noop.js +0 -4
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/set.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniq.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniqWith.js +0 -7
package/dist/author/configure.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "./
|
|
3
|
-
import n from "
|
|
4
|
-
import r from "
|
|
5
|
-
import i from "
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import c from "
|
|
1
|
+
import e from "./graphing-config.js";
|
|
2
|
+
import t from "./correct-response.js";
|
|
3
|
+
import n from "react";
|
|
4
|
+
import r from "prop-types";
|
|
5
|
+
import { styled as i } from "@mui/material/styles";
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
+
import s from "debug";
|
|
8
|
+
import { intersection as c } from "@pie-element/shared-lodash";
|
|
9
9
|
import l from "@mui/material/Typography";
|
|
10
10
|
import { InputContainer as u, layout as d, settings as f } from "@pie-lib/config-ui";
|
|
11
11
|
import p from "@pie-lib/editable-html-tip-tap";
|
|
12
12
|
//#region src/author/configure.tsx
|
|
13
|
-
var { Panel: ee, toggle: m, radio: h, checkboxes: te, textField: ne, dropdown: re } = f, ie =
|
|
13
|
+
var { Panel: ee, toggle: m, radio: h, checkboxes: te, textField: ne, dropdown: re } = f, ie = s("@pie-element:graphing:configure"), g = i(u)(({ theme: e }) => ({
|
|
14
14
|
width: "100%",
|
|
15
15
|
paddingTop: e.spacing(2),
|
|
16
16
|
marginBottom: e.spacing(2)
|
|
17
|
-
})), ae =
|
|
17
|
+
})), ae = i(l)(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), _ = i("div")(({ theme: e }) => ({
|
|
18
18
|
fontSize: e.typography.fontSize - 2,
|
|
19
19
|
color: e.palette.error.main,
|
|
20
20
|
paddingTop: e.spacing(1)
|
|
21
|
-
})), v = class extends
|
|
21
|
+
})), v = class extends n.Component {
|
|
22
22
|
static propTypes = {
|
|
23
|
-
onModelChanged:
|
|
24
|
-
onConfigurationChanged:
|
|
25
|
-
imageSupport:
|
|
26
|
-
uploadSoundSupport:
|
|
27
|
-
model:
|
|
28
|
-
configuration:
|
|
23
|
+
onModelChanged: r.func,
|
|
24
|
+
onConfigurationChanged: r.func,
|
|
25
|
+
imageSupport: r.object,
|
|
26
|
+
uploadSoundSupport: r.object,
|
|
27
|
+
model: r.object.isRequired,
|
|
28
|
+
configuration: r.object.isRequired
|
|
29
29
|
};
|
|
30
30
|
componentDidMount() {
|
|
31
|
-
let { configuration:
|
|
32
|
-
typeof
|
|
31
|
+
let { configuration: e, onModelChanged: t, model: n } = this.props, { availableTools: r, title: i, graphDimensions: a } = e || {}, { arrows: o, titleEnabled: s, dimensionsEnabled: l } = n || {};
|
|
32
|
+
typeof o == "boolean" && (o = o ? {
|
|
33
33
|
left: !0,
|
|
34
34
|
right: !0,
|
|
35
35
|
up: !0,
|
|
@@ -40,10 +40,10 @@ var { Panel: ee, toggle: m, radio: h, checkboxes: te, textField: ne, dropdown: r
|
|
|
40
40
|
up: !1,
|
|
41
41
|
down: !1
|
|
42
42
|
});
|
|
43
|
-
let u =
|
|
44
|
-
|
|
45
|
-
...
|
|
46
|
-
arrows:
|
|
43
|
+
let u = c(r || [], n.toolbarTools || []), d = s ?? i.enabled, f = l ?? a.enabled;
|
|
44
|
+
t && t({
|
|
45
|
+
...n,
|
|
46
|
+
arrows: o,
|
|
47
47
|
toolbarTools: u,
|
|
48
48
|
titleEnabled: d,
|
|
49
49
|
dimensionsEnabled: f
|
|
@@ -71,8 +71,8 @@ var { Panel: ee, toggle: m, radio: h, checkboxes: te, textField: ne, dropdown: r
|
|
|
71
71
|
});
|
|
72
72
|
};
|
|
73
73
|
render() {
|
|
74
|
-
let { model:
|
|
75
|
-
ie("[render] model",
|
|
74
|
+
let { model: n, configuration: r, onConfigurationChanged: i, onModelChanged: s, imageSupport: c, uploadSoundSupport: l } = this.props, { arrows: u = {}, authoring: f = {}, availableTools: v = [], baseInputConfiguration: y = {}, coordinatesOnHover: b = {}, contentDimensions: x = {}, gridConfigurations: S = [], graphDimensions: C = {}, instruction: w = {}, labels: T = {}, padding: E = {}, prompt: D = {}, rationale: O = {}, scoringType: k = {}, settingsPanelDisabled: A, spellCheck: j = {}, studentInstructions: M = {}, teacherInstructions: N = {}, title: P = {}, maxImageWidth: F = {}, maxImageHeight: I = {}, withRubric: L = {}, language: R = {}, languageChoices: z = {}, mathMlOptions: B = {}, removeIncompleteTool: V = !1 } = r || {}, { errors: H = {}, extraCSSRules: U, labelsEnabled: W, dimensionsEnabled: G, promptEnabled: K, rationaleEnabled: oe, spellCheckEnabled: q, teacherInstructionsEnabled: se, titleEnabled: ce } = n || {}, { prompt: J, rationale: Y, teacherInstructions: X } = H || {};
|
|
75
|
+
ie("[render] model", n);
|
|
76
76
|
let Z = F && F.prompt, Q = I && I.prompt, le = {
|
|
77
77
|
top: T.top,
|
|
78
78
|
right: T.right,
|
|
@@ -106,14 +106,14 @@ var { Panel: ee, toggle: m, radio: h, checkboxes: te, textField: ne, dropdown: r
|
|
|
106
106
|
...y,
|
|
107
107
|
...e
|
|
108
108
|
});
|
|
109
|
-
return /* @__PURE__ */
|
|
109
|
+
return /* @__PURE__ */ o(d.ConfigLayout, {
|
|
110
110
|
extraCSSRules: U,
|
|
111
111
|
dimensions: x,
|
|
112
112
|
hideSettings: A,
|
|
113
|
-
settings: /* @__PURE__ */
|
|
114
|
-
model:
|
|
113
|
+
settings: /* @__PURE__ */ a(ee, {
|
|
114
|
+
model: n,
|
|
115
115
|
configuration: r,
|
|
116
|
-
onChangeModel:
|
|
116
|
+
onChangeModel: s,
|
|
117
117
|
onChangeConfiguration: i,
|
|
118
118
|
groups: {
|
|
119
119
|
Settings: ue,
|
|
@@ -121,15 +121,15 @@ var { Panel: ee, toggle: m, radio: h, checkboxes: te, textField: ne, dropdown: r
|
|
|
121
121
|
}
|
|
122
122
|
}),
|
|
123
123
|
children: [
|
|
124
|
-
/* @__PURE__ */
|
|
124
|
+
/* @__PURE__ */ a(ae, {
|
|
125
125
|
component: "div",
|
|
126
126
|
variant: "body1",
|
|
127
127
|
children: w?.label || ""
|
|
128
128
|
}),
|
|
129
|
-
se && /* @__PURE__ */
|
|
129
|
+
se && /* @__PURE__ */ o(g, {
|
|
130
130
|
label: N.label,
|
|
131
|
-
children: [/* @__PURE__ */
|
|
132
|
-
markup:
|
|
131
|
+
children: [/* @__PURE__ */ a(p, {
|
|
132
|
+
markup: n.teacherInstructions || "",
|
|
133
133
|
onChange: this.onTeacherInstructionsChange,
|
|
134
134
|
imageSupport: c,
|
|
135
135
|
error: X,
|
|
@@ -141,12 +141,12 @@ var { Panel: ee, toggle: m, radio: h, checkboxes: te, textField: ne, dropdown: r
|
|
|
141
141
|
uploadSoundSupport: l,
|
|
142
142
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
143
143
|
mathMlOptions: B
|
|
144
|
-
}), X && /* @__PURE__ */
|
|
144
|
+
}), X && /* @__PURE__ */ a(_, { children: X })]
|
|
145
145
|
}),
|
|
146
|
-
K && /* @__PURE__ */
|
|
146
|
+
K && /* @__PURE__ */ o(g, {
|
|
147
147
|
label: D.label,
|
|
148
|
-
children: [/* @__PURE__ */
|
|
149
|
-
markup:
|
|
148
|
+
children: [/* @__PURE__ */ a(p, {
|
|
149
|
+
markup: n.prompt,
|
|
150
150
|
onChange: this.onPromptChange,
|
|
151
151
|
imageSupport: c,
|
|
152
152
|
error: J,
|
|
@@ -159,15 +159,15 @@ var { Panel: ee, toggle: m, radio: h, checkboxes: te, textField: ne, dropdown: r
|
|
|
159
159
|
uploadSoundSupport: l,
|
|
160
160
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
161
161
|
mathMlOptions: B
|
|
162
|
-
}), J && /* @__PURE__ */
|
|
162
|
+
}), J && /* @__PURE__ */ a(_, { children: J })]
|
|
163
163
|
}),
|
|
164
|
-
/* @__PURE__ */
|
|
164
|
+
/* @__PURE__ */ a(e, {
|
|
165
165
|
authoring: f,
|
|
166
166
|
availableTools: v,
|
|
167
167
|
gridConfigurations: S,
|
|
168
168
|
graphDimensions: C,
|
|
169
169
|
labelsPlaceholders: le,
|
|
170
|
-
model:
|
|
170
|
+
model: n,
|
|
171
171
|
showLabels: W,
|
|
172
172
|
dimensionsEnabled: G,
|
|
173
173
|
showTitle: ce,
|
|
@@ -176,18 +176,18 @@ var { Panel: ee, toggle: m, radio: h, checkboxes: te, textField: ne, dropdown: r
|
|
|
176
176
|
mathMlOptions: B,
|
|
177
177
|
removeIncompleteTool: V
|
|
178
178
|
}),
|
|
179
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ a(t, {
|
|
180
180
|
availableTools: v,
|
|
181
181
|
errors: H,
|
|
182
|
-
model:
|
|
182
|
+
model: n,
|
|
183
183
|
onChange: this.props.onModelChanged,
|
|
184
184
|
mathMlOptions: B,
|
|
185
185
|
removeIncompleteTool: V
|
|
186
186
|
}),
|
|
187
|
-
oe && /* @__PURE__ */
|
|
187
|
+
oe && /* @__PURE__ */ o(g, {
|
|
188
188
|
label: O.label || "Rationale",
|
|
189
|
-
children: [/* @__PURE__ */
|
|
190
|
-
markup:
|
|
189
|
+
children: [/* @__PURE__ */ a(p, {
|
|
190
|
+
markup: n.rationale || "",
|
|
191
191
|
onChange: this.onRationaleChange,
|
|
192
192
|
imageSupport: c,
|
|
193
193
|
error: Y,
|
|
@@ -198,7 +198,7 @@ var { Panel: ee, toggle: m, radio: h, checkboxes: te, textField: ne, dropdown: r
|
|
|
198
198
|
uploadSoundSupport: l,
|
|
199
199
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
200
200
|
mathMlOptions: B
|
|
201
|
-
}), Y && /* @__PURE__ */
|
|
201
|
+
}), Y && /* @__PURE__ */ a(_, { children: Y })]
|
|
202
202
|
})
|
|
203
203
|
]
|
|
204
204
|
});
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import i from "
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { renderMath as t } from "@pie-element/shared-math-rendering-mathjax";
|
|
3
|
+
import n from "prop-types";
|
|
4
|
+
import { styled as r } from "@mui/material/styles";
|
|
5
|
+
import { GraphContainer as i } from "@pie-lib/graphing";
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
+
import { isEqual as s, set as c } from "@pie-element/shared-lodash";
|
|
9
8
|
import { AlertDialog as l } from "@pie-lib/config-ui";
|
|
10
9
|
import { MenuItem as u, Select as d, Tooltip as f, Typography as p } from "@mui/material";
|
|
11
10
|
import m from "react-dom";
|
|
12
11
|
import h from "@mui/icons-material/Delete";
|
|
13
12
|
import g from "@mui/icons-material/Info";
|
|
14
13
|
//#region src/author/correct-response.tsx
|
|
15
|
-
var _ = "#D5D5D5", v = "#AAAAAA", y =
|
|
14
|
+
var _ = "#D5D5D5", v = "#AAAAAA", y = r("div")({ color: v }), b = r("div")(({ theme: e }) => ({
|
|
16
15
|
margin: `${e.spacing(2.5)} 0`,
|
|
17
16
|
cursor: "pointer",
|
|
18
17
|
background: e.palette.grey[200],
|
|
@@ -20,106 +19,106 @@ var _ = "#D5D5D5", v = "#AAAAAA", y = a("div")({ color: v }), b = a("div")(({ th
|
|
|
20
19
|
width: "fit-content",
|
|
21
20
|
borderRadius: "4px",
|
|
22
21
|
"&:hover": { background: _ }
|
|
23
|
-
})), x =
|
|
22
|
+
})), x = r("div")(({ theme: e }) => ({
|
|
24
23
|
marginTop: e.spacing(1),
|
|
25
24
|
display: "flex",
|
|
26
25
|
flexWrap: "wrap"
|
|
27
|
-
})), S =
|
|
26
|
+
})), S = r("div")(({ theme: e }) => ({
|
|
28
27
|
cursor: "pointer",
|
|
29
28
|
margin: e.spacing(1),
|
|
30
29
|
padding: e.spacing(1),
|
|
31
30
|
border: `2px solid ${e.palette.common.white}`,
|
|
32
31
|
textTransform: "capitalize",
|
|
33
32
|
"&:hover": { color: e.palette.grey[800] }
|
|
34
|
-
})), C =
|
|
33
|
+
})), C = r(S)({
|
|
35
34
|
background: _,
|
|
36
35
|
border: `2px solid ${v}`
|
|
37
|
-
}), w =
|
|
36
|
+
}), w = r("div")(({ theme: e }) => ({
|
|
38
37
|
display: "flex",
|
|
39
38
|
alignItems: "center",
|
|
40
39
|
marginTop: e.spacing(2.5)
|
|
41
|
-
})), T =
|
|
40
|
+
})), T = r("div")(({ theme: e }) => ({
|
|
42
41
|
marginLeft: "6px",
|
|
43
42
|
color: e.palette.grey[600],
|
|
44
43
|
"&:hover": {
|
|
45
44
|
cursor: "pointer",
|
|
46
45
|
color: e.palette.common.black
|
|
47
46
|
}
|
|
48
|
-
})), E =
|
|
47
|
+
})), E = r("div")(({ theme: e }) => ({ marginBottom: e.spacing(.5) })), D = r(({ className: e, ...t }) => /* @__PURE__ */ a(f, {
|
|
49
48
|
...t,
|
|
50
49
|
classes: { tooltip: e }
|
|
51
50
|
}))(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
|
|
52
51
|
fontSize: e.typography.fontSize - 2,
|
|
53
52
|
whiteSpace: "pre",
|
|
54
53
|
maxWidth: "500px"
|
|
55
|
-
} })), O =
|
|
54
|
+
} })), O = r(p)(({ theme: e }) => ({
|
|
56
55
|
marginTop: e.spacing(1.5),
|
|
57
56
|
marginBottom: e.spacing(1)
|
|
58
|
-
})), k =
|
|
57
|
+
})), k = r("div")({
|
|
59
58
|
display: "flex",
|
|
60
59
|
alignItems: "center",
|
|
61
60
|
justifyContent: "space-between"
|
|
62
|
-
}), A =
|
|
61
|
+
}), A = r("div")({
|
|
63
62
|
display: "flex",
|
|
64
63
|
alignItems: "center",
|
|
65
64
|
width: "300px"
|
|
66
|
-
}), j =
|
|
65
|
+
}), j = r(d)(({ theme: e }) => ({
|
|
67
66
|
marginLeft: e.spacing(1),
|
|
68
67
|
textTransform: "uppercase",
|
|
69
68
|
color: e.palette.grey[800]
|
|
70
|
-
})), M =
|
|
69
|
+
})), M = r(u)({ textTransform: "uppercase" }), N = r("div")(({ theme: e }) => ({
|
|
71
70
|
fontSize: e.typography.fontSize - 2,
|
|
72
71
|
color: e.palette.error.main,
|
|
73
72
|
marginTop: e.spacing(1)
|
|
74
|
-
})), P = ({ availableTools: e, defaultTool: t, hasErrors: n, toolbarTools: r, toggleToolBarTool: i, onDefaultToolChange:
|
|
75
|
-
let
|
|
76
|
-
return l && (
|
|
73
|
+
})), P = ({ availableTools: e, defaultTool: t, hasErrors: n, toolbarTools: r, toggleToolBarTool: i, onDefaultToolChange: s }) => {
|
|
74
|
+
let c = e || [], l = c.includes("label"), u = (r || []).filter((e) => e !== "label");
|
|
75
|
+
return l && (c = [...c.filter((e) => e !== "label"), "label"]), /* @__PURE__ */ o(y, { children: [/* @__PURE__ */ o(k, { children: [/* @__PURE__ */ a("span", { children: "GRAPHING TOOLS" }), u.length > 0 && /* @__PURE__ */ o(A, { children: [/* @__PURE__ */ a("span", { children: "Default graphing tool:" }), /* @__PURE__ */ a(j, {
|
|
77
76
|
variant: "standard",
|
|
78
|
-
onChange:
|
|
77
|
+
onChange: s,
|
|
79
78
|
value: t,
|
|
80
79
|
disableUnderline: !0,
|
|
81
80
|
MenuProps: { transitionDuration: {
|
|
82
81
|
enter: 225,
|
|
83
82
|
exit: 195
|
|
84
83
|
} },
|
|
85
|
-
children: u.map((e, t) => /* @__PURE__ */
|
|
84
|
+
children: u.map((e, t) => /* @__PURE__ */ a(M, {
|
|
86
85
|
value: e,
|
|
87
86
|
children: e
|
|
88
87
|
}, t))
|
|
89
|
-
})] })] }), /* @__PURE__ */
|
|
88
|
+
})] })] }), /* @__PURE__ */ a(x, { children: c.map((e) => /* @__PURE__ */ a(r.find((t) => t === e) ? C : S, {
|
|
90
89
|
style: { ...n && e !== "label" && { color: "red" } },
|
|
91
90
|
onClick: () => i(e),
|
|
92
91
|
children: e.toUpperCase()
|
|
93
92
|
}, e)) })] });
|
|
94
93
|
};
|
|
95
94
|
P.propTypes = {
|
|
96
|
-
toolbarTools:
|
|
97
|
-
toggleToolBarTool:
|
|
98
|
-
availableTools:
|
|
99
|
-
defaultTool:
|
|
100
|
-
hasErrors:
|
|
101
|
-
onDefaultToolChange:
|
|
95
|
+
toolbarTools: n.arrayOf(n.string),
|
|
96
|
+
toggleToolBarTool: n.func,
|
|
97
|
+
availableTools: n.array,
|
|
98
|
+
defaultTool: n.string,
|
|
99
|
+
hasErrors: n.number,
|
|
100
|
+
onDefaultToolChange: n.func
|
|
102
101
|
};
|
|
103
|
-
var F = class extends
|
|
102
|
+
var F = class extends e.Component {
|
|
104
103
|
static propTypes = {
|
|
105
|
-
availableTools:
|
|
106
|
-
errors:
|
|
107
|
-
model:
|
|
108
|
-
onChange:
|
|
109
|
-
toolbarTools:
|
|
104
|
+
availableTools: n.array,
|
|
105
|
+
errors: n.object,
|
|
106
|
+
model: n.object.isRequired,
|
|
107
|
+
onChange: n.func.isRequired,
|
|
108
|
+
toolbarTools: n.arrayOf(n.String)
|
|
110
109
|
};
|
|
111
110
|
state = { dialog: { open: !1 } };
|
|
112
111
|
componentDidMount() {
|
|
113
112
|
try {
|
|
114
|
-
|
|
113
|
+
t(m.findDOMNode(this));
|
|
115
114
|
} catch {
|
|
116
115
|
console.error("DOM not mounted");
|
|
117
116
|
}
|
|
118
117
|
}
|
|
119
118
|
handleAlertDialog = (e, t) => this.setState({ dialog: { open: e } }, t);
|
|
120
|
-
changeMarks = (e,
|
|
121
|
-
let { model:
|
|
122
|
-
|
|
119
|
+
changeMarks = (e, t) => {
|
|
120
|
+
let { model: n, onChange: r } = this.props;
|
|
121
|
+
c(n, `answers.${e}.marks`, t), r(n);
|
|
123
122
|
};
|
|
124
123
|
filterMarks = (e) => {
|
|
125
124
|
let { model: { answers: t } } = this.props;
|
|
@@ -139,32 +138,32 @@ var F = class extends n.Component {
|
|
|
139
138
|
...e
|
|
140
139
|
});
|
|
141
140
|
};
|
|
142
|
-
toggleToolBarTool = (
|
|
143
|
-
let { model: { defaultTool:
|
|
144
|
-
if (
|
|
145
|
-
let
|
|
146
|
-
if (
|
|
147
|
-
let e = (
|
|
148
|
-
|
|
141
|
+
toggleToolBarTool = (e) => {
|
|
142
|
+
let { model: { defaultTool: t, toolbarTools: n, answers: r = {} } } = this.props, i = [...n], a = t, o = n.findIndex((t) => e === t);
|
|
143
|
+
if (o >= 0) {
|
|
144
|
+
let n = this.filterMarks(e);
|
|
145
|
+
if (i.splice(o, 1), e === t) {
|
|
146
|
+
let e = (i || []).filter((e) => e !== "label");
|
|
147
|
+
a = e.length && e[0] || "";
|
|
149
148
|
}
|
|
150
|
-
if (!
|
|
149
|
+
if (!s(r, n)) {
|
|
151
150
|
this.setState({ dialog: {
|
|
152
151
|
open: !0,
|
|
153
152
|
title: "Warning",
|
|
154
|
-
text: `Correct answer includes one or more ${
|
|
153
|
+
text: `Correct answer includes one or more ${e} objects and all of them will be deleted.`,
|
|
155
154
|
onConfirm: () => this.handleAlertDialog(!1, this.updateModel({
|
|
156
|
-
toolbarTools:
|
|
157
|
-
answers:
|
|
158
|
-
defaultTool:
|
|
155
|
+
toolbarTools: i,
|
|
156
|
+
answers: n,
|
|
157
|
+
defaultTool: a
|
|
159
158
|
})),
|
|
160
159
|
onClose: () => this.handleAlertDialog(!1)
|
|
161
160
|
} });
|
|
162
161
|
return;
|
|
163
162
|
}
|
|
164
|
-
} else
|
|
163
|
+
} else i.push(e), t === "" && e !== "label" && (a = e);
|
|
165
164
|
this.updateModel({
|
|
166
|
-
toolbarTools:
|
|
167
|
-
defaultTool:
|
|
165
|
+
toolbarTools: i,
|
|
166
|
+
defaultTool: a
|
|
168
167
|
});
|
|
169
168
|
};
|
|
170
169
|
onDefaultToolChange = (e) => {
|
|
@@ -172,11 +171,11 @@ var F = class extends n.Component {
|
|
|
172
171
|
this.updateModel({ defaultTool: t });
|
|
173
172
|
};
|
|
174
173
|
addAlternateResponse = () => {
|
|
175
|
-
let { model: e, onChange:
|
|
176
|
-
|
|
177
|
-
name: `Alternate ${
|
|
174
|
+
let { model: e, onChange: t } = this.props, { answers: n } = e || {}, r = Object.keys(n || {});
|
|
175
|
+
c(e, `answers.${`alternate${r.length}`}`, {
|
|
176
|
+
name: `Alternate ${r.length}`,
|
|
178
177
|
marks: []
|
|
179
|
-
}),
|
|
178
|
+
}), t(e);
|
|
180
179
|
};
|
|
181
180
|
deleteAlternateResponse = (e, t) => {
|
|
182
181
|
let { model: n, onChange: r } = this.props, { answers: i } = n || {}, { marks: a = [], name: o } = t || {}, s = () => {
|
|
@@ -212,38 +211,38 @@ var F = class extends n.Component {
|
|
|
212
211
|
s();
|
|
213
212
|
};
|
|
214
213
|
render() {
|
|
215
|
-
let { availableTools:
|
|
216
|
-
return /* @__PURE__ */
|
|
217
|
-
/* @__PURE__ */
|
|
214
|
+
let { availableTools: t, errors: n, model: r, mathMlOptions: s = {}, removeIncompleteTool: c } = this.props, { dialog: u } = this.state, { answers: d = {}, arrows: f, backgroundMarks: m, coordinatesOnHover: _, defaultTool: v, domain: y, graph: x = {}, labels: S, labelsEnabled: C, range: k, title: A, titleEnabled: j, toolbarTools: M } = r || {}, { correctAnswerErrors: F = {}, toolbarToolsError: I } = n || {};
|
|
215
|
+
return /* @__PURE__ */ o("div", { children: [
|
|
216
|
+
/* @__PURE__ */ a(p, {
|
|
218
217
|
component: "div",
|
|
219
218
|
variant: "h6",
|
|
220
219
|
children: "Define Tool Set and Correct Response"
|
|
221
220
|
}),
|
|
222
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ a(O, {
|
|
223
222
|
component: "div",
|
|
224
223
|
variant: "body1",
|
|
225
224
|
children: "Use this interface to choose which graphing tools students will be able to use, and to define the correct answer"
|
|
226
225
|
}),
|
|
227
|
-
/* @__PURE__ */
|
|
228
|
-
availableTools:
|
|
226
|
+
/* @__PURE__ */ a(P, {
|
|
227
|
+
availableTools: t,
|
|
229
228
|
defaultTool: v,
|
|
230
229
|
hasErrors: !!I,
|
|
231
230
|
onDefaultToolChange: this.onDefaultToolChange,
|
|
232
231
|
toggleToolBarTool: this.toggleToolBarTool,
|
|
233
232
|
toolbarTools: M
|
|
234
233
|
}),
|
|
235
|
-
I && /* @__PURE__ */
|
|
236
|
-
Object.entries(d || {}).map(([
|
|
237
|
-
let { marks: r = [], name: l } =
|
|
238
|
-
return /* @__PURE__ */
|
|
239
|
-
/* @__PURE__ */
|
|
240
|
-
/* @__PURE__ */
|
|
241
|
-
|
|
234
|
+
I && /* @__PURE__ */ a(N, { children: I }),
|
|
235
|
+
Object.entries(d || {}).map(([t, n]) => {
|
|
236
|
+
let { marks: r = [], name: l } = n || {};
|
|
237
|
+
return /* @__PURE__ */ o(e.Fragment, { children: [
|
|
238
|
+
/* @__PURE__ */ o(w, { children: [
|
|
239
|
+
/* @__PURE__ */ a(E, { children: l }),
|
|
240
|
+
t === "correctAnswer" && /* @__PURE__ */ a(D, {
|
|
242
241
|
disableFocusListener: !0,
|
|
243
242
|
disableTouchListener: !0,
|
|
244
243
|
placement: "right",
|
|
245
244
|
title: "At least 1 graph object should be defined.",
|
|
246
|
-
children: /* @__PURE__ */
|
|
245
|
+
children: /* @__PURE__ */ a(g, {
|
|
247
246
|
fontSize: "small",
|
|
248
247
|
color: "primary",
|
|
249
248
|
style: {
|
|
@@ -252,23 +251,23 @@ var F = class extends n.Component {
|
|
|
252
251
|
}
|
|
253
252
|
})
|
|
254
253
|
}),
|
|
255
|
-
|
|
256
|
-
onClick: () => this.deleteAlternateResponse(
|
|
257
|
-
children: /* @__PURE__ */
|
|
254
|
+
t !== "correctAnswer" && /* @__PURE__ */ a(T, {
|
|
255
|
+
onClick: () => this.deleteAlternateResponse(t, n),
|
|
256
|
+
children: /* @__PURE__ */ a(h, {})
|
|
258
257
|
})
|
|
259
258
|
] }),
|
|
260
|
-
/* @__PURE__ */
|
|
261
|
-
style: F[
|
|
259
|
+
/* @__PURE__ */ a(i, {
|
|
260
|
+
style: F[t] && { border: "2px solid red" },
|
|
262
261
|
axesSettings: { includeArrows: f },
|
|
263
262
|
backgroundMarks: m.filter((e) => !e.building),
|
|
264
263
|
coordinatesOnHover: _,
|
|
265
264
|
disabledLabels: !0,
|
|
266
265
|
disabledTitle: !0,
|
|
267
266
|
domain: y,
|
|
268
|
-
draggableTools:
|
|
267
|
+
draggableTools: t === "correctAnswer",
|
|
269
268
|
labels: S,
|
|
270
269
|
marks: r,
|
|
271
|
-
onChangeMarks: (
|
|
270
|
+
onChangeMarks: (e) => this.changeMarks(t, e),
|
|
272
271
|
range: k,
|
|
273
272
|
showLabels: C,
|
|
274
273
|
showTitle: j,
|
|
@@ -279,18 +278,18 @@ var F = class extends n.Component {
|
|
|
279
278
|
title: A,
|
|
280
279
|
toolbarTools: M,
|
|
281
280
|
onChangeTools: (e) => this.updateModel({ toolbarTools: e }),
|
|
282
|
-
mathMlOptions:
|
|
283
|
-
removeIncompleteTool:
|
|
281
|
+
mathMlOptions: s,
|
|
282
|
+
removeIncompleteTool: c,
|
|
284
283
|
limitLabeling: !0
|
|
285
284
|
}),
|
|
286
|
-
F[
|
|
285
|
+
F[t] && /* @__PURE__ */ a(N, { children: F[t] })
|
|
287
286
|
] }, `correct-response-graph-${l}`);
|
|
288
287
|
}),
|
|
289
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ a(b, {
|
|
290
289
|
onClick: this.addAlternateResponse,
|
|
291
290
|
children: "ADD ALTERNATE"
|
|
292
291
|
}),
|
|
293
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ a(l, {
|
|
294
293
|
open: u.open,
|
|
295
294
|
title: u.title,
|
|
296
295
|
text: u.text,
|