fui-material 2.8.8 → 2.8.10
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 +336 -270
- package/dist/f-ui-kit.es.js.map +1 -1
- package/dist/f-ui-kit.umd.js +2 -2
- package/dist/f-ui-kit.umd.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/types/material/TableComponents/FTable/FTable.d.ts +10 -0
- package/dist/types/material/TableComponents/FTableDataCell/FTableDataCell.d.ts +12 -0
- package/dist/types/material/TableComponents/FTableHeaderCell/FTableHeaderCell.d.ts +12 -1
- package/dist/types/material/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/f-ui-kit.es.js
CHANGED
|
@@ -9,7 +9,7 @@ import axios from "axios";
|
|
|
9
9
|
import { useQueryClient, useMutation, useQuery } from "@tanstack/react-query";
|
|
10
10
|
import './index.css';const btn = "_btn_gdyy6_1";
|
|
11
11
|
const disabled$4 = "_disabled_gdyy6_31";
|
|
12
|
-
const styles$
|
|
12
|
+
const styles$B = {
|
|
13
13
|
btn,
|
|
14
14
|
disabled: disabled$4,
|
|
15
15
|
"btn-xs": "_btn-xs_gdyy6_40",
|
|
@@ -55,9 +55,9 @@ const FButton = forwardRef(({
|
|
|
55
55
|
};
|
|
56
56
|
const variantClass = variant === "contained" ? `btn-${color}` : `btn-outline-${color}`;
|
|
57
57
|
const buttonClasses = [
|
|
58
|
-
styles$
|
|
59
|
-
styles$
|
|
60
|
-
styles$
|
|
58
|
+
styles$B["btn"],
|
|
59
|
+
styles$B[size],
|
|
60
|
+
styles$B[variantClass],
|
|
61
61
|
className
|
|
62
62
|
].filter(Boolean).join(" ");
|
|
63
63
|
return /* @__PURE__ */ jsx(
|
|
@@ -123,7 +123,7 @@ FTrashIcon.displayName = "FTrashIcon";
|
|
|
123
123
|
const progressBar = "_progressBar_1iwax_48";
|
|
124
124
|
const completed = "_completed_1iwax_60";
|
|
125
125
|
const progress = "_progress_1iwax_48";
|
|
126
|
-
const styles$
|
|
126
|
+
const styles$A = {
|
|
127
127
|
"file-preview-card": "_file-preview-card_1iwax_1",
|
|
128
128
|
"file-preview-info": "_file-preview-info_1iwax_22",
|
|
129
129
|
"file-preview-name": "_file-preview-name_1iwax_28",
|
|
@@ -145,18 +145,18 @@ const FFile = ({
|
|
|
145
145
|
return /* @__PURE__ */ jsxs(
|
|
146
146
|
"div",
|
|
147
147
|
{
|
|
148
|
-
className: `${styles$
|
|
148
|
+
className: `${styles$A["file-preview-card"]} ${className || ""}`,
|
|
149
149
|
id,
|
|
150
150
|
style: st,
|
|
151
151
|
children: [
|
|
152
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
153
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
154
|
-
typeof size === "number" && /* @__PURE__ */ jsxs("span", { className: styles$
|
|
152
|
+
/* @__PURE__ */ jsxs("div", { className: styles$A["file-preview-info"], children: [
|
|
153
|
+
/* @__PURE__ */ jsx("span", { className: styles$A["file-preview-name"], title: name, children: name }),
|
|
154
|
+
typeof size === "number" && /* @__PURE__ */ jsxs("span", { className: styles$A["file-preview-size"], children: [
|
|
155
155
|
Math.round(size / 1024),
|
|
156
156
|
" КБ"
|
|
157
157
|
] })
|
|
158
158
|
] }),
|
|
159
|
-
handleDelete && /* @__PURE__ */ jsx("div", { className: styles$
|
|
159
|
+
handleDelete && /* @__PURE__ */ jsx("div", { className: styles$A["trash-icon"], children: /* @__PURE__ */ jsx(
|
|
160
160
|
FTrashIcon,
|
|
161
161
|
{
|
|
162
162
|
size: 20,
|
|
@@ -164,10 +164,10 @@ const FFile = ({
|
|
|
164
164
|
handleClick: handleDelete
|
|
165
165
|
}
|
|
166
166
|
) }),
|
|
167
|
-
typeof progress2 === "number" && /* @__PURE__ */ jsx("div", { className: `${styles$
|
|
167
|
+
typeof progress2 === "number" && /* @__PURE__ */ jsx("div", { className: `${styles$A.progressBar} ${progress2 === 100 ? styles$A.completed : ""}`, children: /* @__PURE__ */ jsx(
|
|
168
168
|
"div",
|
|
169
169
|
{
|
|
170
|
-
className: styles$
|
|
170
|
+
className: styles$A.progress,
|
|
171
171
|
style: { width: `${progress2}%` }
|
|
172
172
|
}
|
|
173
173
|
) })
|
|
@@ -270,7 +270,7 @@ const FButtonFile = ({
|
|
|
270
270
|
)) }) })
|
|
271
271
|
] });
|
|
272
272
|
};
|
|
273
|
-
const styles$
|
|
273
|
+
const styles$z = {
|
|
274
274
|
"f-text-field": "_f-text-field_200bb_1"
|
|
275
275
|
};
|
|
276
276
|
const FLoadIcon = React.forwardRef(({
|
|
@@ -349,7 +349,7 @@ const FTextField = forwardRef(
|
|
|
349
349
|
return /* @__PURE__ */ jsxs(
|
|
350
350
|
"div",
|
|
351
351
|
{
|
|
352
|
-
className: `f-form-element ${styles$
|
|
352
|
+
className: `f-form-element ${styles$z["f-text-field"]} ${className || ""}`,
|
|
353
353
|
style: mergedStyle,
|
|
354
354
|
role: "group",
|
|
355
355
|
id: inputId + "-text-field-block",
|
|
@@ -455,7 +455,7 @@ const FStack = ({
|
|
|
455
455
|
}
|
|
456
456
|
);
|
|
457
457
|
};
|
|
458
|
-
const styles$
|
|
458
|
+
const styles$y = {
|
|
459
459
|
"f-grid": "_f-grid_3g4xh_1",
|
|
460
460
|
"f-grid__col": "_f-grid__col_3g4xh_10",
|
|
461
461
|
"f-grid__col--auto": "_f-grid__col--auto_3g4xh_16",
|
|
@@ -558,21 +558,21 @@ const FGrid = ({
|
|
|
558
558
|
xxl: xxl ?? xl ?? lg ?? md ?? sm ?? xs
|
|
559
559
|
};
|
|
560
560
|
const getColumnClasses = () => {
|
|
561
|
-
if (colAuto) return styles$
|
|
562
|
-
const classes = [styles$
|
|
563
|
-
if (resolvedSizes.xs !== void 0) classes.push(styles$
|
|
564
|
-
if (resolvedSizes.sm !== void 0) classes.push(styles$
|
|
565
|
-
if (resolvedSizes.md !== void 0) classes.push(styles$
|
|
566
|
-
if (resolvedSizes.lg !== void 0) classes.push(styles$
|
|
567
|
-
if (resolvedSizes.xl !== void 0) classes.push(styles$
|
|
568
|
-
if (resolvedSizes.xxl !== void 0) classes.push(styles$
|
|
561
|
+
if (colAuto) return styles$y["f-grid__col--auto"];
|
|
562
|
+
const classes = [styles$y["f-grid__col"]];
|
|
563
|
+
if (resolvedSizes.xs !== void 0) classes.push(styles$y[`f-grid__col--xs-${resolvedSizes.xs}`]);
|
|
564
|
+
if (resolvedSizes.sm !== void 0) classes.push(styles$y[`f-grid__col--sm-${resolvedSizes.sm}`]);
|
|
565
|
+
if (resolvedSizes.md !== void 0) classes.push(styles$y[`f-grid__col--md-${resolvedSizes.md}`]);
|
|
566
|
+
if (resolvedSizes.lg !== void 0) classes.push(styles$y[`f-grid__col--lg-${resolvedSizes.lg}`]);
|
|
567
|
+
if (resolvedSizes.xl !== void 0) classes.push(styles$y[`f-grid__col--xl-${resolvedSizes.xl}`]);
|
|
568
|
+
if (resolvedSizes.xxl !== void 0) classes.push(styles$y[`f-grid__col--xxl-${resolvedSizes.xxl}`]);
|
|
569
569
|
return classes.join(" ");
|
|
570
570
|
};
|
|
571
571
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
572
572
|
obj === "container" && /* @__PURE__ */ jsx(
|
|
573
573
|
"div",
|
|
574
574
|
{
|
|
575
|
-
className: `${styles$
|
|
575
|
+
className: `${styles$y["f-grid"]} ${className || ""}`,
|
|
576
576
|
style,
|
|
577
577
|
id,
|
|
578
578
|
children
|
|
@@ -590,7 +590,7 @@ const FGrid = ({
|
|
|
590
590
|
obj === void 0 && /* @__PURE__ */ jsx("div", { className, style, id, children })
|
|
591
591
|
] });
|
|
592
592
|
};
|
|
593
|
-
const styles$
|
|
593
|
+
const styles$x = {
|
|
594
594
|
"f-grid-row": "_f-grid-row_1crbx_1",
|
|
595
595
|
"f-grid-row--justify-start": "_f-grid-row--justify-start_1crbx_7",
|
|
596
596
|
"f-grid-row--justify-center": "_f-grid-row--justify-center_1crbx_10",
|
|
@@ -612,21 +612,21 @@ const FGridRow = ({
|
|
|
612
612
|
}) => {
|
|
613
613
|
const getJustifyContentClass = () => {
|
|
614
614
|
if (!justifyContent) return "";
|
|
615
|
-
return styles$
|
|
615
|
+
return styles$x[`f-grid-row--justify-${justifyContent}`];
|
|
616
616
|
};
|
|
617
617
|
const getAlignItemsClass = () => {
|
|
618
618
|
if (!alignItems) return "";
|
|
619
|
-
return styles$
|
|
619
|
+
return styles$x[`f-grid-row--align-${alignItems}`];
|
|
620
620
|
};
|
|
621
621
|
const rowClasses = [
|
|
622
|
-
styles$
|
|
622
|
+
styles$x["f-grid-row"],
|
|
623
623
|
getJustifyContentClass(),
|
|
624
624
|
getAlignItemsClass(),
|
|
625
625
|
className
|
|
626
626
|
].filter(Boolean).join(" ");
|
|
627
627
|
return /* @__PURE__ */ jsx("div", { className: rowClasses, style: st, id, children });
|
|
628
628
|
};
|
|
629
|
-
const styles$
|
|
629
|
+
const styles$w = {
|
|
630
630
|
"f-container": "_f-container_g9ck3_1",
|
|
631
631
|
"container-fluid": "_container-fluid_g9ck3_1",
|
|
632
632
|
"container-xxl": "_container-xxl_g9ck3_1",
|
|
@@ -646,7 +646,7 @@ const FContainer = ({
|
|
|
646
646
|
return /* @__PURE__ */ jsx(
|
|
647
647
|
"div",
|
|
648
648
|
{
|
|
649
|
-
className: `${styles$
|
|
649
|
+
className: `${styles$w["f-container"]} ${styles$w[maxWidth]} ${className || ""}`,
|
|
650
650
|
style: st,
|
|
651
651
|
id,
|
|
652
652
|
children
|
|
@@ -654,7 +654,7 @@ const FContainer = ({
|
|
|
654
654
|
);
|
|
655
655
|
};
|
|
656
656
|
const panel = "_panel_q7in0_1";
|
|
657
|
-
const styles$
|
|
657
|
+
const styles$v = {
|
|
658
658
|
panel,
|
|
659
659
|
"panel-default": "_panel-default_q7in0_6",
|
|
660
660
|
"panel-heading": "_panel-heading_q7in0_12",
|
|
@@ -687,15 +687,15 @@ const FPaper = ({
|
|
|
687
687
|
return /* @__PURE__ */ jsxs(
|
|
688
688
|
"div",
|
|
689
689
|
{
|
|
690
|
-
className: `${styles$
|
|
690
|
+
className: `${styles$v["panel"]} ${styles$v["panel-default"]} ${className || ""} ${animated ? `${styles$v[`animated-${animated.name}`]} ${animated.name}` : ""}`,
|
|
691
691
|
style: st,
|
|
692
692
|
id,
|
|
693
693
|
onAnimationEnd,
|
|
694
694
|
children: [
|
|
695
|
-
label && /* @__PURE__ */ jsx("div", { className: styles$
|
|
695
|
+
label && /* @__PURE__ */ jsx("div", { className: styles$v["panel-heading"], children: /* @__PURE__ */ jsx(
|
|
696
696
|
"h3",
|
|
697
697
|
{
|
|
698
|
-
className: styles$
|
|
698
|
+
className: styles$v["panel-title"],
|
|
699
699
|
style: { fontSize: fontSizeLabel },
|
|
700
700
|
children: label
|
|
701
701
|
}
|
|
@@ -703,7 +703,7 @@ const FPaper = ({
|
|
|
703
703
|
/* @__PURE__ */ jsx(
|
|
704
704
|
"div",
|
|
705
705
|
{
|
|
706
|
-
className: styles$
|
|
706
|
+
className: styles$v["panel-body"],
|
|
707
707
|
style: { fontSize: fontSizeBody },
|
|
708
708
|
children
|
|
709
709
|
}
|
|
@@ -713,39 +713,39 @@ const FPaper = ({
|
|
|
713
713
|
);
|
|
714
714
|
};
|
|
715
715
|
const TableControlsContext = createContext({ query: "", sort: null });
|
|
716
|
-
const left$1 = "
|
|
717
|
-
const center = "
|
|
718
|
-
const right = "
|
|
719
|
-
const justify = "
|
|
720
|
-
const more = "
|
|
721
|
-
const styles$
|
|
722
|
-
"f-table-component": "_f-table-
|
|
723
|
-
"f-table-component__table": "_f-table-
|
|
724
|
-
"f-table-component__table_header": "_f-table-
|
|
725
|
-
"is-sticky": "_is-
|
|
726
|
-
"f-table-component__table_header-cell": "_f-table-component__table_header-
|
|
727
|
-
"f-table-component__table_body-cell": "_f-table-component__table_body-
|
|
728
|
-
"f-table-component__table_body": "_f-table-
|
|
729
|
-
"f-table-component__table_row": "_f-table-
|
|
730
|
-
"f-table-component__table_row_no-hover": "_f-table-component__table_row_no-
|
|
731
|
-
"f-table-component__table_footer": "_f-table-
|
|
716
|
+
const left$1 = "_left_18u6h_77";
|
|
717
|
+
const center = "_center_18u6h_80";
|
|
718
|
+
const right = "_right_18u6h_83";
|
|
719
|
+
const justify = "_justify_18u6h_86";
|
|
720
|
+
const more = "_more_18u6h_194";
|
|
721
|
+
const styles$u = {
|
|
722
|
+
"f-table-component": "_f-table-component_18u6h_1",
|
|
723
|
+
"f-table-component__table": "_f-table-component__table_18u6h_14",
|
|
724
|
+
"f-table-component__table_header": "_f-table-component__table_header_18u6h_22",
|
|
725
|
+
"is-sticky": "_is-sticky_18u6h_26",
|
|
726
|
+
"f-table-component__table_header-cell": "_f-table-component__table_header-cell_18u6h_32",
|
|
727
|
+
"f-table-component__table_body-cell": "_f-table-component__table_body-cell_18u6h_32",
|
|
728
|
+
"f-table-component__table_body": "_f-table-component__table_body_18u6h_32",
|
|
729
|
+
"f-table-component__table_row": "_f-table-component__table_row_18u6h_60",
|
|
730
|
+
"f-table-component__table_row_no-hover": "_f-table-component__table_row_no-hover_18u6h_60",
|
|
731
|
+
"f-table-component__table_footer": "_f-table-component__table_footer_18u6h_66",
|
|
732
732
|
left: left$1,
|
|
733
733
|
center,
|
|
734
734
|
right,
|
|
735
735
|
justify,
|
|
736
|
-
"cell-text": "_cell-
|
|
737
|
-
"cell-preview-text": "_cell-preview-
|
|
738
|
-
"cell-preview": "_cell-
|
|
739
|
-
"cell-reveal": "_cell-
|
|
736
|
+
"cell-text": "_cell-text_18u6h_90",
|
|
737
|
+
"cell-preview-text": "_cell-preview-text_18u6h_111",
|
|
738
|
+
"cell-preview": "_cell-preview_18u6h_111",
|
|
739
|
+
"cell-reveal": "_cell-reveal_18u6h_168",
|
|
740
740
|
more,
|
|
741
|
-
"row-menu": "_row-
|
|
742
|
-
"table-tools": "_table-
|
|
743
|
-
"table-search": "_table-
|
|
744
|
-
"table-sort": "_table-
|
|
745
|
-
"table-empty": "_table-
|
|
746
|
-
"cell-tooltip-anchor": "_cell-tooltip-
|
|
747
|
-
"cell-tooltip": "_cell-
|
|
748
|
-
"cell-tooltip-in": "_cell-tooltip-
|
|
741
|
+
"row-menu": "_row-menu_18u6h_225",
|
|
742
|
+
"table-tools": "_table-tools_18u6h_317",
|
|
743
|
+
"table-search": "_table-search_18u6h_323",
|
|
744
|
+
"table-sort": "_table-sort_18u6h_358",
|
|
745
|
+
"table-empty": "_table-empty_18u6h_386",
|
|
746
|
+
"cell-tooltip-anchor": "_cell-tooltip-anchor_18u6h_393",
|
|
747
|
+
"cell-tooltip": "_cell-tooltip_18u6h_393",
|
|
748
|
+
"cell-tooltip-in": "_cell-tooltip-in_18u6h_1"
|
|
749
749
|
};
|
|
750
750
|
const FTableHead = ({
|
|
751
751
|
st,
|
|
@@ -761,7 +761,7 @@ const FTableHead = ({
|
|
|
761
761
|
{
|
|
762
762
|
style: st,
|
|
763
763
|
...props,
|
|
764
|
-
className: `${styles$
|
|
764
|
+
className: `${styles$u["f-table-component__table_header"]} ${isSticky ? styles$u["is-sticky"] : ""} ${props.className || ""} ${styles$u[textAlignment]}`,
|
|
765
765
|
children
|
|
766
766
|
}
|
|
767
767
|
);
|
|
@@ -956,14 +956,14 @@ const FTableBody = ({
|
|
|
956
956
|
ref: tableBodyRef,
|
|
957
957
|
style: st,
|
|
958
958
|
...props,
|
|
959
|
-
className: `${styles$
|
|
959
|
+
className: `${styles$u["f-table-component__table_body"]} ${props.className || ""} ${styles$u[textAlignment]}`,
|
|
960
960
|
children: [
|
|
961
961
|
virtual && start > 0 && /* @__PURE__ */ jsx("tr", { "aria-hidden": "true", children: /* @__PURE__ */ jsx("td", { colSpan: index.columnCount, style: { height: offsets[start], padding: 0, border: 0 } }) }),
|
|
962
962
|
visibleRows.map((child, index2) => React.isValidElement(child) ? React.cloneElement(child, {
|
|
963
963
|
"data-row-index": start + index2,
|
|
964
964
|
"data-table-row-key": keyOf(child, start + index2)
|
|
965
965
|
}) : child),
|
|
966
|
-
query.trim() && rows.length === 0 && /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: index.columnCount, className: styles$
|
|
966
|
+
query.trim() && rows.length === 0 && /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: index.columnCount, className: styles$u["table-empty"], children: /* @__PURE__ */ jsx("span", { role: "status", children: "Ничего не найдено" }) }) }),
|
|
967
967
|
virtual && end < rows.length && /* @__PURE__ */ jsx("tr", { "aria-hidden": "true", children: /* @__PURE__ */ jsx("td", { colSpan: index.columnCount, style: { height: offsets[rows.length] - offsets[end], padding: 0, border: 0 } }) })
|
|
968
968
|
]
|
|
969
969
|
}
|
|
@@ -982,6 +982,8 @@ const FTable = ({
|
|
|
982
982
|
layout = "auto",
|
|
983
983
|
// Добавляем новый пропс с дефолтным значением 'auto'
|
|
984
984
|
searchable = false,
|
|
985
|
+
width,
|
|
986
|
+
minWidth,
|
|
985
987
|
...props
|
|
986
988
|
}) => {
|
|
987
989
|
const tableWrapperRef = useRef(null);
|
|
@@ -1011,7 +1013,7 @@ const FTable = ({
|
|
|
1011
1013
|
};
|
|
1012
1014
|
}, []);
|
|
1013
1015
|
return /* @__PURE__ */ jsxs(TableControlsContext.Provider, { value: controls, children: [
|
|
1014
|
-
searchable && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1016
|
+
searchable && /* @__PURE__ */ jsx("div", { className: styles$u["table-tools"], children: /* @__PURE__ */ jsxs("label", { className: styles$u["table-search"], children: [
|
|
1015
1017
|
/* @__PURE__ */ jsxs("svg", { width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", "aria-hidden": "true", children: [
|
|
1016
1018
|
/* @__PURE__ */ jsx("circle", { cx: "11", cy: "11", r: "7" }),
|
|
1017
1019
|
/* @__PURE__ */ jsx("path", { d: "m20 20-3.5-3.5" })
|
|
@@ -1034,14 +1036,19 @@ const FTable = ({
|
|
|
1034
1036
|
"div",
|
|
1035
1037
|
{
|
|
1036
1038
|
ref: tableWrapperRef,
|
|
1037
|
-
className: styles$
|
|
1039
|
+
className: styles$u["f-table-component"],
|
|
1038
1040
|
style: { overflowX, overflowY },
|
|
1039
1041
|
children: /* @__PURE__ */ jsx(
|
|
1040
1042
|
"table",
|
|
1041
1043
|
{
|
|
1042
|
-
style: {
|
|
1044
|
+
style: {
|
|
1045
|
+
tableLayout: layout,
|
|
1046
|
+
...width !== void 0 ? { width } : {},
|
|
1047
|
+
...minWidth !== void 0 ? { minWidth } : {},
|
|
1048
|
+
...st
|
|
1049
|
+
},
|
|
1043
1050
|
...props,
|
|
1044
|
-
className: `table ${styles$
|
|
1051
|
+
className: `table ${styles$u["f-table-component__table"]} ${props.className || ""}`,
|
|
1045
1052
|
children: React.Children.map(children, (child) => {
|
|
1046
1053
|
if (React.isValidElement(child) && child.type === FTableHead) {
|
|
1047
1054
|
const headProps = child.props;
|
|
@@ -1080,14 +1087,14 @@ const FTableRow = ({
|
|
|
1080
1087
|
...props
|
|
1081
1088
|
}) => {
|
|
1082
1089
|
const rowClasses = [
|
|
1083
|
-
styles$
|
|
1090
|
+
styles$u["f-table-component__table_row"],
|
|
1084
1091
|
props.className || ""
|
|
1085
1092
|
];
|
|
1086
1093
|
if (disableHover) {
|
|
1087
|
-
rowClasses.push(styles$
|
|
1094
|
+
rowClasses.push(styles$u["f-table-component__table_row_no-hover"]);
|
|
1088
1095
|
}
|
|
1089
1096
|
if (textAlignment !== void 0) {
|
|
1090
|
-
rowClasses.push(styles$
|
|
1097
|
+
rowClasses.push(styles$u[textAlignment]);
|
|
1091
1098
|
}
|
|
1092
1099
|
return /* @__PURE__ */ jsx(
|
|
1093
1100
|
"tr",
|
|
@@ -1106,8 +1113,9 @@ const FTableHeaderCell = ({
|
|
|
1106
1113
|
children,
|
|
1107
1114
|
textAlignment,
|
|
1108
1115
|
// По умолчанию выравнивания нет
|
|
1109
|
-
width
|
|
1110
|
-
|
|
1116
|
+
width,
|
|
1117
|
+
minWidth,
|
|
1118
|
+
maxWidth,
|
|
1111
1119
|
height,
|
|
1112
1120
|
sortKey,
|
|
1113
1121
|
...props
|
|
@@ -1115,10 +1123,13 @@ const FTableHeaderCell = ({
|
|
|
1115
1123
|
const { sort, toggleSort } = useContext(TableControlsContext);
|
|
1116
1124
|
const sortable = Boolean(sortKey && toggleSort);
|
|
1117
1125
|
const direction = (sort == null ? void 0 : sort.key) === sortKey ? sort == null ? void 0 : sort.direction : void 0;
|
|
1126
|
+
const resolvedMinWidth = minWidth !== void 0 ? minWidth : width !== void 0 && width !== "auto" && !String(width).includes("%") ? width : void 0;
|
|
1118
1127
|
const style = {
|
|
1119
1128
|
textAlign: textAlignment,
|
|
1120
|
-
width,
|
|
1121
|
-
|
|
1129
|
+
...width !== void 0 ? { width } : {},
|
|
1130
|
+
...resolvedMinWidth !== void 0 ? { minWidth: resolvedMinWidth } : {},
|
|
1131
|
+
...maxWidth !== void 0 ? { maxWidth } : {},
|
|
1132
|
+
...height !== void 0 ? { height } : {},
|
|
1122
1133
|
...st
|
|
1123
1134
|
};
|
|
1124
1135
|
return /* @__PURE__ */ jsx(
|
|
@@ -1128,13 +1139,13 @@ const FTableHeaderCell = ({
|
|
|
1128
1139
|
colSpan: col && col > 1 ? col : void 0,
|
|
1129
1140
|
...props,
|
|
1130
1141
|
"aria-sort": sortable ? direction ?? "none" : props["aria-sort"],
|
|
1131
|
-
className: `${styles$
|
|
1142
|
+
className: `${styles$u["f-table-component__table_header-cell"]} ${props.className || ""}`,
|
|
1132
1143
|
style,
|
|
1133
1144
|
children: sortable ? /* @__PURE__ */ jsxs(
|
|
1134
1145
|
"button",
|
|
1135
1146
|
{
|
|
1136
1147
|
type: "button",
|
|
1137
|
-
className: styles$
|
|
1148
|
+
className: styles$u["table-sort"],
|
|
1138
1149
|
onClick: () => toggleSort == null ? void 0 : toggleSort(sortKey),
|
|
1139
1150
|
title: direction === "ascending" ? "По убыванию" : direction === "descending" ? "Исходный порядок" : "По возрастанию",
|
|
1140
1151
|
children: [
|
|
@@ -1198,7 +1209,7 @@ function FTableTextTooltip({ text, enabled, children }) {
|
|
|
1198
1209
|
"span",
|
|
1199
1210
|
{
|
|
1200
1211
|
ref: anchor,
|
|
1201
|
-
className: styles$
|
|
1212
|
+
className: styles$u["cell-tooltip-anchor"],
|
|
1202
1213
|
onMouseEnter: show,
|
|
1203
1214
|
onMouseLeave: hide2,
|
|
1204
1215
|
onFocus: show,
|
|
@@ -1211,7 +1222,7 @@ function FTableTextTooltip({ text, enabled, children }) {
|
|
|
1211
1222
|
ref: panel2,
|
|
1212
1223
|
id,
|
|
1213
1224
|
role: "tooltip",
|
|
1214
|
-
className: styles$
|
|
1225
|
+
className: styles$u["cell-tooltip"],
|
|
1215
1226
|
style: position,
|
|
1216
1227
|
onMouseEnter: show,
|
|
1217
1228
|
onMouseLeave: hide2,
|
|
@@ -1229,6 +1240,8 @@ const FTableDataCell = ({
|
|
|
1229
1240
|
children,
|
|
1230
1241
|
textAlignment,
|
|
1231
1242
|
width,
|
|
1243
|
+
minWidth,
|
|
1244
|
+
maxWidth,
|
|
1232
1245
|
height,
|
|
1233
1246
|
truncate,
|
|
1234
1247
|
sortKey: _sortKey,
|
|
@@ -1242,10 +1255,13 @@ const FTableDataCell = ({
|
|
|
1242
1255
|
const text = typeof children === "string" || typeof children === "number" ? String(children) : null;
|
|
1243
1256
|
const limit = truncateAt !== void 0 && Number.isFinite(truncateAt) && truncateAt >= 1 ? Math.floor(truncateAt) : truncate ? 40 : void 0;
|
|
1244
1257
|
const collapsible = truncate !== false && limit !== void 0 && text !== null && text.length > limit;
|
|
1258
|
+
const resolvedMinWidth = minWidth !== void 0 ? minWidth : width !== void 0 && width !== "auto" && !String(width).includes("%") ? width : void 0;
|
|
1245
1259
|
const style = {
|
|
1246
1260
|
textAlign: textAlignment,
|
|
1247
|
-
width,
|
|
1248
|
-
|
|
1261
|
+
...width !== void 0 ? { width } : {},
|
|
1262
|
+
...resolvedMinWidth !== void 0 ? { minWidth: resolvedMinWidth } : {},
|
|
1263
|
+
...maxWidth !== void 0 ? { maxWidth } : {},
|
|
1264
|
+
...height !== void 0 ? { height } : {},
|
|
1249
1265
|
...st
|
|
1250
1266
|
};
|
|
1251
1267
|
return /* @__PURE__ */ jsx(
|
|
@@ -1254,20 +1270,20 @@ const FTableDataCell = ({
|
|
|
1254
1270
|
rowSpan: row && row > 1 ? row : void 0,
|
|
1255
1271
|
colSpan: col && col > 1 ? col : void 0,
|
|
1256
1272
|
...props,
|
|
1257
|
-
className: `${styles$
|
|
1273
|
+
className: `${styles$u["f-table-component__table_body-cell"]} ${props.className || ""}`.trim(),
|
|
1258
1274
|
style,
|
|
1259
1275
|
children: collapsible ? /* @__PURE__ */ jsx(FTableTextTooltip, { text, enabled: !expanded, children: /* @__PURE__ */ jsxs(
|
|
1260
1276
|
"button",
|
|
1261
1277
|
{
|
|
1262
1278
|
type: "button",
|
|
1263
|
-
className: styles$
|
|
1279
|
+
className: styles$u["cell-text"],
|
|
1264
1280
|
"aria-expanded": expanded,
|
|
1265
1281
|
"aria-controls": textId,
|
|
1266
1282
|
"data-expanded": expanded,
|
|
1267
1283
|
onClick: () => setExpanded((value) => !value),
|
|
1268
1284
|
children: [
|
|
1269
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
1270
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
1285
|
+
/* @__PURE__ */ jsx("span", { className: styles$u["cell-preview"], "aria-hidden": "true", children: /* @__PURE__ */ jsx("span", { className: styles$u["cell-preview-text"], children: text }) }),
|
|
1286
|
+
/* @__PURE__ */ jsx("span", { className: styles$u["cell-reveal"], children: /* @__PURE__ */ jsx("span", { id: textId, children: text }) })
|
|
1271
1287
|
]
|
|
1272
1288
|
}
|
|
1273
1289
|
) }) : children
|
|
@@ -1284,7 +1300,7 @@ const FTableFooter = ({
|
|
|
1284
1300
|
{
|
|
1285
1301
|
style: st,
|
|
1286
1302
|
...props,
|
|
1287
|
-
className: `${styles$
|
|
1303
|
+
className: `${styles$u["f-table-component__table_footer"]} ${props.className || ""}`,
|
|
1288
1304
|
children
|
|
1289
1305
|
}
|
|
1290
1306
|
);
|
|
@@ -1292,7 +1308,7 @@ const FTableFooter = ({
|
|
|
1292
1308
|
const entering = "_entering_g7izy_19";
|
|
1293
1309
|
const exiting = "_exiting_g7izy_25";
|
|
1294
1310
|
const hide = "_hide_g7izy_50";
|
|
1295
|
-
const styles$
|
|
1311
|
+
const styles$t = {
|
|
1296
1312
|
"f-dialog": "_f-dialog_g7izy_1",
|
|
1297
1313
|
entering,
|
|
1298
1314
|
"f-dialog__content": "_f-dialog__content_g7izy_22",
|
|
@@ -1372,14 +1388,14 @@ const FDialog = ({
|
|
|
1372
1388
|
adaptive: "fit-content"
|
|
1373
1389
|
};
|
|
1374
1390
|
const contentWidth = widthStyles[width];
|
|
1375
|
-
const animationClass = isClosing ? styles$
|
|
1391
|
+
const animationClass = isClosing ? styles$t["exiting"] : styles$t["entering"];
|
|
1376
1392
|
return ReactDOM.createPortal(
|
|
1377
1393
|
/* @__PURE__ */ jsx(
|
|
1378
1394
|
"div",
|
|
1379
1395
|
{
|
|
1380
1396
|
id,
|
|
1381
1397
|
style: st,
|
|
1382
|
-
className: `${styles$
|
|
1398
|
+
className: `${styles$t["f-dialog"]} ${animationClass} ${className || ""}`,
|
|
1383
1399
|
onMouseDown: (e) => {
|
|
1384
1400
|
if (e.target === e.currentTarget) {
|
|
1385
1401
|
closeButtonBackPage == null ? void 0 : closeButtonBackPage(false);
|
|
@@ -1389,7 +1405,7 @@ const FDialog = ({
|
|
|
1389
1405
|
children: /* @__PURE__ */ jsx(
|
|
1390
1406
|
"div",
|
|
1391
1407
|
{
|
|
1392
|
-
className: `${styles$
|
|
1408
|
+
className: `${styles$t["f-dialog__content"]} ${hide2 ? styles$t["hide"] : ""}`,
|
|
1393
1409
|
style: {
|
|
1394
1410
|
width: contentWidth
|
|
1395
1411
|
},
|
|
@@ -1430,13 +1446,13 @@ const FCloseIcon = React.forwardRef(({
|
|
|
1430
1446
|
});
|
|
1431
1447
|
FCloseIcon.displayName = "FCloseIcon";
|
|
1432
1448
|
const FDialogHeader = ({ title: title2, handleClose }) => {
|
|
1433
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
1434
|
-
/* @__PURE__ */ jsx("h3", { className: styles$
|
|
1449
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$t["f-dialog__header"], children: [
|
|
1450
|
+
/* @__PURE__ */ jsx("h3", { className: styles$t["f-dialog__header_title"], children: title2 }),
|
|
1435
1451
|
handleClose && /* @__PURE__ */ jsx(
|
|
1436
1452
|
"button",
|
|
1437
1453
|
{
|
|
1438
1454
|
type: "button",
|
|
1439
|
-
className: styles$
|
|
1455
|
+
className: styles$t["f-dialog__header_close"],
|
|
1440
1456
|
onClick: handleClose,
|
|
1441
1457
|
"aria-label": "Закрыть диалог",
|
|
1442
1458
|
children: /* @__PURE__ */ jsx(
|
|
@@ -1455,7 +1471,7 @@ const FDialogBody = ({ st, children, scroll = true }) => {
|
|
|
1455
1471
|
...scroll ? { overflowY: "auto" } : {},
|
|
1456
1472
|
...st
|
|
1457
1473
|
};
|
|
1458
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
1474
|
+
return /* @__PURE__ */ jsx("div", { className: styles$t["f-dialog__body"], style, children });
|
|
1459
1475
|
};
|
|
1460
1476
|
const FDialogFooter = ({ children, className, st, id }) => {
|
|
1461
1477
|
return /* @__PURE__ */ jsx(
|
|
@@ -1463,47 +1479,47 @@ const FDialogFooter = ({ children, className, st, id }) => {
|
|
|
1463
1479
|
{
|
|
1464
1480
|
id,
|
|
1465
1481
|
style: st,
|
|
1466
|
-
className: `${styles$
|
|
1482
|
+
className: `${styles$t["f-dialog__footer"]} ${className || ""}`,
|
|
1467
1483
|
children
|
|
1468
1484
|
}
|
|
1469
1485
|
);
|
|
1470
1486
|
};
|
|
1471
1487
|
const loader = "_loader_1glrn_1";
|
|
1472
|
-
const primary$
|
|
1473
|
-
const secondary$
|
|
1474
|
-
const success$
|
|
1475
|
-
const danger$
|
|
1476
|
-
const warning$
|
|
1477
|
-
const info$
|
|
1478
|
-
const light$
|
|
1479
|
-
const dark$
|
|
1488
|
+
const primary$2 = "_primary_1glrn_42";
|
|
1489
|
+
const secondary$2 = "_secondary_1glrn_46";
|
|
1490
|
+
const success$4 = "_success_1glrn_50";
|
|
1491
|
+
const danger$2 = "_danger_1glrn_54";
|
|
1492
|
+
const warning$6 = "_warning_1glrn_58";
|
|
1493
|
+
const info$4 = "_info_1glrn_62";
|
|
1494
|
+
const light$2 = "_light_1glrn_66";
|
|
1495
|
+
const dark$2 = "_dark_1glrn_70";
|
|
1480
1496
|
const link$1 = "_link_1glrn_74";
|
|
1481
|
-
const styles$
|
|
1497
|
+
const styles$s = {
|
|
1482
1498
|
"authorization-spinner": "_authorization-spinner_1glrn_1",
|
|
1483
1499
|
"spinner-item": "_spinner-item_1glrn_7",
|
|
1484
1500
|
loader,
|
|
1485
|
-
primary: primary$
|
|
1486
|
-
secondary: secondary$
|
|
1487
|
-
success: success$
|
|
1488
|
-
danger: danger$
|
|
1489
|
-
warning: warning$
|
|
1490
|
-
info: info$
|
|
1491
|
-
light: light$
|
|
1492
|
-
dark: dark$
|
|
1501
|
+
primary: primary$2,
|
|
1502
|
+
secondary: secondary$2,
|
|
1503
|
+
success: success$4,
|
|
1504
|
+
danger: danger$2,
|
|
1505
|
+
warning: warning$6,
|
|
1506
|
+
info: info$4,
|
|
1507
|
+
light: light$2,
|
|
1508
|
+
dark: dark$2,
|
|
1493
1509
|
link: link$1
|
|
1494
1510
|
};
|
|
1495
1511
|
const FProgress = ({ st, color = "primary", id, className }) => {
|
|
1496
1512
|
return /* @__PURE__ */ jsx(
|
|
1497
1513
|
"div",
|
|
1498
1514
|
{
|
|
1499
|
-
className: `${styles$
|
|
1515
|
+
className: `${styles$s["authorization-spinner"]} ${styles$s.visible} ${className || ""}`,
|
|
1500
1516
|
id,
|
|
1501
1517
|
style: st,
|
|
1502
|
-
children: /* @__PURE__ */ jsx("div", { className: `${styles$
|
|
1518
|
+
children: /* @__PURE__ */ jsx("div", { className: `${styles$s["spinner-item"]} ${styles$s[color]}` })
|
|
1503
1519
|
}
|
|
1504
1520
|
);
|
|
1505
1521
|
};
|
|
1506
|
-
const styles$
|
|
1522
|
+
const styles$r = {
|
|
1507
1523
|
"f-preloader": "_f-preloader_17f9x_1",
|
|
1508
1524
|
"active-preloader": "_active-preloader_17f9x_10"
|
|
1509
1525
|
};
|
|
@@ -1530,13 +1546,13 @@ const FPreloader = ({
|
|
|
1530
1546
|
return /* @__PURE__ */ jsx(
|
|
1531
1547
|
"div",
|
|
1532
1548
|
{
|
|
1533
|
-
className: `${styles$
|
|
1549
|
+
className: `${styles$r["f-preloader"]} ${open ? styles$r["active-preloader"] : ""}`,
|
|
1534
1550
|
style: mergedStyle,
|
|
1535
1551
|
children
|
|
1536
1552
|
}
|
|
1537
1553
|
);
|
|
1538
1554
|
};
|
|
1539
|
-
const styles$
|
|
1555
|
+
const styles$q = {
|
|
1540
1556
|
"f-checkbox": "_f-checkbox_1hxs0_1"
|
|
1541
1557
|
};
|
|
1542
1558
|
const FCheckbox = forwardRef(
|
|
@@ -1549,7 +1565,7 @@ const FCheckbox = forwardRef(
|
|
|
1549
1565
|
return /* @__PURE__ */ jsx(
|
|
1550
1566
|
"div",
|
|
1551
1567
|
{
|
|
1552
|
-
className: `${styles$
|
|
1568
|
+
className: `${styles$q["f-checkbox"]} ${className || ""}`,
|
|
1553
1569
|
style: st,
|
|
1554
1570
|
children: /* @__PURE__ */ jsxs("label", { children: [
|
|
1555
1571
|
/* @__PURE__ */ jsx("input", { ref, type: "checkbox", ...props }),
|
|
@@ -1559,7 +1575,7 @@ const FCheckbox = forwardRef(
|
|
|
1559
1575
|
);
|
|
1560
1576
|
}
|
|
1561
1577
|
);
|
|
1562
|
-
const styles$
|
|
1578
|
+
const styles$p = {
|
|
1563
1579
|
"f-radio": "_f-radio_1oidm_1"
|
|
1564
1580
|
};
|
|
1565
1581
|
const FRadioButton = forwardRef(
|
|
@@ -1572,7 +1588,7 @@ const FRadioButton = forwardRef(
|
|
|
1572
1588
|
return /* @__PURE__ */ jsx(
|
|
1573
1589
|
"div",
|
|
1574
1590
|
{
|
|
1575
|
-
className: `${styles$
|
|
1591
|
+
className: `${styles$p["f-radio"]} ${className || ""}`,
|
|
1576
1592
|
style: st,
|
|
1577
1593
|
children: /* @__PURE__ */ jsxs("label", { children: [
|
|
1578
1594
|
/* @__PURE__ */ jsx("input", { ref, type: "radio", ...props }),
|
|
@@ -1634,7 +1650,7 @@ const selected$1 = "_selected_uiqea_33";
|
|
|
1634
1650
|
const disabled$3 = "_disabled_uiqea_37";
|
|
1635
1651
|
const arrow = "_arrow_uiqea_43";
|
|
1636
1652
|
const left = "_left_uiqea_56";
|
|
1637
|
-
const styles$
|
|
1653
|
+
const styles$o = {
|
|
1638
1654
|
"pagination-container": "_pagination-container_uiqea_1",
|
|
1639
1655
|
"pagination-item": "_pagination-item_uiqea_9",
|
|
1640
1656
|
dots,
|
|
@@ -1668,26 +1684,26 @@ const FPagination = ({
|
|
|
1668
1684
|
return /* @__PURE__ */ jsxs(
|
|
1669
1685
|
"ul",
|
|
1670
1686
|
{
|
|
1671
|
-
className: `${styles$
|
|
1687
|
+
className: `${styles$o["pagination-container"]} ${className || ""}`,
|
|
1672
1688
|
style: st,
|
|
1673
1689
|
id,
|
|
1674
1690
|
children: [
|
|
1675
1691
|
/* @__PURE__ */ jsx(
|
|
1676
1692
|
"li",
|
|
1677
1693
|
{
|
|
1678
|
-
className: `${styles$
|
|
1694
|
+
className: `${styles$o["pagination-item"]} ${currentPage === 1 ? styles$o.disabled : ""}`,
|
|
1679
1695
|
onClick: onPrevious,
|
|
1680
|
-
children: /* @__PURE__ */ jsx("div", { className: `${styles$
|
|
1696
|
+
children: /* @__PURE__ */ jsx("div", { className: `${styles$o.arrow} ${styles$o.left}` })
|
|
1681
1697
|
}
|
|
1682
1698
|
),
|
|
1683
1699
|
paginationRange.map((pageNumber, index) => {
|
|
1684
1700
|
if (pageNumber === DOTS) {
|
|
1685
|
-
return /* @__PURE__ */ jsx("li", { className: `${styles$
|
|
1701
|
+
return /* @__PURE__ */ jsx("li", { className: `${styles$o["pagination-item"]} ${styles$o.dots}`, children: "…" }, index);
|
|
1686
1702
|
}
|
|
1687
1703
|
return /* @__PURE__ */ jsx(
|
|
1688
1704
|
"li",
|
|
1689
1705
|
{
|
|
1690
|
-
className: `${styles$
|
|
1706
|
+
className: `${styles$o["pagination-item"]} ${pageNumber === currentPage ? styles$o.selected : ""}`,
|
|
1691
1707
|
onClick: () => onPageChange(pageNumber),
|
|
1692
1708
|
children: pageNumber
|
|
1693
1709
|
},
|
|
@@ -1697,16 +1713,16 @@ const FPagination = ({
|
|
|
1697
1713
|
/* @__PURE__ */ jsx(
|
|
1698
1714
|
"li",
|
|
1699
1715
|
{
|
|
1700
|
-
className: `${styles$
|
|
1716
|
+
className: `${styles$o["pagination-item"]} ${currentPage === lastPage ? styles$o.disabled : ""}`,
|
|
1701
1717
|
onClick: onNext,
|
|
1702
|
-
children: /* @__PURE__ */ jsx("div", { className: `${styles$
|
|
1718
|
+
children: /* @__PURE__ */ jsx("div", { className: `${styles$o.arrow} ${styles$o.right}` })
|
|
1703
1719
|
}
|
|
1704
1720
|
)
|
|
1705
1721
|
]
|
|
1706
1722
|
}
|
|
1707
1723
|
);
|
|
1708
1724
|
};
|
|
1709
|
-
const styles$
|
|
1725
|
+
const styles$n = {
|
|
1710
1726
|
"f-time-line": "_f-time-line_1ybe7_1",
|
|
1711
1727
|
"f-time-line__block": "_f-time-line__block_1ybe7_10",
|
|
1712
1728
|
"f-time-line__block-circle": "_f-time-line__block-circle_1ybe7_29",
|
|
@@ -1720,7 +1736,7 @@ const FTimeline = ({
|
|
|
1720
1736
|
id,
|
|
1721
1737
|
className
|
|
1722
1738
|
}) => {
|
|
1723
|
-
return /* @__PURE__ */ jsx("div", { className: `${styles$
|
|
1739
|
+
return /* @__PURE__ */ jsx("div", { className: `${styles$n["f-time-line"]} ${className || ""}`, style: st, id, children });
|
|
1724
1740
|
};
|
|
1725
1741
|
const FTimelineCard = ({
|
|
1726
1742
|
children,
|
|
@@ -1729,17 +1745,17 @@ const FTimelineCard = ({
|
|
|
1729
1745
|
id,
|
|
1730
1746
|
className
|
|
1731
1747
|
}) => {
|
|
1732
|
-
return /* @__PURE__ */ jsxs("div", { className: `${styles$
|
|
1733
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
1734
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
1735
|
-
title2 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1736
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
1748
|
+
return /* @__PURE__ */ jsxs("div", { className: `${styles$n["f-time-line__block"]} ${className || ""}`, id, children: [
|
|
1749
|
+
/* @__PURE__ */ jsx("div", { className: styles$n["f-time-line__block-circle"] }),
|
|
1750
|
+
/* @__PURE__ */ jsxs("div", { className: styles$n["f-time-line__block-inner"], style: st, children: [
|
|
1751
|
+
title2 && /* @__PURE__ */ jsx("div", { className: styles$n["f-time-line__block-title"], children: title2 }),
|
|
1752
|
+
/* @__PURE__ */ jsx("div", { className: styles$n["f-time-line__block-content"], children })
|
|
1737
1753
|
] })
|
|
1738
1754
|
] });
|
|
1739
1755
|
};
|
|
1740
1756
|
const spinner = "_spinner_f7bma_133";
|
|
1741
1757
|
const active$4 = "_active_f7bma_183";
|
|
1742
|
-
const styles$
|
|
1758
|
+
const styles$m = {
|
|
1743
1759
|
"fv-opn-img-full": "_fv-opn-img-full_f7bma_1",
|
|
1744
1760
|
"fv-opn-img-full-body": "_fv-opn-img-full-body_f7bma_19",
|
|
1745
1761
|
"close-button": "_close-button_f7bma_33",
|
|
@@ -1878,10 +1894,10 @@ const FOpenImgFull = ({
|
|
|
1878
1894
|
{
|
|
1879
1895
|
openAndClose,
|
|
1880
1896
|
st,
|
|
1881
|
-
className: `${styles$
|
|
1897
|
+
className: `${styles$m["fv-opn-img-full"]} ${className || ""}`,
|
|
1882
1898
|
id,
|
|
1883
|
-
children: /* @__PURE__ */ jsxs("div", { className: styles$
|
|
1884
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
1899
|
+
children: /* @__PURE__ */ jsxs("div", { className: styles$m["fv-opn-img-full-body"], children: [
|
|
1900
|
+
/* @__PURE__ */ jsx("div", { className: styles$m["close-button"], children: handleClose && /* @__PURE__ */ jsx(
|
|
1885
1901
|
FCloseIcon,
|
|
1886
1902
|
{
|
|
1887
1903
|
handleClose: () => {
|
|
@@ -1893,21 +1909,21 @@ const FOpenImgFull = ({
|
|
|
1893
1909
|
/* @__PURE__ */ jsxs(
|
|
1894
1910
|
"div",
|
|
1895
1911
|
{
|
|
1896
|
-
className: styles$
|
|
1912
|
+
className: styles$m["image-container"],
|
|
1897
1913
|
onTouchStart: handleTouchStart,
|
|
1898
1914
|
onTouchMove: handleTouchMove,
|
|
1899
1915
|
onTouchEnd: handleTouchEnd,
|
|
1900
1916
|
children: [
|
|
1901
|
-
selectedImg > 0 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1917
|
+
selectedImg > 0 && /* @__PURE__ */ jsx("div", { className: styles$m["arrow-left"], children: /* @__PURE__ */ jsx(
|
|
1902
1918
|
FArrowIcon,
|
|
1903
1919
|
{
|
|
1904
1920
|
direction: "left",
|
|
1905
1921
|
handleClick: () => setSelectedImg(selectedImg - 1)
|
|
1906
1922
|
}
|
|
1907
1923
|
) }),
|
|
1908
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
1909
|
-
isLoading && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1910
|
-
error2 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
1924
|
+
/* @__PURE__ */ jsxs("div", { className: styles$m["image-wrapper"], children: [
|
|
1925
|
+
isLoading && /* @__PURE__ */ jsx("div", { className: styles$m["loading-spinner"], children: /* @__PURE__ */ jsx("div", { className: styles$m["spinner"] }) }),
|
|
1926
|
+
error2 ? /* @__PURE__ */ jsx("div", { className: styles$m["error-message"], children: "Ошибка загрузки изображения" }) : /* @__PURE__ */ jsx(
|
|
1911
1927
|
"img",
|
|
1912
1928
|
{
|
|
1913
1929
|
src: imagesUrl[selectedImg],
|
|
@@ -1917,7 +1933,7 @@ const FOpenImgFull = ({
|
|
|
1917
1933
|
setError(true);
|
|
1918
1934
|
setIsLoading(false);
|
|
1919
1935
|
},
|
|
1920
|
-
className: styles$
|
|
1936
|
+
className: styles$m["full-image"],
|
|
1921
1937
|
onClick: handleImageClick,
|
|
1922
1938
|
style: {
|
|
1923
1939
|
cursor: "zoom-in",
|
|
@@ -1927,7 +1943,7 @@ const FOpenImgFull = ({
|
|
|
1927
1943
|
}
|
|
1928
1944
|
)
|
|
1929
1945
|
] }),
|
|
1930
|
-
selectedImg < imagesUrl.length - 1 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1946
|
+
selectedImg < imagesUrl.length - 1 && /* @__PURE__ */ jsx("div", { className: styles$m["arrow-right"], children: /* @__PURE__ */ jsx(
|
|
1931
1947
|
FArrowIcon,
|
|
1932
1948
|
{
|
|
1933
1949
|
direction: "right",
|
|
@@ -1937,10 +1953,10 @@ const FOpenImgFull = ({
|
|
|
1937
1953
|
]
|
|
1938
1954
|
}
|
|
1939
1955
|
),
|
|
1940
|
-
imagesUrl.length > 1 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1956
|
+
imagesUrl.length > 1 && /* @__PURE__ */ jsx("div", { className: styles$m["progress-indicator"], children: imagesUrl.map((_, index) => /* @__PURE__ */ jsx(
|
|
1941
1957
|
"div",
|
|
1942
1958
|
{
|
|
1943
|
-
className: `${styles$
|
|
1959
|
+
className: `${styles$m["progress-dot"]} ${index === selectedImg ? styles$m["active"] : ""}`,
|
|
1944
1960
|
onClick: () => setSelectedImg(index)
|
|
1945
1961
|
},
|
|
1946
1962
|
index
|
|
@@ -1950,29 +1966,29 @@ const FOpenImgFull = ({
|
|
|
1950
1966
|
);
|
|
1951
1967
|
};
|
|
1952
1968
|
const card$2 = "_card_1ytel_1";
|
|
1953
|
-
const primary = "_primary_1ytel_69";
|
|
1954
|
-
const secondary = "_secondary_1ytel_81";
|
|
1955
|
-
const success$
|
|
1956
|
-
const danger = "_danger_1ytel_105";
|
|
1957
|
-
const warning$
|
|
1958
|
-
const info$
|
|
1959
|
-
const light = "_light_1ytel_141";
|
|
1960
|
-
const dark = "_dark_1ytel_153";
|
|
1969
|
+
const primary$1 = "_primary_1ytel_69";
|
|
1970
|
+
const secondary$1 = "_secondary_1ytel_81";
|
|
1971
|
+
const success$3 = "_success_1ytel_93";
|
|
1972
|
+
const danger$1 = "_danger_1ytel_105";
|
|
1973
|
+
const warning$5 = "_warning_1ytel_117";
|
|
1974
|
+
const info$3 = "_info_1ytel_129";
|
|
1975
|
+
const light$1 = "_light_1ytel_141";
|
|
1976
|
+
const dark$1 = "_dark_1ytel_153";
|
|
1961
1977
|
const link = "_link_1ytel_165";
|
|
1962
1978
|
const alert = "_alert_1ytel_177";
|
|
1963
1979
|
const accordExpand = "_accordExpand_1ytel_1";
|
|
1964
|
-
const styles$
|
|
1980
|
+
const styles$l = {
|
|
1965
1981
|
card: card$2,
|
|
1966
1982
|
"fv-accord-title": "_fv-accord-title_1ytel_44",
|
|
1967
1983
|
"fv-accord-arrow": "_fv-accord-arrow_1ytel_47",
|
|
1968
|
-
primary,
|
|
1969
|
-
secondary,
|
|
1970
|
-
success: success$
|
|
1971
|
-
danger,
|
|
1972
|
-
warning: warning$
|
|
1973
|
-
info: info$
|
|
1974
|
-
light,
|
|
1975
|
-
dark,
|
|
1984
|
+
primary: primary$1,
|
|
1985
|
+
secondary: secondary$1,
|
|
1986
|
+
success: success$3,
|
|
1987
|
+
danger: danger$1,
|
|
1988
|
+
warning: warning$5,
|
|
1989
|
+
info: info$3,
|
|
1990
|
+
light: light$1,
|
|
1991
|
+
dark: dark$1,
|
|
1976
1992
|
link,
|
|
1977
1993
|
alert,
|
|
1978
1994
|
"fv-accord-title-text": "_fv-accord-title-text_1ytel_223",
|
|
@@ -2001,18 +2017,18 @@ const FAccordion = ({
|
|
|
2001
2017
|
"div",
|
|
2002
2018
|
{
|
|
2003
2019
|
onClick,
|
|
2004
|
-
className: `${styles$
|
|
2020
|
+
className: `${styles$l.card} ${className || ""}`,
|
|
2005
2021
|
id,
|
|
2006
2022
|
children: /* @__PURE__ */ jsxs(
|
|
2007
2023
|
"details",
|
|
2008
2024
|
{
|
|
2009
|
-
className: styles$
|
|
2025
|
+
className: styles$l[variant],
|
|
2010
2026
|
open: isOpen,
|
|
2011
2027
|
style: st,
|
|
2012
2028
|
children: [
|
|
2013
|
-
/* @__PURE__ */ jsxs("summary", { className: styles$
|
|
2014
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
2015
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
2029
|
+
/* @__PURE__ */ jsxs("summary", { className: styles$l["fv-accord-title"], children: [
|
|
2030
|
+
/* @__PURE__ */ jsx("span", { className: styles$l["fv-accord-title-text"], children: title2 }),
|
|
2031
|
+
/* @__PURE__ */ jsx("span", { className: styles$l["fv-accord-arrow"], "aria-hidden": "true", children: /* @__PURE__ */ jsx(
|
|
2016
2032
|
"svg",
|
|
2017
2033
|
{
|
|
2018
2034
|
viewBox: "0 0 24 24",
|
|
@@ -2027,7 +2043,7 @@ const FAccordion = ({
|
|
|
2027
2043
|
}
|
|
2028
2044
|
) })
|
|
2029
2045
|
] }),
|
|
2030
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
2046
|
+
/* @__PURE__ */ jsx("div", { className: styles$l["fv-accord-content"], children: /* @__PURE__ */ jsx("div", { className: styles$l["fv-accord-body"], children }) })
|
|
2031
2047
|
]
|
|
2032
2048
|
}
|
|
2033
2049
|
)
|
|
@@ -2035,7 +2051,7 @@ const FAccordion = ({
|
|
|
2035
2051
|
);
|
|
2036
2052
|
};
|
|
2037
2053
|
const container$1 = "_container_qk7bc_1";
|
|
2038
|
-
const styles$
|
|
2054
|
+
const styles$k = {
|
|
2039
2055
|
container: container$1,
|
|
2040
2056
|
"custom-file": "_custom-file_qk7bc_6",
|
|
2041
2057
|
"custom-file-input": "_custom-file-input_qk7bc_9",
|
|
@@ -2165,11 +2181,11 @@ const FInputFileForm = ({
|
|
|
2165
2181
|
setUploadProgress({});
|
|
2166
2182
|
}
|
|
2167
2183
|
}, [deleteFile]);
|
|
2168
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
2184
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$k.container, children: [
|
|
2169
2185
|
/* @__PURE__ */ jsxs(
|
|
2170
2186
|
"div",
|
|
2171
2187
|
{
|
|
2172
|
-
className: `${styles$
|
|
2188
|
+
className: `${styles$k["custom-file"]} ${styles$k["custom-file-dropzone"]} ${isDragging ? styles$k.dragging : ""}`,
|
|
2173
2189
|
style: st,
|
|
2174
2190
|
onDragOver: handleDragOver,
|
|
2175
2191
|
onDragLeave: handleDragLeave,
|
|
@@ -2181,7 +2197,7 @@ const FInputFileForm = ({
|
|
|
2181
2197
|
required,
|
|
2182
2198
|
accept,
|
|
2183
2199
|
type: "file",
|
|
2184
|
-
className: `${styles$
|
|
2200
|
+
className: `${styles$k["custom-file-input"]} ${className || ""}`,
|
|
2185
2201
|
name,
|
|
2186
2202
|
id,
|
|
2187
2203
|
title: title2,
|
|
@@ -2192,7 +2208,7 @@ const FInputFileForm = ({
|
|
|
2192
2208
|
ref: inputRef
|
|
2193
2209
|
}
|
|
2194
2210
|
),
|
|
2195
|
-
/* @__PURE__ */ jsxs("label", { htmlFor: id, className: styles$
|
|
2211
|
+
/* @__PURE__ */ jsxs("label", { htmlFor: id, className: styles$k["custom-file-label"], style: disabled2 ? { backgroundColor: "#F3F3F3", border: "1px dashed #C4C4C4" } : void 0, children: [
|
|
2196
2212
|
/* @__PURE__ */ jsxs("svg", { width: "30", height: "30", fill: "currentColor", viewBox: "0 0 16 16", children: [
|
|
2197
2213
|
/* @__PURE__ */ jsx("path", { "fill-rule": "evenodd", d: "M7.646 5.146a.5.5 0 0 1 .708 0l2 2a.5.5 0 0 1-.708.708L8.5 6.707V10.5a.5.5 0 0 1-1 0V6.707L6.354 7.854a.5.5 0 1 1-.708-.708z" }),
|
|
2198
2214
|
/* @__PURE__ */ jsx("path", { d: "M4.406 3.342A5.53 5.53 0 0 1 8 2c2.69 0 4.923 2 5.166 4.579C14.758 6.804 16 8.137 16 9.773 16 11.569 14.502 13 12.687 13H3.781C1.708 13 0 11.366 0 9.318c0-1.763 1.266-3.223 2.942-3.593.143-.863.698-1.723 1.464-2.383m.653.757c-.757.653-1.153 1.44-1.153 2.056v.448l-.445.049C2.064 6.805 1 7.952 1 9.318 1 10.785 2.23 12 3.781 12h8.906C13.98 12 15 10.988 15 9.773c0-1.216-1.02-2.228-2.313-2.228h-.5v-.5C12.188 4.825 10.328 3 8 3a4.53 4.53 0 0 0-2.941 1.1z" })
|
|
@@ -2218,8 +2234,8 @@ const FInputFileForm = ({
|
|
|
2218
2234
|
]
|
|
2219
2235
|
}
|
|
2220
2236
|
),
|
|
2221
|
-
errors.length > 0 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
2222
|
-
showPreview && selectedFiles.length > 0 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
2237
|
+
errors.length > 0 && /* @__PURE__ */ jsx("div", { className: styles$k.errors, children: errors.map((error2, index) => /* @__PURE__ */ jsx("div", { className: styles$k.error, children: error2 }, index)) }),
|
|
2238
|
+
showPreview && selectedFiles.length > 0 && /* @__PURE__ */ jsx("div", { className: styles$k["custom-files-preview"], children: selectedFiles.map((file, index) => /* @__PURE__ */ jsx("div", { className: styles$k.fileItem, children: /* @__PURE__ */ jsx(
|
|
2223
2239
|
FFile,
|
|
2224
2240
|
{
|
|
2225
2241
|
name: file.name,
|
|
@@ -2230,7 +2246,7 @@ const FInputFileForm = ({
|
|
|
2230
2246
|
) }, index)) })
|
|
2231
2247
|
] });
|
|
2232
2248
|
};
|
|
2233
|
-
const styles$
|
|
2249
|
+
const styles$j = {
|
|
2234
2250
|
"f-select": "_f-select_1n6ag_1",
|
|
2235
2251
|
"f-select__control-element": "_f-select__control-element_1n6ag_5"
|
|
2236
2252
|
};
|
|
@@ -2260,7 +2276,7 @@ const FSelect = forwardRef(
|
|
|
2260
2276
|
return /* @__PURE__ */ jsxs(
|
|
2261
2277
|
"div",
|
|
2262
2278
|
{
|
|
2263
|
-
className: `f-form-element ${styles$
|
|
2279
|
+
className: `f-form-element ${styles$j["f-select"]}`,
|
|
2264
2280
|
style: mergedStyle,
|
|
2265
2281
|
id: inputId + "-select-block",
|
|
2266
2282
|
role: "group",
|
|
@@ -2285,7 +2301,7 @@ const FSelect = forwardRef(
|
|
|
2285
2301
|
...props,
|
|
2286
2302
|
id: inputId,
|
|
2287
2303
|
disabled: props.disabled || load,
|
|
2288
|
-
className: `f-form-element__control-element ${styles$
|
|
2304
|
+
className: `f-form-element__control-element ${styles$j["f-select__control-element"]} ${errText ? "error" : ""} ${props.className || ""}`,
|
|
2289
2305
|
children: !load && children
|
|
2290
2306
|
}
|
|
2291
2307
|
),
|
|
@@ -2381,7 +2397,7 @@ const FFullDateField = forwardRef(
|
|
|
2381
2397
|
}
|
|
2382
2398
|
);
|
|
2383
2399
|
const active$3 = "_active_1h0yy_41";
|
|
2384
|
-
const styles$
|
|
2400
|
+
const styles$i = {
|
|
2385
2401
|
"f-select-search-db": "_f-select-search-db_1h0yy_1",
|
|
2386
2402
|
"f-select-search-db__input": "_f-select-search-db__input_1h0yy_7",
|
|
2387
2403
|
"f-select-search-db__input_field": "_f-select-search-db__input_field_1h0yy_11",
|
|
@@ -2565,12 +2581,12 @@ const FSelectSearchDb = ({
|
|
|
2565
2581
|
"div",
|
|
2566
2582
|
{
|
|
2567
2583
|
ref: containerRef,
|
|
2568
|
-
className: `${styles$
|
|
2584
|
+
className: `${styles$i["f-select-search-db"]} ${className || ""}`,
|
|
2569
2585
|
style: st,
|
|
2570
2586
|
id,
|
|
2571
2587
|
"data-position": dropdownPosition,
|
|
2572
2588
|
children: [
|
|
2573
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
2589
|
+
/* @__PURE__ */ jsxs("div", { className: styles$i["f-select-search-db__input"], children: [
|
|
2574
2590
|
/* @__PURE__ */ jsx(
|
|
2575
2591
|
FTextField,
|
|
2576
2592
|
{
|
|
@@ -2581,7 +2597,7 @@ const FSelectSearchDb = ({
|
|
|
2581
2597
|
label,
|
|
2582
2598
|
type,
|
|
2583
2599
|
placeholder,
|
|
2584
|
-
className: styles$
|
|
2600
|
+
className: styles$i["f-select-search-db__input_field"],
|
|
2585
2601
|
value: valueInput,
|
|
2586
2602
|
onChange: handlerOnChange,
|
|
2587
2603
|
onFocus,
|
|
@@ -2598,7 +2614,7 @@ const FSelectSearchDb = ({
|
|
|
2598
2614
|
!load && !disabled2 && arrObject.length > 0 && /* @__PURE__ */ jsx(
|
|
2599
2615
|
"div",
|
|
2600
2616
|
{
|
|
2601
|
-
className: styles$
|
|
2617
|
+
className: styles$i["f-select-search-db__input_arrow"],
|
|
2602
2618
|
style: { marginTop: label ? "28px" : "7px" },
|
|
2603
2619
|
onClick: handleArrowClick,
|
|
2604
2620
|
children: /* @__PURE__ */ jsx(FArrowIcon, { direction: isDropdownOpen ? "up" : "down", size: 15 })
|
|
@@ -2610,8 +2626,8 @@ const FSelectSearchDb = ({
|
|
|
2610
2626
|
"div",
|
|
2611
2627
|
{
|
|
2612
2628
|
ref: dropdownRef,
|
|
2613
|
-
className: `${styles$
|
|
2614
|
-
children: arrObject.length === 0 && valueInput.trim() === "" ? /* @__PURE__ */ jsx("li", { children: "Введите текст" }) : arrObject.length === 0 && valueInput.trim() !== "" && !load ? /* @__PURE__ */ jsx("li", { children: "Ничего не найдено" }) : /* @__PURE__ */ jsx("ul", { className: styles$
|
|
2629
|
+
className: `${styles$i["f-select-search-db__dropdown"]} ${isDropdownOpen ? styles$i.active : ""}`,
|
|
2630
|
+
children: arrObject.length === 0 && valueInput.trim() === "" ? /* @__PURE__ */ jsx("li", { children: "Введите текст" }) : arrObject.length === 0 && valueInput.trim() !== "" && !load ? /* @__PURE__ */ jsx("li", { children: "Ничего не найдено" }) : /* @__PURE__ */ jsx("ul", { className: styles$i["f-select-search-db__dropdown_content"], children: arrObject.slice(0, 10).map((opt, index) => /* @__PURE__ */ jsx("li", { onMouseDown: () => handleItemClick(opt), children: selectItem(opt) }, index)) })
|
|
2615
2631
|
}
|
|
2616
2632
|
),
|
|
2617
2633
|
dropdownPortalRef.current
|
|
@@ -2620,7 +2636,7 @@ const FSelectSearchDb = ({
|
|
|
2620
2636
|
}
|
|
2621
2637
|
);
|
|
2622
2638
|
};
|
|
2623
|
-
const styles$
|
|
2639
|
+
const styles$h = {
|
|
2624
2640
|
"f-text-area": "_f-text-area_1ywhr_1"
|
|
2625
2641
|
};
|
|
2626
2642
|
const FTextArea = forwardRef(
|
|
@@ -2649,7 +2665,7 @@ const FTextArea = forwardRef(
|
|
|
2649
2665
|
return /* @__PURE__ */ jsxs(
|
|
2650
2666
|
"div",
|
|
2651
2667
|
{
|
|
2652
|
-
className: `f-form-element ${styles$
|
|
2668
|
+
className: `f-form-element ${styles$h["f-text-area"]} ${className || ""}`,
|
|
2653
2669
|
style: mergedStyle,
|
|
2654
2670
|
role: "group",
|
|
2655
2671
|
id: areaId + "-text-area-block",
|
|
@@ -3022,7 +3038,7 @@ const FNative = ({
|
|
|
3022
3038
|
const horizontal = "_horizontal_1djm2_1";
|
|
3023
3039
|
const vertical = "_vertical_1djm2_7";
|
|
3024
3040
|
const active$2 = "_active_1djm2_51";
|
|
3025
|
-
const styles$
|
|
3041
|
+
const styles$g = {
|
|
3026
3042
|
"f-tabs": "_f-tabs_1djm2_1",
|
|
3027
3043
|
horizontal,
|
|
3028
3044
|
vertical,
|
|
@@ -3041,7 +3057,7 @@ const FTabs = ({
|
|
|
3041
3057
|
{
|
|
3042
3058
|
id,
|
|
3043
3059
|
style: st,
|
|
3044
|
-
className: `${styles$
|
|
3060
|
+
className: `${styles$g["f-tabs"]} ${styles$g[orientation]} ${className || ""}`,
|
|
3045
3061
|
children
|
|
3046
3062
|
}
|
|
3047
3063
|
);
|
|
@@ -3058,7 +3074,7 @@ const FTab = forwardRef(({
|
|
|
3058
3074
|
ref,
|
|
3059
3075
|
type: "button",
|
|
3060
3076
|
style: st,
|
|
3061
|
-
className: `${styles$
|
|
3077
|
+
className: `${styles$g["f-tabs__tab"]} ${active2 ? styles$g["active"] : ""} ${props.className || ""}`,
|
|
3062
3078
|
...props,
|
|
3063
3079
|
children
|
|
3064
3080
|
}
|
|
@@ -3066,7 +3082,7 @@ const FTab = forwardRef(({
|
|
|
3066
3082
|
});
|
|
3067
3083
|
FTab.displayName = "FTab";
|
|
3068
3084
|
const disabled$2 = "_disabled_2ty2i_40";
|
|
3069
|
-
const styles$
|
|
3085
|
+
const styles$f = {
|
|
3070
3086
|
"f-dropdown": "_f-dropdown_2ty2i_1",
|
|
3071
3087
|
"f-dropdown__arrow": "_f-dropdown__arrow_2ty2i_6",
|
|
3072
3088
|
"f-dropdown__content": "_f-dropdown__content_2ty2i_10",
|
|
@@ -3116,7 +3132,7 @@ const FDropdown = forwardRef(({
|
|
|
3116
3132
|
return child;
|
|
3117
3133
|
});
|
|
3118
3134
|
};
|
|
3119
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
3135
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$f["f-dropdown"], ref, ...props, children: [
|
|
3120
3136
|
/* @__PURE__ */ jsx(
|
|
3121
3137
|
FButton,
|
|
3122
3138
|
{
|
|
@@ -3125,21 +3141,21 @@ const FDropdown = forwardRef(({
|
|
|
3125
3141
|
size,
|
|
3126
3142
|
disabled: disabled2,
|
|
3127
3143
|
st,
|
|
3128
|
-
className: `${styles$
|
|
3144
|
+
className: `${styles$f["f-dropdown__button"]} ${className || ""}`,
|
|
3129
3145
|
id,
|
|
3130
3146
|
onClick: () => setIsOpen((v) => !v),
|
|
3131
3147
|
"aria-haspopup": "menu",
|
|
3132
3148
|
"aria-expanded": isOpen,
|
|
3133
3149
|
children: /* @__PURE__ */ jsxs(FStack, { direction: "row", spacing: 2, justifyContent: "center", alignItems: "center", children: [
|
|
3134
3150
|
label,
|
|
3135
|
-
/* @__PURE__ */ jsx(FArrowIcon, { className: styles$
|
|
3151
|
+
/* @__PURE__ */ jsx(FArrowIcon, { className: styles$f["f-dropdown__arrow"], size: 16, color: "light", direction: isOpen ? "up" : "down" })
|
|
3136
3152
|
] })
|
|
3137
3153
|
}
|
|
3138
3154
|
),
|
|
3139
3155
|
/* @__PURE__ */ jsx(
|
|
3140
3156
|
"div",
|
|
3141
3157
|
{
|
|
3142
|
-
className: styles$
|
|
3158
|
+
className: styles$f["f-dropdown__content"] + (isOpen ? " " + styles$f["f-dropdown__content--open"] : ""),
|
|
3143
3159
|
role: "menu",
|
|
3144
3160
|
children: renderChildren()
|
|
3145
3161
|
}
|
|
@@ -3160,7 +3176,7 @@ const FDropdownItem = ({
|
|
|
3160
3176
|
{
|
|
3161
3177
|
id,
|
|
3162
3178
|
style: st,
|
|
3163
|
-
className: `${styles$
|
|
3179
|
+
className: `${styles$f["f-dropdown__content-link"]} ${className || ""} ${disabled2 ? styles$f["disabled"] : ""}`,
|
|
3164
3180
|
onClick: disabled2 ? void 0 : onClick,
|
|
3165
3181
|
"aria-disabled": disabled2,
|
|
3166
3182
|
role: "menuitem",
|
|
@@ -3168,7 +3184,7 @@ const FDropdownItem = ({
|
|
|
3168
3184
|
}
|
|
3169
3185
|
);
|
|
3170
3186
|
};
|
|
3171
|
-
const styles$
|
|
3187
|
+
const styles$e = {
|
|
3172
3188
|
"f-search-box": "_f-search-box_1s9ms_1",
|
|
3173
3189
|
"f-search-box__input": "_f-search-box__input_1s9ms_6",
|
|
3174
3190
|
"f-search-box__button": "_f-search-box__button_1s9ms_12",
|
|
@@ -3194,7 +3210,7 @@ const FSearchBox = forwardRef(
|
|
|
3194
3210
|
type,
|
|
3195
3211
|
...props
|
|
3196
3212
|
}, ref) => {
|
|
3197
|
-
return /* @__PURE__ */ jsxs("div", { className: `${styles$
|
|
3213
|
+
return /* @__PURE__ */ jsxs("div", { className: `${styles$e["f-search-box"]} form-group`, style: st, children: [
|
|
3198
3214
|
/* @__PURE__ */ jsx(
|
|
3199
3215
|
FTextField,
|
|
3200
3216
|
{
|
|
@@ -3208,14 +3224,14 @@ const FSearchBox = forwardRef(
|
|
|
3208
3224
|
errText: typeof errText === "string" ? [errText] : errText,
|
|
3209
3225
|
load,
|
|
3210
3226
|
...props,
|
|
3211
|
-
className: `${styles$
|
|
3227
|
+
className: `${styles$e["f-search-box__input"]} ${props.className || ""}`
|
|
3212
3228
|
}
|
|
3213
3229
|
),
|
|
3214
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
3230
|
+
/* @__PURE__ */ jsxs("div", { className: styles$e["f-search-box__button"], style: { marginTop: label ? "26px" : "0" }, children: [
|
|
3215
3231
|
/* @__PURE__ */ jsx(
|
|
3216
3232
|
FButton,
|
|
3217
3233
|
{
|
|
3218
|
-
className: `${styles$
|
|
3234
|
+
className: `${styles$e["f-search-box__button_search"]} ${clearDataFromInput ? styles$e["clear-on"] : ""} f-search-box__button_search-st`,
|
|
3219
3235
|
type: "button",
|
|
3220
3236
|
disabled: disabled2,
|
|
3221
3237
|
onClick: onClickButton,
|
|
@@ -3227,7 +3243,7 @@ const FSearchBox = forwardRef(
|
|
|
3227
3243
|
clearDataFromInput && /* @__PURE__ */ jsx(
|
|
3228
3244
|
FButton,
|
|
3229
3245
|
{
|
|
3230
|
-
className: `${styles$
|
|
3246
|
+
className: `${styles$e["f-search-box__button_clear"]} f-search-box__button_clear-st`,
|
|
3231
3247
|
type: "button",
|
|
3232
3248
|
disabled: disabled2,
|
|
3233
3249
|
onClick: clearDataFromInput,
|
|
@@ -3240,7 +3256,7 @@ const FSearchBox = forwardRef(
|
|
|
3240
3256
|
] });
|
|
3241
3257
|
}
|
|
3242
3258
|
);
|
|
3243
|
-
const styles$
|
|
3259
|
+
const styles$d = {
|
|
3244
3260
|
"f-carousel": "_f-carousel_d5w12_1",
|
|
3245
3261
|
"f-carousel__viewport": "_f-carousel__viewport_d5w12_8",
|
|
3246
3262
|
"f-carousel__track": "_f-carousel__track_d5w12_12",
|
|
@@ -3323,10 +3339,10 @@ const FCarousel = ({
|
|
|
3323
3339
|
const handleTouchEnd = () => {
|
|
3324
3340
|
startX.current = null;
|
|
3325
3341
|
};
|
|
3326
|
-
const rootClass = [styles$
|
|
3342
|
+
const rootClass = [styles$d["f-carousel"], className].filter(Boolean).join(" ");
|
|
3327
3343
|
const trackClass = [
|
|
3328
|
-
styles$
|
|
3329
|
-
isAnimating ? styles$
|
|
3344
|
+
styles$d["f-carousel__track"],
|
|
3345
|
+
isAnimating ? styles$d["f-carousel__track--animating"] : ""
|
|
3330
3346
|
].filter(Boolean).join(" ");
|
|
3331
3347
|
const trackStyle = {
|
|
3332
3348
|
transform: `translateX(-${100 / itemsCount * current}%)`,
|
|
@@ -3337,7 +3353,7 @@ const FCarousel = ({
|
|
|
3337
3353
|
showArrows && /* @__PURE__ */ jsx(
|
|
3338
3354
|
"button",
|
|
3339
3355
|
{
|
|
3340
|
-
className: `${styles$
|
|
3356
|
+
className: `${styles$d["f-carousel__arrow"]} ${styles$d["f-carousel__arrow--left"]}`,
|
|
3341
3357
|
onClick: handlePrev,
|
|
3342
3358
|
disabled: !loop && current === 0,
|
|
3343
3359
|
"aria-label": "Назад",
|
|
@@ -3347,14 +3363,14 @@ const FCarousel = ({
|
|
|
3347
3363
|
/* @__PURE__ */ jsx(
|
|
3348
3364
|
"div",
|
|
3349
3365
|
{
|
|
3350
|
-
className: styles$
|
|
3366
|
+
className: styles$d["f-carousel__viewport"],
|
|
3351
3367
|
onTouchStart: handleTouchStart,
|
|
3352
3368
|
onTouchMove: handleTouchMove,
|
|
3353
3369
|
onTouchEnd: handleTouchEnd,
|
|
3354
3370
|
children: /* @__PURE__ */ jsx("div", { ref: trackRef, className: trackClass, style: trackStyle, children: children.map((child, idx) => /* @__PURE__ */ jsx(
|
|
3355
3371
|
"div",
|
|
3356
3372
|
{
|
|
3357
|
-
className: styles$
|
|
3373
|
+
className: styles$d["f-carousel__item"],
|
|
3358
3374
|
style: { width: `${100 / itemsCount}%` },
|
|
3359
3375
|
children: child
|
|
3360
3376
|
},
|
|
@@ -3365,19 +3381,19 @@ const FCarousel = ({
|
|
|
3365
3381
|
showArrows && /* @__PURE__ */ jsx(
|
|
3366
3382
|
"button",
|
|
3367
3383
|
{
|
|
3368
|
-
className: `${styles$
|
|
3384
|
+
className: `${styles$d["f-carousel__arrow"]} ${styles$d["f-carousel__arrow--right"]}`,
|
|
3369
3385
|
onClick: handleNext,
|
|
3370
3386
|
disabled: !loop && current >= itemsCount - visibleCount,
|
|
3371
3387
|
"aria-label": "Вперёд",
|
|
3372
3388
|
children: /* @__PURE__ */ jsx("img", { src: arrowRight, alt: "Следующий слайд" })
|
|
3373
3389
|
}
|
|
3374
3390
|
),
|
|
3375
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
3391
|
+
/* @__PURE__ */ jsx("div", { className: styles$d["f-carousel__indicators"], children: Array.from({ length: itemsCount - visibleCount + 1 }).map((_, idx) => /* @__PURE__ */ jsx(
|
|
3376
3392
|
"button",
|
|
3377
3393
|
{
|
|
3378
3394
|
className: [
|
|
3379
|
-
styles$
|
|
3380
|
-
idx === current ? styles$
|
|
3395
|
+
styles$d["f-carousel__indicator"],
|
|
3396
|
+
idx === current ? styles$d["f-carousel__indicator--active"] : ""
|
|
3381
3397
|
].join(" "),
|
|
3382
3398
|
onClick: () => setCurrent(idx),
|
|
3383
3399
|
"aria-label": `Перейти к слайду ${idx + 1}`
|
|
@@ -3391,10 +3407,10 @@ const FCarouselItem = ({
|
|
|
3391
3407
|
className,
|
|
3392
3408
|
id
|
|
3393
3409
|
}) => {
|
|
3394
|
-
return /* @__PURE__ */ jsx("div", { className: `${styles$
|
|
3410
|
+
return /* @__PURE__ */ jsx("div", { className: `${styles$d["f-carousel-item"]} ${className || ""}`, id, children });
|
|
3395
3411
|
};
|
|
3396
3412
|
const skeleton = "_skeleton_3ica6_1";
|
|
3397
|
-
const styles$
|
|
3413
|
+
const styles$c = {
|
|
3398
3414
|
"skeleton-block": "_skeleton-block_3ica6_1",
|
|
3399
3415
|
skeleton
|
|
3400
3416
|
};
|
|
@@ -3404,7 +3420,7 @@ const FSkeleton = ({ children, enable, width, height }) => {
|
|
|
3404
3420
|
const skeletons = useRef([]);
|
|
3405
3421
|
const createSkeleton = (element) => {
|
|
3406
3422
|
const skeleton2 = document.createElement("div");
|
|
3407
|
-
skeleton2.className = styles$
|
|
3423
|
+
skeleton2.className = styles$c.skeleton;
|
|
3408
3424
|
const computedStyle = window.getComputedStyle(element);
|
|
3409
3425
|
skeleton2.style.width = width ?? computedStyle.width;
|
|
3410
3426
|
skeleton2.style.height = height ?? computedStyle.height;
|
|
@@ -3451,10 +3467,10 @@ const FSkeleton = ({ children, enable, width, height }) => {
|
|
|
3451
3467
|
restoreOriginalElements();
|
|
3452
3468
|
};
|
|
3453
3469
|
}, [enable]);
|
|
3454
|
-
return /* @__PURE__ */ jsx("div", { ref: elementRef, className: styles$
|
|
3470
|
+
return /* @__PURE__ */ jsx("div", { ref: elementRef, className: styles$c["skeleton-block"], children });
|
|
3455
3471
|
};
|
|
3456
3472
|
const active$1 = "_active_lv3xi_122";
|
|
3457
|
-
const styles$
|
|
3473
|
+
const styles$b = {
|
|
3458
3474
|
"wave-nav-wrapper": "_wave-nav-wrapper_lv3xi_5",
|
|
3459
3475
|
"wave-nav-grid-item": "_wave-nav-grid-item_lv3xi_17",
|
|
3460
3476
|
"wave-nav-bar": "_wave-nav-bar_lv3xi_27",
|
|
@@ -3468,7 +3484,7 @@ const FNavigateBar = ({
|
|
|
3468
3484
|
id,
|
|
3469
3485
|
className
|
|
3470
3486
|
}) => {
|
|
3471
|
-
return /* @__PURE__ */ jsx(FGrid, { obj: "container", id, className: `${styles$
|
|
3487
|
+
return /* @__PURE__ */ jsx(FGrid, { obj: "container", id, className: `${styles$b["wave-nav-wrapper"]} ${className || ""}`, children: /* @__PURE__ */ jsx(FGridRow, { children: /* @__PURE__ */ jsx(FGrid, { obj: "item", sm: 12, className: styles$b["wave-nav-grid-item"], children: /* @__PURE__ */ jsx("nav", { style: st, className: styles$b["wave-nav-bar"], children: /* @__PURE__ */ jsx("ul", { className: styles$b["wave-nav-list"], children }) }) }) }) });
|
|
3472
3488
|
};
|
|
3473
3489
|
const FNavigateBarItem = ({
|
|
3474
3490
|
st,
|
|
@@ -3484,7 +3500,7 @@ const FNavigateBarItem = ({
|
|
|
3484
3500
|
{
|
|
3485
3501
|
id,
|
|
3486
3502
|
style: st || style,
|
|
3487
|
-
className: `${styles$
|
|
3503
|
+
className: `${styles$b["wave-nav-item"]} ${activeClass ? styles$b.active : ""} ${className || ""}`,
|
|
3488
3504
|
...rest,
|
|
3489
3505
|
children
|
|
3490
3506
|
}
|
|
@@ -3500,7 +3516,7 @@ const linksList = "_linksList_14i30_124";
|
|
|
3500
3516
|
const linkItem = "_linkItem_14i30_131";
|
|
3501
3517
|
const badge = "_badge_14i30_172";
|
|
3502
3518
|
const disabled$1 = "_disabled_14i30_197";
|
|
3503
|
-
const styles$
|
|
3519
|
+
const styles$a = {
|
|
3504
3520
|
reportsPageContainer,
|
|
3505
3521
|
searchBar,
|
|
3506
3522
|
reportsGrid,
|
|
@@ -3526,8 +3542,8 @@ const FMenuBlockLinks = ({
|
|
|
3526
3542
|
...columns ? { "--cols": columns } : {},
|
|
3527
3543
|
...st
|
|
3528
3544
|
};
|
|
3529
|
-
return /* @__PURE__ */ jsxs("div", { className: `${styles$
|
|
3530
|
-
withSearch && /* @__PURE__ */ jsx("div", { className: styles$
|
|
3545
|
+
return /* @__PURE__ */ jsxs("div", { className: `${styles$a.reportsPageContainer} ${className ?? ""}`.trim(), id, children: [
|
|
3546
|
+
withSearch && /* @__PURE__ */ jsx("div", { className: styles$a.searchBar, children: /* @__PURE__ */ jsx(
|
|
3531
3547
|
"input",
|
|
3532
3548
|
{
|
|
3533
3549
|
type: "text",
|
|
@@ -3536,7 +3552,7 @@ const FMenuBlockLinks = ({
|
|
|
3536
3552
|
onChange: (e) => setSearchValue(e.target.value)
|
|
3537
3553
|
}
|
|
3538
3554
|
) }),
|
|
3539
|
-
/* @__PURE__ */ jsx(MenuSearchContext.Provider, { value: searchValue, children: /* @__PURE__ */ jsx("div", { className: styles$
|
|
3555
|
+
/* @__PURE__ */ jsx(MenuSearchContext.Provider, { value: searchValue, children: /* @__PURE__ */ jsx("div", { className: styles$a.reportsGrid, style: layoutStyle, children }) })
|
|
3540
3556
|
] });
|
|
3541
3557
|
};
|
|
3542
3558
|
const getElementText = (node) => {
|
|
@@ -3572,11 +3588,11 @@ const FMenuLinks = ({
|
|
|
3572
3588
|
const badgeText = badges[originalIndex] || child.props["data-badge"];
|
|
3573
3589
|
const childClass = [
|
|
3574
3590
|
child.props.className,
|
|
3575
|
-
styles$
|
|
3576
|
-
isDisabled ? styles$
|
|
3591
|
+
styles$a.linkItem,
|
|
3592
|
+
isDisabled ? styles$a.disabled : ""
|
|
3577
3593
|
].filter(Boolean).join(" ");
|
|
3578
3594
|
const innerContent = badgeText ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3579
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
3595
|
+
/* @__PURE__ */ jsx("span", { className: styles$a.badge, children: badgeText }),
|
|
3580
3596
|
child.props.children
|
|
3581
3597
|
] }) : child.props.children;
|
|
3582
3598
|
return React.cloneElement(child, {
|
|
@@ -3589,15 +3605,15 @@ const FMenuLinks = ({
|
|
|
3589
3605
|
}
|
|
3590
3606
|
});
|
|
3591
3607
|
});
|
|
3592
|
-
return /* @__PURE__ */ jsxs("div", { className: `${styles$
|
|
3593
|
-
title2 && /* @__PURE__ */ jsxs("div", { className: styles$
|
|
3608
|
+
return /* @__PURE__ */ jsxs("div", { className: `${styles$a.card} ${className ?? ""}`.trim(), style: st, id, children: [
|
|
3609
|
+
title2 && /* @__PURE__ */ jsxs("div", { className: styles$a.cardHeader, children: [
|
|
3594
3610
|
/* @__PURE__ */ jsx("h3", { children: title2 }),
|
|
3595
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
3611
|
+
/* @__PURE__ */ jsx("span", { className: styles$a.countBadge, children: filteredChildren.length })
|
|
3596
3612
|
] }),
|
|
3597
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
3613
|
+
/* @__PURE__ */ jsx("div", { className: styles$a.linksList, children: enhancedChildren })
|
|
3598
3614
|
] });
|
|
3599
3615
|
};
|
|
3600
|
-
const styles$
|
|
3616
|
+
const styles$9 = {
|
|
3601
3617
|
"f-tooltip": "_f-tooltip_xpnbo_1",
|
|
3602
3618
|
"f-tooltip--open": "_f-tooltip--open_xpnbo_17",
|
|
3603
3619
|
"f-tooltip--exiting": "_f-tooltip--exiting_xpnbo_22",
|
|
@@ -3786,11 +3802,11 @@ const FTooltip = ({
|
|
|
3786
3802
|
wrappedChild = cloneElement(children, childProps);
|
|
3787
3803
|
}
|
|
3788
3804
|
const tooltipClasses = [
|
|
3789
|
-
styles$
|
|
3790
|
-
styles$
|
|
3791
|
-
arrow2 ? styles$
|
|
3792
|
-
isVisible ? styles$
|
|
3793
|
-
isExiting ? styles$
|
|
3805
|
+
styles$9["f-tooltip"],
|
|
3806
|
+
styles$9[`f-tooltip--${placement}`],
|
|
3807
|
+
arrow2 ? styles$9["f-tooltip--with-arrow"] : "",
|
|
3808
|
+
isVisible ? styles$9["f-tooltip--open"] : "",
|
|
3809
|
+
isExiting ? styles$9["f-tooltip--exiting"] : "",
|
|
3794
3810
|
className
|
|
3795
3811
|
].filter(Boolean).join(" ");
|
|
3796
3812
|
const tooltipElement = mountTooltip && title2 ? /* @__PURE__ */ jsxs(
|
|
@@ -3801,8 +3817,8 @@ const FTooltip = ({
|
|
|
3801
3817
|
style: { ...style, ...tooltipStyles },
|
|
3802
3818
|
role: "tooltip",
|
|
3803
3819
|
children: [
|
|
3804
|
-
arrow2 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
3805
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
3820
|
+
arrow2 && /* @__PURE__ */ jsx("div", { className: styles$9["f-tooltip__arrow"] }),
|
|
3821
|
+
/* @__PURE__ */ jsx("div", { className: styles$9["f-tooltip__content"], children: title2 })
|
|
3806
3822
|
]
|
|
3807
3823
|
}
|
|
3808
3824
|
) : null;
|
|
@@ -3814,7 +3830,7 @@ const FTooltip = ({
|
|
|
3814
3830
|
const rotate = "_rotate_1kvw2_38";
|
|
3815
3831
|
const focused = "_focused_1kvw2_87";
|
|
3816
3832
|
const selected = "_selected_1kvw2_90";
|
|
3817
|
-
const styles$
|
|
3833
|
+
const styles$8 = {
|
|
3818
3834
|
"f-search-select": "_f-search-select_1kvw2_3",
|
|
3819
3835
|
"f-select-native-hidden": "_f-select-native-hidden_1kvw2_9",
|
|
3820
3836
|
"f-select-actions": "_f-select-actions_1kvw2_20",
|
|
@@ -3845,7 +3861,7 @@ const HighlightedText = ({ text, highlight }) => {
|
|
|
3845
3861
|
const regex = new RegExp(`(${escapeRegExp(highlight)})`, "gi");
|
|
3846
3862
|
const parts = text.split(regex);
|
|
3847
3863
|
return /* @__PURE__ */ jsx("span", { children: parts.map(
|
|
3848
|
-
(part, i) => regex.test(part) ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
3864
|
+
(part, i) => regex.test(part) ? /* @__PURE__ */ jsx("span", { className: styles$8["f-select-highlight"], children: part }, i) : /* @__PURE__ */ jsx("span", { children: part }, i)
|
|
3849
3865
|
) });
|
|
3850
3866
|
};
|
|
3851
3867
|
const FSearchableSelect = forwardRef(
|
|
@@ -4058,7 +4074,7 @@ const FSearchableSelect = forwardRef(
|
|
|
4058
4074
|
return /* @__PURE__ */ jsxs(
|
|
4059
4075
|
"div",
|
|
4060
4076
|
{
|
|
4061
|
-
className: `f-form-element ${styles$
|
|
4077
|
+
className: `f-form-element ${styles$8["f-search-select"]} ${restProps.className || ""}`,
|
|
4062
4078
|
style: mergedStyle,
|
|
4063
4079
|
ref: containerRef,
|
|
4064
4080
|
id: inputId + "-block",
|
|
@@ -4080,7 +4096,7 @@ const FSearchableSelect = forwardRef(
|
|
|
4080
4096
|
value: restProps.value !== void 0 ? String(restProps.value) : "",
|
|
4081
4097
|
onChange: () => {
|
|
4082
4098
|
},
|
|
4083
|
-
className: styles$
|
|
4099
|
+
className: styles$8["f-select-native-hidden"],
|
|
4084
4100
|
tabIndex: -1,
|
|
4085
4101
|
disabled: disabled2,
|
|
4086
4102
|
"aria-hidden": "true"
|
|
@@ -4094,7 +4110,7 @@ const FSearchableSelect = forwardRef(
|
|
|
4094
4110
|
id: inputId,
|
|
4095
4111
|
type: "text",
|
|
4096
4112
|
autoComplete: "off",
|
|
4097
|
-
className: `f-form-element__control-element ${styles$
|
|
4113
|
+
className: `f-form-element__control-element ${styles$8["has-icons"]} ${errText ? "error" : ""}`,
|
|
4098
4114
|
...restProps,
|
|
4099
4115
|
disabled: disabled2 || load,
|
|
4100
4116
|
value: searchQuery,
|
|
@@ -4116,41 +4132,41 @@ const FSearchableSelect = forwardRef(
|
|
|
4116
4132
|
}
|
|
4117
4133
|
}
|
|
4118
4134
|
),
|
|
4119
|
-
load ? /* @__PURE__ */ jsx("span", { className: "f-form-element__loader", children: /* @__PURE__ */ jsx(FLoadIcon, { size: 10 }) }) : /* @__PURE__ */ jsxs("div", { className: styles$
|
|
4135
|
+
load ? /* @__PURE__ */ jsx("span", { className: "f-form-element__loader", children: /* @__PURE__ */ jsx(FLoadIcon, { size: 10 }) }) : /* @__PURE__ */ jsxs("div", { className: styles$8["f-select-actions"], children: [
|
|
4120
4136
|
hasValue && !disabled2 && /* @__PURE__ */ jsx(
|
|
4121
4137
|
"div",
|
|
4122
4138
|
{
|
|
4123
4139
|
onClick: handleClear,
|
|
4124
|
-
className: `${styles$
|
|
4140
|
+
className: `${styles$8["f-select-icon"]} close`,
|
|
4125
4141
|
title: "Очистить",
|
|
4126
4142
|
onMouseDown: (e) => e.preventDefault(),
|
|
4127
4143
|
children: /* @__PURE__ */ jsx(CloseIcon, {})
|
|
4128
4144
|
}
|
|
4129
4145
|
),
|
|
4130
|
-
/* @__PURE__ */ jsx("div", { className: `${styles$
|
|
4146
|
+
/* @__PURE__ */ jsx("div", { className: `${styles$8["f-select-icon"]} ${isOpen ? styles$8["rotate"] : ""}`, children: /* @__PURE__ */ jsx(ChevronIcon, {}) })
|
|
4131
4147
|
] })
|
|
4132
4148
|
] }),
|
|
4133
4149
|
isOpen && !disabled2 && !load && typeof document !== "undefined" && createPortal(
|
|
4134
4150
|
/* @__PURE__ */ jsx(
|
|
4135
4151
|
"div",
|
|
4136
4152
|
{
|
|
4137
|
-
className: styles$
|
|
4153
|
+
className: styles$8["f-select-dropdown"],
|
|
4138
4154
|
style: dropdownStyle,
|
|
4139
4155
|
ref: dropdownRef,
|
|
4140
4156
|
children: /* @__PURE__ */ jsx(
|
|
4141
4157
|
"ul",
|
|
4142
4158
|
{
|
|
4143
4159
|
ref: listRef,
|
|
4144
|
-
className: styles$
|
|
4160
|
+
className: styles$8["f-select-list"],
|
|
4145
4161
|
style: { maxHeight: `${listMaxHeight}px` },
|
|
4146
|
-
children: isTyping ? /* @__PURE__ */ jsx("li", { className: styles$
|
|
4162
|
+
children: isTyping ? /* @__PURE__ */ jsx("li", { className: styles$8["f-select-no-results"], children: "Ожидается окончание ввода..." }) : renderList.length === 0 ? /* @__PURE__ */ jsx("li", { className: styles$8["f-select-no-results"], children: allowCreate ? "Нет данных" : "Совпадений не найдено" }) : renderList.map((option, index) => /* @__PURE__ */ jsx(
|
|
4147
4163
|
"li",
|
|
4148
4164
|
{
|
|
4149
4165
|
className: `
|
|
4150
|
-
${styles$
|
|
4151
|
-
${option.isNew ? styles$
|
|
4152
|
-
${index === highlightedIndex ? styles$
|
|
4153
|
-
${currentValStr === option.value ? styles$
|
|
4166
|
+
${styles$8["f-select-option"]}
|
|
4167
|
+
${option.isNew ? styles$8["f-select-create"] : ""}
|
|
4168
|
+
${index === highlightedIndex ? styles$8["focused"] : ""}
|
|
4169
|
+
${currentValStr === option.value ? styles$8["selected"] : ""}
|
|
4154
4170
|
`,
|
|
4155
4171
|
onMouseDown: (e) => e.preventDefault(),
|
|
4156
4172
|
onClick: (e) => {
|
|
@@ -4217,7 +4233,7 @@ const FSearchableSelect = forwardRef(
|
|
|
4217
4233
|
FSearchableSelect.displayName = "FSearchableSelect";
|
|
4218
4234
|
const active = "_active_1btub_75";
|
|
4219
4235
|
const disabled = "_disabled_1btub_75";
|
|
4220
|
-
const styles$
|
|
4236
|
+
const styles$7 = {
|
|
4221
4237
|
"f-segmented-wrapper": "_f-segmented-wrapper_1btub_2",
|
|
4222
4238
|
"f-segmented-control": "_f-segmented-control_1btub_12",
|
|
4223
4239
|
"f-segmented-sm": "_f-segmented-sm_1btub_28",
|
|
@@ -4263,11 +4279,11 @@ const FSegmentedControl = ({
|
|
|
4263
4279
|
onChange(item.id);
|
|
4264
4280
|
}
|
|
4265
4281
|
};
|
|
4266
|
-
return /* @__PURE__ */ jsx("div", { className: `${styles$
|
|
4282
|
+
return /* @__PURE__ */ jsx("div", { className: `${styles$7["f-segmented-wrapper"]} ${className}`, style, children: /* @__PURE__ */ jsxs("div", { className: `${styles$7["f-segmented-control"]} ${styles$7[`f-segmented-${size}`]}`, children: [
|
|
4267
4283
|
/* @__PURE__ */ jsx(
|
|
4268
4284
|
"div",
|
|
4269
4285
|
{
|
|
4270
|
-
className: styles$
|
|
4286
|
+
className: styles$7["f-segmented-glider"],
|
|
4271
4287
|
style: {
|
|
4272
4288
|
width: `${gliderStyle.width}px`,
|
|
4273
4289
|
transform: `translateX(${gliderStyle.left}px)`,
|
|
@@ -4286,15 +4302,15 @@ const FSegmentedControl = ({
|
|
|
4286
4302
|
type: "button",
|
|
4287
4303
|
disabled: item.disabled,
|
|
4288
4304
|
className: `
|
|
4289
|
-
${styles$
|
|
4290
|
-
${isActive ? styles$
|
|
4291
|
-
${item.disabled ? styles$
|
|
4305
|
+
${styles$7["f-segmented-item"]}
|
|
4306
|
+
${isActive ? styles$7["active"] : ""}
|
|
4307
|
+
${item.disabled ? styles$7["disabled"] : ""}
|
|
4292
4308
|
`,
|
|
4293
4309
|
onClick: (e) => handleItemClick(e, item),
|
|
4294
4310
|
children: [
|
|
4295
|
-
item.icon && /* @__PURE__ */ jsx("span", { className: styles$
|
|
4296
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
4297
|
-
item.badge !== void 0 && /* @__PURE__ */ jsx("span", { className: styles$
|
|
4311
|
+
item.icon && /* @__PURE__ */ jsx("span", { className: styles$7["f-segmented-icon"], children: item.icon }),
|
|
4312
|
+
/* @__PURE__ */ jsx("span", { className: styles$7["f-segmented-label"], children: item.label }),
|
|
4313
|
+
item.badge !== void 0 && /* @__PURE__ */ jsx("span", { className: styles$7["f-segmented-badge"], children: item.badge })
|
|
4298
4314
|
]
|
|
4299
4315
|
},
|
|
4300
4316
|
String(item.id)
|
|
@@ -4328,7 +4344,7 @@ function FTableActions({ children, className, onClick, ...props }) {
|
|
|
4328
4344
|
type: "button",
|
|
4329
4345
|
"aria-label": "Действия",
|
|
4330
4346
|
...props,
|
|
4331
|
-
className: `${styles$
|
|
4347
|
+
className: `${styles$u.more} ${className || ""}`,
|
|
4332
4348
|
"aria-expanded": open,
|
|
4333
4349
|
"aria-controls": id,
|
|
4334
4350
|
onClick: (event) => {
|
|
@@ -4361,7 +4377,7 @@ function FTableActions({ children, className, onClick, ...props }) {
|
|
|
4361
4377
|
ref: menu,
|
|
4362
4378
|
id,
|
|
4363
4379
|
...{ popover: "auto" },
|
|
4364
|
-
className: styles$
|
|
4380
|
+
className: styles$u["row-menu"],
|
|
4365
4381
|
onKeyDown: (event) => {
|
|
4366
4382
|
var _a, _b;
|
|
4367
4383
|
if (event.key === "Escape") {
|
|
@@ -4384,6 +4400,55 @@ function FTableActions({ children, className, onClick, ...props }) {
|
|
|
4384
4400
|
)
|
|
4385
4401
|
] });
|
|
4386
4402
|
}
|
|
4403
|
+
const statusBadge = "_statusBadge_1chwj_1";
|
|
4404
|
+
const statusDot = "_statusDot_1chwj_21";
|
|
4405
|
+
const pulse = "_pulse_1chwj_57";
|
|
4406
|
+
const statusBadgePulse = "_statusBadgePulse_1chwj_1";
|
|
4407
|
+
const primary = "_primary_1chwj_80";
|
|
4408
|
+
const secondary = "_secondary_1chwj_86";
|
|
4409
|
+
const success$2 = "_success_1chwj_92";
|
|
4410
|
+
const danger = "_danger_1chwj_98";
|
|
4411
|
+
const warning$4 = "_warning_1chwj_104";
|
|
4412
|
+
const info$2 = "_info_1chwj_110";
|
|
4413
|
+
const light = "_light_1chwj_116";
|
|
4414
|
+
const dark = "_dark_1chwj_122";
|
|
4415
|
+
const styles$6 = {
|
|
4416
|
+
statusBadge,
|
|
4417
|
+
"size-sm": "_size-sm_1chwj_15",
|
|
4418
|
+
statusDot,
|
|
4419
|
+
"size-md": "_size-md_1chwj_26",
|
|
4420
|
+
"size-lg": "_size-lg_1chwj_37",
|
|
4421
|
+
pulse,
|
|
4422
|
+
statusBadgePulse,
|
|
4423
|
+
primary,
|
|
4424
|
+
secondary,
|
|
4425
|
+
success: success$2,
|
|
4426
|
+
danger,
|
|
4427
|
+
warning: warning$4,
|
|
4428
|
+
info: info$2,
|
|
4429
|
+
light,
|
|
4430
|
+
dark
|
|
4431
|
+
};
|
|
4432
|
+
const FStatusBadge = ({
|
|
4433
|
+
children,
|
|
4434
|
+
variant = "secondary",
|
|
4435
|
+
size = "md",
|
|
4436
|
+
showDot = true,
|
|
4437
|
+
pulseDot = false,
|
|
4438
|
+
className = ""
|
|
4439
|
+
}) => {
|
|
4440
|
+
const badgeClasses = [
|
|
4441
|
+
styles$6.statusBadge,
|
|
4442
|
+
styles$6[variant],
|
|
4443
|
+
styles$6[`size-${size}`],
|
|
4444
|
+
className
|
|
4445
|
+
].filter(Boolean).join(" ");
|
|
4446
|
+
const dotClasses = [styles$6.statusDot, pulseDot ? styles$6.pulse : ""].filter(Boolean).join(" ");
|
|
4447
|
+
return /* @__PURE__ */ jsxs("span", { className: badgeClasses, children: [
|
|
4448
|
+
showDot && /* @__PURE__ */ jsx("span", { className: dotClasses, "aria-hidden": "true" }),
|
|
4449
|
+
/* @__PURE__ */ jsx("span", { children })
|
|
4450
|
+
] });
|
|
4451
|
+
};
|
|
4387
4452
|
const FPlusIcon = React.forwardRef(({
|
|
4388
4453
|
color = "primary",
|
|
4389
4454
|
size = 30,
|
|
@@ -9304,6 +9369,7 @@ export {
|
|
|
9304
9369
|
FSelectSearchDb,
|
|
9305
9370
|
FSkeleton,
|
|
9306
9371
|
FStack,
|
|
9372
|
+
FStatusBadge,
|
|
9307
9373
|
FTab,
|
|
9308
9374
|
FTable,
|
|
9309
9375
|
FTableActions,
|