@semcore/add-filter 1.4.0 → 1.4.1-prerelease.0
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 +6 -0
- package/lib/esm/AddFilter.mjs +201 -153
- package/lib/esm/components/AddFilterDropdown.mjs +49 -44
- package/lib/esm/components/AddFilterInput.mjs +55 -48
- package/lib/esm/components/AddFilterSelect.mjs +56 -51
- package/lib/esm/index.mjs +2 -2
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +30 -30
- package/lib/esm/translations/de.json.mjs +2 -2
- package/lib/esm/translations/en.json.mjs +2 -2
- package/lib/esm/translations/es.json.mjs +2 -2
- package/lib/esm/translations/fr.json.mjs +2 -2
- package/lib/esm/translations/it.json.mjs +2 -2
- package/lib/esm/translations/ja.json.mjs +2 -2
- package/lib/esm/translations/ko.json.mjs +2 -2
- package/lib/esm/translations/nl.json.mjs +2 -2
- package/lib/esm/translations/pl.json.mjs +2 -2
- package/lib/esm/translations/pt.json.mjs +2 -2
- package/lib/esm/translations/sv.json.mjs +2 -2
- package/lib/esm/translations/tr.json.mjs +2 -2
- package/lib/esm/translations/vi.json.mjs +2 -2
- package/lib/esm/translations/zh.json.mjs +2 -2
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [1.4.1] - 2025-05-09
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/icon` [4.61.0 ~> 4.62.0], `@semcore/utils` [4.48.2 ~> 4.48.4]).
|
|
10
|
+
|
|
5
11
|
## [1.4.0] - 2025-04-11
|
|
6
12
|
|
|
7
13
|
### Changed
|
package/lib/esm/AddFilter.mjs
CHANGED
|
@@ -1,254 +1,302 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { Flex
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { extractFrom
|
|
19
|
-
import { localizedMessages
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
var
|
|
25
|
-
function
|
|
26
|
-
var
|
|
27
|
-
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
7
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
+
import createComponent, { assignProps, Component } from "@semcore/core";
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { Flex, ScreenReaderOnly } from "@semcore/flex-box";
|
|
11
|
+
import Button from "@semcore/button";
|
|
12
|
+
import DropdownMenu from "@semcore/dropdown-menu";
|
|
13
|
+
import MathPlusM from "@semcore/icon/MathPlus/m";
|
|
14
|
+
import CloseM from "@semcore/icon/Close/m";
|
|
15
|
+
import AddFilterSelect from "./components/AddFilterSelect.mjs";
|
|
16
|
+
import AddFilterInput from "./components/AddFilterInput.mjs";
|
|
17
|
+
import AddFilterDropdown from "./components/AddFilterDropdown.mjs";
|
|
18
|
+
import { extractFrom } from "@semcore/utils/lib/findComponent";
|
|
19
|
+
import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
20
|
+
import i18nEnhance from "@semcore/utils/lib/enhances/i18nEnhance";
|
|
21
|
+
import focusSourceEnhance from "@semcore/utils/lib/enhances/focusSourceEnhance";
|
|
22
|
+
var RootAddFilter = /* @__PURE__ */ function(_Component) {
|
|
23
|
+
_inherits(RootAddFilter2, _Component);
|
|
24
|
+
var _super = _createSuper(RootAddFilter2);
|
|
25
|
+
function RootAddFilter2(props) {
|
|
26
|
+
var _this;
|
|
27
|
+
_classCallCheck(this, RootAddFilter2);
|
|
28
|
+
_this = _super.call(this, props);
|
|
29
|
+
_defineProperty(_assertThisInitialized(_this), "addFilterTrigger", /* @__PURE__ */ React.createRef());
|
|
30
|
+
_defineProperty(_assertThisInitialized(_this), "filtersFocusMap", /* @__PURE__ */ new Map());
|
|
31
|
+
_defineProperty(_assertThisInitialized(_this), "clearMessageTimer", void 0);
|
|
32
|
+
_defineProperty(_assertThisInitialized(_this), "addDropdownItems", void 0);
|
|
33
|
+
_this.state = {
|
|
28
34
|
visibleFilters: /* @__PURE__ */ new Set(),
|
|
29
35
|
clearFiltersMessage: ""
|
|
30
|
-
}
|
|
36
|
+
};
|
|
37
|
+
_this.addDropdownItems = RootAddFilter2.getDefaultAddDropdownOptions(props.children);
|
|
38
|
+
return _this;
|
|
31
39
|
}
|
|
32
|
-
|
|
40
|
+
_createClass(RootAddFilter2, [{
|
|
33
41
|
key: "componentWillUnmount",
|
|
34
|
-
value: function() {
|
|
42
|
+
value: function componentWillUnmount() {
|
|
35
43
|
clearTimeout(this.clearMessageTimer);
|
|
36
44
|
}
|
|
37
45
|
}, {
|
|
38
46
|
key: "focusFilterAfterItemCleared",
|
|
39
|
-
value: function(
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
});
|
|
45
|
-
setTimeout(function() {
|
|
46
|
-
var i, a = Array.from(t.state.visibleFilters), u = a.at(l), d = (i = t.filtersFocusMap.get(u)) !== null && i !== void 0 ? i : t.addFilterTrigger.current;
|
|
47
|
-
d == null || d.focus();
|
|
48
|
-
}, 20);
|
|
47
|
+
value: function focusFilterAfterItemCleared(name) {
|
|
48
|
+
var _this2 = this;
|
|
49
|
+
var focusSourceRef = this.asProps.focusSourceRef;
|
|
50
|
+
if (focusSourceRef.current !== "keyboard") {
|
|
51
|
+
return;
|
|
49
52
|
}
|
|
53
|
+
var deletedIndex = Array.from(this.state.visibleFilters).findIndex(function(n) {
|
|
54
|
+
return n === name;
|
|
55
|
+
});
|
|
56
|
+
setTimeout(function() {
|
|
57
|
+
var _this2$filtersFocusMa;
|
|
58
|
+
var currentVisibleFiltersList = Array.from(_this2.state.visibleFilters);
|
|
59
|
+
var focusFilterName = currentVisibleFiltersList.at(deletedIndex);
|
|
60
|
+
var itemToFocus = (_this2$filtersFocusMa = _this2.filtersFocusMap.get(focusFilterName)) !== null && _this2$filtersFocusMa !== void 0 ? _this2$filtersFocusMa : _this2.addFilterTrigger.current;
|
|
61
|
+
itemToFocus === null || itemToFocus === void 0 ? void 0 : itemToFocus.focus();
|
|
62
|
+
}, 20);
|
|
50
63
|
}
|
|
51
64
|
}, {
|
|
52
65
|
key: "getVisibleFilters",
|
|
53
|
-
value: function(
|
|
54
|
-
return Array.from(this.state.visibleFilters).map(function(
|
|
55
|
-
return
|
|
56
|
-
var
|
|
57
|
-
return
|
|
66
|
+
value: function getVisibleFilters(allFilters) {
|
|
67
|
+
return Array.from(this.state.visibleFilters).map(function(name) {
|
|
68
|
+
return allFilters.find(function(_ref2) {
|
|
69
|
+
var props = _ref2.props;
|
|
70
|
+
return props.name === name;
|
|
58
71
|
});
|
|
59
72
|
});
|
|
60
73
|
}
|
|
61
74
|
}, {
|
|
62
75
|
key: "getItemCommonProps",
|
|
63
|
-
value: function(
|
|
64
|
-
var
|
|
76
|
+
value: function getItemCommonProps(props) {
|
|
77
|
+
var _this3 = this;
|
|
78
|
+
var name = props.name;
|
|
79
|
+
var filterData = this.asProps.filterData;
|
|
65
80
|
return {
|
|
66
|
-
name
|
|
67
|
-
value:
|
|
68
|
-
setFocusRef: function(
|
|
69
|
-
|
|
81
|
+
name,
|
|
82
|
+
value: filterData[name],
|
|
83
|
+
setFocusRef: function setFocusRef(ref) {
|
|
84
|
+
_this3.filtersFocusMap.set(name, ref);
|
|
70
85
|
},
|
|
71
|
-
onClear: function() {
|
|
72
|
-
|
|
86
|
+
onClear: function onClear() {
|
|
87
|
+
_this3.hideFilter(name);
|
|
88
|
+
_this3.focusFilterAfterItemCleared(name);
|
|
73
89
|
}
|
|
74
90
|
};
|
|
75
91
|
}
|
|
76
92
|
}, {
|
|
77
93
|
key: "getInputProps",
|
|
78
|
-
value: function(
|
|
79
|
-
return this.getItemCommonProps(
|
|
94
|
+
value: function getInputProps(props) {
|
|
95
|
+
return this.getItemCommonProps(props);
|
|
80
96
|
}
|
|
81
97
|
}, {
|
|
82
98
|
key: "getDropdownAndSelectProps",
|
|
83
|
-
value: function(
|
|
84
|
-
var
|
|
99
|
+
value: function getDropdownAndSelectProps(props, isEmpty) {
|
|
100
|
+
var _this4 = this;
|
|
101
|
+
var _this$getItemCommonPr = this.getItemCommonProps(props), setFocusRef = _this$getItemCommonPr.setFocusRef, value = _this$getItemCommonPr.value, onClear = _this$getItemCommonPr.onClear;
|
|
85
102
|
return {
|
|
86
|
-
value
|
|
87
|
-
onClear
|
|
88
|
-
setFocusRef
|
|
89
|
-
onVisibleChange: function(
|
|
103
|
+
value,
|
|
104
|
+
onClear,
|
|
105
|
+
setFocusRef,
|
|
106
|
+
onVisibleChange: function onVisibleChange(visible) {
|
|
90
107
|
setTimeout(function() {
|
|
91
|
-
var
|
|
92
|
-
!
|
|
108
|
+
var _this4$getItemCommonP = _this4.getItemCommonProps(props), onClear2 = _this4$getItemCommonP.onClear;
|
|
109
|
+
if (!visible && isEmpty()) {
|
|
110
|
+
onClear2();
|
|
111
|
+
}
|
|
93
112
|
}, 0);
|
|
94
113
|
}
|
|
95
114
|
};
|
|
96
115
|
}
|
|
97
116
|
}, {
|
|
98
117
|
key: "getSelectProps",
|
|
99
|
-
value: function(
|
|
100
|
-
var
|
|
101
|
-
|
|
102
|
-
|
|
118
|
+
value: function getSelectProps(props) {
|
|
119
|
+
var _this5 = this;
|
|
120
|
+
var isEmpty = function isEmpty2() {
|
|
121
|
+
var multiselect = props.multiselect;
|
|
122
|
+
var _this5$getItemCommonP = _this5.getItemCommonProps(props), value = _this5$getItemCommonP.value;
|
|
123
|
+
return multiselect && Array.isArray(value) ? !(value !== null && value !== void 0 && value.length) : !value;
|
|
103
124
|
};
|
|
104
|
-
return this.getDropdownAndSelectProps(
|
|
125
|
+
return this.getDropdownAndSelectProps(props, isEmpty);
|
|
105
126
|
}
|
|
106
127
|
}, {
|
|
107
128
|
key: "getDropdownProps",
|
|
108
|
-
value: function(
|
|
109
|
-
var
|
|
110
|
-
|
|
111
|
-
|
|
129
|
+
value: function getDropdownProps(props) {
|
|
130
|
+
var _this6 = this;
|
|
131
|
+
var isEmpty = function isEmpty2() {
|
|
132
|
+
var _this6$getItemCommonP = _this6.getItemCommonProps(props), value = _this6$getItemCommonP.value;
|
|
133
|
+
return value == null;
|
|
112
134
|
};
|
|
113
|
-
return this.getDropdownAndSelectProps(
|
|
135
|
+
return this.getDropdownAndSelectProps(props, isEmpty);
|
|
114
136
|
}
|
|
115
137
|
}, {
|
|
116
138
|
key: "clearAll",
|
|
117
|
-
value: function() {
|
|
118
|
-
var
|
|
139
|
+
value: function clearAll() {
|
|
140
|
+
var _this7 = this;
|
|
119
141
|
this.setState({
|
|
120
142
|
visibleFilters: /* @__PURE__ */ new Set()
|
|
121
|
-
})
|
|
122
|
-
|
|
123
|
-
|
|
143
|
+
});
|
|
144
|
+
this.props.onClearAll();
|
|
145
|
+
this.announceClearMessageToSR();
|
|
146
|
+
setTimeout(function() {
|
|
147
|
+
var _this7$addFilterTrigg;
|
|
148
|
+
(_this7$addFilterTrigg = _this7.addFilterTrigger.current) === null || _this7$addFilterTrigg === void 0 ? void 0 : _this7$addFilterTrigg.focus();
|
|
124
149
|
}, 20);
|
|
125
150
|
}
|
|
126
151
|
}, {
|
|
127
152
|
key: "announceClearMessageToSR",
|
|
128
|
-
value: function() {
|
|
129
|
-
var
|
|
153
|
+
value: function announceClearMessageToSR() {
|
|
154
|
+
var _this8 = this;
|
|
155
|
+
var getI18nText = this.asProps.getI18nText;
|
|
156
|
+
var clearFiltersMessage = getI18nText("AddFilter.ScreenReaderMessage.FiltersCleared");
|
|
130
157
|
this.setState({
|
|
131
|
-
clearFiltersMessage
|
|
132
|
-
})
|
|
133
|
-
|
|
158
|
+
clearFiltersMessage
|
|
159
|
+
});
|
|
160
|
+
this.clearMessageTimer = setTimeout(function() {
|
|
161
|
+
_this8.setState({
|
|
134
162
|
clearFiltersMessage: ""
|
|
135
163
|
});
|
|
136
164
|
}, 300);
|
|
137
165
|
}
|
|
138
166
|
}, {
|
|
139
167
|
key: "toggleFieldVisibility",
|
|
140
|
-
value: function(
|
|
141
|
-
var
|
|
142
|
-
|
|
143
|
-
visibleFilters
|
|
168
|
+
value: function toggleFieldVisibility(name, status) {
|
|
169
|
+
var visibleFilters = new Set(Array.from(this.state.visibleFilters));
|
|
170
|
+
if (status) {
|
|
171
|
+
visibleFilters.add(name);
|
|
172
|
+
} else {
|
|
173
|
+
visibleFilters["delete"](name);
|
|
174
|
+
}
|
|
175
|
+
this.setState({
|
|
176
|
+
visibleFilters
|
|
144
177
|
});
|
|
145
178
|
}
|
|
146
179
|
}, {
|
|
147
180
|
key: "hideFilter",
|
|
148
|
-
value: function(
|
|
149
|
-
this.toggleFieldVisibility(
|
|
181
|
+
value: function hideFilter(name) {
|
|
182
|
+
this.toggleFieldVisibility(name, false);
|
|
150
183
|
}
|
|
151
184
|
}, {
|
|
152
185
|
key: "getFilterSelectionMenuProps",
|
|
153
|
-
value: function() {
|
|
154
|
-
var
|
|
186
|
+
value: function getFilterSelectionMenuProps() {
|
|
187
|
+
var _this9 = this;
|
|
188
|
+
var getI18nText = this.asProps.getI18nText;
|
|
155
189
|
return {
|
|
156
190
|
ref: this.addFilterTrigger,
|
|
157
191
|
options: this.addDropdownItems,
|
|
158
|
-
toggleFieldVisibility: function(
|
|
159
|
-
return
|
|
192
|
+
toggleFieldVisibility: function toggleFieldVisibility(name, status) {
|
|
193
|
+
return _this9.toggleFieldVisibility(name, status);
|
|
160
194
|
},
|
|
161
195
|
visibleFilters: this.state.visibleFilters,
|
|
162
|
-
getI18nText
|
|
196
|
+
getI18nText
|
|
163
197
|
};
|
|
164
198
|
}
|
|
165
199
|
}, {
|
|
166
200
|
key: "getClearAllFiltersProps",
|
|
167
|
-
value: function() {
|
|
168
|
-
var
|
|
201
|
+
value: function getClearAllFiltersProps() {
|
|
202
|
+
var _this10 = this;
|
|
203
|
+
var _this$asProps = this.asProps, getI18nText = _this$asProps.getI18nText, filterData = _this$asProps.filterData;
|
|
169
204
|
return {
|
|
170
|
-
hasFilterData: Object.values(
|
|
171
|
-
return Array.isArray(
|
|
205
|
+
hasFilterData: Object.values(filterData).filter(function(value) {
|
|
206
|
+
return Array.isArray(value) ? value === null || value === void 0 ? void 0 : value.length : value;
|
|
172
207
|
}).length > 0,
|
|
173
|
-
clearAll: function() {
|
|
174
|
-
|
|
208
|
+
clearAll: function clearAll() {
|
|
209
|
+
_this10.clearAll();
|
|
175
210
|
},
|
|
176
|
-
getI18nText
|
|
211
|
+
getI18nText
|
|
177
212
|
};
|
|
178
213
|
}
|
|
179
214
|
}, {
|
|
180
215
|
key: "render",
|
|
181
|
-
value: function() {
|
|
182
|
-
var
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
216
|
+
value: function render() {
|
|
217
|
+
var _ref = this.asProps;
|
|
218
|
+
var Children = this.asProps.Children;
|
|
219
|
+
var _RootAddFilter$getFil = RootAddFilter2.getFilterPatternItems(Children), _RootAddFilter$getFil2 = _slicedToArray(_RootAddFilter$getFil, 2), filters = _RootAddFilter$getFil2[0], persistentFilters = _RootAddFilter$getFil2[1];
|
|
220
|
+
var VisibleFilteredChildren = this.getVisibleFilters(filters);
|
|
221
|
+
var filtersSelectionDropdown = this.getFilterSelectionMenuProps();
|
|
222
|
+
var clearAllFiltersProps = this.getClearAllFiltersProps();
|
|
223
|
+
return /* @__PURE__ */ React.createElement(Flex, assignProps({
|
|
224
|
+
"gap": 2,
|
|
225
|
+
"flexWrap": true
|
|
226
|
+
}, _ref), persistentFilters, VisibleFilteredChildren, /* @__PURE__ */ React.createElement(AddFilterDropdownMenu, filtersSelectionDropdown), /* @__PURE__ */ React.createElement(ClearAllFilters, clearAllFiltersProps), /* @__PURE__ */ React.createElement(ScreenReaderOnly, {
|
|
187
227
|
"aria-live": "polite",
|
|
188
228
|
role: "status"
|
|
189
229
|
}, this.state.clearFiltersMessage));
|
|
190
230
|
}
|
|
191
|
-
}])
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
231
|
+
}]);
|
|
232
|
+
return RootAddFilter2;
|
|
233
|
+
}(Component);
|
|
234
|
+
_defineProperty(RootAddFilter, "displayName", "AddFilter");
|
|
235
|
+
_defineProperty(RootAddFilter, "enhance", [i18nEnhance(localizedMessages), focusSourceEnhance()]);
|
|
236
|
+
_defineProperty(RootAddFilter, "defaultProps", {
|
|
237
|
+
i18n: localizedMessages,
|
|
197
238
|
locale: "en"
|
|
198
239
|
});
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
return
|
|
240
|
+
_defineProperty(RootAddFilter, "componentsNames", ["AddFilter.Input", "AddFilter.Select", "AddFilter.Dropdown"]);
|
|
241
|
+
_defineProperty(RootAddFilter, "getFilterPatternItems", function(children) {
|
|
242
|
+
return extractFrom(children, RootAddFilter.componentsNames);
|
|
202
243
|
});
|
|
203
|
-
|
|
204
|
-
var
|
|
205
|
-
return
|
|
206
|
-
var
|
|
244
|
+
_defineProperty(RootAddFilter, "getDefaultAddDropdownOptions", function(children) {
|
|
245
|
+
var _RootAddFilter$getFil3 = RootAddFilter.getFilterPatternItems(children), _RootAddFilter$getFil4 = _slicedToArray(_RootAddFilter$getFil3, 1), filters = _RootAddFilter$getFil4[0];
|
|
246
|
+
return filters.map(function(_ref5) {
|
|
247
|
+
var props = _ref5.props;
|
|
248
|
+
var name = props.name, displayName = props.displayName;
|
|
207
249
|
return {
|
|
208
|
-
label:
|
|
209
|
-
value:
|
|
250
|
+
label: displayName !== null && displayName !== void 0 ? displayName : name,
|
|
251
|
+
value: name
|
|
210
252
|
};
|
|
211
253
|
});
|
|
212
254
|
});
|
|
213
|
-
var
|
|
214
|
-
var
|
|
215
|
-
|
|
216
|
-
|
|
255
|
+
var AddFilterDropdownMenu = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
256
|
+
var options = props.options, toggleFieldVisibility = props.toggleFieldVisibility, visibleFilters = props.visibleFilters, getI18nText = props.getI18nText;
|
|
257
|
+
var _React$useState = React.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), visible = _React$useState2[0], setVisible = _React$useState2[1];
|
|
258
|
+
var optionsWithoutVisible = React.useMemo(function() {
|
|
259
|
+
return options.filter(function(filter) {
|
|
260
|
+
return !Array.from(visibleFilters).includes(filter.value);
|
|
217
261
|
});
|
|
218
|
-
}, [
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
262
|
+
}, [options, visibleFilters]);
|
|
263
|
+
if (!optionsWithoutVisible.length) {
|
|
264
|
+
return null;
|
|
265
|
+
}
|
|
266
|
+
return /* @__PURE__ */ React.createElement(DropdownMenu, {
|
|
267
|
+
visible,
|
|
268
|
+
onVisibleChange: setVisible
|
|
269
|
+
}, /* @__PURE__ */ React.createElement(DropdownMenu.Trigger, {
|
|
270
|
+
ref,
|
|
271
|
+
tag: Button,
|
|
225
272
|
use: "tertiary",
|
|
226
|
-
addonLeft:
|
|
227
|
-
},
|
|
228
|
-
var
|
|
229
|
-
return /* @__PURE__ */
|
|
230
|
-
key:
|
|
231
|
-
onClick: function() {
|
|
232
|
-
|
|
273
|
+
addonLeft: MathPlusM
|
|
274
|
+
}, getI18nText("AddFilter.DropdownTrigger.Text")), /* @__PURE__ */ React.createElement(DropdownMenu.Menu, null, optionsWithoutVisible.map(function(_ref3) {
|
|
275
|
+
var label = _ref3.label, value = _ref3.value;
|
|
276
|
+
return /* @__PURE__ */ React.createElement(DropdownMenu.Item, {
|
|
277
|
+
key: value,
|
|
278
|
+
onClick: function onClick() {
|
|
279
|
+
toggleFieldVisibility(value, true);
|
|
280
|
+
setVisible(false);
|
|
233
281
|
}
|
|
234
|
-
},
|
|
235
|
-
})))
|
|
282
|
+
}, label);
|
|
283
|
+
})));
|
|
236
284
|
});
|
|
237
|
-
function
|
|
238
|
-
var
|
|
239
|
-
return
|
|
285
|
+
function ClearAllFilters(_ref4) {
|
|
286
|
+
var hasFilterData = _ref4.hasFilterData, clearAll = _ref4.clearAll, getI18nText = _ref4.getI18nText;
|
|
287
|
+
return hasFilterData ? /* @__PURE__ */ React.createElement(Button, {
|
|
240
288
|
use: "tertiary",
|
|
241
289
|
theme: "muted",
|
|
242
|
-
addonLeft:
|
|
290
|
+
addonLeft: CloseM,
|
|
243
291
|
ml: "auto",
|
|
244
|
-
onClick:
|
|
245
|
-
},
|
|
292
|
+
onClick: clearAll
|
|
293
|
+
}, getI18nText("AddFilter.Button.Text")) : null;
|
|
246
294
|
}
|
|
247
|
-
var
|
|
248
|
-
Select:
|
|
249
|
-
Input:
|
|
250
|
-
Dropdown:
|
|
295
|
+
var AddFilter = createComponent(RootAddFilter, {
|
|
296
|
+
Select: AddFilterSelect,
|
|
297
|
+
Input: AddFilterInput,
|
|
298
|
+
Dropdown: AddFilterDropdown
|
|
251
299
|
});
|
|
252
300
|
export {
|
|
253
|
-
|
|
301
|
+
AddFilter as default
|
|
254
302
|
};
|
|
@@ -1,74 +1,79 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { FilterTrigger
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
|
+
import createComponent, { assignProps, Component } from "@semcore/core";
|
|
7
|
+
import React from "react";
|
|
8
|
+
import Dropdown from "@semcore/dropdown";
|
|
9
|
+
import { FilterTrigger } from "@semcore/base-trigger";
|
|
10
|
+
var AddFilterDropdownRoot = /* @__PURE__ */ function(_Component) {
|
|
11
|
+
_inherits(AddFilterDropdownRoot2, _Component);
|
|
12
|
+
var _super = _createSuper(AddFilterDropdownRoot2);
|
|
13
|
+
function AddFilterDropdownRoot2() {
|
|
14
|
+
_classCallCheck(this, AddFilterDropdownRoot2);
|
|
15
|
+
return _super.apply(this, arguments);
|
|
15
16
|
}
|
|
16
|
-
|
|
17
|
+
_createClass(AddFilterDropdownRoot2, [{
|
|
17
18
|
key: "uncontrolledProps",
|
|
18
|
-
value: function() {
|
|
19
|
+
value: function uncontrolledProps() {
|
|
19
20
|
return {
|
|
20
21
|
visible: [null]
|
|
21
22
|
};
|
|
22
23
|
}
|
|
23
24
|
}, {
|
|
24
25
|
key: "componentWillUnmount",
|
|
25
|
-
value: function() {
|
|
26
|
-
var
|
|
27
|
-
(
|
|
26
|
+
value: function componentWillUnmount() {
|
|
27
|
+
var _this$asProps$onUnmou, _this$asProps;
|
|
28
|
+
(_this$asProps$onUnmou = (_this$asProps = this.asProps).onUnmount) === null || _this$asProps$onUnmou === void 0 ? void 0 : _this$asProps$onUnmou.call(_this$asProps);
|
|
28
29
|
}
|
|
29
30
|
}, {
|
|
30
31
|
key: "getTriggerProps",
|
|
31
|
-
value: function() {
|
|
32
|
-
var
|
|
32
|
+
value: function getTriggerProps() {
|
|
33
|
+
var _ref2 = this.asProps, value = _ref2.value, onClear = _ref2.onClear, setFocusRef = _ref2.setFocusRef;
|
|
33
34
|
return {
|
|
34
|
-
tag:
|
|
35
|
-
triggerRef:
|
|
36
|
-
empty:
|
|
37
|
-
onClear
|
|
38
|
-
autoFocus:
|
|
35
|
+
tag: FilterTrigger,
|
|
36
|
+
triggerRef: setFocusRef,
|
|
37
|
+
empty: value == null,
|
|
38
|
+
onClear,
|
|
39
|
+
autoFocus: true
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
42
|
}, {
|
|
42
43
|
key: "getPopperProps",
|
|
43
|
-
value: function() {
|
|
44
|
-
var
|
|
44
|
+
value: function getPopperProps() {
|
|
45
|
+
var _this = this;
|
|
46
|
+
var _ref3 = this.asProps, value = _ref3.value, onClear = _ref3.onClear;
|
|
45
47
|
return {
|
|
46
|
-
onKeyDown: function(
|
|
47
|
-
!
|
|
48
|
+
onKeyDown: function onKeyDown(e) {
|
|
49
|
+
if (!value && e.key === "Escape") {
|
|
50
|
+
onClear();
|
|
51
|
+
}
|
|
48
52
|
},
|
|
49
|
-
onApply: function() {
|
|
50
|
-
|
|
53
|
+
onApply: function onApply() {
|
|
54
|
+
_this.handlers.visible(false);
|
|
51
55
|
}
|
|
52
56
|
};
|
|
53
57
|
}
|
|
54
58
|
}, {
|
|
55
59
|
key: "render",
|
|
56
|
-
value: function() {
|
|
57
|
-
var
|
|
58
|
-
return /* @__PURE__ */
|
|
60
|
+
value: function render() {
|
|
61
|
+
var _ref = this.asProps;
|
|
62
|
+
return /* @__PURE__ */ React.createElement(Dropdown, assignProps({}, _ref));
|
|
59
63
|
}
|
|
60
|
-
}])
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
+
}]);
|
|
65
|
+
return AddFilterDropdownRoot2;
|
|
66
|
+
}(Component);
|
|
67
|
+
_defineProperty(AddFilterDropdownRoot, "displayName", "AddFilterDropdown");
|
|
68
|
+
_defineProperty(AddFilterDropdownRoot, "defaultProps", function() {
|
|
64
69
|
return {
|
|
65
|
-
defaultVisible:
|
|
70
|
+
defaultVisible: true
|
|
66
71
|
};
|
|
67
72
|
});
|
|
68
|
-
var
|
|
69
|
-
Trigger:
|
|
70
|
-
Popper:
|
|
73
|
+
var AddFilterDropdown = createComponent(AddFilterDropdownRoot, {
|
|
74
|
+
Trigger: Dropdown.Trigger,
|
|
75
|
+
Popper: Dropdown.Popper
|
|
71
76
|
});
|
|
72
77
|
export {
|
|
73
|
-
|
|
78
|
+
AddFilterDropdown as default
|
|
74
79
|
};
|
|
@@ -1,68 +1,75 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { ButtonLink
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
+
import createComponent, { assignProps, Component } from "@semcore/core";
|
|
8
|
+
import React from "react";
|
|
9
|
+
import Input from "@semcore/input";
|
|
10
|
+
import { ButtonLink } from "@semcore/button";
|
|
11
|
+
var AddFilterInputRoot = /* @__PURE__ */ function(_Component) {
|
|
12
|
+
_inherits(AddFilterInputRoot2, _Component);
|
|
13
|
+
var _super = _createSuper(AddFilterInputRoot2);
|
|
14
|
+
function AddFilterInputRoot2() {
|
|
15
|
+
_classCallCheck(this, AddFilterInputRoot2);
|
|
16
|
+
return _super.apply(this, arguments);
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
+
_createClass(AddFilterInputRoot2, [{
|
|
18
19
|
key: "componentWillUnmount",
|
|
19
|
-
value: function() {
|
|
20
|
-
var
|
|
21
|
-
(
|
|
20
|
+
value: function componentWillUnmount() {
|
|
21
|
+
var _this$asProps$onUnmou, _this$asProps;
|
|
22
|
+
(_this$asProps$onUnmou = (_this$asProps = this.asProps).onUnmount) === null || _this$asProps$onUnmou === void 0 ? void 0 : _this$asProps$onUnmou.call(_this$asProps);
|
|
22
23
|
}
|
|
23
24
|
}, {
|
|
24
25
|
key: "getValueProps",
|
|
25
|
-
value: function(
|
|
26
|
-
var
|
|
27
|
-
return
|
|
28
|
-
ref:
|
|
29
|
-
onBlur: function() {
|
|
30
|
-
|
|
26
|
+
value: function getValueProps(props) {
|
|
27
|
+
var _ref3 = this.asProps, value = _ref3.value, onClear = _ref3.onClear, setFocusRef = _ref3.setFocusRef;
|
|
28
|
+
return _objectSpread(_objectSpread({}, props), {}, {
|
|
29
|
+
ref: setFocusRef,
|
|
30
|
+
onBlur: function onBlur() {
|
|
31
|
+
if (!value) {
|
|
32
|
+
setTimeout(onClear, 200);
|
|
33
|
+
}
|
|
31
34
|
},
|
|
32
|
-
onKeyDown: function(
|
|
33
|
-
!
|
|
35
|
+
onKeyDown: function onKeyDown(e) {
|
|
36
|
+
if (!value && e.key === "Escape") {
|
|
37
|
+
onClear();
|
|
38
|
+
}
|
|
34
39
|
},
|
|
35
|
-
autoFocus:
|
|
40
|
+
autoFocus: true
|
|
36
41
|
});
|
|
37
42
|
}
|
|
38
43
|
}, {
|
|
39
44
|
key: "getClearProps",
|
|
40
|
-
value: function() {
|
|
41
|
-
var
|
|
45
|
+
value: function getClearProps() {
|
|
46
|
+
var _ref4 = this.asProps, onClear = _ref4.onClear;
|
|
42
47
|
return {
|
|
43
|
-
onClick:
|
|
48
|
+
onClick: onClear
|
|
44
49
|
};
|
|
45
50
|
}
|
|
46
51
|
}, {
|
|
47
52
|
key: "render",
|
|
48
|
-
value: function() {
|
|
49
|
-
var
|
|
50
|
-
return /* @__PURE__ */
|
|
51
|
-
w: "auto",
|
|
52
|
-
inline:
|
|
53
|
-
},
|
|
53
|
+
value: function render() {
|
|
54
|
+
var _ref = this.asProps;
|
|
55
|
+
return /* @__PURE__ */ React.createElement(Input, assignProps({
|
|
56
|
+
"w": "auto",
|
|
57
|
+
"inline": false
|
|
58
|
+
}, _ref));
|
|
54
59
|
}
|
|
55
|
-
}])
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
}]);
|
|
61
|
+
return AddFilterInputRoot2;
|
|
62
|
+
}(Component);
|
|
63
|
+
_defineProperty(AddFilterInputRoot, "displayName", "AddFilterInput");
|
|
64
|
+
var Clear = function Clear2() {
|
|
65
|
+
var _ref2 = arguments[0];
|
|
66
|
+
return /* @__PURE__ */ React.createElement(ButtonLink, assignProps({}, _ref2));
|
|
67
|
+
};
|
|
68
|
+
var AddFilterInput = createComponent(AddFilterInputRoot, {
|
|
69
|
+
Value: Input.Value,
|
|
70
|
+
Addon: Input.Addon,
|
|
71
|
+
Clear
|
|
65
72
|
});
|
|
66
73
|
export {
|
|
67
|
-
|
|
74
|
+
AddFilterInput as default
|
|
68
75
|
};
|
|
@@ -1,86 +1,91 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { FilterTrigger
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
|
+
import createComponent, { assignProps, Component } from "@semcore/core";
|
|
7
|
+
import React from "react";
|
|
8
|
+
import Select from "@semcore/select";
|
|
9
|
+
import { FilterTrigger } from "@semcore/base-trigger";
|
|
10
|
+
var AddFilterSelectRoot = /* @__PURE__ */ function(_Component) {
|
|
11
|
+
_inherits(AddFilterSelectRoot2, _Component);
|
|
12
|
+
var _super = _createSuper(AddFilterSelectRoot2);
|
|
13
|
+
function AddFilterSelectRoot2() {
|
|
14
|
+
_classCallCheck(this, AddFilterSelectRoot2);
|
|
15
|
+
return _super.apply(this, arguments);
|
|
15
16
|
}
|
|
16
|
-
|
|
17
|
+
_createClass(AddFilterSelectRoot2, [{
|
|
17
18
|
key: "componentWillUnmount",
|
|
18
|
-
value: function() {
|
|
19
|
-
var
|
|
20
|
-
(
|
|
19
|
+
value: function componentWillUnmount() {
|
|
20
|
+
var _this$asProps$onUnmou, _this$asProps;
|
|
21
|
+
(_this$asProps$onUnmou = (_this$asProps = this.asProps).onUnmount) === null || _this$asProps$onUnmou === void 0 ? void 0 : _this$asProps$onUnmou.call(_this$asProps);
|
|
21
22
|
}
|
|
22
23
|
}, {
|
|
23
24
|
key: "uncontrolledProps",
|
|
24
|
-
value: function() {
|
|
25
|
+
value: function uncontrolledProps() {
|
|
25
26
|
return {
|
|
26
27
|
visible: [null]
|
|
27
28
|
};
|
|
28
29
|
}
|
|
29
30
|
}, {
|
|
30
31
|
key: "isValueEmpty",
|
|
31
|
-
value: function() {
|
|
32
|
-
var
|
|
33
|
-
return
|
|
32
|
+
value: function isValueEmpty() {
|
|
33
|
+
var _ref2 = this.asProps, value = _ref2.value, multiselect = _ref2.multiselect;
|
|
34
|
+
return multiselect && Array.isArray(value) ? !(value !== null && value !== void 0 && value.length) : !value;
|
|
34
35
|
}
|
|
35
36
|
}, {
|
|
36
37
|
key: "getTriggerProps",
|
|
37
|
-
value: function() {
|
|
38
|
-
var
|
|
38
|
+
value: function getTriggerProps() {
|
|
39
|
+
var _this = this;
|
|
40
|
+
var _ref3 = this.asProps, onClear = _ref3.onClear, setFocusRef = _ref3.setFocusRef;
|
|
39
41
|
return {
|
|
40
|
-
tag:
|
|
41
|
-
triggerRef:
|
|
42
|
-
onKeyDown: function(
|
|
43
|
-
|
|
42
|
+
tag: FilterTrigger,
|
|
43
|
+
triggerRef: setFocusRef,
|
|
44
|
+
onKeyDown: function onKeyDown(e) {
|
|
45
|
+
if (_this.isValueEmpty() && e.key === "Escape") {
|
|
46
|
+
onClear();
|
|
47
|
+
}
|
|
44
48
|
},
|
|
45
49
|
empty: this.isValueEmpty(),
|
|
46
|
-
onClear
|
|
47
|
-
autoFocus:
|
|
50
|
+
onClear,
|
|
51
|
+
autoFocus: true
|
|
48
52
|
};
|
|
49
53
|
}
|
|
50
54
|
}, {
|
|
51
55
|
key: "getPopperProps",
|
|
52
|
-
value: function() {
|
|
53
|
-
var
|
|
56
|
+
value: function getPopperProps() {
|
|
57
|
+
var _this2 = this;
|
|
54
58
|
return {
|
|
55
|
-
onApply: function() {
|
|
56
|
-
|
|
59
|
+
onApply: function onApply() {
|
|
60
|
+
_this2.handlers.visible(false);
|
|
57
61
|
}
|
|
58
62
|
};
|
|
59
63
|
}
|
|
60
64
|
}, {
|
|
61
65
|
key: "render",
|
|
62
|
-
value: function() {
|
|
63
|
-
var
|
|
64
|
-
return /* @__PURE__ */
|
|
66
|
+
value: function render() {
|
|
67
|
+
var _ref = this.asProps;
|
|
68
|
+
return /* @__PURE__ */ React.createElement(Select, assignProps({}, _ref));
|
|
65
69
|
}
|
|
66
|
-
}])
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
}]);
|
|
71
|
+
return AddFilterSelectRoot2;
|
|
72
|
+
}(Component);
|
|
73
|
+
_defineProperty(AddFilterSelectRoot, "displayName", "AddFilterSelect");
|
|
74
|
+
_defineProperty(AddFilterSelectRoot, "defaultProps", function() {
|
|
70
75
|
return {
|
|
71
|
-
defaultVisible:
|
|
76
|
+
defaultVisible: true
|
|
72
77
|
};
|
|
73
78
|
});
|
|
74
|
-
var
|
|
75
|
-
Trigger:
|
|
76
|
-
Menu:
|
|
77
|
-
Option: [
|
|
78
|
-
Checkbox:
|
|
79
|
+
var AddFilterSelect = createComponent(AddFilterSelectRoot, {
|
|
80
|
+
Trigger: Select.Trigger,
|
|
81
|
+
Menu: Select.Menu,
|
|
82
|
+
Option: [Select.Option, {
|
|
83
|
+
Checkbox: Select.Option.Checkbox
|
|
79
84
|
}],
|
|
80
|
-
List:
|
|
81
|
-
Popper:
|
|
82
|
-
InputSearch:
|
|
85
|
+
List: Select.List,
|
|
86
|
+
Popper: Select.Popper,
|
|
87
|
+
InputSearch: Select.InputSearch
|
|
83
88
|
});
|
|
84
89
|
export {
|
|
85
|
-
|
|
90
|
+
AddFilterSelect as default
|
|
86
91
|
};
|
package/lib/esm/index.mjs
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
var
|
|
16
|
-
de
|
|
17
|
-
en
|
|
18
|
-
es
|
|
19
|
-
fr
|
|
20
|
-
it
|
|
21
|
-
ja
|
|
22
|
-
ko
|
|
23
|
-
nl
|
|
24
|
-
pt
|
|
25
|
-
tr
|
|
26
|
-
vi
|
|
27
|
-
zh
|
|
28
|
-
pl
|
|
29
|
-
sv
|
|
1
|
+
import de from "./de.json.mjs";
|
|
2
|
+
import en from "./en.json.mjs";
|
|
3
|
+
import es from "./es.json.mjs";
|
|
4
|
+
import fr from "./fr.json.mjs";
|
|
5
|
+
import it from "./it.json.mjs";
|
|
6
|
+
import ja from "./ja.json.mjs";
|
|
7
|
+
import ko from "./ko.json.mjs";
|
|
8
|
+
import nl from "./nl.json.mjs";
|
|
9
|
+
import pt from "./pt.json.mjs";
|
|
10
|
+
import tr from "./tr.json.mjs";
|
|
11
|
+
import vi from "./vi.json.mjs";
|
|
12
|
+
import zh from "./zh.json.mjs";
|
|
13
|
+
import pl from "./pl.json.mjs";
|
|
14
|
+
import sv from "./sv.json.mjs";
|
|
15
|
+
var localizedMessages = {
|
|
16
|
+
de,
|
|
17
|
+
en,
|
|
18
|
+
es,
|
|
19
|
+
fr,
|
|
20
|
+
it,
|
|
21
|
+
ja,
|
|
22
|
+
ko,
|
|
23
|
+
nl,
|
|
24
|
+
pt,
|
|
25
|
+
tr,
|
|
26
|
+
vi,
|
|
27
|
+
zh,
|
|
28
|
+
pl,
|
|
29
|
+
sv
|
|
30
30
|
};
|
|
31
31
|
export {
|
|
32
|
-
|
|
32
|
+
localizedMessages
|
|
33
33
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/add-filter",
|
|
3
3
|
"description": "Semrush Add Filter component",
|
|
4
|
-
"version": "1.4.0",
|
|
4
|
+
"version": "1.4.1-prerelease.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/select": "4.52.0",
|
|
18
|
-
"@semcore/icon": "4.
|
|
19
|
-
"@semcore/button": "5.43.
|
|
20
|
-
"@semcore/flex-box": "5.41.
|
|
21
|
-
"@semcore/utils": "4.48.
|
|
22
|
-
"@semcore/dropdown-menu": "4.48.0",
|
|
23
|
-
"@semcore/dropdown": "4.43.
|
|
24
|
-
"@semcore/input": "4.42.
|
|
25
|
-
"@semcore/base-trigger": "4.53.0"
|
|
17
|
+
"@semcore/select": "4.52.1-prerelease.0",
|
|
18
|
+
"@semcore/icon": "4.62.0-prerelease.0",
|
|
19
|
+
"@semcore/button": "5.43.2-prerelease.0",
|
|
20
|
+
"@semcore/flex-box": "5.41.3-prerelease.0",
|
|
21
|
+
"@semcore/utils": "4.48.4-prerelease.0",
|
|
22
|
+
"@semcore/dropdown-menu": "4.48.1-prerelease.0",
|
|
23
|
+
"@semcore/dropdown": "4.43.3-prerelease.0",
|
|
24
|
+
"@semcore/input": "4.42.3-prerelease.0",
|
|
25
|
+
"@semcore/base-trigger": "4.53.1-prerelease.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@semcore/core": "^2.
|
|
28
|
+
"@semcore/core": "^2.39.3-prerelease.0",
|
|
29
29
|
"react": "16.8 - 18",
|
|
30
30
|
"react-dom": "16.8 - 18"
|
|
31
31
|
},
|