intelicoreact 1.4.49 → 1.4.50
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.
|
@@ -16,6 +16,7 @@ const FileLoaderLocal = _ref => {
|
|
|
16
16
|
let {
|
|
17
17
|
groupId,
|
|
18
18
|
id,
|
|
19
|
+
fieldKey,
|
|
19
20
|
label,
|
|
20
21
|
error,
|
|
21
22
|
isRequired,
|
|
@@ -93,9 +94,9 @@ const FileLoaderLocal = _ref => {
|
|
|
93
94
|
}, /*#__PURE__*/_react.default.createElement("input", (0, _extends2.default)({
|
|
94
95
|
onChange: handle.change,
|
|
95
96
|
className: "file-loader-local__file-input",
|
|
96
|
-
id: "file-input-".concat(id).concat(groupId ? "-".concat(groupId) : ""),
|
|
97
|
+
id: fieldKey || "file-input-".concat(id).concat(groupId ? "-".concat(groupId) : ""),
|
|
97
98
|
type: "file",
|
|
98
|
-
name:
|
|
99
|
+
name: fieldKey || id,
|
|
99
100
|
required: isRequired,
|
|
100
101
|
accept: accept
|
|
101
102
|
}, attributesOfNativeInput)), /*#__PURE__*/_react.default.createElement("label", {
|
|
@@ -142,6 +142,7 @@ const FileLoaderLocalGroup = _ref => {
|
|
|
142
142
|
var _group$files4, _group$files5;
|
|
143
143
|
return /*#__PURE__*/_react.default.createElement(_FileLoaderLocal.default, {
|
|
144
144
|
groupId: group === null || group === void 0 ? void 0 : group.groupId,
|
|
145
|
+
fieldKey: (file === null || file === void 0 ? void 0 : file.fieldKey) || (file === null || file === void 0 ? void 0 : file.id),
|
|
145
146
|
key: (file === null || file === void 0 ? void 0 : file.id) || index,
|
|
146
147
|
id: (file === null || file === void 0 ? void 0 : file.id) || index,
|
|
147
148
|
testId: "".concat(group === null || group === void 0 ? void 0 : group.groupId, "-").concat(file === null || file === void 0 ? void 0 : file.id),
|
|
@@ -625,6 +625,16 @@ const TagsDropdown = _ref => {
|
|
|
625
625
|
const getListMarkUp = () => {
|
|
626
626
|
var _filteredOptions$filt, _filteredOptions$filt2, _document$getElementB4;
|
|
627
627
|
const filteredOptions = getFilteredOptions(options);
|
|
628
|
+
const arrToPrint = [];
|
|
629
|
+
for (const option of filteredOptions) {
|
|
630
|
+
var _option$groupName, _option$list2;
|
|
631
|
+
if (option.groupName) arrToPrint.push( /*#__PURE__*/_react.default.createElement("div", {
|
|
632
|
+
key: (_option$groupName = option.groupName) === null || _option$groupName === void 0 || (_option$groupName = _option$groupName.toString()) === null || _option$groupName === void 0 ? void 0 : _option$groupName.replace(/ /g, "_").concat(Date.now()),
|
|
633
|
+
className: (0, _classnames.default)("".concat(RC, "-group"), option.className)
|
|
634
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
635
|
+
className: "".concat(RC, "-group__name")
|
|
636
|
+
}, option.groupName), (_option$list2 = option.list) === null || _option$list2 === void 0 ? void 0 : _option$list2.map(item => getMarkupForElement(item))));else arrToPrint.push(getMarkupForElement(option));
|
|
637
|
+
}
|
|
628
638
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
629
639
|
className: (0, _classnames.default)("".concat(RC, "__container-wrapper")),
|
|
630
640
|
ref: wrapperRef,
|
|
@@ -681,15 +691,7 @@ const TagsDropdown = _ref => {
|
|
|
681
691
|
}, "Select an option or create one") : null, /*#__PURE__*/_react.default.createElement("div", {
|
|
682
692
|
ref: dropdownListRef,
|
|
683
693
|
className: "".concat(RC, "__list ").concat(headerContent || isMobile ? "".concat(RC, "__list--with-header") : "", " ").concat(footerContent ? "".concat(RC, "__list--with-footer") : "")
|
|
684
|
-
},
|
|
685
|
-
var _option$groupName, _option$list2;
|
|
686
|
-
return option.groupName ? /*#__PURE__*/_react.default.createElement("div", {
|
|
687
|
-
key: (_option$groupName = option.groupName) === null || _option$groupName === void 0 || (_option$groupName = _option$groupName.toString()) === null || _option$groupName === void 0 ? void 0 : _option$groupName.replace(/ /g, "_").concat(Date.now()),
|
|
688
|
-
className: (0, _classnames.default)("".concat(RC, "-group"), option.className)
|
|
689
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
690
|
-
className: "".concat(RC, "-group__name")
|
|
691
|
-
}, option.groupName), (_option$list2 = option.list) === null || _option$list2 === void 0 ? void 0 : _option$list2.map(item => getMarkupForElement(item))) : getMarkupForElement(option);
|
|
692
|
-
}), ((_filteredOptions$filt = filteredOptions.filter(_ref12 => {
|
|
694
|
+
}, arrToPrint, ((_filteredOptions$filt = filteredOptions.filter(_ref12 => {
|
|
693
695
|
let {
|
|
694
696
|
value
|
|
695
697
|
} = _ref12;
|