@pie-element/categorize 11.0.2-esm.0 → 11.0.3-esm.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/configure/package.json +8 -8
- package/controller/package.json +5 -5
- package/esm/configure.js +364 -6
- package/esm/configure.js.map +1 -1
- package/package.json +9 -9
package/configure/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": true,
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "src/index.js",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "11.0.3-esm.0",
|
|
7
7
|
"description": "",
|
|
8
8
|
"scripts": {},
|
|
9
9
|
"author": "pie framework developers",
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
"@material-ui/core": "^3.9.2",
|
|
13
13
|
"@material-ui/icons": "^3.0.1",
|
|
14
14
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
15
|
-
"@pie-lib/categorize": "^0.25.
|
|
16
|
-
"@pie-lib/config-ui": "^11.26.
|
|
17
|
-
"@pie-lib/drag": "^2.19.
|
|
18
|
-
"@pie-lib/editable-html": "^11.18.
|
|
19
|
-
"@pie-lib/math-rendering": "^3.19.
|
|
20
|
-
"@pie-lib/render-ui": "^4.32.
|
|
21
|
-
"@pie-lib/translator": "^2.20.
|
|
15
|
+
"@pie-lib/categorize": "^0.25.2",
|
|
16
|
+
"@pie-lib/config-ui": "^11.26.3",
|
|
17
|
+
"@pie-lib/drag": "^2.19.3",
|
|
18
|
+
"@pie-lib/editable-html": "^11.18.3",
|
|
19
|
+
"@pie-lib/math-rendering": "^3.19.2",
|
|
20
|
+
"@pie-lib/render-ui": "^4.32.3",
|
|
21
|
+
"@pie-lib/translator": "^2.20.2",
|
|
22
22
|
"classnames": "^2.2.5",
|
|
23
23
|
"debug": "^3.1.0",
|
|
24
24
|
"lodash": "^4.17.15",
|
package/controller/package.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"name": "@pie-element/categorize-controller",
|
|
3
3
|
"private": true,
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@pie-lib/categorize": "^0.25.
|
|
6
|
-
"@pie-lib/controller-utils": "^0.19.
|
|
7
|
-
"@pie-lib/feedback": "^0.21.
|
|
8
|
-
"@pie-lib/translator": "^2.20.
|
|
5
|
+
"@pie-lib/categorize": "^0.25.2",
|
|
6
|
+
"@pie-lib/controller-utils": "^0.19.2",
|
|
7
|
+
"@pie-lib/feedback": "^0.21.2",
|
|
8
|
+
"@pie-lib/translator": "^2.20.2",
|
|
9
9
|
"lodash": "^4.17.15"
|
|
10
10
|
},
|
|
11
|
-
"version": "
|
|
11
|
+
"version": "11.0.3-esm.0",
|
|
12
12
|
"description": "",
|
|
13
13
|
"scripts": {},
|
|
14
14
|
"main": "lib/index.js",
|
package/esm/configure.js
CHANGED
|
@@ -9,19 +9,17 @@ import { removeCategory, moveChoiceToCategory, verifyAllowMultiplePlacements, re
|
|
|
9
9
|
import EditableHtml from '@pie-lib/editable-html';
|
|
10
10
|
import { Choice as Choice$2, PlaceHolder as PlaceHolder$1, uid, withDragContext } from '@pie-lib/drag';
|
|
11
11
|
import classNames from 'classnames';
|
|
12
|
-
import
|
|
12
|
+
import require$$3 from '@material-ui/core/SvgIcon';
|
|
13
13
|
import Tooltip from '@material-ui/core/Tooltip';
|
|
14
14
|
import Card from '@material-ui/core/Card';
|
|
15
15
|
import CardActions from '@material-ui/core/CardActions';
|
|
16
16
|
import Button from '@material-ui/core/Button';
|
|
17
17
|
import '@material-ui/core/Divider';
|
|
18
18
|
import IconButton from '@material-ui/core/IconButton';
|
|
19
|
-
import RemoveCircleOutlineIcon from '@material-ui/icons/RemoveCircleOutline';
|
|
20
19
|
import { HtmlAndMath, color, InputContainer } from '@pie-lib/render-ui';
|
|
21
20
|
import debug from 'debug';
|
|
22
21
|
import { jsx } from 'react/jsx-runtime';
|
|
23
22
|
import Typography from '@material-ui/core/Typography';
|
|
24
|
-
import DragHandle from '@material-ui/icons/DragHandle';
|
|
25
23
|
import flow from 'lodash/flow';
|
|
26
24
|
import TextField from '@material-ui/core/TextField';
|
|
27
25
|
import cloneDeep from 'lodash/cloneDeep';
|
|
@@ -62,6 +60,322 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
62
60
|
|
|
63
61
|
const getPluginProps = (props = {}, baseInputConfiguration = {}) => _extends({}, baseInputConfiguration, props);
|
|
64
62
|
|
|
63
|
+
var Info = {};
|
|
64
|
+
|
|
65
|
+
var interopRequireDefault = {exports: {}};
|
|
66
|
+
|
|
67
|
+
(function (module) {
|
|
68
|
+
function _interopRequireDefault(obj) {
|
|
69
|
+
return obj && obj.__esModule ? obj : {
|
|
70
|
+
"default": obj
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
75
|
+
}(interopRequireDefault));
|
|
76
|
+
|
|
77
|
+
var createSvgIcon$1 = {};
|
|
78
|
+
|
|
79
|
+
var pure$1 = {};
|
|
80
|
+
|
|
81
|
+
var shouldUpdate$1 = {};
|
|
82
|
+
|
|
83
|
+
var inheritsLoose = {exports: {}};
|
|
84
|
+
|
|
85
|
+
var setPrototypeOf = {exports: {}};
|
|
86
|
+
|
|
87
|
+
(function (module) {
|
|
88
|
+
function _setPrototypeOf(o, p) {
|
|
89
|
+
module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
90
|
+
o.__proto__ = p;
|
|
91
|
+
return o;
|
|
92
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
93
|
+
return _setPrototypeOf(o, p);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
97
|
+
}(setPrototypeOf));
|
|
98
|
+
|
|
99
|
+
(function (module) {
|
|
100
|
+
var setPrototypeOf$1 = setPrototypeOf.exports;
|
|
101
|
+
|
|
102
|
+
function _inheritsLoose(subClass, superClass) {
|
|
103
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
104
|
+
subClass.prototype.constructor = subClass;
|
|
105
|
+
setPrototypeOf$1(subClass, superClass);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
module.exports = _inheritsLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
109
|
+
}(inheritsLoose));
|
|
110
|
+
|
|
111
|
+
var setDisplayName$1 = {};
|
|
112
|
+
|
|
113
|
+
var setStatic$1 = {};
|
|
114
|
+
|
|
115
|
+
setStatic$1.__esModule = true;
|
|
116
|
+
setStatic$1.default = void 0;
|
|
117
|
+
|
|
118
|
+
var setStatic = function setStatic(key, value) {
|
|
119
|
+
return function (BaseComponent) {
|
|
120
|
+
/* eslint-disable no-param-reassign */
|
|
121
|
+
BaseComponent[key] = value;
|
|
122
|
+
/* eslint-enable no-param-reassign */
|
|
123
|
+
|
|
124
|
+
return BaseComponent;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
var _default$a = setStatic;
|
|
129
|
+
setStatic$1.default = _default$a;
|
|
130
|
+
|
|
131
|
+
var _interopRequireDefault$8 = interopRequireDefault.exports;
|
|
132
|
+
|
|
133
|
+
setDisplayName$1.__esModule = true;
|
|
134
|
+
setDisplayName$1.default = void 0;
|
|
135
|
+
|
|
136
|
+
var _setStatic = _interopRequireDefault$8(setStatic$1);
|
|
137
|
+
|
|
138
|
+
var setDisplayName = function setDisplayName(displayName) {
|
|
139
|
+
return (0, _setStatic.default)('displayName', displayName);
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
var _default$9 = setDisplayName;
|
|
143
|
+
setDisplayName$1.default = _default$9;
|
|
144
|
+
|
|
145
|
+
var wrapDisplayName$1 = {};
|
|
146
|
+
|
|
147
|
+
var getDisplayName$1 = {};
|
|
148
|
+
|
|
149
|
+
getDisplayName$1.__esModule = true;
|
|
150
|
+
getDisplayName$1.default = void 0;
|
|
151
|
+
|
|
152
|
+
var getDisplayName = function getDisplayName(Component) {
|
|
153
|
+
if (typeof Component === 'string') {
|
|
154
|
+
return Component;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if (!Component) {
|
|
158
|
+
return undefined;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
return Component.displayName || Component.name || 'Component';
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
var _default$8 = getDisplayName;
|
|
165
|
+
getDisplayName$1.default = _default$8;
|
|
166
|
+
|
|
167
|
+
var _interopRequireDefault$7 = interopRequireDefault.exports;
|
|
168
|
+
|
|
169
|
+
wrapDisplayName$1.__esModule = true;
|
|
170
|
+
wrapDisplayName$1.default = void 0;
|
|
171
|
+
|
|
172
|
+
var _getDisplayName = _interopRequireDefault$7(getDisplayName$1);
|
|
173
|
+
|
|
174
|
+
var wrapDisplayName = function wrapDisplayName(BaseComponent, hocName) {
|
|
175
|
+
return hocName + "(" + (0, _getDisplayName.default)(BaseComponent) + ")";
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
var _default$7 = wrapDisplayName;
|
|
179
|
+
wrapDisplayName$1.default = _default$7;
|
|
180
|
+
|
|
181
|
+
var _interopRequireDefault$6 = interopRequireDefault.exports;
|
|
182
|
+
|
|
183
|
+
shouldUpdate$1.__esModule = true;
|
|
184
|
+
shouldUpdate$1.default = void 0;
|
|
185
|
+
|
|
186
|
+
var _inheritsLoose2 = _interopRequireDefault$6(inheritsLoose.exports);
|
|
187
|
+
|
|
188
|
+
var _react$4 = React;
|
|
189
|
+
|
|
190
|
+
var _setDisplayName$1 = _interopRequireDefault$6(setDisplayName$1);
|
|
191
|
+
|
|
192
|
+
var _wrapDisplayName$1 = _interopRequireDefault$6(wrapDisplayName$1);
|
|
193
|
+
|
|
194
|
+
var shouldUpdate = function shouldUpdate(test) {
|
|
195
|
+
return function (BaseComponent) {
|
|
196
|
+
var factory = (0, _react$4.createFactory)(BaseComponent);
|
|
197
|
+
|
|
198
|
+
var ShouldUpdate =
|
|
199
|
+
/*#__PURE__*/
|
|
200
|
+
function (_Component) {
|
|
201
|
+
(0, _inheritsLoose2.default)(ShouldUpdate, _Component);
|
|
202
|
+
|
|
203
|
+
function ShouldUpdate() {
|
|
204
|
+
return _Component.apply(this, arguments) || this;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
var _proto = ShouldUpdate.prototype;
|
|
208
|
+
|
|
209
|
+
_proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
|
|
210
|
+
return test(this.props, nextProps);
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
_proto.render = function render() {
|
|
214
|
+
return factory(this.props);
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
return ShouldUpdate;
|
|
218
|
+
}(_react$4.Component);
|
|
219
|
+
|
|
220
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
221
|
+
return (0, _setDisplayName$1.default)((0, _wrapDisplayName$1.default)(BaseComponent, 'shouldUpdate'))(ShouldUpdate);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
return ShouldUpdate;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
var _default$6 = shouldUpdate;
|
|
229
|
+
shouldUpdate$1.default = _default$6;
|
|
230
|
+
|
|
231
|
+
var shallowEqual$2 = {};
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
235
|
+
*
|
|
236
|
+
* This source code is licensed under the MIT license found in the
|
|
237
|
+
* LICENSE file in the root directory of this source tree.
|
|
238
|
+
*
|
|
239
|
+
* @typechecks
|
|
240
|
+
*
|
|
241
|
+
*/
|
|
242
|
+
|
|
243
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
247
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
248
|
+
*/
|
|
249
|
+
function is(x, y) {
|
|
250
|
+
// SameValue algorithm
|
|
251
|
+
if (x === y) {
|
|
252
|
+
// Steps 1-5, 7-10
|
|
253
|
+
// Steps 6.b-6.e: +0 != -0
|
|
254
|
+
// Added the nonzero y check to make Flow happy, but it is redundant
|
|
255
|
+
return x !== 0 || y !== 0 || 1 / x === 1 / y;
|
|
256
|
+
} else {
|
|
257
|
+
// Step 6.a: NaN == NaN
|
|
258
|
+
return x !== x && y !== y;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Performs equality by iterating through keys on an object and returning false
|
|
264
|
+
* when any key has values which are not strictly equal between the arguments.
|
|
265
|
+
* Returns true when the values of all keys are strictly equal.
|
|
266
|
+
*/
|
|
267
|
+
function shallowEqual$1(objA, objB) {
|
|
268
|
+
if (is(objA, objB)) {
|
|
269
|
+
return true;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
|
|
273
|
+
return false;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
var keysA = Object.keys(objA);
|
|
277
|
+
var keysB = Object.keys(objB);
|
|
278
|
+
|
|
279
|
+
if (keysA.length !== keysB.length) {
|
|
280
|
+
return false;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
// Test for A's keys different from B.
|
|
284
|
+
for (var i = 0; i < keysA.length; i++) {
|
|
285
|
+
if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
|
|
286
|
+
return false;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
return true;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
var shallowEqual_1 = shallowEqual$1;
|
|
294
|
+
|
|
295
|
+
var _interopRequireDefault$5 = interopRequireDefault.exports;
|
|
296
|
+
|
|
297
|
+
shallowEqual$2.__esModule = true;
|
|
298
|
+
shallowEqual$2.default = void 0;
|
|
299
|
+
|
|
300
|
+
var _shallowEqual$1 = _interopRequireDefault$5(shallowEqual_1);
|
|
301
|
+
|
|
302
|
+
var _default$5 = _shallowEqual$1.default;
|
|
303
|
+
shallowEqual$2.default = _default$5;
|
|
304
|
+
|
|
305
|
+
var _interopRequireDefault$4 = interopRequireDefault.exports;
|
|
306
|
+
|
|
307
|
+
pure$1.__esModule = true;
|
|
308
|
+
pure$1.default = void 0;
|
|
309
|
+
|
|
310
|
+
var _shouldUpdate = _interopRequireDefault$4(shouldUpdate$1);
|
|
311
|
+
|
|
312
|
+
var _shallowEqual = _interopRequireDefault$4(shallowEqual$2);
|
|
313
|
+
|
|
314
|
+
var _setDisplayName = _interopRequireDefault$4(setDisplayName$1);
|
|
315
|
+
|
|
316
|
+
var _wrapDisplayName = _interopRequireDefault$4(wrapDisplayName$1);
|
|
317
|
+
|
|
318
|
+
var pure = function pure(BaseComponent) {
|
|
319
|
+
var hoc = (0, _shouldUpdate.default)(function (props, nextProps) {
|
|
320
|
+
return !(0, _shallowEqual.default)(props, nextProps);
|
|
321
|
+
});
|
|
322
|
+
|
|
323
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
324
|
+
return (0, _setDisplayName.default)((0, _wrapDisplayName.default)(BaseComponent, 'pure'))(hoc(BaseComponent));
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
return hoc(BaseComponent);
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
var _default$4 = pure;
|
|
331
|
+
pure$1.default = _default$4;
|
|
332
|
+
|
|
333
|
+
var _interopRequireDefault$3 = interopRequireDefault.exports;
|
|
334
|
+
|
|
335
|
+
Object.defineProperty(createSvgIcon$1, "__esModule", {
|
|
336
|
+
value: true
|
|
337
|
+
});
|
|
338
|
+
createSvgIcon$1.default = void 0;
|
|
339
|
+
|
|
340
|
+
var _react$3 = _interopRequireDefault$3(React);
|
|
341
|
+
|
|
342
|
+
var _pure = _interopRequireDefault$3(pure$1);
|
|
343
|
+
|
|
344
|
+
var _SvgIcon = _interopRequireDefault$3(require$$3);
|
|
345
|
+
|
|
346
|
+
function createSvgIcon(path, displayName) {
|
|
347
|
+
var Icon = function Icon(props) {
|
|
348
|
+
return _react$3.default.createElement(_SvgIcon.default, props, path);
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
Icon.displayName = "".concat(displayName, "Icon");
|
|
352
|
+
Icon = (0, _pure.default)(Icon);
|
|
353
|
+
Icon.muiName = 'SvgIcon';
|
|
354
|
+
return Icon;
|
|
355
|
+
}
|
|
356
|
+
var _default$3 = createSvgIcon;
|
|
357
|
+
createSvgIcon$1.default = _default$3;
|
|
358
|
+
|
|
359
|
+
var _interopRequireDefault$2 = interopRequireDefault.exports;
|
|
360
|
+
|
|
361
|
+
Object.defineProperty(Info, "__esModule", {
|
|
362
|
+
value: true
|
|
363
|
+
});
|
|
364
|
+
var default_1$2 = Info.default = void 0;
|
|
365
|
+
|
|
366
|
+
var _react$2 = _interopRequireDefault$2(React);
|
|
367
|
+
|
|
368
|
+
var _createSvgIcon$2 = _interopRequireDefault$2(createSvgIcon$1);
|
|
369
|
+
|
|
370
|
+
var _default$2 = (0, _createSvgIcon$2.default)(_react$2.default.createElement(_react$2.default.Fragment, null, _react$2.default.createElement("path", {
|
|
371
|
+
fill: "none",
|
|
372
|
+
d: "M0 0h24v24H0z"
|
|
373
|
+
}), _react$2.default.createElement("path", {
|
|
374
|
+
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"
|
|
375
|
+
})), 'Info');
|
|
376
|
+
|
|
377
|
+
default_1$2 = Info.default = _default$2;
|
|
378
|
+
|
|
65
379
|
class InputHeader extends React.Component {
|
|
66
380
|
constructor(props) {
|
|
67
381
|
super(props);
|
|
@@ -232,6 +546,28 @@ const DeleteButton = withStyles(() => ({
|
|
|
232
546
|
disabled: disabled
|
|
233
547
|
}, label));
|
|
234
548
|
|
|
549
|
+
var RemoveCircleOutline = {};
|
|
550
|
+
|
|
551
|
+
var _interopRequireDefault$1 = interopRequireDefault.exports;
|
|
552
|
+
|
|
553
|
+
Object.defineProperty(RemoveCircleOutline, "__esModule", {
|
|
554
|
+
value: true
|
|
555
|
+
});
|
|
556
|
+
var default_1$1 = RemoveCircleOutline.default = void 0;
|
|
557
|
+
|
|
558
|
+
var _react$1 = _interopRequireDefault$1(React);
|
|
559
|
+
|
|
560
|
+
var _createSvgIcon$1 = _interopRequireDefault$1(createSvgIcon$1);
|
|
561
|
+
|
|
562
|
+
var _default$1 = (0, _createSvgIcon$1.default)(_react$1.default.createElement(_react$1.default.Fragment, null, _react$1.default.createElement("path", {
|
|
563
|
+
fill: "none",
|
|
564
|
+
d: "M0 0h24v24H0z"
|
|
565
|
+
}), _react$1.default.createElement("path", {
|
|
566
|
+
d: "M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"
|
|
567
|
+
})), 'RemoveCircleOutline');
|
|
568
|
+
|
|
569
|
+
default_1$1 = RemoveCircleOutline.default = _default$1;
|
|
570
|
+
|
|
235
571
|
class ChoicePreview extends React.Component {
|
|
236
572
|
constructor(...args) {
|
|
237
573
|
super(...args);
|
|
@@ -270,7 +606,7 @@ class ChoicePreview extends React.Component {
|
|
|
270
606
|
"aria-label": "delete",
|
|
271
607
|
className: classNames(classes.delete, classes.customColor),
|
|
272
608
|
onClick: this.delete
|
|
273
|
-
}, /*#__PURE__*/React.createElement(
|
|
609
|
+
}, /*#__PURE__*/React.createElement(default_1$1, null))) : null);
|
|
274
610
|
}
|
|
275
611
|
|
|
276
612
|
}
|
|
@@ -3014,7 +3350,7 @@ class Categories extends React.Component {
|
|
|
3014
3350
|
disableTouchListener: true,
|
|
3015
3351
|
placement: 'right',
|
|
3016
3352
|
title: validationMessage
|
|
3017
|
-
}, /*#__PURE__*/React.createElement(
|
|
3353
|
+
}, /*#__PURE__*/React.createElement(default_1$2, {
|
|
3018
3354
|
fontSize: 'small',
|
|
3019
3355
|
color: 'primary',
|
|
3020
3356
|
style: {
|
|
@@ -3290,6 +3626,28 @@ AlternateResponses.propTypes = {
|
|
|
3290
3626
|
};
|
|
3291
3627
|
var AlternateResponses$1 = withStyles(styles$5)(AlternateResponses);
|
|
3292
3628
|
|
|
3629
|
+
var DragHandle = {};
|
|
3630
|
+
|
|
3631
|
+
var _interopRequireDefault = interopRequireDefault.exports;
|
|
3632
|
+
|
|
3633
|
+
Object.defineProperty(DragHandle, "__esModule", {
|
|
3634
|
+
value: true
|
|
3635
|
+
});
|
|
3636
|
+
var default_1 = DragHandle.default = void 0;
|
|
3637
|
+
|
|
3638
|
+
var _react = _interopRequireDefault(React);
|
|
3639
|
+
|
|
3640
|
+
var _createSvgIcon = _interopRequireDefault(createSvgIcon$1);
|
|
3641
|
+
|
|
3642
|
+
var _default = (0, _createSvgIcon.default)(_react.default.createElement(_react.default.Fragment, null, _react.default.createElement("defs", null, _react.default.createElement("path", {
|
|
3643
|
+
id: "a",
|
|
3644
|
+
d: "M0 0h24v24H0V0z"
|
|
3645
|
+
})), _react.default.createElement("path", {
|
|
3646
|
+
d: "M20 9H4v2h16V9zM4 15h16v-2H4v2z"
|
|
3647
|
+
})), 'DragHandle');
|
|
3648
|
+
|
|
3649
|
+
default_1 = DragHandle.default = _default;
|
|
3650
|
+
|
|
3293
3651
|
const log = debug('@pie-element:categorize:configure:choice');
|
|
3294
3652
|
|
|
3295
3653
|
const canDrag = props => {
|
|
@@ -3367,7 +3725,7 @@ class Choice extends React.Component {
|
|
|
3367
3725
|
className: classes.actions
|
|
3368
3726
|
}, connectDragSource(connectDropTarget( /*#__PURE__*/React.createElement("span", {
|
|
3369
3727
|
className: classNames(classes.dragHandle, draggable === false && classes.dragDisabled)
|
|
3370
|
-
}, /*#__PURE__*/React.createElement(
|
|
3728
|
+
}, /*#__PURE__*/React.createElement(default_1, {
|
|
3371
3729
|
color: draggable ? 'primary' : 'disabled'
|
|
3372
3730
|
}))))), connectDragPreview( /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(InputHeader$1, {
|
|
3373
3731
|
imageSupport: imageSupport,
|