react-ui-basics 0.0.158 → 0.0.159

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/index.js CHANGED
@@ -1,16 +1,10 @@
1
+ import CommonFields from "./CommonFields";
1
2
  export { default as Animated } from './Animated.js';
2
3
  export { default as AutocompleteSelect } from './AutocompleteSelect.js';
3
4
  export { default as Button } from './Button.js';
4
5
  export { default as Checkbox } from './Checkbox.js';
5
6
  export { default as CircleProgress } from './CircleProgress.js';
6
- import {clientHeight as __clientHeight, clientWidth as __clientWidth, getBoundingClientRect as __getBoundingClientRect, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, top as __top, value as __value, width as __width} from "./CommonFields";
7
- import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
8
- import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
9
- import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
10
- import {className as __className} from "./ReactConstants";
11
- import {children as __children} from "./ReactConstants";
12
- import * as CommonFields from './CommonFields.js';
13
- export { CommonFields };
7
+ export { default as CommonFields } from './CommonFields.js';
14
8
  export { default as Dialog } from './Dialog.js';
15
9
  export { default as DNDContainer } from './DNDContainer.js';
16
10
  export { default as DNDDraggable } from './DNDDraggable.js';
@@ -31,6 +25,11 @@ export { default as Snackbar } from './Snackbar.js';
31
25
  export { default as SpinningProgress } from './SpinningProgress.js';
32
26
  export { default as Switch } from './Switch.js';
33
27
  export { default as ReactCreateElement } from './ReactCreateElement.js';
28
+ import {toConsumableArray as __toConsumableArray} from "./_virtual/_rollupPluginBabelHelpers";
29
+ import {extends as __extends} from "./_virtual/_rollupPluginBabelHelpers";
30
+ import {inherits as __inherits} from "./_virtual/_rollupPluginBabelHelpers";
31
+ import {className as __className} from "./ReactConstants";
32
+ import {children as __children} from "./ReactConstants";
34
33
  import * as ReadyListener from './ReadyListener.js';
35
34
  export { ReadyListener };
36
35
  export { default as TextField } from './TextField.js';
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-ui-basics",
3
- "version": "0.0.158",
3
+ "version": "0.0.159",
4
4
  "description": "",
5
5
  "module": "index.js",
6
6
  "_main": "index.cjs.js",
@@ -1,3 +1,4 @@
1
+ import CommonFields from "./../CommonFields";
1
2
  import { WINDOW, DOCUMENT } from '../Tools.js';
2
3
 
3
4
  var history = WINDOW.history;
package/router/Link.js CHANGED
@@ -1,5 +1,5 @@
1
+ import CommonFields from "./../CommonFields";
1
2
  import 'react';
2
- import {clientHeight as __clientHeight, clientWidth as __clientWidth, getBoundingClientRect as __getBoundingClientRect, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, top as __top, value as __value, width as __width} from "./../CommonFields";
3
3
  import {toConsumableArray as __toConsumableArray} from "./../_virtual/_rollupPluginBabelHelpers";
4
4
  import {extends as __extends} from "./../_virtual/_rollupPluginBabelHelpers";
5
5
  import {inherits as __inherits} from "./../_virtual/_rollupPluginBabelHelpers";
package/router/NavLink.js CHANGED
@@ -1,5 +1,5 @@
1
+ import CommonFields from "./../CommonFields";
1
2
  import 'react';
2
- import {clientHeight as __clientHeight, clientWidth as __clientWidth, getBoundingClientRect as __getBoundingClientRect, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, top as __top, value as __value, width as __width} from "./../CommonFields";
3
3
  import {toConsumableArray as __toConsumableArray} from "./../_virtual/_rollupPluginBabelHelpers";
4
4
  import {extends as __extends} from "./../_virtual/_rollupPluginBabelHelpers";
5
5
  import {inherits as __inherits} from "./../_virtual/_rollupPluginBabelHelpers";
package/router/Route.js CHANGED
@@ -1,5 +1,5 @@
1
+ import CommonFields from "./../CommonFields";
1
2
  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 {clientHeight as __clientHeight, clientWidth as __clientWidth, getBoundingClientRect as __getBoundingClientRect, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, top as __top, value as __value, width as __width} from "./../CommonFields";
3
3
  import {toConsumableArray as __toConsumableArray} from "./../_virtual/_rollupPluginBabelHelpers";
4
4
  import {extends as __extends} from "./../_virtual/_rollupPluginBabelHelpers";
5
5
  import {inherits as __inherits} from "./../_virtual/_rollupPluginBabelHelpers";
