@ryuzaki13/react-foundation-ui 1.1.7 → 1.1.8

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.
Files changed (71) hide show
  1. package/dist/advanced-search/index.js +136 -136
  2. package/dist/base-table/index.js +2 -2
  3. package/dist/chunks/{CalendarView-C0gJvre1.js → CalendarView-KCkhCtK-.js} +101 -101
  4. package/dist/chunks/{CalendarView-C0gJvre1.js.map → CalendarView-KCkhCtK-.js.map} +1 -1
  5. package/dist/chunks/SelectOptionContent-CI7wq9Oi.js +27 -0
  6. package/dist/chunks/SelectOptionContent-CI7wq9Oi.js.map +1 -0
  7. package/dist/chunks/{TextEditorLexicalClient-DYZ32dnX.js → TextEditorLexicalClient-DeBA6fQX.js} +157 -157
  8. package/dist/chunks/{TextEditorLexicalClient-DYZ32dnX.js.map → TextEditorLexicalClient-DeBA6fQX.js.map} +1 -1
  9. package/dist/chunks/{base-table-BXKFSgIk.js → base-table-Dv9i3CAT.js} +73 -73
  10. package/dist/chunks/{base-table-BXKFSgIk.js.map → base-table-Dv9i3CAT.js.map} +1 -1
  11. package/dist/chunks/{date-input-DKkW7_uw.js → date-input-DT9E8dhk.js} +44 -44
  12. package/dist/chunks/{date-input-DKkW7_uw.js.map → date-input-DT9E8dhk.js.map} +1 -1
  13. package/dist/chunks/{date-range-preset-select-UgsfaOeM.js → date-range-preset-select-BLnY47cv.js} +20 -20
  14. package/dist/chunks/{date-range-preset-select-UgsfaOeM.js.map → date-range-preset-select-BLnY47cv.js.map} +1 -1
  15. package/dist/chunks/{input-CZLUUggm.js → input-BCJfUdK_.js} +43 -43
  16. package/dist/chunks/{input-CZLUUggm.js.map → input-BCJfUdK_.js.map} +1 -1
  17. package/dist/chunks/{input-files-aB8iaqGk.js → input-files-Dcc5K-_1.js} +2 -2
  18. package/dist/chunks/{input-files-aB8iaqGk.js.map → input-files-Dcc5K-_1.js.map} +1 -1
  19. package/dist/chunks/{input-search-eMvnvgV0.js → input-search-B7HmrAM7.js} +2 -2
  20. package/dist/chunks/{input-search-eMvnvgV0.js.map → input-search-B7HmrAM7.js.map} +1 -1
  21. package/dist/chunks/{multi-select-DaOKgHKE.js → multi-select-BCpRct-k.js} +105 -104
  22. package/dist/chunks/{multi-select-DaOKgHKE.js.map → multi-select-BCpRct-k.js.map} +1 -1
  23. package/dist/chunks/{picker-BZ05h_ZJ.js → picker-DTZk09Ag.js} +27 -27
  24. package/dist/chunks/{picker-BZ05h_ZJ.js.map → picker-DTZk09Ag.js.map} +1 -1
  25. package/dist/chunks/select-Bd48kVI3.js +328 -0
  26. package/dist/chunks/{select-Dj3FfpS0.js.map → select-Bd48kVI3.js.map} +1 -1
  27. package/dist/chunks/{table-BdpMzhLH.js → table-BtXVqa2I.js} +10 -10
  28. package/dist/chunks/{table-BdpMzhLH.js.map → table-BtXVqa2I.js.map} +1 -1
  29. package/dist/chunks/{table-column-interactions-6RGjmiI5.js → table-column-interactions-BGd5Lwy9.js} +19 -19
  30. package/dist/chunks/{table-column-interactions-6RGjmiI5.js.map → table-column-interactions-BGd5Lwy9.js.map} +1 -1
  31. package/dist/chunks/{useODataSelectBase-BxAvhDww.js → useODataSelectBase-wZ07hQFv.js} +10 -10
  32. package/dist/chunks/{useODataSelectBase-BxAvhDww.js.map → useODataSelectBase-wZ07hQFv.js.map} +1 -1
  33. package/dist/date-input/index.js +2 -2
  34. package/dist/date-range-preset-select/index.js +1 -1
  35. package/dist/date-time-input/index.js +41 -41
  36. package/dist/drop-zone/index.js +1 -1
  37. package/dist/errors/index.js +39 -39
  38. package/dist/image/index.js +2 -2
  39. package/dist/input/index.js +1 -1
  40. package/dist/input-date-time/index.js +1 -1
  41. package/dist/input-file/index.js +1 -1
  42. package/dist/input-files/index.js +1 -1
  43. package/dist/input-image/index.js +1 -1
  44. package/dist/input-search/index.js +1 -1
  45. package/dist/layout-picker/index.js +1 -1
  46. package/dist/multi-select/index.js +1 -1
  47. package/dist/notifications/index.js +26 -26
  48. package/dist/period-select/index.js +19 -19
  49. package/dist/picker/index.js +1 -1
  50. package/dist/preset-range-date-input/index.js +2 -2
  51. package/dist/preset-select/index.js +1 -1
  52. package/dist/select/index.js +1 -1
  53. package/dist/simple-table/index.js +1 -1
  54. package/dist/slider/index.js +312 -312
  55. package/dist/slider/index.js.map +1 -1
  56. package/dist/state-select/index.js +14 -14
  57. package/dist/styles.css +1 -1
  58. package/dist/table/index.js +1 -1
  59. package/dist/table-column-interactions/index.js +1 -1
  60. package/dist/tag-input/index.js +1 -1
  61. package/dist/text/index.js +10 -10
  62. package/dist/text-editor/index.js +1 -1
  63. package/dist/textarea/index.js +1 -1
  64. package/dist/tree-select/index.js +240 -239
  65. package/dist/tree-select/index.js.map +1 -1
  66. package/dist/tree-table/index.js +15 -15
  67. package/package.json +2 -1
  68. package/storybook-static/project.json +1 -1
  69. package/dist/chunks/SelectOptionContent-lfEtHXfO.js +0 -1132
  70. package/dist/chunks/SelectOptionContent-lfEtHXfO.js.map +0 -1
  71. package/dist/chunks/select-Dj3FfpS0.js +0 -327
