@pie-element/ebsr 14.1.0 → 14.1.1-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/defaults.d.ts +67 -0
- package/dist/author/defaults.d.ts.map +1 -0
- package/dist/author/defaults.js +161 -0
- package/dist/author/index.d.ts +35 -0
- package/dist/author/index.d.ts.map +1 -0
- package/dist/author/index.js +78 -0
- package/dist/author/main.d.ts +23 -0
- package/dist/author/main.d.ts.map +1 -0
- package/dist/author/main.js +121 -0
- package/dist/controller/defaults.d.ts +16 -0
- package/dist/controller/defaults.d.ts.map +1 -0
- package/dist/controller/defaults.js +26 -0
- package/dist/controller/index.d.ts +43 -0
- package/dist/controller/index.d.ts.map +1 -0
- package/dist/controller/index.js +186 -0
- package/dist/controller/utils.d.ts +11 -0
- package/dist/controller/utils.d.ts.map +1 -0
- package/dist/controller/utils.js +8 -0
- package/dist/delivery/index.d.ts +27 -0
- package/dist/delivery/index.d.ts.map +1 -0
- package/dist/delivery/index.js +132 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.iife.d.ts +9 -0
- package/dist/index.iife.d.ts.map +1 -0
- package/dist/index.iife.js +165 -0
- package/dist/index.js +2 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Hash.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_ListCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_MapCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_SetCache.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Stack.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_apply.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayPush.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arraySome.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assignValue.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assocIndexOf.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssign.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseClone.js +57 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseCreate.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGet.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqual.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMap.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeys.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseRest.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseSetToString.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseTimes.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseToString.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cacheHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_castPath.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneBuffer.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneDataView.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneRegExp.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneSymbol.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copySymbols.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copySymbolsIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalArrays.js +35 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalByTag.js +35 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalObjects.js +32 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getSymbols.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getSymbolsIn.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getTag.js +23 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashHas.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneByTag.js +33 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isIterateeCall.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isKey.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheDelete.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapToArray.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_memoizeCapped.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_overRest.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_root.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setCacheAdd.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setCacheHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setToArray.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setToString.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_shortOut.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackSet.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stringToPath.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_toKey.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_toSource.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/constant.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/defaults.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/get.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/identity.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isEmpty.js +21 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isEqual.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isFunction.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/memoize.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/toString.js +7 -0
- package/dist/print/index.d.ts +26 -0
- package/dist/print/index.d.ts.map +1 -0
- package/dist/print/index.js +107 -0
- package/package.json +59 -18
- package/{configure/src/defaults.js → src/author/defaults.ts} +10 -0
- package/{configure/src/index.js → src/author/index.ts} +16 -6
- package/{configure/src/main.jsx → src/author/main.tsx} +14 -4
- package/{controller/src/defaults.js → src/controller/defaults.ts} +10 -0
- package/{controller/src/index.js → src/controller/index.ts} +13 -3
- package/{controller/src/utils.js → src/controller/utils.ts} +10 -0
- package/src/{index.js → delivery/index.tsx} +12 -2
- package/src/index.iife.ts +16 -0
- package/src/index.ts +1 -0
- package/src/{print.js → print/index.tsx} +12 -2
- package/CHANGELOG.json +0 -1547
- package/CHANGELOG.md +0 -2265
- package/LICENSE.md +0 -5
- package/README.md +0 -62
- package/configure/CHANGELOG.json +0 -992
- package/configure/CHANGELOG.md +0 -2130
- package/configure/lib/defaults.js +0 -229
- package/configure/lib/defaults.js.map +0 -1
- package/configure/lib/index.js +0 -154
- package/configure/lib/index.js.map +0 -1
- package/configure/lib/main.js +0 -222
- package/configure/lib/main.js.map +0 -1
- package/configure/package.json +0 -23
- package/configure/src/__tests__/index.test.js +0 -492
- package/controller/CHANGELOG.json +0 -552
- package/controller/CHANGELOG.md +0 -1269
- package/controller/lib/defaults.js +0 -31
- package/controller/lib/defaults.js.map +0 -1
- package/controller/lib/index.js +0 -448
- package/controller/lib/index.js.map +0 -1
- package/controller/lib/utils.js +0 -18
- package/controller/lib/utils.js.map +0 -1
- package/controller/package.json +0 -18
- package/controller/src/__tests__/index.test.js +0 -591
- package/controller/src/__tests__/utils.test.js +0 -48
- package/docs/config-schema.json +0 -5787
- package/docs/config-schema.json.md +0 -4278
- package/docs/demo/config.js +0 -8
- package/docs/demo/generate.js +0 -52
- package/docs/demo/index.html +0 -2
- package/docs/demo/session.js +0 -14
- package/docs/pie-schema.json +0 -2911
- package/docs/pie-schema.json.md +0 -2142
- package/ebsr.png +0 -0
- package/lib/index.js +0 -207
- package/lib/index.js.map +0 -1
- package/lib/print.js +0 -186
- package/lib/print.js.map +0 -1
- package/module/configure.js +0 -1
- package/module/controller.js +0 -5664
- package/module/demo.js +0 -77
- package/module/element.js +0 -1
- package/module/index.html +0 -21
- package/module/manifest.json +0 -14
- package/module/print-demo.js +0 -115
- package/module/print.html +0 -18
- package/module/print.js +0 -1
- package/src/__tests__/index.test.js +0 -129
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/ebsr/configure/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
|
+
declare const _default: {
|
|
10
|
+
model: {
|
|
11
|
+
partLabels: boolean;
|
|
12
|
+
partLabelType: string;
|
|
13
|
+
partA: any;
|
|
14
|
+
partB: any;
|
|
15
|
+
};
|
|
16
|
+
configuration: {
|
|
17
|
+
baseInputConfiguration: {
|
|
18
|
+
h3: {
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
};
|
|
21
|
+
audio: {
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
};
|
|
24
|
+
video: {
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
};
|
|
27
|
+
image: {
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
};
|
|
30
|
+
textAlign: {
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
};
|
|
33
|
+
showParagraphs: {
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
};
|
|
36
|
+
separateParagraphs: {
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
partialScoring: {
|
|
41
|
+
label: string;
|
|
42
|
+
settings: boolean;
|
|
43
|
+
};
|
|
44
|
+
scoringType: {
|
|
45
|
+
settings: boolean;
|
|
46
|
+
label: string;
|
|
47
|
+
};
|
|
48
|
+
partA: any;
|
|
49
|
+
partB: any;
|
|
50
|
+
partLabels: {
|
|
51
|
+
settings: boolean;
|
|
52
|
+
label: string;
|
|
53
|
+
};
|
|
54
|
+
settingsPanelDisabled: boolean;
|
|
55
|
+
language: {
|
|
56
|
+
settings: boolean;
|
|
57
|
+
label: string;
|
|
58
|
+
enabled: boolean;
|
|
59
|
+
};
|
|
60
|
+
languageChoices: {
|
|
61
|
+
label: string;
|
|
62
|
+
options: never[];
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export default _default;
|
|
67
|
+
//# sourceMappingURL=defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/author/defaults.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgIH,wBA8CE"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import e from "../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.js";
|
|
2
|
+
//#region src/author/defaults.ts
|
|
3
|
+
var t = {
|
|
4
|
+
addChoiceButton: {
|
|
5
|
+
settings: !0,
|
|
6
|
+
label: "Add a Choice"
|
|
7
|
+
},
|
|
8
|
+
choiceMode: {
|
|
9
|
+
settings: !0,
|
|
10
|
+
label: "Response Type"
|
|
11
|
+
},
|
|
12
|
+
choicePrefix: {
|
|
13
|
+
settings: !0,
|
|
14
|
+
label: "Choice Labels"
|
|
15
|
+
},
|
|
16
|
+
deleteChoice: { settings: !0 },
|
|
17
|
+
feedback: {
|
|
18
|
+
settings: !0,
|
|
19
|
+
label: "Feedback"
|
|
20
|
+
},
|
|
21
|
+
lockChoiceOrder: {
|
|
22
|
+
settings: !0,
|
|
23
|
+
label: "Lock Choice Order"
|
|
24
|
+
},
|
|
25
|
+
prompt: {
|
|
26
|
+
settings: !0,
|
|
27
|
+
label: "Prompt",
|
|
28
|
+
inputConfiguration: {
|
|
29
|
+
audio: { disabled: !1 },
|
|
30
|
+
video: { disabled: !1 },
|
|
31
|
+
image: { disabled: !1 }
|
|
32
|
+
},
|
|
33
|
+
required: !1
|
|
34
|
+
},
|
|
35
|
+
rationale: {
|
|
36
|
+
settings: !0,
|
|
37
|
+
label: "Rationale",
|
|
38
|
+
inputConfiguration: {
|
|
39
|
+
audio: { disabled: !1 },
|
|
40
|
+
video: { disabled: !1 },
|
|
41
|
+
image: { disabled: !1 }
|
|
42
|
+
},
|
|
43
|
+
required: !1
|
|
44
|
+
},
|
|
45
|
+
settingsPanelDisabled: !0,
|
|
46
|
+
studentInstructions: {
|
|
47
|
+
settings: !1,
|
|
48
|
+
label: "Student Instructions"
|
|
49
|
+
},
|
|
50
|
+
teacherInstructions: {
|
|
51
|
+
settings: !0,
|
|
52
|
+
label: "Teacher Instructions",
|
|
53
|
+
inputConfiguration: {
|
|
54
|
+
audio: { disabled: !1 },
|
|
55
|
+
video: { disabled: !1 },
|
|
56
|
+
image: { disabled: !1 }
|
|
57
|
+
},
|
|
58
|
+
required: !1
|
|
59
|
+
},
|
|
60
|
+
choicesLayout: {
|
|
61
|
+
settings: !1,
|
|
62
|
+
label: "Choices Layout"
|
|
63
|
+
},
|
|
64
|
+
gridColumns: { label: "Grid columns" },
|
|
65
|
+
spellCheck: {
|
|
66
|
+
label: "Spellcheck",
|
|
67
|
+
settings: !1,
|
|
68
|
+
enabled: !0
|
|
69
|
+
},
|
|
70
|
+
maxImageWidth: {
|
|
71
|
+
teacherInstructions: 300,
|
|
72
|
+
prompt: 300,
|
|
73
|
+
rationale: 636,
|
|
74
|
+
choices: 636
|
|
75
|
+
},
|
|
76
|
+
maxImageHeight: {
|
|
77
|
+
teacherInstructions: 300,
|
|
78
|
+
prompt: 300,
|
|
79
|
+
rationale: 300,
|
|
80
|
+
choices: 300
|
|
81
|
+
},
|
|
82
|
+
mathMlOptions: {
|
|
83
|
+
mmlOutput: !1,
|
|
84
|
+
mmlEditing: !1
|
|
85
|
+
},
|
|
86
|
+
choices: { inputConfiguration: {
|
|
87
|
+
audio: { disabled: !1 },
|
|
88
|
+
video: { disabled: !1 },
|
|
89
|
+
image: { disabled: !1 }
|
|
90
|
+
} },
|
|
91
|
+
baseInputConfiguration: {
|
|
92
|
+
h3: { disabled: !0 },
|
|
93
|
+
audio: { disabled: !1 },
|
|
94
|
+
video: { disabled: !1 },
|
|
95
|
+
image: { disabled: !1 },
|
|
96
|
+
textAlign: { disabled: !0 },
|
|
97
|
+
showParagraphs: { disabled: !1 },
|
|
98
|
+
separateParagraphs: { disabled: !0 }
|
|
99
|
+
}
|
|
100
|
+
}, n = (e) => ({
|
|
101
|
+
choiceMode: "radio",
|
|
102
|
+
choicePrefix: "letters",
|
|
103
|
+
choices: [],
|
|
104
|
+
choicesLayout: "vertical",
|
|
105
|
+
feedbackEnabled: !1,
|
|
106
|
+
gridColumns: 2,
|
|
107
|
+
prompt: "",
|
|
108
|
+
promptEnabled: !0,
|
|
109
|
+
rationale: "",
|
|
110
|
+
rationaleEnabled: !0,
|
|
111
|
+
spellCheckEnabled: !0,
|
|
112
|
+
studentInstructionsEnabled: !0,
|
|
113
|
+
teacherInstructions: "",
|
|
114
|
+
teacherInstructionsEnabled: !0,
|
|
115
|
+
toolbarEditorPosition: "bottom",
|
|
116
|
+
...e
|
|
117
|
+
}), r = {
|
|
118
|
+
model: {
|
|
119
|
+
partLabels: !0,
|
|
120
|
+
partLabelType: "Letters",
|
|
121
|
+
partA: n(),
|
|
122
|
+
partB: n()
|
|
123
|
+
},
|
|
124
|
+
configuration: {
|
|
125
|
+
baseInputConfiguration: {
|
|
126
|
+
h3: { disabled: !0 },
|
|
127
|
+
audio: { disabled: !1 },
|
|
128
|
+
video: { disabled: !1 },
|
|
129
|
+
image: { disabled: !1 },
|
|
130
|
+
textAlign: { disabled: !0 },
|
|
131
|
+
showParagraphs: { disabled: !1 },
|
|
132
|
+
separateParagraphs: { disabled: !0 }
|
|
133
|
+
},
|
|
134
|
+
partialScoring: {
|
|
135
|
+
label: "Allow Partial Scoring",
|
|
136
|
+
settings: !1
|
|
137
|
+
},
|
|
138
|
+
scoringType: {
|
|
139
|
+
settings: !1,
|
|
140
|
+
label: "Scoring Type"
|
|
141
|
+
},
|
|
142
|
+
partA: e(t),
|
|
143
|
+
partB: e(t),
|
|
144
|
+
partLabels: {
|
|
145
|
+
settings: !0,
|
|
146
|
+
label: "Part Labels"
|
|
147
|
+
},
|
|
148
|
+
settingsPanelDisabled: !1,
|
|
149
|
+
language: {
|
|
150
|
+
settings: !1,
|
|
151
|
+
label: "Specify Language",
|
|
152
|
+
enabled: !1
|
|
153
|
+
},
|
|
154
|
+
languageChoices: {
|
|
155
|
+
label: "Language Choices",
|
|
156
|
+
options: []
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
//#endregion
|
|
161
|
+
export { r as default };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/ebsr/configure/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 default class EbsrConfigure extends HTMLElement {
|
|
10
|
+
static createDefaultModel: ({ partA, partB, ...model }?: {
|
|
11
|
+
partA?: {} | undefined;
|
|
12
|
+
partB?: {} | undefined;
|
|
13
|
+
}, defaults?: {
|
|
14
|
+
partLabels: boolean;
|
|
15
|
+
partLabelType: string;
|
|
16
|
+
partA: any;
|
|
17
|
+
partB: any;
|
|
18
|
+
}) => {
|
|
19
|
+
partA: any;
|
|
20
|
+
partB: any;
|
|
21
|
+
partLabels: boolean;
|
|
22
|
+
partLabelType: string;
|
|
23
|
+
};
|
|
24
|
+
constructor();
|
|
25
|
+
set model(m: any);
|
|
26
|
+
dispatchModelUpdated(reset: any): void;
|
|
27
|
+
onModelChanged: any;
|
|
28
|
+
set configuration(c: any);
|
|
29
|
+
onConfigurationChanged(c: any): void;
|
|
30
|
+
onModelUpdated: any;
|
|
31
|
+
connectedCallback(): void;
|
|
32
|
+
_render(): void;
|
|
33
|
+
disconnectedCallback(): void;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/author/index.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAkCH,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,WAAW;IACpD,MAAM,CAAC,kBAAkB,GAAI;;;KAAyC,EAAE;;;;;KAAuB;;;;;MAe5F;;IAYH,IAAI,KAAK,CAAC,CAAC,KAAA,EAIV;IAED,oBAAoB,CAAC,KAAK,KAAA;IAM1B,cAAc,EAAE,GAAG,CAKjB;IAEF,IAAI,aAAa,CAAC,CAAC,KAAA,EAsClB;IAED,sBAAsB,CAAC,CAAC,KAAA;IAUxB,cAAc,EAAE,GAAG,CAiBjB;IAEF,iBAAiB;IAKjB,OAAO;IAcP,oBAAoB;CAMrB"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import e from "../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/defaults.js";
|
|
2
|
+
import t from "./main.js";
|
|
3
|
+
import n from "./defaults.js";
|
|
4
|
+
import r from "react";
|
|
5
|
+
import { createRoot as i } from "react-dom/client";
|
|
6
|
+
import { ModelUpdatedEvent as a } from "@pie-element/shared-configure-events";
|
|
7
|
+
import o from "@pie-element/multiple-choice/author";
|
|
8
|
+
//#region src/author/index.ts
|
|
9
|
+
var s = a.TYPE, c = "ebsr-multiple-choice-configure", l = class extends o {};
|
|
10
|
+
customElements.get(c) || customElements.define(c, l);
|
|
11
|
+
var u = (t, r) => ({
|
|
12
|
+
configuration: e(t, n.configuration),
|
|
13
|
+
model: r
|
|
14
|
+
}), { model: d } = n || {}, f = class e extends HTMLElement {
|
|
15
|
+
static createDefaultModel = ({ partA: e = {}, partB: t = {}, ...n } = {}, r = d) => ({
|
|
16
|
+
...r,
|
|
17
|
+
...n,
|
|
18
|
+
partA: {
|
|
19
|
+
...r.partA,
|
|
20
|
+
...e,
|
|
21
|
+
choicesLayout: e.choicesLayout || e.verticalMode === !1 && "horizontal" || r.partA.choicesLayout
|
|
22
|
+
},
|
|
23
|
+
partB: {
|
|
24
|
+
...r.partB,
|
|
25
|
+
...t,
|
|
26
|
+
choicesLayout: t.choicesLayout || t.verticalMode === !1 && "horizontal" || r.partB.choicesLayout
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
constructor() {
|
|
30
|
+
super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = n.configuration, this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
|
|
31
|
+
}
|
|
32
|
+
set model(t) {
|
|
33
|
+
this._model = e.createDefaultModel(t, this._model), this._render();
|
|
34
|
+
}
|
|
35
|
+
dispatchModelUpdated(e) {
|
|
36
|
+
let t = !!e;
|
|
37
|
+
this.dispatchEvent(new a(this._model, t));
|
|
38
|
+
}
|
|
39
|
+
onModelChanged = (t, n) => {
|
|
40
|
+
this._model = e.createDefaultModel(t, this._model), this.dispatchModelUpdated(n), this._render();
|
|
41
|
+
};
|
|
42
|
+
set configuration(e) {
|
|
43
|
+
let t = u(e, this._model), r = {
|
|
44
|
+
...n.configuration,
|
|
45
|
+
...t.configuration
|
|
46
|
+
};
|
|
47
|
+
this._configuration = r, r?.language?.enabled ? r?.languageChoices?.options?.length && (this._model.language = r?.languageChoices.options[0].value) : r.language.settings && this._model.language ? (this._configuration.language.enabled = !0, (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) && (this._configuration.languageChoices.options = []), this._configuration.languageChoices.options.find((e) => e.value === this._model.language) || this._configuration.languageChoices.options.push({
|
|
48
|
+
value: this._model.language,
|
|
49
|
+
label: this._model.language
|
|
50
|
+
})) : delete this._model.language, this._render();
|
|
51
|
+
}
|
|
52
|
+
onConfigurationChanged(e) {
|
|
53
|
+
this._configuration = u(e, this._model).configuration, this._model && this.onModelChanged(this._model), this._render();
|
|
54
|
+
}
|
|
55
|
+
onModelUpdated = (e) => {
|
|
56
|
+
if (e.target === this) return;
|
|
57
|
+
e.preventDefault(), e.stopImmediatePropagation();
|
|
58
|
+
let t = e.target && e.target.getAttribute("id");
|
|
59
|
+
t && (e.update && (this._model[`part${t}`] = e.update), this.dispatchEvent(new a(this._model)));
|
|
60
|
+
};
|
|
61
|
+
connectedCallback() {
|
|
62
|
+
this.addEventListener(s, this.onModelUpdated), this._render();
|
|
63
|
+
}
|
|
64
|
+
_render() {
|
|
65
|
+
let e = r.createElement(t, {
|
|
66
|
+
model: this._model,
|
|
67
|
+
configuration: this._configuration,
|
|
68
|
+
onModelChanged: this.onModelChanged,
|
|
69
|
+
onConfigurationChanged: this.onConfigurationChanged
|
|
70
|
+
});
|
|
71
|
+
this._root ||= i(this), this._root.render(e);
|
|
72
|
+
}
|
|
73
|
+
disconnectedCallback() {
|
|
74
|
+
this.removeEventListener(s, this.onModelUpdated), this._root && this._root.unmount();
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
//#endregion
|
|
78
|
+
export { f as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/ebsr/configure/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
|
+
configuration: PropTypes.Requireable<object>;
|
|
14
|
+
model: PropTypes.Requireable<object>;
|
|
15
|
+
onModelChanged: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
|
+
onConfigurationChanged: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
|
+
};
|
|
18
|
+
removeExtraChoices: any;
|
|
19
|
+
onModelChanged: any;
|
|
20
|
+
render(): React.JSX.Element;
|
|
21
|
+
}
|
|
22
|
+
export default Main;
|
|
23
|
+
//# sourceMappingURL=main.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/author/main.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAenC,qBAAa,IAAK,SAAQ,KAAK,CAAC,SAAS;IACvC,MAAM,CAAC,SAAS;;;;;MAKd;IAEF,kBAAkB,EAAE,GAAG,CAgBrB;IAEF,cAAc,EAAE,GAAG,CAgBjB;IAEF,MAAM;CA4KP;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import e from "react";
|
|
2
|
+
import t from "prop-types";
|
|
3
|
+
import { layout as n, settings as r } from "@pie-lib/config-ui";
|
|
4
|
+
import { styled as i } from "@mui/material/styles";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
//#region src/author/main.tsx
|
|
7
|
+
var { Panel: s, toggle: c, radio: l, dropdown: u } = r, d = i("div")(({ theme: e }) => ({ paddingBottom: e.spacing(2) })), f = i("div")(({ theme: e }) => ({
|
|
8
|
+
flex: 1,
|
|
9
|
+
height: e.spacing(2.5)
|
|
10
|
+
})), p = class extends e.Component {
|
|
11
|
+
static propTypes = {
|
|
12
|
+
configuration: t.object,
|
|
13
|
+
model: t.object,
|
|
14
|
+
onModelChanged: t.func,
|
|
15
|
+
onConfigurationChanged: t.func
|
|
16
|
+
};
|
|
17
|
+
removeExtraChoices = (e) => {
|
|
18
|
+
let t = !1;
|
|
19
|
+
return (e || []).map((e) => t ? (e.correct = !1, e) : (e.correct && (t = !0), e));
|
|
20
|
+
};
|
|
21
|
+
onModelChanged = (e, t) => {
|
|
22
|
+
let { onModelChanged: n } = this.props;
|
|
23
|
+
return t === "partA.choiceMode" && e.partA.choiceMode === "radio" ? (e.partA.choices = this.removeExtraChoices(e.partA.choices), n(e, !0)) : t === "partB.choiceMode" && e.partB.choiceMode === "radio" ? (e.partB.choices = this.removeExtraChoices(e.partB.choices), n(e, !0)) : n(e);
|
|
24
|
+
};
|
|
25
|
+
render() {
|
|
26
|
+
let { model: e, configuration: t, onConfigurationChanged: r } = this.props, { partLabelType: i, partA: p, partB: m, extraCSSRules: h } = e, { contentDimensions: g = {}, partA: _ = {}, partB: v = {}, partialScoring: y = {}, settingsPanelDisabled: b, scoringType: x = {}, language: S = {}, languageChoices: C = {}, ...w } = t, { feedback: T = {}, choiceMode: E = {}, choicePrefix: D = {}, lockChoiceOrder: O = {}, prompt: k = {}, teacherInstructions: A = {}, studentInstructions: j = {}, choicesLayout: M = {}, gridColumns: N = {}, rationale: P = {}, spellCheck: F = {} } = _ || {}, { feedback: I = {}, choiceMode: L = {}, choicePrefix: R = {}, lockChoiceOrder: z = {}, prompt: B = {}, teacherInstructions: V = {}, studentInstructions: H = {}, choicesLayout: U = {}, gridColumns: W = {}, rationale: G = {}, spellCheck: K = {} } = v || {}, q = (i || "Numbers") === "Numbers", J = `Part ${q ? "1" : "A"}`, Y = `Part ${q ? "2" : "B"}`, X = {
|
|
27
|
+
partA: p.choices && p.choices.length ? Array.from({ length: p.choices.length }, (e, t) => `${t + 1}`) : [],
|
|
28
|
+
partB: m.choices && m.choices.length ? Array.from({ length: m.choices.length }, (e, t) => `${t + 1}`) : []
|
|
29
|
+
}, Z = {
|
|
30
|
+
partLabels: w.partLabels.settings && c(w.partLabels.label),
|
|
31
|
+
partLabelType: e.partLabels && u("", ["Numbers", "Letters"]),
|
|
32
|
+
partialScoring: y.settings && c(y.label),
|
|
33
|
+
scoringType: x.settings && l(x.label, ["auto", "rubric"]),
|
|
34
|
+
"language.enabled": S.settings && c(S.label, !0),
|
|
35
|
+
language: S.settings && S.enabled && u(C.label, C.options)
|
|
36
|
+
}, Q = {
|
|
37
|
+
"partA.choiceMode": E.settings && l(E.label, ["checkbox", "radio"]),
|
|
38
|
+
"partA.choicePrefix": D.settings && l(D.label, ["numbers", "letters"]),
|
|
39
|
+
"partA.lockChoiceOrder": O.settings && c(O.label),
|
|
40
|
+
"partA.choicesLayout": M.settings && u(M.label, [
|
|
41
|
+
"vertical",
|
|
42
|
+
"grid",
|
|
43
|
+
"horizontal"
|
|
44
|
+
]),
|
|
45
|
+
"partA.gridColumns": M.settings && p.choicesLayout === "grid" && X.partA.length > 0 && u(N.label, X.partA)
|
|
46
|
+
}, $ = {
|
|
47
|
+
"partA.feedbackEnabled": T.settings && c(T.label),
|
|
48
|
+
"partA.promptEnabled": k.settings && c(k.label),
|
|
49
|
+
"partA.teacherInstructionsEnabled": A.settings && c(A.label),
|
|
50
|
+
"partA.studentInstructionsEnabled": j.settings && c(j.label),
|
|
51
|
+
"partA.rationaleEnabled": P.settings && c(P.label),
|
|
52
|
+
"partA.spellCheckEnabled": F.settings && c(F.label)
|
|
53
|
+
}, ee = {
|
|
54
|
+
"partB.choiceMode": L.settings && l(L.label, ["checkbox", "radio"]),
|
|
55
|
+
"partB.choicePrefix": R.settings && l(R.label, ["numbers", "letters"]),
|
|
56
|
+
"partB.lockChoiceOrder": z.settings && c(z.label),
|
|
57
|
+
"partB.choicesLayout": U.settings && u(U.label, [
|
|
58
|
+
"vertical",
|
|
59
|
+
"grid",
|
|
60
|
+
"horizontal"
|
|
61
|
+
]),
|
|
62
|
+
"partB.gridColumns": U.settings && m.choicesLayout === "grid" && X.partB.length > 0 && u(W.label, X.partB)
|
|
63
|
+
}, te = {
|
|
64
|
+
"partB.feedbackEnabled": I.settings && c(I.label),
|
|
65
|
+
"partB.promptEnabled": B.settings && c(B.label),
|
|
66
|
+
"partB.teacherInstructionsEnabled": V.settings && c(V.label),
|
|
67
|
+
"partB.studentInstructionsEnabled": H.settings && c(H.label),
|
|
68
|
+
"partB.rationaleEnabled": G.settings && c(G.label),
|
|
69
|
+
"partB.spellCheckEnabled": K.settings && c(K.label)
|
|
70
|
+
};
|
|
71
|
+
return /* @__PURE__ */ o(n.ConfigLayout, {
|
|
72
|
+
extraCSSRules: h,
|
|
73
|
+
dimensions: g,
|
|
74
|
+
hideSettings: b,
|
|
75
|
+
settings: /* @__PURE__ */ a(s, {
|
|
76
|
+
model: e,
|
|
77
|
+
onChangeModel: this.onModelChanged,
|
|
78
|
+
configuration: t,
|
|
79
|
+
onChangeConfiguration: r,
|
|
80
|
+
groups: {
|
|
81
|
+
"Settings for both": Z,
|
|
82
|
+
[`Settings ${J}`]: Q,
|
|
83
|
+
[`Properties ${J}`]: $,
|
|
84
|
+
[`Settings ${Y}`]: ee,
|
|
85
|
+
[`Properties ${Y}`]: te
|
|
86
|
+
}
|
|
87
|
+
}),
|
|
88
|
+
children: [
|
|
89
|
+
e.partLabels && /* @__PURE__ */ a(d, { children: J }),
|
|
90
|
+
/* @__PURE__ */ a("ebsr-multiple-choice-configure", {
|
|
91
|
+
id: "A",
|
|
92
|
+
ref: (e) => {
|
|
93
|
+
e && (this.partA = e, this.partA._model = {
|
|
94
|
+
...this.props.model.partA,
|
|
95
|
+
errors: this.props.model.errors && this.props.model.errors.partA || {}
|
|
96
|
+
}, this.partA.configuration = {
|
|
97
|
+
..._,
|
|
98
|
+
...w
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}, "partA"),
|
|
102
|
+
/* @__PURE__ */ a(f, {}),
|
|
103
|
+
e.partLabels && /* @__PURE__ */ a(d, { children: Y }),
|
|
104
|
+
/* @__PURE__ */ a("ebsr-multiple-choice-configure", {
|
|
105
|
+
id: "B",
|
|
106
|
+
ref: (e) => {
|
|
107
|
+
e && (this.partB = e, this.partB._model = {
|
|
108
|
+
...this.props.model.partB,
|
|
109
|
+
errors: this.props.model.errors && this.props.model.errors.partB || {}
|
|
110
|
+
}, this.partB.configuration = {
|
|
111
|
+
...v,
|
|
112
|
+
...w
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}, "partB")
|
|
116
|
+
]
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
//#endregion
|
|
121
|
+
export { p as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/ebsr/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
|
+
declare const _default: {
|
|
10
|
+
partLabels: boolean;
|
|
11
|
+
partLabelType: string;
|
|
12
|
+
partA: any;
|
|
13
|
+
partB: any;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/controller/defaults.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;;;;;;;AAqBH,wBAKE"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/controller/defaults.ts
|
|
2
|
+
var e = (e) => ({
|
|
3
|
+
choiceMode: "radio",
|
|
4
|
+
choicePrefix: "letters",
|
|
5
|
+
choices: [],
|
|
6
|
+
choicesLayout: "vertical",
|
|
7
|
+
feedbackEnabled: !1,
|
|
8
|
+
gridColumns: 2,
|
|
9
|
+
prompt: "",
|
|
10
|
+
promptEnabled: !0,
|
|
11
|
+
rationale: "",
|
|
12
|
+
rationaleEnabled: !0,
|
|
13
|
+
spellCheckEnabled: !0,
|
|
14
|
+
studentInstructionsEnabled: !0,
|
|
15
|
+
teacherInstructions: "",
|
|
16
|
+
teacherInstructionsEnabled: !0,
|
|
17
|
+
toolbarEditorPosition: "bottom",
|
|
18
|
+
...e
|
|
19
|
+
}), t = {
|
|
20
|
+
partLabels: !0,
|
|
21
|
+
partLabelType: "Letters",
|
|
22
|
+
partA: e(),
|
|
23
|
+
partB: e()
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { t as default };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/ebsr/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 normalize: ({ partA, partB, language, ...question }: {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
partA?: {} | undefined;
|
|
12
|
+
partB?: {} | undefined;
|
|
13
|
+
language: any;
|
|
14
|
+
}) => {
|
|
15
|
+
partA: any;
|
|
16
|
+
partB: any;
|
|
17
|
+
partLabels: boolean;
|
|
18
|
+
partLabelType: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @param {*} question
|
|
23
|
+
* @param {*} session
|
|
24
|
+
* @param {*} env
|
|
25
|
+
* @param {*} updateSession - optional - a function that will set the properties passed into it on the session.
|
|
26
|
+
*/
|
|
27
|
+
export declare function model(question: any, session: any, env: any, updateSession: any): Promise<unknown>;
|
|
28
|
+
export declare const createDefaultModel: (model?: {}) => Promise<unknown>;
|
|
29
|
+
/**
|
|
30
|
+
* Generates detailed trace log for math-templated scoring evaluation
|
|
31
|
+
* @param {Object} question
|
|
32
|
+
* @param {Object} session
|
|
33
|
+
* @param {Object} env
|
|
34
|
+
* @returns {Array<string>} traceLog
|
|
35
|
+
*/
|
|
36
|
+
export declare const getLogTrace: (question: any, session: any, env: any) => string[];
|
|
37
|
+
export declare function outcome(config: any, session: any, env: any): Promise<unknown>;
|
|
38
|
+
export declare const createCorrectResponseSession: (question: any, env: any) => Promise<unknown>;
|
|
39
|
+
export declare const validate: (model?: {}, config?: {}) => {
|
|
40
|
+
partA: {};
|
|
41
|
+
partB: {};
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/controller/index.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AA6DH,eAAO,MAAM,SAAS,GAAI;;;;;CAAiD;;;;;CAKzE,CAAC;AAEH;;;;;;GAMG;AACH,wBAAsB,KAAK,CAAC,QAAQ,KAAA,EAAE,OAAO,KAAA,EAAE,GAAG,KAAA,EAAE,aAAa,KAAA,oBA0FhE;AAED,eAAO,MAAM,kBAAkB,GAAI,UAAU,qBAMzC,CAAC;AA4BL;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,GAAI,aAAQ,EAAE,YAAO,EAAE,QAAG,aAgFjD,CAAC;AAEF,wBAAgB,OAAO,CAAC,MAAM,KAAA,EAAE,OAAO,KAAA,EAAE,GAAG,KAAA,oBAsC3C;AAcD,eAAO,MAAM,4BAA4B,GAAI,aAAQ,EAAE,QAAG,qBAyBzD,CAAC;AAoEF,eAAO,MAAM,QAAQ,GAAI,UAAU,EAAE,WAAW;;;CAQ/C,CAAC"}
|