@pie-element/match 12.2.2-beta.6 → 12.2.2-beta.8

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.
@@ -0,0 +1,321 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = exports.canDrag = exports.Row = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
+ var _react = _interopRequireDefault(require("react"));
11
+ var _propTypes = _interopRequireDefault(require("prop-types"));
12
+ var _styles = require("@mui/material/styles");
13
+ var _configUi = require("@pie-lib/config-ui");
14
+ var _DragHandle = _interopRequireDefault(require("@mui/icons-material/DragHandle"));
15
+ var _Radio = _interopRequireDefault(require("@mui/material/Radio"));
16
+ var _IconButton = _interopRequireDefault(require("@mui/material/IconButton"));
17
+ var _Delete = _interopRequireDefault(require("@mui/icons-material/Delete"));
18
+ var _core = require("@dnd-kit/core");
19
+ var _debug = _interopRequireDefault(require("debug"));
20
+ var _editableHtmlTipTap = _interopRequireWildcard(require("@pie-lib/editable-html-tip-tap"));
21
+ var _renderUi = require("@pie-lib/render-ui");
22
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
23
+ const log = (0, _debug.default)('@pie-element:categorize:configure:choice');
24
+ let canDrag = exports.canDrag = false;
25
+ const DragHandleStyled = (0, _styles.styled)('span')({
26
+ cursor: 'move'
27
+ });
28
+ const RowContainer = (0, _styles.styled)('div')(({
29
+ theme
30
+ }) => ({
31
+ marginTop: theme.spacing(2),
32
+ display: 'flex',
33
+ alignItems: 'center',
34
+ flex: 1
35
+ }));
36
+ const RowItem = (0, _styles.styled)('div')(({
37
+ theme
38
+ }) => ({
39
+ flex: 1,
40
+ display: 'flex',
41
+ justifyContent: 'center',
42
+ alignItems: 'center',
43
+ minWidth: '120px',
44
+ padding: `0 ${theme.spacing(1)}`
45
+ }));
46
+ const RadioButtonStyled = (0, _styles.styled)(_Radio.default)(({
47
+ theme,
48
+ error
49
+ }) => ({
50
+ '& input': {
51
+ width: '100% !important'
52
+ },
53
+ '&.MuiRadio-root': {
54
+ color: `${error ? theme.palette.error.main : _renderUi.color.tertiary()} !important`
55
+ }
56
+ }));
57
+ const DeleteIcon = (0, _styles.styled)('div')(({
58
+ theme
59
+ }) => ({
60
+ flex: 0.5,
61
+ display: 'flex',
62
+ justifyContent: 'center',
63
+ minWidth: '45px',
64
+ padding: `0 ${theme.spacing(1)}`
65
+ }));
66
+ const QuestionText = (0, _styles.styled)(RowItem)(({
67
+ theme
68
+ }) => ({
69
+ flex: 2,
70
+ display: 'flex',
71
+ justifyContent: 'flex-start',
72
+ padding: 0,
73
+ maxWidth: 'unset',
74
+ textAlign: 'left',
75
+ minWidth: '200px',
76
+ marginRight: theme.spacing(1),
77
+ '&> div': {
78
+ width: '100%'
79
+ }
80
+ }));
81
+ const Separator = (0, _styles.styled)('hr')(({
82
+ theme
83
+ }) => ({
84
+ marginTop: theme.spacing(2),
85
+ border: 0,
86
+ borderTop: `2px solid ${theme.palette.grey['A100']}`,
87
+ width: '100%'
88
+ }));
89
+ const ErrorText = (0, _styles.styled)('div')(({
90
+ theme
91
+ }) => ({
92
+ fontSize: theme.typography.fontSize - 2,
93
+ color: theme.palette.error.main,
94
+ paddingTop: theme.spacing(1)
95
+ }));
96
+ class Row extends _react.default.Component {
97
+ constructor(...args) {
98
+ super(...args);
99
+ (0, _defineProperty2.default)(this, "state", {
100
+ dialog: {
101
+ open: false,
102
+ text: ''
103
+ }
104
+ });
105
+ (0, _defineProperty2.default)(this, "onRowTitleChange", rowIndex => value => {
106
+ const {
107
+ model,
108
+ onChange
109
+ } = this.props;
110
+ const newModel = {
111
+ ...model
112
+ };
113
+ newModel.rows[rowIndex].title = value;
114
+ onChange(newModel);
115
+ });
116
+ (0, _defineProperty2.default)(this, "onRowValueChange", (rowIndex, rowValueIndex) => event => {
117
+ const {
118
+ model,
119
+ onChange
120
+ } = this.props;
121
+ const newModel = {
122
+ ...model
123
+ };
124
+ if (model.choiceMode === 'radio') {
125
+ for (let i = 0; i < newModel.rows[rowIndex].values.length; i++) {
126
+ newModel.rows[rowIndex].values[i] = false;
127
+ }
128
+ }
129
+ newModel.rows[rowIndex].values[rowValueIndex] = event.target.checked;
130
+ onChange(newModel);
131
+ });
132
+ (0, _defineProperty2.default)(this, "onDeleteRow", idx => () => {
133
+ const {
134
+ model,
135
+ onDeleteRow,
136
+ minQuestions
137
+ } = this.props;
138
+ if (model.rows && model.rows.length === minQuestions) {
139
+ this.setState({
140
+ dialog: {
141
+ open: true,
142
+ text: `There should be at least ${minQuestions} question row` + (minQuestions > 1 ? 's' : '') + '.'
143
+ }
144
+ });
145
+ } else {
146
+ onDeleteRow(idx);
147
+ }
148
+ });
149
+ (0, _defineProperty2.default)(this, "onMouseDownOnHandle", () => {
150
+ exports.canDrag = canDrag = true;
151
+ });
152
+ (0, _defineProperty2.default)(this, "onMouseUpOnHandle", () => {
153
+ exports.canDrag = canDrag = false;
154
+ });
155
+ }
156
+ componentDidMount() {
157
+ document.addEventListener('mouseup', this.onMouseUpOnHandle);
158
+ }
159
+ render() {
160
+ const {
161
+ imageSupport,
162
+ model,
163
+ row,
164
+ idx,
165
+ inputConfiguration = {},
166
+ toolbarOpts,
167
+ spellCheck,
168
+ error,
169
+ maxImageWidth,
170
+ maxImageHeight,
171
+ uploadSoundSupport,
172
+ mathMlOptions = {}
173
+ } = this.props;
174
+ const {
175
+ dialog
176
+ } = this.state;
177
+ const filteredDefaultPlugins = (_editableHtmlTipTap.DEFAULT_PLUGINS || []).filter(p => p !== 'bulleted-list' && p !== 'numbered-list');
178
+ return /*#__PURE__*/_react.default.createElement("div", {
179
+ style: {
180
+ width: '100%'
181
+ }
182
+ }, /*#__PURE__*/_react.default.createElement(DragHandleStyled, {
183
+ itemID: 'handle',
184
+ onMouseDown: this.onMouseDownOnHandle
185
+ }, /*#__PURE__*/_react.default.createElement(_DragHandle.default, {
186
+ color: 'primary'
187
+ })), /*#__PURE__*/_react.default.createElement(RowContainer, null, /*#__PURE__*/_react.default.createElement(QuestionText, null, /*#__PURE__*/_react.default.createElement(_editableHtmlTipTap.default, {
188
+ imageSupport: imageSupport,
189
+ autoWidthToolbar: true,
190
+ disableUnderline: true,
191
+ label: 'label',
192
+ markup: row.title,
193
+ onChange: this.onRowTitleChange(idx),
194
+ pluginProps: inputConfiguration,
195
+ toolbarOpts: toolbarOpts,
196
+ activePlugins: filteredDefaultPlugins,
197
+ spellCheck: spellCheck,
198
+ maxImageWidth: maxImageWidth,
199
+ maxImageHeight: maxImageHeight,
200
+ uploadSoundSupport: uploadSoundSupport,
201
+ languageCharactersProps: [{
202
+ language: 'spanish'
203
+ }, {
204
+ language: 'special'
205
+ }],
206
+ error: error && error !== 'No correct response defined.',
207
+ mathMlOptions: mathMlOptions
208
+ })), row.values.map((rowValue, rowIdx) => /*#__PURE__*/_react.default.createElement(RowItem, {
209
+ key: rowIdx
210
+ }, model.choiceMode === 'radio' ? /*#__PURE__*/_react.default.createElement(RadioButtonStyled, {
211
+ error: error?.includes('No correct response defined.'),
212
+ onChange: this.onRowValueChange(idx, rowIdx),
213
+ checked: rowValue === true
214
+ }) : /*#__PURE__*/_react.default.createElement(_configUi.Checkbox, {
215
+ onChange: this.onRowValueChange(idx, rowIdx),
216
+ checked: rowValue === true,
217
+ label: '',
218
+ error: error?.includes('No correct response defined.')
219
+ }))), /*#__PURE__*/_react.default.createElement(DeleteIcon, null, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
220
+ onClick: this.onDeleteRow(idx),
221
+ "aria-label": "Delete",
222
+ size: "large"
223
+ }, /*#__PURE__*/_react.default.createElement(_Delete.default, null)))), error && /*#__PURE__*/_react.default.createElement(ErrorText, null, error), /*#__PURE__*/_react.default.createElement(Separator, null), /*#__PURE__*/_react.default.createElement(_configUi.AlertDialog, {
224
+ open: dialog.open,
225
+ title: "Warning",
226
+ text: dialog.text,
227
+ onConfirm: () => this.setState({
228
+ dialog: {
229
+ open: false
230
+ }
231
+ })
232
+ }));
233
+ }
234
+ }
235
+
236
+ // Create a wrapper component for drag and drop functionality
237
+ exports.Row = Row;
238
+ (0, _defineProperty2.default)(Row, "propTypes", {
239
+ model: _propTypes.default.object.isRequired,
240
+ row: _propTypes.default.object.isRequired,
241
+ idx: _propTypes.default.number.isRequired,
242
+ maxImageWidth: _propTypes.default.object,
243
+ maxImageHeight: _propTypes.default.object,
244
+ onDeleteRow: _propTypes.default.func.isRequired,
245
+ onChange: _propTypes.default.func.isRequired,
246
+ imageSupport: _propTypes.default.shape({
247
+ add: _propTypes.default.func.isRequired,
248
+ delete: _propTypes.default.func.isRequired
249
+ }),
250
+ uploadSoundSupport: _propTypes.default.shape({
251
+ add: _propTypes.default.func.isRequired,
252
+ delete: _propTypes.default.func.isRequired
253
+ }),
254
+ inputConfiguration: _propTypes.default.object,
255
+ toolbarOpts: _propTypes.default.object,
256
+ error: _propTypes.default.string,
257
+ spellCheck: _propTypes.default.bool,
258
+ minQuestions: _propTypes.default.number
259
+ });
260
+ (0, _defineProperty2.default)(Row, "defaultProps", {});
261
+ function DraggableRow(props) {
262
+ const {
263
+ attributes,
264
+ listeners,
265
+ setNodeRef: setDragRef,
266
+ transform,
267
+ transition,
268
+ isDragging
269
+ } = (0, _core.useDraggable)({
270
+ id: `row-${props.row.id}`,
271
+ data: {
272
+ type: 'row',
273
+ index: props.idx,
274
+ id: props.row.id
275
+ }
276
+ });
277
+ const {
278
+ setNodeRef: setDropRef,
279
+ isOver
280
+ } = (0, _core.useDroppable)({
281
+ id: `row-drop-${props.row.id}`,
282
+ data: {
283
+ type: 'row',
284
+ index: props.idx,
285
+ id: props.row.id
286
+ }
287
+ });
288
+ const style = {
289
+ transform: transform ? `translate3d(${transform.x}px, ${transform.y}px, 0)` : undefined,
290
+ transition,
291
+ opacity: isDragging ? 0.5 : 1,
292
+ backgroundColor: isOver ? 'rgba(0, 0, 0, 0.1)' : 'transparent'
293
+ };
294
+
295
+ // edit listeners to prevent dragging when interacting with editable-html element
296
+ const filteredListeners = {
297
+ ...listeners,
298
+ onKeyDown: e => {
299
+ const target = e.target;
300
+ if (target.closest('[contenteditable]') || target.closest('input') || target.closest('textarea') || target.isContentEditable) {
301
+ return;
302
+ }
303
+ listeners?.onKeyDown?.(e);
304
+ },
305
+ onPointerDown: e => {
306
+ const target = e.target;
307
+ if (target.closest('[contenteditable]') || target.closest('input') || target.closest('textarea') || target.isContentEditable) {
308
+ return;
309
+ }
310
+ listeners?.onPointerDown?.(e);
311
+ }
312
+ };
313
+ return /*#__PURE__*/_react.default.createElement("div", {
314
+ ref: setDropRef,
315
+ style: style
316
+ }, /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
317
+ ref: setDragRef
318
+ }, filteredListeners, attributes), /*#__PURE__*/_react.default.createElement(Row, props)));
319
+ }
320
+ var _default = exports.default = DraggableRow;
321
+ //# sourceMappingURL=row.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row.js","names":["_react","_interopRequireDefault","require","_propTypes","_styles","_configUi","_DragHandle","_Radio","_IconButton","_Delete","_core","_debug","_editableHtmlTipTap","_interopRequireWildcard","_renderUi","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","log","debug","canDrag","exports","DragHandleStyled","styled","cursor","RowContainer","theme","marginTop","spacing","display","alignItems","flex","RowItem","justifyContent","minWidth","padding","RadioButtonStyled","Radio","error","width","color","palette","main","tertiary","DeleteIcon","QuestionText","maxWidth","textAlign","marginRight","Separator","border","borderTop","grey","ErrorText","fontSize","typography","paddingTop","Row","React","Component","constructor","args","_defineProperty2","dialog","open","text","rowIndex","value","model","onChange","props","newModel","rows","title","rowValueIndex","event","choiceMode","values","length","target","checked","idx","onDeleteRow","minQuestions","setState","componentDidMount","document","addEventListener","onMouseUpOnHandle","render","imageSupport","row","inputConfiguration","toolbarOpts","spellCheck","maxImageWidth","maxImageHeight","uploadSoundSupport","mathMlOptions","state","filteredDefaultPlugins","DEFAULT_PLUGINS","filter","p","createElement","style","itemID","onMouseDown","onMouseDownOnHandle","autoWidthToolbar","disableUnderline","label","markup","onRowTitleChange","pluginProps","activePlugins","languageCharactersProps","language","map","rowValue","rowIdx","key","includes","onRowValueChange","Checkbox","onClick","size","AlertDialog","onConfirm","PropTypes","object","isRequired","number","func","shape","add","delete","string","bool","DraggableRow","attributes","listeners","setNodeRef","setDragRef","transform","transition","isDragging","useDraggable","id","data","type","index","setDropRef","isOver","useDroppable","x","y","undefined","opacity","backgroundColor","filteredListeners","onKeyDown","closest","isContentEditable","onPointerDown","ref","_extends2","_default"],"sources":["../src/row.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/material/styles';\nimport { AlertDialog, Checkbox } from '@pie-lib/config-ui';\nimport DragHandle from '@mui/icons-material/DragHandle';\nimport Radio from '@mui/material/Radio';\nimport IconButton from '@mui/material/IconButton';\nimport Delete from '@mui/icons-material/Delete';\nimport { useDraggable, useDroppable } from '@dnd-kit/core';\nimport debug from 'debug';\nimport EditableHtml, { DEFAULT_PLUGINS } from '@pie-lib/editable-html-tip-tap';\nimport { color } from '@pie-lib/render-ui';\n\nconst log = debug('@pie-element:categorize:configure:choice');\n\nexport let canDrag = false;\n\nconst DragHandleStyled = styled('span')({\n cursor: 'move',\n});\n\nconst RowContainer = styled('div')(({ theme }) => ({\n marginTop: theme.spacing(2),\n display: 'flex',\n alignItems: 'center',\n flex: 1,\n}));\n\nconst RowItem = styled('div')(({ theme }) => ({\n flex: 1,\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n minWidth: '120px',\n padding: `0 ${theme.spacing(1)}`,\n}));\n\nconst RadioButtonStyled = styled(Radio)(({ theme, error }) => ({\n '& input': {\n width: '100% !important',\n },\n '&.MuiRadio-root': {\n color: `${error ? theme.palette.error.main : color.tertiary()} !important`,\n },\n}));\n\nconst DeleteIcon = styled('div')(({ theme }) => ({\n flex: 0.5,\n display: 'flex',\n justifyContent: 'center',\n minWidth: '45px',\n padding: `0 ${theme.spacing(1)}`,\n}));\n\nconst QuestionText = styled(RowItem)(({ theme }) => ({\n flex: 2,\n display: 'flex',\n justifyContent: 'flex-start',\n padding: 0,\n maxWidth: 'unset',\n textAlign: 'left',\n minWidth: '200px',\n marginRight: theme.spacing(1),\n '&> div': {\n width: '100%',\n },\n}));\n\nconst Separator = styled('hr')(({ theme }) => ({\n marginTop: theme.spacing(2),\n border: 0,\n borderTop: `2px solid ${theme.palette.grey['A100']}`,\n width: '100%',\n}));\n\nconst ErrorText = styled('div')(({ theme }) => ({\n fontSize: theme.typography.fontSize - 2,\n color: theme.palette.error.main,\n paddingTop: theme.spacing(1),\n}));\n\nexport class Row extends React.Component {\n static propTypes = {\n model: PropTypes.object.isRequired,\n row: PropTypes.object.isRequired,\n idx: PropTypes.number.isRequired,\n maxImageWidth: PropTypes.object,\n maxImageHeight: PropTypes.object,\n onDeleteRow: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n imageSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired,\n }),\n uploadSoundSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired,\n }),\n inputConfiguration: PropTypes.object,\n toolbarOpts: PropTypes.object,\n error: PropTypes.string,\n spellCheck: PropTypes.bool,\n minQuestions: PropTypes.number,\n };\n\n static defaultProps = {};\n\n state = {\n dialog: {\n open: false,\n text: '',\n },\n };\n\n componentDidMount() {\n document.addEventListener('mouseup', this.onMouseUpOnHandle);\n }\n\n onRowTitleChange = (rowIndex) => (value) => {\n const { model, onChange } = this.props;\n const newModel = { ...model };\n\n newModel.rows[rowIndex].title = value;\n onChange(newModel);\n };\n\n onRowValueChange = (rowIndex, rowValueIndex) => (event) => {\n const { model, onChange } = this.props;\n const newModel = { ...model };\n\n if (model.choiceMode === 'radio') {\n for (let i = 0; i < newModel.rows[rowIndex].values.length; i++) {\n newModel.rows[rowIndex].values[i] = false;\n }\n }\n\n newModel.rows[rowIndex].values[rowValueIndex] = event.target.checked;\n\n onChange(newModel);\n };\n\n onDeleteRow = (idx) => () => {\n const { model, onDeleteRow, minQuestions } = this.props;\n\n if (model.rows && model.rows.length === minQuestions) {\n this.setState({\n dialog: {\n open: true,\n text: `There should be at least ${minQuestions} question row` + (minQuestions > 1 ? 's' : '') + '.',\n },\n });\n } else {\n onDeleteRow(idx);\n }\n };\n\n onMouseDownOnHandle = () => {\n canDrag = true;\n };\n\n onMouseUpOnHandle = () => {\n canDrag = false;\n };\n\n render() {\n const {\n imageSupport,\n model,\n row,\n idx,\n inputConfiguration = {},\n toolbarOpts,\n spellCheck,\n error,\n maxImageWidth,\n maxImageHeight,\n uploadSoundSupport,\n mathMlOptions = {},\n } = this.props;\n const { dialog } = this.state;\n\n const filteredDefaultPlugins = (DEFAULT_PLUGINS || []).filter(\n (p) => p !== 'bulleted-list' && p !== 'numbered-list',\n );\n\n return (\n <div style={{ width: '100%' }}>\n <DragHandleStyled itemID={'handle'} onMouseDown={this.onMouseDownOnHandle}>\n <DragHandle color={'primary'} />\n </DragHandleStyled>\n\n <RowContainer>\n <QuestionText>\n <EditableHtml\n imageSupport={imageSupport}\n autoWidthToolbar\n disableUnderline\n label={'label'}\n markup={row.title}\n onChange={this.onRowTitleChange(idx)}\n pluginProps={inputConfiguration}\n toolbarOpts={toolbarOpts}\n activePlugins={filteredDefaultPlugins}\n spellCheck={spellCheck}\n maxImageWidth={maxImageWidth}\n maxImageHeight={maxImageHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n error={error && error !== 'No correct response defined.'}\n mathMlOptions={mathMlOptions} />\n </QuestionText>\n\n {row.values.map((rowValue, rowIdx) => (\n <RowItem key={rowIdx}>\n {model.choiceMode === 'radio' ? (\n <RadioButtonStyled\n error={error?.includes('No correct response defined.')}\n onChange={this.onRowValueChange(idx, rowIdx)}\n checked={rowValue === true} />\n ) : (\n <Checkbox\n onChange={this.onRowValueChange(idx, rowIdx)}\n checked={rowValue === true}\n label={''}\n error={error?.includes('No correct response defined.')} />\n )}\n </RowItem>\n ))}\n\n <DeleteIcon>\n <IconButton onClick={this.onDeleteRow(idx)} aria-label=\"Delete\" size=\"large\">\n <Delete />\n </IconButton>\n </DeleteIcon>\n </RowContainer>\n\n {error && <ErrorText>{error}</ErrorText>}\n <Separator />\n\n <AlertDialog\n open={dialog.open}\n title=\"Warning\"\n text={dialog.text}\n onConfirm={() => this.setState({ dialog: { open: false } })} />\n </div>\n );\n }\n}\n\n// Create a wrapper component for drag and drop functionality\nfunction DraggableRow(props) {\n const {\n attributes,\n listeners,\n setNodeRef: setDragRef,\n transform,\n transition,\n isDragging,\n } = useDraggable({\n id: `row-${props.row.id}`,\n data: {\n type: 'row',\n index: props.idx,\n id: props.row.id,\n },\n });\n\n const {\n setNodeRef: setDropRef,\n isOver,\n } = useDroppable({\n id: `row-drop-${props.row.id}`,\n data: {\n type: 'row',\n index: props.idx,\n id: props.row.id,\n },\n });\n\n const style = {\n transform: transform ? `translate3d(${transform.x}px, ${transform.y}px, 0)` : undefined,\n transition,\n opacity: isDragging ? 0.5 : 1,\n backgroundColor: isOver ? 'rgba(0, 0, 0, 0.1)' : 'transparent',\n };\n\n // edit listeners to prevent dragging when interacting with editable-html element\n const filteredListeners = {\n ...listeners,\n onKeyDown: (e) => {\n const target = e.target;\n if (\n target.closest('[contenteditable]') ||\n target.closest('input') ||\n target.closest('textarea') ||\n target.isContentEditable\n ) {\n return;\n }\n listeners?.onKeyDown?.(e);\n },\n onPointerDown: (e) => {\n const target = e.target;\n if (\n target.closest('[contenteditable]') ||\n target.closest('input') ||\n target.closest('textarea') ||\n target.isContentEditable\n ) {\n return;\n }\n listeners?.onPointerDown?.(e);\n },\n };\n\n return (\n <div ref={setDropRef} style={style}>\n <div ref={setDragRef} {...filteredListeners} {...attributes}>\n <Row {...props} />\n </div>\n </div>\n );\n}\n\nexport default DraggableRow;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,MAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,WAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,OAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,KAAA,GAAAR,OAAA;AACA,IAAAS,MAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,mBAAA,GAAAC,uBAAA,CAAAX,OAAA;AACA,IAAAY,SAAA,GAAAZ,OAAA;AAA2C,SAAAW,wBAAAE,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAJ,uBAAA,YAAAA,CAAAE,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QA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,EAAEb,UAAW;IAAC/C,KAAK,EAAEA;EAAM,gBACjCzH,MAAA,CAAAyB,OAAA,CAAA+F,aAAA,YAAA8D,SAAA,CAAA7J,OAAA;IAAK4J,GAAG,EAAEtB;EAAW,GAAKiB,iBAAiB,EAAMpB,UAAU,gBACzD5J,MAAA,CAAAyB,OAAA,CAAA+F,aAAA,CAAC/C,GAAG,EAAKa,KAAQ,CACd,CACF,CAAC;AAEV;AAAC,IAAAiG,QAAA,GAAAlJ,OAAA,CAAAZ,OAAA,GAEckI,YAAY","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getPluginProps = void 0;
7
+ const getPluginProps = (props = {}, baseInputConfiguration = {}) => ({
8
+ ...baseInputConfiguration,
9
+ ...props
10
+ });
11
+ exports.getPluginProps = getPluginProps;
12
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","names":["getPluginProps","props","baseInputConfiguration","exports"],"sources":["../src/utils.js"],"sourcesContent":["export const getPluginProps = (props = {}, baseInputConfiguration = {}) => ({\n ...baseInputConfiguration,\n ...props,\n});\n"],"mappings":";;;;;;AAAO,MAAMA,cAAc,GAAGA,CAACC,KAAK,GAAG,CAAC,CAAC,EAAEC,sBAAsB,GAAG,CAAC,CAAC,MAAM;EAC1E,GAAGA,sBAAsB;EACzB,GAAGD;AACL,CAAC,CAAC;AAACE,OAAA,CAAAH,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pie-element/match-configure",
3
3
  "private": true,
