@burdenoff/fe-libs 2026.1118.13 → 2026.1119.1
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/AdvancedFiltersPanel.js +128 -127
- package/dist/chrome/notificationCenter/NotificationFilters.js +45 -44
- package/dist/connections/CredentialStorageSelector.js +135 -134
- package/dist/connections/SharePanels.js +70 -69
- package/dist/credentials/AuthMethodSelector.js +33 -32
- package/dist/credentials/SchemaForm.js +96 -95
- package/dist/shared/assistant/avatar/live/LiveAvatarSettingsFields.js +74 -73
- package/dist/shared/assistant/ui/AssistantLanguageMenu.d.ts +2 -0
- package/dist/shared/assistant/ui/AssistantLanguageMenu.js +41 -40
- package/dist/shared/assistant/ui/AssistantReplyLanguageSelector.d.ts +3 -1
- package/dist/shared/assistant/ui/AssistantReplyLanguageSelector.js +26 -25
- package/dist/shared/assistant/ui/composer/AssistantLanguageSelector.d.ts +3 -1
- package/dist/shared/assistant/ui/composer/AssistantLanguageSelector.js +22 -21
- package/dist/shared/assistant/ui/composer/AssistantVoiceGraceSelector.d.ts +2 -1
- package/dist/shared/assistant/ui/composer/AssistantVoiceGraceSelector.js +17 -16
- package/dist/shared/assistant/ui/composer/AssistantVoiceSelector.d.ts +3 -1
- package/dist/shared/assistant/ui/composer/AssistantVoiceSelector.js +22 -21
- package/dist/shared/pages/searchPage/FiltersPanel.js +129 -128
- package/dist/shared/pages/searchPage/SearchToolbar.js +24 -23
- package/dist/shared/providers/AppShellProvider.d.ts +8 -0
- package/dist/shared/providers/AppShellProvider.js +199 -193
- package/dist/shared/providers/shell/ThemeProvider.d.ts +6 -1
- package/dist/shared/providers/shell/ThemeProvider.js +65 -62
- package/dist/shared/providers/shell/themedNativeControls.d.ts +25 -0
- package/dist/shared/providers/shell/themedNativeControls.js +13 -0
- package/dist/sharing/ShareDialog.js +33 -32
- package/dist/storage/StorageFolderPicker.js +50 -49
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/themed-select-context.d.ts +9 -0
- package/dist/ui/themed-select-context.js +15 -0
- package/dist/ui/themed-select-options.d.ts +42 -0
- package/dist/ui/themed-select-options.js +88 -0
- package/dist/ui/themed-select.d.ts +7 -0
- package/dist/ui/themed-select.js +234 -0
- package/dist/ui.js +31 -29
- package/package.json +1 -1
- package/src/shared/tokens/tokens.css +100 -0
|
@@ -1,36 +1,37 @@
|
|
|
1
1
|
import { useAssistantTr as e } from "../../i18n.js";
|
|
2
2
|
import { useAssistantSpeech as t } from "../AssistantSpeechProvider.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { ThemedSelect as n } from "../../../../ui/themed-select.js";
|
|
4
|
+
import { AudioLines as r } from "lucide-react";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
6
|
// src/shared/assistant/ui/composer/AssistantVoiceSelector.tsx
|
|
6
|
-
var
|
|
7
|
-
let
|
|
8
|
-
if (
|
|
9
|
-
let
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
className: `relative flex items-center gap-1 rounded-md px-1.5 py-1 text-[11px] transition-colors focus-within:ring-2 focus-within:ring-border-strong ${
|
|
12
|
-
title: `${
|
|
7
|
+
var o = ({ disabled: o = !1 }) => {
|
|
8
|
+
let c = e(), { voiceChoices: l, activeVoiceName: u, preferredVoiceName: d, setVoice: f } = t();
|
|
9
|
+
if (l.length < 2) return null;
|
|
10
|
+
let p = c("voice.voiceLabel", "Voice that reads replies");
|
|
11
|
+
return /* @__PURE__ */ a("label", {
|
|
12
|
+
className: `relative flex items-center gap-1 rounded-md px-1.5 py-1 text-[11px] transition-colors focus-within:ring-2 focus-within:ring-border-strong ${o ? "cursor-not-allowed opacity-50" : "cursor-pointer text-text-muted hover:bg-bg-elevated hover:text-text-secondary"}`,
|
|
13
|
+
title: `${p}: ${u ?? ""}`,
|
|
13
14
|
"data-testid": "assistant-voice-selector",
|
|
14
|
-
children: [/* @__PURE__ */ r
|
|
15
|
+
children: [/* @__PURE__ */ i(r, {
|
|
15
16
|
className: "size-3.5",
|
|
16
17
|
"aria-hidden": "true"
|
|
17
|
-
}), /* @__PURE__ */
|
|
18
|
-
"aria-label":
|
|
19
|
-
value:
|
|
20
|
-
disabled:
|
|
18
|
+
}), /* @__PURE__ */ a(n, {
|
|
19
|
+
"aria-label": p,
|
|
20
|
+
value: d ?? "__auto__",
|
|
21
|
+
disabled: o,
|
|
21
22
|
onChange: (e) => {
|
|
22
23
|
let t = e.target.value;
|
|
23
|
-
|
|
24
|
+
f(t === "__auto__" ? null : t);
|
|
24
25
|
},
|
|
25
26
|
className: "absolute inset-0 cursor-pointer opacity-0 scheme-normal dark:scheme-dark disabled:cursor-not-allowed [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
26
|
-
children: [/* @__PURE__ */
|
|
27
|
-
value:
|
|
28
|
-
children:
|
|
29
|
-
}),
|
|
27
|
+
children: [/* @__PURE__ */ i("option", {
|
|
28
|
+
value: s,
|
|
29
|
+
children: u ? `${c("voice.voiceAuto", "Best available")} (${u})` : c("voice.voiceAuto", "Best available")
|
|
30
|
+
}), l.map((e) => /* @__PURE__ */ i("option", {
|
|
30
31
|
value: e.name,
|
|
31
32
|
children: e.name
|
|
32
33
|
}, e.name))]
|
|
33
34
|
})]
|
|
34
35
|
});
|
|
35
|
-
},
|
|
36
|
-
export {
|
|
36
|
+
}, s = "__auto__";
|
|
37
|
+
export { s as AUTO_VOICE, o as AssistantVoiceSelector };
|
|
@@ -1,328 +1,329 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ThemedSelect as e } from "../../../ui/themed-select.js";
|
|
2
|
+
import { Plus as t, X as n } from "lucide-react";
|
|
3
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
4
|
// src/shared/pages/searchPage/FiltersPanel.tsx
|
|
4
|
-
function
|
|
5
|
-
return /* @__PURE__ */
|
|
5
|
+
function a({ entityTypeOptions: a, selectedTypes: o, excludedTypes: s, availableProductOptions: c, selectedProducts: l, facets: u, projectId: d, createdBy: f, updatedBy: p, dateFrom: m, dateTo: h, updatedDateFrom: g, updatedDateTo: _, tagIdsInput: v, tagKeysInput: y, tagPathsInput: b, tagVocabularyKeysInput: x, tagMatchAll: S, includeDescendants: C, tagDepth: w, metadataConditions: T, onToggleEntityType: E, onToggleExcludedType: D, onToggleProductSource: O, onProjectIdChange: k, onCreatedByChange: A, onUpdatedByChange: j, onDateFromChange: M, onDateToChange: N, onUpdatedDateFromChange: P, onUpdatedDateToChange: F, onTagIdsChange: I, onTagKeysChange: L, onTagPathsChange: R, onTagVocabularyKeysChange: z, onTagMatchAllChange: B, onIncludeDescendantsChange: V, onTagDepthChange: H, onAddMetadataCondition: U, onUpdateMetadataCondition: W, onRemoveMetadataCondition: G, children: K }) {
|
|
6
|
+
return /* @__PURE__ */ r("div", {
|
|
6
7
|
className: "mb-6 p-4 bg-bg-surface rounded-lg border border-border-default",
|
|
7
|
-
children: /* @__PURE__ */
|
|
8
|
+
children: /* @__PURE__ */ i("div", {
|
|
8
9
|
className: "grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6",
|
|
9
10
|
children: [
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
+
/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("h3", {
|
|
11
12
|
className: "text-sm font-medium text-text-primary mb-3",
|
|
12
13
|
children: "Include Entity Types"
|
|
13
|
-
}), /* @__PURE__ */
|
|
14
|
+
}), /* @__PURE__ */ r("div", {
|
|
14
15
|
className: "space-y-2 max-h-56 overflow-y-auto",
|
|
15
|
-
children:
|
|
16
|
+
children: a.map((e) => /* @__PURE__ */ i("label", {
|
|
16
17
|
className: "flex items-center gap-2 cursor-pointer",
|
|
17
|
-
children: [/* @__PURE__ */
|
|
18
|
+
children: [/* @__PURE__ */ r("input", {
|
|
18
19
|
type: "checkbox",
|
|
19
|
-
checked:
|
|
20
|
-
onChange: () =>
|
|
20
|
+
checked: o.includes(e.value),
|
|
21
|
+
onChange: () => E(e.value),
|
|
21
22
|
className: "size-4 rounded border-border-default text-primary-default focus:ring-primary-default"
|
|
22
|
-
}), /* @__PURE__ */
|
|
23
|
+
}), /* @__PURE__ */ r("span", {
|
|
23
24
|
className: "text-sm text-text-secondary",
|
|
24
25
|
children: e.label
|
|
25
26
|
})]
|
|
26
27
|
}, e.value))
|
|
27
28
|
})] }),
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("h3", {
|
|
29
30
|
className: "text-sm font-medium text-text-primary mb-3",
|
|
30
31
|
children: "Exclude Entity Types"
|
|
31
|
-
}), /* @__PURE__ */
|
|
32
|
+
}), /* @__PURE__ */ r("div", {
|
|
32
33
|
className: "space-y-2 max-h-56 overflow-y-auto",
|
|
33
|
-
children:
|
|
34
|
+
children: a.map((e) => /* @__PURE__ */ i("label", {
|
|
34
35
|
className: "flex items-center gap-2 cursor-pointer",
|
|
35
|
-
children: [/* @__PURE__ */
|
|
36
|
+
children: [/* @__PURE__ */ r("input", {
|
|
36
37
|
type: "checkbox",
|
|
37
|
-
checked:
|
|
38
|
-
onChange: () =>
|
|
38
|
+
checked: s.includes(e.value),
|
|
39
|
+
onChange: () => D(e.value),
|
|
39
40
|
className: "size-4 rounded border-border-default text-primary-default focus:ring-primary-default"
|
|
40
|
-
}), /* @__PURE__ */
|
|
41
|
+
}), /* @__PURE__ */ r("span", {
|
|
41
42
|
className: "text-sm text-text-secondary",
|
|
42
43
|
children: e.label
|
|
43
44
|
})]
|
|
44
45
|
}, `exclude-${e.value}`))
|
|
45
46
|
})] }),
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("h3", {
|
|
47
48
|
className: "text-sm font-medium text-text-primary mb-3",
|
|
48
49
|
children: "Product Sources"
|
|
49
|
-
}), /* @__PURE__ */
|
|
50
|
+
}), /* @__PURE__ */ r("div", {
|
|
50
51
|
className: "space-y-2 max-h-56 overflow-y-auto",
|
|
51
|
-
children:
|
|
52
|
-
let t =
|
|
53
|
-
return /* @__PURE__ */
|
|
52
|
+
children: c.length > 0 ? c.map((e) => {
|
|
53
|
+
let t = u?.byProduct?.find((t) => t.product === e.value)?.count;
|
|
54
|
+
return /* @__PURE__ */ i("label", {
|
|
54
55
|
className: "flex items-center justify-between gap-2 cursor-pointer",
|
|
55
|
-
children: [/* @__PURE__ */
|
|
56
|
+
children: [/* @__PURE__ */ i("div", {
|
|
56
57
|
className: "flex items-center gap-2",
|
|
57
|
-
children: [/* @__PURE__ */
|
|
58
|
+
children: [/* @__PURE__ */ r("input", {
|
|
58
59
|
type: "checkbox",
|
|
59
|
-
checked:
|
|
60
|
-
onChange: () =>
|
|
60
|
+
checked: l.includes(e.value),
|
|
61
|
+
onChange: () => O(e.value),
|
|
61
62
|
className: "size-4 rounded border-border-default text-primary-default focus:ring-primary-default"
|
|
62
|
-
}), /* @__PURE__ */
|
|
63
|
+
}), /* @__PURE__ */ r("span", {
|
|
63
64
|
className: "text-sm text-text-secondary",
|
|
64
65
|
children: e.label
|
|
65
66
|
})]
|
|
66
|
-
}), t !== void 0 && /* @__PURE__ */
|
|
67
|
+
}), t !== void 0 && /* @__PURE__ */ r("span", {
|
|
67
68
|
className: "text-xs text-text-tertiary",
|
|
68
69
|
children: t
|
|
69
70
|
})]
|
|
70
71
|
}, e.value);
|
|
71
|
-
}) : /* @__PURE__ */
|
|
72
|
+
}) : /* @__PURE__ */ r("span", {
|
|
72
73
|
className: "text-sm text-text-tertiary",
|
|
73
74
|
children: "Product filters will appear after results are loaded."
|
|
74
75
|
})
|
|
75
76
|
})] }),
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
+
/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("h3", {
|
|
77
78
|
className: "text-sm font-medium text-text-primary mb-3",
|
|
78
79
|
children: "Scope & Actors"
|
|
79
|
-
}), /* @__PURE__ */
|
|
80
|
+
}), /* @__PURE__ */ i("div", {
|
|
80
81
|
className: "space-y-3",
|
|
81
82
|
children: [
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("label", {
|
|
83
84
|
className: "block text-xs text-text-tertiary mb-1",
|
|
84
85
|
children: "Project ID"
|
|
85
|
-
}), /* @__PURE__ */
|
|
86
|
+
}), /* @__PURE__ */ r("input", {
|
|
86
87
|
"aria-label": "Project ID filter",
|
|
87
88
|
type: "text",
|
|
88
|
-
value:
|
|
89
|
-
onChange: (e) =>
|
|
89
|
+
value: d,
|
|
90
|
+
onChange: (e) => k(e.target.value),
|
|
90
91
|
placeholder: "Optional project scope",
|
|
91
92
|
className: "w-full h-9 px-3 text-sm rounded-md border border-border-default bg-bg-canvas text-text-primary focus:outline-none focus:ring-2 focus:ring-primary-default"
|
|
92
93
|
})] }),
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("label", {
|
|
94
95
|
className: "block text-xs text-text-tertiary mb-1",
|
|
95
96
|
children: "Created by"
|
|
96
|
-
}), /* @__PURE__ */
|
|
97
|
+
}), /* @__PURE__ */ r("input", {
|
|
97
98
|
"aria-label": "Created by filter",
|
|
98
99
|
type: "text",
|
|
99
|
-
value:
|
|
100
|
-
onChange: (e) =>
|
|
100
|
+
value: f,
|
|
101
|
+
onChange: (e) => A(e.target.value),
|
|
101
102
|
placeholder: "Actor ID",
|
|
102
103
|
className: "w-full h-9 px-3 text-sm rounded-md border border-border-default bg-bg-canvas text-text-primary focus:outline-none focus:ring-2 focus:ring-primary-default"
|
|
103
104
|
})] }),
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
+
/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("label", {
|
|
105
106
|
className: "block text-xs text-text-tertiary mb-1",
|
|
106
107
|
children: "Updated by"
|
|
107
|
-
}), /* @__PURE__ */
|
|
108
|
+
}), /* @__PURE__ */ r("input", {
|
|
108
109
|
"aria-label": "Updated by filter",
|
|
109
110
|
type: "text",
|
|
110
|
-
value:
|
|
111
|
-
onChange: (e) =>
|
|
111
|
+
value: p,
|
|
112
|
+
onChange: (e) => j(e.target.value),
|
|
112
113
|
placeholder: "Actor ID",
|
|
113
114
|
className: "w-full h-9 px-3 text-sm rounded-md border border-border-default bg-bg-canvas text-text-primary focus:outline-none focus:ring-2 focus:ring-primary-default"
|
|
114
115
|
})] })
|
|
115
116
|
]
|
|
116
117
|
})] }),
|
|
117
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("h3", {
|
|
118
119
|
className: "text-sm font-medium text-text-primary mb-3",
|
|
119
120
|
children: "Created Date Range"
|
|
120
|
-
}), /* @__PURE__ */
|
|
121
|
+
}), /* @__PURE__ */ i("div", {
|
|
121
122
|
className: "space-y-3",
|
|
122
|
-
children: [/* @__PURE__ */
|
|
123
|
+
children: [/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("label", {
|
|
123
124
|
className: "block text-xs text-text-tertiary mb-1",
|
|
124
125
|
children: "From"
|
|
125
|
-
}), /* @__PURE__ */
|
|
126
|
+
}), /* @__PURE__ */ r("input", {
|
|
126
127
|
"aria-label": "Created from date",
|
|
127
128
|
type: "date",
|
|
128
|
-
value:
|
|
129
|
-
onChange: (e) =>
|
|
129
|
+
value: m,
|
|
130
|
+
onChange: (e) => M(e.target.value),
|
|
130
131
|
className: "w-full h-9 px-3 text-sm rounded-md border border-border-default bg-bg-canvas text-text-primary focus:outline-none focus:ring-2 focus:ring-primary-default"
|
|
131
|
-
})] }), /* @__PURE__ */
|
|
132
|
+
})] }), /* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("label", {
|
|
132
133
|
className: "block text-xs text-text-tertiary mb-1",
|
|
133
134
|
children: "To"
|
|
134
|
-
}), /* @__PURE__ */
|
|
135
|
+
}), /* @__PURE__ */ r("input", {
|
|
135
136
|
"aria-label": "Created to date",
|
|
136
137
|
type: "date",
|
|
137
|
-
value:
|
|
138
|
-
onChange: (e) =>
|
|
138
|
+
value: h,
|
|
139
|
+
onChange: (e) => N(e.target.value),
|
|
139
140
|
className: "w-full h-9 px-3 text-sm rounded-md border border-border-default bg-bg-canvas text-text-primary focus:outline-none focus:ring-2 focus:ring-primary-default"
|
|
140
141
|
})] })]
|
|
141
142
|
})] }),
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
+
/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("h3", {
|
|
143
144
|
className: "text-sm font-medium text-text-primary mb-3",
|
|
144
145
|
children: "Updated Date Range"
|
|
145
|
-
}), /* @__PURE__ */
|
|
146
|
+
}), /* @__PURE__ */ i("div", {
|
|
146
147
|
className: "space-y-3",
|
|
147
|
-
children: [/* @__PURE__ */
|
|
148
|
+
children: [/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("label", {
|
|
148
149
|
className: "block text-xs text-text-tertiary mb-1",
|
|
149
150
|
children: "From"
|
|
150
|
-
}), /* @__PURE__ */
|
|
151
|
+
}), /* @__PURE__ */ r("input", {
|
|
151
152
|
"aria-label": "Updated from date",
|
|
152
153
|
type: "date",
|
|
153
|
-
value:
|
|
154
|
-
onChange: (e) =>
|
|
154
|
+
value: g,
|
|
155
|
+
onChange: (e) => P(e.target.value),
|
|
155
156
|
className: "w-full h-9 px-3 text-sm rounded-md border border-border-default bg-bg-canvas text-text-primary focus:outline-none focus:ring-2 focus:ring-primary-default"
|
|
156
|
-
})] }), /* @__PURE__ */
|
|
157
|
+
})] }), /* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("label", {
|
|
157
158
|
className: "block text-xs text-text-tertiary mb-1",
|
|
158
159
|
children: "To"
|
|
159
|
-
}), /* @__PURE__ */
|
|
160
|
+
}), /* @__PURE__ */ r("input", {
|
|
160
161
|
"aria-label": "Updated to date",
|
|
161
162
|
type: "date",
|
|
162
|
-
value:
|
|
163
|
-
onChange: (e) =>
|
|
163
|
+
value: _,
|
|
164
|
+
onChange: (e) => F(e.target.value),
|
|
164
165
|
className: "w-full h-9 px-3 text-sm rounded-md border border-border-default bg-bg-canvas text-text-primary focus:outline-none focus:ring-2 focus:ring-primary-default"
|
|
165
166
|
})] })]
|
|
166
167
|
})] }),
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("h3", {
|
|
168
169
|
className: "text-sm font-medium text-text-primary mb-3",
|
|
169
170
|
children: "Tag Filters"
|
|
170
|
-
}), /* @__PURE__ */
|
|
171
|
+
}), /* @__PURE__ */ i("div", {
|
|
171
172
|
className: "space-y-3",
|
|
172
173
|
children: [
|
|
173
|
-
/* @__PURE__ */
|
|
174
|
+
/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("label", {
|
|
174
175
|
className: "block text-xs text-text-tertiary mb-1",
|
|
175
176
|
children: "Tag IDs"
|
|
176
|
-
}), /* @__PURE__ */
|
|
177
|
+
}), /* @__PURE__ */ r("input", {
|
|
177
178
|
"aria-label": "Tag IDs filter",
|
|
178
179
|
type: "text",
|
|
179
|
-
value:
|
|
180
|
-
onChange: (e) =>
|
|
180
|
+
value: v,
|
|
181
|
+
onChange: (e) => I(e.target.value),
|
|
181
182
|
placeholder: "Comma-separated tag IDs",
|
|
182
183
|
className: "w-full h-9 px-3 text-sm rounded-md border border-border-default bg-bg-canvas text-text-primary focus:outline-none focus:ring-2 focus:ring-primary-default"
|
|
183
184
|
})] }),
|
|
184
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("label", {
|
|
185
186
|
className: "block text-xs text-text-tertiary mb-1",
|
|
186
187
|
children: "Tag Keys"
|
|
187
|
-
}), /* @__PURE__ */
|
|
188
|
+
}), /* @__PURE__ */ r("input", {
|
|
188
189
|
"aria-label": "Tag keys filter",
|
|
189
190
|
type: "text",
|
|
190
|
-
value:
|
|
191
|
-
onChange: (e) =>
|
|
191
|
+
value: y,
|
|
192
|
+
onChange: (e) => L(e.target.value),
|
|
192
193
|
placeholder: "Comma-separated tag keys",
|
|
193
194
|
className: "w-full h-9 px-3 text-sm rounded-md border border-border-default bg-bg-canvas text-text-primary focus:outline-none focus:ring-2 focus:ring-primary-default"
|
|
194
195
|
})] }),
|
|
195
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("label", {
|
|
196
197
|
className: "block text-xs text-text-tertiary mb-1",
|
|
197
198
|
children: "Hierarchy Paths"
|
|
198
|
-
}), /* @__PURE__ */
|
|
199
|
+
}), /* @__PURE__ */ r("input", {
|
|
199
200
|
"aria-label": "Tag hierarchy paths filter",
|
|
200
201
|
type: "text",
|
|
201
|
-
value:
|
|
202
|
-
onChange: (e) =>
|
|
202
|
+
value: b,
|
|
203
|
+
onChange: (e) => R(e.target.value),
|
|
203
204
|
placeholder: "team/engineering, finance/payables",
|
|
204
205
|
className: "w-full h-9 px-3 text-sm rounded-md border border-border-default bg-bg-canvas text-text-primary focus:outline-none focus:ring-2 focus:ring-primary-default"
|
|
205
206
|
})] }),
|
|
206
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("label", {
|
|
207
208
|
className: "block text-xs text-text-tertiary mb-1",
|
|
208
209
|
children: "Vocabulary Keys"
|
|
209
|
-
}), /* @__PURE__ */
|
|
210
|
+
}), /* @__PURE__ */ r("input", {
|
|
210
211
|
"aria-label": "Tag vocabulary keys filter",
|
|
211
212
|
type: "text",
|
|
212
|
-
value:
|
|
213
|
-
onChange: (e) =>
|
|
213
|
+
value: x,
|
|
214
|
+
onChange: (e) => z(e.target.value),
|
|
214
215
|
placeholder: "project-tags, workspace-tags",
|
|
215
216
|
className: "w-full h-9 px-3 text-sm rounded-md border border-border-default bg-bg-canvas text-text-primary focus:outline-none focus:ring-2 focus:ring-primary-default"
|
|
216
217
|
})] }),
|
|
217
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ i("div", {
|
|
218
219
|
className: "grid grid-cols-2 gap-3",
|
|
219
|
-
children: [/* @__PURE__ */
|
|
220
|
+
children: [/* @__PURE__ */ i("label", {
|
|
220
221
|
className: "flex items-center gap-2 text-sm text-text-secondary cursor-pointer",
|
|
221
|
-
children: [/* @__PURE__ */
|
|
222
|
+
children: [/* @__PURE__ */ r("input", {
|
|
222
223
|
type: "checkbox",
|
|
223
|
-
checked:
|
|
224
|
-
onChange: (e) =>
|
|
224
|
+
checked: S,
|
|
225
|
+
onChange: (e) => B(e.target.checked),
|
|
225
226
|
className: "size-4 rounded border-border-default text-primary-default focus:ring-primary-default"
|
|
226
227
|
}), "Match all"]
|
|
227
|
-
}), /* @__PURE__ */
|
|
228
|
+
}), /* @__PURE__ */ i("label", {
|
|
228
229
|
className: "flex items-center gap-2 text-sm text-text-secondary cursor-pointer",
|
|
229
|
-
children: [/* @__PURE__ */
|
|
230
|
+
children: [/* @__PURE__ */ r("input", {
|
|
230
231
|
type: "checkbox",
|
|
231
|
-
checked:
|
|
232
|
-
onChange: (e) =>
|
|
232
|
+
checked: C,
|
|
233
|
+
onChange: (e) => V(e.target.checked),
|
|
233
234
|
className: "size-4 rounded border-border-default text-primary-default focus:ring-primary-default"
|
|
234
235
|
}), "Include descendants"]
|
|
235
236
|
})]
|
|
236
237
|
}),
|
|
237
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("label", {
|
|
238
239
|
className: "block text-xs text-text-tertiary mb-1",
|
|
239
240
|
children: "Tag depth"
|
|
240
|
-
}), /* @__PURE__ */
|
|
241
|
+
}), /* @__PURE__ */ r("input", {
|
|
241
242
|
"aria-label": "Tag depth filter",
|
|
242
243
|
type: "number",
|
|
243
244
|
min: "1",
|
|
244
|
-
value:
|
|
245
|
-
onChange: (e) =>
|
|
245
|
+
value: w,
|
|
246
|
+
onChange: (e) => H(e.target.value),
|
|
246
247
|
placeholder: "Optional depth limit",
|
|
247
248
|
className: "w-full h-9 px-3 text-sm rounded-md border border-border-default bg-bg-canvas text-text-primary focus:outline-none focus:ring-2 focus:ring-primary-default"
|
|
248
249
|
})] })
|
|
249
250
|
]
|
|
250
251
|
})] }),
|
|
251
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ i("div", {
|
|
252
253
|
className: "xl:col-span-2",
|
|
253
|
-
children: [/* @__PURE__ */
|
|
254
|
+
children: [/* @__PURE__ */ i("div", {
|
|
254
255
|
className: "flex items-center justify-between mb-3",
|
|
255
|
-
children: [/* @__PURE__ */
|
|
256
|
+
children: [/* @__PURE__ */ r("h3", {
|
|
256
257
|
className: "text-sm font-medium text-text-primary",
|
|
257
258
|
children: "Metadata Conditions"
|
|
258
|
-
}), /* @__PURE__ */
|
|
259
|
+
}), /* @__PURE__ */ i("button", {
|
|
259
260
|
type: "button",
|
|
260
|
-
onClick:
|
|
261
|
+
onClick: U,
|
|
261
262
|
className: "inline-flex items-center gap-1 text-xs text-primary-default hover:text-primary-default/80",
|
|
262
|
-
children: [/* @__PURE__ */
|
|
263
|
+
children: [/* @__PURE__ */ r(t, { className: "size-3.5" }), "Add condition"]
|
|
263
264
|
})]
|
|
264
|
-
}), /* @__PURE__ */
|
|
265
|
+
}), /* @__PURE__ */ r("div", {
|
|
265
266
|
className: "space-y-3",
|
|
266
|
-
children:
|
|
267
|
+
children: T.length === 0 ? /* @__PURE__ */ r("span", {
|
|
267
268
|
className: "text-sm text-text-tertiary",
|
|
268
269
|
children: "No metadata conditions applied."
|
|
269
|
-
}) :
|
|
270
|
+
}) : T.map((t, a) => /* @__PURE__ */ i("div", {
|
|
270
271
|
className: "grid grid-cols-1 md:grid-cols-[1.4fr_auto_1.4fr_auto] gap-2 items-center",
|
|
271
272
|
children: [
|
|
272
|
-
/* @__PURE__ */
|
|
273
|
-
"aria-label": `Metadata key ${
|
|
273
|
+
/* @__PURE__ */ r("input", {
|
|
274
|
+
"aria-label": `Metadata key ${a + 1}`,
|
|
274
275
|
type: "text",
|
|
275
|
-
value:
|
|
276
|
-
onChange: (e) =>
|
|
276
|
+
value: t.key,
|
|
277
|
+
onChange: (e) => W(a, { key: e.target.value }),
|
|
277
278
|
placeholder: "metadata.path",
|
|
278
279
|
className: "h-9 px-3 text-sm rounded-md border border-border-default bg-bg-canvas text-text-primary focus:outline-none focus:ring-2 focus:ring-primary-default"
|
|
279
280
|
}),
|
|
280
|
-
/* @__PURE__ */
|
|
281
|
-
"aria-label": `Metadata operator ${
|
|
282
|
-
value:
|
|
283
|
-
onChange: (e) =>
|
|
281
|
+
/* @__PURE__ */ i(e, {
|
|
282
|
+
"aria-label": `Metadata operator ${a + 1}`,
|
|
283
|
+
value: t.operator,
|
|
284
|
+
onChange: (e) => W(a, { operator: e.target.value }),
|
|
284
285
|
className: "h-9 px-3 text-sm rounded-md border border-border-default bg-bg-canvas text-text-primary scheme-normal dark:scheme-dark focus:outline-none focus:ring-2 focus:ring-primary-default [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
285
286
|
children: [
|
|
286
|
-
/* @__PURE__ */
|
|
287
|
+
/* @__PURE__ */ r("option", {
|
|
287
288
|
value: "EQUALS",
|
|
288
289
|
children: "Equals"
|
|
289
290
|
}),
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ r("option", {
|
|
291
292
|
value: "NOT_EQUALS",
|
|
292
293
|
children: "Not equals"
|
|
293
294
|
}),
|
|
294
|
-
/* @__PURE__ */
|
|
295
|
+
/* @__PURE__ */ r("option", {
|
|
295
296
|
value: "CONTAINS",
|
|
296
297
|
children: "Contains"
|
|
297
298
|
}),
|
|
298
|
-
/* @__PURE__ */
|
|
299
|
+
/* @__PURE__ */ r("option", {
|
|
299
300
|
value: "STARTS_WITH",
|
|
300
301
|
children: "Starts with"
|
|
301
302
|
})
|
|
302
303
|
]
|
|
303
304
|
}),
|
|
304
|
-
/* @__PURE__ */
|
|
305
|
-
"aria-label": `Metadata value ${
|
|
305
|
+
/* @__PURE__ */ r("input", {
|
|
306
|
+
"aria-label": `Metadata value ${a + 1}`,
|
|
306
307
|
type: "text",
|
|
307
|
-
value:
|
|
308
|
-
onChange: (e) =>
|
|
308
|
+
value: t.value,
|
|
309
|
+
onChange: (e) => W(a, { value: e.target.value }),
|
|
309
310
|
placeholder: "Expected value",
|
|
310
311
|
className: "h-9 px-3 text-sm rounded-md border border-border-default bg-bg-canvas text-text-primary focus:outline-none focus:ring-2 focus:ring-primary-default"
|
|
311
312
|
}),
|
|
312
|
-
/* @__PURE__ */
|
|
313
|
+
/* @__PURE__ */ r("button", {
|
|
313
314
|
type: "button",
|
|
314
|
-
onClick: () =>
|
|
315
|
+
onClick: () => G(a),
|
|
315
316
|
className: "inline-flex items-center justify-center size-9 rounded-md border border-border-default text-text-secondary hover:bg-bg-muted",
|
|
316
|
-
"aria-label": `Remove metadata condition ${
|
|
317
|
-
children: /* @__PURE__ */ n
|
|
317
|
+
"aria-label": `Remove metadata condition ${a + 1}`,
|
|
318
|
+
children: /* @__PURE__ */ r(n, { className: "size-4" })
|
|
318
319
|
})
|
|
319
320
|
]
|
|
320
|
-
}, `metadata-condition-${
|
|
321
|
+
}, `metadata-condition-${a}`))
|
|
321
322
|
})]
|
|
322
323
|
}),
|
|
323
|
-
|
|
324
|
+
K
|
|
324
325
|
]
|
|
325
326
|
})
|
|
326
327
|
});
|
|
327
328
|
}
|
|
328
|
-
export {
|
|
329
|
+
export { a as FiltersPanel };
|
|
@@ -1,57 +1,58 @@
|
|
|
1
1
|
import { SEARCH_MODE_INFO as e, SORT_OPTIONS as t } from "./constants.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { ThemedSelect as n } from "../../../ui/themed-select.js";
|
|
3
|
+
import { ArrowUpDown as r, ChevronDown as i, ChevronUp as a, SlidersHorizontal as o } from "lucide-react";
|
|
4
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
4
5
|
// src/shared/pages/searchPage/SearchToolbar.tsx
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
function l({ searchMode: l, sortBy: u, showFilters: d, activeFilterCount: f, onSearchModeChange: p, onSortByChange: m, onToggleFilters: h, onClearFilters: g }) {
|
|
7
|
+
return /* @__PURE__ */ c("div", {
|
|
7
8
|
className: "flex flex-wrap items-center gap-4 mb-6",
|
|
8
9
|
children: [
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
+
/* @__PURE__ */ s("div", {
|
|
10
11
|
className: "flex items-center gap-1 bg-bg-surface rounded-lg p-1 border border-border-default",
|
|
11
12
|
children: [
|
|
12
13
|
"PARTIAL",
|
|
13
14
|
"FULLTEXT",
|
|
14
15
|
"EXACT"
|
|
15
|
-
].map((t) => /* @__PURE__ */
|
|
16
|
+
].map((t) => /* @__PURE__ */ s("button", {
|
|
16
17
|
type: "button",
|
|
17
|
-
onClick: () =>
|
|
18
|
-
className: `px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${
|
|
18
|
+
onClick: () => p(t),
|
|
19
|
+
className: `px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${l === t ? "bg-primary-default text-primary-foreground" : "text-text-secondary hover:bg-bg-muted"}`,
|
|
19
20
|
title: e[t].description,
|
|
20
21
|
children: e[t].label
|
|
21
22
|
}, t))
|
|
22
23
|
}),
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ c("div", {
|
|
24
25
|
className: "flex items-center gap-2",
|
|
25
|
-
children: [/* @__PURE__ */
|
|
26
|
-
value:
|
|
27
|
-
onChange: (e) =>
|
|
26
|
+
children: [/* @__PURE__ */ s(r, { className: "size-4 text-text-tertiary" }), /* @__PURE__ */ s(n, {
|
|
27
|
+
value: u,
|
|
28
|
+
onChange: (e) => m(e.target.value),
|
|
28
29
|
className: "h-9 px-3 text-sm rounded-md border border-border-default bg-bg-surface text-text-primary scheme-normal dark:scheme-dark focus:outline-none focus:ring-2 focus:ring-primary-default [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
29
|
-
children: t.map((e) => /* @__PURE__ */
|
|
30
|
+
children: t.map((e) => /* @__PURE__ */ s("option", {
|
|
30
31
|
value: e.value,
|
|
31
32
|
children: e.label
|
|
32
33
|
}, e.value))
|
|
33
34
|
})]
|
|
34
35
|
}),
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
onClick:
|
|
37
|
-
className: `flex items-center gap-2 px-3 py-2 text-sm rounded-md border transition-colors ${
|
|
36
|
+
/* @__PURE__ */ c("button", {
|
|
37
|
+
onClick: h,
|
|
38
|
+
className: `flex items-center gap-2 px-3 py-2 text-sm rounded-md border transition-colors ${d || f > 0 ? "border-primary-default bg-primary-default/10 text-primary-default" : "border-border-default bg-bg-surface text-text-secondary hover:bg-bg-muted"}`,
|
|
38
39
|
children: [
|
|
39
|
-
/* @__PURE__ */ o
|
|
40
|
+
/* @__PURE__ */ s(o, { className: "size-4" }),
|
|
40
41
|
"Filters",
|
|
41
|
-
|
|
42
|
+
f > 0 && /* @__PURE__ */ s("span", {
|
|
42
43
|
className: "ms-1 px-1.5 py-0.5 text-xs font-medium bg-primary-default text-primary-foreground rounded-full",
|
|
43
|
-
children:
|
|
44
|
+
children: f
|
|
44
45
|
}),
|
|
45
|
-
|
|
46
|
+
s(d ? a : i, { className: "size-4" })
|
|
46
47
|
]
|
|
47
48
|
}),
|
|
48
|
-
|
|
49
|
+
f > 0 && /* @__PURE__ */ s("button", {
|
|
49
50
|
type: "button",
|
|
50
|
-
onClick:
|
|
51
|
+
onClick: g,
|
|
51
52
|
className: "text-sm text-text-secondary hover:text-text-primary underline",
|
|
52
53
|
children: "Clear all filters"
|
|
53
54
|
})
|
|
54
55
|
]
|
|
55
56
|
});
|
|
56
57
|
}
|
|
57
|
-
export {
|
|
58
|
+
export { l as SearchToolbar };
|
|
@@ -86,6 +86,14 @@ export interface AppShellConfig {
|
|
|
86
86
|
* publish their width), so they never cover its profile button or bell.
|
|
87
87
|
*/
|
|
88
88
|
privacyConsentPlacement?: ConsentBannerPlacement;
|
|
89
|
+
/**
|
|
90
|
+
* BOFF-15413: the controls the browser draws follow the app's theme, not the OS, on
|
|
91
|
+
* every page and module this shell mounts. Every `ThemedSelect` opens the app's styled
|
|
92
|
+
* menu instead of the system's, `<html>` and `<meta name="color-scheme">` carry the
|
|
93
|
+
* theme's scheme, and every scroll container gets the one theme-aware scrollbar
|
|
94
|
+
* (`tokens.css`, `data-native-controls`). Off by default: FluidGrids opts in.
|
|
95
|
+
*/
|
|
96
|
+
themedNativeControls?: boolean;
|
|
89
97
|
/**
|
|
90
98
|
* Extra routes on which the analytics-consent prompt must NOT render (BOFF-6373).
|
|
91
99
|
*
|