fui-material 2.2.4 → 2.2.6
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/dist/f-ui-kit.es.js
CHANGED
|
@@ -2928,20 +2928,21 @@ const FFullDateField = forwardRef(
|
|
|
2928
2928
|
);
|
|
2929
2929
|
}
|
|
2930
2930
|
);
|
|
2931
|
-
const active$2 = "
|
|
2931
|
+
const active$2 = "_active_yhck3_41";
|
|
2932
2932
|
const styles$e = {
|
|
2933
|
-
"f-select-search-db": "_f-select-search-
|
|
2934
|
-
"f-select-search-db__input": "_f-select-search-
|
|
2935
|
-
"f-select-search-db__input_field": "_f-select-search-
|
|
2936
|
-
"f-select-search-db__input_arrow": "_f-select-search-
|
|
2937
|
-
"f-select-search-db__dropdown": "_f-select-search-
|
|
2933
|
+
"f-select-search-db": "_f-select-search-db_yhck3_1",
|
|
2934
|
+
"f-select-search-db__input": "_f-select-search-db__input_yhck3_7",
|
|
2935
|
+
"f-select-search-db__input_field": "_f-select-search-db__input_field_yhck3_11",
|
|
2936
|
+
"f-select-search-db__input_arrow": "_f-select-search-db__input_arrow_yhck3_14",
|
|
2937
|
+
"f-select-search-db__dropdown": "_f-select-search-db__dropdown_yhck3_21",
|
|
2938
2938
|
active: active$2,
|
|
2939
|
-
"f-select-search-db__dropdown_content": "_f-select-search-
|
|
2939
|
+
"f-select-search-db__dropdown_content": "_f-select-search-db__dropdown_content_yhck3_45"
|
|
2940
2940
|
};
|
|
2941
2941
|
const FSelectSearchDb = ({
|
|
2942
2942
|
fetchingFunc,
|
|
2943
2943
|
selectedElement,
|
|
2944
2944
|
selectItem,
|
|
2945
|
+
onChange,
|
|
2945
2946
|
st: st2,
|
|
2946
2947
|
id,
|
|
2947
2948
|
className,
|
|
@@ -2973,8 +2974,9 @@ const FSelectSearchDb = ({
|
|
|
2973
2974
|
dropdownPortalRef.current = document.createElement("div");
|
|
2974
2975
|
document.body.appendChild(dropdownPortalRef.current);
|
|
2975
2976
|
return () => {
|
|
2976
|
-
|
|
2977
|
-
|
|
2977
|
+
const portalElement = dropdownPortalRef.current;
|
|
2978
|
+
if (portalElement && portalElement.parentNode === document.body) {
|
|
2979
|
+
document.body.removeChild(portalElement);
|
|
2978
2980
|
}
|
|
2979
2981
|
};
|
|
2980
2982
|
}, []);
|
|
@@ -3022,6 +3024,7 @@ const FSelectSearchDb = ({
|
|
|
3022
3024
|
}, [isDropdownOpen]);
|
|
3023
3025
|
const handlerOnChange = (e) => {
|
|
3024
3026
|
const text = e.target.value;
|
|
3027
|
+
onChange(e);
|
|
3025
3028
|
setValueInput(text);
|
|
3026
3029
|
setIsDropdownOpen(false);
|
|
3027
3030
|
setTextInput(true);
|
|
@@ -3756,6 +3759,7 @@ const FSearchBox = forwardRef(
|
|
|
3756
3759
|
{
|
|
3757
3760
|
className: `${styles$a["f-search-box__button_clear"]}`,
|
|
3758
3761
|
type: "button",
|
|
3762
|
+
disabled: disabled2,
|
|
3759
3763
|
onClick: clearDataFromInput,
|
|
3760
3764
|
color: "danger",
|
|
3761
3765
|
variant,
|
|
@@ -50198,9 +50202,9 @@ const fFormatRuNumber = (a, options) => {
|
|
|
50198
50202
|
}
|
|
50199
50203
|
return new Intl.NumberFormat("ru-RU", formatOptions).format(processedValue);
|
|
50200
50204
|
};
|
|
50201
|
-
function fConvertDate(input, options
|
|
50202
|
-
const format = options.format ?? "iso";
|
|
50203
|
-
const locale = options.locale ?? "ru-RU";
|
|
50205
|
+
function fConvertDate(input, options) {
|
|
50206
|
+
const format = (options == null ? void 0 : options.format) ?? "iso";
|
|
50207
|
+
const locale = (options == null ? void 0 : options.locale) ?? "ru-RU";
|
|
50204
50208
|
if (input === null || input === void 0 || input === "") {
|
|
50205
50209
|
return format === "date" ? void 0 : "";
|
|
50206
50210
|
}
|
|
@@ -50224,7 +50228,7 @@ function fConvertDate(input, options = { format: "iso" }) {
|
|
|
50224
50228
|
case "date":
|
|
50225
50229
|
return date;
|
|
50226
50230
|
case "custom":
|
|
50227
|
-
return new Intl.DateTimeFormat(locale, options.customOptions).format(date);
|
|
50231
|
+
return new Intl.DateTimeFormat(locale, options == null ? void 0 : options.customOptions).format(date);
|
|
50228
50232
|
default:
|
|
50229
50233
|
return "";
|
|
50230
50234
|
}
|