@pie-element/placement-ordering 14.1.1-next.1 → 14.1.1-next.11
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/CHANGELOG.json +1312 -0
- package/CHANGELOG.md +2428 -0
- package/LICENSE.md +5 -0
- package/README.md +57 -0
- package/configure/CHANGELOG.json +952 -0
- package/configure/CHANGELOG.md +2123 -0
- package/configure/lib/choice-editor.js +252 -0
- package/configure/lib/choice-editor.js.map +1 -0
- package/configure/lib/choice-tile.js +205 -0
- package/configure/lib/choice-tile.js.map +1 -0
- package/configure/lib/defaults.js +211 -0
- package/configure/lib/defaults.js.map +1 -0
- package/configure/lib/design.js +427 -0
- package/configure/lib/design.js.map +1 -0
- package/configure/lib/help.js +14 -0
- package/configure/lib/help.js.map +1 -0
- package/configure/lib/index.js +155 -0
- package/configure/lib/index.js.map +1 -0
- package/configure/lib/utils.js +108 -0
- package/configure/lib/utils.js.map +1 -0
- package/configure/package.json +26 -0
- package/controller/CHANGELOG.json +517 -0
- package/controller/CHANGELOG.md +1514 -0
- package/controller/lib/defaults.js +29 -0
- package/controller/lib/defaults.js.map +1 -0
- package/controller/lib/index.js +285 -0
- package/controller/lib/index.js.map +1 -0
- package/controller/lib/scoring.js +109 -0
- package/controller/lib/scoring.js.map +1 -0
- package/controller/package.json +15 -0
- package/docs/config-schema.json +2964 -0
- package/docs/config-schema.json.md +2190 -0
- package/docs/demo/config.js +8 -0
- package/docs/demo/generate.js +50 -0
- package/docs/demo/index.html +1 -0
- package/docs/demo/session.js +7 -0
- package/docs/pie-schema.json +1613 -0
- package/docs/pie-schema.json.md +973 -0
- package/icon.png +0 -0
- package/lib/index.js +122 -0
- package/lib/index.js.map +1 -0
- package/lib/main.js +32 -0
- package/lib/main.js.map +1 -0
- package/lib/ordering.js +165 -0
- package/lib/ordering.js.map +1 -0
- package/lib/placement-ordering.js +419 -0
- package/lib/placement-ordering.js.map +1 -0
- package/lib/tile.js +259 -0
- package/lib/tile.js.map +1 -0
- package/lib/tiler.js +165 -0
- package/lib/tiler.js.map +1 -0
- package/lib/utils.js +18 -0
- package/lib/utils.js.map +1 -0
- package/package.json +21 -61
- package/dist/author/choice-editor.d.ts +0 -39
- package/dist/author/choice-editor.js +0 -157
- package/dist/author/choice-tile.d.ts +0 -40
- package/dist/author/choice-tile.js +0 -132
- package/dist/author/defaults.d.ts +0 -213
- package/dist/author/defaults.js +0 -159
- package/dist/author/design.d.ts +0 -21
- package/dist/author/design.js +0 -274
- package/dist/author/help.d.ts +0 -11
- package/dist/author/index.d.ts +0 -45
- package/dist/author/index.js +0 -85
- package/dist/author/utils.d.ts +0 -15
- package/dist/author/utils.js +0 -62
- package/dist/controller/defaults.d.ts +0 -31
- package/dist/controller/defaults.js +0 -25
- package/dist/controller/index.d.ts +0 -29
- package/dist/controller/index.js +0 -128
- package/dist/controller/scoring.d.ts +0 -27
- package/dist/controller/scoring.js +0 -32
- package/dist/delivery/index.d.ts +0 -26
- package/dist/delivery/index.js +0 -70
- package/dist/delivery/main.d.ts +0 -19
- package/dist/delivery/main.js +0 -22
- package/dist/delivery/ordering.d.ts +0 -18
- package/dist/delivery/ordering.js +0 -96
- package/dist/delivery/placement-ordering.d.ts +0 -28
- package/dist/delivery/placement-ordering.js +0 -215
- package/dist/delivery/tile.d.ts +0 -28
- package/dist/delivery/tile.js +0 -165
- package/dist/delivery/tiler.d.ts +0 -42
- package/dist/delivery/tiler.js +0 -89
- package/dist/delivery/utils.d.ts +0 -9
- package/dist/delivery/utils.js +0 -8
- package/dist/index.d.ts +0 -1
- package/dist/index.iife.d.ts +0 -8
- package/dist/index.iife.js +0 -152
- package/dist/index.js +0 -2
- 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/_arrayEvery.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/_arrayReduce.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayShuffle.js +0 -8
- 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/_baseEach.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseEvery.js +0 -10
- 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/_baseFor.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseForOwn.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js +0 -10
- 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/_baseHasIn.js +0 -6
- 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/_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/_baseIsMatch.js +0 -26
- 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/_baseIteratee.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/_baseMap.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js +0 -17
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRandom.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseReduce.js +0 -8
- 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/_baseSetToString.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseShuffle.js +0 -8
- 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/_baseValues.js +0 -9
- 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/_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/_createAssigner.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseEach.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js +0 -12
- 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/_getMatchData.js +0 -16
- 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/_hasPath.js +0 -18
- 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/_isIterateeCall.js +0 -12
- 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/_isStrictComparable.js +0 -7
- 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/_matchesStrictComparable.js +0 -8
- 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/_shuffleSelf.js +0 -12
- 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/assign.js +0 -16
- 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/compact.js +0 -10
- 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/defaults.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/difference.js +0 -10
- 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/every.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/get.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js +0 -8
- 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/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/map.js +0 -10
- 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/property.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/reduce.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/shuffle.js +0 -9
- 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/uniqueId.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/values.js +0 -8
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js";
|
|
2
|
-
import t from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/shuffle.js";
|
|
3
|
-
import n from "./choice-tile.js";
|
|
4
|
-
import r from "react";
|
|
5
|
-
import i from "debug";
|
|
6
|
-
import a from "prop-types";
|
|
7
|
-
import { styled as o } from "@mui/material/styles";
|
|
8
|
-
import * as s from "@pie-lib/render-ui";
|
|
9
|
-
import { InputContainer as c } from "@pie-lib/render-ui";
|
|
10
|
-
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
11
|
-
import { AlertDialog as d } from "@pie-lib/config-ui";
|
|
12
|
-
import f from "@mui/material/Button";
|
|
13
|
-
//#region src/author/choice-editor.tsx
|
|
14
|
-
function p(e) {
|
|
15
|
-
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
16
|
-
}
|
|
17
|
-
function m(e, t) {
|
|
18
|
-
return !e || p(e) ? e : p(e.default) ? e.default : t && p(e[t]) ? e[t] : t && p(e[t]?.default) ? e[t].default : e;
|
|
19
|
-
}
|
|
20
|
-
var h = m(c, "InputContainer") || m(v.InputContainer, "InputContainer"), g = s, _ = g.default, v = _ && typeof _ == "object" ? _ : g;
|
|
21
|
-
function y(e) {
|
|
22
|
-
let t = 1, n = e.map((e) => e.id);
|
|
23
|
-
for (; n.includes(`c${t}`);) t++;
|
|
24
|
-
return t;
|
|
25
|
-
}
|
|
26
|
-
i("@pie-element:placement-ordering:configure:choice-editor");
|
|
27
|
-
var b = o("div")({
|
|
28
|
-
display: "flex",
|
|
29
|
-
alignItems: "center",
|
|
30
|
-
justifyContent: "space-between"
|
|
31
|
-
}), x = o(f)(({ theme: e }) => ({
|
|
32
|
-
marginTop: e.spacing(2.5),
|
|
33
|
-
paddingLeft: e.spacing(1.5),
|
|
34
|
-
paddingRight: e.spacing(1.5),
|
|
35
|
-
"& .MuiButton-label": {
|
|
36
|
-
transition: "opacity 200ms linear",
|
|
37
|
-
"&:hover": { opacity: .3 }
|
|
38
|
-
}
|
|
39
|
-
})), S = o("div")({
|
|
40
|
-
gridAutoFlow: "column",
|
|
41
|
-
display: "grid",
|
|
42
|
-
gridGap: "10px",
|
|
43
|
-
alignItems: "center"
|
|
44
|
-
}), C = o(h)(({ theme: e }) => ({
|
|
45
|
-
width: "100%",
|
|
46
|
-
paddingTop: e.spacing(2)
|
|
47
|
-
})), w = o("div")(({ theme: e }) => ({
|
|
48
|
-
fontSize: e.typography.fontSize - 2,
|
|
49
|
-
color: e.palette.error.main,
|
|
50
|
-
paddingTop: e.spacing(1)
|
|
51
|
-
})), T = class extends r.Component {
|
|
52
|
-
static propTypes = {
|
|
53
|
-
correctResponse: a.array.isRequired,
|
|
54
|
-
choices: a.array.isRequired,
|
|
55
|
-
onChange: a.func.isRequired,
|
|
56
|
-
imageSupport: a.shape({
|
|
57
|
-
add: a.func.isRequired,
|
|
58
|
-
delete: a.func.isRequired
|
|
59
|
-
}),
|
|
60
|
-
maxImageHeight: a.object,
|
|
61
|
-
maxImageWidth: a.object,
|
|
62
|
-
toolbarOpts: a.object,
|
|
63
|
-
pluginProps: a.object,
|
|
64
|
-
placementArea: a.bool,
|
|
65
|
-
singularChoiceLabel: a.string,
|
|
66
|
-
pluralChoiceLabel: a.string,
|
|
67
|
-
choicesLabel: a.string,
|
|
68
|
-
errors: a.object,
|
|
69
|
-
spellCheck: a.bool
|
|
70
|
-
};
|
|
71
|
-
state = { warning: { open: !1 } };
|
|
72
|
-
constructor(n) {
|
|
73
|
-
super(n), this.onChoiceChange = (e) => {
|
|
74
|
-
let { choices: t, onChange: n, correctResponse: r } = this.props, i = t.findIndex((t) => t.id === e.id);
|
|
75
|
-
t.splice(i, 1, {
|
|
76
|
-
...t[i],
|
|
77
|
-
label: e.label
|
|
78
|
-
}), n(t, r);
|
|
79
|
-
}, this.onDelete = (e) => {
|
|
80
|
-
let { choices: t, onChange: n, correctResponse: r, choicesLabel: i } = this.props;
|
|
81
|
-
t && t.length === 3 ? this.setState({ warning: {
|
|
82
|
-
open: !0,
|
|
83
|
-
text: `There have to be at least 3 ${i}.`
|
|
84
|
-
} }) : n(t.filter((t) => t.id !== e.id), r.filter((t) => t.id !== e.id));
|
|
85
|
-
}, this.addChoice = () => {
|
|
86
|
-
let { choices: e, correctResponse: t, onChange: n, choicesLabel: r } = this.props;
|
|
87
|
-
if (e && e.length === 10) this.setState({ warning: {
|
|
88
|
-
open: !0,
|
|
89
|
-
text: `There can be maximum 10 ${r}.`
|
|
90
|
-
} });
|
|
91
|
-
else {
|
|
92
|
-
let r = `c${y(e)}`, i = {
|
|
93
|
-
id: r,
|
|
94
|
-
label: ""
|
|
95
|
-
}, a = {
|
|
96
|
-
id: r,
|
|
97
|
-
weight: 0
|
|
98
|
-
};
|
|
99
|
-
n(e.concat([i]), t.concat([a]));
|
|
100
|
-
}
|
|
101
|
-
}, this.shuffleChoices = () => {
|
|
102
|
-
let { onChange: n, choices: r, correctResponse: i, placementArea: a } = this.props, o = t(r);
|
|
103
|
-
!a && e(o.map((e) => e.id), i.map((e) => e.id)) ? n(t(o), i) : n(o, i);
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
render() {
|
|
107
|
-
let { correctResponse: e, choices: t, imageSupport: r, toolbarOpts: i, pluginProps: a, singularChoiceLabel: o, pluralChoiceLabel: s, choicesLabel: c, spellCheck: f, maxImageWidth: p, maxImageHeight: m, errors: h, mathMlOptions: g = {}, ordering: _ } = this.props, { warning: v } = this.state, { choicesErrors: y, orderError: T } = h || {}, E = {
|
|
108
|
-
gridTemplateColumns: "repeat(2, 1fr)",
|
|
109
|
-
gridTemplateRows: `repeat(${t.length}, 1fr)`
|
|
110
|
-
};
|
|
111
|
-
return /* @__PURE__ */ u("div", { children: [
|
|
112
|
-
/* @__PURE__ */ u(S, {
|
|
113
|
-
style: { gridTemplateColumns: "repeat(2, 1fr)" },
|
|
114
|
-
children: [/* @__PURE__ */ l(C, { label: `Student ${c || "Choices"}` }), /* @__PURE__ */ l(C, { label: "Correct Order" })]
|
|
115
|
-
}),
|
|
116
|
-
/* @__PURE__ */ l(S, {
|
|
117
|
-
style: E,
|
|
118
|
-
children: _.tiles.map((e, o) => /* @__PURE__ */ l(n, {
|
|
119
|
-
choice: e,
|
|
120
|
-
index: o,
|
|
121
|
-
imageSupport: r,
|
|
122
|
-
onDelete: this.onDelete.bind(this, e),
|
|
123
|
-
onChoiceChange: this.onChoiceChange,
|
|
124
|
-
toolbarOpts: i,
|
|
125
|
-
pluginProps: a,
|
|
126
|
-
choices: t,
|
|
127
|
-
choicesLabel: c,
|
|
128
|
-
spellCheck: f,
|
|
129
|
-
maxImageWidth: p,
|
|
130
|
-
maxImageHeight: m,
|
|
131
|
-
error: y?.[e.id] || T && " " || null,
|
|
132
|
-
mathMlOptions: g
|
|
133
|
-
}, `${e.type}-${e.id}`))
|
|
134
|
-
}),
|
|
135
|
-
T && /* @__PURE__ */ l(w, { children: T }),
|
|
136
|
-
/* @__PURE__ */ u(b, { children: [/* @__PURE__ */ l(x, {
|
|
137
|
-
onClick: this.shuffleChoices,
|
|
138
|
-
size: "small",
|
|
139
|
-
variant: "contained",
|
|
140
|
-
children: `SHUFFLE ${s}`.toUpperCase()
|
|
141
|
-
}), /* @__PURE__ */ l(x, {
|
|
142
|
-
onClick: this.addChoice,
|
|
143
|
-
size: "small",
|
|
144
|
-
variant: "contained",
|
|
145
|
-
children: `ADD ${o}`.toUpperCase()
|
|
146
|
-
})] }),
|
|
147
|
-
/* @__PURE__ */ l(d, {
|
|
148
|
-
open: v.open,
|
|
149
|
-
title: "Warning",
|
|
150
|
-
text: v.text,
|
|
151
|
-
onConfirm: () => this.setState({ warning: { open: !1 } })
|
|
152
|
-
})
|
|
153
|
-
] });
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
//#endregion
|
|
157
|
-
export { T as default };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-elements/packages/placement-ordering/configure/src/choice-tile.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 const ChoiceTile: {
|
|
12
|
-
(props: any): React.JSX.Element;
|
|
13
|
-
propTypes: {
|
|
14
|
-
id: PropTypes.Requireable<any>;
|
|
15
|
-
maxImageHeight: PropTypes.Requireable<object>;
|
|
16
|
-
maxImageWidth: PropTypes.Requireable<object>;
|
|
17
|
-
label: PropTypes.Requireable<string>;
|
|
18
|
-
isOver: PropTypes.Requireable<boolean>;
|
|
19
|
-
type: PropTypes.Requireable<string>;
|
|
20
|
-
empty: PropTypes.Requireable<boolean>;
|
|
21
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
22
|
-
outcome: PropTypes.Requireable<object>;
|
|
23
|
-
index: PropTypes.Requireable<number>;
|
|
24
|
-
imageSupport: PropTypes.Requireable<PropTypes.InferProps<{
|
|
25
|
-
add: PropTypes.Validator<(...args: any[]) => any>;
|
|
26
|
-
delete: PropTypes.Validator<(...args: any[]) => any>;
|
|
27
|
-
}>>;
|
|
28
|
-
choice: PropTypes.Requireable<object>;
|
|
29
|
-
choices: PropTypes.Validator<any[]>;
|
|
30
|
-
onChoiceChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
31
|
-
onDelete: PropTypes.Validator<(...args: any[]) => any>;
|
|
32
|
-
toolbarOpts: PropTypes.Requireable<object>;
|
|
33
|
-
pluginProps: PropTypes.Requireable<object>;
|
|
34
|
-
choicesLabel: PropTypes.Requireable<string>;
|
|
35
|
-
error: PropTypes.Requireable<string>;
|
|
36
|
-
spellCheck: PropTypes.Requireable<boolean>;
|
|
37
|
-
mathMlOptions: PropTypes.Requireable<object>;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
export default ChoiceTile;
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import "react";
|
|
2
|
-
import e from "debug";
|
|
3
|
-
import t from "prop-types";
|
|
4
|
-
import { styled as n } from "@mui/material/styles";
|
|
5
|
-
import { useDraggable as r, useDroppable as i } from "@dnd-kit/core";
|
|
6
|
-
import { color as a } from "@pie-lib/render-ui";
|
|
7
|
-
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
-
import c, { DEFAULT_PLUGINS as l } from "@pie-lib/editable-html-tip-tap";
|
|
9
|
-
import u from "@mui/material/CardActions";
|
|
10
|
-
import d from "@mui/icons-material/DragHandle";
|
|
11
|
-
import f from "@mui/material/IconButton";
|
|
12
|
-
import p from "@mui/icons-material/RemoveCircle";
|
|
13
|
-
//#region src/author/choice-tile.tsx
|
|
14
|
-
e("@pie-element:placement-ordering:configure:choice-tile");
|
|
15
|
-
var m = n("div")(({ theme: e }) => ({
|
|
16
|
-
margin: `${e.spacing(1)} 0`,
|
|
17
|
-
backgroundColor: e.palette.background.paper,
|
|
18
|
-
display: "flex",
|
|
19
|
-
flexDirection: "column",
|
|
20
|
-
cursor: "move",
|
|
21
|
-
touchAction: "none"
|
|
22
|
-
})), h = n(c)(({ theme: e, isTargetPrompt: t }) => ({
|
|
23
|
-
width: "80%",
|
|
24
|
-
borderRadius: "4px",
|
|
25
|
-
...t && { backgroundColor: e.palette.error.light }
|
|
26
|
-
})), g = n("div")(() => ({
|
|
27
|
-
display: "flex",
|
|
28
|
-
justifyContent: "flex-end"
|
|
29
|
-
})), _ = n(d)(({ theme: e }) => ({ color: e.palette.error[400] })), v = n("div")(({ theme: e }) => ({
|
|
30
|
-
fontSize: e.typography.fontSize - 2,
|
|
31
|
-
color: e.palette.error.main,
|
|
32
|
-
marginLeft: e.spacing(5),
|
|
33
|
-
marginTop: e.spacing(1)
|
|
34
|
-
})), y = n(p)(({ theme: e }) => ({ fill: e.palette.error[500] })), b = n(f)({ color: `${a.tertiary()} !important` }), x = (e) => {
|
|
35
|
-
let { choice: t, index: n, onChoiceChange: a, onDelete: c, imageSupport: d, spellCheck: f, toolbarOpts: p, pluginProps: x, maxImageWidth: S, maxImageHeight: C, error: w, mathMlOptions: T = {} } = e, { label: E, editable: D, type: O } = t, k = `${O}-${t.id}`, A = `${O}-drop-${t.id}`, { attributes: j, listeners: M, setNodeRef: N, transform: P, isDragging: F } = r({
|
|
36
|
-
id: k,
|
|
37
|
-
data: {
|
|
38
|
-
id: t.id,
|
|
39
|
-
index: n,
|
|
40
|
-
type: O
|
|
41
|
-
}
|
|
42
|
-
}), { setNodeRef: I } = i({
|
|
43
|
-
id: A,
|
|
44
|
-
data: {
|
|
45
|
-
id: t.id,
|
|
46
|
-
index: n,
|
|
47
|
-
type: O
|
|
48
|
-
}
|
|
49
|
-
}), L = (e) => {
|
|
50
|
-
t.label = e, a(t);
|
|
51
|
-
}, R = {
|
|
52
|
-
transform: P ? `translate3d(${P.x}px, ${P.y}px, 0)` : void 0,
|
|
53
|
-
opacity: F ? .5 : 1,
|
|
54
|
-
width: "100%"
|
|
55
|
-
}, z = (l || []).filter((e) => e !== "bulleted-list" && e !== "numbered-list"), B = (e) => e.closest("[contenteditable]") || e.closest("input") || e.closest("textarea") || e.isContentEditable;
|
|
56
|
-
return /* @__PURE__ */ o("div", {
|
|
57
|
-
ref: I,
|
|
58
|
-
children: /* @__PURE__ */ o("div", {
|
|
59
|
-
ref: N,
|
|
60
|
-
...M,
|
|
61
|
-
onKeyDown: (e) => {
|
|
62
|
-
B(e.target) || M?.onKeyDown?.(e);
|
|
63
|
-
},
|
|
64
|
-
onPointerDown: (e) => {
|
|
65
|
-
B(e.target) || M?.onPointerDown?.(e);
|
|
66
|
-
},
|
|
67
|
-
...j,
|
|
68
|
-
children: /* @__PURE__ */ s(m, {
|
|
69
|
-
style: R,
|
|
70
|
-
children: [/* @__PURE__ */ s("div", {
|
|
71
|
-
style: {
|
|
72
|
-
width: "100%",
|
|
73
|
-
display: "flex"
|
|
74
|
-
},
|
|
75
|
-
children: [
|
|
76
|
-
/* @__PURE__ */ o(u, { children: /* @__PURE__ */ o(_, {}) }),
|
|
77
|
-
/* @__PURE__ */ o(h, {
|
|
78
|
-
disabled: !D,
|
|
79
|
-
placeholder: O !== "target" && !E.includes("data-latex") ? "Enter a choice" : "",
|
|
80
|
-
markup: E,
|
|
81
|
-
imageSupport: d || void 0,
|
|
82
|
-
onChange: L,
|
|
83
|
-
pluginProps: x,
|
|
84
|
-
toolbarOpts: p,
|
|
85
|
-
activePlugins: z,
|
|
86
|
-
spellCheck: f,
|
|
87
|
-
autoWidthToolbar: !0,
|
|
88
|
-
maxImageWidth: S,
|
|
89
|
-
maxImageHeight: C,
|
|
90
|
-
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
91
|
-
error: D && w,
|
|
92
|
-
mathMlOptions: T
|
|
93
|
-
}),
|
|
94
|
-
D && /* @__PURE__ */ o(g, { children: /* @__PURE__ */ o(b, {
|
|
95
|
-
onClick: c,
|
|
96
|
-
size: "large",
|
|
97
|
-
children: /* @__PURE__ */ o(y, {})
|
|
98
|
-
}) })
|
|
99
|
-
]
|
|
100
|
-
}), D && w && /* @__PURE__ */ o(v, { children: w })]
|
|
101
|
-
})
|
|
102
|
-
})
|
|
103
|
-
});
|
|
104
|
-
};
|
|
105
|
-
x.propTypes = {
|
|
106
|
-
id: t.any,
|
|
107
|
-
maxImageHeight: t.object,
|
|
108
|
-
maxImageWidth: t.object,
|
|
109
|
-
label: t.string,
|
|
110
|
-
isOver: t.bool,
|
|
111
|
-
type: t.string,
|
|
112
|
-
empty: t.bool,
|
|
113
|
-
disabled: t.bool,
|
|
114
|
-
outcome: t.object,
|
|
115
|
-
index: t.number,
|
|
116
|
-
imageSupport: t.shape({
|
|
117
|
-
add: t.func.isRequired,
|
|
118
|
-
delete: t.func.isRequired
|
|
119
|
-
}),
|
|
120
|
-
choice: t.object,
|
|
121
|
-
choices: t.array.isRequired,
|
|
122
|
-
onChoiceChange: t.func.isRequired,
|
|
123
|
-
onDelete: t.func.isRequired,
|
|
124
|
-
toolbarOpts: t.object,
|
|
125
|
-
pluginProps: t.object,
|
|
126
|
-
choicesLabel: t.string,
|
|
127
|
-
error: t.string,
|
|
128
|
-
spellCheck: t.bool,
|
|
129
|
-
mathMlOptions: t.object
|
|
130
|
-
};
|
|
131
|
-
//#endregion
|
|
132
|
-
export { x as default };
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-elements/packages/placement-ordering/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
|
-
/** NOTE: teacherInstructions, studentInstructions, rationale & scoringType
|
|
10
|
-
* functionalities are not defined yet - the value for those can belong to
|
|
11
|
-
* model or to configuration
|
|
12
|
-
*/
|
|
13
|
-
declare const _default: {
|
|
14
|
-
model: {
|
|
15
|
-
choiceLabel: string;
|
|
16
|
-
choiceLabelEnabled: boolean;
|
|
17
|
-
choices: never[];
|
|
18
|
-
correctResponse: never[];
|
|
19
|
-
feedbackEnabled: boolean;
|
|
20
|
-
numberedGuides: boolean;
|
|
21
|
-
orientation: string;
|
|
22
|
-
partialScoring: boolean;
|
|
23
|
-
placementArea: boolean;
|
|
24
|
-
prompt: string;
|
|
25
|
-
promptEnabled: boolean;
|
|
26
|
-
rationale: string;
|
|
27
|
-
rationaleEnabled: boolean;
|
|
28
|
-
removeTilesAfterPlacing: boolean;
|
|
29
|
-
scoringType: string;
|
|
30
|
-
studentInstructionsEnabled: boolean;
|
|
31
|
-
targetLabel: string;
|
|
32
|
-
teacherInstructions: string;
|
|
33
|
-
teacherInstructionsEnabled: boolean;
|
|
34
|
-
toolbarEditorPosition: string;
|
|
35
|
-
};
|
|
36
|
-
configuration: {
|
|
37
|
-
baseInputConfiguration: {
|
|
38
|
-
h3: {
|
|
39
|
-
disabled: boolean;
|
|
40
|
-
};
|
|
41
|
-
audio: {
|
|
42
|
-
disabled: boolean;
|
|
43
|
-
};
|
|
44
|
-
video: {
|
|
45
|
-
disabled: boolean;
|
|
46
|
-
};
|
|
47
|
-
image: {
|
|
48
|
-
disabled: boolean;
|
|
49
|
-
};
|
|
50
|
-
textAlign: {
|
|
51
|
-
disabled: boolean;
|
|
52
|
-
};
|
|
53
|
-
showParagraphs: {
|
|
54
|
-
disabled: boolean;
|
|
55
|
-
};
|
|
56
|
-
separateParagraphs: {
|
|
57
|
-
disabled: boolean;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
choiceLabel: {
|
|
61
|
-
settings: boolean;
|
|
62
|
-
label: string;
|
|
63
|
-
inputConfiguration: {
|
|
64
|
-
audio: {
|
|
65
|
-
disabled: boolean;
|
|
66
|
-
};
|
|
67
|
-
video: {
|
|
68
|
-
disabled: boolean;
|
|
69
|
-
};
|
|
70
|
-
image: {
|
|
71
|
-
disabled: boolean;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
choices: {
|
|
76
|
-
settings: boolean;
|
|
77
|
-
label: string;
|
|
78
|
-
inputConfiguration: {
|
|
79
|
-
audio: {
|
|
80
|
-
disabled: boolean;
|
|
81
|
-
};
|
|
82
|
-
video: {
|
|
83
|
-
disabled: boolean;
|
|
84
|
-
};
|
|
85
|
-
image: {
|
|
86
|
-
disabled: boolean;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
feedback: {
|
|
91
|
-
settings: boolean;
|
|
92
|
-
label: string;
|
|
93
|
-
enabled: boolean;
|
|
94
|
-
};
|
|
95
|
-
prompt: {
|
|
96
|
-
settings: boolean;
|
|
97
|
-
label: string;
|
|
98
|
-
required: boolean;
|
|
99
|
-
inputConfiguration: {
|
|
100
|
-
audio: {
|
|
101
|
-
disabled: boolean;
|
|
102
|
-
};
|
|
103
|
-
video: {
|
|
104
|
-
disabled: boolean;
|
|
105
|
-
};
|
|
106
|
-
image: {
|
|
107
|
-
disabled: boolean;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
numberedGuides: {
|
|
112
|
-
settings: boolean;
|
|
113
|
-
label: string;
|
|
114
|
-
};
|
|
115
|
-
orientation: {
|
|
116
|
-
settings: boolean;
|
|
117
|
-
label: string;
|
|
118
|
-
};
|
|
119
|
-
partialScoring: {
|
|
120
|
-
settings: boolean;
|
|
121
|
-
label: string;
|
|
122
|
-
};
|
|
123
|
-
placementArea: {
|
|
124
|
-
settings: boolean;
|
|
125
|
-
label: string;
|
|
126
|
-
};
|
|
127
|
-
rationale: {
|
|
128
|
-
settings: boolean;
|
|
129
|
-
label: string;
|
|
130
|
-
required: boolean;
|
|
131
|
-
inputConfiguration: {
|
|
132
|
-
audio: {
|
|
133
|
-
disabled: boolean;
|
|
134
|
-
};
|
|
135
|
-
video: {
|
|
136
|
-
disabled: boolean;
|
|
137
|
-
};
|
|
138
|
-
image: {
|
|
139
|
-
disabled: boolean;
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
removeTilesAfterPlacing: {
|
|
144
|
-
settings: boolean;
|
|
145
|
-
label: string;
|
|
146
|
-
};
|
|
147
|
-
settingsPanelDisabled: boolean;
|
|
148
|
-
scoringType: {
|
|
149
|
-
settings: boolean;
|
|
150
|
-
label: string;
|
|
151
|
-
};
|
|
152
|
-
studentInstructions: {
|
|
153
|
-
settings: boolean;
|
|
154
|
-
label: string;
|
|
155
|
-
};
|
|
156
|
-
targetLabel: {
|
|
157
|
-
settings: boolean;
|
|
158
|
-
label: string;
|
|
159
|
-
};
|
|
160
|
-
spellCheck: {
|
|
161
|
-
label: string;
|
|
162
|
-
settings: boolean;
|
|
163
|
-
enabled: boolean;
|
|
164
|
-
};
|
|
165
|
-
teacherInstructions: {
|
|
166
|
-
settings: boolean;
|
|
167
|
-
label: string;
|
|
168
|
-
required: boolean;
|
|
169
|
-
inputConfiguration: {
|
|
170
|
-
audio: {
|
|
171
|
-
disabled: boolean;
|
|
172
|
-
};
|
|
173
|
-
video: {
|
|
174
|
-
disabled: boolean;
|
|
175
|
-
};
|
|
176
|
-
image: {
|
|
177
|
-
disabled: boolean;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
maxImageWidth: {
|
|
182
|
-
teacherInstructions: number;
|
|
183
|
-
prompt: number;
|
|
184
|
-
rationale: number;
|
|
185
|
-
choicesWithPlacementArea: number;
|
|
186
|
-
choicesWithoutPlacementArea: number;
|
|
187
|
-
};
|
|
188
|
-
maxImageHeight: {
|
|
189
|
-
teacherInstructions: number;
|
|
190
|
-
prompt: number;
|
|
191
|
-
rationale: number;
|
|
192
|
-
choices: number;
|
|
193
|
-
};
|
|
194
|
-
withRubric: {
|
|
195
|
-
settings: boolean;
|
|
196
|
-
label: string;
|
|
197
|
-
};
|
|
198
|
-
mathMlOptions: {
|
|
199
|
-
mmlOutput: boolean;
|
|
200
|
-
mmlEditing: boolean;
|
|
201
|
-
};
|
|
202
|
-
language: {
|
|
203
|
-
settings: boolean;
|
|
204
|
-
label: string;
|
|
205
|
-
enabled: boolean;
|
|
206
|
-
};
|
|
207
|
-
languageChoices: {
|
|
208
|
-
label: string;
|
|
209
|
-
options: never[];
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
export default _default;
|
package/dist/author/defaults.js
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
//#region src/author/defaults.ts
|
|
2
|
-
var e = {
|
|
3
|
-
model: {
|
|
4
|
-
choiceLabel: "",
|
|
5
|
-
choiceLabelEnabled: !0,
|
|
6
|
-
choices: [],
|
|
7
|
-
correctResponse: [],
|
|
8
|
-
feedbackEnabled: !1,
|
|
9
|
-
numberedGuides: !1,
|
|
10
|
-
orientation: "vertical",
|
|
11
|
-
partialScoring: !0,
|
|
12
|
-
placementArea: !1,
|
|
13
|
-
prompt: "",
|
|
14
|
-
promptEnabled: !0,
|
|
15
|
-
rationale: "",
|
|
16
|
-
rationaleEnabled: !0,
|
|
17
|
-
removeTilesAfterPlacing: !0,
|
|
18
|
-
scoringType: "auto",
|
|
19
|
-
studentInstructionsEnabled: !0,
|
|
20
|
-
targetLabel: "",
|
|
21
|
-
teacherInstructions: "",
|
|
22
|
-
teacherInstructionsEnabled: !0,
|
|
23
|
-
toolbarEditorPosition: "bottom"
|
|
24
|
-
},
|
|
25
|
-
configuration: {
|
|
26
|
-
baseInputConfiguration: {
|
|
27
|
-
h3: { disabled: !0 },
|
|
28
|
-
audio: { disabled: !1 },
|
|
29
|
-
video: { disabled: !1 },
|
|
30
|
-
image: { disabled: !1 },
|
|
31
|
-
textAlign: { disabled: !0 },
|
|
32
|
-
showParagraphs: { disabled: !1 },
|
|
33
|
-
separateParagraphs: { disabled: !0 }
|
|
34
|
-
},
|
|
35
|
-
choiceLabel: {
|
|
36
|
-
settings: !0,
|
|
37
|
-
label: "Choice label",
|
|
38
|
-
inputConfiguration: {
|
|
39
|
-
audio: { disabled: !1 },
|
|
40
|
-
video: { disabled: !1 },
|
|
41
|
-
image: { disabled: !1 }
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
choices: {
|
|
45
|
-
settings: !0,
|
|
46
|
-
label: "Choices",
|
|
47
|
-
inputConfiguration: {
|
|
48
|
-
audio: { disabled: !0 },
|
|
49
|
-
video: { disabled: !0 },
|
|
50
|
-
image: { disabled: !0 }
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
feedback: {
|
|
54
|
-
settings: !0,
|
|
55
|
-
label: "Feedback",
|
|
56
|
-
enabled: !0
|
|
57
|
-
},
|
|
58
|
-
prompt: {
|
|
59
|
-
settings: !0,
|
|
60
|
-
label: "Item Stem",
|
|
61
|
-
required: !1,
|
|
62
|
-
inputConfiguration: {
|
|
63
|
-
audio: { disabled: !1 },
|
|
64
|
-
video: { disabled: !1 },
|
|
65
|
-
image: { disabled: !1 }
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
numberedGuides: {
|
|
69
|
-
settings: !0,
|
|
70
|
-
label: "Numbered guides"
|
|
71
|
-
},
|
|
72
|
-
orientation: {
|
|
73
|
-
settings: !0,
|
|
74
|
-
label: "Orientation"
|
|
75
|
-
},
|
|
76
|
-
partialScoring: {
|
|
77
|
-
settings: !1,
|
|
78
|
-
label: "Allow Partial Scoring"
|
|
79
|
-
},
|
|
80
|
-
placementArea: {
|
|
81
|
-
settings: !0,
|
|
82
|
-
label: "Placement Area"
|
|
83
|
-
},
|
|
84
|
-
rationale: {
|
|
85
|
-
settings: !0,
|
|
86
|
-
label: "Rationale",
|
|
87
|
-
required: !1,
|
|
88
|
-
inputConfiguration: {
|
|
89
|
-
audio: { disabled: !1 },
|
|
90
|
-
video: { disabled: !1 },
|
|
91
|
-
image: { disabled: !1 }
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
removeTilesAfterPlacing: {
|
|
95
|
-
settings: !1,
|
|
96
|
-
label: "Remove Tiles after placing"
|
|
97
|
-
},
|
|
98
|
-
settingsPanelDisabled: !1,
|
|
99
|
-
scoringType: {
|
|
100
|
-
settings: !1,
|
|
101
|
-
label: "Scoring Type"
|
|
102
|
-
},
|
|
103
|
-
studentInstructions: {
|
|
104
|
-
settings: !1,
|
|
105
|
-
label: "Student Instructions"
|
|
106
|
-
},
|
|
107
|
-
targetLabel: {
|
|
108
|
-
settings: !0,
|
|
109
|
-
label: "Target label"
|
|
110
|
-
},
|
|
111
|
-
spellCheck: {
|
|
112
|
-
label: "Spellcheck",
|
|
113
|
-
settings: !1,
|
|
114
|
-
enabled: !0
|
|
115
|
-
},
|
|
116
|
-
teacherInstructions: {
|
|
117
|
-
settings: !0,
|
|
118
|
-
label: "Teacher Instructions",
|
|
119
|
-
required: !1,
|
|
120
|
-
inputConfiguration: {
|
|
121
|
-
audio: { disabled: !1 },
|
|
122
|
-
video: { disabled: !1 },
|
|
123
|
-
image: { disabled: !1 }
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
maxImageWidth: {
|
|
127
|
-
teacherInstructions: 300,
|
|
128
|
-
prompt: 300,
|
|
129
|
-
rationale: 300,
|
|
130
|
-
choicesWithPlacementArea: 240,
|
|
131
|
-
choicesWithoutPlacementArea: 300
|
|
132
|
-
},
|
|
133
|
-
maxImageHeight: {
|
|
134
|
-
teacherInstructions: 300,
|
|
135
|
-
prompt: 300,
|
|
136
|
-
rationale: 300,
|
|
137
|
-
choices: 150
|
|
138
|
-
},
|
|
139
|
-
withRubric: {
|
|
140
|
-
settings: !1,
|
|
141
|
-
label: "Add Rubric"
|
|
142
|
-
},
|
|
143
|
-
mathMlOptions: {
|
|
144
|
-
mmlOutput: !1,
|
|
145
|
-
mmlEditing: !1
|
|
146
|
-
},
|
|
147
|
-
language: {
|
|
148
|
-
settings: !1,
|
|
149
|
-
label: "Specify Language",
|
|
150
|
-
enabled: !1
|
|
151
|
-
},
|
|
152
|
-
languageChoices: {
|
|
153
|
-
label: "Language Choices",
|
|
154
|
-
options: []
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
//#endregion
|
|
159
|
-
export { e as default };
|