@pie-element/ebsr 6.6.3-next.414 → 6.6.3-next.430
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.md +25 -0
- package/configure/CHANGELOG.md +25 -0
- package/configure/package.json +2 -2
- package/controller/CHANGELOG.md +17 -0
- package/controller/package.json +1 -1
- package/package.json +3 -3
- package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.json +0 -1972
- package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.md +0 -1563
- package/configure/node_modules/@pie-element/multiple-choice/LICENSE.md +0 -5
- package/configure/node_modules/@pie-element/multiple-choice/README.md +0 -56
- package/configure/node_modules/@pie-element/multiple-choice/choice.png +0 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.json +0 -1387
- package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.md +0 -1140
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js +0 -103
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js +0 -193
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js +0 -471
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/configure/package.json +0 -20
- package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.json +0 -527
- package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.md +0 -714
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js +0 -18
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js +0 -242
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js +0 -36
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/controller/package.json +0 -15
- package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json +0 -311
- package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json.md +0 -245
- package/configure/node_modules/@pie-element/multiple-choice/docs/demo/config.js +0 -8
- package/configure/node_modules/@pie-element/multiple-choice/docs/demo/generate.js +0 -52
- package/configure/node_modules/@pie-element/multiple-choice/docs/demo/index.html +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/docs/demo/session.js +0 -7
- package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json +0 -326
- package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json.md +0 -266
- package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js +0 -284
- package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js +0 -174
- package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/lib/index.js +0 -151
- package/configure/node_modules/@pie-element/multiple-choice/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/lib/main.js +0 -97
- package/configure/node_modules/@pie-element/multiple-choice/lib/main.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js +0 -341
- package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js +0 -35
- package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/CHANGELOG.json +0 -1677
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/CHANGELOG.md +0 -1498
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/LICENSE.md +0 -5
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/README.md +0 -12
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/checkbox.js +0 -86
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/checkbox.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js +0 -176
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js +0 -391
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-utils.js +0 -54
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-utils.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js +0 -194
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js +0 -75
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js +0 -184
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/form-section.js +0 -44
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/form-section.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/help.js +0 -152
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/help.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/index.js +0 -195
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/input.js +0 -144
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/input.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/inputs.js +0 -120
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/inputs.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/langs.js +0 -187
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/langs.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js +0 -109
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/index.js +0 -24
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js +0 -111
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js +0 -95
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/mui-box/index.js +0 -79
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/mui-box/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field.js +0 -274
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/radio-with-label.js +0 -41
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/radio-with-label.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/display-size.js +0 -77
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/display-size.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/index.js +0 -136
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/panel.js +0 -422
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/panel.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js +0 -43
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/toggle.js +0 -56
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/toggle.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tabs/index.js +0 -113
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tabs/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tags-input/index.js +0 -206
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tags-input/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/two-choice.js +0 -190
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/two-choice.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js +0 -91
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/package.json +0 -30
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/checkbox.jsx +0 -63
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-configuration/feedback-menu.jsx +0 -103
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-configuration/index.jsx +0 -301
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-utils.js +0 -30
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/feedback-selector.jsx +0 -116
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/group.jsx +0 -54
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/index.jsx +0 -98
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/form-section.jsx +0 -23
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/help.jsx +0 -88
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/index.js +0 -54
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/input.jsx +0 -72
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/inputs.jsx +0 -88
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/langs.jsx +0 -122
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/config-layout.jsx +0 -64
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/index.js +0 -4
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/layout-contents.jsx +0 -60
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/settings-box.jsx +0 -31
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/mui-box/index.jsx +0 -64
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/number-text-field.jsx +0 -196
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/radio-with-label.jsx +0 -18
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/display-size.jsx +0 -52
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/index.js +0 -75
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/panel.jsx +0 -297
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/settings-radio-label.jsx +0 -20
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/toggle.jsx +0 -31
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/tabs/index.jsx +0 -51
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/tags-input/index.jsx +0 -121
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/two-choice.jsx +0 -94
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/with-stateful-model.jsx +0 -36
- package/configure/node_modules/@pie-element/multiple-choice/package.json +0 -30
- package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.json +0 -547
- package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.md +0 -513
- package/configure/node_modules/@pie-lib/correct-answer-toggle/LICENSE.md +0 -5
- package/configure/node_modules/@pie-lib/correct-answer-toggle/README.md +0 -64
- package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js +0 -81
- package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js.map +0 -1
- package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js +0 -150
- package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js +0 -65
- package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js.map +0 -1
- package/configure/node_modules/@pie-lib/correct-answer-toggle/package.json +0 -36
- package/configure/node_modules/@pie-lib/correct-answer-toggle/preview.png +0 -0
- package/configure/node_modules/@pie-lib/correct-answer-toggle/src/expander.jsx +0 -60
- package/configure/node_modules/@pie-lib/correct-answer-toggle/src/index.jsx +0 -73
- package/configure/node_modules/@pie-lib/correct-answer-toggle/src/styles.js +0 -60
- package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.json +0 -3162
- package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.md +0 -1441
- package/configure/node_modules/@pie-lib/editable-html/LICENSE.md +0 -5
- package/configure/node_modules/@pie-lib/editable-html/README.md +0 -45
- package/configure/node_modules/@pie-lib/editable-html/deploy.sh +0 -16
- package/configure/node_modules/@pie-lib/editable-html/lib/editor.js +0 -698
- package/configure/node_modules/@pie-lib/editable-html/lib/editor.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/index.js +0 -213
- package/configure/node_modules/@pie-lib/editable-html/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js +0 -16
- package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js +0 -248
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js +0 -141
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js +0 -219
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js +0 -141
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js +0 -133
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js +0 -136
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js +0 -352
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js +0 -338
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js +0 -445
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js +0 -105
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js +0 -100
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js +0 -229
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js +0 -97
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js +0 -53
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js +0 -93
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js +0 -277
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js +0 -70
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js +0 -110
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js +0 -69
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js +0 -443
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js +0 -167
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js +0 -129
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js +0 -50
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js +0 -263
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js +0 -32
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js +0 -164
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js +0 -350
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js +0 -62
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js +0 -405
- package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/theme.js +0 -9
- package/configure/node_modules/@pie-lib/editable-html/lib/theme.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/package.json +0 -51
- package/configure/node_modules/@pie-lib/editable-html/playground/image/data.js +0 -59
- package/configure/node_modules/@pie-lib/editable-html/playground/image/index.html +0 -24
- package/configure/node_modules/@pie-lib/editable-html/playground/image/index.jsx +0 -83
- package/configure/node_modules/@pie-lib/editable-html/playground/index.html +0 -27
- package/configure/node_modules/@pie-lib/editable-html/playground/mathquill/index.html +0 -25
- package/configure/node_modules/@pie-lib/editable-html/playground/mathquill/index.jsx +0 -151
- package/configure/node_modules/@pie-lib/editable-html/playground/package.json +0 -15
- package/configure/node_modules/@pie-lib/editable-html/playground/prod-test/index.html +0 -26
- package/configure/node_modules/@pie-lib/editable-html/playground/prod-test/index.jsx +0 -30
- package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/data.js +0 -29
- package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/image-plugin.jsx +0 -40
- package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/index.html +0 -23
- package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/index.jsx +0 -96
- package/configure/node_modules/@pie-lib/editable-html/playground/serialization/data.js +0 -29
- package/configure/node_modules/@pie-lib/editable-html/playground/serialization/image-plugin.jsx +0 -40
- package/configure/node_modules/@pie-lib/editable-html/playground/serialization/index.html +0 -24
- package/configure/node_modules/@pie-lib/editable-html/playground/serialization/index.jsx +0 -12
- package/configure/node_modules/@pie-lib/editable-html/playground/static.json +0 -3
- package/configure/node_modules/@pie-lib/editable-html/playground/table-examples.html +0 -67
- package/configure/node_modules/@pie-lib/editable-html/playground/webpack.config.js +0 -42
- package/configure/node_modules/@pie-lib/editable-html/src/editor.jsx +0 -584
- package/configure/node_modules/@pie-lib/editable-html/src/index.jsx +0 -128
- package/configure/node_modules/@pie-lib/editable-html/src/parse-html.js +0 -8
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/README.md +0 -27
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/component.jsx +0 -166
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/image-toolbar.jsx +0 -62
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/index.jsx +0 -180
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/insert-image-handler.js +0 -93
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/index.jsx +0 -112
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/list/index.jsx +0 -113
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/math/index.jsx +0 -289
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/index.jsx +0 -281
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-dialog.js +0 -372
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-toolbar.jsx +0 -53
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-wrapper.jsx +0 -43
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/choice.jsx +0 -160
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/index.jsx +0 -78
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/explicit-constructed-response/index.jsx +0 -45
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/icons/index.jsx +0 -68
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/index.jsx +0 -244
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/inline-dropdown/index.jsx +0 -63
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/utils.jsx +0 -77
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/icons/index.jsx +0 -59
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/index.jsx +0 -390
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/table-toolbar.jsx +0 -104
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/default-toolbar.jsx +0 -103
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/done-button.jsx +0 -36
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/editor-and-toolbar.jsx +0 -217
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/index.jsx +0 -21
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar-buttons.jsx +0 -86
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar.jsx +0 -313
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/utils.js +0 -32
- package/configure/node_modules/@pie-lib/editable-html/src/serialization.jsx +0 -369
- package/configure/node_modules/@pie-lib/editable-html/src/theme.js +0 -1
- package/configure/node_modules/@pie-lib/editable-html/static.json +0 -1
- package/configure/node_modules/@pie-lib/math-input/CHANGELOG.json +0 -1412
- package/configure/node_modules/@pie-lib/math-input/CHANGELOG.md +0 -874
- package/configure/node_modules/@pie-lib/math-input/LICENSE.md +0 -5
- package/configure/node_modules/@pie-lib/math-input/README.md +0 -27
- package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js +0 -123
- package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/index.js +0 -75
- package/configure/node_modules/@pie-lib/math-input/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js +0 -367
- package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js +0 -30
- package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js +0 -41
- package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js +0 -17
- package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js +0 -46
- package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js +0 -26
- package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js +0 -53
- package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js +0 -16
- package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js +0 -35
- package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js +0 -31
- package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js +0 -139
- package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js +0 -198
- package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js +0 -50
- package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js +0 -32
- package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js +0 -23
- package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js +0 -23
- package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js +0 -69
- package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js +0 -23
- package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js +0 -17
- package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js +0 -38
- package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js +0 -23
- package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js +0 -53
- package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js +0 -126
- package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js +0 -29
- package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/math-input.js +0 -200
- package/configure/node_modules/@pie-lib/math-input/lib/math-input.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js +0 -23
- package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js +0 -24
- package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js +0 -255
- package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js +0 -216
- package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/package.json +0 -26
- package/configure/node_modules/@pie-lib/math-input/src/horizontal-keypad.jsx +0 -53
- package/configure/node_modules/@pie-lib/math-input/src/index.jsx +0 -27
- package/configure/node_modules/@pie-lib/math-input/src/keypad/index.jsx +0 -279
- package/configure/node_modules/@pie-lib/math-input/src/keypad/keys-layout.js +0 -17
- package/configure/node_modules/@pie-lib/math-input/src/keys/basic-operators.js +0 -32
- package/configure/node_modules/@pie-lib/math-input/src/keys/chars.js +0 -5
- package/configure/node_modules/@pie-lib/math-input/src/keys/comparison.js +0 -27
- package/configure/node_modules/@pie-lib/math-input/src/keys/constants.js +0 -18
- package/configure/node_modules/@pie-lib/math-input/src/keys/digits.js +0 -40
- package/configure/node_modules/@pie-lib/math-input/src/keys/edit.js +0 -3
- package/configure/node_modules/@pie-lib/math-input/src/keys/exponent.js +0 -27
- package/configure/node_modules/@pie-lib/math-input/src/keys/fractions.js +0 -23
- package/configure/node_modules/@pie-lib/math-input/src/keys/geometry.js +0 -116
- package/configure/node_modules/@pie-lib/math-input/src/keys/grades.js +0 -265
- package/configure/node_modules/@pie-lib/math-input/src/keys/index.js +0 -21
- package/configure/node_modules/@pie-lib/math-input/src/keys/log.js +0 -22
- package/configure/node_modules/@pie-lib/math-input/src/keys/logic.js +0 -15
- package/configure/node_modules/@pie-lib/math-input/src/keys/matrices.js +0 -15
- package/configure/node_modules/@pie-lib/math-input/src/keys/misc.js +0 -60
- package/configure/node_modules/@pie-lib/math-input/src/keys/navigation.js +0 -8
- package/configure/node_modules/@pie-lib/math-input/src/keys/operators.js +0 -9
- package/configure/node_modules/@pie-lib/math-input/src/keys/statistics.js +0 -29
- package/configure/node_modules/@pie-lib/math-input/src/keys/sub-sup.js +0 -15
- package/configure/node_modules/@pie-lib/math-input/src/keys/trigonometry.js +0 -15
- package/configure/node_modules/@pie-lib/math-input/src/keys/utils.js +0 -71
- package/configure/node_modules/@pie-lib/math-input/src/keys/vars.js +0 -19
- package/configure/node_modules/@pie-lib/math-input/src/math-input.jsx +0 -128
- package/configure/node_modules/@pie-lib/math-input/src/mq/custom-elements.js +0 -11
- package/configure/node_modules/@pie-lib/math-input/src/mq/index.js +0 -4
- package/configure/node_modules/@pie-lib/math-input/src/mq/input.jsx +0 -163
- package/configure/node_modules/@pie-lib/math-input/src/mq/static.jsx +0 -139
- package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +0 -657
- package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +0 -412
- package/configure/node_modules/@pie-lib/math-rendering/LICENSE.md +0 -5
- package/configure/node_modules/@pie-lib/math-rendering/lib/index.js +0 -30
- package/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +0 -312
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +0 -23
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +0 -119
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js +0 -99
- package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js +0 -239
- package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/package.json +0 -19
- package/configure/node_modules/@pie-lib/math-rendering/playground/demo.html +0 -872
- package/configure/node_modules/@pie-lib/math-rendering/playground/demo.js +0 -108
- package/configure/node_modules/@pie-lib/math-rendering/playground/main.html +0 -156
- package/configure/node_modules/@pie-lib/math-rendering/playground/main.js +0 -16
- package/configure/node_modules/@pie-lib/math-rendering/playground/webpack.config.js +0 -29
- package/configure/node_modules/@pie-lib/math-rendering/src/index.js +0 -4
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +0 -215
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/index.js +0 -13
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +0 -24
- package/configure/node_modules/@pie-lib/math-rendering/src/normalization.js +0 -69
- package/configure/node_modules/@pie-lib/math-rendering/src/render-math.js +0 -203
- package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.json +0 -847
- package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.md +0 -742
- package/configure/node_modules/@pie-lib/math-toolbar/LICENSE.md +0 -5
- package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js +0 -53
- package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js +0 -386
- package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js +0 -259
- package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js +0 -163
- package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-toolbar/package.json +0 -36
- package/configure/node_modules/@pie-lib/math-toolbar/src/done-button.jsx +0 -39
- package/configure/node_modules/@pie-lib/math-toolbar/src/editor-and-pad.jsx +0 -311
- package/configure/node_modules/@pie-lib/math-toolbar/src/index.jsx +0 -185
- package/configure/node_modules/@pie-lib/math-toolbar/src/math-preview.jsx +0 -101
- package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.json +0 -937
- package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.md +0 -616
- package/configure/node_modules/@pie-lib/render-ui/LICENSE.md +0 -5
- package/configure/node_modules/@pie-lib/render-ui/README.md +0 -33
- package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +0 -144
- package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/color.js +0 -134
- package/configure/node_modules/@pie-lib/render-ui/lib/color.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js +0 -154
- package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js +0 -24
- package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js +0 -98
- package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/index.js +0 -99
- package/configure/node_modules/@pie-lib/render-ui/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js +0 -60
- package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js +0 -129
- package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +0 -133
- package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js +0 -28
- package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/readable.js +0 -28
- package/configure/node_modules/@pie-lib/render-ui/lib/readable.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js +0 -154
- package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +0 -194
- package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/package.json +0 -30
- package/configure/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +0 -68
- package/configure/node_modules/@pie-lib/render-ui/src/color.js +0 -48
- package/configure/node_modules/@pie-lib/render-ui/src/feedback.jsx +0 -100
- package/configure/node_modules/@pie-lib/render-ui/src/has-text.js +0 -14
- package/configure/node_modules/@pie-lib/render-ui/src/html-and-math.js +0 -40
- package/configure/node_modules/@pie-lib/render-ui/src/index.js +0 -27
- package/configure/node_modules/@pie-lib/render-ui/src/input-container.jsx +0 -41
- package/configure/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +0 -77
- package/configure/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +0 -73
- package/configure/node_modules/@pie-lib/render-ui/src/purpose.jsx +0 -19
- package/configure/node_modules/@pie-lib/render-ui/src/readable.jsx +0 -19
- package/configure/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +0 -89
- package/configure/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +0 -118
- package/configure/node_modules/immutable/LICENSE +0 -21
- package/configure/node_modules/immutable/README.md +0 -657
- package/configure/node_modules/immutable/dist/immutable-nonambient.d.ts +0 -5607
- package/configure/node_modules/immutable/dist/immutable.d.ts +0 -5611
- package/configure/node_modules/immutable/dist/immutable.es.js +0 -5893
- package/configure/node_modules/immutable/dist/immutable.js +0 -5948
- package/configure/node_modules/immutable/dist/immutable.js.flow +0 -2340
- package/configure/node_modules/immutable/dist/immutable.min.js +0 -55
- package/configure/node_modules/immutable/package.json +0 -41
- package/configure/node_modules/slate-dev-environment/Readme.md +0 -1
- package/configure/node_modules/slate-dev-environment/dist/slate-dev-environment.js +0 -287
- package/configure/node_modules/slate-dev-environment/dist/slate-dev-environment.min.js +0 -1
- package/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.es.js +0 -264
- package/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.es.js.map +0 -1
- package/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.js +0 -282
- package/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.js.map +0 -1
- package/configure/node_modules/slate-dev-environment/package.json +0 -21
- package/configure/node_modules/slate-edit-list/CHANGELOG.md +0 -124
- package/configure/node_modules/slate-edit-list/LICENSE +0 -201
- package/configure/node_modules/slate-edit-list/README.md +0 -159
- package/configure/node_modules/slate-edit-list/dist/changes/decreaseItemDepth.js +0 -73
- package/configure/node_modules/slate-edit-list/dist/changes/decreaseItemDepth.js.flow +0 -88
- package/configure/node_modules/slate-edit-list/dist/changes/increaseItemDepth.js +0 -70
- package/configure/node_modules/slate-edit-list/dist/changes/increaseItemDepth.js.flow +0 -77
- package/configure/node_modules/slate-edit-list/dist/changes/index.js +0 -34
- package/configure/node_modules/slate-edit-list/dist/changes/index.js.flow +0 -13
- package/configure/node_modules/slate-edit-list/dist/changes/splitListItem.js +0 -27
- package/configure/node_modules/slate-edit-list/dist/changes/splitListItem.js.flow +0 -26
- package/configure/node_modules/slate-edit-list/dist/changes/unwrapList.js +0 -52
- package/configure/node_modules/slate-edit-list/dist/changes/unwrapList.js.flow +0 -46
- package/configure/node_modules/slate-edit-list/dist/changes/wrapInList.js +0 -67
- package/configure/node_modules/slate-edit-list/dist/changes/wrapInList.js.flow +0 -67
- package/configure/node_modules/slate-edit-list/dist/core.js +0 -80
- package/configure/node_modules/slate-edit-list/dist/core.js.flow +0 -76
- package/configure/node_modules/slate-edit-list/dist/handlers/index.js +0 -24
- package/configure/node_modules/slate-edit-list/dist/handlers/index.js.flow +0 -5
- package/configure/node_modules/slate-edit-list/dist/handlers/onBackspace.js +0 -45
- package/configure/node_modules/slate-edit-list/dist/handlers/onBackspace.js.flow +0 -44
- package/configure/node_modules/slate-edit-list/dist/handlers/onEnter.js +0 -54
- package/configure/node_modules/slate-edit-list/dist/handlers/onEnter.js.flow +0 -54
- package/configure/node_modules/slate-edit-list/dist/handlers/onTab.js +0 -39
- package/configure/node_modules/slate-edit-list/dist/handlers/onTab.js.flow +0 -34
- package/configure/node_modules/slate-edit-list/dist/index.js +0 -58
- package/configure/node_modules/slate-edit-list/dist/index.js.flow +0 -45
- package/configure/node_modules/slate-edit-list/dist/options.js +0 -34
- package/configure/node_modules/slate-edit-list/dist/options.js.flow +0 -26
- package/configure/node_modules/slate-edit-list/dist/utils/getCurrentItem.js +0 -24
- package/configure/node_modules/slate-edit-list/dist/utils/getCurrentItem.js.flow +0 -20
- package/configure/node_modules/slate-edit-list/dist/utils/getCurrentList.js +0 -31
- package/configure/node_modules/slate-edit-list/dist/utils/getCurrentList.js.flow +0 -21
- package/configure/node_modules/slate-edit-list/dist/utils/getItemDepth.js +0 -34
- package/configure/node_modules/slate-edit-list/dist/utils/getItemDepth.js.flow +0 -24
- package/configure/node_modules/slate-edit-list/dist/utils/getItemsAtRange.js +0 -60
- package/configure/node_modules/slate-edit-list/dist/utils/getItemsAtRange.js.flow +0 -51
- package/configure/node_modules/slate-edit-list/dist/utils/getListForItem.js +0 -25
- package/configure/node_modules/slate-edit-list/dist/utils/getListForItem.js.flow +0 -16
- package/configure/node_modules/slate-edit-list/dist/utils/getPreviousItem.js +0 -39
- package/configure/node_modules/slate-edit-list/dist/utils/getPreviousItem.js.flow +0 -29
- package/configure/node_modules/slate-edit-list/dist/utils/index.js +0 -49
- package/configure/node_modules/slate-edit-list/dist/utils/index.js.flow +0 -19
- package/configure/node_modules/slate-edit-list/dist/utils/isList.js +0 -15
- package/configure/node_modules/slate-edit-list/dist/utils/isList.js.flow +0 -13
- package/configure/node_modules/slate-edit-list/dist/utils/isSelectionInList.js +0 -22
- package/configure/node_modules/slate-edit-list/dist/utils/isSelectionInList.js.flow +0 -14
- package/configure/node_modules/slate-edit-list/dist/validation/index.js +0 -19
- package/configure/node_modules/slate-edit-list/dist/validation/index.js.flow +0 -4
- package/configure/node_modules/slate-edit-list/dist/validation/schema.js +0 -83
- package/configure/node_modules/slate-edit-list/dist/validation/schema.js.flow +0 -81
- package/configure/node_modules/slate-edit-list/dist/validation/validateNode.js +0 -61
- package/configure/node_modules/slate-edit-list/dist/validation/validateNode.js.flow +0 -61
- package/configure/node_modules/slate-edit-list/package.json +0 -67
- package/configure/node_modules/slate-edit-table/CHANGELOG.md +0 -192
- package/configure/node_modules/slate-edit-table/LICENSE +0 -201
- package/configure/node_modules/slate-edit-table/README.md +0 -269
- package/configure/node_modules/slate-edit-table/dist/changes/clearCell.js +0 -29
- package/configure/node_modules/slate-edit-table/dist/changes/clearCell.js.flow +0 -26
- package/configure/node_modules/slate-edit-table/dist/changes/index.js +0 -69
- package/configure/node_modules/slate-edit-table/dist/changes/index.js.flow +0 -27
- package/configure/node_modules/slate-edit-table/dist/changes/insertColumn.js +0 -43
- package/configure/node_modules/slate-edit-table/dist/changes/insertColumn.js.flow +0 -46
- package/configure/node_modules/slate-edit-table/dist/changes/insertRow.js +0 -36
- package/configure/node_modules/slate-edit-table/dist/changes/insertRow.js.flow +0 -35
- package/configure/node_modules/slate-edit-table/dist/changes/insertTable.js +0 -29
- package/configure/node_modules/slate-edit-table/dist/changes/insertTable.js.flow +0 -27
- package/configure/node_modules/slate-edit-table/dist/changes/moveSelection.js +0 -32
- package/configure/node_modules/slate-edit-table/dist/changes/moveSelection.js.flow +0 -31
- package/configure/node_modules/slate-edit-table/dist/changes/moveSelectionBy.js +0 -84
- package/configure/node_modules/slate-edit-table/dist/changes/moveSelectionBy.js.flow +0 -80
- package/configure/node_modules/slate-edit-table/dist/changes/removeColumn.js +0 -36
- package/configure/node_modules/slate-edit-table/dist/changes/removeColumn.js.flow +0 -28
- package/configure/node_modules/slate-edit-table/dist/changes/removeColumnByKey.js +0 -52
- package/configure/node_modules/slate-edit-table/dist/changes/removeColumnByKey.js.flow +0 -40
- package/configure/node_modules/slate-edit-table/dist/changes/removeRow.js +0 -36
- package/configure/node_modules/slate-edit-table/dist/changes/removeRow.js.flow +0 -27
- package/configure/node_modules/slate-edit-table/dist/changes/removeRowByKey.js +0 -41
- package/configure/node_modules/slate-edit-table/dist/changes/removeRowByKey.js.flow +0 -30
- package/configure/node_modules/slate-edit-table/dist/changes/removeTable.js +0 -26
- package/configure/node_modules/slate-edit-table/dist/changes/removeTable.js.flow +0 -17
- package/configure/node_modules/slate-edit-table/dist/changes/removeTableByKey.js +0 -56
- package/configure/node_modules/slate-edit-table/dist/changes/removeTableByKey.js.flow +0 -54
- package/configure/node_modules/slate-edit-table/dist/core.js +0 -88
- package/configure/node_modules/slate-edit-table/dist/core.js.flow +0 -94
- package/configure/node_modules/slate-edit-table/dist/handlers/index.js +0 -39
- package/configure/node_modules/slate-edit-table/dist/handlers/index.js.flow +0 -8
- package/configure/node_modules/slate-edit-table/dist/handlers/onBackspace.js +0 -82
- package/configure/node_modules/slate-edit-table/dist/handlers/onBackspace.js.flow +0 -87
- package/configure/node_modules/slate-edit-table/dist/handlers/onEnter.js +0 -34
- package/configure/node_modules/slate-edit-table/dist/handlers/onEnter.js.flow +0 -37
- package/configure/node_modules/slate-edit-table/dist/handlers/onKeyDown.js +0 -71
- package/configure/node_modules/slate-edit-table/dist/handlers/onKeyDown.js.flow +0 -56
- package/configure/node_modules/slate-edit-table/dist/handlers/onModEnter.js +0 -35
- package/configure/node_modules/slate-edit-table/dist/handlers/onModEnter.js.flow +0 -38
- package/configure/node_modules/slate-edit-table/dist/handlers/onTab.js +0 -56
- package/configure/node_modules/slate-edit-table/dist/handlers/onTab.js.flow +0 -51
- package/configure/node_modules/slate-edit-table/dist/handlers/onUpDown.js +0 -38
- package/configure/node_modules/slate-edit-table/dist/handlers/onUpDown.js.flow +0 -41
- package/configure/node_modules/slate-edit-table/dist/index.js +0 -36
- package/configure/node_modules/slate-edit-table/dist/index.js.flow +0 -27
- package/configure/node_modules/slate-edit-table/dist/options.js +0 -61
- package/configure/node_modules/slate-edit-table/dist/options.js.flow +0 -42
- package/configure/node_modules/slate-edit-table/dist/utils/TablePosition.js +0 -306
- package/configure/node_modules/slate-edit-table/dist/utils/TablePosition.js.flow +0 -211
- package/configure/node_modules/slate-edit-table/dist/utils/createCell.js +0 -30
- package/configure/node_modules/slate-edit-table/dist/utils/createCell.js.flow +0 -26
- package/configure/node_modules/slate-edit-table/dist/utils/createRow.js +0 -30
- package/configure/node_modules/slate-edit-table/dist/utils/createRow.js.flow +0 -28
- package/configure/node_modules/slate-edit-table/dist/utils/createTable.js +0 -30
- package/configure/node_modules/slate-edit-table/dist/utils/createTable.js.flow +0 -33
- package/configure/node_modules/slate-edit-table/dist/utils/forEachCells.js +0 -21
- package/configure/node_modules/slate-edit-table/dist/utils/forEachCells.js.flow +0 -22
- package/configure/node_modules/slate-edit-table/dist/utils/getCellsAtColumn.js +0 -22
- package/configure/node_modules/slate-edit-table/dist/utils/getCellsAtColumn.js.flow +0 -19
- package/configure/node_modules/slate-edit-table/dist/utils/getCellsAtRow.js +0 -20
- package/configure/node_modules/slate-edit-table/dist/utils/getCellsAtRow.js.flow +0 -19
- package/configure/node_modules/slate-edit-table/dist/utils/getPosition.js +0 -24
- package/configure/node_modules/slate-edit-table/dist/utils/getPosition.js.flow +0 -19
- package/configure/node_modules/slate-edit-table/dist/utils/getPositionByKey.js +0 -26
- package/configure/node_modules/slate-edit-table/dist/utils/getPositionByKey.js.flow +0 -21
- package/configure/node_modules/slate-edit-table/dist/utils/getRow.js +0 -24
- package/configure/node_modules/slate-edit-table/dist/utils/getRow.js.flow +0 -19
- package/configure/node_modules/slate-edit-table/dist/utils/index.js +0 -64
- package/configure/node_modules/slate-edit-table/dist/utils/index.js.flow +0 -25
- package/configure/node_modules/slate-edit-table/dist/utils/isSelectionInTable.js +0 -34
- package/configure/node_modules/slate-edit-table/dist/utils/isSelectionInTable.js.flow +0 -27
- package/configure/node_modules/slate-edit-table/dist/utils/isSelectionOutOfTable.js +0 -30
- package/configure/node_modules/slate-edit-table/dist/utils/isSelectionOutOfTable.js.flow +0 -23
- package/configure/node_modules/slate-edit-table/dist/validation/index.js +0 -19
- package/configure/node_modules/slate-edit-table/dist/validation/index.js.flow +0 -4
- package/configure/node_modules/slate-edit-table/dist/validation/schema.js +0 -101
- package/configure/node_modules/slate-edit-table/dist/validation/schema.js.flow +0 -98
- package/configure/node_modules/slate-edit-table/dist/validation/validateNode.js +0 -56
- package/configure/node_modules/slate-edit-table/dist/validation/validateNode.js.flow +0 -49
- package/configure/node_modules/slate-edit-table/package.json +0 -69
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = exports.MultipleChoice = exports.Choice = void 0;
|
|
9
|
-
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
|
|
12
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
|
-
|
|
14
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
15
|
-
|
|
16
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
17
|
-
|
|
18
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
19
|
-
|
|
20
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
21
|
-
|
|
22
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
23
|
-
|
|
24
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
25
|
-
|
|
26
|
-
var _react = _interopRequireDefault(require("react"));
|
|
27
|
-
|
|
28
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
29
|
-
|
|
30
|
-
var _choiceInput = _interopRequireDefault(require("./choice-input"));
|
|
31
|
-
|
|
32
|
-
var _correctAnswerToggle = _interopRequireDefault(require("@pie-lib/correct-answer-toggle"));
|
|
33
|
-
|
|
34
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
35
|
-
|
|
36
|
-
var _styles = require("@material-ui/core/styles");
|
|
37
|
-
|
|
38
|
-
var _renderUi = require("@pie-lib/render-ui");
|
|
39
|
-
|
|
40
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
41
|
-
|
|
42
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
43
|
-
|
|
44
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
45
|
-
|
|
46
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
47
|
-
|
|
48
|
-
// Choice
|
|
49
|
-
var Choice = /*#__PURE__*/function (_React$Component) {
|
|
50
|
-
(0, _inherits2["default"])(Choice, _React$Component);
|
|
51
|
-
|
|
52
|
-
var _super = _createSuper(Choice);
|
|
53
|
-
|
|
54
|
-
function Choice() {
|
|
55
|
-
var _this;
|
|
56
|
-
|
|
57
|
-
(0, _classCallCheck2["default"])(this, Choice);
|
|
58
|
-
|
|
59
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
60
|
-
args[_key] = arguments[_key];
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
64
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (choice) {
|
|
65
|
-
var _this$props = _this.props,
|
|
66
|
-
disabled = _this$props.disabled,
|
|
67
|
-
onChoiceChanged = _this$props.onChoiceChanged;
|
|
68
|
-
|
|
69
|
-
if (!disabled) {
|
|
70
|
-
onChoiceChanged(choice);
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
return _this;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
(0, _createClass2["default"])(Choice, [{
|
|
77
|
-
key: "render",
|
|
78
|
-
value: function render() {
|
|
79
|
-
var _this$props2 = this.props,
|
|
80
|
-
choice = _this$props2.choice,
|
|
81
|
-
index = _this$props2.index,
|
|
82
|
-
choicesLength = _this$props2.choicesLength,
|
|
83
|
-
showCorrect = _this$props2.showCorrect,
|
|
84
|
-
isEvaluateMode = _this$props2.isEvaluateMode,
|
|
85
|
-
choiceMode = _this$props2.choiceMode,
|
|
86
|
-
disabled = _this$props2.disabled,
|
|
87
|
-
checked = _this$props2.checked,
|
|
88
|
-
correctness = _this$props2.correctness,
|
|
89
|
-
displayKey = _this$props2.displayKey,
|
|
90
|
-
classes = _this$props2.classes,
|
|
91
|
-
choicesLayout = _this$props2.choicesLayout,
|
|
92
|
-
gridColumns = _this$props2.gridColumns;
|
|
93
|
-
var choiceClass = 'choice' + (index === choicesLength - 1 ? ' last' : '');
|
|
94
|
-
var feedback = !isEvaluateMode || showCorrect ? '' : choice.feedback;
|
|
95
|
-
|
|
96
|
-
var choiceProps = _objectSpread(_objectSpread({}, choice), {}, {
|
|
97
|
-
checked: checked,
|
|
98
|
-
choiceMode: choiceMode,
|
|
99
|
-
disabled: disabled,
|
|
100
|
-
feedback: feedback,
|
|
101
|
-
correctness: correctness,
|
|
102
|
-
displayKey: displayKey,
|
|
103
|
-
choicesLayout: choicesLayout,
|
|
104
|
-
gridColumns: gridColumns,
|
|
105
|
-
onChange: this.onChange
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
var names = (0, _classnames["default"])(classes.choice, (0, _defineProperty2["default"])({}, classes.noBorder, index === choicesLength - 1 || this.props.choicesLayout !== 'vertical'));
|
|
109
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
110
|
-
className: choiceClass,
|
|
111
|
-
key: index
|
|
112
|
-
}, /*#__PURE__*/_react["default"].createElement(_choiceInput["default"], (0, _extends2["default"])({}, choiceProps, {
|
|
113
|
-
className: names
|
|
114
|
-
})));
|
|
115
|
-
}
|
|
116
|
-
}]);
|
|
117
|
-
return Choice;
|
|
118
|
-
}(_react["default"].Component);
|
|
119
|
-
|
|
120
|
-
exports.Choice = Choice;
|
|
121
|
-
Choice.propTypes = {
|
|
122
|
-
choiceMode: _propTypes["default"].oneOf(['radio', 'checkbox']),
|
|
123
|
-
choice: _propTypes["default"].object,
|
|
124
|
-
disabled: _propTypes["default"].bool.isRequired,
|
|
125
|
-
onChoiceChanged: _propTypes["default"].func.isRequired,
|
|
126
|
-
classes: _propTypes["default"].object.isRequired,
|
|
127
|
-
index: _propTypes["default"].number,
|
|
128
|
-
choicesLength: _propTypes["default"].number,
|
|
129
|
-
showCorrect: _propTypes["default"].bool,
|
|
130
|
-
isEvaluateMode: _propTypes["default"].bool,
|
|
131
|
-
checked: _propTypes["default"].bool,
|
|
132
|
-
correctness: _propTypes["default"].string,
|
|
133
|
-
displayKey: _propTypes["default"].string,
|
|
134
|
-
choicesLayout: _propTypes["default"].oneOf(['vertical', 'grid', 'horizontal']),
|
|
135
|
-
gridColumns: _propTypes["default"].string
|
|
136
|
-
};
|
|
137
|
-
var StyledChoice = (0, _styles.withStyles)({
|
|
138
|
-
choice: {
|
|
139
|
-
paddingTop: '20px',
|
|
140
|
-
paddingBottom: '10px',
|
|
141
|
-
borderBottom: '1px solid #E0DEE0'
|
|
142
|
-
},
|
|
143
|
-
noBorder: {
|
|
144
|
-
borderBottom: 'none'
|
|
145
|
-
}
|
|
146
|
-
})(Choice); // MultipleChoice
|
|
147
|
-
|
|
148
|
-
var styles = {
|
|
149
|
-
corespringChoice: {
|
|
150
|
-
backgroundColor: _renderUi.color.background(),
|
|
151
|
-
padding: '5px',
|
|
152
|
-
'& *': {
|
|
153
|
-
'-webkit-font-smoothing': 'antialiased'
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
horizontalLayout: {
|
|
157
|
-
display: 'flex',
|
|
158
|
-
flexDirection: 'row',
|
|
159
|
-
flexWrap: 'wrap'
|
|
160
|
-
},
|
|
161
|
-
gridLayout: {
|
|
162
|
-
display: 'grid'
|
|
163
|
-
},
|
|
164
|
-
getColumns: function getColumns(columns) {
|
|
165
|
-
return columns > 1 ? {
|
|
166
|
-
gridTemplateColumns: "repeat(".concat(columns, ", 1fr)")
|
|
167
|
-
} : undefined;
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
var MultipleChoice = /*#__PURE__*/function (_React$Component2) {
|
|
172
|
-
(0, _inherits2["default"])(MultipleChoice, _React$Component2);
|
|
173
|
-
|
|
174
|
-
var _super2 = _createSuper(MultipleChoice);
|
|
175
|
-
|
|
176
|
-
function MultipleChoice(props) {
|
|
177
|
-
var _this2;
|
|
178
|
-
|
|
179
|
-
(0, _classCallCheck2["default"])(this, MultipleChoice);
|
|
180
|
-
_this2 = _super2.call(this, props);
|
|
181
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this2), "getCorrectness", function () {
|
|
182
|
-
var choice = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
183
|
-
var isCorrect = choice.correct;
|
|
184
|
-
|
|
185
|
-
var isChecked = _this2.isSelected(choice.value);
|
|
186
|
-
|
|
187
|
-
if (_this2.state.showCorrect) {
|
|
188
|
-
return isCorrect ? 'correct' : undefined;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
if (isCorrect) {
|
|
192
|
-
if (isChecked) {
|
|
193
|
-
// A correct answer is selected: marked with a green checkmark
|
|
194
|
-
return 'correct';
|
|
195
|
-
} else {
|
|
196
|
-
// A correct answer is NOT selected: marked with an orange X
|
|
197
|
-
return 'incorrect';
|
|
198
|
-
}
|
|
199
|
-
} else {
|
|
200
|
-
if (isChecked) {
|
|
201
|
-
// An incorrect answer is selected: marked with an orange X
|
|
202
|
-
return 'incorrect';
|
|
203
|
-
} else {
|
|
204
|
-
// An incorrect answer is NOT selected: not marked
|
|
205
|
-
return undefined;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
});
|
|
209
|
-
_this2.state = {
|
|
210
|
-
showCorrect: false
|
|
211
|
-
};
|
|
212
|
-
_this2.onToggle = _this2.onToggle.bind((0, _assertThisInitialized2["default"])(_this2));
|
|
213
|
-
return _this2;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
(0, _createClass2["default"])(MultipleChoice, [{
|
|
217
|
-
key: "onToggle",
|
|
218
|
-
value: function onToggle() {
|
|
219
|
-
if (this.props.mode === 'evaluate') {
|
|
220
|
-
this.setState({
|
|
221
|
-
showCorrect: !this.state.showCorrect
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}, {
|
|
226
|
-
key: "UNSAFE_componentWillReceiveProps",
|
|
227
|
-
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
228
|
-
if (!nextProps.correctResponse) {
|
|
229
|
-
this.setState({
|
|
230
|
-
showCorrect: false
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}, {
|
|
235
|
-
key: "isSelected",
|
|
236
|
-
value: function isSelected(value) {
|
|
237
|
-
var sessionValue = this.props.session && this.props.session.value;
|
|
238
|
-
return sessionValue && sessionValue.indexOf && sessionValue.indexOf(value) >= 0;
|
|
239
|
-
}
|
|
240
|
-
}, {
|
|
241
|
-
key: "indexToSymbol",
|
|
242
|
-
value: function indexToSymbol(index) {
|
|
243
|
-
if (this.props.keyMode === 'numbers') {
|
|
244
|
-
return "".concat(index + 1);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
if (this.props.keyMode === 'letters') {
|
|
248
|
-
return String.fromCharCode(97 + index).toUpperCase();
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
return '';
|
|
252
|
-
}
|
|
253
|
-
}, {
|
|
254
|
-
key: "render",
|
|
255
|
-
value: function render() {
|
|
256
|
-
var _this3 = this;
|
|
257
|
-
|
|
258
|
-
var _this$props3 = this.props,
|
|
259
|
-
mode = _this$props3.mode,
|
|
260
|
-
disabled = _this$props3.disabled,
|
|
261
|
-
_this$props3$choices = _this$props3.choices,
|
|
262
|
-
choices = _this$props3$choices === void 0 ? [] : _this$props3$choices,
|
|
263
|
-
choiceMode = _this$props3.choiceMode,
|
|
264
|
-
prompt = _this$props3.prompt,
|
|
265
|
-
onChoiceChanged = _this$props3.onChoiceChanged,
|
|
266
|
-
responseCorrect = _this$props3.responseCorrect,
|
|
267
|
-
teacherInstructions = _this$props3.teacherInstructions,
|
|
268
|
-
classes = _this$props3.classes;
|
|
269
|
-
var showCorrect = this.state.showCorrect;
|
|
270
|
-
var isEvaluateMode = mode === 'evaluate';
|
|
271
|
-
var showCorrectAnswerToggle = isEvaluateMode && !responseCorrect;
|
|
272
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
273
|
-
className: classes.corespringChoice
|
|
274
|
-
}, teacherInstructions && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_renderUi.Collapsible, {
|
|
275
|
-
labels: {
|
|
276
|
-
hidden: 'Show Teacher Instructions',
|
|
277
|
-
visible: 'Hide Teacher Instructions'
|
|
278
|
-
}
|
|
279
|
-
}, /*#__PURE__*/_react["default"].createElement(_renderUi.PreviewPrompt, {
|
|
280
|
-
className: "prompt",
|
|
281
|
-
prompt: teacherInstructions
|
|
282
|
-
})), /*#__PURE__*/_react["default"].createElement("br", null)), /*#__PURE__*/_react["default"].createElement(_correctAnswerToggle["default"], {
|
|
283
|
-
show: showCorrectAnswerToggle,
|
|
284
|
-
toggled: showCorrect,
|
|
285
|
-
onToggle: this.onToggle.bind(this)
|
|
286
|
-
}), showCorrectAnswerToggle && /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement(_renderUi.PreviewPrompt, {
|
|
287
|
-
className: "prompt",
|
|
288
|
-
prompt: prompt
|
|
289
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
290
|
-
className: (0, _classnames["default"])((0, _defineProperty2["default"])({}, classes.gridLayout, this.props.choicesLayout === 'grid'), (0, _defineProperty2["default"])({}, classes.horizontalLayout, this.props.choicesLayout === 'horizontal')),
|
|
291
|
-
style: styles.getColumns(this.props.gridColumns)
|
|
292
|
-
}, choices.map(function (choice, index) {
|
|
293
|
-
return /*#__PURE__*/_react["default"].createElement(StyledChoice, {
|
|
294
|
-
choicesLayout: _this3.props.choicesLayout,
|
|
295
|
-
gridColumns: _this3.props.gridColumns,
|
|
296
|
-
key: "choice-".concat(index),
|
|
297
|
-
choice: choice,
|
|
298
|
-
index: index,
|
|
299
|
-
choicesLength: choices.length,
|
|
300
|
-
showCorrect: showCorrect,
|
|
301
|
-
isEvaluateMode: isEvaluateMode,
|
|
302
|
-
choiceMode: choiceMode,
|
|
303
|
-
disabled: disabled,
|
|
304
|
-
onChoiceChanged: onChoiceChanged,
|
|
305
|
-
checked: showCorrect ? choice.correct || false : _this3.isSelected(choice.value),
|
|
306
|
-
correctness: isEvaluateMode ? _this3.getCorrectness(choice) : undefined,
|
|
307
|
-
displayKey: _this3.indexToSymbol(index)
|
|
308
|
-
});
|
|
309
|
-
})));
|
|
310
|
-
}
|
|
311
|
-
}]);
|
|
312
|
-
return MultipleChoice;
|
|
313
|
-
}(_react["default"].Component);
|
|
314
|
-
|
|
315
|
-
exports.MultipleChoice = MultipleChoice;
|
|
316
|
-
(0, _defineProperty2["default"])(MultipleChoice, "propTypes", {
|
|
317
|
-
mode: _propTypes["default"].oneOf(['gather', 'view', 'evaluate']),
|
|
318
|
-
choiceMode: _propTypes["default"].oneOf(['radio', 'checkbox']),
|
|
319
|
-
keyMode: _propTypes["default"].oneOf(['numbers', 'letters', 'none']),
|
|
320
|
-
choices: _propTypes["default"].array,
|
|
321
|
-
prompt: _propTypes["default"].string,
|
|
322
|
-
teacherInstructions: _propTypes["default"].string,
|
|
323
|
-
session: _propTypes["default"].object,
|
|
324
|
-
disabled: _propTypes["default"].bool.isRequired,
|
|
325
|
-
onChoiceChanged: _propTypes["default"].func.isRequired,
|
|
326
|
-
responseCorrect: _propTypes["default"].bool,
|
|
327
|
-
classes: _propTypes["default"].object.isRequired,
|
|
328
|
-
correctResponse: _propTypes["default"].array,
|
|
329
|
-
choicesLayout: _propTypes["default"].oneOf(['vertical', 'grid', 'horizontal']),
|
|
330
|
-
gridColumns: _propTypes["default"].string
|
|
331
|
-
});
|
|
332
|
-
MultipleChoice.defaultProps = {
|
|
333
|
-
session: {
|
|
334
|
-
value: []
|
|
335
|
-
}
|
|
336
|
-
};
|
|
337
|
-
|
|
338
|
-
var _default = (0, _styles.withStyles)(styles)(MultipleChoice);
|
|
339
|
-
|
|
340
|
-
exports["default"] = _default;
|
|
341
|
-
//# sourceMappingURL=multiple-choice.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/multiple-choice.jsx"],"names":["Choice","choice","props","disabled","onChoiceChanged","index","choicesLength","showCorrect","isEvaluateMode","choiceMode","checked","correctness","displayKey","classes","choicesLayout","gridColumns","choiceClass","feedback","choiceProps","onChange","names","noBorder","React","Component","propTypes","PropTypes","oneOf","object","bool","isRequired","func","number","string","StyledChoice","paddingTop","paddingBottom","borderBottom","styles","corespringChoice","backgroundColor","color","background","padding","horizontalLayout","display","flexDirection","flexWrap","gridLayout","getColumns","columns","gridTemplateColumns","undefined","MultipleChoice","isCorrect","correct","isChecked","isSelected","value","state","onToggle","bind","mode","setState","nextProps","correctResponse","sessionValue","session","indexOf","keyMode","String","fromCharCode","toUpperCase","choices","prompt","responseCorrect","teacherInstructions","showCorrectAnswerToggle","hidden","visible","map","length","getCorrectness","indexToSymbol","array","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA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A,OAAO,EAAE3C,sBAAUC,KAAV,CAAgB,CAAC,SAAD,EAAY,SAAZ,EAAuB,MAAvB,CAAhB,CAHQ;AAIjB8C,EAAAA,OAAO,EAAE/C,sBAAU0D,KAJF;AAKjBV,EAAAA,MAAM,EAAEhD,sBAAUO,MALD;AAMjB2C,EAAAA,mBAAmB,EAAElD,sBAAUO,MANd;AAOjBkC,EAAAA,OAAO,EAAEzC,sBAAUE,MAPF;AAQjBxB,EAAAA,QAAQ,EAAEsB,sBAAUG,IAAV,CAAeC,UARR;AASjBzB,EAAAA,eAAe,EAAEqB,sBAAUK,IAAV,CAAeD,UATf;AAUjB6C,EAAAA,eAAe,EAAEjD,sBAAUG,IAVV;AAWjBf,EAAAA,OAAO,EAAEY,sBAAUE,MAAV,CAAiBE,UAXT;AAYjBmC,EAAAA,eAAe,EAAEvC,sBAAU0D,KAZV;AAajBrE,EAAAA,aAAa,EAAEW,sBAAUC,KAAV,CAAgB,CAAC,UAAD,EAAa,MAAb,EAAqB,YAArB,CAAhB,CAbE;AAcjBX,EAAAA,WAAW,EAAEU,sBAAUO;AAdN,C;AA2JrBoB,cAAc,CAACgC,YAAf,GAA8B;AAC5BlB,EAAAA,OAAO,EAAE;AACPT,IAAAA,KAAK,EAAE;AADA;AADmB,CAA9B;;eAMe,wBAAWpB,MAAX,EAAmBe,cAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ChoiceInput from './choice-input';\nimport CorrectAnswerToggle from '@pie-lib/correct-answer-toggle';\nimport classNames from 'classnames';\nimport { withStyles } from '@material-ui/core/styles';\nimport { color, Collapsible , PreviewPrompt} from '@pie-lib/render-ui';\n\n// Choice\n\nexport class Choice extends React.Component {\n onChange = (choice) => {\n const { disabled, onChoiceChanged } = this.props;\n\n if (!disabled) {\n onChoiceChanged(choice);\n }\n };\n\n render() {\n const {\n choice,\n index,\n choicesLength,\n showCorrect,\n isEvaluateMode,\n choiceMode,\n disabled,\n checked,\n correctness,\n displayKey,\n classes,\n choicesLayout,\n gridColumns\n } = this.props;\n const choiceClass = 'choice' + (index === choicesLength - 1 ? ' last' : '');\n\n const feedback = !isEvaluateMode || showCorrect ? '' : choice.feedback;\n\n const choiceProps = {\n ...choice,\n checked,\n choiceMode,\n disabled,\n feedback,\n correctness,\n displayKey,\n choicesLayout,\n gridColumns,\n onChange: this.onChange,\n };\n\n const names = classNames(classes.choice, {\n [classes.noBorder]: (index === choicesLength - 1) || this.props.choicesLayout !== 'vertical'\n });\n\n return (\n <div className={choiceClass} key={index}>\n <ChoiceInput {...choiceProps} className={names} />\n </div>\n );\n }\n}\n\nChoice.propTypes = {\n choiceMode: PropTypes.oneOf(['radio', 'checkbox']),\n choice: PropTypes.object,\n disabled: PropTypes.bool.isRequired,\n onChoiceChanged: PropTypes.func.isRequired,\n classes: PropTypes.object.isRequired,\n index: PropTypes.number,\n choicesLength: PropTypes.number,\n showCorrect: PropTypes.bool,\n isEvaluateMode: PropTypes.bool,\n checked: PropTypes.bool,\n correctness: PropTypes.string,\n displayKey: PropTypes.string,\n choicesLayout: PropTypes.oneOf(['vertical', 'grid', 'horizontal']),\n gridColumns: PropTypes.string\n};\n\nconst StyledChoice = withStyles({\n choice: {\n paddingTop: '20px',\n paddingBottom: '10px',\n borderBottom: '1px solid #E0DEE0',\n },\n noBorder: {\n borderBottom: 'none',\n }\n})(Choice);\n\n// MultipleChoice\n\nconst styles = {\n corespringChoice: {\n backgroundColor: color.background(),\n padding: '5px',\n '& *': {\n '-webkit-font-smoothing': 'antialiased',\n },\n },\n horizontalLayout: {\n display: 'flex',\n flexDirection: 'row',\n flexWrap: 'wrap'\n },\n gridLayout: {\n display: 'grid'\n },\n getColumns: function(columns) {\n return columns > 1 ? {gridTemplateColumns: `repeat(${columns}, 1fr)`} : undefined;\n }\n};\n\nexport class MultipleChoice extends React.Component {\n static propTypes = {\n mode: PropTypes.oneOf(['gather', 'view', 'evaluate']),\n choiceMode: PropTypes.oneOf(['radio', 'checkbox']),\n keyMode: PropTypes.oneOf(['numbers', 'letters', 'none']),\n choices: PropTypes.array,\n prompt: PropTypes.string,\n teacherInstructions: PropTypes.string,\n session: PropTypes.object,\n disabled: PropTypes.bool.isRequired,\n onChoiceChanged: PropTypes.func.isRequired,\n responseCorrect: PropTypes.bool,\n classes: PropTypes.object.isRequired,\n correctResponse: PropTypes.array,\n choicesLayout: PropTypes.oneOf(['vertical', 'grid', 'horizontal']),\n gridColumns: PropTypes.string\n };\n\n constructor(props) {\n super(props);\n\n this.state = {\n showCorrect: false,\n };\n\n this.onToggle = this.onToggle.bind(this);\n }\n\n onToggle() {\n if (this.props.mode === 'evaluate') {\n this.setState({ showCorrect: !this.state.showCorrect });\n }\n }\n\n UNSAFE_componentWillReceiveProps(nextProps) {\n if (!nextProps.correctResponse) {\n this.setState({ showCorrect: false });\n }\n }\n\n isSelected(value) {\n const sessionValue = this.props.session && this.props.session.value;\n\n return (\n sessionValue && sessionValue.indexOf && sessionValue.indexOf(value) >= 0\n );\n }\n\n indexToSymbol(index) {\n if (this.props.keyMode === 'numbers') {\n return `${index + 1}`;\n }\n\n if (this.props.keyMode === 'letters') {\n return String.fromCharCode(97 + index).toUpperCase();\n }\n\n return '';\n }\n\n getCorrectness = (choice = {}) => {\n const isCorrect = choice.correct;\n const isChecked = this.isSelected(choice.value);\n\n if (this.state.showCorrect) {\n return isCorrect ? 'correct' : undefined;\n }\n\n if (isCorrect) {\n if (isChecked) {\n // A correct answer is selected: marked with a green checkmark\n return 'correct';\n } else {\n // A correct answer is NOT selected: marked with an orange X\n return 'incorrect';\n }\n } else {\n if (isChecked) {\n // An incorrect answer is selected: marked with an orange X\n return 'incorrect';\n } else {\n // An incorrect answer is NOT selected: not marked\n return undefined;\n }\n }\n };\n\n render() {\n const {\n mode,\n disabled,\n choices = [],\n choiceMode,\n prompt,\n onChoiceChanged,\n responseCorrect,\n teacherInstructions,\n classes,\n } = this.props;\n const { showCorrect } = this.state;\n const isEvaluateMode = mode === 'evaluate';\n const showCorrectAnswerToggle = isEvaluateMode && !responseCorrect;\n \n return (\n <div className={classes.corespringChoice}>\n {teacherInstructions && (\n <React.Fragment>\n <Collapsible\n labels={{\n hidden: 'Show Teacher Instructions',\n visible: 'Hide Teacher Instructions',\n }}\n >\n <PreviewPrompt className=\"prompt\" prompt={teacherInstructions} />\n </Collapsible>\n <br />\n </React.Fragment>\n )}\n <CorrectAnswerToggle\n show={showCorrectAnswerToggle}\n toggled={showCorrect}\n onToggle={this.onToggle.bind(this)}\n />\n {showCorrectAnswerToggle && <br />}\n <PreviewPrompt className=\"prompt\" prompt={prompt}/>\n <div className={classNames({ [classes.gridLayout]: this.props.choicesLayout === 'grid'}, {[classes.horizontalLayout]: this.props.choicesLayout === 'horizontal' })} style={styles.getColumns(this.props.gridColumns)}>\n {choices.map((choice, index) => (\n <StyledChoice\n choicesLayout={this.props.choicesLayout}\n gridColumns={this.props.gridColumns}\n key={`choice-${index}`}\n choice={choice}\n index={index}\n choicesLength={choices.length}\n showCorrect={showCorrect}\n isEvaluateMode={isEvaluateMode}\n choiceMode={choiceMode}\n disabled={disabled}\n onChoiceChanged={onChoiceChanged}\n checked={\n showCorrect\n ? choice.correct || false\n : this.isSelected(choice.value)\n }\n correctness={\n isEvaluateMode ? this.getCorrectness(choice) : undefined\n }\n displayKey={this.indexToSymbol(index)}\n />\n ))}\n </div>\n </div>\n );\n }\n}\n\nMultipleChoice.defaultProps = {\n session: {\n value: [],\n },\n};\n\nexport default withStyles(styles)(MultipleChoice);\n"],"file":"multiple-choice.js"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.updateSessionValue = updateSessionValue;
|
|
9
|
-
|
|
10
|
-
var _concat = _interopRequireDefault(require("lodash/concat"));
|
|
11
|
-
|
|
12
|
-
var _uniq = _interopRequireDefault(require("lodash/uniq"));
|
|
13
|
-
|
|
14
|
-
var _without = _interopRequireDefault(require("lodash/without"));
|
|
15
|
-
|
|
16
|
-
function updateSessionValue(session, choiceMode, data) {
|
|
17
|
-
session.value = session.value || [];
|
|
18
|
-
|
|
19
|
-
if (choiceMode === 'checkbox') {
|
|
20
|
-
if (data.selected) {
|
|
21
|
-
session.value = (0, _uniq["default"])((0, _concat["default"])(session.value, [data.value]));
|
|
22
|
-
} else {
|
|
23
|
-
session.value = (0, _without["default"])(session.value, data.value);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
if (choiceMode === 'radio') {
|
|
28
|
-
if (data.selected) {
|
|
29
|
-
session.value = [data.value];
|
|
30
|
-
} else {
|
|
31
|
-
session.value = [];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=session-updater.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/session-updater.js"],"names":["updateSessionValue","session","choiceMode","data","value","selected"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AAEO,SAASA,kBAAT,CAA4BC,OAA5B,EAAqCC,UAArC,EAAiDC,IAAjD,EAAuD;AAC5DF,EAAAA,OAAO,CAACG,KAAR,GAAgBH,OAAO,CAACG,KAAR,IAAiB,EAAjC;;AACA,MAAIF,UAAU,KAAK,UAAnB,EAA+B;AAC7B,QAAIC,IAAI,CAACE,QAAT,EAAmB;AACjBJ,MAAAA,OAAO,CAACG,KAAR,GAAgB,sBAAK,wBAAOH,OAAO,CAACG,KAAf,EAAsB,CAACD,IAAI,CAACC,KAAN,CAAtB,CAAL,CAAhB;AACD,KAFD,MAEO;AACLH,MAAAA,OAAO,CAACG,KAAR,GAAgB,yBAAQH,OAAO,CAACG,KAAhB,EAAuBD,IAAI,CAACC,KAA5B,CAAhB;AACD;AACF;;AAGD,MAAIF,UAAU,KAAK,OAAnB,EAA4B;AAC1B,QAAIC,IAAI,CAACE,QAAT,EAAmB;AACjBJ,MAAAA,OAAO,CAACG,KAAR,GAAgB,CAACD,IAAI,CAACC,KAAN,CAAhB;AACD,KAFD,MAEO;AACLH,MAAAA,OAAO,CAACG,KAAR,GAAgB,EAAhB;AACD;AACF;AACF","sourcesContent":["import concat from 'lodash/concat';\nimport uniq from 'lodash/uniq';\nimport without from 'lodash/without';\n\nexport function updateSessionValue(session, choiceMode, data) {\n session.value = session.value || [];\n if (choiceMode === 'checkbox') {\n if (data.selected) {\n session.value = uniq(concat(session.value, [data.value]));\n } else {\n session.value = without(session.value, data.value);\n }\n }\n\n\n if (choiceMode === 'radio') {\n if (data.selected) {\n session.value = [data.value]\n } else {\n session.value = [];\n }\n }\n}\n"],"file":"session-updater.js"}
|