@semcore/add-filter 16.0.0-prerelease.4 → 16.0.0-prerelease.7
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/lib/esm/AddFilter.mjs +199 -152
- 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/lib/types/components/AddFilterDropdown.d.ts +1 -1
- package/lib/types/components/AddFilterInput.d.ts +1 -1
- package/package.json +10 -10
package/lib/esm/AddFilter.mjs
CHANGED
|
@@ -1,253 +1,300 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { createComponent
|
|
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
|
-
var
|
|
22
|
-
|
|
23
|
-
var
|
|
24
|
-
function
|
|
25
|
-
var
|
|
26
|
-
|
|
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, lastInteraction, 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/core/lib/utils/findComponent";
|
|
19
|
+
import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
20
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
21
|
+
var RootAddFilter = /* @__PURE__ */ function(_Component) {
|
|
22
|
+
_inherits(RootAddFilter2, _Component);
|
|
23
|
+
var _super = _createSuper(RootAddFilter2);
|
|
24
|
+
function RootAddFilter2(props) {
|
|
25
|
+
var _this;
|
|
26
|
+
_classCallCheck(this, RootAddFilter2);
|
|
27
|
+
_this = _super.call(this, props);
|
|
28
|
+
_defineProperty(_assertThisInitialized(_this), "addFilterTrigger", /* @__PURE__ */ React.createRef());
|
|
29
|
+
_defineProperty(_assertThisInitialized(_this), "filtersFocusMap", /* @__PURE__ */ new Map());
|
|
30
|
+
_defineProperty(_assertThisInitialized(_this), "clearMessageTimer", void 0);
|
|
31
|
+
_defineProperty(_assertThisInitialized(_this), "addDropdownItems", void 0);
|
|
32
|
+
_this.state = {
|
|
27
33
|
visibleFilters: /* @__PURE__ */ new Set(),
|
|
28
34
|
clearFiltersMessage: ""
|
|
29
|
-
}
|
|
35
|
+
};
|
|
36
|
+
_this.addDropdownItems = RootAddFilter2.getDefaultAddDropdownOptions(props.children);
|
|
37
|
+
return _this;
|
|
30
38
|
}
|
|
31
|
-
|
|
39
|
+
_createClass(RootAddFilter2, [{
|
|
32
40
|
key: "componentWillUnmount",
|
|
33
|
-
value: function() {
|
|
41
|
+
value: function componentWillUnmount() {
|
|
34
42
|
clearTimeout(this.clearMessageTimer);
|
|
35
43
|
}
|
|
36
44
|
}, {
|
|
37
45
|
key: "focusFilterAfterItemCleared",
|
|
38
|
-
value: function(
|
|
39
|
-
var
|
|
40
|
-
if (
|
|
41
|
-
|
|
42
|
-
return i === e;
|
|
43
|
-
});
|
|
44
|
-
setTimeout(function() {
|
|
45
|
-
var i, o = Array.from(t.state.visibleFilters), u = o.at(r), n = (i = t.filtersFocusMap.get(u)) !== null && i !== void 0 ? i : t.addFilterTrigger.current;
|
|
46
|
-
n == null || n.focus();
|
|
47
|
-
}, 20);
|
|
46
|
+
value: function focusFilterAfterItemCleared(name) {
|
|
47
|
+
var _this2 = this;
|
|
48
|
+
if (!lastInteraction.isKeyboard()) {
|
|
49
|
+
return;
|
|
48
50
|
}
|
|
51
|
+
var deletedIndex = Array.from(this.state.visibleFilters).findIndex(function(n) {
|
|
52
|
+
return n === name;
|
|
53
|
+
});
|
|
54
|
+
setTimeout(function() {
|
|
55
|
+
var _this2$filtersFocusMa;
|
|
56
|
+
var currentVisibleFiltersList = Array.from(_this2.state.visibleFilters);
|
|
57
|
+
var focusFilterName = currentVisibleFiltersList.at(deletedIndex);
|
|
58
|
+
var itemToFocus = (_this2$filtersFocusMa = _this2.filtersFocusMap.get(focusFilterName)) !== null && _this2$filtersFocusMa !== void 0 ? _this2$filtersFocusMa : _this2.addFilterTrigger.current;
|
|
59
|
+
itemToFocus === null || itemToFocus === void 0 ? void 0 : itemToFocus.focus();
|
|
60
|
+
}, 20);
|
|
49
61
|
}
|
|
50
62
|
}, {
|
|
51
63
|
key: "getVisibleFilters",
|
|
52
|
-
value: function(
|
|
53
|
-
return Array.from(this.state.visibleFilters).map(function(
|
|
54
|
-
return
|
|
55
|
-
var
|
|
56
|
-
return
|
|
64
|
+
value: function getVisibleFilters(allFilters) {
|
|
65
|
+
return Array.from(this.state.visibleFilters).map(function(name) {
|
|
66
|
+
return allFilters.find(function(_ref2) {
|
|
67
|
+
var props = _ref2.props;
|
|
68
|
+
return props.name === name;
|
|
57
69
|
});
|
|
58
70
|
});
|
|
59
71
|
}
|
|
60
72
|
}, {
|
|
61
73
|
key: "getItemCommonProps",
|
|
62
|
-
value: function(
|
|
63
|
-
var
|
|
74
|
+
value: function getItemCommonProps(props) {
|
|
75
|
+
var _this3 = this;
|
|
76
|
+
var name = props.name;
|
|
77
|
+
var filterData = this.asProps.filterData;
|
|
64
78
|
return {
|
|
65
|
-
name
|
|
66
|
-
value:
|
|
67
|
-
setFocusRef: function(
|
|
68
|
-
|
|
79
|
+
name,
|
|
80
|
+
value: filterData[name],
|
|
81
|
+
setFocusRef: function setFocusRef(ref) {
|
|
82
|
+
_this3.filtersFocusMap.set(name, ref);
|
|
69
83
|
},
|
|
70
|
-
onClear: function() {
|
|
71
|
-
|
|
84
|
+
onClear: function onClear() {
|
|
85
|
+
_this3.hideFilter(name);
|
|
86
|
+
_this3.focusFilterAfterItemCleared(name);
|
|
72
87
|
}
|
|
73
88
|
};
|
|
74
89
|
}
|
|
75
90
|
}, {
|
|
76
91
|
key: "getInputProps",
|
|
77
|
-
value: function(
|
|
78
|
-
return this.getItemCommonProps(
|
|
92
|
+
value: function getInputProps(props) {
|
|
93
|
+
return this.getItemCommonProps(props);
|
|
79
94
|
}
|
|
80
95
|
}, {
|
|
81
96
|
key: "getDropdownAndSelectProps",
|
|
82
|
-
value: function(
|
|
83
|
-
var
|
|
97
|
+
value: function getDropdownAndSelectProps(props, isEmpty) {
|
|
98
|
+
var _this4 = this;
|
|
99
|
+
var _this$getItemCommonPr = this.getItemCommonProps(props), setFocusRef = _this$getItemCommonPr.setFocusRef, value = _this$getItemCommonPr.value, onClear = _this$getItemCommonPr.onClear;
|
|
84
100
|
return {
|
|
85
|
-
value
|
|
86
|
-
onClear
|
|
87
|
-
setFocusRef
|
|
88
|
-
onVisibleChange: function(
|
|
101
|
+
value,
|
|
102
|
+
onClear,
|
|
103
|
+
setFocusRef,
|
|
104
|
+
onVisibleChange: function onVisibleChange(visible) {
|
|
89
105
|
setTimeout(function() {
|
|
90
|
-
var
|
|
91
|
-
!
|
|
106
|
+
var _this4$getItemCommonP = _this4.getItemCommonProps(props), onClear2 = _this4$getItemCommonP.onClear;
|
|
107
|
+
if (!visible && isEmpty()) {
|
|
108
|
+
onClear2();
|
|
109
|
+
}
|
|
92
110
|
}, 0);
|
|
93
111
|
}
|
|
94
112
|
};
|
|
95
113
|
}
|
|
96
114
|
}, {
|
|
97
115
|
key: "getSelectProps",
|
|
98
|
-
value: function(
|
|
99
|
-
var
|
|
100
|
-
|
|
101
|
-
|
|
116
|
+
value: function getSelectProps(props) {
|
|
117
|
+
var _this5 = this;
|
|
118
|
+
var isEmpty = function isEmpty2() {
|
|
119
|
+
var multiselect = props.multiselect;
|
|
120
|
+
var _this5$getItemCommonP = _this5.getItemCommonProps(props), value = _this5$getItemCommonP.value;
|
|
121
|
+
return multiselect && Array.isArray(value) ? !(value !== null && value !== void 0 && value.length) : !value;
|
|
102
122
|
};
|
|
103
|
-
return this.getDropdownAndSelectProps(
|
|
123
|
+
return this.getDropdownAndSelectProps(props, isEmpty);
|
|
104
124
|
}
|
|
105
125
|
}, {
|
|
106
126
|
key: "getDropdownProps",
|
|
107
|
-
value: function(
|
|
108
|
-
var
|
|
109
|
-
|
|
110
|
-
|
|
127
|
+
value: function getDropdownProps(props) {
|
|
128
|
+
var _this6 = this;
|
|
129
|
+
var isEmpty = function isEmpty2() {
|
|
130
|
+
var _this6$getItemCommonP = _this6.getItemCommonProps(props), value = _this6$getItemCommonP.value;
|
|
131
|
+
return value == null;
|
|
111
132
|
};
|
|
112
|
-
return this.getDropdownAndSelectProps(
|
|
133
|
+
return this.getDropdownAndSelectProps(props, isEmpty);
|
|
113
134
|
}
|
|
114
135
|
}, {
|
|
115
136
|
key: "clearAll",
|
|
116
|
-
value: function() {
|
|
117
|
-
var
|
|
137
|
+
value: function clearAll() {
|
|
138
|
+
var _this7 = this;
|
|
118
139
|
this.setState({
|
|
119
140
|
visibleFilters: /* @__PURE__ */ new Set()
|
|
120
|
-
})
|
|
121
|
-
|
|
122
|
-
|
|
141
|
+
});
|
|
142
|
+
this.props.onClearAll();
|
|
143
|
+
this.announceClearMessageToSR();
|
|
144
|
+
setTimeout(function() {
|
|
145
|
+
var _this7$addFilterTrigg;
|
|
146
|
+
(_this7$addFilterTrigg = _this7.addFilterTrigger.current) === null || _this7$addFilterTrigg === void 0 ? void 0 : _this7$addFilterTrigg.focus();
|
|
123
147
|
}, 20);
|
|
124
148
|
}
|
|
125
149
|
}, {
|
|
126
150
|
key: "announceClearMessageToSR",
|
|
127
|
-
value: function() {
|
|
128
|
-
var
|
|
151
|
+
value: function announceClearMessageToSR() {
|
|
152
|
+
var _this8 = this;
|
|
153
|
+
var getI18nText = this.asProps.getI18nText;
|
|
154
|
+
var clearFiltersMessage = getI18nText("AddFilter.ScreenReaderMessage.FiltersCleared");
|
|
129
155
|
this.setState({
|
|
130
|
-
clearFiltersMessage
|
|
131
|
-
})
|
|
132
|
-
|
|
156
|
+
clearFiltersMessage
|
|
157
|
+
});
|
|
158
|
+
this.clearMessageTimer = setTimeout(function() {
|
|
159
|
+
_this8.setState({
|
|
133
160
|
clearFiltersMessage: ""
|
|
134
161
|
});
|
|
135
162
|
}, 300);
|
|
136
163
|
}
|
|
137
164
|
}, {
|
|
138
165
|
key: "toggleFieldVisibility",
|
|
139
|
-
value: function(
|
|
140
|
-
var
|
|
141
|
-
|
|
142
|
-
visibleFilters
|
|
166
|
+
value: function toggleFieldVisibility(name, status) {
|
|
167
|
+
var visibleFilters = new Set(Array.from(this.state.visibleFilters));
|
|
168
|
+
if (status) {
|
|
169
|
+
visibleFilters.add(name);
|
|
170
|
+
} else {
|
|
171
|
+
visibleFilters["delete"](name);
|
|
172
|
+
}
|
|
173
|
+
this.setState({
|
|
174
|
+
visibleFilters
|
|
143
175
|
});
|
|
144
176
|
}
|
|
145
177
|
}, {
|
|
146
178
|
key: "hideFilter",
|
|
147
|
-
value: function(
|
|
148
|
-
this.toggleFieldVisibility(
|
|
179
|
+
value: function hideFilter(name) {
|
|
180
|
+
this.toggleFieldVisibility(name, false);
|
|
149
181
|
}
|
|
150
182
|
}, {
|
|
151
183
|
key: "getFilterSelectionMenuProps",
|
|
152
|
-
value: function() {
|
|
153
|
-
var
|
|
184
|
+
value: function getFilterSelectionMenuProps() {
|
|
185
|
+
var _this9 = this;
|
|
186
|
+
var getI18nText = this.asProps.getI18nText;
|
|
154
187
|
return {
|
|
155
188
|
ref: this.addFilterTrigger,
|
|
156
189
|
options: this.addDropdownItems,
|
|
157
|
-
toggleFieldVisibility: function(
|
|
158
|
-
return
|
|
190
|
+
toggleFieldVisibility: function toggleFieldVisibility(name, status) {
|
|
191
|
+
return _this9.toggleFieldVisibility(name, status);
|
|
159
192
|
},
|
|
160
193
|
visibleFilters: this.state.visibleFilters,
|
|
161
|
-
getI18nText
|
|
194
|
+
getI18nText
|
|
162
195
|
};
|
|
163
196
|
}
|
|
164
197
|
}, {
|
|
165
198
|
key: "getClearAllFiltersProps",
|
|
166
|
-
value: function() {
|
|
167
|
-
var
|
|
199
|
+
value: function getClearAllFiltersProps() {
|
|
200
|
+
var _this10 = this;
|
|
201
|
+
var _this$asProps = this.asProps, getI18nText = _this$asProps.getI18nText, filterData = _this$asProps.filterData;
|
|
168
202
|
return {
|
|
169
|
-
hasFilterData: Object.values(
|
|
170
|
-
return Array.isArray(
|
|
203
|
+
hasFilterData: Object.values(filterData).filter(function(value) {
|
|
204
|
+
return Array.isArray(value) ? value === null || value === void 0 ? void 0 : value.length : value;
|
|
171
205
|
}).length > 0,
|
|
172
|
-
clearAll: function() {
|
|
173
|
-
|
|
206
|
+
clearAll: function clearAll() {
|
|
207
|
+
_this10.clearAll();
|
|
174
208
|
},
|
|
175
|
-
getI18nText
|
|
209
|
+
getI18nText
|
|
176
210
|
};
|
|
177
211
|
}
|
|
178
212
|
}, {
|
|
179
213
|
key: "render",
|
|
180
|
-
value: function() {
|
|
181
|
-
var
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
214
|
+
value: function render() {
|
|
215
|
+
var _ref = this.asProps;
|
|
216
|
+
var Children = this.asProps.Children;
|
|
217
|
+
var _RootAddFilter$getFil = RootAddFilter2.getFilterPatternItems(Children), _RootAddFilter$getFil2 = _slicedToArray(_RootAddFilter$getFil, 2), filters = _RootAddFilter$getFil2[0], persistentFilters = _RootAddFilter$getFil2[1];
|
|
218
|
+
var VisibleFilteredChildren = this.getVisibleFilters(filters);
|
|
219
|
+
var filtersSelectionDropdown = this.getFilterSelectionMenuProps();
|
|
220
|
+
var clearAllFiltersProps = this.getClearAllFiltersProps();
|
|
221
|
+
return /* @__PURE__ */ React.createElement(Flex, assignProps({
|
|
222
|
+
"gap": 2,
|
|
223
|
+
"flexWrap": true
|
|
224
|
+
}, _ref), persistentFilters, VisibleFilteredChildren, /* @__PURE__ */ React.createElement(AddFilterDropdownMenu, filtersSelectionDropdown), /* @__PURE__ */ React.createElement(ClearAllFilters, clearAllFiltersProps), /* @__PURE__ */ React.createElement(ScreenReaderOnly, {
|
|
186
225
|
"aria-live": "polite",
|
|
187
226
|
role: "status"
|
|
188
227
|
}, this.state.clearFiltersMessage));
|
|
189
228
|
}
|
|
190
|
-
}])
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
229
|
+
}]);
|
|
230
|
+
return RootAddFilter2;
|
|
231
|
+
}(Component);
|
|
232
|
+
_defineProperty(RootAddFilter, "displayName", "AddFilter");
|
|
233
|
+
_defineProperty(RootAddFilter, "enhance", [i18nEnhance(localizedMessages)]);
|
|
234
|
+
_defineProperty(RootAddFilter, "defaultProps", {
|
|
235
|
+
i18n: localizedMessages,
|
|
196
236
|
locale: "en"
|
|
197
237
|
});
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
return
|
|
238
|
+
_defineProperty(RootAddFilter, "componentsNames", ["AddFilter.Input", "AddFilter.Select", "AddFilter.Dropdown"]);
|
|
239
|
+
_defineProperty(RootAddFilter, "getFilterPatternItems", function(children) {
|
|
240
|
+
return extractFrom(children, RootAddFilter.componentsNames);
|
|
201
241
|
});
|
|
202
|
-
|
|
203
|
-
var
|
|
204
|
-
return
|
|
205
|
-
var
|
|
242
|
+
_defineProperty(RootAddFilter, "getDefaultAddDropdownOptions", function(children) {
|
|
243
|
+
var _RootAddFilter$getFil3 = RootAddFilter.getFilterPatternItems(children), _RootAddFilter$getFil4 = _slicedToArray(_RootAddFilter$getFil3, 1), filters = _RootAddFilter$getFil4[0];
|
|
244
|
+
return filters.map(function(_ref5) {
|
|
245
|
+
var props = _ref5.props;
|
|
246
|
+
var name = props.name, displayName = props.displayName;
|
|
206
247
|
return {
|
|
207
|
-
label:
|
|
208
|
-
value:
|
|
248
|
+
label: displayName !== null && displayName !== void 0 ? displayName : name,
|
|
249
|
+
value: name
|
|
209
250
|
};
|
|
210
251
|
});
|
|
211
252
|
});
|
|
212
|
-
var
|
|
213
|
-
var
|
|
214
|
-
|
|
215
|
-
|
|
253
|
+
var AddFilterDropdownMenu = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
254
|
+
var options = props.options, toggleFieldVisibility = props.toggleFieldVisibility, visibleFilters = props.visibleFilters, getI18nText = props.getI18nText;
|
|
255
|
+
var _React$useState = React.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), visible = _React$useState2[0], setVisible = _React$useState2[1];
|
|
256
|
+
var optionsWithoutVisible = React.useMemo(function() {
|
|
257
|
+
return options.filter(function(filter) {
|
|
258
|
+
return !Array.from(visibleFilters).includes(filter.value);
|
|
216
259
|
});
|
|
217
|
-
}, [
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
260
|
+
}, [options, visibleFilters]);
|
|
261
|
+
if (!optionsWithoutVisible.length) {
|
|
262
|
+
return null;
|
|
263
|
+
}
|
|
264
|
+
return /* @__PURE__ */ React.createElement(DropdownMenu, {
|
|
265
|
+
visible,
|
|
266
|
+
onVisibleChange: setVisible
|
|
267
|
+
}, /* @__PURE__ */ React.createElement(DropdownMenu.Trigger, {
|
|
268
|
+
ref,
|
|
269
|
+
tag: Button,
|
|
224
270
|
use: "tertiary",
|
|
225
|
-
addonLeft:
|
|
226
|
-
},
|
|
227
|
-
var
|
|
228
|
-
return /* @__PURE__ */
|
|
229
|
-
key:
|
|
230
|
-
onClick: function() {
|
|
231
|
-
|
|
271
|
+
addonLeft: MathPlusM
|
|
272
|
+
}, getI18nText("AddFilter.DropdownTrigger.Text")), /* @__PURE__ */ React.createElement(DropdownMenu.Menu, null, optionsWithoutVisible.map(function(_ref3) {
|
|
273
|
+
var label = _ref3.label, value = _ref3.value;
|
|
274
|
+
return /* @__PURE__ */ React.createElement(DropdownMenu.Item, {
|
|
275
|
+
key: value,
|
|
276
|
+
onClick: function onClick() {
|
|
277
|
+
toggleFieldVisibility(value, true);
|
|
278
|
+
setVisible(false);
|
|
232
279
|
}
|
|
233
|
-
},
|
|
234
|
-
})))
|
|
280
|
+
}, label);
|
|
281
|
+
})));
|
|
235
282
|
});
|
|
236
|
-
function
|
|
237
|
-
var
|
|
238
|
-
return
|
|
283
|
+
function ClearAllFilters(_ref4) {
|
|
284
|
+
var hasFilterData = _ref4.hasFilterData, clearAll = _ref4.clearAll, getI18nText = _ref4.getI18nText;
|
|
285
|
+
return hasFilterData ? /* @__PURE__ */ React.createElement(Button, {
|
|
239
286
|
use: "tertiary",
|
|
240
287
|
theme: "muted",
|
|
241
|
-
addonLeft:
|
|
288
|
+
addonLeft: CloseM,
|
|
242
289
|
ml: "auto",
|
|
243
|
-
onClick:
|
|
244
|
-
},
|
|
290
|
+
onClick: clearAll
|
|
291
|
+
}, getI18nText("AddFilter.Button.Text")) : null;
|
|
245
292
|
}
|
|
246
|
-
var
|
|
247
|
-
Select:
|
|
248
|
-
Input:
|
|
249
|
-
Dropdown:
|
|
293
|
+
var AddFilter = createComponent(RootAddFilter, {
|
|
294
|
+
Select: AddFilterSelect,
|
|
295
|
+
Input: AddFilterInput,
|
|
296
|
+
Dropdown: AddFilterDropdown
|
|
250
297
|
});
|
|
251
298
|
export {
|
|
252
|
-
|
|
299
|
+
AddFilter as default
|
|
253
300
|
};
|
|
@@ -1,74 +1,79 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { createComponent
|
|
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 { createComponent
|
|
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 { createComponent
|
|
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
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const AddFilterDropdown: import("@semcore/core/lib/
|
|
1
|
+
declare const AddFilterDropdown: import("@semcore/core/lib/coreFactory").ComponentType<unknown, {}, {}, {
|
|
2
2
|
[key: string]: (arg: unknown) => void;
|
|
3
3
|
}, null>;
|
|
4
4
|
export default AddFilterDropdown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const AddFilterInput: import("@semcore/core/lib/
|
|
1
|
+
declare const AddFilterInput: import("@semcore/core/lib/coreFactory").ComponentType<unknown, {}, {}, {
|
|
2
2
|
[key: string]: (arg: unknown) => void;
|
|
3
3
|
}, null>;
|
|
4
4
|
export default AddFilterInput;
|
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": "16.0.0-prerelease.
|
|
4
|
+
"version": "16.0.0-prerelease.7",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/select": "16.0.0-prerelease.
|
|
18
|
-
"@semcore/icon": "16.0.0-prerelease.
|
|
19
|
-
"@semcore/button": "16.0.0-prerelease.
|
|
20
|
-
"@semcore/flex-box": "16.0.0-prerelease.
|
|
21
|
-
"@semcore/dropdown-menu": "16.0.0-prerelease.
|
|
22
|
-
"@semcore/dropdown": "16.0.0-prerelease.
|
|
23
|
-
"@semcore/input": "16.0.0-prerelease.
|
|
24
|
-
"@semcore/base-trigger": "16.0.0-prerelease.
|
|
17
|
+
"@semcore/select": "16.0.0-prerelease.7",
|
|
18
|
+
"@semcore/icon": "16.0.0-prerelease.7",
|
|
19
|
+
"@semcore/button": "16.0.0-prerelease.7",
|
|
20
|
+
"@semcore/flex-box": "16.0.0-prerelease.7",
|
|
21
|
+
"@semcore/dropdown-menu": "16.0.0-prerelease.7",
|
|
22
|
+
"@semcore/dropdown": "16.0.0-prerelease.7",
|
|
23
|
+
"@semcore/input": "16.0.0-prerelease.7",
|
|
24
|
+
"@semcore/base-trigger": "16.0.0-prerelease.7"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@semcore/base-components": "^16.0.0-prerelease.
|
|
27
|
+
"@semcore/base-components": "^16.0.0-prerelease.7"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|