@@ -12,14 +12,14 @@ import { stateGSs, componentDidUpdate, render, componentDidMount, componentWillU
12
12
 
13
13
  var historyEvents = ['popstate', 'pushState', 'replaceState'];
14
14
  var cleanPath = function cleanPath(path) {
15
- if (path[__length] > 1 && path.lastIndexOf('/') === path[__length] - 1) return path.substring(0, path[__length] - 1);
15
+ if (path[CommonFields[5]] > 1 && path.lastIndexOf('/') === path[CommonFields[5]] - 1) return path.substring(0, path[CommonFields[5]] - 1);
16
16
  return path;
17
17
  };
18
18
  var createUrlMatcher = function createUrlMatcher(path) {
19
19
  var matcher;
20
20
  var segments = path.split('/');
21
21
  var optionals = segments.map(function (it) {
22
- return it === '*' || it.indexOf('?') === it[__length] - 1;
22
+ return it === '*' || it.indexOf('?') === it[CommonFields[5]] - 1;
23
23
  });
24
24
  var containsVariables = path.indexOf(':') !== -1;
25
25
  var containsAnySegment = path.indexOf('*') !== -1;
@@ -29,7 +29,7 @@ var createUrlMatcher = function createUrlMatcher(path) {
29
29
  return p === path;
30
30
  };
31
31
  } else {
32
- var endsWithAny = path.lastIndexOf('*') === path[__length] - 1;
32
+ var endsWithAny = path.lastIndexOf('*') === path[CommonFields[5]] - 1;
33
33
  var matchers = segments.map(function (segment, i) {
34
34
  var matcher;
35
35
  var variableNameIndex = segment.indexOf(':');
@@ -59,12 +59,12 @@ var createUrlMatcher = function createUrlMatcher(path) {
59
59
  });
60
60
  matcher = function matcher(path, params) {
61
61
  var segments = path.split('/');
62
- var length = Math.min(matchers[__length], segments[__length]);
63
- if (!endsWithAny && matchers[__length] < segments[__length]) return false;
62
+ var length = Math.min(matchers[CommonFields[5]], segments[CommonFields[5]]);
63
+ if (!endsWithAny && matchers[CommonFields[5]] < segments[CommonFields[5]]) return false;
64
64
  for (var i = 0; i < length; i++) {
65
65
  if (!matchers[i](segments[i], params)) return false;
66
66
  }
67
- for (var _i = length; _i < optionals[__length]; _i++) {
67
+ for (var _i = length; _i < optionals[CommonFields[5]]; _i++) {
68
68
  if (!optionals[_i]) return false;
69
69
  }
70
70
  return true;
@@ -78,7 +78,7 @@ var createUrlMatchers = function createUrlMatchers(path) {
78
78
  return createUrlMatcher(it);
79
79
  });
80
80
  return function (path, params) {
81
- for (var i = 0; i < matchers[__length]; i++) {
81
+ for (var i = 0; i < matchers[CommonFields[5]]; i++) {
82
82
  var props = {};
83
83
  if (matchers[i](path, props)) {
84
84
  __extends(params, props);
@@ -159,7 +159,7 @@ if (process.env.NODE_ENV !== 'production') {
159
159
  }
160
160
  var DefaultController = function DefaultController(matches, children, props) {
161
161
  if (!matches || !children) return null;
162
- if (Object.keys(props)[__length] > 0) {
162
+ if (Object.keys(props)[CommonFields[5]] > 0) {
163
163
  return React.Children.map(children, function (child) {
164
164
  return React.cloneElement(child, props);
165
165
  });
package/router/index.js CHANGED
@@ -1,5 +1,5 @@
1
+ import CommonFields from "./../CommonFields";
1
2
  import Link from './Link.js';
2
- import {clientHeight as __clientHeight, clientWidth as __clientWidth, getBoundingClientRect as __getBoundingClientRect, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, top as __top, value as __value, width as __width} from "./../CommonFields";
3
3
  import {toConsumableArray as __toConsumableArray} from "./../_virtual/_rollupPluginBabelHelpers";
4
4
  import {extends as __extends} from "./../_virtual/_rollupPluginBabelHelpers";
5
5
  import {inherits as __inherits} from "./../_virtual/_rollupPluginBabelHelpers";
@@ -1,5 +1,5 @@
1
+ import CommonFields from "./../CommonFields";
1
2
  import { typeof as _typeof, toConsumableArray as _toConsumableArray, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
2
- import {clientHeight as __clientHeight, clientWidth as __clientWidth, getBoundingClientRect as __getBoundingClientRect, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, top as __top, value as __value, width as __width} from "./../CommonFields";
3
3
  import {toConsumableArray as __toConsumableArray} from "./../_virtual/_rollupPluginBabelHelpers";
4
4
  import {extends as __extends} from "./../_virtual/_rollupPluginBabelHelpers";
5
5
  import {inherits as __inherits} from "./../_virtual/_rollupPluginBabelHelpers";
package/store/Store.js CHANGED
@@ -1,5 +1,5 @@
1
+ import CommonFields from "./../CommonFields";
1
2
  import { useState, useEffect } from 'react';
2
- import {clientHeight as __clientHeight, clientWidth as __clientWidth, getBoundingClientRect as __getBoundingClientRect, height as __height, left as __left, length as __length, pageX as __pageX, pageY as __pageY, scrollLeft as __scrollLeft, scrollTop as __scrollTop, style as __style, top as __top, value as __value, width as __width} from "./../CommonFields";
3
3
  import {toConsumableArray as __toConsumableArray} from "./../_virtual/_rollupPluginBabelHelpers";
4
4
  import {extends as __extends} from "./../_virtual/_rollupPluginBabelHelpers";
5
5
  import {inherits as __inherits} from "./../_virtual/_rollupPluginBabelHelpers";