@pie-element/placement-ordering 14.1.0-next.28 → 14.1.1-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/dist/author/choice-editor.d.ts +39 -0
- package/dist/author/choice-editor.js +157 -0
- package/dist/author/choice-tile.d.ts +40 -0
- package/dist/author/choice-tile.js +132 -0
- package/dist/author/defaults.d.ts +213 -0
- package/dist/author/defaults.js +159 -0
- package/dist/author/design.d.ts +21 -0
- package/dist/author/design.js +274 -0
- package/dist/author/help.d.ts +11 -0
- package/dist/author/index.d.ts +45 -0
- package/dist/author/index.js +85 -0
- package/dist/author/utils.d.ts +15 -0
- package/dist/author/utils.js +62 -0
- package/dist/controller/defaults.d.ts +31 -0
- package/dist/controller/defaults.js +25 -0
- package/dist/controller/index.d.ts +29 -0
- package/dist/controller/index.js +128 -0
- package/dist/controller/scoring.d.ts +27 -0
- package/dist/controller/scoring.js +32 -0
- package/dist/delivery/index.d.ts +26 -0
- package/dist/delivery/index.js +70 -0
- package/dist/delivery/main.d.ts +19 -0
- package/dist/delivery/main.js +22 -0
- package/dist/delivery/ordering.d.ts +18 -0
- package/dist/delivery/ordering.js +96 -0
- package/dist/delivery/placement-ordering.d.ts +28 -0
- package/dist/delivery/placement-ordering.js +215 -0
- package/dist/delivery/tile.d.ts +28 -0
- package/dist/delivery/tile.js +165 -0
- package/dist/delivery/tiler.d.ts +42 -0
- package/dist/delivery/tiler.js +89 -0
- package/dist/delivery/utils.d.ts +9 -0
- package/dist/delivery/utils.js +8 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.iife.d.ts +8 -0
- package/dist/index.iife.js +152 -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/_arrayEvery.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/_arrayIncludes.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js +7 -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/_arrayReduce.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayShuffle.js +8 -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/_baseDifference.js +23 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseEach.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseEvery.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +7 -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/_baseFor.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseForOwn.js +8 -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/_baseIndexOf.js +9 -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/_baseIsMatch.js +26 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js +6 -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/_baseIteratee.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/_baseMap.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRandom.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseReduce.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +9 -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/_baseShuffle.js +8 -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/_baseUniq.js +27 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseValues.js +9 -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/_createAssigner.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseEach.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createSet.js +9 -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/_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/_getMatchData.js +16 -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/_isIterateeCall.js +12 -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/_isStrictComparable.js +7 -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/_matchesStrictComparable.js +8 -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/_shuffleSelf.js +12 -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/_strictIndexOf.js +7 -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/assign.js +16 -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/compact.js +10 -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/defaults.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/difference.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/differenceWith.js +12 -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/every.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/get.js +8 -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/isArrayLikeObject.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/last.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/map.js +10 -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/noop.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/reduce.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/shuffle.js +9 -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/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniq.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/uniqueId.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/values.js +8 -0
- package/package.json +62 -22
- package/CHANGELOG.json +0 -1312
- package/CHANGELOG.md +0 -2420
- package/LICENSE.md +0 -5
- package/README.md +0 -57
- package/configure/CHANGELOG.json +0 -952
- package/configure/CHANGELOG.md +0 -2115
- package/configure/lib/choice-editor.js +0 -252
- package/configure/lib/choice-editor.js.map +0 -1
- package/configure/lib/choice-tile.js +0 -205
- package/configure/lib/choice-tile.js.map +0 -1
- package/configure/lib/defaults.js +0 -211
- package/configure/lib/defaults.js.map +0 -1
- package/configure/lib/design.js +0 -427
- package/configure/lib/design.js.map +0 -1
- package/configure/lib/help.js +0 -14
- package/configure/lib/help.js.map +0 -1
- package/configure/lib/index.js +0 -155
- package/configure/lib/index.js.map +0 -1
- package/configure/lib/utils.js +0 -108
- package/configure/lib/utils.js.map +0 -1
- package/configure/package.json +0 -26
- package/controller/CHANGELOG.json +0 -517
- package/controller/CHANGELOG.md +0 -1507
- package/controller/lib/defaults.js +0 -29
- package/controller/lib/defaults.js.map +0 -1
- package/controller/lib/index.js +0 -285
- package/controller/lib/index.js.map +0 -1
- package/controller/lib/scoring.js +0 -109
- package/controller/lib/scoring.js.map +0 -1
- package/controller/package.json +0 -15
- package/docs/config-schema.json +0 -2964
- package/docs/config-schema.json.md +0 -2190
- package/docs/demo/config.js +0 -8
- package/docs/demo/generate.js +0 -50
- package/docs/demo/index.html +0 -1
- package/docs/demo/session.js +0 -7
- package/docs/pie-schema.json +0 -1613
- package/docs/pie-schema.json.md +0 -973
- package/icon.png +0 -0
- package/lib/index.js +0 -122
- package/lib/index.js.map +0 -1
- package/lib/main.js +0 -32
- package/lib/main.js.map +0 -1
- package/lib/ordering.js +0 -165
- package/lib/ordering.js.map +0 -1
- package/lib/placement-ordering.js +0 -419
- package/lib/placement-ordering.js.map +0 -1
- package/lib/tile.js +0 -259
- package/lib/tile.js.map +0 -1
- package/lib/tiler.js +0 -165
- package/lib/tiler.js.map +0 -1
- package/lib/utils.js +0 -18
- package/lib/utils.js.map +0 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/placement-ordering/configure/src/choice-editor.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 PropTypes from 'prop-types';
|
|
10
|
+
import React from 'react';
|
|
11
|
+
declare class ChoiceEditor extends React.Component {
|
|
12
|
+
static propTypes: {
|
|
13
|
+
correctResponse: PropTypes.Validator<any[]>;
|
|
14
|
+
choices: PropTypes.Validator<any[]>;
|
|
15
|
+
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
16
|
+
imageSupport: PropTypes.Requireable<PropTypes.InferProps<{
|
|
17
|
+
add: PropTypes.Validator<(...args: any[]) => any>;
|
|
18
|
+
delete: PropTypes.Validator<(...args: any[]) => any>;
|
|
19
|
+
}>>;
|
|
20
|
+
maxImageHeight: PropTypes.Requireable<object>;
|
|
21
|
+
maxImageWidth: PropTypes.Requireable<object>;
|
|
22
|
+
toolbarOpts: PropTypes.Requireable<object>;
|
|
23
|
+
pluginProps: PropTypes.Requireable<object>;
|
|
24
|
+
placementArea: PropTypes.Requireable<boolean>;
|
|
25
|
+
singularChoiceLabel: PropTypes.Requireable<string>;
|
|
26
|
+
pluralChoiceLabel: PropTypes.Requireable<string>;
|
|
27
|
+
choicesLabel: PropTypes.Requireable<string>;
|
|
28
|
+
errors: PropTypes.Requireable<object>;
|
|
29
|
+
spellCheck: PropTypes.Requireable<boolean>;
|
|
30
|
+
};
|
|
31
|
+
state: {
|
|
32
|
+
warning: {
|
|
33
|
+
open: boolean;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
constructor(props: any);
|
|
37
|
+
render(): React.JSX.Element;
|
|
38
|
+
}
|
|
39
|
+
export default ChoiceEditor;
|
|
@@ -0,0 +1,157 @@
|
|
|
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 };
|
|
@@ -0,0 +1,40 @@
|
|
|
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;
|
|
@@ -0,0 +1,132 @@
|
|
|
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 };
|
|
@@ -0,0 +1,213 @@
|
|
|
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;
|