intelicoreact 1.4.73 → 1.4.74
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.
|
@@ -103,14 +103,24 @@ const TagList = _ref => {
|
|
|
103
103
|
};
|
|
104
104
|
|
|
105
105
|
const renderTags = () => {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
const tagsRenderOrder = renderOrder !== null && renderOrder !== void 0 ? renderOrder : tagList.map(_ref3 => {
|
|
107
|
+
let {
|
|
108
|
+
value,
|
|
109
|
+
id
|
|
110
|
+
} = _ref3;
|
|
111
|
+
return value !== null && value !== void 0 ? value : id;
|
|
112
|
+
});
|
|
113
|
+
return tagsRenderOrder.map((v, i) => {
|
|
110
114
|
var _item$id, _item$id2;
|
|
111
115
|
|
|
112
|
-
|
|
113
|
-
|
|
116
|
+
const item = tagList.find(_ref4 => {
|
|
117
|
+
let {
|
|
118
|
+
value,
|
|
119
|
+
id
|
|
120
|
+
} = _ref4;
|
|
121
|
+
return (value !== null && value !== void 0 ? value : id) === v;
|
|
122
|
+
});
|
|
123
|
+
if (!item) return null;
|
|
114
124
|
const isHidden = renderItemsCount !== -1 && staticTagsCount !== -1 ? i >= renderItemsCount : false;
|
|
115
125
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
116
126
|
className: "tag-list_wrapper_item ".concat(isHidden ? "tag-list_wrapper_item--hidden" : ""),
|