react-ui-basics 0.0.183 → 0.0.185
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 +1 -7
- package/AutocompleteSelect.js +1 -7
- package/Button.js +1 -7
- package/CalendarMonthView.js +1 -7
- package/Checkbox.js +1 -7
- package/CircleProgress.js +1 -7
- package/DNDContainer.js +1 -7
- package/DNDDraggable.js +1 -6
- package/DNDDroppable.js +1 -6
- package/DatePicker.js +1 -7
- package/DateTools.js +0 -2
- package/Dialog.js +1 -7
- package/DropFileInput.js +1 -7
- package/DroppableHorizontalList.js +1 -6
- package/DroppableList.js +1 -7
- package/Dropzone.js +1 -7
- package/FilteredList.js +1 -7
- package/FloatingActionButton.js +1 -7
- package/FormUploadProgress.js +1 -7
- package/HttpTools.d.ts +35 -0
- package/HttpTools.js +220 -0
- package/HttpTools.js.map +1 -0
- package/ImageGallery.js +1 -7
- package/MaterialIcon.js +1 -6
- package/Modal.js +1 -7
- package/ModalMenu.js +1 -7
- package/ReactCreateElement.js +0 -2
- package/ReadyListener.js +1 -6
- package/Scrollable.js +1 -7
- package/ScrollableTable.js +1 -7
- package/Size.js +1 -6
- package/Snackbar.js +1 -7
- package/SpinningProgress.js +1 -7
- package/Switch.js +1 -7
- package/Table.js +1 -7
- package/TextField.js +1 -7
- package/Tools.js +0 -2
- package/_virtual/_commonjsHelpers.js +0 -2
- package/_virtual/_react.js +0 -2
- package/_virtual/react-jsx-runtime.development.js +0 -2
- package/bundle.css +446 -446
- package/index.js +3 -6
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/router/HistoryTools.js +0 -2
- package/router/Link.js +1 -6
- package/router/NavLink.js +1 -6
- package/router/Route.js +1 -6
- package/router/index.js +1 -6
- package/src/Animated.js +1 -7
- package/src/AutocompleteSelect.js +1 -7
- package/src/Button.js +1 -7
- package/src/Checkbox.js +1 -7
- package/src/CircleProgress.js +1 -7
- package/src/DNDDraggable.js +1 -6
- package/src/DNDDroppable.js +1 -6
- package/src/Dialog.js +1 -7
- package/src/DropFileInput.js +1 -7
- package/src/DroppableHorizontalList.js +1 -6
- package/src/DroppableList.js +1 -7
- package/src/Dropzone.js +1 -7
- package/src/FilteredList.js +1 -7
- package/src/FloatingActionButton.js +1 -7
- package/src/FormUploadProgress.js +1 -7
- package/src/HttpTools.ts +257 -0
- package/src/ImageGallery.js +1 -7
- package/src/MaterialIcon.js +1 -6
- package/src/Modal.js +1 -7
- package/src/ModalMenu.js +1 -7
- package/src/ReactCreateElement.js +0 -2
- package/src/ReadyListener.js +1 -6
- package/src/Scrollable.js +1 -7
- package/src/Size.js +1 -6
- package/src/Snackbar.js +1 -7
- package/src/SpinningProgress.js +1 -7
- package/src/Switch.js +1 -7
- package/src/TextField.js +1 -7
- package/src/Tools.test.js +0 -2
- package/src/index.js +3 -6
- package/src/router/HistoryTools.js +0 -2
- package/src/router/Link.js +1 -6
- package/src/router/NavLink.js +1 -6
- package/src/router/Route.js +1 -6
- package/src/router/Route.test.js +1 -6
- package/src/router/index.js +1 -6
- package/src/store/ProxyTools.js +0 -2
- package/src/store/ProxyTools.test.js +0 -2
- package/store/ProxyTools.js +1 -6
- package/store/Store.js +1 -6
package/Animated.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
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";
|
|
3
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';
|
|
4
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
7
|
-
import './Animated.css';
|
|
8
|
-
import React from 'react';
|
|
2
|
+
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 {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';
|
|
9
3
|
import PropTypes from 'prop-types';
|
|
10
4
|
import { setOf, clearTimeout, allPropsExcept, classNames, requestAnimationFrame, setTimeout } from './Tools.js';
|
|
11
5
|
import { className, children, componentDidMount, props, componentWillUnmount, render, state, componentDidUpdate, setState, PureComponent } from './ReactConstants.js';
|
package/AutocompleteSelect.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
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";
|
|
3
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';
|
|
4
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
7
|
-
import './AutocompleteSelect.css';
|
|
8
|
-
import React from 'react';
|
|
2
|
+
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 {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';
|
|
9
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
10
4
|
import PropTypes from 'prop-types';
|
|
11
5
|
import TextField from './TextField.js';
|
package/Button.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
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";
|
|
3
1
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
4
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
7
|
-
import './Button.css';
|
|
8
|
-
import 'react';
|
|
2
|
+
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 {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';
|
|
9
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
10
4
|
import { classNames, createRef, DOCUMENT, addEventListener, orNoop } from './Tools.js';
|
|
11
5
|
import PropTypes from 'prop-types';
|
package/CalendarMonthView.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
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";
|
|
3
1
|
|
|
4
|
-
import { jsxs as jsxRuntime_1, jsx as jsxRuntime_2 } from 'react/jsx-runtime';
|
|
5
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
7
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
8
|
-
import './CalendarMonthView.css';
|
|
2
|
+
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 {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';
|
|
9
3
|
import { now, dateOf, get, TimeUnit as TimeUnit$1 } from './DateTools.js';
|
|
10
4
|
import { classNames } from './Tools.js';
|
|
11
5
|
|
package/Checkbox.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
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";
|
|
3
1
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
4
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
7
|
-
import './Checkbox.css';
|
|
8
|
-
import 'react';
|
|
2
|
+
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 {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';
|
|
9
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
10
4
|
import { classNames, getRandomId } from './Tools.js';
|
|
11
5
|
import { propsGetter, render, PureComponent } from './ReactConstants.js';
|
package/CircleProgress.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
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";
|
|
3
1
|
import 'react';
|
|
4
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
7
|
-
import './CircleProgress.css';
|
|
8
|
-
import ReactCreateElement from './ReactCreateElement.js';
|
|
2
|
+
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 {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';
|
|
9
3
|
import PropTypes from 'prop-types';
|
|
10
4
|
|
|
11
5
|
var radius = 8.75;
|
package/DNDContainer.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
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";
|
|
3
1
|
|
|
4
|
-
import { jsxs as jsxRuntime_1, jsx as jsxRuntime_2 } from 'react/jsx-runtime';
|
|
5
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
7
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
8
|
-
import './DNDContainer.css';
|
|
2
|
+
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 {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';
|
|
9
3
|
import { Component } from 'react';
|
|
10
4
|
import { classNames, orNoop, addEventListener, createRef, preventDefault, stopPropagation, UNDEFINED, removeEventListener, setTimeout, clearTimeout, NOOP, WINDOW, DOCUMENT, requestAnimationFrame } from './Tools.js';
|
|
11
5
|
import { render, componentDidMount, propsGetter } from './ReactConstants.js';
|
package/DNDDraggable.js
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
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";
|
|
3
1
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
4
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
7
|
-
import 'react';
|
|
2
|
+
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 {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import 'react';
|
|
8
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
9
4
|
import { orNoop, classNames, ref } from './Tools.js';
|
|
10
5
|
import { componentDidUpdate, props, componentDidMount, componentWillUnmount, render, state, className, children, PureComponent } from './ReactConstants.js';
|
package/DNDDroppable.js
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
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";
|
|
3
1
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
4
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
7
|
-
import 'react';
|
|
2
|
+
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 {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers"; import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers"; import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers"; import 'react';
|
|
8
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
9
4
|
import { orNoop, classNames, preventDefault, stopPropagation, ref } from './Tools.js';
|
|
10
5
|
import { componentDidUpdate, props, componentDidMount, componentWillUnmount, render, state, className, children, PureComponent } from './ReactConstants.js';
|
package/DatePicker.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
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";
|
|
3
1
|
|
|
4
|
-
import { jsxs as jsxRuntime_1, jsx as jsxRuntime_2 } from 'react/jsx-runtime';
|
|
5
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
7
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
8
|
-
import './DatePicker.css';
|
|
2
|
+
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 {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';
|
|
9
3
|
import React from 'react';
|
|
10
4
|
import TextField from './TextField.js';
|
|
11
5
|
import { dateOf, TimeUnit, equals, get } from './DateTools.js';
|
package/DateTools.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
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";
|
|
3
1
|
var resetTime = function (date) {
|
|
4
2
|
date.setHours(0, 0, 0, 0);
|
|
5
3
|
return date;
|
package/Dialog.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
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";
|
|
3
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';
|
|
4
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
7
|
-
import './Dialog.css';
|
|
8
|
-
import { Component } from 'react';
|
|
2
|
+
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 {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';
|
|
9
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
10
4
|
import Button from './Button.js';
|
|
11
5
|
import Modal from './Modal.js';
|
package/DropFileInput.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
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";
|
|
3
1
|
import 'react';
|
|
4
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
7
|
-
import './DropFileInput.css';
|
|
8
|
-
import ReactCreateElement from './ReactCreateElement.js';
|
|
2
|
+
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 {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';
|
|
9
3
|
import Dropzone from './Dropzone.js';
|
|
10
4
|
import PropTypes from 'prop-types';
|
|
11
5
|
import { classNames } from './Tools.js';
|
|
@@ -1,10 +1,5 @@
|
|
|
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";
|
|
3
1
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
4
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
7
|
-
import React, { Component } from 'react';
|
|
2
|
+
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 {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';
|
|
8
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
9
4
|
import DNDDroppable from './DNDDroppable.js';
|
|
10
5
|
import { orNoop, NOOP, setTimeout, classNames } from './Tools.js';
|
package/DroppableList.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
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";
|
|
3
1
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
4
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
7
|
-
import './DroppableList.css';
|
|
8
|
-
import React, { Component } from 'react';
|
|
2
|
+
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 {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';
|
|
9
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
10
4
|
import DNDDroppable from './DNDDroppable.js';
|
|
11
5
|
import { orNoop, NOOP, setTimeout, classNames } from './Tools.js';
|
package/Dropzone.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
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";
|
|
3
1
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, assertThisInitialized as _assertThisInitialized, createClass as _createClass } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
4
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
7
|
-
import './Dropzone.css';
|
|
8
|
-
import 'react';
|
|
2
|
+
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 {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';
|
|
9
3
|
import PropTypes from 'prop-types';
|
|
10
4
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
11
5
|
import { setOf, classNames, UNDEFINED, createRef, preventDefault, stopPropagation } from './Tools.js';
|
package/FilteredList.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
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";
|
|
3
1
|
import { inherits as _inherits, createSuper as _createSuper, classCallCheck as _classCallCheck, createClass as _createClass, objectSpread2 as _objectSpread2 } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
4
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
7
|
-
import './FilteredList.css';
|
|
8
|
-
import React from 'react';
|
|
2
|
+
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 {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';
|
|
9
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
10
4
|
import Scrollable from './Scrollable.js';
|
|
11
5
|
import { orNoop, classNames, ref, isFunction, stopPropagation, isObject } from './Tools.js';
|
package/FloatingActionButton.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
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";
|
|
3
1
|
import 'react';
|
|
4
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
7
|
-
import './FloatingActionButton.css';
|
|
8
|
-
import ReactCreateElement from './ReactCreateElement.js';
|
|
2
|
+
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 {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';
|
|
9
3
|
import PropTypes from 'prop-types';
|
|
10
4
|
import Button from './Button.js';
|
|
11
5
|
import { classNames } from './Tools.js';
|
package/FormUploadProgress.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
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";
|
|
3
1
|
import React from 'react';
|
|
4
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
7
|
-
import './FormUploadProgress.css';
|
|
8
|
-
import ReactCreateElement from './ReactCreateElement.js';
|
|
2
|
+
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 {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';
|
|
9
3
|
import Button from './Button.js';
|
|
10
4
|
import Animated from './Animated.js';
|
|
11
5
|
import CircleProgress from './CircleProgress.js';
|
package/HttpTools.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const toRequestParams: (params: any) => string;
|
|
2
|
+
export declare type Method = 'GET' | 'DELETE' | 'POST' | 'PUT';
|
|
3
|
+
export declare class FetchOptions {
|
|
4
|
+
method?: Method;
|
|
5
|
+
headers?: ({
|
|
6
|
+
[name: string]: string;
|
|
7
|
+
});
|
|
8
|
+
params?: ({
|
|
9
|
+
[name: string]: any;
|
|
10
|
+
}) | FormData | Blob;
|
|
11
|
+
multipart?: boolean;
|
|
12
|
+
async?: boolean;
|
|
13
|
+
withCredentials?: boolean;
|
|
14
|
+
timeout?: number;
|
|
15
|
+
onTimeout?: ((ev: ProgressEvent) => any);
|
|
16
|
+
onSuccess?: ((t: any) => void);
|
|
17
|
+
onError?: ((e: any, status: number) => void);
|
|
18
|
+
onProgress?: ((ev: ProgressEvent) => any);
|
|
19
|
+
provideCancel?: ((cancelFunction: () => void) => void);
|
|
20
|
+
}
|
|
21
|
+
export declare const fetch: <T>(url: any, options?: FetchOptions) => Promise<T>;
|
|
22
|
+
export declare type Params = {
|
|
23
|
+
[id: string]: any;
|
|
24
|
+
};
|
|
25
|
+
export declare type UrlRenderer = (params: Params) => string;
|
|
26
|
+
export declare const createUrlRenderer: (template: string, deleteVars?: boolean) => UrlRenderer;
|
|
27
|
+
export declare const setBaseUrl: (url: any) => any;
|
|
28
|
+
export declare const createGET: <R>(template: string) => (params?: Params) => Promise<R>;
|
|
29
|
+
export declare const createPOST: <R, P extends Params>(template: string) => (params?: P) => Promise<R>;
|
|
30
|
+
export declare const createDELETE: <R>(template: string) => (params?: Params) => Promise<R>;
|
|
31
|
+
export interface MultipartOptions {
|
|
32
|
+
onProgress?: ((ev: ProgressEvent) => any);
|
|
33
|
+
provideCancel?: ((cancelFunction: () => void) => void);
|
|
34
|
+
}
|
|
35
|
+
export declare const createMultipart: <R>(template: string) => (params: any, options?: MultipartOptions) => Promise<R>;
|
package/HttpTools.js
ADDED
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
|
|
2
|
+
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 {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
|
+
|
|
4
|
+
var CONTENT_TYPE_APPLICATION_JSON = 'application/json';
|
|
5
|
+
var toKeyValue = function (key, value) { return key && (encodeURIComponent(key) + '=' + encodeURIComponent(value !== null && typeof value === 'object' ? JSON.stringify(value) : value)); };
|
|
6
|
+
var toRequestParams = function (params) { return (params && Object.keys(params).map(function (key) {
|
|
7
|
+
var value = params[key];
|
|
8
|
+
if (Array.isArray(value))
|
|
9
|
+
return value.map(function (it) { return toKeyValue(key, it); }).join('&');
|
|
10
|
+
else
|
|
11
|
+
return toKeyValue(key, value);
|
|
12
|
+
}).join('&')) || ''; };
|
|
13
|
+
var FetchOptions = /** @class */ (function () {
|
|
14
|
+
function FetchOptions() {
|
|
15
|
+
this.method = 'GET';
|
|
16
|
+
this.multipart = false;
|
|
17
|
+
this.async = true;
|
|
18
|
+
this.withCredentials = true;
|
|
19
|
+
}
|
|
20
|
+
return FetchOptions;
|
|
21
|
+
}());
|
|
22
|
+
var DEFAULT_OPTIONS = new FetchOptions();
|
|
23
|
+
var fetch = function (url, options) {
|
|
24
|
+
if (options === void 0) { options = DEFAULT_OPTIONS; }
|
|
25
|
+
var method = options.method || 'GET';
|
|
26
|
+
var params = options.params || {};
|
|
27
|
+
if (method === 'GET' || method === 'DELETE') {
|
|
28
|
+
var serializedData = toRequestParams(params);
|
|
29
|
+
if (serializedData)
|
|
30
|
+
url = url + "?" + serializedData;
|
|
31
|
+
}
|
|
32
|
+
var headers = __extends({ 'Accept': CONTENT_TYPE_APPLICATION_JSON }, (options.headers || {}));
|
|
33
|
+
var body;
|
|
34
|
+
if (method === 'POST' || method === 'PUT') {
|
|
35
|
+
if (options.multipart) {
|
|
36
|
+
var formData_1;
|
|
37
|
+
if (params instanceof FormData) {
|
|
38
|
+
formData_1 = params;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
formData_1 = new FormData();
|
|
42
|
+
Object.keys(params).forEach(function (name) {
|
|
43
|
+
var value = params[name];
|
|
44
|
+
if (Array.isArray(value)) {
|
|
45
|
+
value.forEach(function (it) { return formData_1.append(name, it); });
|
|
46
|
+
}
|
|
47
|
+
else if (value != null)
|
|
48
|
+
formData_1.append(name, value);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
body = formData_1;
|
|
52
|
+
}
|
|
53
|
+
else if (params instanceof Blob || params instanceof FormData) {
|
|
54
|
+
body = params;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
headers['Content-Type'] = CONTENT_TYPE_APPLICATION_JSON;
|
|
58
|
+
body = JSON.stringify(params || {}, function (key, value) {
|
|
59
|
+
if (value !== null)
|
|
60
|
+
return value;
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
var makeRequest = function (success, error) {
|
|
65
|
+
var request = new XMLHttpRequest();
|
|
66
|
+
var data = body;
|
|
67
|
+
if (!!(options.withCredentials === void 0 ? true : options.withCredentials))
|
|
68
|
+
request.withCredentials = true;
|
|
69
|
+
var async = !!(options.async === void 0 ? true : options.async);
|
|
70
|
+
request.open(method, url, async);
|
|
71
|
+
Object.keys(headers).forEach(function (key) {
|
|
72
|
+
return request.setRequestHeader(key, headers[key]);
|
|
73
|
+
});
|
|
74
|
+
var onError = orNoop(error);
|
|
75
|
+
if (options.timeout && async) {
|
|
76
|
+
request.timeout = options.timeout;
|
|
77
|
+
request.ontimeout = function (e) { return (options.onTimeout || onError)(e); };
|
|
78
|
+
}
|
|
79
|
+
var onProgress = options.onProgress;
|
|
80
|
+
if (onProgress) {
|
|
81
|
+
request.upload.onprogress = function (e) {
|
|
82
|
+
if (e.lengthComputable)
|
|
83
|
+
onProgress(e);
|
|
84
|
+
};
|
|
85
|
+
request.onprogress = onProgress;
|
|
86
|
+
}
|
|
87
|
+
request.onload = function () {
|
|
88
|
+
var responseText = request.responseText;
|
|
89
|
+
var status = request.status;
|
|
90
|
+
if (status >= 200 && status < 400) {
|
|
91
|
+
try {
|
|
92
|
+
orNoop(success)(JSON.parse(responseText || "{}"));
|
|
93
|
+
}
|
|
94
|
+
catch (e) {
|
|
95
|
+
var message = "Unexpected exception while processing response for ".concat(method, " ").concat(url, ", status: ").concat(status, ", response: '").concat(responseText, "', exception:");
|
|
96
|
+
console.log(message, e);
|
|
97
|
+
onError(new FetchError(message, status, responseText));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
var message = "Not ok response for ".concat(method, " ").concat(url, ", status: ").concat(status, ", response: '").concat(responseText, "'");
|
|
102
|
+
console.log(message);
|
|
103
|
+
onError(new FetchError(message, status, responseText));
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
request.onerror = onError;
|
|
107
|
+
try {
|
|
108
|
+
if (method === 'POST') {
|
|
109
|
+
if (typeof data === 'string' || data instanceof Blob || data instanceof FormData)
|
|
110
|
+
request.send(data);
|
|
111
|
+
else
|
|
112
|
+
request.send(toRequestParams(data));
|
|
113
|
+
}
|
|
114
|
+
else
|
|
115
|
+
request.send();
|
|
116
|
+
}
|
|
117
|
+
catch (e) {
|
|
118
|
+
onError(e);
|
|
119
|
+
}
|
|
120
|
+
if (options.provideCancel) {
|
|
121
|
+
options.provideCancel(function () { return request.abort(); });
|
|
122
|
+
}
|
|
123
|
+
return request;
|
|
124
|
+
};
|
|
125
|
+
// if (!window.Promise)
|
|
126
|
+
// return makeRequest(options.onSuccess, options.onError);
|
|
127
|
+
return new Promise(function (resolve, reject) {
|
|
128
|
+
var success = function (data) { return (options.onSuccess || resolve)(data); };
|
|
129
|
+
var error = function (e, status) { return (options.onError || reject)(e, status); };
|
|
130
|
+
makeRequest(success, error);
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
var FetchError = /** @class */ (function (_super) {
|
|
134
|
+
__inherits(FetchError, _super);
|
|
135
|
+
function FetchError(message, status, responseText) {
|
|
136
|
+
var _this = _super.call(this, message) || this;
|
|
137
|
+
_this.status = status;
|
|
138
|
+
_this.responseText = responseText;
|
|
139
|
+
return _this;
|
|
140
|
+
}
|
|
141
|
+
return FetchError;
|
|
142
|
+
}(Error));
|
|
143
|
+
var variablePatter = /\{(\w+)\}/g;
|
|
144
|
+
var createUrlRenderer = function (template, deleteVars) {
|
|
145
|
+
if (deleteVars === void 0) { deleteVars = false; }
|
|
146
|
+
var parts = [];
|
|
147
|
+
var variables = [];
|
|
148
|
+
var find;
|
|
149
|
+
var prevIndex = 0;
|
|
150
|
+
while ((find = variablePatter.exec(template)) !== null) {
|
|
151
|
+
variables.push(find[1]);
|
|
152
|
+
parts.push(template.substring(prevIndex, find.index));
|
|
153
|
+
prevIndex = find.index + __length(find[0]);
|
|
154
|
+
}
|
|
155
|
+
if (prevIndex === 0)
|
|
156
|
+
return function () { return template; };
|
|
157
|
+
parts.push(template.substring(prevIndex, __length(template)));
|
|
158
|
+
var m = parts;
|
|
159
|
+
var v = variables;
|
|
160
|
+
return function (params) {
|
|
161
|
+
var length = Math.max(__length(m), __length(v));
|
|
162
|
+
var s = '';
|
|
163
|
+
for (var i = 0; i < length; i++) {
|
|
164
|
+
if (m[i] !== null)
|
|
165
|
+
s += m[i];
|
|
166
|
+
var param = params[v[i]];
|
|
167
|
+
if (params && v[i] !== null && param != null) {
|
|
168
|
+
s += encodeURIComponent(param);
|
|
169
|
+
if (deleteVars)
|
|
170
|
+
delete params[v[i]];
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return s;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
var lazy = function (f) {
|
|
177
|
+
var args = [];
|
|
178
|
+
for (var _i = 1; _i < __length(arguments); _i++) {
|
|
179
|
+
args[_i - 1] = arguments[_i];
|
|
180
|
+
}
|
|
181
|
+
var result;
|
|
182
|
+
return function () {
|
|
183
|
+
if (!result)
|
|
184
|
+
result = f.apply(null, args);
|
|
185
|
+
return result.apply(null, arguments);
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
var baseurl = window.location.origin;
|
|
189
|
+
var setBaseUrl = function (url) { return baseurl = url; };
|
|
190
|
+
var createGET = function (template) {
|
|
191
|
+
var urlMaker = lazy(createUrlRenderer, template, true);
|
|
192
|
+
return function (params) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
193
|
+
return [2 /*return*/, fetch("".concat(baseurl).concat(urlMaker(params)), { params: params })];
|
|
194
|
+
}); }); };
|
|
195
|
+
};
|
|
196
|
+
var createPOST = function (template) {
|
|
197
|
+
var urlMaker = lazy(createUrlRenderer, template);
|
|
198
|
+
return function (params) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
199
|
+
return [2 /*return*/, fetch("".concat(baseurl).concat(urlMaker(params)), { params: params, method: "POST" })];
|
|
200
|
+
}); }); };
|
|
201
|
+
};
|
|
202
|
+
var createDELETE = function (template) {
|
|
203
|
+
var urlMaker = lazy(createUrlRenderer, template, true);
|
|
204
|
+
return function (params) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
205
|
+
return [2 /*return*/, fetch("".concat(baseurl).concat(urlMaker(params)), { params: params, method: "DELETE" })];
|
|
206
|
+
}); }); };
|
|
207
|
+
};
|
|
208
|
+
var createMultipart = function (template) {
|
|
209
|
+
var urlMaker = lazy(createUrlRenderer, template);
|
|
210
|
+
return function (params, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
211
|
+
var url;
|
|
212
|
+
return __generator(this, function (_a) {
|
|
213
|
+
url = "".concat(baseurl).concat(urlMaker(params));
|
|
214
|
+
return [2 /*return*/, fetch(url, __extends({ params: params, method: "POST", multipart: true }, options))];
|
|
215
|
+
});
|
|
216
|
+
}); };
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
export { FetchOptions, createDELETE, createGET, createMultipart, createPOST, createUrlRenderer, fetch, setBaseUrl, toRequestParams };
|
|
220
|
+
//# sourceMappingURL=HttpTools.js.map
|
package/HttpTools.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HttpTools.js","sources":["./src/HttpTools.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAEA,IAAM,6BAA6B,GAAG,kBAAkB,CAAC;AAEzD,IAAM,UAAU,GAAG,UAAC,GAAG,EAAE,KAAK,EAAA,EAAK,OAAA,GAAG,KAAK,kBAAkB,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,kBAAkB,CAAC,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAxI,EAAwI,CAAC;IAE/J,eAAe,GAAG,UAAC,MAAM,EAAA,EAAK,OAAA,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,UAAA,GAAG,EAAA;AAC7E,IAAA,IAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AAC1B,IAAA,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QACpB,OAAO,KAAK,CAAC,GAAG,CAAC,UAAA,EAAE,EAAA,EAAI,OAAA,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC,GAAA,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;;AAErD,QAAA,OAAO,UAAU,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;AACtC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CANwB,GAMvB;AAIpB,IAAA,YAAA,kBAAA,YAAA;AAAA,IAAA,SAAA,YAAA,GAAA;QACI,IAAM,CAAA,MAAA,GAAY,KAAK,CAAA;QAGvB,IAAS,CAAA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,EAAE,EAAC,MAAM,QAAA,EAAE,MAAM,EAAE,QAAQ,EAAC,CAAC,CAAA,CAAA;aAAA,CAAC;AAC7G,EAAE;AAOK,IAAM,eAAe,GAAG,UAAI,QAAgB,EAAA;IAC/C,IAAI,QAAQ,GAAkB,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC;IAChE,OAAO,UAAO,MAAW,EAAE,OAA0B,EAAA,EAAA,OAAA,SAAA,CAAA,KAAA,CAAA,EAAA,KAAA,CAAA,EAAA,KAAA,CAAA,EAAA,YAAA;;;YAC7C,GAAG,GAAG,UAAG,OAAO,CAAA,CAAA,MAAA,CAAG,QAAQ,CAAC,MAAM,CAAC,CAAE,CAAC;AAC1C,YAAA,OAAA,CAAA,CAAA,aAAO,KAAK,CAAI,GAAG,EAAG,QAAA,CAAA,EAAA,MAAM,QAAA,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAK,EAAA,OAAO,EAAE,CAAC,CAAA;;SAC/E,CAAC;AACN;;;;"}
|
package/ImageGallery.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
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";
|
|
3
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';
|
|
4
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
7
|
-
import './ImageGallery.css';
|
|
8
|
-
import React from 'react';
|
|
2
|
+
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 {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';
|
|
9
3
|
import ReactCreateElement from './ReactCreateElement.js';
|
|
10
4
|
import Animated from './Animated.js';
|
|
11
5
|
import Button from './Button.js';
|
package/MaterialIcon.js
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
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";
|
|
3
1
|
import 'react';
|
|
4
|
-
import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
|
|
5
|
-
import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
|
|
6
|
-
import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
|
|
7
|
-
import ReactCreateElement from './ReactCreateElement.js';
|
|
2
|
+
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 {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';
|
|
8
3
|
import { classNames } from './Tools.js';
|
|
9
4
|
import PropTypes from 'prop-types';
|
|
10
5
|
|