@@ -1,19 +1,19 @@
1
- import { c as e, n as t } from "../chunks/SelectOptionContent-lfEtHXfO.js";
2
- import { t as n } from "../chunks/ui.module-BisoTevy.js";
3
- import { n as r, t as i } from "../chunks/badge-Cri0-kVK.js";
4
- import { o as a } from "../chunks/flex-DYZ0IbU6.js";
5
- import { n as o } from "../chunks/button-CC0Jdx1j.js";
6
- import { r as s } from "../chunks/grid-dI94AAbi.js";
7
- import { l as c, u as l } from "../chunks/input-CZLUUggm.js";
8
- import { t as u } from "../chunks/input-search-eMvnvgV0.js";
9
- import { c as d } from "../chunks/misc-DIF5h9ba.js";
10
- import { a as f, i as p, n as m, r as h } from "../chunks/modal-DXHX_sA-.js";
11
- import { n as g } from "../chunks/multi-select-DaOKgHKE.js";
12
- import { t as _ } from "../chunks/table-BdpMzhLH.js";
13
- import { useCallback as v, useEffect as y, useMemo as b, useState as x } from "react";
14
- import { cn as S } from "@ryuzaki13/react-foundation-lib/utils";
15
- import { useInfiniteQuery as C, useQuery as w } from "@tanstack/react-query";
16
- import { createFilterContains as T, createFilterEqual as E, unwrapODataQueryResult as D } from "@ryuzaki13/react-foundation-lib/odata-service";
1
+ import { t as e } from "../chunks/ui.module-BisoTevy.js";
2
+ import { n as t, t as n } from "../chunks/badge-Cri0-kVK.js";
3
+ import { o as r } from "../chunks/flex-DYZ0IbU6.js";
4
+ import { n as i } from "../chunks/button-CC0Jdx1j.js";
5
+ import { r as a } from "../chunks/grid-dI94AAbi.js";
6
+ import { l as o, u as s } from "../chunks/input-BCJfUdK_.js";
7
+ import { t as c } from "../chunks/input-search-B7HmrAM7.js";
8
+ import { c as l } from "../chunks/misc-DIF5h9ba.js";
9
+ import { a as u, i as d, n as f, r as p } from "../chunks/modal-DXHX_sA-.js";
10
+ import { n as m } from "../chunks/multi-select-BCpRct-k.js";
11
+ import { t as h } from "../chunks/table-BtXVqa2I.js";
12
+ import { useCallback as g, useEffect as _, useMemo as v, useState as y } from "react";
13
+ import { odataQueryFn as b, useODataTableColumns as x } from "@ryuzaki13/react-foundation-api/odata";
14
+ import { createFilterContains as S, createFilterEqual as C, unwrapODataQueryResult as w } from "@ryuzaki13/react-foundation-lib/odata-service";
15
+ import { useInfiniteQuery as T, useQuery as E } from "@tanstack/react-query";
16
+ import { cn as D } from "@ryuzaki13/react-foundation-lib/utils";
17
17
  import { ChevronRightIcon as O, XIcon as k } from "lucide-react";
