dtable-statistic 5.3.31 → 5.3.33

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/es/utils/index.js CHANGED
@@ -25,12 +25,13 @@ const getEventClassName = e => {
25
25
  exports.getEventClassName = getEventClassName;
26
26
  const isMobile = exports.isMobile = typeof window !== 'undefined' && (window.innerWidth < 768 || navigator.userAgent.toLowerCase().match(/(ipod|ipad|iphone|android|coolpad|mmp|smartphone|midp|wap|xoom|symbian|j2me|blackberry|wince)/i) != null);
27
27
  const getFirstDayOfWeek = () => {
28
+ var _window$app, _window$app$state, _window;
28
29
  const {
29
30
  settings
30
- } = window.app.state.value;
31
+ } = ((_window$app = window.app) === null || _window$app === void 0 ? void 0 : (_window$app$state = _window$app.state) === null || _window$app$state === void 0 ? void 0 : _window$app$state.value) || {};
31
32
  const {
32
33
  lang
33
- } = window.dtable;
34
+ } = ((_window = window) === null || _window === void 0 ? void 0 : _window.dtable) || {};
34
35
  const {
35
36
  date_settings
36
37
  } = settings || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-statistic",
3
- "version": "5.3.31",
3
+ "version": "5.3.33",
4
4
  "description": "statistics",
5
5
  "main": "dist/dtable-statistic.js",
6
6
  "author": "seafile",
@@ -18,7 +18,7 @@
18
18
  "react-grid-layout": "^1.2.5",
19
19
  "react-intl-universal": "^2.4.8",
20
20
  "reactstrap": "9.2.3",
21
- "sea-chart": "^1.1.102"
21
+ "sea-chart": "^1.1.105"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "dtable-ui-component": "~6.0.*",
@@ -53,7 +53,7 @@
53
53
  "dotenv": "^10.0.0",
54
54
  "dotenv-expand": "^5.1.0",
55
55
  "dtable-store": "6.0.3",
56
- "dtable-ui-component": "^6.0.26",
56
+ "dtable-ui-component": "^6.0.53",
57
57
  "dtable-utils": "^5.0.23",
58
58
  "eslint": "^8.3.0",
59
59
  "eslint-config-react-app": "^7.0.1",