@hi-ui/table 4.3.4 → 4.4.0-alpha.1

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 (67) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/lib/cjs/BaseTable.js +2 -2
  3. package/lib/cjs/ColGroupContent.js +2 -2
  4. package/lib/cjs/SettingDrawer.js +29 -20
  5. package/lib/cjs/Table.js +7 -5
  6. package/lib/cjs/TableAdvancedFilter.js +4 -4
  7. package/lib/cjs/TableBody.js +5 -5
  8. package/lib/cjs/TableCell.js +2 -2
  9. package/lib/cjs/TableColumnMenu.js +3 -3
  10. package/lib/cjs/TableEmbedRow.js +3 -3
  11. package/lib/cjs/TableHeader.js +2 -2
  12. package/lib/cjs/TableRow.js +7 -4
  13. package/lib/cjs/TableSettingMenu.js +3 -3
  14. package/lib/cjs/TbodyContent.js +5 -3
  15. package/lib/cjs/TheadContent.js +2 -2
  16. package/lib/cjs/hooks/use-async-switch.js +2 -2
  17. package/lib/cjs/hooks/use-check.js +2 -2
  18. package/lib/cjs/hooks/use-col-width.js +46 -17
  19. package/lib/cjs/hooks/use-colgroup.js +2 -2
  20. package/lib/cjs/hooks/use-drag.js +2 -2
  21. package/lib/cjs/hooks/use-embed-expand.js +3 -3
  22. package/lib/cjs/hooks/use-pagination.js +3 -3
  23. package/lib/cjs/icons/index.js +2 -2
  24. package/lib/cjs/node_modules/rc-resize-observer/es/index.js +9 -9
  25. package/lib/cjs/node_modules/rc-resize-observer/node_modules/rc-util/es/Children/toArray.js +2 -2
  26. package/lib/cjs/node_modules/rc-resize-observer/node_modules/rc-util/es/Dom/findDOMNode.js +2 -2
  27. package/lib/cjs/node_modules/rc-resize-observer/node_modules/rc-util/es/ref.js +2 -2
  28. package/lib/cjs/node_modules/rc-util/es/Dom/findDOMNode.js +2 -2
  29. package/lib/cjs/node_modules/rc-util/es/hooks/useLayoutEffect.js +4 -3
  30. package/lib/cjs/node_modules/rc-virtual-list/es/Filler.js +4 -3
  31. package/lib/cjs/node_modules/rc-virtual-list/es/Item.js +4 -3
  32. package/lib/cjs/node_modules/rc-virtual-list/es/List.js +4 -3
  33. package/lib/cjs/node_modules/rc-virtual-list/es/ScrollBar.js +4 -3
  34. package/lib/cjs/node_modules/rc-virtual-list/es/hooks/useChildren.js +4 -3
  35. package/lib/cjs/node_modules/rc-virtual-list/es/hooks/useDiffItem.js +4 -3
  36. package/lib/cjs/node_modules/rc-virtual-list/es/hooks/useHeights.js +7 -17
  37. package/lib/cjs/node_modules/rc-virtual-list/es/hooks/useScrollTo.js +4 -3
  38. package/lib/cjs/styles/index.scss.js +1 -1
  39. package/lib/cjs/use-table.js +8 -4
  40. package/lib/esm/SettingDrawer.js +26 -17
  41. package/lib/esm/Table.js +2 -0
  42. package/lib/esm/TableBody.js +1 -2
  43. package/lib/esm/TableRow.js +5 -2
  44. package/lib/esm/TbodyContent.js +3 -1
  45. package/lib/esm/hooks/use-col-width.js +44 -15
  46. package/lib/esm/node_modules/rc-virtual-list/es/hooks/useHeights.js +3 -14
  47. package/lib/esm/node_modules/rc-virtual-list/es/index.js +1 -1
  48. package/lib/esm/node_modules/react-is/cjs/react-is.development.js +1 -1
  49. package/lib/esm/node_modules/react-is/cjs/react-is.production.min.js +1 -1
  50. package/lib/esm/styles/index.scss.js +1 -1
  51. package/lib/esm/use-table.js +6 -2
  52. package/lib/types/SettingDrawer.d.ts +5 -0
  53. package/lib/types/TableRow.d.ts +4 -0
  54. package/lib/types/context.d.ts +6 -2
  55. package/lib/types/types.d.ts +4 -0
  56. package/lib/types/use-table.d.ts +11 -1
  57. package/package.json +2 -1
  58. package/lib/cjs/node_modules/perfect-scrollbar/dist/perfect-scrollbar.esm.js +0 -1090
  59. package/lib/cjs/packages/hooks/use-merge-refs/lib/esm/index.js +0 -68
  60. package/lib/cjs/packages/ui/scrollbar/lib/esm/Scrollbar.js +0 -157
  61. package/lib/cjs/packages/ui/scrollbar/lib/esm/styles/index.scss.js +0 -35
  62. package/lib/cjs/packages/ui/scrollbar/lib/esm/utils/index.js +0 -72
  63. package/lib/esm/node_modules/perfect-scrollbar/dist/perfect-scrollbar.esm.js +0 -1084
  64. package/lib/esm/packages/hooks/use-merge-refs/lib/esm/index.js +0 -62
  65. package/lib/esm/packages/ui/scrollbar/lib/esm/Scrollbar.js +0 -145
  66. package/lib/esm/packages/ui/scrollbar/lib/esm/styles/index.scss.js +0 -23
  67. package/lib/esm/packages/ui/scrollbar/lib/esm/utils/index.js +0 -66
