@pie-element/extended-text-entry 13.4.1-next.0 → 14.0.0-beta.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.
@@ -1,266 +1,241 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports["default"] = void 0;
9
-
10
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
-
12
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
-
14
- var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
15
-
16
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
17
-
18
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
19
-
20
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
21
-
7
+ exports.default = void 0;
22
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
23
-
24
9
  var _react = _interopRequireDefault(require("react"));
25
-
26
- var _classnames = _interopRequireDefault(require("classnames"));
27
-
28
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
29
-
30
- var _core = require("@material-ui/core");
31
-
32
- var _styles = require("@material-ui/core/styles");
33
-
34
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
35
-
36
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
37
-
38
- var styles = function styles(theme) {
39
- return {
40
- wrapper: {
41
- width: '200px',
42
- overflow: 'hidden',
43
- borderRadius: '4px',
44
- backgroundColor: '#ffffff',
45
- border: "4px solid ".concat(theme.palette.grey[100]),
46
- '&.negative': {
47
- borderColor: 'rgb(255, 204, 238) !important'
48
- },
49
- '&.positive': {
50
- borderColor: 'rgb(153, 255, 153) !important'
51
- }
52
- },
53
- holder: {
54
- display: 'flex',
55
- flexWrap: 'wrap',
56
- borderTop: "2px solid ".concat(theme.palette.grey[100])
57
- },
58
- positive: {
59
- backgroundColor: 'rgb(153, 255, 153) !important',
60
- '&:hover': {
61
- filter: 'brightness(85%)'
62
- }
63
- },
64
- negative: {
65
- backgroundColor: 'rgb(255, 204, 238) !important',
66
- '&:hover': {
67
- filter: 'brightness(85%)'
68
- }
69
- },
70
- button: {
71
- flexGrow: 1,
72
- width: '28%',
73
- textAlign: 'center',
74
- padding: '4px',
75
- cursor: 'pointer',
76
- '&:not(:nth-child(3n))': {
77
- borderRight: "1px solid ".concat(theme.palette.grey[100])
78
- },
79
- '&:hover': {
80
- backgroundColor: theme.palette.grey[100]
81
- },
82
- '&.negative:hover': {
83
- backgroundColor: 'rgb(153, 255, 153) !important'
84
- },
85
- '&.positive:hover': {
86
- backgroundColor: 'rgb(255, 204, 238) !important'
87
- }
11
+ var _material = require("@mui/material");
12
+ var _styles = require("@mui/material/styles");
13
+ const StyledPopover = (0, _styles.styled)(_material.Popover)(({
14
+ theme,
15
+ annotationType
16
+ }) => ({
17
+ '& .MuiPaper-root': {
18
+ overflowX: 'unset',
19
+ overflowY: 'unset',
20
+ marginLeft: '16px',
21
+ '&::before': {
22
+ position: 'absolute',
23
+ right: '100%',
24
+ top: '13px',
25
+ border: 'solid transparent',
26
+ content: '""',
27
+ height: 0,
28
+ width: 0,
29
+ pointerEvents: 'none',
30
+ borderWidth: '7px',
31
+ borderRightColor: theme.palette.grey[100]
88
32
  },
89
- arrow: {
90
- overflowX: 'unset',
91
- overflowY: 'unset',
92
- marginLeft: '16px',
33
+ ...(annotationType === 'negative' && {
93
34
  '&::before': {
94
- position: 'absolute',
95
- right: '100%',
96
- top: '13px',
97
- border: 'solid transparent',
98
- content: '""',
99
- height: 0,
100
- width: 0,
101
- pointerEvents: 'none',
102
- borderWidth: '7px',
103
- borderRightColor: theme.palette.grey[100]
104
- },
105
- '&.negative::before': {
106
35
  borderRightColor: 'rgb(255, 204, 238) !important'
107
- },
108
- '&.positive::before': {
36
+ }
37
+ }),
38
+ ...(annotationType === 'positive' && {
39
+ '&::before': {
109
40
  borderRightColor: 'rgb(153, 255, 153) !important'
110
41
  }
42
+ })
43
+ }
44
+ }));
45
+ const Wrapper = (0, _styles.styled)('div')(({
46
+ theme,
47
+ annotationType
48
+ }) => ({
49
+ width: '200px',
50
+ overflow: 'hidden',
51
+ borderRadius: '4px',
52
+ backgroundColor: '#ffffff',
53
+ border: `4px solid ${theme.palette.grey[100]}`,
54
+ ...(annotationType === 'negative' && {
55
+ borderColor: 'rgb(255, 204, 238) !important'
56
+ }),
57
+ ...(annotationType === 'positive' && {
58
+ borderColor: 'rgb(153, 255, 153) !important'
59
+ })
60
+ }));
61
+ const Holder = (0, _styles.styled)('div')(({
62
+ theme
63
+ }) => ({
64
+ display: 'flex',
65
+ flexWrap: 'wrap',
66
+ borderTop: `2px solid ${theme.palette.grey[100]}`
67
+ }));
68
+ const Button = (0, _styles.styled)('div')(({
69
+ theme,
70
+ variant,
71
+ annotationType
72
+ }) => ({
73
+ flexGrow: 1,
74
+ width: '28%',
75
+ textAlign: 'center',
76
+ padding: '4px',
77
+ cursor: 'pointer',
78
+ '&:not(:nth-child(3n))': {
79
+ borderRight: `1px solid ${theme.palette.grey[100]}`
80
+ },
81
+ '&:hover': {
82
+ backgroundColor: theme.palette.grey[100]
83
+ },
84
+ ...(variant === 'positive' && {
85
+ backgroundColor: 'rgb(153, 255, 153) !important',
86
+ '&:hover': {
87
+ filter: 'brightness(85%)'
111
88
  }
112
- };
113
- };
114
-
115
- var FreeformEditor = /*#__PURE__*/function (_React$Component) {
116
- (0, _inherits2["default"])(FreeformEditor, _React$Component);
117
-
118
- var _super = _createSuper(FreeformEditor);
119
-
120
- function FreeformEditor(props) {
121
- var _this;
122
-
123
- (0, _classCallCheck2["default"])(this, FreeformEditor);
124
- _this = _super.call(this, props);
125
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onValueChange", function (event) {
126
- return _this.setState({
127
- value: event.target.value
128
- });
129
- });
130
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleSave", function () {
131
- var _this$props = _this.props,
132
- oldValue = _this$props.value,
133
- onSave = _this$props.onSave,
134
- onClose = _this$props.onClose,
135
- onDelete = _this$props.onDelete;
136
- var value = _this.state.value;
137
-
89
+ }),
90
+ ...(variant === 'negative' && {
91
+ backgroundColor: 'rgb(255, 204, 238) !important',
92
+ '&:hover': {
93
+ filter: 'brightness(85%)'
94
+ }
95
+ }),
96
+ ...(variant === 'typeChange' && annotationType === 'negative' && {
97
+ '&:hover': {
98
+ backgroundColor: 'rgb(153, 255, 153) !important'
99
+ }
100
+ }),
101
+ ...(variant === 'typeChange' && annotationType === 'positive' && {
102
+ '&:hover': {
103
+ backgroundColor: 'rgb(255, 204, 238) !important'
104
+ }
105
+ })
106
+ }));
107
+ class FreeformEditor extends _react.default.Component {
108
+ constructor(props) {
109
+ super(props);
110
+ (0, _defineProperty2.default)(this, "onValueChange", event => this.setState({
111
+ value: event.target.value
112
+ }));
113
+ (0, _defineProperty2.default)(this, "handleSave", () => {
114
+ const {
115
+ value: oldValue,
116
+ onSave,
117
+ onClose,
118
+ onDelete
119
+ } = this.props;
120
+ const {
121
+ value
122
+ } = this.state;
138
123
  if (value === '') {
139
124
  onDelete();
140
125
  }
141
-
142
126
  if (oldValue !== value) {
143
127
  onSave(oldValue, value);
144
128
  }
145
-
146
- _this.setState({
129
+ this.setState({
147
130
  value: ''
148
131
  });
149
-
150
132
  onClose();
151
133
  });
152
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleTypeChange", function () {
153
- var _this$props2 = _this.props,
154
- onTypeChange = _this$props2.onTypeChange,
155
- onDelete = _this$props2.onDelete;
156
- var value = _this.state.value;
157
-
134
+ (0, _defineProperty2.default)(this, "handleTypeChange", () => {
135
+ const {
136
+ onTypeChange,
137
+ onDelete
138
+ } = this.props;
139
+ const {
140
+ value
141
+ } = this.state;
158
142
  if (value === '') {
159
143
  onDelete();
160
144
  } else {
161
145
  onTypeChange(value);
162
146
  }
163
-
164
- _this.setState({
147
+ this.setState({
165
148
  value: ''
166
149
  });
167
150
  });
168
- _this.state = {
151
+ this.state = {
169
152
  value: props.value
170
153
  };
171
- return _this;
172
154
  }
173
-
174
- (0, _createClass2["default"])(FreeformEditor, [{
175
- key: "UNSAFE_componentWillReceiveProps",
176
- value: function UNSAFE_componentWillReceiveProps(nextProps) {
177
- var value = nextProps.value;
178
- var propsValue = this.props.value;
179
-
180
- if (value !== propsValue) {
181
- this.setState({
182
- value: value
183
- });
184
- }
185
- }
186
- }, {
187
- key: "render",
188
- value: function render() {
189
- var _this$props3 = this.props,
190
- anchorEl = _this$props3.anchorEl,
191
- classes = _this$props3.classes,
192
- offset = _this$props3.offset,
193
- onDelete = _this$props3.onDelete,
194
- open = _this$props3.open,
195
- type = _this$props3.type;
196
- var value = this.state.value;
197
- return /*#__PURE__*/_react["default"].createElement(_core.Popover, {
198
- anchorEl: anchorEl,
199
- elevation: 2,
200
- open: open,
201
- onClose: this.handleSave,
202
- classes: {
203
- paper: (0, _classnames["default"])(classes.arrow, type)
204
- },
205
- style: {
206
- marginTop: "".concat(offset, "px"),
207
- transition: 'margin-top 2s ease-out'
208
- },
209
- anchorOrigin: {
210
- vertical: 'top',
211
- horizontal: 'right'
212
- },
213
- transformOrigin: {
214
- vertical: 'top',
215
- horizontal: 'left'
216
- }
217
- }, /*#__PURE__*/_react["default"].createElement("div", {
218
- className: (0, _classnames["default"])(classes.wrapper, type)
219
- }, /*#__PURE__*/_react["default"].createElement(_core.TextField, {
220
- id: "annotation-editor",
221
- style: {
222
- padding: '2px 5px',
223
- width: '95%'
224
- },
225
- autoFocus: true,
226
- multiline: true,
227
- rows: 1,
228
- rowsMax: 4,
229
- value: value,
230
- onChange: this.onValueChange,
231
- InputProps: {
232
- disableUnderline: true
233
- }
234
- }), /*#__PURE__*/_react["default"].createElement("div", {
235
- className: classes.holder
236
- }, /*#__PURE__*/_react["default"].createElement("div", {
237
- className: classes.button,
238
- onClick: onDelete
239
- }, "Delete"), /*#__PURE__*/_react["default"].createElement("div", {
240
- className: (0, _classnames["default"])(classes.button, type),
241
- onClick: this.handleTypeChange
242
- }, type === 'negative' ? 'Green' : 'Pink'), /*#__PURE__*/_react["default"].createElement("div", {
243
- className: classes.button,
244
- onClick: this.handleSave
245
- }, "Save"))));
155
+ UNSAFE_componentWillReceiveProps(nextProps) {
156
+ const {
157
+ value
158
+ } = nextProps;
159
+ const {
160
+ value: propsValue
161
+ } = this.props;
162
+ if (value !== propsValue) {
163
+ this.setState({
164
+ value
165
+ });
246
166
  }
247
- }]);
248
- return FreeformEditor;
249
- }(_react["default"].Component);
250
-
251
- (0, _defineProperty2["default"])(FreeformEditor, "propTypes", {
252
- anchorEl: _propTypes["default"].object,
253
- open: _propTypes["default"].bool,
254
- offset: _propTypes["default"].number,
255
- value: _propTypes["default"].string,
256
- type: _propTypes["default"].string,
257
- onClose: _propTypes["default"].func,
258
- onDelete: _propTypes["default"].func,
259
- onSave: _propTypes["default"].func,
260
- onTypeChange: _propTypes["default"].func
167
+ }
168
+ render() {
169
+ const {
170
+ anchorEl,
171
+ offset,
172
+ onDelete,
173
+ open,
174
+ type
175
+ } = this.props;
176
+ const {
177
+ value
178
+ } = this.state;
179
+ return /*#__PURE__*/_react.default.createElement(StyledPopover, {
180
+ anchorEl: anchorEl,
181
+ elevation: 2,
182
+ open: open,
183
+ onClose: this.handleSave,
184
+ annotationType: type,
185
+ style: {
186
+ marginTop: `${offset}px`,
187
+ transition: 'margin-top 2s ease-out'
188
+ },
189
+ transitionDuration: {
190
+ enter: 225,
191
+ exit: 195
192
+ },
193
+ anchorOrigin: {
194
+ vertical: 'top',
195
+ horizontal: 'right'
196
+ },
197
+ transformOrigin: {
198
+ vertical: 'top',
199
+ horizontal: 'left'
200
+ }
201
+ }, /*#__PURE__*/_react.default.createElement(Wrapper, {
202
+ annotationType: type
203
+ }, /*#__PURE__*/_react.default.createElement(_material.TextField, {
204
+ id: "annotation-editor",
205
+ style: {
206
+ padding: '2px 5px',
207
+ width: '95%'
208
+ },
209
+ autoFocus: true,
210
+ multiline: true,
211
+ rows: 1,
212
+ maxRows: 4,
213
+ value: value,
214
+ onChange: this.onValueChange,
215
+ InputProps: {
216
+ disableUnderline: true
217
+ }
218
+ }), /*#__PURE__*/_react.default.createElement(Holder, null, /*#__PURE__*/_react.default.createElement(Button, {
219
+ onClick: onDelete
220
+ }, "Delete"), /*#__PURE__*/_react.default.createElement(Button, {
221
+ variant: "typeChange",
222
+ annotationType: type,
223
+ onClick: this.handleTypeChange
224
+ }, type === 'negative' ? 'Green' : 'Pink'), /*#__PURE__*/_react.default.createElement(Button, {
225
+ onClick: this.handleSave
226
+ }, "Save"))));
227
+ }
228
+ }
229
+ (0, _defineProperty2.default)(FreeformEditor, "propTypes", {
230
+ anchorEl: _propTypes.default.object,
231
+ open: _propTypes.default.bool,
232
+ offset: _propTypes.default.number,
233
+ value: _propTypes.default.string,
234
+ type: _propTypes.default.string,
235
+ onClose: _propTypes.default.func,
236
+ onDelete: _propTypes.default.func,
237
+ onSave: _propTypes.default.func,
238
+ onTypeChange: _propTypes.default.func
261
239
  });
262
-
263
- var _default = (0, _styles.withStyles)(styles)(FreeformEditor);
264
-
265
- exports["default"] = _default;
240
+ var _default = exports.default = FreeformEditor;
266
241
  //# sourceMappingURL=freeform-editor.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/annotation/freeform-editor.jsx"],"names":["styles","theme","wrapper","width","overflow","borderRadius","backgroundColor","border","palette","grey","borderColor","holder","display","flexWrap","borderTop","positive","filter","negative","button","flexGrow","textAlign","padding","cursor","borderRight","arrow","overflowX","overflowY","marginLeft","position","right","top","content","height","pointerEvents","borderWidth","borderRightColor","FreeformEditor","props","event","setState","value","target","oldValue","onSave","onClose","onDelete","state","onTypeChange","nextProps","propsValue","anchorEl","classes","offset","open","type","handleSave","paper","marginTop","transition","vertical","horizontal","onValueChange","disableUnderline","handleTypeChange","React","Component","PropTypes","object","bool","number","string","func"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAAAC,KAAK;AAAA,SAAI;AACtBC,IAAAA,OAAO,EAAE;AACPC,MAAAA,KAAK,EAAE,OADA;AAEPC,MAAAA,QAAQ,EAAE,QAFH;AAGPC,MAAAA,YAAY,EAAE,KAHP;AAIPC,MAAAA,eAAe,EAAE,SAJV;AAKPC,MAAAA,MAAM,sBAAeN,KAAK,CAACO,OAAN,CAAcC,IAAd,CAAmB,GAAnB,CAAf,CALC;AAMP,oBAAc;AACZC,QAAAA,WAAW,EAAE;AADD,OANP;AASP,oBAAc;AACZA,QAAAA,WAAW,EAAE;AADD;AATP,KADa;AActBC,IAAAA,MAAM,EAAE;AACNC,MAAAA,OAAO,EAAE,MADH;AAENC,MAAAA,QAAQ,EAAE,MAFJ;AAGNC,MAAAA,SAAS,sBAAeb,KAAK,CAACO,OAAN,CAAcC,IAAd,CAAmB,GAAnB,CAAf;AAHH,KAdc;AAmBtBM,IAAAA,QAAQ,EAAE;AACRT,MAAAA,eAAe,EAAE,+BADT;AAER,iBAAW;AACTU,QAAAA,MAAM,EAAE;AADC;AAFH,KAnBY;AAyBtBC,IAAAA,QAAQ,EAAE;AACRX,MAAAA,e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ATP,C;;eA8GN,wBAAWvE,MAAX,EAAmBoC,cAAnB,C","sourcesContent":["import React from 'react';\nimport classNames from 'classnames';\nimport PropTypes from 'prop-types';\nimport { Popover, TextField } from '@material-ui/core';\nimport { withStyles } from '@material-ui/core/styles';\n\nconst styles = theme =>({\n wrapper: {\n width: '200px',\n overflow: 'hidden',\n borderRadius: '4px',\n backgroundColor: '#ffffff',\n border: `4px solid ${theme.palette.grey[100]}`,\n '&.negative': {\n borderColor: 'rgb(255, 204, 238) !important',\n },\n '&.positive': {\n borderColor: 'rgb(153, 255, 153) !important',\n },\n },\n holder: {\n display: 'flex',\n flexWrap: 'wrap',\n borderTop: `2px solid ${theme.palette.grey[100]}`,\n },\n positive: {\n backgroundColor: 'rgb(153, 255, 153) !important',\n '&:hover': {\n filter: 'brightness(85%)',\n },\n },\n negative: {\n backgroundColor: 'rgb(255, 204, 238) !important',\n '&:hover': {\n filter: 'brightness(85%)',\n },\n },\n button: {\n flexGrow: 1,\n width: '28%',\n textAlign: 'center',\n padding: '4px',\n cursor: 'pointer',\n '&:not(:nth-child(3n))': {\n borderRight: `1px solid ${theme.palette.grey[100]}`,\n },\n '&:hover': {\n backgroundColor: theme.palette.grey[100],\n },\n '&.negative:hover': {\n backgroundColor: 'rgb(153, 255, 153) !important',\n },\n '&.positive:hover': {\n backgroundColor: 'rgb(255, 204, 238) !important',\n },\n },\n arrow: {\n overflowX: 'unset',\n overflowY: 'unset',\n marginLeft: '16px',\n '&::before': {\n position: 'absolute',\n right: '100%',\n top: '13px',\n border: 'solid transparent',\n content: '\"\"',\n height: 0,\n width: 0,\n pointerEvents: 'none',\n borderWidth: '7px',\n borderRightColor: theme.palette.grey[100],\n },\n '&.negative::before': {\n borderRightColor: 'rgb(255, 204, 238) !important',\n },\n '&.positive::before': {\n borderRightColor: 'rgb(153, 255, 153) !important',\n },\n },\n});\n\nclass FreeformEditor extends React.Component {\n static propTypes = {\n anchorEl: PropTypes.object,\n open: PropTypes.bool,\n offset: PropTypes.number,\n value: PropTypes.string,\n type: PropTypes.string,\n onClose: PropTypes.func,\n onDelete: PropTypes.func,\n onSave: PropTypes.func,\n onTypeChange: PropTypes.func,\n };\n\n constructor(props) {\n super(props);\n this.state = { value: props.value };\n }\n\n UNSAFE_componentWillReceiveProps(nextProps) {\n const { value } = nextProps;\n const { value: propsValue } = this.props;\n\n if (value !== propsValue) {\n this.setState({ value });\n }\n }\n\n onValueChange = (event) => this.setState({ value: event.target.value });\n\n handleSave = () => {\n const { value: oldValue, onSave, onClose, onDelete } = this.props;\n const { value } = this.state;\n\n if (value === '') {\n onDelete();\n }\n\n if (oldValue !== value) {\n onSave(oldValue, value);\n }\n\n this.setState({ value: '' });\n onClose();\n };\n\n handleTypeChange = () => {\n const { onTypeChange, onDelete } = this.props;\n const { value } = this.state;\n\n if (value === '') {\n onDelete();\n } else {\n onTypeChange(value);\n }\n\n this.setState({ value: '' });\n };\n\n render() {\n const { anchorEl, classes, offset, onDelete, open, type } = this.props;\n const { value } = this.state;\n\n return (\n <Popover\n anchorEl={anchorEl}\n elevation={2}\n open={open}\n onClose={this.handleSave}\n classes={{ paper: classNames(classes.arrow, type) }}\n style={{ marginTop: `${offset}px`, transition: 'margin-top 2s ease-out' }}\n anchorOrigin={{\n vertical: 'top',\n horizontal: 'right',\n }}\n transformOrigin={{\n vertical: 'top',\n horizontal: 'left',\n }}\n >\n <div className={classNames(classes.wrapper, type)}>\n <TextField\n id=\"annotation-editor\"\n style={{\n padding: '2px 5px',\n width: '95%',\n }}\n autoFocus\n multiline\n rows={1}\n rowsMax={4}\n value={value}\n onChange={this.onValueChange}\n InputProps={{ disableUnderline: true }}\n />\n <div className={classes.holder}>\n <div className={classes.button} onClick={onDelete}>\n Delete\n </div>\n <div className={classNames(classes.button, type)} onClick={this.handleTypeChange}>\n {type === 'negative' ? 'Green' : 'Pink'}\n </div>\n <div className={classes.button} onClick={this.handleSave}>\n Save\n </div>\n </div>\n </div>\n </Popover>\n );\n }\n}\n\nexport default withStyles(styles)(FreeformEditor);\n"],"file":"freeform-editor.js"}
1
+ {"version":3,"file":"freeform-editor.js","names":["_react","_interopRequireDefault","require","_propTypes","_material","_styles","StyledPopover","styled","Popover","theme","annotationType","overflowX","overflowY","marginLeft","position","right","top","border","content","height","width","pointerEvents","borderWidth","borderRightColor","palette","grey","Wrapper","overflow","borderRadius","backgroundColor","borderColor","Holder","display","flexWrap","borderTop","Button","variant","flexGrow","textAlign","padding","cursor","borderRight","filter","FreeformEditor","React","Component","constructor","props","_defineProperty2","default","event","setState","value","target","oldValue","onSave","onClose","onDelete","state","onTypeChange","UNSAFE_componentWillReceiveProps","nextProps","propsValue","render","anchorEl","offset","open","type","createElement","elevation","handleSave","style","marginTop","transition","transitionDuration","enter","exit","anchorOrigin","vertical","horizontal","transformOrigin","TextField","id","autoFocus","multiline","rows","maxRows","onChange","onValueChange","InputProps","disableUnderline","onClick","handleTypeChange","PropTypes","object","bool","number","string","func","_default","exports"],"sources":["../../src/annotation/freeform-editor.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Popover, TextField } from '@mui/material';\nimport { styled } from '@mui/material/styles';\n\nconst StyledPopover = styled(Popover)(({ theme, annotationType }) => ({\n '& .MuiPaper-root': {\n overflowX: 'unset',\n overflowY: 'unset',\n marginLeft: '16px',\n '&::before': {\n position: 'absolute',\n right: '100%',\n top: '13px',\n border: 'solid transparent',\n content: '\"\"',\n height: 0,\n width: 0,\n pointerEvents: 'none',\n borderWidth: '7px',\n borderRightColor: theme.palette.grey[100],\n },\n ...(annotationType === 'negative' && {\n '&::before': {\n borderRightColor: 'rgb(255, 204, 238) !important',\n },\n }),\n ...(annotationType === 'positive' && {\n '&::before': {\n borderRightColor: 'rgb(153, 255, 153) !important',\n },\n }),\n },\n}));\n\nconst Wrapper = styled('div')(({ theme, annotationType }) => ({\n width: '200px',\n overflow: 'hidden',\n borderRadius: '4px',\n backgroundColor: '#ffffff',\n border: `4px solid ${theme.palette.grey[100]}`,\n ...(annotationType === 'negative' && {\n borderColor: 'rgb(255, 204, 238) !important',\n }),\n ...(annotationType === 'positive' && {\n borderColor: 'rgb(153, 255, 153) !important',\n }),\n}));\n\nconst Holder = styled('div')(({ theme }) => ({\n display: 'flex',\n flexWrap: 'wrap',\n borderTop: `2px solid ${theme.palette.grey[100]}`,\n}));\n\nconst Button = styled('div')(({ theme, variant, annotationType }) => ({\n flexGrow: 1,\n width: '28%',\n textAlign: 'center',\n padding: '4px',\n cursor: 'pointer',\n '&:not(:nth-child(3n))': {\n borderRight: `1px solid ${theme.palette.grey[100]}`,\n },\n '&:hover': {\n backgroundColor: theme.palette.grey[100],\n },\n ...(variant === 'positive' && {\n backgroundColor: 'rgb(153, 255, 153) !important',\n '&:hover': {\n filter: 'brightness(85%)',\n },\n }),\n ...(variant === 'negative' && {\n backgroundColor: 'rgb(255, 204, 238) !important',\n '&:hover': {\n filter: 'brightness(85%)',\n },\n }),\n ...(variant === 'typeChange' && annotationType === 'negative' && {\n '&:hover': {\n backgroundColor: 'rgb(153, 255, 153) !important',\n },\n }),\n ...(variant === 'typeChange' && annotationType === 'positive' && {\n '&:hover': {\n backgroundColor: 'rgb(255, 204, 238) !important',\n },\n }),\n}));\n\nclass FreeformEditor extends React.Component {\n static propTypes = {\n anchorEl: PropTypes.object,\n open: PropTypes.bool,\n offset: PropTypes.number,\n value: PropTypes.string,\n type: PropTypes.string,\n onClose: PropTypes.func,\n onDelete: PropTypes.func,\n onSave: PropTypes.func,\n onTypeChange: PropTypes.func,\n };\n\n constructor(props) {\n super(props);\n this.state = { value: props.value };\n }\n\n UNSAFE_componentWillReceiveProps(nextProps) {\n const { value } = nextProps;\n const { value: propsValue } = this.props;\n\n if (value !== propsValue) {\n this.setState({ value });\n }\n }\n\n onValueChange = (event) => this.setState({ value: event.target.value });\n\n handleSave = () => {\n const { value: oldValue, onSave, onClose, onDelete } = this.props;\n const { value } = this.state;\n\n if (value === '') {\n onDelete();\n }\n\n if (oldValue !== value) {\n onSave(oldValue, value);\n }\n\n this.setState({ value: '' });\n onClose();\n };\n\n handleTypeChange = () => {\n const { onTypeChange, onDelete } = this.props;\n const { value } = this.state;\n\n if (value === '') {\n onDelete();\n } else {\n onTypeChange(value);\n }\n\n this.setState({ value: '' });\n };\n\n render() {\n const { anchorEl, offset, onDelete, open, type } = this.props;\n const { value } = this.state;\n\n return (\n <StyledPopover\n anchorEl={anchorEl}\n elevation={2}\n open={open}\n onClose={this.handleSave}\n annotationType={type}\n style={{ marginTop: `${offset}px`, transition: 'margin-top 2s ease-out' }}\n transitionDuration={{ enter: 225, exit: 195 }}\n anchorOrigin={{\n vertical: 'top',\n horizontal: 'right',\n }}\n transformOrigin={{\n vertical: 'top',\n horizontal: 'left',\n }}\n >\n <Wrapper annotationType={type}>\n <TextField\n id=\"annotation-editor\"\n style={{\n padding: '2px 5px',\n width: '95%',\n }}\n autoFocus\n multiline\n rows={1}\n maxRows={4}\n value={value}\n onChange={this.onValueChange}\n InputProps={{ disableUnderline: true }}\n />\n <Holder>\n <Button onClick={onDelete}>\n Delete\n </Button>\n <Button variant=\"typeChange\" annotationType={type} onClick={this.handleTypeChange}>\n {type === 'negative' ? 'Green' : 'Pink'}\n </Button>\n <Button onClick={this.handleSave}>\n Save\n </Button>\n </Holder>\n </Wrapper>\n </StyledPopover>\n );\n }\n}\n\nexport default FreeformEditor;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAEA,MAAMI,aAAa,GAAG,IAAAC,cAAM,EAACC,iBAAO,CAAC,CAAC,CAAC;EAAEC,KAAK;EAAEC;AAAe,CAAC,MAAM;EACpE,kBAAkB,EAAE;IAClBC,SAAS,EAAE,OAAO;IAClBC,SAAS,EAAE,OAAO;IAClBC,UAAU,EAAE,MAAM;IAClB,WAAW,EA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