@synerise/ds-operators 1.0.38 → 1.1.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.
- package/CHANGELOG.md +22 -0
- package/dist/Operators.js +14 -11
- package/dist/OperatorsDropdown/OperatorsDropdown.js +1 -5
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.1.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-operators@1.1.0...@synerise/ds-operators@1.1.1) (2025-11-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **date-picker:** dropdown state ([e16e4ce](https://github.com/Synerise/synerise-design/commit/e16e4ce8374c374512d0dc59a2361000ab89c8b9))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [1.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-operators@1.0.38...@synerise/ds-operators@1.1.0) (2025-11-06)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **dropdown:** dropdownMenu component ([f0ec827](https://github.com/Synerise/synerise-design/commit/f0ec82792cdcb021fa9a454912f6e7a892e53895))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [1.0.38](https://github.com/Synerise/synerise-design/compare/@synerise/ds-operators@1.0.37...@synerise/ds-operators@1.0.38) (2025-10-31)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @synerise/ds-operators
|
package/dist/Operators.js
CHANGED
|
@@ -60,18 +60,14 @@ var Operators = function Operators(_ref) {
|
|
|
60
60
|
}, [onChange]);
|
|
61
61
|
useEffect(function () {
|
|
62
62
|
setDropdownVisible(Boolean(opened));
|
|
63
|
-
|
|
64
|
-
onActivate && onActivate();
|
|
65
|
-
}
|
|
66
|
-
}, [onActivate, opened]);
|
|
63
|
+
}, [opened]);
|
|
67
64
|
var handleClick = useCallback(function () {
|
|
68
|
-
onActivate
|
|
69
|
-
setDropdownVisible(true);
|
|
65
|
+
onActivate == null || onActivate();
|
|
70
66
|
}, [onActivate]);
|
|
71
67
|
var onDropdownVisibilityChange = useCallback(function (newValue) {
|
|
72
|
-
newValue
|
|
73
|
-
|
|
74
|
-
}, [onActivate
|
|
68
|
+
setDropdownVisible(newValue);
|
|
69
|
+
newValue && (onActivate == null ? void 0 : onActivate());
|
|
70
|
+
}, [onActivate]);
|
|
75
71
|
var triggerMode = useMemo(function () {
|
|
76
72
|
if (value) {
|
|
77
73
|
return readOnly ? 'icon-label' : 'two-icons';
|
|
@@ -104,9 +100,16 @@ var Operators = function Operators(_ref) {
|
|
|
104
100
|
};
|
|
105
101
|
}, [dimensionsConfig.defaultHeight, dimensionsConfig.lowerHeight, dimensionsConfig.threshold]);
|
|
106
102
|
var content = readOnly ? dropdownTrigger : /*#__PURE__*/React.createElement(Dropdown, {
|
|
107
|
-
|
|
108
|
-
|
|
103
|
+
open: dropdownVisible,
|
|
104
|
+
onOpenChange: onDropdownVisibilityChange,
|
|
109
105
|
getPopupContainer: getPopupContainerOverride || getPopupContainer,
|
|
106
|
+
asChild: false,
|
|
107
|
+
size: "medium",
|
|
108
|
+
onDismiss: onDeactivate,
|
|
109
|
+
popoverProps: {
|
|
110
|
+
testId: 'operators',
|
|
111
|
+
returnFocus: false
|
|
112
|
+
},
|
|
110
113
|
overlay: /*#__PURE__*/React.createElement(OperatorsDropdown, {
|
|
111
114
|
value: value,
|
|
112
115
|
setDropdownVisible: setDropdownVisible,
|
|
@@ -6,7 +6,7 @@ import Icon, { SearchM } from '@synerise/ds-icon';
|
|
|
6
6
|
import Result from '@synerise/ds-result';
|
|
7
7
|
import Scrollbar from '@synerise/ds-scrollbar';
|
|
8
8
|
import Tabs from '@synerise/ds-tabs';
|
|
9
|
-
import { focusWithArrowKeys
|
|
9
|
+
import { focusWithArrowKeys } from '@synerise/ds-utils';
|
|
10
10
|
import * as S from '../Operators.style';
|
|
11
11
|
import { DEFAULT_TAB_INDEX, DROPDOWN_HEIGHT, NO_GROUP_NAME, PADDING, SEARCH_HEIGHT, TABS_HEIGHT } from '../constants';
|
|
12
12
|
import { groupByGroupName } from '../utils';
|
|
@@ -43,9 +43,6 @@ var OperatorsDropdown = function OperatorsDropdown(_ref) {
|
|
|
43
43
|
var classNames = useMemo(function () {
|
|
44
44
|
return "ds-operator-item ds-operator-item-" + uuid();
|
|
45
45
|
}, []);
|
|
46
|
-
useOnClickOutside(overlayRef, function () {
|
|
47
|
-
setDropdownVisible(false);
|
|
48
|
-
});
|
|
49
46
|
var renderGroupedItems = useCallback(function (activeItems) {
|
|
50
47
|
var groupedItems = groupByGroupName(activeItems);
|
|
51
48
|
var renderedItems = [];
|
|
@@ -142,7 +139,6 @@ var OperatorsDropdown = function OperatorsDropdown(_ref) {
|
|
|
142
139
|
return /*#__PURE__*/React.createElement(Dropdown.Wrapper, {
|
|
143
140
|
"data-testid": "ds-operators-dropdown-wrapper",
|
|
144
141
|
style: {
|
|
145
|
-
width: '300px',
|
|
146
142
|
zIndex: 1005
|
|
147
143
|
},
|
|
148
144
|
ref: overlayRef,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-operators",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Operators UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-button": "^1.
|
|
39
|
-
"@synerise/ds-dropdown": "^1.
|
|
40
|
-
"@synerise/ds-icon": "^1.
|
|
41
|
-
"@synerise/ds-list-item": "^1.
|
|
42
|
-
"@synerise/ds-result": "^1.0.
|
|
43
|
-
"@synerise/ds-scrollbar": "^1.
|
|
44
|
-
"@synerise/ds-tabs": "^1.
|
|
45
|
-
"@synerise/ds-tooltip": "^1.
|
|
38
|
+
"@synerise/ds-button": "^1.5.0",
|
|
39
|
+
"@synerise/ds-dropdown": "^1.1.1",
|
|
40
|
+
"@synerise/ds-icon": "^1.8.0",
|
|
41
|
+
"@synerise/ds-list-item": "^1.2.0",
|
|
42
|
+
"@synerise/ds-result": "^1.0.30",
|
|
43
|
+
"@synerise/ds-scrollbar": "^1.2.0",
|
|
44
|
+
"@synerise/ds-tabs": "^1.1.1",
|
|
45
|
+
"@synerise/ds-tooltip": "^1.3.0",
|
|
46
46
|
"@synerise/ds-utils": "^1.5.0",
|
|
47
47
|
"uuid": "^8.3.2"
|
|
48
48
|
},
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
53
53
|
"styled-components": "^5.3.3"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "085189e79075b23a8fb86ce9b7d930f6ac7b3d23"
|
|
56
56
|
}
|