@burdenoff/fe-libs 2026.1115.8 → 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.
- package/dist/chrome/globalSearch/ResultsList.js +39 -33
- package/dist/chrome/index.d.ts +1 -0
- package/dist/chrome/shell/ShellSidebar.js +287 -281
- package/dist/chrome/shell/shellSidebarWidth.d.ts +16 -0
- package/dist/chrome/shell/shellSidebarWidth.js +26 -0
- package/dist/chrome/shellLabelManifest.d.ts +8 -0
- package/dist/chrome.js +65 -63
- package/dist/shared/assistant/i18nManifest.d.ts +6 -4
- package/dist/shared/assistant/i18nManifest.js +6 -4
- package/dist/shared/assistant/index.d.ts +1 -0
- package/dist/shared/assistant/ui/AssistantChatArea.js +1108 -1107
- package/dist/shared/assistant/ui/AssistantSpeechProvider.js +16 -6
- package/dist/shared/assistant/voice/phraseGate.js +2 -0
- package/dist/shared/assistant/voice/revealSpoken.d.ts +14 -0
- package/dist/shared/assistant/voice/revealSpoken.js +28 -0
- package/dist/shared/assistant/voice/speakableText.d.ts +27 -3
- package/dist/shared/assistant/voice/speakableText.js +149 -120
- package/dist/shared/assistant/voice/speechLabels.js +28 -16
- package/dist/shared/constants/shellCssVars.d.ts +9 -0
- package/dist/shared/constants/shellCssVars.js +3 -0
- package/dist/shared/events/sinks/RybbitSink.d.ts +13 -1
- package/dist/shared/events/sinks/RybbitSink.js +129 -121
- package/dist/shared/events/sinks/index.d.ts +1 -1
- package/dist/shared/pages/SearchPage.d.ts +17 -1
- package/dist/shared/pages/SearchPage.js +284 -243
- package/dist/shared/pages/searchPage/PageResultsGroup.d.ts +16 -0
- package/dist/shared/pages/searchPage/PageResultsGroup.js +29 -0
- package/dist/shared/pages/searchPage/ResultsList.d.ts +6 -1
- package/dist/shared/pages/searchPage/ResultsList.js +9 -53
- package/dist/shared/pages/searchPage/SearchResultCard.d.ts +14 -0
- package/dist/shared/pages/searchPage/SearchResultCard.js +57 -0
- package/dist/shared/providers/AppShellProvider.d.ts +8 -0
- package/dist/shared/providers/AppShellProvider.js +91 -89
- package/dist/shared/providers/shell/PersonaSurfaceProvider.d.ts +27 -1
- package/dist/shared/providers/shell/PersonaSurfaceProvider.js +214 -179
- package/dist/shared/providers/shell/index.d.ts +2 -0
- package/dist/shared/providers/shell/navIdMigration.d.ts +29 -0
- package/dist/shared/providers/shell/navIdMigration.js +57 -0
- package/dist/shared/providers/shell/personaSurfaceRemote.d.ts +7 -0
- package/dist/shared/providers/shell/personaSurfaceRemote.js +1 -1
- package/dist/shared/types/index.d.ts +11 -0
- package/dist/shared-assistant.js +396 -395
- package/dist/shared-providers-shell.js +13 -12
- package/dist/ui/access-needed-chip.d.ts +16 -0
- package/dist/ui/access-needed-chip.js +17 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui.js +50 -49
- 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 {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
}),
|
|
24
|
-
}, [
|
|
25
|
-
let e = s(
|
|
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:
|
|
32
|
-
includeDescendants:
|
|
33
|
+
matchAll: z,
|
|
34
|
+
includeDescendants: V,
|
|
33
35
|
depth: i !== void 0 && Number.isFinite(i) ? i : void 0
|
|
34
36
|
};
|
|
35
37
|
}, [
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
]),
|
|
38
|
+
V,
|
|
39
|
+
U,
|
|
40
|
+
j,
|
|
41
|
+
N,
|
|
42
|
+
z,
|
|
43
|
+
F,
|
|
44
|
+
L
|
|
45
|
+
]), xt = de(() => {
|
|
44
46
|
let e = {
|
|
45
|
-
searchMode:
|
|
46
|
-
sortBy:
|
|
47
|
+
searchMode: _,
|
|
48
|
+
sortBy: v,
|
|
47
49
|
limit: 20,
|
|
48
|
-
offset: (
|
|
50
|
+
offset: (K - 1) * 20
|
|
49
51
|
};
|
|
50
|
-
return
|
|
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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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 (!
|
|
74
|
-
|
|
75
|
+
if (!Ee) {
|
|
76
|
+
J("No workspace selected. Please select a workspace to search.");
|
|
75
77
|
return;
|
|
76
78
|
}
|
|
77
|
-
|
|
79
|
+
J(null);
|
|
78
80
|
let e = performance.now();
|
|
79
81
|
try {
|
|
80
|
-
let t =
|
|
81
|
-
|
|
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
|
-
|
|
85
|
+
J(e instanceof Error ? e.message : "Search failed"), ot([]), ct(0), mt(void 0);
|
|
84
86
|
}
|
|
85
87
|
}, [
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
g,
|
|
89
|
+
Ee,
|
|
90
|
+
De,
|
|
91
|
+
xt,
|
|
92
|
+
Se
|
|
91
93
|
]);
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}, [
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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
|
-
|
|
122
|
-
|
|
123
|
-
|
|
151
|
+
S,
|
|
152
|
+
T,
|
|
153
|
+
D,
|
|
154
|
+
b,
|
|
155
|
+
Y,
|
|
156
|
+
X,
|
|
124
157
|
g,
|
|
158
|
+
w,
|
|
125
159
|
_,
|
|
126
160
|
v,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
161
|
+
y,
|
|
162
|
+
x,
|
|
163
|
+
K,
|
|
164
|
+
C,
|
|
131
165
|
k,
|
|
132
|
-
|
|
166
|
+
A,
|
|
167
|
+
bt
|
|
133
168
|
]);
|
|
134
|
-
let
|
|
135
|
-
e.preventDefault(),
|
|
136
|
-
},
|
|
137
|
-
|
|
138
|
-
},
|
|
139
|
-
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
},
|
|
143
|
-
|
|
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)),
|
|
147
|
-
},
|
|
148
|
-
|
|
149
|
-
},
|
|
150
|
-
|
|
151
|
-
},
|
|
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
|
|
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
|
-
|
|
157
|
-
w,
|
|
190
|
+
Z,
|
|
191
|
+
S,
|
|
158
192
|
T,
|
|
159
|
-
|
|
160
|
-
Z.length,
|
|
161
|
-
Q.length,
|
|
162
|
-
C,
|
|
163
|
-
g,
|
|
193
|
+
D,
|
|
164
194
|
b,
|
|
165
|
-
|
|
195
|
+
Y.length,
|
|
196
|
+
X.length,
|
|
197
|
+
w,
|
|
166
198
|
_,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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
|
|
175
|
-
for (let t of
|
|
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
|
|
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
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
]),
|
|
189
|
-
|
|
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__ */
|
|
226
|
+
return /* @__PURE__ */ d("div", {
|
|
192
227
|
className: "min-h-screen bg-bg-canvas",
|
|
193
|
-
children: /* @__PURE__ */
|
|
228
|
+
children: /* @__PURE__ */ f("div", {
|
|
194
229
|
className: "container mx-auto max-w-5xl py-6 px-4",
|
|
195
230
|
children: [
|
|
196
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ f("div", {
|
|
197
232
|
className: "mb-6",
|
|
198
|
-
children: [/* @__PURE__ */
|
|
233
|
+
children: [/* @__PURE__ */ d("h1", {
|
|
199
234
|
className: "text-2xl font-bold text-text-primary mb-2",
|
|
200
235
|
children: "Search"
|
|
201
|
-
}), /* @__PURE__ */
|
|
236
|
+
}), /* @__PURE__ */ d("p", {
|
|
202
237
|
className: "text-text-secondary",
|
|
203
|
-
children:
|
|
238
|
+
children: xe
|
|
204
239
|
})]
|
|
205
240
|
}),
|
|
206
|
-
/* @__PURE__ */
|
|
241
|
+
/* @__PURE__ */ d("div", {
|
|
207
242
|
"data-tour": "search-input",
|
|
208
|
-
children: /* @__PURE__ */
|
|
209
|
-
inputValue:
|
|
210
|
-
placeholder:
|
|
211
|
-
onInputChange:
|
|
212
|
-
onSubmit:
|
|
243
|
+
children: /* @__PURE__ */ d(re, {
|
|
244
|
+
inputValue: vt,
|
|
245
|
+
placeholder: be,
|
|
246
|
+
onInputChange: yt,
|
|
247
|
+
onSubmit: Dt,
|
|
213
248
|
onClear: () => {
|
|
214
|
-
|
|
249
|
+
yt(""), Ge("");
|
|
215
250
|
}
|
|
216
251
|
})
|
|
217
252
|
}),
|
|
218
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ d("div", {
|
|
219
254
|
"data-tour": "search-toolbar",
|
|
220
|
-
children: /* @__PURE__ */
|
|
221
|
-
searchMode:
|
|
222
|
-
sortBy:
|
|
223
|
-
showFilters:
|
|
224
|
-
activeFilterCount:
|
|
255
|
+
children: /* @__PURE__ */ d(ie, {
|
|
256
|
+
searchMode: _,
|
|
257
|
+
sortBy: v,
|
|
258
|
+
showFilters: gt,
|
|
259
|
+
activeFilterCount: Pt,
|
|
225
260
|
onSearchModeChange: (e) => {
|
|
226
|
-
|
|
261
|
+
Ke(e), q(1);
|
|
227
262
|
},
|
|
228
263
|
onSortByChange: (e) => {
|
|
229
|
-
|
|
264
|
+
qe(e), q(1);
|
|
230
265
|
},
|
|
231
|
-
onToggleFilters: () =>
|
|
232
|
-
onClearFilters:
|
|
266
|
+
onToggleFilters: () => _t(!gt),
|
|
267
|
+
onClearFilters: Nt
|
|
233
268
|
})
|
|
234
269
|
}),
|
|
235
|
-
|
|
270
|
+
gt && /* @__PURE__ */ d("div", {
|
|
236
271
|
"data-tour": "search-filters-panel",
|
|
237
|
-
children: /* @__PURE__ */
|
|
238
|
-
entityTypeOptions:
|
|
239
|
-
selectedTypes:
|
|
240
|
-
excludedTypes:
|
|
241
|
-
availableProductOptions:
|
|
242
|
-
selectedProducts:
|
|
243
|
-
facets:
|
|
244
|
-
projectId:
|
|
245
|
-
createdBy:
|
|
246
|
-
updatedBy:
|
|
247
|
-
dateFrom:
|
|
248
|
-
dateTo:
|
|
249
|
-
updatedDateFrom:
|
|
250
|
-
updatedDateTo:
|
|
251
|
-
tagIdsInput:
|
|
252
|
-
tagKeysInput:
|
|
253
|
-
tagPathsInput:
|
|
254
|
-
tagVocabularyKeysInput:
|
|
255
|
-
tagMatchAll:
|
|
256
|
-
includeDescendants:
|
|
257
|
-
tagDepth:
|
|
258
|
-
metadataConditions:
|
|
259
|
-
onToggleEntityType:
|
|
260
|
-
onToggleExcludedType:
|
|
261
|
-
onToggleProductSource:
|
|
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
|
-
|
|
298
|
+
$e(e), q(1);
|
|
264
299
|
},
|
|
265
300
|
onCreatedByChange: (e) => {
|
|
266
|
-
|
|
301
|
+
Ze(e), q(1);
|
|
267
302
|
},
|
|
268
303
|
onUpdatedByChange: (e) => {
|
|
269
|
-
|
|
304
|
+
Qe(e), q(1);
|
|
270
305
|
},
|
|
271
306
|
onDateFromChange: (e) => {
|
|
272
|
-
|
|
307
|
+
E(e), q(1);
|
|
273
308
|
},
|
|
274
309
|
onDateToChange: (e) => {
|
|
275
|
-
|
|
310
|
+
O(e), q(1);
|
|
276
311
|
},
|
|
277
312
|
onUpdatedDateFromChange: (e) => {
|
|
278
|
-
|
|
313
|
+
et(e), q(1);
|
|
279
314
|
},
|
|
280
315
|
onUpdatedDateToChange: (e) => {
|
|
281
|
-
|
|
316
|
+
tt(e), q(1);
|
|
282
317
|
},
|
|
283
318
|
onTagIdsChange: (e) => {
|
|
284
|
-
|
|
319
|
+
M(e), q(1);
|
|
285
320
|
},
|
|
286
321
|
onTagKeysChange: (e) => {
|
|
287
|
-
|
|
322
|
+
P(e), q(1);
|
|
288
323
|
},
|
|
289
324
|
onTagPathsChange: (e) => {
|
|
290
|
-
|
|
325
|
+
I(e), q(1);
|
|
291
326
|
},
|
|
292
327
|
onTagVocabularyKeysChange: (e) => {
|
|
293
|
-
|
|
328
|
+
R(e), q(1);
|
|
294
329
|
},
|
|
295
330
|
onTagMatchAllChange: (e) => {
|
|
296
|
-
|
|
331
|
+
B(e), q(1);
|
|
297
332
|
},
|
|
298
333
|
onIncludeDescendantsChange: (e) => {
|
|
299
|
-
|
|
334
|
+
H(e), q(1);
|
|
300
335
|
},
|
|
301
336
|
onTagDepthChange: (e) => {
|
|
302
|
-
|
|
337
|
+
W(e), q(1);
|
|
303
338
|
},
|
|
304
|
-
onAddMetadataCondition:
|
|
305
|
-
onUpdateMetadataCondition:
|
|
306
|
-
onRemoveMetadataCondition:
|
|
307
|
-
children: /* @__PURE__ */
|
|
308
|
-
excludeIdsInput:
|
|
309
|
-
selectedTypes:
|
|
310
|
-
excludedTypes:
|
|
311
|
-
selectedProducts:
|
|
312
|
-
entityTypeOptions:
|
|
313
|
-
availableProductOptions:
|
|
314
|
-
createdBy:
|
|
315
|
-
updatedBy:
|
|
316
|
-
projectId:
|
|
317
|
-
dateFrom:
|
|
318
|
-
dateTo:
|
|
319
|
-
updatedDateFrom:
|
|
320
|
-
updatedDateTo:
|
|
321
|
-
builtTagFilter:
|
|
322
|
-
normalizedMetadataConditionsCount:
|
|
323
|
-
normalizedExcludeIds:
|
|
324
|
-
activeFilterCount:
|
|
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
|
-
|
|
361
|
+
rt(e), q(1);
|
|
327
362
|
},
|
|
328
|
-
onToggleEntityType:
|
|
329
|
-
onToggleExcludedType:
|
|
330
|
-
onToggleProductSource:
|
|
331
|
-
onClearCreatedBy: () =>
|
|
332
|
-
onClearUpdatedBy: () =>
|
|
333
|
-
onClearProjectId: () =>
|
|
363
|
+
onToggleEntityType: Ot,
|
|
364
|
+
onToggleExcludedType: kt,
|
|
365
|
+
onToggleProductSource: zt,
|
|
366
|
+
onClearCreatedBy: () => Ze(""),
|
|
367
|
+
onClearUpdatedBy: () => Qe(""),
|
|
368
|
+
onClearProjectId: () => $e(""),
|
|
334
369
|
onClearCreatedDateRange: () => {
|
|
335
|
-
|
|
370
|
+
E(""), O("");
|
|
336
371
|
},
|
|
337
372
|
onClearUpdatedDateRange: () => {
|
|
338
|
-
|
|
373
|
+
et(""), tt("");
|
|
339
374
|
},
|
|
340
375
|
onClearTagFilter: () => {
|
|
341
|
-
|
|
376
|
+
M(""), P(""), I(""), R(""), B(!1), H(!0), W("");
|
|
342
377
|
},
|
|
343
|
-
onClearMetadataConditions: () =>
|
|
344
|
-
onClearExcludeIds: () =>
|
|
378
|
+
onClearMetadataConditions: () => G([]),
|
|
379
|
+
onClearExcludeIds: () => rt("")
|
|
345
380
|
})
|
|
346
381
|
})
|
|
347
382
|
}),
|
|
348
|
-
|
|
383
|
+
g && /* @__PURE__ */ d("div", {
|
|
349
384
|
"data-tour": "search-results-status",
|
|
350
|
-
children: /* @__PURE__ */
|
|
351
|
-
isSearching:
|
|
352
|
-
error:
|
|
353
|
-
total:
|
|
354
|
-
searchTimeMs:
|
|
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__ */
|
|
392
|
+
/* @__PURE__ */ f("div", {
|
|
358
393
|
"data-tour": "search-results-list",
|
|
359
|
-
children: /* @__PURE__ */
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
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
|
-
|
|
409
|
+
at.length > 0 && Ft > 1 && /* @__PURE__ */ d("div", {
|
|
369
410
|
"data-tour": "search-pagination",
|
|
370
|
-
children: /* @__PURE__ */
|
|
371
|
-
currentPage:
|
|
372
|
-
totalPages:
|
|
373
|
-
hasMore:
|
|
374
|
-
onPageChange:
|
|
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 {
|
|
422
|
+
export { ge as SearchPage };
|