4
- "version": "10.4.0-beta.12",
4
+ "version": "10.4.0-beta.14",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
@@ -13,9 +13,9 @@
13
13
  "@mui/icons-material": "^7.3.4",
14
14
  "@mui/material": "^7.3.4",
15
15
  "@pie-framework/pie-configure-events": "^1.3.0",
16
- "@pie-lib/config-ui": "13.0.22-beta.1",
16
+ "@pie-lib/config-ui": "13.0.22-beta.3",
17
17
  "@pie-lib/drag": "4.0.6",
18
- "@pie-lib/editable-html-tip-tap": "2.1.20-beta.1",
18
+ "@pie-lib/editable-html-tip-tap": "2.1.20-beta.3",
19
19
  "@pie-lib/render-ui": "6.1.3",
20
20
  "@pie-lib/test-utils": "2.0.2",
21
21
  "classnames": "^2.2.6",
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [10.4.0-beta.14](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-controller@10.4.0-beta.13...@pie-element/match-controller@10.4.0-beta.14) (2026-09-29)
7
+
8
+ **Note:** Version bump only for package @pie-element/match-controller
9
+
10
+ # [10.4.0-beta.13](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-controller@10.4.0-beta.12...@pie-element/match-controller@10.4.0-beta.13) (2026-09-24)
11
+
12
+ **Note:** Version bump only for package @pie-element/match-controller
13
+
6
14
  # [10.4.0-beta.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/match-controller@10.4.0-beta.11...@pie-element/match-controller@10.4.0-beta.12) (2026-09-24)