@@ -1,62 +0,0 @@
1
- /** @LICENSE
2
- * @hi-ui/table
3
- * https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
4
- *
5
- * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
10
- import { useMemo } from 'react';
11
-
12
- /** @LICENSE
13
- * @hi-ui/use-merge-refs
14
- * https://github.com/XiaoMi/hiui/tree/master/packages/hooks/use-merge-refs#readme
15
- *
16
- * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
17
- *
18
- * This source code is licensed under the MIT license found in the
19
- * LICENSE file in the root directory of this source tree.
20
- */
21
-
22
- /**
23
- * A hook to merge multiple refs into a single function ref.
24
- *
25
- * @param refs
26
- */
27
- var useMergeRefs = function useMergeRefs() {
28
- for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
29
- refs[_key] = arguments[_key];
30
- }
31
- return useMemo(function () {
32
- return mergeRefs.apply(void 0, refs);
33
- }, refs);
34
- };
35
- /**
36
- * Merges multiple refs into a single function ref.
37
- *
38
- * @param refs
39
- * @returns
40
- */
41
- function mergeRefs() {
42
- for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
43
- refs[_key2] = arguments[_key2];
44
- }
45
- // Empty check
46
- if (refs.some(function (ref) {
47
- return ref;
48
- }) === false) return null;
49
- return function (value) {
50
- refs.forEach(function (ref) {
51
- setRef(ref, value);
52
- });
53
- };
54
- }
55
- function setRef(ref, value) {
56
- if (typeof ref === 'function') {
57
- ref(value);
58
- } else if (ref) {
59
- ref.current = value;
60
- }
61
- }
62
- export { mergeRefs, useMergeRefs };
@@ -1,145 +0,0 @@
1
- /** @LICENSE
2
- * @hi-ui/table
3
- * https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
4
- *
5
- * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
10
- import { __rest } from 'tslib';
11
- import React__default, { forwardRef, useState, useRef, useEffect, useImperativeHandle, useMemo } from 'react';
12
- import { getPrefixCls, cx } from '@hi-ui/classname';
13
- import { __DEV__ } from '@hi-ui/env';
14
- import { useMergeRefs } from '../../../../hooks/use-merge-refs/lib/esm/index.js';
15
- import PerfectScrollbar from '../../../../../node_modules/perfect-scrollbar/dist/perfect-scrollbar.esm.js';
16
- import { ScrollbarEventToPsMap } from './utils/index.js';
17
-
18
- /** @LICENSE
19
- * @hi-ui/scrollbar
20
- * https://github.com/XiaoMi/hiui/tree/master/packages/ui/scrollbar#readme
21
- *
22
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
23
- *
24
- * This source code is licensed under the MIT license found in the
25
- * LICENSE file in the root directory of this source tree.
26
- */
27
- var SCROLLBAR_PREFIX = getPrefixCls('scrollbar');
28
- var Scrollbar = /*#__PURE__*/forwardRef(function (_a, ref) {
29
- var _cx;
30
- var _a$prefixCls = _a.prefixCls,
31
- prefixCls = _a$prefixCls === void 0 ? SCROLLBAR_PREFIX : _a$prefixCls,
32
- _a$role = _a.role,
33
- role = _a$role === void 0 ? 'scrollbar' : _a$role,
34
- _a$position = _a.position,
35
- position = _a$position === void 0 ? 'relative' : _a$position,
36
- _a$axes = _a.axes,
37
- axes = _a$axes === void 0 ? 'both' : _a$axes,
38
- _a$keepVisible = _a.keepVisible,
39
- keepVisible = _a$keepVisible === void 0 ? false : _a$keepVisible,
40
- _a$onlyScrollVisible = _a.onlyScrollVisible,
41
- onlyScrollVisible = _a$onlyScrollVisible === void 0 ? false : _a$onlyScrollVisible,
42
- className = _a.className,
43
- children = _a.children,
44
- style = _a.style,
45
- innerRef = _a.innerRef,
46
- rest = __rest(_a, ["prefixCls", "role", "position", "axes", "keepVisible", "onlyScrollVisible", "className", "children", "style", "innerRef"]);
47
- var cls = cx(prefixCls, className, 'priority', (_cx = {}, _cx[prefixCls + "--keep-visible"] = keepVisible, _cx[prefixCls + "--only-scroll-visible"] = !keepVisible && onlyScrollVisible, _cx));
48
- var _useState = useState(undefined),
49
- ps = _useState[0],
50
- setPs = _useState[1];
51
- var _useState2 = useState(null),
52
- containerElement = _useState2[0],
53
- setContainer = _useState2[1];
54
- var _useState3 = useState(null),
55
- wrapperElement = _useState3[0],
56
- setWrapperElement = _useState3[1];
57
- var eventPropsRef = useRef({});
58
- useEffect(function () {
59
- if (containerElement) {
60
- setPs(new PerfectScrollbar(containerElement));
61
- }
62
- }, [containerElement]);
63
- // 轴定制
64
- useEffect(function () {
65
- if (ps) {
66
- ps.settings.suppressScrollX = true;
67
- ps.settings.suppressScrollY = true;
68
- if (axes === 'both' || axes === 'x') {
69
- ps.settings.suppressScrollX = false;
70
- }
71
- if (axes === 'both' || axes === 'y') {
72
- ps.settings.suppressScrollY = false;
73
- }
74
- ps.update();
75
- }
76
- }, [ps, axes]);
77
- // 监听容器以及内容尺寸
78
- useEffect(function () {
79
- if (ps && wrapperElement && containerElement) {
80
- var observer = new ResizeObserver(function (entries) {
81
- ps.update();
82
- });
83
- observer.observe(containerElement);
84
- observer.observe(wrapperElement);
85
- return function () {
86
- observer.disconnect();
87
- };
88
- }
89
- }, [ps, wrapperElement, containerElement]);
90
- useImperativeHandle(innerRef, function () {
91
- return {
92
- instance: ps,
93
- containerElement: containerElement || undefined
94
- };
95
- }, [ps, containerElement]);
96
- var _useMemo = useMemo(function () {
97
- var eventProps = {};
98
- var injectProps = {};
99
- var eventNames = Object.keys(ScrollbarEventToPsMap);
100
- for (var _i = 0, _Object$keys = Object.keys(rest); _i < _Object$keys.length; _i++) {
101
- var propsName = _Object$keys[_i];
102
- if (eventNames.includes(propsName)) {
103
- eventProps[propsName] = rest[propsName];
104
- } else {
105
- injectProps[propsName] = rest[propsName];
106
- }
107
- }
108
- return {
109
- eventProps: eventProps,
110
- injectProps: injectProps
111
- };
112
- }, [rest]),
113
- eventProps = _useMemo.eventProps,
114
- injectProps = _useMemo.injectProps;
115
- // 更新event props引用
116
- useEffect(function () {
117
- eventPropsRef.current = eventProps;
118
- }, [eventProps]);
119
- // 注册监听事件
120
- useEffect(function () {
121
- if (containerElement) {
122
- Object.keys(ScrollbarEventToPsMap).forEach(function (event) {
123
- containerElement.addEventListener(ScrollbarEventToPsMap[event], function (e) {
124
- var _a, _b;
125
- (_b = (_a = eventPropsRef.current)[event]) === null || _b === void 0 ? void 0 : _b.call(_a, e);
126
- });
127
- });
128
- }
129
- }, [containerElement]);
130
- return /*#__PURE__*/React__default.createElement("div", Object.assign({
131
- ref: useMergeRefs(setContainer, ref),
132
- role: role,
133
- className: cls,
134
- style: Object.assign(Object.assign({}, style), {
135
- position: position
136
- })
137
- }, injectProps), /*#__PURE__*/React__default.createElement("div", {
138
- className: prefixCls + "__wrapper",
139
- ref: setWrapperElement
140
- }, children));
141
- });
142
- if (__DEV__) {
143
- Scrollbar.displayName = 'Scrollbar';
144
- }
145
- export { Scrollbar };
@@ -1,23 +0,0 @@
1
- /** @LICENSE
2
- * @hi-ui/table
3
- * https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
4
- *
5
- * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
10
- import __styleInject__ from 'style-inject';
11
-
12
- /** @LICENSE
13
- * @hi-ui/scrollbar
14
- * https://github.com/XiaoMi/hiui/tree/master/packages/ui/scrollbar#readme
15
- *
16
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
17
- *
18
- * This source code is licensed under the MIT license found in the
19
- * LICENSE file in the root directory of this source tree.
20
- */
21
- var css_248z = "/** Container style*/.ps {overflow: hidden !important;overflow-anchor: none;-ms-overflow-style: none;touch-action: auto;-ms-touch-action: auto;}/** Scrollbar rail styles*/.ps__rail-x {display: none;opacity: 0;transition: background-color 0.2s linear, opacity 0.2s linear;-webkit-transition: background-color 0.2s linear, opacity 0.2s linear;height: 15px;/* there must be 'bottom' or 'top' for ps__rail-x */bottom: 0px;/* please don't change 'position' */position: absolute;}.ps__rail-y {display: none;opacity: 0;transition: background-color 0.2s linear, opacity 0.2s linear;-webkit-transition: background-color 0.2s linear, opacity 0.2s linear;width: 15px;/* there must be 'right' or 'left' for ps__rail-y */right: 0;/* please don't change 'position' */position: absolute;}.ps--active-x > .ps__rail-x,.ps--active-y > .ps__rail-y {display: block;background-color: transparent;}.ps:hover > .ps__rail-x,.ps:hover > .ps__rail-y,.ps--focus > .ps__rail-x,.ps--focus > .ps__rail-y,.ps--scrolling-x > .ps__rail-x,.ps--scrolling-y > .ps__rail-y {opacity: 0.6;}.ps .ps__rail-x:hover,.ps .ps__rail-y:hover,.ps .ps__rail-x:focus,.ps .ps__rail-y:focus,.ps .ps__rail-x.ps--clicking,.ps .ps__rail-y.ps--clicking {background-color: #eee;opacity: 0.9;}/** Scrollbar thumb styles*/.ps__thumb-x {background-color: #aaa;border-radius: 6px;transition: background-color 0.2s linear, height 0.2s ease-in-out;-webkit-transition: background-color 0.2s linear, height 0.2s ease-in-out;height: 6px;/* there must be 'bottom' for ps__thumb-x */bottom: 2px;/* please don't change 'position' */position: absolute;}.ps__thumb-y {background-color: #aaa;border-radius: 6px;transition: background-color 0.2s linear, width 0.2s ease-in-out;-webkit-transition: background-color 0.2s linear, width 0.2s ease-in-out;width: 6px;/* there must be 'right' for ps__thumb-y */right: 2px;/* please don't change 'position' */position: absolute;}.ps__rail-x:hover > .ps__thumb-x,.ps__rail-x:focus > .ps__thumb-x,.ps__rail-x.ps--clicking .ps__thumb-x {background-color: #999;height: 11px;}.ps__rail-y:hover > .ps__thumb-y,.ps__rail-y:focus > .ps__thumb-y,.ps__rail-y.ps--clicking .ps__thumb-y {background-color: #999;width: 11px;}/* MS supports */@supports (-ms-overflow-style: none) {.ps {overflow: auto !important;}}@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {.ps {overflow: auto !important;}}.hi-v4-scrollbar {overflow: hidden;width: 100%;height: 100%;}.hi-v4-scrollbar__wrapper {width: -webkit-fit-content;width: -moz-fit-content;width: fit-content;height: -webkit-fit-content;height: -moz-fit-content;height: fit-content;min-width: 100%;min-height: 100%;}.hi-v4-scrollbar--keep-visible.priority > .ps__rail-y, .hi-v4-scrollbar--keep-visible.priority > .ps__rail-x {opacity: 0.8;}.hi-v4-scrollbar--keep-visible.priority .ps__thumb-y,.hi-v4-scrollbar--keep-visible.priority .ps__thumb-x {background-color: var(--hi-v4-color-gray-400, #b5bcc7);}.hi-v4-scrollbar.priority:hover > .ps__rail-y, .hi-v4-scrollbar.priority:hover > .ps__rail-x, .hi-v4-scrollbar.priority:focus > .ps__rail-y, .hi-v4-scrollbar.priority:focus > .ps__rail-x {opacity: 0.8;}.hi-v4-scrollbar.priority > .ps__rail-y,.hi-v4-scrollbar.priority .ps__thumb-y {width: 8px;border-radius: 4px;right: 0;-webkit-transition: opacity var(--hi-v4-motion-duration-normal, 200ms) var(--hi-v4-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1)), background-color var(--hi-v4-motion-duration-normal, 200ms) var(--hi-v4-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1));transition: opacity var(--hi-v4-motion-duration-normal, 200ms) var(--hi-v4-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1)), background-color var(--hi-v4-motion-duration-normal, 200ms) var(--hi-v4-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1));}.hi-v4-scrollbar.priority > .ps__rail-y:hover, .hi-v4-scrollbar.priority > .ps__rail-y:focus, .hi-v4-scrollbar.priority > .ps__rail-y.ps--clicking {width: 8px;background-color: var(--hi-v4-color-gray-200, #ebedf0);opacity: 0.8;}.hi-v4-scrollbar.priority > .ps__rail-y:hover .ps__thumb-y, .hi-v4-scrollbar.priority > .ps__rail-y:focus .ps__thumb-y, .hi-v4-scrollbar.priority > .ps__rail-y.ps--clicking .ps__thumb-y {width: 8px;right: 0;background-color: var(--hi-v4-color-gray-500, #929aa6);}.hi-v4-scrollbar.priority > .ps__rail-x,.hi-v4-scrollbar.priority .ps__thumb-x {height: 8px;border-radius: 4px;bottom: 0;-webkit-transition: opacity var(--hi-v4-motion-duration-normal, 200ms) var(--hi-v4-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1)), background-color var(--hi-v4-motion-duration-normal, 200ms) var(--hi-v4-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1));transition: opacity var(--hi-v4-motion-duration-normal, 200ms) var(--hi-v4-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1)), background-color var(--hi-v4-motion-duration-normal, 200ms) var(--hi-v4-motion-bezier-easing, cubic-bezier(0.37, 0.02, 0.34, 1));}.hi-v4-scrollbar.priority > .ps__rail-x:hover, .hi-v4-scrollbar.priority > .ps__rail-x:focus, .hi-v4-scrollbar.priority > .ps__rail-x.ps--clicking {height: 8px;background-color: var(--hi-v4-color-gray-200, #ebedf0);opacity: 0.8;}.hi-v4-scrollbar.priority > .ps__rail-x:hover .ps__thumb-x, .hi-v4-scrollbar.priority > .ps__rail-x:focus .ps__thumb-x, .hi-v4-scrollbar.priority > .ps__rail-x.ps--clicking .ps__thumb-x {height: 8px;bottom: 0;background-color: var(--hi-v4-color-gray-500, #929aa6);}.hi-v4-scrollbar--only-scroll-visible.priority:not(.ps--scrolling-y) > .ps__rail-y:not(:hover):not(:focus), .hi-v4-scrollbar--only-scroll-visible.priority:not(.ps--scrolling-x) > .ps__rail-x:not(:hover):not(:focus) {opacity: 0;}";
22
- __styleInject__(css_248z);
23
- export { css_248z as default };
@@ -1,66 +0,0 @@
1
- /** @LICENSE
2
- * @hi-ui/table
3
- * https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
4
- *
5
- * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
10
- /** @LICENSE
11
- * @hi-ui/scrollbar
12
- * https://github.com/XiaoMi/hiui/tree/master/packages/ui/scrollbar#readme
13
- *
14
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */
19
- var ScrollbarPsToEventMatch = {
20
- /**
21
- * This event fires when the y-axis is scrolled in either direction
22
- */
23
- 'ps-scroll-y': 'onScrollY',
24
- /**
25
- * This event fires when the x-axis is scrolled in either direction.
26
- */
27
- 'ps-scroll-x': 'onScrollX',
28
- /**
29
- * This event fires when scrolling upwards.
30
- */
31
- 'ps-scroll-up': 'onScrollUp',
32
- /**
33
- * This event fires when scrolling downwards.
34
- */
35
- 'ps-scroll-down': 'onScrollDown',
36
- /**
37
- * This event fires when scrolling to the left.
38
- */
39
- 'ps-scroll-left': 'onScrollLeft',
40
- /**
41
- * This event fires when scrolling to the right.
42
- */
43
- 'ps-scroll-right': 'onScrollRight',
44
- /**
45
- * This event fires when scrolling reaches the start of the y-axis.
46
- */
47
- 'ps-y-reach-start': 'onYReachStart',
48
- /**
49
- * This event fires when scrolling reaches the end of the y-axis (useful for infinite scroll).
50
- */
51
- 'ps-y-reach-end': 'onYReachEnd',
52
- /**
53
- * This event fires when scrolling reaches the start of the x-axis.
54
- */
55
- 'ps-x-reach-start': 'onXReachStart',
56
- /**
57
- * This event fires when scrolling reaches the end of the x-axis.
58
- */
59
- 'ps-x-reach-end': 'onXReachEnd'
60
- };
61
- var ScrollbarEventToPsMap = Object.keys(ScrollbarPsToEventMatch).reduce(function (acc, key) {
62
- var value = ScrollbarPsToEventMatch[key];
63
- acc[value] = key;
64
- return acc;
65
- }, {});
66
- export { ScrollbarEventToPsMap };