stone-kit 0.0.619 → 0.0.621
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/{FilterWithSave-Cgi_z_HZ.js → FilterWithSave-BPpYpkP5.js} +156 -151
- package/dist/{Option-BJoptpZe.js → Option-8X0Ft_zQ.js} +17 -17
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +1 -1
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +2 -2
- package/dist/components/Select/ui/Category.js +1 -1
- package/dist/components/Select/ui/Option.js +1 -1
- package/dist/components/Select/ui/Select.js +1 -1
- package/dist/components/SortSelect/index.js +1 -1
- package/dist/components/SortSelect/ui/SortSelect.js +1 -1
- package/dist/components/TabSwitcher/index.js +1 -1
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +1 -1
- package/dist/components/ZoomControls/ui/ZoomControls.js +1 -1
- package/dist/main.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as _, jsx as e, Fragment as P } from "react/jsx-runtime";
|
|
2
2
|
import { NewIcon as A } from "./components/NewIcon/ui/NewIcon.js";
|
|
3
3
|
import { M as J } from "./Modal-BZv6nlLe.js";
|
|
4
4
|
import { forwardRef as Q, useState as R, useRef as q, useEffect as z } from "react";
|
|
@@ -17,102 +17,102 @@ import "./components/MetroTag/ui/MetroTag.js";
|
|
|
17
17
|
import "./components/LotCard/ui/LotCard.js";
|
|
18
18
|
import "./components/Select/ui/Select.js";
|
|
19
19
|
import { useClientWidth as F } from "./shared/useClientWidth.js";
|
|
20
|
-
import { s as
|
|
20
|
+
import { s as m, u as X } from "./useSortSelect-CjZXLFOG.js";
|
|
21
21
|
import "./components/SliderNavigation/ui/SliderNavigation.js";
|
|
22
22
|
import "./components/LotCardSkeleton/ui/LotCardSkeleton.js";
|
|
23
23
|
import "./components/TabSelect/ui/TabSelect.js";
|
|
24
24
|
import "./components/FormModal/ui/ModalForm.js";
|
|
25
|
-
import { O as T } from "./Option-
|
|
26
|
-
const Y = "_root_2bilg_1", Z = "_text_2bilg_18", tt = "_textMini_2bilg_26", et = "_rootCol_2bilg_32", it = "_item_2bilg_38", rt = "_whiteRow_2bilg_57",
|
|
25
|
+
import { O as T } from "./Option-8X0Ft_zQ.js";
|
|
26
|
+
const Y = "_root_2bilg_1", Z = "_text_2bilg_18", tt = "_textMini_2bilg_26", et = "_rootCol_2bilg_32", it = "_item_2bilg_38", rt = "_whiteRow_2bilg_57", nt = "_firstItem_2bilg_68", at = "_lastItem_2bilg_72", st = "_apart_2bilg_103", ot = "_isLong_2bilg_103", lt = "_autoWidth_2bilg_128", ct = "_mini_2bilg_132", dt = "_isDisabled_2bilg_140", mt = "_grayRow_2bilg_164", f = {
|
|
27
27
|
root: Y,
|
|
28
28
|
text: Z,
|
|
29
29
|
textMini: tt,
|
|
30
30
|
rootCol: et,
|
|
31
31
|
item: it,
|
|
32
32
|
whiteRow: rt,
|
|
33
|
-
firstItem:
|
|
34
|
-
lastItem:
|
|
33
|
+
firstItem: nt,
|
|
34
|
+
lastItem: at,
|
|
35
35
|
apart: st,
|
|
36
36
|
isLong: ot,
|
|
37
37
|
autoWidth: lt,
|
|
38
38
|
mini: ct,
|
|
39
39
|
isDisabled: dt,
|
|
40
40
|
grayRow: mt
|
|
41
|
-
}, L = V.bind(
|
|
41
|
+
}, L = V.bind(f), pt = ({
|
|
42
42
|
children: s,
|
|
43
|
-
variant:
|
|
43
|
+
variant: n = "whiteRow",
|
|
44
44
|
isApart: o = !1,
|
|
45
|
-
addClassName:
|
|
45
|
+
addClassName: O = "",
|
|
46
46
|
col: l = !1
|
|
47
|
-
}) => /* @__PURE__ */ e("div", { className: L(
|
|
48
|
-
const { isTablet: o, isDesktop:
|
|
47
|
+
}) => /* @__PURE__ */ e("div", { className: L(f.root, f[n], O, { [f.rootCol]: l, [f.apart]: o }), children: s }), G = Q((s, n) => {
|
|
48
|
+
const { isTablet: o, isDesktop: O } = F(), {
|
|
49
49
|
index: l,
|
|
50
50
|
children: t,
|
|
51
51
|
addItemClassName: r,
|
|
52
52
|
addTextClass: c,
|
|
53
|
-
disabled:
|
|
53
|
+
disabled: v = !1,
|
|
54
54
|
itemsLength: b = 0,
|
|
55
55
|
isLongOn: y = !0,
|
|
56
|
-
width:
|
|
57
|
-
width_m:
|
|
58
|
-
width_l:
|
|
59
|
-
mini:
|
|
60
|
-
...
|
|
61
|
-
} = s,
|
|
62
|
-
return /* @__PURE__ */
|
|
56
|
+
width: p,
|
|
57
|
+
width_m: h,
|
|
58
|
+
width_l: u,
|
|
59
|
+
mini: k = !1,
|
|
60
|
+
...N
|
|
61
|
+
} = s, W = (t != null && t.toString().length ? (t == null ? void 0 : t.toString().length) > 2 : !1) && y, w = (x, B) => x && h ? h : B && u ? u : p, g = !p && !h && !u && W;
|
|
62
|
+
return /* @__PURE__ */ _("label", { className: L({ [f.isLong]: W }), children: [
|
|
63
63
|
/* @__PURE__ */ e(
|
|
64
64
|
"input",
|
|
65
65
|
{
|
|
66
|
-
ref:
|
|
66
|
+
ref: n,
|
|
67
67
|
type: "checkbox",
|
|
68
|
-
...
|
|
69
|
-
disabled:
|
|
68
|
+
...N,
|
|
69
|
+
disabled: v
|
|
70
70
|
}
|
|
71
71
|
),
|
|
72
72
|
/* @__PURE__ */ e(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
|
-
style: { width:
|
|
75
|
+
style: { width: w(o, O) },
|
|
76
76
|
className: L(
|
|
77
77
|
L(
|
|
78
|
-
|
|
79
|
-
{ [
|
|
80
|
-
{ [
|
|
81
|
-
{ [
|
|
82
|
-
{ [
|
|
83
|
-
{ [
|
|
78
|
+
f.item,
|
|
79
|
+
{ [f.firstItem]: l === 0 },
|
|
80
|
+
{ [f.lastItem]: l === b - 1 },
|
|
81
|
+
{ [f.isDisabled]: v },
|
|
82
|
+
{ [f.autoWidth]: g },
|
|
83
|
+
{ [f.mini]: k }
|
|
84
84
|
),
|
|
85
85
|
r
|
|
86
86
|
),
|
|
87
|
-
children: /* @__PURE__ */ e(H, { className: L(
|
|
87
|
+
children: /* @__PURE__ */ e(H, { className: L(f.text, { [f.textMini]: k }, c), children: t })
|
|
88
88
|
}
|
|
89
89
|
)
|
|
90
90
|
] });
|
|
91
91
|
});
|
|
92
92
|
G.displayName = "TabSwitcherItem";
|
|
93
|
-
const j = Object.assign(pt, { Item: G }), $ = V.bind(
|
|
93
|
+
const j = Object.assign(pt, { Item: G }), $ = V.bind(m), ht = ({
|
|
94
94
|
options: s,
|
|
95
|
-
selectedOption:
|
|
95
|
+
selectedOption: n,
|
|
96
96
|
placeholder: o = "",
|
|
97
|
-
error:
|
|
97
|
+
error: O,
|
|
98
98
|
disabled: l,
|
|
99
99
|
additionalClass: t = "",
|
|
100
100
|
onChange: r,
|
|
101
101
|
onBlur: c,
|
|
102
|
-
mini:
|
|
102
|
+
mini: v,
|
|
103
103
|
openOnTop: b = !1,
|
|
104
104
|
onClickItem: y,
|
|
105
|
-
onCLickSelect:
|
|
105
|
+
onCLickSelect: p
|
|
106
106
|
}) => {
|
|
107
|
-
const [
|
|
107
|
+
const [h, u] = R(!1), k = q(null), { isMobile: N } = F(), { handleBlur: W, getInputValue: w, getOption: g, handleDocumentClick: x } = X(
|
|
108
108
|
{
|
|
109
|
-
selectedOption:
|
|
109
|
+
selectedOption: n,
|
|
110
110
|
onClickOption: y,
|
|
111
111
|
setSelectedOption: r,
|
|
112
|
-
setIsOpen:
|
|
113
|
-
containerRef:
|
|
114
|
-
isOpen:
|
|
115
|
-
isMobile:
|
|
112
|
+
setIsOpen: u,
|
|
113
|
+
containerRef: k,
|
|
114
|
+
isOpen: h,
|
|
115
|
+
isMobile: N,
|
|
116
116
|
placeholder: o,
|
|
117
117
|
onChange: r,
|
|
118
118
|
onBlur: c
|
|
@@ -120,35 +120,35 @@ const j = Object.assign(pt, { Item: G }), $ = V.bind(d), ht = ({
|
|
|
120
120
|
);
|
|
121
121
|
return z(() => (document.addEventListener("click", x), () => {
|
|
122
122
|
document.removeEventListener("click", x);
|
|
123
|
-
}), []), /* @__PURE__ */
|
|
123
|
+
}), []), /* @__PURE__ */ _(
|
|
124
124
|
"div",
|
|
125
125
|
{
|
|
126
|
-
ref:
|
|
126
|
+
ref: k,
|
|
127
127
|
className: $(
|
|
128
|
-
|
|
129
|
-
{ [
|
|
130
|
-
{ [
|
|
128
|
+
m.sortSelectWrapper,
|
|
129
|
+
{ [m.sortSelectWrapperError]: O },
|
|
130
|
+
{ [m.sortSelectWrapperTop]: b },
|
|
131
131
|
t
|
|
132
132
|
),
|
|
133
133
|
tabIndex: 0,
|
|
134
|
-
onBlur:
|
|
134
|
+
onBlur: W,
|
|
135
135
|
onClick: () => {
|
|
136
|
-
|
|
136
|
+
p && p();
|
|
137
137
|
},
|
|
138
138
|
children: [
|
|
139
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ _("div", { className: $(m.inputWrapper), children: [
|
|
140
140
|
/* @__PURE__ */ e(
|
|
141
141
|
"input",
|
|
142
142
|
{
|
|
143
143
|
type: "text",
|
|
144
144
|
readOnly: !0,
|
|
145
|
-
value:
|
|
145
|
+
value: w(),
|
|
146
146
|
className: $(
|
|
147
|
-
|
|
148
|
-
{ [
|
|
149
|
-
{ [
|
|
147
|
+
m.selectedOptions,
|
|
148
|
+
{ [m.selectOptionsDisabled]: l },
|
|
149
|
+
{ [m.selectionOptionMini]: v }
|
|
150
150
|
),
|
|
151
|
-
onClick: () =>
|
|
151
|
+
onClick: () => u(!h)
|
|
152
152
|
}
|
|
153
153
|
),
|
|
154
154
|
/* @__PURE__ */ e(
|
|
@@ -156,23 +156,23 @@ const j = Object.assign(pt, { Item: G }), $ = V.bind(d), ht = ({
|
|
|
156
156
|
{
|
|
157
157
|
name: "twoArrows",
|
|
158
158
|
size: "24",
|
|
159
|
-
additionalClass:
|
|
159
|
+
additionalClass: m.icon
|
|
160
160
|
}
|
|
161
161
|
)
|
|
162
162
|
] }),
|
|
163
|
-
|
|
163
|
+
h && N && /* @__PURE__ */ _(
|
|
164
164
|
J,
|
|
165
165
|
{
|
|
166
|
-
isOpen:
|
|
167
|
-
emitIsOpen:
|
|
168
|
-
additionalClassModalBody:
|
|
169
|
-
additionalClass:
|
|
166
|
+
isOpen: h,
|
|
167
|
+
emitIsOpen: u,
|
|
168
|
+
additionalClassModalBody: m.modalAddBody,
|
|
169
|
+
additionalClass: m.selectModal,
|
|
170
170
|
createPortalObj: { domNode: document.querySelector("body") },
|
|
171
171
|
isTransparentBack: !0,
|
|
172
172
|
children: [
|
|
173
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ _("div", { className: m.mobileSortHeader, children: [
|
|
174
174
|
/* @__PURE__ */ e(H, { children: "Сортировка" }),
|
|
175
|
-
/* @__PURE__ */ e("div", { onClick: () =>
|
|
175
|
+
/* @__PURE__ */ e("div", { onClick: () => u(!1), children: /* @__PURE__ */ e(
|
|
176
176
|
A,
|
|
177
177
|
{
|
|
178
178
|
name: "close",
|
|
@@ -180,25 +180,25 @@ const j = Object.assign(pt, { Item: G }), $ = V.bind(d), ht = ({
|
|
|
180
180
|
}
|
|
181
181
|
) })
|
|
182
182
|
] }),
|
|
183
|
-
/* @__PURE__ */ e("div", { className:
|
|
183
|
+
/* @__PURE__ */ e("div", { className: m.mobileOptionList, children: s == null ? void 0 : s.map((B) => g(B)) })
|
|
184
184
|
]
|
|
185
185
|
}
|
|
186
186
|
),
|
|
187
|
-
|
|
187
|
+
h && !N && /* @__PURE__ */ e("div", { className: $(m.optionsList, { [m.optionListOnTop]: b }), children: s == null ? void 0 : s.map((B) => g(B)) })
|
|
188
188
|
]
|
|
189
189
|
}
|
|
190
190
|
);
|
|
191
191
|
};
|
|
192
192
|
ht.displayName = "SortSelect";
|
|
193
|
-
const ut = "_root_1t65a_1", _t = "_filterWithSaveModal_1t65a_15", ft = "_modalAddBody_1t65a_20", vt = "_closeBtn_1t65a_29", Nt = "_btnName_1t65a_35", Wt = "_modalTitle_1t65a_39",
|
|
193
|
+
const ut = "_root_1t65a_1", _t = "_filterWithSaveModal_1t65a_15", ft = "_modalAddBody_1t65a_20", vt = "_closeBtn_1t65a_29", Nt = "_btnName_1t65a_35", Wt = "_modalTitle_1t65a_39", gt = "_tabSWitcherWrapper_1t65a_48", Ct = "_switcherTitle_1t65a_56", wt = "_switcherScroll_1t65a_63", Ot = "_tabs_1t65a_72", kt = "_selectWrapper_1t65a_77", St = "_filterOption_1t65a_81", bt = "_btnWrapper_1t65a_88", yt = "_resetBtn_1t65a_94", xt = "_saveBtn_1t65a_95", Bt = "_desktopWrapper_1t65a_99", It = "_desktopWrapperOpen_1t65a_122", i = {
|
|
194
194
|
root: ut,
|
|
195
195
|
filterWithSaveModal: _t,
|
|
196
196
|
modalAddBody: ft,
|
|
197
197
|
closeBtn: vt,
|
|
198
198
|
btnName: Nt,
|
|
199
199
|
modalTitle: Wt,
|
|
200
|
-
tabSWitcherWrapper:
|
|
201
|
-
switcherTitle:
|
|
200
|
+
tabSWitcherWrapper: gt,
|
|
201
|
+
switcherTitle: Ct,
|
|
202
202
|
switcherScroll: wt,
|
|
203
203
|
tabs: Ot,
|
|
204
204
|
selectWrapper: kt,
|
|
@@ -217,15 +217,15 @@ var K = { exports: {} };
|
|
|
217
217
|
*/
|
|
218
218
|
(function(s) {
|
|
219
219
|
(function() {
|
|
220
|
-
var
|
|
220
|
+
var n = {}.hasOwnProperty;
|
|
221
221
|
function o() {
|
|
222
222
|
for (var t = "", r = 0; r < arguments.length; r++) {
|
|
223
223
|
var c = arguments[r];
|
|
224
|
-
c && (t = l(t,
|
|
224
|
+
c && (t = l(t, O.call(this, c)));
|
|
225
225
|
}
|
|
226
226
|
return t;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function O(t) {
|
|
229
229
|
if (typeof t == "string" || typeof t == "number")
|
|
230
230
|
return this && this[t] || t;
|
|
231
231
|
if (typeof t != "object")
|
|
@@ -236,7 +236,7 @@ var K = { exports: {} };
|
|
|
236
236
|
return t.toString();
|
|
237
237
|
var r = "";
|
|
238
238
|
for (var c in t)
|
|
239
|
-
|
|
239
|
+
n.call(t, c) && t[c] && (r = l(r, this && this[c] || c));
|
|
240
240
|
return r;
|
|
241
241
|
}
|
|
242
242
|
function l(t, r) {
|
|
@@ -248,83 +248,88 @@ var K = { exports: {} };
|
|
|
248
248
|
var Mt = K.exports;
|
|
249
249
|
const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
250
250
|
selectedTabs: s = [],
|
|
251
|
-
selectedValues:
|
|
251
|
+
selectedValues: n = [],
|
|
252
252
|
onClickItem: o,
|
|
253
|
-
disabledOptions:
|
|
253
|
+
disabledOptions: O = [],
|
|
254
254
|
tabs: l = [],
|
|
255
255
|
onChange: t,
|
|
256
256
|
setSelectedTabs: r
|
|
257
257
|
}) => {
|
|
258
|
-
const { isMobile: c } = F(), [
|
|
259
|
-
if (o && o(
|
|
258
|
+
const { isMobile: c } = F(), [v, b] = R(!1), y = q(null), [p, h] = R(s), [u] = R(n), [k, N] = R(p), [W, w] = R(u), g = (a) => {
|
|
259
|
+
if (o && o(a), O.some((d) => d.value === a.value))
|
|
260
260
|
return;
|
|
261
|
-
const C =
|
|
262
|
-
|
|
261
|
+
const C = W.some((d) => d.value === a.value) ? W.filter((d) => d.value !== a.value) : [...W, a];
|
|
262
|
+
w(C);
|
|
263
263
|
}, x = () => {
|
|
264
|
-
|
|
264
|
+
h(l), N(l), w([]), t && (t([]), r == null || r(l));
|
|
265
265
|
}, B = () => {
|
|
266
|
-
|
|
266
|
+
w(n), N(s);
|
|
267
267
|
}, D = () => {
|
|
268
268
|
B(), b(!1);
|
|
269
|
-
},
|
|
270
|
-
|
|
269
|
+
}, S = (a) => {
|
|
270
|
+
a.stopPropagation(), t && (r == null || r(k), t(W)), b(!1);
|
|
271
271
|
};
|
|
272
272
|
return z(() => {
|
|
273
|
-
|
|
274
|
-
}, [
|
|
275
|
-
const
|
|
276
|
-
|
|
273
|
+
v || N((a) => JSON.stringify(a) !== JSON.stringify(s) ? s : a);
|
|
274
|
+
}, [v, s]), z(() => {
|
|
275
|
+
const a = (C) => {
|
|
276
|
+
if (!y.current)
|
|
277
|
+
return;
|
|
278
|
+
const d = C.target;
|
|
279
|
+
if (console.log(d), y.current.contains(d))
|
|
280
|
+
return d.closest("svg"), void 0;
|
|
281
|
+
D();
|
|
277
282
|
};
|
|
278
|
-
return
|
|
279
|
-
document.removeEventListener("click",
|
|
283
|
+
return v ? document.addEventListener("click", a) : document.removeEventListener("click", a), () => {
|
|
284
|
+
document.removeEventListener("click", a);
|
|
280
285
|
};
|
|
281
|
-
}, [
|
|
286
|
+
}, [v]), {
|
|
282
287
|
isMobile: c,
|
|
283
288
|
handleClearClick: x,
|
|
284
289
|
handleCloseModal: D,
|
|
285
|
-
handleOptionClick:
|
|
286
|
-
handleSaveClick:
|
|
287
|
-
localSelectedTabs:
|
|
288
|
-
selectedOptions:
|
|
289
|
-
setSelectedOptions:
|
|
290
|
-
isModalOpen:
|
|
290
|
+
handleOptionClick: g,
|
|
291
|
+
handleSaveClick: S,
|
|
292
|
+
localSelectedTabs: k,
|
|
293
|
+
selectedOptions: W,
|
|
294
|
+
setSelectedOptions: w,
|
|
295
|
+
isModalOpen: v,
|
|
291
296
|
setIsModalOpen: b,
|
|
292
|
-
setLocalSelectedTabs:
|
|
297
|
+
setLocalSelectedTabs: N,
|
|
293
298
|
containerRef: y
|
|
294
299
|
};
|
|
295
300
|
}, At = Rt.bind(i), se = ({
|
|
296
301
|
disabledOptions: s,
|
|
297
|
-
tabs:
|
|
302
|
+
tabs: n = [],
|
|
298
303
|
selectOptions: o = [],
|
|
299
|
-
onChange:
|
|
304
|
+
onChange: O,
|
|
300
305
|
selectedValues: l,
|
|
301
306
|
setSelectedTabs: t,
|
|
302
307
|
selectedTabs: r,
|
|
303
308
|
onClickItem: c,
|
|
304
|
-
onCLickSelect:
|
|
309
|
+
onCLickSelect: v,
|
|
305
310
|
btnName: b = "Фильтр"
|
|
306
311
|
}) => {
|
|
307
312
|
const {
|
|
308
313
|
handleCloseModal: y,
|
|
309
|
-
localSelectedTabs:
|
|
310
|
-
selectedOptions:
|
|
311
|
-
isMobile:
|
|
312
|
-
handleOptionClick:
|
|
313
|
-
handleClearClick:
|
|
314
|
-
handleSaveClick:
|
|
315
|
-
isModalOpen:
|
|
316
|
-
setLocalSelectedTabs:
|
|
314
|
+
localSelectedTabs: p,
|
|
315
|
+
selectedOptions: h,
|
|
316
|
+
isMobile: u,
|
|
317
|
+
handleOptionClick: k,
|
|
318
|
+
handleClearClick: N,
|
|
319
|
+
handleSaveClick: W,
|
|
320
|
+
isModalOpen: w,
|
|
321
|
+
setLocalSelectedTabs: g,
|
|
317
322
|
setIsModalOpen: x,
|
|
318
323
|
containerRef: B
|
|
319
324
|
} = Lt({
|
|
320
325
|
selectedTabs: r,
|
|
321
326
|
onClickItem: c,
|
|
322
327
|
setSelectedTabs: t,
|
|
323
|
-
tabs:
|
|
324
|
-
onChange:
|
|
328
|
+
tabs: n,
|
|
329
|
+
onChange: O,
|
|
325
330
|
disabledOptions: s,
|
|
326
331
|
selectedValues: l
|
|
327
|
-
}), D = () => /* @__PURE__ */
|
|
332
|
+
}), D = () => /* @__PURE__ */ _(P, { children: [
|
|
328
333
|
/* @__PURE__ */ e(
|
|
329
334
|
"div",
|
|
330
335
|
{
|
|
@@ -342,7 +347,7 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
|
342
347
|
}
|
|
343
348
|
),
|
|
344
349
|
/* @__PURE__ */ e("div", { className: i.modalTitle, children: "Фильтры" }),
|
|
345
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ _("div", { className: i.tabSWitcherWrapper, children: [
|
|
346
351
|
/* @__PURE__ */ e("div", { className: i.switcherTitle, children: "Готовность" }),
|
|
347
352
|
/* @__PURE__ */ e("div", { className: i.switcherScroll, children: /* @__PURE__ */ e(
|
|
348
353
|
j,
|
|
@@ -350,53 +355,53 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
|
350
355
|
variant: "grayRow",
|
|
351
356
|
addClassName: i.tabs,
|
|
352
357
|
isApart: !0,
|
|
353
|
-
children:
|
|
354
|
-
var
|
|
355
|
-
const C =
|
|
358
|
+
children: n == null ? void 0 : n.map((S, a) => {
|
|
359
|
+
var d;
|
|
360
|
+
const C = S.value;
|
|
356
361
|
return /* @__PURE__ */ e(
|
|
357
362
|
j.Item,
|
|
358
363
|
{
|
|
359
|
-
itemsLength:
|
|
364
|
+
itemsLength: n == null ? void 0 : n.length,
|
|
360
365
|
mini: !0,
|
|
361
366
|
value: C,
|
|
362
367
|
onClick: () => {
|
|
363
368
|
},
|
|
364
|
-
checked: ((
|
|
369
|
+
checked: ((d = p == null ? void 0 : p.find((M) => M.value === C)) == null ? void 0 : d.state) ?? !1,
|
|
365
370
|
onChange: () => {
|
|
366
|
-
|
|
371
|
+
g == null || g(
|
|
367
372
|
(M) => M.map((I) => I.value === C ? { ...I, state: !I.state } : I)
|
|
368
373
|
);
|
|
369
374
|
},
|
|
370
|
-
index:
|
|
375
|
+
index: a,
|
|
371
376
|
addItemClassName: i.tabSwitcher,
|
|
372
377
|
children: C
|
|
373
378
|
},
|
|
374
|
-
|
|
379
|
+
a
|
|
375
380
|
);
|
|
376
381
|
})
|
|
377
382
|
}
|
|
378
383
|
) })
|
|
379
384
|
] }),
|
|
380
|
-
/* @__PURE__ */ e("div", { className: i.selectWrapper, children: o == null ? void 0 : o.map((
|
|
385
|
+
/* @__PURE__ */ e("div", { className: i.selectWrapper, children: o == null ? void 0 : o.map((S, a) => /* @__PURE__ */ e(
|
|
381
386
|
T,
|
|
382
387
|
{
|
|
383
388
|
addClassName: i.filterOption,
|
|
384
389
|
disabledOptions: [],
|
|
385
390
|
clickableOptions: [],
|
|
386
|
-
selectedOptions:
|
|
387
|
-
option:
|
|
388
|
-
handleOptionClick:
|
|
391
|
+
selectedOptions: h,
|
|
392
|
+
option: S,
|
|
393
|
+
handleOptionClick: k
|
|
389
394
|
},
|
|
390
|
-
|
|
395
|
+
a
|
|
391
396
|
)) }),
|
|
392
|
-
/* @__PURE__ */
|
|
397
|
+
/* @__PURE__ */ _("div", { className: i.btnWrapper, children: [
|
|
393
398
|
/* @__PURE__ */ e(
|
|
394
399
|
E,
|
|
395
400
|
{
|
|
396
401
|
as: "button",
|
|
397
402
|
variant: "gray",
|
|
398
403
|
additionalClass: i.resetBtn,
|
|
399
|
-
onClick:
|
|
404
|
+
onClick: N,
|
|
400
405
|
children: "Сбросить"
|
|
401
406
|
}
|
|
402
407
|
),
|
|
@@ -405,20 +410,20 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
|
405
410
|
{
|
|
406
411
|
as: "button",
|
|
407
412
|
additionalClass: i.saveBtn,
|
|
408
|
-
onClick:
|
|
413
|
+
onClick: W,
|
|
409
414
|
children: "Сохранить"
|
|
410
415
|
}
|
|
411
416
|
)
|
|
412
417
|
] })
|
|
413
418
|
] });
|
|
414
|
-
return /* @__PURE__ */
|
|
415
|
-
/* @__PURE__ */
|
|
416
|
-
/* @__PURE__ */
|
|
419
|
+
return /* @__PURE__ */ _(P, { children: [
|
|
420
|
+
/* @__PURE__ */ _("div", { style: { position: "relative" }, children: [
|
|
421
|
+
/* @__PURE__ */ _(
|
|
417
422
|
"div",
|
|
418
423
|
{
|
|
419
424
|
className: i.root,
|
|
420
425
|
onClick: () => {
|
|
421
|
-
|
|
426
|
+
v && v(), u ? x((S) => !S) : w || x(!0);
|
|
422
427
|
},
|
|
423
428
|
children: [
|
|
424
429
|
/* @__PURE__ */ e("div", { className: i.btnName, children: b }),
|
|
@@ -432,11 +437,11 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
|
432
437
|
]
|
|
433
438
|
}
|
|
434
439
|
),
|
|
435
|
-
!
|
|
440
|
+
!u && /* @__PURE__ */ _(
|
|
436
441
|
"div",
|
|
437
442
|
{
|
|
438
443
|
ref: B,
|
|
439
|
-
className: At(i.desktopWrapper, { [i.desktopWrapperOpen]:
|
|
444
|
+
className: At(i.desktopWrapper, { [i.desktopWrapperOpen]: w }),
|
|
440
445
|
children: [
|
|
441
446
|
/* @__PURE__ */ e(
|
|
442
447
|
"div",
|
|
@@ -455,7 +460,7 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
|
455
460
|
}
|
|
456
461
|
),
|
|
457
462
|
/* @__PURE__ */ e("div", { className: i.modalTitle, children: "Фильтры" }),
|
|
458
|
-
/* @__PURE__ */
|
|
463
|
+
/* @__PURE__ */ _("div", { className: i.tabSWitcherWrapper, children: [
|
|
459
464
|
/* @__PURE__ */ e("div", { className: i.switcherTitle, children: "Готовность" }),
|
|
460
465
|
/* @__PURE__ */ e("div", { className: i.switcherScroll, children: /* @__PURE__ */ e(
|
|
461
466
|
j,
|
|
@@ -463,53 +468,53 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
|
463
468
|
variant: "grayRow",
|
|
464
469
|
addClassName: i.tabs,
|
|
465
470
|
isApart: !0,
|
|
466
|
-
children:
|
|
467
|
-
var
|
|
468
|
-
const C =
|
|
471
|
+
children: n == null ? void 0 : n.map((S, a) => {
|
|
472
|
+
var d;
|
|
473
|
+
const C = S.value;
|
|
469
474
|
return /* @__PURE__ */ e(
|
|
470
475
|
j.Item,
|
|
471
476
|
{
|
|
472
|
-
itemsLength:
|
|
477
|
+
itemsLength: n == null ? void 0 : n.length,
|
|
473
478
|
mini: !0,
|
|
474
479
|
value: C,
|
|
475
480
|
onClick: () => {
|
|
476
481
|
},
|
|
477
|
-
checked: ((
|
|
482
|
+
checked: ((d = p == null ? void 0 : p.find((M) => M.value === C)) == null ? void 0 : d.state) ?? !1,
|
|
478
483
|
onChange: () => {
|
|
479
|
-
|
|
484
|
+
g == null || g(
|
|
480
485
|
(M) => M.map((I) => I.value === C ? { ...I, state: !I.state } : I)
|
|
481
486
|
);
|
|
482
487
|
},
|
|
483
|
-
index:
|
|
488
|
+
index: a,
|
|
484
489
|
addItemClassName: i.tabSwitcher,
|
|
485
490
|
children: C
|
|
486
491
|
},
|
|
487
|
-
|
|
492
|
+
a
|
|
488
493
|
);
|
|
489
494
|
})
|
|
490
495
|
}
|
|
491
496
|
) })
|
|
492
497
|
] }),
|
|
493
|
-
/* @__PURE__ */ e("div", { className: i.selectWrapper, children: o == null ? void 0 : o.map((
|
|
498
|
+
/* @__PURE__ */ e("div", { className: i.selectWrapper, children: o == null ? void 0 : o.map((S, a) => /* @__PURE__ */ e(
|
|
494
499
|
T,
|
|
495
500
|
{
|
|
496
501
|
addClassName: i.filterOption,
|
|
497
502
|
disabledOptions: [],
|
|
498
503
|
clickableOptions: [],
|
|
499
|
-
selectedOptions:
|
|
500
|
-
option:
|
|
501
|
-
handleOptionClick:
|
|
504
|
+
selectedOptions: h,
|
|
505
|
+
option: S,
|
|
506
|
+
handleOptionClick: k
|
|
502
507
|
},
|
|
503
|
-
|
|
508
|
+
a
|
|
504
509
|
)) }),
|
|
505
|
-
/* @__PURE__ */
|
|
510
|
+
/* @__PURE__ */ _("div", { className: i.btnWrapper, children: [
|
|
506
511
|
/* @__PURE__ */ e(
|
|
507
512
|
E,
|
|
508
513
|
{
|
|
509
514
|
as: "button",
|
|
510
515
|
variant: "gray",
|
|
511
516
|
additionalClass: i.resetBtn,
|
|
512
|
-
onClick:
|
|
517
|
+
onClick: N,
|
|
513
518
|
children: "Сбросить"
|
|
514
519
|
}
|
|
515
520
|
),
|
|
@@ -518,7 +523,7 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
|
518
523
|
{
|
|
519
524
|
as: "button",
|
|
520
525
|
additionalClass: i.saveBtn,
|
|
521
|
-
onClick:
|
|
526
|
+
onClick: W,
|
|
522
527
|
children: "Сохранить"
|
|
523
528
|
}
|
|
524
529
|
)
|
|
@@ -527,10 +532,10 @@ const Rt = /* @__PURE__ */ U(Mt), Lt = ({
|
|
|
527
532
|
}
|
|
528
533
|
)
|
|
529
534
|
] }),
|
|
530
|
-
|
|
535
|
+
u && /* @__PURE__ */ e(
|
|
531
536
|
J,
|
|
532
537
|
{
|
|
533
|
-
isOpen:
|
|
538
|
+
isOpen: w,
|
|
534
539
|
emitIsOpen: x,
|
|
535
540
|
isTransparentBack: !0,
|
|
536
541
|
additionalClassModalBody: i.modalAddBody,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as r, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { NewIcon as p } from "./components/NewIcon/ui/NewIcon.js";
|
|
3
3
|
import { c as h } from "./index-rKuIKazb.js";
|
|
4
|
-
const m = "_multiSelectWrapper_1h59t_1", u = "_selectedOptions_1h59t_8", O = "_selectedOptionsBtn_1h59t_27", b = "_selectedOptionsOpened_1h59t_31", v = "_selectedOptionsNotEmpty_1h59t_35",
|
|
4
|
+
const m = "_multiSelectWrapper_1h59t_1", u = "_selectedOptions_1h59t_8", O = "_selectedOptionsBtn_1h59t_27", b = "_selectedOptionsOpened_1h59t_31", v = "_selectedOptionsNotEmpty_1h59t_35", C = "_selectOptionsDisabled_1h59t_40", g = "_optionsList_1h59t_47", k = "_listRight_1h59t_63", y = "_inputWrapper_1h59t_67", D = "_option_1h59t_47", f = "_category_1h59t_88", N = "_leftSide_1h59t_92", S = "_optionCategory_1h59t_97", W = "_optionDisabled_1h59t_103", x = "_optionClickable_1h59t_107", B = "_icon_1h59t_111", s = {
|
|
5
5
|
multiSelectWrapper: m,
|
|
6
6
|
selectedOptions: u,
|
|
7
7
|
selectedOptionsBtn: O,
|
|
8
8
|
selectedOptionsOpened: b,
|
|
9
9
|
selectedOptionsNotEmpty: v,
|
|
10
|
-
selectOptionsDisabled:
|
|
11
|
-
optionsList:
|
|
10
|
+
selectOptionsDisabled: C,
|
|
11
|
+
optionsList: g,
|
|
12
12
|
listRight: k,
|
|
13
13
|
inputWrapper: y,
|
|
14
14
|
option: D,
|
|
@@ -18,9 +18,9 @@ const m = "_multiSelectWrapper_1h59t_1", u = "_selectedOptions_1h59t_8", O = "_s
|
|
|
18
18
|
optionDisabled: W,
|
|
19
19
|
optionClickable: x,
|
|
20
20
|
icon: B
|
|
21
|
-
}, E = h.bind(
|
|
22
|
-
option:
|
|
23
|
-
selectedOptions:
|
|
21
|
+
}, E = h.bind(s), U = ({
|
|
22
|
+
option: e,
|
|
23
|
+
selectedOptions: o,
|
|
24
24
|
disabledOptions: _,
|
|
25
25
|
clickableOptions: c,
|
|
26
26
|
handleOptionClick: a,
|
|
@@ -31,32 +31,32 @@ const m = "_multiSelectWrapper_1h59t_1", u = "_selectedOptions_1h59t_8", O = "_s
|
|
|
31
31
|
"div",
|
|
32
32
|
{
|
|
33
33
|
className: E(
|
|
34
|
-
|
|
34
|
+
s.option,
|
|
35
35
|
{
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
[
|
|
39
|
-
[
|
|
36
|
+
[s.selected]: o.some((t) => t.value === e.value),
|
|
37
|
+
[s.optionDisabled]: _.some((t) => t.value === e.value),
|
|
38
|
+
[s.optionCategory]: n,
|
|
39
|
+
[s.optionClickable]: c && c.includes(`${e.value}`)
|
|
40
40
|
},
|
|
41
41
|
d
|
|
42
42
|
),
|
|
43
|
-
onClick: (
|
|
44
|
-
|
|
43
|
+
onClick: () => {
|
|
44
|
+
a(e);
|
|
45
45
|
},
|
|
46
46
|
children: [
|
|
47
47
|
n && /* @__PURE__ */ i(
|
|
48
48
|
p,
|
|
49
49
|
{
|
|
50
50
|
size: l ?? "20",
|
|
51
|
-
name:
|
|
51
|
+
name: o.some((t) => t.value === e.value) ? "selectChecked" : "selectUnchecked"
|
|
52
52
|
}
|
|
53
53
|
),
|
|
54
|
-
/* @__PURE__ */ i("div", { children:
|
|
54
|
+
/* @__PURE__ */ i("div", { children: e.label }),
|
|
55
55
|
!n && /* @__PURE__ */ i(
|
|
56
56
|
p,
|
|
57
57
|
{
|
|
58
58
|
size: l ?? "20",
|
|
59
|
-
name:
|
|
59
|
+
name: o.some((t) => t.value === e.value) ? "selectChecked" : "selectUnchecked"
|
|
60
60
|
}
|
|
61
61
|
)
|
|
62
62
|
]
|
|
@@ -64,5 +64,5 @@ const m = "_multiSelectWrapper_1h59t_1", u = "_selectedOptions_1h59t_8", O = "_s
|
|
|
64
64
|
);
|
|
65
65
|
export {
|
|
66
66
|
U as O,
|
|
67
|
-
|
|
67
|
+
s
|
|
68
68
|
};
|
|
@@ -11,7 +11,7 @@ import "../../Flex/ui/Flex.js";
|
|
|
11
11
|
import "../../Input/ui/Input.js";
|
|
12
12
|
import "react/jsx-runtime";
|
|
13
13
|
import "../../../Modal-BZv6nlLe.js";
|
|
14
|
-
import { u as q } from "../../../FilterWithSave-
|
|
14
|
+
import { u as q } from "../../../FilterWithSave-BPpYpkP5.js";
|
|
15
15
|
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
16
16
|
import "../../../index-rKuIKazb.js";
|
|
17
17
|
import "../../MetroTag/ui/MetroTag.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../NewIcon/ui/NewIcon.js";
|
|
3
|
-
import { F as a } from "../../../FilterWithSave-
|
|
3
|
+
import { F as a } from "../../../FilterWithSave-BPpYpkP5.js";
|
|
4
4
|
import "../../../Modal-BZv6nlLe.js";
|
|
5
|
-
import "../../../Option-
|
|
5
|
+
import "../../../Option-8X0Ft_zQ.js";
|
|
6
6
|
import "../../Button/ui/Button.js";
|
|
7
7
|
export {
|
|
8
8
|
a as FilterWithSave
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as l, Fragment as v, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { s as e, O as f } from "../../../Option-
|
|
2
|
+
import { s as e, O as f } from "../../../Option-8X0Ft_zQ.js";
|
|
3
3
|
import { NewIcon as c } from "../../NewIcon/ui/NewIcon.js";
|
|
4
4
|
import { c as h } from "../../../index-rKuIKazb.js";
|
|
5
5
|
const N = h.bind(e), O = ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as m, Fragment as A, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useState as D, useRef as R, useEffect as W } from "react";
|
|
3
3
|
import { c as Q } from "../../../index-rKuIKazb.js";
|
|
4
|
-
import { s as r, O as T } from "../../../Option-
|
|
4
|
+
import { s as r, O as T } from "../../../Option-8X0Ft_zQ.js";
|
|
5
5
|
import { NewIcon as j } from "../../NewIcon/ui/NewIcon.js";
|
|
6
6
|
import { Category as U } from "./Category.js";
|
|
7
7
|
const u = Q.bind(r), I = ({
|
|
@@ -13,7 +13,7 @@ import "../../Text/ui/Text.js";
|
|
|
13
13
|
import "../../Flex/ui/Flex.js";
|
|
14
14
|
import "../../Input/ui/Input.js";
|
|
15
15
|
import "../../../Modal-BZv6nlLe.js";
|
|
16
|
-
import { a as z } from "../../../FilterWithSave-
|
|
16
|
+
import { a as z } from "../../../FilterWithSave-BPpYpkP5.js";
|
|
17
17
|
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
18
18
|
import "../../MetroTag/ui/MetroTag.js";
|
|
19
19
|
import "../../LotCard/ui/LotCard.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { S as v } from "../../../FilterWithSave-
|
|
3
|
+
import { S as v } from "../../../FilterWithSave-BPpYpkP5.js";
|
|
4
4
|
import "../../Text/ui/Text.js";
|
|
5
5
|
import "../../../index-rKuIKazb.js";
|
|
6
6
|
import "../../Button/ui/Button.js";
|
|
@@ -11,7 +11,7 @@ import "../../Flex/ui/Flex.js";
|
|
|
11
11
|
import "../../Input/ui/Input.js";
|
|
12
12
|
import "react";
|
|
13
13
|
import "../../../Modal-BZv6nlLe.js";
|
|
14
|
-
import "../../../FilterWithSave-
|
|
14
|
+
import "../../../FilterWithSave-BPpYpkP5.js";
|
|
15
15
|
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
16
16
|
import "../../../index-rKuIKazb.js";
|
|
17
17
|
import "../../MetroTag/ui/MetroTag.js";
|
package/dist/main.js
CHANGED
|
@@ -10,7 +10,7 @@ import { Flex as T } from "./components/Flex/ui/Flex.js";
|
|
|
10
10
|
import { Input as F } from "./components/Input/ui/Input.js";
|
|
11
11
|
import { M as g } from "./Modal-BZv6nlLe.js";
|
|
12
12
|
import { FieldInput as I } from "./components/FieldInput/ui/FieldInput.js";
|
|
13
|
-
import { F as B, a as L, S as k } from "./FilterWithSave-
|
|
13
|
+
import { F as B, a as L, S as k } from "./FilterWithSave-BPpYpkP5.js";
|
|
14
14
|
import { GroupedInputs as N } from "./components/GroupedInput/ui/GroupedInputs.js";
|
|
15
15
|
import { Logo as j } from "./components/Logo/ui/Logo.js";
|
|
16
16
|
import { MetroTag as D } from "./components/MetroTag/ui/MetroTag.js";
|