intelicoreact 0.2.29 → 0.2.30

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.
Files changed (41) hide show
  1. package/dist/Atomic/FormElements/Dropdown/Dropdown.js +2 -2
  2. package/dist/Atomic/FormElements/Input/Input.js +2 -2
  3. package/dist/Atomic/FormElements/InputDateRange/InputDateRange.js +2 -2
  4. package/dist/Atomic/FormElements/InputDateRange/components/OpenedPart.js +2 -2
  5. package/dist/Atomic/FormElements/InputDateRange/dependencies.js +3 -3
  6. package/dist/Atomic/FormElements/InputMask/InputMask.js +2 -3
  7. package/dist/Atomic/FormElements/InputMask/functions.js +1 -1
  8. package/dist/Atomic/FormElements/InputsRow/InputsRow.js +2 -2
  9. package/dist/Atomic/FormElements/NumericInput/NumericInput.js +2 -2
  10. package/dist/Atomic/FormElements/RadioInput/RadioInput.js +2 -0
  11. package/dist/Atomic/FormElements/RangeInputs/RangeInputs.js +2 -2
  12. package/dist/Atomic/FormElements/RangeList/RangeList.js +2 -2
  13. package/dist/Atomic/FormElements/SwitcherRadio/SwitcherRadio.js +35 -24
  14. package/dist/Atomic/UI/AccordionTable/AccordionTable.js +2 -2
  15. package/dist/Atomic/UI/Chart/Chart.js +145 -0
  16. package/dist/Atomic/UI/Chart/Chart.scss +57 -0
  17. package/dist/Atomic/UI/Chart/partial/AnyOuterClass.scss +38 -0
  18. package/dist/Atomic/UI/Chart/partial/Chart.constants.js +30 -0
  19. package/dist/Atomic/UI/Chart/partial/ChartTypeSwitcherIcon/ChartTypeSwitcherIcon.js +95 -0
  20. package/dist/Atomic/UI/Chart/partial/ChartTypeSwitcherIcon/ChartTypeSwitcherIcon.scss +18 -0
  21. package/dist/Atomic/UI/Chart/partial/optionsConstructor.js +286 -0
  22. package/dist/Atomic/UI/Chart/partial/utils.js +147 -0
  23. package/dist/Atomic/UI/ExampleChartIntegration/ExampleChartIntegration.js +235 -0
  24. package/dist/Atomic/UI/ExampleChartIntegration/partial/AnyOuterClass.scss +61 -0
  25. package/dist/Atomic/UI/ExampleChartIntegration/partial/utils.js +131 -0
  26. package/dist/Atomic/UI/NavLine/NavLine.js +2 -2
  27. package/dist/Atomic/UI/Table/Partials/TdCell.js +2 -2
  28. package/dist/Atomic/UI/Table/Partials/TdRow.js +2 -2
  29. package/dist/Atomic/UI/TagList/TagList.js +2 -2
  30. package/dist/Constants/index.constants.js +1 -1
  31. package/dist/Functions/fieldValueFormatters.js +1 -1
  32. package/dist/Functions/useFormTools/form-drivers/ObjectWithIterableObjects.js +2 -2
  33. package/dist/Functions/useFormTools/form-drivers/ObjectWithNamedKeyObjects.js +2 -2
  34. package/dist/Functions/useFormTools/functions/General.js +2 -2
  35. package/dist/Functions/useFormTools/functions/RenderFields.js +2 -2
  36. package/dist/Functions/useFormTools/index.js +2 -2
  37. package/dist/Functions/useLocationParams.js +2 -2
  38. package/dist/Functions/usePasswordChecker.js +2 -2
  39. package/dist/Functions/utils.js +15 -1
  40. package/dist/scss/_fonts.scss +108 -108
  41. package/package.json +3 -1
