fui-material 2.7.12 → 2.7.14
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 +333 -235
- 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/FSegmentedControl/FSegmentedControl.d.ts +92 -0
- package/dist/types/material/FSegmentedControl/index.d.ts +1 -0
- package/dist/types/material/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/f-ui-kit.es.js
CHANGED
|
@@ -7,59 +7,68 @@ import { renderToStaticMarkup } from "react-dom/server";
|
|
|
7
7
|
import { initializeModule as initializeModule$1, installFormatCode } from "allorion-exporting-html-to-xlsx";
|
|
8
8
|
import axios from "axios";
|
|
9
9
|
import { useQueryClient, useMutation, useQuery } from "@tanstack/react-query";
|
|
10
|
-
import './index.css';const btn = "
|
|
10
|
+
import './index.css';const btn = "_btn_u1cjw_1";
|
|
11
|
+
const disabled$4 = "_disabled_u1cjw_31";
|
|
11
12
|
const stylesBtn = {
|
|
12
13
|
btn,
|
|
13
|
-
|
|
14
|
-
"btn-
|
|
15
|
-
"btn-
|
|
16
|
-
"btn-
|
|
17
|
-
"btn-
|
|
18
|
-
"btn-
|
|
19
|
-
"btn-
|
|
20
|
-
"btn-
|
|
21
|
-
"btn-
|
|
22
|
-
"btn-
|
|
23
|
-
"btn-
|
|
24
|
-
"btn-
|
|
25
|
-
"btn-
|
|
26
|
-
"btn-
|
|
27
|
-
"btn-
|
|
28
|
-
"btn-
|
|
29
|
-
"btn-
|
|
30
|
-
"btn-
|
|
31
|
-
"btn-
|
|
32
|
-
"btn-
|
|
33
|
-
"btn-
|
|
14
|
+
disabled: disabled$4,
|
|
15
|
+
"btn-xs": "_btn-xs_u1cjw_40",
|
|
16
|
+
"btn-sm": "_btn-sm_u1cjw_51",
|
|
17
|
+
"btn-lg": "_btn-lg_u1cjw_62",
|
|
18
|
+
"btn-primary": "_btn-primary_u1cjw_73",
|
|
19
|
+
"btn-outline-primary": "_btn-outline-primary_u1cjw_87",
|
|
20
|
+
"btn-secondary": "_btn-secondary_u1cjw_104",
|
|
21
|
+
"btn-outline-secondary": "_btn-outline-secondary_u1cjw_118",
|
|
22
|
+
"btn-success": "_btn-success_u1cjw_135",
|
|
23
|
+
"btn-outline-success": "_btn-outline-success_u1cjw_149",
|
|
24
|
+
"btn-danger": "_btn-danger_u1cjw_166",
|
|
25
|
+
"btn-outline-danger": "_btn-outline-danger_u1cjw_180",
|
|
26
|
+
"btn-warning": "_btn-warning_u1cjw_197",
|
|
27
|
+
"btn-outline-warning": "_btn-outline-warning_u1cjw_211",
|
|
28
|
+
"btn-info": "_btn-info_u1cjw_228",
|
|
29
|
+
"btn-outline-info": "_btn-outline-info_u1cjw_242",
|
|
30
|
+
"btn-light": "_btn-light_u1cjw_259",
|
|
31
|
+
"btn-outline-light": "_btn-outline-light_u1cjw_274",
|
|
32
|
+
"btn-dark": "_btn-dark_u1cjw_291",
|
|
33
|
+
"btn-outline-dark": "_btn-outline-dark_u1cjw_305",
|
|
34
|
+
"btn-link": "_btn-link_u1cjw_322",
|
|
35
|
+
"btn-outline-link": "_btn-outline-link_u1cjw_338"
|
|
34
36
|
};
|
|
35
37
|
const FButton = forwardRef(({
|
|
36
38
|
children,
|
|
37
39
|
variant = "contained",
|
|
38
40
|
color = "primary",
|
|
39
|
-
size = "btn-
|
|
41
|
+
size = "btn-xs",
|
|
42
|
+
type = "button",
|
|
40
43
|
st,
|
|
41
44
|
fullWidth,
|
|
45
|
+
style: customStyle,
|
|
46
|
+
id,
|
|
47
|
+
className,
|
|
42
48
|
...props
|
|
43
49
|
}, ref) => {
|
|
44
|
-
const inputId =
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
const inputId = id || `button-${Math.random().toString(36).substring(2, 9)}`;
|
|
51
|
+
const mergedStyle = {
|
|
52
|
+
width: fullWidth ? "100%" : "fit-content",
|
|
53
|
+
...st,
|
|
54
|
+
...customStyle
|
|
55
|
+
};
|
|
56
|
+
const variantClass = variant === "contained" ? `btn-${color}` : `btn-outline-${color}`;
|
|
57
|
+
const buttonClasses = [
|
|
58
|
+
stylesBtn["btn"],
|
|
59
|
+
stylesBtn[size],
|
|
60
|
+
stylesBtn[variantClass],
|
|
61
|
+
className
|
|
62
|
+
].filter(Boolean).join(" ");
|
|
54
63
|
return /* @__PURE__ */ jsx(
|
|
55
64
|
"button",
|
|
56
65
|
{
|
|
57
66
|
ref,
|
|
58
|
-
style,
|
|
59
|
-
type: "button",
|
|
60
|
-
...props,
|
|
61
67
|
id: inputId,
|
|
62
|
-
|
|
68
|
+
type,
|
|
69
|
+
style: mergedStyle,
|
|
70
|
+
className: buttonClasses,
|
|
71
|
+
...props,
|
|
63
72
|
children
|
|
64
73
|
}
|
|
65
74
|
);
|
|
@@ -114,7 +123,7 @@ FTrashIcon.displayName = "FTrashIcon";
|
|
|
114
123
|
const progressBar = "_progressBar_1xp9s_48";
|
|
115
124
|
const completed = "_completed_1xp9s_60";
|
|
116
125
|
const progress = "_progress_1xp9s_48";
|
|
117
|
-
const styles$
|
|
126
|
+
const styles$z = {
|
|
118
127
|
"file-preview-card": "_file-preview-card_1xp9s_1",
|
|
119
128
|
"file-preview-info": "_file-preview-info_1xp9s_22",
|
|
120
129
|
"file-preview-name": "_file-preview-name_1xp9s_28",
|
|
@@ -136,18 +145,18 @@ const FFile = ({
|
|
|
136
145
|
return /* @__PURE__ */ jsxs(
|
|
137
146
|
"div",
|
|
138
147
|
{
|
|
139
|
-
className: `${styles$
|
|
148
|
+
className: `${styles$z["file-preview-card"]} ${className || ""}`,
|
|
140
149
|
id,
|
|
141
150
|
style: st,
|
|
142
151
|
children: [
|
|
143
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
144
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
145
|
-
typeof size === "number" && /* @__PURE__ */ jsxs("span", { className: styles$
|
|
152
|
+
/* @__PURE__ */ jsxs("div", { className: styles$z["file-preview-info"], children: [
|
|
153
|
+
/* @__PURE__ */ jsx("span", { className: styles$z["file-preview-name"], title: name, children: name }),
|
|
154
|
+
typeof size === "number" && /* @__PURE__ */ jsxs("span", { className: styles$z["file-preview-size"], children: [
|
|
146
155
|
Math.round(size / 1024),
|
|
147
156
|
" КБ"
|
|
148
157
|
] })
|
|
149
158
|
] }),
|
|
150
|
-
handleDelete && /* @__PURE__ */ jsx("div", { className: styles$
|
|
159
|
+
handleDelete && /* @__PURE__ */ jsx("div", { className: styles$z["trash-icon"], children: /* @__PURE__ */ jsx(
|
|
151
160
|
FTrashIcon,
|
|
152
161
|
{
|
|
153
162
|
size: 20,
|
|
@@ -155,10 +164,10 @@ const FFile = ({
|
|
|
155
164
|
handleClick: handleDelete
|
|
156
165
|
}
|
|
157
166
|
) }),
|
|
158
|
-
typeof progress2 === "number" && /* @__PURE__ */ jsx("div", { className: `${styles$
|
|
167
|
+
typeof progress2 === "number" && /* @__PURE__ */ jsx("div", { className: `${styles$z.progressBar} ${progress2 === 100 ? styles$z.completed : ""}`, children: /* @__PURE__ */ jsx(
|
|
159
168
|
"div",
|
|
160
169
|
{
|
|
161
|
-
className: styles$
|
|
170
|
+
className: styles$z.progress,
|
|
162
171
|
style: { width: `${progress2}%` }
|
|
163
172
|
}
|
|
164
173
|
) })
|
|
@@ -261,7 +270,7 @@ const FButtonFile = ({
|
|
|
261
270
|
)) }) })
|
|
262
271
|
] });
|
|
263
272
|
};
|
|
264
|
-
const styles$
|
|
273
|
+
const styles$y = {
|
|
265
274
|
"f-text-field": "_f-text-field_200bb_1"
|
|
266
275
|
};
|
|
267
276
|
const FLoadIcon = React.forwardRef(({
|
|
@@ -340,7 +349,7 @@ const FTextField = forwardRef(
|
|
|
340
349
|
return /* @__PURE__ */ jsxs(
|
|
341
350
|
"div",
|
|
342
351
|
{
|
|
343
|
-
className: `f-form-element ${styles$
|
|
352
|
+
className: `f-form-element ${styles$y["f-text-field"]} ${className || ""}`,
|
|
344
353
|
style: mergedStyle,
|
|
345
354
|
role: "group",
|
|
346
355
|
id: inputId + "-text-field-block",
|
|
@@ -446,7 +455,7 @@ const FStack = ({
|
|
|
446
455
|
}
|
|
447
456
|
);
|
|
448
457
|
};
|
|
449
|
-
const styles$
|
|
458
|
+
const styles$x = {
|
|
450
459
|
"f-grid": "_f-grid_3g4xh_1",
|
|
451
460
|
"f-grid__col": "_f-grid__col_3g4xh_10",
|
|
452
461
|
"f-grid__col--auto": "_f-grid__col--auto_3g4xh_16",
|
|
@@ -549,21 +558,21 @@ const FGrid = ({
|
|
|
549
558
|
xxl: xxl ?? xl ?? lg ?? md ?? sm ?? xs
|
|
550
559
|
};
|
|
551
560
|
const getColumnClasses = () => {
|
|
552
|
-
if (colAuto) return styles$
|
|
553
|
-
const classes = [styles$
|
|
554
|
-
if (resolvedSizes.xs !== void 0) classes.push(styles$
|
|
555
|
-
if (resolvedSizes.sm !== void 0) classes.push(styles$
|
|
556
|
-
if (resolvedSizes.md !== void 0) classes.push(styles$
|
|
557
|
-
if (resolvedSizes.lg !== void 0) classes.push(styles$
|
|
558
|
-
if (resolvedSizes.xl !== void 0) classes.push(styles$
|
|
559
|
-
if (resolvedSizes.xxl !== void 0) classes.push(styles$
|
|
561
|
+
if (colAuto) return styles$x["f-grid__col--auto"];
|
|
562
|
+
const classes = [styles$x["f-grid__col"]];
|
|
563
|
+
if (resolvedSizes.xs !== void 0) classes.push(styles$x[`f-grid__col--xs-${resolvedSizes.xs}`]);
|
|
564
|
+
if (resolvedSizes.sm !== void 0) classes.push(styles$x[`f-grid__col--sm-${resolvedSizes.sm}`]);
|
|
565
|
+
if (resolvedSizes.md !== void 0) classes.push(styles$x[`f-grid__col--md-${resolvedSizes.md}`]);
|
|
566
|
+
if (resolvedSizes.lg !== void 0) classes.push(styles$x[`f-grid__col--lg-${resolvedSizes.lg}`]);
|
|
567
|
+
if (resolvedSizes.xl !== void 0) classes.push(styles$x[`f-grid__col--xl-${resolvedSizes.xl}`]);
|
|
568
|
+
if (resolvedSizes.xxl !== void 0) classes.push(styles$x[`f-grid__col--xxl-${resolvedSizes.xxl}`]);
|
|
560
569
|
return classes.join(" ");
|
|
561
570
|
};
|
|
562
571
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
563
572
|
obj === "container" && /* @__PURE__ */ jsx(
|
|
564
573
|
"div",
|
|
565
574
|
{
|
|
566
|
-
className: `${styles$
|
|
575
|
+
className: `${styles$x["f-grid"]} ${className || ""}`,
|
|
567
576
|
style,
|
|
568
577
|
id,
|
|
569
578
|
children
|
|
@@ -581,7 +590,7 @@ const FGrid = ({
|
|
|
581
590
|
obj === void 0 && /* @__PURE__ */ jsx("div", { className, style, id, children })
|
|
582
591
|
] });
|
|
583
592
|
};
|
|
584
|
-
const styles$
|
|
593
|
+
const styles$w = {
|
|
585
594
|
"f-grid-row": "_f-grid-row_1crbx_1",
|
|
586
595
|
"f-grid-row--justify-start": "_f-grid-row--justify-start_1crbx_7",
|
|
587
596
|
"f-grid-row--justify-center": "_f-grid-row--justify-center_1crbx_10",
|
|
@@ -603,21 +612,21 @@ const FGridRow = ({
|
|
|
603
612
|
}) => {
|
|
604
613
|
const getJustifyContentClass = () => {
|
|
605
614
|
if (!justifyContent) return "";
|
|
606
|
-
return styles$
|
|
615
|
+
return styles$w[`f-grid-row--justify-${justifyContent}`];
|
|
607
616
|
};
|
|
608
617
|
const getAlignItemsClass = () => {
|
|
609
618
|
if (!alignItems) return "";
|
|
610
|
-
return styles$
|
|
619
|
+
return styles$w[`f-grid-row--align-${alignItems}`];
|
|
611
620
|
};
|
|
612
621
|
const rowClasses = [
|
|
613
|
-
styles$
|
|
622
|
+
styles$w["f-grid-row"],
|
|
614
623
|
getJustifyContentClass(),
|
|
615
624
|
getAlignItemsClass(),
|
|
616
625
|
className
|
|
617
626
|
].filter(Boolean).join(" ");
|
|
618
627
|
return /* @__PURE__ */ jsx("div", { className: rowClasses, style: st, id, children });
|
|
619
628
|
};
|
|
620
|
-
const styles$
|
|
629
|
+
const styles$v = {
|
|
621
630
|
"f-container": "_f-container_g9ck3_1",
|
|
622
631
|
"container-fluid": "_container-fluid_g9ck3_1",
|
|
623
632
|
"container-xxl": "_container-xxl_g9ck3_1",
|
|
@@ -637,7 +646,7 @@ const FContainer = ({
|
|
|
637
646
|
return /* @__PURE__ */ jsx(
|
|
638
647
|
"div",
|
|
639
648
|
{
|
|
640
|
-
className: `${styles$
|
|
649
|
+
className: `${styles$v["f-container"]} ${styles$v[maxWidth]} ${className || ""}`,
|
|
641
650
|
style: st,
|
|
642
651
|
id,
|
|
643
652
|
children
|
|
@@ -645,7 +654,7 @@ const FContainer = ({
|
|
|
645
654
|
);
|
|
646
655
|
};
|
|
647
656
|
const panel = "_panel_yplsg_1";
|
|
648
|
-
const styles$
|
|
657
|
+
const styles$u = {
|
|
649
658
|
panel,
|
|
650
659
|
"panel-default": "_panel-default_yplsg_6",
|
|
651
660
|
"panel-heading": "_panel-heading_yplsg_12",
|
|
@@ -678,15 +687,15 @@ const FPaper = ({
|
|
|
678
687
|
return /* @__PURE__ */ jsxs(
|
|
679
688
|
"div",
|
|
680
689
|
{
|
|
681
|
-
className: `${styles$
|
|
690
|
+
className: `${styles$u["panel"]} ${styles$u["panel-default"]} ${className || ""} ${animated ? `${styles$u[`animated-${animated.name}`]} ${animated.name}` : ""}`,
|
|
682
691
|
style: st,
|
|
683
692
|
id,
|
|
684
693
|
onAnimationEnd,
|
|
685
694
|
children: [
|
|
686
|
-
label && /* @__PURE__ */ jsx("div", { className: styles$
|
|
695
|
+
label && /* @__PURE__ */ jsx("div", { className: styles$u["panel-heading"], children: /* @__PURE__ */ jsx(
|
|
687
696
|
"h3",
|
|
688
697
|
{
|
|
689
|
-
className: styles$
|
|
698
|
+
className: styles$u["panel-title"],
|
|
690
699
|
style: { fontSize: fontSizeLabel },
|
|
691
700
|
children: label
|
|
692
701
|
}
|
|
@@ -694,7 +703,7 @@ const FPaper = ({
|
|
|
694
703
|
/* @__PURE__ */ jsx(
|
|
695
704
|
"div",
|
|
696
705
|
{
|
|
697
|
-
className: styles$
|
|
706
|
+
className: styles$u["panel-body"],
|
|
698
707
|
style: { fontSize: fontSizeBody },
|
|
699
708
|
children
|
|
700
709
|
}
|
|
@@ -707,7 +716,7 @@ const bordered = "_bordered_ld5gh_18";
|
|
|
707
716
|
const left$1 = "_left_ld5gh_40";
|
|
708
717
|
const center = "_center_ld5gh_43";
|
|
709
718
|
const right = "_right_ld5gh_46";
|
|
710
|
-
const styles$
|
|
719
|
+
const styles$t = {
|
|
711
720
|
"f-table-component": "_f-table-component_ld5gh_1",
|
|
712
721
|
"f-table-component__table": "_f-table-component__table_ld5gh_7",
|
|
713
722
|
bordered,
|
|
@@ -738,7 +747,7 @@ const FTableHead = ({
|
|
|
738
747
|
{
|
|
739
748
|
style: st,
|
|
740
749
|
...props,
|
|
741
|
-
className: `${styles$
|
|
750
|
+
className: `${styles$t["f-table-component__table_header"]} ${isSticky ? styles$t["is-sticky"] : ""} ${props.className || ""} ${styles$t[textAlignment]}`,
|
|
742
751
|
children
|
|
743
752
|
}
|
|
744
753
|
);
|
|
@@ -831,7 +840,7 @@ const FTableBody = ({
|
|
|
831
840
|
} else {
|
|
832
841
|
visibleItems = flatChildren;
|
|
833
842
|
}
|
|
834
|
-
return /* @__PURE__ */ jsxs("tbody", { ref: tableBodyRef, style: st, ...props, className: `${styles$
|
|
843
|
+
return /* @__PURE__ */ jsxs("tbody", { ref: tableBodyRef, style: st, ...props, className: `${styles$t["f-table-component__table_body"]} ${props.className || ""} ${styles$t[textAlignment]}`, children: [
|
|
835
844
|
virtualizationEnabled && rowHeights.some((h) => h > 0) && /* @__PURE__ */ jsx("tr", { style: { height: topOffset } }),
|
|
836
845
|
visibleItems.map((child, idx) => React.isValidElement(child) ? React.cloneElement(child, { "data-row-index": virtualizationEnabled ? startIdx + idx : idx, key: virtualizationEnabled ? startIdx + idx : idx }) : child),
|
|
837
846
|
virtualizationEnabled && rowHeights.some((h) => h > 0) && /* @__PURE__ */ jsx("tr", { style: { height: bottomOffset } })
|
|
@@ -874,14 +883,14 @@ const FTable = ({
|
|
|
874
883
|
"div",
|
|
875
884
|
{
|
|
876
885
|
ref: tableWrapperRef,
|
|
877
|
-
className: styles$
|
|
886
|
+
className: styles$t["f-table-component"],
|
|
878
887
|
style: { overflowX, overflowY },
|
|
879
888
|
children: /* @__PURE__ */ jsx(
|
|
880
889
|
"table",
|
|
881
890
|
{
|
|
882
891
|
style: { ...st, tableLayout: layout },
|
|
883
892
|
...props,
|
|
884
|
-
className: `table ${styles$
|
|
893
|
+
className: `table ${styles$t["f-table-component__table"]} ${styles$t["bordered"]} ${styles$t["bordered-half"]} ${props.className || ""}`,
|
|
885
894
|
children: React.Children.map(children, (child) => {
|
|
886
895
|
if (React.isValidElement(child) && child.type === FTableHead) {
|
|
887
896
|
const headProps = child.props;
|
|
@@ -919,14 +928,14 @@ const FTableRow = ({
|
|
|
919
928
|
...props
|
|
920
929
|
}) => {
|
|
921
930
|
const rowClasses = [
|
|
922
|
-
styles$
|
|
931
|
+
styles$t["f-table-component__table_row"],
|
|
923
932
|
props.className || ""
|
|
924
933
|
];
|
|
925
934
|
if (disableHover) {
|
|
926
|
-
rowClasses.push(styles$
|
|
935
|
+
rowClasses.push(styles$t["f-table-component__table_row_no-hover"]);
|
|
927
936
|
}
|
|
928
937
|
if (textAlignment !== void 0) {
|
|
929
|
-
rowClasses.push(styles$
|
|
938
|
+
rowClasses.push(styles$t[textAlignment]);
|
|
930
939
|
}
|
|
931
940
|
return /* @__PURE__ */ jsx(
|
|
932
941
|
"tr",
|
|
@@ -960,7 +969,7 @@ const FTableHeaderCell = ({
|
|
|
960
969
|
rowSpan: row && row > 1 ? row : void 0,
|
|
961
970
|
colSpan: col && col > 1 ? col : void 0,
|
|
962
971
|
...props,
|
|
963
|
-
className: `${styles$
|
|
972
|
+
className: `${styles$t["f-table-component__table_header-cell"]} ${props.className || ""}`,
|
|
964
973
|
style,
|
|
965
974
|
children
|
|
966
975
|
}
|
|
@@ -988,7 +997,7 @@ const FTableDataCell = ({
|
|
|
988
997
|
rowSpan: row && row > 1 ? row : void 0,
|
|
989
998
|
colSpan: col && col > 1 ? col : void 0,
|
|
990
999
|
...props,
|
|
991
|
-
className: `${styles$
|
|
1000
|
+
className: `${styles$t["f-table-component__table_body-cell"]} ${props.className || ""}`,
|
|
992
1001
|
style,
|
|
993
1002
|
children
|
|
994
1003
|
}
|
|
@@ -1004,7 +1013,7 @@ const FTableFooter = ({
|
|
|
1004
1013
|
{
|
|
1005
1014
|
style: st,
|
|
1006
1015
|
...props,
|
|
1007
|
-
className: `${styles$
|
|
1016
|
+
className: `${styles$t["f-table-component__table_footer"]} ${props.className || ""}`,
|
|
1008
1017
|
children
|
|
1009
1018
|
}
|
|
1010
1019
|
);
|
|
@@ -1012,7 +1021,7 @@ const FTableFooter = ({
|
|
|
1012
1021
|
const entering = "_entering_dwagt_17";
|
|
1013
1022
|
const exiting = "_exiting_dwagt_23";
|
|
1014
1023
|
const hide = "_hide_dwagt_45";
|
|
1015
|
-
const styles$
|
|
1024
|
+
const styles$s = {
|
|
1016
1025
|
"f-dialog": "_f-dialog_dwagt_1",
|
|
1017
1026
|
entering,
|
|
1018
1027
|
"f-dialog__content": "_f-dialog__content_dwagt_20",
|
|
@@ -1092,14 +1101,14 @@ const FDialog = ({
|
|
|
1092
1101
|
adaptive: "fit-content"
|
|
1093
1102
|
};
|
|
1094
1103
|
const contentWidth = widthStyles[width];
|
|
1095
|
-
const animationClass = isClosing ? styles$
|
|
1104
|
+
const animationClass = isClosing ? styles$s["exiting"] : styles$s["entering"];
|
|
1096
1105
|
return ReactDOM.createPortal(
|
|
1097
1106
|
/* @__PURE__ */ jsx(
|
|
1098
1107
|
"div",
|
|
1099
1108
|
{
|
|
1100
1109
|
id,
|
|
1101
1110
|
style: st,
|
|
1102
|
-
className: `${styles$
|
|
1111
|
+
className: `${styles$s["f-dialog"]} ${animationClass} ${className || ""}`,
|
|
1103
1112
|
onMouseDown: (e) => {
|
|
1104
1113
|
if (e.target === e.currentTarget) {
|
|
1105
1114
|
closeButtonBackPage == null ? void 0 : closeButtonBackPage(false);
|
|
@@ -1109,7 +1118,7 @@ const FDialog = ({
|
|
|
1109
1118
|
children: /* @__PURE__ */ jsx(
|
|
1110
1119
|
"div",
|
|
1111
1120
|
{
|
|
1112
|
-
className: `${styles$
|
|
1121
|
+
className: `${styles$s["f-dialog__content"]} ${hide2 ? styles$s["hide"] : ""}`,
|
|
1113
1122
|
style: {
|
|
1114
1123
|
width: contentWidth
|
|
1115
1124
|
},
|
|
@@ -1150,9 +1159,9 @@ const FCloseIcon = React.forwardRef(({
|
|
|
1150
1159
|
});
|
|
1151
1160
|
FCloseIcon.displayName = "FCloseIcon";
|
|
1152
1161
|
const FDialogHeader = ({ title: title2, handleClose }) => {
|
|
1153
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
1154
|
-
/* @__PURE__ */ jsx("h3", { className: styles$
|
|
1155
|
-
handleClose && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1162
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$s["f-dialog__header"], children: [
|
|
1163
|
+
/* @__PURE__ */ jsx("h3", { className: styles$s["f-dialog__header_title"], children: title2 }),
|
|
1164
|
+
handleClose && /* @__PURE__ */ jsx("div", { className: styles$s["f-dialog__header_close"], children: /* @__PURE__ */ jsx(
|
|
1156
1165
|
FCloseIcon,
|
|
1157
1166
|
{
|
|
1158
1167
|
handleClose,
|
|
@@ -1167,7 +1176,7 @@ const FDialogBody = ({ st, children, scroll = true }) => {
|
|
|
1167
1176
|
...scroll ? { overflowY: "auto" } : {},
|
|
1168
1177
|
...st
|
|
1169
1178
|
};
|
|
1170
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
1179
|
+
return /* @__PURE__ */ jsx("div", { className: styles$s["f-dialog__body"], style, children });
|
|
1171
1180
|
};
|
|
1172
1181
|
const FDialogFooter = ({ children, className, st, id }) => {
|
|
1173
1182
|
return /* @__PURE__ */ jsx(
|
|
@@ -1175,7 +1184,7 @@ const FDialogFooter = ({ children, className, st, id }) => {
|
|
|
1175
1184
|
{
|
|
1176
1185
|
id,
|
|
1177
1186
|
style: st,
|
|
1178
|
-
className: `${styles$
|
|
1187
|
+
className: `${styles$s["f-dialog__footer"]} ${className || ""}`,
|
|
1179
1188
|
children
|
|
1180
1189
|
}
|
|
1181
1190
|
);
|
|
@@ -1190,7 +1199,7 @@ const info$2 = "_info_1lhk7_62";
|
|
|
1190
1199
|
const light = "_light_1lhk7_66";
|
|
1191
1200
|
const dark = "_dark_1lhk7_70";
|
|
1192
1201
|
const link = "_link_1lhk7_74";
|
|
1193
|
-
const styles$
|
|
1202
|
+
const styles$r = {
|
|
1194
1203
|
"authorization-spinner": "_authorization-spinner_1lhk7_1",
|
|
1195
1204
|
"spinner-item": "_spinner-item_1lhk7_7",
|
|
1196
1205
|
loader,
|
|
@@ -1208,14 +1217,14 @@ const FProgress = ({ st, color = "primary", id, className }) => {
|
|
|
1208
1217
|
return /* @__PURE__ */ jsx(
|
|
1209
1218
|
"div",
|
|
1210
1219
|
{
|
|
1211
|
-
className: `${styles$
|
|
1220
|
+
className: `${styles$r["authorization-spinner"]} ${styles$r.visible} ${className || ""}`,
|
|
1212
1221
|
id,
|
|
1213
1222
|
style: st,
|
|
1214
|
-
children: /* @__PURE__ */ jsx("div", { className: `${styles$
|
|
1223
|
+
children: /* @__PURE__ */ jsx("div", { className: `${styles$r["spinner-item"]} ${styles$r[color]}` })
|
|
1215
1224
|
}
|
|
1216
1225
|
);
|
|
1217
1226
|
};
|
|
1218
|
-
const styles$
|
|
1227
|
+
const styles$q = {
|
|
1219
1228
|
"f-preloader": "_f-preloader_17f9x_1",
|
|
1220
1229
|
"active-preloader": "_active-preloader_17f9x_10"
|
|
1221
1230
|
};
|
|
@@ -1242,13 +1251,13 @@ const FPreloader = ({
|
|
|
1242
1251
|
return /* @__PURE__ */ jsx(
|
|
1243
1252
|
"div",
|
|
1244
1253
|
{
|
|
1245
|
-
className: `${styles$
|
|
1254
|
+
className: `${styles$q["f-preloader"]} ${open ? styles$q["active-preloader"] : ""}`,
|
|
1246
1255
|
style: mergedStyle,
|
|
1247
1256
|
children
|
|
1248
1257
|
}
|
|
1249
1258
|
);
|
|
1250
1259
|
};
|
|
1251
|
-
const styles$
|
|
1260
|
+
const styles$p = {
|
|
1252
1261
|
"f-checkbox": "_f-checkbox_9rvqg_1"
|
|
1253
1262
|
};
|
|
1254
1263
|
const FCheckbox = forwardRef(
|
|
@@ -1261,7 +1270,7 @@ const FCheckbox = forwardRef(
|
|
|
1261
1270
|
return /* @__PURE__ */ jsx(
|
|
1262
1271
|
"div",
|
|
1263
1272
|
{
|
|
1264
|
-
className: `${styles$
|
|
1273
|
+
className: `${styles$p["f-checkbox"]} ${className || ""}`,
|
|
1265
1274
|
style: st,
|
|
1266
1275
|
children: /* @__PURE__ */ jsxs("label", { children: [
|
|
1267
1276
|
/* @__PURE__ */ jsx("input", { ref, type: "checkbox", ...props }),
|
|
@@ -1271,7 +1280,7 @@ const FCheckbox = forwardRef(
|
|
|
1271
1280
|
);
|
|
1272
1281
|
}
|
|
1273
1282
|
);
|
|
1274
|
-
const styles$
|
|
1283
|
+
const styles$o = {
|
|
1275
1284
|
"f-radio": "_f-radio_cwhmx_1"
|
|
1276
1285
|
};
|
|
1277
1286
|
const FRadioButton = forwardRef(
|
|
@@ -1284,7 +1293,7 @@ const FRadioButton = forwardRef(
|
|
|
1284
1293
|
return /* @__PURE__ */ jsx(
|
|
1285
1294
|
"div",
|
|
1286
1295
|
{
|
|
1287
|
-
className: `${styles$
|
|
1296
|
+
className: `${styles$o["f-radio"]} ${className || ""}`,
|
|
1288
1297
|
style: st,
|
|
1289
1298
|
children: /* @__PURE__ */ jsxs("label", { children: [
|
|
1290
1299
|
/* @__PURE__ */ jsx("input", { ref, type: "radio", ...props }),
|
|
@@ -1343,15 +1352,15 @@ const usePagination = ({
|
|
|
1343
1352
|
};
|
|
1344
1353
|
const dots = "_dots_aham2_29";
|
|
1345
1354
|
const selected$1 = "_selected_aham2_33";
|
|
1346
|
-
const disabled$
|
|
1355
|
+
const disabled$3 = "_disabled_aham2_37";
|
|
1347
1356
|
const arrow = "_arrow_aham2_43";
|
|
1348
1357
|
const left = "_left_aham2_56";
|
|
1349
|
-
const styles$
|
|
1358
|
+
const styles$n = {
|
|
1350
1359
|
"pagination-container": "_pagination-container_aham2_1",
|
|
1351
1360
|
"pagination-item": "_pagination-item_aham2_9",
|
|
1352
1361
|
dots,
|
|
1353
1362
|
selected: selected$1,
|
|
1354
|
-
disabled: disabled$
|
|
1363
|
+
disabled: disabled$3,
|
|
1355
1364
|
arrow,
|
|
1356
1365
|
left
|
|
1357
1366
|
};
|
|
@@ -1380,26 +1389,26 @@ const FPagination = ({
|
|
|
1380
1389
|
return /* @__PURE__ */ jsxs(
|
|
1381
1390
|
"ul",
|
|
1382
1391
|
{
|
|
1383
|
-
className: `${styles$
|
|
1392
|
+
className: `${styles$n["pagination-container"]} ${className || ""}`,
|
|
1384
1393
|
style: st,
|
|
1385
1394
|
id,
|
|
1386
1395
|
children: [
|
|
1387
1396
|
/* @__PURE__ */ jsx(
|
|
1388
1397
|
"li",
|
|
1389
1398
|
{
|
|
1390
|
-
className: `${styles$
|
|
1399
|
+
className: `${styles$n["pagination-item"]} ${currentPage === 1 ? styles$n.disabled : ""}`,
|
|
1391
1400
|
onClick: onPrevious,
|
|
1392
|
-
children: /* @__PURE__ */ jsx("div", { className: `${styles$
|
|
1401
|
+
children: /* @__PURE__ */ jsx("div", { className: `${styles$n.arrow} ${styles$n.left}` })
|
|
1393
1402
|
}
|
|
1394
1403
|
),
|
|
1395
1404
|
paginationRange.map((pageNumber, index) => {
|
|
1396
1405
|
if (pageNumber === DOTS) {
|
|
1397
|
-
return /* @__PURE__ */ jsx("li", { className: `${styles$
|
|
1406
|
+
return /* @__PURE__ */ jsx("li", { className: `${styles$n["pagination-item"]} ${styles$n.dots}`, children: "…" }, index);
|
|
1398
1407
|
}
|
|
1399
1408
|
return /* @__PURE__ */ jsx(
|
|
1400
1409
|
"li",
|
|
1401
1410
|
{
|
|
1402
|
-
className: `${styles$
|
|
1411
|
+
className: `${styles$n["pagination-item"]} ${pageNumber === currentPage ? styles$n.selected : ""}`,
|
|
1403
1412
|
onClick: () => onPageChange(pageNumber),
|
|
1404
1413
|
children: pageNumber
|
|
1405
1414
|
},
|
|
@@ -1409,16 +1418,16 @@ const FPagination = ({
|
|
|
1409
1418
|
/* @__PURE__ */ jsx(
|
|
1410
1419
|
"li",
|
|
1411
1420
|
{
|
|
1412
|
-
className: `${styles$
|
|
1421
|
+
className: `${styles$n["pagination-item"]} ${currentPage === lastPage ? styles$n.disabled : ""}`,
|
|
1413
1422
|
onClick: onNext,
|
|
1414
|
-
children: /* @__PURE__ */ jsx("div", { className: `${styles$
|
|
1423
|
+
children: /* @__PURE__ */ jsx("div", { className: `${styles$n.arrow} ${styles$n.right}` })
|
|
1415
1424
|
}
|
|
1416
1425
|
)
|
|
1417
1426
|
]
|
|
1418
1427
|
}
|
|
1419
1428
|
);
|
|
1420
1429
|
};
|
|
1421
|
-
const styles$
|
|
1430
|
+
const styles$m = {
|
|
1422
1431
|
"f-time-line": "_f-time-line_1ybe7_1",
|
|
1423
1432
|
"f-time-line__block": "_f-time-line__block_1ybe7_10",
|
|
1424
1433
|
"f-time-line__block-circle": "_f-time-line__block-circle_1ybe7_29",
|
|
@@ -1432,7 +1441,7 @@ const FTimeline = ({
|
|
|
1432
1441
|
id,
|
|
1433
1442
|
className
|
|
1434
1443
|
}) => {
|
|
1435
|
-
return /* @__PURE__ */ jsx("div", { className: `${styles$
|
|
1444
|
+
return /* @__PURE__ */ jsx("div", { className: `${styles$m["f-time-line"]} ${className || ""}`, style: st, id, children });
|
|
1436
1445
|
};
|
|
1437
1446
|
const FTimelineCard = ({
|
|
1438
1447
|
children,
|
|
@@ -1441,17 +1450,17 @@ const FTimelineCard = ({
|
|
|
1441
1450
|
id,
|
|
1442
1451
|
className
|
|
1443
1452
|
}) => {
|
|
1444
|
-
return /* @__PURE__ */ jsxs("div", { className: `${styles$
|
|
1445
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
1446
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
1447
|
-
title2 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1448
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
1453
|
+
return /* @__PURE__ */ jsxs("div", { className: `${styles$m["f-time-line__block"]} ${className || ""}`, id, children: [
|
|
1454
|
+
/* @__PURE__ */ jsx("div", { className: styles$m["f-time-line__block-circle"] }),
|
|
1455
|
+
/* @__PURE__ */ jsxs("div", { className: styles$m["f-time-line__block-inner"], style: st, children: [
|
|
1456
|
+
title2 && /* @__PURE__ */ jsx("div", { className: styles$m["f-time-line__block-title"], children: title2 }),
|
|
1457
|
+
/* @__PURE__ */ jsx("div", { className: styles$m["f-time-line__block-content"], children })
|
|
1449
1458
|
] })
|
|
1450
1459
|
] });
|
|
1451
1460
|
};
|
|
1452
1461
|
const spinner = "_spinner_f7bma_133";
|
|
1453
|
-
const active$
|
|
1454
|
-
const styles$
|
|
1462
|
+
const active$4 = "_active_f7bma_183";
|
|
1463
|
+
const styles$l = {
|
|
1455
1464
|
"fv-opn-img-full": "_fv-opn-img-full_f7bma_1",
|
|
1456
1465
|
"fv-opn-img-full-body": "_fv-opn-img-full-body_f7bma_19",
|
|
1457
1466
|
"close-button": "_close-button_f7bma_33",
|
|
@@ -1465,7 +1474,7 @@ const styles$k = {
|
|
|
1465
1474
|
"error-message": "_error-message_f7bma_147",
|
|
1466
1475
|
"progress-indicator": "_progress-indicator_f7bma_158",
|
|
1467
1476
|
"progress-dot": "_progress-dot_f7bma_172",
|
|
1468
|
-
active: active$
|
|
1477
|
+
active: active$4
|
|
1469
1478
|
};
|
|
1470
1479
|
const FArrowIcon = React.forwardRef(({
|
|
1471
1480
|
color = "primary",
|
|
@@ -1590,10 +1599,10 @@ const FOpenImgFull = ({
|
|
|
1590
1599
|
{
|
|
1591
1600
|
openAndClose,
|
|
1592
1601
|
st,
|
|
1593
|
-
className: `${styles$
|
|
1602
|
+
className: `${styles$l["fv-opn-img-full"]} ${className || ""}`,
|
|
1594
1603
|
id,
|
|
1595
|
-
children: /* @__PURE__ */ jsxs("div", { className: styles$
|
|
1596
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
1604
|
+
children: /* @__PURE__ */ jsxs("div", { className: styles$l["fv-opn-img-full-body"], children: [
|
|
1605
|
+
/* @__PURE__ */ jsx("div", { className: styles$l["close-button"], children: handleClose && /* @__PURE__ */ jsx(
|
|
1597
1606
|
FCloseIcon,
|
|
1598
1607
|
{
|
|
1599
1608
|
handleClose: () => {
|
|
@@ -1605,21 +1614,21 @@ const FOpenImgFull = ({
|
|
|
1605
1614
|
/* @__PURE__ */ jsxs(
|
|
1606
1615
|
"div",
|
|
1607
1616
|
{
|
|
1608
|
-
className: styles$
|
|
1617
|
+
className: styles$l["image-container"],
|
|
1609
1618
|
onTouchStart: handleTouchStart,
|
|
1610
1619
|
onTouchMove: handleTouchMove,
|
|
1611
1620
|
onTouchEnd: handleTouchEnd,
|
|
1612
1621
|
children: [
|
|
1613
|
-
selectedImg > 0 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1622
|
+
selectedImg > 0 && /* @__PURE__ */ jsx("div", { className: styles$l["arrow-left"], children: /* @__PURE__ */ jsx(
|
|
1614
1623
|
FArrowIcon,
|
|
1615
1624
|
{
|
|
1616
1625
|
direction: "left",
|
|
1617
1626
|
handleClick: () => setSelectedImg(selectedImg - 1)
|
|
1618
1627
|
}
|
|
1619
1628
|
) }),
|
|
1620
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
1621
|
-
isLoading && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1622
|
-
error2 ? /* @__PURE__ */ jsx("div", { className: styles$
|
|
1629
|
+
/* @__PURE__ */ jsxs("div", { className: styles$l["image-wrapper"], children: [
|
|
1630
|
+
isLoading && /* @__PURE__ */ jsx("div", { className: styles$l["loading-spinner"], children: /* @__PURE__ */ jsx("div", { className: styles$l["spinner"] }) }),
|
|
1631
|
+
error2 ? /* @__PURE__ */ jsx("div", { className: styles$l["error-message"], children: "Ошибка загрузки изображения" }) : /* @__PURE__ */ jsx(
|
|
1623
1632
|
"img",
|
|
1624
1633
|
{
|
|
1625
1634
|
src: imagesUrl[selectedImg],
|
|
@@ -1629,7 +1638,7 @@ const FOpenImgFull = ({
|
|
|
1629
1638
|
setError(true);
|
|
1630
1639
|
setIsLoading(false);
|
|
1631
1640
|
},
|
|
1632
|
-
className: styles$
|
|
1641
|
+
className: styles$l["full-image"],
|
|
1633
1642
|
onClick: handleImageClick,
|
|
1634
1643
|
style: {
|
|
1635
1644
|
cursor: "zoom-in",
|
|
@@ -1639,7 +1648,7 @@ const FOpenImgFull = ({
|
|
|
1639
1648
|
}
|
|
1640
1649
|
)
|
|
1641
1650
|
] }),
|
|
1642
|
-
selectedImg < imagesUrl.length - 1 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1651
|
+
selectedImg < imagesUrl.length - 1 && /* @__PURE__ */ jsx("div", { className: styles$l["arrow-right"], children: /* @__PURE__ */ jsx(
|
|
1643
1652
|
FArrowIcon,
|
|
1644
1653
|
{
|
|
1645
1654
|
direction: "right",
|
|
@@ -1649,10 +1658,10 @@ const FOpenImgFull = ({
|
|
|
1649
1658
|
]
|
|
1650
1659
|
}
|
|
1651
1660
|
),
|
|
1652
|
-
imagesUrl.length > 1 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1661
|
+
imagesUrl.length > 1 && /* @__PURE__ */ jsx("div", { className: styles$l["progress-indicator"], children: imagesUrl.map((_, index) => /* @__PURE__ */ jsx(
|
|
1653
1662
|
"div",
|
|
1654
1663
|
{
|
|
1655
|
-
className: `${styles$
|
|
1664
|
+
className: `${styles$l["progress-dot"]} ${index === selectedImg ? styles$l["active"] : ""}`,
|
|
1656
1665
|
onClick: () => setSelectedImg(index)
|
|
1657
1666
|
},
|
|
1658
1667
|
index
|
|
@@ -1665,7 +1674,7 @@ const card$2 = "_card_1pttw_1";
|
|
|
1665
1674
|
const warning$3 = "_warning_1pttw_16";
|
|
1666
1675
|
const info$1 = "_info_1pttw_24";
|
|
1667
1676
|
const alert = "_alert_1pttw_32";
|
|
1668
|
-
const styles$
|
|
1677
|
+
const styles$k = {
|
|
1669
1678
|
card: card$2,
|
|
1670
1679
|
warning: warning$3,
|
|
1671
1680
|
info: info$1,
|
|
@@ -1693,16 +1702,16 @@ const FAccordion = ({
|
|
|
1693
1702
|
"div",
|
|
1694
1703
|
{
|
|
1695
1704
|
onClick,
|
|
1696
|
-
className: `${styles$
|
|
1705
|
+
className: `${styles$k.card} ${className || ""}`,
|
|
1697
1706
|
id,
|
|
1698
1707
|
children: /* @__PURE__ */ jsxs(
|
|
1699
1708
|
"details",
|
|
1700
1709
|
{
|
|
1701
|
-
className: styles$
|
|
1710
|
+
className: styles$k[variant],
|
|
1702
1711
|
open: isOpen,
|
|
1703
1712
|
style: st,
|
|
1704
1713
|
children: [
|
|
1705
|
-
/* @__PURE__ */ jsx("summary", { className: styles$
|
|
1714
|
+
/* @__PURE__ */ jsx("summary", { className: styles$k["fv-accord-title"], children: title2 }),
|
|
1706
1715
|
children
|
|
1707
1716
|
]
|
|
1708
1717
|
}
|
|
@@ -1711,7 +1720,7 @@ const FAccordion = ({
|
|
|
1711
1720
|
);
|
|
1712
1721
|
};
|
|
1713
1722
|
const container$1 = "_container_6r9j2_1";
|
|
1714
|
-
const styles$
|
|
1723
|
+
const styles$j = {
|
|
1715
1724
|
container: container$1,
|
|
1716
1725
|
"custom-file": "_custom-file_6r9j2_6",
|
|
1717
1726
|
"custom-file-input": "_custom-file-input_6r9j2_9",
|
|
@@ -1841,11 +1850,11 @@ const FInputFileForm = ({
|
|
|
1841
1850
|
setUploadProgress({});
|
|
1842
1851
|
}
|
|
1843
1852
|
}, [deleteFile]);
|
|
1844
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
1853
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$j.container, children: [
|
|
1845
1854
|
/* @__PURE__ */ jsxs(
|
|
1846
1855
|
"div",
|
|
1847
1856
|
{
|
|
1848
|
-
className: `${styles$
|
|
1857
|
+
className: `${styles$j["custom-file"]} ${styles$j["custom-file-dropzone"]} ${isDragging ? styles$j.dragging : ""}`,
|
|
1849
1858
|
style: st,
|
|
1850
1859
|
onDragOver: handleDragOver,
|
|
1851
1860
|
onDragLeave: handleDragLeave,
|
|
@@ -1857,7 +1866,7 @@ const FInputFileForm = ({
|
|
|
1857
1866
|
required,
|
|
1858
1867
|
accept,
|
|
1859
1868
|
type: "file",
|
|
1860
|
-
className: `${styles$
|
|
1869
|
+
className: `${styles$j["custom-file-input"]} ${className || ""}`,
|
|
1861
1870
|
name,
|
|
1862
1871
|
id,
|
|
1863
1872
|
title: title2,
|
|
@@ -1868,7 +1877,7 @@ const FInputFileForm = ({
|
|
|
1868
1877
|
ref: inputRef
|
|
1869
1878
|
}
|
|
1870
1879
|
),
|
|
1871
|
-
/* @__PURE__ */ jsxs("label", { htmlFor: id, className: styles$
|
|
1880
|
+
/* @__PURE__ */ jsxs("label", { htmlFor: id, className: styles$j["custom-file-label"], style: disabled2 ? { backgroundColor: "#F3F3F3", border: "1px dashed #C4C4C4" } : void 0, children: [
|
|
1872
1881
|
/* @__PURE__ */ jsxs("svg", { width: "30", height: "30", fill: "currentColor", viewBox: "0 0 16 16", children: [
|
|
1873
1882
|
/* @__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" }),
|
|
1874
1883
|
/* @__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" })
|
|
@@ -1894,8 +1903,8 @@ const FInputFileForm = ({
|
|
|
1894
1903
|
]
|
|
1895
1904
|
}
|
|
1896
1905
|
),
|
|
1897
|
-
errors.length > 0 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1898
|
-
showPreview && selectedFiles.length > 0 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1906
|
+
errors.length > 0 && /* @__PURE__ */ jsx("div", { className: styles$j.errors, children: errors.map((error2, index) => /* @__PURE__ */ jsx("div", { className: styles$j.error, children: error2 }, index)) }),
|
|
1907
|
+
showPreview && selectedFiles.length > 0 && /* @__PURE__ */ jsx("div", { className: styles$j["custom-files-preview"], children: selectedFiles.map((file, index) => /* @__PURE__ */ jsx("div", { className: styles$j.fileItem, children: /* @__PURE__ */ jsx(
|
|
1899
1908
|
FFile,
|
|
1900
1909
|
{
|
|
1901
1910
|
name: file.name,
|
|
@@ -1906,7 +1915,7 @@ const FInputFileForm = ({
|
|
|
1906
1915
|
) }, index)) })
|
|
1907
1916
|
] });
|
|
1908
1917
|
};
|
|
1909
|
-
const styles$
|
|
1918
|
+
const styles$i = {
|
|
1910
1919
|
"f-select": "_f-select_1n6ag_1",
|
|
1911
1920
|
"f-select__control-element": "_f-select__control-element_1n6ag_5"
|
|
1912
1921
|
};
|
|
@@ -1936,7 +1945,7 @@ const FSelect = forwardRef(
|
|
|
1936
1945
|
return /* @__PURE__ */ jsxs(
|
|
1937
1946
|
"div",
|
|
1938
1947
|
{
|
|
1939
|
-
className: `f-form-element ${styles$
|
|
1948
|
+
className: `f-form-element ${styles$i["f-select"]}`,
|
|
1940
1949
|
style: mergedStyle,
|
|
1941
1950
|
id: inputId + "-select-block",
|
|
1942
1951
|
role: "group",
|
|
@@ -1961,7 +1970,7 @@ const FSelect = forwardRef(
|
|
|
1961
1970
|
...props,
|
|
1962
1971
|
id: inputId,
|
|
1963
1972
|
disabled: props.disabled || load,
|
|
1964
|
-
className: `f-form-element__control-element ${styles$
|
|
1973
|
+
className: `f-form-element__control-element ${styles$i["f-select__control-element"]} ${errText ? "error" : ""} ${props.className || ""}`,
|
|
1965
1974
|
children: !load && children
|
|
1966
1975
|
}
|
|
1967
1976
|
),
|
|
@@ -2056,14 +2065,14 @@ const FFullDateField = forwardRef(
|
|
|
2056
2065
|
);
|
|
2057
2066
|
}
|
|
2058
2067
|
);
|
|
2059
|
-
const active$
|
|
2060
|
-
const styles$
|
|
2068
|
+
const active$3 = "_active_yhck3_41";
|
|
2069
|
+
const styles$h = {
|
|
2061
2070
|
"f-select-search-db": "_f-select-search-db_yhck3_1",
|
|
2062
2071
|
"f-select-search-db__input": "_f-select-search-db__input_yhck3_7",
|
|
2063
2072
|
"f-select-search-db__input_field": "_f-select-search-db__input_field_yhck3_11",
|
|
2064
2073
|
"f-select-search-db__input_arrow": "_f-select-search-db__input_arrow_yhck3_14",
|
|
2065
2074
|
"f-select-search-db__dropdown": "_f-select-search-db__dropdown_yhck3_21",
|
|
2066
|
-
active: active$
|
|
2075
|
+
active: active$3,
|
|
2067
2076
|
"f-select-search-db__dropdown_content": "_f-select-search-db__dropdown_content_yhck3_45"
|
|
2068
2077
|
};
|
|
2069
2078
|
const FSelectSearchDb = ({
|
|
@@ -2241,12 +2250,12 @@ const FSelectSearchDb = ({
|
|
|
2241
2250
|
"div",
|
|
2242
2251
|
{
|
|
2243
2252
|
ref: containerRef,
|
|
2244
|
-
className: `${styles$
|
|
2253
|
+
className: `${styles$h["f-select-search-db"]} ${className || ""}`,
|
|
2245
2254
|
style: st,
|
|
2246
2255
|
id,
|
|
2247
2256
|
"data-position": dropdownPosition,
|
|
2248
2257
|
children: [
|
|
2249
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
2258
|
+
/* @__PURE__ */ jsxs("div", { className: styles$h["f-select-search-db__input"], children: [
|
|
2250
2259
|
/* @__PURE__ */ jsx(
|
|
2251
2260
|
FTextField,
|
|
2252
2261
|
{
|
|
@@ -2257,7 +2266,7 @@ const FSelectSearchDb = ({
|
|
|
2257
2266
|
label,
|
|
2258
2267
|
type,
|
|
2259
2268
|
placeholder,
|
|
2260
|
-
className: styles$
|
|
2269
|
+
className: styles$h["f-select-search-db__input_field"],
|
|
2261
2270
|
value: valueInput,
|
|
2262
2271
|
onChange: handlerOnChange,
|
|
2263
2272
|
onFocus,
|
|
@@ -2274,7 +2283,7 @@ const FSelectSearchDb = ({
|
|
|
2274
2283
|
!load && !disabled2 && arrObject.length > 0 && /* @__PURE__ */ jsx(
|
|
2275
2284
|
"div",
|
|
2276
2285
|
{
|
|
2277
|
-
className: styles$
|
|
2286
|
+
className: styles$h["f-select-search-db__input_arrow"],
|
|
2278
2287
|
style: { marginTop: label ? "28px" : "7px" },
|
|
2279
2288
|
onClick: handleArrowClick,
|
|
2280
2289
|
children: /* @__PURE__ */ jsx(FArrowIcon, { direction: isDropdownOpen ? "up" : "down", size: 15 })
|
|
@@ -2286,8 +2295,8 @@ const FSelectSearchDb = ({
|
|
|
2286
2295
|
"div",
|
|
2287
2296
|
{
|
|
2288
2297
|
ref: dropdownRef,
|
|
2289
|
-
className: `${styles$
|
|
2290
|
-
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$
|
|
2298
|
+
className: `${styles$h["f-select-search-db__dropdown"]} ${isDropdownOpen ? styles$h.active : ""}`,
|
|
2299
|
+
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$h["f-select-search-db__dropdown_content"], children: arrObject.slice(0, 10).map((opt, index) => /* @__PURE__ */ jsx("li", { onMouseDown: () => handleItemClick(opt), children: selectItem(opt) }, index)) })
|
|
2291
2300
|
}
|
|
2292
2301
|
),
|
|
2293
2302
|
dropdownPortalRef.current
|
|
@@ -2296,7 +2305,7 @@ const FSelectSearchDb = ({
|
|
|
2296
2305
|
}
|
|
2297
2306
|
);
|
|
2298
2307
|
};
|
|
2299
|
-
const styles$
|
|
2308
|
+
const styles$g = {
|
|
2300
2309
|
"f-text-area": "_f-text-area_1ywhr_1"
|
|
2301
2310
|
};
|
|
2302
2311
|
const FTextArea = forwardRef(
|
|
@@ -2325,7 +2334,7 @@ const FTextArea = forwardRef(
|
|
|
2325
2334
|
return /* @__PURE__ */ jsxs(
|
|
2326
2335
|
"div",
|
|
2327
2336
|
{
|
|
2328
|
-
className: `f-form-element ${styles$
|
|
2337
|
+
className: `f-form-element ${styles$g["f-text-area"]} ${className || ""}`,
|
|
2329
2338
|
style: mergedStyle,
|
|
2330
2339
|
role: "group",
|
|
2331
2340
|
id: areaId + "-text-area-block",
|
|
@@ -2697,13 +2706,13 @@ const FNative = ({
|
|
|
2697
2706
|
};
|
|
2698
2707
|
const horizontal = "_horizontal_zlvc7_1";
|
|
2699
2708
|
const vertical = "_vertical_zlvc7_7";
|
|
2700
|
-
const active$
|
|
2701
|
-
const styles$
|
|
2709
|
+
const active$2 = "_active_zlvc7_50";
|
|
2710
|
+
const styles$f = {
|
|
2702
2711
|
"f-tabs": "_f-tabs_zlvc7_1",
|
|
2703
2712
|
horizontal,
|
|
2704
2713
|
vertical,
|
|
2705
2714
|
"f-tabs__tab": "_f-tabs__tab_zlvc7_16",
|
|
2706
|
-
active: active$
|
|
2715
|
+
active: active$2
|
|
2707
2716
|
};
|
|
2708
2717
|
const FTabs = ({
|
|
2709
2718
|
children,
|
|
@@ -2717,7 +2726,7 @@ const FTabs = ({
|
|
|
2717
2726
|
{
|
|
2718
2727
|
id,
|
|
2719
2728
|
style: st,
|
|
2720
|
-
className: `${styles$
|
|
2729
|
+
className: `${styles$f["f-tabs"]} ${styles$f[orientation]} ${className || ""}`,
|
|
2721
2730
|
children
|
|
2722
2731
|
}
|
|
2723
2732
|
);
|
|
@@ -2734,20 +2743,20 @@ const FTab = forwardRef(({
|
|
|
2734
2743
|
ref,
|
|
2735
2744
|
type: "button",
|
|
2736
2745
|
style: st,
|
|
2737
|
-
className: `${styles$
|
|
2746
|
+
className: `${styles$f["f-tabs__tab"]} ${active2 ? styles$f["active"] : ""} ${props.className || ""}`,
|
|
2738
2747
|
...props,
|
|
2739
2748
|
children
|
|
2740
2749
|
}
|
|
2741
2750
|
);
|
|
2742
2751
|
});
|
|
2743
2752
|
FTab.displayName = "FTab";
|
|
2744
|
-
const disabled$
|
|
2745
|
-
const styles$
|
|
2753
|
+
const disabled$2 = "_disabled_2ty2i_40";
|
|
2754
|
+
const styles$e = {
|
|
2746
2755
|
"f-dropdown": "_f-dropdown_2ty2i_1",
|
|
2747
2756
|
"f-dropdown__arrow": "_f-dropdown__arrow_2ty2i_6",
|
|
2748
2757
|
"f-dropdown__content": "_f-dropdown__content_2ty2i_10",
|
|
2749
2758
|
"f-dropdown__content-link": "_f-dropdown__content-link_2ty2i_28",
|
|
2750
|
-
disabled: disabled$
|
|
2759
|
+
disabled: disabled$2,
|
|
2751
2760
|
"f-dropdown__content--open": "_f-dropdown__content--open_2ty2i_48"
|
|
2752
2761
|
};
|
|
2753
2762
|
const FDropdown = forwardRef(({
|
|
@@ -2792,7 +2801,7 @@ const FDropdown = forwardRef(({
|
|
|
2792
2801
|
return child;
|
|
2793
2802
|
});
|
|
2794
2803
|
};
|
|
2795
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
2804
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$e["f-dropdown"], ref, ...props, children: [
|
|
2796
2805
|
/* @__PURE__ */ jsx(
|
|
2797
2806
|
FButton,
|
|
2798
2807
|
{
|
|
@@ -2801,21 +2810,21 @@ const FDropdown = forwardRef(({
|
|
|
2801
2810
|
size,
|
|
2802
2811
|
disabled: disabled2,
|
|
2803
2812
|
st,
|
|
2804
|
-
className: `${styles$
|
|
2813
|
+
className: `${styles$e["f-dropdown__button"]} ${className || ""}`,
|
|
2805
2814
|
id,
|
|
2806
2815
|
onClick: () => setIsOpen((v) => !v),
|
|
2807
2816
|
"aria-haspopup": "menu",
|
|
2808
2817
|
"aria-expanded": isOpen,
|
|
2809
2818
|
children: /* @__PURE__ */ jsxs(FStack, { direction: "row", spacing: 2, justifyContent: "center", alignItems: "center", children: [
|
|
2810
2819
|
label,
|
|
2811
|
-
/* @__PURE__ */ jsx(FArrowIcon, { className: styles$
|
|
2820
|
+
/* @__PURE__ */ jsx(FArrowIcon, { className: styles$e["f-dropdown__arrow"], size: 16, color: "light", direction: isOpen ? "up" : "down" })
|
|
2812
2821
|
] })
|
|
2813
2822
|
}
|
|
2814
2823
|
),
|
|
2815
2824
|
/* @__PURE__ */ jsx(
|
|
2816
2825
|
"div",
|
|
2817
2826
|
{
|
|
2818
|
-
className: styles$
|
|
2827
|
+
className: styles$e["f-dropdown__content"] + (isOpen ? " " + styles$e["f-dropdown__content--open"] : ""),
|
|
2819
2828
|
role: "menu",
|
|
2820
2829
|
children: renderChildren()
|
|
2821
2830
|
}
|
|
@@ -2836,7 +2845,7 @@ const FDropdownItem = ({
|
|
|
2836
2845
|
{
|
|
2837
2846
|
id,
|
|
2838
2847
|
style: st,
|
|
2839
|
-
className: `${styles$
|
|
2848
|
+
className: `${styles$e["f-dropdown__content-link"]} ${className || ""} ${disabled2 ? styles$e["disabled"] : ""}`,
|
|
2840
2849
|
onClick: disabled2 ? void 0 : onClick,
|
|
2841
2850
|
"aria-disabled": disabled2,
|
|
2842
2851
|
role: "menuitem",
|
|
@@ -2844,13 +2853,13 @@ const FDropdownItem = ({
|
|
|
2844
2853
|
}
|
|
2845
2854
|
);
|
|
2846
2855
|
};
|
|
2847
|
-
const styles$
|
|
2848
|
-
"f-search-box": "_f-search-
|
|
2849
|
-
"f-search-box__input": "_f-search-
|
|
2850
|
-
"f-search-box__button": "_f-search-
|
|
2851
|
-
"f-search-box__button_search": "_f-search-
|
|
2852
|
-
"clear-on": "_clear-
|
|
2853
|
-
"f-search-box__button_clear": "_f-search-
|
|
2856
|
+
const styles$d = {
|
|
2857
|
+
"f-search-box": "_f-search-box_15oxr_1",
|
|
2858
|
+
"f-search-box__input": "_f-search-box__input_15oxr_7",
|
|
2859
|
+
"f-search-box__button": "_f-search-box__button_15oxr_13",
|
|
2860
|
+
"f-search-box__button_search": "_f-search-box__button_search_15oxr_19",
|
|
2861
|
+
"clear-on": "_clear-on_15oxr_23",
|
|
2862
|
+
"f-search-box__button_clear": "_f-search-box__button_clear_15oxr_26"
|
|
2854
2863
|
};
|
|
2855
2864
|
const FSearchBox = forwardRef(
|
|
2856
2865
|
({
|
|
@@ -2870,7 +2879,7 @@ const FSearchBox = forwardRef(
|
|
|
2870
2879
|
type,
|
|
2871
2880
|
...props
|
|
2872
2881
|
}, ref) => {
|
|
2873
|
-
return /* @__PURE__ */ jsxs("div", { className: `${styles$
|
|
2882
|
+
return /* @__PURE__ */ jsxs("div", { className: `${styles$d["f-search-box"]} form-group`, style: st, children: [
|
|
2874
2883
|
/* @__PURE__ */ jsx(
|
|
2875
2884
|
FTextField,
|
|
2876
2885
|
{
|
|
@@ -2884,14 +2893,14 @@ const FSearchBox = forwardRef(
|
|
|
2884
2893
|
errText: typeof errText === "string" ? [errText] : errText,
|
|
2885
2894
|
load,
|
|
2886
2895
|
...props,
|
|
2887
|
-
className: `${styles$
|
|
2896
|
+
className: `${styles$d["f-search-box__input"]} ${props.className || ""}`
|
|
2888
2897
|
}
|
|
2889
2898
|
),
|
|
2890
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
2899
|
+
/* @__PURE__ */ jsxs("div", { className: styles$d["f-search-box__button"], style: { marginTop: label ? "21.8px" : "0" }, children: [
|
|
2891
2900
|
/* @__PURE__ */ jsx(
|
|
2892
2901
|
FButton,
|
|
2893
2902
|
{
|
|
2894
|
-
className: `${styles$
|
|
2903
|
+
className: `${styles$d["f-search-box__button_search"]} ${clearDataFromInput ? styles$d["clear-on"] : ""}`,
|
|
2895
2904
|
type: "button",
|
|
2896
2905
|
disabled: disabled2,
|
|
2897
2906
|
onClick: onClickButton,
|
|
@@ -2903,7 +2912,7 @@ const FSearchBox = forwardRef(
|
|
|
2903
2912
|
clearDataFromInput && /* @__PURE__ */ jsx(
|
|
2904
2913
|
FButton,
|
|
2905
2914
|
{
|
|
2906
|
-
className: `${styles$
|
|
2915
|
+
className: `${styles$d["f-search-box__button_clear"]}`,
|
|
2907
2916
|
type: "button",
|
|
2908
2917
|
disabled: disabled2,
|
|
2909
2918
|
onClick: clearDataFromInput,
|
|
@@ -2916,7 +2925,7 @@ const FSearchBox = forwardRef(
|
|
|
2916
2925
|
] });
|
|
2917
2926
|
}
|
|
2918
2927
|
);
|
|
2919
|
-
const styles$
|
|
2928
|
+
const styles$c = {
|
|
2920
2929
|
"f-carousel": "_f-carousel_d5w12_1",
|
|
2921
2930
|
"f-carousel__viewport": "_f-carousel__viewport_d5w12_8",
|
|
2922
2931
|
"f-carousel__track": "_f-carousel__track_d5w12_12",
|
|
@@ -2999,10 +3008,10 @@ const FCarousel = ({
|
|
|
2999
3008
|
const handleTouchEnd = () => {
|
|
3000
3009
|
startX.current = null;
|
|
3001
3010
|
};
|
|
3002
|
-
const rootClass = [styles$
|
|
3011
|
+
const rootClass = [styles$c["f-carousel"], className].filter(Boolean).join(" ");
|
|
3003
3012
|
const trackClass = [
|
|
3004
|
-
styles$
|
|
3005
|
-
isAnimating ? styles$
|
|
3013
|
+
styles$c["f-carousel__track"],
|
|
3014
|
+
isAnimating ? styles$c["f-carousel__track--animating"] : ""
|
|
3006
3015
|
].filter(Boolean).join(" ");
|
|
3007
3016
|
const trackStyle = {
|
|
3008
3017
|
transform: `translateX(-${100 / itemsCount * current}%)`,
|
|
@@ -3013,7 +3022,7 @@ const FCarousel = ({
|
|
|
3013
3022
|
showArrows && /* @__PURE__ */ jsx(
|
|
3014
3023
|
"button",
|
|
3015
3024
|
{
|
|
3016
|
-
className: `${styles$
|
|
3025
|
+
className: `${styles$c["f-carousel__arrow"]} ${styles$c["f-carousel__arrow--left"]}`,
|
|
3017
3026
|
onClick: handlePrev,
|
|
3018
3027
|
disabled: !loop && current === 0,
|
|
3019
3028
|
"aria-label": "Назад",
|
|
@@ -3023,14 +3032,14 @@ const FCarousel = ({
|
|
|
3023
3032
|
/* @__PURE__ */ jsx(
|
|
3024
3033
|
"div",
|
|
3025
3034
|
{
|
|
3026
|
-
className: styles$
|
|
3035
|
+
className: styles$c["f-carousel__viewport"],
|
|
3027
3036
|
onTouchStart: handleTouchStart,
|
|
3028
3037
|
onTouchMove: handleTouchMove,
|
|
3029
3038
|
onTouchEnd: handleTouchEnd,
|
|
3030
3039
|
children: /* @__PURE__ */ jsx("div", { ref: trackRef, className: trackClass, style: trackStyle, children: children.map((child, idx) => /* @__PURE__ */ jsx(
|
|
3031
3040
|
"div",
|
|
3032
3041
|
{
|
|
3033
|
-
className: styles$
|
|
3042
|
+
className: styles$c["f-carousel__item"],
|
|
3034
3043
|
style: { width: `${100 / itemsCount}%` },
|
|
3035
3044
|
children: child
|
|
3036
3045
|
},
|
|
@@ -3041,19 +3050,19 @@ const FCarousel = ({
|
|
|
3041
3050
|
showArrows && /* @__PURE__ */ jsx(
|
|
3042
3051
|
"button",
|
|
3043
3052
|
{
|
|
3044
|
-
className: `${styles$
|
|
3053
|
+
className: `${styles$c["f-carousel__arrow"]} ${styles$c["f-carousel__arrow--right"]}`,
|
|
3045
3054
|
onClick: handleNext,
|
|
3046
3055
|
disabled: !loop && current >= itemsCount - visibleCount,
|
|
3047
3056
|
"aria-label": "Вперёд",
|
|
3048
3057
|
children: /* @__PURE__ */ jsx("img", { src: arrowRight, alt: "Следующий слайд" })
|
|
3049
3058
|
}
|
|
3050
3059
|
),
|
|
3051
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
3060
|
+
/* @__PURE__ */ jsx("div", { className: styles$c["f-carousel__indicators"], children: Array.from({ length: itemsCount - visibleCount + 1 }).map((_, idx) => /* @__PURE__ */ jsx(
|
|
3052
3061
|
"button",
|
|
3053
3062
|
{
|
|
3054
3063
|
className: [
|
|
3055
|
-
styles$
|
|
3056
|
-
idx === current ? styles$
|
|
3064
|
+
styles$c["f-carousel__indicator"],
|
|
3065
|
+
idx === current ? styles$c["f-carousel__indicator--active"] : ""
|
|
3057
3066
|
].join(" "),
|
|
3058
3067
|
onClick: () => setCurrent(idx),
|
|
3059
3068
|
"aria-label": `Перейти к слайду ${idx + 1}`
|
|
@@ -3067,10 +3076,10 @@ const FCarouselItem = ({
|
|
|
3067
3076
|
className,
|
|
3068
3077
|
id
|
|
3069
3078
|
}) => {
|
|
3070
|
-
return /* @__PURE__ */ jsx("div", { className: `${styles$
|
|
3079
|
+
return /* @__PURE__ */ jsx("div", { className: `${styles$c["f-carousel-item"]} ${className || ""}`, id, children });
|
|
3071
3080
|
};
|
|
3072
3081
|
const skeleton = "_skeleton_1ojrt_1";
|
|
3073
|
-
const styles$
|
|
3082
|
+
const styles$b = {
|
|
3074
3083
|
"skeleton-block": "_skeleton-block_1ojrt_1",
|
|
3075
3084
|
skeleton
|
|
3076
3085
|
};
|
|
@@ -3080,7 +3089,7 @@ const FSkeleton = ({ children, enable, width, height }) => {
|
|
|
3080
3089
|
const skeletons = useRef([]);
|
|
3081
3090
|
const createSkeleton = (element) => {
|
|
3082
3091
|
const skeleton2 = document.createElement("div");
|
|
3083
|
-
skeleton2.className = styles$
|
|
3092
|
+
skeleton2.className = styles$b.skeleton;
|
|
3084
3093
|
const computedStyle = window.getComputedStyle(element);
|
|
3085
3094
|
skeleton2.style.width = width ?? computedStyle.width;
|
|
3086
3095
|
skeleton2.style.height = height ?? computedStyle.height;
|
|
@@ -3127,16 +3136,16 @@ const FSkeleton = ({ children, enable, width, height }) => {
|
|
|
3127
3136
|
restoreOriginalElements();
|
|
3128
3137
|
};
|
|
3129
3138
|
}, [enable]);
|
|
3130
|
-
return /* @__PURE__ */ jsx("div", { ref: elementRef, className: styles$
|
|
3139
|
+
return /* @__PURE__ */ jsx("div", { ref: elementRef, className: styles$b["skeleton-block"], children });
|
|
3131
3140
|
};
|
|
3132
|
-
const active = "_active_lv3xi_122";
|
|
3133
|
-
const styles$
|
|
3141
|
+
const active$1 = "_active_lv3xi_122";
|
|
3142
|
+
const styles$a = {
|
|
3134
3143
|
"wave-nav-wrapper": "_wave-nav-wrapper_lv3xi_5",
|
|
3135
3144
|
"wave-nav-grid-item": "_wave-nav-grid-item_lv3xi_17",
|
|
3136
3145
|
"wave-nav-bar": "_wave-nav-bar_lv3xi_27",
|
|
3137
3146
|
"wave-nav-list": "_wave-nav-list_lv3xi_48",
|
|
3138
3147
|
"wave-nav-item": "_wave-nav-item_lv3xi_75",
|
|
3139
|
-
active
|
|
3148
|
+
active: active$1
|
|
3140
3149
|
};
|
|
3141
3150
|
const FNavigateBar = ({
|
|
3142
3151
|
st,
|
|
@@ -3144,7 +3153,7 @@ const FNavigateBar = ({
|
|
|
3144
3153
|
id,
|
|
3145
3154
|
className
|
|
3146
3155
|
}) => {
|
|
3147
|
-
return /* @__PURE__ */ jsx(FGrid, { obj: "container", id, className: `${styles$
|
|
3156
|
+
return /* @__PURE__ */ jsx(FGrid, { obj: "container", id, className: `${styles$a["wave-nav-wrapper"]} ${className || ""}`, children: /* @__PURE__ */ jsx(FGridRow, { children: /* @__PURE__ */ jsx(FGrid, { obj: "item", sm: 12, className: styles$a["wave-nav-grid-item"], children: /* @__PURE__ */ jsx("nav", { style: st, className: styles$a["wave-nav-bar"], children: /* @__PURE__ */ jsx("ul", { className: styles$a["wave-nav-list"], children }) }) }) }) });
|
|
3148
3157
|
};
|
|
3149
3158
|
const FNavigateBarItem = ({
|
|
3150
3159
|
st,
|
|
@@ -3160,7 +3169,7 @@ const FNavigateBarItem = ({
|
|
|
3160
3169
|
{
|
|
3161
3170
|
id,
|
|
3162
3171
|
style: st || style,
|
|
3163
|
-
className: `${styles$
|
|
3172
|
+
className: `${styles$a["wave-nav-item"]} ${activeClass ? styles$a.active : ""} ${className || ""}`,
|
|
3164
3173
|
...rest,
|
|
3165
3174
|
children
|
|
3166
3175
|
}
|
|
@@ -3175,8 +3184,8 @@ const countBadge = "_countBadge_14i30_114";
|
|
|
3175
3184
|
const linksList = "_linksList_14i30_124";
|
|
3176
3185
|
const linkItem = "_linkItem_14i30_131";
|
|
3177
3186
|
const badge = "_badge_14i30_172";
|
|
3178
|
-
const disabled = "_disabled_14i30_197";
|
|
3179
|
-
const styles$
|
|
3187
|
+
const disabled$1 = "_disabled_14i30_197";
|
|
3188
|
+
const styles$9 = {
|
|
3180
3189
|
reportsPageContainer,
|
|
3181
3190
|
searchBar,
|
|
3182
3191
|
reportsGrid,
|
|
@@ -3186,7 +3195,7 @@ const styles$8 = {
|
|
|
3186
3195
|
linksList,
|
|
3187
3196
|
linkItem,
|
|
3188
3197
|
badge,
|
|
3189
|
-
disabled
|
|
3198
|
+
disabled: disabled$1
|
|
3190
3199
|
};
|
|
3191
3200
|
const MenuSearchContext = createContext("");
|
|
3192
3201
|
const FMenuBlockLinks = ({
|
|
@@ -3202,8 +3211,8 @@ const FMenuBlockLinks = ({
|
|
|
3202
3211
|
...columns ? { "--cols": columns } : {},
|
|
3203
3212
|
...st
|
|
3204
3213
|
};
|
|
3205
|
-
return /* @__PURE__ */ jsxs("div", { className: `${styles$
|
|
3206
|
-
withSearch && /* @__PURE__ */ jsx("div", { className: styles$
|
|
3214
|
+
return /* @__PURE__ */ jsxs("div", { className: `${styles$9.reportsPageContainer} ${className ?? ""}`.trim(), id, children: [
|
|
3215
|
+
withSearch && /* @__PURE__ */ jsx("div", { className: styles$9.searchBar, children: /* @__PURE__ */ jsx(
|
|
3207
3216
|
"input",
|
|
3208
3217
|
{
|
|
3209
3218
|
type: "text",
|
|
@@ -3212,7 +3221,7 @@ const FMenuBlockLinks = ({
|
|
|
3212
3221
|
onChange: (e) => setSearchValue(e.target.value)
|
|
3213
3222
|
}
|
|
3214
3223
|
) }),
|
|
3215
|
-
/* @__PURE__ */ jsx(MenuSearchContext.Provider, { value: searchValue, children: /* @__PURE__ */ jsx("div", { className: styles$
|
|
3224
|
+
/* @__PURE__ */ jsx(MenuSearchContext.Provider, { value: searchValue, children: /* @__PURE__ */ jsx("div", { className: styles$9.reportsGrid, style: layoutStyle, children }) })
|
|
3216
3225
|
] });
|
|
3217
3226
|
};
|
|
3218
3227
|
const getElementText = (node) => {
|
|
@@ -3248,11 +3257,11 @@ const FMenuLinks = ({
|
|
|
3248
3257
|
const badgeText = badges[originalIndex] || child.props["data-badge"];
|
|
3249
3258
|
const childClass = [
|
|
3250
3259
|
child.props.className,
|
|
3251
|
-
styles$
|
|
3252
|
-
isDisabled ? styles$
|
|
3260
|
+
styles$9.linkItem,
|
|
3261
|
+
isDisabled ? styles$9.disabled : ""
|
|
3253
3262
|
].filter(Boolean).join(" ");
|
|
3254
3263
|
const innerContent = badgeText ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3255
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
3264
|
+
/* @__PURE__ */ jsx("span", { className: styles$9.badge, children: badgeText }),
|
|
3256
3265
|
child.props.children
|
|
3257
3266
|
] }) : child.props.children;
|
|
3258
3267
|
return React.cloneElement(child, {
|
|
@@ -3265,15 +3274,15 @@ const FMenuLinks = ({
|
|
|
3265
3274
|
}
|
|
3266
3275
|
});
|
|
3267
3276
|
});
|
|
3268
|
-
return /* @__PURE__ */ jsxs("div", { className: `${styles$
|
|
3269
|
-
title2 && /* @__PURE__ */ jsxs("div", { className: styles$
|
|
3277
|
+
return /* @__PURE__ */ jsxs("div", { className: `${styles$9.card} ${className ?? ""}`.trim(), style: st, id, children: [
|
|
3278
|
+
title2 && /* @__PURE__ */ jsxs("div", { className: styles$9.cardHeader, children: [
|
|
3270
3279
|
/* @__PURE__ */ jsx("h3", { children: title2 }),
|
|
3271
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
3280
|
+
/* @__PURE__ */ jsx("span", { className: styles$9.countBadge, children: filteredChildren.length })
|
|
3272
3281
|
] }),
|
|
3273
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
3282
|
+
/* @__PURE__ */ jsx("div", { className: styles$9.linksList, children: enhancedChildren })
|
|
3274
3283
|
] });
|
|
3275
3284
|
};
|
|
3276
|
-
const styles$
|
|
3285
|
+
const styles$8 = {
|
|
3277
3286
|
"f-tooltip": "_f-tooltip_xpnbo_1",
|
|
3278
3287
|
"f-tooltip--open": "_f-tooltip--open_xpnbo_17",
|
|
3279
3288
|
"f-tooltip--exiting": "_f-tooltip--exiting_xpnbo_22",
|
|
@@ -3462,11 +3471,11 @@ const FTooltip = ({
|
|
|
3462
3471
|
wrappedChild = cloneElement(children, childProps);
|
|
3463
3472
|
}
|
|
3464
3473
|
const tooltipClasses = [
|
|
3465
|
-
styles$
|
|
3466
|
-
styles$
|
|
3467
|
-
arrow2 ? styles$
|
|
3468
|
-
isVisible ? styles$
|
|
3469
|
-
isExiting ? styles$
|
|
3474
|
+
styles$8["f-tooltip"],
|
|
3475
|
+
styles$8[`f-tooltip--${placement}`],
|
|
3476
|
+
arrow2 ? styles$8["f-tooltip--with-arrow"] : "",
|
|
3477
|
+
isVisible ? styles$8["f-tooltip--open"] : "",
|
|
3478
|
+
isExiting ? styles$8["f-tooltip--exiting"] : "",
|
|
3470
3479
|
className
|
|
3471
3480
|
].filter(Boolean).join(" ");
|
|
3472
3481
|
const tooltipElement = mountTooltip && title2 ? /* @__PURE__ */ jsxs(
|
|
@@ -3477,8 +3486,8 @@ const FTooltip = ({
|
|
|
3477
3486
|
style: { ...style, ...tooltipStyles },
|
|
3478
3487
|
role: "tooltip",
|
|
3479
3488
|
children: [
|
|
3480
|
-
arrow2 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
3481
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
3489
|
+
arrow2 && /* @__PURE__ */ jsx("div", { className: styles$8["f-tooltip__arrow"] }),
|
|
3490
|
+
/* @__PURE__ */ jsx("div", { className: styles$8["f-tooltip__content"], children: title2 })
|
|
3482
3491
|
]
|
|
3483
3492
|
}
|
|
3484
3493
|
) : null;
|
|
@@ -3490,7 +3499,7 @@ const FTooltip = ({
|
|
|
3490
3499
|
const rotate = "_rotate_1kvw2_38";
|
|
3491
3500
|
const focused = "_focused_1kvw2_87";
|
|
3492
3501
|
const selected = "_selected_1kvw2_90";
|
|
3493
|
-
const styles$
|
|
3502
|
+
const styles$7 = {
|
|
3494
3503
|
"f-search-select": "_f-search-select_1kvw2_3",
|
|
3495
3504
|
"f-select-native-hidden": "_f-select-native-hidden_1kvw2_9",
|
|
3496
3505
|
"f-select-actions": "_f-select-actions_1kvw2_20",
|
|
@@ -3521,7 +3530,7 @@ const HighlightedText = ({ text, highlight }) => {
|
|
|
3521
3530
|
const regex = new RegExp(`(${escapeRegExp(highlight)})`, "gi");
|
|
3522
3531
|
const parts = text.split(regex);
|
|
3523
3532
|
return /* @__PURE__ */ jsx("span", { children: parts.map(
|
|
3524
|
-
(part, i) => regex.test(part) ? /* @__PURE__ */ jsx("span", { className: styles$
|
|
3533
|
+
(part, i) => regex.test(part) ? /* @__PURE__ */ jsx("span", { className: styles$7["f-select-highlight"], children: part }, i) : /* @__PURE__ */ jsx("span", { children: part }, i)
|
|
3525
3534
|
) });
|
|
3526
3535
|
};
|
|
3527
3536
|
const FSearchableSelect = forwardRef(
|
|
@@ -3734,7 +3743,7 @@ const FSearchableSelect = forwardRef(
|
|
|
3734
3743
|
return /* @__PURE__ */ jsxs(
|
|
3735
3744
|
"div",
|
|
3736
3745
|
{
|
|
3737
|
-
className: `f-form-element ${styles$
|
|
3746
|
+
className: `f-form-element ${styles$7["f-search-select"]} ${restProps.className || ""}`,
|
|
3738
3747
|
style: mergedStyle,
|
|
3739
3748
|
ref: containerRef,
|
|
3740
3749
|
id: inputId + "-block",
|
|
@@ -3756,7 +3765,7 @@ const FSearchableSelect = forwardRef(
|
|
|
3756
3765
|
value: restProps.value !== void 0 ? String(restProps.value) : "",
|
|
3757
3766
|
onChange: () => {
|
|
3758
3767
|
},
|
|
3759
|
-
className: styles$
|
|
3768
|
+
className: styles$7["f-select-native-hidden"],
|
|
3760
3769
|
tabIndex: -1,
|
|
3761
3770
|
disabled: disabled2,
|
|
3762
3771
|
"aria-hidden": "true"
|
|
@@ -3770,7 +3779,7 @@ const FSearchableSelect = forwardRef(
|
|
|
3770
3779
|
id: inputId,
|
|
3771
3780
|
type: "text",
|
|
3772
3781
|
autoComplete: "off",
|
|
3773
|
-
className: `f-form-element__control-element ${styles$
|
|
3782
|
+
className: `f-form-element__control-element ${styles$7["has-icons"]} ${errText ? "error" : ""}`,
|
|
3774
3783
|
...restProps,
|
|
3775
3784
|
disabled: disabled2 || load,
|
|
3776
3785
|
value: searchQuery,
|
|
@@ -3792,41 +3801,41 @@ const FSearchableSelect = forwardRef(
|
|
|
3792
3801
|
}
|
|
3793
3802
|
}
|
|
3794
3803
|
),
|
|
3795
|
-
load ? /* @__PURE__ */ jsx("span", { className: "f-form-element__loader", children: /* @__PURE__ */ jsx(FLoadIcon, { size: 10 }) }) : /* @__PURE__ */ jsxs("div", { className: styles$
|
|
3804
|
+
load ? /* @__PURE__ */ jsx("span", { className: "f-form-element__loader", children: /* @__PURE__ */ jsx(FLoadIcon, { size: 10 }) }) : /* @__PURE__ */ jsxs("div", { className: styles$7["f-select-actions"], children: [
|
|
3796
3805
|
hasValue && !disabled2 && /* @__PURE__ */ jsx(
|
|
3797
3806
|
"div",
|
|
3798
3807
|
{
|
|
3799
3808
|
onClick: handleClear,
|
|
3800
|
-
className: `${styles$
|
|
3809
|
+
className: `${styles$7["f-select-icon"]} close`,
|
|
3801
3810
|
title: "Очистить",
|
|
3802
3811
|
onMouseDown: (e) => e.preventDefault(),
|
|
3803
3812
|
children: /* @__PURE__ */ jsx(CloseIcon, {})
|
|
3804
3813
|
}
|
|
3805
3814
|
),
|
|
3806
|
-
/* @__PURE__ */ jsx("div", { className: `${styles$
|
|
3815
|
+
/* @__PURE__ */ jsx("div", { className: `${styles$7["f-select-icon"]} ${isOpen ? styles$7["rotate"] : ""}`, children: /* @__PURE__ */ jsx(ChevronIcon, {}) })
|
|
3807
3816
|
] })
|
|
3808
3817
|
] }),
|
|
3809
3818
|
isOpen && !disabled2 && !load && typeof document !== "undefined" && createPortal(
|
|
3810
3819
|
/* @__PURE__ */ jsx(
|
|
3811
3820
|
"div",
|
|
3812
3821
|
{
|
|
3813
|
-
className: styles$
|
|
3822
|
+
className: styles$7["f-select-dropdown"],
|
|
3814
3823
|
style: dropdownStyle,
|
|
3815
3824
|
ref: dropdownRef,
|
|
3816
3825
|
children: /* @__PURE__ */ jsx(
|
|
3817
3826
|
"ul",
|
|
3818
3827
|
{
|
|
3819
3828
|
ref: listRef,
|
|
3820
|
-
className: styles$
|
|
3829
|
+
className: styles$7["f-select-list"],
|
|
3821
3830
|
style: { maxHeight: `${listMaxHeight}px` },
|
|
3822
|
-
children: isTyping ? /* @__PURE__ */ jsx("li", { className: styles$
|
|
3831
|
+
children: isTyping ? /* @__PURE__ */ jsx("li", { className: styles$7["f-select-no-results"], children: "Ожидается окончание ввода..." }) : renderList.length === 0 ? /* @__PURE__ */ jsx("li", { className: styles$7["f-select-no-results"], children: allowCreate ? "Нет данных" : "Совпадений не найдено" }) : renderList.map((option, index) => /* @__PURE__ */ jsx(
|
|
3823
3832
|
"li",
|
|
3824
3833
|
{
|
|
3825
3834
|
className: `
|
|
3826
|
-
${styles$
|
|
3827
|
-
${option.isNew ? styles$
|
|
3828
|
-
${index === highlightedIndex ? styles$
|
|
3829
|
-
${currentValStr === option.value ? styles$
|
|
3835
|
+
${styles$7["f-select-option"]}
|
|
3836
|
+
${option.isNew ? styles$7["f-select-create"] : ""}
|
|
3837
|
+
${index === highlightedIndex ? styles$7["focused"] : ""}
|
|
3838
|
+
${currentValStr === option.value ? styles$7["selected"] : ""}
|
|
3830
3839
|
`,
|
|
3831
3840
|
onMouseDown: (e) => e.preventDefault(),
|
|
3832
3841
|
onClick: (e) => {
|
|
@@ -3891,6 +3900,94 @@ const FSearchableSelect = forwardRef(
|
|
|
3891
3900
|
}
|
|
3892
3901
|
);
|
|
3893
3902
|
FSearchableSelect.displayName = "FSearchableSelect";
|
|
3903
|
+
const active = "_active_1btub_75";
|
|
3904
|
+
const disabled = "_disabled_1btub_75";
|
|
3905
|
+
const styles$6 = {
|
|
3906
|
+
"f-segmented-wrapper": "_f-segmented-wrapper_1btub_2",
|
|
3907
|
+
"f-segmented-control": "_f-segmented-control_1btub_12",
|
|
3908
|
+
"f-segmented-sm": "_f-segmented-sm_1btub_28",
|
|
3909
|
+
"f-segmented-item": "_f-segmented-item_1btub_28",
|
|
3910
|
+
"f-segmented-md": "_f-segmented-md_1btub_32",
|
|
3911
|
+
"f-segmented-lg": "_f-segmented-lg_1btub_36",
|
|
3912
|
+
"f-segmented-glider": "_f-segmented-glider_1btub_42",
|
|
3913
|
+
active,
|
|
3914
|
+
disabled,
|
|
3915
|
+
"f-segmented-badge": "_f-segmented-badge_1btub_82",
|
|
3916
|
+
"f-segmented-icon": "_f-segmented-icon_1btub_92",
|
|
3917
|
+
"f-segmented-label": "_f-segmented-label_1btub_105"
|
|
3918
|
+
};
|
|
3919
|
+
const FSegmentedControl = ({
|
|
3920
|
+
items,
|
|
3921
|
+
activeId,
|
|
3922
|
+
onChange,
|
|
3923
|
+
size = "md",
|
|
3924
|
+
className = "",
|
|
3925
|
+
style
|
|
3926
|
+
}) => {
|
|
3927
|
+
const itemRefs = useRef([]);
|
|
3928
|
+
const [gliderStyle, setGliderStyle] = useState({
|
|
3929
|
+
width: 0,
|
|
3930
|
+
left: 0
|
|
3931
|
+
});
|
|
3932
|
+
useEffect(() => {
|
|
3933
|
+
const activeIndex = items.findIndex((item) => item.id === activeId);
|
|
3934
|
+
const activeElement = itemRefs.current[activeIndex !== -1 ? activeIndex : 0];
|
|
3935
|
+
if (activeElement) {
|
|
3936
|
+
setGliderStyle({
|
|
3937
|
+
width: activeElement.offsetWidth,
|
|
3938
|
+
left: activeElement.offsetLeft
|
|
3939
|
+
});
|
|
3940
|
+
}
|
|
3941
|
+
}, [activeId, items]);
|
|
3942
|
+
const handleItemClick = (e, item) => {
|
|
3943
|
+
if (item.disabled) return;
|
|
3944
|
+
if (item.onClick) {
|
|
3945
|
+
item.onClick(e, item);
|
|
3946
|
+
}
|
|
3947
|
+
if (!e.defaultPrevented) {
|
|
3948
|
+
onChange(item.id);
|
|
3949
|
+
}
|
|
3950
|
+
};
|
|
3951
|
+
return /* @__PURE__ */ jsx("div", { className: `${styles$6["f-segmented-wrapper"]} ${className}`, style, children: /* @__PURE__ */ jsxs("div", { className: `${styles$6["f-segmented-control"]} ${styles$6[`f-segmented-${size}`]}`, children: [
|
|
3952
|
+
/* @__PURE__ */ jsx(
|
|
3953
|
+
"div",
|
|
3954
|
+
{
|
|
3955
|
+
className: styles$6["f-segmented-glider"],
|
|
3956
|
+
style: {
|
|
3957
|
+
width: `${gliderStyle.width}px`,
|
|
3958
|
+
transform: `translateX(${gliderStyle.left}px)`,
|
|
3959
|
+
left: 0
|
|
3960
|
+
}
|
|
3961
|
+
}
|
|
3962
|
+
),
|
|
3963
|
+
items.map((item, index) => {
|
|
3964
|
+
const isActive = item.id === activeId;
|
|
3965
|
+
return /* @__PURE__ */ jsxs(
|
|
3966
|
+
"button",
|
|
3967
|
+
{
|
|
3968
|
+
ref: (el) => {
|
|
3969
|
+
itemRefs.current[index] = el;
|
|
3970
|
+
},
|
|
3971
|
+
type: "button",
|
|
3972
|
+
disabled: item.disabled,
|
|
3973
|
+
className: `
|
|
3974
|
+
${styles$6["f-segmented-item"]}
|
|
3975
|
+
${isActive ? styles$6["active"] : ""}
|
|
3976
|
+
${item.disabled ? styles$6["disabled"] : ""}
|
|
3977
|
+
`,
|
|
3978
|
+
onClick: (e) => handleItemClick(e, item),
|
|
3979
|
+
children: [
|
|
3980
|
+
item.icon && /* @__PURE__ */ jsx("span", { className: styles$6["f-segmented-icon"], children: item.icon }),
|
|
3981
|
+
/* @__PURE__ */ jsx("span", { className: styles$6["f-segmented-label"], children: item.label }),
|
|
3982
|
+
item.badge !== void 0 && /* @__PURE__ */ jsx("span", { className: styles$6["f-segmented-badge"], children: item.badge })
|
|
3983
|
+
]
|
|
3984
|
+
},
|
|
3985
|
+
String(item.id)
|
|
3986
|
+
);
|
|
3987
|
+
})
|
|
3988
|
+
] }) });
|
|
3989
|
+
};
|
|
3990
|
+
FSegmentedControl.displayName = "FSegmentedControl";
|
|
3894
3991
|
const FPlusIcon = React.forwardRef(({
|
|
3895
3992
|
color = "primary",
|
|
3896
3993
|
size = 30,
|
|
@@ -8553,6 +8650,7 @@ export {
|
|
|
8553
8650
|
FSafeIcon,
|
|
8554
8651
|
FSearchBox,
|
|
8555
8652
|
FSearchableSelect,
|
|
8653
|
+
FSegmentedControl,
|
|
8556
8654
|
FSelect,
|
|
8557
8655
|
FSelectItem,
|
|
8558
8656
|
FSelectSearchDb,
|