@burdenoff/fe-libs 2026.1115.9 → 2026.1115.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/chrome/globalSearch/ResultsList.js +39 -33
  2. package/dist/chrome/index.d.ts +1 -0
  3. package/dist/chrome/shell/ShellSidebar.js +287 -281
  4. package/dist/chrome/shell/shellSidebarWidth.d.ts +16 -0
  5. package/dist/chrome/shell/shellSidebarWidth.js +26 -0
  6. package/dist/chrome/shellLabelManifest.d.ts +8 -0
  7. package/dist/chrome.js +65 -63
  8. package/dist/shared/constants/shellCssVars.d.ts +9 -0
  9. package/dist/shared/constants/shellCssVars.js +3 -0
  10. package/dist/shared/events/sinks/RybbitSink.d.ts +13 -1
  11. package/dist/shared/events/sinks/RybbitSink.js +129 -121
  12. package/dist/shared/events/sinks/index.d.ts +1 -1
  13. package/dist/shared/pages/SearchPage.d.ts +17 -1
  14. package/dist/shared/pages/SearchPage.js +284 -243
  15. package/dist/shared/pages/searchPage/PageResultsGroup.d.ts +16 -0
  16. package/dist/shared/pages/searchPage/PageResultsGroup.js +29 -0
  17. package/dist/shared/pages/searchPage/ResultsList.d.ts +6 -1
  18. package/dist/shared/pages/searchPage/ResultsList.js +9 -53
  19. package/dist/shared/pages/searchPage/SearchResultCard.d.ts +14 -0
  20. package/dist/shared/pages/searchPage/SearchResultCard.js +57 -0
  21. package/dist/shared/providers/AppShellProvider.d.ts +8 -0
  22. package/dist/shared/providers/AppShellProvider.js +91 -89
  23. package/dist/shared/providers/shell/PersonaSurfaceProvider.d.ts +27 -1
  24. package/dist/shared/providers/shell/PersonaSurfaceProvider.js +214 -179
  25. package/dist/shared/providers/shell/index.d.ts +2 -0
  26. package/dist/shared/providers/shell/navIdMigration.d.ts +29 -0
  27. package/dist/shared/providers/shell/navIdMigration.js +57 -0
  28. package/dist/shared/providers/shell/personaSurfaceRemote.d.ts +7 -0
  29. package/dist/shared/providers/shell/personaSurfaceRemote.js +1 -1
  30. package/dist/shared/types/index.d.ts +11 -0
  31. package/dist/shared-providers-shell.js +13 -12
  32. package/dist/ui/access-needed-chip.d.ts +16 -0
  33. package/dist/ui/access-needed-chip.js +17 -0
  34. package/dist/ui/index.d.ts +1 -0
  35. package/dist/ui.js +50 -49
  36. package/package.json +1 -1
@@ -9,373 +9,414 @@ import { FiltersPanel as ae } from "./searchPage/FiltersPanel.js";
9
9
  import { ActiveFilterChips as oe } from "./searchPage/ActiveFilterChips.js";
10
10
  import { ResultsStatus as se } from "./searchPage/ResultsStatus.js";
11
11
  import { ResultsList as ce } from "./searchPage/ResultsList.js";
12
- import { SearchPagination as le } from "./searchPage/SearchPagination.js";
13
- import { useCallback as ue, useEffect as de, useMemo as c, useState as l } from "react";
14
- import { FileText as fe } from "lucide-react";
15
- import { jsx as u, jsxs as pe } from "react/jsx-runtime";
12
+ import { PageResultsGroup as le } from "./searchPage/PageResultsGroup.js";
13
+ import { SearchPagination as ue } from "./searchPage/SearchPagination.js";
14
+ import { useCallback as de, useEffect as c, useMemo as l, useRef as fe, useState as u } from "react";
15
+ import { FileText as pe } from "lucide-react";
16
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
16
17
  import { useSearchParams as me } from "react-router";
17
18
  // src/shared/pages/SearchPage.tsx
