@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,113 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = exports.Tabs = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _Tabs = _interopRequireDefault(require("@material-ui/core/Tabs"));
|
|
11
|
-
|
|
12
|
-
var _Tab = _interopRequireDefault(require("@material-ui/core/Tab"));
|
|
13
|
-
|
|
14
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
-
|
|
16
|
-
var _core = require("@material-ui/core");
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
20
|
-
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
21
|
-
|
|
22
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
|
-
|
|
24
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
25
|
-
|
|
26
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
27
|
-
|
|
28
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
29
|
-
|
|
30
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
31
|
-
|
|
32
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
33
|
-
|
|
34
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
35
|
-
|
|
36
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37
|
-
|
|
38
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
39
|
-
|
|
40
|
-
var Tabs =
|
|
41
|
-
/*#__PURE__*/
|
|
42
|
-
function (_React$Component) {
|
|
43
|
-
_inherits(Tabs, _React$Component);
|
|
44
|
-
|
|
45
|
-
function Tabs(props) {
|
|
46
|
-
var _this;
|
|
47
|
-
|
|
48
|
-
_classCallCheck(this, Tabs);
|
|
49
|
-
|
|
50
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(Tabs).call(this, props));
|
|
51
|
-
|
|
52
|
-
_defineProperty(_assertThisInitialized(_this), "handleChange", function (event, value) {
|
|
53
|
-
_this.setState({
|
|
54
|
-
value: value
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
_this.state = {
|
|
59
|
-
value: 0
|
|
60
|
-
};
|
|
61
|
-
return _this;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
_createClass(Tabs, [{
|
|
65
|
-
key: "render",
|
|
66
|
-
value: function render() {
|
|
67
|
-
var value = this.state.value;
|
|
68
|
-
var _this$props = this.props,
|
|
69
|
-
children = _this$props.children,
|
|
70
|
-
className = _this$props.className,
|
|
71
|
-
contentClassName = _this$props.contentClassName,
|
|
72
|
-
classes = _this$props.classes;
|
|
73
|
-
var tabClasses = {
|
|
74
|
-
root: classes.tabRoot
|
|
75
|
-
};
|
|
76
|
-
return _react["default"].createElement("div", {
|
|
77
|
-
className: className
|
|
78
|
-
}, _react["default"].createElement(_Tabs["default"], {
|
|
79
|
-
indicatorColor: "primary",
|
|
80
|
-
value: value,
|
|
81
|
-
onChange: this.handleChange
|
|
82
|
-
}, _react["default"].Children.map(children, function (c, index) {
|
|
83
|
-
return c && c.props.title ? _react["default"].createElement(_Tab["default"], {
|
|
84
|
-
classes: tabClasses,
|
|
85
|
-
key: index,
|
|
86
|
-
label: c.props.title
|
|
87
|
-
}) : null;
|
|
88
|
-
})), _react["default"].createElement("div", {
|
|
89
|
-
className: contentClassName
|
|
90
|
-
}, children[value]));
|
|
91
|
-
}
|
|
92
|
-
}]);
|
|
93
|
-
|
|
94
|
-
return Tabs;
|
|
95
|
-
}(_react["default"].Component);
|
|
96
|
-
|
|
97
|
-
exports.Tabs = Tabs;
|
|
98
|
-
|
|
99
|
-
_defineProperty(Tabs, "propTypes", {
|
|
100
|
-
classes: _propTypes["default"].object,
|
|
101
|
-
className: _propTypes["default"].string,
|
|
102
|
-
contentClassName: _propTypes["default"].string,
|
|
103
|
-
children: _propTypes["default"].oneOfType([_propTypes["default"].arrayOf(_propTypes["default"].node), _propTypes["default"].node]).isRequired
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
var _default = (0, _core.withStyles)(function () {
|
|
107
|
-
return {
|
|
108
|
-
tabRoot: {}
|
|
109
|
-
};
|
|
110
|
-
})(Tabs);
|
|
111
|
-
|
|
112
|
-
exports["default"] = _default;
|
|
113
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/tabs/index.jsx"],"names":["Tabs","props","event","value","setState","state","children","className","contentClassName","classes","tabClasses","root","tabRoot","handleChange","React","Children","map","c","index","title","Component","PropTypes","object","string","oneOfType","arrayOf","node","isRequired"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;IAEaA,I;;;;;AAQX,gBAAYC,KAAZ,EAAmB;AAAA;;AA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Ec,sBAAUE,MAFJ;AAGjBf,EAAAA,gBAAgB,EAAEa,sBAAUE,MAHX;AAIjBjB,EAAAA,QAAQ,EAAEe,sBAAUG,SAAV,CAAoB,CAACH,sBAAUI,OAAV,CAAkBJ,sBAAUK,IAA5B,CAAD,EAAoCL,sBAAUK,IAA9C,CAApB,EAAyEC;AAJlE,C;;eAwCN,sBAAW;AAAA,SAAO;AAC/Bf,IAAAA,OAAO,EAAE;AADsB,GAAP;AAAA,CAAX,EAEXZ,IAFW,C","sourcesContent":["import React from 'react';\n\nimport MuiTabs from '@material-ui/core/Tabs';\nimport MuiTab from '@material-ui/core/Tab';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@material-ui/core';\n\nexport class Tabs extends React.Component {\n static propTypes = {\n classes: PropTypes.object,\n className: PropTypes.string,\n contentClassName: PropTypes.string,\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired\n };\n\n constructor(props) {\n super(props);\n this.state = {\n value: 0\n };\n }\n\n handleChange = (event, value) => {\n this.setState({ value });\n };\n\n render() {\n const { value } = this.state;\n const { children, className, contentClassName, classes } = this.props;\n\n const tabClasses = {\n root: classes.tabRoot\n };\n return (\n <div className={className}>\n <MuiTabs indicatorColor=\"primary\" value={value} onChange={this.handleChange}>\n {React.Children.map(children, (c, index) =>\n c && c.props.title ? (\n <MuiTab classes={tabClasses} key={index} label={c.props.title} />\n ) : null\n )}\n </MuiTabs>\n <div className={contentClassName}>{children[value]}</div>\n </div>\n );\n }\n}\n\nexport default withStyles(() => ({\n tabRoot: {}\n}))(Tabs);\n"],"file":"index.js"}
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = exports.TagsInput = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
|
-
var _styles = require("@material-ui/core/styles");
|
|
13
|
-
|
|
14
|
-
var _uniq = _interopRequireDefault(require("lodash/uniq"));
|
|
15
|
-
|
|
16
|
-
var _Chip = _interopRequireDefault(require("@material-ui/core/Chip"));
|
|
17
|
-
|
|
18
|
-
var _muiBox = _interopRequireDefault(require("../mui-box"));
|
|
19
|
-
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
-
|
|
22
|
-
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
23
|
-
|
|
24
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
|
-
|
|
26
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
27
|
-
|
|
28
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
29
|
-
|
|
30
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
31
|
-
|
|
32
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
33
|
-
|
|
34
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
|
-
|
|
36
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
37
|
-
|
|
38
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
39
|
-
|
|
40
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
41
|
-
|
|
42
|
-
var ENTER = 13;
|
|
43
|
-
var Tag = (0, _styles.withStyles)(function () {
|
|
44
|
-
return {
|
|
45
|
-
tag: {
|
|
46
|
-
padding: '0px',
|
|
47
|
-
margin: '1px'
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
})(function (_ref) {
|
|
51
|
-
var classes = _ref.classes,
|
|
52
|
-
label = _ref.label,
|
|
53
|
-
onDelete = _ref.onDelete;
|
|
54
|
-
return _react["default"].createElement(_Chip["default"], {
|
|
55
|
-
className: classes.tag,
|
|
56
|
-
label: label,
|
|
57
|
-
onDelete: onDelete
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
Tag.propTypes = {
|
|
61
|
-
label: _propTypes["default"].string.isRequired,
|
|
62
|
-
onDelete: _propTypes["default"].func.isRequired
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
var TagsInput =
|
|
66
|
-
/*#__PURE__*/
|
|
67
|
-
function (_React$Component) {
|
|
68
|
-
_inherits(TagsInput, _React$Component);
|
|
69
|
-
|
|
70
|
-
function TagsInput(props) {
|
|
71
|
-
var _this;
|
|
72
|
-
|
|
73
|
-
_classCallCheck(this, TagsInput);
|
|
74
|
-
|
|
75
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(TagsInput).call(this, props));
|
|
76
|
-
|
|
77
|
-
_defineProperty(_assertThisInitialized(_this), "onFocus", function () {
|
|
78
|
-
_this.setState({
|
|
79
|
-
focused: true
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
_defineProperty(_assertThisInitialized(_this), "onBlur", function () {
|
|
84
|
-
_this.setState({
|
|
85
|
-
focused: false
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
_this.state = {
|
|
90
|
-
value: '',
|
|
91
|
-
focused: false
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
_this.onKeyDown = function (event) {
|
|
95
|
-
if (event.keyCode === ENTER && _this.state.value !== '') {
|
|
96
|
-
var tag = _this.state.value.trim();
|
|
97
|
-
|
|
98
|
-
var newTags = (0, _uniq["default"])(_this.props.tags.concat([tag]));
|
|
99
|
-
|
|
100
|
-
if (newTags.length !== _this.props.tags.length) {
|
|
101
|
-
_this.props.onChange(newTags);
|
|
102
|
-
|
|
103
|
-
_this.setState({
|
|
104
|
-
value: ''
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
_this.onChange = function (event) {
|
|
111
|
-
_this.setState({
|
|
112
|
-
value: event.target.value
|
|
113
|
-
});
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
_this.deleteTag = function (tag) {
|
|
117
|
-
var tags = _this.props.tags;
|
|
118
|
-
var tagIndex = tags.indexOf(tag);
|
|
119
|
-
|
|
120
|
-
if (tagIndex !== -1) {
|
|
121
|
-
tags.splice(tagIndex, 1);
|
|
122
|
-
|
|
123
|
-
_this.props.onChange(tags);
|
|
124
|
-
|
|
125
|
-
_this.input.focus();
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
return _this;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
_createClass(TagsInput, [{
|
|
133
|
-
key: "render",
|
|
134
|
-
value: function render() {
|
|
135
|
-
var _this2 = this;
|
|
136
|
-
|
|
137
|
-
var _this$props = this.props,
|
|
138
|
-
classes = _this$props.classes,
|
|
139
|
-
tags = _this$props.tags;
|
|
140
|
-
return _react["default"].createElement(_muiBox["default"], {
|
|
141
|
-
focused: this.state.focused
|
|
142
|
-
}, _react["default"].createElement("div", {
|
|
143
|
-
className: classes.tagsInput
|
|
144
|
-
}, (tags || []).map(function (t, index) {
|
|
145
|
-
return _react["default"].createElement(Tag, {
|
|
146
|
-
key: index,
|
|
147
|
-
label: t,
|
|
148
|
-
onDelete: function onDelete() {
|
|
149
|
-
return _this2.deleteTag(t);
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
}), _react["default"].createElement("input", {
|
|
153
|
-
ref: function ref(r) {
|
|
154
|
-
return _this2.input = r;
|
|
155
|
-
},
|
|
156
|
-
onKeyDown: this.onKeyDown,
|
|
157
|
-
onChange: this.onChange,
|
|
158
|
-
className: classes.input,
|
|
159
|
-
value: this.state.value,
|
|
160
|
-
onFocus: this.onFocus,
|
|
161
|
-
onBlur: this.onBlur,
|
|
162
|
-
type: "text"
|
|
163
|
-
})));
|
|
164
|
-
}
|
|
165
|
-
}]);
|
|
166
|
-
|
|
167
|
-
return TagsInput;
|
|
168
|
-
}(_react["default"].Component);
|
|
169
|
-
|
|
170
|
-
exports.TagsInput = TagsInput;
|
|
171
|
-
|
|
172
|
-
_defineProperty(TagsInput, "propTypes", {
|
|
173
|
-
classes: _propTypes["default"].object.isRequired,
|
|
174
|
-
tags: _propTypes["default"].arrayOf(_propTypes["default"].string).isRequired,
|
|
175
|
-
onChange: _propTypes["default"].func.isRequired
|
|
176
|
-
});
|
|
177
|
-
|
|
178
|
-
var styles = function styles(theme) {
|
|
179
|
-
return {
|
|
180
|
-
tagsInput: {
|
|
181
|
-
border: 'solid 0px white',
|
|
182
|
-
display: 'flex',
|
|
183
|
-
flexWrap: 'wrap'
|
|
184
|
-
},
|
|
185
|
-
input: {
|
|
186
|
-
padding: '2px',
|
|
187
|
-
margin: '1px',
|
|
188
|
-
minWidth: '30px',
|
|
189
|
-
width: '100%',
|
|
190
|
-
flex: '1',
|
|
191
|
-
border: 'solid 0px white',
|
|
192
|
-
height: '28px',
|
|
193
|
-
fontSize: theme.typography.fontSize,
|
|
194
|
-
fontFamily: theme.typography.fontFamily,
|
|
195
|
-
outline: 'none',
|
|
196
|
-
'&:focus': {
|
|
197
|
-
outline: 'none'
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
};
|
|
202
|
-
|
|
203
|
-
var _default = (0, _styles.withStyles)(styles)(TagsInput);
|
|
204
|
-
|
|
205
|
-
exports["default"] = _default;
|
|
206
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/tags-input/index.jsx"],"names":["ENTER","Tag","tag","padding","margin","classes","label","onDelete","propTypes","PropTypes","string","isRequired","func","TagsInput","props","setState","focused","state","value","onKeyDown","event","keyCode","trim","newTags","tags","concat","length","onChange","target","deleteTag","tagIndex","indexOf","splice","input","focus","tagsInput","map","t","index","r","onFocus","onBlur","React","Component","object","arrayOf","styles","theme","border","display","flexWrap","minWidth","width","flex","height","fontSize","typography","fontFamily","outline"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,KAAK,GAAG,EAAd;AAEA,IAAMC,GAAG,GAAG,wBAAW;AAAA,SAAO;AAC5BC,IAAAA,GAAG,EAAE;AACHC,MAAAA,OAAO,EAAE,KADN;AAEHC,MAAAA,MAAM,EAAE;AAFL;AADuB,GAAP;AAAA,CAAX,EAKR;AAAA,MAAGC,OAAH,QAAGA,OAAH;AAAA,MAAYC,KAAZ,QAAYA,KAAZ;AAAA,MAAmBC,QAAnB,QAAmBA,QAAnB;AAAA,SACF,gCAAC,gBA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port { withStyles } from '@material-ui/core/styles';\nimport uniq from 'lodash/uniq';\nimport Chip from '@material-ui/core/Chip';\nimport MuiBox from '../mui-box';\n\nconst ENTER = 13;\n\nconst Tag = withStyles(() => ({\n tag: {\n padding: '0px',\n margin: '1px'\n }\n}))(({ classes, label, onDelete }) => (\n <Chip className={classes.tag} label={label} onDelete={onDelete} />\n));\n\nTag.propTypes = {\n label: PropTypes.string.isRequired,\n onDelete: PropTypes.func.isRequired\n};\n\nexport class TagsInput extends React.Component {\n static propTypes = {\n classes: PropTypes.object.isRequired,\n tags: PropTypes.arrayOf(PropTypes.string).isRequired,\n onChange: PropTypes.func.isRequired\n };\n\n constructor(props) {\n super(props);\n this.state = {\n value: '',\n focused: false\n };\n\n this.onKeyDown = event => {\n if (event.keyCode === ENTER && this.state.value !== '') {\n const tag = this.state.value.trim();\n const newTags = uniq(this.props.tags.concat([tag]));\n\n if (newTags.length !== this.props.tags.length) {\n this.props.onChange(newTags);\n this.setState({ value: '' });\n }\n }\n };\n\n this.onChange = event => {\n this.setState({ value: event.target.value });\n };\n\n this.deleteTag = tag => {\n const { tags } = this.props;\n\n const tagIndex = tags.indexOf(tag);\n if (tagIndex !== -1) {\n tags.splice(tagIndex, 1);\n this.props.onChange(tags);\n this.input.focus();\n }\n };\n }\n\n onFocus = () => {\n this.setState({ focused: true });\n };\n\n onBlur = () => {\n this.setState({ focused: false });\n };\n\n render() {\n const { classes, tags } = this.props;\n return (\n <MuiBox focused={this.state.focused}>\n <div className={classes.tagsInput}>\n {(tags || []).map((t, index) => (\n <Tag key={index} label={t} onDelete={() => this.deleteTag(t)} />\n ))}\n <input\n ref={r => (this.input = r)}\n onKeyDown={this.onKeyDown}\n onChange={this.onChange}\n className={classes.input}\n value={this.state.value}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n type=\"text\"\n />\n </div>\n </MuiBox>\n );\n }\n}\n\nconst styles = theme => ({\n tagsInput: {\n border: 'solid 0px white',\n display: 'flex',\n flexWrap: 'wrap'\n },\n input: {\n padding: '2px',\n margin: '1px',\n minWidth: '30px',\n width: '100%',\n flex: '1',\n border: 'solid 0px white',\n height: '28px',\n fontSize: theme.typography.fontSize,\n fontFamily: theme.typography.fontFamily,\n outline: 'none',\n '&:focus': {\n outline: 'none'\n }\n }\n});\n\nexport default withStyles(styles)(TagsInput);\n"],"file":"index.js"}
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = exports.NChoice = void 0;
|
|
7
|
-
|
|
8
|
-
var _renderUi = require("@pie-lib/render-ui");
|
|
9
|
-
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
|
-
var _radioWithLabel = _interopRequireDefault(require("./radio-with-label"));
|
|
13
|
-
|
|
14
|
-
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
|
|
16
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
|
-
|
|
18
|
-
var _styles = require("@material-ui/core/styles");
|
|
19
|
-
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
-
|
|
22
|
-
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
23
|
-
|
|
24
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
|
-
|
|
26
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
27
|
-
|
|
28
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
29
|
-
|
|
30
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
31
|
-
|
|
32
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
33
|
-
|
|
34
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
|
-
|
|
36
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
37
|
-
|
|
38
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
39
|
-
|
|
40
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
41
|
-
|
|
42
|
-
var styles = function styles(theme) {
|
|
43
|
-
return {
|
|
44
|
-
group: {
|
|
45
|
-
display: 'flex',
|
|
46
|
-
flexWrap: 'wrap',
|
|
47
|
-
paddingLeft: 0,
|
|
48
|
-
marginTop: theme.spacing.unit
|
|
49
|
-
},
|
|
50
|
-
vertical: {
|
|
51
|
-
flexDirection: 'column'
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
var RawNChoice =
|
|
57
|
-
/*#__PURE__*/
|
|
58
|
-
function (_React$Component) {
|
|
59
|
-
_inherits(RawNChoice, _React$Component);
|
|
60
|
-
|
|
61
|
-
function RawNChoice() {
|
|
62
|
-
var _getPrototypeOf2;
|
|
63
|
-
|
|
64
|
-
var _this;
|
|
65
|
-
|
|
66
|
-
_classCallCheck(this, RawNChoice);
|
|
67
|
-
|
|
68
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
69
|
-
args[_key] = arguments[_key];
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(RawNChoice)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
73
|
-
|
|
74
|
-
_defineProperty(_assertThisInitialized(_this), "handleChange", function (event) {
|
|
75
|
-
_this.props.onChange(event.currentTarget.value);
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
return _this;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
_createClass(RawNChoice, [{
|
|
82
|
-
key: "render",
|
|
83
|
-
value: function render() {
|
|
84
|
-
var _this2 = this;
|
|
85
|
-
|
|
86
|
-
var _this$props = this.props,
|
|
87
|
-
header = _this$props.header,
|
|
88
|
-
className = _this$props.className,
|
|
89
|
-
classes = _this$props.classes,
|
|
90
|
-
customLabel = _this$props.customLabel,
|
|
91
|
-
opts = _this$props.opts,
|
|
92
|
-
value = _this$props.value,
|
|
93
|
-
direction = _this$props.direction;
|
|
94
|
-
var preppedOpts = opts.map(function (o) {
|
|
95
|
-
return typeof o === 'string' ? {
|
|
96
|
-
label: o,
|
|
97
|
-
value: o
|
|
98
|
-
} : o;
|
|
99
|
-
});
|
|
100
|
-
var LabelComponent = customLabel || _radioWithLabel["default"];
|
|
101
|
-
return _react["default"].createElement(_renderUi.InputContainer, {
|
|
102
|
-
label: header,
|
|
103
|
-
className: className
|
|
104
|
-
}, _react["default"].createElement("div", {
|
|
105
|
-
className: (0, _classnames["default"])(classes.group, classes[direction])
|
|
106
|
-
}, preppedOpts.map(function (o, index) {
|
|
107
|
-
return _react["default"].createElement(LabelComponent, {
|
|
108
|
-
value: o.value,
|
|
109
|
-
key: index,
|
|
110
|
-
checked: o.value === value,
|
|
111
|
-
onChange: _this2.handleChange,
|
|
112
|
-
label: o.label
|
|
113
|
-
});
|
|
114
|
-
})));
|
|
115
|
-
}
|
|
116
|
-
}]);
|
|
117
|
-
|
|
118
|
-
return RawNChoice;
|
|
119
|
-
}(_react["default"].Component);
|
|
120
|
-
|
|
121
|
-
_defineProperty(RawNChoice, "propTypes", {
|
|
122
|
-
header: _propTypes["default"].string.isRequired,
|
|
123
|
-
className: _propTypes["default"].string,
|
|
124
|
-
customLabel: _propTypes["default"].func,
|
|
125
|
-
opts: _propTypes["default"].array.isRequired,
|
|
126
|
-
value: _propTypes["default"].string,
|
|
127
|
-
onChange: _propTypes["default"].func.isRequired,
|
|
128
|
-
direction: _propTypes["default"].oneOf(['horizontal', 'vertical']),
|
|
129
|
-
classes: _propTypes["default"].object.isRequired
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
var NChoice = (0, _styles.withStyles)(styles)(RawNChoice);
|
|
133
|
-
exports.NChoice = NChoice;
|
|
134
|
-
|
|
135
|
-
var labelValue = _propTypes["default"].shape({
|
|
136
|
-
label: _propTypes["default"].string,
|
|
137
|
-
value: _propTypes["default"].string
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
var TwoChoice =
|
|
141
|
-
/*#__PURE__*/
|
|
142
|
-
function (_React$Component2) {
|
|
143
|
-
_inherits(TwoChoice, _React$Component2);
|
|
144
|
-
|
|
145
|
-
function TwoChoice() {
|
|
146
|
-
_classCallCheck(this, TwoChoice);
|
|
147
|
-
|
|
148
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(TwoChoice).apply(this, arguments));
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
_createClass(TwoChoice, [{
|
|
152
|
-
key: "render",
|
|
153
|
-
value: function render() {
|
|
154
|
-
var _this$props2 = this.props,
|
|
155
|
-
one = _this$props2.one,
|
|
156
|
-
two = _this$props2.two,
|
|
157
|
-
header = _this$props2.header,
|
|
158
|
-
className = _this$props2.className,
|
|
159
|
-
customLabel = _this$props2.customLabel,
|
|
160
|
-
value = _this$props2.value,
|
|
161
|
-
onChange = _this$props2.onChange;
|
|
162
|
-
var opts = [one, two];
|
|
163
|
-
return _react["default"].createElement(NChoice, {
|
|
164
|
-
customLabel: customLabel,
|
|
165
|
-
header: header,
|
|
166
|
-
className: className,
|
|
167
|
-
opts: opts,
|
|
168
|
-
value: value,
|
|
169
|
-
onChange: onChange
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
}]);
|
|
173
|
-
|
|
174
|
-
return TwoChoice;
|
|
175
|
-
}(_react["default"].Component);
|
|
176
|
-
|
|
177
|
-
_defineProperty(TwoChoice, "propTypes", {
|
|
178
|
-
header: _propTypes["default"].string.isRequired,
|
|
179
|
-
value: _propTypes["default"].string.isRequired,
|
|
180
|
-
onChange: _propTypes["default"].func.isRequired,
|
|
181
|
-
one: _propTypes["default"].oneOfType([labelValue, _propTypes["default"].string]),
|
|
182
|
-
two: _propTypes["default"].oneOfType([labelValue, _propTypes["default"].string]),
|
|
183
|
-
className: _propTypes["default"].string,
|
|
184
|
-
customLabel: _propTypes["default"].func
|
|
185
|
-
});
|
|
186
|
-
|
|
187
|
-
var _default = (0, _styles.withStyles)(styles)(TwoChoice);
|
|
188
|
-
|
|
189
|
-
exports["default"] = _default;
|
|
190
|
-
//# sourceMappingURL=two-choice.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/two-choice.jsx"],"names":["styles","theme","group","display","flexWrap","paddingLeft","marginTop","spacing","unit","vertical","flexDirection","RawNChoice","event","props","onChange","currentTarget","value","header","className","classes","customLabel","opts","direction","preppedOpts","map","o","label","LabelComponent","RadioWithLabel","index","handleChange","React","Component","PropTypes","string","isRequired","func","array","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,UACC+B,GADD,gBACCA,GADD;AAAA,UACMC,GADN,gBACMA,GADN;AAAA,UACW5B,MADX,gBACWA,MADX;AAAA,UACmBC,SADnB,gBACmBA,SADnB;AAAA,UAC8BE,WAD9B,gBAC8BA,WAD9B;AAAA,UAC2CJ,KAD3C,gBAC2CA,KAD3C;AAAA,UACkDF,QADlD,gBACkDA,QADlD;AAEP,UAAMO,IAAI,GAAG,CAACuB,GAAD,EAAMC,GAAN,CAAb;AAEA,aACE,gCAAC,OAAD;AACE,QAAA,WAAW,EAAEzB,WADf;AAEE,QAAA,MAAM,EAAEH,MAFV;AAGE,QAAA,SAAS,EAAEC,SAHb;AAIE,QAAA,IAAI,EAAEG,IAJR;AAKE,QAAA,KAAK,EAAEL,KALT;AAME,QAAA,QAAQ,EAAEF;AANZ,QADF;AAUD;;;;EAzBqBiB,kBAAMC,S;;gBAAxBW,S,eACe;AACjB1B,EAAAA,MAAM,EAAEgB,sBAAUC,MAAV,CAAiBC,UADR;AAEjBnB,EAAAA,KAAK,EAAEiB,sBAAUC,MAAV,CAAiBC,UAFP;AAGjBrB,EAAAA,QAAQ,EAAEmB,sBAAUG,IAAV,CAAeD,UAHR;AAIjBS,EAAAA,GAAG,EAAEX,sBAAUa,SAAV,CAAoB,CAACL,UAAD,EAAaR,sBAAUC,MAAvB,CAApB,CAJY;AAKjBW,EAAAA,GAAG,EAAEZ,sBAAUa,SAAV,CAAoB,CAACL,UAAD,EAAaR,sBAAUC,MAAvB,CAApB,CALY;AAMjBhB,EAAAA,SAAS,EAAEe,sBAAUC,MANJ;AAOjBd,EAAAA,WAAW,EAAEa,sBAAUG;AAPN,C;;eA2BN,wBAAWpC,MAAX,EAAmB2C,SAAnB,C","sourcesContent":["import { InputContainer } from '@pie-lib/render-ui';\nimport PropTypes from 'prop-types';\nimport RadioWithLabel from './radio-with-label';\nimport React from 'react';\nimport classNames from 'classnames';\nimport { withStyles } from '@material-ui/core/styles';\n\nconst styles = theme => ({\n group: {\n display: 'flex',\n flexWrap: 'wrap',\n paddingLeft: 0,\n marginTop: theme.spacing.unit\n },\n vertical: {\n flexDirection: 'column'\n }\n});\n\nclass RawNChoice extends React.Component {\n static propTypes = {\n header: PropTypes.string.isRequired,\n className: PropTypes.string,\n customLabel: PropTypes.func,\n opts: PropTypes.array.isRequired,\n value: PropTypes.string,\n onChange: PropTypes.func.isRequired,\n direction: PropTypes.oneOf(['horizontal', 'vertical']),\n classes: PropTypes.object.isRequired\n };\n\n handleChange = event => {\n this.props.onChange(event.currentTarget.value);\n };\n\n render() {\n const { header, className, classes, customLabel, opts, value, direction } = this.props;\n\n const preppedOpts = opts.map(o => {\n return typeof o === 'string' ? { label: o, value: o } : o;\n });\n const LabelComponent = customLabel || RadioWithLabel;\n\n return (\n <InputContainer label={header} className={className}>\n <div className={classNames(classes.group, classes[direction])}>\n {preppedOpts.map((o, index) => (\n <LabelComponent\n value={o.value}\n key={index}\n checked={o.value === value}\n onChange={this.handleChange}\n label={o.label}\n />\n ))}\n </div>\n </InputContainer>\n );\n }\n}\n\nexport const NChoice = withStyles(styles)(RawNChoice);\n\nconst labelValue = PropTypes.shape({ label: PropTypes.string, value: PropTypes.string });\n\nclass TwoChoice extends React.Component {\n static propTypes = {\n header: PropTypes.string.isRequired,\n value: PropTypes.string.isRequired,\n onChange: PropTypes.func.isRequired,\n one: PropTypes.oneOfType([labelValue, PropTypes.string]),\n two: PropTypes.oneOfType([labelValue, PropTypes.string]),\n className: PropTypes.string,\n customLabel: PropTypes.func\n };\n\n render() {\n const { one, two, header, className, customLabel, value, onChange } = this.props;\n const opts = [one, two];\n\n return (\n <NChoice\n customLabel={customLabel}\n header={header}\n className={className}\n opts={opts}\n value={value}\n onChange={onChange}\n />\n );\n }\n}\n\nexport default withStyles(styles)(TwoChoice);\n"],"file":"two-choice.js"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
|
-
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
15
|
-
|
|
16
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
|
-
|
|
18
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
19
|
-
|
|
20
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
21
|
-
|
|
22
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
23
|
-
|
|
24
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
25
|
-
|
|
26
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
27
|
-
|
|
28
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
|
-
|
|
30
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
|
-
|
|
32
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
33
|
-
|
|
34
|
-
var withStatefulModel = function withStatefulModel(Component) {
|
|
35
|
-
var Stateful =
|
|
36
|
-
/*#__PURE__*/
|
|
37
|
-
function (_React$Component) {
|
|
38
|
-
_inherits(Stateful, _React$Component);
|
|
39
|
-
|
|
40
|
-
function Stateful(props) {
|
|
41
|
-
var _this;
|
|
42
|
-
|
|
43
|
-
_classCallCheck(this, Stateful);
|
|
44
|
-
|
|
45
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(Stateful).call(this, props));
|
|
46
|
-
|
|
47
|
-
_defineProperty(_assertThisInitialized(_this), "onChange", function (model) {
|
|
48
|
-
_this.setState({
|
|
49
|
-
model: model
|
|
50
|
-
}, function () {
|
|
51
|
-
_this.props.onChange(_this.state.model);
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
_this.state = {
|
|
56
|
-
model: props.model
|
|
57
|
-
};
|
|
58
|
-
return _this;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
_createClass(Stateful, [{
|
|
62
|
-
key: "componentWillReceiveProps",
|
|
63
|
-
value: function componentWillReceiveProps(props) {
|
|
64
|
-
this.setState({
|
|
65
|
-
model: props.model
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
}, {
|
|
69
|
-
key: "render",
|
|
70
|
-
value: function render() {
|
|
71
|
-
return _react["default"].createElement(Component, {
|
|
72
|
-
model: this.state.model,
|
|
73
|
-
onChange: this.onChange
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
}]);
|
|
77
|
-
|
|
78
|
-
return Stateful;
|
|
79
|
-
}(_react["default"].Component);
|
|
80
|
-
|
|
81
|
-
_defineProperty(Stateful, "propTypes", {
|
|
82
|
-
model: _propTypes["default"].object.isRequired,
|
|
83
|
-
onChange: _propTypes["default"].func.isRequired
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
return Stateful;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
var _default = withStatefulModel;
|
|
90
|
-
exports["default"] = _default;
|
|
91
|
-
//# sourceMappingURL=with-stateful-model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/with-stateful-model.jsx"],"names":["withStatefulModel","Component","Stateful","props","model","setState","onChange","state","React","PropTypes","object","isRequired","func"],"mappings":";;;;;;;AAAA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAoB,CAAAC,SAAS,EAAI;AAAA,MAC/BC,QAD+B;AAAA;AAAA;AAAA;;AAOnC,sBAAYC,KAAZ,EAAmB;AAAA;;AAAA;;AACjB,oFAAMA,KAAN;;AADiB,iEAWR,UAAAC,KAAK,EAAI;AAClB,cAAKC,QAAL,CAAc;AAAED,UAAAA,KAAK,EAALA;AAAF,SAAd,EAAyB,YAAM;AAC7B,gBAAKD,KAAL,CAAWG,QAAX,CAAoB,MAAKC,KAAL,CAAWH,KAA/B;AACD,SAFD;AAGD,OAfkB;;AAEjB,YAAKG,KAAL,GAAa;AACXH,QAAAA,KAAK,EAAED,KAAK,CAACC;AADF,OAAb;AAFiB;AAKlB;;AAZkC;AAAA;AAAA,gDAcTD,KAdS,EAcF;AAC/B,aAAKE,QAAL,CAAc;AAAED,UAAAA,KAAK,EAAED,KAAK,CAACC;AAAf,SAAd;AACD;AAhBkC;AAAA;AAAA,+BAwB1B;AACP,eAAO,gCAAC,SAAD;AAAW,UAAA,KAAK,EAAE,KAAKG,KAAL,CAAWH,KAA7B;AAAoC,UAAA,QAAQ,EAAE,KAAKE;AAAnD,UAAP;AACD;AA1BkC;;AAAA;AAAA,IACdE,kBAAMP,SADQ;;AAAA,kBAC/BC,QAD+B,eAEhB;AACjBE,IAAAA,KAAK,EAAEK,sBAAUC,MAAV,CAAiBC,UADP;AAEjBL,IAAAA,QAAQ,EAAEG,sBAAUG,IAAV,CAAeD;AAFR,GAFgB;;AA6BrC,SAAOT,QAAP;AACD,CA9BD;;eAgCeF,iB","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst withStatefulModel = Component => {\n class Stateful extends React.Component {\n static propTypes = {\n model: PropTypes.object.isRequired,\n onChange: PropTypes.func.isRequired\n };\n\n constructor(props) {\n super(props);\n this.state = {\n model: props.model\n };\n }\n\n componentWillReceiveProps(props) {\n this.setState({ model: props.model });\n }\n\n onChange = model => {\n this.setState({ model }, () => {\n this.props.onChange(this.state.model);\n });\n };\n\n render() {\n return <Component model={this.state.model} onChange={this.onChange} />;\n }\n }\n\n return Stateful;\n};\n\nexport default withStatefulModel;\n"],"file":"with-stateful-model.js"}
|