react-ui-basics 0.0.160 → 0.0.161

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,11 +1,10 @@
1
- import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
1
+ import ReactConstants from "./ReactConstants";
2
+ import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, props as __props, scrollLeft as __scrollLeft, scrollTop as __scrollTop, state as __state, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
2
3
 
3
4
  import { jsx as jsxRuntime_2 } from 'react/jsx-runtime';
4
5
  import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
5
6
  import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
6
7
  import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
7
- import {className as __className} from "./ReactConstants";
8
- import {children as __children} from "./ReactConstants";
9
8
  import Table from './Table.js';
10
9
  import Scrollable from './Scrollable.js';
11
10
  import { render, props, PureComponent } from './ReactConstants.js';
@@ -17,8 +16,8 @@ var ScrollableTable = /** @class */ (function (_super) {
17
16
  var _this = _super.call(this, properties) || this;
18
17
  var that = _this;
19
18
  var scrollableRef = createRef();
20
- that[render] = function () {
21
- return jsxRuntime_2("div", __extends({ [__className]: "ScrollableTable" }, { [__children]: jsxRuntime_2(Scrollable, __extends({ ref: scrollableRef }, props(that).scrollableProps, { [__children]: jsxRuntime_2(Table, __extends({}, props(that))) })) }));
19
+ that[ReactConstants[3]] = function () {
20
+ return jsxRuntime_2("div", __extends({ [ReactConstants[5]]: "ScrollableTable" }, { [ReactConstants[4]]: jsxRuntime_2(Scrollable, __extends({ ref: scrollableRef }, props(that).scrollableProps, { [ReactConstants[4]]: jsxRuntime_2(Table, __extends({}, props(that))) })) }));
22
21
  };
23
22
  that.getScrollable = function () { return scrollableRef(); };
24
23
  return _this;
package/Size.js CHANGED
@@ -1,17 +1,16 @@
1
- import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
1
+ import ReactConstants from "./ReactConstants";
2
+ import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, props as __props, scrollLeft as __scrollLeft, scrollTop as __scrollTop, state as __state, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
2
3
  import 'react';
3
4
  import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
4
5
  import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
5
6
  import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
6
- import {className as __className} from "./ReactConstants";
7
- import {children as __children} from "./ReactConstants";
8
7
  import ReactCreateElement from './ReactCreateElement.js';
9
8
  import { isUndefined } from './Tools.js';
10
9
 
11
10
  var Size = function Size(_ref) {
12
11
  var value = __value(_ref);
13
12
  return ReactCreateElement("span", {
14
- [__className]: "Size"
13
+ [ReactConstants[5]]: "Size"
15
14
  }, formatNumber(value, 1), "\xA0", formatAbbreviation(value));
16
15
  };
17
16
  var formatNumberWithMaxLength = function formatNumberWithMaxLength(size, fractionalLength, toAbbreviation, maxLength) {
package/Snackbar.js CHANGED
@@ -1,10 +1,9 @@
1
- import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
1
+ import ReactConstants from "./ReactConstants";
2
+ import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, props as __props, scrollLeft as __scrollLeft, scrollTop as __scrollTop, state as __state, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
2
3
  import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, slicedToArray as _slicedToArray, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
3
4
  import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
4
5
  import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
5
6
  import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
6
- import {className as __className} from "./ReactConstants";
7
- import {children as __children} from "./ReactConstants";
8
7
  import 'react';
9
8
  import ReactDOM from 'react-dom';
10
9
  import ReactCreateElement from './ReactCreateElement.js';
@@ -28,16 +27,16 @@ var Snackbar = function (_PureComponent) {
28
27
  getText = _stateGSs2[1],
29
28
  clazzName = _stateGSs2[2];
30
29
  var timeout;
31
- that[componentWillUnmount] = function () {
30
+ that[ReactConstants[1]] = function () {
32
31
  clearTimeout(timeout);
33
32
  };
34
- that[render] = function () {
33
+ that[ReactConstants[3]] = function () {
35
34
  var _props = props(that);
36
35
  var container = _props.container;
37
36
  var el = ReactCreateElement("div", {
38
- [__className]: classNames("Snackbar", _props[className], isShow() && shown, clazzName())
37
+ [ReactConstants[5]]: classNames("Snackbar", _props[ReactConstants[5]], isShow() && shown, clazzName())
39
38
  }, ReactCreateElement("div", {
40
- [__className]: "message"
39
+ [ReactConstants[5]]: "message"
41
40
  }, getText() || _props.text));
42
41
  return container ? ReactDOM.createPortal(el, container) : el;
43
42
  };
@@ -63,7 +62,7 @@ var Snackbar = function (_PureComponent) {
63
62
  }(PureComponent);
64
63
  if (process.env.NODE_ENV !== 'production') {
65
64
  Snackbar.propTypes = {
66
- [__className]: PropTypes.string,
65
+ [ReactConstants[5]]: PropTypes.string,
67
66
  text: PropTypes.string,
68
67
  container: PropTypes.node
69
68
  };
@@ -1,20 +1,19 @@
1
- import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
1
+ import ReactConstants from "./ReactConstants";
2
+ import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, props as __props, scrollLeft as __scrollLeft, scrollTop as __scrollTop, state as __state, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
2
3
  import 'react';
3
4
  import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
4
5
  import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
5
6
  import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
6
- import {className as __className} from "./ReactConstants";
7
- import {children as __children} from "./ReactConstants";
8
7
  import ReactCreateElement from './ReactCreateElement.js';
9
8
 
10
9
  var SpinningProgress = function SpinningProgress() {
11
10
  return ReactCreateElement("div", {
12
- [__className]: "SpinningProgress"
11
+ [ReactConstants[5]]: "SpinningProgress"
13
12
  }, ReactCreateElement("svg", {
14
- [__className]: "circular",
13
+ [ReactConstants[5]]: "circular",
15
14
  viewBox: "0 0 24 24"
16
15
  }, ReactCreateElement("circle", {
17
- [__className]: "line",
16
+ [ReactConstants[5]]: "line",
18
17
  cx: "12",
19
18
  cy: "12",
20
19
  r: "8.75",
package/Switch.js CHANGED
@@ -1,10 +1,9 @@
1
- import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
1
+ import ReactConstants from "./ReactConstants";
2
+ import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, props as __props, scrollLeft as __scrollLeft, scrollTop as __scrollTop, state as __state, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
2
3
  import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
3
4
  import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
4
5
  import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
5
6
  import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
6
- import {className as __className} from "./ReactConstants";
7
- import {children as __children} from "./ReactConstants";
8
7
  import 'react';
9
8
  import ReactCreateElement from './ReactCreateElement.js';
10
9
  import { classNames, getRandomId } from './Tools.js';
@@ -19,34 +18,34 @@ var Switch = function (_PureComponent) {
19
18
  _classCallCheck(this, Switch);
20
19
  _this = _super.call(this, props);
21
20
  var randomId = getRandomId('sw-');
22
- _this[render] = function () {
23
- var _this$props = _this.props,
21
+ _this[ReactConstants[3]] = function () {
22
+ var _this$props = __props(_this),
24
23
  label = _this$props.label,
25
- className = _this$props[__className],
24
+ className = _this$props[ReactConstants[5]],
26
25
  labelOn = _this$props.labelOn,
27
26
  labelOff = _this$props.labelOff,
28
27
  onChange = _this$props.onChange,
29
28
  value = __value(_this$props),
30
29
  onClick = _this$props.onClick;
31
- var id = _this.props.id || randomId;
30
+ var id = __props(_this).id || randomId;
32
31
  return ReactCreateElement("div", {
33
- [__className]: classNames("Switch", className),
32
+ [ReactConstants[5]]: classNames("Switch", className),
34
33
  onClick: onClick
35
34
  }, ReactCreateElement("input", {
36
35
  type: "checkbox",
37
36
  id: id,
38
- [__className]: "switch-input",
37
+ [ReactConstants[5]]: "switch-input",
39
38
  onChange: onChange,
40
39
  checked: value
41
40
  }), ReactCreateElement("label", {
42
41
  htmlFor: id,
43
- [__className]: "switch-label"
42
+ [ReactConstants[5]]: "switch-label"
44
43
  }, label && ReactCreateElement("span", {
45
- [__className]: "label"
44
+ [ReactConstants[5]]: "label"
46
45
  }, label), labelOn && ReactCreateElement("span", {
47
- [__className]: "toggle--on"
46
+ [ReactConstants[5]]: "toggle--on"
48
47
  }, labelOn), labelOff && ReactCreateElement("span", {
49
- [__className]: "toggle--off"
48
+ [ReactConstants[5]]: "toggle--off"
50
49
  }, labelOff)));
51
50
  };
52
51
  return _this;
@@ -56,7 +55,7 @@ var Switch = function (_PureComponent) {
56
55
  var Switch$1 = Switch;
57
56
  if (process.env.NODE_ENV !== 'production') {
58
57
  Switch.propTypes = {
59
- [__className]: PropTypes.string,
58
+ [ReactConstants[5]]: PropTypes.string,
60
59
  label: PropTypes.string,
61
60
  labelOn: PropTypes.string,
62
61
  labelOff: PropTypes.string,
package/Table.js CHANGED
@@ -1,11 +1,10 @@
1
- import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
1
+ import ReactConstants from "./ReactConstants";
2
+ import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, props as __props, scrollLeft as __scrollLeft, scrollTop as __scrollTop, state as __state, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
2
3
 
3
4
  import { jsxs as jsxRuntime_1, jsx as jsxRuntime_2 } from 'react/jsx-runtime';
4
5
  import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
5
6
  import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
6
7
  import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
7
- import {className as __className} from "./ReactConstants";
8
- import {children as __children} from "./ReactConstants";
9
8
  import { Component } from 'react';
10
9
  import TextField from './TextField.js';
11
10
  import AutocompleteSelect, { MODE_MULTIPLE_MINI, MODE_DEFAULT } from './AutocompleteSelect.js';
@@ -30,7 +29,7 @@ var Table = /** @class */ (function (_super) {
30
29
  var hidden = headers().querySelectorAll('.hidden');
31
30
  var fixed = headers().querySelectorAll('.fixed');
32
31
  for (var i = 0; i < __length(hidden); i++) {
33
- fixed[i].style.width = hidden[i].offsetWidth + 'px';
32
+ __style(fixed[i]).width = hidden[i].offsetWidth + 'px';
34
33
  }
35
34
  };
36
35
  var cancelEditing = function () {
@@ -81,18 +80,18 @@ var Table = /** @class */ (function (_super) {
81
80
  sortBy: sortBy
82
81
  }, function () { return setData(__data(state(_this))); });
83
82
  };
84
- _this[componentDidMount] = function () {
83
+ _this[ReactConstants[0]] = function () {
85
84
  var _a;
86
85
  var _b = props(), sortBy = _b.sortBy, _c = _b.sortOrder, sortOrder = _c === void 0 ? SORT_ASC : _c, columns = _b.columns;
87
86
  _this.setState({
88
87
  sortBy: sortBy,
89
88
  sortOrder: sortOrder,
90
89
  comparator: (_a = columns.find(function (it) { return it.field === sortBy; })) === null || _a === void 0 ? void 0 : _a.comparator
91
- }, function () { return setData(_this.props.data); });
90
+ }, function () { return setData(__props(_this).data); });
92
91
  updateHeaders();
93
92
  updateHeadersInterval = setInterval(updateHeaders, 1000);
94
93
  };
95
- _this[componentDidUpdate] = function (prevProps, prevState, snapshot) {
94
+ _this[ReactConstants[2]] = function (prevProps, prevState, snapshot) {
96
95
  var _a;
97
96
  var _b = props(), sortBy = _b.sortBy, sortOrder = _b.sortOrder, columns = _b.columns, data = __data(_b);
98
97
  if (sortBy !== prevProps.sortBy || sortOrder !== prevProps.sortOrder) {
@@ -107,15 +106,15 @@ var Table = /** @class */ (function (_super) {
107
106
  }
108
107
  updateHeaders();
109
108
  };
110
- _this[render] = function () {
111
- var _a = props(), _b = _a.columns, columns = _b === void 0 ? [] : _b, _c = _a.onRowClick, onRowClick = _c === void 0 ? NOOP : _c, disabled = _a.disabled, className = _a[__className], rowClassName = _a.rowClassName, _d = _a.toKey, toKey = _d === void 0 ? getId : _d;
109
+ _this[ReactConstants[3]] = function () {
110
+ var _a = props(), _b = _a.columns, columns = _b === void 0 ? [] : _b, _c = _a.onRowClick, onRowClick = _c === void 0 ? NOOP : _c, disabled = _a.disabled, className = _a[ReactConstants[5]], rowClassName = _a.rowClassName, _d = _a.toKey, toKey = _d === void 0 ? getId : _d;
112
111
  var _e = state(_this), sortBy = _e.sortBy, sortOrder = _e.sortOrder, _f = __data(_e), data = _f === void 0 ? [] : _f, editing = _e.editing;
113
- return (jsxRuntime_1("table", __extends({ [__className]: classNames("Table", className) }, { [__children]: [jsxRuntime_2("thead", { [__children]: jsxRuntime_2("tr", __extends({ ref: headers }, { [__children]: columns.filter(function (it) { return !!it; }).map(function (column, i) {
112
+ return (jsxRuntime_1("table", __extends({ [ReactConstants[5]]: classNames("Table", className) }, { [ReactConstants[4]]: [jsxRuntime_2("thead", { [ReactConstants[4]]: jsxRuntime_2("tr", __extends({ ref: headers }, { [ReactConstants[4]]: columns.filter(function (it) { return !!it; }).map(function (column, i) {
114
113
  var sortable = column.sortable || column.sortable == null;
115
- return (jsxRuntime_1("th", __extends({ onClick: function (e) { return sortable && sort(e, column.field, column.comparator); } }, { [__children]: [jsxRuntime_1("div", __extends({ [__className]: classNames('hidden', sortable && 'sortable', sortBy === column.field && 'active') }, { [__children]: [column.header, column.header && sortBy === column.field && sortOrder === SORT_ASC && (jsxRuntime_2(MaterialIcon, { icon: 'keyboard_arrow_up' })), column.header && sortBy === column.field && sortOrder === SORT_DESC && (jsxRuntime_2(MaterialIcon, { icon: 'keyboard_arrow_down' }))] })), jsxRuntime_1("div", __extends({ [__className]: classNames('fixed', sortable && 'sortable', sortBy === column.field && 'active') }, { [__children]: [column.header, column.header && sortBy === column.field && sortOrder === SORT_ASC && (jsxRuntime_2(MaterialIcon, { icon: 'keyboard_arrow_up' })), column.header && sortBy === column.field && sortOrder === SORT_DESC && (jsxRuntime_2(MaterialIcon, { icon: 'keyboard_arrow_down' }))] }))] }), i));
116
- }) })) }), jsxRuntime_2("tbody", { [__children]: data.map(function (item) { return (jsxRuntime_2(Row, { item: item, disabled: disabled, editing: editing && editing.id === toKey(item) ? editing : null, onClick: onRowClick, [__className]: rowClassName, columns: columns, setEditing: setEditing, cancelEditing: cancelEditing, onFinishEditing: onFinishEditing, handleInputChange: handleInputChange, setValue: setValue }, toKey(item))); }) })] })));
114
+ return (jsxRuntime_1("th", __extends({ onClick: function (e) { return sortable && sort(e, column.field, column.comparator); } }, { [ReactConstants[4]]: [jsxRuntime_1("div", __extends({ [ReactConstants[5]]: classNames('hidden', sortable && 'sortable', sortBy === column.field && 'active') }, { [ReactConstants[4]]: [column.header, column.header && sortBy === column.field && sortOrder === SORT_ASC && (jsxRuntime_2(MaterialIcon, { icon: 'keyboard_arrow_up' })), column.header && sortBy === column.field && sortOrder === SORT_DESC && (jsxRuntime_2(MaterialIcon, { icon: 'keyboard_arrow_down' }))] })), jsxRuntime_1("div", __extends({ [ReactConstants[5]]: classNames('fixed', sortable && 'sortable', sortBy === column.field && 'active') }, { [ReactConstants[4]]: [column.header, column.header && sortBy === column.field && sortOrder === SORT_ASC && (jsxRuntime_2(MaterialIcon, { icon: 'keyboard_arrow_up' })), column.header && sortBy === column.field && sortOrder === SORT_DESC && (jsxRuntime_2(MaterialIcon, { icon: 'keyboard_arrow_down' }))] }))] }), i));
115
+ }) })) }), jsxRuntime_2("tbody", { [ReactConstants[4]]: data.map(function (item) { return (jsxRuntime_2(Row, { item: item, disabled: disabled, editing: editing && editing.id === toKey(item) ? editing : null, onClick: onRowClick, [ReactConstants[5]]: rowClassName, columns: columns, setEditing: setEditing, cancelEditing: cancelEditing, onFinishEditing: onFinishEditing, handleInputChange: handleInputChange, setValue: setValue }, toKey(item))); }) })] })));
117
116
  };
118
- _this[componentWillUnmount] = function () {
117
+ _this[ReactConstants[1]] = function () {
119
118
  clearInterval(updateHeadersInterval);
120
119
  };
121
120
  return _this;
@@ -136,12 +135,12 @@ var Row = /** @class */ (function (_super) {
136
135
  function Row() {
137
136
  return _super !== null && _super.apply(this, arguments) || this;
138
137
  }
139
- Row.prototype.render = function () {
140
- var _a = this.props, item = _a.item, disabled = _a.disabled, editing = _a.editing, onClick = _a.onClick, className = _a[__className], columns = _a.columns, setEditing = _a.setEditing, cancelEditing = _a.cancelEditing, onFinishEditing = _a.onFinishEditing, handleInputChange = _a.handleInputChange, setValue = _a.setValue;
141
- return jsxRuntime_2("tr", __extends({ onClick: function (e) { return onClick(item); }, [__className]: classNames(disabled && disabled(item) && 'disabled', className && (isFunction(className) ? className(item) : className)) }, { [__children]: columns.filter(function (it) { return !!it; }).map(function (column, i) {
138
+ Row.prototype[ReactConstants[3]] = function () {
139
+ var _a = __props(this), item = _a.item, disabled = _a.disabled, editing = _a.editing, onClick = _a.onClick, className = _a[ReactConstants[5]], columns = _a.columns, setEditing = _a.setEditing, cancelEditing = _a.cancelEditing, onFinishEditing = _a.onFinishEditing, handleInputChange = _a.handleInputChange, setValue = _a.setValue;
140
+ return jsxRuntime_2("tr", __extends({ onClick: function (e) { return onClick(item); }, [ReactConstants[5]]: classNames(disabled && disabled(item) && 'disabled', className && (isFunction(className) ? className(item) : className)) }, { [ReactConstants[4]]: columns.filter(function (it) { return !!it; }).map(function (column, i) {
142
141
  var isEditing = editing && editing.columnIndex === i;
143
142
  var editable = isFunction(column.editable) ? column.editable(item) : !!column.editable;
144
- return (jsxRuntime_1("td", __extends({ [__className]: classNames(editable ? 'editable' : 'ro', isEditing && 'editing', column[__className]), onClick: !isEditing && editable ? function () { return setEditing(item, i, column.field); } : NOOP }, { [__children]: [(isEditing || column.displayEditor) && !column.editor && (jsxRuntime_2(TextField, { value: column.preEditor ? column.preEditor(__value(editing)) : __value(editing), focused: true, onBlur: cancelEditing, onChange: handleInputChange, onKeyDown: function (e) {
143
+ return (jsxRuntime_1("td", __extends({ [ReactConstants[5]]: classNames(editable ? 'editable' : 'ro', isEditing && 'editing', column[ReactConstants[5]]), onClick: !isEditing && editable ? function () { return setEditing(item, i, column.field); } : NOOP }, { [ReactConstants[4]]: [(isEditing || column.displayEditor) && !column.editor && (jsxRuntime_2(TextField, { value: column.preEditor ? column.preEditor(__value(editing)) : __value(editing), focused: true, onBlur: cancelEditing, onChange: handleInputChange, onKeyDown: function (e) {
145
144
  if (e.keyCode === 27 /*escape*/) {
146
145
  preventDefault(e);
147
146
  cancelEditing();
package/TextField.js CHANGED
@@ -1,10 +1,9 @@
1
- import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
1
+ import ReactConstants from "./ReactConstants";
2
+ import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, props as __props, scrollLeft as __scrollLeft, scrollTop as __scrollTop, state as __state, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
2
3
  import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, slicedToArray as _slicedToArray, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
3
4
  import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
4
5
  import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
5
6
  import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
6
- import {className as __className} from "./ReactConstants";
7
- import {children as __children} from "./ReactConstants";
8
7
  import 'react';
9
8
  import ReactCreateElement from './ReactCreateElement.js';
10
9
  import { classNames, isUndefined, orNoop, addEventListener, getRandomId, createRef, setTimeout } from './Tools.js';
@@ -51,7 +50,7 @@ var TextField = function (_PureComponent) {
51
50
  check();
52
51
  orNoop(props().onBlur)();
53
52
  };
54
- that[render] = function () {
53
+ that[ReactConstants[3]] = function () {
55
54
  var _props = props();
56
55
  var value = __value(_props),
57
56
  name = _props.name,
@@ -68,16 +67,16 @@ var TextField = function (_PureComponent) {
68
67
  onMouseUp = _props.onMouseUp,
69
68
  autoComplete = _props.autoComplete,
70
69
  placeholder = _props.placeholder,
71
- className = _props[__className];
70
+ className = _props[ReactConstants[5]];
72
71
  var id = _props.id || randomId;
73
72
  var error = errorState();
74
73
  return ReactCreateElement("div", {
75
- [__className]: classNames('TextField', isFocused() && 'focused', (value || placeholder || isWithValue() && isUndefined(value)) && 'withValue', error && (required || check) && 'errored', disabled && 'disabled', label && 'withLabel', className),
74
+ [ReactConstants[5]]: classNames('TextField', isFocused() && 'focused', (value || placeholder || isWithValue() && isUndefined(value)) && 'withValue', error && (required || check) && 'errored', disabled && 'disabled', label && 'withLabel', className),
76
75
  onClick: function onClick() {
77
76
  inputRef().focus();
78
77
  }
79
78
  }, label && ReactCreateElement("label", {
80
- [__className]: classNames(error && !isFocused() && 'shake'),
79
+ [ReactConstants[5]]: classNames(error && !isFocused() && 'shake'),
81
80
  htmlFor: id
82
81
  }, label, required && ' *'), ReactCreateElement("input", {
83
82
  type: type || 'text',
@@ -98,14 +97,14 @@ var TextField = function (_PureComponent) {
98
97
  autoComplete: autoComplete || 'on',
99
98
  placeholder: placeholder
100
99
  }), ReactCreateElement("div", {
101
- [__className]: "border"
100
+ [ReactConstants[5]]: "border"
102
101
  }, ReactCreateElement("div", {
103
- [__className]: "line"
102
+ [ReactConstants[5]]: "line"
104
103
  })), error && ReactCreateElement("div", {
105
- [__className]: "error"
104
+ [ReactConstants[5]]: "error"
106
105
  }, error));
107
106
  };
108
- that[componentDidMount] = function () {
107
+ that[ReactConstants[0]] = function () {
109
108
  var _props3 = props(),
110
109
  focused = _props3.focused,
111
110
  input = _props3.input,
@@ -114,7 +113,7 @@ var TextField = function (_PureComponent) {
114
113
  focused && i.focus();
115
114
  orNoop(input)(i);
116
115
  };
117
- that[componentDidUpdate] = function () {
116
+ that[ReactConstants[2]] = function () {
118
117
  if (__value(props()) !== __value(inputRef())) check();
119
118
  var _props4 = props(),
120
119
  focused = _props4.focused,
@@ -135,7 +134,7 @@ var TextField = function (_PureComponent) {
135
134
  if (process.env.NODE_ENV !== 'production') {
136
135
  TextField.propTypes = {
137
136
  id: PropTypes.string,
138
- [__className]: PropTypes.string,
137
+ [ReactConstants[5]]: PropTypes.string,
139
138
  value: PropTypes.string,
140
139
  name: PropTypes.string,
141
140
  type: PropTypes.string,
package/Tools.js CHANGED
@@ -1,4 +1,5 @@
1
- import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
1
+ import ReactConstants from "./ReactConstants";
2
+ import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, props as __props, scrollLeft as __scrollLeft, scrollTop as __scrollTop, state as __state, style as __style, target as __target, top as __top, value as __value, width as __width} from "./CommonFields";
2
3
  var global = global || window;
3
4
  var WINDOW = global;
4
5
  var DOCUMENT = WINDOW.document;
@@ -1,4 +1,5 @@
1
- import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, target as __target, top as __top, value as __value, width as __width} from "./../CommonFields";
1
+ import ReactConstants from "./../ReactConstants";
2
+ import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, props as __props, scrollLeft as __scrollLeft, scrollTop as __scrollTop, state as __state, style as __style, target as __target, top as __top, value as __value, width as __width} from "./../CommonFields";
2
3
  function createCommonjsModule(fn, module) {
3
4
  return module = { exports: {} }, fn(module, module.exports), module.exports;
4
5
  }
@@ -1,4 +1,5 @@
1
- import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, target as __target, top as __top, value as __value, width as __width} from "./../CommonFields";
1
+ import ReactConstants from "./../ReactConstants";
2
+ import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, props as __props, scrollLeft as __scrollLeft, scrollTop as __scrollTop, state as __state, style as __style, target as __target, top as __top, value as __value, width as __width} from "./../CommonFields";
2
3
  import React from 'react';
3
4
  export { default } from 'react';
4
5
  //# sourceMappingURL=_react.js.map
@@ -1,4 +1,5 @@
1
- import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, target as __target, top as __top, value as __value, width as __width} from "./../CommonFields";
1
+ import ReactConstants from "./../ReactConstants";
2
+ import {clientHeight as __clientHeight, clientWidth as __clientWidth, createAccessor as __createAccessor, data as __data, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, props as __props, scrollLeft as __scrollLeft, scrollTop as __scrollTop, state as __state, style as __style, target as __target, top as __top, value as __value, width as __width} from "./../CommonFields";
2
3
  import reactJsxRuntime_development from '../node_modules/react/cjs/react-jsx-runtime.development.js';
3
4
  export { default } from '../node_modules/react/cjs/react-jsx-runtime.development.js';
4
5
  //# sourceMappingURL=react-jsx-runtime.development.js.map