@@ -5,10 +5,12 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.useOutsideToggle = exports.throttle = exports.logout = exports.handleObjectChange = exports.getStyles = exports.getColorById = exports.firstLetterCapital = exports.debounce = exports.checkedRef = exports.changeMeta = exports.addBitDepthPoints = void 0;
8
+ exports.checkedRef = exports.firstLetterCapital = exports.changeMeta = exports.addBitDepthPoints = exports.throttle = exports.debounce = exports.getColorById = exports.getStyles = exports.logout = exports.clone = exports.useOutsideToggle = exports.handleObjectChange = void 0;
9
9
 
10
10
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
11
11
 
12
+ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
13
+
12
14
  var _react = require("react");
13
15
 
14
16
  var _index = require("../Constants/index.constants");
@@ -55,6 +57,18 @@ var useOutsideToggle = function useOutsideToggle(ref, setOut, open) {
55
57
 
56
58
  exports.useOutsideToggle = useOutsideToggle;
57
59
 
60
+ var clone = function clone(obj) {
61
+ var data = obj instanceof Array ? [] : {};
62
+
63
+ for (var i in obj) {
64
+ data[i] = (0, _typeof2.default)(obj[i]) === 'object' && obj[i] != null ? clone(obj[i]) : obj[i];
65
+ }
66
+
67
+ return data;
68
+ };
69
+
70
+ exports.clone = clone;
71
+
58
72
  var logout = function logout() {
59
73
  window.localStorage.removeItem('accessToken');
60
74
  window.localStorage.removeItem('tokenExpires');
@@ -1,109 +1,109 @@
1
- /* roboto-100 - latin_cyrillic */
2
- @font-face {
3
- font-family: 'Roboto';
4
- font-style: normal;
5
- font-weight: 100;
6
- src: local('Roboto Thin'), local('Roboto-Thin'),
7
- url('../assets/fonts/roboto-v20-latin_cyrillic-100.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
8
- url('../assets/fonts/roboto-v20-latin_cyrillic-100.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
9
- }
10
- /* roboto-100italic - latin_cyrillic */
11
- @font-face {
12
- font-family: 'Roboto';
13
- font-style: italic;
14
- font-weight: 100;
15
- src: local('Roboto Thin Italic'), local('Roboto-ThinItalic'),
16
- url('../assets/fonts/roboto-v20-latin_cyrillic-100italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
17
- url('../assets/fonts/roboto-v20-latin_cyrillic-100italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
18
- }
19
- /* roboto-300 - latin_cyrillic */
20
- @font-face {
21
- font-family: 'Roboto';
22
- font-style: normal;
23
- font-weight: 300;
24
- src: local('Roboto Light'), local('Roboto-Light'),
25
- url('../assets/fonts/roboto-v20-latin_cyrillic-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
26
- url('../assets/fonts/roboto-v20-latin_cyrillic-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
27
- }
28
- /* roboto-300italic - latin_cyrillic */
29
- @font-face {
30
- font-family: 'Roboto';
31
- font-style: italic;
32
- font-weight: 300;
33
- src: local('Roboto Light Italic'), local('Roboto-LightItalic'),
34
- url('../assets/fonts/roboto-v20-latin_cyrillic-300italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
35
- url('../assets/fonts/roboto-v20-latin_cyrillic-300italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
36
- }
37
- /* roboto-regular - latin_cyrillic */
38
- @font-face {
39
- font-family: 'Roboto';
40
- font-style: normal;
41
- font-weight: 400;
42
- src: local('Roboto'), local('Roboto-Regular'),
43
- url('../assets/fonts/roboto-v20-latin_cyrillic-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
44
- url('../assets/fonts/roboto-v20-latin_cyrillic-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
45
- }
46
- /* roboto-italic - latin_cyrillic */
47
- @font-face {
48
- font-family: 'Roboto';
49
- font-style: italic;
50
- font-weight: 400;
51
- src: local('Roboto Italic'), local('Roboto-Italic'),
52
- url('../assets/fonts/roboto-v20-latin_cyrillic-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
53
- url('../assets/fonts/roboto-v20-latin_cyrillic-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
54
- }
55
- /* roboto-500 - latin_cyrillic */
56
- @font-face {
57
- font-family: 'Roboto';
58
- font-style: normal;
59
- font-weight: 500;
60
- src: local('Roboto Medium'), local('Roboto-Medium'),
61
- url('../assets/fonts/roboto-v20-latin_cyrillic-500.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
62
- url('../assets/fonts/roboto-v20-latin_cyrillic-500.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
63
- }
64
- /* roboto-500italic - latin_cyrillic */
65
- @font-face {
66
- font-family: 'Roboto';
67
- font-style: italic;
68
- font-weight: 500;
69
- src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'),
70
- url('../assets/fonts/roboto-v20-latin_cyrillic-500italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
71
- url('../assets/fonts/roboto-v20-latin_cyrillic-500italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
72
- }
73
- /* roboto-700 - latin_cyrillic */
74
- @font-face {
75
- font-family: 'Roboto';
76
- font-style: normal;
77
- font-weight: 700;
78
- src: local('Roboto Bold'), local('Roboto-Bold'),
79
- url('../assets/fonts/roboto-v20-latin_cyrillic-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
80
- url('../assets/fonts/roboto-v20-latin_cyrillic-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
81
- }
82
- /* roboto-700italic - latin_cyrillic */
83
- @font-face {
84
- font-family: 'Roboto';
85
- font-style: italic;
86
- font-weight: 700;
87
- src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'),
88
- url('../assets/fonts/roboto-v20-latin_cyrillic-700italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
89
- url('../assets/fonts/roboto-v20-latin_cyrillic-700italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
90
- }
91
- /* roboto-900 - latin_cyrillic */
92
- @font-face {
93
- font-family: 'Roboto';
94
- font-style: normal;
95
- font-weight: 900;
96
- src: local('Roboto Black'), local('Roboto-Black'),
97
- url('../assets/fonts/roboto-v20-latin_cyrillic-900.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
98
- url('../assets/fonts/roboto-v20-latin_cyrillic-900.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
99
- }
100
- /* roboto-900italic - latin_cyrillic */
101
- @font-face {
102
- font-family: 'Roboto';
103
- font-style: italic;
104
- font-weight: 900;
105
- src: local('Roboto Black Italic'), local('Roboto-BlackItalic'),
106
- url('../assets/fonts/roboto-v20-latin_cyrillic-900italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
107
- url('../assets/fonts/roboto-v20-latin_cyrillic-900italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
108
- }
1
+ /* roboto-100 - latin_cyrillic */
2
+ @font-face {
3
+ font-family: 'Roboto';
4
+ font-style: normal;
5
+ font-weight: 100;
6
+ src: local('Roboto Thin'), local('Roboto-Thin'),
7
+ url('../assets/fonts/roboto-v20-latin_cyrillic-100.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
8
+ url('../assets/fonts/roboto-v20-latin_cyrillic-100.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
9
+ }
10
+ /* roboto-100italic - latin_cyrillic */
11
+ @font-face {
12
+ font-family: 'Roboto';
13
+ font-style: italic;
14
+ font-weight: 100;
15
+ src: local('Roboto Thin Italic'), local('Roboto-ThinItalic'),
16
+ url('../assets/fonts/roboto-v20-latin_cyrillic-100italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
17
+ url('../assets/fonts/roboto-v20-latin_cyrillic-100italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
18
+ }
19
+ /* roboto-300 - latin_cyrillic */
20
+ @font-face {
21
+ font-family: 'Roboto';
22
+ font-style: normal;
23
+ font-weight: 300;
24
+ src: local('Roboto Light'), local('Roboto-Light'),
25
+ url('../assets/fonts/roboto-v20-latin_cyrillic-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
26
+ url('../assets/fonts/roboto-v20-latin_cyrillic-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
27
+ }
28
+ /* roboto-300italic - latin_cyrillic */
29
+ @font-face {
30
+ font-family: 'Roboto';
31
+ font-style: italic;
32
+ font-weight: 300;
33
+ src: local('Roboto Light Italic'), local('Roboto-LightItalic'),
34
+ url('../assets/fonts/roboto-v20-latin_cyrillic-300italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
35
+ url('../assets/fonts/roboto-v20-latin_cyrillic-300italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
36
+ }
37
+ /* roboto-regular - latin_cyrillic */
38
+ @font-face {
39
+ font-family: 'Roboto';
40
+ font-style: normal;
41
+ font-weight: 400;
42
+ src: local('Roboto'), local('Roboto-Regular'),
43
+ url('../assets/fonts/roboto-v20-latin_cyrillic-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
44
+ url('../assets/fonts/roboto-v20-latin_cyrillic-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
45
+ }
46
+ /* roboto-italic - latin_cyrillic */
47
+ @font-face {
48
+ font-family: 'Roboto';
49
+ font-style: italic;
50
+ font-weight: 400;
51
+ src: local('Roboto Italic'), local('Roboto-Italic'),
52
+ url('../assets/fonts/roboto-v20-latin_cyrillic-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
53
+ url('../assets/fonts/roboto-v20-latin_cyrillic-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
54
+ }
55
+ /* roboto-500 - latin_cyrillic */
56
+ @font-face {
57
+ font-family: 'Roboto';
58
+ font-style: normal;
59
+ font-weight: 500;
60
+ src: local('Roboto Medium'), local('Roboto-Medium'),
61
+ url('../assets/fonts/roboto-v20-latin_cyrillic-500.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
62
+ url('../assets/fonts/roboto-v20-latin_cyrillic-500.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
63
+ }
64
+ /* roboto-500italic - latin_cyrillic */
65
+ @font-face {
66
+ font-family: 'Roboto';
67
+ font-style: italic;
68
+ font-weight: 500;
69
+ src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'),
70
+ url('../assets/fonts/roboto-v20-latin_cyrillic-500italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
71
+ url('../assets/fonts/roboto-v20-latin_cyrillic-500italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
72
+ }
73
+ /* roboto-700 - latin_cyrillic */
74
+ @font-face {
75
+ font-family: 'Roboto';
76
+ font-style: normal;
77
+ font-weight: 700;
78
+ src: local('Roboto Bold'), local('Roboto-Bold'),
79
+ url('../assets/fonts/roboto-v20-latin_cyrillic-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
80
+ url('../assets/fonts/roboto-v20-latin_cyrillic-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
81
+ }
82
+ /* roboto-700italic - latin_cyrillic */
83
+ @font-face {
84
+ font-family: 'Roboto';
85
+ font-style: italic;
86
+ font-weight: 700;
87
+ src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'),
88
+ url('../assets/fonts/roboto-v20-latin_cyrillic-700italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
89
+ url('../assets/fonts/roboto-v20-latin_cyrillic-700italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
90
+ }
91
+ /* roboto-900 - latin_cyrillic */
92
+ @font-face {
93
+ font-family: 'Roboto';
94
+ font-style: normal;
95
+ font-weight: 900;
96
+ src: local('Roboto Black'), local('Roboto-Black'),
97
+ url('../assets/fonts/roboto-v20-latin_cyrillic-900.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
98
+ url('../assets/fonts/roboto-v20-latin_cyrillic-900.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
99
+ }
100
+ /* roboto-900italic - latin_cyrillic */
101
+ @font-face {
102
+ font-family: 'Roboto';
103
+ font-style: italic;
104
+ font-weight: 900;
105
+ src: local('Roboto Black Italic'), local('Roboto-BlackItalic'),
106
+ url('../assets/fonts/roboto-v20-latin_cyrillic-900italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
107
+ url('../assets/fonts/roboto-v20-latin_cyrillic-900italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
108
+ }
109
109
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "0.2.29",
3
+ "version": "0.2.30",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -18,10 +18,12 @@
18
18
  "license": "ISC",
19
19
  "dependencies": {
20
20
  "anme": "^1.0.1",
21
+ "chart.js": "^3.8.0",
21
22
  "classnames": "^2.3.1",
22
23
  "moment": "^2.29.1",
23
24
  "moment-timezone": "^0.5.34",
24
25
  "react": "^17.0.2",
26
+ "react-chartjs-2": "^4.1.0",
25
27
  "react-feather": "^2.0.9",
26
28
  "react-input-mask": "^2.0.4"
27
29
  },