18
18
  import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
19
19
  //#region src/advanced-search/lib/searchParts.ts
@@ -42,100 +42,100 @@ function P(e, t, n) {
42
42
  //#endregion
43
43
  //#region src/advanced-search/model/useAdvancedSearch.ts
44
44
  var F = 50;
45
- function I(t) {
46
- let [n, r] = x(""), [i, a] = x(() => Object.keys(t.segments ?? {}).reduce((e, t) => (e[t] = [], e), {})), o = N(n), s = o.length > 1, c = s ? 5e3 : F, l = C({
45
+ function I(e) {
46
+ let [t, n] = y(""), [r, i] = y(() => Object.keys(e.segments ?? {}).reduce((e, t) => (e[t] = [], e), {})), a = N(t), o = a.length > 1, s = o ? 5e3 : F, c = T({
47
47
  queryKey: [
48
48
  "search",
49
- t.odata.service,
50
- t.odata.target,
51
- i,
52
- n
49
+ e.odata.service,
50
+ e.odata.target,
51
+ r,
52
+ t
53
53
  ],
54
- queryFn: async ({ pageParam: n = 0, signal: r, client: a }) => {
55
- let l = t.columns.map((e) => e.key), u = await e({
54
+ queryFn: async ({ pageParam: t = 0, signal: n, client: i }) => {
55
+ let c = e.columns.map((e) => e.key), l = await b({
56
56
  odata: {
57
- service: t.odata.service,
58
- target: t.odata.target
57
+ service: e.odata.service,
58
+ target: e.odata.target
59
59
  },
60
60
  options: {
61
- top: c,
62
- skip: n,
63
- select: l,
61
+ top: s,
62
+ skip: t,
63
+ select: c,
64
64
  expression: {
65
65
  and: !0,
66
- filters: [{ filters: o ? t.searchKeys.map((e) => ({ filters: o.map((t) => T(e, t)) })) : [] }, {
66
+ filters: [{ filters: a ? e.searchKeys.map((e) => ({ filters: a.map((t) => S(e, t)) })) : [] }, {
67
67
  and: !0,
68
- filters: Object.keys(i).map((e) => E(e, i[e]))
68
+ filters: Object.keys(r).map((e) => C(e, r[e]))
69
69
  }]
70
70
  },
71
- sorts: [{ key: t.leadingKey }]
71
+ sorts: [{ key: e.leadingKey }]
72
72
  }
73
73
  })({
74
- signal: r,
75
- client: a
74
+ signal: n,
75
+ client: i
76
76
  });
77
- return s ? P(u.data, o, t.searchKeys) : u.data;
77
+ return o ? P(l.data, a, e.searchKeys) : l.data;
78
78
  },
79
79
  getNextPageParam: (e, t) => {
80
- if (!(e.length < c)) return t.length * c;
80
+ if (!(e.length < s)) return t.length * s;
81
81
  },
82
82
  initialPageParam: 0
83
- }), u = v((e) => {
84
- r(e);
85
- }, []), d = v(() => {
86
- r("");
83
+ }), l = g((e) => {
84
+ n(e);
85
+ }, []), u = g(() => {
86
+ n("");
87
87
  }, []);
88
88
  return {
89
- query: l,
90
- items: b(() => l.data?.pages.flatMap((e) => e) ?? [], [l.data?.pages]),
91
- searchTerm: n,
92
- setSearch: u,
93
- clearSearch: d,
94
- filters: i,
95
- setFilters: a
89
+ query: c,
90
+ items: v(() => c.data?.pages.flatMap((e) => e) ?? [], [c.data?.pages]),
91
+ searchTerm: t,
92
+ setSearch: l,
93
+ clearSearch: u,
94
+ filters: r,
95
+ setFilters: i
96
96
  };
97
97
  }
98
98
  //#endregion
99
99
  //#region src/advanced-search/model/useAdvancedSearchInitialSelected.ts
100
- function L(t, n = []) {
101
- return D(w({
100
+ function L(e, t = []) {
101
+ return w(E({
102
102
  queryKey: [
103
103
  "searchSelected",
104
- t.odata.service,
105
- t.odata.target,
106
- n
104
+ e.odata.service,
105
+ e.odata.target,
106
+ t
107
107
  ],
108
- queryFn: async ({ client: r, signal: i }) => {
109
- if (n.length === 0) return {
108
+ queryFn: async ({ client: n, signal: r }) => {
109
+ if (t.length === 0) return {
110
110
  data: [],
111
111
  totalCount: void 0
112
112
  };
113
- let a = t.columns.map((e) => e.key);
114
- return await e({
113
+ let i = e.columns.map((e) => e.key);
114
+ return await b({
115
115
  odata: {
116
- service: t.odata.service,
117
- target: t.odata.target
116
+ service: e.odata.service,
117
+ target: e.odata.target
118
118
  },
119
119
  options: {
120
- select: a,
121
- expression: { filters: n.map((e) => E(t.leadingKey, e)) }
120
+ select: i,
121
+ expression: { filters: t.map((t) => C(e.leadingKey, t)) }
122
122
  }
123
123
  })({
124
- client: r,
125
- signal: i
124
+ client: n,
125
+ signal: r
126
126
  });
127
127
  },
128
- enabled: n.length > 0
128
+ enabled: t.length > 0
129
129
  }));
130
130
  }
131
131
  //#endregion
132
132
  //#region src/advanced-search/model/useAdvancedSearchSelection.ts
133
133
  function R(e) {
134
- let [t, n] = x([]), r = v((t, n) => {
134
+ let [t, n] = y([]), r = g((t, n) => {
135
135
  if (t.length !== n.length) return !1;
136
136
  let r = new Set(n.map((t) => String(t[e.leadingKey])));
137
137
  return t.every((t) => r.has(String(t[e.leadingKey])));
138
- }, [e.leadingKey]), i = v((t) => {
138
+ }, [e.leadingKey]), i = g((t) => {
139
139
  n((n) => {
140
140
  let i = /* @__PURE__ */ new Map();
141
141
  for (let n of t) i.set(String(n[e.leadingKey]), n);
@@ -145,97 +145,97 @@ function R(e) {
145
145
  }, [r, e.leadingKey]);
146
146
  return {
147
147
  selectedItems: t,
148
- select: v((t) => {
148
+ select: g((t) => {
149
149
  n((n) => n.some((n) => n[e.leadingKey] === t[e.leadingKey]) ? n : [...n, t]);
150
150
  }, [e.leadingKey]),
151
- deselect: v((t) => {
151
+ deselect: g((t) => {
152
152
  n((n) => n.filter((n) => n[e.leadingKey] !== t));
153
153
  }, [e.leadingKey]),
154
154
  replaceSelection: i,
155
- clearSelection: v(() => {
155
+ clearSelection: g(() => {
156
156
  n([]);
157
157
  }, []),
158
- isSelected: v((n) => t.some((t) => t[e.leadingKey] === n), [e.leadingKey, t])
158
+ isSelected: g((n) => t.some((t) => t[e.leadingKey] === n), [e.leadingKey, t])
159
159
  };
160
160
  }
161
161
  //#endregion
162
162
  //#region src/advanced-search/ui/AdvancedSearchModal.tsx
163
- function z({ onClose: e, onItemsSelect: n, config: c, initialSelectedItems: l = [] }) {
164
- let x = b(() => c.columns.map((e) => ({
163
+ function z({ onClose: e, onItemsSelect: o, config: s, initialSelectedItems: y = [] }) {
164
+ let b = v(() => s.columns.map((e) => ({
165
165
  id: e.key,
166
166
  accessorKey: e.key,
167
167
  header: e.label,
168
168
  meta: { width: e.width || "auto" }
169
- })), [c.columns]), { columns: S, isLoading: C } = t({
170
- service: c.odata.service,
171
- target: c.odata.target,
169
+ })), [s.columns]), { columns: S, isLoading: C } = x({
170
+ service: s.odata.service,
171
+ target: s.odata.target,
172
172
  mode: "enrich",
173
- columns: x
174
- }), { query: w, items: T, searchTerm: E, setSearch: D, clearSearch: O, filters: k, setFilters: A } = I(c), { selectedItems: N, deselect: P, replaceSelection: F } = R(c), L = v((e) => String(e[c.leadingKey]), [c.leadingKey]), z = b(() => N.map((e) => String(e[c.leadingKey])), [N, c.leadingKey]), B = b(() => new Set(T.map((e) => String(e[c.leadingKey]))), [T, c.leadingKey]);
175
- y(() => {
176
- F(l);
177
- }, [l, F]);
178
- let V = v(() => {
173
+ columns: b
174
+ }), { query: w, items: T, searchTerm: E, setSearch: D, clearSearch: O, filters: k, setFilters: A } = I(s), { selectedItems: N, deselect: P, replaceSelection: F } = R(s), L = g((e) => String(e[s.leadingKey]), [s.leadingKey]), z = v(() => N.map((e) => String(e[s.leadingKey])), [N, s.leadingKey]), B = v(() => new Set(T.map((e) => String(e[s.leadingKey]))), [T, s.leadingKey]);
175
+ _(() => {
176
+ F(y);
177
+ }, [y, F]);
178
+ let V = g(() => {
179
179
  w.hasNextPage && !w.isFetchingNextPage && w.fetchNextPage();
180
- }, [w]), H = v((e) => {
181
- let t = new Set(e.map((e) => String(e[c.leadingKey]))), n = N.filter((e) => !B.has(String(e[c.leadingKey]))), r = T.filter((e) => t.has(String(e[c.leadingKey])));
180
+ }, [w]), H = g((e) => {
181
+ let t = new Set(e.map((e) => String(e[s.leadingKey]))), n = N.filter((e) => !B.has(String(e[s.leadingKey]))), r = T.filter((e) => t.has(String(e[s.leadingKey])));
182
182
  F([...n, ...r]);
183
183
  }, [
184
- c.leadingKey,
184
+ s.leadingKey,
185
185
  T,
186
186
  F,
187
187
  N,
188
188
  B
189
- ]), U = v((e) => {
190
- P(String(e[c.leadingKey]));
191
- }, [c.leadingKey, P]), W = v(() => {
192
- n(N), e();
189
+ ]), U = g((e) => {
190
+ P(String(e[s.leadingKey]));
191
+ }, [s.leadingKey, P]), W = g(() => {
192
+ o(N), e();
193
193
  }, [
194
194
  N,
195
- n,
195
+ o,
196
196
  e
197
- ]), G = b(() => {
198
- if ("segments" in c && c.segments) {
199
- let e = Object.keys(c.segments);
197
+ ]), G = v(() => {
198
+ if ("segments" in s && s.segments) {
199
+ let e = Object.keys(s.segments);
200
200
  if (e.length) return {
201
201
  odata: {
202
- ...c.odata,
202
+ ...s.odata,
203
203
  limitedKeys: e
204
204
  },
205
- segments: c.segments,
206
- model: c.model
205
+ segments: s.segments,
206
+ model: s.model
207
207
  };
208
208
  }
209
- }, [c]);
210
- return /* @__PURE__ */ M(m, {
209
+ }, [s]);
210
+ return /* @__PURE__ */ M(f, {
211
211
  isOpen: !0,
212
212
  onClose: e,
213
- title: c.title,
213
+ title: s.title,
214
214
  size: "lg",
215
215
  height: "min(50em, 80dvh)",
216
216
  children: [
217
- /* @__PURE__ */ j(f, { children: /* @__PURE__ */ M(a, {
217
+ /* @__PURE__ */ j(u, { children: /* @__PURE__ */ M(r, {
218
218
  gap: "sm",
219
- children: [G && /* @__PURE__ */ j(g, {
219
+ children: [G && /* @__PURE__ */ j(m, {
220
220
  odata: G.odata,
221
221
  segments: G.segments,
222
222
  model: G.model,
223
223
  values: k,
224
224
  onChange: A
225
- }), /* @__PURE__ */ j(u, {
225
+ }), /* @__PURE__ */ j(c, {
226
226
  size: "md",
227
- placeholder: c.searchLabel ?? "Введите поисковый запрос",
227
+ placeholder: s.searchLabel ?? "Введите поисковый запрос",
228
228
  value: E,
229
229
  onChange: D,
230
230
  onClear: O,
231
231
  className: "flexGrow"
232
232
  })]
233
233
  }) }),
234
- /* @__PURE__ */ j(h, { children: /* @__PURE__ */ M(s, {
234
+ /* @__PURE__ */ j(p, { children: /* @__PURE__ */ M(a, {
235
235
  gap: "md",
236
236
  templateRows: "1fr auto",
237
237
  className: "h100",
238
- children: [/* @__PURE__ */ j(_, {
238
+ children: [/* @__PURE__ */ j(h, {
239
239
  columns: S,
240
240
  data: T,
241
241
  selectionMode: "multi",
@@ -248,23 +248,23 @@ function z({ onClose: e, onItemsSelect: n, config: c, initialSelectedItems: l =
248
248
  className: "w100"
249
249
  }), /* @__PURE__ */ j("div", {
250
250
  className: "marginBlockMd border",
251
- children: /* @__PURE__ */ j(d, {
251
+ children: /* @__PURE__ */ j(l, {
252
252
  className: "paddingSm",
253
253
  height: "6em",
254
- children: /* @__PURE__ */ j(i, { children: N.map((e) => /* @__PURE__ */ j(r, {
254
+ children: /* @__PURE__ */ j(n, { children: N.map((e) => /* @__PURE__ */ j(t, {
255
255
  size: "md",
256
256
  tone: "info",
257
257
  appearance: "outline",
258
258
  onRemove: () => U(e),
259
- children: c.leadingText && e[c.leadingText] || e[c.leadingKey]
260
- }, e[c.leadingKey])) })
259
+ children: s.leadingText && e[s.leadingText] || e[s.leadingKey]
260
+ }, e[s.leadingKey])) })
261
261
  })
262
262
  })]
263
263
  }) }),
264
- /* @__PURE__ */ M(p, { children: [/* @__PURE__ */ j(o, {
264
+ /* @__PURE__ */ M(d, { children: [/* @__PURE__ */ j(i, {
265
265
  onClick: e,
266
266
  children: "Отмена"
267
- }), /* @__PURE__ */ j(o, {
267
+ }), /* @__PURE__ */ j(i, {
268
268
  variant: "successOutline",
269
269
  onClick: W,
270
270
  children: "Выбрать"
@@ -274,62 +274,62 @@ function z({ onClose: e, onItemsSelect: n, config: c, initialSelectedItems: l =
274
274
  }
275
275
  //#endregion
276
276
  //#region src/advanced-search/ui/AdvancedSearchSelectUI.tsx
277
- var B = ({ label: e, description: t, disabled: r, size: i, placeholder: o = "Выбрать", token: s, onOpen: u, onClear: d }) => {
278
- let { controlId: f, labelId: p, descriptionId: m } = c({
279
- hasLabel: e != null,
280
- hasDescription: !!t
281
- }), h = !!s;
277
+ var B = ({ label: t, description: n, disabled: i, size: a, placeholder: c = "Выбрать", token: l, onOpen: u, onClear: d }) => {
278
+ let { controlId: f, labelId: p, descriptionId: m } = o({
279
+ hasLabel: t != null,
280
+ hasDescription: !!n
281
+ }), h = !!l;
282
282
  return /* @__PURE__ */ M("div", {
283
- "aria-disabled": r || void 0,
284
- className: S(n.uiElement, n.uiSizable, i && n[i]),
283
+ "aria-disabled": i || void 0,
284
+ className: D(e.uiElement, e.uiSizable, a && e[a]),
285
285
  children: [
286
- e && /* @__PURE__ */ j("label", {
286
+ t && /* @__PURE__ */ j("label", {
287
287
  id: p,
288
288
  htmlFor: f,
289
- className: n.uiLabel,
290
- children: e
289
+ className: e.uiLabel,
290
+ children: t
291
291
  }),
292
- t && /* @__PURE__ */ j("p", {
292
+ n && /* @__PURE__ */ j("p", {
293
293
  id: m,
294
- className: n.uiDescription,
295
- children: t
294
+ className: e.uiDescription,
295
+ children: n
296
296
  }),
297
297
  /* @__PURE__ */ M("div", {
298
- className: n.uiInputContainer,
298
+ className: e.uiInputContainer,
299
299
  children: [/* @__PURE__ */ j("div", {
300
- className: n.uiInputWithToggle,
301
- children: !h && /* @__PURE__ */ j(a, {
300
+ className: e.uiInputWithToggle,
301
+ children: !h && /* @__PURE__ */ j(r, {
302
302
  align: "center",
303
303
  className: "h100",
304
304
  children: /* @__PURE__ */ j("div", {
305
- className: n.uiPlaceholder,
306
- children: o
305
+ className: e.uiPlaceholder,
306
+ children: c
307
307
  })
308
308
  })
309
309
  }), /* @__PURE__ */ j("div", {
310
- className: l.controlEndAdornment,
310
+ className: s.controlEndAdornment,
311
311
  children: /* @__PURE__ */ M("div", {
312
- className: n.uiToggleButtonContainer,
312
+ className: e.uiToggleButtonContainer,
313
313
  children: [
314
314
  /* @__PURE__ */ j("div", {
315
315
  className: "flexEllipsis",
316
316
  style: { maxWidth: "100%" },
317
- children: s
317
+ children: l
318
318
  }),
319
319
  /* @__PURE__ */ j("button", {
320
320
  type: "button",
321
- disabled: !s,
322
- className: n.uiClearButton,
321
+ disabled: !l,
322
+ className: e.uiClearButton,
323
323
  onClick: d,
324
324
  "aria-label": "Очистить все",
325
325
  children: /* @__PURE__ */ j(k, {})
326
326
  }),
327
- /* @__PURE__ */ j("div", { className: n.uiButtonSeparator }),
327
+ /* @__PURE__ */ j("div", { className: e.uiButtonSeparator }),
328
328
  /* @__PURE__ */ j("button", {
329
329
  type: "button",
330
330
  onClick: u,
331
- className: n.uiToggleButton,
332
- children: /* @__PURE__ */ j(O, { className: n.uiToggleIcon })
331
+ className: e.uiToggleButton,
332
+ children: /* @__PURE__ */ j(O, { className: e.uiToggleIcon })
333
333
  })
334
334
  ]
335
335
  })
@@ -341,7 +341,7 @@ var B = ({ label: e, description: t, disabled: r, size: i, placeholder: o = "В
341
341
  //#endregion
342
342
  //#region src/advanced-search/ui/AdvancedSearchSelect.tsx
343
343
  function V({ value: e = [], onChange: t, config: n, ...r }) {
344
- let [i, a] = x(!1), { data: o } = L(n, e), s = v(() => a(!0), []), c = v(() => a(!1), []), l = v(() => t([]), [t]), u = v((e) => t(e.map((e) => String(e[n.leadingKey]))), [n.leadingKey, t]), d = v((e) => {
344
+ let [i, a] = y(!1), { data: o } = L(n, e), s = g(() => a(!0), []), c = g(() => a(!1), []), l = g(() => t([]), [t]), u = g((e) => t(e.map((e) => String(e[n.leadingKey]))), [n.leadingKey, t]), d = g((e) => {
345
345
  if (e?.length) return e.length > 1 ? `Выбрано ${e.length} элем.` : `${n.leadingText && e[0][n.leadingText] || e[0][n.leadingKey]}`;
346
346
  }, [n.leadingKey, n.leadingText]);
347
347
  return /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(B, {
@@ -1,3 +1,3 @@
1
- import { n as e, t } from "../chunks/table-column-interactions-6RGjmiI5.js";
2
- import { a as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _ } from "../chunks/base-table-BXKFSgIk.js";
1
+ import { n as e, t } from "../chunks/table-column-interactions-BGd5Lwy9.js";
2
+ import { a as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _ } from "../chunks/base-table-Dv9i3CAT.js";
3
3
  export { d as BaseTable, g as FormattedTableCell, e as TableColumnResizeHandle, t as TableHeaderInteractionCell, a as buildBaseTableColumnLayout, h as buildBaseTableMergedCellsLayout, r as buildTableFormattingSnapshot, p as getLeftPinnedColumnOffsets, u as getOrderedVisibleLeafColumns, l as hasTableColumnCustomCellRenderer, s as normalizeTableColumnPinning, o as resolveBaseTableColumnWidth, _ as resolveTableFormattingColumnId, i as shouldUseTableFormatting, f as useTableColumnOrder, n as useTableColumnPinning, c as useTableColumnSizing, m as useTableColumnVisibility };