@pie-element/graphing 10.1.2-next.0 → 10.1.2-next.10
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 +47 -47
- package/dist/author/correct-response.js +113 -113
- package/dist/author/graphing-config.js +61 -61
- package/dist/author/index.d.ts +1 -0
- package/dist/author/index.js +23 -20
- package/dist/author/utils.js +2 -2
- package/dist/browser/author/index.js +1294 -4437
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/{container-Bg6U_CJ-.js → container-CSKh47VH.js} +31221 -28749
- package/dist/browser/container-CSKh47VH.js.map +1 -0
- package/dist/browser/controller/index.js +127 -154
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +49 -32
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/dist-Bqo4KUUX.js +551 -0
- package/dist/browser/dist-Bqo4KUUX.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 +3 -6
- package/dist/delivery/index.d.ts +3 -0
- package/dist/delivery/index.js +25 -7
- package/dist/delivery/main.js +1 -1
- package/dist/index.iife.js +112 -106
- package/dist/runtime-support.d.ts +12 -0
- package/dist/runtime-support.js +12 -0
- package/package.json +22 -19
- 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 { GraphingConfig as e } from "./graphing-config.js";
|
|
2
|
+
import { CorrectResponse as 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,11 +198,11 @@ 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
|
});
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
207
|
//#endregion
|
|
208
|
-
export { v as default };
|
|
208
|
+
export { v as Configure, v as default };
|
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import i from "
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { AlertDialog as
|
|
10
|
-
import { MenuItem as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
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 { color as a } from "@pie-lib/render-ui";
|
|
7
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
+
import { isEqual as c, set as l } from "@pie-element/shared-lodash";
|
|
9
|
+
import { AlertDialog as u } from "@pie-lib/config-ui";
|
|
10
|
+
import { MenuItem as d, Select as f, Tooltip as p, Typography as m } from "@mui/material";
|
|
11
|
+
import h from "react-dom";
|
|
12
|
+
import g from "@mui/icons-material/Delete";
|
|
13
|
+
import _ from "@mui/icons-material/Info";
|
|
14
14
|
//#region src/author/correct-response.tsx
|
|
15
|
-
var
|
|
15
|
+
var v = r("div")({ color: a.text() }), y = r("div")(({ theme: e }) => ({
|
|
16
16
|
margin: `${e.spacing(2.5)} 0`,
|
|
17
17
|
cursor: "pointer",
|
|
18
|
-
background:
|
|
18
|
+
background: a.backgroundDark(),
|
|
19
19
|
padding: e.spacing(1.5),
|
|
20
20
|
width: "fit-content",
|
|
21
21
|
borderRadius: "4px",
|
|
22
|
-
"&:hover": { background:
|
|
23
|
-
})),
|
|
22
|
+
"&:hover": { background: a.dropdownBackground() }
|
|
23
|
+
})), b = r("div")(({ theme: e }) => ({
|
|
24
24
|
marginTop: e.spacing(1),
|
|
25
25
|
display: "flex",
|
|
26
26
|
flexWrap: "wrap"
|
|
27
|
-
})),
|
|
27
|
+
})), x = r("div")(({ theme: e }) => ({
|
|
28
28
|
cursor: "pointer",
|
|
29
29
|
margin: e.spacing(1),
|
|
30
30
|
padding: e.spacing(1),
|
|
31
|
-
border: `2px solid ${
|
|
31
|
+
border: `2px solid ${a.background()}`,
|
|
32
32
|
textTransform: "capitalize",
|
|
33
|
-
"&:hover": { color:
|
|
34
|
-
})),
|
|
35
|
-
background:
|
|
36
|
-
border: `2px solid ${
|
|
37
|
-
}),
|
|
33
|
+
"&:hover": { color: a.text() }
|
|
34
|
+
})), S = r(x)({
|
|
35
|
+
background: a.dropdownBackground(),
|
|
36
|
+
border: `2px solid ${a.border()}`
|
|
37
|
+
}), C = r("div")(({ theme: e }) => ({
|
|
38
38
|
display: "flex",
|
|
39
39
|
alignItems: "center",
|
|
40
40
|
marginTop: e.spacing(2.5)
|
|
41
|
-
})),
|
|
41
|
+
})), w = r("div")(() => ({
|
|
42
42
|
marginLeft: "6px",
|
|
43
|
-
color:
|
|
43
|
+
color: a.borderGray(),
|
|
44
44
|
"&:hover": {
|
|
45
45
|
cursor: "pointer",
|
|
46
|
-
color:
|
|
46
|
+
color: a.text()
|
|
47
47
|
}
|
|
48
|
-
})),
|
|
48
|
+
})), T = r("div")(({ theme: e }) => ({ marginBottom: e.spacing(.5) })), E = r(({ className: e, ...t }) => /* @__PURE__ */ o(p, {
|
|
49
49
|
...t,
|
|
50
50
|
classes: { tooltip: e }
|
|
51
51
|
}))(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
|
|
52
52
|
fontSize: e.typography.fontSize - 2,
|
|
53
53
|
whiteSpace: "pre",
|
|
54
54
|
maxWidth: "500px"
|
|
55
|
-
} })),
|
|
55
|
+
} })), D = r(m)(({ theme: e }) => ({
|
|
56
56
|
marginTop: e.spacing(1.5),
|
|
57
57
|
marginBottom: e.spacing(1)
|
|
58
|
-
})),
|
|
58
|
+
})), O = r("div")({
|
|
59
59
|
display: "flex",
|
|
60
60
|
alignItems: "center",
|
|
61
61
|
justifyContent: "space-between"
|
|
62
|
-
}),
|
|
62
|
+
}), k = r("div")({
|
|
63
63
|
display: "flex",
|
|
64
64
|
alignItems: "center",
|
|
65
65
|
width: "300px"
|
|
66
|
-
}),
|
|
66
|
+
}), A = r(f)(({ theme: e }) => ({
|
|
67
67
|
marginLeft: e.spacing(1),
|
|
68
68
|
textTransform: "uppercase",
|
|
69
|
-
color:
|
|
70
|
-
})),
|
|
69
|
+
color: a.text()
|
|
70
|
+
})), j = r(d)({ textTransform: "uppercase" }), M = r("div")(({ theme: e }) => ({
|
|
71
71
|
fontSize: e.typography.fontSize - 2,
|
|
72
72
|
color: e.palette.error.main,
|
|
73
73
|
marginTop: e.spacing(1)
|
|
74
|
-
})),
|
|
75
|
-
let
|
|
76
|
-
return l && (
|
|
74
|
+
})), N = ({ availableTools: e, defaultTool: t, hasErrors: n, toolbarTools: r, toggleToolBarTool: i, onDefaultToolChange: a }) => {
|
|
75
|
+
let c = e || [], l = c.includes("label"), u = (r || []).filter((e) => e !== "label");
|
|
76
|
+
return l && (c = [...c.filter((e) => e !== "label"), "label"]), /* @__PURE__ */ s(v, { children: [/* @__PURE__ */ s(O, { children: [/* @__PURE__ */ o("span", { children: "GRAPHING TOOLS" }), u.length > 0 && /* @__PURE__ */ s(k, { children: [/* @__PURE__ */ o("span", { children: "Default graphing tool:" }), /* @__PURE__ */ o(A, {
|
|
77
77
|
variant: "standard",
|
|
78
78
|
onChange: a,
|
|
79
79
|
value: t,
|
|
@@ -82,44 +82,44 @@ var _ = "#D5D5D5", v = "#AAAAAA", y = a("div")({ color: v }), b = a("div")(({ th
|
|
|
82
82
|
enter: 225,
|
|
83
83
|
exit: 195
|
|
84
84
|
} },
|
|
85
|
-
children: u.map((e, t) => /* @__PURE__ */
|
|
85
|
+
children: u.map((e, t) => /* @__PURE__ */ o(j, {
|
|
86
86
|
value: e,
|
|
87
87
|
children: e
|
|
88
88
|
}, t))
|
|
89
|
-
})] })] }), /* @__PURE__ */
|
|
89
|
+
})] })] }), /* @__PURE__ */ o(b, { children: c.map((e) => /* @__PURE__ */ o(r.find((t) => t === e) ? S : x, {
|
|
90
90
|
style: { ...n && e !== "label" && { color: "red" } },
|
|
91
91
|
onClick: () => i(e),
|
|
92
92
|
children: e.toUpperCase()
|
|
93
93
|
}, e)) })] });
|
|
94
94
|
};
|
|
95
|
-
|
|
96
|
-
toolbarTools:
|
|
97
|
-
toggleToolBarTool:
|
|
98
|
-
availableTools:
|
|
99
|
-
defaultTool:
|
|
100
|
-
hasErrors:
|
|
101
|
-
onDefaultToolChange:
|
|
95
|
+
N.propTypes = {
|
|
96
|
+
toolbarTools: n.arrayOf(n.string),
|
|
97
|
+
toggleToolBarTool: n.func,
|
|
98
|
+
availableTools: n.array,
|
|
99
|
+
defaultTool: n.string,
|
|
100
|
+
hasErrors: n.number,
|
|
101
|
+
onDefaultToolChange: n.func
|
|
102
102
|
};
|
|
103
|
-
var
|
|
103
|
+
var P = class extends e.Component {
|
|
104
104
|
static propTypes = {
|
|
105
|
-
availableTools:
|
|
106
|
-
errors:
|
|
107
|
-
model:
|
|
108
|
-
onChange:
|
|
109
|
-
toolbarTools:
|
|
105
|
+
availableTools: n.array,
|
|
106
|
+
errors: n.object,
|
|
107
|
+
model: n.object.isRequired,
|
|
108
|
+
onChange: n.func.isRequired,
|
|
109
|
+
toolbarTools: n.arrayOf(n.String)
|
|
110
110
|
};
|
|
111
111
|
state = { dialog: { open: !1 } };
|
|
112
112
|
componentDidMount() {
|
|
113
113
|
try {
|
|
114
|
-
|
|
114
|
+
t(h.findDOMNode(this));
|
|
115
115
|
} catch {
|
|
116
116
|
console.error("DOM not mounted");
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
handleAlertDialog = (e, t) => this.setState({ dialog: { open: e } }, t);
|
|
120
|
-
changeMarks = (e,
|
|
121
|
-
let { model:
|
|
122
|
-
|
|
120
|
+
changeMarks = (e, t) => {
|
|
121
|
+
let { model: n, onChange: r } = this.props;
|
|
122
|
+
l(n, `answers.${e}.marks`, t), r(n);
|
|
123
123
|
};
|
|
124
124
|
filterMarks = (e) => {
|
|
125
125
|
let { model: { answers: t } } = this.props;
|
|
@@ -139,32 +139,32 @@ var F = class extends n.Component {
|
|
|
139
139
|
...e
|
|
140
140
|
});
|
|
141
141
|
};
|
|
142
|
-
toggleToolBarTool = (
|
|
143
|
-
let { model: { defaultTool:
|
|
144
|
-
if (
|
|
145
|
-
let
|
|
146
|
-
if (
|
|
147
|
-
let e = (
|
|
148
|
-
|
|
142
|
+
toggleToolBarTool = (e) => {
|
|
143
|
+
let { model: { defaultTool: t, toolbarTools: n, answers: r = {} } } = this.props, i = [...n], a = t, o = n.findIndex((t) => e === t);
|
|
144
|
+
if (o >= 0) {
|
|
145
|
+
let n = this.filterMarks(e);
|
|
146
|
+
if (i.splice(o, 1), e === t) {
|
|
147
|
+
let e = (i || []).filter((e) => e !== "label");
|
|
148
|
+
a = e.length && e[0] || "";
|
|
149
149
|
}
|
|
150
|
-
if (!
|
|
150
|
+
if (!c(r, n)) {
|
|
151
151
|
this.setState({ dialog: {
|
|
152
152
|
open: !0,
|
|
153
153
|
title: "Warning",
|
|
154
|
-
text: `Correct answer includes one or more ${
|
|
154
|
+
text: `Correct answer includes one or more ${e} objects and all of them will be deleted.`,
|
|
155
155
|
onConfirm: () => this.handleAlertDialog(!1, this.updateModel({
|
|
156
|
-
toolbarTools:
|
|
157
|
-
answers:
|
|
158
|
-
defaultTool:
|
|
156
|
+
toolbarTools: i,
|
|
157
|
+
answers: n,
|
|
158
|
+
defaultTool: a
|
|
159
159
|
})),
|
|
160
160
|
onClose: () => this.handleAlertDialog(!1)
|
|
161
161
|
} });
|
|
162
162
|
return;
|
|
163
163
|
}
|
|
164
|
-
} else
|
|
164
|
+
} else i.push(e), t === "" && e !== "label" && (a = e);
|
|
165
165
|
this.updateModel({
|
|
166
|
-
toolbarTools:
|
|
167
|
-
defaultTool:
|
|
166
|
+
toolbarTools: i,
|
|
167
|
+
defaultTool: a
|
|
168
168
|
});
|
|
169
169
|
};
|
|
170
170
|
onDefaultToolChange = (e) => {
|
|
@@ -172,11 +172,11 @@ var F = class extends n.Component {
|
|
|
172
172
|
this.updateModel({ defaultTool: t });
|
|
173
173
|
};
|
|
174
174
|
addAlternateResponse = () => {
|
|
175
|
-
let { model: e, onChange:
|
|
176
|
-
|
|
177
|
-
name: `Alternate ${
|
|
175
|
+
let { model: e, onChange: t } = this.props, { answers: n } = e || {}, r = Object.keys(n || {});
|
|
176
|
+
l(e, `answers.${`alternate${r.length}`}`, {
|
|
177
|
+
name: `Alternate ${r.length}`,
|
|
178
178
|
marks: []
|
|
179
|
-
}),
|
|
179
|
+
}), t(e);
|
|
180
180
|
};
|
|
181
181
|
deleteAlternateResponse = (e, t) => {
|
|
182
182
|
let { model: n, onChange: r } = this.props, { answers: i } = n || {}, { marks: a = [], name: o } = t || {}, s = () => {
|
|
@@ -212,38 +212,38 @@ var F = class extends n.Component {
|
|
|
212
212
|
s();
|
|
213
213
|
};
|
|
214
214
|
render() {
|
|
215
|
-
let { availableTools:
|
|
216
|
-
return /* @__PURE__ */
|
|
217
|
-
/* @__PURE__ */
|
|
215
|
+
let { availableTools: t, errors: n, model: r, mathMlOptions: a = {}, removeIncompleteTool: c } = this.props, { dialog: l } = this.state, { answers: d = {}, arrows: f, backgroundMarks: p, coordinatesOnHover: h, defaultTool: v, domain: b, graph: x = {}, labels: S, labelsEnabled: O, range: k, title: A, titleEnabled: j, toolbarTools: P } = r || {}, { correctAnswerErrors: F = {}, toolbarToolsError: I } = n || {};
|
|
216
|
+
return /* @__PURE__ */ s("div", { children: [
|
|
217
|
+
/* @__PURE__ */ o(m, {
|
|
218
218
|
component: "div",
|
|
219
219
|
variant: "h6",
|
|
220
220
|
children: "Define Tool Set and Correct Response"
|
|
221
221
|
}),
|
|
222
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ o(D, {
|
|
223
223
|
component: "div",
|
|
224
224
|
variant: "body1",
|
|
225
225
|
children: "Use this interface to choose which graphing tools students will be able to use, and to define the correct answer"
|
|
226
226
|
}),
|
|
227
|
-
/* @__PURE__ */
|
|
228
|
-
availableTools:
|
|
227
|
+
/* @__PURE__ */ o(N, {
|
|
228
|
+
availableTools: t,
|
|
229
229
|
defaultTool: v,
|
|
230
230
|
hasErrors: !!I,
|
|
231
231
|
onDefaultToolChange: this.onDefaultToolChange,
|
|
232
232
|
toggleToolBarTool: this.toggleToolBarTool,
|
|
233
|
-
toolbarTools:
|
|
233
|
+
toolbarTools: P
|
|
234
234
|
}),
|
|
235
|
-
I && /* @__PURE__ */
|
|
236
|
-
Object.entries(d || {}).map(([
|
|
237
|
-
let { marks: r = [], name: l } =
|
|
238
|
-
return /* @__PURE__ */
|
|
239
|
-
/* @__PURE__ */
|
|
240
|
-
/* @__PURE__ */
|
|
241
|
-
|
|
235
|
+
I && /* @__PURE__ */ o(M, { children: I }),
|
|
236
|
+
Object.entries(d || {}).map(([t, n]) => {
|
|
237
|
+
let { marks: r = [], name: l } = n || {};
|
|
238
|
+
return /* @__PURE__ */ s(e.Fragment, { children: [
|
|
239
|
+
/* @__PURE__ */ s(C, { children: [
|
|
240
|
+
/* @__PURE__ */ o(T, { children: l }),
|
|
241
|
+
t === "correctAnswer" && /* @__PURE__ */ o(E, {
|
|
242
242
|
disableFocusListener: !0,
|
|
243
243
|
disableTouchListener: !0,
|
|
244
244
|
placement: "right",
|
|
245
245
|
title: "At least 1 graph object should be defined.",
|
|
246
|
-
children: /* @__PURE__ */
|
|
246
|
+
children: /* @__PURE__ */ o(_, {
|
|
247
247
|
fontSize: "small",
|
|
248
248
|
color: "primary",
|
|
249
249
|
style: {
|
|
@@ -252,53 +252,53 @@ var F = class extends n.Component {
|
|
|
252
252
|
}
|
|
253
253
|
})
|
|
254
254
|
}),
|
|
255
|
-
|
|
256
|
-
onClick: () => this.deleteAlternateResponse(
|
|
257
|
-
children: /* @__PURE__ */
|
|
255
|
+
t !== "correctAnswer" && /* @__PURE__ */ o(w, {
|
|
256
|
+
onClick: () => this.deleteAlternateResponse(t, n),
|
|
257
|
+
children: /* @__PURE__ */ o(g, {})
|
|
258
258
|
})
|
|
259
259
|
] }),
|
|
260
|
-
/* @__PURE__ */
|
|
261
|
-
style: F[
|
|
260
|
+
/* @__PURE__ */ o(i, {
|
|
261
|
+
style: F[t] && { border: "2px solid red" },
|
|
262
262
|
axesSettings: { includeArrows: f },
|
|
263
|
-
backgroundMarks:
|
|
264
|
-
coordinatesOnHover:
|
|
263
|
+
backgroundMarks: p.filter((e) => !e.building),
|
|
264
|
+
coordinatesOnHover: h,
|
|
265
265
|
disabledLabels: !0,
|
|
266
266
|
disabledTitle: !0,
|
|
267
|
-
domain:
|
|
268
|
-
draggableTools:
|
|
267
|
+
domain: b,
|
|
268
|
+
draggableTools: t === "correctAnswer",
|
|
269
269
|
labels: S,
|
|
270
270
|
marks: r,
|
|
271
|
-
onChangeMarks: (
|
|
271
|
+
onChangeMarks: (e) => this.changeMarks(t, e),
|
|
272
272
|
range: k,
|
|
273
|
-
showLabels:
|
|
273
|
+
showLabels: O,
|
|
274
274
|
showTitle: j,
|
|
275
275
|
size: {
|
|
276
276
|
width: x.width,
|
|
277
277
|
height: x.height
|
|
278
278
|
},
|
|
279
279
|
title: A,
|
|
280
|
-
toolbarTools:
|
|
280
|
+
toolbarTools: P,
|
|
281
281
|
onChangeTools: (e) => this.updateModel({ toolbarTools: e }),
|
|
282
|
-
mathMlOptions:
|
|
283
|
-
removeIncompleteTool:
|
|
282
|
+
mathMlOptions: a,
|
|
283
|
+
removeIncompleteTool: c,
|
|
284
284
|
limitLabeling: !0
|
|
285
285
|
}),
|
|
286
|
-
F[
|
|
286
|
+
F[t] && /* @__PURE__ */ o(M, { children: F[t] })
|
|
287
287
|
] }, `correct-response-graph-${l}`);
|
|
288
288
|
}),
|
|
289
|
-
/* @__PURE__ */
|
|
289
|
+
/* @__PURE__ */ o(y, {
|
|
290
290
|
onClick: this.addAlternateResponse,
|
|
291
291
|
children: "ADD ALTERNATE"
|
|
292
292
|
}),
|
|
293
|
-
/* @__PURE__ */
|
|
294
|
-
open:
|
|
295
|
-
title:
|
|
296
|
-
text:
|
|
297
|
-
onClose:
|
|
298
|
-
onConfirm:
|
|
293
|
+
/* @__PURE__ */ o(u, {
|
|
294
|
+
open: l.open,
|
|
295
|
+
title: l.title,
|
|
296
|
+
text: l.text,
|
|
297
|
+
onClose: l.onClose,
|
|
298
|
+
onConfirm: l.onConfirm
|
|
299
299
|
})
|
|
300
300
|
] });
|
|
301
301
|
}
|
|
302
302
|
};
|
|
303
303
|
//#endregion
|
|
304
|
-
export {
|
|
304
|
+
export { P as CorrectResponse, P as default, N as Tools };
|