@pie-element/likert 4.1.1 → 4.1.2-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/configure.js +2 -0
- package/controller.js +1 -0
- package/dist/author/choiceGenerator.d.ts +13 -0
- package/dist/author/choiceGenerator.js +255 -0
- package/dist/author/defaults.d.ts +102 -0
- package/dist/author/defaults.js +60 -0
- package/dist/author/index.d.ts +31 -0
- package/dist/author/index.js +73 -0
- package/dist/author/likertEntities.d.ts +25 -0
- package/dist/author/likertEntities.js +18 -0
- package/dist/author/main.d.ts +27 -0
- package/dist/author/main.js +298 -0
- package/dist/browser/Radio-CAjl01LA.js +9438 -0
- package/dist/browser/Radio-CAjl01LA.js.map +1 -0
- package/dist/browser/author/index.js +40609 -0
- package/dist/browser/author/index.js.map +1 -0
- package/dist/browser/controller/index.js +51 -0
- package/dist/browser/controller/index.js.map +1 -0
- package/dist/browser/delivery/index.js +219 -0
- package/dist/browser/delivery/index.js.map +1 -0
- package/dist/browser/likert.css +2 -0
- package/dist/controller/defaults.d.ts +19 -0
- package/dist/controller/defaults.js +13 -0
- package/dist/controller/index.d.ts +19 -0
- package/dist/controller/index.js +41 -0
- package/dist/delivery/choice-input.d.ts +27 -0
- package/dist/delivery/choice-input.js +59 -0
- package/dist/delivery/index.d.ts +19 -0
- package/dist/delivery/index.js +44 -0
- package/dist/delivery/likert.d.ts +26 -0
- package/dist/delivery/likert.js +70 -0
- package/dist/delivery/likertEntities.d.ts +12 -0
- package/dist/delivery/likertEntities.js +7 -0
- package/dist/delivery/main.d.ts +23 -0
- package/dist/delivery/main.js +37 -0
- package/dist/delivery/session-updater.d.ts +9 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.iife.d.ts +8 -0
- package/dist/index.iife.js +145 -0
- package/dist/index.js +2 -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/_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/_apply.js +12 -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/_assignMergeValue.js +8 -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/_baseAssignValue.js +12 -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/_baseFor.js +5 -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/_baseIsArguments.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -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/_baseMerge.js +19 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMergeDeep.js +31 -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/_baseTimes.js +7 -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/_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/_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/_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/_createBaseFor.js +12 -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/_freeGlobal.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -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/_initCloneObject.js +9 -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/_isKeyable.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.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/_safeGet.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -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/eq.js +6 -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/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/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/isPlainObject.js +14 -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/keysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/merge.js +8 -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/toPlainObject.js +8 -0
- package/package.json +77 -19
- package/CHANGELOG.json +0 -1
- package/CHANGELOG.md +0 -1455
- package/LICENSE.md +0 -5
- package/configure/CHANGELOG.json +0 -1
- package/configure/CHANGELOG.md +0 -1373
- package/configure/lib/choiceGenerator.js +0 -219
- package/configure/lib/choiceGenerator.js.map +0 -1
- package/configure/lib/defaults.js +0 -100
- package/configure/lib/defaults.js.map +0 -1
- package/configure/lib/index.js +0 -106
- package/configure/lib/index.js.map +0 -1
- package/configure/lib/likertEntities.js +0 -24
- package/configure/lib/likertEntities.js.map +0 -1
- package/configure/lib/main.js +0 -388
- package/configure/lib/main.js.map +0 -1
- package/configure/package.json +0 -27
- package/controller/CHANGELOG.json +0 -1
- package/controller/CHANGELOG.md +0 -90
- package/controller/lib/defaults.js +0 -17
- package/controller/lib/defaults.js.map +0 -1
- package/controller/lib/index.js +0 -81
- package/controller/lib/index.js.map +0 -1
- package/controller/package.json +0 -17
- package/docs/config-schema.json +0 -2011
- package/docs/config-schema.json.md +0 -1487
- package/docs/demo/config.js +0 -8
- package/docs/demo/generate.js +0 -22
- package/docs/demo/index.html +0 -1
- package/docs/demo/session.js +0 -6
- package/docs/pie-schema.json +0 -966
- package/docs/pie-schema.json.md +0 -711
- package/lib/choice-input.js +0 -90
- package/lib/choice-input.js.map +0 -1
- package/lib/index.js +0 -64
- package/lib/index.js.map +0 -1
- package/lib/likert.js +0 -97
- package/lib/likert.js.map +0 -1
- package/lib/likertEntities.js +0 -11
- package/lib/likertEntities.js.map +0 -1
- package/lib/main.js +0 -42
- package/lib/main.js.map +0 -1
- package/lib/session-updater.js +0 -15
- package/lib/session-updater.js.map +0 -1
- package/readme.md +0 -55
package/controller/lib/index.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.createDefaultModel = createDefaultModel;
|
|
8
|
-
exports.model = model;
|
|
9
|
-
exports.normalize = void 0;
|
|
10
|
-
exports.outcome = outcome;
|
|
11
|
-
exports.validate = void 0;
|
|
12
|
-
var _defaults = _interopRequireDefault(require("./defaults"));
|
|
13
|
-
const prepareChoice = choice => {
|
|
14
|
-
return {
|
|
15
|
-
label: choice.label,
|
|
16
|
-
value: choice.value
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
function createDefaultModel(model = {}) {
|
|
20
|
-
return new Promise(resolve => resolve({
|
|
21
|
-
..._defaults.default,
|
|
22
|
-
...model
|
|
23
|
-
}));
|
|
24
|
-
}
|
|
25
|
-
const normalize = question => ({
|
|
26
|
-
..._defaults.default,
|
|
27
|
-
...question
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @param {*} question
|
|
33
|
-
* @param {*} session
|
|
34
|
-
* @param {*} env
|
|
35
|
-
*/
|
|
36
|
-
exports.normalize = normalize;
|
|
37
|
-
async function model(question, session, env) {
|
|
38
|
-
const normalizedQuestion = normalize(question);
|
|
39
|
-
let choices = normalizedQuestion.choices.map(prepareChoice);
|
|
40
|
-
const out = {
|
|
41
|
-
...normalizedQuestion,
|
|
42
|
-
choices,
|
|
43
|
-
disabled: env.mode !== 'gather',
|
|
44
|
-
mode: env.mode
|
|
45
|
-
};
|
|
46
|
-
const {
|
|
47
|
-
role,
|
|
48
|
-
mode
|
|
49
|
-
} = env || {};
|
|
50
|
-
if (role === 'instructor' && (mode === 'view' || mode === 'evaluate')) {
|
|
51
|
-
out.teacherInstructions = normalizedQuestion.teacherInstructionsEnabled ? normalizedQuestion.teacherInstructions : null;
|
|
52
|
-
} else {
|
|
53
|
-
out.teacherInstructions = null;
|
|
54
|
-
}
|
|
55
|
-
return out;
|
|
56
|
-
}
|
|
57
|
-
function outcome() {
|
|
58
|
-
return new Promise(resolve => {
|
|
59
|
-
resolve({
|
|
60
|
-
score: 0,
|
|
61
|
-
empty: false
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// remove all html tags
|
|
67
|
-
const getInnerText = html => (html || '').replaceAll(/<[^>]*>/g, '');
|
|
68
|
-
|
|
69
|
-
// remove all html tags except img, iframe and source tag for audio
|
|
70
|
-
const getContent = html => (html || '').replace(/(<(?!img|iframe|source)([^>]+)>)/gi, '');
|
|
71
|
-
const validate = (model = {}, config = {}) => {
|
|
72
|
-
const errors = {};
|
|
73
|
-
['teacherInstructions', 'prompt'].forEach(field => {
|
|
74
|
-
if (config[field]?.required && !getContent(model[field])) {
|
|
75
|
-
errors[field] = 'This field is required.';
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
return errors;
|
|
79
|
-
};
|
|
80
|
-
exports.validate = validate;
|
|
81
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_defaults","_interopRequireDefault","require","prepareChoice","choice","label","value","createDefaultModel","model","Promise","resolve","defaults","normalize","question","exports","session","env","normalizedQuestion","choices","map","out","disabled","mode","role","teacherInstructions","teacherInstructionsEnabled","outcome","score","empty","getInnerText","html","replaceAll","getContent","replace","validate","config","errors","forEach","field","required"],"sources":["../src/index.js"],"sourcesContent":["import defaults from './defaults';\n\nconst prepareChoice = (choice) => {\n return {\n label: choice.label,\n value: choice.value,\n };\n};\n\nexport function createDefaultModel(model = {}) {\n return new Promise((resolve) => resolve({ ...defaults, ...model }));\n}\n\nexport const normalize = (question) => ({ ...defaults, ...question });\n\n/**\n *\n * @param {*} question\n * @param {*} session\n * @param {*} env\n */\nexport async function model(question, session, env) {\n const normalizedQuestion = normalize(question);\n\n let choices = normalizedQuestion.choices.map(prepareChoice);\n\n const out = {\n ...normalizedQuestion,\n choices,\n disabled: env.mode !== 'gather',\n mode: env.mode,\n };\n\n const { role, mode } = env || {};\n\n if (role === 'instructor' && (mode === 'view' || mode === 'evaluate')) {\n out.teacherInstructions = normalizedQuestion.teacherInstructionsEnabled\n ? normalizedQuestion.teacherInstructions\n : null;\n } else {\n out.teacherInstructions = null;\n }\n\n return out;\n}\n\nexport function outcome() {\n return new Promise((resolve) => {\n resolve({ score: 0, empty: false });\n });\n}\n\n// remove all html tags\nconst getInnerText = (html) => (html || '').replaceAll(/<[^>]*>/g, '');\n\n// remove all html tags except img, iframe and source tag for audio\nconst getContent = (html) => (html || '').replace(/(<(?!img|iframe|source)([^>]+)>)/gi, '');\n\nexport const validate = (model = {}, config = {}) => {\n const errors = {};\n\n ['teacherInstructions', 'prompt'].forEach((field) => {\n if (config[field]?.required && !getContent(model[field])) {\n errors[field] = 'This field is required.';\n }\n });\n\n return errors;\n};\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,MAAMC,aAAa,GAAIC,MAAM,IAAK;EAChC,OAAO;IACLC,KAAK,EAAED,MAAM,CAACC,KAAK;IACnBC,KAAK,EAAEF,MAAM,CAACE;EAChB,CAAC;AACH,CAAC;AAEM,SAASC,kBAAkBA,CAACC,KAAK,GAAG,CAAC,CAAC,EAAE;EAC7C,OAAO,IAAIC,OAAO,CAAEC,OAAO,IAAKA,OAAO,CAAC;IAAE,GAAGC,iBAAQ;IAAE,GAAGH;EAAM,CAAC,CAAC,CAAC;AACrE;AAEO,MAAMI,SAAS,GAAIC,QAAQ,KAAM;EAAE,GAAGF,iBAAQ;EAAE,GAAGE;AAAS,CAAC,CAAC;;AAErE;AACA;AACA;AACA;AACA;AACA;AALAC,OAAA,CAAAF,SAAA,GAAAA,SAAA;AAMO,eAAeJ,KAAKA,CAACK,QAAQ,EAAEE,OAAO,EAAEC,GAAG,EAAE;EAClD,MAAMC,kBAAkB,GAAGL,SAAS,CAACC,QAAQ,CAAC;EAE9C,IAAIK,OAAO,GAAGD,kBAAkB,CAACC,OAAO,CAACC,GAAG,CAAChB,aAAa,CAAC;EAE3D,MAAMiB,GAAG,GAAG;IACV,GAAGH,kBAAkB;IACrBC,OAAO;IACPG,QAAQ,EAAEL,GAAG,CAACM,IAAI,KAAK,QAAQ;IAC/BA,IAAI,EAAEN,GAAG,CAACM;EACZ,CAAC;EAED,MAAM;IAAEC,IAAI;IAAED;EAAK,CAAC,GAAGN,GAAG,IAAI,CAAC,CAAC;EAEhC,IAAIO,IAAI,KAAK,YAAY,KAAKD,IAAI,KAAK,MAAM,IAAIA,IAAI,KAAK,UAAU,CAAC,EAAE;IACrEF,GAAG,CAACI,mBAAmB,GAAGP,kBAAkB,CAACQ,0BAA0B,GACnER,kBAAkB,CAACO,mBAAmB,GACtC,IAAI;EACV,CAAC,MAAM;IACLJ,GAAG,CAACI,mBAAmB,GAAG,IAAI;EAChC;EAEA,OAAOJ,GAAG;AACZ;AAEO,SAASM,OAAOA,CAAA,EAAG;EACxB,OAAO,IAAIjB,OAAO,CAAEC,OAAO,IAAK;IAC9BA,OAAO,CAAC;MAAEiB,KAAK,EAAE,CAAC;MAAEC,KAAK,EAAE;IAAM,CAAC,CAAC;EACrC,CAAC,CAAC;AACJ;;AAEA;AACA,MAAMC,YAAY,GAAIC,IAAI,IAAK,CAACA,IAAI,IAAI,EAAE,EAAEC,UAAU,CAAC,UAAU,EAAE,EAAE,CAAC;;AAEtE;AACA,MAAMC,UAAU,GAAIF,IAAI,IAAK,CAACA,IAAI,IAAI,EAAE,EAAEG,OAAO,CAAC,oCAAoC,EAAE,EAAE,CAAC;AAEpF,MAAMC,QAAQ,GAAGA,CAAC1B,KAAK,GAAG,CAAC,CAAC,EAAE2B,MAAM,GAAG,CAAC,CAAC,KAAK;EACnD,MAAMC,MAAM,GAAG,CAAC,CAAC;EAEjB,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CAACC,OAAO,CAAEC,KAAK,IAAK;IACnD,IAAIH,MAAM,CAACG,KAAK,CAAC,EAAEC,QAAQ,IAAI,CAACP,UAAU,CAACxB,KAAK,CAAC8B,KAAK,CAAC,CAAC,EAAE;MACxDF,MAAM,CAACE,KAAK,CAAC,GAAG,yBAAyB;IAC3C;EACF,CAAC,CAAC;EAEF,OAAOF,MAAM;AACf,CAAC;AAACtB,OAAA,CAAAoB,QAAA,GAAAA,QAAA","ignoreList":[]}
|
package/controller/package.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@pie-element/likert-controller",
|
|
3
|
-
"private": true,
|
|
4
|
-
"version": "3.0.3",
|
|
5
|
-
"description": "",
|
|
6
|
-
"main": "lib/index.js",
|
|
7
|
-
"module": "src/index.js",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"test": "./node_modules/.bin/jest"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"debug": "^4.1.1",
|
|
13
|
-
"lodash-es": "^4.17.23"
|
|
14
|
-
},
|
|
15
|
-
"author": "",
|
|
16
|
-
"license": "ISC"
|
|
17
|
-
}
|