react-ui-basics 0.0.185 → 0.0.187
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/Animated.js +2 -2
- package/AutocompleteSelect.js +2 -2
- package/Button.js +2 -2
- package/CalendarMonthView.js +2 -2
- package/Checkbox.js +2 -2
- package/CircleProgress.js +2 -2
- package/DNDContainer.js +2 -2
- package/DNDDraggable.js +2 -2
- package/DNDDroppable.js +2 -2
- package/DatePicker.js +2 -2
- package/DateTools.js +1 -1
- package/Dialog.js +2 -2
- package/DropFileInput.js +2 -2
- package/DroppableHorizontalList.js +2 -2
- package/DroppableList.js +2 -2
- package/Dropzone.js +2 -2
- package/FilteredList.js +2 -2
- package/FloatingActionButton.js +2 -2
- package/FormUploadProgress.js +2 -2
- package/HttpTools.js +2 -2
- package/ImageGallery.js +2 -2
- package/MaterialIcon.js +2 -2
- package/Modal.js +2 -2
- package/ModalMenu.js +2 -2
- package/ReactConstants.d.ts +3 -3
- package/ReactConstants.js.map +1 -1
- package/ReactCreateElement.js +1 -1
- package/ReadyListener.js +2 -2
- package/Scrollable.js +2 -2
- package/ScrollableTable.js +2 -2
- package/Size.js +2 -2
- package/Snackbar.js +2 -2
- package/SpinningProgress.js +2 -2
- package/Switch.js +2 -2
- package/Table.d.ts +28 -14
- package/Table.js +13 -11
- package/Table.js.map +1 -1
- package/TextField.js +2 -2
- package/Tools.d.ts +14 -5
- package/Tools.js +10 -6
- package/Tools.js.map +1 -1
- package/_virtual/_commonjsHelpers.js +1 -1
- package/_virtual/_react.js +1 -1
- package/_virtual/react-jsx-runtime.development.js +1 -1
- package/bundle.css +716 -716
- package/index.js +2 -2
- package/package.json +1 -1
- package/router/HistoryTools.js +1 -1
- package/router/Link.js +2 -2
- package/router/NavLink.js +2 -2
- package/router/Route.js +2 -2
- package/router/index.js +2 -2
- package/src/Animated.js +2 -2
- package/src/AutocompleteSelect.js +2 -2
- package/src/Button.js +2 -2
- package/src/Checkbox.js +2 -2
- package/src/CircleProgress.js +2 -2
- package/src/DNDDraggable.js +2 -2
- package/src/DNDDroppable.js +2 -2
- package/src/Dialog.js +2 -2
- package/src/DropFileInput.js +2 -2
- package/src/DroppableHorizontalList.js +2 -2
- package/src/DroppableList.js +2 -2
- package/src/Dropzone.js +2 -2
- package/src/FilteredList.js +2 -2
- package/src/FloatingActionButton.js +2 -2
- package/src/FormUploadProgress.js +2 -2
- package/src/ImageGallery.js +2 -2
- package/src/MaterialIcon.js +2 -2
- package/src/Modal.js +2 -2
- package/src/ModalMenu.js +2 -2
- package/src/ReactConstants.ts +3 -3
- package/src/ReactCreateElement.js +1 -1
- package/src/ReadyListener.js +2 -2
- package/src/Scrollable.js +2 -2
- package/src/Size.js +2 -2
- package/src/Snackbar.js +2 -2
- package/src/SpinningProgress.js +2 -2
- package/src/Switch.js +2 -2
- package/src/Table.tsx +62 -34
- package/src/TextField.js +2 -2
- package/src/Tools.test.js +1 -1
- package/src/Tools.ts +24 -11
- package/src/index.js +2 -2
- package/src/router/HistoryTools.js +1 -1
- package/src/router/Link.js +2 -2
- package/src/router/NavLink.js +2 -2
- package/src/router/Route.js +2 -2
- package/src/router/Route.test.js +2 -2
- package/src/router/index.js +2 -2
- package/src/store/ProxyTools.js +1 -1
- package/src/store/ProxyTools.test.js +1 -1
- package/store/ProxyTools.js +2 -2
- package/store/Store.js +2 -2
package/Animated.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inherits as _inherits, createSuper as _createSuper, createClass as _createClass, defineProperty as _defineProperty, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, objectSpread2 as _objectSpread2 } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import { inherits as _inherits, createSuper as _createSuper, createClass as _createClass, defineProperty as _defineProperty, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, objectSpread2 as _objectSpread2 } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './Animated.css'; import React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { setOf, clearTimeout, allPropsExcept, classNames, requestAnimationFrame, setTimeout } from './Tools.js';
|
|
5
5
|
import { className, children, componentDidMount, props, componentWillUnmount, render, state, componentDidUpdate, setState, PureComponent } from './ReactConstants.js';
|
package/AutocompleteSelect.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, objectSpread2 as _objectSpread2, defineProperty as _defineProperty, assertThisInitialized as _assertThisInitialized, createClass as _createClass, toConsumableArray as _toConsumableArray } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, objectSpread2 as _objectSpread2, defineProperty as _defineProperty, assertThisInitialized as _assertThisInitialized, createClass as _createClass, toConsumableArray as _toConsumableArray } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './AutocompleteSelect.css'; import React from 'react';
|
|
3
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import TextField from './TextField.js';
|
package/Button.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './Button.css'; import 'react';
|
|
3
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
4
|
import { classNames, createRef, DOCUMENT, addEventListener, orNoop } from './Tools.js';
|
|
5
5
|
import PropTypes from 'prop-types';
|
package/CalendarMonthView.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './CalendarMonthView.css'; import { jsxs as jsxRuntime_1, jsx as jsxRuntime_2 } from 'react/jsx-runtime';
|
|
3
3
|
import { now, dateOf, get, TimeUnit as TimeUnit$1 } from './DateTools.js';
|
|
4
4
|
import { classNames } from './Tools.js';
|
|
5
5
|
|
package/Checkbox.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './Checkbox.css'; import 'react';
|
|
3
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
4
|
import { classNames, getRandomId } from './Tools.js';
|
|
5
5
|
import { propsGetter, render, PureComponent } from './ReactConstants.js';
|
package/CircleProgress.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import 'react';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './CircleProgress.css'; import ReactCreateElement from './ReactCreateElement.js';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
|
|
5
5
|
var radius = 8.75;
|
package/DNDContainer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './DNDContainer.css'; import { jsxs as jsxRuntime_1, jsx as jsxRuntime_2 } from 'react/jsx-runtime';
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { classNames, orNoop, addEventListener, createRef, preventDefault, stopPropagation, UNDEFINED, removeEventListener, setTimeout, clearTimeout, NOOP, WINDOW, DOCUMENT, requestAnimationFrame } from './Tools.js';
|
|
5
5
|
import { render, componentDidMount, propsGetter } from './ReactConstants.js';
|
package/DNDDraggable.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import 'react';
|
|
3
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
4
|
import { orNoop, classNames, ref } from './Tools.js';
|
|
5
5
|
import { componentDidUpdate, props, componentDidMount, componentWillUnmount, render, state, className, children, PureComponent } from './ReactConstants.js';
|
package/DNDDroppable.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import 'react';
|
|
3
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
4
|
import { orNoop, classNames, preventDefault, stopPropagation, ref } from './Tools.js';
|
|
5
5
|
import { componentDidUpdate, props, componentDidMount, componentWillUnmount, render, state, className, children, PureComponent } from './ReactConstants.js';
|
package/DatePicker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './DatePicker.css'; import { jsxs as jsxRuntime_1, jsx as jsxRuntime_2 } from 'react/jsx-runtime';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import TextField from './TextField.js';
|
|
5
5
|
import { dateOf, TimeUnit, equals, get } from './DateTools.js';
|
package/DateTools.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var resetTime = function (date) {
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; var resetTime = function (date) {
|
|
2
2
|
date.setHours(0, 0, 0, 0);
|
|
3
3
|
return date;
|
|
4
4
|
};
|
package/Dialog.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, createClass as _createClass, assertThisInitialized as _assertThisInitialized, slicedToArray as _slicedToArray, objectWithoutProperties as _objectWithoutProperties, extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, createClass as _createClass, assertThisInitialized as _assertThisInitialized, slicedToArray as _slicedToArray, objectWithoutProperties as _objectWithoutProperties, extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './Dialog.css'; import { Component } from 'react';
|
|
3
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
4
|
import Button from './Button.js';
|
|
5
5
|
import Modal from './Modal.js';
|
package/DropFileInput.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import 'react';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './DropFileInput.css'; import ReactCreateElement from './ReactCreateElement.js';
|
|
3
3
|
import Dropzone from './Dropzone.js';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { classNames } from './Tools.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import React, { Component } from 'react';
|
|
3
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
4
|
import DNDDroppable from './DNDDroppable.js';
|
|
5
5
|
import { orNoop, NOOP, setTimeout, classNames } from './Tools.js';
|
package/DroppableList.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './DroppableList.css'; import React, { Component } from 'react';
|
|
3
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
4
|
import DNDDroppable from './DNDDroppable.js';
|
|
5
5
|
import { orNoop, NOOP, setTimeout, classNames } from './Tools.js';
|
package/Dropzone.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './Dropzone.css'; import 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
5
5
|
import { setOf, classNames, UNDEFINED, createRef, preventDefault, stopPropagation } from './Tools.js';
|
package/FilteredList.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, createClass as _createClass, objectSpread2 as _objectSpread2 } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, createClass as _createClass, objectSpread2 as _objectSpread2 } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './FilteredList.css'; import React from 'react';
|
|
3
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
4
|
import Scrollable from './Scrollable.js';
|
|
5
5
|
import { orNoop, classNames, ref, isFunction, stopPropagation, isObject } from './Tools.js';
|
package/FloatingActionButton.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import 'react';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './FloatingActionButton.css'; import ReactCreateElement from './ReactCreateElement.js';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import Button from './Button.js';
|
|
5
5
|
import { classNames } from './Tools.js';
|
package/FormUploadProgress.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import React from 'react';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './FormUploadProgress.css'; import ReactCreateElement from './ReactCreateElement.js';
|
|
3
3
|
import Button from './Button.js';
|
|
4
4
|
import Animated from './Animated.js';
|
|
5
5
|
import CircleProgress from './CircleProgress.js';
|
package/HttpTools.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import { orNoop } from './Tools.js';
|
|
3
3
|
|
|
4
4
|
var CONTENT_TYPE_APPLICATION_JSON = 'application/json';
|
|
5
5
|
var toKeyValue = function (key, value) { return key && (encodeURIComponent(key) + '=' + encodeURIComponent(value !== null && typeof value === 'object' ? JSON.stringify(value) : value)); };
|
package/ImageGallery.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createClass as _createClass, classCallCheck as _classCallCheck, objectSpread2 as _objectSpread2, defineProperty as _defineProperty, inherits as _inherits, createSuper as _createSuper, assertThisInitialized as _assertThisInitialized, slicedToArray as _slicedToArray, extends as _extends, toConsumableArray as _toConsumableArray } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import { createClass as _createClass, classCallCheck as _classCallCheck, objectSpread2 as _objectSpread2, defineProperty as _defineProperty, inherits as _inherits, createSuper as _createSuper, assertThisInitialized as _assertThisInitialized, slicedToArray as _slicedToArray, extends as _extends, toConsumableArray as _toConsumableArray } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './ImageGallery.css'; import React from 'react';
|
|
3
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
4
|
import Animated from './Animated.js';
|
|
5
5
|
import Button from './Button.js';
|
package/MaterialIcon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import 'react';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import ReactCreateElement from './ReactCreateElement.js';
|
|
3
3
|
import { classNames } from './Tools.js';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
|
package/Modal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, slicedToArray as _slicedToArray, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, slicedToArray as _slicedToArray, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './Modal.css'; import React from 'react';
|
|
3
3
|
import ReactDOM from 'react-dom';
|
|
4
4
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
5
5
|
import Button from './Button.js';
|
package/ModalMenu.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './ModalMenu.css'; import 'react';
|
|
3
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
4
|
import { stateGS, render, PureComponent } from './ReactConstants.js';
|
|
5
5
|
import { classNames } from './Tools.js';
|
package/ReactConstants.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
export declare const props: <P>(that: React.Component<P>) => P;
|
|
3
3
|
export declare const propsGetter: <P>(that: React.Component<P>) => (() => P);
|
|
4
4
|
export declare const state: <P, S>(that: React.Component<P, S>) => S;
|
|
5
|
-
export declare const setState: (that:
|
|
6
|
-
export declare const stateFieldSetter: (that: any, key: any, cb?:
|
|
7
|
-
export declare const stateGS: ((that: React.Component) => (v?:
|
|
5
|
+
export declare const setState: (that: React.Component, data: any, cb?: any) => void;
|
|
6
|
+
export declare const stateFieldSetter: (that: any, key: any, cb?: () => void) => (value: any, cb2?: any) => void;
|
|
7
|
+
export declare const stateGS: (<T>(that: React.Component) => (v?: T, cb?: () => void) => T);
|
|
8
8
|
export declare const stateGSs: (that: any, num: any) => any[];
|
|
9
9
|
export declare const componentDidMount = "componentDidMount";
|
|
10
10
|
export declare const componentWillUnmount = "componentWillUnmount";
|
package/ReactConstants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactConstants.js","sources":["./src/ReactConstants.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA,IAAM,KAAK,GAAG,EAAE,CAAC;AACV,IAAM,KAAK,GAAuC,UAAA,IAAI,EAAI,EAAA,OAAA,IAAI,CAAC,KAAK,CAAA,GAAC;AAC/D,IAAA,WAAW,GAA+C,UAAA,IAAI,IAAI,OAAA,YAAA,EAAM,OAAA,KAAK,CAAC,IAAI,CAAC,GAAA,CAAA,GAAC;AACjG;AACO,IAAM,KAAK,GAA6C,UAAA,IAAI,EAAA,EAAI,OAAA,IAAI,CAAC,KAAK,IAAI,KAAK,CAAA,GAAC;IAC9E,QAAQ,GAAG,UAAC,
|
|
1
|
+
{"version":3,"file":"ReactConstants.js","sources":["./src/ReactConstants.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA,IAAM,KAAK,GAAG,EAAE,CAAC;AACV,IAAM,KAAK,GAAuC,UAAA,IAAI,EAAI,EAAA,OAAA,IAAI,CAAC,KAAK,CAAA,GAAC;AAC/D,IAAA,WAAW,GAA+C,UAAA,IAAI,IAAI,OAAA,YAAA,EAAM,OAAA,KAAK,CAAC,IAAI,CAAC,GAAA,CAAA,GAAC;AACjG;AACO,IAAM,KAAK,GAA6C,UAAA,IAAI,EAAA,EAAI,OAAA,IAAI,CAAC,KAAK,IAAI,KAAK,CAAA,GAAC;IAC9E,QAAQ,GAAG,UAAC,IAAqB,EAAE,IAAI,EAAE,EAAG,EAAA;AACrD,IAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAC5B,EAAE;AACK,IAAM,gBAAgB,GAAG,UAAC,IAAI,EAAE,GAAG,EAAE,EAAe,EAAK,EAAA,OAAA,UAAC,KAAK,EAAE,GAAI,EAAA;;AACxE,IAAA,QAAQ,CAAC,IAAI,GAAG,EAAA,GAAA,EAAA,EAAA,EAAA,CAAC,GAAG,CAAA,GAAG,KAAK,EAAA,EAAA,GAAG,GAAG,IAAI,EAAE,CAAC,CAAC;AAC9C,CAAC,CAAA,GAAC;AACK,IAAM,OAAO,GAAkE,UAAC,IAAI,EAAA;AACvF,IAAA,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAClC,IAAM,GAAG,GAAG,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAClC,IAAM,MAAM,GAAG,gBAAgB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAC3C,IAAA,IAAM,MAAM,GAAG,YAAA;QACX,OAAO,CAAC,SAAS,CAAC,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AAChF,KAAC,CAAC;IACF,MAAM,CAAC,QAAQ,GAAG,YAAA,EAAM,OAAA,GAAG,CAAA,EAAA,CAAC;AAC5B,IAAA,OAAO,MAAM,CAAC;AAClB,EAAE;AACW,IAAA,QAAQ,GAAG,UAAC,IAAI,EAAE,GAAG,EAAA;IAC9B,IAAM,MAAM,GAAG,EAAE,CAAC;IAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;QAC1B,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9B,KAAA;AACD,IAAA,OAAO,MAAM,CAAC;AAClB,EAAE;AAEK,IAAM,iBAAiB,GAAG,oBAAoB;AAC9C,IAAM,oBAAoB,GAAG,uBAAuB;AACpD,IAAM,kBAAkB,GAAG,qBAAqB;AAChD,IAAM,MAAM,GAAG,SAAS;AACxB,IAAM,QAAQ,GAAG,WAAW;AAC5B,IAAM,SAAS,GAAG,YAAY;AAC9B,IAAM,OAAO,GAAG,UAAU;AAC1B,IAAM,QAAQ,GAAG,WAAW;AACtB,IAAA,aAAa,GAAG,KAAK,CAAC,cAAc;AAEjD,qBAAe,CAAC,iBAAiB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,CAAC;;;;"}
|
package/ReactCreateElement.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import React from 'react';
|
|
2
2
|
|
|
3
3
|
var ReactCreateElement = React.createElement;
|
|
4
4
|
|
package/ReadyListener.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import 'react';
|
|
3
3
|
import { render, props, state, children, componentDidMount, componentDidUpdate, setState, componentWillUnmount, PureComponent } from './ReactConstants.js';
|
|
4
4
|
import { orNoop } from './Tools.js';
|
|
5
5
|
|
package/Scrollable.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './Scrollable.css'; import 'react';
|
|
3
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { classNames, createRef, clearInterval, clearTimeout, orNoop, addEventListener, WINDOW, preventDefault, setTimeout, setInterval, removeEventListener } from './Tools.js';
|
package/ScrollableTable.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './ScrollableTable.css'; import { jsx as jsxRuntime_2 } from 'react/jsx-runtime';
|
|
3
3
|
import Table from './Table.js';
|
|
4
4
|
import Scrollable from './Scrollable.js';
|
|
5
5
|
import { render, props, PureComponent } from './ReactConstants.js';
|
package/Size.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import 'react';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import ReactCreateElement from './ReactCreateElement.js';
|
|
3
3
|
import { isUndefined } from './Tools.js';
|
|
4
4
|
|
|
5
5
|
var Size = function Size(_ref) {
|
package/Snackbar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, slicedToArray as _slicedToArray, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, slicedToArray as _slicedToArray, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './Snackbar.css'; import 'react';
|
|
3
3
|
import ReactDOM from 'react-dom';
|
|
4
4
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
5
5
|
import PropTypes from 'prop-types';
|
package/SpinningProgress.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import 'react';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './SpinningProgress.css'; import ReactCreateElement from './ReactCreateElement.js';
|
|
3
3
|
|
|
4
4
|
var SpinningProgress = function SpinningProgress() {
|
|
5
5
|
return ReactCreateElement("div", {
|
package/Switch.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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"; import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './Switch.css'; import 'react';
|
|
3
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
4
4
|
import { classNames, getRandomId } from './Tools.js';
|
|
5
5
|
import { render, PureComponent } from './ReactConstants.js';
|
package/Table.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeEvent, Component, ReactElement, SyntheticEvent } from 'react';
|
|
2
2
|
import './Table.css';
|
|
3
|
-
export declare const SORT_ASC:
|
|
4
|
-
export declare const SORT_DESC:
|
|
3
|
+
export declare const SORT_ASC: "ASC" | "DESC";
|
|
4
|
+
export declare const SORT_DESC: "ASC" | "DESC";
|
|
5
5
|
declare type SortOrder = typeof SORT_ASC | typeof SORT_DESC;
|
|
6
6
|
declare type Comparator = <T>(a: T, b: T) => number;
|
|
7
7
|
declare const editorSelect = "Select";
|
|
@@ -17,29 +17,35 @@ export interface RowProps<T> {
|
|
|
17
17
|
cancelEditing: () => void;
|
|
18
18
|
onFinishEditing: () => void;
|
|
19
19
|
handleInputChange: (e: ChangeEvent) => void;
|
|
20
|
-
setValue: (v: any, t: T, field:
|
|
21
|
-
setEditing: (t: T, i: number, value?: any) => void;
|
|
20
|
+
setValue: (v: any, t: T, field: keyof T) => void;
|
|
21
|
+
setEditing: (t: T, i: number, value?: any, focused?: boolean) => void;
|
|
22
22
|
onMouseDown?: (e: SyntheticEvent, row: number, column: number) => void;
|
|
23
23
|
onMouseUp?: (e: SyntheticEvent, row: number, column: number) => void;
|
|
24
24
|
onMouseEnter?: (e: SyntheticEvent, row: number, column: number) => void;
|
|
25
25
|
onMouseLeave?: (e: SyntheticEvent, row: number, column: number) => void;
|
|
26
26
|
}
|
|
27
|
-
export declare type Formatter<T, V> = ((value
|
|
28
|
-
export declare type CellClassName<T> = (item: T, field:
|
|
27
|
+
export declare type Formatter<T, V> = ((value: V, item?: T, format?: string) => ReactElement | string);
|
|
28
|
+
export declare type CellClassName<T> = (item: T, field: keyof T, row: number, column: number) => string;
|
|
29
29
|
export declare type ColumnClassName<T> = string | CellClassName<T>;
|
|
30
30
|
export interface TableColumn<T> {
|
|
31
|
-
field?:
|
|
31
|
+
field?: keyof T;
|
|
32
32
|
className?: ColumnClassName<T>;
|
|
33
|
-
onClick?: (e: SyntheticEvent, startEditing: () => void, item: T, field:
|
|
33
|
+
onClick?: (e: SyntheticEvent, startEditing: () => void, item: T, field: keyof T, row: number, column: number) => void;
|
|
34
34
|
comparator?: Comparator;
|
|
35
35
|
header?: string | ReactElement;
|
|
36
36
|
sortable?: boolean;
|
|
37
37
|
displayEditor?: boolean;
|
|
38
|
-
formatter?: Formatter<T,
|
|
38
|
+
formatter?: Formatter<T, T[keyof T]>;
|
|
39
39
|
format?: string;
|
|
40
40
|
editable?: boolean | ((t: T) => boolean);
|
|
41
41
|
editor?: typeof editorSelect | typeof editorSwitch | ((t: T, cancel: () => void, isEditing: boolean) => ReactElement);
|
|
42
|
-
preEditor?: (a:
|
|
42
|
+
preEditor?: (a: T[keyof T]) => any;
|
|
43
|
+
}
|
|
44
|
+
export interface TableColumnTyped<T, F extends keyof T> extends TableColumn<T> {
|
|
45
|
+
field?: F;
|
|
46
|
+
onClick?: (e: SyntheticEvent, startEditing: () => void, item: T, field: F, row: number, column: number) => void;
|
|
47
|
+
formatter?: Formatter<T, T[F]>;
|
|
48
|
+
preEditor?: (a: T[F]) => any;
|
|
43
49
|
}
|
|
44
50
|
export interface TableProps<T> {
|
|
45
51
|
columns: TableColumn<T>[];
|
|
@@ -64,18 +70,26 @@ export interface TableState<T> {
|
|
|
64
70
|
comparator?: Comparator;
|
|
65
71
|
data?: T[];
|
|
66
72
|
}
|
|
73
|
+
export interface EditingState<T> {
|
|
74
|
+
id: number | string;
|
|
75
|
+
value: any;
|
|
76
|
+
columnIndex: number;
|
|
77
|
+
item: T;
|
|
78
|
+
field: keyof T;
|
|
79
|
+
focused: boolean;
|
|
80
|
+
}
|
|
67
81
|
declare class Table<T> extends Component<TableProps<T>, TableState<T>> {
|
|
68
|
-
startEditing: (item:
|
|
82
|
+
startEditing: (item: T, columnIndex: number, value?: any, focused?: boolean) => void;
|
|
69
83
|
finishEditing: () => void;
|
|
70
|
-
|
|
84
|
+
getEditingState: () => EditingState<T>;
|
|
71
85
|
constructor(properties: any);
|
|
72
86
|
}
|
|
73
|
-
export interface TableColumnSelect extends TableColumn<
|
|
87
|
+
export interface TableColumnSelect<T> extends TableColumn<T> {
|
|
74
88
|
editorData?: any;
|
|
75
89
|
multiSelect?: any;
|
|
76
90
|
onSelect?: any;
|
|
77
91
|
editorSelectedComponent?: any;
|
|
78
|
-
|
|
92
|
+
editorChildComponent?: any;
|
|
79
93
|
prefilter?: any;
|
|
80
94
|
}
|
|
81
95
|
export default Table;
|
package/Table.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import ReactConstants from "./ReactConstants"; 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
|
+
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import './Table.css'; import { jsxs as jsxRuntime_1, jsx as jsxRuntime_2 } from 'react/jsx-runtime';
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import TextField from './TextField.js';
|
|
5
5
|
import AutocompleteSelect, { MODE_MULTIPLE_MINI, MODE_DEFAULT } from './AutocompleteSelect.js';
|
|
6
6
|
import Switch from './Switch.js';
|
|
7
7
|
import { setInterval, classNames, isFunction, UNDEFINED, isString, preventDefault, stopPropagation, Comparators, createRef, createAccessor, orNoop, NOOP } from './Tools.js';
|
|
8
8
|
import MaterialIcon from './MaterialIcon.js';
|
|
9
|
-
import { stateGSs, componentDidMount, componentDidUpdate, render, componentWillUnmount, PureComponent, propsGetter } from './ReactConstants.js';
|
|
9
|
+
import { stateGS, stateGSs, componentDidMount, componentDidUpdate, render, componentWillUnmount, PureComponent, propsGetter } from './ReactConstants.js';
|
|
10
10
|
|
|
11
11
|
var SORT_ASC = Comparators.SORT_ASC;
|
|
12
12
|
var SORT_DESC = Comparators.SORT_DESC;
|
|
@@ -27,18 +27,20 @@ var Table = /** @class */ (function (_super) {
|
|
|
27
27
|
__style(fixed[i]).width = hidden[i].offsetWidth + 'px';
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
var
|
|
30
|
+
var editingState = stateGS(_this);
|
|
31
|
+
var _a = stateGSs(_this, 4), dataState = _a[0], sortByState = _a[1], sortOrderState = _a[2], comparatorState = _a[3];
|
|
31
32
|
var comparatorGetter = createAccessor('comparator');
|
|
32
33
|
var cancelEditing = function () {
|
|
33
|
-
editingState(
|
|
34
|
+
editingState(null);
|
|
34
35
|
};
|
|
35
|
-
var setEditing = function (item, columnIndex, value) {
|
|
36
|
+
var setEditing = function (item, columnIndex, value, focused) {
|
|
37
|
+
if (focused === void 0) { focused = true; }
|
|
36
38
|
var columns = props().columns;
|
|
37
39
|
var field = columns[columnIndex].field;
|
|
38
|
-
editingState({ id: item.id, value: (value != null ? value : item[field]), columnIndex: columnIndex, item: item, field: field });
|
|
40
|
+
editingState({ id: item.id, value: (value != null ? value : item[field]), columnIndex: columnIndex, item: item, field: field, focused: !!focused });
|
|
39
41
|
};
|
|
40
42
|
_this.startEditing = setEditing;
|
|
41
|
-
_this.
|
|
43
|
+
_this.getEditingState = function () { return editingState(); };
|
|
42
44
|
var handleInputChange = function (event) {
|
|
43
45
|
var target = __target(event);
|
|
44
46
|
var value = target.type === 'checkbox' ? target.checked : __value(target);
|
|
@@ -59,7 +61,7 @@ var Table = /** @class */ (function (_super) {
|
|
|
59
61
|
};
|
|
60
62
|
_this.finishEditing = onFinishEditing;
|
|
61
63
|
var setValue = function (value, item, field) {
|
|
62
|
-
editingState({ item: item, field: field, value: value }, onFinishEditing);
|
|
64
|
+
editingState(__extends(__extends({}, editingState()), { item: item, field: field, value: value }), onFinishEditing);
|
|
63
65
|
};
|
|
64
66
|
var setData = function (data, sortBy, sortOrder, comparator) {
|
|
65
67
|
data = data ? __toConsumableArray(data, true) : [];
|
|
@@ -141,7 +143,7 @@ var Row = /** @class */ (function (_super) {
|
|
|
141
143
|
value = __value(editing) != null ? __value(editing) : value;
|
|
142
144
|
value = column.preEditor ? column.preEditor(value) : value;
|
|
143
145
|
}
|
|
144
|
-
return (jsxRuntime_1("td", __extends({ onMouseDown: onMouseDown ? function (e) { return onMouseDown(e, i, j); } : UNDEFINED, onMouseUp: onMouseUp ? function (e) { return onMouseUp(e, i, j); } : UNDEFINED, onMouseEnter: onMouseEnter ? function (e) { return onMouseEnter(e, i, j); } : UNDEFINED, onMouseLeave: onMouseLeave ? function (e) { return onMouseLeave(e, i, j); } : UNDEFINED, [ReactConstants[5]]: classNames(editable ? 'editable' : 'ro', isEditing && 'editing', isString(column[ReactConstants[5]]) && column[ReactConstants[5]], isFunction(column[ReactConstants[5]]) && column[ReactConstants[5]](item, column.field, i, j)), [ReactConstants[6]]: onClick }, { [ReactConstants[4]]: [displayEditor && !column.editor && (jsxRuntime_2(TextField, { value: value, focused:
|
|
146
|
+
return (jsxRuntime_1("td", __extends({ onMouseDown: onMouseDown ? function (e) { return onMouseDown(e, i, j); } : UNDEFINED, onMouseUp: onMouseUp ? function (e) { return onMouseUp(e, i, j); } : UNDEFINED, onMouseEnter: onMouseEnter ? function (e) { return onMouseEnter(e, i, j); } : UNDEFINED, onMouseLeave: onMouseLeave ? function (e) { return onMouseLeave(e, i, j); } : UNDEFINED, [ReactConstants[5]]: classNames(editable ? 'editable' : 'ro', isEditing && 'editing', isString(column[ReactConstants[5]]) && column[ReactConstants[5]], isFunction(column[ReactConstants[5]]) && column[ReactConstants[5]](item, column.field, i, j)), [ReactConstants[6]]: onClick }, { [ReactConstants[4]]: [displayEditor && !column.editor && (jsxRuntime_2(TextField, { value: value, focused: editing.focused, onBlur: cancelEditing, [ReactConstants[7]]: handleInputChange, onKeyUp: function (e) {
|
|
145
147
|
if (e.keyCode === 27 /*escape*/) {
|
|
146
148
|
preventDefault(e);
|
|
147
149
|
cancelEditing();
|
|
@@ -154,7 +156,7 @@ var Row = /** @class */ (function (_super) {
|
|
|
154
156
|
setValue(column.onSelect(value), item, column.field);
|
|
155
157
|
}) : function (value) { return setValue(value, item, column.field); }), onSelect: !column.multiSelect && (column.onSelect ? (function (value) {
|
|
156
158
|
setValue(column.onSelect(value), item, column.field);
|
|
157
|
-
}) : function (value) { return setValue(value, item, column.field); }), childComponent: column.
|
|
159
|
+
}) : function (value) { return setValue(value, item, column.field); }), childComponent: column.editorChildComponent, onCancel: cancelEditing, prefilter: column.prefilter })), displayEditor && column.editor === editorSwitch && (jsxRuntime_2(Switch, { [ReactConstants[6]]: function (e) {
|
|
158
160
|
stopPropagation(e);
|
|
159
161
|
preventDefault(e);
|
|
160
162
|
setValue(!value, item, column.field);
|