7
15
 
8
16
  **Note:** Version bump only for package @pie-element/match-controller
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _default = exports.default = {
8
+ choiceMode: 'radio',
9
+ feedbackEnabled: false,
10
+ headers: ['Column 1', 'Column 2', 'Column 3'],
11
+ layout: 3,
12
+ lockChoiceOrder: true,
13
+ partialScoring: false,
14
+ prompt: '',
15
+ promptEnabled: true,
16
+ rationale: '',
17
+ rationaleEnabled: true,
18
+ rows: [],
19
+ scoringType: 'auto',
20
+ studentInstructionsEnabled: true,
21
+ teacherInstructions: '',
22
+ teacherInstructionsEnabled: true,
23
+ toolbarEditorPosition: 'bottom'
24
+ };
25
+ //# sourceMappingURL=defaults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaults.js","names":["choiceMode","feedbackEnabled","headers","layout","lockChoiceOrder","partialScoring","prompt","promptEnabled","rationale","rationaleEnabled","rows","scoringType","studentInstructionsEnabled","teacherInstructions","teacherInstructionsEnabled","toolbarEditorPosition"],"sources":["../src/defaults.js"],"sourcesContent":["export default {\n choiceMode: 'radio',\n feedbackEnabled: false,\n headers: ['Column 1', 'Column 2', 'Column 3'],\n layout: 3,\n lockChoiceOrder: true,\n partialScoring: false,\n prompt: '',\n promptEnabled: true,\n rationale: '',\n rationaleEnabled: true,\n rows: [],\n scoringType: 'auto',\n studentInstructionsEnabled: true,\n teacherInstructions: '',\n teacherInstructionsEnabled: true,\n toolbarEditorPosition: 'bottom',\n};\n"],"mappings":";;;;;;iCAAe;EACbA,UAAU,EAAE,OAAO;EACnBC,eAAe,EAAE,KAAK;EACtBC,OAAO,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC;EAC7CC,MAAM,EAAE,CAAC;EACTC,eAAe,EAAE,IAAI;EACrBC,cAAc,EAAE,KAAK;EACrBC,MAAM,EAAE,EAAE;EACVC,aAAa,EAAE,IAAI;EACnBC,SAAS,EAAE,EAAE;EACbC,gBAAgB,EAAE,IAAI;EACtBC,IAAI,EAAE,EAAE;EACRC,WAAW,EAAE,MAAM;EACnBC,0BAA0B,EAAE,IAAI;EAChCC,mBAAmB,EAAE,EAAE;EACvBC,0BAA0B,EAAE,IAAI;EAChCC,qBAAqB,EAAE;AACzB,CAAC","ignoreList":[]}