18
- function d({ entityTypeOptions: d = a, entityTypeIcons: he = i, productOptions: ge = ee, defaultProductSources: _e = [], placeholder: ve = "Search for documents, tags, projects, tasks...", subtitle: ye = "Search across all entities in your workspace", supplementalSearch: f } = {}) {
19
- let be = n(), [p, xe] = me(), { workspaceId: Se } = e(), { searchFull: Ce, isSearching: we } = t(), Te = p.get("q") || "", Ee = p.get("mode") || "FULLTEXT", De = p.get("sortBy") || "SCORE_DESC", Oe = s(p.get("types") || ""), ke = s(p.get("excludeTypes") || ""), Ae = s(p.get("products") || ""), je = p.get("createdBy") || "", Me = p.get("updatedBy") || "", Ne = p.get("projectId") || "", Pe = p.get("from") || "", Fe = p.get("to") || "", Ie = p.get("updatedFrom") || "", Le = p.get("updatedTo") || "", Re = s(p.get("excludeIds") || ""), m = ne(p.get("tagFilter"), {}), ze = te(ne(p.get("metadataConditions"), [])), Be = parseInt(p.get("page") || "1", 10), [h, Ve] = l(Te), [g, He] = l(Ee), [_, Ue] = l(De), [v, We] = l(Oe), [y, Ge] = l(ke), [b, Ke] = l(Ae.length > 0 ? Ae : _e), [x, qe] = l(je), [S, Je] = l(Me), [C, Ye] = l(Ne), [w, Xe] = l(Pe), [T, E] = l(Fe), [D, O] = l(Ie), [k, Ze] = l(Le), [A, j] = l(Re.join(", ")), [M, N] = l((m.tagIds ?? []).join(", ")), [P, F] = l((m.tagKeys ?? []).join(", ")), [I, L] = l((m.hierarchyPaths ?? []).join(", ")), [R, z] = l((m.vocabularyKeys ?? []).join(", ")), [B, V] = l(m.matchAll ?? !1), [H, U] = l(m.includeDescendants ?? !0), [W, G] = l(m.depth === void 0 ? "" : String(m.depth)), [K, q] = l(ze), [J, Y] = l(Be), [Qe, $e] = l([]), [et, tt] = l(0), [nt, rt] = l(!1), [it, at] = l(0), [ot, st] = l(), [ct, X] = l(null), [lt, ut] = l(!1), [dt, ft] = l(Te), pt = ue((e) => {
20
- let t = new URLSearchParams(p);
19
+ var he = [];
20
+ function ge({ entityTypeOptions: ge = a, entityTypeIcons: _e = i, productOptions: ve = ee, defaultProductSources: ye = [], placeholder: be = "Search for documents, tags, projects, tasks...", subtitle: xe = "Search across all entities in your workspace", supplementalSearch: Se, searchPages: p, searchPagesKey: Ce } = {}) {
21
+ let we = n(), [m, Te] = me(), { workspaceId: Ee } = e(), { searchFull: De, isSearching: Oe } = t(), ke = m.get("q") || "", Ae = m.get("mode") || "FULLTEXT", je = m.get("sortBy") || "SCORE_DESC", Me = s(m.get("types") || ""), Ne = s(m.get("excludeTypes") || ""), Pe = s(m.get("products") || ""), Fe = m.get("createdBy") || "", Ie = m.get("updatedBy") || "", Le = m.get("projectId") || "", Re = m.get("from") || "", ze = m.get("to") || "", Be = m.get("updatedFrom") || "", Ve = m.get("updatedTo") || "", He = s(m.get("excludeIds") || ""), h = ne(m.get("tagFilter"), {}), Ue = te(ne(m.get("metadataConditions"), [])), We = parseInt(m.get("page") || "1", 10), [g, Ge] = u(ke), [_, Ke] = u(Ae), [v, qe] = u(je), [y, Je] = u(Me), [b, Ye] = u(Ne), [x, Xe] = u(Pe.length > 0 ? Pe : ye), [S, Ze] = u(Fe), [C, Qe] = u(Ie), [w, $e] = u(Le), [T, E] = u(Re), [D, O] = u(ze), [k, et] = u(Be), [A, tt] = u(Ve), [nt, rt] = u(He.join(", ")), [j, M] = u((h.tagIds ?? []).join(", ")), [N, P] = u((h.tagKeys ?? []).join(", ")), [F, I] = u((h.hierarchyPaths ?? []).join(", ")), [L, R] = u((h.vocabularyKeys ?? []).join(", ")), [z, B] = u(h.matchAll ?? !1), [V, H] = u(h.includeDescendants ?? !0), [U, W] = u(h.depth === void 0 ? "" : String(h.depth)), [it, G] = u(Ue), [K, q] = u(We), [at, ot] = u([]), [st, ct] = u(0), [lt, ut] = u(!1), [dt, ft] = u(0), [pt, mt] = u(), [ht, J] = u(null), [gt, _t] = u(!1), [vt, yt] = u(ke), bt = de((e) => {
22
+ let t = new URLSearchParams(m);
21
23
  Object.entries(e).forEach(([e, n]) => {
22
24
  n ? t.set(e, n) : t.delete(e);
23
- }), xe(t, { replace: !0 });
24
- }, [p, xe]), Z = c(() => s(A), [A]), Q = c(() => K.filter((e) => e.key.trim() && e.value.trim()), [K]), $ = c(() => {
25
- let e = s(M), t = s(P), n = s(I), r = s(R), i = W.trim() ? Number(W.trim()) : void 0;
25
+ }), Te(t, { replace: !0 });
26
+ }, [m, Te]), Y = l(() => s(nt), [nt]), X = l(() => it.filter((e) => e.key.trim() && e.value.trim()), [it]), Z = l(() => {
27
+ let e = s(j), t = s(N), n = s(F), r = s(L), i = U.trim() ? Number(U.trim()) : void 0;
26
28
  if (e.length > 0 || t.length > 0 || n.length > 0 || r.length > 0) return {
27
29
  tagIds: e.length > 0 ? e : void 0,
28
30
  tagKeys: t.length > 0 ? t : void 0,
29
31
  hierarchyPaths: n.length > 0 ? n : void 0,
30
32
  vocabularyKeys: r.length > 0 ? r : void 0,
31
- matchAll: B,
32
- includeDescendants: H,
33
+ matchAll: z,
34
+ includeDescendants: V,
33
35
  depth: i !== void 0 && Number.isFinite(i) ? i : void 0
34
36
  };
35
37
  }, [
36
- H,
37
- W,
38
- M,
39
- P,
40
- B,
41
- I,
42
- R
43
- ]), mt = ue(() => {
38
+ V,
39
+ U,
40
+ j,
41
+ N,
42
+ z,
43
+ F,
44
+ L
45
+ ]), xt = de(() => {
44
46
  let e = {
45
- searchMode: g,
46
- sortBy: _,
47
+ searchMode: _,
48
+ sortBy: v,
47
49
  limit: 20,
48
- offset: (J - 1) * 20
50
+ offset: (K - 1) * 20
49
51
  };
50
- return v.length > 0 && (e.entityTypes = v), y.length > 0 && (e.excludeEntityTypes = y), b.length > 0 && (e.productSources = b), C.trim() && (e.projectId = C.trim()), x.trim() && (e.createdBy = x.trim()), S.trim() && (e.updatedBy = S.trim()), (w || T) && (e.dateRange = {}, w && (e.dateRange.from = new Date(w).toISOString()), T && (e.dateRange.to = new Date(T).toISOString())), (D || k) && (e.updatedDateRange = {}, D && (e.updatedDateRange.from = new Date(D).toISOString()), k && (e.updatedDateRange.to = new Date(k).toISOString())), Z.length > 0 && (e.excludeIds = Z), Q.length > 0 && (e.metadataConditions = Q), $ && (e.tagFilter = $), e;
52
+ return y.length > 0 && (e.entityTypes = y), b.length > 0 && (e.excludeEntityTypes = b), x.length > 0 && (e.productSources = x), w.trim() && (e.projectId = w.trim()), S.trim() && (e.createdBy = S.trim()), C.trim() && (e.updatedBy = C.trim()), (T || D) && (e.dateRange = {}, T && (e.dateRange.from = new Date(T).toISOString()), D && (e.dateRange.to = new Date(D).toISOString())), (k || A) && (e.updatedDateRange = {}, k && (e.updatedDateRange.from = new Date(k).toISOString()), A && (e.updatedDateRange.to = new Date(A).toISOString())), Y.length > 0 && (e.excludeIds = Y), X.length > 0 && (e.metadataConditions = X), Z && (e.tagFilter = Z), e;
51
53
  }, [
52
- $,
53
- x,
54
- w,
55
- T,
56
- y,
57
54
  Z,
58
- Q,
59
- g,
60
- _,
61
- J,
62
- C,
63
- v,
64
- b,
65
55
  S,
56
+ T,
66
57
  D,
67
- k
68
- ]), ht = ue(async () => {
69
- if (!h.trim()) {
70
- $e([]), tt(0), rt(!1), at(0), st(void 0), X(null);
58
+ b,
59
+ Y,
60
+ X,
61
+ _,
62
+ v,
63
+ K,
64
+ w,
65
+ y,
66
+ x,
67
+ C,
68
+ k,
69
+ A
70
+ ]), St = de(async () => {
71
+ if (!g.trim()) {
72
+ ot([]), ct(0), ut(!1), ft(0), mt(void 0), J(null);
71
73
  return;
72
74
  }
73
- if (!Se) {
74
- X("No workspace selected. Please select a workspace to search.");
75
+ if (!Ee) {
76
+ J("No workspace selected. Please select a workspace to search.");
75
77
  return;
76
78
  }
77
- X(null);
79
+ J(null);
78
80
  let e = performance.now();
79
81
  try {
80
- let t = mt(), n = await Ce(h, void 0, t), r = performance.now(), i = f && n.results.length === 0 ? await f(h, t) : [], a = n.results.length > 0 ? n.results : i;
81
- $e(a), tt(a.length > 0 ? a.length : n.total), rt(n.hasMore), st(n.facets), at(n.searchTimeMs ?? Math.round(r - e));
82
+ let t = xt(), n = await De(g, void 0, t), r = performance.now(), i = Se && n.results.length === 0 ? await Se(g, t) : [], a = n.results.length > 0 ? n.results : i;
83
+ ot(a), ct(a.length > 0 ? a.length : n.total), ut(n.hasMore), mt(n.facets), ft(n.searchTimeMs ?? Math.round(r - e));
82
84
  } catch (e) {
83
- X(e instanceof Error ? e.message : "Search failed"), $e([]), tt(0), st(void 0);
85
+ J(e instanceof Error ? e.message : "Search failed"), ot([]), ct(0), mt(void 0);
84
86
  }
85
87
  }, [
86
- h,
87
- Se,
88
- Ce,
89
- mt,
90
- f
88
+ g,
89
+ Ee,
90
+ De,
91
+ xt,
92
+ Se
91
93
  ]);
92
- de(() => {
93
- ht();
94
- }, [ht]), de(() => {
95
- pt({
96
- q: h || void 0,
97
- mode: g === "FULLTEXT" ? void 0 : g,
98
- sortBy: _ === "SCORE_DESC" ? void 0 : _,
99
- types: o(v),
100
- excludeTypes: o(y),
101
- products: o(b),
102
- createdBy: x || void 0,
103
- updatedBy: S || void 0,
104
- projectId: C || void 0,
105
- from: w || void 0,
106
- to: T || void 0,
107
- updatedFrom: D || void 0,
108
- updatedTo: k || void 0,
109
- excludeIds: o(Z),
110
- tagFilter: $ ? JSON.stringify($) : void 0,
111
- metadataConditions: Q.length > 0 ? JSON.stringify(Q) : void 0,
112
- page: J > 1 ? String(J) : void 0
113
- });
94
+ c(() => {
95
+ St();
96
+ }, [St]);
97
+ let Ct = fe(p);
98
+ c(() => {
99
+ Ct.current = p;
100
+ }, [p]);
101
+ let Q = p !== void 0, [$, wt] = u(null);
102
+ c(() => {
103
+ let e = Ct.current, t = g.trim();
104
+ if (!Q || !e || !t) return;
105
+ let n = !1;
106
+ return Promise.resolve().then(() => e(t)).then((e) => {
107
+ n || wt({
108
+ query: t,
109
+ results: e
110
+ });
111
+ }, () => {
112
+ n || wt({
113
+ query: t,
114
+ results: []
115
+ });
116
+ }), () => {
117
+ n = !0;
118
+ };
114
119
  }, [
120
+ Q,
121
+ g,
122
+ Ce
123
+ ]);
124
+ let Tt = l(() => Q && $ && $.query === g.trim() ? $.results : [], [
125
+ Q,
115
126
  $,
116
- x,
117
- w,
118
- T,
119
- y,
127
+ g
128
+ ]), Et = K === 1 ? Tt : he;
129
+ c(() => {
130
+ bt({
131
+ q: g || void 0,
132
+ mode: _ === "FULLTEXT" ? void 0 : _,
133
+ sortBy: v === "SCORE_DESC" ? void 0 : v,
134
+ types: o(y),
135
+ excludeTypes: o(b),
136
+ products: o(x),
137
+ createdBy: S || void 0,
138
+ updatedBy: C || void 0,
139
+ projectId: w || void 0,
140
+ from: T || void 0,
141
+ to: D || void 0,
142
+ updatedFrom: k || void 0,
143
+ updatedTo: A || void 0,
144
+ excludeIds: o(Y),
145
+ tagFilter: Z ? JSON.stringify(Z) : void 0,
146
+ metadataConditions: X.length > 0 ? JSON.stringify(X) : void 0,
147
+ page: K > 1 ? String(K) : void 0
148
+ });
149
+ }, [
120
150
  Z,
121
- Q,
122
- h,
123
- C,
151
+ S,
152
+ T,
153
+ D,
154
+ b,
155
+ Y,
156
+ X,
124
157
  g,
158
+ w,
125
159
  _,
126
160
  v,
127
- b,
128
- J,
129
- S,
130
- D,
161
+ y,
162
+ x,
163
+ K,
164
+ C,
131
165
  k,
132
- pt
166
+ A,
167
+ bt
133
168
  ]);
134
- let gt = (e) => {
135
- e.preventDefault(), Ve(dt), Y(1);
136
- }, _t = (e) => {
137
- We((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]), Y(1);
138
- }, vt = (e) => {
139
- Ge((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]), Y(1);
140
- }, yt = () => {
141
- q((e) => [...e, { ...r }]);
142
- }, bt = (e, t) => {
143
- q((n) => n.map((n, r) => r === e ? {
169
+ let Dt = (e) => {
170
+ e.preventDefault(), Ge(vt), q(1);
171
+ }, Ot = (e) => {
172
+ Je((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]), q(1);
173
+ }, kt = (e) => {
174
+ Ye((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]), q(1);
175
+ }, At = () => {
176
+ G((e) => [...e, { ...r }]);
177
+ }, jt = (e, t) => {
178
+ G((n) => n.map((n, r) => r === e ? {
144
179
  ...n,
145
180
  ...t
146
- } : n)), Y(1);
147
- }, xt = (e) => {
148
- q((t) => t.filter((t, n) => n !== e)), Y(1);
149
- }, St = () => {
150
- He("FULLTEXT"), Ue("SCORE_DESC"), We([]), Ge([]), Ke([]), qe(""), Je(""), Ye(""), Xe(""), E(""), O(""), Ze(""), j(""), N(""), F(""), L(""), z(""), V(!1), U(!0), G(""), q([]), Y(1);
151
- }, Ct = c(() => {
181
+ } : n)), q(1);
182
+ }, Mt = (e) => {
183
+ G((t) => t.filter((t, n) => n !== e)), q(1);
184
+ }, Nt = () => {
185
+ Ke("FULLTEXT"), qe("SCORE_DESC"), Je([]), Ye([]), Xe([]), Ze(""), Qe(""), $e(""), E(""), O(""), et(""), tt(""), rt(""), M(""), P(""), I(""), R(""), B(!1), H(!0), W(""), G([]), q(1);
186
+ }, Pt = l(() => {
152
187
  let e = 0;
153
- return g !== "FULLTEXT" && e++, _ !== "SCORE_DESC" && e++, v.length > 0 && e++, y.length > 0 && e++, b.length > 0 && e++, x && e++, S && e++, C && e++, (w || T) && e++, (D || k) && e++, Z.length > 0 && e++, $ && e++, Q.length > 0 && e++, e;
188
+ return _ !== "FULLTEXT" && e++, v !== "SCORE_DESC" && e++, y.length > 0 && e++, b.length > 0 && e++, x.length > 0 && e++, S && e++, C && e++, w && e++, (T || D) && e++, (k || A) && e++, Y.length > 0 && e++, Z && e++, X.length > 0 && e++, e;
154
189
  }, [
155
- $,
156
- x,
157
- w,
190
+ Z,
191
+ S,
158
192
  T,
159
- y,
160
- Z.length,
161
- Q.length,
162
- C,
163
- g,
193
+ D,
164
194
  b,
165
- v,
195
+ Y.length,
196
+ X.length,
197
+ w,
166
198
  _,
167
- S,
168
- D,
169
- k
170
- ]), wt = Math.ceil(et / 20), Tt = (e) => {
171
- e.href && be(e.href);
172
- }, Et = (e) => he[e] || fe, Dt = c(() => {
199
+ x,
200
+ y,
201
+ v,
202
+ C,
203
+ k,
204
+ A
205
+ ]), Ft = Math.ceil(st / 20), It = (e) => {
206
+ e.href && we(e.href);
207
+ }, Lt = (e) => _e[e] || pe, Rt = l(() => {
173
208
  let e = /* @__PURE__ */ new Map();
174
- for (let t of ge) e.set(t.value, t);
175
- for (let t of b) e.has(t) || e.set(t, {
209
+ for (let t of ve) e.set(t.value, t);
210
+ for (let t of x) e.has(t) || e.set(t, {
176
211
  value: t,
177
212
  label: t
178
213
  });
179
- for (let t of ot?.byProduct ?? []) e.has(t.product) || e.set(t.product, {
214
+ for (let t of pt?.byProduct ?? []) e.has(t.product) || e.set(t.product, {
180
215
  value: t.product,
181
216
  label: t.product
182
217
  });
183
218
  return Array.from(e.values());
184
219
  }, [
185
- ot?.byProduct,
186
- ge,
187
- b
188
- ]), Ot = (e) => {
189
- Ke((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]), Y(1);
220
+ pt?.byProduct,
221
+ ve,
222
+ x
223
+ ]), zt = (e) => {
224
+ Xe((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]), q(1);
190
225
  };
191
- return /* @__PURE__ */ u("div", {
226
+ return /* @__PURE__ */ d("div", {
192
227
  className: "min-h-screen bg-bg-canvas",
193
- children: /* @__PURE__ */ pe("div", {
228
+ children: /* @__PURE__ */ f("div", {
194
229
  className: "container mx-auto max-w-5xl py-6 px-4",
195
230
  children: [
196
- /* @__PURE__ */ pe("div", {
231
+ /* @__PURE__ */ f("div", {
197
232
  className: "mb-6",
198
- children: [/* @__PURE__ */ u("h1", {
233
+ children: [/* @__PURE__ */ d("h1", {
199
234
  className: "text-2xl font-bold text-text-primary mb-2",
200
235
  children: "Search"
201
- }), /* @__PURE__ */ u("p", {
236
+ }), /* @__PURE__ */ d("p", {
202
237
  className: "text-text-secondary",
203
- children: ye
238
+ children: xe
204
239
  })]
205
240
  }),
206
- /* @__PURE__ */ u("div", {
241
+ /* @__PURE__ */ d("div", {
207
242
  "data-tour": "search-input",
208
- children: /* @__PURE__ */ u(re, {
209
- inputValue: dt,
210
- placeholder: ve,
211
- onInputChange: ft,
212
- onSubmit: gt,
243
+ children: /* @__PURE__ */ d(re, {
244
+ inputValue: vt,
245
+ placeholder: be,
246
+ onInputChange: yt,
247
+ onSubmit: Dt,
213
248
  onClear: () => {
214
- ft(""), Ve("");
249
+ yt(""), Ge("");
215
250
  }
216
251
  })
217
252
  }),
218
- /* @__PURE__ */ u("div", {
253
+ /* @__PURE__ */ d("div", {
219
254
  "data-tour": "search-toolbar",
220
- children: /* @__PURE__ */ u(ie, {
221
- searchMode: g,
222
- sortBy: _,
223
- showFilters: lt,
224
- activeFilterCount: Ct,
255
+ children: /* @__PURE__ */ d(ie, {
256
+ searchMode: _,
257
+ sortBy: v,
258
+ showFilters: gt,
259
+ activeFilterCount: Pt,
225
260
  onSearchModeChange: (e) => {
226
- He(e), Y(1);
261
+ Ke(e), q(1);
227
262
  },
228
263
  onSortByChange: (e) => {
229
- Ue(e), Y(1);
264
+ qe(e), q(1);
230
265
  },
231
- onToggleFilters: () => ut(!lt),
232
- onClearFilters: St
266
+ onToggleFilters: () => _t(!gt),
267
+ onClearFilters: Nt
233
268
  })
234
269
  }),
235
- lt && /* @__PURE__ */ u("div", {
270
+ gt && /* @__PURE__ */ d("div", {
236
271
  "data-tour": "search-filters-panel",
237
- children: /* @__PURE__ */ u(ae, {
238
- entityTypeOptions: d,
239
- selectedTypes: v,
240
- excludedTypes: y,
241
- availableProductOptions: Dt,
242
- selectedProducts: b,
243
- facets: ot,
244
- projectId: C,
245
- createdBy: x,
246
- updatedBy: S,
247
- dateFrom: w,
248
- dateTo: T,
249
- updatedDateFrom: D,
250
- updatedDateTo: k,
251
- tagIdsInput: M,
252
- tagKeysInput: P,
253
- tagPathsInput: I,
254
- tagVocabularyKeysInput: R,
255
- tagMatchAll: B,
256
- includeDescendants: H,
257
- tagDepth: W,
258
- metadataConditions: K,
259
- onToggleEntityType: _t,
260
- onToggleExcludedType: vt,
261
- onToggleProductSource: Ot,
272
+ children: /* @__PURE__ */ d(ae, {
273
+ entityTypeOptions: ge,
274
+ selectedTypes: y,
275
+ excludedTypes: b,
276
+ availableProductOptions: Rt,
277
+ selectedProducts: x,
278
+ facets: pt,
279
+ projectId: w,
280
+ createdBy: S,
281
+ updatedBy: C,
282
+ dateFrom: T,
283
+ dateTo: D,
284
+ updatedDateFrom: k,
285
+ updatedDateTo: A,
286
+ tagIdsInput: j,
287
+ tagKeysInput: N,
288
+ tagPathsInput: F,
289
+ tagVocabularyKeysInput: L,
290
+ tagMatchAll: z,
291
+ includeDescendants: V,
292
+ tagDepth: U,
293
+ metadataConditions: it,
294
+ onToggleEntityType: Ot,
295
+ onToggleExcludedType: kt,
296
+ onToggleProductSource: zt,
262
297
  onProjectIdChange: (e) => {
263
- Ye(e), Y(1);
298
+ $e(e), q(1);
264
299
  },
265
300
  onCreatedByChange: (e) => {
266
- qe(e), Y(1);
301
+ Ze(e), q(1);
267
302
  },
268
303
  onUpdatedByChange: (e) => {
269
- Je(e), Y(1);
304
+ Qe(e), q(1);
270
305
  },
271
306
  onDateFromChange: (e) => {
272
- Xe(e), Y(1);
307
+ E(e), q(1);
273
308
  },
274
309
  onDateToChange: (e) => {
275
- E(e), Y(1);
310
+ O(e), q(1);
276
311
  },
277
312
  onUpdatedDateFromChange: (e) => {
278
- O(e), Y(1);
313
+ et(e), q(1);
279
314
  },
280
315
  onUpdatedDateToChange: (e) => {
281
- Ze(e), Y(1);
316
+ tt(e), q(1);
282
317
  },
283
318
  onTagIdsChange: (e) => {
284
- N(e), Y(1);
319
+ M(e), q(1);
285
320
  },
286
321
  onTagKeysChange: (e) => {
287
- F(e), Y(1);
322
+ P(e), q(1);
288
323
  },
289
324
  onTagPathsChange: (e) => {
290
- L(e), Y(1);
325
+ I(e), q(1);
291
326
  },
292
327
  onTagVocabularyKeysChange: (e) => {
293
- z(e), Y(1);
328
+ R(e), q(1);
294
329
  },
295
330
  onTagMatchAllChange: (e) => {
296
- V(e), Y(1);
331
+ B(e), q(1);
297
332
  },
298
333
  onIncludeDescendantsChange: (e) => {
299
- U(e), Y(1);
334
+ H(e), q(1);
300
335
  },
301
336
  onTagDepthChange: (e) => {
302
- G(e), Y(1);
337
+ W(e), q(1);
303
338
  },
304
- onAddMetadataCondition: yt,
305
- onUpdateMetadataCondition: bt,
306
- onRemoveMetadataCondition: xt,
307
- children: /* @__PURE__ */ u(oe, {
308
- excludeIdsInput: A,
309
- selectedTypes: v,
310
- excludedTypes: y,
311
- selectedProducts: b,
312
- entityTypeOptions: d,
313
- availableProductOptions: Dt,
314
- createdBy: x,
315
- updatedBy: S,
316
- projectId: C,
317
- dateFrom: w,
318
- dateTo: T,
319
- updatedDateFrom: D,
320
- updatedDateTo: k,
321
- builtTagFilter: $,
322
- normalizedMetadataConditionsCount: Q.length,
323
- normalizedExcludeIds: Z,
324
- activeFilterCount: Ct,
339
+ onAddMetadataCondition: At,
340
+ onUpdateMetadataCondition: jt,
341
+ onRemoveMetadataCondition: Mt,
342
+ children: /* @__PURE__ */ d(oe, {
343
+ excludeIdsInput: nt,
344
+ selectedTypes: y,
345
+ excludedTypes: b,
346
+ selectedProducts: x,
347
+ entityTypeOptions: ge,
348
+ availableProductOptions: Rt,
349
+ createdBy: S,
350
+ updatedBy: C,
351
+ projectId: w,
352
+ dateFrom: T,
353
+ dateTo: D,
354
+ updatedDateFrom: k,
355
+ updatedDateTo: A,
356
+ builtTagFilter: Z,
357
+ normalizedMetadataConditionsCount: X.length,
358
+ normalizedExcludeIds: Y,
359
+ activeFilterCount: Pt,
325
360
  onExcludeIdsChange: (e) => {
326
- j(e), Y(1);
361
+ rt(e), q(1);
327
362
  },
328
- onToggleEntityType: _t,
329
- onToggleExcludedType: vt,
330
- onToggleProductSource: Ot,
331
- onClearCreatedBy: () => qe(""),
332
- onClearUpdatedBy: () => Je(""),
333
- onClearProjectId: () => Ye(""),
363
+ onToggleEntityType: Ot,
364
+ onToggleExcludedType: kt,
365
+ onToggleProductSource: zt,
366
+ onClearCreatedBy: () => Ze(""),
367
+ onClearUpdatedBy: () => Qe(""),
368
+ onClearProjectId: () => $e(""),
334
369
  onClearCreatedDateRange: () => {
335
- Xe(""), E("");
370
+ E(""), O("");
336
371
  },
337
372
  onClearUpdatedDateRange: () => {
338
- O(""), Ze("");
373
+ et(""), tt("");
339
374
  },
340
375
  onClearTagFilter: () => {
341
- N(""), F(""), L(""), z(""), V(!1), U(!0), G("");
376
+ M(""), P(""), I(""), R(""), B(!1), H(!0), W("");
342
377
  },
343
- onClearMetadataConditions: () => q([]),
344
- onClearExcludeIds: () => j("")
378
+ onClearMetadataConditions: () => G([]),
379
+ onClearExcludeIds: () => rt("")
345
380
  })
346
381
  })
347
382
  }),
348
- h && /* @__PURE__ */ u("div", {
383
+ g && /* @__PURE__ */ d("div", {
349
384
  "data-tour": "search-results-status",
350
- children: /* @__PURE__ */ u(se, {
351
- isSearching: we,
352
- error: ct,
353
- total: et,
354
- searchTimeMs: it
385
+ children: /* @__PURE__ */ d(se, {
386
+ isSearching: Oe,
387
+ error: ht,
388
+ total: st + Tt.length,
389
+ searchTimeMs: dt
355
390
  })
356
391
  }),
357
- /* @__PURE__ */ u("div", {
392
+ /* @__PURE__ */ f("div", {
358
393
  "data-tour": "search-results-list",
359
- children: /* @__PURE__ */ u(ce, {
360
- isSearching: we,
361
- error: ct,
362
- query: h,
363
- results: Qe,
364
- getEntityIcon: Et,
365
- onResultClick: Tt
366
- })
394
+ children: [/* @__PURE__ */ d(le, {
395
+ results: Et,
396
+ getEntityIcon: Lt,
397
+ onResultClick: It,
398
+ recordsFollow: at.length > 0
399
+ }), /* @__PURE__ */ d(ce, {
400
+ isSearching: Oe,
401
+ error: ht,
402
+ query: g,
403
+ results: at,
404
+ getEntityIcon: Lt,
405
+ onResultClick: It,
406
+ hasOtherResults: Et.length > 0
407
+ })]
367
408
  }),
368
- Qe.length > 0 && wt > 1 && /* @__PURE__ */ u("div", {
409
+ at.length > 0 && Ft > 1 && /* @__PURE__ */ d("div", {
369
410
  "data-tour": "search-pagination",
370
- children: /* @__PURE__ */ u(le, {
371
- currentPage: J,
372
- totalPages: wt,
373
- hasMore: nt,
374
- onPageChange: Y
411
+ children: /* @__PURE__ */ d(ue, {
412
+ currentPage: K,
413
+ totalPages: Ft,
414
+ hasMore: lt,
415
+ onPageChange: q
375
416
  })
376
417
  })
377
418
  ]
378
419
  })
379
420
  });
380
421
  }
381
- export { d as SearchPage };
422
+ export { ge as SearchPage };