@pie-element/charting 12.1.1-next.11 → 12.1.2-next.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/configure.js +2 -0
- package/controller.js +1 -0
- package/dist/author/charting-config.d.ts +30 -0
- package/dist/author/charting-config.js +126 -0
- package/dist/author/configure.d.ts +29 -0
- package/dist/author/configure.js +205 -0
- package/dist/author/correct-response.d.ts +27 -0
- package/dist/author/correct-response.js +116 -0
- package/dist/author/defaults.d.ts +229 -0
- package/dist/author/defaults.js +186 -0
- package/dist/author/index.d.ts +51 -0
- package/dist/author/index.js +74 -0
- package/dist/author/utils.d.ts +42 -0
- package/dist/author/utils.js +244 -0
- package/dist/browser/_baseSet-Cse6EM9A.js +1015 -0
- package/dist/browser/_baseSet-Cse6EM9A.js.map +1 -0
- package/dist/browser/author/index.js +1242 -0
- package/dist/browser/author/index.js.map +1 -0
- package/dist/browser/chart-Dghjf6JQ.js +62980 -0
- package/dist/browser/chart-Dghjf6JQ.js.map +1 -0
- package/dist/browser/charting.css +2 -0
- package/dist/browser/controller/index.js +233 -0
- package/dist/browser/controller/index.js.map +1 -0
- package/dist/browser/delivery/index.js +517 -0
- package/dist/browser/delivery/index.js.map +1 -0
- package/dist/charting.css +2 -0
- package/dist/controller/defaults.d.ts +44 -0
- package/dist/controller/defaults.js +33 -0
- package/dist/controller/index.d.ts +28 -0
- package/dist/controller/index.js +155 -0
- package/dist/delivery/index.d.ts +21 -0
- package/dist/delivery/index.js +46 -0
- package/dist/delivery/main.d.ts +23 -0
- package/dist/delivery/main.js +128 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.iife.d.ts +8 -0
- package/dist/index.iife.js +397 -0
- package/dist/index.js +2 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePick.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +22 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +35 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +35 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +32 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js +18 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/flatten.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/pick.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +7 -0
- package/package.json +81 -20
- package/CHANGELOG.json +0 -487
- package/CHANGELOG.md +0 -1991
- package/LICENSE.md +0 -5
- package/README.md +0 -1
- package/configure/CHANGELOG.json +0 -292
- package/configure/CHANGELOG.md +0 -1758
- package/configure/lib/charting-config.js +0 -192
- package/configure/lib/charting-config.js.map +0 -1
- package/configure/lib/configure.js +0 -312
- package/configure/lib/configure.js.map +0 -1
- package/configure/lib/correct-response.js +0 -244
- package/configure/lib/correct-response.js.map +0 -1
- package/configure/lib/defaults.js +0 -233
- package/configure/lib/defaults.js.map +0 -1
- package/configure/lib/index.js +0 -120
- package/configure/lib/index.js.map +0 -1
- package/configure/lib/utils.js +0 -80
- package/configure/lib/utils.js.map +0 -1
- package/configure/package.json +0 -29
- package/controller/CHANGELOG.json +0 -262
- package/controller/CHANGELOG.md +0 -1208
- package/controller/lib/defaults.js +0 -42
- package/controller/lib/defaults.js.map +0 -1
- package/controller/lib/index.js +0 -434
- package/controller/lib/index.js.map +0 -1
- package/controller/package.json +0 -24
- package/docs/config-schema.json +0 -2440
- package/docs/config-schema.json.md +0 -1802
- package/docs/demo/config.js +0 -8
- package/docs/demo/generate.js +0 -63
- package/docs/demo/index.html +0 -1
- package/docs/demo/session.js +0 -26
- package/docs/pie-schema.json +0 -1731
- package/docs/pie-schema.json.md +0 -945
- package/lib/index.js +0 -78
- package/lib/index.js.map +0 -1
- package/lib/main.js +0 -167
- package/lib/main.js.map +0 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/charting/controller/src/defaults.js
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* NOTE: There's no functionality described for graphTitle,
|
|
11
|
+
* rationale, scoringType, studentInstructions, teacherInstructions
|
|
12
|
+
* so there's no implementation (they are only added in model)
|
|
13
|
+
*/
|
|
14
|
+
declare const _default: {
|
|
15
|
+
addCategoryEnabled: boolean;
|
|
16
|
+
changeAddCategoryEnabled: boolean;
|
|
17
|
+
changeEditableEnabled: boolean;
|
|
18
|
+
changeInteractiveEnabled: boolean;
|
|
19
|
+
chartType: string;
|
|
20
|
+
correctAnswer: {};
|
|
21
|
+
data: never[];
|
|
22
|
+
domain: {};
|
|
23
|
+
graph: {
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
};
|
|
27
|
+
prompt: string;
|
|
28
|
+
promptEnabled: boolean;
|
|
29
|
+
range: {
|
|
30
|
+
label: string;
|
|
31
|
+
max: number;
|
|
32
|
+
min: number;
|
|
33
|
+
labelStep: number;
|
|
34
|
+
};
|
|
35
|
+
rationale: string;
|
|
36
|
+
rationaleEnabled: boolean;
|
|
37
|
+
scoringType: string;
|
|
38
|
+
studentInstructionsEnabled: boolean;
|
|
39
|
+
studentNewCategoryDefaultLabel: string;
|
|
40
|
+
teacherInstructions: string;
|
|
41
|
+
teacherInstructionsEnabled: boolean;
|
|
42
|
+
title: string;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region src/controller/defaults.ts
|
|
2
|
+
var e = {
|
|
3
|
+
addCategoryEnabled: !0,
|
|
4
|
+
changeAddCategoryEnabled: !1,
|
|
5
|
+
changeEditableEnabled: !1,
|
|
6
|
+
changeInteractiveEnabled: !1,
|
|
7
|
+
chartType: "lineCross",
|
|
8
|
+
correctAnswer: {},
|
|
9
|
+
data: [],
|
|
10
|
+
domain: {},
|
|
11
|
+
graph: {
|
|
12
|
+
width: 480,
|
|
13
|
+
height: 480
|
|
14
|
+
},
|
|
15
|
+
prompt: "",
|
|
16
|
+
promptEnabled: !0,
|
|
17
|
+
range: {
|
|
18
|
+
label: "",
|
|
19
|
+
max: 1,
|
|
20
|
+
min: 0,
|
|
21
|
+
labelStep: 1
|
|
22
|
+
},
|
|
23
|
+
rationale: "",
|
|
24
|
+
rationaleEnabled: !0,
|
|
25
|
+
scoringType: "all or nothing",
|
|
26
|
+
studentInstructionsEnabled: !0,
|
|
27
|
+
studentNewCategoryDefaultLabel: "New Category",
|
|
28
|
+
teacherInstructions: "",
|
|
29
|
+
teacherInstructionsEnabled: !0,
|
|
30
|
+
title: ""
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { e as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/charting/controller/src/index.js
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
export declare const checkLabelsEquality: (givenAnswerLabel: any, correctAnswerLabel: any) => boolean;
|
|
10
|
+
export declare const setCorrectness: (answers: any, partialScoring: any) => any;
|
|
11
|
+
export declare const normalize: (question: any) => any;
|
|
12
|
+
export declare const getScore: (question: any, session: any, env?: {}) => {
|
|
13
|
+
score: number;
|
|
14
|
+
answers: any;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Generates detailed trace log for scoring evaluation
|
|
18
|
+
* @param {Object} model - the question model
|
|
19
|
+
* @param {Object} session - the student session
|
|
20
|
+
* @param {Object} env - the environment
|
|
21
|
+
* @returns {Array} traceLog - array of trace messages
|
|
22
|
+
*/
|
|
23
|
+
export declare const getLogTrace: (model: any, session: any, env: any) => string[];
|
|
24
|
+
export declare const filterCategories: (categories: any) => any;
|
|
25
|
+
export declare function model(question: any, session: any, env: any): Promise<unknown>;
|
|
26
|
+
export declare function outcome(model: any, session: any, env: any): Promise<unknown>;
|
|
27
|
+
export declare const createCorrectResponseSession: (question: any, env: any) => Promise<unknown>;
|
|
28
|
+
export declare const validate: (model?: {}, config?: {}) => {};
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js";
|
|
2
|
+
import t from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js";
|
|
3
|
+
import n from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/pick.js";
|
|
4
|
+
import r from "./defaults.js";
|
|
5
|
+
import i from "debug";
|
|
6
|
+
import { partialScoring as a } from "@pie-element/shared-controller-utils";
|
|
7
|
+
//#region src/controller/index.ts
|
|
8
|
+
var o = i("@pie-element:graphing:controller"), s = (e) => (e || "").toLowerCase(), c = (e, t) => s(e) === s(t), l = (e, t) => e ? e.map((e) => ({
|
|
9
|
+
...e,
|
|
10
|
+
correctness: {
|
|
11
|
+
value: t ? "incorrect" : "correct",
|
|
12
|
+
label: t ? "incorrect" : "correct"
|
|
13
|
+
}
|
|
14
|
+
})) : [], u = (e) => ({
|
|
15
|
+
...r,
|
|
16
|
+
...e
|
|
17
|
+
}), d = (e, t, n = {}) => {
|
|
18
|
+
let { correctAnswer: r, data: i = [], scoringType: o } = e, u = [], d = a.enabled({ partialScoring: o === void 0 ? o : o === "partial scoring" }, n), { data: f = [] } = r || {}, m = p(i), h = l(t && t.answer || m, d), g = 0;
|
|
19
|
+
if (d) {
|
|
20
|
+
let e = 0, t = 0, n = (n, r) => {
|
|
21
|
+
let { value: i, label: a, index: o } = n, s = i === r.value, l = c(a, r.label);
|
|
22
|
+
e += 2, s && (t += 1, n.correctness.value = "correct"), l && (t += 1, n.correctness.label = "correct"), s && l && u.push({
|
|
23
|
+
label: a,
|
|
24
|
+
index: o
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
f.forEach((r, i) => {
|
|
28
|
+
let a = m[i], o = h[i];
|
|
29
|
+
o ? a ? !a.editable && o.interactive ? (e += 1, o.value === r.value && (t += 1, o.correctness.value = "correct", u.push({
|
|
30
|
+
label: o.label,
|
|
31
|
+
index: i
|
|
32
|
+
})), o.correctness.label = "correct") : a.editable && o.interactive ? n(o, r) : o.interactive || (o.correctness.value = "correct", o.correctness.label = "correct", u.push({
|
|
33
|
+
label: o.label,
|
|
34
|
+
index: i
|
|
35
|
+
})) : n(o, r) : e += 2;
|
|
36
|
+
}), g = e ? t / e : 0;
|
|
37
|
+
} else g = +(f.length === h.length), h = h.map((e, t) => {
|
|
38
|
+
let n = f[t], r = n ? e.value === n.value : !1, i = n ? s(e.label) === s(n.label) : !1;
|
|
39
|
+
return (!r || !i) && (g = 0), r && i && u.push({
|
|
40
|
+
label: e.label,
|
|
41
|
+
index: t
|
|
42
|
+
}), {
|
|
43
|
+
...e,
|
|
44
|
+
correctness: {
|
|
45
|
+
value: r ? "correct" : "incorrect",
|
|
46
|
+
label: i ? "correct" : "incorrect"
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
let _ = {
|
|
51
|
+
score: parseFloat(g.toFixed(2)),
|
|
52
|
+
answers: h
|
|
53
|
+
};
|
|
54
|
+
return n.extraProps && n.extraProps.correctResponseEnabled && (_.correctResponses = u), _;
|
|
55
|
+
}, f = (e, t, n) => {
|
|
56
|
+
let r = [], { correctAnswer: i, data: o = [], scoringType: s } = e || {}, { data: l = [] } = i || {}, u = t && t.answer || [], f = a.enabled({ partialScoring: s === void 0 ? s : s === "partial scoring" }, n), m = p(o), h = u.length > 0 ? p(u) : m;
|
|
57
|
+
if (u.length || r.push("Student did not modify the chart. Initial chart is scored."), l.forEach((e, t) => {
|
|
58
|
+
let n = m[t], i = h[t];
|
|
59
|
+
if (!i) {
|
|
60
|
+
r.push(`Category ${t + 1}: missing (expected value '${e.value}', label '${e.label}').`);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
let a = i.value === e.value, o = c(i.label, e.label);
|
|
64
|
+
if (!i.interactive) {
|
|
65
|
+
r.push(`Category ${t + 1}: non-interactive category treated as correct.`);
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (u.length > 0) {
|
|
69
|
+
let e = n ? i.value !== n.value : !0, s = n ? !c(i.label, n.label) : !0;
|
|
70
|
+
if (!e && !s) {
|
|
71
|
+
a && o ? r.push(`Category ${t + 1}: unchanged from initial value and correct.`) : r.push(`Category ${t + 1}: unchanged from initial value but incorrect.`);
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
let l = [];
|
|
75
|
+
e && l.push(`value ${a ? "correct" : "incorrect"}`), s && l.push(`label ${o ? "correct" : "incorrect"}`), r.push(`Category ${t + 1}: modified - ${l.join(", ")}.`);
|
|
76
|
+
} else a && o ? r.push(`Category ${t + 1}: initial values are correct.`) : a ? r.push(`Category ${t + 1}: initial value correct, label incorrect.`) : o ? r.push(`Category ${t + 1}: initial value incorrect, label correct.`) : r.push(`Category ${t + 1}: initial value and label incorrect.`);
|
|
77
|
+
}), h.length > l.length) {
|
|
78
|
+
let e = h.length - l.length;
|
|
79
|
+
r.push(`${e} extra category(ies) provided beyond expected number.`);
|
|
80
|
+
}
|
|
81
|
+
f ? (r.push("Score calculated using partial scoring."), r.push("Student receives credit for each correct value and label independently.")) : (r.push("Score calculated using all-or-nothing scoring."), r.push("Student must match all category values and labels exactly for full credit."));
|
|
82
|
+
let g = d(e, t, n);
|
|
83
|
+
return r.push(`Score: ${g.score}.`), r;
|
|
84
|
+
}, p = (e) => e ? e.map(({ deletable: e, ...t }) => t) : [];
|
|
85
|
+
function m(e, t, n) {
|
|
86
|
+
return new Promise((r) => {
|
|
87
|
+
let i = u(e), { addCategoryEnabled: a, chartType: s, data: c, domain: l, graph: f, prompt: m, promptEnabled: h, range: g, rationale: _, title: v, rationaleEnabled: y, teacherInstructions: b, teacherInstructionsEnabled: x, correctAnswer: S, scoringType: C, studentNewCategoryDefaultLabel: w, language: T, extraCSSRules: E } = i, D = {
|
|
88
|
+
addCategoryEnabled: a,
|
|
89
|
+
chartType: s,
|
|
90
|
+
data: p(c),
|
|
91
|
+
domain: l,
|
|
92
|
+
graph: f,
|
|
93
|
+
prompt: h ? m : null,
|
|
94
|
+
range: g,
|
|
95
|
+
rationale: _,
|
|
96
|
+
title: v,
|
|
97
|
+
size: f,
|
|
98
|
+
showToggle: !1,
|
|
99
|
+
correctness: {
|
|
100
|
+
correctness: "incorrect",
|
|
101
|
+
score: "0%"
|
|
102
|
+
},
|
|
103
|
+
disabled: n.mode !== "gather",
|
|
104
|
+
scoringType: C,
|
|
105
|
+
studentNewCategoryDefaultLabel: w,
|
|
106
|
+
language: T,
|
|
107
|
+
env: n,
|
|
108
|
+
extraCSSRules: E
|
|
109
|
+
}, O = d(i, t, n), k = p(O.answers);
|
|
110
|
+
n.mode === "view" && (D.correctedAnswer = k.map(({ correctness: e, ...t }) => ({
|
|
111
|
+
...t,
|
|
112
|
+
interactive: !1
|
|
113
|
+
})), D.addCategoryEnabled = !1), n.mode === "evaluate" && (D.correctedAnswer = k, D.correctAnswer = S, D.showToggle = !!S?.data?.length && O.score !== 1, D.addCategoryEnabled = !1, D.showKeyLegend = !0), n.role === "instructor" && (n.mode === "view" || n.mode === "evaluate") ? (D.rationale = y ? _ : null, D.teacherInstructions = x ? b : null) : (D.rationale = null, D.teacherInstructions = null), o("base: ", D), r(D);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
function h(t, n, r) {
|
|
117
|
+
return new Promise((i) => {
|
|
118
|
+
let a = f(t, n, r), o = d(t, n, r), s = {
|
|
119
|
+
score: o.score,
|
|
120
|
+
empty: !n || e(n),
|
|
121
|
+
traceLog: a
|
|
122
|
+
};
|
|
123
|
+
r.extraProps && r.extraProps.correctResponseEnabled && (s.extraProps = { correctResponse: o.correctResponses }), i(s);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
var g = (e, t) => new Promise((n) => {
|
|
127
|
+
if (t.mode !== "evaluate" && t.role === "instructor") {
|
|
128
|
+
let { correctAnswer: r } = e, i = r && r.data;
|
|
129
|
+
if (t.mode === "gather") {
|
|
130
|
+
let { data: t } = e;
|
|
131
|
+
i = (r && r.data || []).map((e, n) => ({
|
|
132
|
+
...t[n],
|
|
133
|
+
...e
|
|
134
|
+
}));
|
|
135
|
+
}
|
|
136
|
+
n({
|
|
137
|
+
answer: i,
|
|
138
|
+
id: "1"
|
|
139
|
+
});
|
|
140
|
+
} else return n(null);
|
|
141
|
+
}), _ = (e) => (e || "").replaceAll(/<[^>]*>/g, ""), v = (e) => (e || "").replace(/(<(?!img|iframe|source)([^>]+)>)/gi, ""), y = (r = {}, i = {}) => {
|
|
142
|
+
let { correctAnswer: a, data: o } = r || {}, { data: s } = a || {}, c = s || [], l = {}, u = {}, d = {};
|
|
143
|
+
return [
|
|
144
|
+
"teacherInstructions",
|
|
145
|
+
"prompt",
|
|
146
|
+
"rationale"
|
|
147
|
+
].forEach((e) => {
|
|
148
|
+
i[e]?.required && !v(r[e]) && (l[e] = "This field is required.");
|
|
149
|
+
}), c.forEach((e, t) => {
|
|
150
|
+
let { label: n } = e;
|
|
151
|
+
_(n) ? c.some((e, r) => e.label === n && t !== r) && (d[t] = "Category names should be unique. ") : d[t] = "Content should not be empty. ";
|
|
152
|
+
}), c.length < 1 || c.length > 20 ? u.categoriesError = "The correct answer should include between 1 and 20 categories." : t(o.map((e) => n(e, "value", "label")), s.map((e) => n(e, "value", "label"))) && (u.identicalError = "Correct answer should not be identical to the chart’s initial state"), e(d) || (l.categoryErrors = d), e(u) || (l.correctAnswerErrors = u), l;
|
|
153
|
+
};
|
|
154
|
+
//#endregion
|
|
155
|
+
export { c as checkLabelsEquality, g as createCorrectResponseSession, p as filterCategories, f as getLogTrace, d as getScore, m as model, u as normalize, h as outcome, l as setCorrectness, y as validate };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/charting/src/index.js
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
import Main from './main.js';
|
|
10
|
+
export { Main as Component };
|
|
11
|
+
export default class Graphing extends HTMLElement {
|
|
12
|
+
constructor();
|
|
13
|
+
set model(m: any);
|
|
14
|
+
set session(s: any);
|
|
15
|
+
get session(): any;
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
isComplete: (answer: any) => boolean;
|
|
18
|
+
changeAnswers: any;
|
|
19
|
+
_render(): void;
|
|
20
|
+
disconnectedCallback(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import e from "./main.js";
|
|
2
|
+
import t from "react";
|
|
3
|
+
import { createRoot as n } from "react-dom/client";
|
|
4
|
+
import { ModelSetEvent as r, SessionChangedEvent as i } from "@pie-element/shared-player-events";
|
|
5
|
+
import { renderMath as a } from "@pie-element/shared-math-rendering-mathjax";
|
|
6
|
+
//#region src/delivery/index.ts
|
|
7
|
+
var o = class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(), this._root = null;
|
|
10
|
+
}
|
|
11
|
+
set model(e) {
|
|
12
|
+
this._model = e, this._session && this.isComplete(this._session.answer) ? this.dispatchEvent(new r(this.tagName.toLowerCase(), !0, !!this._model)) : this.dispatchEvent(new r(this.tagName.toLowerCase(), !1, !!this._model)), this._render();
|
|
13
|
+
}
|
|
14
|
+
set session(e) {
|
|
15
|
+
this._session = e, this._render();
|
|
16
|
+
}
|
|
17
|
+
get session() {
|
|
18
|
+
return this._session;
|
|
19
|
+
}
|
|
20
|
+
connectedCallback() {
|
|
21
|
+
this._render();
|
|
22
|
+
}
|
|
23
|
+
isComplete = (e) => Array.isArray(e) && e.length > 0;
|
|
24
|
+
changeAnswers = (e) => {
|
|
25
|
+
this._session.answer = e, this.dispatchEvent(new i(this.tagName.toLowerCase(), this.isComplete(this._session.answer))), this._render();
|
|
26
|
+
};
|
|
27
|
+
_render() {
|
|
28
|
+
if (!this._model || !this._session) return;
|
|
29
|
+
let r = {
|
|
30
|
+
...this._model,
|
|
31
|
+
data: this._model.data ? [...this._model.data] : this._model.data
|
|
32
|
+
}, i = t.createElement(e, {
|
|
33
|
+
model: r,
|
|
34
|
+
categories: this._session.answer,
|
|
35
|
+
onAnswersChange: this.changeAnswers
|
|
36
|
+
});
|
|
37
|
+
this._root ||= n(this), this._root.render(i), queueMicrotask(() => {
|
|
38
|
+
a(this);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
disconnectedCallback() {
|
|
42
|
+
this._root && this._root.unmount();
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
//#endregion
|
|
46
|
+
export { e as Component, o as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/charting/src/main.jsx
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import PropTypes from 'prop-types';
|
|
11
|
+
export declare class Main extends React.Component {
|
|
12
|
+
static propTypes: {
|
|
13
|
+
model: PropTypes.Validator<object>;
|
|
14
|
+
onAnswersChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
|
+
categories: PropTypes.Requireable<any[]>;
|
|
16
|
+
};
|
|
17
|
+
constructor(props: any);
|
|
18
|
+
componentDidUpdate(prevProps: any): void;
|
|
19
|
+
changeData: (data: any) => void;
|
|
20
|
+
toggleCorrect: (showingCorrect: any) => void;
|
|
21
|
+
render(): React.JSX.Element;
|
|
22
|
+
}
|
|
23
|
+
export default Main;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js";
|
|
2
|
+
import t from "react";
|
|
3
|
+
import n from "prop-types";
|
|
4
|
+
import { styled as r } from "@mui/material/styles";
|
|
5
|
+
import * as i from "@pie-lib/render-ui";
|
|
6
|
+
import { Collapsible as a, PreviewPrompt as o, UiLayout as s, color as c, hasMedia as l, hasText as u } from "@pie-lib/render-ui";
|
|
7
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
8
|
+
import { Chart as p, KeyLegend as m, chartTypes as h } from "@pie-lib/charting";
|
|
9
|
+
import g from "@pie-lib/correct-answer-toggle";
|
|
10
|
+
//#region src/delivery/main.tsx
|
|
11
|
+
function _(e) {
|
|
12
|
+
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
13
|
+
}
|
|
14
|
+
function v(e, t) {
|
|
15
|
+
return !e || _(e) ? e : _(e.default) ? e.default : t && _(e[t]) ? e[t] : t && _(e[t]?.default) ? e[t].default : e;
|
|
16
|
+
}
|
|
17
|
+
var y = v(s, "UiLayout") || v(w.UiLayout, "UiLayout"), b = v(o, "PreviewPrompt") || v(w.PreviewPrompt, "PreviewPrompt"), x = v(a, "Collapsible") || v(w.Collapsible, "Collapsible"), S = i, C = S.default, w = C && typeof C == "object" ? C : S, T = r(y)({
|
|
18
|
+
color: c.text(),
|
|
19
|
+
backgroundColor: c.background(),
|
|
20
|
+
overflowX: "scroll",
|
|
21
|
+
overflowY: "hidden"
|
|
22
|
+
}), E = r(p)(({ theme: e }) => ({
|
|
23
|
+
marginTop: e.spacing(2),
|
|
24
|
+
marginBottom: e.spacing(2)
|
|
25
|
+
})), D = r(x)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), O = class extends t.Component {
|
|
26
|
+
static propTypes = {
|
|
27
|
+
model: n.object.isRequired,
|
|
28
|
+
onAnswersChange: n.func,
|
|
29
|
+
categories: n.array
|
|
30
|
+
};
|
|
31
|
+
constructor(e) {
|
|
32
|
+
super(e), this.state = {
|
|
33
|
+
categories: e.categories || e.model.data,
|
|
34
|
+
showingCorrect: !1
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
componentDidUpdate(t) {
|
|
38
|
+
e(t.categories, this.props.categories) ? e(t.model.data, this.props.model.data) || this.setState({ categories: this.props.model.data }) : this.setState({ categories: this.props.categories });
|
|
39
|
+
}
|
|
40
|
+
changeData = (e) => this.setState({ categories: e }, () => this.props.onAnswersChange(e));
|
|
41
|
+
toggleCorrect = (e) => this.setState({ showingCorrect: e });
|
|
42
|
+
render() {
|
|
43
|
+
let { categories: e, showingCorrect: t } = this.state, { model: n } = this.props, { teacherInstructions: r, prompt: i, chartType: a, size: o, domain: s, range: c, title: p, addCategoryEnabled: _, studentNewCategoryDefaultLabel: v, showToggle: y, rationale: S, correctAnswer: C, language: w, env: O, showKeyLegend: k } = n, { correctedAnswer: A, extraCSSRules: j } = n, M = (C?.data || []).map((e) => ({
|
|
44
|
+
...e,
|
|
45
|
+
interactive: !1,
|
|
46
|
+
editable: !1
|
|
47
|
+
})), { mode: N } = O || {};
|
|
48
|
+
N === "view" && (A = (A || []).map((e) => ({
|
|
49
|
+
...e,
|
|
50
|
+
editable: !1
|
|
51
|
+
})));
|
|
52
|
+
let P = n.rationale && (u(n.rationale) || l(n.rationale));
|
|
53
|
+
return /* @__PURE__ */ f(T, {
|
|
54
|
+
extraCSSRules: j,
|
|
55
|
+
children: [
|
|
56
|
+
n.teacherInstructions && (u(n.teacherInstructions) || l(n.teacherInstructions)) && /* @__PURE__ */ d(D, {
|
|
57
|
+
labels: {
|
|
58
|
+
hidden: "Show Teacher Instructions",
|
|
59
|
+
visible: "Hide Teacher Instructions"
|
|
60
|
+
},
|
|
61
|
+
children: /* @__PURE__ */ d(b, { prompt: r })
|
|
62
|
+
}),
|
|
63
|
+
i && /* @__PURE__ */ d(b, {
|
|
64
|
+
className: "prompt",
|
|
65
|
+
prompt: i
|
|
66
|
+
}),
|
|
67
|
+
/* @__PURE__ */ d(g, {
|
|
68
|
+
show: y,
|
|
69
|
+
toggled: t,
|
|
70
|
+
onToggle: this.toggleCorrect,
|
|
71
|
+
language: w
|
|
72
|
+
}),
|
|
73
|
+
t && y ? /* @__PURE__ */ d(E, {
|
|
74
|
+
chartType: a,
|
|
75
|
+
size: o,
|
|
76
|
+
domain: s,
|
|
77
|
+
range: c,
|
|
78
|
+
charts: [
|
|
79
|
+
h.Bar(),
|
|
80
|
+
h.Histogram(),
|
|
81
|
+
h.LineDot(),
|
|
82
|
+
h.LineCross(),
|
|
83
|
+
h.DotPlot(),
|
|
84
|
+
h.LinePlot()
|
|
85
|
+
],
|
|
86
|
+
data: M || e,
|
|
87
|
+
title: p,
|
|
88
|
+
onDataChange: this.changeData,
|
|
89
|
+
addCategoryEnabled: !1,
|
|
90
|
+
categoryDefaultLabel: v,
|
|
91
|
+
language: w,
|
|
92
|
+
labelsPlaceholders: {}
|
|
93
|
+
}) : /* @__PURE__ */ d(E, {
|
|
94
|
+
chartType: a,
|
|
95
|
+
size: o,
|
|
96
|
+
domain: s,
|
|
97
|
+
range: c,
|
|
98
|
+
charts: [
|
|
99
|
+
h.Bar(),
|
|
100
|
+
h.Histogram(),
|
|
101
|
+
h.LineDot(),
|
|
102
|
+
h.LineCross(),
|
|
103
|
+
h.DotPlot(),
|
|
104
|
+
h.LinePlot()
|
|
105
|
+
],
|
|
106
|
+
data: A || e,
|
|
107
|
+
title: p,
|
|
108
|
+
onDataChange: this.changeData,
|
|
109
|
+
addCategoryEnabled: _,
|
|
110
|
+
categoryDefaultLabel: v,
|
|
111
|
+
language: w,
|
|
112
|
+
labelsPlaceholders: {},
|
|
113
|
+
correctData: y ? M : void 0
|
|
114
|
+
}),
|
|
115
|
+
!t && k && /* @__PURE__ */ d(m, { language: w }),
|
|
116
|
+
P && /* @__PURE__ */ d(x, {
|
|
117
|
+
labels: {
|
|
118
|
+
hidden: "Show Rationale",
|
|
119
|
+
visible: "Hide Rationale"
|
|
120
|
+
},
|
|
121
|
+
children: /* @__PURE__ */ d(b, { prompt: S })
|
|
122
|
+
})
|
|
123
|
+
]
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
//#endregion
|
|
128
|
+
export { O as default };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './delivery/index.js';
|